midwest web design

Creating writing text in Flash

If you have been working with Flash for any length of time, chances are you have seen many different visual affects, such as writing text. In some web applications where creativity for visual text is lacking, this is a very cool affect to create and it’s relatively easy to do. In the following article, we’ll examine the concept and technique to create writing text.

See Demo

Printable Version
Word PDF
Download Project Files
Zip

Create the file

Inside Flash, create a new file named writingtext.fla by following these steps:

New document window Flash

  1. Leave Flash document selected
  2. Left click OK

Create the following hierarchy:

myname

You only need one layer to create writing text. Make sure you reduce the magnification to 50% through the zoom drop down list:

Zoom drop down list

Create the movie clip

When the move loads, we need to write out a word, such as your name. Follow these steps to create the text:

My name layer

Blue backward arrow button

You might be wondering why we use a movie clip to hold our text. Because when the main movie loads, we need a separate movie clip to play the writing text sequence. It could be done from the main timeline, but developers tend to use movie clips to separate different sections of functionality.

Create the text

We’ll create the writing text sequence by using your name. Follow these steps to create the text:

In the movie clip, follow these steps:

Text layer

Selection tool

This breaks our graphic into individual letters and then into one bitmap object.

Write the text

The affect is essentially a mask. A mask is a way of only showing certain parts of an object to visitors. In our case, we do not want to show the completed text at the beginning, rather, we want to show it progressively, starting with the first letter in your name until we reach your full name. To create this affect, we need to erase individual letters over a series of frames, the reason for our bitmap object from above.

However, when erasing letters, you have to think backwards. For example, since you want to start writing the letter "R" of "Ryan" to your visitor, you start erasing the letter "R" at the end of "Butler" and work backwards, continuing with "e" in Butler. Furthermore, you erase in the opposite direction of how you normally write a letter. For example, take the letter "R", normally you would write it like this:

Correct R

As seen in the movie, we start at the top of the "r", go down and then make a half line off from the right of the "r". However, in Flash, you erase the letter backwards. For example, take our previous example; you erase the letter like this:

Erasing Backwards

Erasing the text

To create this affect, complete the following:

Eraser tool

Eraser options

Start erasing the last "R" in "Butler" as shown below:

Erasing text

You only erase little segments of each letter on separate key frames. The less you erase on each key frame the slower and more dramatic the affect will be. Continue the approach for the rest of your name. The hardest part of this affect is mentally doing. Sometimes it helps if you practice how you normally write the letter before you erase, to make sure you have the process right. You might also find it helpful to increase the zoom on the stage. Save your file and use writingtext_erasing.fla as a comparison.

Finishing the affect

When the movie loads and plays, the writing text affect would look odd since the movie starts erasing letters starting with "R" in "Butler". Follow these steps to reverse the frames to show correctly:

Save your file and use writingtext_reverse.fla as a comparison.

Adding a stop

When the movie loads, the writing text affect will work properly except that it loops. Follow these steps:

stop();

Save your work, and preview the results. Your text affect should be working.

Writing text finished

TIP

You might find it useful to increase your frame rate to make the affect smoother. To do so, follow these steps:

Frame rate

Summary

In this article we learned how to use Flash to create writing text. We also learned a bit about:

Take the knowledge learned here and write any text imaginable!

If you have questions, contact me.

top of page

Thank you for visiting Midwest Web Design.net - Come back again soon.