📄 打字.sqe
字号:
========== Description Part Begin ==========
name = "打字";
description = "实例输入的同时显示光标跟随的效果。";
version = "1.00";
bin = "typing.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多。");
$nInterval(EDIT,INT,5,1 10000,"时间间隔","前一个实例和后一个实例开始变化的时间间隔。");
$nCursorWidth(EDIT,INT,20,1 1000,"光标宽度","光标的宽度");
$nCursorHeight(EDIT,INT,3,1 1000,"光标高度","光标的高度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 8;
nInterval = 5;
nCursorWidth = 10;
nCursorHeight = 3;
r1._width = nCursorWidth;
r1._height = nCursorHeight;
nIsRun = new Array(nCharacterCount + 1);
for (i = 1; i <= nCharacterCount ; i++)
{
this["c" + i]._visible = false;
}
for (i = 1; i <= nCharacterCount + 1; i++)
{
if(i == 1)
nIsRun[0] = 0;
else
{
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] += nInterval ;
}
}
function fun()
{
for (i = 1;i <= nCharacterCount + 1; i++)
{
if(nIsRun[i - 1] < 0)
{
this["c" + i]._visible = true;
nNext = i + 1;
if(nNext > nCharacterCount)
{
this["r" + 1]._x = this["c" + i]._x + this["c" + i]._width;
}
else
{
this["r" + 1]._x = this["c" + nNext]._x;
}
this["r" + 1]._y = this["c" + i]._y + this["c" + i]._height / 2;
}
nIsRun[i -1] --;
}
if(nIsRun[nCharacterCount] < 0)
gotoAndPlay(1);
}
function again()
{
gotoAndPlay(2);
}
========== Function Part End ==========
========== Frame Part Begin ==========
$frame(fun,1,-1,"fun");
$frame(fun,2,-1,"fun");
$frame(again,3,-1,"again");
========== Frame Part End ==========
========== Resource Part Begin ==========
$"typing(rc).swf"("光标","光标。(您还可以选择更换其他的资源。)",3);
========== Resource Part End ==========
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -