HSlider - Adobe ActionScript® 3 (AS3 Flex) API ... - Adobe Help Center

Packagemx.controls
Classpublic class HSlider
InheritanceHSlider Inheritance Slider Inheritance UIComponent Inheritance FlexSprite Inheritance Sprite Inheritance DisplayObjectContainer Inheritance InteractiveObject Inheritance DisplayObject Inheritance EventDispatcher Inheritance Object
Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1
Starting with Flex 4.0, Adobe recommends that you use the spark.components.HSlider class as an alternative to this class.
The HSlider control lets users select a value by moving a slider thumb between the end points of the slider track. The current value of the slider is determined by the relative location of the thumb between the end points of the slider, corresponding to the slider's minimum and maximum values.

The slider may allow a continuous range of values between its minimum and maximum values or it may be restricted to values at specific intervals between the minimum and maximum value. It may show tick marks at specified intervals along the track. These tick marks are independent of the allowed values of the slider. The slider may also use a data tip to display its current value.

The HSlider control has a horizontal direction. The slider track stretches from left to right, and the labels and tick marks are placed at the top or bottom of the track.

The HSlider control has the following default characteristics:

CharacteristicDescription
Default size250 pixels wide, high enough to hold the slider and any associated labels
Minimum sizeNone
Maximum sizeNone
MXML SyntaxexpandedHide MXML Syntax

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

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

View the examples

More examples

Creating a slider controlUsing slider eventsUsing data tips

Learn more

HSlider and VSlider controlsKeyboard navigation

Related API Elements

mx.controls.VSlidermx.controls.sliderClasses.Slidermx.controls.sliderClasses.SliderThumbmx.controls.sliderClasses.SliderDataTipmx.controls.sliderClasses.SliderLabel

Từ khóa » Hslider