I’m trying to create a listing of thumbnails using the TileList component, and so far it’s working great. Is there a way to change the appearance of a single ImageCell within the component.
I’m bringing in the thumbnail data as XML, and I have an attribute for whether it’s a “new” image or not. I would like it to display a small badge over the individual thumbnail in my application.
I should note that I made a subclass of the ImageCell class (implementing ICellRenderer) to set my custom skins, but when I tried adding conditional code here (checking for the “new” parameter I set, It simply doesn’t work (no error messages).
Does anyone have any ideas on how to achieve this?
Thanks!
- Scott
You need to also extend TileListData and add an isNew property or something.
A quick workaround is to use the icon property to store your Boolean, since it’s an Object in ListData.as, then in your class, access that and use it to toggle the visibility of your NEW graphic.
e.g.
and here is some test timeline code:
HTH