Posted by & filed under Actionscript.

Today I started working on a new daily animation piece which required a scroller. One thing led to another and I started writing a scroller class in Actionscript 3.0 working with Flash Professional Public Alpha. I wanted a scroller which could attach itself to any graphic and create two instance on each side of the original and then scroll either to the left or the right. For best results the graphic will have to the same size as the stage and an empty MovieClip can be used to position the resulting scroller on the screen.

After a lot of fiddling around I found that using the EnterFrame event would result in jerky scrolling so I started using the new Timer class in AS 3.0 and that gave better results although the is still some jerkiness. You can see in the test below, use the arrow keys to change the parameters.

If anyone is interested in the source, drop me a line.

scroller_as3.zip

One Response to “Smooth(er) Timer-based Flash Scroller AS3.0”

  1. intto77

    hi
    i am interested in the source

    give me the soruce to my mail.

    sent to me. plz.

    very thanks you.