i have a box similar to a credit card scanning box. to enter the site, it requires the user to enter “566404663” (that is “long_gone” on the numerical/alphabetical keypad) then click the enter key. when the user clicks on the enter key, it takes him to the site.
PROBLEM: when the user clicks enter, reguardless of what the user entered, it takes him to the site. i want it to only go to the site if the user enters “566404663” and clicks enter.
this is my actionscript for the button:
on (release) {
if (display = “566404663”) {
getURL(“http://www.geocities.com/taikobou_20/index.htm”, “_blank”);
} else {
displayStatus =“0”;
}
}
can you please help me re-write this actionscript so that when the user clicks “566404663” and clicks on enter that it takes the user to the site and if the user enters anything other than “566404663” and clicks on enter that it would reset the display to 0?
check out the link to see the credit card scanning box:
http://www.geocities.com/taikobou_20/creditbox.swf
thanks so much for your time.
Alex