# AS3 / AS2 -\> Multi-Directional of MovieClip via MouseClick

**URL:** https://forum.kirupa.com/t/as3-as2-multi-directional-of-movieclip-via-mouseclick/332233
**Category:** flash
**Created:** [March 17, 2014, 2:54am UTC](https://forum.kirupa.com/t/as3-as2-multi-directional-of-movieclip-via-mouseclick/332233 "2014-03-17T02:54:18Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![0ff\_my\_set](https://avatars.discourse-cdn.com/v4/letter/0/90ced4/32.png) [@0ff\_my\_set](https://forum.kirupa.com/u/0ff_my_set)
#### Post date: [March 17, 2014, 2:54am UTC](https://forum.kirupa.com/t/as3-as2-multi-directional-of-movieclip-via-mouseclick/332233/1 "2014-03-17T02:54:18Z")

</div>

First off, I’m sorry if this title doesn’t make sense, I just don’t know what else to call what I’m looking for help with…

What I am needing help with is determining the direction to turn a MovieClip based on the mouse’s position related to the MovieClip.

For example, if I clicked on the stage to the top right of the movieclip, I would trace the message “North East”.  
If I clicked on the stage to the left of the movieclip, I would trace the message “West”.  
Then if I clicked above the movieclip, I’d trace the message “North”, etc.

I am looking for the directions N (north), E (east), W (west), S (south), NE, NW, SE, and SW.

I am mainly looking for the algorithm that it would take to achieve these results, or if you can, code would be greatly appreciated as well!

I know this explanation isn’t the best, so if I need to explain any more, just let me know!

Thanks to anyone who is willing to help me out with this! 🙂
