# How-to PAUSE a function?

**URL:** https://forum.kirupa.com/t/how-to-pause-a-function/201492
**Category:** Uncategorized
**Created:** [September 21, 2006, 8:13pm UTC](https://forum.kirupa.com/t/how-to-pause-a-function/201492 "2006-09-21T20:13:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![funfunfun](https://avatars.discourse-cdn.com/v4/letter/f/9fc348/32.png) [@funfunfun](https://forum.kirupa.com/u/funfunfun)
#### Post date: [September 21, 2006, 8:13pm UTC](https://forum.kirupa.com/t/how-to-pause-a-function/201492/1 "2006-09-21T20:13:42Z")

</div>

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.
