?? 多圈.sqe
字號:
========== Description Part Begin ==========
name = "多圈";
description = "每個實例逐個生成多個影像。";
version = "1.00";
bin = "Multi-shadow4.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"實例總數","指的是使用了該特效的實例的總數。這個值是由影片里所選中的實例數決定的,在這里不能設置。");
$nFrameCount(EDIT,INT,3,3 3,"總幀數","指的是含有動作代碼的總幀數。特效播放的總幀數可能比動作代碼的幀數多。");
$nLayer(EDIT,INT,8,1 100,"影像數量","要生成的影像的數量。");
$nInterval(EDIT,INT,4,1 100,"時間間隔","前一個實例和后一個實例開始變化的時間間隔。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nCharacterCount = 4;
nFrameCount = 8;
nLayer = 10;
nInterval = 4;
nIsRun = new Array(nCharacterCount);
for (i = 1; i <= nCharacterCount ; i++)
{
for(n = 0;n < nLayer;n++)
{
nIndex = nCharacterCount + i * nLayer + n;
this["c" + i].duplicateMovieClip("c"+nIndex, nIndex);
this["c" + nIndex]._xscale = 300 / nLayer * (n + 1);
this["c" + nIndex]._yscale = 300 / nLayer * (n + 1);
this["c" + nIndex]._alpha = 100 / nLayer * (nLayer - n);
this["c" + nIndex]._visible = false;
}
this["c" + i]._visible = false;
}
for (i = 1; i <= nCharacterCount ; i++)
{
if(i == 1)
nIsRun[0] = 10;
else
{
nIsRun[i - 1] = nIsRun[i - 2];
nIsRun[i - 1] += nInterval;
}
}
function fun()
{
if(this["c" + nCharacterCount]._visible)
gotoAndPlay(1);
for (i = 1;i <= nCharacterCount ; i++)
{
if(nIsRun[i - 1] < 0)
{
this["c" + i]._visible = true;
for(n = 0;n < nLayer;n++)
{
nIndex = nCharacterCount + i * nLayer + n;
this["c" + nIndex]._visible = true;
}
}
nIsRun[i -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 ==========
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -