# Resume sound once stopped?

**URL:** <https://forum.kirupa.com/t/resume-sound-once-stopped/30849>\
**Category:** flash\
**Created:** [September 15, 2003, 10:25am UTC](https://forum.kirupa.com/t/resume-sound-once-stopped/30849 "2003-09-15T10:25:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscar\_alexander](https://avatars.discourse-cdn.com/v4/letter/o/e5b9ba/32.png) [@oscar\_alexander](https://forum.kirupa.com/u/oscar_alexander)\
**Post date:** [September 15, 2003, 10:25am UTC](https://forum.kirupa.com/t/resume-sound-once-stopped/30849/1 "2003-09-15T10:25:38Z")

</div>

I’m building a really simple jukebox clip that dynamically loads mp3 files from the server. The code I’m using is this:

```auto

_global.mySound = new Sound();
mySound.resumePos	= 0;

mySound.onLoad = function(success) {
     if(success) {
          this.start(0, 999);
     }
}

// Executes when stop button is pressed;

Sound.protoype.stopSound() {
     this.resumePos = this.position;
     this.stop();
}

// Executes when play (resume) button is pressed;

Sound.prototype.resumeSound() {
     this.start(this.resumePos, 999);
}

mySound.loadSound("mp3/lounge.mp3", true);

```

There’s some more code that toggles the state of the buttons, which I left out for the sake of legibility. Everything works fine, but once the stop button is pressed, the play button fails to resume (play) the sound again. What is it I’m doing wrong?
