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.DYNAMIC; addChild(field); } } }