To create movie clip symbols for NumericStepper skins:
Create a new FLA file.
1.
Select File > Import > Open External Library, and select the HaloTheme.fla file.
2.
This file is located in the application-level configuration folder. For the exact location on your
operating system, see
In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault folder
3.
and drag the Stepper Assets folder to the library for your document.
Expand the Stepper Assets folder in the library of your document.
4.
Expand the Stepper Assets/States folder in the library of your document.
5.
Open the symbols you want to customize for editing.
6.
For example, open the StepDownArrowDisabled symbol.
Customize the symbol as desired.
7.
For example, change the white inner graphics to a light gray.
Repeat steps 6-7 for all symbols you want to customize.
8.
For example, repeat the same change on the up arrow.
Click the Back button to return to the main Timeline.
9.
Drag a NumericStepper component to the Stage.
10.
This example has customized the disabled skins, so use ActionScript to set the NumericStepper
instance to be disabled in order to see the modified skins.
Select Control > Test Movie.
11.
Note: The Stepper Assets/States folder also contains a StepTrack symbol, which is used as a spacer
between the up and down skins if the total height of the NumericStepper instance is greater than the
sum of the two arrow heights. This symbol linkage identifier is not available for modification through a
skin property, but the library symbol can be modified provided the linkage identifier remains
unchanged.
NumericStepper class
Inheritance
MovieClip >
ActionScript Class Name
The properties of the NumericStepper class let you set the following at runtime: the minimum
and maximum values displayed in the stepper, the unit by which the stepper increases or decreases
in response to a click, and the current value displayed in the stepper.
Setting a property of the NumericStepper class with ActionScript overrides the parameter of the
same name set in the Property inspector or Component inspector.
The NumericStepper component uses the Focus Manager to override the default Flash Player
focus rectangle and draw a custom focus rectangle with rounded corners. For more information,
see
"Creating custom focus navigation" on page
592
Chapter 6: Components Dictionary
"About themes" on page
UIObject class
>
UIComponent class
mx.controls.NumericStepper
77.
> NumericStepper
50.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers