View comments | RSS feed

Formatting text

You have several options for programmatically formatting the display of text. You can set properties directly on the TextField instance--for example, the TextFIeld.thickness and TextField.textColor properties. Or you can designate the content of the text field using the htmlText property and use the supported HTML tags, such as b, i, and u. But you can also apply TextFormat objects to text fields containing plain text, or StyleSheet objects to text fields containing the htmlText property. Using TextFormat and StyleSheet objects provides the most control and consistency over the appearance of text throughout your application. You can define a TextFormat or StyleSheet object and apply it to many or all text fields in your application.

Subtopics

Assigning text formats
Applying cascading style sheets
Loading an external CSS file
Formatting ranges of text within a text field

Flash CS3


Comments


bomby said on Jan 15, 2008 at 3:10 PM :
Minor Edit

TextFIeld.thickness
needs to be
TextField.thickness

 

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

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