Flash Script – Simple Typewriter Effect

By Georgina Laidlaw

Download the sample files here.

1. Create one text field, and give it variable name "type".

2. Create 3 keyframes as shown below:


3. In the first key frame, insert the action:

text = "This text is being displayed with type writer effect"; 
max = length(text);  
loop = 1;

4. In the second key frame insert the action:

loop = loop + 1  

type = substring(text,1,loop);

5. In the third key frame insert the action:

if (i > max)  
{ stop(); }  
{ gotoAndPlay (2); }

6. That’s it! You have built your own type writer effect!

No Reader comments



Learn Coding Online
Learn Web Development

Start learning web development and design for free with SitePoint Premium!

Instant Website Review

Use Woorank to analyze and optimize your website to improve your website to improve your ranking!

Run a review to see how your site can improve across 70+ metrics!

Get the latest in Front-end, once a week, for free.