ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
fl.controls 

SliderDirection  - AS3 Flash

Packagefl.controls
Classpublic class SliderDirection
InheritanceSliderDirection Inheritance Object

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

The orientation of the Slider component.

Related API Elements



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  HORIZONTAL : String = "horizontal"
[static] Position the Slider component on the horizontal axis.
SliderDirection
  VERTICAL : String = "vertical"
[static] Position the Slider component on the vertical axis.
SliderDirection
Public Methods
 MethodDefined By
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Property Detail

HORIZONTAL

property
public static var HORIZONTAL:String = "horizontal"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

Position the Slider component on the horizontal axis.


Example  ( How to use this example )
The following example creates a horizontal slider:

import fl.controls.Slider;
import fl.controls.SliderDirection;

var hSlider:Slider = new Slider();
hSlider.direction = SliderDirection.HORIZONTAL;
hSlider.snapInterval = 1;
hSlider.tickInterval = hSlider.snapInterval;
hSlider.move(10, 10);
addChild(hSlider);

VERTICAL

property 
public static var VERTICAL:String = "vertical"

Language Version: ActionScript 3.0
Product Version: Flash CS3
Runtime Versions: Flash Player 9.0.28.0, AIR 1.0

Position the Slider component on the vertical axis.


Example  ( How to use this example )
The following example creates a vertical slider:

import fl.controls.Slider;
import fl.controls.SliderDirection;

var vSlider:Slider = new Slider();
vSlider.direction = SliderDirection.VERTICAL;
vSlider.snapInterval = 1;
vSlider.tickInterval = vSlider.snapInterval;
vSlider.move(30, 100);
addChild(vSlider);