Flash 8 Documentation |
|||
| Using Components > Customizing Components > Using styles to customize component color and text > Setting global styles | |||
By default, all components adhere to a global style declaration until another style declaration is attached to the component (as in Setting custom styles for groups of components). The global style declaration is assigned to all Flash components built with version 2 of the Macromedia Component Architecture. The _global object has a style property (_global.style) that is an instance of CSSStyleDeclaration, and acts as the global style declaration. If you change a style property's value on the global style declaration, the change is applied to all components in your Flash document.
|
CAUTION |
|
Some styles are set on a component class's CSSStyleDeclaration instance (for example, the |
For more information, see Adding components to Flash documents.
_global.style.setStyle("color", 0xCC6699);
_global.style.setStyle("themeColor", "haloBlue")
_global.style.setStyle("fontSize",16);
_global.style.setStyle("fontFamily" , "_serif");
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002995.html