hello.. Im making a small log in movie clip. It checks a script to validate the Username and Password. I use LoadVariables to send the values of the text boxes to the script.
Then i use to getURL to redirect the movie clip to the next page depending of whether the user is valid or not.
My problem comes in the beginning. I have to press the "submit" button twice to get the actionScript to run.
Can anyone help with my dilemma?
Here's the code:
on (press, keyPress "<Enter>"
{
loadVariablesNum ("flash", 0, "POST"
;
if (retVal eq "valid"
{
getURL ("start", "_self", "POST"
;
}
}
Thanks in advance,
JoLo
Then i use to getURL to redirect the movie clip to the next page depending of whether the user is valid or not.
My problem comes in the beginning. I have to press the "submit" button twice to get the actionScript to run.
Can anyone help with my dilemma?
Here's the code:
on (press, keyPress "<Enter>"
loadVariablesNum ("flash", 0, "POST"
if (retVal eq "valid"
getURL ("start", "_self", "POST"
}
}
Thanks in advance,
JoLo