If you you use a Repeater, it will rebuild the components every time
your dataprovider is changed. I thought it would be more efficient to
create the objects first and when you don't need them you just hide them.

--- In [email protected], João Fernandes <[EMAIL PROTECTED]>
wrote:
>
> Why not to use a repeater instead? 
> 
> João Fernandes
> Secção de Desenvolvimento
> Departamento de Informática
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of moyosaned
> Sent: quinta-feira, 10 de Novembro de 2005 15:31
> To: [email protected]
> Subject: [flexcoders] Best way to create mutiple (+100) objects
> 
> Anybody got a way to create more dan 100 objects and attach them to
a container. This is how I do it now:
> 
> I'm doing this on creationComplete of the container(event.target)
> 
> for(var i=0;i<TOTAL_ITEMS;i++){               
> allItems.push(ThumbItem(event.target.createChild( ThumbItem,
"item"+i, {}))); allItems[i].contentThumbViewhelper = this;
allItems[i].height = 0; allItems[i].visible = false; }
> 
> When I'm doing this it looks like the app is freezing, so is there
way to duplicate ThumbItem, instead of creating it every time!!
> 
> 
> 
> 
> 
> ------------------------ Yahoo! Groups Sponsor
--------------------~--> Fair play? Video games influencing politics.
Click and talk back!
> http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
> --------------------------------------------------------------------~-> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>








------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

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

<*> 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