# Pause Game Using stage.framerate

**URL:** <https://forum.kirupa.com/t/pause-game-using-stage-framerate/317644>\
**Category:** flash\
**Created:** [December 28, 2010, 5:21pm UTC](https://forum.kirupa.com/t/pause-game-using-stage-framerate/317644 "2010-12-28T17:21:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mucx](https://avatars.discourse-cdn.com/v4/letter/m/d6d6ee/32.png) [@Mucx](https://forum.kirupa.com/u/Mucx)\
**Post date:** [December 28, 2010, 5:21pm UTC](https://forum.kirupa.com/t/pause-game-using-stage-framerate/317644/1 "2010-12-28T17:21:47Z")

</div>

Hi,

So mys question is this, I want to have a hidden button on a flash game where I press the ‘P’ key and it pauses and unpauses my flash game.

To do this I want to use the stage.framerate command… where I would pause the game by hitting the P key and setting the stage.frameRate = 0.01; and then unpause the game hitting the P key again and setting the stage.frameRate = 24;

I used to tinker around in Flash stuff using as2 about 5 years ago and not touched flash since. Fast forward to today and I am modifying a flash game that requires as3. Of course this is totally new to me and I dont know how to do anything! 😛
