Packagecom.gestureworks.cml.element
Classpublic class ScrollBar
InheritanceScrollBar Inheritance TouchContainer Inheritance TouchContainerFactory Inheritance TouchSprite Inheritance flash.display.Sprite

The ScrollBar creates an interactive scroll bar. Given a corresponding content measurement, the scroll bar shows a thumb scaled to the difference between the content and actual scroll size. The ScrollBar then dispatches position events when moved. See also: ScrollPane



Public Properties
 PropertyDefined By
 Inherited_$height : Number = 0
TouchSprite
 Inherited_$rotation : Number = 0
TouchSprite
 Inherited$rotation : Number
TouchSprite
 Inherited_$scaleX : Number = 1
TouchSprite
 Inherited$scaleX : Number
TouchSprite
 Inherited_$scaleY : Number = 1
TouchSprite
 Inherited$scaleY : Number
TouchSprite
 Inherited$transformPoint : Point
TouchSprite
 Inherited_$width : Number = 0
TouchSprite
 Inherited_$x : Number = 0
TouchSprite
 Inherited$x : Number
TouchSprite
 Inherited_$y : Number = 0
TouchSprite
 Inherited$y : Number
TouchSprite
 InheritedautoShuffle : Boolean
autoshuffles
TouchContainerFactory
 InheritedbroadcastTarget : Boolean
TouchSprite
  buttonAlpha : Number
The color of the button's background.
ScrollBar
  buttonFill : uint
The color of the button's background.
ScrollBar
  buttonVisible : Boolean
The color of the button's background.
ScrollBar
 InheritedchildList : ChildList
[read-only] returns the childlist
TouchContainerFactory
 Inheritedclass_ : String
Object's css class;
TouchContainerFactory
 InheritedclassName : String
sets the class name of displayobject
TouchContainerFactory
 InheritedcloneExclusions : Vector.<String>
[read-only] Returns a list of properties to exclude when cloning this object
TouchContainer
 InheritedclusterBubbling : Boolean
Allows touch points from a childclusters to copy into container touch objects in the local parent child display list stack.
TouchSprite
 InheritedclusterEvents : Boolean
Determins whether clusterEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedclusterID : int
TouchSprite
 InheritedcmlIndex : int
sets the cml index
TouchContainerFactory
 Inheritedcml_item : Boolean
TouchSprite
 InheritedcO : ClusterObject
TouchSprite
  contentHeight : Number
The height of the content that needs to be scrolled.
ScrollBar
  contentWidth : Number
The width of the content that needs to be scrolled;
ScrollBar
  cornerHeight : Number
Sets part of the corner radius for the ellipse used to round the rectangle of the thumb.
ScrollBar
  cornerWidth : Number
Sets part of the corner radius for the ellipse used to round the rectangle of the thumb.
ScrollBar
 InheriteddebugDisplay : Boolean
TouchSprite
 InheriteddeltaFilterOn : Boolean
Determins whether filtering is applied to the delta values.
TouchSprite
 InheriteddimensionsTo : String
sets the dimensions of touchcontainer
TouchContainerFactory
 InheriteddisableAffineTransform : Boolean
Determins whether internal (native) transformations are affine (dynamically centered) on the touchSprite.
TouchSprite
 InheriteddisableNativeTransform : Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
TouchSprite
 InheriteddN : Number
TouchSprite
 InheriteddropShadow : Boolean
Sets the drop shadow effect
TouchContainerFactory
  fill : uint
The scrollbar fill (background color).
ScrollBar
 InheritedGESTRELIST_UPDATE : String = gestureList update
[static]
TouchSprite
 InheritedgestureEventComplete : Boolean
Indicates weather all gestureEvents have been completed on the touchSprite.
TouchSprite
 InheritedgestureEventRelease : Boolean
Indicates whether all touch points have been released on the touchSprite.
TouchSprite
 InheritedgestureEvents : Boolean
Determins whether gestureEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedgestureEventStart : Boolean
Indicates whether any gestureEvents have been started on the touchSprite.
TouchSprite
 InheritedgestureFilters : Boolean
TouchSprite
 InheritedgestureList : Object
TouchSprite
 InheritedgestureReleaseInertia : Boolean
Determins whether release inertia is given to gestureEvents on the touchSprite.
TouchSprite
 InheritedgestureTouchInertia : Boolean
Determins whether touch inertia is processed on the touchSprite.
TouchSprite
 Inherited_gestureTweenOn : Boolean = false
TouchSprite
 InheritedgestureTweenOn : Boolean
TouchSprite
 InheritedgO : GestureListObject
TouchSprite
 Inheritedgroup : String
TouchContainerFactory
  height : Number
[override]
ScrollBar
 Inheritedid : String
sets childlist id
TouchContainerFactory
  invertDrag : Boolean = false
ScrollBar
 Inheritedlayout : *
speciffies the type of layout
TouchContainerFactory
 InheritedlayoutComplete : Function
Sets the function to call when the layout is complete
TouchContainer
 InheritedlayoutList : Dictionary
TouchContainer
 InheritedlayoutUpdate : Function
Sets the function to call when the layout updates
TouchContainer
  loaded : Boolean
[read-only] Checks to see if the element is loaded.
ScrollBar
 InheritedmaxScale : Number
This method is called after class initialization.
TouchContainerFactory
 InheritedminScale : Number
This method is called after class initialization.
TouchContainerFactory
 InheritedmouseChildren : Boolean
[override] sets the mousechildren value to true or false.
TouchContainerFactory
  movementRail : Number
ScrollBar
 InheritedN : int
TouchSprite
 InheritednestedTransform : Boolean
TouchSprite
  orientation : String
Designates the orientation of the scrollbar, "horizontal" or "vertical"
ScrollBar
 Inheritedoutline_alpha : Number
sets the alpha of outline
TouchContainerFactory
 Inheritedoutline_color : Number
sets the color of outline
TouchContainerFactory
 Inheritedoutline_joint : String
TODO
TouchContainerFactory
 InheritedoutlineOn : String
specifies the outline of container to true or false
TouchContainerFactory
 Inheritedoutline_stroke : int
sets the line stroke of outline
TouchContainerFactory
 InheritedpointArray : Vector.<PointObject>
[read-only]
TouchSprite
 InheritedpointCount : int
TouchSprite
 InheritedpropertyStates : Array
Deprecated: Please Use state
TouchContainerFactory
  railGraphic : Graphic
ScrollBar
  railTouch : TouchContainer
ScrollBar
 Inheritedscale : Number
Scales display object
TouchContainer
  scrollBtn1 : Graphic
ScrollBar
  scrollBtn2 : Graphic
ScrollBar
  scrollPosition : Number
The position of the scroll thumb on the rail.
ScrollBar
  shape : String
Sets the shape of the thumb, either "rectangle", or "roundRectangle".
ScrollBar
 InheritedsO : StrokeObject
TouchSprite
 Inheritedstate : Array
property states array
TouchContainerFactory
 Inheritedtargeting : Boolean
Turns off manual ALL targeting control, defaults to a simple hit test targeting model with exclusive target clustering
TouchSprite
 InheritedtargetList : Array
Allows touch and gesture events to explicitly target a group of defined touch objects which can be outside of the local parent child display list stack
TouchSprite
 InheritedtargetObject : Object
Allows touch and gesture events to explicitly target a touch object this can be outside the local parent child display list stack
TouchSprite
 InheritedtargetParent : Boolean
Allows touch and gesture events to explicitly target the parent touch object
TouchSprite
 Inheritedtc : TouchCluster
TouchSprite
 Inheritedtd : TouchDebugDisplay
TouchSprite
 Inheritedtg : TouchGesture
TouchSprite
  thumb : Graphic
ScrollBar
  thumbFill : uint
The color of the central thumb that slides up and down the scrollbar.
ScrollBar
  thumbPosition : Number
[write-only] This sets the thumbPosition, this is not to be accessed externally in CML or used in Actionscript, it is solely here for the ScrollPane class to reach when content is dragged.
ScrollBar
  thumbTouch : TouchContainer
ScrollBar
 InheritedtiO : TimelineObject
TouchSprite
  touchBtn1 : TouchContainer
ScrollBar
  touchBtn2 : TouchContainer
ScrollBar
 InheritedtouchChildren : Boolean
TouchSprite
 InheritedtouchObjectID : int
[read-only]
TouchSprite
 Inheritedtp : TouchPipeline
TouchSprite
 InheritedtraceDebugModeOn : Boolean
TouchSprite
 InheritedtransformComplete : Boolean
TouchSprite
 InheritedtransformEventComplete : Boolean
TouchSprite
 InheritedtransformEvents : Boolean
Determins whether transformEvents are processed and dispatched on the touchSprite.
TouchSprite
 InheritedtransformEventStart : Boolean
TouchSprite
 InheritedtransformGestureVectors : Boolean
Determins whether transformations are handled internally (natively) on the touchSprite.
TouchSprite
 InheritedtransformStart : Boolean
TouchSprite
 InheritedtrO : TransformObject
TouchSprite
 Inheritedtt : TouchTransform
TouchSprite
  width : Number
[override]
ScrollBar
 Inheritedx_lock : Boolean
TouchSprite
 Inheritedy_lock : Boolean
TouchSprite
Protected Properties
 PropertyDefined By
 InheritedcmlGestureList : Object
TouchContainerFactory
Public Methods
 MethodDefined By
  
Constructor
ScrollBar
 Inherited
TODO
TouchContainerFactory
 Inherited
method searches the child and adds to the list
TouchContainerFactory
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list
TouchContainer
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
[override] Registers event listeners.
TouchSprite
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
TouchContainer
 Inherited
childToList(id:String, child:*):void
child appended to the childlist
TouchContainerFactory
  
clone():*
[override]
ScrollBar
  
ScrollBar
  
[override] CML display callback Initialisation
ScrollBar
  
dispose():void
[override] Dispose method
ScrollBar
 Inherited
hideIndex(index:int):void
hides child list index
TouchContainer
 Inherited
hideKey(key:String):void
hides childlist key visibility
TouchContainer
  
init():void
[override] Initialisation method
ScrollBar
 Inherited
makeGestureList(value:XMLList):Object
TODO
TouchContainerFactory
 Inherited
onTouchDown(event:TouchEvent, target:* = null):void
decides how to assign the captured touch point to a cluster can pass to parent, an explicit target, an explicit list or targets or a passed to any touch object in the local display stack.
TouchSprite
 Inherited
parseCML(cml:XMLList):XMLList
[override] Parse cml for local layouts.
TouchContainer
 Inherited
postparseCML(cml:XMLList):void
postparse method
TouchContainerFactory
  
resize(newDimension:Number):void
Used by the ScrollPane class to resize the scrollbar when scrollable content is scaled larger or smaller.
ScrollBar
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
TouchContainer
 Inherited
method sets the dimensions of each child
TouchContainerFactory
 Inherited
showIndex(index:int):void
shows index of the child list
TouchContainer
 Inherited
showKey(key:String):void
shows the child list key visibility
TouchContainer
 Inherited
TouchSprite
 Inherited
TouchSprite
 Inherited
TouchSprite
 Inherited
Registers/unregisters event handlers depending on the active modes
TouchSprite
 Inherited
TouchSprite
 Inherited
updateProperties(state:Number = 0):void
update properties of child
TouchContainerFactory
 Inherited
TouchSprite
 Inherited
TouchSprite
Protected Methods
 MethodDefined By
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
randomMinMax(min:Number, max:Number):Number
This method is called after class initialization.
TouchContainerFactory
 Inherited
This method is called after class initialization.
TouchContainerFactory
 Inherited
thumbUpdate(event:Event):void
This method is called after class initialization.
TouchContainerFactory
Property Detail
buttonAlphaproperty
buttonAlpha:Number

The color of the button's background.


Implementation
    public function get buttonAlpha():Number
    public function set buttonAlpha(value:Number):void
buttonFillproperty 
buttonFill:uint

The color of the button's background.


Implementation
    public function get buttonFill():uint
    public function set buttonFill(value:uint):void
buttonVisibleproperty 
buttonVisible:Boolean

The color of the button's background.


Implementation
    public function get buttonVisible():Boolean
    public function set buttonVisible(value:Boolean):void
contentHeightproperty 
contentHeight:Number

The height of the content that needs to be scrolled.


Implementation
    public function get contentHeight():Number
    public function set contentHeight(value:Number):void
contentWidthproperty 
contentWidth:Number

The width of the content that needs to be scrolled;


Implementation
    public function get contentWidth():Number
    public function set contentWidth(value:Number):void
cornerHeightproperty 
cornerHeight:Number

Sets part of the corner radius for the ellipse used to round the rectangle of the thumb. Shape must be "roundRectangle" for this to be used.

The default value is 10.


Implementation
    public function get cornerHeight():Number
    public function set cornerHeight(value:Number):void
cornerWidthproperty 
cornerWidth:Number

Sets part of the corner radius for the ellipse used to round the rectangle of the thumb. Shape must be "roundRectangle" for this to be used.

The default value is 10.


Implementation
    public function get cornerWidth():Number
    public function set cornerWidth(value:Number):void
fillproperty 
fill:uint

The scrollbar fill (background color).


Implementation
    public function get fill():uint
    public function set fill(value:uint):void
heightproperty 
height:Number[override]


Implementation
    public function get height():Number
    public function set height(value:Number):void
invertDragproperty 
public var invertDrag:Boolean = false

loadedproperty 
loaded:Boolean  [read-only]

Checks to see if the element is loaded. Setter is only for cloning to be available to set a scrollbar is loaded, do not set this variable.


Implementation
    public function get loaded():Boolean
movementRailproperty 
public var movementRail:Number

orientationproperty 
orientation:String

Designates the orientation of the scrollbar, "horizontal" or "vertical"

The default value is vertical.


Implementation
    public function get orientation():String
    public function set orientation(value:String):void
railGraphicproperty 
public var railGraphic:Graphic

railTouchproperty 
public var railTouch:TouchContainer

scrollBtn1property 
public var scrollBtn1:Graphic

scrollBtn2property 
public var scrollBtn2:Graphic

scrollPositionproperty 
scrollPosition:Number

The position of the scroll thumb on the rail. This is to dispatch events to the ScrollPane class to set the position of the content, it should not be accessed externally.


Implementation
    public function get scrollPosition():Number
    public function set scrollPosition(value:Number):void
shapeproperty 
shape:String

Sets the shape of the thumb, either "rectangle", or "roundRectangle".

The default value is roundRectangle.


Implementation
    public function get shape():String
    public function set shape(value:String):void
thumbproperty 
public var thumb:Graphic

thumbFillproperty 
thumbFill:uint

The color of the central thumb that slides up and down the scrollbar. If no color is set, it will default to match the button styles.


Implementation
    public function get thumbFill():uint
    public function set thumbFill(value:uint):void
thumbPositionproperty 
thumbPosition:Number  [write-only]

This sets the thumbPosition, this is not to be accessed externally in CML or used in Actionscript, it is solely here for the ScrollPane class to reach when content is dragged.


Implementation
    public function set thumbPosition(value:Number):void
thumbTouchproperty 
public var thumbTouch:TouchContainer

touchBtn1property 
public var touchBtn1:TouchContainer

touchBtn2property 
public var touchBtn2:TouchContainer

widthproperty 
width:Number[override]


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
ScrollBar()Constructor
public function ScrollBar()

Constructor

Method Detail
clone()method
override public function clone():*

Returns
*
createEvents()method 
public function createEvents():void

displayComplete()method 
override public function displayComplete():void

CML display callback Initialisation

dispose()method 
override public function dispose():void

Dispose method

init()method 
override public function init():void

Initialisation method

resize()method 
public function resize(newDimension:Number):void

Used by the ScrollPane class to resize the scrollbar when scrollable content is scaled larger or smaller.

Parameters

newDimension:Number