ActionScript 2.0 Components Language Reference |
|
|
|
| CheckBox component > Customizing the CheckBox component > 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 |
falseDownIcon
|
The pressed unchecked state. The default is |
falseOverIcon
|
The over unchecked state. The default is |
falseDisabledIcon
|
The disabled unchecked state. The default is |
trueUpIcon
|
The toggled checked state. The default is |
trueDownIcon
|
The pressed checked state. The default is |
trueOverIcon
|
The over checked state. The default is |
trueDisabledIcon
|
The disabled checked state. The default is |
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: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.
For example, open the CheckFalseDisabled symbol.
For example, change the inner white square to a light gray.
For example, repeat the color change for the inner box of the CheckTrueDisabled symbol.
For this example, drag two instances to show the two new skin symbols.
For this example, set one CheckBox instance to true, and use ActionScript to set both CheckBox instances to disabled.
|
|
|
|