Ok I'm running into two problems here.
Firstly I'm trying to prevent cheating via the right mouse button. The left mouse button is covered by an invisible square over the flash that ends the game on click, but all I can find to do with the right mouse button is shorten the menu with
Stage.showMenu = false;
I'm looking for something to end the game when the right mouse button is clicked.
Second problem is that in this game I have lives as a variable. On the stages I use this code to make the player lose a life when you hit a wall.
on(rollOver) {
health--;
mySound = new Sound();
mySound.attachSound("loselife");
mySound.start(0,1);
if(health<1) {
gotoAndstop(5);
}}
the stages are in button format.
Now I want to make moving obstacles but when I use the above code on them. (I have to make them movie clips) the lives do not go down but the sound plays. I've tried using a movie clip and make a button in the clip but that doesn't work.
Help is greatly appreciated at this point, or any tutorials you can find.