# Typewriter effect

**URL:** <https://forum.kirupa.com/t/typewriter-effect/185989>\
**Category:** Uncategorized\
**Created:** [April 18, 2006, 8:59am UTC](https://forum.kirupa.com/t/typewriter-effect/185989 "2006-04-18T08:59:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neolumi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/neolumi/32/1306_2.png) [@Neolumi](https://forum.kirupa.com/u/Neolumi)\
**Post date:** [April 18, 2006, 8:59am UTC](https://forum.kirupa.com/t/typewriter-effect/185989/1 "2006-04-18T08:59:24Z")

</div>

Hi people, I’ve search the forums and google but cant find what I’m after. What I’d like is the typewriter effect without using the timeline, so everything happens in the same frame, for example use of a function where you’d say output(message,targetmc).

thanks!

---

<div class="post-metadata">

**Author:** ![theflash](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/theflash/32/1221_2.png) [@theflash](https://forum.kirupa.com/u/theflash)\
**Post date:** [April 18, 2006, 9:08am UTC](https://forum.kirupa.com/t/typewriter-effect/185989/2 "2006-04-18T09:08:34Z")

</div>

Are you sure you did enough search. There are many tuts you can find through google…

Anyway here is the first link from my google search…  
[http://www.actionscripts.org/tutorials/beginner/Scripted\_Typerwriter/index.shtml](http://www.actionscripts.org/tutorials/beginner/Scripted_Typerwriter/index.shtml)

PS: =flash typewriter effect= is the keywork I used

---

<div class="post-metadata">

**Author:** ![claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@claudio](https://forum.kirupa.com/u/claudio)\
**Post date:** [April 18, 2006, 12:23pm UTC](https://forum.kirupa.com/t/typewriter-effect/185989/3 "2006-04-18T12:23:31Z")

</div>

You can use somthing like this:

```auto
_global.TW = function(target:TextField, str:String, updateRate:Number):Void {
	var i=0,l=str.length,interval;
	DisplayChars = function () {
		target.text += str.charAt(i);
		updateAfterEvent();
		if (i++ == l)	clearInterval(interval);
	};
	interval = setInterval(DisplayChars, updateRate);
};
TW(mytextField, "Hi people, I've search the forums and google but cant find what I'm after.", 80);

```

---

<div class="post-metadata">

**Author:** ![Neolumi](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/neolumi/32/1306_2.png) [@Neolumi](https://forum.kirupa.com/u/Neolumi)\
**Post date:** [April 19, 2006, 4:14pm UTC](https://forum.kirupa.com/t/typewriter-effect/185989/4 "2006-04-19T16:14:11Z")

</div>

hey, thanks for your replies. I’ve used the code from theflash’s link. Sorry I was being retarded about use of frames etc (its been a while since i picked up flash). Have a new problem now though 😛
