Catching mouseEvents from siblinged Sprites

i have the following scenario:

two Sprites A and B, whereas A contains a .png file with some transparent regions,for instance a black rectangle with a hole in the middle. B is a smaller Sprite with
some Graphics. B has a DisplayList index lower than A so that A covers B and B can only be seen when it is behind the hole in A.

I turn B into a button by adding an EventListener to it.

  1. When B is set as a Child of A, B can catch my MouseEvents.
  2. But when A and B are just siblings, B doesn’t receive any MouseEvent.

So, is there a way to make B “clickable” in case 2)

Keith

hmmm, im running into how to make two different events fire on sibling movieclips if they are on top of each other? any luck with this?

“getObjectsUnderPoint(point:Point):Array - Returns an array of objects that lie under the specified point and are children (or grandchildren, and so on) of this DisplayObjectContainer instance.” - AS3 Help

That could be used at the point of the mouse click, so just check if the object is in the returned array and call functions accordingly.