Return to Snippet

Revision: 19058
at October 15, 2009 13:01 by curiousmedia


Initial Code
addEventListener(MouseEvent.MOUSE_DOWN, function(e:MouseEvent):void{trace(e.target+" : "+e.target.name);});

Initial URL

                                

Initial Description
Will trace the name of the display object that is actually receiving mouse events. Useful when the target of your mouse event is not what you are expecting. Oh, the fix 80% of the time is mouseChildren = false;

Initial Title
What am I REALLY clicking on!?

Initial Tags

                                

Initial Language
ActionScript 3