RE: [flexcoders] How to get the reference of each element in a TileList ?

2008-02-04 Thread Battershall, Jeff
Yes, if the data passed to the renderer is bindable, you can create a custom renderer that will intelligently respond to changes. I've been having good luck with TileList and custom ItemRenderers. -Original Message- From: Alex Harui [mailto:[EMAIL PROTECTED]

RE: [flexcoders] How to get the reference of each element in a TileList ?

2008-02-03 Thread Battershall, Jeff
How about myTileList.getChildAt(index)? TileList shouldn't offer more performance, as such, over Repeater, as the TileList itself uses a repeater to layout it's children. But it does offer layout capabilities that you'd have to roll on your own with a repeater and that could get messy.

RE: [flexcoders] How to get the reference of each element in a TileList ?

2008-02-03 Thread bhaskar M
Thanks for the reply. I tried using getChildAt method. But I had errors coming up when I typecasted the returning element of getChildAt method into the ItemRendered class which is in my case ServiceSelectorItem. I actually want to get the reference of each of the items of

RE: [flexcoders] How to get the reference of each element in a TileList ?

2008-02-03 Thread Alex Harui
Try indexToItemRenderer(). Keep in mind that if you are scrolling, not all renderers exist. It is usually better to work from with in the renderer than from outside the list. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of bhaskar M