|
-
variable woes
with a recent project not unlike my last. i am tryin to use an input text field so you can enter custom stats and refer to these variables later for many different reason. so any help on this subject would be good.
-
FK'n_dog
make use of _global to open the scope of the variable to all timelines in the Player session.
For example, an input textfield with <instance name> myInput -
_global.myVar = myInput.text;
on any movieclip timeline - trace(myVar); will work
on any loaded movie - trace(myVar); will work
hth
-
is there any other ways to go about it?
-
Registered User
Hey Sobek,
Modified dog's suggestion is probably the easiest way to go about it. It will save you a lot of stress when it comes to targeting your variables. Are you hesistant about using this method for a particular reason?
-
lol, im hesitant because i dont understand it. i was kinda hoping that entering the value into the input text field, given the variable name in the space that offers it would be enough to create the variable so i could later just use the variable in my commands. but if you could care to explain the components to the said suggestion then please do.
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
|