Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LoadVariables and getUrl in a Release Event

Status
Not open for further replies.

jolo70

Programmer
Mar 21, 2002
4
US
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 &quot;<Enter>&quot;) {
loadVariablesNum (&quot;flash&quot;, 0, &quot;POST&quot;);
if (retVal eq &quot;valid&quot;) {
getURL (&quot;start&quot;, &quot;_self&quot;, &quot;POST&quot;);
}
}

Thanks in advance,
JoLo
 
Changing the event does not make a difference. I've tried onPress and a combination of onRelease w/ onKeypress.

Nothing...
 
Tried GET instead of POST?

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top