flash on 2010-3-22

by clarkbanks
♥0 | Line 17 | Modified 2010-03-22 05:14:02 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    import flash.text.TextField;
    import flash.display.Shape;
    public class FlashTest extends Sprite {
        public function FlashTest() {
           var square:Sprite = new Sprite();
			addChild(square);
			square.graphics.lineStyle(3,0x00ff00);
			square.graphics.beginFill(0x0000FF);
square.graphics.drawRect(0,0,100,100);
			square.graphics.endFill();
square.x = stage.stageWidth/2-square.width/2;
square.y = stage.stageHeight/2-square.height/2;
        }
    }
}

Forked