Event of a scroll.
new ScrollEvent()public function ScrollEvent(source:ScrollBarModel, scroller:Object, scrolled:Number, ratio:Number, position:Number, isRefresh:Boolean)Create a new ScrollEvent.
source | The event source. |
scroller | The object changing the scroll. |
scrolled | The number of pixel scrolled. |
ratio | The current ratio after the scroll. |
position | The current position after the scroll. |
isRefresh | Indicates if the event is only for the refresh. |
public function isRefresh(Void):Boolean
Get if the current ScrollEvent is generated
only for a refresh action.
true if this is a refresh event.
public function getScroller(Void):ObjectGet the object that is scrolling the current source.
This value let you retrieve which object has been used to perform the scroll.
The scroller.
public function getScrollValue(Void):NumberGet the scrolled pixels.
The scrolled pixels.
public function getRatio(Void):NumberGet the current ratio of the content.
The ratio.