package{ import flash.display.Sprite; import flash.text.*; public class Main extends Sprite{ public function Main(){ var t:TextField = new TextField( ); t.autoSize = TextFieldAutoSize.LEFT; var format:TextFormat = new TextFormat( ); format.font = "Arial"; format.size = 20; format.bold = true; t.setTextFormat(format); t.text = "ActionScript is fun!"; addChild(t); } }}
Name (required)
email (will not be published) (required)
Website