You can use styles to customize a component in the following ways:
•
Set styles on a component instance.
You can change color and text properties of a single component instance. This is effective in
some situations, but it can be time consuming if you need to set individual properties on all
the components in a document.
See
"Setting styles on a component instance" on page
•
Create custom style declarations and apply them to several component instances.
You may want to have groups of components in a document share a style. To do this, you can
create custom style declarations to apply to the components you specify.
See
"Setting custom styles for groups of components" on page
•
Create default class style declarations.
You can define a default class style declaration so that every instance of a class shares a default
appearance.
See
"Setting styles for a component class" on page
•
Use inheriting styles to set styles for components in a portion of a document.
The values of style properties set on containers are inherited by contained components.
See
"Setting inheriting styles on a container" on page
•
Use the global style declaration that sets styles for all components in a document.
If you want to apply a consistent look to an entire document, you can create styles on the
global style declaration.
See
"Setting global styles" on page
Flash does not display changes made to style properties when you view components on the Stage
using the Live Preview feature. For more information, see
on page
52.
Supported styles
Flash MX 2004 and Flash MX Professional 2004 provide many styles for customizing component
color, text, and behavior. The set of styles used depends on each component and the theme
applied to the document. For a list of styles supported by each component, see
"Components Dictionary," on page
Flash provides two visual themes for components: Halo (HaloTheme.fla) and Sample
(SampleTheme.fla). A theme is a set of styles and graphics that controls the appearance of
components in a document. Each theme provides additional styles to the components. To know
what style properties you can set for a component, you must know what theme is assigned to that
component. The style tables for each component in the Components Dictionary indicate
whether each style property applies to one or both of the supplied themes. (For more information,
see
"About themes" on page
68
Chapter 5: Customizing Components
73.
91.
77.)
69.
69.
71.
71.
"Components in Live Preview"
Chapter 6,
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?