Juan Pablo is right, but I found that hitTestPoint can be elusive if not applied correctly. In particular, the third argument (shapeFlag Boolean) should be TRUE (defaults to FALSE), and using event.stageX / Y in mouse events often works when mouseX / Y does not.
I canβt explain why, but the following pretty convincing evidence in my experience:
if (hitTestPoint(event.stageX, event.stageY, true))
Yarin source share