For more information about controlling focus, see
"FocusManager class" on page 721
or
"Creating custom focus navigation" in Using Components.
A live preview of each stepper instance reflects the setting of the value parameter in the
Property inspector or Component inspector during authoring. However, there is no mouse or
keyboard interaction with the stepper's arrow buttons in the live preview.
When you add the NumericStepper component to an application, you can use the
Accessibility panel to make it accessible to screen readers. First, you must add the following
line of code to enable accessibility:
mx.accessibility.NumericStepperAccImpl.enableAccessibility();
You enable accessibility for a component only once, regardless of how many instances you
have of the component. For more information, see Chapter 19, "Creating Accessible
Content," in Using Flash.
Using the NumericStepper component
You can use the NumericStepper anywhere you want a user to select a numeric value. For
example, you could use a NumericStepper component in a form to allow a user to set a credit
card expiration date. You could also use a NumericStepper component to allow a user to
increase or decrease a font size.
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.
970
NumericStepper component
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers