> 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


On 3/31/08, Steven Sacks <[EMAIL PROTECTED]> wrote:
>
> IMO, explaining Event Bubbling as the reason the TextField is the target
> is complicating the immediate solution he needs, which is mouseChildren =
> false.
>
> Yes, it's Event Bubbling that's causing the target to be the TextField.
>  To understand Event Bubbling, read about it in the docs, or better yet, in
> a book (like Moock's).  But, then you MUST do it yourself to learn how it
> works.  If you don't play with it yourself, you will never "get it" no
> matter how much somebody explains it to you.  I'm fully convinced of that.
>  You gotta mess around with it to fully understand why it's so amazingly
> awesome.
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to