Using skins with the CheckBox component

The CheckBox component uses symbols in the library to represent the button states. To skin the CheckBox component while authoring, modify symbols in the Library panel. The CheckBox component skins are located in the Flash UI Components 2/Themes/MMDefault/CheckBox Assets/states folder in the library of either the HaloTheme.fla file or the SampleTheme.fla file. For more information, see About skinning components in Using Components.

A CheckBox component uses the following skin properties. Only icons, rather than skins, are displayed for the checkbox

Property

Description

falseUpIcon

The up (normal) unchecked state. The default is CheckFalseUp.

falseDownIcon

The pressed unchecked state. The default is CheckFalseDown.

falseOverIcon

The over unchecked state. The default is CheckFalseOver.

falseDisabledIcon

The disabled unchecked state. The default is CheckFalseDisabled.

trueUpIcon

The toggled checked state. The default is CheckTrueUp.

trueDownIcon

The pressed checked state. The default is CheckTrueDown.

trueOverIcon

The over checked state. The default is CheckTrueOver.

trueDisabledIcon

The disabled checked state. The default is CheckTrueDisabled.

Each of these properties corresponds to the icon indicating the CheckBox state. The CheckBox component does not have a border or background.

To create movie clip symbols for CheckBox skins:

  1. Select File > New and choose Flash File (ActionScript 2.0).
  2. Select File > Import > Open External Library, and select the HaloTheme.fla file.

    This file is located in the application-level configuration folder. For the exact location on your operating system, see About themes in Using ActionScript 2.0 Components.

  3. In the theme's Library panel, expand the Flash UI Components 2/Themes/MMDefault folder and drag the CheckBox Assets folder to the library for your document.
  4. Expand the CheckBox Assets/States folder in the library of your document.
  5. Open the symbols you want to customize for editing.

    For example, open the CheckFalseDisabled symbol.

  6. Customize the symbol as desired.

    For example, change the inner white square to a light gray.

  7. Repeat steps 5-6 for all symbols you want to customize.

    For example, repeat the color change for the inner box of the CheckTrueDisabled symbol.

  8. Click the Back button to return to the main timeline.
  9. Drag a CheckBox component to the Stage.

    For this example, drag two instances to show the two new skin symbols.

  10. Set the CheckBox instance properties as desired.

    For this example, set one CheckBox instance to true, and use ActionScript to set both CheckBox instances to disabled.

  11. Select Control > Test Movie.