# Typewriter Text Effect usinf Flash 5

**URL:** <https://forum.kirupa.com/t/typewriter-text-effect-usinf-flash-5/176121>\
**Category:** flash\
**Created:** [January 20, 2006, 2:42pm UTC](https://forum.kirupa.com/t/typewriter-text-effect-usinf-flash-5/176121 "2006-01-20T14:42:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dheepaksivam](https://avatars.discourse-cdn.com/v4/letter/d/d07c76/32.png) [@dheepaksivam](https://forum.kirupa.com/u/dheepaksivam)\
**Post date:** [January 20, 2006, 2:42pm UTC](https://forum.kirupa.com/t/typewriter-text-effect-usinf-flash-5/176121/1 "2006-01-20T14:42:31Z")

</div>

Hi,  
I am new to Flash, and as well new to this site and forum!

I found this site to be very useful and the way the tutorials are so simple and easy to understand, rather than using Jargons which i bet even the advanced users get confused!

Well, I am working on a smal project for my friend, in having the wedding invitation designed, to be sent over e-mails.

And i have used quite some effects form this site like the Ray of Light, Random Text, Pool of squares…!

\*\*Now I am looking specifically for the typewriter text effect, where the text gets displayed one after another, this is for a paragraph, in invitation! \*\ ***would greatly appreciate if someone could help me out with this, and suggest some good ones!**

**Thanks in advance, and awaiting for reply!**

Rgds,

D’pak

---

<div class="post-metadata">

**Author:** ![Pixeladdict](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Pixeladdict](https://forum.kirupa.com/u/Pixeladdict)\
**Post date:** [April 4, 2006, 12:19am UTC](https://forum.kirupa.com/t/typewriter-text-effect-usinf-flash-5/176121/2 "2006-04-04T00:19:09Z")

</div>

> [@TheCanadian](#):
>
> Requires dynamic text field on the stage with var _disp_.
> 
> ActionScript Code:  
> [FONT=Courier New][LEFT][COLOR=#000000] **var** [/COLOR] txt = [COLOR=#ff0000]“[COLOR=#000099]\*\* \*\*[/COLOR]Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam tristique ante in dolor. Nulla vel.”[/COLOR] + [COLOR=#ff0000]“Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam tristique ante in dolor. Nulla vel.”[/COLOR];\</p\>  
> \<p\>var i = [COLOR=#000080]0[/COLOR];\</p\>  
> \<p\>var writeInt = [COLOR=#0000ff]setInterval[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000000] **function** [/COLOR] COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]\</p\>  
> \<p\> i++;\</p\>  
> \<p\> disp = txt.[COLOR=#0000ff]substr[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000080]0[/COLOR], i[COLOR=#000000])[/COLOR];\</p\>  
> \<p\> [COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR]i == txt.[COLOR=#0000ff]length[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#000000]{[/COLOR]\</p\>  
> \<p\> [COLOR=#0000ff]clearInterval[/COLOR]COLOR=#000000[/COLOR];\</p\>  
> \<p\> [COLOR=#000000]}[/COLOR]\</p\>  
> \<p\>[COLOR=#000000]}[/COLOR], [COLOR=#000080]1000[/COLOR] / [COLOR=#000080]30[/COLOR][COLOR=#000000])[/COLOR];  
> [/LEFT]  
> [/FONT]

Excellent.  
Can you remake the code, so that the text slows down more and more near the end?
