Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Embedding sound in dreamweaver

Status
Not open for further replies.

lobby

Programmer
Joined
Mar 30, 2002
Messages
3
Location
AU
Dave (Graphic Designer)

does anyone know how to embed a sound file, say an mp3, and make it play without a new window popping up? I want the sound to activate when a button is pressed.
I was going to make a Flash sound file and embed that and use behaviors to control it, but its not supported by the majority of browsers.

Is there any other way of doing this that is supported accross the board?

cheers
dave
 
hi,

haven't done it with mp3's yet but here's how it goes with *.wav files. It will play in an endless loop.
Code:
<head>
<bgsound src=&quot;yourfile.WAV&quot; loop=&quot;-1&quot;>
</head>
regards, goaganesha
 
what mp3? is it a small sound thats plays when a button is clicked? is it a sound loop(medium size) that is used as a bg music. Or is it a full song (those huge 2-4 MB mp3 files)

The method of embedding muisc files depend on size. what goaganesha explained above is for medium sized sound loops to be used as bg sound.

if huge sound file is to be used it needs to be streamed. streaming is downloading the file simultaneously as it plays. so the download begins and after a delay the playing starts. streaming is done with either windows media or real media or quick time media. each of these media require their respective plugins.

if you can give me more details about the sound file i could help you Ranjan
:: I earn because I learn ::
 
sorry, didnt give you guys enough info.
Im using DM3 on a mac. Ive made a flash file with an embedded mp3 file in it. This all works fine.

Now heres the problem....I dont want the flash file to play the sound when the page is opened. I want it to play when a button is clicked. Ive checked 'loop' & 'autoplay' are turned off and ive used behaviors to control the flash file but i must be missing something.

Some help would be cool

Cheers
Dave
 
Hi,
since you allready embedded the MP3 in a swf file, why don't you make an swf with the buttons and the sound? I guess this is the best solution by far and it is supported by the majority of browsers (according to macromedia 95%).
Hope this helps, goaganesha
 
I'll give that a try,
thanks goaganesha :-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top