Using skins with the NumericStepper

The NumericStepper component has skins to represent the up, down, disabled, and selected states of its buttons.

If a stepper is enabled, the down and up buttons display their over states when the pointer moves over them. The buttons display their down state when pressed. The buttons return to their over state when the mouse is released. If the pointer moves off the buttons while the mouse is pressed, the buttons return to their original state.

If a stepper is disabled, it displays its disabled state, regardless of user interaction.

A NumericStepper component has the following skins:

NumericStepper skins

NumericStepper skins


To change the color of the NumericStepper text background and the buttons in the up state:

  1. Create a new FLA file.
  2. Drag the NumericStepper component to the Stage.
  3. Set the Zoom control to 400% to enlarge the image for editing.
  4. Double-click the background of the TextInput skin on the skins panel until you drill down to the Group level and the background color appears in the Fill color picker in the Property inspector.
  5. Using the Fill color picker in the Property inspector, select color #9999FF to apply it to the background of the TextInput skin.
  6. Click the Back button at the left side of the edit bar above the Stage to return to document-editing mode.
  7. Double-click the NumericStepper again to reopen the skins palette.
  8. Double-click background of the up arrow button in the Up group until the background is selected and its color appears in the Fill color picker in the Property inspector.
  9. Select color #9966FF to apply it to the background of the up arrow button.
  10. Repeat steps 8 and 9 for the down arrow in the Up group.
  11. Select Control > Test Movie.

The NumericStepper instance should appear as it shown in the following illustration:

NumericStepper with custom background and buttons