Flash CS3 Documentation |
|||
| Using ActionScript 2.0 Components > Customizing Components > About themes > Creating a new theme | |||
If you don't want to use the Halo theme or the Sample theme, you can modify one of them to create a new theme.
Some skins in the themes have a fixed size. You can make them larger or smaller and the components will automatically resize to match them. Other skins are composed of multiple pieces, some static and some that stretch.
Some skins (for example, RectBorder and ButtonSkin) use the ActionScript drawing API to draw their graphics, because it is more efficient in terms of size and performance. You can use the ActionScript code in those skins as a template to adjust the skins to your needs.
For a list of the skins supported by each component and their properties, see the ActionScript 2.0 Components Language Reference.
Give the copy a unique name such as MyTheme.fla.
The skins are located in the Flash UI Components 2/Themes/MMDefault/Component Assets folder (this example uses RadioButton Assets).
You may need to select View > Zoom In to increase the magnification. When you edit a skin, you must maintain the registration point in order for the skin to be displayed correctly. The upper-left corner of all edited symbols must be at (0,0).
For example, open the States/RadioFalseDisabled asset and change the inner circle to a light gray.
Flash CS3