I have one password that works if this is added to a button.
How do I allow multiple passwords to be excepted?
this works for one password…
on (release, keyPress “<Enter>”) {
if (pass eq “jonsmith”) {
gotoAndPlay(60);
} else if (pass ne “jonsmith”) {
gotoAndPlay(“denied”, 2);
}
}
working on this one…
on (release, keyPress “<Enter>”) {
if (pass eq “123-123-123”,“231-231-231”,“321-321-321”) {
gotoAndPlay(60);
} else if (pass ne “123-123-123”) {
gotoAndPlay(“denied”, 2);
}
} else if (pass ne “231-231-231”) {
gotoAndPlay(“denied”, 2);
}
} else if (pass ne “321-321-321”) {
gotoAndPlay(“denied”, 2);
}
}