Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...

TweenMax.killDelayedCallsTo()

TweenMax.killDelayedCallsTo( function:Function ) :

[static] Immediately kills all of the delayedCalls to a particular function.

Parameters

function: Function

The function for which all delayedCalls should be killed/cancelled.

Details

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.

Copyright 2017, GreenSock. All rights reserved. This work is subject to theterms of useor for Club GreenSock members, the software agreement that was issued with the membership.
×