1、导入任意一张你喜欢的背景图片到舞台然后锁定!(锁不锁无所谓)
2、新建图层二选中图层二第一帧按F8(打开动作面版)粘贴下面语句,回车测试.OK,一帧搞定!
fallSnow(this, 100, [550, 400]); function fallSnow(path, num, size) { for (var i = 0; i<num; i++) { path.createEmptyMovieClip("s"+i, i); mc.ro = [1, -1][random(2)]; mc.id = Math.pow(i, 1/2); createSnow(mc, mc.id/2.5, "0xffffff", 20*mc.id); for (var i = 0; i<num; i++) { var interval = setInterval(loop, 10); function createSnow(mc, radius, c, alpha) { lineStyle(0, "0x000000", 0); for (var i = 1; i<=6; i++) { var a1 = -Math.PI/6+i*Math.PI/3; lineTo((radius/5)*Math.sin(a1), -(radius/5)*Math.cos(a1)); lineTo(radius*Math.sin(a2), -radius*Math.cos(a2)); if (mc.startTime>=mc.xtime) { mc.ro = [1, -1][random(2)]; function scanEdge(mc, size) { |