<https://greensock.com/forums/topic/20011-getchildren-on-timeline-with-stagger/#comment-93291>
<http://schema.org/text>
"Yep, editing the prototype as @Rodrigo suggested should work.\n \n\n\n\t \n \n\n\n\tThe checking instance stuff could be done like this: \n \n\n\n\t \n \n\n\nfunction animationType(obj) {\n    return (obj instanceof TimelineMax) ? \"TimelineMax\" : (obj instanceof TimelineLite) ? \"TimelineLite\" : (obj instanceof TweenMax) ? \"TweenMax\" : (obj instanceof TweenLite) ? \"TweenLite\" : \"undefined\";\n}\n\n\n\t \n \n\n\n\tHere's a quick function I whipped up that'll flatten the labels (find all labels in nested timelines and add them to the top level timeline that's passed into the function): \n \n\n\nfunction flattenLabels(tl) {\n    var children = tl.getChildren(false, false, true),\n        curTL, labels, p, i;\n    for (i = 0; i &lt; children.length; i++) {\n        curTL = flattenLabels(children[i]);\n        labels = curTL._labels; //undocumented\n        for (p in labels) {\n            tl.addLabel(p, curTL.startTime() + labels[p]);\n        }\n    }\n    return tl;\n}\n\n\n\t \n \n\n\n\tDoes that help? \n \n"
<https://greensock.com/forums/topic/20011-getchildren-on-timeline-with-stagger/#comment-93255>