all groups > flash (macromedia) > july 2005 >
You're in the

flash (macromedia)

group:

Website background Sounds



Website background Sounds John Corbitt
7/24/2005 9:58:02 PM
flash (macromedia): Hi all,

I am creating a website (Dreamweaver, ImageReady) and would like help
with adding background sounds to two of the pages.

I want the index page to have a little looping background music that
automatically plays upon page load but can be turned on or off with a
button.

On the other page I want to have several sounds (a drill, a hammer,
sanding and a voice humming) that each have their own 'track' so to
speak. I want them to overlap at different rates apart from each other
so that it is not just the same loop playing over and over. Of course,
when the user goes to another page, I want the sounds to stop. Any ideas?

Again the pages will be Dreamweaver html so I am guessing I will drop a
Flash movie into the page somewhere, right?

Re: Website background Sounds John Corbitt
7/25/2005 1:41:58 AM
[quoted text, click to view]

Trying this again,

I am creating a website (Dreamweaver, ImageReady) and need help with
adding background sounds to two of the pages.

I want the index page to have a little looping background music that
automatically plays upon page load but can be turned on or off with a
button. Pretty typical of pages with background music.

But on the other page I want to have several independantly looping
sounds (a drill, a hammer, sanding and a voice humming as if someone is
working in their workshop). I want them to be independant of each other
so that they sometimes overlap each other. I think this will help it be
a little different each time you listen to it. Of course, when the user
goes to another page, I want the sounds to stop. Any ideas?

Again the pages will be Dreamweaver html so I am guessing I will drop a
Flash movie into the page somewhere, right?

Re: Website background Sounds ActionScripter1
7/25/2005 9:29:11 AM
Hi John,

I am not familiar with imageready but to play a sound on the page I would
insert a little bit of flash like this.

Import your sound into Flash and use this actionscript on the first frame.


playSound("sound1.mp3");

Then create a button and put this action on it.

on (release) {
stopSound();

For your second page with multiple sounds I would import all four sounds into
Flash and give it this action

onFrame (1) {
playSound("drill.mp3");
}

onFrame (10) {
playSound("hammer.mp3");
}

onFrame (20) {
playSound("sanding.mp3");
}

onFrame (30) {
playSound("humming.mp3");
}

Then also create a button again and give it this action

on (release) {
stopAllSounds();

Hope this helps.
Re: Website background Sounds John Corbitt
7/25/2005 2:07:21 PM
Thanks much ActionScripter1. I'll give it a shot and let you know how it
turned out! :)
[quoted text, click to view]
AddThis Social Bookmark Button