Packageorg.openPyro.controls
Classpublic class Slider
InheritanceSlider Inheritance UIControl Inheritance MeasurableControl Inheritance flash.display.Sprite



Public Properties
 PropertyDefined by
 InheritedbackgroundPainter : IPainter
UIControls can have a backgroundPainter object attached that is triggered everytime updateDisplayList is called.
UIControl
 InheritedcreationCompleteFired : Boolean
MeasurableControl
  direction : String
[read-only]
Slider
 InheriteddisplayListInvalidated : Boolean = true
Flag to mark a dirty displaylist.
MeasurableControl
 InheriteddragData : Object
UIControl
 InheriteddragEnabled : Boolean
UIControl
 InheriteddropEnabled : Boolean
UIControl
 InheritedexplicitWidth : Number
The height set in terms of actual pixels.
MeasurableControl
 InheritedforceInvalidateDisplayList : Boolean = false
MeasurableControl
 Inheritedheight : Number
Set/get the height of the control.
MeasurableControl
 InheritedincludeInLayout : Boolean
Specifies whether this control participates in the layout system in OpenPyro.
MeasurableControl
 Inheritedinitialized : Boolean = false
Property indicates whether a control has been initialized or not.
MeasurableControl
  isThumbPressed : Boolean
[read-only] Returns a boolean value indicating whether the thumb button is currently pressed or not
Slider
  maximum : Number
Returns the maximum value for the slider
Slider
 InheritedmaximumHeight : Number
MeasurableControl
 InheritedmaximumWidth : Number
MeasurableControl
 InheritedmeasuredHeight : Number
Overrides the set measuredHeight property from MeasurableControl to invalidate children (UIControl acknowledges that it can have children whose dimensions are based on its own)
UIControl
 InheritedmeasuredWidth : Number
Overrides the set measuredWidth property from MeasurableControl to invalidate children (UIControl acknowledges that it can have children whose dimensions are based on its own)
UIControl
  minimum : Number
Returns the minimum value for the slider
Slider
  minThumbHeight : Number
[write-only]
Slider
 InheritedmouseActionsDisabled : Boolean
MeasurableControl
 InheritedneedsMeasurement : Boolean = true
Only setting percent width/heights changes the needsMeasurement flag which makes its parent container call measure on it.
MeasurableControl
 Inheritedpadding : Padding
Paddings define the unusable space within UIContainers that should not be used for measurement and layout.
UIControl
 InheritedparentContainer : UIControl
MeasurableControl
 InheritedpercentHeight : Number
MeasurableControl
 InheritedpercentUnusedHeight : Number
Set/get the percent height.
MeasurableControl
 InheritedpercentUnusedWidth : Number
Set/get the percent width.
MeasurableControl
 InheritedpercentWidth : Number
MeasurableControl
 InheritedsizeInvalidated : Boolean = false
The flag to mark that the control's size has been invalidated.
MeasurableControl
  skin : ISkin
[write-only]
Slider
 InheritedskinnedControl : UIControl
UIControl
 InheritedstyleName : String
Defines the skin this component is registered to.
UIControl
  thumbButton : Button
Slider
  thumbButtonHeight : Number
Slider
  thumbButtonWidth : Number
Slider
  thumbSkin : ISkin
[write-only]
Slider
 InheritedtoolTip : *
UIControl
  trackSkin : DisplayObject
[write-only]
Slider
 InheritedusesMeasurementStrategy : Boolean
This property defines whether measure() will be called during validateSize() or not.
MeasurableControl
  value : Number
Slider
 Inheritedvisible : Boolean
MeasurableControl
 Inheritedwidth : Number
Set/get the width of the control.
MeasurableControl
Protected Properties
 PropertyDefined by
 Inherited_backgroundPainter : IPainter
UIControl
  boundsRect : Rectangle
Slider
 Inherited_creationCompleteFired : Boolean = false
MeasurableControl
 Inherited_dimensionsChanged : Boolean = true
MeasurableControl
  _direction : String
Slider
 Inherited_dragEnabled : Boolean = false
UIControl
 Inherited_dropEnabled : Boolean = false
UIControl
 Inherited_explicitHeight : Number = NaN
MeasurableControl
 Inherited_explicitWidth : Number = NaN
MeasurableControl
 InheritedisMouseDown : Boolean = false
UIControl
  _isThumbPressed : Boolean = false
Slider
 Inherited_maximumHeight : Number = NaN
MeasurableControl
 Inherited_maximumWidth : Number = NaN
MeasurableControl
 Inherited_measuredHeight : Number = NaN
MeasurableControl
 Inherited_measuredWidth : Number = NaN
MeasurableControl
  _minThumbHeight : Number = 50
Slider
 Inherited_mouseActionsDisabled : Boolean = false
MeasurableControl
 Inherited_padding : Padding
UIControl
 Inherited_parentContainer : UIControl
MeasurableControl
 Inherited_percentHeight : Number
MeasurableControl
 Inherited_percentUnusedHeight : Number
MeasurableControl
 Inherited_percentUnusedWidth : Number
MeasurableControl
 Inherited_percentWidth : Number
MeasurableControl
 Inherited_skin : ISkin
UIControl
 Inherited_skinnedControl : UIControl
UIControl
 Inherited_styleName : String
UIControl
  _thumbButton : Button
Slider
  _thumbButtonHeight : Number = 20
Slider
  _thumbButtonWidth : Number = 20
Slider
  thumbButtonX : Number = 0
Slider
  thumbButtonY : Number = 0
Slider
  _thumbSkin : ISkin
Slider
 Inherited_toolTipData : *
UIControl
 InheritedtoolTipRenderer : Class
UIControl
  _trackSkin : DisplayObject
Slider
Public Methods
 MethodDefined by
  
Slider(direction:String)
Slider
 Inherited
addChild(child:DisplayObject):DisplayObject
UIControl
 Inherited
addChildAt(child:DisplayObject, index:int):DisplayObject
UIControl
 Inherited
MeasurableControl
 Inherited
Calls the queueValidateDisplayList if measure causes _dimensionsChanged to change to true.
UIControl
  
Slider
 Inherited
dispose():void
UIControl
 Inherited
UIControl
 Inherited
doOnAdded():void
[Temp] This function is called automatically by a parent UIControl if this is created as a child of a UIControl.
MeasurableControl
 Inherited
MeasurableControl
 Inherited
Returns the explicitly defined height or the measured height computed by the measure function.
MeasurableControl
 Inherited
Returns the explicitly defined width or the measured number computed by the measure function.
MeasurableControl
 Inherited
When measure is called, it uses the widthForMeasurement and heightForMeasurement to calculate the sizes for percent-dimension based children
UIControl
  
initialize():void
Slider
 Inherited
invalidateSize(event:PyroEvent = null):void
Marks itself dirty and waits till either the container to validateSize or validates itself at the next enterframe if it has no parent container.
MeasurableControl
 Inherited
isMouseOver(event:MouseEvent):Boolean
Utility function to check if a mouseEvent happened while the mouse was over the displayObject
MeasurableControl
 Inherited
measure():void
Measure is called during the validateSize if the needsmeasurement flag is set.
UIControl
  
onTrackSkinClick(event:MouseEvent):void
Slider
 Inherited
position(x:Number, y:Number):UIControl
UIControl
 Inherited
This function is called if the framework determines that dimensions of the control have changed.
MeasurableControl
 Inherited
UIControl
 Inherited
removeChild(d:DisplayObject):DisplayObject
UIControl
 Inherited
MeasurableControl
  
setRange(min:Number, max:Number):Slider
Utility function for setting the range of the Slider that returns reference to the slider instance itself for method chaining purposes.
Slider
  
setValue(v:Number):Slider
Utility function for setting the value of the slider and returning reference to the instance itself for chaining purposes.
Slider
 Inherited
size(w:*, h:*):UIControl
Convinience function for setting width and height in one call.
UIControl
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Slider
 Inherited
validateDisplayList(event:Event = null):void
validateDisplayList is called as a response to invalidateDisplayList.
MeasurableControl
  
validateSize():void
Slider
 Inherited
When measure is called, it uses the widthForMeasurement and heightForMeasurement to calculate the sizes for percent-dimension based children
UIControl
Protected Methods
 MethodDefined by
 Inherited
Calculates the measuredHeight property.
MeasurableControl
 Inherited
Calculates the measuredWidth property.
MeasurableControl
 Inherited
This is where the new children should be created and then added to the displaylist.
MeasurableControl
 Inherited
disableEvent(event:Event):void
MeasurableControl
 Inherited
dispatchDragStart(event:MouseEvent):void
UIControl
 Inherited
Dispatches the UpdateComplete event
MeasurableControl
 Inherited
While UIControls can be sized based on the dimensions of the parent container, if the explicit or percent dimension values are not specified, the UIControl can look at its children's dimensions and base its sizing off them.
UIControl
 Inherited
doQueuedValidateSize(event:Event):void
doQueueValidateSize is executed by the top level UIControl.
MeasurableControl
 Inherited
handlePreDragMouseDown(event:Event):void
This function is called if the UIControl instance is drag enabled and the user clicks the mouse down.
UIControl
 Inherited
MeasurableControl
 Inherited
onAddedToParent(event:Event):void
The event listener executed when this component has been added to the parent.
MeasurableControl
 Inherited
onSkinnedControlResize(event:Event):void
Event handler for when the UIControl is applied as a Skin and the control it is skinning is resized.
UIControl
Events
 EventSummaryDefined by
    Slider
 Inherited  UIControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
 Inherited  MeasurableControl
    Slider
 Inherited  MeasurableControl
Property detail
boundsRectproperty
protected var boundsRect:Rectangle
_directionproperty 
protected var _direction:String
directionproperty 
direction:String  [read-only]Implementation
    public function get direction():String
_isThumbPressedproperty 
protected var _isThumbPressed:Boolean = false
isThumbPressedproperty 
isThumbPressed:Boolean  [read-only]

Returns a boolean value indicating whether the thumb button is currently pressed or not

Implementation
    public function get isThumbPressed():Boolean
maximumproperty 
maximum:Number  [read-write]

Returns the maximum value for the slider

Implementation
    public function get maximum():Number
    public function set maximum(value:Number):void
minimumproperty 
minimum:Number  [read-write]

Returns the minimum value for the slider

Implementation
    public function get minimum():Number
    public function set minimum(value:Number):void
_minThumbHeightproperty 
protected var _minThumbHeight:Number = 50
minThumbHeightproperty 
minThumbHeight:Number  [write-only]Implementation
    public function set minThumbHeight(value:Number):void
skinproperty 
skin:ISkin  [write-only]Implementation
    public function set skin(value:ISkin):void
_thumbButtonproperty 
protected var _thumbButton:Button
thumbButtonproperty 
thumbButton:Button  [read-write]Implementation
    public function get thumbButton():Button
    public function set thumbButton(value:Button):void
_thumbButtonHeightproperty 
protected var _thumbButtonHeight:Number = 20
thumbButtonHeightproperty 
thumbButtonHeight:Number  [read-write]Implementation
    public function get thumbButtonHeight():Number
    public function set thumbButtonHeight(value:Number):void
_thumbButtonWidthproperty 
protected var _thumbButtonWidth:Number = 20
thumbButtonWidthproperty 
thumbButtonWidth:Number  [read-write]Implementation
    public function get thumbButtonWidth():Number
    public function set thumbButtonWidth(value:Number):void
thumbButtonXproperty 
protected var thumbButtonX:Number = 0
thumbButtonYproperty 
protected var thumbButtonY:Number = 0
_thumbSkinproperty 
protected var _thumbSkin:ISkin
thumbSkinproperty 
thumbSkin:ISkin  [write-only]Implementation
    public function set thumbSkin(value:ISkin):void
_trackSkinproperty 
protected var _trackSkin:DisplayObject
trackSkinproperty 
trackSkin:DisplayObject  [write-only]Implementation
    public function set trackSkin(value:DisplayObject):void
valueproperty 
value:Number  [read-write]Implementation
    public function get value():Number
    public function set value(value:Number):void
Constructor detail
Slider()constructor
public function Slider(direction:String)Parameters
direction:String
Method detail
dispatchScrollEvent()method
public function dispatchScrollEvent():void
initialize()method 
public override function initialize():void
onTrackSkinClick()method 
public function onTrackSkinClick(event:MouseEvent):voidParameters
event:MouseEvent
setRange()method 
public function setRange(min:Number, max:Number):Slider

Utility function for setting the range of the Slider that returns reference to the slider instance itself for method chaining purposes.

Parameters
min:Number
 
max:Number

Returns
Slider
setValue()method 
public function setValue(v:Number):Slider

Utility function for setting the value of the slider and returning reference to the instance itself for chaining purposes.

Parameters
v:Number

Returns
Slider
updateDisplayList()method 
public override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number
validateSize()method 
public override function validateSize():void
Event detail
changeevent 
Event object type: org.openPyro.controls.events.SliderEvent

thumbDragevent  
Event object type: org.openPyro.controls.events.SliderEvent