flash on 2010-3-1

by yaha
♥0 | Line 17 | Modified 2010-03-01 17:03:52 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
			var xPos:Number;
			var yPos:Number;
			var radius:Number;
			var color:uint;
				
			xPos = stage.stageWidth/2;
			yPos = stage.stageHeight/2;
			radius = 50;
			color = 0xff0000;
			this.graphics.beginFill(color);
			this.graphics.drawCircle(xPos, yPos, radius); 
        }
    }
}