all groups > flash (macromedia) > december 2006 >
You're in the

flash (macromedia)

group:

Play Audio On Webpage With Button Click



Play Audio On Webpage With Button Click Superman859
12/3/2006 6:28:26 PM
flash (macromedia): Hello everyone. I'm new to Flash, so please bear with me.

I'm creating a language learning website, and wish to add audio to it. I want
the audio to be compatible across browsers and simply play when a button is
clicked, without any controls or media players opening up.

From what I hear, it sounds like Flash is a good way to go and would do the
trick. It's just a matter of converting all the mp3s to Flash.

How could I create a button that plays the mp3 when it is clicked? I was
researching the topic and came across a few things.

What I am looking for is almost identical to this:

http://www.jou.ufl.edu/faculty/mmcadams/flash/audio_button/index.htm

While I could jump right in and use her example, it doesn't quite work. With
hers, everything needs to be in different folders, and I would need a different
button - her's is a little big. I can't put everything in different folders,
because I will have hundreds of audio files. It would be much easier to put
them all in an audio folder with different filenames.

I also was reading at another site that it deals with Javascript controlling
the Flash - when you click the button it plays the swf file. Since I am very
new to Flash, I'm not exactly sure of what all it can and cannot do. The site
also mentioned not all browsers allow Javascript to control Flash files.

Does anyone have any ideas on how I can do this? While I am beginning to
learn Flash, I doubt I will understand what to do all on my own for a while,
and I need to get the site finished as soon as possible. The audio is
practically all that is left before the site launch. Like I said, I'm looking
for a way to add audio to a webpage, that is played (without media players
opening up, etc) with the push of a button, and also will load quickly, since
there were be about 20 audio files per page.


Re: Play Audio On Webpage With Button Click Superman859
12/4/2006 1:35:20 PM
Re: Play Audio On Webpage With Button Click Nickels55
12/4/2006 2:03:28 PM
Here is some info on sound linkage, not sure if this is what you want but its a start:
AddThis Social Bookmark Button