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, 35297 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...

show all 18 comments