I'm new to actionscript and i'm trying to create a flash movie as follows:
there will be a typewriter look to it. not scrolling text i found the following script:
import flash.utils.Timer;
import flash.events.TimerEvent;
this works fine but i need to it to erase this text then start another paragraph 4 to be exact and then loop to the first paragraph. i have tried to do it myself but have not succeeded. any help would be appreciated.
there will be a typewriter look to it. not scrolling text i found the following script:
import flash.utils.Timer;
import flash.events.TimerEvent;
Code:
var i=0;
var myString:String = "this is the text it will type. "
var mytimer:Timer = new Timer(50,myString.length);
mytimer.addEventListener(TimerEvent.TIMER, timerHandler);
mytimer.start();
function timerHandler(event:TimerEvent):void{
mytext.appendText (myString.charAt(i));
i++;
}