# External Username & Password

**URL:** <https://forum.kirupa.com/t/external-username-password/9202>\
**Category:** flash\
**Created:** [December 6, 2002, 10:45pm UTC](https://forum.kirupa.com/t/external-username-password/9202 "2002-12-06T22:45:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisbees1](https://avatars.discourse-cdn.com/v4/letter/c/a3d4f5/32.png) [@chrisbees1](https://forum.kirupa.com/u/chrisbees1)\
**Post date:** [December 6, 2002, 10:45pm UTC](https://forum.kirupa.com/t/external-username-password/9202/1 "2002-12-06T22:45:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 6, 2002, 11:00pm UTC](https://forum.kirupa.com/t/external-username-password/9202/2 "2002-12-06T23:00:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 6, 2002, 11:03pm UTC](https://forum.kirupa.com/t/external-username-password/9202/3 "2002-12-06T23:03:30Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 7, 2002, 9:27pm UTC](https://forum.kirupa.com/t/external-username-password/9202/4 "2002-12-07T21:27:15Z")

</div>

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.
