Jump to content

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

TweenMax pause not accepting arguments.

Recommended Posts

After a TweenMax update. Pause stop do accept arguments, in this case, the "atTime". Some thing strange is when i see the function, there is 2 optional arguments: "atTime", "suppressEvents". But when i try to call the function with the arguments compiler gives a error:


 col: 31 Error: Incorrect number of arguments.  Expected no more than 0.


The code is this:


DamageInvunerable_IN = TweenMax.to(this, 0.15, { startAt: { brightness: -.6, hue:0, contrast:.25, saturation: -.25 }, brightness:0, hue:0, contrast:0, saturation:0, overwrite:false, repeat: -1, yoyo:true, ease:Quad.easeInOut } );
So, when i call to the tween to stop i want to it always stop at the time zero.
Is some thing wrong? Why it does not work?


Link to comment
Share on other sites

I updated to 12 long time before. It start to happen after a another update.


But i replaced all the files again with the current version and the problem disappear. So i think my files was mixed with new and old versions.   

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.