Yes.   

MySprite.addEventListener(MouseEvent.MOUSE_DOWN, doDrawing)

private function doDrawing(e:MouseEvent):void
{
        var targSprite:Sprite = e.target as Sprite
        trace(targSprite.x)
}


Jason Merrill
Bank of America  
GT&O L&LD Solutions Design & Development 
eTools & Multimedia 

Bank of America Flash Platform Developer Community


Are you a Bank of America associate interested in innovative learning
ideas and technologies? 
Check out our internal  GT&O Innovative Learning Blog & subscribe.




 

>>-----Original Message-----
>>From: [EMAIL PROTECTED] 
>>[mailto:[EMAIL PROTECTED] On Behalf 
>>Of Lehr, Theodore M (N-SGIS)
>>Sent: Tuesday, March 11, 2008 9:27 AM
>>To: Flash Coders List
>>Subject: [Flashcoders] listen for mouse click
>>
>>I have a deal where I have a huge movie and onPress I am 
>>getting the mouse coordinates and onRelease I am getting the 
>>mouse coordinates and then drawing a circle with the 
>>resulting coordinates... I would like to do it without having 
>>to be on a movie... is it possible to have a listener turned 
>>on that will then be able to do the same thing? I am not 
>>totally familiar with listeners....
>>_______________________________________________
>>Flashcoders mailing list
>>[email protected]
>>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to