Jump to content
Search Community

Using TweenLite.to() function inside onEnterFrame event

Vishwas Gagrani test
Moderator Tag

Recommended Posts

∂ hi!

Is it ok to use TweenLite.to() function inside an onEnterFrame event. Or should i be careful killing it before every use ?

Actually my concern is if TweenLite.to() produces memory usage and it may pile up for being used continuously without getting removed by onEnterFrame.

 

 

Thanks

Vishwas

Link to comment
Share on other sites

Sure, you can put a TweenLite.to() call in an onEnterFrame if you want, although it seems to be somewhat counterintuitive to keep re-creating your tween over and over again. It would probably never reach the destination. But you don't need to worry about manually killing each tween - TweenLite and TweenMax handle that automatically internally.

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