flash on 2012-6-30

by ifree
♥0 | Line 17 | Modified 2012-06-30 17:32:37 | MIT License
play

ActionScript3 source code

/**
 * Copyright ifree ( http://wonderfl.net/user/ifree )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/xxZ2
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    import flash.utils.describeType;
    public class FlashTest extends Sprite {
        private var txt:TextField;
        public function FlashTest() {
            // write as3 code here..
            txt=new TextField();
            txt.text=describeType(flash.utils.describeType);
            addChild(txt);
            txt.width=stage.stageWidth;
            txt.height=stage.stageHeight;
            graphics.lineStyle(1,0xff0000);
            graphics.lineTo(1000,1000);
        } 
    }
}