# Play/Pause Button troubles

**URL:** <https://forum.kirupa.com/t/play-pause-button-troubles/248785>\
**Category:** flash\
**Created:** [January 11, 2008, 3:39pm UTC](https://forum.kirupa.com/t/play-pause-button-troubles/248785 "2008-01-11T15:39:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparky\_157](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@sparky\_157](https://forum.kirupa.com/u/sparky_157)\
**Post date:** [January 11, 2008, 3:39pm UTC](https://forum.kirupa.com/t/play-pause-button-troubles/248785/1 "2008-01-11T15:39:19Z")

</div>

I have this play/pause button for a simple mp3 plater and it’s almost working I am just having a small issue. [here is the player.](http://parttimelegend.com/tests/player.html)

I want the audio to start “paused” any ideas on how to do this?

Here is the AS

```auto
stop();
x = new Sound();
x.loadSound("test_audio.mp3", true);
x.start(0, 0);
musicplay = true;

x.onSoundComplete = function() {
    streemer.gotoAndStop(1);
}

```

Here is the AS on the button.

```auto
on (release) {
    if (musicplay == true) {
        p = Math.round(x.position / 1000);
        x.stop();
        streemer.gotoAndStop(1)
        play_pause.gotoAndStop(2);
        musicplay = false;
    } else {
        x.start(p, 0);
        streemer.gotoAndPlay(2);
        play_pause.gotoAndStop(1);
        musicplay = true;
    }
}

```

any idea on how to make this work?
