AS3その2 Hello
ひとまずHello。
こんな感じででけた。
SpriteクラスってのがMainみたいなの?かな。
package { import flash.display.Sprite; import flash.text.TextField; public class learningAs3 extends Sprite { public function learningAs3() { var t:TextField = new TextField(); t.text = "Hello ActionScript3."; t.width = 300; t.height = 200; t.x = 50; t.y = 20; addChild(t); } } }