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

Part III: Appendixes > HTML Tag Support in Text Fields

E.1. HTML Tag Support in Text Fields

The set of HTML tags supported by Flash 5 text fields includes: <B>, <I>, <U>, <FONT>, <P>, <BR>, and <A>. Flash 6 adds support for <LI> and <TEXTFORMAT>. Although the <TABLE> tag is not supported, HTML tables can be simulated with text field tab stops (see TextFormat.tabStops in the ActionScript Language Reference) and Macromedia's FDataGrid Component available at the Flash Exchange (http://www.macromedia.com/exchange/flash/).

To set HTML-styled text for a TextField object, set its TextField.html property to true and then set its TextField.htmlText property to the desired HTML-tagged text. The <HTML> and <BODY> tags are neither supported nor required. Unsupported tags are ignored, although their text content is preserved. Flash requires quotes around the values assigned to tag attributes. For further details on these and related topics, see Section E.5, Section E.4, and Section E.3 later in this appendix.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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