# Help looping MP3s seamlessly

**URL:** <https://forum.kirupa.com/t/help-looping-mp3s-seamlessly/49623>\
**Category:** flash\
**Created:** [April 24, 2004, 8:57pm UTC](https://forum.kirupa.com/t/help-looping-mp3s-seamlessly/49623 "2004-04-24T20:57:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Red\_Fall](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@The\_Red\_Fall](https://forum.kirupa.com/u/The_Red_Fall)\
**Post date:** [April 24, 2004, 8:57pm UTC](https://forum.kirupa.com/t/help-looping-mp3s-seamlessly/49623/1 "2004-04-24T20:57:07Z")

</div>

I’m using some modified code from a chapter exercise (from a text book) to play four separate MP3s external to the FLA. Here’s an example of what happens when a button is clicked:

```auto
BtnOne.onRelease = function():Void {
	stopAllSounds();
	song1=new Sound();
	song1.loadSound("Music/Puffy.mp3", true);
	gotoAndPlay("music1");

```

On the label ‘ **music1** ’, I have this AS:

```auto
stop();
song1.onSoundComplete = function() {
	song1.start();
}

```

The problem is, there’s something of a noticeable stutter when the MP3 reaches the end, just before it starts up again. The first MP3 (contrary to the others), is a seamless ambient sound which ought to sound perfect in the FLA, but doesn’t, again, because of the slight stutter in starting it up again. Is there a better way to do this? I thought, perhaps, this would be fixed if I removed the **“stop();”** line and instead had it play the next frame, which would invariably send it back to the previous one, but this changed nothing. Is there a better method to use? Even with the other three MP3s, which _aren’t_ seamless, I want to loop, unless and until the user clicks the ‘Mute’ button. Thanks in advance. My last thread (about setInterval)received no replies, but I’m hoping this will, especially as this final project is due this Wednesday and I’d rather it not have this slight hiccup in it.

Cheers,

**[COLOR=DarkRed]The Red Fall[/COLOR]**
