alt+鼠标左键点击源文本前面的小秒表,出现表达式输入框。黏贴以下表达式即可制作完成:
// 每秒显示字符
charPerSec = 5;
// 可自定义提示符号,预设为 "|"
prompt = [ "|", " " ];
// 目前打字显示位置
typePos= Math.round( time * charPerSec );
i = Math.round(time % 1);
text.sourceText = substr( 0, typePos) + prompt[i];