I am wondering if you know when to use currentTarget vs target
e.currentTarget is the object that you applied the eventListener to
e.target is the object that fired the event.
and if you are looking to get the child, then make sure not set
mouseChildren to false.
e.g. try using this to test what object is actually being targeted.
trace(e.currentTarget.name + "is the variable name of the object you
applied the listener too.");
trace(e.currentTarget + "is the symbol instance name of the object you
applied the listener too.");
//
trace(e.target.name + "is the variable name of the object that fired the
event");
trace(e.target + "is the symbol instance name of the object that fired
the event");
On 3/12/2010 8:09 AM, Susan Day wrote:
On Fri, Mar 12, 2010 at 8:48 AM, Susan Day<[email protected]>wrote:
On Thu, Mar 11, 2010 at 3:55 PM, Mattheis, Erik (MIN - WSW)<
[email protected]> wrote:
The "missing .html" thing has to be a simple mistake you're not seeing.
I realized you must be right. So I pulled out the pertinent code and have
built a test case. Sure enough, it's working properly. Now I'll figure out
what was breaking it.
The problem appears to be that when I mouse over a nav widget it activates a
fn called onMouseOver. When I comment out that addEventListener, then the fn
onPressHandler for the onClick works as desired. So the onMouseOver is
running interference. How do I eliminate the interference? Obviously I need
to add something to the onMouseOver fn, but what? Right now all I do is
re-call the nav fn to change the color of the btn. I tried this with no
luck:
e.currentTarget.removeEventListener(MouseEvent.CLICK, onPressHandler);
e.currentTarget.removeEventListener(MouseEvent.MOUSE_DOWN, onMouseOver);
TIA,
Susan
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders