Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Auto-scroll dynamc text

    Hi,

    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.

    Thanks

  • #2
    New to the CF scene
    Join Date
    May 2008
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Can anyone help with this?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •