Stopping a _root.onMouseDown = function()

i have a:


_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…) :


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