# Loading txt into multiple dynamic text box problem

**URL:** <https://forum.kirupa.com/t/loading-txt-into-multiple-dynamic-text-box-problem/216023>\
**Category:** Uncategorized\
**Created:** [February 13, 2007, 2:17am UTC](https://forum.kirupa.com/t/loading-txt-into-multiple-dynamic-text-box-problem/216023 "2007-02-13T02:17:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![openface](https://avatars.discourse-cdn.com/v4/letter/o/5f8ce5/32.png) [@openface](https://forum.kirupa.com/u/openface)\
**Post date:** [February 13, 2007, 2:17am UTC](https://forum.kirupa.com/t/loading-txt-into-multiple-dynamic-text-box-problem/216023/1 "2007-02-13T02:17:46Z")

</div>

hi, i feel like this should be easy, but i’m having quite a time with it… i’m trying to load from one text file, formatted in the Shorts=blahblah&Standup=nownow&Tv=yaddayadda way to 3 text files with instance names of loadedInfo, loadedInfo2 and loadedInfo3 respectively, all are html text fields and need to link to frames (separate ones, but i’ll get into that later… that’s a little cart in front of the horse…). i am using this actionscript to call the files in:

myData = new LoadVars();  
myData.onLoad = function() {  
loadedInfo.htmlText = this.Shorts  
loadedInfo2.htmlText = this.Standup  
loadedInfo3.htmlText = [this.Tv](http://this.Tv)  
};  
myData.load(“videobuttons.txt”);

and am getting a syntax error message for the first line, the myData=new LoadVars bit… i have tried multiple ways of doing the myData method and only errors. seems like others have had success with this… any help? i’ve looked all over and have not found a solution…

part 2, for brave souls. so, from the txt file i want to load into separate frames (either 2 iframes or an iframe and a dynamic text field)… nothing i’ve tried with this has been working either. i think this is more of an html formatting issue. tried to add a line of javascript, but flash wasn’t having it.  
suggestions?  
thanks in advance…
