Actionscript 3: Detect hidden movieclip on stage overlapping buttons

If  you run into issues with an invisible display object covering your button but you don’t know where it is, this handy code snippet I got from my co worker Kris can trace it out for you.

Just drop it in your constructor.

function _checkMouseEventTrail($e:MouseEvent):void
var p:* = $;
trace(">>",,": ",p);
p = p.parent;

Author: mark

Creative technologist

Leave a Reply

Your email address will not be published. Required fields are marked *