Combined Code
frame 1 {
var i = Math.random() * 4;
i = 0;
while (i < 100) {
duplicateMovieClip('snow', 'snow' + i, i);
++i;
}
}
movieClip 3 {
}
instance snow of movieClip 3 {
onClipEvent (load) {
this._x = +(Math.random() * 550);
this._y = -50 + Math.random() * 400;
this._alpha = Math.random() * 500;
var size;
size = Math.random() * 100;
if (size >= 50 && size <= 100) {
this._xscale = size;
this._yscale = size;
} else {
this._xscale = 90;
this._yscale = 90;
}
}
onClipEvent (enterFrame) {
pos += Math.random() * 0.1;
this._x += Math.sin(pos);
this._y = this._y + 1 + Math.random() * 4;
if (this._y >= 400) {
this._y = this._y - 500 + Math.random() * 100;
this._x = +(Math.random() * 550);
}
}
}
movieClip 6 {
}