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);
bottom= new DrawRectangle();
bottom.addEventListener(MouseEvent.CLICK, onMouseClick);
addChild(bottom);
top= new DrawGradient();
top.mouseEnabled = false;
addChild(top);