AS3 Scrollbar v2

Hey!

I did some adjustments on the AS3 Scrollbar, and added a new method.

The getter/setter method gap is used to control the space after the content. The default value is 0. If you set it to 100, for example, the content will scroll more than usual, and will be a gap between the end of the content and the mask. This can solve some spacement problems that sometimes happen.

Click here to see a simple demo.
Click here to download the new sample files.

TODO list
- Add the possibility of the scrollbar be horizontal
- Add blur functionality
- Better up the usage
- Make it more flexible
- Make the tween works independent, so you can adapt to any tween engine

Please, report me the bugs and suggestions.

See ya!

  1. lidadil says:

    Great work!
    I wasn’t able to use the drag if i’m using a 3d property of FP 10,
    so for example if i run the below

    TweenMax.to(this,.5,{rotationX:0,x:0,autoAlpha:1,ease:Quint.easeOut});
    The scroller _dragMc is not responding to the startDrag method.

    Many thanks

  2. Sandro Haag says:

    Hey lidadil, sorry the delay.
    This is a Flash problem, as you can see here: http://bugs.adobe.com/jira/browse/SDK-21769
    I will change the drag logic in the next version. You can fix this using a MOUSE_MOVE event, instead of startDrag, and check the bounds to create a drag.

    Thanks!

  1. There are no trackbacks for this post yet.

Leave a Reply