# Pause a function

**URL:** https://forum.kirupa.com/t/pause-a-function/266211
**Category:** flash
**Created:** [July 17, 2008, 8:43am UTC](https://forum.kirupa.com/t/pause-a-function/266211 "2008-07-17T08:43:15Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kleelof](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@kleelof](https://forum.kirupa.com/u/kleelof)
#### Post date: [July 17, 2008, 8:43am UTC](https://forum.kirupa.com/t/pause-a-function/266211/1 "2008-07-17T08:43:15Z")

</div>

Hello,

This is something that I’ve seen people elude to being able to do, but I’ve not found any code.

I am using fades to remove and add content to the stage. What I need to do is pause code execution during the fading out then resume when the fade is completed. I’ve seen people post about using loops to test for a specific frame, but every attempt I made did not work, then I saw that during loops, Flash animation stops.

thanks,  
lee
