|
-
(AS2) Password system not working?
I've googled on how to use the password system, I tried that but it didn't work. When I type in the correct password, it should go to the key "menu" but when I typed in the wrong password, it still goes to the key with the correct password. Here's my coding for the button:
Code:
on(release){
if (passw eq "pass", "password", "cookies"){
gotoAndStop("menu")
}else{
gotoAndStop("credits")
}
}
I'm certain I put my input textbox in the variable-'passw' but I can't seem to make the wrong password entered go to a different frame other than the frame "menu". Any help, please?
-
Senior Member
try doing one-by-one test, e.g. if((passw == "pass") || (passw == "password") || (passw == "cookies")) { ...
-
 Originally Posted by realMakc
try doing one-by-one test, e.g. if((passw == "pass") || (passw == "password") || (passw == "cookies")) { ...
I tried doing what you suggested, but when I type in the correct password it still goes to the keyframe 'credits', but not the keyframe 'menu'. Thanks for the help, anyway!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|