NumericStepper.nextValue

Availability

Flash Player 6 (6.0.79.0).

Edition

Flash MX 2004.

Usage

numericStepperInstance.nextValue

Description

Property (read-only); the next sequential value. This property can contain a number of up to three decimal places.

Example

The following example sets the initial value of the NumericStepper component instance to -6 and sets the stepSize property to 3. It then displays the value of the nextValue property in the Output panel. You should see the same value when you click the up arrow on the stepper.

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.stepSize = 3;
my_nstep.minimum = -6;
my_nstep.maximum = 12;
my_nstep.value = my_nstep.minimum;
trace(my_nstep.nextValue); // -3

See also

NumericStepper.previousValue


Flash CS3