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