all groups > flash actionscript > march 2005 >
You're in the

flash actionscript

group:

loaded text



loaded text SUPA JINX
3/27/2005 8:10:55 PM
flash actionscript: The following script,

loadText = new LoadVars();
loadText.load("contents/data4.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
title.htmlText = this.title;
content.htmlText = this.content;
};
works when used on the main timeline. But when I place it in a movie the text
isn't visible. The scroll bar works the length of the document ,at least I
assume. Any suggestions?
Re: loaded text kglad
3/27/2005 8:25:29 PM
you have an incorrect path to your textfields when you place that code in a
movieclip. to remedy, try:

loadText = new LoadVars();
loadText.load("contents/data4.txt");
//creating the loadVarsText function
loadText.onLoad = function() {
_root.title.htmlText = this.title;
_root.content.htmlText = this.content;
};
AddThis Social Bookmark Button