Jump to content

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


Recommended Posts

Is it possible to pass one var with onComplete??


so code would look like so: TweenMax.to(Clip, 1, {delay:2, alpha:1, onComplete:functionName(varName)});




Link to post
Share on other sites

Absolutely. That's what the onCompleteParams is for:


TweenMax.to(Clip, 1, {delay:2, alpha:1, onComplete:functionName, onCompleteParams:[varName]}); 


Pass as many parameters as you want - just put them in the array.

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

    No registered users viewing this page.