Thanks Banu, Anoop and Natwar.

Banu suggestion is working for me



On Mon, Sep 27, 2010 at 3:46 PM, Natwar Garg <[email protected]>wrote:

>  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:* [email protected] [mailto:[email protected]] *On
> Behalf Of *nithya flex
> *Sent:* Monday, September 27, 2010 3:06 PM
> *To:* [email protected]
> *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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<flex_india%[email protected]>
> .
> 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 [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.

Reply via email to