Packageflexlib.controls
Classpublic class HSlider
InheritanceHSlider Inheritance ExtendedSlider Inheritance SliderBase Inheritance mx.core.UIComponent

An alternative to the HSlider control included in the Flex framework. This version of the HSlider allows you to drag the region between the thumbs, if the slider has mutliple thumbs. If there is more than one thumb then the region between the leftmost thumb and the rightmost thumb is draggable.

To use this control an enable the draggable regions between the thumbs you need to set the thumbCount to something greater than 1, otherwise this control will work exactly like the original HSlider.

MXML Syntaxexpanded Hide MXML Syntax

The <flexlib:HSlider> tag inherits all of the tag attributes of its superclass, and adds the following tag attribute:

  <flexlib:HSlider
    Styles
    dataTipPlacement="top"
  />
  

See also

mx.controls.HSlider
flexlib.controls.VSlider
flexlib.baseClasses.SliderBase


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
 InheriteddragHitArea : UIComponent
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
 InheritedlockRegionsWhileDragging : 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
 InheritedhighlightHitArea : UIComponent
ExtendedSlider
Public Methods
 MethodDefined by
  
Constructor.
HSlider
 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
 Inherited
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
 Inherited
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
  
dataTipPlacement
Type: String   CSS Inheritance: no
The location of the data tip relative to the thumb. Possible values are "left", "right", "top", and "bottom". The default value is "top".
HSlider
 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
Constructor detail
HSlider()constructor
public function HSlider()

Constructor.