Finding degrees

I’m having real trouble with this. I have a central movieclip named circle1_mc and a smaller movieclip above and a bit to the left of it named circle2_mc. I want to find the degree circle2_mc is at from the centre of circle1_mc. For example, 0 degrees would be directly above circle1_mc’s x and y coordinates. Any help would be appreciated.

Brendan.

This may be way off, but just mess around with it.
[AS]getDegree = function(mc1:MovieClip, mc2:MovieClip):Number {
vy = Math.abs(mc1._y-mc2._y);
vx = Math.abs(mc1._x-mc2._x);
return Math.tan(vy/vx);
}[/AS]That would return the degree in radians. Theres a command to convert to degrees but I cant produce itoff the top of my head. Back to the basics of Math! :lol:

See attached flash 8 fla - you can drag the small dot, the angle is traced on release of the small dot. Flash figures +/- degress vs. 360 - but with a little math, you should can get the result to show from 1-360 degrees:

Awesome, thanks both of you.