how to make sound at a certain time

They have: 2 posts

Joined: Nov 2001

Hope this is the right forum...

I made an animated gif. It's a duck popping out of a lake. When the duck fully pops out of the lake, I want a quacking sound to auto-play. Problem is that I have no idea how to do it. I've been able to embed the sound file in the web page, but it plays right when the page is open and not when the dusk pops out...

My gif animation prog can export to .swf, I have access to Macromedia Flash 5, Director 8.5, and Frontpage 2000 if that helps.

detox's picture

They have: 571 posts

Joined: Feb 2001

does the duck jump after a user event? if so you can tie that sound to the gif whenever that event is triggered. What you want to do is aetup up a javascript function to load the sound on an event so on the image tag you could put something like "onClick="playsound()" " etc.
Let us know, otherwise, if you want it to happen a certain time after the page loads, then simply use the same function with a timeout in the onload body tag.....

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

Do you have a url so that we can actually see it and get some more idea of what you want?

They have: 2 posts

Joined: Nov 2001

http://just-duckiecom.powweb.com/ducklake2.htm

http://just-duckiecom.powweb.com/justduckie_swf.htm

Here's some ultra rough drafts here. The first in .gif and the other in .swf. the duck animation right now auto plays when the page loads. If ya'll go to the page you can see it.

I want the sound to play just about the time when the words "Just-Duckie" appears in the animation. Heck if any of ya feel like it, you are more than welcome to download them and see if you can do this. All I can offer you is my gratitude and sever admiration... Smiling

http://just-duckiecom.powweb.com/quack.wav here's the wav sound that needs to be played.

thank you for your help... mahalo nui loa for your kokua...

The Webmistress's picture

She has: 5,586 posts

Joined: Feb 2001

You can easily do this in flash, as you just import the sound file and then tell it to play the sound at the appropraite time in timeline.

I can't get my head around it just using html, if you just want to have it auto play in the right place.

Julia - if life was meant to be easy Michael Angelo would have painted the floor....

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.