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

    embed Fonts (with HTML = true)

    chrisatflash Level 1
      Hello,

      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.
      http://www.webdesign-cs.com/flashembed/embed_text.fla

      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?";