先看效果:
http://www.flash8.net/bbs/UploadFile/200392511312132039.swf原文件:
点击浏览该文件代码比较简单:
i = "1";
alpha = "0.7";
alphax = "-0.2";
maxlight = "30";
setProperty("/a0", _visible, 0);
setProperty("", _highquality, 0);
while (Number(i)<=Number(maxlight)) {
duplicateMovieClip("/a0", "a" add i, 900-i);
setProperty("/a" add i, _xscale, getProperty("/a" add (i-1),_xscale)+i*alpha);
setProperty("/a" add i, _yscale, getProperty("/a" add (i-1),_yscale)+i*alpha);
setProperty("/a" add i, _alpha, 10-i*(10/50));
i = Number(i)+1;
}