Flash CS3 Documentation |
|||
| Using ActionScript 2.0 Components > Customizing Components > Using styles to customize component color and text > Using global, custom, and class styles in the same document | |||
If you define a style in only one place in a document, Flash uses that definition when it needs to know a property's value. However, one Flash document can have a variety of style settings--style properties set directly on component instances, custom style declarations, default class style declarations, inheriting styles, and a global style declaration. In such a situation, Flash determines the value of a property by looking for its definition in all these places in a specific order.
Flash looks for styles in the following order until a value is found:
styleName property of the instance to see if a custom style declaration is assigned to it.undefined.Flash CS3