# Changing the image when it turns to a different direction

**URL:** <https://forum.kirupa.com/t/changing-the-image-when-it-turns-to-a-different-direction/227616>\
**Category:** Uncategorized\
**Created:** [May 31, 2007, 7:32pm UTC](https://forum.kirupa.com/t/changing-the-image-when-it-turns-to-a-different-direction/227616 "2007-05-31T19:32:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robot\_Monkey](https://avatars.discourse-cdn.com/v4/letter/r/90ced4/32.png) [@Robot\_Monkey](https://forum.kirupa.com/u/Robot_Monkey)\
**Post date:** [May 31, 2007, 7:32pm UTC](https://forum.kirupa.com/t/changing-the-image-when-it-turns-to-a-different-direction/227616/1 "2007-05-31T19:32:12Z")

</div>

Hi, I would like to know the actionscript code for when an image (Let’s say it’s facing right) suddenly turns left, then it switches to an image of the similar one facing left. Thanks!

PS. If you want me to be more detailed, the image is following the cursor pointer.
