PDA

View Full Version : Ignoring overlaying Sprite mouseEvent problem


crveatch
10-14-2007, 08:01 AM
I tried mouseEnabled = false, but as long as I add bottom before top the MouseEvent.CLICK never registers. Why is mouseEnabled = false not working?

bottom= new DrawRectangle();
bottom.addEventListener(MouseEvent.CLICK, onMouseClick);
addChild(bottom);

top= new DrawGradient();
top.mouseEnabled = false;
addChild(top);

crveatch
10-14-2007, 08:54 AM
have to do

top.mouseChildren = false;