Forked from: rod1's flash on 2012-4-30 diff:18 forked from: flash on 2012-4-30 rod1 forked:1favorite:0lines:35license : MIT License modified : 2012-05-01 00:09:50 Embed Tweet // forked from rod1's flash on 2012-4-30 package { import flash.display.MovieClip; public class Index extends MovieClip { public function Index() { var myCircle1:DrawCircle=new DrawCircle(); var myCircle2:DrawCircle=new DrawCircle(); myCircle1.x=50; myCircle2.y=200; addChild(myCircle1); addChild(myCircle2); } } } import flash.display.MovieClip; class DrawCircle extends MovieClip { public function DrawCircle() { var centerX:Number=200; var centerY:Number=200; var r:Number=50; graphics.lineStyle(2,0xFF0006); graphics.moveTo(centerX+r,centerY); graphics.curveTo(r+centerX,Math.tan(Math.PI/8)*r+centerY,Math.sin(Math.PI/4)*r+centerX, Math.sin(Math.PI/4)*r+centerY); graphics.curveTo(Math.tan(Math.PI/8)*r+centerX,r+centerY,centerX,r+centerY); graphics.curveTo(Math.tan(-Math.PI/8)*r+centerX,r+centerY,-Math.sin(Math.PI/4)*r+centerX, Math.sin(Math.PI/4)*r+centerY); graphics.curveTo(-r+centerX,Math.tan(Math.PI/8)*r+centerY,-r+centerX,centerY); graphics.curveTo(-r+centerX,-Math.tan(Math.PI/8)*r+centerY,-Math.sin(Math.PI/4)*r+centerX, -Math.sin(Math.PI/4)*r+centerY); graphics.curveTo(-Math.tan(Math.PI/8)*r+centerX,-r+centerY,centerX,-r+centerY); graphics.curveTo(Math.tan(Math.PI/8)*r+centerX,-r+centerY,Math.sin(Math.PI/4)*r+centerX, -Math.sin(Math.PI/4)*r+centerY); graphics.curveTo(r+centerX,-Math.tan(Math.PI/8)*r+centerY,r+centerX,centerY); } } Code Fullscreen Preview Fullscreen Math.tan Math.PI addChild Math.sin MovieClip Number sort new page view favorite forked pv178 forked from: forked from: flas.. rod1 forked:1 favorite:0lines:33 (diff:14)