# \_xmouse movement from left and right

**URL:** <https://forum.kirupa.com/t/-xmouse-movement-from-left-and-right/237908>\
**Category:** flash\
**Created:** [September 5, 2007, 12:30pm UTC](https://forum.kirupa.com/t/-xmouse-movement-from-left-and-right/237908 "2007-09-05T12:30:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Post date:** [September 5, 2007, 12:30pm UTC](https://forum.kirupa.com/t/-xmouse-movement-from-left-and-right/237908/1 "2007-09-05T12:30:21Z")

</div>

Hi ,  
I am a having a MovieClip on the stage , instance name “photo”  
width 1500 px  
height 100px;

and main scene width & height 400px;

Now when i take mouse on the left side of the main scene, the “photo” MovieClip should move on the right side and when i take my mouse on the right side of the scene the “photo” MovieClip should move on the left side. Maintaing the exact ration from left and right side.

How can i code this please help.
