Hi

I want to add a pause button to my games

I understand ill need a different function to pause all the animations and another to pause the script, but I know there is a way to stop everything, I know how to stop animations, but the script?

I want the same effect as when you are playing a game and to pause click right button of the mouse to stop everything, so there is a function to stop everything on the flash

How can I do that?

Any ideas?