I am trying to figure out how to load a .txt file in to a dynamic text box. and I am using the Kirupa tutorial.
http://www.kirupa.com/developer/mx/multiple_dynamictext.htm
But for some reason my text files arent loading.
this is the code on the buttons ment to be linking the to newsBox but its not working :diss:
on (release) {
loadText = new loadVars();
loadText.load("text1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}
and here is what I have made so far