A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: (AS2) Password system not working?

  1. #1
    Junior Member
    Join Date
    May 2013
    Location
    New York
    Posts
    2

    (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?

  2. #2
    Senior Member realMakc's Avatar
    Join Date
    Oct 2002
    Posts
    923
    try doing one-by-one test, e.g. if((passw == "pass") || (passw == "password") || (passw == "cookies")) { ...
    who is this? a word of friendly advice: FFS stop using AS2

  3. #3
    Junior Member
    Join Date
    May 2013
    Location
    New York
    Posts
    2
    Quote Originally Posted by realMakc View Post
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center