# Login for multiple passwords?

**URL:** <https://forum.kirupa.com/t/login-for-multiple-passwords/85758>\
**Category:** flash\
**Created:** [April 7, 2005, 7:57am UTC](https://forum.kirupa.com/t/login-for-multiple-passwords/85758 "2005-04-07T07:57:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SylvanLady](https://avatars.discourse-cdn.com/v4/letter/s/839c29/32.png) [@SylvanLady](https://forum.kirupa.com/u/SylvanLady)\
**Post date:** [April 7, 2005, 7:57am UTC](https://forum.kirupa.com/t/login-for-multiple-passwords/85758/1 "2005-04-07T07:57:55Z")

</div>

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](http://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](http://wpdfd.com) ([www.wpdfd.com/editorial/wpd0401a.htm](http://www.wpdfd.com/editorial/wpd0401a.htm)). I liked the [wpdfd.com](http://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:

```auto
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:

```auto
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!
