Hi everybody!

I need some help with getting angles, of two movieclips that are on my stage. With instance names: circle1,circle2.

I read that I should use the function Math.atan2 to get the angle, in radians, then I convert it to degrees, but it doesn’t make sense, the angles aren’t correct… Here I paste the code I use (its AS not PHP don’t know how to add the AS tags):

```
_global.Math.degree = function(radians) {
return (radians * 180/Math.PI);
}
trace(Math.round(Math.degree(Math.atan2(_root.circle1._x,_root.circle2._y))));
```

Any help would be apreciated cheers everybody!