Returns an array containing all the tweens and/or timelines nested in this timeline. Callbacks (delayed calls) are considered zero-duration tweens.
Example
//first, let's set up a master timeline and nested timeline:
var master = new TimelineLite(),
nestedTimeline = new TimelineLite();
//drop 2 tweens into the nested timeline
nestedTimeline.to("#e1", 1, {x:100})
.to("#e2", 2, {y:200});
//drop 3 tweens into the master timeline
master.to("#e3", 1, {top:200})
.to("#e4", 1, {left:100})
.to("#e5", 1, {backgroundColor:"red"});
//nest the timeline:
master.add(nestedTimeline);
//now let's get only the direct children of the master timeline:
var children = master.getChildren(false, true, true, 0);
console.log(children.length); //"3" (2 tweens and 1 timeline)
//get all of the tweens/timelines (including nested ones) that occur AFTER 0.5 seconds
children = master.getChildren(true, true, true, 0.5);
console.log(children.length); //"5" (4 tweens and 1 timeline)
//get only tweens (not timelines) of master (including nested tweens):
children = master.getChildren(true, true, false, 0);
console.log(children.length); //"5" (5 tweens)