Hello all,
I have a little problem that is driving me nuts.
I set up a variable in php (print "t1=x&t2=y"
I've also tried it loading the variables through a txt file (t1=x&t2=y)
I load the variables in Flash:
loadVariablesNum("test.php", 0);
Funny enough, if I use a dynamic text field and use t1 or t2 as a varible it displays the value, which is ok.
The problem is that if I trace the variable or want to use that variable in an if statement it returns "undefined"
trace(t1);
or
if (t1 == x) {do something}
It's almost like I can only load variables to use in dynamic text fields and nothing else!!
I figure this is something really stupid that I'm missing, but I'm at the edge of insanity. Anyone knows what am I doing wrong?
Thanks a lot!
I have a little problem that is driving me nuts.
I set up a variable in php (print "t1=x&t2=y"
I've also tried it loading the variables through a txt file (t1=x&t2=y)
I load the variables in Flash:
loadVariablesNum("test.php", 0);
Funny enough, if I use a dynamic text field and use t1 or t2 as a varible it displays the value, which is ok.
The problem is that if I trace the variable or want to use that variable in an if statement it returns "undefined"
trace(t1);
or
if (t1 == x) {do something}
It's almost like I can only load variables to use in dynamic text fields and nothing else!!
I figure this is something really stupid that I'm missing, but I'm at the edge of insanity. Anyone knows what am I doing wrong?
Thanks a lot!