B is it possible to write ActionScript code to gain access to
B lines/fills/shapes drawn on the stage using the standard Flash API?
If you need to parse a drawing created in the Flash IDE and convert it
to an AS script which creates the same result, but using Drawing API
methods, then use JSFL.
SSB Inside an onEnterFrame function you have to use this when referring to
SSB things in the class (if the class extends MovieClip, which I hope it
SSB does because only MovieClips can have onEnterFrame as far as I know).
Well, using this is not the matter of onEnterFrame but that of any
runtime
RA Well, using this is not the matter of onEnterFrame but that of any
RA runtime function definition. If you declare your onEnterFrame as a
RA simple method, this can be omitted.
Oh, I mean if the class extends MovieClip of course (but in other
case your code doesn't work, too :))
class MyClass
SSB That is true, however if you just need a temporary onEnterFrame
SSB then it's better to just assign it to this instead of delcaring
SSB it in the class.
I'm used to avoid runtime function declaration just because it can
lead to creating more than one copy of the function, instead of
IT You'd need to change the mimetype on the server, too
AFAIK Flash doesn't care about mime-types, simply enough to rename
the file - if it is a valid mp3, Flash will handle it correctly.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your
IT Flash may not care, but (for example) the latest version of IIS does.
IT If you don't set a mime-type for a file extension, it defaults to a
IT 404 instead of serving the file. Stupid system. :-)
I see, it escaped my attention - I have minimal experience with IIS :)
Attila
MJ Yes, but I don't want my scripts to HAVE version detection for the users
MJ who do have the Flash player, because we always know what to build for
MJ and what version the user will have. Since the detection script gets
MJ copied all over the place, I don't want to update those scripts to
MJ
HDC Is it possible to change the appearance of single items in a List
Component?
Look up for the CellRenderer API in the docs.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
AF Is there any way to launch an exe with any version of Flash? I basically
AF want to download my installer using Flash and then automatically launch it,
AF basically bypassing the browser's download and launch cycle to make things
AF easier on the user.
AF
AF I know very little
HDC I'm developing an application that simulations an e-mail
HDC application, similar to Outlook. I'd like to use the List
HDC Component to hold all the e-mails and have unread e-mails bold,
HDC e-mails that need follow up in red, and completed e-mails as
HDC plain text. I have been reading
AF I'd basically like a signed
AF Flash movie that could do the same thing, using Flash instead of Java
AF because it's more ubiquitous and doesn't take so friggin' long to launch. I
AF imagine there's still no way though huh?
You are right, there is no way :) You cannot sign a Flash movie and
MN I have a potential client who wants their program to incorporate Google
MN Image Search results. I have never used Google web services or other
MN programming tools, so I don't know how much work this will involve and what
MN server side resources are required. I will be using Flash 8 and
j As you can see the first value is correct, the rest have weird values. Can
j anyone explain this to me?
This is because of the precision errors of floating-point arithmetic.
Try to round the results:
import flash.geom.Point;
var angles: Array = [0, 90, 180, 270, 360];
for (var i = 0; i
oao Anyone have any script ideas for changing the actual object color of an
oao object within the library. I have about 700 objects and they all need a new
oao color :) I know I can setrgb when they are on the stage. But is there
oao possibly an external script or plugin that will allow this. By
JMH However, what I want is to be able to see the results of certain
JMH method calls on the objects in my dataProvider. Is there some way
JMH to accomplish this feat without going berserk?
Why don't you use getter properties in your objects or
DataGridColumn.labelFunction?
Attila
MH I could not use labelFunction because I wished to populate each
MH row of my DataGrid with the results of various method calls on a single
MH object, and labelFunction builds a label in a single cell.
May be I'm not understanding your problem properly, but using
labelFunction you can display
CA I've got this thing with a bunch of checkboxes created through
CA createClassObject sitting in a movieclip.
CA Problem is, I don't know how to get rid of them once I'm done with them
CA (they're based on filtered data, so I need to update them).
CA Of course there's destroyObject(), but that
In AS2 there is a compile-time type-checking only, the Flash VM itself
doesn't care about type settings. If the type of an expression cannot
be determined during the compilation, then type-checking is simply
omitted. In your code it applies to the settings[tagName] reference,
where the referred
RR // this does not produce an error
RR settings.settings_id = settingsBranch.childNodes[0].firstChild.nodeValue;
Of course not, because you use the array syntax again (childNodes[0],
which is in fact the same method as in your previous
settings[tagName]) and when using such, the compiler has no
When saying the compiler has no type information I mean that it
doesn't know, that the members of the childNodes array are XMLNode
objects (because the lack of typed arrays), so it doesn't know
anything about the type of the array members' properties, too.
Attila
RR // nope, no error
RR settings.settings_id = settingsBranch.firstChild.firstChild.nodeValue;
Are you sure that variable settings is typed as Settings?
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Well, looking again into your earlier posts I noticed this line:
RR var settingsBranch = app_xml.firstChild.firstChild;
You didn't set the type of settingsBranch to XMLNode, so any further
reference to the properties of the object it refers to, will not carry
type information. Was this line
Well, this is too simple, there are too many invalid strings which are
considered as valid by this script. I think if you validate the input,
then do it correctly or don't validate at all :) An incomplete
validation makes you feel that your data is valid and secure, however
it can lead to
This is much better, but not perfect yet :) It still lets pass strings
like @., [EMAIL PROTECTED], [EMAIL PROTECTED], foo@@foo.com, etc.
I think that validating carefully everything what comes from the user
is an essential thing, and we have to don't allow breaking programs
by wrong inputs. It
I have attached a class which - hopefully - takes care of each
possible issue :)
Attila___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought
uhh, attachments are not allowed here?
class Validate {
// characters allowed in e-mail addresses, not including the separators (@
and .)
public static var EMAIL_CHARS: String = abcdefghijklmnopqrstuvwxyz_-;
// test a string for containing allowed characters only
public static
e With JSON your objects are typed.. in XML all properties, attributes, are
e String values only.
AFAIK this typing is limited, since the objects (structures) are not
typed and JSON doesn't store class information (I know that class
hints are used sometimes, but this is a kind of hack only). On
mmc The first is accessing the class scope from within a xml object ,
mmc solved by defining a local variable withing the constructor
mmc before your XML object.
mmc
mmc var parent:ClassName= this;
mmc _xmlData.onLoad = function(success:Boolean) {
mmcif(success)
System.security.allowDomain() serves a little bit different purpose,
it has nothing to do with your current problem.
LoadVars.send() and LoadVars.sendAndLoad() somewhat differ concerning
security issues. The send() method is allowed to send data to any
target domain, but sendAndLoad() is
DB it changes the class prototype but errors when i try to initialize the
DB constructor using the call method.
That's because in this case classes.testClass interpreted by the
compiler in the context of AS2 syntax and not as a simple Function
object. So you have to cast it to type Function
E.g. you can use the RecordSet.filter() method for obtaining the list of
images associated with a specified article ID.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
There is only one frame rate in a movie and its sub movies - if a
movie is loaded into an other one, then it will always be played with
the frame rate of the loader (so its own frame rate setting is
discarded).
Attila
___
Are you talking about a projector application? In this case you can
create a simple batch file for opening PDF-s, that contains a simple
start foo.pdf line. Unfortunately fscommand cannot pass parameters
to the executable, so you have to make batch files for each PDF,
unless you use a third-party
You already posted this question few days ago and I answered it for
you. If you did not understand something in the answer or had problems
during putting it to practice, let it know and I'm sure you will get
further explanation (from me or from somobody else).
Attila
MD perhaps I can cotton up with (btw. is this good english?)
MD AsBroadcaster, since it is availablefrom flash version 6 and above.
AsBroadcaster is quite obsolete, why don't use the event dispatching
mechanism introduced in MX 2004 (mx.events.EventDispatcher)? It
handles separate callbacks (see
MD So I was on the right track and it was only a syntactical AS1-to-AS2
MD question. ;-)
Well, actually the whole AS2 syntax is a shorthand for AS1 syntax :)
In fact the AS2 compiler is a preprocessor only, which creates AS1
source from the AS2 one and this AS1 source will be compiled to
MG Does this help?
MG
MG for(var i=Array.length; i=0; i--){
MG//loop backwards
MG }
No, it doesn't help, since the first index is out of range :)
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
write trace(myArray[i]) instead of trace(i)
MJ What do you mean? There's nothing wrong with the way they wrote that
either - this works for me:
MJ
MJ myArray = [1,1,1,1,1,1,1,1];
MJ
MJ for(var i=myArray.length; i=0; i--){
MJ trace(i)
MJ }
MJ
MJ I don't think they meant the word Array
HG I just found out that the file size that the class outputs is not the same
HG filesize that the file size is represented on my computer.
The reported size is the size of the uncompressed swf (compression
exists since Flash 6 and it is the default option), similar to the
value returned by
I confirm that it doesn't work on IE6. Propably your pngfix.js is
responsible for the problem, because I saved the page to local drive,
cut out this pngfix.js line and everything worked perfectly (except the
transparent PNG of course :))
Attila
___
JMB Crap..i have the IE 7...so..thats the problem...can i have the ie installed
JMB as well? for test purposes?
Look at this:
http://www.microsoft.com/downloads/details.aspx?FamilyID=21EABB90-958F-4B64-B5F1-73D0A413C8EFdisplaylang=en
___
You have to wait while the components are initializing themselves.
Usually I place my initialization code accessing the on-stage children
components in the onLoad method of the container movieclip/component.
private function onLoad():Void {
roomShape_btn.toggle = true;
Yes, it's a valid script (except switch(var) instead of switch(v)),
and the expected result is default, since the documentation states
that a default case statement does not have to be last in the list.
s Is this valid ActionScript ?
s
s var v = 1;
s switch (var)
s {
s
Oh, I'm sorry, I mistyped the expected result in my last post: it
should be 1.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought
SSB a b -- returns true if a and b are both true, false otherwise
By my tests a b returns b if a and b are both resolves true. If a
and/or b resolves false then it returns that value, which is first
resolves false:
if a is false and b is false = a
if a is false and b is true = a
if a is true
Well, unfortunatelly you cannot encrypt it to be totally secure, since
you can use any kind of encryption, by decompiling your swf it can be
decrypted, too. However for most of the cases I think there are some
solutions, but everything depends on the skills and resolution of
those, who are trying
BU i was thinking of the 3rd one embedding the xml into a
BU variable in flash.
Or may be better to create a structure of objects and arrays instead
of an XML string. Once I developed a level designer for a game and it
saved its quite huge output as XML and as an ActionScript source file
which
Base64 should work with any characters since it processes simple byte
streams, so doesn't care any character encoding or such things.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
(please don't post questions by simly replying to a previous post, but
create a new message - otherwise some e-mail clients will mix up
threads and the unchanged subject will be totally confusing, too)
BS I have a Flex question. I have been considering FLEX 2.0, but when
BS I spoke with the guy
No, you cannot duplicate anything that was changed/loaded at runtime
(including images, child movieclips, variables, etc). The result of
the duplication is always an exact copy of the original movieclip
symbol (as it presented in the library). You have two options:
- you can load your image
Arial Unicode MS font covers almost the whole Unicode 2.1 character
ranges, but it is more than 20MB. It the size matters then use device
fonts.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
You can do that similarly to AS2, the array notation works in AS3 as
well and referring to a variable by its name is possible (as far as it is
an object instance's field/property, and not a local variable).
However since _root doesn't exist, you have to rethink this part a bit.
Attila
BA Hi,
After a completed upload you can get a response by calling a separate
request, which returns data stored in a session variable or something
similar.
Attila
d I see that fash dosent have any way of sending back a messge from the server
d after upload is doen
d
d Any ideas?
d Can you face a
MM So I want to to the blacks to alpha's in my bitmap data - the darker it
MM is, the more transparent I want it - how do I go about solving this
MM problem.
MM
MM I'm throwing stuff in threshold but so far I'm having no joy at all.
ColorMatrixFilter is your friend :)
Attila
Hi,
I'd like to use some scripts written for Flash Player 8 in an
application targeted to player 6. The script uses flash.geom package
which doesn't exist in player 6 (and 7), but as far as I see it
doesn't contain anything that couldn't be implemented in pure AS, so
it can be
e you can use VEGAS my openSource Framework and this library PEGAS and this
e package pegas.geom :)
Thanks Eka, it seems to be good.
e You can use my framework in Flash 7 and Flash8 and you can transform my AS2
e class in AS1 class if you want (my framework is openSource ;))
No, I don't want
I tried the following script:
for (var i = 0; i 3; i++) {
mc = createEmptyMovieClip(mc + i, i);
mc.lineStyle(0, 0, 0);
mc.beginFill(0xFF (i * 8));
mc.moveTo(-50, -15);
mc.lineTo(50, -15);
mc.lineTo(50, 15);
mc.lineTo(-50, 15);
In the player folder of your Flex install there is a stand-alone Flash
player, which can create projectors (File|Create Projector). And there
are some more options including Zinc and Screenweaver HX.
Attila
___
Flashcoders@chattyfig.figleaf.com
To
I don't think that flooding will solve your problem, but reading docs
can help much more:
http://livedocs.macromedia.com/flash/8/main/2204.html
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
nV I have list with urls from different domains for uploading mp3 files. So I
nV nothing can do on other servers. Is it possible to use FileReference for
nV that situation?
nV System.security.allowDomain(*); also does not help.
allowDomain() has nothing to do with this, it is for somewhat
nV It is too difficult for me to create server-side programming. As I
nV understand even example from documentation for downloading
nV http://www.macromedia.com/platform/whitepapers/platform_overview.pdf;
nV that explain how to use FileReference can not work correctly without
nV additional
nV
http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2210.html
nV I tell about this example
This example will work, since in the root of macromedia.com there is a
crossdomain.xml (redirected to adobe.com), which allows unrestricted
It works for me with one small change: since Flash Player (at least
the browser plugin) doesn't accept crossdomain policy files redirected
to an other domain (from macromedia.com to adobe.com in this case) I
replaced macromedia.com with adobe.com.
Attila
I didn't remember such restriction so tried it with a more than 1000
character long URL, and it is working on IE and FF, Flash Player 9
(movie published to player 8).
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options
AH The main reason I don't want to do that is that I won't have control
AH of the 'brand.swf' versions. I just worry someone might put something
AH on the canvas in brand.swf by mistake. If I was able to put my stuff
AH on root or another MC then I could just hide the uiResources MC, so it
AH
Probably you refer incorrectly to the video and navigation movieclips.
By using this you refer to variables/properties of the listener
object itself, but obviously there are no such properties (try to
trace them out). And also you may need to set Stage.align, too.
Attila
The mx package is not fully compatible with MTASC, so you have to apply
this patch:
http://osflash.org/mx_v2_components_patch
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Why don't you set Stage.scaleMode and Stage.align to your preferred
values at the beginning of your program?
Attila
AH There seem to be a couple problems:
AH
AH 1) when built using the Flash IDE the coordinates (0, 0) on the root
AH are at the center. When built using MTASC (0, 0) seems to
Well, interesting - I just tried out and everything seems to be OK
with MTASC: without setting Stage's properties the default behaviour
is similar to that of movies compiled with MMC, and after setting
scaleMode and align it works as expected, too. Can you provide a
minimal script demonstrating
I tried out your code and get exactly the same result with Flash IDE
and MTASC. Did you try it in the stand-alone player? If in the
browser, may be you have changed the default scaling and alignment
values in the Publish Settings?
Anyway, the most secure method is to set Stage options by script
ColorMatrixFilter is your friend :)
Attila
AK Is there a way of transforming a coloured MovieClip instance to
AK monochrome (specifically grey scale) at run time? I want it to
AK indicate that a control is disabled.
AK It seems a fairly elementary thing to do, so possibly I'm
AK
MovieClip.swapDepths() - if I understand correctly what you mean
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig
Simply define class members with the instance names of your movie
clips on the stage:
class Holder extends MovieClip {
private var mc1: MovieClip;
function Holder() {
mc1._x = 50;
}
}
n i have a movieClip holder that contains other child movieClips (mc1, mc2,
n mc3...) created
It works in the Flash 8 IDE and in the stand-alone player version 8,
but in player 9 it crashes (stand-alone) or freezes (browser plug-in).
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
After exporting as AI sequence and importing back again, it works even
in player 9 (both stand-alone and plug-in).
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
Use one of the delegate solutions (i.e. the built-in
mx.utils.Delegate, but there are several others):
import mx.utils.Delegate;
class Main {
var myButton:Button; // placed on stage in authoring time
function init() {
myButton.onRelease = Delegate.create(this, doSomething);
}
Compiled classes are kept in a subdirectory of Flash's base class
folder in ASO files - this folder on Windows:
C:\Documents and Settings\username\Local Settings\Application
Data\Macromedia\Flash 8\en\Configuration\Classes\aso
The compiler uses these precompiled files if it doesn't detect
LH Hi there,
LH My flash animation should play on a page with a black
LH background ...however when the page loads or if you hit refresh a
LH big white box displays where the flash animation comes in. I've
LH tried everything in the html (div using a black background, table
LH using a
SF Which do you prefer:oThis:Object = this;mcClear.onRelease =
SF function():Void{ oThis.clearForm();}ormcClear.onRelease =
SF Delegate.create(this, clearForm);
I prefer Delegate, because it is shorter and clearly shows what is
going on (callback assignment), while using more lines and separete
You can try also this one:
http://flash-creations.com/notes/sample_svgtoflash.php
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
I'm sorry, it seems that I misunderstood your question.
Attila
RA You can try also this one:
RA
RA http://flash-creations.com/notes/sample_svgtoflash.php
RA
RA Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or
DC Truthfully, I've never used the AS 2.0 class in the linkage box--
DC this may be what I was looking for!
The simplest way is to assing a class to a movie clip symbol. It makes
each instance of that symbol (both placed on stage at design time or
created at run-time) associated with the given
Look into the CellRenderer API:
http://livedocs.macromedia.com/flash/8/main/3127.html
Attila
TL Hello Flashers,
TL
TL I'd like to have some advice on customizing List v2 component since I have
TL no deeper knowledge of v2 components set architecture.
TL
TL I need to extend the List
If you are already using Flash, then SharedObject seems to better than
cookies. But it can depend on your actual project structure, of
course.
Attila
M Can anyone point me towards a tutorial on tracking and providing feedback to
M a user on where they are in the current tutorial/presentation.
MJ That's because you're still not refrencing an object that exists:
MJ
this._data[a] = new Object();
MJ
MJ You're saying, Hey, _data, make your a property an object. But Flash
MJ is saying, hold on cowboy, I don't see any property of _data called a.
You are not right, it is totally
MJ OK, I see, so then curious why this script returns compiler errors:
MJ
MJ function createData():Void {
MJ this._data = new Object();
MJ this._data[a] = new Object();
MJ this._data[a] = {t1:0, t2:0};
MJ }
Because when using the object initializer operator, you cannot use
strings
I tried both versions in IE 6 and FireFox 2.0. It seems that in IE the
opaque version is played at a little bit higher fps (however the
navigation doesn't work for me), but the other one (window) runs
smooth enough, too, and I didn't feel the lack of performance. On the
other hand with FireFox
OF lol i was just testing if i receive posts that i do. as i see hotmails does,
OF but gmail doesn't
I receivied your posts both from gmail and hotmail.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the
Are you sure that there are no spaces or linebreaks after the value
passed back? Placing a symbol (delimiter) at the end of each
value is always a good practice.
Attila
BM I have this script :
BM
BM function adauga() {
BM error.length = 0;
BM verif();
BM if (error.length0) {
BM
Is ContextMessageTransferData.as on your classpath?
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf
node.nodeValue = something;
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized
TH This definitely loads the Flash object...I get that part. But it doesn't
TH write to my file called setup.xml. I am in the OReilly ActionScript book now
TH and this is the first time it has ever failed me. I tried parseXML and
TH sendAndLoad but I can't seem to write into the file.
A Flash
MTASC will do that for you. Create a simple class with a static entry
method, place allowDomain() inside that, compile and inject it into
the existing SWFs with MTASC.
Attila
jv I am trying to use a bunch of image sequences that were exported out of
jv ImageReady as swfs. This process has
Variable identifiers are not string constants, so:
showPopup(myarray);
However mainMap[popup].gotoAndPlay(on); has no sense in this case,
since the array notation excepts a string and not an object. Ans also
you don't need to use array notation here at all, the simple dot
syntax is enough:
Well, there are several ways to achieve your goal but I think that the
best and most elegant solution is creating a class for your buttons
which implements an event dispatching mechanism (e.g. Macromedia's
EventDispatcher) and dispatches a click event when the button was
pressed by the user. In
MovieClip.getBounds()
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe
I think there is no reliable way for determining that. On client side
it is not possible if embedding is not under your control (since some
JS is needed for obtaining the HTML's URL). On server side you can
check referer, but making fake headers is so simple :)
Attila
PB Building a video
Correction: since you don't need to know the URL exactly and it is
enough to determine whether it is your own or not, use JS (e.g. as
mentioned by Dave) and if you get no valid response (no matter if it
is a non-matching URL or nothing/error) show the logo. The only
deficiency is that users with
Symbols exported for AS will not be compiled into the component, since
the compiler doesn't know which of them is really required, so place an
instance of the required movieclip symbols onto the stage of your
component (e.g. on a never reachable frame) to ensure that they will
be included into
Applying a filter to a movieclip will always turn on bitmap caching
automatically.
Attila
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
1 - 100 of 188 matches
Mail list logo