I know how to set up the thumbnail functionality but what event can I use when the mouse pointer is over an item ? I want the thumbnail display to change image depending on what item is currently under the mouse.
Not sure I understand your meaning here, do you have a thumbnail(icon) in the combobox and you want to display a full image or do you want a thumbnail to appear in the combobox when the mouse is over an item in it?
No, I mean the items in the combobox can contain only image titles. When mousing over them I want to display a thumbnail image somewhere else in another component.
The problem is I dont know what event to use to do this - how do I get to the items that are not currently selected but just moused over. Hope this explains it better.
I would do it in the mouseover event of the itemrenderer, in spark you just get the data.itemindex, in mx I think you need to get the itemindex through the renderers parent dataprovider. So get that index of the dataprovider and dispatch an event with the itemindex. That way you can do whatever it is you want by listening for the event.
Are you working with flashbuilder or flexbuilder, using the newer spark stuff is much better and at least the samples around are fairly recent.
the following uses some simple renderers(did it for someone earlier today) it shows a simple mouseevent in the renderer, for what you want its a little more complex but not to much. This just may be an easy-in for itemrenderers and events.
http://gumbo.flashhub.net/norepeat/ source included
Europe, Middle East and Africa