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

Part III: Appendixes > Entity Support

E.2. Entity Support

Flash HTML text fields also support the special character entities listed in Table E-1. Wherever an entity appears in a text field's TextField.htmlText property, Flash displays the corresponding character on screen. However, other common entities, such as ©, and numeric entities, such as ™ (trademark symbol), are not supported. To include characters such as the copyright symbol, the trademark symbol, or the euro, use Unicode-format text files, a Unicode escape sequence, or the String.fromCharCode( ) method (see Section 4.5.1). The following example shows how to include a euro symbol in an HTML text field:

this.createTextField("price_txt", 0, 100, 100, 200, 30);
price_txt.html = true;
// The euro is represented by the escape sequence \u20AC
price_txt.htmlText = "<B>FINAL COST:</B> \u20AC 200";


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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