# MovieClip movement through mouse

**URL:** https://forum.kirupa.com/t/movieclip-movement-through-mouse/285193
**Category:** flash
**Created:** [March 28, 2009, 4:53am UTC](https://forum.kirupa.com/t/movieclip-movement-through-mouse/285193 "2009-03-28T04:53:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kstv\_chttrj](https://avatars.discourse-cdn.com/v4/letter/k/c37758/32.png) [@kstv\_chttrj](https://forum.kirupa.com/u/kstv_chttrj)
#### Post date: [March 28, 2009, 4:53am UTC](https://forum.kirupa.com/t/movieclip-movement-through-mouse/285193/1 "2009-03-28T04:53:37Z")

</div>

Can anyone tell me how could I be able to move a movieClip in opposite direction of the \_xmouse?

That means when I move the mouse pointer to right side, my movieClip would move some distance to the left side. And when I move the mouse to the left ,the movieClip should also move to right.

I have done something in the attached file but i dont want to continue the movieClip’s movement when the mouse movement stops.  
Please help guys.
