# Streaming Music Mx

**URL:** https://forum.kirupa.com/t/streaming-music-mx/18135
**Category:** flash
**Created:** [April 13, 2003, 6:05pm UTC](https://forum.kirupa.com/t/streaming-music-mx/18135 "2003-04-13T18:05:43Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)
#### Post date: [April 13, 2003, 6:05pm UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/1 "2003-04-13T18:05:43Z")

</div>

SUP AGAIN PPLS.

MY ? IS THIS

WHEN YOU STREAM MUSIC IN MX RIGHT HOW CAN I MAKE THE MP3 FILE REPEAT ITSELF AFTER ITS DONE.

---

<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: [April 13, 2003, 6:06pm UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/2 "2003-04-13T18:06:30Z")

</div>

set the number of loops to the amount of times that you want it to loop.

---

<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: [April 13, 2003, 7:42pm UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/3 "2003-04-13T19:42:30Z")

</div>

yeah but where. this is the line of code i have on it

mySound = new Sound();  
mySound.loadSound(“my sound here.mp3”, true);

since the song is external i cant designate it in the properties panel

---

<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: [April 14, 2003, 3:59am UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/4 "2003-04-14T03:59:47Z")

</div>

mySound.onSoundComplete = function() {  
this.start();  
}

---

<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: [April 14, 2003, 10:19am UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/5 "2003-04-14T10:19:20Z")

</div>

I have this button and when i press it, it dubles the sound !

so i did this ==\>

on (release) {  
stopAllSounds();  
mySound = new Sound();  
mySound.loadSound(“music1.mp3”, true);  
mySound.onSoundComplete = function() {  
this.start();  
};  
}

so its stops the sound then plays it just ONE sound and not same or mixed it out !

is this correct then ? well it did work out !

---

<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: [April 14, 2003, 1:32pm UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/6 "2003-04-14T13:32:28Z")

</div>

sup yall. um i place the your coding under mine but the song did not play back any suggestions

---

<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: [April 14, 2003, 3:40pm UTC](https://forum.kirupa.com/t/streaming-music-mx/18135/7 "2003-04-14T15:40:41Z")

</div>

this is your code right  
[AS]mySound = new Sound();  
mySound.loadSound(“my sound here.mp3”, true);[/AS]  
if so then your problem is that you are streaming the clip, im sure a way exists of looping streaminf sound loaded externally but i dont know it.  
try this instead.  
[AS]mySound = new Sound();  
mySound.loadSound(“my sound here.mp3”, false);[/AS]  
then have[AS] mySound.start(0,999);[/AS] function on another button or timeline or wherever you want!!  
I recently made a basic MP3 player which loads external clips and allows volume control whith a preloader bar to!!check it out if you can be arsed  
[http://www.rakerecords.com/test/Rake.html](http://www.rakerecords.com/test/Rake.html)  
I have the sounds so you must press play but you could create a version which just looped the sound once it loaded.
