![]() ![]() ![]() | |
![]() | |
![]() | |
![]() |
The _global style declaration is assigned to all Flash components built with version 2 of the Macromedia Component Architecture (v2 components). The _global object has a property called style
(_global.style
) that is an instance of CSSStyleDeclaration. This style
property acts as the _global style declaration. If you change a property's value on the _global style declaration, the change is applied to all components in your Flash document.
Some styles are set on a component class's CSSStyleDeclaration (for example, the backgroundColor
style of the TextArea and TextInput components). Because the class style declaration takes precedence over the _global style declaration when determining style values, setting backgroundColor
on the _global style declaration would have no effect on TextArea and TextInput. For more information, see Using global, custom, and class styles in the same document.
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");
For a list of styles, see Supported styles.
![]() | |
![]() | |
![]() | |
![]() ![]() ![]() |