CS3 TileList Component – Custom CellRenderer & caching Images

Example of how to customize the TileList with a cellRenderer and a way to cache images in a scrolling list. (although I wouldn’t recomend caching images if you have 100′s of them). One Problem I’m yet to figure out is how to have a button inside of a custom cell. Studing fl.controls.TileList it looks like MouseEvents are being consumed by the renderer so child DisplayObjects can’t capture mouseEvents ;( if anyone has suggestions would be great ;)

Example:

Source:

TileList_caching.zip

Feel free to ask questions or offer improvments, hope it helps…


About this entry