5)在弹出的“Text Field Properties”对话框中,将“Variable”设为“text”,选择“Options”中的“Disable editing”和“Disable selection”两项;及“Outlines”中的“Include all font outlines”,如图所示; http://www.7880.com/Upload/2004_Pack/tr0802-dos3.gif" target=_blank>http://www.7880.com/Upload/2004_Pack/tr0802-dos3.gif" border=0>
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