Forum Moderators: open

Message Too Old, No Replies

flash, onclick play sound clip

         

MWpro

3:28 am on Jun 20, 2003 (gmt 0)

10+ Year Member



I need to make a little music bar that will go at the bottom of the page. On the bar will be 5 buttons, and clicking them will play different mp3 sound clips.

I figure it can be done by making it so that whenever a button is clicked, it will goto a frame that will start the music and keep looping it. If they click on a different button then it would go to another frame that starts the music and so on.

My question: Is this the best way to approach this? Doing this would have to have all 5 sound clips in the one flash file, and my concern is that it may make the file a bit big. Any suggestions on a better way to do this?

hakre

10:16 am on Jun 20, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



hi MWpro, welcome to webmasterworld [webmasterworld.com].

to save filesize you can create an interactive preloader for submovies which will contain a music file each. please consult the flash manual about loading movies and playing them.

you can checkout google for moock and mp3 stream to get more resources about how to do this.

-hakre