Frame 1
function glob_func() {
_root.newX = (Math.random() * 1) - (Math.random() * 1);
_root.chX = (_root.newX - _root.dX) / (50 + random(50));
clearInterval(_root.x_int);
_root.x_int = setInterval(function () {
_root.dX = _root.dX + _root.chX;
if ((Math.round(_root.dX * 10) / 10) == (Math.round(_root.newX * 10) / 10)) {
clearInterval(_root.x_int);
}
}, 30);
}
function move_func() {
varDif = this._xscale / 100;
this._x = this._x + (this.dX + (_root.dX * varDif));
this._y = this._y + (this.dY + (_root.dY * varDif));
if (this._y >= 768) {
this.removeMovieClip();
}
}
function snow_func() {
varTarget = _root.back_mc.attachMovie("snow_mc", ("snow" + _root.back_mc.getNextHighestDepth()) + "_mc", _root.back_mc.getNextHighestDepth(), {_y:-30, _x:-75 + (Math.random() * 925)});
varTarget._xscale = (varTarget._yscale = 25 + (Math.random() * 75));
varTarget.dX = (Math.random() * 1) - (Math.random() * 1);
varTarget.dY = 0.5 + (varTarget._xscale / 100);
varTarget.onEnterFrame = _root.move_func;
}
Stage.scaleMode = "noScale";
_root._quality = "BEST";
_root.attachMovie("back_mc", "back_mc", 1, {_x:0, _y:0, _alpha:100});
_root.attachMovie("mask_mc", "mask_mc", 2, {_x:0, _y:0, _alpha:100});
_root.back_mc.setMask("mask_mc");
_root.attachMovie("unyl_mc", "unyl_mc", 3, {_x:0, _y:0, _alpha:100});
myLoop = new Sound();
myLoop.attachSound("mp3");
myLoop.start(0, 0);
myLoop.onSoundComplete = function () {
myLoop.start(0, 0);
};
var dX = 0;
var dY = 0.25;
setInterval(glob_func, 5000);
setInterval(snow_func, 75);