There is no visible item present in side UIcomponent, add some visible item and try, it will work.
Regards, Natwar Garg http://flexyria.wordpress.com/ From: flex_india@googlegroups.com [mailto:flex_in...@googlegroups.com] On Behalf Of nithya flex Sent: Monday, September 27, 2010 3:06 PM To: flex_india@googlegroups.com Subject: [flex_india:31545] Reg:Mouse double click event on UI component Hi, I am trying catch mouse double click event from UIComponent, it seems like I am missing some thing to make it work. Here is my code, any idea <mx:Canvas width="100%" height="100%" doubleClickEnabled="true"> <mx:Canvas width="100%" height="100%" doubleClickEnabled="true" > <mx:UIComponent width="100%" height="100%" mouseChildren="true" buttonMode="true" doubleClickEnabled="true" doubleClick="{onMouseTextDoubleClick(event)}" > </mx:UIComponent> </mx:Canvas> </mx:Canvas> <mx:Script> <![CDATA[ import mx.controls.Alert; private function onMouseTextDoubleClick(ev:MouseEvent):void{ Alert.show("helllo"); } ]]> </mx:Script> -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en. -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_in...@googlegroups.com. To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.