# Type Writter effect

**URL:** <https://forum.kirupa.com/t/type-writter-effect/27945>\
**Category:** flash\
**Created:** [August 8, 2003, 3:54am UTC](https://forum.kirupa.com/t/type-writter-effect/27945 "2003-08-08T03:54:00Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![naked\_chicken](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@naked\_chicken](https://forum.kirupa.com/u/naked_chicken)\
**Post date:** [August 8, 2003, 3:54am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/1 "2003-08-08T03:54:00Z")

</div>

Hey all i didnt get any help on my other post but i figured it out i searched for this but i cant find any thing good cany any one tell me the action script to just do a type writter effect

---

<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:** [August 8, 2003, 3:55am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/2 "2003-08-08T03:55:57Z")

</div>

Hey um, I thought I saw one somewhere… I’ll look…

---

<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:** [August 8, 2003, 3:58am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/3 "2003-08-08T03:58:45Z")

</div>

This should do it… [http://www.flashkit.com/movies/Effects/Text\_Effects/Type\_Wri-Puneet-3373/index.php](http://www.flashkit.com/movies/Effects/Text_Effects/Type_Wri-Puneet-3373/index.php)

---

<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:** [August 8, 2003, 4:00am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/4 "2003-08-08T04:00:00Z")

</div>

Hehe thanxs alot man i searched on flash kit but of course i spelled it wrong well thanx alot

---

<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:** [August 8, 2003, 4:28am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/5 "2003-08-08T04:28:12Z")

</div>

I did too, typerwriter at first… lol

---

<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:** [August 8, 2003, 4:30am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/6 "2003-08-08T04:30:52Z")

</div>

LoL yeah well once again thanx and one more thing can u tell me how to put a banner at the bottom like urs?

---

<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:** [August 8, 2003, 4:37am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/7 "2003-08-08T04:37:42Z")

</div>

[AS]TextField.prototype.typeWriter = function(milliseconds, text) {  
var index, str, init;  
str = text.length ? text : this.text;  
this.$typer = function() {  
this.text = str.substr(0, ++index);  
if (index == str.length) clearInterval(init);  
};  
init = setInterval(this, “$typer”, milliseconds);  
};  
// usage example 1  
this.createTextField(“test\_txt”, 0, 0, 0, 0, 0);  
test\_txt.autoSize = true;  
test\_txt.setNewTextFormat(new TextFormat(“Verdana”, 10));  
test\_txt.text = “naked\_chicken”;  
test\_txt.typeWriter(100);  
// usage example 2  
this.createTextField(“test\_txt”, 0, 0, 0, 0, 0);  
test\_txt.autoSize = true;  
test\_txt.setNewTextFormat(new TextFormat(“Verdana”, 10));  
test\_txt.typeWriter(100, “naked\_chicken”);[/AS]

---

<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:** [August 8, 2003, 4:41am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/8 "2003-08-08T04:41:03Z")

</div>

\_target.kax(firemissle);

---

<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:** [August 8, 2003, 4:42am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/9 "2003-08-08T04:42:04Z")

</div>

LOL well thatnx kax but that just confused me im a big dumby as u should tell i cant ever spell writter right or did i?

---

<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:** [August 8, 2003, 4:44am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/10 "2003-08-08T04:44:54Z")

</div>

Here’s another type writter effect on this site with a FLA as well.

[http://billwatson.no-ip.info/public/tektips/dloads.html](http://billwatson.no-ip.info/public/tektips/dloads.html)

---

<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:** [August 8, 2003, 4:53am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/11 "2003-08-08T04:53:37Z")

</div>

OK… let’s make things easier. 😛

1. Paste this code in the first frame actions of your movie (highligh the frame and hit F9):  
[AS]TextField.prototype.typeWriter = function(milliseconds, text) {  
var index, str, init;  
str = text.length ? text : this.text;  
this.$typer = function() {  
this.text = str.substr(0, ++index);  
if (index == str.length) clearInterval(init);  
};  
init = setInterval(this, “$typer”, milliseconds);  
};[/AS]

2. Create a dynamic TextField and write the text.

3. Assign an instance name to the TextField. For the sake of this example, I’ll call it _myTextField_.

4. Go to the frame actions and call the method:  
[AS]myTextField.typeWriter(100);[/AS]  
You’d replace myTextField with whatever you called the TextField.

The first parameter, milliseconds, is basically the speed at which the text is written.

The second parameter, text, is the text that you want to write in the TextField. It’s an optional parameter.

Got it? =)

---

<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:** [August 8, 2003, 5:39am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/12 "2003-08-08T05:39:29Z")

</div>

hehe yeah thanx alot to you kax and you 2 dude

---

<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:** [August 8, 2003, 5:45am UTC](https://forum.kirupa.com/t/type-writter-effect/27945/13 "2003-08-08T05:45:22Z")

</div>

You’re welcome. 😉
