Use setInterval, timer events, or callLater to break up the loop into
chunks.

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Maher
Sent: Tuesday, May 08, 2007 7:55 AM
To: [email protected]
Subject: [flexcoders] Update Progress Bar during processing



This seems like a simple thing, but I have a progress bar that works 
just fine. The problem is the loop I'm working through is taking all 
of the resources for the flash container while it works.

Put another way:

I am processing 1000 records
It takes 45 seconds to complete and is invisible to the user
While this loop of processing takes place I want to update a progress 
meter telling the user I'm still working....

but

Since this loop is so intense the whole flash container "hangs" or 
apears to pause. In fact, the whole browser is in this state.

Is there a way I can throttle this work a little so that screen 
updates and interactions can still take place?

(as a note, I'm walking through some data DTOs and creating an XML 
object from the properties on them)

Thanks



 

Reply via email to