# Function progress

**URL:** <https://forum.kirupa.com/t/function-progress/282269>\
**Category:** flash\
**Created:** [February 19, 2009, 4:48pm UTC](https://forum.kirupa.com/t/function-progress/282269 "2009-02-19T16:48:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bLasTamos](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@bLasTamos](https://forum.kirupa.com/u/bLasTamos)\
**Post date:** [February 19, 2009, 4:48pm UTC](https://forum.kirupa.com/t/function-progress/282269/1 "2009-02-19T16:48:24Z")

</div>

I’m making this game with complex visual effects (some rendered lighting using bitmaps), so it takes about 1 second or so generating a level with 3 big lights, so it may take a little more using more lights.  
The map is built when the player clicks to play the level. The thing is I can’t show him the game is busy processing the level elements, because the graphic elements won’t refresh until the start level function returns, which would make some sort of info sign while the map is loading useless.  
How would I make it so this information is visible right after I click Start level and disappear as soon as the level is built? I’m assuming the event handler from clicking Start level _has_ to return before the level starts loading, but how can I schedule the game for loading? some sort of a timer?
