--- In [email protected], "Kyle" <[EMAIL PROTECTED]> wrote: > > I'm having some serious issues with the TileList. I've created a class > that extends ArrayCollection to use as my DataProvider (strictly for > the fact of strong typing), then created a custom item renderer > overrides the set data method and creates an image from the data that > is passed in. This all works well the first time; however, if I update > the dataprovider (ex: if I make a request for new xml data and > overwrite the dataprovider with the newly loaded data), the images in > the TileList are not being updated. I know that the dataprovider is > being updated because the number of items displayed in the TileList > changes to reflect the newly loaded data, but the images that are > displayed are not updated (they still show the images that were loaded > with the original data). That is issue number one. The only workaround > I have been able to find for that is to remove the TileList from the > dispaly list and create a new TileList, then populate it with the new > dataprovider (this is less than optimal). > > The next issue that I encounter is that when I scroll the TileList, > the images in each listitem are changed. For example, if the first two > images in the list are ImageA and ImageB, after scrolling they may > have changed order, so that ImageA is showing ImageB and vice versa. > The data held in each item does not change, just the visual display of > the image. > > Any help or thoughts is greatly appreciated!
This sounds like a recycling problem. It really depends on what you're doing in your set data function. Take a look at these links and see if they help http://www.adobe.com/devnet/flex/articles/itemrenderers_pt1.html? devcon=f1 (and go on and read part 2 as well) http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1. html If not, post back.

