Typewriter effect class (with sound)

October 17th, 2007 by Slav

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.

 Download Typewriter Demo

Posted in AS2, flash

One Response

  1. P48l0

    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

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.