import flash.display.Sprite; import flash.text.TextField; public class Main extends Sprite { public function Main( ) { var field:TextField = new TextField( ); field.restrict = "a-zA-Z"; field.type = flash.text.TextFieldType.INPUT; field.border = true; field.background = true;
addChild(field); } } }
Related Scripts with Example Source Code in same category :