actionscript-3

Flash CS4: Font Disappearing

I have an odd issue while using FlashCS4. I have a textfield that, when set to STATIC TEXT works absolutely fine, in the correct font. If I set it to DYNAMIC TEXT, the text shows up as Arial or some other default on systems where the selected font isn't available. It shows up in the proper font on systems that have the font installed. ...

FMS client freeze when closing/refreshing client browser

Am working on a as3 video player and its playing everything ok. But when ever its getting refreshed from client browser its just freezed the browser. how to solve this? And some times it gives security alerts also. I dont want to make thoze alerts to users. how to solve it. ...

how to filter XML attributes in AS3

Ok- here's a painfully easy one I bet -- I'm aware of how to use EX4 to filter most pieces of the xml I need however how can I filter an XML list such as the one below to check say --- if a dog is a beagle? preferably as a Boolean. var theXml:XML = <animals> <animal dog ="poodle" cat="Siamese" /> <animal dog ="beagl...

What the best way to coordinate loading initial values in syncronized Combo-Boxes & List Box

Environment: Flex/As3/Cairgorm/composite component. I have two comboboxes and two datagrids such that the selection of combobox 1, inserts data into combobox two and the fist datagrid. The selection of combobox 2 inserts data into datagrid 2. I have setup the change event so that the user selection on each of the combo boxes do the...

How to access stage in a class that is not a DisplayObject?

How do I access the stage in Actionscript 3 in a class which is not my main class and not a displayobject? ...

Efficiency of embedding flash assets in flex actionscript project

I'm creating a project in flex builder but it's not using the flex framework, it's just pure actionscript. At the moment I have some bitmap resources embedded for drawing things, but I'd like a little animation and thought I could create swf animations for them in flash and use the [Embed()] thing to embed them in the actionscript proje...

Trying to extend flex datagrid to add an "add new row" row

I am trying to extend the flex datagrid component so that I can have an "add new row" row like MS Access but I can't get it to work. I have tried a few different methods but I can't get anything to actually work. By extend I really mean alter the Adobe code as some of the private vars I needed to do something else but I should be able t...

Flex/actionscript snapshot

var bmd:BitmapData = ImageSnapshot.captureBitmapData(someSprite); trace("bmd size "+getSize(bmd)); var bounds:Rectangle = new Rectangle(0, 0, bmd.width, bmd.height); var snapshot:ImageSnapshot = new ImageSnapshot(0,0,bmd.getPixels(bounds)); //var snapshot:ImageSnapshot = ImageSnapshot.captureImag...

(as3) Sync data between 3 or more identical flash objects on the same page

Ok, i have asked something similar before, but never go to the solution i need. So am starting a new stack to not confuse my issues, and to make a little clearer. What i need to do I have multiple flash objects on a html page, they are all identical, and all of them need to be sync'd with the correct time. In its current state, each on...

How can i add a toString() function for every class file, automated in Eclipse?

Hi, I'm doing a AS3 project in Eclipse and trace alot of values. I though it would be nice to have a toString() function in every class, at the bottom of each class as the last function, but i dont want to do this by hand for 500+ files. Is there a quick and good way of doing this automated? How would you go about this? Thanks in adv...

what package I should import to use DataProvider class

Hi, I need to use DataProvider class and i cannot find the package that contains it. In all examples I saw they use fl.data, but I'm using flex builder sdk 3.4 beta and it doesn't have such a package. Any clue? Thanks, Nava ...

How to add Actionscript 3 fl.controls (UIScrollBar) on Linux

How would one go about adding fl.controls.* to AS3 projects developed under Linux? Apparently it is not part of Flex 3SDK for Linux (which is what I am using to compile) or maybe it is and I am not importing it correctly..I downloaded this SDK last March, maybe time for update? Looking at Adobe Official Docs for fl.controls does not me...

are out there token_get_all variations?

Hello, I am wondering if there exists a token_get_all() method in Actionscript like PHP does have? Further thinking, I am wondering if there are different versions of such function in any languages used for web developing. Such as token_get_all_html(), token_get_all_cpp(), that will split the input of HTML/C++/Java/PHP into tokens. Th...

How to set a variable attribute of an xml element in actionscript 3?

Something that should be very easy has been the quest of my day. How do you set a variable attribute of a xml element? This is what I expected to work: xmlElement.attribute(variableAttr) = "the variable attribute is set to this string"; However, I'm getting some error that this value can only be retrieved as a reference and not set....

Why am I getting error while trying to seek in my streaming video player

I'm building a video player here: http://leongaban.com/stackoverflow/RTMP/ It's streaming RTMP, and I'm trying to get my video to seek correctly if the user clicks on the groove bar (gray bar under the green progress bar) Currently it does not seek and gives me a NaN on my duration variable and an error on my progress bar width variable...

listening for viewstack change event

I have a piece of software I'm working on that is using a viewstack with 3 canvases. With the change event I need to look for index 2 which is the last canvas when it changes to this canvas I need it to grab data from inputs from the previous two canvases. Within the viewstack events I've assigned the function change() to the event chil...

Begin and end frame AS3

My animation is 100 frames total. I want to set a range of frames. Is is there a command to play only frames 50 to 75? I want begin-and-end frame to be in an object I can call on later. There must be a "best" way of doing this! 100 frame total <==play 50 to 75==> SAMPLE These commands work, but I would end up adding labels and st...

browser, navigation issues

This is basically a continuation of a question of mine from yesterday, "Foregoing intialization on a page" (And btw, kudos to all who give selflessly in this forum to help others - need to do more of that myself.) So anyway, I was told about HistoryManager, BrowserManager and SharedObject, and so quickly ascertained that its no problem...

AS 3.0 Duplicate Variable Definition

How do I resolve the error of duplicate variable definitions? There has to be separate namespaces and use for each definition, but I'm just not seeing it. CODE I didn't write this, but I've been trying to unpackage it and change the classes and seem to have broken it. I want to use this for time-scaling the playback of my movies.There'...

AS3: global var of type SimpleButton changes to DisplayObject for unknown reason, won't let me access .upState.textColor!

This is a problem that's best explained in code. I don't see how active_button.upState, which I know is a TextField (see trace statements), mysteriously turns into a DisplayObject when I try to access the textColor property. I've included the error messages below for reference. Also, why is it that when I have an object that I know i...