Hello everyone, I have a question and I have tried several things to stop
the right mouse click's but with no success.
What I have is several event listeners on various objects with in select
layers, in one of these layers I need to disable right mouse clicking but
noting seems to work.
I can however detect the mouse click being right via the below code, but
nothing seems to work to stop the code when it detects the right mouse
click.
onmousedown : function(e){
if(e.getButton() != 'left'){ //Need to
get this working..
e.getSource().ViewWindow.setVisible(false);
}
},
I even tried all of these, but I do not know if I fully understand them.
What does happen is events become disabled, but right mouse clicking still
works.
e.preventBubble(); e.preventDefault(); e.stopPropagation(); return false;
Does anyone know how to get this to work? Also, this is to disable the right
mouse click to prevent the option "save image as" under IE in Win OS..
Thanks,
Brian Hayes
|