self (makes chaining easier)
Version:
GreenSock Docs
Timeline
.clear()
.clear( labels:Boolean ) : *
Empties the timeline of all tweens, timelines, and callbacks (and optionally labels too).
Parameters
labels: Boolean
(default = true
) — If true
(the default), labels will be cleared too.
Returns : *

Details
Empties the timeline of all tweens, timelines, and callbacks (and optionally labels too). Event callbacks (like onComplete, onUpdate, onStart, etc.) are not removed. If you need to remove event callbacks, use the eventCallback()
method and set them to null like myTimeline.eventCallback("onComplete", null);