Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to Actionscript

Status
Not open for further replies.

tamaro

IS-IT--Management
Apr 8, 2003
37
US
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;

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++; 

}
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top