-
AS2 variable help
I feel really dumb for not being able to figure this out.
Basically I want to define a variable in a movieclip and then display that in a textbox outside of the movieclip.
To be a little more specific I want to make a variable be false and then when a movieclip gets to a certain frame the variable is set to be true. The true will then be displayed in a textbox on the main timeline.
Also this is my first time doing anything in flash! YAY!
-
Prid - Outing
First time? COOL
Make a dynamic text field (use text tool to make a text box on the Main Timeline, open Properties Panel, CTRL+F3, and where it says Static Text, change to Dynamic Text, and also in there, find a field that says Variable name, and type something like, my_txt, in there), and then in your movieclip, when you set it to false, use this code as well:
Actionscript Code:
_root.my_txt = variable_name;
_root targets the Main Timeline, and the variable_name is your variable name, and then the text field will display the value of it, and in this case, it would be true
Hope it helps, and good luck with Flash
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|