一.雪花飘舞的三个代码:
1.var snowNum = 0;
snow._visible = false;
2.snow.duplicateMovieClip("snow" + snowNum, snowNum);
var newSnow = _root["snow" + snowNum];
newSnow._x = Math.random() * 450;
newSnow._y = Math.random() * 20;
newSnow._rotation = Math.random() * 150 - 60;
newSnow._xscale = Math.random() * 50 + 70;
newSnow._yscale = Math.random() * 50 + 70;
newSnow._alpha = Math.random() * 30 + 70;
snowNum++;
3.if (snowNum < 120)
{
gotoAndPlay(2);
}
else
{
stop();
} // end if
二.播放按钮代码
1.on (release)
{
gotoAndStop(1);
_root.gotoAndPlay(81);
}
2.on (release)
{
gotoAndStop(1);
for (n = 0; n < 35; n++)
{
_root.a_mc["b" + n].gotoAndPlay(11);
} // end of for
}
好来,可以了,给分吧,楼主
加环天工作室的qq吧 baidu 一下就能看见