1°) I create 4 sequences
t1 = new Sequence();
t2 = new Sequence();
t3 = new Sequence();
t4 = new Sequence();
2°) I add Tweens to these sequences for each square
for(var i = 1; i < 4; i++){
var elem = document.getElementById('sq' + i);
t1.addChild(new OpacityTween(elem,Tween.bounceEaseOut,100,0,1));
t2.addChild(new ColorTween(elem.style,'backgroundColor',Tween.bounceEaseOut,'FF0000','00FF00',1));
t3.addChild(new Tween(elem.style,'width',Tween.bounceEaseOut,25,100,0.5,'px'));
}
3°)
I add the first 3 sequences to the 4th (sequence of sequences)
t4.addChild(t3);
t4.addChild(t2);
t4.addChild(t1);