View Single Post
rocking rocking is offline 2009-07-01 #4 Old  
Loading is not in a loop. I am passing the urls in the dataProvider of the TileList. Maybe flash does it in a loop internally.

The above code is from the custom cell renderer that I have written to show the images. Actually, it does more than rendering images like adding a few buttons in the cell on mouseover etc and hence I can not use ImageCellRenderer. Is there a way to clean up properly once the tilelist is gone? I had a listener on REMOVE_FROM_STAGE to clean up the loaders and remove event listeners. The problem with that is, and I do not know why this happens - every time any button of any cell is clicked, removedFromStage is triggered for the entire tilelist. So the only way I know to cleanup the tilelist is to set it to null

I am showing only 150x150 size of the images. I load them all at once (in a scrollrect) because otherwise the scrolling of the tilelist is not smooth. Without a scrollRect, with every mouse up/down the cells reload and it is extremely bad blotchy user experience.
Reply With Quote