I have some nested movieClips. I've got an event listener on the parent listening for a mouse click. Problem is, the listener never picks up the click.
Code:
var movieClipStack:MovieClip = new MovieClip();
for each (var ol:OwnedLayerable in owned_layerables)
{
var mc:MovieClip = ol.layerable.mc;
movieClipStack.buttonMode = true;
movieClipStack.addChild(mc);
}
movieClipStack.addEventListener(MouseEvent.CLICK, onStackClicked);
private function onStackClicked(evt:MouseEvent):void
{
// Do some stuff
}
On movieClipStack, I can see that mouseEnabled = true. In addition, buttonMode = true works exactly like it's supposed to. But onStackClicked never happens - movieClipStack just isn't detecting any sort of mouse event.
Thanks!