Frame 1
Stage.showMenu = false;
stop();
_quality = "HIGH";
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
onEnterFrame = null;
_root.gotoAndStop("logo");
}
};
camera = true;
Xparticles = true;
screenFlash = function () {
_root.createEmptyMovieClip("screenFlsh", 1);
_root.screenFlsh.beginFill(16777215, 10001);
_root.screenFlsh.moveTo(0, 0);
_root.screenFlsh.lineTo(450, 0);
_root.screenFlsh.lineTo(450, 450);
_root.screenFlsh.lineTo(0, 450);
_root.screenFlsh.lineTo(0, 0);
_root.screenFlsh.onEnterFrame = function () {
this._alpha = this._alpha * 0.9;
if (this._alpha <= 5) {
this.removeMovieClip();
}
};
};
clearAll();
clearAll = function () {
_root.ball.removeMovieClip();
_root.HUD.removeMovieClip();
_root.player.removeMovieClip();
_root.onEnterFrame = null;
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = _root._xscale;
i = _root.fishDepthReset;
while (i < _root.fishDepthMax) {
_root["fish" + i].removeMovieClip();
i++;
}
i = _root.rocketDepthReset;
while (i < _root.rocketDepthMax) {
_root["rocket" + i].removeMovieClip();
i++;
}
i = _root.meteorDepthReset;
while (i < _root.meteorDepthMax) {
_root["meteor" + i].removeMovieClip();
i++;
}
i = _root.particleDepthReset;
while (i < _root.particleDepthMax) {
_root["particle" + i].removeMovieClip();
i++;
}
};
Frame 9
screenFlash();
stop();
clearAll();
Frame 15
screenFlash();
stop();
clearAll();
Instance of Symbol 192 MovieClip in Frame 15
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.camera) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 192 MovieClip in Frame 15
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.camera) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 192 MovieClip in Frame 15
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_quality == "LOW") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 192 MovieClip in Frame 15
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_quality == "MEDIUM") {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 192 MovieClip in Frame 15
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (!_root.Xparticles) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 192 MovieClip in Frame 15
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.Xparticles) {
_visible = true;
} else {
_visible = false;
}
}
Frame 29
function playBoom() {
SOUND = new Sound();
SOUND.attachSound("boom");
SOUND.start(0, 1);
}
_root.fishMin = 35;
_root.fishReset = 55;
_root.fishTimer = _root.fishReset;
_root.rocketMin = 120;
_root.rocketReset = 225;
_root.rocketTimer = 300;
_root.meteorMin = 76;
_root.meteorReset = 175;
_root.meteorTimer = 200;
_root.eventMin = 175;
_root.eventReset = 400;
_root.eventTimer = 450;
rainbowCombo = 0;
health = 100;
score = 0;
fish = 0;
_root.attachMovie("tug", "player", 5);
_root._xscale = 85;
_root._yscale = _root._xscale;
_root._x = 225 - ((225 * _root._xscale) / 100);
_root._y = _root._x;
_root.attachMovie("HUD", "HUD", 10000);
onEnterFrame = function () {
if ((--_root.fishTimer) <= 0) {
_root.makeFish();
_root.fishTimer = _root.fishReset;
if (_root.fishReset > _root.fishMin) {
_root.fishReset = _root.fishReset - 2;
}
}
if ((--_root.rocketTimer) <= 0) {
_root.makeRocket();
_root.rocketTimer = _root.rocketReset;
if (_root.rocketReset > _root.rocketMin) {
_root.rocketReset = _root.rocketReset - 15;
}
}
if ((--_root.meteorTimer) <= 0) {
_root.makeMeteor();
_root.meteorTimer = _root.meteorReset;
if (_root.meteorReset > _root.meteorMin) {
_root.meteorReset = _root.meteorReset - 10;
}
}
if ((--_root.eventTimer) <= 0) {
_root.randomEvent();
_root.eventTimer = _root.eventReset;
if (_root.eventReset > _root.eventMin) {
_root.eventReset = _root.eventReset - 25;
}
}
if (_root.camera) {
_root._xscale = _root._xscale + (((125 - (Math.sqrt(Math.pow(_root.player._x - _root.ball._x, 2) + Math.pow(_root.player._y - _root.ball._y, 2)) * 0.18)) - _root._xscale) * 0.7);
_root._yscale = _root._xscale;
_root._x = 225 - ((_root.ball._x * _root._xscale) / 100);
_root._y = _root._x;
_root.HUD._xscale = 10000 / _root._xscale;
_root.HUD._yscale = _root.HUD._xscale;
_root.HUD._x = 225;
_root.HUD._y = 225;
}
if (health <= 0) {
i = 0;
while (i < 20) {
_root.makeFlame((_root.player._x + random(10)) - 5, (_root.player._y + random(10)) - 5, random(40) - 20, random(40) - 20);
i++;
}
_root.rainbow.stop();
_root.rainbow.onEnterFrame = null;
_root.rainbow._visible = false;
_root.spawnPopup("gameover");
_root.PX = _root.player._x;
_root.PY = _root.player._y;
_root.player.removeMovieClip();
GOtimer = 50;
_root.onEnterFrame = gameOver;
}
};
gameOver = function () {
if ((GOtimer--) > 0) {
_root.makeFlame((_root.PX + random(10)) - 5, (_root.PY + random(10)) - 5, random(10) - 5, random(10) - 5);
}
};
_root.HUD._xscale = 10000 / _root._xscale;
_root.HUD._yscale = _root.HUD._xscale;
_root.HUD._x = 225;
_root.HUD._y = 225;
_root.HUD.depthCount = 1;
_root.spawnPopup = function (NAME) {
_root.HUD.attachMovie(NAME, "popup" + _root.HUD.depthCount, _root.HUD.depthCount);
popupPTR = _root.HUD["popup" + _root.HUD.depthCount];
popupPTR._x = random(350) - 175;
popupPTR._y = random(350) - 175;
_root.HUD.depthCount++;
};
_root.randomEvent = function () {
temp = random(3);
if (Key.isDown(35) || (temp == 0)) {
_root.spawnPopup("lefish");
} else if (temp == 1) {
_root.spawnPopup("warfare");
} else {
_root.spawnPopup("showers");
}
};
_root.ballDepth = 5000;
_root.ballPoints = 50;
_root.ballName = "ball";
_root.ballRadius = 100;
_root.ballColor = 1136127 /* 0x1155FF */;
_root.ballAlpha = 100;
_root.ballX = 225;
_root.ballY = 225;
_root.createEmptyMovieClip(_root.ballName, _root.ballDepth);
ballPTR = _root[ballName];
ballPTR._x = _root.ballX;
ballPTR._y = _root.ballY;
ballPTR.point = new Array();
i = 0;
while (i < _root.ballPoints) {
ballPTR.point[i] = new Object();
angle = ((Math.PI*2) / _root.ballPoints) * i;
ballPTR.point[i].radius = _root.ballRadius;
ballPTR.point[i].x = Math.cos(angle) * ballPTR.point[i].radius;
ballPTR.point[i].y = Math.sin(angle) * ballPTR.point[i].radius;
ballPTR.point[i].wantX = ballPTR.point[i].x;
ballPTR.point[i].wantY = ballPTR.point[i].y;
ballPTR.point[i].xSpeed = 0;
ballPTR.point[i].ySpeed = 0;
delete angle;
i++;
}
delete i;
ballPTR.update = function () {
this.clear();
this.beginFill(_root.ballColor, _root.ballAlpha);
this.moveTo(this.point[0].x, this.point[0].y);
this.i = 0;
while (this.i < _root.ballPoints) {
this.lineTo(this.point[this.i].x, this.point[this.i].y);
this.i++;
}
delete this.i;
};
_root[ballName].onEnterFrame = function () {
this.recoil();
this.update();
};
ballPTR.touch = function (X, Y) {
this.mouseDistance = int(Math.sqrt(Math.pow(Y, 2) + Math.pow(X, 2)));
this.mousePoint = int(Math.atan2(Y, X) / ((Math.PI*2) / _root.ballPoints));
if (this.mousePoint < 0) {
this.mousePoint = this.mousePoint + _root.ballPoints;
}
if (this.point[this.mousePoint].radius > this.mouseDistance) {
this.point[this.mousePoint].x = X;
this.point[this.mousePoint].y = Y;
this.point[this.mousePoint].radius = this.mouseDistance;
}
delete this.mouseDistance;
delete this.mousePoint;
};
ballPTR.recoil = function () {
i = 0;
while (i < _root.ballPoints) {
if (random(20) == 0) {
this.point[i].ySpeed = this.point[i].ySpeed - (random(20) - 10);
this.point[i].xSpeed = this.point[i].xSpeed - (random(20) - 10);
}
this.point[i].xSpeed = ((this.point[i].xSpeed * 2) + ((this.point[i].wantX - this.point[i].x) * 2)) / 4.95;
this.point[i].ySpeed = ((this.point[i].ySpeed * 2) + ((this.point[i].wantY - this.point[i].y) * 2)) / 4.95;
if (i == 0) {
this.point[i + 1].xSpeed = this.point[i + 1].xSpeed + (this.point[i].xSpeed / 1.5);
this.point[i + 1].ySpeed = this.point[i + 1].ySpeed + (this.point[i].ySpeed / 1.5);
this.point[_root.ballPoints - 1].xSpeed = this.point[_root.ballPoints - 1].xSpeed + (this.point[i].xSpeed / 1.5);
this.point[_root.ballPoints - 1].ySpeed = this.point[_root.ballPoints - 1].ySpeed + (this.point[i].ySpeed / 1.5);
} else if (i == (_root.ballPoints - 1)) {
this.point[0].xSpeed = this.point[0].xSpeed + (this.point[i].xSpeed / 1.5);
this.point[0].ySpeed = this.point[0].ySpeed + (this.point[i].ySpeed / 1.5);
this.point[i - 1].xSpeed = this.point[i - 1].xSpeed + (this.point[i].xSpeed / 1.5);
this.point[i - 1].ySpeed = this.point[i - 1].ySpeed + (this.point[i].ySpeed / 1.5);
} else {
this.point[i + 1].xSpeed = this.point[i + 1].xSpeed + (this.point[i].xSpeed / 1.5);
this.point[i + 1].ySpeed = this.point[i + 1].ySpeed + (this.point[i].ySpeed / 1.5);
this.point[i - 1].xSpeed = this.point[i - 1].xSpeed + (this.point[i].xSpeed / 1.5);
this.point[i - 1].ySpeed = this.point[i - 1].ySpeed + (this.point[i].ySpeed / 1.5);
}
this.point[i].x = this.point[i].x + this.point[i].xSpeed;
this.point[i].y = this.point[i].y + this.point[i].ySpeed;
this.point[i].radius = int(Math.sqrt(Math.pow(this.point[i].x, 2) + Math.pow(this.point[i].y, 2))) + 5;
i++;
}
delete i;
};
resetBall = function () {
i = 0;
while (i < _root.ballPoints) {
_root.ball.point[i].x = 0;
_root.ball.point[i].y = 0;
i++;
}
};
player.hSpeed = 0;
player.vSpeed = 0;
GRAVITY = 1;
player.hMax = 10;
rightKey = 39;
leftKey = 37;
player.onEnterFrame = function () {
this._rotation = (Math.atan2(this._y - _root.ball._y, this._x - _root.ball._x) * 180) / Math.PI;
if (Key.isDown(_root.rightKey) && (this.hSpeed < this.hMax)) {
this.hSpeed++;
} else if ((!Key.isDown(_root.rightKey)) && (this.hSpeed > 0)) {
this.hSpeed--;
}
if (Key.isDown(_root.leftKey) && (this.hSpeed > (-this.hMax))) {
this.hSpeed--;
} else if ((!Key.isDown(_root.leftKey)) && (this.hSpeed < 0)) {
this.hSpeed++;
}
this.addHor(this.hSpeed);
this.vSpeed = this.vSpeed + GRAVITY;
this.addVirt(this.vSpeed);
};
player.addHor = function (SPEED) {
this._y = this._y + (Math.sin(((this._rotation + 90) * Math.PI) / 180) * SPEED);
this._x = this._x + (Math.cos(((this._rotation + 90) * Math.PI) / 180) * SPEED);
};
player.addVirt = function (SPEED) {
prevX = this._x;
prevY = this._y;
hitWater = false;
yCOMP = (-Math.sin((this._rotation * Math.PI) / 180)) * SPEED;
xCOMP = (-Math.cos((this._rotation * Math.PI) / 180)) * SPEED;
this._y = this._y + yCOMP;
this._x = this._x + xCOMP;
while ((SPEED > 0) && (_root.ball.hitTest(this._x, this._y, true))) {
_root.ball.touch(this._x - _root.ball._x, this._y - _root.ball._y);
this._y = this._y - yCOMP;
this._x = this._x - xCOMP;
this.vSpeed = 0;
hitWater = true;
}
if (hitWater) {
this.vSpeed = int(-Math.sqrt(Math.pow(this._x - prevX, 2) + Math.pow(this._y - prevY, 2))) * 0.5;
if (this.vSpeed < -25) {
this.vSpeed = -25;
}
}
};
_root.fishDepthReset = 1000;
_root.fishDepth = _root.fishDepthReset;
_root.fishDepthMax = _root.fishDepthReset + 20;
makeFish = function () {
_root.attachMovie("fish", "fish" + _root.fishDepth, _root.fishDepth);
_root.fishPTR = _root["fish" + _root.fishDepth];
spawnPoint = random(ballPoints);
_root.fishPTR._x = _root.ball._x + _root.ball.point[spawnPoint].x;
_root.fishPTR._y = _root.ball._y + _root.ball.point[spawnPoint].y;
_root.fishPTR.angle = Math.atan2(_root.fishPTR._y - _root.ball._y, _root.fishPTR._x - _root.ball._x);
offset = (random(200) - 100) * 0.01;
if (offset < 0) {
_root.fishPTR._yscale = -100;
}
_root.fishPTR.angle = _root.fishPTR.angle + offset;
_root.fishPTR._rotation = (_root.fishPTR.angle * 180) / Math.PI;
_root.fishPTR.xSpeed = Math.cos(_root.fishPTR.angle) * 6;
_root.fishPTR.ySpeed = Math.sin(_root.fishPTR.angle) * 6;
_root.fishPTR.onEnterFrame = _root.fishEnterFrame;
_root.ball.point[spawnPoint].x = _root.ball.point[spawnPoint].x * 0.25;
_root.ball.point[spawnPoint].y = _root.ball.point[spawnPoint].y * 0.25;
if ((++_root.fishDepth) == _root.fishDepthMax) {
_root.fishDepth = _root.fishDepthReset;
}
};
fishEnterFrame = function () {
this.angle = Math.atan2(this._y - _root.ball._y, this._x - _root.ball._x);
this.xSpeed = this.xSpeed - (Math.cos(this.angle) * 0.25);
this.ySpeed = this.ySpeed - (Math.sin(this.angle) * 0.25);
this._rotation = (((-Math.atan2(this.xSpeed, this.ySpeed)) * 180) / Math.PI) + 90;
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (_root.player.hitTest(this._x, this._y)) {
_root.spawnPopup("fishget");
_root.fish++;
_root.score = _root.score + 20;
if (_root.health < 100) {
_root.health = _root.health + 2;
}
this.removeMovieClip();
}
if (Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)) < (_root.ballRadius * 0.8)) {
this.ballPoint = int(Math.atan2(this._y - _root.ball._y, this._x - _root.ball._x) / ((Math.PI*2) / _root.ballPoints));
if (this.ballPoint < 0) {
this.ballPoint = this.ballPoint + _root.ballPoints;
}
_root.ball.point[this.ballPoint].x = _root.ball.point[this.ballPoint].x * 0.5;
_root.ball.point[this.ballPoint].y = _root.ball.point[this.ballPoint].y * 0.5;
this.removeMovieClip();
}
};
_root.rocketDepthReset = 1500;
_root.rocketDepth = _root.rocketDepthReset;
_root.rocketDepthMax = _root.rocketDepthReset + 10;
makeRocket = function () {
_root.attachMovie("rocket", "rocket" + _root.rocketDepth, _root.rocketDepth);
_root.rocketPTR = _root["rocket" + _root.rocketDepth];
pos = random(4);
switch (pos) {
case 0 :
_root.rocketPTR.xSpeed = random(5) * 0.1;
_root.rocketPTR.ySpeed = (random(30) * 0.1) - 2;
_root.rocketPTR._x = 500;
_root.rocketPTR._y = random(500);
break;
case 1 :
_root.rocketPTR.ySpeed = (-random(5)) * 0.1;
_root.rocketPTR.xSpeed = (random(30) * 0.1) - 2;
_root.rocketPTR._y = -50;
_root.rocketPTR._x = random(500);
break;
case 2 :
_root.rocketPTR.xSpeed = (-random(5)) * 0.1;
_root.rocketPTR.ySpeed = (random(30) * 0.1) - 2;
_root.rocketPTR._x = -50;
_root.rocketPTR._y = random(500);
break;
case 3 :
_root.rocketPTR.ySpeed = random(5) * 0.1;
_root.rocketPTR.xSpeed = (random(30) * 0.1) - 2;
_root.rocketPTR._y = 500;
_root.rocketPTR._x = random(500);
}
delete pos;
_root.rocketPTR._alpha = 0;
_root.rocketPTR.onEnterFrame = rocketEnterFrame;
if ((++_root.rocketDepth) == _root.rocketDepthMax) {
_root.rocketDepth = _root.rocketDepthReset;
}
};
rocketEnterFrame = function () {
this._alpha = this._alpha + ((100 - this._alpha) * 0.1);
this.angle = Math.atan2(this._y - _root.ball._y, this._x - _root.ball._x);
this.xSpeed = this.xSpeed - (Math.cos(this.angle) * 0.15);
this.ySpeed = this.ySpeed - (Math.sin(this.angle) * 0.15);
this._rotation = (((-Math.atan2(this.xSpeed, this.ySpeed)) * 180) / Math.PI) + 90;
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (Math.sqrt(Math.pow(this._x - _root.ball._x, 2) + Math.pow(this._y - _root.ball._y, 2)) < (_root.ballRadius * 0.75)) {
_root.playBoom();
i = 0;
while (i < _root.ballPoints) {
_root.ball.point[i].x = _root.ball.point[i].x * 0.3;
_root.ball.point[i].y = _root.ball.point[i].y * 0.3;
_root.ball.point[i].radius = _root.ball.point[i].radius * 0.3;
i++;
}
delete i;
i = 0;
while (i < 10) {
_root.makeFlame(this._x, this._y, random(20) - 10, random(20) - 10);
i++;
}
this.removeMovieClip();
}
if (_root.player.hitTest(this._x, this._y)) {
_root.playBoom();
if (!_root.rainbow.hitTest(_root.player._x, _root.player._y, true)) {
_root.health = _root.health - 30;
_root.player.vSpeed = -20;
}
i = 0;
while (i < 20) {
_root.makeFlame((_root.player._x + random(10)) - 5, (_root.player._y + random(10)) - 5, random(40) - 20, random(40) - 20);
i++;
}
this.removeMovieClip();
}
};
_root.meteorDepthReset = 2000;
_root.meteorDepth = _root.meteorDepthReset;
_root.meteorDepthMax = _root.meteorDepthReset + 20;
makeMeteor = function () {
_root.attachMovie("meteor", "meteor" + _root.meteorDepth, _root.meteorDepth);
_root.meteorPTR = _root["meteor" + _root.meteorDepth];
pos = random(4);
switch (pos) {
case 0 :
_root.meteorPTR.xSpeed = random(5) * 0.1;
_root.meteorPTR.ySpeed = (random(50) * 0.1) - 3;
_root.meteorPTR._x = 500;
_root.meteorPTR._y = random(500);
break;
case 1 :
_root.meteorPTR.ySpeed = (-random(5)) * 0.1;
_root.meteorPTR.xSpeed = (random(50) * 0.1) - 3;
_root.meteorPTR._y = -50;
_root.meteorPTR._x = random(500);
break;
case 2 :
_root.meteorPTR.xSpeed = (-random(5)) * 0.1;
_root.meteorPTR.ySpeed = (random(50) * 0.1) - 3;
_root.meteorPTR._x = -50;
_root.meteorPTR._y = random(500);
break;
case 3 :
_root.meteorPTR.ySpeed = random(5) * 0.1;
_root.meteorPTR.xSpeed = (random(50) * 0.1) - 3;
_root.meteorPTR._y = 500;
_root.meteorPTR._x = random(500);
}
delete pos;
_root.meteorPTR.timer = 75;
_root.meteorPTR.onEnterFrame = meteorEnterFrame;
if ((++_root.meteorDepth) == _root.meteorDepthMax) {
_root.meteorDepth = _root.meteorDepthReset;
}
};
meteorEnterFrame = function () {
this.angle = Math.atan2(this._y - _root.ball._y, this._x - _root.ball._x);
this.xSpeed = this.xSpeed - (Math.cos(this.angle) * 0.2);
this.ySpeed = this.ySpeed - (Math.sin(this.angle) * 0.2);
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if ((this.timer % 4) > 0) {
_root.makeFlame((this._x + random(5)) - 3, (this._y + random(5)) - 3, ((-this.xSpeed) + random(5)) - 3, ((-this.ySpeed) + random(5)) - 3);
}
_root.ball.touch(this._x - _root.ball._x, this._y - _root.ball._y);
if ((((--this.timer) <= 0) && ((((this._x <= 5) || (this._y <= 5)) || (this._x >= 445)) || (this._y >= 445))) || (this.timer <= -400)) {
this.removeMovieClip();
}
if (_root.player.hitTest(this._x, this._y)) {
_root.playBoom();
if (!_root.rainbow.hitTest(_root.player._x, _root.player._y, true)) {
_root.health = _root.health - 20;
_root.player.vSpeed = -20;
}
this.removeMovieClip();
i = 0;
while (i < 10) {
_root.makeFlame((_root.player._x + random(10)) - 5, (_root.player._y + random(10)) - 5, random(40) - 20, random(40) - 20);
i++;
}
}
};
_root.particleDepthReset = 7000;
_root.particleDepth = _root.particleDepthReset;
_root.particleDepthMax = _root.particleDepthReset + 200;
makeFlame = function (X, Y, XSPEED, YSPEED) {
_root.attachMovie("flame", "particle" + _root.particleDepth, _root.particleDepth);
_root.particlePTR = _root["particle" + _root.particleDepth];
_root.particlePTR._x = X;
_root.particlePTR._y = Y;
_root.particlePTR.xSpeed = XSPEED;
_root.particlePTR.ySpeed = YSPEED;
_root.particlePTR._alpha = 100;
_root.particlePTR.onEnterFrame = flameEnterFrame;
if (_root.Xparticles) {
_root.particlePTR.blendMode = "add";
}
if ((++_root.particleDepth) == _root.particleDepthMax) {
_root.particleDepth = _root.particleDepthReset;
}
};
flameEnterFrame = function () {
this.xSpeed = this.xSpeed * 0.9;
this.ySpeed = this.ySpeed * 0.9;
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this.removeMovieClip();
}
};
Symbol 13 MovieClip [meteor] Frame 6
stop();
Symbol 18 MovieClip Frame 1
_parent._alpha = 0;
OFFSET = random(4) + 1;
RING = new Sound();
onEnterFrame = function () {
if (_root.rainbowCombo != 0) {
_parent._alpha = 100;
_parent._visible = true;
if ((_yscale - 99) < _root.rainbowCombo) {
RING.attachSound("bell" + (random(2) + OFFSET));
RING.start(0, 1);
}
_yscale = (100 + _root.rainbowCombo);
_parent.tug._y = this._y - this._height;
_parent.splash._y = this._y - this._height;
} else if (_parent._alpha > 10) {
OFFSET = random(4) + 1;
_parent._alpha = _parent._alpha - 10;
} else {
_parent._alpha = 0;
}
};
Symbol 31 MovieClip Frame 1
onEnterFrame = function () {
if (int(_root.health) > _currentframe) {
this.gotoAndStop(int(_root.health));
} else if (int(_root.health) < _currentframe) {
prevFrame();
}
};
Symbol 34 MovieClip Frame 1
score = 0;
onEnterFrame = function () {
if (score < _root.score) {
score = score + 2;
_rotation = (random(10) - 5);
if (score > _root.score) {
_root.score = score;
}
} else {
_rotation = 0;
}
};
Symbol 41 MovieClip [fish] Frame 1
gotoAndStop(random(3) + 2);
Symbol 45 Button
on (release) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else {
_quality = "LOW";
}
}
Symbol 47 Button
on (release) {
if (_root.camera) {
_root.camera = false;
_root._xscale = 85;
_root._yscale = _root._xscale;
_root._x = 225 - ((225 * _root._xscale) / 100);
_root._y = _root._x;
_root.HUD._xscale = 10000 / _root._xscale;
_root.HUD._yscale = _root.HUD._xscale;
_root.HUD._x = 225;
_root.HUD._y = 225;
} else {
_root.camera = true;
}
}
Symbol 55 Button
on (release) {
_root.health = 0;
}
Symbol 56 MovieClip [HUD] Frame 1
Q = 81;
C = 67;
ESC = 27;
Qdown = false;
Cdown = false;
littleTime = 10;
bigTime = 0;
onEnterFrame = function () {
if (_root.health > 0) {
littleTime = littleTime + 6;
if (littleTime >= 100) {
littleTime = 10;
bigTime++;
}
}
if (Key.isDown(ESC)) {
_root.health = 0;
}
if (Key.isDown(Q)) {
if (!Qdown) {
if (_quality == "LOW") {
_quality = "MEDIUM";
} else {
_quality = "LOW";
}
}
Qdown = true;
} else {
Qdown = false;
}
if (Key.isDown(C)) {
if (!Cdown) {
if (_root.camera) {
_root.camera = false;
_root._xscale = 85;
_root._yscale = _root._xscale;
_root._x = 225 - ((225 * _root._xscale) / 100);
_root._y = _root._x;
_root.HUD._xscale = 10000 / _root._xscale;
_root.HUD._yscale = _root.HUD._xscale;
_root.HUD._x = 225;
_root.HUD._y = 225;
} else {
_root.camera = true;
}
}
Cdown = true;
} else {
Cdown = false;
}
};
Symbol 59 MovieClip [fishget] Frame 1
_xscale = 0;
_yscale = 0;
count = random(100) * 0.1;
onEnterFrame = function () {
count++;
_rotation = (Math.sin(count) * 10);
_xscale = (_xscale + ((100 - _xscale) * 0.2));
_yscale = _xscale;
if (_xscale >= 99) {
this.removeMovieClip();
}
};
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Instance of Symbol 41 MovieClip [fish] in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
count = random(314) * 0.01;
Y = _y;
}
onClipEvent (enterFrame) {
count = count + 0.2;
_rotation = ((Math.sin(count) * 10) - 90);
_y = (Y + (Math.cos(count) * 30));
}
Symbol 65 MovieClip [lefish] Frame 1
timer = 150;
onEnterFrame = function () {
_x = (random(6) - 3);
_y = (random(6) - 3);
_rotation = (random(6) - 3);
if (((--timer) > 0) && ((timer % 5) == 0)) {
_root.makeFish();
} else if (timer <= 0) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Symbol 79 MovieClip [showers] Frame 1
timer = 100;
onEnterFrame = function () {
_x = (random(6) - 3);
_y = (random(6) - 3);
_rotation = (random(6) - 3);
if (((--timer) > 0) && ((timer % 12) == 0)) {
_root.makeMeteor();
} else if (timer <= 0) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Symbol 87 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (_rotation + (_x * 0.01));
};
Symbol 88 MovieClip [warfare] Frame 1
timer = 100;
onEnterFrame = function () {
_x = (random(6) - 3);
_y = (random(6) - 3);
_rotation = (random(6) - 3);
if (((--timer) > 0) && ((timer % 10) == 0)) {
_root.makeRocket();
} else if (timer <= 0) {
onEnterFrame = function () {
_alpha = (_alpha - 10);
if (_alpha <= 0) {
this.removeMovieClip();
}
};
}
};
Symbol 92 MovieClip Frame 1
onEnterFrame = function () {
_rotation = (random(20) - 10);
};
Symbol 100 MovieClip Frame 1
stop();
timer = random(150);
onEnterFrame = function () {
timer--;
if (timer <= 0) {
play();
onEnterFrame = null;
}
};
_xscale = (random(100) + 50);
_yscale = _xscale;
Symbol 100 MovieClip Frame 30
stop();
Symbol 108 Button
on (release) {
getURL ("http://www.mofunzone.com/online_games/xtreme_tugboating.shtml", "_blank");
}
Symbol 114 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 119 Button
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Symbol 129 Button
on (release) {
now = new Date();
EPOCH = now.getTime();
phpURL = (((("http://www.MoFunZone.com/game_scores/xtreme_tugboating/highscore.php?" + String(playerName)) + "/") + String(EPOCH)) + "/") + String(_root.fish);
trace(phpURL);
getURL (phpURL, "_blank");
_root.gotoAndStop("title");
}
Symbol 130 MovieClip [gameover] Frame 2
_root.score = _root.score + (_root.fish * 10);
_root.score = _root.score + _parent.bigTime;
if ((_root.score % 2) != 0) {
_root.score++;
}
Symbol 130 MovieClip [gameover] Frame 10
_x = 0;
_y = 0;
Symbol 130 MovieClip [gameover] Frame 24
timer = 10;
onEnterFrame = function () {
timer--;
_x = (random(timer * 2) - timer);
_y = (random(timer * 2) - timer);
_rotation = (_rotation + (random(timer / 2) - (timer / 4)));
if (timer == 0) {
_x = 0;
_y = 0;
onEnterFrame = null;
}
};
Symbol 130 MovieClip [gameover] Frame 40
timer = 6;
onEnterFrame = function () {
timer--;
_x = (random(timer * 2) - timer);
_y = (random(timer * 2) - timer);
_rotation = (_rotation + (random(timer / 2) - (timer / 4)));
if (timer == 0) {
_x = 0;
_y = 0;
onEnterFrame = null;
}
};
Symbol 130 MovieClip [gameover] Frame 51
timer = 5;
onEnterFrame = function () {
timer--;
_x = (random(timer * 2) - timer);
_y = (random(timer * 2) - timer);
_rotation = (_rotation + (random(timer / 2) - (timer / 4)));
if (timer == 0) {
_x = 0;
_y = 0;
onEnterFrame = null;
}
};
Symbol 130 MovieClip [gameover] Frame 63
timer = 5;
onEnterFrame = function () {
timer--;
_x = (random(timer * 2) - timer);
_y = (random(timer * 2) - timer);
_rotation = (_rotation + (random(timer / 2) - (timer / 4)));
if (timer == 0) {
_x = 0;
_y = 0;
onEnterFrame = null;
}
};
Symbol 130 MovieClip [gameover] Frame 74
stop();
timer = 5;
playerName = "";
onEnterFrame = function () {
_rotation = (_rotation * 0.95);
_x = (_x * 0.95);
_y = (_y * 0.95);
if (_rotation <= 1) {
_rotation = 0;
onEnterFrame = null;
}
};
Symbol 134 MovieClip Frame 1
onEnterFrame = function () {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
};
Symbol 142 Button
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Symbol 165 MovieClip Frame 1
this.onRelease = function () {
getURL ("http://www.mofunzone.com/", "_blank");
};
Symbol 165 MovieClip Frame 106
_quality = "LOW";
_root.gotoAndStop("mainMenu");
Symbol 168 MovieClip Frame 70
stop();
Symbol 175 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 177 Button
on (release) {
_root.gotoAndStop("help");
}
Symbol 179 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 181 Button
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Symbol 183 Button
on (release) {
getURL ("http://www.mofunzone.com/game_scores/xtreme_tugboating/highscores.shtml", "_blank");
}
Symbol 184 MovieClip Frame 19
timer = 5;
onEnterFrame = function () {
timer--;
_root._x = random(timer) - (timer / 2);
_root._y = random(timer) - (timer / 2);
_rotation = (_rotation + (random(timer / 2) - (timer / 4)));
if (timer == 0) {
_root._x = 0;
_root._y = 0;
onEnterFrame = null;
}
};
Symbol 184 MovieClip Frame 31
timer = 10;
onEnterFrame = function () {
timer--;
_root._x = random(timer) - (timer / 2);
_root._y = random(timer) - (timer / 2);
_rotation = (_rotation + (random(timer / 2) - (timer / 4)));
if (timer == 0) {
_root._x = 0;
_root._y = 0;
onEnterFrame = null;
}
};
Symbol 184 MovieClip Frame 35
timer = 5;
onEnterFrame = function () {
timer--;
_root._x = random(timer) - (timer / 2);
_root._y = random(timer) - (timer / 2);
if (timer == 0) {
_root._x = 0;
_root._y = 0;
onEnterFrame = null;
}
};
Symbol 184 MovieClip Frame 40
timer = 5;
onEnterFrame = function () {
timer--;
_root._x = random(timer) - (timer / 2);
_root._y = random(timer) - (timer / 2);
if (timer == 0) {
_root._x = 0;
_root._y = 0;
onEnterFrame = null;
}
};
Symbol 184 MovieClip Frame 45
stop();
timer = 5;
onEnterFrame = function () {
timer--;
_root._x = random(timer) - (timer / 2);
_root._y = random(timer) - (timer / 2);
if (timer == 0) {
_root._x = 0;
_root._y = 0;
onEnterFrame = null;
}
};
Symbol 198 Button
on (release) {
_root.camera = false;
}
Symbol 199 Button
on (release) {
_quality = "LOW";
}
Symbol 200 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 201 Button
on (release) {
_root.camera = true;
}
Symbol 203 Button
on (release) {
_root.Xparticles = false;
}
Symbol 204 Button
on (release) {
_root.Xparticles = true;
}
Symbol 206 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 207 Button
on (release) {
getURL ("http://www.mofunzone.com/", "_blank");
}
Symbol 229 MovieClip Frame 1
stop();
this._visible = false;
_root.rainbowCombo = 0;
this.onEnterFrame = function () {
if (random(100) == 0) {
this._visible = true;
_rotation = random(360);
this.play();
this.onEnterFrame = function () {
if (this.hitTest(_root.player._x, _root.player._y, true)) {
if (_root.player.vSpeed > -10) {
_root.player.vSpeed = _root.player.vSpeed - 2;
}
_root.score++;
_root.rainbowCombo = _root.rainbowCombo + 25;
if (_root.health < 100) {
_root.health = _root.health + 0.1;
}
if (random(2) == 0) {
_root.makeFlame((_root.player._x + random(20)) - 10, (_root.player._y + random(20)) - 10, 0, 0);
}
}
};
}
};