Flash CS3 Documentation |
|||
| Using ActionScript 3.0 Components > Using the UI Components > Using the Slider | |||
The Slider component lets a user select a value by sliding a graphical thumb between the end points of a track that corresponds to a range of values. You can use a slider to allow a user to choose a value such as a number or a percentage, for example. You can also use ActionScript to cause the slider's value to influence the behavior of a second object. For example, you could associate the slider with a picture and shrink it or enlarge it based on the relative position, or value, of the slider's thumb.
The current value of the Slider is determined by the thumb's relative location between the end points of the track or the Slider's minimum and maximum values.
The Slider allows for a continuous range of values between its minimum and maximum values, but you can also set the snapInterval parameter to specify intervals between the minimum and maximum value. A Slider can show tick marks, which are independent of the slider's assigned values, at specified intervals along the track.
The slider has a horizontal orientation by default, but you can give it a vertical orientation by setting the value of the direction parameter to vertical. The slider track stretches from end to end and the tick marks are placed from left to right just above the track.
Flash CS3
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/9.0/main/00000464.html