# Pausing my character

**URL:** <https://forum.kirupa.com/t/pausing-my-character/330920>\
**Category:** flash\
**Created:** [April 8, 2013, 3:14pm UTC](https://forum.kirupa.com/t/pausing-my-character/330920 "2013-04-08T15:14:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thomas\_Macedo](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@Thomas\_Macedo](https://forum.kirupa.com/u/Thomas_Macedo)\
**Post date:** [April 8, 2013, 3:14pm UTC](https://forum.kirupa.com/t/pausing-my-character/330920/1 "2013-04-08T15:14:15Z")

</div>

I have problems pause my character. My pause button works perfectly, it pauses all other objects but i can still move my character when posted.  
Hope anyone can help me

Download the source file i added

I hope you can help me fix my problem!

here is the code i’m using. I’m puting this in my frame of my game

```auto
var playing:Boolean = false;// stop the main movie
stop();
play_btn._visible = false;
pause_btn._visible = true;
// create an event handler for the play button
play_btn.onPress = function()
{
    playing = !playing;
    play();
    this._visible = false;
    pause_btn._visible = true;
};
pause_btn.onPress = function()
{
    playing = !playing;
    stop();
    this._visible = false;
    play_btn._visible = true;
};

```
