Frame 1
stop();
Frame 2
stop();
Instance of Symbol 29 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 36 MovieClip in Frame 3
on (release) {
getURL ("http://www.dp-games.com/", "_blank");
}
Frame 86
stop();
Instance of Symbol 45 MovieClip in Frame 86
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Frame 87
stop();
Instance of Symbol 52 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 87
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 87
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 87
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 87
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 87
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 87
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 88
stop();
Instance of Symbol 52 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 88
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 88
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 88
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 88
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 88
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 88
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 89
stop();
Instance of Symbol 52 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 89
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 89
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 89
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 89
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 89
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 89
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 90
stop();
Instance of Symbol 52 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 90
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 90
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 90
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 90
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 90
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 90
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 91
stop();
Instance of Symbol 52 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 91
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 91
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 91
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 91
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 91
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 91
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 92
stop();
Instance of Symbol 52 MovieClip in Frame 92
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 92
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 92
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 92
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 92
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 92
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 92
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 93
stop();
Instance of Symbol 52 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 93
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 93
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 93
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 93
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 93
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 93
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 94
stop();
Instance of Symbol 52 MovieClip in Frame 94
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 94
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 94
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 94
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 94
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 94
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 94
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 95
stop();
Instance of Symbol 52 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 95
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 95
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 95
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 95
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 95
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 95
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 96
stop();
Instance of Symbol 52 MovieClip in Frame 96
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 96
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 96
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 96
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 96
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 96
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 96
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 97
stop();
Instance of Symbol 52 MovieClip in Frame 97
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 81 MovieClip in Frame 97
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 97
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
Instance of Symbol 55 MovieClip in Frame 97
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 97
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 97
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 97
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 97
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 98
stop();
Instance of Symbol 52 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 81 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 81 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 60 MovieClip in Frame 98
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 98
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 98
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 98
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 98
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 98
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 99
stop();
Instance of Symbol 52 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 81 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * -2;
}
}
Instance of Symbol 81 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 99
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 99
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 99
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 99
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 99
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 99
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 100
stop();
Instance of Symbol 52 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 81 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 81 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 100
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 100
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 100
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 100
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 100
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 100
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 101
stop();
Instance of Symbol 52 MovieClip in Frame 101
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 81 MovieClip in Frame 101
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 81 MovieClip in Frame 101
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 81 MovieClip in Frame 101
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 101
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 101
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 101
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 101
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 58 MovieClip in Frame 101
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 101
on (release) {
this.gotoAndPlay(2);
}
Frame 102
stop();
Mouse.show();
Instance of Symbol 45 MovieClip in Frame 102
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Frame 103
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 103
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 5) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 5) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 103
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 103
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 103
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 103
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 92 MovieClip in Frame 103
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 103
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 103
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 103
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 103
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 62 MovieClip "cursor" in Frame 103
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 103
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 104
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 104
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 8) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 8) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 104
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 104
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 104
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 104
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 104
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 104
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 104
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 105
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 105
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 4) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 4) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 105
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 105
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 105
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 105
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 105
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 105
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 105
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 105
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 105
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 105
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 106
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 106
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 3) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 3) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 106
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 106
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 106
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 106
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 106
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 106
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 106
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 62 MovieClip "cursor" in Frame 106
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 64 MovieClip in Frame 106
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 107
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 107
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 5) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 5) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 107
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 107
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 107
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 107
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 107
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 107
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 107
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 107
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 107
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 107
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 107
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Frame 108
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 108
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 10) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 10) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 108
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 108
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 108
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 108
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 108
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 108
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 108
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Frame 109
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 109
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 6) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 6) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 109
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 109
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 109
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 109
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 109
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 109
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 109
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 109
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 60 MovieClip in Frame 109
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 64 MovieClip in Frame 109
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 109
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 109
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Frame 110
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 110
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 4) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 4) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 110
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 110
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 110
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 110
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 110
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 110
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 110
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 58 MovieClip in Frame 110
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 110
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 110
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Frame 111
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 111
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 4) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 4) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 111
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 111
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 111
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 111
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 111
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 111
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 111
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 111
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 111
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 111
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 112
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 112
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 3) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 3) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 112
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 112
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 112
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 112
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 112
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 112
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 62 MovieClip "cursor" in Frame 112
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 112
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 112
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 113
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 113
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 3) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 3) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 113
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 113
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 113
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 113
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 113
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
Instance of Symbol 55 MovieClip in Frame 113
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 81 MovieClip in Frame 113
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 62 MovieClip "cursor" in Frame 113
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 113
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 113
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 114
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 114
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 3) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 3) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 114
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 114
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 114
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 60 MovieClip in Frame 114
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 54 MovieClip "ball" in Frame 114
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 114
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 81 MovieClip in Frame 114
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 81 MovieClip in Frame 114
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 62 MovieClip "cursor" in Frame 114
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 114
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 64 MovieClip in Frame 114
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 115
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 115
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 5) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 5) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 115
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 115
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 115
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 115
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 115
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 115
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 115
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 81 MovieClip in Frame 115
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * -2;
}
}
Instance of Symbol 81 MovieClip in Frame 115
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 62 MovieClip "cursor" in Frame 115
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 115
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 115
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 64 MovieClip in Frame 115
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 116
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 116
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 2) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 2) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 116
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 116
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 116
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 116
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 81 MovieClip in Frame 116
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 81 MovieClip in Frame 116
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 62 MovieClip "cursor" in Frame 116
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 58 MovieClip in Frame 116
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 60 MovieClip in Frame 116
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 64 MovieClip in Frame 116
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 117
stop();
Instance of Symbol 88 MovieClip "finish" in Frame 117
onClipEvent (load) {
starcount = 0;
this.gotoAndStop(2);
reset = false;
resetcount = 0;
}
onClipEvent (enterFrame) {
if (starcount == 9) {
this.gotoAndStop(1);
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
if (reset == true) {
starcount = 0;
this.gotoAndStop(2);
}
if (resetcount == 9) {
reset = false;
resetcount = 0;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 62 MovieClip "cursor" in Frame 117
onClipEvent (load) {
Mouse.hide();
inside = true;
}
onClipEvent (enterFrame) {
if (inside == true) {
_x = _root._xmouse;
_y = _root._ymouse;
}
if (_x < this._parent.box._x) {
_x = (this._parent.box._x + 5);
}
if (_x > (this._parent.box._x + this._parent.box._width)) {
_x = (this._parent.box._x + (this._parent.box._width - 6));
}
if (_y > this._parent.box._y) {
_y = (this._parent.box._y - 5);
}
if (_y < (this._parent.box._y - this._parent.box._height)) {
_y = (this._parent.box._y - (this._parent.box._height - 6));
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 92 MovieClip in Frame 117
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (hit == false) {
if (hitTest(this._parent.ball)) {
this.gotoAndPlay(2);
hit = true;
this._parent.finish.starcount = this._parent.finish.starcount + 1;
}
}
if (this._parent.finish.reset == true) {
this.gotoAndStop(1);
hit = false;
this._parent.finish.resetcount = this._parent.finish.resetcount + 1;
}
}
Instance of Symbol 54 MovieClip "ball" in Frame 117
onClipEvent (load) {
inertia = 0.9;
ki = 0.1;
vx = 0;
vy = 0;
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
trail = true;
grav = 1;
}
onClipEvent (enterFrame) {
if (trail == true) {
x = (-_x) + this._parent.cursor._x;
y = (-_y) + this._parent.cursor._y;
vx = (vx * inertia) + (x * ki);
vy = (vy * inertia) + (y * ki);
_x = (_x + vx);
_y = (_y + vy);
}
if (trail == false) {
i = 1;
while (i <= 10) {
bounds = _root["wall" + i].getBounds(_root);
if ((_x > bounds.xMin) && (_x < bounds.xMax)) {
x = _x - _root["wall" + i]._x;
y = _y - _root["wall" + i]._y;
angle = (_root["wall" + i]._rotation * Math.PI) / 180;
x1 = (Math.cos(angle) * x) + (Math.sin(angle) * y);
y1 = (Math.cos(angle) * y) - (Math.sin(angle) * x);
vx1 = (Math.cos(angle) * vx) + (Math.sin(angle) * vy);
vy1 = (Math.cos(angle) * vy) - (Math.sin(angle) * vx);
if ((y1 > (-(_height / 2))) && (y1 < (vy1 - (_height / 2)))) {
y1 = -(_height / 2);
vy1 = vy1 * -0.8;
x = (Math.cos(angle) * x1) - (Math.sin(angle) * y1);
y = (Math.cos(angle) * y1) + (Math.sin(angle) * x1);
vx = (Math.cos(angle) * vx1) - (Math.sin(angle) * vy1);
vy = (Math.cos(angle) * vy1) + (Math.sin(angle) * vx1);
_x = (_root["wall" + i]._x + x);
_y = (_root["wall" + i]._y + y);
}
}
i++;
}
vy = vy + grav;
this._y = this._y + vy;
vx = vx / 1.012;
if (Math.abs(vx) < 0.2) {
xspeed = 0;
}
this._x = this._x + vx;
}
if (_x < 0) {
_x = 8;
vx = vx * -1;
}
if (_x > Stage.width) {
_x = (Stage.width - 8);
vx = vx * -1;
}
if (_y < 0) {
_y = 8;
vy = vy * -1;
}
if (trail == false) {
if (_y > Stage.height) {
_y = this._parent.cursor._y;
_x = this._parent.cursor._x;
vx = 0;
vy = 0;
trail = true;
this._parent.finish.reset = true;
}
}
}
Instance of Symbol 55 MovieClip in Frame 117
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 81 MovieClip in Frame 117
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 81 MovieClip in Frame 117
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 81 MovieClip in Frame 117
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 60 MovieClip in Frame 117
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 64 MovieClip in Frame 117
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.box)) {
this._parent.cursor.inside = true;
} else {
this._parent.cursor.inside = false;
}
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 118
stop();
Mouse.show();
Symbol 3 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 6 Button
on (release) {
getURL ("http://www.dp-games.com/", "_blank");
}
Symbol 15 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 20 Button
on (release) {
_root.play();
}
Symbol 21 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 21 MovieClip Frame 2
gotoAndPlay (1);
Symbol 29 MovieClip Frame 135
_root.play();
Symbol 52 MovieClip Frame 1
stop();
Symbol 60 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 92 MovieClip Frame 1
stop();
Symbol 92 MovieClip Frame 15
stop();
Symbol 109 Button
on (release) {
gotoAndPlay (86);
}