code on 2008-12-18 yano3 forked:4favorite:0lines:22license : All rights reserved modified : 2008-12-19 19:31:21 Embed Tweet // 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; } public function test():void { // trace("hoge"); } } } Code Fullscreen Preview Fullscreen visible width height label toString test addChild text TextField Sprite sort new page view favorite forked pv0 forked from: code on 2008-12-1.. Q_Q forked:0 favorite:0lines:22 (diff:1) pv0 forked from: code on 2008-12-1.. Q_Q forked:0 favorite:0lines:22 (diff:1) pv124 forked from: code on 2008-12-1.. hacker_ni1uncin forked:0 favorite:0lines:23 (diff:2) pv169 forked from: code on 2008-12-1.. a_chari forked:0 favorite:0lines:22 (diff:1)