I have a banner with big invisible button covering the stage and underneath it I have movieclips which must respond to mouse events. But I can’t get through invisible button. I only get button events and cant interact with movieclips underneath it. Here’s simple code:
invisibleBtn.addEventListener(MouseEvent.CLICK, onTopClick);
bottomMc.addEventListener(MouseEvent.MOUSE_OVER, onBottomOver);
function onTopClick(e:MouseEvent):void{
trace("top - click");
}
function onBottomOver(e:MouseEvent):void{
trace("bottom - over");
}
I never get bottomMc MouseEvent… any thoughts?
Thanks!
Only thing that you can done with this is to make invisibleBtn disable and put click event on movieclip instead of button.
so, it should like this.
so, it will take event for movieclip