# Looping streaming a streaming MP3 song

**URL:** https://forum.kirupa.com/t/looping-streaming-a-streaming-mp3-song/25221
**Category:** flash
**Created:** [July 10, 2003, 5:02pm UTC](https://forum.kirupa.com/t/looping-streaming-a-streaming-mp3-song/25221 "2003-07-10T17:02:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![cheddar](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/cheddar/32/267_2.png) [@cheddar](https://forum.kirupa.com/u/cheddar)
#### Post date: [July 10, 2003, 5:02pm UTC](https://forum.kirupa.com/t/looping-streaming-a-streaming-mp3-song/25221/1 "2003-07-10T17:02:51Z")

</div>

Can anyone tell me why when my streaming mp3 song isn’t looping? It works fine on my PC but when I upload it to the server, the song plays once then stops.

[AS]  
mySound = new Sound();  
mySound.loadSound(“[http://www.blahblahblah/loop.mp3](http://www.blahblahblah/loop.mp3)”, true);  
mySound.start(0,999);  
mySound.onSoundComplete = function() {  
mySound = new Sound();  
mySound.loadSound(“[http://www.blahblahblah/loop.mp3](http://www.blahblahblah/loop.mp3)”, true);  
mySound.start(0,999);  
};  
[/AS]

I initially didnt have the check for ‘soundcomplete’, I presumed it would loop again by using the 'start(0,999). This didnt work so I did a check and told it to load the sound again and play, this doesn’t work either ☹

Does anyone know what’s going on with this?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 10, 2003, 5:47pm UTC](https://forum.kirupa.com/t/looping-streaming-a-streaming-mp3-song/25221/2 "2003-07-10T17:47:51Z")

</div>

AFAIK you can’t loop streaming sound…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 10, 2003, 5:55pm UTC](https://forum.kirupa.com/t/looping-streaming-a-streaming-mp3-song/25221/3 "2003-07-10T17:55:26Z")

</div>

ahh but you u can, kinda 🙂  
[AS]  
loopSound = function () {  
mySound.loadSound(“test.mp3”, true);  
};  
mySound = new Sound();  
mySound.loadSound(“test.mp3”, true);  
mySound.onSoundComplete = loopSound;  
[/AS]

that will work around your problem, but there will be a skip, sry only thing i can come up with

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 10, 2003, 6:13pm UTC](https://forum.kirupa.com/t/looping-streaming-a-streaming-mp3-song/25221/4 "2003-07-10T18:13:28Z")

</div>

Thanks, works perfectly.

Not sure why my version didnt work though ☹
