Interactions between the text and htmlText variables : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Interactions between the text and htmlText variables


 


package{
  import flash.display.Sprite;
    import flash.text.*;
  public class Main extends Sprite{
    public function Main(){
        var t:TextField = new TextField(  );
        t.htmlText = '<P ALIGN="LEFT">' +
            '<FONT FACE="Times New Roman" SIZE="12" COLOR="#000000" '
            'LETTERSPACING="0" KERNING="0">This field contains <B>HTML!</B>'
            '</FONT></P>';
        addChild(t);

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText