Hi! I'm writing down a simple itemRender with a single peculiarity: if you have a mouseOver event on a entry of the list using this itemRenderer it is shown a button so you can delete that entry. This is the code:
<?xml version="1.0" encoding="utf-8"?> <mx:HBox mouseOver="showButton(event)" mouseOut="hideButton(event)" xmlns:mx="http://www.adobe.com/2006/mxml" > <mx:Script> <![CDATA[ public static const DELETE:String = "Delete"; private function showButton(event:Event = null):void { but.visible = true; } private function hideButton(event:Event = null):void { but.visible = false; } private function sendMessage(event:Event = null):void { this.dispatchEvent( new Event( DELETE ) ); } ]]> </mx:Script> <mx:Label text="{data.network_id}" /> <mx:Button id="but" click="sendMessage(event)" visible="false" label="X" /> </mx:HBox> Now, how can I listen to that event from the List using this item renderer? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

