method
07-22-2005, 10:21 PM
Hi every body . I am looking for a flash music player that allow users to hear the music but not to be able to download or find the location of music files from source code. could any one help me how that can be done .Thanks
Hi -
Do a search for Flash MP3 Player and I'm sure you'll get oodles of results. The easiest way is to create Sound objects, and load .mp3's instead of having them weigh down your file by attaching from the Library:
myBeat1 = new Sound();
myBeat1.loadSound("beats.mp3");
Make buttons to start or stop them, like:
one_btn.onPress=function(){
myBeat.start();
}
onestop_btn.onPress=function(){
myBeat.stop();
}
and you'll probably need to control the sound volume with slider(s) or buttons(s) - just check some more polished examples out...
Good luck,
El