Hi Anurag,
try this

private function Call(e:MouseEvent):void
        {
                Alert.show((e.target as Button).label);

        }


        ]]>
</mx:Script>


        <mx:Canvas click="Call(event);" x="88" y="41" width="593"
height="314">
                <mx:Button  name="Button1" x="51" y="38" label="Button1"/>
                <mx:Button x="233" y="38" label="Button2"/>
                <mx:Button x="51" y="127" label="Button3"/>
                <mx:Button x="243" y="127" label="Button4"/>
                <mx:Button x="152" y="208" label="Button5"/>
                <mx:Button x="152" y="76" label="Button6"/>

        </mx:Canvas>



Thanks,
Pankaj

On Dec 2, 10:17 pm, Anurag <[EMAIL PROTECTED]> wrote:
> Yes I can get that but as i told for example there are 10 different
> objects in a canvas i want to get  object under mouse cursor
>
> Even than thanks for ur reply
>
> On Dec 2, 12:03 pm, "Vinod M. Jacob" <[EMAIL PROTECTED]> wrote:
>
> > If i understood ,You can get the mouse position cordinate to find where your
> > mouse is ?
>
> > On Tue, Dec 2, 2008 at 11:47 AM, Anurag <[EMAIL PROTECTED]> wrote:
>
> > > Hello everyone ,
>
> > > I am facing a problem where I need to find mouse children.By mouse
> > > children i mean that there are 10 different objects on the canvas and
> > > i need to find current mouse children or hit object.Hope u got my
> > > point.
>
> > > I had seen something similar some time back but doesn't know how it
> > > was done.
>
> > > Hope anybody can help
>
> > > With Regards
> > > Anurag

--~--~---------~--~----~------------~-------~--~----~
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