Arghya Posted July 21, 2014 Share Posted July 21, 2014 How to reset tween using TweenMax and change the clip to the initial position with all its properties like x,y scaleX, scaleY, color etc... plz give an example......... Link to comment Share on other sites More sharing options...
Carl Posted July 21, 2014 Share Posted July 21, 2014 It really helps if you provide a simple example so that we can see what you are doing. In the case of to() tweens you can just rewind the tween to the beginning. mc.x = 100; var tween = TweenLite.to(mc, 1, {x:200}); //then later pause at a time of 0, essentially resetting the tween. tween.pause(0); trace(mc.x) //100 Link to comment Share on other sites More sharing options...
Arghya Posted July 21, 2014 Author Share Posted July 21, 2014 how to remove tint from color tween after kill all tweens using Tweenmax..... Link to comment Share on other sites More sharing options...
Carl Posted July 21, 2014 Share Posted July 21, 2014 to remove a tint set the tint to null............. import com.greensock.*; TweenMax.to(mc, 1, {tint:0x00ff00}); TweenLite.delayedCall(0.5, kill) function kill() { TweenMax.killAll(); TweenMax.set(mc, {tint:null}); } http://api.greensock.com/as/com/greensock/plugins/TintPlugin.html 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