Typing Text Animation Array Tutorial
Learn to program arrays in flash to animate typing text. We use an EnterFrame event to animate the plucking of the array elements(by using shift()) that are created by using split() on any string of text content. This can also easily have dynamic and external string data applied to the animation.
var myString:String = "Put as much string data as you wish to here";
var myArray:Array = myString.split("");
addEventListener(Event.ENTER_FRAME, frameLooper);
function frameLooper(event:Event):void {
if (myArray.length > 0) {
tf.appendText(myArray.shift());
} else {
removeEventListener(Event.ENTER_FRAME, frameLooper);
}
}