I know there are a lot of different typewriter effects but none of them show how to go to another frame after the message has been typed. In other words, I’m using a script I found to simultate a message being typed out. That script action is on a single frame and stopped. What I would like help with is what to do after that message has been typed out and it should then go to another frame label.
Here is the script I’m using for the typewriter effect:
var q:Number = 1;
var typeSpeed:Number = 100; // time between letters in milliseconds; smaller numbers dictate faster typing
var copy:String = "Look, Ma! I'm typing in Flash!";
function type():Void {
textbox = copy.substring(0, q);
q++;
if (q == copy.length) {
textbox = copy;
clearInterval(typeInterval);
}
}
typeInterval = setInterval(this, "type", typeSpeed);
Thank you for your time and help!