# Load MP3 stream on click

**URL:** <https://forum.kirupa.com/t/load-mp3-stream-on-click/444>\
**Category:** flash\
**Created:** [July 17, 2002, 7:03pm UTC](https://forum.kirupa.com/t/load-mp3-stream-on-click/444 "2002-07-17T19:03:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_spilly](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@casper\_spilly](https://forum.kirupa.com/u/casper_spilly)\
**Post date:** [July 17, 2002, 7:03pm UTC](https://forum.kirupa.com/t/load-mp3-stream-on-click/444/1 "2002-07-17T19:03:37Z")

</div>

I’ve seen many tutorials on preloading mp3 (isStreaming)… but how do I load and play a stream only after clicking a button? Any help would be great…

Thanks

---

<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 17, 2002, 7:26pm UTC](https://forum.kirupa.com/t/load-mp3-stream-on-click/444/2 "2002-07-17T19:26:46Z")

</div>

on (release) {  
this = new Sound();  
this.loadSound(“goodSong.mp3”,true);  
}

Hope that helps. Good Luck

Peace  
nemo | Bejingler

🙂

---

<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 20, 2002, 3:17am UTC](https://forum.kirupa.com/t/load-mp3-stream-on-click/444/3 "2002-07-20T03:17:22Z")

</div>

nemoBejingler,  
how to have it 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:** [July 20, 2002, 9:30am UTC](https://forum.kirupa.com/t/load-mp3-stream-on-click/444/4 "2002-07-20T09:30:31Z")

</div>

Well I saw your post, niisa, at about 2:30AM and I was bored so I made you MP3 Looper.fla just for you. SPECIAL ORDER. Just unzip the swf and fla and rename a favorite MP3 of yours to goodSong.mp3 and then check out the swf. The good thing about this is it is all contained in one movie clip. YEAH!. It also has some code in there to stop someone from repeatedly pressing the play button, causing mutiple playback at one time. ENJOY.
