im having trouble with referencing variables. how can i go about putting a variable in the root on frame one and referencing it from other movie clips. ive tried everything i can think of. i know this is probably something simple and im gonna kick myself for not being able to get it to work.
http://www.kirupa.com/developer/actionscript/tricks/root_parent_this.htm
Just note that you need to make sure that the data is put into the variable before you get it from somewhere else.
/Mirandir
do this:
ActionScript Code:
[FONT=Courier New][LEFT]</p>
<p>_root.[COLOR=#000080]var1[/COLOR] = [COLOR=#ff0000]“test”[/COLOR];</p>
<p>
[/LEFT]
[/FONT]
then you can access it anywhere using:
ActionScript Code:
[FONT=Courier New][LEFT]</p>
<p>_root.[COLOR=#000080]var1[/COLOR]</p>
<p>
[/LEFT]
[/FONT]
the bbcodes are ****ed up on this site.
I love them
awesome thanks guys