A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Passwords ID's logins HELP please.

  1. #1
    Junior Member
    Join Date
    Mar 2001
    Posts
    5
    i have been going about in circles...
    the passwords are just numbers for for example one password could be "178"
    I have used
    on (release, keyPress "<Enter>") {
    if (pass eq "444") {
    gotoAndPlay ("correct",1);
    } else if (pass ne "444") {
    gotoAndPlay ("wrong",1);
    }
    that does one fine however i need more can i say something like if(pass eq "444" or "111" or "222")
    can you do that??? i dont know how to say it.

    If you can help Thanks.

  2. #2
    Junior Member
    Join Date
    Jun 2001
    Posts
    17
    You would have to say (pass eq "444" or pass eq "111" or pass eq "222")
    You don't have to use the else if (pass ne "444") command you can just use an else command and it should work.

  3. #3
    Senior Member
    Join Date
    Mar 2001
    Posts
    123
    You can also use if(pass eq"111" || pass eq"222")
    || means or

    that should work.
    Good luck.

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