Frame 1
stop();
Stage.showMenu = false;
Stage.scaleMode = "noScale";
press_mc._visible = 0;
this.onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
load_mc._visible = 0;
press_mc._visible = 1;
if (Key.isDown(13)) {
gotoAndStop (2);
delete this.onEnterFrame;
}
}
};
Frame 2
function clearAll() {
var _local2 = 0;
while (_local2 <= 50) {
this["ba1" + _local2].removeMovieClip();
this["ba2" + _local2].removeMovieClip();
this["ba3" + _local2].removeMovieClip();
this["ba4" + _local2].removeMovieClip();
_local2++;
}
}
function StopAll() {
var _local2 = 0;
while (_local2 <= 50) {
delete this["ba1" + _local2].onEnterFrame;
delete this["ba2" + _local2].onEnterFrame;
delete this["ba3" + _local2].onEnterFrame;
delete this["ba4" + _local2].onEnterFrame;
_local2++;
}
}
function Reset(a) {
var _local1;
var _local2;
if (a < 10) {
_local1 = "0" + a;
} else {
_local1 = a;
}
if ((_local1 % 1) == 0) {
_local2 = _local1 + ".00";
} else if (((_local1 * 10) % 1) == 0) {
_local2 = _local1 + "0";
} else {
_local2 = _local1;
}
return(_local2);
}
stop();
clearAll();
part._x = 200;
part._y = 200;
var v1 = 3.5;
var i = 1;
var t = 0;
Mouse.hide();
this.onEnterFrame = function () {
this.attachMovie("ba1", "ba1" + i, i);
this["ba1" + i]._x = random(370) + 15;
this["ba1" + i]._y = 300;
this.attachMovie("ba2", "ba2" + i, i + 100);
this["ba2" + i]._x = random(370) + 15;
this["ba2" + i]._y = 0;
this.attachMovie("ba3", "ba3" + i, i + 200);
this["ba3" + i]._x = 0;
this["ba3" + i]._y = random(270) + 15;
this.attachMovie("ba4", "ba4" + i, i + 300);
this["ba4" + i]._x = 400;
this["ba4" + i]._y = random(270) + 15;
i = i + 1;
if (i >= 50) {
gotoAndStop (3);
delete this.onEnterFrame;
}
};
Frame 3
stop();
Frame 4
stop();
delete _root.onEnterFrame;
StopAll();
Mouse.show();
time = ("Time: " + Reset(int(t * 100) / 100)) + " S";
this.onEnterFrame = function () {
if (Key.isDown(13)) {
gotoAndStop (2);
part._visible = true;
part.gotoAndStop(1);
}
};
Symbol 2 MovieClip [ba4] Frame 1
var v = _root.v1;
var vx;
var vy;
this.onEnterFrame = function () {
var _local4 = this._x;
var _local3 = this._y;
var _local6 = _root.part._x;
var _local5 = _root.part._y;
var _local7 = Math.sqrt(((_local6 - _local4) * (_local6 - _local4)) + ((_local5 - _local3) * (_local5 - _local3)));
if (_local4 >= 400) {
vx = (v * (_local6 - _local4)) / _local7;
vy = (v * (_local5 - _local3)) / _local7;
this._rotation = (Math.atan2(_local5 - _local3, _local6 - _local4) / Math.PI) * 180;
this._x = this._x + vx;
this._y = this._y + vy;
} else {
this._x = this._x + vx;
this._y = this._y + vy;
}
if (((_local3 < 0) || (_local3 > 300)) || (_local4 < 0)) {
this._x = 400;
this._y = random(270) + 15;
}
if (_root.part.body.hitTest(this._x, this._y, true)) {
_root.part.gotoAndPlay(2);
delete _root.part.onEnterFrame;
_root.gotoAndStop("over");
}
};
Symbol 3 MovieClip [ba3] Frame 1
var v = _root.v1;
var vx;
var vy;
this.onEnterFrame = function () {
var _local4 = this._x;
var _local3 = this._y;
var _local6 = _root.part._x;
var _local5 = _root.part._y;
var _local7 = Math.sqrt(((_local6 - _local4) * (_local6 - _local4)) + ((_local5 - _local3) * (_local5 - _local3)));
if (_local4 <= 0) {
vx = (v * (_local6 - _local4)) / _local7;
vy = (v * (_local5 - _local3)) / _local7;
this._rotation = (Math.atan2(_local5 - _local3, _local6 - _local4) / Math.PI) * 180;
this._x = this._x + vx;
this._y = this._y + vy;
} else {
this._x = this._x + vx;
this._y = this._y + vy;
}
if (((_local3 < 0) || (_local3 > 300)) || (_local4 > 400)) {
this._x = 0;
this._y = random(270) + 15;
}
if (_root.part.body.hitTest(this._x, this._y, true)) {
_root.part.gotoAndPlay(2);
delete _root.part.onEnterFrame;
_root.gotoAndStop("over");
}
};
Symbol 4 MovieClip [ba2] Frame 1
var v = _root.v1;
var vx;
var vy;
this.onEnterFrame = function () {
var _local4 = this._x;
var _local3 = this._y;
var _local6 = _root.part._x;
var _local5 = _root.part._y;
var _local7 = Math.sqrt(((_local6 - _local4) * (_local6 - _local4)) + ((_local5 - _local3) * (_local5 - _local3)));
if (_local3 <= 0) {
vx = (v * (_local6 - _local4)) / _local7;
vy = (v * (_local5 - _local3)) / _local7;
this._rotation = (Math.atan2(_local5 - _local3, _local6 - _local4) / Math.PI) * 180;
this._x = this._x + vx;
this._y = this._y + vy;
} else {
this._x = this._x + vx;
this._y = this._y + vy;
}
if (((_local3 > 300) || (_local4 < 0)) || (_local4 > 400)) {
this._x = random(370) + 15;
this._y = 0;
}
if (_root.part.body.hitTest(this._x, this._y, true)) {
_root.part.gotoAndPlay(2);
delete _root.part.onEnterFrame;
_root.gotoAndStop("over");
}
};
Symbol 5 MovieClip [ba1] Frame 1
var v = _root.v1;
var vx;
var vy;
this.onEnterFrame = function () {
var _local4 = this._x;
var _local3 = this._y;
var _local6 = _root.part._x;
var _local5 = _root.part._y;
var _local7 = Math.sqrt(((_local6 - _local4) * (_local6 - _local4)) + ((_local5 - _local3) * (_local5 - _local3)));
if (_local3 >= 300) {
vx = (v * (_local6 - _local4)) / _local7;
vy = (v * (_local5 - _local3)) / _local7;
this._rotation = (Math.atan2(_local5 - _local3, _local6 - _local4) / Math.PI) * 180;
this._x = this._x + vx;
this._y = this._y + vy;
} else {
this._x = this._x + vx;
this._y = this._y + vy;
}
if (((_local3 < 0) || (_local4 < 0)) || (_local4 > 400)) {
this._x = random(370) + 15;
this._y = 300;
}
if (_root.part.body.hitTest(this._x, this._y, true)) {
_root.part.gotoAndPlay(2);
delete _root.part.onEnterFrame;
_root.gotoAndStop("over");
}
};
Symbol 14 MovieClip [part] Frame 1
stop();
var v = 5;
this.onEnterFrame = function () {
if (Key.isDown(38)) {
if (this._y >= 5) {
this._y = this._y - v;
}
} else if (Key.isDown(40)) {
if (this._y <= 295) {
this._y = this._y + v;
}
}
if (Key.isDown(37)) {
if (this._x >= 5) {
this._x = this._x - v;
}
} else if (Key.isDown(39)) {
if (this._x <= 395) {
this._x = this._x + v;
}
}
_root.t = _root.t + 0.04;
};
Symbol 14 MovieClip [part] Frame 6
stop();
_root.StopAll();
this._visible = false;