Multi-User Login

ok - i’m experimenting with a multi-user login run by actionscript… heres my code:

(found in top layer of frame 1 - the only frame - function checkPassword is called upon later on push of a button)

fscommand(“showmenu”, “false”);
fscommand(“fullscreen”, “true”);
var user1 = “Testing”;
var user2 = “NMC”;
var pass1 = “justatest”;
var pass2 = “newmediacorps”;
function checkPassword() {
&nbsp &nbsp &nbsp &nbsp if (userName == user1 && userPass == pass1) {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp gotoAndStop(“next”);
&nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp else if (userName == user2 && userPass == pass2) {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp gotoAndStop(“FSmedia”);
&nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp else {
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp tellTarget(“denied”){
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp gotoAndPlay(2);
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }
&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp }

The problem is that no matter what you enter, it always displays the denied screen. I can’t figure this one out, and the guys on macromedia’s forums haven’t helped much…

Colin Ake