Use HTML to make the text bold : HtmlText : TextField Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » TextField » HtmlText »

 

Use HTML to make the text bold


 
package{
  import flash.display.Sprite;
  import flash.text.*;  
  public class Main extends Sprite{
    public function Main(){

        var t:TextField = new TextField(  );
        t.htmlText = "This field contains <B>HTML!</B>";
        
        trace(t.htmlText);
        addChild(t);
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo TextField
» HtmlText