# Mouse Angle Easing

**URL:** <https://forum.kirupa.com/t/mouse-angle-easing/229941>\
**Category:** flash\
**Created:** [June 21, 2007, 12:32pm UTC](https://forum.kirupa.com/t/mouse-angle-easing/229941 "2007-06-21T12:32:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parpyparpy](https://avatars.discourse-cdn.com/v4/letter/p/e56c9b/32.png) [@Parpyparpy](https://forum.kirupa.com/u/Parpyparpy)\
**Post date:** [June 21, 2007, 12:32pm UTC](https://forum.kirupa.com/t/mouse-angle-easing/229941/1 "2007-06-21T12:32:57Z")

</div>

So basically I am trying to create a menu that runs the circumference of a circle. Instead of doing it all in actionscript I just made the image the radius of the circle. Anways, I was just wondering how I would go about making it ease, using my current code. I tried to follow the mouse easing tutorial here and apply that, but maybe I am too much of a noob, or maybe you just can’t?

Anyways here is what I am using to rotate my current image:  
[INDENT]a = back.\_y-\_ymouse;  
b = back.\_x-\_xmouse;  
angleA = Math.atan2(a, b);  
degrees = angleA/(Math.PI/180);  
setProperty (“back”, \_rotation, degrees);[/INDENT]

Also, I am using a .PNG as the image, and whenever it rotates too far beyond its origin it starts looking really bad. Is there another way of doing that?

Thanks in advance.
