how can fade out a music using actionscript??
i looked at the sound class but all i found is the setVolume();
i tried this:
my_sound.volume -= 1 but it didnt work. help please. thanks!!
how can fade out a music using actionscript??
i looked at the sound class but all i found is the setVolume();
i tried this:
my_sound.volume -= 1 but it didnt work. help please. thanks!!
Try something like this:
[AS]v = 100;
fadeOutMusic = setInterval(fadeOut, 50);
function fadeOut() {
v–;
my_sound.setVolume(v);
if (v == 0) {
clearInterval(fadeOutMusic);
}
}[/AS]
:: Copyright KIRUPA 2024 //--