The forum is read-only. New threads, replies and edits are disabled.
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?

krumza

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

All work ok