Hi Amit,

Try the following:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" click="hitTestMethod(event)">
        <mx:Script>
                <![CDATA[
                        import mx.controls.Alert;
                        private function hitTestMethod(e:MouseEvent):void{
                                Alert.show(e.localX.toString() + " : " + 
e.localY.toString());
                        }
                ]]>
        </mx:Script>
</mx:Application>

HTH,

-Ravi
http://achieveravi.blogspot.com

On Sep 21, 11:58 am, amit doshi <[email protected]> wrote:
> Hi,
>
>         I am looking for an example in which if the item moves out of
> the Canvas area then I like to do some event.
>
>          So any one please me with the hitTest Example or with the
> HitTestArea.
>
> Thanks in advance
> Amit Doshi
--~--~---------~--~----~------------~-------~--~----~
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