Frame 1
_quality = "medium";
men = new ContextMenu();
hi = new ContextMenuItem("Quality: High", function () {
_quality = "HIGH";
});
med = new ContextMenuItem("Quality: Medium", function () {
_quality = "MEDIUM";
});
lo = new ContextMenuItem("Quality: Low", function () {
_quality = "LOW";
});
sfb = new ContextMenuItem("SuperFlashBros.net", function () {
getURL ("http://www.superflashbros.net", "_blank");
}, true);
agms = new ContextMenuItem("ArmorGames.com", function () {
getURL ("http://www.armorgames.com", "_blank");
});
agm = new ContextMenuItem("Play More Games!", function () {
getURL ("http://www.armorgames.com", "_blank");
});
men.hideBuiltInItems();
men.customItems.push(hi);
men.customItems.push(med);
men.customItems.push(lo);
men.customItems.push(sfb);
men.customItems.push(agms);
men.customItems.push(agm);
_root.menu = men;
_root.tabEnabled = false;
Instance of Symbol 66 MovieClip in Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 69 MovieClip in Frame 1
onClipEvent (load) {
this.onRelease = function () {
getURL ("http://www.superflashbros.net", "_blank");
};
}
Frame 2
if (_root.getBytesLoaded() != _root.getBytesTotal()) {
if (Math.random() < (_root.getBytesLoaded() / _root.getBytesTotal())) {
var b = _root.attachMovie("tiny_bubble", "bubble" + _root.getNextHighestDepth(), _root.getNextHighestDepth()).setBubble(Math.random() * 550, 560);
b.speed_a = 0;
}
gotoAndPlay (1);
} else {
for (i in _root) {
_root[i].speed_a = 3;
}
}
Frame 3
stopAllSounds();
stop();
Instance of Symbol 88 MovieClip in Frame 3
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.superflashbros.net", "_blank");
};
}
Instance of Symbol 88 MovieClip in Frame 3
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 88 MovieClip in Frame 3
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 88 MovieClip in Frame 3
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndPlay("intro");
};
}
Instance of Symbol 96 MovieClip in Frame 3
onClipEvent (load) {
saved = SharedObject.getLocal("jamesdeep");
if (!saved.data.unlocked) {
this._alpha = 50;
this.b1.enabled = false;
this.b2.enabled = false;
}
}
Instance of Symbol 88 MovieClip in Frame 4
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("main game");
};
}
Frame 709
_root.game = "main game";
stop();
Instance of Symbol 262 MovieClip "scoreboard" in Frame 709
onClipEvent (enterFrame) {
if (_root.score < 0) {
_root.score = 0;
}
if (display_score != _root.score) {
if (display_score > _root.score) {
speed = -20;
} else if (display_score < _root.score) {
speed = 20;
}
display_score = display_score + speed;
}
var dis = Math.round(display_score).toString();
while (dis.length < 6) {
dis = "0" + dis;
}
this.score_text.text = dis;
_root.final_score = Math.round(_root.score);
}
onClipEvent (load) {
function addScore() {
_root.score = _root.score + 100;
}
function hurtScore() {
_root.score = _root.score - 100;
}
function monster() {
_root.score = _root.score - 1000;
}
_root.score = 0;
display_score = 0;
}
Frame 710
_root.game = "free diving";
stop();
Instance of Symbol 305 MovieClip in Frame 710
onClipEvent (load) {
tiny_count = 0;
this.score = 15;
this.timer = 0;
this.speed_y = -15;
this.left_set = true;
this.onEnterFrame = function () {
if (this._currentframe == 50) {
_root.james.gotoAndStop(7);
if (left_set) {
this.left_key._xscale = (this.left_key._yscale = 100);
this.right_key._xscale = (this.right_key._yscale = 130);
if (Key.isDown(39) && (!Key.isDown(37))) {
left_set = false;
this.score++;
}
} else {
this.left_key._xscale = (this.left_key._yscale = 130);
this.right_key._xscale = (this.right_key._yscale = 100);
if ((!Key.isDown(39)) && (Key.isDown(37))) {
left_set = true;
this.score++;
}
}
} else if (this._currentframe == 51) {
_root.james.gotoAndStop(4);
_root.james._rotation = _root.james._rotation + 2;
_root.james._x = _root.james._x + 5;
_root.james._y = _root.james._y + ((speed_y = speed_y + 1));
if (_root.james._y >= 400) {
_root.james.gotoAndStop(8);
this.gotoAndStop(52);
}
} else if (this._currentframe == 52) {
if ((tiny_count++) > 2) {
_parent.attachMovie("tiny_bubble", "tiny_bubble" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth()).setBubble(_root.james._x + 43, _root.james._y - 20);
tiny_count = 0;
}
timer = timer + 4;
var _local4 = timer.toString();
while (_local4.length < 4) {
_local4 = "0" + _local4;
}
_local4 = (_local4.substring(0, 2) + ".") + _local4.substring(2);
this.tim.text = _local4;
_root.james._y = _root.james._y + ((speed_y = speed_y * 0.7));
_root.james._rotation = _root.james._rotation - (_root.james._rotation / 20);
score = score - 0.3;
if (score <= 0) {
this.gotoAndPlay(53);
}
} else if (this._currentframe >= 53) {
_root.final_score = this.tim.text;
_root.james._rotation = _root.james._rotation - (_root.james._rotation / 20);
_root.james._y = _root.james._y + ((speed_y = speed_y - ((_root.james._y - 400) / 50)));
speed_y = speed_y * 0.83;
if (_root.james._y <= 410) {
_root.james.gotoAndStop(4);
}
}
};
}
Frame 711
_root.game = "deep sea diving";
stop();
Instance of Symbol 328 MovieClip "scoreboard" in Frame 711
onClipEvent (load) {
function addScore() {
air = air + 5;
}
function hurtScore() {
air = air - 10;
}
function endGame() {
_root.gotoAndStop("scores");
}
air = 100;
depth = 0;
display_score = 0;
}
onClipEvent (enterFrame) {
if (air > 100) {
air = 100;
}
if (_root.level._currentframe == 3) {
air = air - 0.1;
}
this.bar.gotoAndStop(Math.ceil(101 - air));
if (air <= 0) {
endGame();
}
depth = (-_root.level._y) / 50;
display_score = Math.round(depth);
var dis = Math.round(display_score).toString();
while (dis.length < 6) {
dis = "0" + dis;
}
dis = dis + "m";
this.score_text.text = dis;
_root.final_score = display_score;
}
Frame 712
saved = SharedObject.getLocal("jamesdeep");
if (saved.data.unlocked != true) {
saved.data.unlocked = true;
saved.flush();
}
stop();
Instance of Symbol 349 MovieClip "scoretable" in Frame 712
onClipEvent (load) {
__top10_send__ = new LoadVars();
__top10_receive__ = new LoadVars();
__top10_url_1__ = "http://www.armorbot.com/flashcomm";
__top10_url_2__ = "/top10_b";
if (_root.game == "main game") {
__top10_send__.hid = 642;
__top10_send__.kid = "WQEVGY";
} else if (_root.game == "free diving") {
__top10_send__.hid = 643;
__top10_send__.kid = "GVBXTM";
} else if (_root.game == "deep sea diving") {
__top10_send__.hid = 644;
__top10_send__.kid = "OYQLGL";
}
__top10_send__.sendAndLoad(__top10_url_1__ + __top10_url_2__, __top10_receive__, "POST");
__top10_receive__.onLoad = function (success) {
if (success) {
_root.scoretable.gotoAndStop(2);
i = 1;
while (i < 9) {
_root.scoretable["n" + i].text = __top10_receive__["name" + i];
_root.scoretable["s" + i].text = Number(__top10_receive__["score" + i]) / 100;
i++;
}
} else {
_root.scoretable.gotoAndStop(3);
}
};
}
Instance of Symbol 351 MovieClip in Frame 712
onClipEvent (load) {
this.score.text = _root.final_score;
if (_root.game == "deep sea diving") {
this.score.text = this.score.text + "m";
}
}
Instance of Symbol 88 MovieClip in Frame 712
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
stopAllSounds();
_root.gotoAndStop(_root.game);
};
}
Instance of Symbol 88 MovieClip in Frame 712
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("menu");
};
}
Instance of Symbol 88 MovieClip in Frame 712
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Instance of Symbol 88 MovieClip in Frame 712
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
if (_root.game == "main game") {
getURL ("http://armorbot.com/mytable/?id=642", "_blank");
} else if (_root.game == "free diving") {
getURL ("http://armorbot.com/mytable/?id=643", "_blank");
} else if (_root.game == "deep sea diving") {
getURL ("http://armorbot.com/mytable/?id=644", "_blank");
}
};
}
Symbol 2 MovieClip [tiny_bubble] Frame 1
#initclip 11
Object.registerClass("tiny_bubble", TinyBubble);
#endinitclip
Symbol 26 MovieClip Frame 12
stop();
Symbol 27 MovieClip [Rock] Frame 1
#initclip 8
Object.registerClass("Rock", Rock);
#endinitclip
Symbol 38 MovieClip Frame 11
stop();
Symbol 39 MovieClip Frame 11
_parent.removeMovieClip();
Symbol 40 MovieClip [Starfish] Frame 1
#initclip 9
Object.registerClass("Starfish", Starfish);
#endinitclip
Symbol 43 MovieClip [Bubble] Frame 1
#initclip 10
Object.registerClass("Bubble", Bubble);
#endinitclip
stop();
Symbol 43 MovieClip [Bubble] Frame 4
this.removeMovieClip();
Symbol 365 MovieClip [__Packages.Rock] Frame 0
class Rock extends MovieClip
{
var spin, gotoAndStop, onEnterFrame, _rotation, _y, _parent, removeMovieClip, _x, _currentframe;
function Rock () {
super();
spin = Math.round((Math.random() * 10) - 5);
gotoAndStop(Math.ceil(Math.random() * 5));
onEnterFrame = control;
}
function control() {
_rotation = _rotation + spin;
_y = _y + speed_y;
if (((_y + _parent._y) > 600) || ((_y + _parent._y) < -50)) {
removeMovieClip();
} else if (_parent.james.hitTest(_x + _parent._x, _y + _parent._y) && (_currentframe != 6)) {
if (_parent.james.speed_y < 0) {
_parent.james.speed_y = 0;
}
_root.scoreboard.hurtScore();
_parent.james.gotoAndStop(3);
gotoAndStop(6);
}
}
var speed_y = 2;
}
Symbol 366 MovieClip [__Packages.Starfish] Frame 0
class Starfish extends MovieClip
{
var gotoAndStop, _parent, onEnterFrame, _y, removeMovieClip, _x, _currentframe;
function Starfish () {
super();
gotoAndStop(Math.ceil(Math.random() * 4));
if (_parent == _root.level) {
onEnterFrame = control;
}
}
function control() {
if ((_y + _parent._y) > 600) {
removeMovieClip();
} else if (_parent.james.hitTest(_x + _parent._x, _y + _parent._y) && (_currentframe != 5)) {
_root.scoreboard.addScore();
gotoAndStop(5);
}
}
}
Symbol 367 MovieClip [__Packages.Bubble] Frame 0
class Bubble extends MovieClip
{
var speed_w, speed_h, average, _width, _height, onEnterFrame, _y, _parent, removeMovieClip, _x, _currentframe, gotoAndPlay;
function Bubble () {
super();
speed_w = 0;
speed_h = 0;
average = 30;
_width = 35;
_height = 25;
onEnterFrame = control;
}
function control() {
speed_w = speed_w - ((_width - average) / 5);
speed_h = speed_h - ((_height - average) / 5);
_width = _width + (speed_w - ((_width - average) / 40));
_height = _height + (speed_h - ((_height - average) / 40));
_y = _y - 4;
if ((_y + _parent._y) < -30) {
removeMovieClip();
} else if (_parent.james.hitTest(_x + _parent._x, _y + _parent._y) && (_currentframe == 1)) {
_root.scoreboard.addScore();
gotoAndPlay(2);
}
}
}
Symbol 368 MovieClip [__Packages.TinyBubble] Frame 0
class TinyBubble extends MovieClip
{
var onEnterFrame, _x, _y, o_x, offset;
function TinyBubble () {
super();
onEnterFrame = function () {
this._alpha = this._alpha - this.speed_a;
this._y = this._y - 8;
this._x = this.o_x + (8 * Math.sin(this.offset + (this._y / 30)));
if (((this._alpha < 1) || ((this._y + this._parent._y) < _root.waterline._y)) || ((this._y + this._parent._y) < -5)) {
this.removeMovieClip();
}
};
}
function setBubble(p_x, p_y) {
_x = p_x;
_y = p_y;
o_x = p_x;
offset = Math.random() * 20;
return(this);
}
var speed_a = 2.8;
}
Symbol 369 MovieClip [__Packages.DeepSeaZebra] Frame 0
class DeepSeaZebra extends MovieClip
{
var _quality, onEnterFrame, _parent, _y, _currentframe, gotoAndStop, _x, _height, _xscale;
function DeepSeaZebra () {
super();
_quality = "low";
onEnterFrame = control;
}
function control() {
if ((_y + _parent._y) > (_root.waterline._y + 40)) {
makeBubbles();
}
if (_parent._y <= (max_y + 600)) {
if (Math.random() < 0.08) {
addStarfish();
}
if (Math.random() < 0.07) {
addRock();
}
}
sink();
var _local3 = false;
if (Key.isDown(38) && (!up)) {
up = true;
swimUp();
} else if (!Key.isDown(38)) {
up = false;
}
if (Key.isDown(37)) {
_local3 = true;
swimLeft();
} else if (Key.isDown(39)) {
_local3 = true;
swimRight();
} else {
slowDown();
}
checkMonster();
moveAbout();
cameraFollow();
if (_currentframe != 3) {
if (_local3) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
function moveAbout() {
_x = _x + speed_x;
if (!surfaced) {
_y = _y + speed_y;
}
if (_x < 100) {
speed_x = 0;
_x = 100;
} else if (_x > 450) {
speed_x = 0;
_x = 450;
}
if ((_y + _parent._y) <= _root.waterline._y) {
_y = _root.waterline._y - _parent._y;
surfaced = true;
speed_y = 0;
}
if ((_y + _parent._y) < 30) {
_y = 30 - _parent._y;
speed_y = -3;
}
}
function makeBubbles() {
if ((tiny_count++) > 2) {
_parent.attachMovie("tiny_bubble", "tiny_bubble" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth()).setBubble(_x, _y - (_height / 2));
tiny_count = 0;
}
}
function swimUp() {
speed_y = -10;
}
function swimLeft() {
_xscale = -100;
if (speed_x > -6) {
speed_x = speed_x - 0.7;
}
}
function swimRight() {
_xscale = 100;
if (speed_x < 6) {
speed_x = speed_x + 0.7;
}
}
function slowDown() {
if (speed_x < 0) {
speed_x = speed_x + 0.2;
} else if (speed_x > 0) {
speed_x = speed_x - 0.2;
}
}
function sink() {
if (speed_y < 3) {
speed_y = speed_y + 0.25;
}
}
function checkMonster() {
if (_parent._y <= (max_y + 800)) {
if ((_y + _parent._y) > 490) {
speed_y = -13;
_root.scoreboard.monster();
}
} else if ((_y + _parent._y) > 520) {
speed_y = -6;
}
}
function addStarfish() {
var _local2 = _parent.attachMovie("Starfish", "starfish" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth());
_local2._y = (-_parent._y) - 30;
_local2._x = (Math.random() * 350) + 100;
}
function addRock() {
var _local2 = _parent.attachMovie("Rock", "rock" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth());
_local2._y = (-_parent._y) - 30;
_local2._x = (Math.random() * 350) + 100;
}
function cameraFollow() {
if (_parent._y <= (max_y + 1200)) {
_parent._y = _parent._y + 4;
_root.bg._y = _root.bg._y + 4;
if (_parent._y > max_y) {
_root.tropic._y = _root.tropic._y + 4;
_root.waterline._y = _root.waterline._y + 4;
if (_parent._y > (max_y + 800)) {
_root.monster._y = _root.monster._y + 3;
}
}
} else {
_root.plane._x = _root.plane._x + 11;
_root.plane2._x = _root.plane2._x - 11;
_root.plane2.gotoAndStop(2);
if (_root.plane._x > 550) {
_root.gotoAndStop("scores");
}
}
if (_root.bg._y > -100) {
_root.bg._y = _root.bg._y - 230;
}
}
var speed_x = 0;
var speed_y = -7;
var up = false;
var max_y = 3600;
var tiny_count = 0;
var surfaced = false;
}
Symbol 370 MovieClip [__Packages.DivingZebra] Frame 0
class DivingZebra extends MovieClip
{
var _quality, onEnterFrame, _parent, _y, _currentframe, gotoAndStop, _x, _xscale, _height;
function DivingZebra () {
super();
_quality = "low";
onEnterFrame = control;
}
function control() {
if ((_y + _parent._y) > (_root.waterline._y + 40)) {
makeBubbles();
}
if (Math.random() < 0.07) {
addRock();
}
if (Math.random() < 0.07) {
addBubble();
}
sink();
var _local3 = false;
if (Key.isDown(38) && (!up)) {
up = true;
swimUp();
} else if (!Key.isDown(38)) {
up = false;
}
if (Key.isDown(37)) {
_local3 = true;
swimLeft();
} else if (Key.isDown(39)) {
_local3 = true;
swimRight();
} else {
slowDown();
}
moveAbout();
cameraFollow();
if (_currentframe != 3) {
if (_local3) {
gotoAndStop(2);
} else {
gotoAndStop(1);
}
}
}
function moveAbout() {
_x = _x + speed_x;
_y = _y + speed_y;
if (_x < 100) {
speed_x = 0;
_x = 100;
} else if (_x > 450) {
speed_x = 0;
_x = 450;
}
if ((_y + _parent._y) < _root.waterline._y) {
_y = _root.waterline._y - _parent._y;
speed_y = 0;
}
if ((_y + _parent._y) < 20) {
_y = 20 - _parent._y;
speed_y = 4;
}
}
function makeBubbles() {
if ((tiny_count++) > 2) {
_parent.attachMovie("tiny_bubble", "tiny_bubble" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth()).setBubble(_x + (_xscale / 10), _y - (_height / 2));
tiny_count = 0;
}
}
function swimUp() {
speed_y = -2;
}
function swimLeft() {
_xscale = -100;
if (speed_x > -6) {
speed_x = speed_x - 0.7;
}
}
function swimRight() {
_xscale = 100;
if (speed_x < 6) {
speed_x = speed_x + 0.7;
}
}
function slowDown() {
if (speed_x < 0) {
speed_x = speed_x + 0.2;
} else if (speed_x > 0) {
speed_x = speed_x - 0.2;
}
}
function sink() {
if (speed_y < 8) {
speed_y = speed_y + 0.25;
}
}
function addRock() {
var _local2 = _parent.attachMovie("Rock", "rock" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth());
_local2._y = (-_parent._y) + 600;
_local2._x = (Math.random() * 350) + 100;
_local2.speed_y = 0.5;
}
function addBubble() {
var _local2 = _parent.attachMovie("Bubble", "bubble" + _parent.getNextHighestDepth(), _parent.getNextHighestDepth());
_local2._y = (-_parent._y) + 600;
_local2._x = (Math.random() * 350) + 100;
}
function cameraFollow() {
_parent._y = _parent._y - 4;
_root.bg._y = _root.bg._y - 4;
if (_parent._y > -2000) {
_root.tropic._y = _root.tropic._y - 4;
_root.waterline._y = _root.waterline._y - 4;
}
if ((_y + _parent._y) > 470) {
_parent._y = _parent._y - (((_y + _parent._y) - 470) / 10);
_root.bg._y = _root.bg._y - (((_y + _parent._y) - 470) / 10);
if (_parent._y > -2000) {
_root.tropic._y = _root.tropic._y - (((_y + _parent._y) - 470) / 10);
_root.waterline._y = _root.waterline._y - (((_y + _parent._y) - 470) / 10);
}
}
if (_root.bg._y < -300) {
_root.bg._y = _root.bg._y + 230;
}
}
var speed_x = 0;
var speed_y = 0;
var up = false;
var tiny_count = 0;
}
Symbol 371 MovieClip [__Packages.ab20] Frame 0
class ab20
{
function ab20 () {
}
static function fr(str, find, replace, limit) {
var _local2 = str;
var _local3;
var _local4;
var _local9;
if (!(typeof(find) === "string")) {
if (replace === undefined) {
replace = [""];
} else if (typeof(replace) === "string") {
replace = [replace];
}
} else {
find = [find];
replace = [replace];
}
_local9 = find.length;
var _local1 = 0;
var _local5 = 0;
while (_local1 < _local9) {
while (_local4 = _local2.indexOf(find[_local1]) , !(_local4 === -1)) {
if ((!(limit === undefined)) && (_local5 >= limit)) {
break;
}
_local3 = new Array(_local2.substring(0, _local4), _local2.substr(_local4, find[_local1].length), _local2.substr(_local4 + find[_local1].length));
_local3[1] = ((replace[_local1] === undefined) ? "" : (replace[_local1]));
_local2 = (_local3[0] + _local3[1]) + _local3[2];
_local5++;
}
_local1++;
_local5 = 0;
}
return(_local2);
}
static function encodeNum(num) {
var _local11 = getTimer();
var _local6 = ["aZ", "Zy", "Zx"];
var _local7 = ["zH", "jY", "uH"];
var _local4 = ["Ah", "Xh", "hO"];
var _local5 = ["Ub", "Bu", "Cb"];
var _local8 = ["Qc", "Pc", "Pe"];
var _local9 = ["Ei", "Ie", "Ef"];
var _local3 = ["Fk", "kG", "Kg"];
var _local13 = ["Jl", "Lm", "Mn"];
var _local12 = ["No", "Np", "Qp"];
var _local2 = ["Rs", "St", "Sw"];
var _local14 = random(3);
num = String(num);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "9", _local6[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "8", _local7[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "7", _local4[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
num = fr(num, "6", _local5[random(3)], 1);
if (_local14 == 1) {
num = fr(num, "5", _local8[0]);
} else {
num = fr(num, "5", _local8[random(3)]);
}
num = fr(num, "4", _local9[random(3)]);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "3", _local3[random(3)], 1);
num = fr(num, "2", _local13[random(3)]);
num = fr(num, "1", _local12[random(3)]);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
num = fr(num, "0", _local2[random(3)], 1);
var _local10 = getTimer() - _local11;
num = (num + "Dd") + _local10;
return(num);
}
static function encodeStr8bytes(str) {
var _local1 = 0;
var _local4 = str.length;
var _local3 = "%";
var _local2 = ["%", "$", "#", "@"];
while (_local1 < _local4) {
_local3 = _local3 + (str.charCodeAt(_local1) + _local2[random(_local2.length)]);
_local1++;
}
return(_local3);
}
static function decodeStr8bytes(str) {
str = ("PIE" + str) + "PIE";
str = fr(str, "%", "D");
str = fr(str, "$", "D");
str = fr(str, "#", "D");
str = fr(str, "@", "D");
str = fr(str, "PIED", "");
str = fr(str, "DPIE", "");
var _local3 = str.split("D");
var _local4 = "";
var _local1 = 0;
var _local5 = _local3.length;
while (_local1 < _local5) {
_local4 = _local4 + String(String.fromCharCode(_local3[_local1]));
_local1++;
}
return(_local4);
}
static function decodeNum(str) {
var _local2 = ["aZ", "Zy", "Zx", "zH", "jY", "uH", "Ah", "Xh", "hO", "Ub", "Bu", "Cb", "Qc", "Pc", "Pe", "Ei", "Ie", "Ef", "Fk", "kG", "Kg", "Jl", "Lm", "Mn", "No", "Np", "Qp", "Rs", "St", "Sw"];
str = String(str);
str = str.split("Dd");
str = str[0];
str = fr(str, _local2[0], "9");
str = fr(str, _local2[1], "9");
str = fr(str, _local2[2], "9");
str = fr(str, _local2[3], "8");
str = fr(str, _local2[4], "8");
str = fr(str, _local2[5], "8");
str = fr(str, _local2[6], "7");
str = fr(str, _local2[7], "7");
str = fr(str, _local2[8], "7");
str = fr(str, _local2[9], "6");
str = fr(str, _local2[10], "6");
str = fr(str, _local2[11], "6");
str = fr(str, _local2[12], "5");
str = fr(str, _local2[13], "5");
str = fr(str, _local2[14], "5");
str = fr(str, _local2[15], "4");
str = fr(str, _local2[16], "4");
str = fr(str, _local2[17], "4");
str = fr(str, _local2[18], "3");
str = fr(str, _local2[19], "3");
str = fr(str, _local2[20], "3");
str = fr(str, _local2[21], "2");
str = fr(str, _local2[22], "2");
str = fr(str, _local2[23], "2");
str = fr(str, _local2[24], "1");
str = fr(str, _local2[25], "1");
str = fr(str, _local2[26], "1");
str = fr(str, _local2[27], "0");
str = fr(str, _local2[28], "0");
str = fr(str, _local2[29], "0");
var _local3 = Number(str);
return(_local3);
}
}
Symbol 88 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip "b2" in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("deep sea diving");
};
}
Instance of Symbol 88 MovieClip "b1" in Symbol 96 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("free diving");
};
}
Symbol 205 MovieClip Frame 21
stop();
Symbol 255 MovieClip Frame 9
_parent.gotoAndStop(1);
Symbol 256 MovieClip [Deep Sea Zebra] Frame 1
#initclip 12
Object.registerClass("Deep Sea Zebra", DeepSeaZebra);
#endinitclip
stop();
Symbol 268 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 287 MovieClip Frame 1
stop();
Symbol 300 MovieClip Frame 241
_parent.gotoAndStop(_parent._currentframe + 1);
stop();
Symbol 305 MovieClip Frame 1
stop();
Instance of Symbol 278 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndPlay(3);
};
}
Instance of Symbol 280 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(2);
};
}
Instance of Symbol 282 MovieClip in Symbol 305 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("menu");
};
}
Instance of Symbol 287 MovieClip in Symbol 305 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(1);
};
}
Symbol 305 MovieClip Frame 50
stop();
Symbol 305 MovieClip Frame 120
_root.gotoAndStop("scores");
Symbol 307 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 6
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 321 MovieClip [Diving Zebra] Frame 1
#initclip 13
Object.registerClass("Diving Zebra", DivingZebra);
#endinitclip
stop();
Symbol 322 MovieClip Frame 1
stop();
Instance of Symbol 278 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(3);
};
}
Instance of Symbol 280 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(2);
};
}
Instance of Symbol 282 MovieClip in Symbol 322 MovieClip Frame 1
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.gotoAndStop("menu");
};
}
Instance of Symbol 287 MovieClip in Symbol 322 MovieClip Frame 2
onClipEvent (load) {
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_parent.gotoAndStop(1);
};
}
Symbol 326 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 361 MovieClip Frame 1
stop();
Instance of Symbol 88 MovieClip in Symbol 361 MovieClip Frame 1
onClipEvent (load) {
send_score = new LoadVars();
send_score.x = ab20.encodeNum(Number(_root.final_score) * 100);
if (_root.game == "main game") {
send_score.c = 642;
send_score.v = "WQEVGY";
} else if (_root.game == "free diving") {
send_score.c = 643;
send_score.v = "GVBXTM";
} else if (_root.game == "deep sea diving") {
send_score.c = 644;
send_score.v = "OYQLGL";
}
send_score.onLoad = function (success) {
if (success) {
_root.scoretable.__top10_send__.sendAndLoad(_root.scoretable.__top10_url_1__ + _root.scoretable.__top10_url_2__, _root.scoretable.__top10_receive__, "POST");
} else {
_root.scoretable.gotoAndStop(3);
}
};
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
_root.scoretable.gotoAndStop(1);
send_score.z = _parent.name_in.text;
_parent.name_var = _parent.name_in.text;
send_score.sendAndLoad("http://armorbot.com/s_b", send_score, "POST");
_parent.gotoAndStop(2);
};
}
Symbol 361 MovieClip Frame 2
name_text.text = name_var;
Symbol 364 MovieClip Frame 1
stopAllSounds();
Symbol 364 MovieClip Frame 2
stop();