package { import flash.display.Sprite; import flash.text.TextField; public class Main extends Sprite { public function Main( ) { var field:TextField = new TextField( ); field.autoSize = flash.text.TextFieldAutoSize.LEFT; field.text = "A"; field.text += "\n"; field.text += "B."; addChild(field); } } }