Jump to content
GreenSock

TweenMax.getAllTweens()

TweenMax.getAllTweens( includeTimelines:Boolean ) : Array

[static] Returns an array containing all tweens (and optionally timelines too, excluding the root timelines).

Parameters

includeTimelines: Boolean

(default = false) — If true, TimelineLite and TimelineMax instances will also be included.

 

Returns : Array

Array of tweens/timelines

Details

Returns an array containing all tweens (and optionally timelines too, excluding the root timelines). If your goal is to affect all of the tweens/timelines/delayedCalls (like to pause() them or reverse() or alter their timeScale), you might want to consider using the static TimelineLite.exportRoot() method instead because it provides a single instance that you can use to control everything.

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