Frame 1
stop();
Frame 2
stop();
Instance of Symbol 26 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
stop();
Instance of Symbol 33 MovieClip in Frame 3
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Frame 4
stop();
Instance of Symbol 40 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 4
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 43 MovieClip in Frame 4
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 4
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 4
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 4
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 52 MovieClip in Frame 4
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 5
stop();
Instance of Symbol 40 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 5
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 43 MovieClip in Frame 5
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 5
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 5
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 5
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 52 MovieClip in Frame 5
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 6
stop();
Instance of Symbol 40 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 6
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 43 MovieClip in Frame 6
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 6
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 6
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 6
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 52 MovieClip in Frame 6
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 7
stop();
Instance of Symbol 40 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 7
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 43 MovieClip in Frame 7
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 7
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 7
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 7
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 52 MovieClip in Frame 7
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 8
stop();
Instance of Symbol 40 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 8
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 43 MovieClip in Frame 8
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 8
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 8
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 8
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 52 MovieClip in Frame 8
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 9
stop();
Instance of Symbol 40 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 9
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 43 MovieClip in Frame 9
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 9
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 9
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 9
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 52 MovieClip in Frame 9
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 10
stop();
Instance of Symbol 40 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 10
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 43 MovieClip in Frame 10
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 10
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 10
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 10
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 52 MovieClip in Frame 10
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 11
stop();
Instance of Symbol 40 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 11
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 43 MovieClip in Frame 11
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 11
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 11
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 11
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 52 MovieClip in Frame 11
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 12
stop();
Instance of Symbol 40 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 12
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 43 MovieClip in Frame 12
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 12
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 12
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 12
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 52 MovieClip in Frame 12
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 13
stop();
Instance of Symbol 40 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 13
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 43 MovieClip in Frame 13
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 13
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 13
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 13
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 52 MovieClip in Frame 13
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 14
stop();
Instance of Symbol 40 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 69 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 14
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 43 MovieClip in Frame 14
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 14
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 14
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 14
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 52 MovieClip in Frame 14
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 15
stop();
Instance of Symbol 40 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 69 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 69 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 48 MovieClip in Frame 15
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 15
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 43 MovieClip in Frame 15
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 15
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 15
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 52 MovieClip in Frame 15
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 16
stop();
Instance of Symbol 40 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 69 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * -2;
}
}
Instance of Symbol 69 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 16
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 43 MovieClip in Frame 16
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 16
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 16
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 16
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 52 MovieClip in Frame 16
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 17
stop();
Instance of Symbol 40 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 69 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 69 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 17
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 43 MovieClip in Frame 17
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 17
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 17
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 17
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 52 MovieClip in Frame 17
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 18
stop();
Instance of Symbol 40 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(this._parent.ball)) {
_root.gotoAndPlay(_root._currentframe + 1);
}
}
Instance of Symbol 69 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 69 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 69 MovieClip in Frame 18
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 42 MovieClip "ball" in Frame 18
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 43 MovieClip in Frame 18
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 50 MovieClip "cursor" in Frame 18
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 52 MovieClip in Frame 18
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 46 MovieClip in Frame 18
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 18
on (release) {
this.gotoAndPlay(2);
}
Frame 19
stop();
Mouse.show();
Instance of Symbol 33 MovieClip in Frame 19
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Frame 20
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 20
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 42 MovieClip "ball" in Frame 20
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 43 MovieClip in Frame 20
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 20
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 20
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 80 MovieClip in Frame 20
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 80 MovieClip in Frame 20
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 80 MovieClip in Frame 20
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 80 MovieClip in Frame 20
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 80 MovieClip in Frame 20
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 50 MovieClip "cursor" in Frame 20
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 52 MovieClip in Frame 20
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 21
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 80 MovieClip in Frame 21
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 42 MovieClip "ball" in Frame 21
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 43 MovieClip in Frame 21
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 21
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 21
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 21
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 52 MovieClip in Frame 21
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 22
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 22
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 80 MovieClip in Frame 22
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 80 MovieClip in Frame 22
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 80 MovieClip in Frame 22
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 80 MovieClip in Frame 22
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 42 MovieClip "ball" in Frame 22
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 43 MovieClip in Frame 22
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 22
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 22
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 22
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 52 MovieClip in Frame 22
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 23
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 23
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 80 MovieClip in Frame 23
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 80 MovieClip in Frame 23
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 80 MovieClip in Frame 23
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 48 MovieClip in Frame 23
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 23
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 43 MovieClip in Frame 23
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 23
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 50 MovieClip "cursor" in Frame 23
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 52 MovieClip in Frame 23
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 24
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 24
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 80 MovieClip in Frame 24
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 80 MovieClip in Frame 24
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 80 MovieClip in Frame 24
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 80 MovieClip in Frame 24
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 80 MovieClip in Frame 24
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 48 MovieClip in Frame 24
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 24
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 43 MovieClip in Frame 24
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 24
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 24
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 50 MovieClip "cursor" in Frame 24
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 25
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 80 MovieClip in Frame 25
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 48 MovieClip in Frame 25
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 25
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 43 MovieClip in Frame 25
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 25
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 25
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 50 MovieClip "cursor" in Frame 25
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 26
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 26
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 80 MovieClip in Frame 26
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 80 MovieClip in Frame 26
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 80 MovieClip in Frame 26
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 80 MovieClip in Frame 26
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 80 MovieClip in Frame 26
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 80 MovieClip in Frame 26
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 42 MovieClip "ball" in Frame 26
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 43 MovieClip in Frame 26
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 48 MovieClip in Frame 26
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 52 MovieClip in Frame 26
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 50 MovieClip "cursor" in Frame 26
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 46 MovieClip in Frame 26
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Frame 27
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 27
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 80 MovieClip in Frame 27
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 80 MovieClip in Frame 27
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 80 MovieClip in Frame 27
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 80 MovieClip in Frame 27
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 48 MovieClip in Frame 27
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 27
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 43 MovieClip in Frame 27
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 46 MovieClip in Frame 27
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 27
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 50 MovieClip "cursor" in Frame 27
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 28
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 28
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 80 MovieClip in Frame 28
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 80 MovieClip in Frame 28
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 80 MovieClip in Frame 28
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 80 MovieClip in Frame 28
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 48 MovieClip in Frame 28
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 28
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 43 MovieClip in Frame 28
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 50 MovieClip "cursor" in Frame 28
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 46 MovieClip in Frame 28
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 28
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 29
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 29
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 80 MovieClip in Frame 29
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 80 MovieClip in Frame 29
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 80 MovieClip in Frame 29
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 48 MovieClip in Frame 29
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 29
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 43 MovieClip in Frame 29
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 50 MovieClip "cursor" in Frame 29
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 46 MovieClip in Frame 29
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 29
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 30
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 30
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 80 MovieClip in Frame 30
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 80 MovieClip in Frame 30
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 80 MovieClip in Frame 30
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 48 MovieClip in Frame 30
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 30
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 43 MovieClip in Frame 30
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 69 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 50 MovieClip "cursor" in Frame 30
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 46 MovieClip in Frame 30
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 30
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 31
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 31
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 80 MovieClip in Frame 31
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 80 MovieClip in Frame 31
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 80 MovieClip in Frame 31
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 48 MovieClip in Frame 31
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 42 MovieClip "ball" in Frame 31
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 43 MovieClip in Frame 31
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 69 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 69 MovieClip in Frame 31
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 50 MovieClip "cursor" in Frame 31
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 46 MovieClip in Frame 31
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 52 MovieClip in Frame 31
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 32
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 32
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 80 MovieClip in Frame 32
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 80 MovieClip in Frame 32
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 80 MovieClip in Frame 32
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 80 MovieClip in Frame 32
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 80 MovieClip in Frame 32
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 42 MovieClip "ball" in Frame 32
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 43 MovieClip in Frame 32
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 69 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * -2;
}
}
Instance of Symbol 69 MovieClip in Frame 32
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 50 MovieClip "cursor" in Frame 32
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 46 MovieClip in Frame 32
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 32
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 52 MovieClip in Frame 32
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 33
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 33
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 80 MovieClip in Frame 33
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 80 MovieClip in Frame 33
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 42 MovieClip "ball" in Frame 33
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 43 MovieClip in Frame 33
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 69 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 69 MovieClip in Frame 33
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * 2;
}
}
Instance of Symbol 50 MovieClip "cursor" in Frame 33
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 46 MovieClip in Frame 33
on (release) {
_root.gotoAndPlay(_root._currentframe + 1);
}
Instance of Symbol 48 MovieClip in Frame 33
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 52 MovieClip in Frame 33
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 34
stop();
Instance of Symbol 76 MovieClip "finish" in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 50 MovieClip "cursor" in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 80 MovieClip in Frame 34
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 42 MovieClip "ball" in Frame 34
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 43 MovieClip in Frame 34
on (release) {
this._parent.ball.trail = false;
}
Instance of Symbol 69 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 69 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vy = Math.abs(_root.ball.vy) * -2;
}
}
Instance of Symbol 69 MovieClip in Frame 34
onClipEvent (enterFrame) {
if (this.hitTest(_root.ball)) {
_root.ball.vx = Math.abs(_root.ball.vx) * 2;
}
}
Instance of Symbol 48 MovieClip in Frame 34
on (release) {
this.gotoAndPlay(2);
}
Instance of Symbol 52 MovieClip in Frame 34
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 35
stop();
Mouse.show();
Symbol 3 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 12 Button
on (release) {
getURL ("http://www.newgrounds.com", "blank");
}
Symbol 17 Button
on (release) {
_root.play();
}
Symbol 18 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 18 MovieClip Frame 2
gotoAndPlay (1);
Symbol 26 MovieClip Frame 135
_root.play();
Symbol 40 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 15
stop();
Symbol 97 Button
on (release) {
gotoAndPlay (3);
}