So in general, where you in AS2 were using e.target you should now use
e.currentTarget.

+1 ;-)

Must read: Event propagation
http://livedocs.adobe.com/flex/3/html/events_08.html

regards,
Muzak

----- Original Message ----- From: "EECOLOR" <[EMAIL PROTECTED]>
To: "Flash Coders List" <[email protected]>
Sent: Wednesday, April 02, 2008 2:22 PM
Subject: Re: [Flashcoders] AS3 MouseEvent target?


which is mouseChildren = false.

In my humble opinion I do not think this is what he needs. He should not be
referencing target, but instead he should reference currentTarget.

If you are adding a listener, the handlers e.currentTarget will point to the
object that you added the listener to, e.target is the object that initiated
the event (event bubbling).

So in a general way, where you in AS2 were using e.target you should now use
e.currentTarget. You only use
e.target if you want to reference the displayObject that initiated the event.



Greetz Erik

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to