
Код AS3:
var i:uint = 0;
TweenMax.to ( getElementById(a[i]) , i, { visible:true , repeat:1 , yoyo:true , repeatDelay: 1, onComplete:next } );
funtion next():void{
if( i >= a.length ) i = 0;
else i++;
TweenMax.to ( getElementById(a[i]) , i, { visible:true , repeat:1 , yoyo:true , repeatDelay: 1, onComplete:next } );
}