Jan 14 2010

Auto Scrolling in Flex 4

Published by at 1:17 pm under Flex


In Flex 4 they have changed the scrollbar, it doesn’t have the scrollPosition property which can be used to set its position.

We have to access the verticalScrollposition through the viewport property of the scrollbar. Since this interface IViewport is implemented by groupbase, we can use any group to scroll which is pretty neat.

Here is the example and the code can be accessed by the viewsource url. Clicking on the start button will set the scroll in action.



I have used the scroller component but the same code will work with the VScrollbar, you just have to set the VGroup as its viewport and specify the dimensions of the viewport. I will post the code in a new blog post.


3 responses so far

3 Responses to “Auto Scrolling in Flex 4”

  1. Komalon 19 Apr 2012 at 3:13 am

    Hey, Thanks a lot for this code.You have saved a lot of time.
    I will be modifying it for my requirement where I do not want the scroll bar to be seen, but auto scroll should continue.

  2. Anonymouson 28 Dec 2012 at 9:55 am

    hi Nayan;

    How can i access the source code.

    Thanks
    M

  3. satishon 13 Apr 2013 at 3:52 pm

    Please post the code , thanks in advance!!!!

Trackback URI | Comments RSS

Leave a Reply