Mega Code Archive

 
Categories / Flash ActionScript / TextField
 

Displaying Text

package {   import flash.display.Sprite;   import flash.text.TextField;   public class Main extends Sprite {     public function Main(  ) {       var field:TextField = new TextField(  );       field.type = flash.text.TextFieldType.INPUT;       field.border = true;       field.background = true;        field.text = "this will display in the field";       addChild(field);     }   } }