Package | flexlib.controls.sliderClasses |
Class | public class ExtendedSlider |
Inheritance | ExtendedSlider ![]() ![]() |
Subclasses | HSlider, VSlider |
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
Property | Defined by | ||
---|---|---|---|
![]() | allowThumbOverlap : Boolean = false
If set to
false , then each thumb can only be moved to the edge of
the adjacent thumb. | SliderBase | |
![]() | allowTrackClick : Boolean = true
Specifies whether clicking on the track will move the slider thumb.
| SliderBase | |
![]() | dataTipFormatFunction : Function
Callback function that formats the data tip text.
| SliderBase | |
![]() | direction : String
The orientation of the slider control.
| SliderBase | |
dragHitArea : UIComponent [read-only]
| ExtendedSlider | ||
![]() | labels : Array
An array of strings used for the slider labels.
| SliderBase | |
![]() | liveDragging : 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 | ||
![]() | maximum : Number
The maximum allowed value on the slider.
| SliderBase | |
![]() | minimum : Number
The minimum allowed value on the slider control.
| SliderBase | |
![]() | showDataTip : Boolean = true
If set to
true , show a data tip during user interaction
containing the current value of the slider. | SliderBase | |
![]() | sliderDataTipClass : Class
A reference to the class to use for the data tip.
| SliderBase | |
![]() | sliderThumbClass : Class
A reference to the class to use for each thumb.
| SliderBase | |
![]() | snapInterval : Number
Specifies the increment value of the slider thumb
as the user moves the thumb.
| SliderBase | |
![]() | thumbCount : int
The number of thumbs allowed on the slider.
| SliderBase | |
![]() | tickInterval : Number
The spacing of the tick marks relative to the
maximum value
of the control. | SliderBase | |
![]() | tickValues : Array
The positions of the tick marks on the slider.
| SliderBase | |
![]() | value : Number
Contains the position of the thumb, and is a number between the
minimum and maximum properties. | SliderBase | |
![]() | values : Array
An array of values for each thumb when
thumbCount
is greater than 1. | SliderBase |
Property | Defined by | ||
---|---|---|---|
highlightHitArea : UIComponent | ExtendedSlider |
Method | Defined by | ||
---|---|---|---|
Constructor
| ExtendedSlider | ||
![]() |
getThumbAt(index:int):SliderThumb
Returns the thumb object at the given index.
| SliderBase | |
![]() |
setThumbValueAt(index:int, value:Number):void
This method sets the value of a slider thumb, and updates the display.
| SliderBase |
Method | Defined by | ||
---|---|---|---|
createChildren():void
Overridden to create the draggable region and perform some initialization tasks.
| ExtendedSlider | ||
![]() |
measure():void
Calculates the amount of space that the component takes up.
| SliderBase | |
positionDataTip(thumb:Object):void
Overridden to allow for multiple dataTips.
| ExtendedSlider | ||
![]() |
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Positions the elements of the control.
| SliderBase |
dragHitArea | property |
dragHitArea:UIComponent
[read-only]Implementation
public function get dragHitArea():UIComponent
highlightHitArea | property |
protected var highlightHitArea:UIComponent
lockRegionsWhileDragging | property |
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.
ExtendedSlider | () | constructor |
public function ExtendedSlider()
Constructor
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.
Parametersthumb:Object |