📄 倒计时.sqe
字号:
========== Description Part Begin ==========
name = "倒计时";
description = "时钟走一圈,在其中间的实例就被替换一次。";
version = "1.00";
bin = "CountDown.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"实例总数","指的是使用了该特效的实例的总数。这个值是由影片里所选中的实例数决定的,在这里不能设置。");
$nFrameCount(EDIT,INT,3,3 3,"总帧数","指的是含有动作代码的总帧数。特效播放的总帧数可能比动作代码的帧数多");
$nStartPosX(EDIT,INT,5,-100 10000,"X","时钟中心点X的值。");
$nStartPosY(EDIT,INT,5,-100 10000,"Y","时钟中心点Y的值。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 3;
nStartPosX = 0;
nStartPosY = 0;
_global.bNext = true;
r1.duplicateMovieClip("r2",nCharacterCount+ 1);
r1._visible = false;
r2._x = nStartPosX;
r2._y = nStartPosY;
nWhoRun = 0;
nIndex = nCharacterCount + 2;
for(i = 1;i <= nCharacterCount;i++)
{
this["c" + i].duplicateMovieClip("cc" + i,nIndex++);
this["c" + i]._visible = false;
this["cc" + i]._x = nStartPosX;
this["cc" + i]._y = nStartPosX;
this["cc" + i]._visible = false;
}
function fun()
{
if(_global.bNext)
{
this["cc" + nWhoRun]._visible = false;
nWhoRun++;
if(nWhoRun > nCharacterCount)
nWhoRun = 1;
this["cc" + nWhoRun]._visible = true;
_global.bNext = false;
}
}
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 ==========
$"CountDown(rc).swf"("时钟","运行的时钟。(注意: 代码 _global.bNext = true应该添加到替代资源的最后一帧。)",5);
========== Resource Part End ==========
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -