NumericStepper parameters

You can set the following authoring parameters for each NumericStepper instance in the Property inspector or in the Component inspector (Window > Component Inspector menu option):

maximum sets the maximum value that can be displayed in the stepper. The default value is 10. If you set a stepSize so that the minimum value plus the stepSize value at some point doesn't equal the maximum value (minimum + stepSize + stepSize + stepSize, and so on), the maximum value will display when the stepper surpasses the maximum.

minimum sets the minimum value that can be displayed in the stepper. The default value is 0.

stepSize sets the unit by which the stepper increases or decreases with each click. The default value is 1.

value sets the value displayed in the text area of the stepper. The default value is 0.

You can set the following additional parameters for each NumericStepper component instance in the Component inspector (Window > Component Inspector):

enabled is a Boolean value that indicates whether the component can receive focus and input. The default value is true.

visible is a Boolean value that indicates whether the object is visible (true) or not (false). The default value is true.

NOTE

The minHeight and minWidth properties are used by internal sizing routines. They are defined in UIObject, and are overridden by different components as needed. These properties can be used if you make a custom layout manager for your application. Otherwise, setting these properties in the Component inspector has no visible effect.

You can write ActionScript to control these and additional options for the NumericStepper component using its properties, methods, and events. For more information, see NumericStepper class.