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