Sign in to follow this  
Big Bad Roo

Volume fade outs

Recommended Posts

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

Share this post


Link to post
Share on other sites

use an onComplete callback:

 

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


function stopSound(){
soundChannelBG.stop();
}

Share this post


Link to post
Share on other sites

Thanks so much Carl - that solved the problems beautifully.

 

I appreciate your help.

 

Shaun

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.