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

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! :slight_smile: