?? 霓虹閃爍1.sqe
字號:
========== Description Part Begin ==========
name = "霓虹閃爍1";
description = "五彩繽紛的實例不斷向外擴展,形成霓虹閃爍的效果。";
version = "1.00";
bin = "Multi-shadow2.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,5,1 100,"透明度變化速度","實例的透明度變化速度。");
$nInterval(EDIT,INT,2,1 1000,"時間間隔","前一個實例和后一個實例開始顯示的時間間隔。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 8;
nFrameCount = 8;
nAlphaSpeed = 2;
nScaleSpeed = 4;
nInterval = 8;
nTempInterval = nInterval;
nIndex = 0;
nDepth = nCharacterCount;
bEnd = false;
function fun()
{
for (i = 1;i <= nCharacterCount ; i++)
{
for(n = 1;n <= nIndex;n++)
{
this["t" + i + n]._xscale += nScaleSpeed;
this["t" + i + n]._yscale += nScaleSpeed;
this["t" + i + n]._alpha -= nAlphaSpeed;
tempColor = new Color(this["t" + i + n]);
col = random(0xffffff);
tempColor.setRGB(col);
}
}
if(bEnd)
{
if(this["t" + nCharacterCount + nIndex]._alpha < 0)
{
for (i = 1;i <= nCharacterCount ; i++)
{
for(n = 1;n <= nIndex;n++)
{
this["t" + i + n].removeMovieClip();
}
}
gotoAndPlay(1);
}
return ;
}
nTempInterval--;
if(nTempInterval == 0)
{
nIndex++;
for (i = 1;i <= nCharacterCount ; i++)
{
nDepth++;
this["c" + i].duplicateMovieClip("t"+ i + nIndex, nDepth);
}
if(nIndex >= 10)
{
bEnd = true;
}
nTempInterval = nInterval;
}
}
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 + -