# Stopping a \_root.onMouseDown = function()

**URL:** <https://forum.kirupa.com/t/stopping-a--root-onmousedown-function/213015>\
**Category:** Uncategorized\
**Created:** [January 16, 2007, 11:52am UTC](https://forum.kirupa.com/t/stopping-a--root-onmousedown-function/213015 "2007-01-16T11:52:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivant](https://avatars.discourse-cdn.com/v4/letter/s/cc9497/32.png) [@sivant](https://forum.kirupa.com/u/sivant)\
**Post date:** [January 16, 2007, 11:52am UTC](https://forum.kirupa.com/t/stopping-a--root-onmousedown-function/213015/1 "2007-01-16T11:52:06Z")

</div>

i have a:

```auto

_root.onMouseDown = function(){
someAction
}

```

and i want to stop this with a button. how can i do it?  
i need something like this (i know its not how you do it, it just explains better…) :

```auto

on (press) {
 stop the_root.onMouseDown = function()}
 

```
