flash on 2009-12-31

by plus-tic
♥0 | Line 17 | Modified 2009-12-31 02:36:25 | MIT License
play

ActionScript3 source code

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

package {
    import flash.display.Sprite;
    public class DrawCircle2 extends Sprite {
        public function DrawCircle2() {
        	graphics.beginFill(0x00ffff);
        	graphics.lineStyle(2,0xffd700,1);
        	graphics.moveTo(200+100,300);
        	//描画
        	for( var d:int = 0; d<360; d++){
        		var radian:Number = d*Math.PI/180;
        		graphics.lineTo(
        		200 + 100 * Math.cos( radian ) ,
        		300 + 100 * Math.sin( radian ) )
        	}
        	graphics.endFill();                  
            }
       }
       }