Be a Supporter!

Edits to post #25300843 by Gimmick

Back to Music Effect Help

Edited at 2014-11-18 07:05:32

You could lower the sound volume in the movie to 0 and then later set it back to 100. Since you're using Flash 8 you're using AS2, so it'd be something like this (haven't really tested it but I think this'll work):

//create some sound object
var snd:Sound = new Sound(some_movieclip)
function fadeVol()
{
    snd.setVolume(--vol)
    if(vol < 0)
    {
        onEnterFrame = null
    }
}
button.onPress = function()
{
    onEnterFrame = fadeVol
}

You could lower the sound volume in the movie to 0 and then later set it back to 100. Since you're using Flash 8 you're using AS2, so it'd be something like this (haven't really tested it but I think this'll work):

//create some sound object
var snd:Sound = new Sound(some_movieclip)
var vol:Number = 0
function fadeVol()
{
    snd.setVolume(--vol)
    if(vol < 0)
    {
        onEnterFrame = null
        vol = 100
    }
}
button.onPress = function()
{
    onEnterFrame = fadeVol
}