Jump to content


[MP3Loader] Tween volume

Recommended Posts

I want to tween volume of loaded mp3 via LoaderMax.



aQueue.append( new MP3Loader(audioPaths[4], {name:"mymusic", repeat:-1, volume:0, autoPlay:true}) );

everything is ok here



This code doesn't work [mp3 is loaded]

TweenMax.to(aQueue.getContent('mymusic'), 1, {volume:1, ease:Linear.easeNone});



Please help!

Thank you

Link to comment
Share on other sites

If the volume is not tweening, have you made sure to include the line:


Other than that suggestion I'll have to leave it to someone more familiar with LoaderMax.


* Edit: Just realised that volume is activated by default for TweenMax. Ignore me...

Link to comment
Share on other sites

  • 1 month later...

An MP3Loader's "content" is a Sound object which doesn't have a "volume" property. But the MP3Loader itself does, so it should be as simple as TweenMax.to(aQueue.getLoader('mymusic'), 1, {volume:1, ease:Linear.easeNone});

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.