Combined Code
movieClip 3 fly {
}
movieClip 6 {
}
movieClip 12 {
}
button 18 {
on (release) {
_root.play();
}
}
movieClip 19 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 24 {
frame 1 {
function flyInit() {
this.speedX = Math.random() * speed;
this.speedY = Math.random() * speed;
this.onEnterFrame = flyMove;
}
function flyMove() {
this._x += this.speedX;
this._y += this.speedY;
if (Math.abs(this._x - sX) > sWidth) {
this.speedX = -this.speedX;
this._x += this.speedX;
}
if (Math.abs(this._y - sY) > sHeight) {
this.speedY = -this.speedY;
this._y += this.speedY;
}
if (Math.random() < jitter) {
this.speedX = Math.random() * speed - speed / 2;
this.speedY = Math.random() * speed - speed / 2;
}
}
function flyDie() {
var v2 = 0;
while (v2 < numFlies) {
var v3 = _parent['fly' + v2];
v3.removeMovieClip();
++v2;
}
}
var sWidth = this._width / 2;
var sHeight = this._height / 2;
var sX = this._x;
var sY = this._y;
var i = 0;
while (i < numFlies) {
var fly = _parent.attachMovie('fly', 'fly' + i, _parent.getNextHighestDepth());
fly._x = sX + Math.random() * sWidth * 2 - sWidth;
fly._y = sY + Math.random() * sHeight * 2 - sHeight;
fly.onEnterFrame = flyInit;
++i;
}
this._visible = false;
this.onUnload = flyDie;
}
}
instance of movieClip 24 {
onClipEvent (construct) {
jitter = 0.15;
speed = 3;
numFlies = 5;
}
}
movieClip 92 {
}
movieClip 155 {
}
movieClip 360 {
}
movieClip 712 {
}
movieClip 790 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 1505 {
}
frame 4008 {
}
movieClip 2587 {
}
movieClip 2590 {
}
movieClip 3306 {
}