PDA

View Full Version : Load MP3 stream on click



casper_spilly
July 17th, 2002, 03:03 PM
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

nemoBejingler
July 17th, 2002, 03:26 PM
on (release) {
this = new Sound();
this.loadSound("goodSong.mp3",true);
}

Hope that helps. Good Luck

Peace
nemo | Bejingler


^_^

niisa
July 19th, 2002, 11:17 PM
nemoBejingler,
how to have it loop?

nemoBejingler
July 20th, 2002, 05:30 AM
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.