RebelToRumble
Veteran X
Ok here's the lowdown...
I have two text fields, one is input, one is password.
Input is named UN, password is named PW.
I have a enter button that has an action script applied to it.
I want it to be able to have two users that are able to log onto whatever i end up putting it on...
The button's script is:
There are no syntax errors showing, but only the second username "username2" works, "username1" only goes straight to "wrong".
Here's the files i made:
http://rebel.fluxd.com/hosted/Help.swf
http://rebel.fluxd.com/hosted/Help.fla
Anyone know what's wrong so that both users can't work?
Im confused...the first user works when i take OUT the second users actionscript, but not when i put it in...
Thanks.
I have two text fields, one is input, one is password.
Input is named UN, password is named PW.
I have a enter button that has an action script applied to it.
I want it to be able to have two users that are able to log onto whatever i end up putting it on...
The button's script is:
Code:
on (release)
{
{
if (pw == "password1" && un == "username1")
{gotoAndPlay("username1");}
else
{gotoAndPlay("wrong");}
}
{
if (pw == "password2" && un == "username2")
{gotoAndPlay("username2");}
else
{gotoAndPlay("wrong");}
}
}
There are no syntax errors showing, but only the second username "username2" works, "username1" only goes straight to "wrong".
Here's the files i made:
http://rebel.fluxd.com/hosted/Help.swf
http://rebel.fluxd.com/hosted/Help.fla
Anyone know what's wrong so that both users can't work?
Im confused...the first user works when i take OUT the second users actionscript, but not when i put it in...
Thanks.