# Help with trig

**URL:** <https://forum.kirupa.com/t/help-with-trig/287002>\
**Category:** Uncategorized\
**Created:** [April 24, 2009, 11:45am UTC](https://forum.kirupa.com/t/help-with-trig/287002 "2009-04-24T11:45:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![grooove](https://avatars.discourse-cdn.com/v4/letter/g/7feea3/32.png) [@grooove](https://forum.kirupa.com/u/grooove)\
**Post date:** [April 24, 2009, 11:45am UTC](https://forum.kirupa.com/t/help-with-trig/287002/1 "2009-04-24T11:45:28Z")

</div>

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

```auto
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
