4 Replies Latest reply on Apr 18, 2007 12:16 AM by Greg Dove

    embed Fonts (with HTML = true)

    chrisatflash Level 1

      Is there a way to embed HTML bold and italic in one textfield?

      Here is the code:
      And here you can download the fla file.

      If you for example manual klik on the bold icon in the empty textfield, you only see the bold text.. same for italic.

      profiel_txt.multiline = true;
      profiel_txt.wordWrap = true;
      profiel_txt.sharpness =50;
      profiel_txt.thickness = 20;
      profiel_txt.embedFonts = true;
      profiel_txt.antiAliasType = "advanced";
      profiel_txt.html = true;
      profiel_txt.htmlText = "Here is some tekst <b>this should be bold</b><br>";
      profiel_txt.htmlText += "This is the second line asdf.asdfljkasdf<br>";
      profiel_txt.htmlText += "<i>This should be italic</i>..does it work?";