alert This appears to be a flash file, you cannot see a preview because flash player is no longer supoorted in browsers, but you can still download the file to study it's source code.
You can open/play the swf file with Flash Player exe
user adrianTNT
adrianTNT (32)

Mute button with fade V2

A button that can mute/unmute a sound with fade in and fade out effect.
Sound is property of jermai.de .

Note: when opening as swf file the fade will be faster, almost unnoticeable, but in html page flash performs a bit slower and fade will be longer.
To adjust fade length edit these lines:
setInterval(decrease_volume, 1);
setInterval(increase_volume, 1);
1 is fastest, decreasing volume...
more >
8742 downloads, 35302 views
Download (3.16 MB)

Comments

You need to login to post a comment.

user ericherich02
ericherich02 12 years ago

I imported my mp3 and replaced the jermai mp3 but when I publish no sound comes out. Am I doing something wrong?

user puffylamb
puffylamb 14 years ago

Nice, I need one of these!
Horrible music though lol.

user adrianTNT
the listing author adrianTNT (admin) 15 years ago

LacosteMedia, sorry for the late reply, if you stil need to... replace:
some_sound.start();
with:
some_sound.start(0,999);
That means starts playing from second 0 of the sound and repeat 999 times.

user LacosteMedia
LacosteMedia 15 years ago

whats the line to making it loop?

user mustapha
mustapha 15 years ago

wow i love it. Thanks...

user splinters
splinters 15 years ago

This is excellent but how do you set it to loop the wave? I can only get it to play once.

user Aleem
Aleem 15 years ago

very nice

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

Zitamanda, I tried few things to give you an exact code but it looks like it would really complicate things and is better to built this from scratch for that exact purpose (3 volume levels).

user zitamanda
zitamanda 16 years ago

hi, i'm thinking the same feature of using yours and have 3 different volumn control by hitting the same button, which mute, low, medium, high in the volume control, is it possible and complicated to do this?

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

Thanks, thanks :D

user clipdepelicula
clipdepelicula 16 years ago

8/10

user koikaam
koikaam 16 years ago

cool;) great job adrianTNT;)

user vanguardista
vanguardista 16 years ago

I like...
10

user ricardo_ap
ricardo_ap 16 years ago

Good job...very cool. Tks

user adrianTNT
the listing author adrianTNT (admin) 16 years ago

I am glad you guys like it.

user kito11
kito11 16 years ago

thx so cool

user somarcio
somarcio 16 years ago

cool... very cool!!
tks

user jstudio99
jstudio99 16 years ago

well done, Adrian