?? 霓虹閃爍2.sqe
字號:
========== Description Part Begin ==========
name = "霓虹閃爍2";
description = "五彩繽紛的實例和被復制的實例漸漸顯示,向外擴展,直到消失。";
version = "1.00";
bin = "Multi-shadow3.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"實例總數","指的是使用了該特效的實例的總數。這個值是由影片里所選中的實例數決定的,在這里不能設置。");
$nFrameCount(EDIT,INT,3,3 3,"總幀數","指的是含有動作代碼的總幀數。特效播放的總幀數可能比動作代碼的幀數多。");
$nScaleSpeed(EDIT,INT,5,1 100,"縮放速度","實例的縮放速度。");
$nAlphaSpeed(EDIT,INT,3,1 100,"透明度變化速度","實例的透明度變化速度。");
$nCopyInterval(EDIT,INT,8,1 1000,"復制實例的時間間隔","實例和被復制的實例顯示的時間間隔。");
$nNextInterval(EDIT,INT,3,1 1000,"實例時間間隔","前一個實例和后一個實例開始變幻的時間間隔。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 8;
nAlphaSpeed = 3;
nScaleSpeed = 5;
nCopyInterval = 8;
nNextInterval = 3;
nTempNextInterval = nNextInterval;
nTempCopyInterval = new Array( nCharacterCount );
nIndex = new Array( nCharacterCount );
nBegin = new Array( nCharacterCount );
nDepth = nCharacterCount;
nWhoRun = 1;
for(i = 1;i <= nCharacterCount;i++)
{
nTempCopyInterval[i] = nCopyInterval;
nIndex[ i ] = 1;
nBegin[ i ] = 1;
this["c" + i]._visible = false;
}
function fun()
{
nTempNextInterval--;
if(nTempNextInterval == 0)
{
nWhoRun++;
if(nWhoRun > nCharacterCount)
nWhoRun = nCharacterCount;
nTempNextInterval = nNextInterval;
}
for ( i = 1;i <= nWhoRun; i++)
{
for(n = nBegin[i];n <= nIndex[i];n++)
{
this["t" + i + n]._xscale += nScaleSpeed;
this["t" + i + n]._yscale += nScaleSpeed;
this["t" + i + n]._alpha -= nAlphaSpeed;
if(this["t" + i + n]._alpha < 0)
{
this["t" + i + n].removeMovieClip();
nBegin[i]++;
if(i == nCharacterCount && n == 5)
gotoAndPlay(1);
}
tempColor = new Color(this["t" + i + n]);
col = random(0xffffff);
tempColor.setRGB(col);
}
}
for (i = 1;i <= nWhoRun; i++)
{
nTempCopyInterval[i]--;
if(nTempCopyInterval[i] == 0)
{
if(nIndex[i] >= 5)
break;
nDepth++;
nIndex[i]++;
this["c" + i].duplicateMovieClip("t"+ i + nIndex[i], nDepth);
nTempCopyInterval[i] = nCopyInterval;
}
}
}
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 ==========
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -