User Guide
About themes 79
9.
Modify all references to the source theme’s package to the new theme’s package.
For example, change all occurrences of “halo” to “myTheme”.
10.
Save the changed FocusRect class file.
11.
Open the FLA file for your custom theme.
This example uses MyTheme.fla.
12.
Open the library (Window > Library) and locate the Defaults symbol.
In this example, it’s in Flash UI Components 2/Themes/MMDefault/Defaults.
13.
Edit the symbol properties for the Default symbol.
14.
Change the AS 2.0 Class setting to reflect your new package.
The example class is mx.skins.myTheme.Defaults.
15.
Click OK.
16.
Locate the FocusRect symbol.
In this example, it’s in Flash UI Components 2/Themes/MMDefault/FocusRect.
17.
Edit the symbol properties for the FocusRect symbol.
18.
Change the AS 2.0 Class setting to reflect your new package.
The example class is mx.skins.myTheme.FocusRect.
19.
Click OK.
20.
Apply the custom theme to a document by following the steps in the next section.
Remember to include the Defaults and FocusRect symbols when dragging assets from your
custom theme to the target document.
In this example you used a new theme to customize the text color of disabled components. This
particular customization, changing a single default style property value, would have been
accomplished more easily through styling as explained in “Using styles to customize component
color and text” on page 67. Using a new theme to customize defaults is appropriate when
customizing many style properties or when already creating a new theme to customize component
graphics.
Applying a theme to a document
To apply a new theme to a document, open a theme FLA file as an external library, and drag the
theme folder from the external library to the document library. The following steps explain the
process in detail.
To apply a theme to a document:
1.
Select File > Open and open the document that uses version 2 components in Flash, or select
File > New and create a new document that uses version 2 components.
2.
Select File > Save and choose a unique name such as ThemeApply.fla.