AS2 + AS3 scrollbar (Ease/Blur/OOP/Dynamic/Top+Bottom btn) by clarklin
A very handy and flexible scrollbar written for both Actionscript 2 + Actionscript 3. Fully customizable built on Object-oriented programing principles. Code is very neat. includes 6 pages of documentation.Updates
16/09/2009-a very important bug fix for as3 which had conflicting function names with as2.0 migration issues
15/09/2009
-classes have been renamed
-removed pixel breaker classes (mainly for mac users)
-example of how to attach the scrollbar using AS3 dynamically
-example of how to assign scrollbar to content at runtime
15/05/2009
- Scrollbar redone with new user interface
-much easier to use
-as2 + as3 versions implementation
-mouse wheel support
-supports multiple scrollbars with mousewheel for each content
26/01/2009
– Top/Bottom scroll buttons (show/hide)
– holding down on top/down buttons to continuously scroll
– Bug fixes / Usability updates / Code reduction
– comparitive AS2 and AS3 (AS3 was a port from AS2 with Migration changes only)
22/01/2009
– dynamic content blurring (on/off)
Features include
- Both AS2 + AS3 versions of the scrollbar included
- Scrollbar can be dynamically attached from library OR placed directly on stage
- Full configuration of scrollbar colour (scrollbar/ scroll button /over/out colours)
- Positioning of scrollbar with code or positioned by placement on stage
- Scrollbar height adjustments can be also done through code
- multiple easing styles (advanced programmatic animation )
- NO enterframe checks (memory efficient)
- Show/hide scrollbar functions
- mousewheel scrolling actions
- instant content position jumping
- Scrollbar resetting support
- Auto hiding support if content to scroll is less in height than mask
- Object-oriented approach using external classes
- Fully commented code
- Content Blurring (blur depends on amount of scroll)
Files include
The scrollbar has 2 versions: actionscript 2 (AS2) and Actionscript 3 (AS3).
- AS2 scrollbar classes/fla
- AS3 scrollbar classes/fla
- documentation/help files
Tweening Engine
Script uses the Tweener tweening engine (which is included, but can be found directly at the following location: http://hosted.zeh.com.br/tweener/docs/en-us/ NOTE : the tweening engine is easily interchangeable with others like Tweenlite (which was what the scrollbar was originally built on)
Note: the different easing equations that can be used are: http://hosted.zeh.com.br/tweener/docs/en-us/misc/transitions.html
- None – easeNone
- Quad – easeInQuad/ easeOutQuad/ easeInOutQuad/ easeOutInQuad
- Cubic – easeInCubic/ easeOutCubic/ easeInOutCubic/ easeOutInCubic
- Quart – easeInQuart/ easeOutQuart/ easeInOutQuart/ easeOutInQuart
- Quint – easeInQuint/ easeOutQuint/ easeInOutQuint/ easeOutInQuint
- Sine – easeInSine/ easeOutSine/ easeInOutSine/ easeOutInSine
- Circ – easeInCirc/ easeOutCirc/ easeInOutCirc/ easeOutInCirc
- Expo – easeInExpo/ easeOutExpo/ easeInOutExpo/ easeOutInExpo
- Elastic – easeInElastic/ easeOutElastic/ easeInOutElastic/ easeOutInElastic
- Back – easeInBack/ easeOutBack/ easeInOutBack/ easeOutInBack
- Bounce – easeInBounce/ easeOutBounce/ easeInOutBounce/ easeOutInBounce





