On Tue, Dec 23, 2008 at 7:05 PM, Charlie Hubbard
<[email protected]> wrote:
> The parsing of the XML is done separately from the iteration, and
> each iteration of the loop over the nodes is done using
> UIComponent.callLater(). So my algorithm looks pretty close to
> something of this form:
>
> function doIteration( currentIndex : int, totalIndex: int ) : void {
> var current : Object = objects[ currentIndex ];
> doSomething( current );
> callLater( doIteration, [ currentIndex + 1, totalIndex ] );
> }
>
You should consider a timer-based approach rather than a frame-based one.
I remember looking at this library and thinking it was nice:
http://blog.generalrelativity.org/?p=29
Oh, and I believe the Flash Player drops frames if it can't keep up.
Some more gyaan on this:
http://www.kaourantin.net/2006/05/frame-rates-in-flash-player.html
--
manishjethani.com