Hm, I am not sure how you'd accomplish this with Flex 4, if you don't like the answers people have already given you. However, you could extend SkinnableDataContainer to allow you to add a style callback function similar to what AdvancedDataGrid uses. In Flex 3, I did similar with the TileList_withStyle and DataGrid_withStyle on flexdiary.blogspot.com. You may find that one of these fits your needs if you're not commited to spark only.
HTH; Amy --- In flexcoders@yahoogroups.com, "sdl1326" <azsl1326-em...@...> wrote: > > Here's some additional insight into what I am trying to do. > > The user can click on one of the thumbnails(itemrenderer) which changes the > background color and launches a larger version of the image. Within that > larger image is a next and previous button which will navigate to the > next/previous image(itemrenderer). I need to be able to change the background > color of the next/previous thumbnail/itemrenderer. So, in essence, I need to > determine the next/previous itemrenderer and call the function that will > change the background color. > > Thanks. > --- In flexcoders@yahoogroups.com, "Amy" <amyblankenship@> wrote: > > > > You should never do this. What is the end goal? > > > > --- In flexcoders@yahoogroups.com, "sdl1326" <azsl1326-email@> wrote: > > > > > > > > > I have a scrollable SkinnableDataContainer which contains thumbnail > > > images (in an itemrenderer). While there can be several hundred > > > thumbnail images, only 10 itemrenderers are viewable on the screen at a > > > time. If I need to loop through the 10 viewable itemrenderers, what's > > > the best way to do it? > > > > > > > > > > > > > > > Thanks, in advance. > > > > > >