danjar
07-21-2001, 06:09 AM
I'm trying to load some variables into a dynamic text field on the click of a button with a php script, it works but only on the second click.
I've read a few other places that this is probably because the movie executes the line where it passes the variables to the text box before it's had time to receive them..
I then tried a while loop to wait for the variable and that just made the movie hang for a while until it produced a message saying that a script in the movie is slowing it down..
does anyone have any suggestions on how to structure my script?
here's my dodgey script.. (ie not the one that works)
---------------------------
on (release) {
var auth;
auth = "wait";
loadVariablesNum ("login.php", 0);
while (auth =="wait") {
status = "waiting";
}
set (status, auth);
}
I've read a few other places that this is probably because the movie executes the line where it passes the variables to the text box before it's had time to receive them..
I then tried a while loop to wait for the variable and that just made the movie hang for a while until it produced a message saying that a script in the movie is slowing it down..
does anyone have any suggestions on how to structure my script?
here's my dodgey script.. (ie not the one that works)
---------------------------
on (release) {
var auth;
auth = "wait";
loadVariablesNum ("login.php", 0);
while (auth =="wait") {
status = "waiting";
}
set (status, auth);
}