Packageflexlib.controls.sliderClasses
Classpublic class ExtendedSlider
InheritanceExtendedSlider Inheritance SliderBase Inheritance mx.core.UIComponent
Subclasses HSlider, VSlider

An extension of the base Slider class that adds a draggable region between the thumbs. <p>The user can drag the highlight space between the thumbs and it will drag each of the thumbs all at once. It also displays dataTips for all the thumbs at the same time.</p>

See also

mx.controls.sliderClasses.Slider


Public Properties
 PropertyDefined By
 InheritedallowThumbOverlap : Boolean = false
If set to false, then each thumb can only be moved to the edge of the adjacent thumb.
SliderBase
 InheritedallowTrackClick : Boolean = true
Specifies whether clicking on the track will move the slider thumb.
SliderBase
 InheriteddataTipFormatFunction : Function
Callback function that formats the data tip text.
SliderBase
 Inheriteddirection : String
The orientation of the slider control.
SliderBase
  dragHitArea : UIComponent
[read-only]
ExtendedSlider
 Inheritedlabels : Array
An array of strings used for the slider labels.
SliderBase
 InheritedliveDragging : Boolean = false
Specifies whether live dragging is enabled for the slider.
SliderBase
  lockRegionsWhileDragging : Boolean = false
If this prperty is true then when you drag the draggable region between two thumbs the thumbs will always keep their same distance between each other, even when you drag the region to the left or right edges of the track.
ExtendedSlider
 Inheritedmaximum : Number
The maximum allowed value on the slider.
SliderBase
 Inheritedminimum : Number
The minimum allowed value on the slider control.
SliderBase
 InheritedshowDataTip : Boolean = true
If set to true, show a data tip during user interaction containing the current value of the slider.
SliderBase
 InheritedsliderDataTipClass : Class
A reference to the class to use for the data tip.
SliderBase
 InheritedsliderThumbClass : Class
A reference to the class to use for each thumb.
SliderBase
 InheritedsnapInterval : Number
Specifies the increment value of the slider thumb as the user moves the thumb.
SliderBase
 InheritedthumbCount : int
The number of thumbs allowed on the slider.
SliderBase
 InheritedtickInterval : Number
The spacing of the tick marks relative to the maximum value of the control.
SliderBase
 InheritedtickValues : Array
The positions of the tick marks on the slider.
SliderBase
 Inheritedvalue : Number
Contains the position of the thumb, and is a number between the minimum and maximum properties.
SliderBase
 Inheritedvalues : Array
An array of values for each thumb when thumbCount is greater than 1.
SliderBase
Protected Properties
 PropertyDefined By
  highlightHitArea : UIComponent
ExtendedSlider
 InheritedthumbStyleFilters : Object
[read-only] Set of styles to pass from the Slider to the thumbs.
SliderBase
Public Methods
 MethodDefined By
  
Constructor
ExtendedSlider
 Inherited
Returns the thumb object at the given index.
SliderBase
 Inherited
setThumbValueAt(index:int, value:Number):void
This method sets the value of a slider thumb, and updates the display.
SliderBase
Protected Methods
 MethodDefined By
  
[override] Overridden to create the draggable region and perform some initialization tasks.
ExtendedSlider
 Inherited
measure():void
[override] Calculates the amount of space that the component takes up.
SliderBase
  
positionDataTip(thumb:Object):void
[override] Overridden to allow for multiple dataTips.
ExtendedSlider
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
[override] Positions the elements of the control.
SliderBase
Events
 Event Summary Defined By
 InheritedDispatched when the slider changes value due to mouse or keyboard interaction.SliderBase
 InheritedDispatched when the slider's thumb is pressed and then moved by the mouse.SliderBase
 InheritedDispatched when the slider's thumb is pressed, meaning the user presses the mouse button over the thumb.SliderBase
 InheritedDispatched when the slider's thumb is released, meaning the user releases the mouse button after a thumbPress event.SliderBase
Styles
 Style Description Defined By
 InheritedType: uint Format: Color CSS Inheritance: no
The color of the black section of the border.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The offset, in pixels, of the data tip relative to the thumb.
SliderBase
 InheritedType: int CSS Inheritance: no
Number of decimal places to use for the data tip text.
SliderBase
 InheritedType: String CSS Inheritance: no
The name of the style declaration to use for the data tip.
SliderBase
 InheritedType: Boolean CSS Inheritance: no
Invert the direction of the thumbs.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The y-position offset (if direction is horizontal) or x-position offset (if direction is vertical) of the labels relative to the track.
SliderBase
 InheritedType: String CSS Inheritance: no
The name of the style to use for the slider label.
SliderBase
 InheritedType: Boolean CSS Inheritance: no
Specifies whether to enable track highlighting between thumbs (or a single thumb and the beginning of the track).
SliderBase
 InheritedType: Number Format: Time CSS Inheritance: no
Duration in milliseconds for the sliding animation when you click on the track to move a thumb.
SliderBase
 InheritedType: Function CSS Inheritance: no
Tweening function used by the sliding animation when you click on the track to move a thumb.
SliderBase
 InheritedType: Class CSS Inheritance: no
The skin for the slider thumb disabled state.
SliderBase
 InheritedType: Class CSS Inheritance: no
The skin for the slider thumb down state.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The y-position offset (if direction is horizontal) or x-position offset (if direction is vertical) of the thumb relative to the track.
SliderBase
 InheritedType: Class CSS Inheritance: no
The skin for the slider thumb over state.
SliderBase
 InheritedType: Class CSS Inheritance: no
The default skin for the slider thumb.
SliderBase
 InheritedType: Class CSS Inheritance: no
The skin for the slider thumb up state.
SliderBase
 InheritedType: uint Format: Color CSS Inheritance: no
The color of the tick marks.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The length in pixels of the tick marks.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The y-position offset (if direction is horizontal) or x-position offset (if direction is vertical) of the tick marks relative to the track.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The thickness in pixels of the tick marks.
SliderBase
 InheritedType: Array Format: Color CSS Inheritance: no
The colors of the track, as an array of two colors.
SliderBase
 InheritedType: Class CSS Inheritance: no
The skin for the slider track when it is selected.
SliderBase
 InheritedType: Number Format: Length CSS Inheritance: no
The size of the track margins, in pixels.
SliderBase
 InheritedType: Class CSS Inheritance: no
The skin for the slider track.
SliderBase
Property Detail
dragHitAreaproperty
dragHitArea:UIComponent  [read-only]


Implementation
    public function get dragHitArea():UIComponent
highlightHitAreaproperty 
protected var highlightHitArea:UIComponent

lockRegionsWhileDraggingproperty 
public var lockRegionsWhileDragging:Boolean = false

If this prperty is true then when you drag the draggable region between two thumbs the thumbs will always keep their same distance between each other, even when you drag the region to the left or right edges of the track. If set to false then when you drag the region to the edges of the track the region itself will begin to resize. It's a little hard to explain, just try it out.

Constructor Detail
ExtendedSlider()Constructor
public function ExtendedSlider()

Constructor

Method Detail
createChildren()method
override protected function createChildren():void

Overridden to create the draggable region and perform some initialization tasks.

positionDataTip()method 
override protected function positionDataTip(thumb:Object):void

Overridden to allow for multiple dataTips.

Parameters

thumb:Object