Thanks Tracy, this looks great, I'll try it out.

OK
DAH

On Aug 19, 2008, at 8:22 PM, Tracy Spratt wrote:

>
> What I usually do is to declare an iIteration:int = 0 variable and  
> an iEndIndex:int = number of iterations instance vars.
>
>
>
> Then I call a control function, which checks to see if the  
> iIteration is less than the iEndIndex, and if so, it calls the main  
> work function.  The main work function does its stuff, increments  
> the iIteration var, then uses callLater to call the control function.
>
>
>
> Tracy
>
>
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]  
> On Behalf Of David Ham
> Sent: Tuesday, August 19, 2008 5:33 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Optimize with callLater() -- help?
>
>
>
> I think callLater() is going to work for me, but I have another  
> question:
>
> To create my pages, I loop through an array of Room objects. For each
> Room, I set it to be the currentRoom, which tells the view to display
> that Room's information. I figure I can do this (pseudocode):
>
> for (var i:uint = 0; i < rooms.length; i++) {
> model.currentRoom = rooms[i];
> callLater( makePageFromRoom() );
> }
>
> I figure this should tell the view to update itself, and then the
> callLater() should create the PDF page after the view has finished
> updating.
>
> But how do I loop through the rooms? Should I do an enterFrame event
> listener, and in every frame, set the currentRoom to the new room and
> do a new callLater()?
>
> Thanks,
>
> OK
> DAH
>
>
>
> 


------------------------------------

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

Reply via email to