PDA

View Full Version : Flash to fast for ASP-query


Roscom
11-26-2001, 02:55 PM
Hi

I'm working on a X-mas-presentation for a big client. It's nescessery to interact with a database (password). The point is, it takes some time for the asp-file to send back the required data from the database. Meanwhile the actionscript in Flash has already proceeded, which means it's taking the wrong actions, based on its ignorance of some variables which did not yet arrive from asp.
I tried to insert a loop which would 'wait' for the right value.. didn't succeed. How can I do it?

action script:

on (release)
{
_root.Success = "0";
_root.pass = "0";
_root.trans = "0";

loadVariables ("login.asp", "_root", "GET");

'''' Here should be a loop, or a delay, or whatever...

if (pass == 1)
{
gotoAndPlay ("Scene 2", 1);
} else {
gotoAndStop (2);
}

}

Thanks in advance
mike

Jeremy Severson
11-26-2001, 08:06 PM
try this:


on (release)
{
_root.Success = 0;
_root.pass = 0;
_root.trans = 0;

loadVariables ("login.asp", _root, "GET");

'''' Here should be a loop, or a delay, or whatever...

if (pass == 1)
{
gotoAndPlay ("Scene 2", 1);
} else {
gotoAndStop (2);
}

}

If this doesn't work try using GET instead of POST