# Loading multiable var's from a txt file using loadvars();

**URL:** <https://forum.kirupa.com/t/loading-multiable-vars-from-a-txt-file-using-loadvars/227817>\
**Category:** flash\
**Created:** [June 2, 2007, 3:55pm UTC](https://forum.kirupa.com/t/loading-multiable-vars-from-a-txt-file-using-loadvars/227817 "2007-06-02T15:55:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dragoonslayer32](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@dragoonslayer32](https://forum.kirupa.com/u/dragoonslayer32)\
**Post date:** [June 2, 2007, 3:55pm UTC](https://forum.kirupa.com/t/loading-multiable-vars-from-a-txt-file-using-loadvars/227817/1 "2007-06-02T15:55:29Z")

</div>

Okay the problem is i have 2 dynamic text box’s reading from the same txt file  
but if i put 2 in the same text file i get undefined in the second box

Frame 1 Layer Action’s

```auto
myData = new LoadVars();
myData.onLoad = function() {
myDeck1_list.html=true;
myDeck1_list.htmlText = this.deck1List;
};
myData.load("myDeck1.txt");

myData = new LoadVars();
myData.onLoad = function() {
myDeck1_name.html=true;
myDeck1_name.htmlText = this.deck1name;
};
myData.load("myDeck1.txt");

```

From TXT File

```auto
deck1name=Test

deck1List=1Test

```

Dynamic boxe’s

Box 1 instance: myDeck1\_name  
Box 2 instance: myDeck1\_list

So can anyone plz tell me whats going on here?  
(im sure i got everything named and labeled right

since if i delete 1 of the codes for the box’s it works  
but if i leave alone the botom box is always undefined

And i know this is my first post and it shouldent be one asking for something  
But plz help

P.S. It’s gonna be a deck keeper for MTG (im sure alot of people here dont like it but making stuff ill want to use is how i learn ☹ )

\<b\> Edit: \</b\> \<u\>Im a 99% complete AS newb and read that script from a tutorial and tutorial didnt explain on how to do what im trying to do or if it’s posiable\</u\>
