I'm desparately looking for some help, since all this little scripting monster has caused me is a great deal of frustration and headache and nearly suicidal behavior!
The situation is as follows. In flash I've got a dynamic text field called "snd_main". There's absolutely no problem setting the value of the field using PHP. But when I want to use the value of that field (a couple of frames later) to do a DuplicateMovie, I can't!
The horrible thing is, that if I "hard-code" any actual value in the flash textfield and ommit the "loadVariablesNum(...)" part, I can actually use the snd_main value! How is this possible?
loadVariablesNum("http://localhost/load.php?code=mainmenu",0);
var str = root.system.menu.snd_main.toString();
list = str.split("|");
for (i=0; i<list.length; i++) {
tmpl = "template" add i;
duplicateMovieClip ("template", tmpl, i);
if (i==0) {
setProperty (tmpl, x, Number(getProperty(template, x)));
} else
{
setProperty (tmpl, x, Number(getProperty(template, x))+ Number((i)*((getProperty(template, width))+6)));
}
}
if ($code == "mainmenu") {
$main = "zero|one|two|three|four";
print "_root.system.menu.snd_main=".$main;
}