?? 四分.sqe
字號:
========== Description Part Begin ==========
name = "四分";
description = "每個(gè)實(shí)例變幻成四個(gè),分別朝兩邊飛去,最后在初始位置重現(xiàn)。";
version = "1.00";
bin = "Separation2.bin";
========== Description Part End ==========
========== Parameter Part Begin ==========
$nCharacterCount(EDIT,INT,1,1 10000,"實(shí)例總數(shù)","指的是使用了該特效的實(shí)例的總數(shù)。這個(gè)值是由影片里所選中的實(shí)例數(shù)決定的,在這里不能設(shè)置。");
$nFrameCount(EDIT,INT,3,3 3,"總幀數(shù)","指的是含有動作代碼的總幀數(shù)。特效播放的總幀數(shù)可能比動作代碼的幀數(shù)多。");
$nAlphaSpeed(EDIT,INT,5,1 100,"透明度變化速度","實(shí)例的透明度變化速度。");
$nMoveSpeed(EDIT,INT,5,1 10000,"移動速度","實(shí)例的移動速度。");
========== Parameter Part End ==========
========== Function Part Begin ==========
nFrameCount = 10;
nCharacterCount = 4;
nMoveSpeed = 5;
nAlphaSpeed = 5;
nDepth = nCharacterCount;
for(i = 1;i <= nCharacterCount;i++)
{
nBkX[i - 1] = this["c" + i]._x;
for(n = 1;n <= 4;n++)
{
nDepth++;
this["c" + i].duplicateMovieClip("t" + i + n, nDepth);
}
this["c" + i]._alpha = 0;
}
function fun()
{
if(this["t" + nCharacterCount + 4]._alpha <= 0)
{
if( this["c" + nCharacterCount]._alpha >= 100)
gotoAndPlay(1);
for (i = 1; i <= nCharacterCount; i++)
{
this["c" + i]._alpha += nAlphaSpeed;
}
return ;
}
for (i = 1; i <= nCharacterCount; i++)
{
for(n = 1;n <= 4;n++)
{
if(n == 1)
{
this["t" + i + n]._x += nMoveSpeed;
}
if(n == 2)
{
this["t" + i + n]._x -= nMoveSpeed;
}
if(n == 3)
{
this["t" + i + n]._y += nMoveSpeed;
}
if(n == 4)
{
this["t" + i + n]._y -= nMoveSpeed;
}
this["t" + i + n]._alpha -= nAlphaSpeed;
}
}
}
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 ==========
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -