Jump to content


removing tweens created with new keyword

Recommended Posts

Is it necessary to null a tween created with the new keyword?

or just use kill() ?



Link to comment
Share on other sites

Internally in TweenLite, kill() is all you need to do, but in AS3 in general, it's typically a good practice to null your variables so that their reference becomes eligible for garbage collection. Again, that has nothing to do specifically with TweenLite/Max - it's just how AS3 works for all non-local variables.

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.