Hi,
i´ve found this code with typewrite simulation,
but just work for one sentence. how can i change the code to use for more sentences and with loop?
function typewriter(textBox:TextField, string:String, speed:int):void {
var stringLength:Number = string.length;
var counter:Number = 1;
function wait() {
if(counter == stringLength) {
clearInterval(myTimer);
}
textBox.text = string.substr(0,counter);
counter++;
}
var myTimer = setInterval(wait, speed);
}
typewriter(textbox, "Semper et ubíque unum ius", 50);