# Looping mp3 file and Event.SOUND\_COMPLETE

**URL:** <https://forum.kirupa.com/t/looping-mp3-file-and-event-sound-complete/231251>\
**Category:** flash\
**Created:** [July 3, 2007, 7:34am UTC](https://forum.kirupa.com/t/looping-mp3-file-and-event-sound-complete/231251 "2007-07-03T07:34:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![costa](https://avatars.discourse-cdn.com/v4/letter/c/85f322/32.png) [@costa](https://forum.kirupa.com/u/costa)\
**Post date:** [July 3, 2007, 7:34am UTC](https://forum.kirupa.com/t/looping-mp3-file-and-event-sound-complete/231251/1 "2007-07-03T07:34:36Z")

</div>

Dear all,

I am trying to find a workaround to the problem of looping mp3 files, basically the silence in the transition (from end to start). I could use wav files but I need to load the file externally, which makes not possible to use wav. So I did this

```auto
var channel:SoundChannel = myMp3.play();
channel. addEventListener (Event.SOUND_COMPLETE, onComplete); 

function onComplete(event:Event){
	channel = assets.sounds.piston.play();
}

```

Then after some time a use this code to stop and remove the listener:

```auto
channel.stop();
channel.removeEventListener(Event.SOUND_COMPLETE, onPlaybackComplete);

```

However the problem is still there

Edit: Now I know it is not a problem of flash, it is problem of the mp3 format itself. Any way, is there a workaround?

Thanks in advance
