External Username & Password

Hi im just wondering whether its possible to have a inputbox where you have to enter a certain word for it to take you where you want to access - a bit like a username and password using if, else commands. The difficulty with this thought is that i want the words that are needed to be entered in an external .txt file.

Sorry if i havent explained it very well but i hope u get the jist of things.

Thanks in advance, Chris

Do u want a list of usernames and passwords? Should a specific username be redirected to a specific page, etc. Please provide more info. :slight_smile:

well i want a username and password fields in my flash movie.

Yes there will be multiple usernames and passwords however the usernames and passwords must match - see my problem here?

Different usernames and passwords will load a different frame in a flash movie rather than a different url.

sorry for not providing enough information, chris

Well, here’s how I’d do it:

  1. Make a text file with this info:

&u1=username1
&p1=password1
&u2=username2
&p2=password2

and so on. Then in your movie, set it up to process and then when you do, load the variables from the text file, and then do some if logic:

if(password.text == p1 && username.text == u1) {
gotoAndPlay(“Scene_for_user_1”, 1);
}

else if(password.text == p2 && username.text == u2) {
gotoAndPlay(“Scene_for_user_2”, 1);
}

and so on. Double-check my syntax though because I’m not positive that password.text, etc. is correct. That’s the basic logic though (I think…)

Good luck.