Login for multiple passwords?

Hi – Please help!

I’m working on creating a login system using ActionScripts, for multiple passwords. By this time, I am a bit turned around :hangover:, although my ActionScripting is pretty limited anyway.

Here is what I’m testing (bottom of the page):
www.fantastic-machine.com

I want the “client login” text to fade to white, and then take the client to their unique client page (getURL (penina/index.htm))

I tried adding complexity to the sample on the Kirupa site, as well as another simple script I picked up from wpdfd.com (www.wpdfd.com/editorial/wpd0401a.htm). I liked the wpdfd.com absence of a button, so the script simply begins when the text in the box is correct. Or it should.

At one point I had it working for a single password. As soon as I added the second password, things stopped working.

I am guessing that my targeting is messed up, but maybe my syntax is wrong, too.

I am trying to use something like this:

if (inputPassword == "alice") {
    gotoAndPlay ("correct");
} else if (inputPassword == "bob") {
    gotoAndPlay ("correct");
}

“inputPassword” is the instance name for the input text box.
“correct” is the frame lable for the start of the fading text animation.

In the last frame, I’ve added script that states:

if (inputPassword == "alice") {
    getURL ("alice/index.htm)
} else if (inputPassword == "bob") {
    getURL ("bob/index.htm)
}

I don’t know if I am targeting incorrectly (or shouldn’t try targeting at all), and I’m not sure whether this is the way to set up a series of conditions - with the idea that I can add and take away more “else if” commands as I add and remove clients/projects.

Thanks for taking the time to read all this!