Packagecom.pblabs.rendering2D.ui
Classpublic class PBScrollBar
InheritancePBScrollBar Inheritance flash.display.Sprite

Simple Scroll Bar for use in creating simple UIs. Change properties and call refresh() for them to take effect.



Public Properties
 PropertyDefined By
  extents : Rectangle
Location and size of label, relative to parent.
PBScrollBar
  progress : Number
PBScrollBar
  tf : TextField
PBScrollBar
Protected Properties
 PropertyDefined By
  _dragExtents : Rectangle
PBScrollBar
  _extents : Rectangle
PBScrollBar
  _tf : TextField
PBScrollBar
  _thumb : Sprite
PBScrollBar
  _track : Sprite
PBScrollBar
Public Methods
 MethodDefined By
  
PBScrollBar
  
refresh():void
Applies all changes and updates appearance of the scroll bar.
PBScrollBar
Protected Methods
 MethodDefined By
  
PBScrollBar
  
PBScrollBar
  
init():void
PBScrollBar
  
onDragging(event:Event):void
PBScrollBar
  
onMouseUp(event:MouseEvent):void
PBScrollBar
  
onThumbDown(event:MouseEvent):void
PBScrollBar
  
onTrackClick(event:MouseEvent):void
PBScrollBar
  
PBScrollBar
  
PBScrollBar
  
PBScrollBar
Property Detail
_dragExtentsproperty
protected var _dragExtents:Rectangle

_extentsproperty 
protected var _extents:Rectangle

_tfproperty 
protected var _tf:TextField

_thumbproperty 
protected var _thumb:Sprite

_trackproperty 
protected var _track:Sprite

extentsproperty 
extents:Rectangle

Location and size of label, relative to parent.


Implementation
    public function get extents():Rectangle
    public function set extents(value:Rectangle):void
progressproperty 
progress:Number


Implementation
    public function get progress():Number
    public function set progress(value:Number):void
tfproperty 
tf:TextField


Implementation
    public function get tf():TextField
    public function set tf(value:TextField):void
Constructor Detail
PBScrollBar()Constructor
public function PBScrollBar()



Method Detail
addListeners()method
protected function addListeners():void

calcThumbProgress()method 
protected function calcThumbProgress():void

init()method 
protected function init():void

onDragging()method 
protected function onDragging(event:Event):void

Parameters

event:Event

onMouseUp()method 
protected function onMouseUp(event:MouseEvent):void

Parameters

event:MouseEvent

onThumbDown()method 
protected function onThumbDown(event:MouseEvent):void

Parameters

event:MouseEvent

onTrackClick()method 
protected function onTrackClick(event:MouseEvent):void

Parameters

event:MouseEvent

refresh()method 
public function refresh():void

Applies all changes and updates appearance of the scroll bar. We have this as an explicit function call so that there isn't any overhead if many properties are changed.

scrollTextField()method 
protected function scrollTextField():void

startDragging()method 
protected function startDragging():void

stopDragging()method 
protected function stopDragging():void