How-to PAUSE a function?

If you have a function that works like this:

mcNew.onEnterFrame = function ()
{ does something or other here, and blank here, and blank there
};

Is there a way to temporarily freeze its operation in its tracks? Like a pause button? And then unpause, so it works again?

Any help is appreciated,
Thanks.