# Pausing a function?

**URL:** https://forum.kirupa.com/t/pausing-a-function/180585
**Category:** Uncategorized
**Created:** [March 1, 2006, 6:12pm UTC](https://forum.kirupa.com/t/pausing-a-function/180585 "2006-03-01T18:12:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![goingNuts](https://avatars.discourse-cdn.com/v4/letter/g/ecccb3/32.png) [@goingNuts](https://forum.kirupa.com/u/goingNuts)
#### Post date: [March 1, 2006, 6:12pm UTC](https://forum.kirupa.com/t/pausing-a-function/180585/1 "2006-03-01T18:12:54Z")

</div>

I’m making a game where if you hit something, an .swf appears over the game. During this time, I want the enemies to stop moving. The enemies are set up to move randomly onEnterFrame. I’ve tried deleting the onEnterFrame, but it doesn’t appear to be working.

Can anyone help?
