onMouseDown 2 help?!

Hi,
I have a game which is a sort of mouse avoider. In the game I want the player to go to the gameover page when the player clicks the right mouse button but I can’t find the code!
I have this code but it only works for the left mouse button:

onMouseDown = function() {
gotoAndPlay(“gameover”);
}

please help a.s.a.p

The right mouse button is only used to display the contextMenu which displays adobe’s settings and about stuff + whatever else you decide, you cannot use it to perform in-game actions.

ok i hear your problem and i have ran into the same problem apparently theres html and other codes that do that but i just used a custom cursor and that makes the mouse invisible when they right click so they cant see where they are going. hope that helps.:party:

there are. But they only work with bad programming.