//create new instance of LoadVars object
myData = new LoadVars();
//define what to do with content once it has loaded
myData.onLoad = function() {
//the value of the "content" property is assigned to the text field
myText_txt.htmlText = this.content;
};
//now load the external file into the myData object
myData.load("mytext.txt");
stop();
//now load the external file into the myData object
myData.load("http://www.yoursite.com/pathfolder/wherethefile/is/at/mytext.txt");
Time to create page: 0.064 seconds