stop();
//
import textTransition;
//
//Hide all text initially
for(var i:Number = 1; i<=6; i++){
this["Text"+i]._visible = false;
}
//
var currentText:Number = 0; //Define a counter to increment through Text(n)
//
var t:textTransition; //define a holder variable to reference each transition
//
//
function fadeIn():Void {
//
currentText = currentText>=6 ? 1 : currentText+1; //increment currentText up, unless its 6, then set it to 1 again
//
t = new textTransition(this["Text"+currentText], {speed:500, gap:30, delay:0, onComplete:fadeOut, onCompleteScope:this}); //create the transition on the current Text
//
}
//
function fadeOut():Void {
//
t.reanimate({_alpha:0, gap:0, speed:300, delay:2500, onComplete:fadeIn, onCompleteScope:this}); //fade out then redo fadeIn
//
}
//
//
fadeIn(); //call fadeIn the first time;