• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. Controlling Text > Formatting Text Fields from an External Style Sh...

Formatting Text Fields from an External Style Sheet

External Cascading Style Sheets (CSS) help designers and developers maintain consistency across multiple HTML documents. Flash now gives you the opportunity to tap into this resource to help you maintain the same formatting rules—such as font size, color, and other formatting styles—across all associated dynamic or input text fields. You can even apply styles defined by the style sheet to a text field that contains HTML or XML formatted text.

First, you must create a new style sheet object from the StyleSheet class, which is part of the TextField class:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint