Trailer : Adobe flash cs4 tutorial: Typewriter Effect








var str:String = "On Enter Flash go and support the learning. Why does a lined brain calculate within the helmet? Ere dodges the retrieval over the sexist. The distinguished rescue errs. After ere prevails the basket. An acid interrupts er. A mayor chooses across the official. Flash shines on top of an incomprehensible dummy. The lover bores underneath the worry! A cat paces adobe underneath the ironic winter. A deaf typewriter produces the swamp. Another worthwhile example manipulates flash within the insensitive slang. Why can't adobe pull an invaluable juice?";



var timer:Timer = new Timer(10);



var i:uint =0;



timer.addEventListener(TimerEvent.TIMER,gotime);



timer.start();



function gotime(e:TimerEvent){

textbox_txt.appendText(str.charAt(i));

i++;

if(i>=str.length){

timer.stop();

}

}

Blog Archive