Frame 1
stop();
Frame 2
fscommand ("fullScreen", "false");
fscommand ("showmenu", "false");
stop();
Frame 5
attachMovie("mcOcean", "mcOcean", 9000);
mcOcean._x = 275;
mcOcean._y = 200;
mineno = 4;
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Frame 5
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 97 MovieClip "mcBoat" in Frame 5
onClipEvent (load) {
speed = 0;
_x = _parent.mcBoatController._x;
}
onClipEvent (enterFrame) {
speed = ((_parent.mcBoatController._x - _x) / 50) + (speed * 0.6);
_x = (_x + speed);
}
Instance of Symbol 98 MovieClip "mcBoatController" in Frame 5
onClipEvent (load) {
_x = 270;
}
onClipEvent (keyDown) {
if (Key.isDown(32)) {
if (_parent.mcmyBomb1 == undefined) {
Bombno = 1;
} else if (_parent.mcmyBomb2 == undefined) {
Bombno = 2;
} else if (_parent.mcmyBomb3 == undefined) {
Bombno = 3;
} else {
Bombno = 0;
}
if (Bombno != 0) {
_parent.attachMovie("mcmyBomb", "mcmyBomb" + Bombno, Bombno);
_parent["mcmyBomb" + Bombno]._x = _parent.mcBoat._x;
_parent["mcmyBomb" + Bombno]._y = _parent.mcBoat._y + 10;
_parent["mcmyBomb" + Bombno].onEnterFrame = function () {
var _local1 = this;
_local1._y = _local1._y + 0.75;
if (_local1._y > 400) {
_local1.removeMovieClip();
}
};
}
}
}
onClipEvent (enterFrame) {
if (Key.isDown(37)) {
_x = (_x - 1);
if (_x < 50) {
_x = 50;
}
}
if (Key.isDown(39)) {
_x = (_x + 1);
if (_x > 500) {
_x = 500;
}
}
}
Instance of Symbol 99 MovieClip "mcEnemyMaker" in Frame 5
onClipEvent (load) {
arrSubs = new Array(2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50);
subno = 100;
boomno = 300;
level = 1;
dead = 0;
submarines = 0;
_parent.attachMovie("mcLevel", "mcLevel", 100);
_parent.mcLevel._x = 275;
_parent.mcLevel._y = 200;
_parent.mcLevel.mcLevel.txtLevel.text = "Level " + level;
}
onClipEvent (enterFrame) {
if (submarines < arrSubs[level - 1]) {
w = random(300);
if (w < 2) {
submarines++;
attachMovie("mcSub", "mcSub" + subno, subno);
w = random(100);
if (w < 50) {
this["mcSub" + subno]._x = 600;
} else {
this["mcSub" + subno]._xscale = -100;
this["mcSub" + subno]._x = -50;
}
this["mcSub" + subno].mySub.gotoAndStop(random(5) + 1);
this["mcSub" + subno]._y = 150 + random(200);
subno++;
if (subno > 200) {
subno = 100;
}
}
}
if (dead >= arrSubs[level - 1]) {
_parent.attachMovie("mcLevel", "mcLevel", 100);
_parent.mcLevel._x = 275;
_parent.mcLevel._y = 200;
_parent.mcLevel.mcLevel.txtLevel.text = "Level " + level;
level++;
dead = 0;
submarines = 0;
}
}
Instance of Symbol 107 MovieClip "mcScore" in Frame 5
onClipEvent (load) {
txtScore.text = 0;
txtHull.text = 100;
}
onClipEvent (enterFrame) {
if (txtHull.text < 0) {
txtHull.text = 0;
_parent.gotoAndStop(10);
}
}
Frame 10
mcOcean.removeMovieClip();
myScores = new SharedObject();
myScores = SharedObject.getLocal("scores");
if (myScores.data.arrScores == undefined) {
myScores.data.arrScores = new Array(["Player", 1000], ["Player", 700], ["Player", 200]);
}
hiScores = myScores.data.arrScores;
if (Number(mcScore.txtScore.text) < hiScores[2][1]) {
gotoAndStop (15);
}
Frame 15
txtName1.text = hiScores[0][0];
txtScore1.text = hiScores[0][1];
txtName2.text = hiScores[1][0];
txtScore2.text = hiScores[1][1];
txtName3.text = hiScores[2][0];
txtScore3.text = hiScores[2][1];
stop();
Symbol 6 MovieClip [mcmyBomb] Frame 2
stop();
Instance of Symbol 3 MovieClip "Bomb" in Symbol 6 MovieClip [mcmyBomb] Frame 2
onClipEvent (enterFrame) {
_rotation = (_rotation + (10 / (random(5) + 15)));
}
Symbol 16 MovieClip Frame 1
if (_parent._x == -50) {
speed = -(10 / (10 + random(20)));
} else {
speed = 10 / (10 + random(20));
}
stop();
Instance of Symbol 16 MovieClip "mySub" in Symbol 17 MovieClip [mcSub] Frame 1
onClipEvent (load) {
alive = true;
}
onClipEvent (enterFrame) {
if (alive) {
w = random(300);
if (w == 0) {
_parent._parent._parent.attachMovie("mcMine", "mcMine" + _parent._parent._parent.mineno, _parent._parent._parent.mineno);
_parent._parent._parent["mcMine" + _parent._parent._parent.mineno]._x = _parent._x;
_parent._parent._parent["mcMine" + _parent._parent._parent.mineno]._y = _parent._y;
_parent._parent._parent.mineno++;
if (_parent._parent._parent.mineno > 100) {
_parent._parent._parent.mineno = 4;
}
}
_parent._x = _parent._x - speed;
if (_parent._x > 600) {
_parent._x = -50;
}
if (_parent._x < -50) {
_parent._x = 600;
}
if (this.hitTest(_parent._parent._parent.mcmyBomb1.Bomb)) {
_parent._parent._parent.mcScore.txtScore.text = Number(_parent._parent._parent.mcScore.txtScore.text) + 100;
alive = false;
_parent._parent.attachMovie("mcBoom", "mcBoom" + _parent._parent.boomno, _parent._parent.boomno);
_parent._parent["mcBoom" + _parent._parent.boomno]._x = _parent._parent._parent.mcmyBomb1._x;
_parent._parent["mcBoom" + _parent._parent.boomno]._y = _parent._y;
_parent._parent._parent.mcmyBomb1.removeMovieClip();
myboom = new Sound();
myboom.attachSound("boomsound");
myboom.setVolume(50);
myboom.start();
_parent._parent.boomno++;
if (_parent._parent.boomno > 500) {
_parent._parent.boomno = 300;
}
}
if (this.hitTest(_parent._parent._parent.mcmyBomb2.Bomb)) {
alive = false;
_parent._parent._parent.mcScore.txtScore.text = Number(_parent._parent._parent.mcScore.txtScore.text) + 100;
_parent._parent.attachMovie("mcBoom", "mcBoom" + _parent._parent.boomno, _parent._parent.boomno);
_parent._parent["mcBoom" + _parent._parent.boomno]._x = _parent._parent._parent.mcmyBomb2._x;
_parent._parent["mcBoom" + _parent._parent.boomno]._y = _parent._y;
_parent._parent._parent.mcmyBomb2.removeMovieClip();
myboom = new Sound();
myboom.attachSound("boomsound");
myboom.setVolume(50);
myboom.start();
_parent._parent.boomno++;
if (_parent._parent.boomno > 500) {
_parent._parent.boomno = 300;
}
}
if (this.hitTest(_parent._parent._parent.mcmyBomb3.Bomb)) {
alive = false;
_parent._parent._parent.mcScore.txtScore.text = Number(_parent._parent._parent.mcScore.txtScore.text) + 100;
_parent._parent.attachMovie("mcBoom", "mcBoom" + _parent._parent.boomno, _parent._parent.boomno);
_parent._parent["mcBoom" + _parent._parent.boomno]._x = _parent._parent._parent.mcmyBomb3._x;
_parent._parent["mcBoom" + _parent._parent.boomno]._y = _parent._y;
_parent._parent._parent.mcmyBomb3.removeMovieClip();
myboom = new Sound();
myboom.attachSound("boomsound");
myboom.setVolume(50);
myboom.start();
_parent._parent.boomno++;
if (_parent._parent.boomno > 500) {
_parent._parent.boomno = 300;
}
}
} else {
_parent._alpha--;
if (_parent._alpha <= 0) {
_parent._parent.dead++;
_parent.removeMovieClip();
}
}
}
Symbol 20 MovieClip [Boom] Frame 1
_xscale = (random(75) + 25);
_yscale = _xscale;
w = random(12);
if (w < 6) {
_x = (-random(20));
if (w < 3) {
_y = (-random(5));
} else {
_y = random(5);
}
} else {
_x = random(20);
if (w < 9) {
_y = (-random(5));
} else {
_y = random(5);
}
}
Symbol 20 MovieClip [Boom] Frame 15
this.removeMovieClip();
Instance of Symbol 21 MovieClip "mcBoomboom" in Symbol 22 MovieClip [mcBoom] Frame 1
onClipEvent (load) {
kaboom = 0;
}
onClipEvent (enterFrame) {
w = random(100);
if (w < 30) {
this.attachMovie("Boom", "Boom" + kaboom, kaboom);
kaboom++;
if (kaboom > 25) {
_parent.removeMovieClip();
}
}
}
Symbol 27 MovieClip [mcLevel] Frame 1
mcLevel.txtLevel.text = "Level " + _parent.mcEnemyMaker.level;
Symbol 27 MovieClip [mcLevel] Frame 20
mcLevel.txtLevel.text = "Level " + _parent.mcEnemyMaker.level;
Symbol 27 MovieClip [mcLevel] Frame 50
mcLevel.txtLevel.text = "Level " + _parent.mcEnemyMaker.level;
Symbol 27 MovieClip [mcLevel] Frame 70
mcLevel.txtLevel.text = "Level " + _parent.mcEnemyMaker.level;
this.removeMovieClip();
Symbol 35 MovieClip [mcMine] Frame 1
stop();
Instance of Symbol 29 MovieClip in Symbol 35 MovieClip [mcMine] Frame 1
onClipEvent (enterFrame) {
if (_currentframe == 1) {
_rotation = (_rotation - (10 / (random(5) + 15)));
_parent._y = _parent._y - 0.75;
}
if (_parent._y < 68) {
_parent.play();
}
if (_parent.hitTest(_parent._parent.mcBoat)) {
_parent._parent.mcBoat.mcBoat.mcDamage.gotoAndStop(_parent._parent.mcBoat.mcBoat.mcDamage._currentframe + 1);
_parent._parent.mcScore.txtHull.text = _parent._parent.mcScore.txtHull.text - 30;
_parent.play();
}
}
Symbol 35 MovieClip [mcMine] Frame 45
this.removeMovieClip();
Symbol 38 MovieClip [mcSmoke] Frame 50
this.removeMovieClip();
Symbol 53 MovieClip Frame 1
function setValue(v) {
mv = (v / 100) * 144;
}
var mv = 0;
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.thebar._x < _parent.mv) {
if ((_parent.mv - _parent.thebar._x) >= 2) {
_parent.thebar._x = _parent.thebar._x + 2;
} else {
_parent.thebar._x++;
}
}
}
Symbol 57 MovieClip Frame 4
tb = _parent.getBytesTotal();
lb = _parent.getBytesLoaded();
v = int((lb / tb) * 100);
thebar.setValue(v);
if (lb < tb) {
gotoAndPlay(_currentframe - 1);
} else if (thebar.mv == thebar.thebar._x) {
play();
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 57 MovieClip Frame 87
_parent.gotoAndStop("Main");
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Instance of Symbol 63 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay(random(150));
}
Symbol 83 Button
on (release) {
gotoAndStop (5);
}
Symbol 86 Button
on (release) {
getURL ("http://www.funflashgames.com", "_blank");
}
Symbol 89 Button
on (release) {
getURL ("http://www.funflashgames.com/freecontent.html", "_blank");
}
Symbol 95 MovieClip Frame 1
smoke = 5000;
smoke2 = 6000;
smoke3 = 7000;
stop();
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 2
onClipEvent (enterFrame) {
w = random(200);
if (w < 6) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke, _parent.smoke);
_root["mcSmoke" + _parent.smoke]._x = _root.mcBoat._x;
_root["mcSmoke" + _parent.smoke]._y = _root.mcBoat._y;
_root["mcSmoke" + _parent.smoke]._alpha = 50;
_parent.smoke++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 3
onClipEvent (enterFrame) {
w = random(200);
if (w < 12) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke, _parent.smoke);
_root["mcSmoke" + _parent.smoke]._x = _root.mcBoat._x;
_root["mcSmoke" + _parent.smoke]._y = _root.mcBoat._y;
_parent.smoke++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 3
onClipEvent (enterFrame) {
w = random(200);
if (w < 6) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke2, _parent.smoke2);
_root["mcSmoke" + _parent.smoke2]._x = _root.mcBoat._x - 3;
_root["mcSmoke" + _parent.smoke2]._y = _root.mcBoat._y + 1;
_root["mcSmoke" + _parent.smoke2]._alpha = 50;
_parent.smoke2++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 4
onClipEvent (enterFrame) {
w = random(200);
if (w < 20) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke, _parent.smoke);
_root["mcSmoke" + _parent.smoke]._x = _root.mcBoat._x;
_root["mcSmoke" + _parent.smoke]._y = _root.mcBoat._y;
_parent.smoke++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 4
onClipEvent (enterFrame) {
w = random(200);
if (w < 6) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke2, _parent.smoke2);
_root["mcSmoke" + _parent.smoke2]._x = _root.mcBoat._x - 12;
_root["mcSmoke" + _parent.smoke2]._y = _root.mcBoat._y + 3;
_root["mcSmoke" + _parent.smoke2]._alpha = 50;
_parent.smoke++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 4
onClipEvent (enterFrame) {
w = random(200);
if (w < 6) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke2, _parent.smoke2);
_root["mcSmoke" + _parent.smoke2]._x = _root.mcBoat._x + 24;
_root["mcSmoke" + _parent.smoke2]._y = _root.mcBoat._y + 5;
_root["mcSmoke" + _parent.smoke2]._alpha = 50;
_parent.smoke++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 4
onClipEvent (enterFrame) {
w = random(200);
if (w < 20) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke3, _parent.smoke3);
_root["mcSmoke" + _parent.smoke3]._x = _root.mcBoat._x - 3;
_root["mcSmoke" + _parent.smoke3]._y = _root.mcBoat._y + 3;
_parent.smoke3++;
}
}
Instance of Symbol 94 MovieClip in Symbol 95 MovieClip Frame 4
onClipEvent (enterFrame) {
w = random(200);
if (w < 10) {
_root.attachMovie("mcSmoke", "mcSmoke" + _parent.smoke3, _parent.smoke3);
_root["mcSmoke" + _parent.smoke3]._x = _root.mcBoat._x + 12;
_root["mcSmoke" + _parent.smoke3]._y = _root.mcBoat._y + 2;
_parent.smoke3++;
}
}
Symbol 117 Button
on (release) {
if (Number(mcScore.txtScore.text) > hiScores[0][1]) {
hiScores[2][0] = hiScores[1][0];
hiScores[2][1] = hiScores[1][1];
hiScores[1][0] = hiScores[0][0];
hiScores[1][1] = hiScores[0][1];
hiScores[0][0] = txtmyName.text;
hiScores[0][1] = mcScore.txtScore.text;
} else if (Number(mcScore.txtScore.text) > hiScores[1][1]) {
hiScores[2][0] = hiScores[1][0];
hiScores[2][1] = hiScores[1][1];
hiScores[1][0] = txtmyName.text;
hiScores[1][1] = mcScore.txtScore.text;
} else {
hiScores[2][0] = txtmyName.text;
hiScores[2][1] = mcScore.txtScore.text;
}
myScores.data.arrScores = hiScores;
myScores.flush();
gotoAndStop (15);
}
Symbol 128 Button
on (release) {
gotoAndStop (2);
}