Frame 1
var i = (Math.random() * 4);
i = 0;
while (i < 100) {
duplicateMovieClip ("Snowflake", "Snowflake" + i, i);
i++;
}
var i = (Math.random() * 4);
i = 0;
while (i < 100) {
duplicateMovieClip ("Snowflake", "Snowflake" + i, i);
i++;
}
Instance of Symbol 2 MovieClip [Snowflake] in Frame 1
onClipEvent (load) {
this._x = 0 + (Math.random() * 800);
this._y = -50 + (Math.random() * 600);
this._alpha = Math.random() * 750;
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 = pos + (Math.random() * 0.1);
this._x = this._x + Math.sin(pos);
this._y = this._y + (Math.random() * 4);
if (this._y >= 800) {
this._x = 0 + (Math.random() * 900);
this._y = (this.y - 500) + (Math.random() * 100);
}
}