Double-click any skin symbol you want to modify to open it in symbol-editing mode.
4.
The skins are located in the Flash UI Components 2/Themes/MMDefault/Component Assets
folder (this example uses RadioButton Assets).
Modify the symbol or delete the graphics and create new graphics.
5.
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.
When you finish editing the skin symbol, click the Back button at the left side of the
6.
information bar at the top of the Stage to return to document-editing mode.
Repeat steps 4-6 until you've edited all the skins you want to change.
7.
Apply MyTheme.fla to a document by following the steps shown later in this chapter. (See
8.
"Applying a theme to a document" on page
Modifying default style property values in a theme
The default style property values are provided by each theme in a class named Default. To change
the defaults for a custom theme, create a new ActionScript class called Default in a package
appropriate for your theme, and change the default settings as desired.
To modify default style values in a theme:
Create a new folder for your theme in First Run/Classes/mx/skins.
1.
For example, create a folder called myTheme.
Copy an existing Defaults class to your new theme folder.
2.
For example, copy mx/skins/halo/Defaults.as to mx/skins/myTheme/Defaults.as.
Open the new Defaults class in an ActionScript editor.
3.
Flash MX 2004 Professional users can open the file within Flash MX 2004 Professional. Flash
MX 2004 users can open the file in Notepad in Windows or SimpleText on the Macintosh.
Modify the class declaration to reflect the new package.
4.
For example, our new class declaration is
Modify the style settings as desired.
5.
For example, change the default disabled color to a dark red.
o.disabledColor = 0x663333;
Save the changed Defaults class file.
6.
Copy an existing FocusRect class from the source theme to your custom theme.
7.
For example, copy mx/skins/halo/FocusRect.as to mx/skins/myTheme/FocusRect.as.
Open the new FocusRect class in an ActionScript editor.
8.
78
Chapter 5: Customizing Components
79.)
class mx.skins.myTheme.Defaults
.
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers