Written by: FlashJunkie
Difficulty Level: begining
Requirements: Flash 4
Download FLA

Here is the first frame of the "cursor". (I put all the code into the cursor to simplify use of this effect for others.)

Set Variable: "fontwidth" = 9
Set Variable: "fontx" = GetProperty("",_x)
Set Variable: "fonty" = GetProperty("",_x)

To start, we need some variables. I used a "fixed-width" font (every wharacter is exactly the same width... "Courier" is a good example of this kind of font. It is already designed to look correct when all the characters are spaced evenly. I then set a variable to represent the space between the left edges of each consecutive character. "fontwidth".

"fontx" and "fonty" are set by testing where the cursor is currently located.

Other than this frame, there are only three more frames that are used in making this effect work.

1) Clear previous text that was displayed. (The first time you display text this is not necessary, but there it is in the frame anyways because I made this effect so you can just copy and paste the three frames any number of times to add more text and it will work.

Set Variable: "n" = 1
Set Variable: "text" = "This is a DOS text typer effect."
Comment: ----------------------------------------------
Comment: clear out old text (NOTE: the first time you do this, there isn't any text to clear out! I just keep the code here because it doesn't do any harm.)
Comment: ----------------------------------------------
Set Variable: "c" = 1
Loop While (c<=100)
Remove Movie Clip ("../font"&c)
Set Variable: "c" = c+1
End Loop

The variable "n" keeps track of which character we are on. Because frames 2 and 3 loop between each other, if n was set to 1 in any of them, it would keep resetting itself. So we set it to 1 here. Again, this is more important in the subsequent uses of the code than in the first use. the variable "c" is a simple counter. We assume there is never more than 100 characters to remove. If you use more than 100, then you should change this number.