Jump to content

Volume fade outs

- - - - -

2 replies to this topic
Volume fade outs
Hi Jack

I'm using TweenMax to fade out a sound channel when a user hits a stop button:

TweenMax.to(soundChannelBG, 1, {volume:0});

I was wondering how to tell Flash to soundChannelBG.stop(); once the fadeout tween is complete, rather than just turning the volume to zero?

Thanks for your time and help.

Shaun Thomson

Volume fade outs
use an onComplete callback:

TweenMax.to(soundChannelBG, 1, {volume:0, onComplete:stoSount});

function stopSound(){

Volume fade outs
Thanks so much Carl - that solved the problems beautifully.

I appreciate your help.


0 user(s) are reading this topic

members, guests, anonymous users