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

Part III: Appendixes > Using HTML for Input and Output

E.5. Using HTML for Input and Output

HTML text entered manually into a text field using the Text tool in the Flash authoring tool will not be rendered as HTML. To display HTML-formatted text on screen, we must assign HTML text to a TextField object's htmlText property or, in Flash 5, to the variable associated with the text field. For example:

// Flash 6 syntax
theField_txt.htmlText = "<P><B>Error!</B> <I>No email address!</I></P>";
   
// Flash 5 syntax
theField_txt = "<P><B>Error!</B> <I>No email address!</I></P>";


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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