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

An extension of the base Slider class that adds a draggable region between the thumbs.

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.

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
Public Methods
 MethodDefined by
  
Constructor
ExtendedSlider
 Inherited
getThumbAt(index:int):SliderThumb
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
  
Overridden to create the draggable region and perform some initialization tasks.
ExtendedSlider
 Inherited
measure():void
Calculates the amount of space that the component takes up.
SliderBase
  
positionDataTip(thumb:Object):void
Overridden to allow for multiple dataTips.
ExtendedSlider
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Positions the elements of the control.
SliderBase
Events
 EventSummaryDefined by
 Inherited Dispatched when the slider changes value due to mouse or keyboard interaction.SliderBase
 Inherited Dispatched when the slider's thumb is pressed and then moved by the mouse.SliderBase
 Inherited Dispatched when the slider's thumb is pressed, meaning the user presses the mouse button over the thumb.SliderBase
 Inherited Dispatched when the slider's thumb is released, meaning the user releases the mouse button after a thumbPress event.SliderBase
Styles
 StyleDescriptionDefined by
 Inherited Type: uint   Format: Color   CSS Inheritance: no
The color of the black section of the border.
SliderBase
 Inherited Type: Number   Format: Length   CSS Inheritance: no
The offset, in pixels, of the data tip relative to the thumb.
SliderBase
 Inherited Type: int   CSS Inheritance: no
Number of decimal places to use for the data tip text.
SliderBase
 Inherited Type: String   CSS Inheritance: no
The name of the style declaration to use for the data tip.
SliderBase
 Inherited Type: Array   Format: Color   CSS Inheritance: no
Colors used to tint the slider thumb.
SliderBase
 Inherited Type: Boolean   CSS Inheritance: no
Invert the direction of the thumbs.
SliderBase
 Inherited Type: 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
 Inherited Type: String   CSS Inheritance: no
The name of the style to use for the slider label.
SliderBase
 Inherited Type: Boolean   CSS Inheritance: no
Specifies whether to enable track highlighting between thumbs (or a single thumb and the beginning of the track).
SliderBase
 Inherited Type: Number   Format: Time   CSS Inheritance: no
Duration in milliseconds for the sliding animation when you click on the track to move a thumb.
SliderBase
 Inherited Type: Function   CSS Inheritance: no
Tweening function used by the sliding animation when you click on the track to move a thumb.
SliderBase
 Inherited Type: Class   CSS Inheritance: no
The skin for the slider thumb disabled state.
SliderBase
 Inherited Type: Class   CSS Inheritance: no
The skin for the slider thumb down state.
SliderBase
 Inherited Type: 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
 Inherited Type: Class   CSS Inheritance: no
The skin for the slider thumb over state.
SliderBase
 Inherited Type: Class   CSS Inheritance: no
The skin for the slider thumb up state.
SliderBase
 Inherited Type: uint   Format: Color   CSS Inheritance: no
The color of the tick marks.
SliderBase
 Inherited Type: Number   Format: Length   CSS Inheritance: no
The length in pixels of the tick marks.
SliderBase
 Inherited Type: 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
 Inherited Type: Number   Format: Length   CSS Inheritance: no
The thickness in pixels of the tick marks.
SliderBase
 Inherited Type: Array   Format: Color   CSS Inheritance: no
The colors of the track, as an array of two colors.
SliderBase
 Inherited Type: Class   CSS Inheritance: no
The skin for the slider track when it is selected.
SliderBase
 Inherited Type: Number   Format: Length   CSS Inheritance: no
The size of the track margins, in pixels.
SliderBase
 Inherited Type: 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
protected override function createChildren():void

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

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

Overridden to allow for multiple dataTips.

Parameters
thumb:Object