I am trying to figure out how to tween a dynamic text field. My developer has written a part of the website I'm working on to output a text file and they want me to import the text file (which I can do) and have it scroll (bottom to top) through the contents (names, etc).
I know you can't tween the field, you have to put it in an MC (which I've named 'winners') and tween the MC, but I can't get it to work.
Here's the code I'm using:
myData = new LoadVars();
myData.onLoad = function() {
myHeadline_txt.htmlText = this.headline;
myText_txt.htmlText = this.content;
};
myData.load("/flash/text.txt");
stop();
I know you can't tween the field, you have to put it in an MC (which I've named 'winners') and tween the MC, but I can't get it to work.
Here's the code I'm using:
myData = new LoadVars();
myData.onLoad = function() {
myHeadline_txt.htmlText = this.headline;
myText_txt.htmlText = this.content;
};
myData.load("/flash/text.txt");
stop();