Easing Scrollbar Version 2 [swishmax component]

Dec 8 2009

Hello to all swishmax users and swishmax components users.
This is the second release of the famouse eScrollbar swishmax component:
eScrollBar (Easing ScrollBar).

About:

The new version includes:

  • Supports dynamic text scrolling (with a new API method)
  • New apperance to the default scrollbar
  • New parameter to allow initiating the scrollbar on start
  • Additional new API methods for developers
  • Code optimization

Public Api for eScrollBar Component:

eScrollBar swishmax component adds 3 new public functions you can use from anywhere in your swishmax project:

  • reload()
    You can use this function to reload the component so that all parameteres will be calculated.
    example:
    * Assuming the component’s name is (movie clip) : “eScrollBar”:
    eScrollBar.reload();
  • start()
    This function will start loading the scrollbar (to make it work…).
  • setText(your-text, type-of-text)
    * your-text: should be any string
    * type-of-text: if you want to use html content, then you should pass “html”, otherwise pass an empty string such as “”.

    This function will use the default textHolder text object to assign dynamic text properly so it can be scrolled. the reload function MUST be called after assigning dynamic text so the scrollbar will work properly.

As in version 1 of eScrollbar, you can style and change all elements with any colors and size you want. Make sure to keep the names (of the movieClips, Shapes etc..) as in the source component as well as the anchor points.
If you change the handle or the track bar – change the graphic shapes and align its _x and _y properties to 0 (zero).

Download eScrollbar version 2 swishmax component

Easing Scrollbar Version 2 version 2