# Multiple externally loaded txt files - works offline but not online?

**URL:** <https://forum.kirupa.com/t/multiple-externally-loaded-txt-files-works-offline-but-not-online/223516>\
**Category:** Uncategorized\
**Created:** [April 23, 2007, 2:59pm UTC](https://forum.kirupa.com/t/multiple-externally-loaded-txt-files-works-offline-but-not-online/223516 "2007-04-23T14:59:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnnybaby](https://avatars.discourse-cdn.com/v4/letter/j/f475e1/32.png) [@johnnybaby](https://forum.kirupa.com/u/johnnybaby)\
**Post date:** [April 23, 2007, 2:59pm UTC](https://forum.kirupa.com/t/multiple-externally-loaded-txt-files-works-offline-but-not-online/223516/1 "2007-04-23T14:59:08Z")

</div>

Hi guys !  
Really confused with this one ! - I am loading 2 external text files into my SWF…  
I believe that my action script is correct as it works pefect offline…  
However as soon as I uploaded it to my webspace, both text boxes have the “undefined” text sitting there…  
The problem doesn’t exsist when I only have 1 external text file loaded… but more than 1 I get the problem !

Any ideas ?? I’d be really grateful !

//load 1st text file

myData1 = new LoadVars();  
myData1.onLoad = function() {  
myText\_txt1.html=true;  
myText\_txt1.htmlText = this.content;  
};  
myData1.load(“textfiles/artist\_of\_the\_week\_content.txt”);

//load 2nd text file

myData2 = new LoadVars();  
myData2.onLoad = function() {  
myText\_txt2.html=true;  
myText\_txt2.htmlText = this.content2;  
var myformat:TextFormat = new TextFormat();  
myformat.tabStops = [300];

};  
myData2.load(“textfiles/artist\_of\_the\_week\_heading.txt”);

stop();
