Represent a button that manage a ScrollBar by being clicked.
public function ScrollClickButton(button:MovieClip, scrollValue:Number, autoDesactivate:Boolean)Create a new ScrollClickButton.
button | The clip to set as button. |
scrollValue | The value to scroll. |
autoDesactivate | If the button should automatically activate/deactivate |
| Error | If button is null.
|
| Error | If scrollValue is null.
|
static public SPEED_SCROLL:Number [Read Only] autoScroll delay is over.
The scroll value can be adjusted with the
scrollValue variable.
Constant value : 40.
public scrollValue:NumberDetermine the speed of the scroll when the button is pressed.
public autoScroll:NumberBy default, this value is 400.
public autoDesactivate:Booleanpublic function setEnabled(value:Boolean):Void
Set if the ScrollDragButton is enabled or not.
value | true to enable the ScrollDragButton, false otherwise.
|
setEnabled() in ch.component.scrollbar.AbstractScrollBarManager
public function scrollPerformed(event:ScrollEvent):Void
Method called when a scroll is performed on a
ScrollBarModel.
event | The event object. |
public function toString(Void):StringRepresent the current instance into a String.
A String representing the ScrollClickButton instance.
toString() in ch.component.scrollbar.AbstractScrollBarManager