# External txt

**URL:** <https://forum.kirupa.com/t/external-txt/43269>\
**Category:** flash\
**Created:** [February 20, 2004, 2:54pm UTC](https://forum.kirupa.com/t/external-txt/43269 "2004-02-20T14:54:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Bicho](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@El\_Bicho](https://forum.kirupa.com/u/El_Bicho)\
**Post date:** [February 20, 2004, 2:54pm UTC](https://forum.kirupa.com/t/external-txt/43269/1 "2004-02-20T14:54:59Z")

</div>

I have a text file called “names.txt”. It has several variables called name1, name2… etc.

In my fla I have a text box called firstname where names should appear.

This is the code:

```auto

names = new loadVars();
names.load("names.txt");
button.onPress = function() {
	a++;
	firstname.text = names.eval("name"+a);
};

```

Nothing happens…

Any idea?

Thanks.
