You might want to change the appearance of components as you use them in different
applications. There are three ways to accomplish this in Macromedia Flash MX 2004 and
Macromedia Flash MX Professional 2004:
•
Use the
setStyle()
text formatting of a component. See
on page
67.
•
Apply a theme—a collection of styles and skins that make up a component's appearance. See
"About themes" on page
•
Modify or replace a component's skins. Skins are symbols used to display components.
Skinning is the process of changing the appearance of a component by modifying or replacing
its source graphics. A skin can be a small piece, like a border's edge or corner, or a composite
piece like the entire picture of a button in its up state (the state in which it hasn't been pressed).
A skin can also be a symbol without a graphic, which contains code that draws a piece of the
component. See
Using styles to customize component color and text
Every component instance has style properties (also called styles) and
methods that you can use to set and get style property values. The
getStyle()
methods are inherited from the UIObject class. (For more information, see
getStyle()
UIObject.setStyle()
Note: You cannot set styles for the Media components.
The styles used by each component depend partially on what theme the document uses (see
"About themes" on page
components regardless of the theme applied to the document. Other styles, such as
and
symbolBackgroundColor
For example,
themeColor
is used only if the Sample theme is in use.
method of each component and style declaration to change the color and
"Using styles to customize component color and text"
77.
"About skinning components" on page
on page 825
and
77). Some styles, such as
, are used only by components if the corresponding theme is in use.
is used only if the Halo theme is in use, and
Customizing Components
80.
UIObject.getStyle()
defaultIcon
CHAPTER 5
and
setStyle()
setStyle()
on page
814.)
, are used by the associated
themeColor
symbolBackgroundColor
and
67
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?