Jump to content
Search Community

Storage for tweens

Max test
Moderator Tag

Recommended Posts

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

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

  • 2 weeks later...

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.
×
×
  • Create New...