Max Posted December 18, 2013 Share Posted December 18, 2013 Hu guys, I develop a scene with several objects. Each object could be moved by a tween. Each object has it's own tween. At the certain point I need to stop and delete all tweens as the scene. So, my question: Could I use TimelineLite for this or should I develop my own tween registry and handling code? p.s. sorry for lame question... Link to comment Share on other sites More sharing options...
Carl Posted December 18, 2013 Share Posted December 18, 2013 Yeah, I think a TimelineLite is the obvious and good choice, but there are some more options. 1: TweenLite.killTweensOf(), you can pass this method an array of all the objects that are being tweened and need to be killed 2: TweenMax.killChildTweensOf(): Kills all tweens of the children of a particular MovieClip/DisplayObjectContainer, optionally forcing them to completion first. you can read about both methods in the docs [EDIT] I originally answered this thinking you were using JavaScript. This post has been updated for ActionScript-specific definitions and links. Link to comment Share on other sites More sharing options...
Max Posted December 18, 2013 Author Share Posted December 18, 2013 Hi Carl! I am glad I didn't start to reinvent the wheel! Thank you for your reply! Do you think method: TweenMax.killChildTweensOf() will work fine with Starling DisplayObjects? Link to comment Share on other sites More sharing options...
Max Posted December 26, 2013 Author Share Posted December 26, 2013 TweenMax.killChildTweensOf() doesn't work with Starling. 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