Jump to content
GreenSock

drinkspiller

Kill dynamicProps

Recommended Posts

Hi Jack,

 

How does one kill a dynamicProps property tween? Even after TweenMax.killAll() the dynamicProps updates still occur. Cheers!

Link to comment
Share on other sites

Ummm....really? Could you post a sample? If you kill the tween, I can't imagine how the dynamicProps would continue. I wonder if there's something else going on in your code.

Link to comment
Share on other sites

Hi Jack,

 

Maybe there is something going on. Let me put together a little bare bones test. In the meantime, is there an preferred , less heavy-handed method for stopping a dynamic prop from constantly deriving its value from its associated function?

Link to comment
Share on other sites

There are lots of options:

 

TweenLite.killTweensOf(myObject) to kill all tweens of that object
-OR-
myTween.kill(); //to kill the individual tween
-OR-
myTween.killVars({dynamicProps:true}); //to kill only the dynamicProps portion of the individual tween

Link to comment
Share on other sites

Thanks, Jack. Clearly something else is at play in my app code. When I break the code out into a bare bones test, everything work precisely as expected. Thanks again!

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.
×