On 12/03/2010 19:48, Anthony Pace wrote:
agreed, cause:
MouseEvent.ROLL_OVER, MouseEvent.ROLL_OUT, and mouseChildren set to
false makes it so both target and currentTarget return the object the
listener was applied to.
Unfortunately the OP has a rollover handler but not in response to a
ROLL_OVER event..
I must stop reading this thread - it sucks the life out of people.
On 3/12/2010 2:32 PM, Paul Andrews wrote:
On 12/03/2010 19:13, Anthony Pace wrote:
I am wondering if you know when to use currentTarget vs target
There's even more confusion about what a MouseOver is..
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