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 isnt
any text to clear out! I just keep the code here because it doesnt do any
harm.)
Comment: ----------------------------------------------
Set Variable: "c" = 1
Loop While (c$#@60;=100)
Remove Movie Clip ("../font"&c)
Set Variable: "c" = c+1
End Loop
Set Variable: "length" = Length(text)
If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: move cursor
Comment: ----------------------------------------------
Set Property ("", X Position) = fontx+(fontwidth*(n))
End If
If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: type new character
Comment: ----------------------------------------------
Duplicate Movie Clip ("../original", "font"&n, n)
Set Variable: "../font"&n&":text" = Substring(text,n,1)
Set Property ("../font"&n, X Position) = fontx+(fontwidth*(n-1))
Set Property ("../font"&n, X Position) = GetProperty("../cursor",_x)-fontwidth
Set Property ("../font"&n, Y Position) = GetProperty("../cursor",_y)
Set Variable: "n" = n+1
Go to and Play (_currentframe-1)
End If
Set Variable: "n" = 1
Set Variable: "text" = "It is really easy to use."
Comment: ----------------------------------------------
Comment: clear out old text (NOTE: the first time you do this, there isnt
any text to clear out! I just keep the code here because it doesnt do any
harm.)
Comment: ----------------------------------------------
Set Variable: "c" = 1
Loop While (c$#@60;=100)
Remove Movie Clip ("../font"&c)
Set Variable: "c" = c+1
End Loop
Set Variable: "length" = Length(text)
If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: move cursor
Comment: ----------------------------------------------
Set Property ("", X Position) = fontx+(fontwidth*(n))
End If
If (n$#@60;=length)
Comment: ----------------------------------------------
Comment: type new character
Comment: ----------------------------------------------
Duplicate Movie Clip ("../original", "font"&n, n)
Set Variable: "../font"&n&":text" = Substring(text,n,1)
Set Property ("../font"&n, X Position) = fontx+(fontwidth*(n-1))
Set Property ("../font"&n, X Position) = GetProperty("../cursor",_x)-fontwidth
Set Property ("../font"&n, Y Position) = GetProperty("../cursor",_y)
Set Variable: "n" = n+1
Go to and Play (_currentframe-1)
End If