i = 2;
while (Number(i)<50) {
duplicateMovieClip("yh_mc", "yh_mc" add i, i);
setProperty("yh_mc" add i, _rotation, random(360));
sc = 40+Number(random(60));
setProperty("yh_mc" add i, _xscale, sc);
setProperty("yh_mc" add i, _yscale, sc);
i = Number(i)+1;
}
这是什么意思!
上面的回答真扯淡。。。
i = 2;
while (Number(i)<50) {//当i小于50进入
duplicateMovieClip("yh_mc", "yh_mc" add i, i);//这里是复制影片剪辑'yh_mc',新的影片剪辑名称后加上i
setProperty("yh_mc" add i, _rotation, random(360));//设置新复制的影片剪辑随机旋转一个角度
sc = 40+Number(random(60));//取个随机数
setProperty("yh_mc" add i, _xscale, sc);//设置新复制的影片剪辑横向缩放为上面那个随机数
setProperty("yh_mc" add i, _yscale, sc);//同上,设置的是纵向缩放
i = Number(i)+1;
}
i = 2;
while (Number(i)<50) {//这个不说了;
duplicateMovieClip("yh_mc", "yh_mc" add i, i);//重置影片片段;
setProperty("yh_mc" add i, _rotation, random(360));//设置存取参数,和时间;
sc = 40+Number(random(60));//时间;
setProperty("yh_mc" add i, _xscale, sc);//同上;
setProperty("yh_mc" add i, _yscale, sc);
i = Number(i)+1;
}