# Typewritereffect that can change line?

**URL:** <https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485>\
**Category:** Uncategorized\
**Created:** [June 4, 2003, 5:42pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485 "2003-06-04T17:42:28Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![tsavo](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@tsavo](https://forum.kirupa.com/u/tsavo)\
**Post date:** [June 4, 2003, 5:42pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/1 "2003-06-04T17:42:28Z")

</div>

hi there! I been searching a lot for a tut that shows u how to do the typewriter effect, but havent been able to find anything I can use.  
I have a textfield and I want the effect as if the text is being written when it animates. The problem is that all the tutorials I have found about the typewriter effect, only displays a few words in one line… now, I need the same effect, only on a whole column and not just a single line. Is it even possible to do this? and if so, can someone guide me to a tutorial or help me out somehow?  
thanks! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 6:43pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/2 "2003-06-04T18:43:54Z")

</div>

```auto
TextField.prototype.typeWriter = function(cps) {
	var str = this.text, index = 0, field = this, typer = function () {
		index<=str.length ? field.text=str.substr(0, index++) : clearInterval(init);
	}, init = setInterval(typer, 1000/cps);
};

```

the argument **cps** , stands for characters per second, self explanatory i believe. 😛

just enter your text in a dynamic TextField, assign an instance name to the TextField and you’re all set. 😉

```auto
myTextFieldInstanceName.typeWriter(12);

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 6:56pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/3 "2003-06-04T18:56:42Z")

</div>

thanks a lot! Ill give it a try!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 7:05pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/4 "2003-06-04T19:05:43Z")

</div>

wohuuu! its working! no idear how it works, but it does!!!  
thanks man!😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 7:35pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/5 "2003-06-04T19:35:48Z")

</div>

😛

no problem, tsavo. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 7:44pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/6 "2003-06-04T19:44:26Z")

</div>

I ran into a small problem…  
the textfield is placed inside a mc, that is placed inside of another mc… Now I cant get it to work.

I put your code in the mc containing the textbox and corrected the path to the textbox, but nothing happens now…:-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 7:56pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/7 "2003-06-04T19:56:20Z")

</div>

hmm. just tried in a new document, and there it works just fine, without chaning anything… Don’t understand y i doesn’t work in the flash Im working with…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 8:15pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/8 "2003-06-04T20:15:37Z")

</div>

been experimenting a little, and found out that everytime I put the mc with the textfield on a layer, that is masked, it doesnt work… y is that?!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 9:51pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/9 "2003-06-04T21:51:48Z")

</div>

in order to mask dynamic text, you must embed the font outline. 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 4, 2003, 11:58pm UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/10 "2003-06-04T23:58:18Z")

</div>

not sure how to do that…:q: :bounce:

anyways I found a way to work around it, but then - of course- a new prob occurd! when the clip begins, all is revealed in a glimpse before it begins! is there anyway to deal with this?🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 2:41am UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/11 "2003-06-05T02:41:21Z")

</div>

[Check This One Out](http://www.actionscript.org/tutorials/beginner/Scripted_Typerwriter/index.shtml)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 5, 2003, 9:10am UTC](https://forum.kirupa.com/t/typewritereffect-that-can-change-line/22485/12 "2003-06-05T09:10:10Z")

</div>

thx for all your help guys! it works perfectly now!!😛
