#CopyLeft http://www.ep-ars.net .flash filename="snow.swf" bbox=345x300 version=9 compress fps=25 .gradient grad2: 0% #ffffffff 90% #ffffffff 100% #ffffff00 .end .box square1 width=5 height=5 color=#ffffff00 fill=green .box mask width=150 height=345 color=#ffffff00 fill=grad2 .sprite square_sprite .frame 1 .put square1 pin=center .frame 2 .action: gotoAndPlay(1); .end .end .sprite square .frame 1 .put move=square_sprite .action: if (c == undefined) { c = new Color(move); c.setRGB(0x999999); } .end .frame 2 .action: move.useHandCursor=1; var life_duration; var speed; if (life_duration == undefined) { life_duration = Math.round(200+(100*Math.random())); } if (speed == undefined) { speed = Math.round(1+3*Math.random()); } move._y += speed; if (move._y < life_duration) { // y if (move._y < 200) { move._alpha = 100 * Math.random(); } else { move._alpha = 100 * (1 - (move._y-200) / (life_duration-200)); } // x var ran_x = Math.random(); if (ran_x > 0.5) { move._x += 1; } else { move._x -= 1; } } else { removeMovieClip(this); } gotoAndPlay(1); .end .end .box bg width=890 height=300 fill=black .put mask x=172.5 y=260 pin=center rotate=-90 .frame 1 .action: var x_pos = 2.5+340*Math.random(); // var r = Math.random(); // if (r < 0.75 && x_pos < 50) { // x_pos = x_pos + 47.5; // } var mc = _root.attachMovie("square","square_mc"+getNextHighestDepth(),getNextHighestDepth(), {_x: x_pos, _y:0}); //Mouse.hide(); .end .frame 20 .action: gotoAndPlay(1); .end .end