PDA

View Full Version : loadvariables from php


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);
}

Jesse
07-21-2001, 10:03 AM
you'll have to make it a frame's based loop rather than a scripted loop. see the tutorial on scripted loops which explains that they can't be used for these purposes. also see the tutorial on loadVariables interaction if you haven't already.