# How do I rotate an arrow to point at a movieclip?

**URL:** <https://forum.kirupa.com/t/how-do-i-rotate-an-arrow-to-point-at-a-movieclip/162767>\
**Category:** flash\
**Created:** [September 16, 2005, 2:34am UTC](https://forum.kirupa.com/t/how-do-i-rotate-an-arrow-to-point-at-a-movieclip/162767 "2005-09-16T02:34:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_D1](https://avatars.discourse-cdn.com/v4/letter/m/dfb087/32.png) [@Mike\_D1](https://forum.kirupa.com/u/Mike_D1)\
**Post date:** [September 16, 2005, 2:34am UTC](https://forum.kirupa.com/t/how-do-i-rotate-an-arrow-to-point-at-a-movieclip/162767/1 "2005-09-16T02:34:46Z")

</div>

**I need to:**

**a)** Gradually rotate an arrow to point towards a moveclip (this is simple)  
_ **and** _  
**b)** Have it to take the shorter path (either clockwise or counter-clockwise depending on the situation). (can’t figure this out)

Can I get some help with the math and/or pseudo-code?

Thanks!
