Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Username

Tweening volume global

Recommended Posts

Is there a way to transform the volume globally? I just explored examples with transforming the SoundChannel of single Sounds, but not a solution to tween the volume of the Stage.

 

				var newTransform:SoundTransform;
			newTransform = new SoundTransform(0,0);
			SoundMixer.soundTransform = newTransform;

Link to comment
Share on other sites

  • 1 month later...

I had this question, too. Hopefully it will help someone else.

 

From here is the tip. An example:

 

private var t:SoundTransform;

t = new SoundTransform(0); //want to fade up from 0
TweenMax.to(t, 1, {volume:1, onUpdate:setVolume});
private function setVolume():void
{
SoundMixer.soundTransform = t;
}

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×