# Action after typewriter effect

**URL:** <https://forum.kirupa.com/t/action-after-typewriter-effect/274960>\
**Category:** Uncategorized\
**Created:** [November 7, 2008, 12:38am UTC](https://forum.kirupa.com/t/action-after-typewriter-effect/274960 "2008-11-07T00:38:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dang](https://avatars.discourse-cdn.com/v4/letter/d/ba9def/32.png) [@dang](https://forum.kirupa.com/u/dang)\
**Post date:** [November 7, 2008, 12:38am UTC](https://forum.kirupa.com/t/action-after-typewriter-effect/274960/1 "2008-11-07T00:38:16Z")

</div>

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:

```auto
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!
