Combining styles

CSS styles in Flash Player are additive; that is, when styles are nested, each level of nesting can contribute style information, which is added together to result in the final formatting.

The following example shows some XML data assigned to a text field:

<sectionHeading>This is a section</sectionHeading>
<mainBody>This is some main body text, with one 
<emphasized>emphatic</emphasized> word.</mainBody>

For the word emphatic in the above text, the emphasized style is nested within the mainBody style. The mainBody style contributes color, font-size, and decoration rules. The emphasized style adds a font-weight rule to these rules. The word emphatic will be formatted using a combination of the rules specified by mainBody and emphasized.


Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00000914.html