No need to create any new states or anything.  ItemRenderer
<http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/supportClasses/ItemRenderer.html>
  
already has these states:

/Flex defines the following view states that you can support in your item
renderers:
normal - The data item has no user interaction.
hovered - The mouse is over the data item.
selected - The data item is selected.
dragging - The data item is being dragged.
normalAndShowCaret - The data item is in the normal state, and it has focus
in the item list.
hoveredAndShowCaret - The data item is in the hovered state, and it has
focus in the item list.
selectedAndShowCaret - The data item is in the normal state, and it has
focus in the item list./

So for your example, just add *visible.selected="true"* to overlayRect.



--
View this message in context: 
http://apache-flex-users.2333346.n4.nabble.com/ItemRenderer-What-event-to-react-to-tp15157p15201.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Reply via email to