View Full Version : Auto-scroll dynamc text

05-23-2008, 06:55 PM

I have an external txt file that loads into a dynamic text box via actionscript 3.0. The video is for a lobby display at my office which will display recent news. The news will be fed by the external txt file, and changed frequently. Since there could be lots of news on some days... and not so much on others, I decided it would be easiest to have the news scroll. Once it hits the bottom, I would like it to sit for a moment, then tell a parent movie clip to advance a frame.

Here is the as3 code I'm currently using:

var loader:URLLoader = new URLLoader();
loader.load(new URLRequest("news/photo.txt"));
loader.addEventListener(Event.COMPLETE, onComplete);
function onComplete(event:Event):void
external_txt.htmlText = event.target.data;


All this does is load the text. I can't find out how to make it scroll automatically with actionscript 3.0. If anyone can help with any aspect of this, I would greatly appreciate it.


05-24-2008, 09:02 PM
Can anyone help with this?