ActionScript 2.0 Components Language Reference |
|
|
|
| NumericStepper component > NumericStepper.value | |||
Flash Player 6 (6.0.79.0).
Flash MX 2004.
numericStepperInstance.value
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.
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
|
|
|
|