Mega Code Archive

 
Categories / Flash ActionScript / TextField
 

You can append text by using the += operator or the appendText( ) method

package {   import flash.display.Sprite;   import flash.text.TextField;   public class Main extends Sprite {     public function Main(  ) {       var field:TextField = new TextField(  );      field.appendText("new text");      addChild(field);     }   } }