Immediately kills all of the delayedCalls to a particular function. If, for example, you want to kill all delayedCalls to myFunction, you'd do this:
TweenMax.killDelayedCallsTo(myFunction);
Since a delayedCall is just a tween that uses the function/callback as both its target
and its onComplete
, TweenMax.killTweensOf(myFunction)
produces exactly the same result as TweenMax.killDelayedCallsTo(myFunction)
.
This method affects all delayedCalls that were created using TweenLite.delayedCall()
or TweenMax.delayedCall()
or the call()
or addCallback()
methods of TimelineLite or TimelineMax. Basically, any tween whose target is the function you supply will be killed.