# Looping sound dynamically

**URL:** https://forum.kirupa.com/t/looping-sound-dynamically/127512
**Category:** Uncategorized
**Created:** [November 3, 2004, 5:06pm UTC](https://forum.kirupa.com/t/looping-sound-dynamically/127512 "2004-11-03T17:06:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![silverType](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@silverType](https://forum.kirupa.com/u/silverType)
#### Post date: [November 3, 2004, 5:06pm UTC](https://forum.kirupa.com/t/looping-sound-dynamically/127512/1 "2004-11-03T17:06:00Z")

</div>

Hi guys,  
I’ve tried to load an external mp3 into flash by using the ‘loadSound’ function. Below’s how I do it.

```auto

var mySound:Sound = new Sound();
var filename:String = "myMusic.mp3";
mySound.onLoad = function( success:Boolean )
{
     if ( success )
        mySound.start(0, 1000);
    else
       trace(filename + " is invalid");
}

mySound.loadSound(filename);

```

The mp3 is loaded and loops itself alright. But I realised that there’s always a pause inbetween each loop which is not really what I wanted. So my question is how do I make the loop sounds more ‘seamless’?

Thx in advance.
