Groups | Blog | Home
all groups > flash actionscript > august 2006 >

flash actionscript : Passing a variable.


Mr Helpy mcHelpson
8/19/2006 11:41:58 PM
Okay, so I need to load a variable from the "container" (the variable is called
t_text0,t_text1,t_text2 etc.)
I neet to load it into a movieclip I create in the same for() loop, called
mp_1,mp_2,mp_3 etc...

So here is the code I have in there right now....
_root[mp_kV].varToLoad = "container.t_text"+j;
....but that just returns "container.t_text0" (or higher) and not the actual
variable stored in container.t_text0.

I tried...
_root[mp_kV].varToLoad = container["t_text"]+j;
...but that didn't pan out at all. (undefined)

Make sense?
kglad
8/20/2006 12:18:35 AM
try:





Mr Helpy mcHelpson
8/20/2006 12:47:25 AM
Mr Helpy mcHelpson
8/20/2006 9:04:17 PM
Okay, so I think the problem is with my loading of the php doc for its
variables. However, for some reason, the final variable in the strand of data
is read perfectly, and I can act upon it.

Is it possible that its reading as half strand / half number after its loaded?
And if so, does that mean I should parse the data in the php file, or (most
likely) am I just a moron and missing something simple?
AddThis Social Bookmark Button