TextFormat class is
great for simple formats of dynamically generated text. But managing a
large Flash project this way might become unwieldy if several formats
are required. An alternative to this approach is to use HTML and CSS
to style the project globally.
Flash supports a limited subset of HTML tags, as seen in Table 10-1.
Table 10-1. The HTML tags supported by Flash Player
Bold version of font must exist to work
Italic version of font must exist to work
All lists are bulleted; ordered and unordered qualifiers are ignored
Used to apply a
limited subset of
To use HTML in a text field, you need only switch from using
text property to using
htmlText property. For
example, the following code will put the word "Flash" in bold in a
txtFld.htmlText = "<b>Flash</b>";
You should look at the accompanying tables for anything that ...