MrMJS
08-02-2009, 10:25 AM
hello
i am using flash cs4 with action script 2.0... basic movie where you enter a password to be taken to a hidden webpage.
frame one i use this action script
stop();
password = "";
frame 1 i have input text field with password behavior and a variable of password
frame 1 I have a button with no instance name using this action script...
on (release, keyPress "<Enter>") {
if (password eq "inthelight") {
getURL("http://www.hiddenpage.html");
}else {
gotoAndStop("wrong");
}
}
if wrong password is entered you are taken to "wrong" frame in timeline.
the problem is no matter what password I use or if I leave the textfiled blank it takes me to the "wrong" lable in the timelime NOT the hidden webpage.....
anyone see what I am doing wrong??
i am using flash cs4 with action script 2.0... basic movie where you enter a password to be taken to a hidden webpage.
frame one i use this action script
stop();
password = "";
frame 1 i have input text field with password behavior and a variable of password
frame 1 I have a button with no instance name using this action script...
on (release, keyPress "<Enter>") {
if (password eq "inthelight") {
getURL("http://www.hiddenpage.html");
}else {
gotoAndStop("wrong");
}
}
if wrong password is entered you are taken to "wrong" frame in timeline.
the problem is no matter what password I use or if I leave the textfiled blank it takes me to the "wrong" lable in the timelime NOT the hidden webpage.....
anyone see what I am doing wrong??