# I am trying to stop an object from chasing the mouse as soon as i press a button

**URL:** https://forum.kirupa.com/t/i-am-trying-to-stop-an-object-from-chasing-the-mouse-as-soon-as-i-press-a-button/99622
**Category:** Uncategorized
**Created:** [January 20, 2004, 6:19pm UTC](https://forum.kirupa.com/t/i-am-trying-to-stop-an-object-from-chasing-the-mouse-as-soon-as-i-press-a-button/99622 "2004-01-20T18:19:34Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![daniel\_what](https://avatars.discourse-cdn.com/v4/letter/d/e480ec/32.png) [@daniel\_what](https://forum.kirupa.com/u/daniel_what)
#### Post date: [January 20, 2004, 6:19pm UTC](https://forum.kirupa.com/t/i-am-trying-to-stop-an-object-from-chasing-the-mouse-as-soon-as-i-press-a-button/99622/1 "2004-01-20T18:19:34Z")

</div>

an object contains this action: “\_x = \_x+\_xmouse/6;”  
to let it follow the mouse. i would like the object to stop following the mouse when i click a button. how do i do that?

please help,  
daniel

p.s. the .fla file is attached.
