Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > About Skins > Creating a new skin > Creating skins for some instances | |||
You can create a skin for some instances of a component using the following general procedure:
setStyle() method for the component instance to assign the new skin to the skin style.The following procedure creates a new selectedDownSkin for one of two Button instances.
To create a new selectedDownSkin for a Button:true.
bButton.setStyle("selectedDownSkin", Button_mySelectedDownSkin);
bButton.setStyle("downSkin", Button_mySelectedDownSkin);
|
|
|
|