// forked from yano3's code on 2008-12-18 // write as3 code here.. package { import flash.display.Sprite; import flash.text.*; import mx.controls.*; public class hoge extends Sprite { public function hoge() { //this.width = 1000; //this.height = 100; var txt:TextField = new TextField(); txt.text = this.width.toString(); this.addChild(txt); txt.text = stage.width.toString(); var btn:Button = new Button(); btn.label = "unko"; btn.visible = true; btn.width = 200; btn.height = 200; addChild(btn); x = 100; y = 100; } public function test():void { // trace("hoge"); } } } forked from: code on 2008-12-18