ActionScript 2.0 Components Language Reference |
|
|
|
| RadioButton component > Customizing the RadioButton component > Using skins with the RadioButton component | |||
You can skin the RadioButton component while authoring by modifying the component's symbols in the library. The skins for the RadioButton component are located in the following folder in the library of HaloTheme.fla or SampleTheme.fla: Flash UI Components 2/Themes/MMDefault/RadioButton Assets/States. For more information, see About skinning components in Using ActionScript 2.0 Components.
If a radio button is enabled and unselected, it displays its rollover state when a user moves the pointer over it. When a user clicks an unselected radio button, the radio button receives input focus and displays its false pressed state. When a user releases the mouse, the radio button displays its true state and the previously selected radio button in the group returns to its false state. If a user moves the pointer off a radio button while pressing the mouse, the radio button's appearance returns to its false state and it retains input focus.
If a radio button or radio button group is disabled, it displays its disabled state, regardless of user interaction.
A RadioButton component uses the following skin properties:
|
Name |
Description |
|---|---|
falseUpIcon
|
The unselected state. The default value is |
falseDownIcon
|
The pressed-unselected state. The default value is |
falseOverIcon
|
The over-unselected state. The default value is |
falseDisabledIcon
|
The disabled-unselected state. The default value is |
trueUpIcon
|
The selected state. The default value is |
trueDisabledIcon
|
The disabled-selected state. The default value is |
Each of these skins corresponds to the icon indicating the RadioButton state. The RadioButton does not have a border or background.
To create movie clip symbols for RadioButton 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 RadioFalseDisabled symbol.
For example, change the inner white circle to a light gray.
For example, repeat the color change for the inner circle of the RadioTrueDisabled symbol.
For this example, drag two instances to show the two new skin symbols.
For this example, set one RadioButton to selected, and use ActionScript to set both RadioButton instances to disabled.
|
|
|
|