Jump to content


killTweensOf on multiple tweened objects

Moderator Tag

Recommended Posts

Hi, I am trying to kill the common tween assigned to two movieclips


TweenLite.to([obj1, obj2], 1, { y: 10, onComplete: smile } );

If I do something like



the onComplete function continue to exhist, but why? I am doing something wrong for sure...

Link to comment
Share on other sites

Nope, you weren't doing anything wrong. If you had killedTweensOf() that exact array (rather than each element separately), it would have worked. We needed to add a small chunk of code to accommodate what you were attempting (which was completely reasonable, by the way). It should be fixed in the latest version. Sorry about any confusion that caused. 

Link to comment
Share on other sites

Well, I didn't think about killing tweens of an array, my mistake. Anyway I think that this approach would not work for me, as the array of elements to tween can change, so I am obligued to killTweensOf the single elements.

In the meanwhile I am tweening elements separately, assigning the onComplete to just one of them, obviously.

Waiting for the new release, and, as always... keep on the good work! Thank you Jack!

Link to comment
Share on other sites

No problem - the new AS3/AS2 release is live.

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.