Combined Code
movieClip 5 bubble_mc {
frame 1 {
var bubble = random(2);
switch (parseInt(bubble)) {
case 0:
this.gotoAndStop(2);
break;
case 1:
this.gotoAndStop(3);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 7 loadingBar {
}
instance loadingBar of movieClip 7 loadingBar {
onClipEvent (load) {
_root.loadingBar._xscale = 100;
percent = 0;
}
onClipEvent (enterFrame) {
_root._quality = 'BEST';
percent = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loadingBar._xscale = 100 - percent;
if (percent >= 100) {
_root.play();
} else {
_root.stop();
}
}
}
movieClip 56 {
}
// unknown tag 88 length 106
frame 2 {
function createWater(target) {
target.counter = 1;
target.pt = new flash.geom.Point(0, 0);
target.mpoint = new flash.geom.Point(0, 0);
target.myBitmap = new flash.display.BitmapData(target._width, target._height, false, 0);
target.myDispl = new flash.filters.DisplacementMapFilter(target.myBitmap, target.mpoint, 20, 4, 20, 15, 'clamp');
target.myList = new Array();
target.myList.push(target.myDispl);
target.filters = target.myList;
target.onEnterFrame = function () {
filterList = target.filters;
offset = new Array();
offset[1] = new Object();
offset[1].x = target.counter;
offset[1].y = target.counter / 8;
target.myBitmap.perlinNoise(45, 5, 3, 50, true, false, 7, true, offset);
filterList.mapBitmap = target.myBitmap;
target.filters = filterList;
++target.counter;
};
}
_quality = 'MEDIUM';
createWater(girl);
}
frame 2 {
function createSnow(container, numberOfFlakes) {
var v4 = 0;
while (v4 < numberOfFlakes) {
var v2 = container.attachMovie('bubble_mc', 'bubble' + 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) + 10;
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 = 2;
var movieWidth = 1300;
var movieHeight = 750;
var wind = -1;
createSnow(_root.rando, 100);
createSnow(_root.rando2, 200);
}
movieClip 78 {
}
// unknown tag 88 length 282
// unknown tag 88 length 77
// unknown tag 88 length 70
movieClip 90 {
}
movieClip 92 {
}
frame 102 {
stop();
}