User Guide
986 NumericStepper component
NumericStepper.value
Availability
Flash Player 6 (6.0.79.0).
Edition
Flash MX 2004.
Usage
numericStepperInstance.value
Description
Property; the current value displayed in the text area of the stepper. The value is not assigned
if it does not correspond to the stepper’s range and step increment as defined in the
stepSize
property. This property can contain a number of up to three decimal places.
Example
The following example sets the current value of the NumericStepper instance to 10 and sends
the value to the Output panel.
Drag an instance of the NumericStepper component onto the Stage, and enter the instance
name
my_nstep in the Property inspector. Add the following code to Frame 1 of the timeline:
/**
Requires:
- NumericStepper component on Stage (instance name: my_nstep)
*/
var my_nstep:mx.controls.NumericStepper;
my_nstep.value = 10;
my_nstep.maximum = 100;
trace(my_nstep.value); // 10