Frame 1
function createSnow(container, numberOfFlakes) {
var _local4 = 0;
while (_local4 < numberOfFlakes) {
var _local2 = container.attachMovie("snow_mc", "snow" + container.getNextHighestDepth(), container.getNextHighestDepth());
_local2.r = 1 + (Math.random() * speed);
_local2.k = -3.14159265358979 + (Math.random() * Math.PI);
_local2.rad = 0;
var _local3 = random(50) + 50;
_local2._xscale = _local3;
_local2._yscale = _local3;
_local2._alpha = random(100) + 50;
_local2._x = random(movieWidth);
_local2._y = random(movieHeight);
_local2.onEnterFrame = function () {
this.rad = this.rad + ((this.k / 180) * Math.PI);
this._x = this._x - (Math.cos(this.rad) + wind);
this._y = this._y + speed;
if (this._y >= movieHeight) {
this._y = -5;
}
if (this._x >= movieWidth) {
this._x = 1;
}
if (this._x <= 0) {
this._x = movieWidth - 1;
}
};
_local4++;
}
}
var speed = 2;
var wind = 0;
var movieWidth = 710;
var movieHeight = 420;
createSnow(_root, 100);
Symbol 6 MovieClip Frame 1
function createSnow(container, numberOfFlakes) {
var _local4 = 0;
while (_local4 < numberOfFlakes) {
var _local2 = container.attachMovie("snow_mc", "snow" + container.getNextHighestDepth(), container.getNextHighestDepth());
_local2.r = 1 + (Math.random() * speed);
_local2.k = -3.14159265358979 + (Math.random() * Math.PI);
_local2.rad = 0;
var _local3 = random(50) + 20;
_local2._xscale = _local3;
_local2._yscale = _local3;
_local2._alpha = random(100) + 50;
_local2._x = random(movieWidth);
_local2._y = random(movieHeight);
_local2.onEnterFrame = function () {
this.rad = this.rad + ((this.k / 180) * Math.PI);
this._x = this._x - (Math.cos(this.rad) + wind);
this._y = this._y + speed;
if (this._y >= movieHeight) {
this._y = -5;
}
if (this._x >= movieWidth) {
this._x = 1;
}
if (this._x <= 0) {
this._x = movieWidth - 1;
}
};
_local4++;
}
}
var speed = 2;
var wind = 0;
var movieWidth = 730;
var movieHeight = 450;
createSnow(this, 100);
function createSnow(container, numberOfFlakes) {
var _local4 = 0;
while (_local4 < numberOfFlakes) {
var _local2 = container.attachMovie("snow_mc", "snow" + container.getNextHighestDepth(), container.getNextHighestDepth());
_local2.r = 1 + (Math.random() * speed);
_local2.k = -3.14159265358979 + (Math.random() * Math.PI);
_local2.rad = 0;
var _local3 = random(50) + 30;
_local2._xscale = _local3;
_local2._yscale = _local3;
_local2._alpha = random(100) + 50;
_local2._x = random(movieWidth);
_local2._y = random(movieHeight);
_local2.onEnterFrame = function () {
this.rad = this.rad + ((this.k / 180) * Math.PI);
this._x = this._x - (Math.cos(this.rad) + wind);
this._y = this._y + speed;
if (this._y >= movieHeight) {
this._y = -5;
}
if (this._x >= movieWidth) {
this._x = 1;
}
if (this._x <= 0) {
this._x = movieWidth - 1;
}
};
_local4++;
}
}
var speed = 1.5;
var wind = 0;
var movieWidth = 730;
var movieHeight = 450;
createSnow(this, 100);