i´ve been trying to understand the basics of trigonometry, and after a lot of tutorials I am at level 0…
I have this bit of code that draws a cicle on the stage
X = 100;
Y = 100;
R = 50;
drawCircle(this,X,Y,R);
//
function drawCircle(mc:MovieClip, x:Number, y:Number, r:Number):Void {
mc.lineStyle(2,0xFF0000,100);
mc.moveTo(x+r,y);
mc.curveTo(r+x,Math.tan(Math.PI/8)*r+y,Math.sin(Math.PI/4)*r+x,Math.sin(Math.PI/4)*r+y);
mc.curveTo(Math.tan(Math.PI/8)*r+x,r+y,x,r+y);
mc.curveTo(-Math.tan(Math.PI/8)*r+x,r+y,-Math.sin(Math.PI/4)*r+x,Math.sin(Math.PI/4)*r+y);
mc.curveTo(-r+x,Math.tan(Math.PI/8)*r+y,-r+x,y);
mc.curveTo(-r+x,-Math.tan(Math.PI/8)*r+y,-Math.sin(Math.PI/4)*r+x,-Math.sin(Math.PI/4)*r+y);
mc.curveTo(-Math.tan(Math.PI/8)*r+x,-r+y,x,-r+y);
mc.curveTo(Math.tan(Math.PI/8)*r+x,-r+y,Math.sin(Math.PI/4)*r+x,-Math.sin(Math.PI/4)*r+y);
mc.curveTo(r+x,-Math.tan(Math.PI/8)*r+y,r+x,y);
}
I would like to place small movieclips on the path of this circle… if someone can write a bit of code to do this I would really apreciate… thanks