PDA

View Full Version : getting variable form an swf


bbp
02-19-2002, 09:34 AM
hi all,
i have a main swf that loads my mini swfs. if mini swf 1 has a varibale called "done", how can i get a text field to display that variables value in the main swf using loadVariable?
- bbp

Ricod
02-19-2002, 09:49 AM
I'm not sure if it works ... but if u loaded the variables, they should now be in the location where u loaded it to. (by default _level0)

If u have a dynamic textfield with a variable "textBox" u can then state :
_level0.textBox = _level0.Done;

bbp
02-19-2002, 11:26 AM
hi,
thanx for the reply. yes, you would have thought that you could just pick up the variable from where the movie was loaded. i'll give it another go. i was jsut wondering if i was doing anything really stupid.
- bbp
:confused:

Ricod
02-19-2002, 11:49 AM
Well, it was more the loadVariables I was worried about. With loadMovie, it should be no problem accessing the variable. If u loaded it into _level1, u should be able to get it. Path being _level1.done;
If u loaded it into an mc, let's say "container", the path would be _level0.container.done;
So, no. You're not doing anything stupid. :)