Frame 1
Stage.showMenu = false;
_quality = "LOW";
stop();
Instance of Symbol 48 MovieClip in Frame 1
onClipEvent (load) {
_xscale = 0;
}
onClipEvent (enterFrame) {
total = _root.getBytesTotal();
current = _root.getBytesLoaded();
percent = (current / total) * 100;
if (_xscale < percent) {
_xscale = (_xscale + 1);
}
if (temppercent < percent) {
temppercent = temppercent + 1;
}
_root.display = Math.round(percent) + "%";
_root.displaybox._x = (temppercent * 5) - 30;
if (_root.displaybox._x < 30) {
_root.displaybox._x = 30;
}
}
Frame 2
stop();
Frame 3
if (_global.dif == "easy") {
_root.maxbubbles = 40;
} else if (_global.dif == "med") {
_root.maxbubbles = 75;
} else if (_global.dif == "hard") {
_root.maxbubbles = 100;
} else if (_global.dif == "extreme") {
_root.maxbubbles = 150;
}
_root.score = 0;
_root.dead = false;
_root.powerup = new Object();
_root.reset = function () {
_root.warp = false;
_root._xscale = 100;
_root._yscale = _root._xscale;
_root._y = 0;
_root._x = 0;
_root.powerupOn = false;
_root.downmult = 1;
_root.sword = false;
_root.downbonus = 0;
};
reset();
onEnterFrame = function () {
if (_root.warp) {
_root._y = 0;
_root._x = 0;
_root._y = _root._y + (random(7) - 3);
_root._x = _root._x + (random(7) - 3);
}
};
stop();
_root.depth = 0;
_root.dead = false;
_root.a = 0;
i = 1;
while (i < 15) {
_root.blank.attachMovie("enemy", "enemy" + a, a);
_root.blank["enemy" + a]._x = random(Stage.width);
_root.blank["enemy" + a]._y = random(2 * Stage.height) + 500;
a++;
i++;
}
Instance of Symbol 104 MovieClip "BG" in Frame 3
onClipEvent (load) {
_yscale = 2000;
_xscale = 200;
_y = _height;
_x = (200 - (_width / 2));
}
onClipEvent (enterFrame) {
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x + (_root.speed / 2));
}
if (_root.dir == "right") {
_x = (_x - (_root.speed / 2));
}
if (_y < 420) {
_y = 420;
}
if (_x < -1250) {
_x = -1250;
}
if (_x > 0) {
_x = 0;
}
_y = (_y - _root.down);
}
}
Instance of Symbol 105 MovieClip in Frame 3
onClipEvent (load) {
wait = 0;
}
onClipEvent (enterFrame) {
wait++;
if (wait > (random(500) + 100)) {
wait = 1;
this.attachMovie("bigbubble", "bigenemy" + a, a);
this["bigenemy" + a]._x = random(Stage.width);
this["bigenemy" + a]._y = random(2 * Stage.height) + 500;
a++;
}
}
Instance of Symbol 115 MovieClip "main" in Frame 3
onClipEvent (load) {
_root.down1 = 1;
_root.speed = 1;
}
onClipEvent (enterFrame) {
_root.down = _root.down1 * ((_root.downmult + _root.downbonus) + _root.downbonus);
if (!_root.dead) {
_root.depth = _root.depth + _root.down;
if (_y < 300) {
_y = (_y + _root.down);
} else if (_root.bg._y < 420) {
_y = (_y + _root.down);
}
if (Key.isDown(37)) {
_rotation = 15;
_x = (_x - _root.speed);
_root.dir = "right";
}
if (Key.isDown(39)) {
_rotation = -15;
_x = (_x + _root.speed);
_root.dir = "left";
}
if (Key.isDown(38) and (!_root.warp)) {
_y = (_y - ((_root.downmult + _root.downbonus) * 4));
}
if ((!Key.isDown(39)) and (!Key.isDown(37))) {
_rotation = 0;
_root.dir = "none";
}
if (((_y < -25) or (_x < -25)) or (_x > (Stage.width + 25))) {
_root.dead = true;
_root.gotoAndStop("gameover");
}
if (_y > 420) {
_root.dead = true;
_root.gotoAndStop("win");
}
} else {
_y = (_y - _root.down);
if (((_y < -25) or (_x < -25)) or (_x > (Stage.width + 25))) {
_root.gotoAndStop("gameover");
}
}
}
Instance of Symbol 117 MovieClip in Frame 3
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 75) {
_alpha = (_root.depth / 75);
}
}
Instance of Symbol 105 MovieClip in Frame 3
onClipEvent (load) {
wait2 = 5;
poison = 1;
}
onClipEvent (enterFrame) {
maxpoison = Math.round(_root.depth / 500) + 1;
if ((poison < maxpoison) and (maxpoison <= 10)) {
this.attachMovie("poison", "poison" + a, a);
this["poison" + a]._x = random(Stage.width);
this["poison" + a]._y = 500 + random(300);
poison++;
a++;
}
}
Instance of Symbol 105 MovieClip "blank2" in Frame 3
onClipEvent (load) {
wait = 0;
}
onClipEvent (enterFrame) {
if (!_root.powerupOn) {
wait++;
if (wait > (random(25) + 40)) {
wait = 0;
pick = random(5) + 1;
if (pick == 1) {
this.attachMovie("ton", "power", 1);
} else if (pick == 2) {
this.attachMovie("speed+", "power", 1);
} else if (pick == 3) {
this.attachMovie("speed-", "power", 1);
} else if (pick == 4) {
this.attachMovie("sword", "power", 1);
} else if (pick == 5) {
this.attachMovie("Warp", "power", 1);
}
_root.powerupOn = true;
this.power._y = 450;
this.power._x = random(400) + 75;
}
}
}
Instance of Symbol 105 MovieClip in Frame 3
onClipEvent (enterFrame) {
wait++;
if (((_root.depth / 10) < 200) and (wait > (random(25) + 25))) {
wait = 0;
this.attachMovie("kelp", "kelp" + a, a);
this["kelp" + a]._x = random(Stage.width);
this["kelp" + a]._y = 500 + random(300);
a++;
}
}
Frame 4
_root.score2 = _root.score;
_root.dead = true;
_root.warp = false;
Frame 5
_root.score2 = _root.score;
_root.dead = true;
_root.warp = false;
Symbol 17 MovieClip [BigBubble] Frame 1
speed1 = random(3) + 1;
_xscale = (random(600) + 1000);
_yscale = _xscale;
stop();
onEnterFrame = function () {
maxd = (_width / 2) + 10;
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < (-(_height + 50))) {
_root.score = _root.score + 10;
this.removeMovieClip();
}
dx = this._x - _root.Main._x;
dy = this._y - _root.Main._y;
d = Math.sqrt((dx * dx) + (dy * dy));
cosine = dx / d;
sine = dy / d;
if (d < maxd) {
if (_root.sword) {
if (_xscale < 400) {
_root.score = _root.score + 20;
_xscale = 150;
_yscale = _xscale;
play();
} else {
_xscale = (_xscale - 15);
_yscale = _xscale;
_root.Main._x = this._x + (cosine * ((-maxd) - 1));
_root.Main._y = this._y + (sine * ((-maxd) - 1));
}
} else {
_root.Main._x = this._x + (cosine * ((-maxd) - 1));
_root.Main._y = this._y + (sine * ((-maxd) - 1));
}
}
}
};
Symbol 17 MovieClip [BigBubble] Frame 2
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < (-(_height + 50))) {
this.removeMovieClip();
}
}
};
_root.score = _root.score + 20;
Symbol 17 MovieClip [BigBubble] Frame 36
stop();
Symbol 31 MovieClip [Poison] Frame 1
stop();
speed1 = random(3) + 3;
_xscale = (random(150) + 75);
_yscale = _xscale;
onEnterFrame = function () {
maxd = 21.75;
speed = (speed = speed1 * (_root.downmult + _root.downbonus));
_y = (_y - speed);
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.score++;
_y = (500 + random(300));
_x = random(Stage.width);
speed1 = random(3) + 3;
_xscale = (random(150) + 75);
_yscale = _xscale;
gotoAndStop (1);
}
dx = this._x - _root.Main._x;
dy = this._y - _root.Main._y;
d = Math.sqrt((dx * dx) + (dy * dy));
cosine = dx / d;
sine = dy / d;
if (d < maxd) {
_root.Main.gotoAndStop("dead");
this.play();
}
}
};
Symbol 31 MovieClip [Poison] Frame 2
speed1 = random(3) + 3;
_xscale = (random(150) + 75);
_yscale = _xscale;
onEnterFrame = function () {
maxd = (_width / 2) + 15;
speed = (speed = speed1 * (_root.downmult + _root.downbonus));
_y = (_y - speed);
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.score++;
this.removeMovieClip();
}
}
};
_root.score = _root.score + 2;
_root.dead = true;
Symbol 31 MovieClip [Poison] Frame 70
stop();
Symbol 39 MovieClip [Enemy] Frame 1
stop();
speed1 = random(3) + 3;
_xscale = (random(100) + 50);
_yscale = _xscale;
onEnterFrame = function () {
if (_y < -50) {
if (!_root.dead) {
_root.score++;
}
if (_root.a < _root.maxbubbles) {
_root.blank.attachMovie("enemy", "enemy" + _root.a, _root.a);
_root.blank["enemy" + _root.a]._x = random(Stage.width);
_root.blank["enemy" + _root.a]._y = random(2 * Stage.height) + 500;
_root.a++;
} else {
_y = ((Stage.height + 50) + random(200));
_x = random(Stage.width);
speed1 = random(3) + 3;
_xscale = (random(100) + 50);
_yscale = _xscale;
gotoAndStop (1);
}
}
maxd = (_width / 2) + 15;
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (_x < (-(this._width + 50))) {
_x = (Stage.width + (this._width + 50));
}
if (_x > (Stage.width + (this._width + 50))) {
_x = (-(this._width + 50));
}
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
dx = this._x - _root.Main._x;
dy = this._y - _root.Main._y;
d = Math.sqrt((dx * dx) + (dy * dy));
cosine = dx / d;
sine = dy / d;
if (d < maxd) {
if (_root.sword) {
play();
} else {
_root.Main._x = this._x + (cosine * ((-maxd) - 1));
_root.Main._y = this._y + (sine * ((-maxd) - 1));
}
}
}
};
Symbol 39 MovieClip [Enemy] Frame 2
onEnterFrame = function () {
if (_y < -50) {
if (!_root.dead) {
_root.score++;
}
if (_root.a < _root.maxbubbles) {
_root.blank.attachMovie("enemy", "enemy" + _root.a, _root.a);
_root.blank["enemy" + _root.a]._x = random(Stage.width);
_root.blank["enemy" + _root.a]._y = random(2 * Stage.height) + 500;
_root.a++;
} else {
_y = ((Stage.height + 50) + random(200));
_x = random(Stage.width);
speed1 = random(3) + 3;
_xscale = (random(100) + 50);
_yscale = _xscale;
gotoAndStop (1);
}
}
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
}
};
_root.score = _root.score + 2;
Symbol 39 MovieClip [Enemy] Frame 36
stop();
Symbol 42 MovieClip [Sword] Frame 1
speed1 = random(3) + 3;
stop();
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (this.hitTest(_root.main._x, _root.main._y, true)) {
_root.cool.attachMovie("cooldown", "cooldown", 1);
_root.cool.cooldown.time = 0.15;
_root.cool.cooldown.mytype.text = "Sword- Cuts through bubbles like butter!";
play();
}
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.powerupOn = false;
this.removeMovieClip();
}
}
};
Symbol 42 MovieClip [Sword] Frame 11
_root.sword = true;
stop();
this.removeMovieClip();
Symbol 44 MovieClip [Warp] Frame 1
speed1 = random(3) + 3;
stop();
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
_rotation = (_rotation - 5);
_y = (_y - speed);
if (!_root.dead) {
if (this.hitTest(_root.main._x, _root.main._y, true)) {
_root.cool.attachMovie("cooldown", "cooldown", 1);
_root.cool.cooldown.time = 2;
_root.cool.cooldown.mytype.text = "Warp- Travel at supersonic speeds!!";
play();
}
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.powerupOn = false;
this.removeMovieClip();
}
}
};
Symbol 44 MovieClip [Warp] Frame 11
_root.downmult = 20;
_root.warp = true;
stop();
this.removeMovieClip();
Symbol 46 MovieClip [ton] Frame 1
speed1 = random(3) + 3;
stop();
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (this.hitTest(_root.main._x, _root.main._y, true)) {
_root.cool.attachMovie("cooldown", "cooldown", 1);
_root.cool.cooldown.time = 0.5;
_root.cool.cooldown.mytype.text = "1 Ton- increase your swimming rate!";
play();
}
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.powerupOn = false;
this.removeMovieClip();
}
}
};
Symbol 46 MovieClip [ton] Frame 11
_root.downmult = random(4) + 1;
stop();
this.removeMovieClip();
Symbol 51 MovieClip [cooldown] Frame 1
onEnterFrame = function () {
a.text = myType;
};
power = 100;
onEnterFrame = function () {
power = power - time;
};
Instance of Symbol 48 MovieClip "bar" in Symbol 51 MovieClip [cooldown] Frame 1
onClipEvent (enterFrame) {
_xscale = _parent.power;
if (_xscale < 0) {
_root.reset();
_root.powerupOn = false;
_parent.removeMovieClip();
}
}
Symbol 53 MovieClip [Speed-] Frame 1
speed1 = random(3) + 3;
stop();
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (this.hitTest(_root.main._x, _root.main._y, true)) {
play();
}
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.powerupOn = false;
this.removeMovieClip();
}
}
};
Symbol 53 MovieClip [Speed-] Frame 11
if (_root.speed > 0.5) {
_root.speed = _root.speed - 0.5;
}
if (_root.downbonus > 0.5) {
_root.downbonus = _root.downbonus - 0.5;
}
_root.powerupOn = false;
stop();
this.removeMovieClip();
Symbol 55 MovieClip [Speed+] Frame 1
speed1 = random(3) + 3;
stop();
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
_y = (_y - speed);
if (!_root.dead) {
if (this.hitTest(_root.main._x, _root.main._y, true)) {
play();
}
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -50) {
_root.powerupOn = false;
this.removeMovieClip();
}
}
};
Symbol 55 MovieClip [Speed+] Frame 11
_root.speed = _root.speed + 0.125;
_root.downbonus = _root.downbonus + 0.25;
_root.powerupOn = false;
stop();
this.removeMovieClip();
Symbol 60 MovieClip [Kelp] Frame 1
speed1 = random(3) + 3;
_alpha = (random(80) + 15);
_xscale = (random(100) + 50);
scale = random(1) + 1;
_yscale = _xscale;
if (scale == 1) {
_yscale = (_yscale * -1);
}
_rotation = (random(20) - 10);
onEnterFrame = function () {
speed = speed1 * (_root.downmult + _root.downbonus);
this._y = this._y - speed;
if (!_root.dead) {
if (_root.dir == "left") {
_x = (_x - (_root.speed * 5));
}
if (_root.dir == "right") {
_x = (_x + (_root.speed * 5));
}
if (_y < -200) {
this.removeMovieClip();
}
}
};
Symbol 69 Button
on (release) {
play();
}
Symbol 76 Button
on (release) {
_quality = "HIGH";
}
Symbol 77 Button
on (release) {
_quality = "MEDIUM";
}
Symbol 78 Button
on (release) {
_quality = "LOW";
}
Symbol 92 Button
on (release) {
play();
_global.dif = "extreme";
}
Symbol 93 Button
on (release) {
play();
_global.dif = "easy";
}
Symbol 94 Button
on (release) {
play();
_global.dif = "med";
}
Symbol 95 Button
on (release) {
play();
_global.dif = "hard";
}
Instance of Symbol 102 MovieClip in Symbol 104 MovieClip Frame 1
onClipEvent (enterFrame) {
_yscale = 100;
}
Symbol 114 MovieClip Frame 5
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 120 MovieClip Frame 1
onEnterFrame = function () {
a = Math.round(_root.depth / 10) + " feet";
};
stop();
Symbol 121 MovieClip Frame 1
height1 = 350;
Instance of Symbol 120 MovieClip "main" in Symbol 121 MovieClip Frame 1
onClipEvent (load) {
_y = 0;
}
onClipEvent (enterFrame) {
frac = (_parent.height1 + 25) / _root.bg._height;
mySpeed = _root.depth * frac;
_y = mySpeed;
if (_y > _parent.height1) {
_y = _parent.height1;
}
}
Symbol 127 Button
on (release) {
_root.score = 0;
play();
}