global vars in as3 and code run order

This is a discussion on global vars in as3 and code run order within the Macromedia Flash forums in Adobe Tools category; two questions: 1)how can i declare a global variable in as3, like in as2 i could write for example : _global.variableName = "variableValue" and then access the var from anywhere. 2)how can i tell a part of the code from the root to run only after the code ran in all the other movieclips when the swf loads? thx...

Go Back   Application Development Forum > Adobe Tools > Macromedia Flash

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 05-19-2008, 05:32 PM
myqwer
Guest
 
Default global vars in as3 and code run order

two questions:
1)how can i declare a global variable in as3, like in as2 i could write for
example :
_global.variableName = "variableValue"
and then access the var from anywhere.

2)how can i tell a part of the code from the root to run only after the code
ran in all the other movieclips when the swf loads?

thx

Reply With Quote
  #2  
Old 05-19-2008, 06:20 PM
NedWebs
Guest
 
Default Re: global vars in as3 and code run order

As far as the first irem goes... AS3 does not support the _global reference.
Just Google "AS3 _global" and you can probably find a few options. Here's one
result:

http://www.websitemediaplayers.com/b...variables-as3/

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 11:56 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.