Typewriter effect class (with sound)
Probably every flash developer has been at least once in his career asked to do a typewriter effect. So was I…
This class does the effect, with sound. You can either attach the texfield and send the string to be typed in init object, or have object already on the stage and use it’s writeText method.
example of use (from the above demo) :
typewriter.writeText("LOCATION : Las Vegas Strip\nTIME : 10:20 ","onTypingFinished");
typewriter.addEventListener("onTypingFinished",this);
If you need to know, when typing’s finished, you can add event listener to the typewriter class (“onTypingFinished” in this case), and send the callback name to it when calling writeText method as the second argument. If you using attachMovie method, you can send the callback name in initObj.


December 29th, 2009 at 2:33 pm
Dude, i have 1 day before vacations and in my work they ask me to do this at last moment for today! you just saved my life!!! thank youuuuu!!! haaaaaaaa