Mega Code Archive

 
Categories / Flash ActionScript / TextField
 

Set both text and htmlText

package{   import flash.display.Sprite;     import flash.text.*;   public class Main extends Sprite{     public function Main(){         var t:TextField = new TextField(  );         t.htmlText = "<B>hello</B>";         t.text += " world";         addChild(t);     }   } }