Jump to content
GreenSock

TimelineMax

.removeCallBack()

.removeCallBack( callback:Function, timeOrLabel:* ) : TimelineMax

Removes a callback from a particular position.

Parameters

callback: Function

callback function to be removed

timeOrLabel: *

(default = null) — the time in seconds (or frames for frames-based timelines) or label from which the callback should be removed. For example,myTimeline.removeCallback(myFunction, 3) would remove the callback from 3-seconds into the timeline, and myTimeline.removeCallback(myFunction, "myLabel")would remove it from the “myLabel” label, and myTimeline.removeCallback(myFunction, null) would remove ALL callbacks of that function regardless of where they are on the timeline.

Returns : TimelineMax

self (makes chaining easier)

Details

Removes a callback from a particular position. If the timeOrLabel parameter is null, all callbacks of that function are removed from the timeline.

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