umaxim
asked on
Flash global variable
Hi i want to use a global variable in action script 3. How i can do it. Can any one help me. I need some example because i just begin to study it.
If you are using timeline script use root.variableName to access it.
Otherwise the suggestion which CyanBlue provided of singleton class is a good way to do so.
Warm Regards
Deepanjan Das
Otherwise the suggestion which CyanBlue provided of singleton class is a good way to do so.
Warm Regards
Deepanjan Das
ASKER
I use a script and make a look when for example i click contact it begin loop again and in animation clip i put code take number from variable and stop on number frame. This why i need to get root variable on 1 level down.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.uza.lt/codex/as3-global-object/
http://mtrinitaria.com/mykhel/global-variables-as3/
CyanBlue