Problem with php to AS!

hello

From level 0 : I load a movie with loadMovieNum(“movie1.swf”, 1);

movie1 calls : loadVariablesNum(“add.php”, 0, “POST”);

the file add.php looks up for a variable in a data base and returns it to flash :
echo ("&variable_to_flash=$variable_from_php");

problem : it is impossible to view the variable_to_flash in the movie1.swf on the dynamique field VAR: variable_to_flash

BUT

on loading the movie1.swf to level 0 , it is possible to view the variable_to_flash in the movie1.swf on the dynamique field VAR: variable_to_flash

=> how can I view the variable_to_flash in the movie1.swf on level 1 ???

thanks for your help ! :slight_smile:

instead of loadVariablesNum(“add.php”, 0, “POST”);

use loadVariablesNum(“add.php”, this._level, “POST”);

or try LoadVars object

basically you are leading the vars in the _root scope which will not be available to loaded child movies. unless you give rights to the specefic domain