# loadVars has become manyHours

**URL:** <https://forum.kirupa.com/t/loadvars-has-become-manyhours/144526>\
**Category:** Uncategorized\
**Created:** [April 14, 2005, 11:05pm UTC](https://forum.kirupa.com/t/loadvars-has-become-manyhours/144526 "2005-04-14T23:05:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tad](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@tad](https://forum.kirupa.com/u/tad)\
**Post date:** [April 14, 2005, 11:05pm UTC](https://forum.kirupa.com/t/loadvars-has-become-manyhours/144526/1 "2005-04-14T23:05:40Z")

</div>

Hi. Thank you for your help.  
I am using MX.  
I am simply trying to load an external .txt file.  
I have in my .fla attached, in the only frame of \_root.news\_events.scroll\_movie.main the following code I found in another post. I have used code from Flash Help, other posts on the forum, etc. and can’t get anything to work. I do appreciate your time. Thank you again…  
loadText = new LoadVars();  
loadText.load(“[http://www.globaldog.com/intro.txt](http://www.globaldog.com/intro.txt)”);  
loadText.onLoad = function() {  
myText.text = this.myText;  
};  
// I also tried:  
myTextvar = new LoadVars();  
myTextvar.load(“[http://www.globaldog.com/intro.txt](http://www.globaldog.com/intro.txt)”);  
myTextvar.onLoad = function(success) {

if (success) {

main.myText.html = true;  
main.myText.htmlText =  
this.myText;

} else {

trace(“Text not loaded”);

}

};  
//Also, if you know and could explain what the .html in the code immediately above has to do with anything. In the .zip including .fla, .swf and .txt files I downloaded from the post, there was no mention of or physical .html file, except just above.  
Have a great day…
