# Is there any way to update other tasks while being in a loop?

**URL:** https://forum.kirupa.com/t/is-there-any-way-to-update-other-tasks-while-being-in-a-loop/268015
**Category:** flash
**Created:** [August 8, 2008, 8:04am UTC](https://forum.kirupa.com/t/is-there-any-way-to-update-other-tasks-while-being-in-a-loop/268015 "2008-08-08T08:04:28Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bonnieraymond](https://avatars.discourse-cdn.com/v4/letter/b/0ea827/32.png) [@bonnieraymond](https://forum.kirupa.com/u/bonnieraymond)
#### Post date: [August 8, 2008, 8:04am UTC](https://forum.kirupa.com/t/is-there-any-way-to-update-other-tasks-while-being-in-a-loop/268015/1 "2008-08-08T08:04:28Z")

</div>

okay, I’m having a this trouble: I have a loop that run looping in several seconds, while it looping, it hangs the flash player (browser) for a while. So is there any solution to process other task while looping? like “updateAfterEvent” or something. What I want is to make a process displayer (a rotating circle for example) while it processing the loop … I hope you guys understand what I mean… Thanks in advanced!

```auto
for (var i:int = 0; i<VERY_LARGE_NUMBER; i++)
{
// DO SOMETHING THAT VERY IMPORTANT HERE
updateProcessBar(); // this make the looping task more slower, and I'm not sure it would work!
}

```
