Skip navigation
Currently Being Moderated

How do I get a ComboBox to show thumbnails when mousing over items?

May 1, 2010 4:06 AM

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.

 

Anyone ?

 
Replies
  • Currently Being Moderated
    May 1, 2010 4:50 AM   in reply to toft

    hi,

     

    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?

     

    David

     
    |
    Mark as:
  • Currently Being Moderated
    May 1, 2010 5:47 AM   in reply to toft

    hi,

     

    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.

     

     

    David.

     
    |
    Mark as:
  • Currently Being Moderated
    May 1, 2010 6:31 AM   in reply to toft

    hi,

     

    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 

     

    David.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points