Archive for September, 2007
How to use FlashVars in Flash CS3 and Actionscript 3
Sep6
In Actionscript 3 you have to do a little more work then AS2.
When working in AS2 you could easily use a random object:
[as]
_flashVar = flashVar
//rest of code
[/as]
With AS3 you could run into IOERRORs and everything in between. The client app could end up with the ugly Runtime Error box, so being proactive about it is better.
Cause you never know, it may work great in your perfect world but when the PHP guy builds the XML structure wrong or the production artist forgets to upload the pictures. All the client will see is you dropped the ball on the flash.
So if you want to use FlashVars in AS3 I’ve found this to be a good solution. Read more »