NumericStepper class

Inheritance UIObject > UIComponent > NumericStepper

ActionScript Class Name mx.controls.NumericStepper

The properties of the NumericStepper class allow you to add indicate the minimum and maximum step values, the unit amount for each step, and the current value of the step at runtime.

Setting a property of the NumericStepper class with ActionScript overrides the parameter of the same name set in the Property inspector or Component Inspector panel.

The NumericStepper component uses the FocusManager to override the default Flash Player focus rectangle and draw a custom focus rectangle with rounded corners. For more information, see Creating custom focus navigation.

Each component class has a version property which is a class property. Class properties are only available on the class itself. The version property returns a string that indicates the version of the component. To access the version property, use the following code:

trace(mx.controls.NumericStepper.version);

Note: The following code returns undefined: trace(myNumericStepperInstance.version);.

Method summary for the NumericStepper class

Inherits all properties from UIObject class and UIComponent class.

Property summary for the NumericStepper class

Property

Description

NumericStepper.maximum

A number indicating the maximum range value.

NumericStepper.minimum

A number indicating the minimum range value.

NumericStepper.nextValue

A number indicating the next sequential value. This property is read-only.

NumericStepper.previousValue

A number indicating the previous sequential value. This property is read-only.

NumericStepper.stepSize

A number indicating the unit of change for each step.

NumericStepper.value

A number indicating the current value of the stepper.

Inherits all properties from UIObject class and UIComponent class.

Event summary for the NumericStepper class

Event

Description

NumericStepper.change

Triggered when the value of the step changes.

Inherits all properties from UIObject class and UIComponent class.