stopping event propagation with different layers
krumza

Hi again/

I use more 2 layers - for UI and for game. As example i tested an Ui element

           UIpanel.onClick = function(event) {
                var delta= -1;
                MyGame.changemoney(delta);
                return true;
            }

But it also have event on other layer!

How i can prevent action on layer A when i click on layer B?

1 Comment
krumza

Sorry i missed that one object was "onClick" and another "onMousedown"....

All work ok

Post a reply
Add Attachment
Submit Reply
Login to Reply