# Problem with looping sound AFTER pause

**URL:** <https://forum.kirupa.com/t/problem-with-looping-sound-after-pause/212893>\
**Category:** Uncategorized\
**Created:** [January 15, 2007, 3:07pm UTC](https://forum.kirupa.com/t/problem-with-looping-sound-after-pause/212893 "2007-01-15T15:07:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![AgentFitz](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@AgentFitz](https://forum.kirupa.com/u/AgentFitz)\
**Post date:** [January 15, 2007, 3:07pm UTC](https://forum.kirupa.com/t/problem-with-looping-sound-after-pause/212893/1 "2007-01-15T15:07:59Z")

</div>

Ok, so my sound loops wonderfully when I just let it play. And, my sound would loop perfectly if I set up just start and stop buttons to control it.

But, here’s the problem. I want the “stop” button to function as a “pause” button rather than a “stop” button.

so I did that like this:

```auto
 
mcPlay.onRelease = function():Void {
    sndAudio.start(sndAudio.position/1000,99);
};
mcPause.onRelease = function():Void {
    sndAudio.stop();
};

```

So now, it pauses and plays perfectly, the problem is that when it gets to the end of the sound file, it loops back to the last point it was “un-paused” rather than looping back to the beginning of the sound file. Make sense?

Has anyone come across this before? How can I get it to loop back to the beginning no matter when it was paused?

Thanks in advance!!  
Fitz
