dcsimg
A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Scrolling text

  1. #1
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101

    Scrolling text

    Hey guys, i know this one has been asked loads of times but never for an AS3 Script.

    I basicly need to create a horizontal ticker script, the script should read in values from an XML document and then for each item it should scroll it across the page (btw it is shown on top of a playing flash file that loops)

    I can do the XML Parsing easily but cant figure out how to do the scrolling text anyone have any ideas or references for me to look at.


    Cheera

  2. #2
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You can use the Timer class or the ENTER_FRAME event.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  3. #3
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101
    Totally lost, i would normally do a MC and make it scroll but cant do it in AS3

  4. #4
    Mod cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    If you have a Movieclip mc with text then just do:
    mc.addEventListener(Event.ENTER_FRAME, myTicker);
    function myTicker(e:Event):void
    {
    e.currentTarget.x +=1;
    }

    You need to incorporate the XML values.
    - The right of the People to create Flash movies shall not be infringed. -
    | www.Flashscript.biz | Flashscript Biz Classes/Components |

  5. #5
    Senior Member
    Join Date
    Sep 2004
    Location
    West Mids, UK
    Posts
    101
    AS3 is totaly different from AS1 and 2 is there any reference materials you can suggest or books so I can learn it again

    I forgot to add how would I reference the text file from within the MC would I still do mc.textfile.htmltext ?
    Last edited by neomaximus2k; 02-24-2008 at 05:39 AM.

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center