Share Posted June 9, 2013 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 } ); ... DamageInvunerable_IN.pause(0); 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 More sharing options...
Share Posted June 9, 2013 It sounds like you're using version 11 (or earlier). Back then, the method didn't accept any parameters. Make sure you're updated to v12. http://www.greensock.com/?download=GSAP-AS3 Link to comment Share on other sites More sharing options...
Author Share Posted June 9, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now