# Loading external txt file

**URL:** https://forum.kirupa.com/t/loading-external-txt-file/37923
**Category:** Uncategorized
**Created:** [December 16, 2003, 12:05am UTC](https://forum.kirupa.com/t/loading-external-txt-file/37923 "2003-12-16T00:05:45Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![swift7777](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@swift7777](https://forum.kirupa.com/u/swift7777)
#### Post date: [December 16, 2003, 12:05am UTC](https://forum.kirupa.com/t/loading-external-txt-file/37923/1 "2003-12-16T00:05:45Z")

</div>

I know I’m missing something real simple…

trying to load and external txt file from my server using dynamic text box and this script,

this.loadText = new loadVars();  
this.loadText.load(“text1.txt”);  
this.loadText.onLoad = function(success) {  
if (success) {  
// trace(success);  
newsBox.html = true;  
newsBox.htmlText = this.myNews;  
}  
};

the blogger is loaded into the root inside an empty movieclip.

by itself the swf works but when I upload the txt. file and the swf I get no text.

thanx 4 any help.

swift.:panda:
