Progressbar does not work in Significant long for loop

I have a long for loop which takes significant amout to load everything in my flash application. the for loop takes around 5 seconds…

I want to show a progress bar during that time. I used onEnterFrame… but it wont update the progress bar MC during that for loop execution… It starts after for loop finishes… . . Also I tried to put updation of progress bar in for loop along with updateAfterEvent … but nothing work…

Does anybody have any idea ?