# Load multiple variables separated by enter - so difficult

**URL:** https://forum.kirupa.com/t/load-multiple-variables-separated-by-enter-so-difficult/270499
**Category:** flash
**Created:** [September 10, 2008, 3:41pm UTC](https://forum.kirupa.com/t/load-multiple-variables-separated-by-enter-so-difficult/270499 "2008-09-10T15:41:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pinino](https://avatars.discourse-cdn.com/v4/letter/p/f4b2a3/32.png) [@pinino](https://forum.kirupa.com/u/pinino)
#### Post date: [September 10, 2008, 3:41pm UTC](https://forum.kirupa.com/t/load-multiple-variables-separated-by-enter-so-difficult/270499/1 "2008-09-10T15:41:32Z")

</div>

Hi guys!

I have a very hard problem and and search and I try everything and nothing seems to work ![](http://forum.kirupa.com/uploads/kirupa/1799/6a24f1d926eff459.gif)

I need to make something like login component… but only with “number codes” (not USER and PASSWORD).  
The user must insert a codenumber (let’s say: “aHnjk68”), and, if this code number is in a txt file, then go to some frame, ok?  
Now, I use something like that (without using a TXT file):

[COLOR=green]on (release) {  
if (codenumber eq “YujK3” or codenumber eq “KienK7”) {  
\_level0.gotoAndPlay(215);  
gotoAndPlay(6);  
} else {  
error.play();  
stop();[/COLOR]

But this is very annoying because I have about 100 or more number codes, so I need to choose a “dinamic” way…

I need to make a TXT file (codenumber.txt) with a list of numbercodes separated by \<ENTER\>, like that:

**ansHyste  
WbCad46  
fhyeGtsr  
1JkksYsh**  
etc…

The question is:  
is there a way to make flash load or search for 1 of the numbercodes in the TXT?? And when flash find the value (or numbercode) then go to some frame.
