Find a way to do more iterations before breaking out of the loop. Rendering is usually the bottleneck.
Use an instance var to track the iteration and the upper bound. Have the loop do (i=_iteration+1;i=(_iteration + 100);i++); // or + 1000, or whatever I think callLater will be fastest. Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cato Paus Sent: Tuesday, September 09, 2008 2:21 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Show progress while using for() --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , "Cato Paus" <[EMAIL PROTECTED]> wrote: > > Hi all :) > > I have a text file that i put into flex. I do some parising on the > data, I use the for() logic, but I would like to show/use the prgressBar > (i,fileData.length) but it seems the for() have to complete! and then > all the data just comes in one big bang! > I have tested the callLater and the timer,but then it realy gets slow!! :)