Renderers are "virtual" There's only as many renderers as you can see on screen plus one or two. If you have 1000 items and only see 8, there's only 8 to 10 renderers so indexToItemRenderer will return null for the other 992.
It is better to simply iterate through the collection/dataprovider using ICollectionView/IViewCursor or IList APIs From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of David Gironella Sent: Tuesday, September 16, 2008 6:21 AM To: [email protected] Subject: RE: [flexcoders] Tilelist itemrender component access I have a button out from tilelist. When click this i want to call a public function on each item on a specific tilelist. I check indextoitemrenderer to know if it is a possible solution for me. Giro. ________________________________ De: [email protected] [mailto:[EMAIL PROTECTED] En nombre de Guillaume Malartre Enviado el: martes, 16 de septiembre de 2008 14:36 Para: [email protected] Asunto: Re: [flexcoders] Tilelist itemrender component access Could you be more explicit. Those functions need to be run on the creationComplete event or on a click event or remotely? If you want to call those methods from outside of the tileList I suggest you to look at TileBase/ListBase function indexToItemRenderer<../../../mx/controls/listClasses/ListBase.html#indexToItemRenderer%28%29>(index). On Tue, Sep 16, 2008 at 3:33 AM, David Gironella <[EMAIL PROTECTED]<mailto:[EMAIL PROTECTED]>> wrote: I have a tilelist with a itemrenderer, each itemrender component is a canvas, inside canvas I have a public function. How can I execute this public function for each component on tilelist? Thk. Giro. -- Merci, Guillaume Guillaume Malartre Programmeur-Analyste, Scolab 514-528-8066, 1-888-528-8066 Besoin d'aide en maths? www.NetMaths.net<http://www.NetMaths.net>

