Combined Code
movieClip 2 {
}
movieClip 3 {
}
movieClip 4 snowow {
}
movieClip 5 snow_mc {
}
frame 1 {
var vis = 5;
onEnterFrame = function () {
function doFadeOut() {
if (vis > 5) {
vis -= 10;
}
}
function doFadeIn() {
if (vis < 100) {
vis += 10;
}
}
sol.onRollOver = function () {
doFadeIn();
};
sol.onRollOut = function () {
doFadeOut();
};
sol.onPress = function () {
getURL('https://soundcloud.com/s0lus/everything-except', blank);
};
sol._alpha = vis;
};
}
frame 1 {
function createSnow(container, numberOfFlakes) {
var v4 = 0;
while (v4 < numberOfFlakes) {
var v2 = container.attachMovie('snowow', 'snow' + container.getNextHighestDepth(), container.getNextHighestDepth());
v2.r = 1 + Math.random() * speed;
v2.k = -Math.PI + Math.random() * Math.PI;
v2.rad = 0;
var v3 = random(50) + 75;
v2._xscale = v3;
v2._yscale = v3;
v2._alpha = random(100) + 10;
v2._x = random(movieWidth);
v2._y = random(movieHeight);
v2.onEnterFrame = function () {
this.rad += (this.k / 180) * Math.PI;
this._x -= Math.cos(this.rad) + wind;
this._y += speed;
if (this._y >= movieHeight + 50) {
this._y = -50;
}
if (this._x >= movieWidth + 50) {
this._x = -40;
}
if (this._x <= -50) {
this._x = movieWidth + 40;
}
};
++v4;
}
}
var speed = 0.5;
var wind = 0.5;
var movieWidth = 675;
var movieHeight = 500;
_root.yami.swapDepths(150);
_root.cover.swapDepths(500);
createSnow(_root, 100);
}
frame 1 {
function createSnow(container, numberOfFlakes) {
var v4 = 0;
while (v4 < numberOfFlakes) {
var v2 = container.attachMovie('snow_mc', 'snow' + container.getNextHighestDepth() + 150, container.getNextHighestDepth() + 150);
v2.r = 1 + Math.random() * speed;
v2.k = -Math.PI + Math.random() * Math.PI;
v2.rad = 0;
var v3 = random(50) + 75;
v2._xscale = v3;
v2._yscale = v3;
v2._alpha = random(100) + 50;
v2._x = random(movieWidth);
v2._y = random(movieHeight);
v2.onEnterFrame = function () {
this.rad += (this.k / 180) * Math.PI;
this._x -= Math.cos(this.rad) + wind;
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;
}
};
++v4;
}
}
var speed = 0.5;
var wind = 0.5;
var movieWidth = 645;
var movieHeight = 460;
createSnow(_root, 100);
}
movieClip 10 {
}
movieClip 13 {
}
movieClip 16 {
}
movieClip 17 {
}
movieClip 19 {
}