Combined Code
frame 2 {
function __com_mochibot_new__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot_new__('671e600d', this, 10301, true);
stop();
}
movieClip 2 timer {
frame 300 {
_root.gotoAndPlay(3);
}
}
movieClip 5 {
}
movieClip 6 {
}
movieClip 9 {
}
movieClip 10 buttonPreloader {
frame 1 {
stop();
}
}
movieClip 11 preLoader {
#initclip
Object.registerClass('preLoader', preLoader);
#endinitclip
}
movieClip 948 __Packages.preLoader {
#initclip
if (!_global.preLoader) {
var v1 = function () {
super();
};
_global.preLoader = v1;
_global.preLoader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.PreLoader.ButtonPreloader.onPress = function () {
this.getURL('http://www.bgames.com/?utm_source=sponsor_game&utm_medium=loading&utm_campaign=johnny-deep', 'blank');
};
};
v2.onEnterFrame = function () {
if (_root.PreLoader.ButtonPreloader.hitTest(_root._xmouse, _root._ymouse)) {
_root.PreLoader.ButtonPreloader.gotoAndPlay(2);
}
};
ASSetPropFlags(_global.preLoader.prototype, null, 1);
}
#endinitclip
}
movieClip 949 __Packages.mochi.as2.MochiSync {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSync) {
var v1 = function () {
this._syncContainer = {};
};
mochi.as2.MochiSync = v1;
var v2 = v1.prototype;
v2.getProp = function (name) {
return this._syncContainer[name];
};
v2.setProp = function (name, value) {
if (this._syncContainer[name] == value) {
return undefined;
}
this._syncContainer[name] = value;
mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value});
};
v2.triggerEvent = function (eventType, args) {
switch (eventType) {
case mochi.as2.MochiSync.SYNC_REQUEST:
mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer);
break;
case mochi.as2.MochiSync.SYNC_PROPERTY:
this._syncContainer[args.name] = args.value;
}
};
v1.SYNC_REQUEST = 'SyncRequest';
v1.SYNC_PROPERTY = 'UpdateProperty';
ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1);
}
#endinitclip
}
movieClip 950 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.8 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case 'sync':
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.updateCopy = function (args) {
mochi.as2.MochiServices.send('coins_updateCopy', args, null, null);
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ['NotConnected']);
}
if (args.options != null && args.options.onError != null) {
args.options.onError.apply(null, ['NotConnected']);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = 'NotConnected';
if (callbackObject != null && typeof callbackMethod == 'string') {
callbackObject[callbackMethod](args);
} else {
if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
case 'b':
case 'c':
break;
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1.servicesSync = new mochi.as2.MochiSync();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 951 __Packages.mochi.as2.MochiEventDispatcher {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEventDispatcher) {
var v1 = function () {
this.eventTable = {};
};
mochi.as2.MochiEventDispatcher = v1;
var v2 = v1.prototype;
v2.buildDelegate = function (thisObject, thatObject) {
var v2 = {'thisObject': thisObject, 'thatObject': thatObject};
if (thatObject != undefined) {
var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject;
v2.delegate = function (args) {
funct.call(thisObject, args);
};
return v2;
}
v2.delegate = thisObject;
return v2;
};
v2.compareDelegate = function (d_A, d_B) {
if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) {
return false;
}
return true;
};
v2.addEventListener = function (event, thisObject, thatObject) {
this.removeEventListener(event, thisObject, thatObject);
this.eventTable[event].push(this.buildDelegate(thisObject, thatObject));
};
v2.removeEventListener = function (event, thisObject, thatObject) {
var v3 = this.buildDelegate(thisObject, thatObject);
if (this.eventTable[event] == undefined) {
this.eventTable[event] = [];
return undefined;
}
for (var v4 in this.eventTable[event]) {
if (!this.compareDelegate(this.eventTable[event][v4], v3)) {
continue;
}
this.eventTable[event].splice(Number(v4), 1);
}
};
v2.triggerEvent = function (event, args) {
if (this.eventTable[event] == undefined) {
return undefined;
}
for (var v4 in this.eventTable[event]) {
this.eventTable[event][v4].delegate(args);
}
};
ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 952 __Packages.mochi.as2.MochiEvents {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEvents) {
var v1 = function () {};
mochi.as2.MochiEvents = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.setNotifications = function (clip, style) {
var v2 = {};
for (var v3 in style) {
v2[v3] = style[v3];
}
v2.clip = clip;
mochi.as2.MochiServices.send('events_setNotifications', v2, null, null);
};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.startPlay = function (tag) {
if (tag == undefined) {
tag = 'gameplay';
}
mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null);
};
v1.endPlay = function () {
mochi.as2.MochiServices.send('events_clearRoundID', null, null, null);
};
v1.trackEvent = function (tag, value) {
mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null);
};
v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived';
v1.ALIGN_TOP_LEFT = 'ALIGN_TL';
v1.ALIGN_TOP = 'ALIGN_T';
v1.ALIGN_TOP_RIGHT = 'ALIGN_TR';
v1.ALIGN_LEFT = 'ALIGN_L';
v1.ALIGN_CENTER = 'ALIGN_C';
v1.ALIGN_RIGHT = 'ALIGN_R';
v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL';
v1.ALIGN_BOTTOM = 'ALIGN_B';
v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR';
v1.FORMAT_SHORT = 'ShortForm';
v1.FORMAT_LONG = 'LongForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 953 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('coins_hideLoginWidget');
};
v1.requestLogin = function () {
mochi.as2.MochiServices.send('coins_requestLogin');
};
v1.getUserInfo = function () {
mochi.as2.MochiServices.send('coins_getUserInfo');
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('coins_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 954 __Packages.healthBonus {
#initclip
if (!_global.healthBonus) {
var v1 = function () {
super();
};
_global.healthBonus = v1;
_global.healthBonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (this.hitTest(_root.gamePlay.ManSwim) and _root.over == 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
var v3 = _root.attachMovie('plusHealth', 'plusHealth' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 107;
v3._y = 34;
this.removeMovieClip();
_root.gamePlay.bonusHealth();
}
};
ASSetPropFlags(_global.healthBonus.prototype, null, 1);
}
#endinitclip
}
movieClip 955 __Packages.moneyBonus500 {
#initclip
if (!_global.moneyBonus500) {
var v1 = function () {
super();
};
_global.moneyBonus500 = v1;
_global.moneyBonus500 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (this.hitTest(_root.gamePlay.ManSwim) and _root.over == 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('yahoo');
_root.soundFX.start();
}
var v3 = _root.attachMovie('plusMoney500', 'plusMoney500' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 240;
v3._y = 143;
_root.gamePlay.bonusMoney(500);
_root.goldCollect += 1;
if (_root.goldCollect < 21) {
_root.GoldAchievement.gotoAndPlay(2);
}
this.removeMovieClip();
}
};
ASSetPropFlags(_global.moneyBonus500.prototype, null, 1);
}
#endinitclip
}
movieClip 956 __Packages.oxygenBonus {
#initclip
if (!_global.oxygenBonus) {
var v1 = function () {
super();
};
_global.oxygenBonus = v1;
_global.oxygenBonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (this.hitTest(_root.gamePlay.ManSwim) and _root.over == 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('breath');
_root.soundFX.start();
}
var v3 = _root.attachMovie('plusOxygen', 'plusOxygen' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 273;
v3._y = 34;
this.removeMovieClip();
_root.gamePlay.bonusOxygen();
}
};
ASSetPropFlags(_global.oxygenBonus.prototype, null, 1);
}
#endinitclip
}
movieClip 957 __Packages.weaponBonus {
#initclip
if (!_global.weaponBonus) {
var v1 = function () {
super();
};
_global.weaponBonus = v1;
_global.weaponBonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (this.hitTest(_root.gamePlay.ManSwim) and _root.over == 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('reload');
_root.soundFX.start();
}
var v3 = _root.attachMovie('plusWeapon', 'plusWeapon' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 240;
v3._y = 143;
this.removeMovieClip();
_root.gamePlay.bonusWeapon();
}
};
ASSetPropFlags(_global.weaponBonus.prototype, null, 1);
}
#endinitclip
}
movieClip 958 __Packages.jellyfishBlue {
#initclip
if (!_global.jellyfishBlue) {
var v1 = function () {
super();
};
_global.jellyfishBlue = v1;
_global.jellyfishBlue extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
this.left = Math.random();
if (this.left > 0.5) {
this._x = Math.random() * 200 + 800;
this._y = Math.random() * 1000;
this.speed = -(_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.3);
this.velocity = this.speed;
if (this._y <= 330) {
this._yscale = 60;
this._xscale = -this._yscale;
}
if (this._y > 330 and this._y <= 670) {
this._yscale = 70;
this._xscale = -this._yscale;
}
if (this._y > 670) {
this._yscale = 80;
this._xscale = -this._yscale;
}
}
if (this.left <= 0.5) {
this._x = Math.random() * 100 - 200;
this._y = Math.random() * 1000;
this.speed = (_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.3);
this.velocity = this.speed;
if (this._y <= 330) {
this._yscale = 60;
this._xscale = this._yscale;
}
if (this._y > 330 and this._y <= 670) {
this._yscale = 70;
this._xscale = this._yscale;
}
if (this._y > 670) {
this._yscale = 80;
this._xscale = this._yscale;
}
}
this.explode = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
if (_root.mute == 0) {
_root.backPlanMusic.attachSound('kill');
_root.backPlanMusic.start();
}
_root.jellyBlueKill += 1;
if (_root.jellyBlueKill < 16) {
_root.jellyBlue.gotoAndPlay(2);
}
}
}
}
if (this.explode > 0) {
this._alpha -= 5;
this._xscale += 2;
this._yscale += 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
this._x += this.velocity;
if (this.speed > 0) {
this.velocity -= 0.1;
if (this.velocity <= 0) {
this.gotoAndPlay(1);
this.velocity = this.speed;
}
}
if (this.speed <= 0) {
this.velocity += 0.1;
if (this.velocity >= 0) {
this.gotoAndPlay(1);
this.velocity = this.speed;
}
}
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
_root.gamePlay.updateHealth(80);
}
}
}
};
ASSetPropFlags(_global.jellyfishBlue.prototype, null, 1);
}
#endinitclip
}
movieClip 959 __Packages.angerFish {
#initclip
if (!_global.angerFish) {
var v1 = function () {
super();
};
_global.angerFish = v1;
_global.angerFish extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
this.left = Math.random();
if (this.left > 0.5) {
this._x = Math.random() * 200 + 800;
this._y = Math.random() * 1000;
this.speed = -(_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 65 * (Math.random() + 0.5);
this._xscale = -this._yscale;
}
if (this.left <= 0.5) {
this._x = Math.random() * 100 - 200;
this._y = Math.random() * 1000;
this.speed = (_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 65 * (Math.random() + 0.5);
this._xscale = this._yscale;
}
this.explode = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
this.gotoAndPlay(51);
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
if (_root.mute == 0) {
_root.backPlanMusic.attachSound('kill');
_root.backPlanMusic.start();
}
_root.angerFishKill += 1;
if (_root.angerFishKill < 16) {
_root.anger.gotoAndPlay(2);
}
}
}
}
this._x += this.speed;
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
_root.gamePlay.updateHealth(80);
}
}
}
};
ASSetPropFlags(_global.angerFish.prototype, null, 1);
}
#endinitclip
}
movieClip 960 __Packages.paused {
#initclip
if (!_global.paused) {
var v1 = function () {
super();
};
_global.paused = v1;
_global.paused extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.music = 0;
this.mute = 0;
_root.inst = 0;
_root.pausedScreen.PlayButton.onPress = function () {
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
_root.pause = 0;
_root.pausedScreen._visible = false;
_root.inst = 0;
};
_root.pausedScreen.mainMenuButton.onPress = function () {
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
_root.backPlanMusic.stop();
_root.gotoAndPlay('menuFrame');
};
_root.pausedScreen.MoreGamesButton.onPress = function () {
this.getURL('http://www.bgames.com/?utm_source=sponsor_game&utm_medium=in-game-more-games&utm_campaign=johnny-deep', 'blank');
};
_root.pausedScreen.Instructions.onPress = function () {
if (_root.inst == 0) {
_root.inst = 1;
var v2 = _root.pausedScreen.attachMovie('InGameInststructions', 'InGameInststructions' + _root.pausedScreen.getNextHighestDepth(), _root.pausedScreen.getNextHighestDepth());
v2._x = 90;
v2._y = 390;
}
};
_root.pausedScreen.muteButton.onPress = function () {
_root.soundFX.attachSound('click');
_root.soundFX.start();
this.mute = _root.mute;
if (this.mute == 0) {
_root.mute = 1;
_root.pausedScreen.muteButton.gotoAndStop(2);
}
if (this.mute == 1) {
_root.mute = 0;
_root.pausedScreen.muteButton.gotoAndStop(1);
}
};
_root.pausedScreen.musicButton.onPress = function () {
this.music = _root.music;
if (this.music == 0) {
_root.music = 1;
_root.pausedScreen.musicButton.gotoAndStop(2);
_root.backPlanMusic.stop();
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
}
if (this.music == 1) {
_root.music = 0;
_root.pausedScreen.musicButton.gotoAndStop(1);
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
_root.backPlanMusic.attachSound('backPlanMusic');
_root.backPlanMusic.start(0, 1000);
}
};
};
v2.onEnterFrame = function () {
if (_root.pausedScreen.PlayButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.pausedScreen.PlayButton.gotoAndPlay(2);
}
if (_root.pausedScreen.MoreGamesButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.pausedScreen.MoreGamesButton.gotoAndPlay(2);
}
if (_root.pausedScreen.Instructions.hitTest(_root._xmouse, _root._ymouse)) {
_root.pausedScreen.Instructions.gotoAndPlay(2);
}
if (_root.pausedScreen.mainMenuButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.pausedScreen.mainMenuButton.gotoAndPlay(2);
}
};
ASSetPropFlags(_global.paused.prototype, null, 1);
}
#endinitclip
}
movieClip 961 __Packages.inGameInst {
#initclip
if (!_global.inGameInst) {
var v1 = function () {
super();
};
_global.inGameInst = v1;
_global.inGameInst extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.InGameInstPressed = false;
_root.InGameInst.GameInst.closeInstButton.onPress = function () {
_root.InGameInst.gotoAndPlay(22);
_root.InGameInstPressed = true;
};
if (_root.nudeDivingAchievement > 0) {
_root.InGameInst.gotoAndStop(42);
}
};
v2.onEnterFrame = function () {
this.cacheAsBitmap = true;
if (_root.nudeDivingAchievement == 1 and _root.InGameInstPressed == false) {
_root.InGameInst.gotoAndPlay(22);
}
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.inGameInst.prototype, null, 1);
}
#endinitclip
}
movieClip 962 __Packages.blueFader {
#initclip
if (!_global.blueFader) {
var v1 = function () {
super();
};
_global.blueFader = v1;
_global.blueFader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 0;
this.alpha = 0;
};
v2.onEnterFrame = function () {
this.alpha += 0.25;
if (this.alpha >= 100) {
this.alpha = 100;
}
this._alpha = this.alpha;
};
ASSetPropFlags(_global.blueFader.prototype, null, 1);
}
#endinitclip
}
movieClip 963 __Packages.menuFader {
#initclip
if (!_global.menuFader) {
var v1 = function () {
super();
};
_global.menuFader = v1;
_global.menuFader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 0;
this.alpha = 0;
};
v2.onEnterFrame = function () {
this.alpha += 0.05;
if (this.alpha >= 50) {
this.alpha = 50;
}
this._alpha = this.alpha;
};
ASSetPropFlags(_global.menuFader.prototype, null, 1);
}
#endinitclip
}
movieClip 964 __Packages.shopBorder {
#initclip
if (!_global.shopBorder) {
var v1 = function () {
super();
};
_global.shopBorder = v1;
_global.shopBorder extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.oxygen = 0;
};
v2.onEnterFrame = function () {
this.oxygen += 1;
if (this.oxygen > 3) {
this.attachMovie('oxygen', 'oxygen' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.oxygen = 0;
}
this._y -= 10;
if (this._y < -800) {
this._y += 1555;
}
};
ASSetPropFlags(_global.shopBorder.prototype, null, 1);
}
#endinitclip
}
movieClip 965 __Packages.plus {
#initclip
if (!_global.plus) {
var v1 = function () {
super();
};
_global.plus = v1;
_global.plus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 100;
this.alpha = 100;
};
v2.onEnterFrame = function () {
this.alpha -= 2;
if (this.alpha <= 0) {
this.removeMovieClip();
this.alpha = 0;
}
this._alpha = this.alpha;
};
ASSetPropFlags(_global.plus.prototype, null, 1);
}
#endinitclip
}
movieClip 966 __Packages.shopSea {
#initclip
if (!_global.shopSea) {
var v1 = function () {
super();
};
_global.shopSea = v1;
_global.shopSea extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
this.attachMovie('oxygen', 'oxygen' + this.getNextHighestDepth(), this.getNextHighestDepth());
this._y -= 5;
if (this._y < -1200) {
this._y += 1995;
}
};
ASSetPropFlags(_global.shopSea.prototype, null, 1);
}
#endinitclip
}
movieClip 967 __Packages.data {
#initclip
if (!_global.data) {
var v1 = function () {
super();
};
_global.data = v1;
_global.data extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.clearAllData == 1) {
this.gotoAndPlay(1);
}
};
ASSetPropFlags(_global.data.prototype, null, 1);
}
#endinitclip
}
movieClip 968 __Packages.skat {
#initclip
if (!_global.skat) {
var v1 = function () {
super();
};
_global.skat = v1;
_global.skat extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
this.left = Math.random();
if (this.left > 0.5) {
this._x = Math.random() * 200 + 800;
this._y = Math.random() * 1000;
this.speed = -(_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 70 * (Math.random() + 0.5);
this._xscale = -this._yscale;
}
if (this.left <= 0.5) {
this._x = Math.random() * 100 - 200;
this._y = Math.random() * 1000;
this.speed = (_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 70 * (Math.random() + 0.5);
this._xscale = this._yscale;
}
this.explode = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
this.gotoAndPlay(61);
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
if (_root.mute == 0) {
_root.backPlanMusic.attachSound('kill');
_root.backPlanMusic.start();
}
_root.skatKill += 1;
if (_root.skatKill < 11) {
_root.Skat.gotoAndPlay(2);
}
}
}
}
this._x += this.speed;
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
_root.gamePlay.updateHealth(70);
}
}
}
};
ASSetPropFlags(_global.skat.prototype, null, 1);
}
#endinitclip
}
movieClip 969 __Packages.jellyfish {
#initclip
if (!_global.jellyfish) {
var v1 = function () {
super();
};
_global.jellyfish = v1;
_global.jellyfish extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
this.left = Math.random();
if (this.left > 0.5) {
this._x = Math.random() * 200 + 800;
this._y = Math.random() * 1000;
this.speed = -(_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.3);
this.velocity = this.speed;
if (this._y <= 330) {
this._yscale = 60;
this._xscale = -this._yscale;
}
if (this._y > 330 and this._y <= 670) {
this._yscale = 70;
this._xscale = -this._yscale;
}
if (this._y > 670) {
this._yscale = 80;
this._xscale = -this._yscale;
}
}
if (this.left <= 0.5) {
this._x = Math.random() * 100 - 200;
this._y = Math.random() * 1000;
this.speed = (_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.3);
this.velocity = this.speed;
if (this._y <= 330) {
this._yscale = 60;
this._xscale = this._yscale;
}
if (this._y > 330 and this._y <= 670) {
this._yscale = 70;
this._xscale = this._yscale;
}
if (this._y > 670) {
this._yscale = 80;
this._xscale = this._yscale;
}
}
this.explode = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
if (_root.mute == 0) {
_root.backPlanMusic.attachSound('kill');
_root.backPlanMusic.start();
}
_root.jellyKill += 1;
if (_root.jellyKill < 6) {
_root.jelly.gotoAndPlay(2);
}
}
}
}
if (this.explode > 0) {
this._alpha -= 5;
this._xscale += 2;
this._yscale += 2;
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
this._x += this.velocity;
if (this.speed > 0) {
this.velocity -= 0.1;
if (this.velocity <= 0) {
this.gotoAndPlay(1);
this.velocity = this.speed;
}
}
if (this.speed <= 0) {
this.velocity += 0.1;
if (this.velocity >= 0) {
this.gotoAndPlay(1);
this.velocity = this.speed;
}
}
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
_root.gamePlay.updateHealth(25);
}
}
}
};
ASSetPropFlags(_global.jellyfish.prototype, null, 1);
}
#endinitclip
}
movieClip 970 __Packages.blood {
#initclip
if (!_global.blood) {
var v1 = function () {
super();
};
_global.blood = v1;
_global.blood extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.alpha = 100;
this.angle = 0;
this._xscale = Math.random() * 100;
this._yscale = this._xscale;
this.ampli = Math.random() * 5 + 10;
this.speed = Math.random() * 3 + 1;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this._xscale -= 0.1 / this.speed;
this._yscale = this._xscale;
this._y -= this.speed;
this._x = Math.sin(this.angle) * this.ampli + 850;
this.angle += 0.1;
if (this.angle > 6.283185307179586) {
this.angle = 0;
}
this.alpha -= 2;
if (this.alpha <= 0) {
this.alpha = 0;
this.removeMovieClip;
}
this._alpha = this.alpha;
if (this._y < 10) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.blood.prototype, null, 1);
}
#endinitclip
}
movieClip 971 __Packages.introFader {
#initclip
if (!_global.introFader) {
var v1 = function () {
super();
};
_global.introFader = v1;
_global.introFader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._x = 0;
this._y = 0;
this.alpha = 100;
};
v2.onEnterFrame = function () {
this._alpha = this.alpha;
if (this.alpha >= 2) {
this.alpha -= 2;
}
if (this.alpha == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.introFader.prototype, null, 1);
}
#endinitclip
}
movieClip 972 __Packages.outroFader {
#initclip
if (!_global.outroFader) {
var v1 = function () {
super();
};
_global.outroFader = v1;
_global.outroFader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 0;
this.alpha = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.alpha += 2;
if (this.alpha >= 100) {
this.alpha = 100;
this.removeMovieClip();
}
this._alpha = this.alpha;
}
};
ASSetPropFlags(_global.outroFader.prototype, null, 1);
}
#endinitclip
}
movieClip 973 __Packages.shark {
#initclip
if (!_global.shark) {
var v1 = function () {
super();
};
_global.shark = v1;
_global.shark extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
this.left = Math.random();
if (this.left > 0.5) {
this._x = Math.random() * 200 + 800;
this._y = Math.random() * 1000;
this.speed = -(_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 70 * (Math.random() + 0.5);
this._xscale = -this._yscale;
}
if (this.left <= 0.5) {
this._x = Math.random() * 100 - 200;
this._y = Math.random() * 1000;
this.speed = (_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 70 * (Math.random() + 0.5);
this._xscale = this._yscale;
}
this.explode = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
this.gotoAndPlay(51);
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
if (_root.mute == 0) {
_root.backPlanMusic.attachSound('kill');
_root.backPlanMusic.start();
}
_root.sharkBlackKill += 1;
if (_root.sharkBlackKill < 11) {
_root.sharkBlack.gotoAndPlay(2);
}
}
}
}
this._x += this.speed;
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
_root.gamePlay.updateHealth(50);
}
}
}
};
ASSetPropFlags(_global.shark.prototype, null, 1);
}
#endinitclip
}
movieClip 974 __Packages.sharkWhite {
#initclip
if (!_global.sharkWhite) {
var v1 = function () {
super();
};
_global.sharkWhite = v1;
_global.sharkWhite extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
this.left = Math.random();
if (this.left > 0.5) {
this._x = Math.random() * 200 + 800;
this._y = Math.random() * 1000;
this.speed = -(_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 70 * (Math.random() + 0.5);
this._xscale = -this._yscale;
}
if (this.left <= 0.5) {
this._x = Math.random() * 100 - 200;
this._y = Math.random() * 1000;
this.speed = (_root.manVelocityMax / _root.accelerate) * (Math.random() + 0.15);
this._yscale = 70 * (Math.random() + 0.5);
this._xscale = this._yscale;
}
this.explode = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
this.gotoAndPlay(51);
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
if (_root.mute == 0) {
_root.backPlanMusic.attachSound('kill');
_root.backPlanMusic.start();
}
_root.sharkWhiteKill += 1;
if (_root.sharkWhiteKill < 11) {
_root.sharkWhite.gotoAndPlay(2);
}
}
}
}
this._x += this.speed;
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
_root.gamePlay.updateHealth(60);
}
}
}
};
ASSetPropFlags(_global.sharkWhite.prototype, null, 1);
}
#endinitclip
}
movieClip 975 __Packages.archer {
#initclip
if (!_global.archer) {
var v1 = function () {
super();
};
_global.archer = v1;
_global.archer extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.speed = _root.manVelocityMax * 2;
};
v2.onEnterFrame = function () {
this._y += this.speed;
if (this._y > 900 or _root.archerRemover == 1) {
_root.archerRemover = 0;
this.removeMovieClip();
}
};
ASSetPropFlags(_global.archer.prototype, null, 1);
}
#endinitclip
}
movieClip 976 __Packages.moneyBonus250 {
#initclip
if (!_global.moneyBonus250) {
var v1 = function () {
super();
};
_global.moneyBonus250 = v1;
_global.moneyBonus250 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (this.hitTest(_root.gamePlay.ManSwim) and _root.over == 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('yahoo');
_root.soundFX.start();
}
var v3 = _root.attachMovie('plusMoney250', 'plusMoney250' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 240;
v3._y = 143;
_root.gamePlay.bonusMoney(250);
_root.goldCollect += 1;
if (_root.goldCollect < 21) {
_root.GoldAchievement.gotoAndPlay(2);
}
this.removeMovieClip();
}
};
ASSetPropFlags(_global.moneyBonus250.prototype, null, 1);
}
#endinitclip
}
movieClip 977 __Packages.moneyBonus100 {
#initclip
if (!_global.moneyBonus100) {
var v1 = function () {
super();
};
_global.moneyBonus100 = v1;
_global.moneyBonus100 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (this.hitTest(_root.gamePlay.ManSwim) and _root.over == 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('yahoo');
_root.soundFX.start();
}
var v3 = _root.attachMovie('plusMoney100', 'plusMoney100' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 240;
v3._y = 143;
_root.gamePlay.bonusMoney(100);
_root.goldCollect += 1;
if (_root.goldCollect < 21) {
_root.GoldAchievement.gotoAndPlay(2);
}
this.removeMovieClip();
}
};
ASSetPropFlags(_global.moneyBonus100.prototype, null, 1);
}
#endinitclip
}
movieClip 978 __Packages.fader {
#initclip
if (!_global.fader) {
var v1 = function () {
super();
};
_global.fader = v1;
_global.fader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.alpha = 0;
};
v2.onEnterFrame = function () {
this.alpha = Math.round(_root.deep / 500);
if (this.alpha >= 100) {
this.alpha = 100;
}
this._alpha = this.alpha;
};
ASSetPropFlags(_global.fader.prototype, null, 1);
}
#endinitclip
}
movieClip 979 __Packages.waterAlpha {
#initclip
if (!_global.waterAlpha) {
var v1 = function () {
super();
};
_global.waterAlpha = v1;
_global.waterAlpha extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.alpha = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.alpha = Math.round(_root.deep / 6);
if (this.alpha >= 100) {
this.alpha = 100;
}
this._alpha = this.alpha;
}
};
ASSetPropFlags(_global.waterAlpha.prototype, null, 1);
}
#endinitclip
}
movieClip 980 __Packages.bombBlock {
#initclip
if (!_global.bombBlock) {
var v1 = function () {
super();
};
_global.bombBlock = v1;
_global.bombBlock extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
var v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
if (_root.deep > 50000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 60000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 70000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 80000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 90000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 100000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 110000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 120000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
if (_root.deep > 130000) {
v3 = this.attachMovie('waterBomb', 'waterBomb' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 100;
v3._y = Math.random() * 1000;
}
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
this.manVelocity = _root.V;
if (this._y < -1200) {
this.removeMovieClip();
}
if (Key.isDown(39)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.bombBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 981 __Packages.sharkBlock {
#initclip
if (!_global.sharkBlock) {
var v1 = function () {
super();
};
_global.sharkBlock = v1;
_global.sharkBlock extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
this.i = Math.random();
if (_root.deep <= 20000) {
var v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 20000 and _root.deep <= 30000) {
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v7 = this.attachMovie('jellyfish', 'jellyfish' + this.getNextHighestDepth(), this.getNextHighestDepth());
var v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 30000 and _root.deep <= 45000) {
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 45000 and _root.deep <= 55000) {
var v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 55000 and _root.deep <= 70000) {
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 70000 and _root.deep <= 80000) {
var v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 80000 and _root.deep <= 95000) {
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 95000 and _root.deep <= 105000) {
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
var v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 105000 and _root.deep <= 120000) {
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep > 120000 and _root.deep <= 130000) {
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v8 = this.attachMovie('jellyfishBlue', 'jellyfishBlue' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
var v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
if (_root.deep >= 130000) {
v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v6 = this.attachMovie('angerFish', 'angerFish' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5 = this.attachMovie('sharkWhite', 'sharkWhite' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4 = this.attachMovie('skat', 'skat' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3 = this.attachMovie('shark', 'shark' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
this.manVelocity = _root.V;
if (this._y < -1200) {
this.removeMovieClip();
}
if (Key.isDown(39)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.sharkBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 982 __Packages.archerBlock {
#initclip
if (!_global.archerBlock) {
var v1 = function () {
super();
};
_global.archerBlock = v1;
_global.archerBlock extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
if (_root.weapon == 3) {
var v3 = this.attachMovie('archer', 'archer' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = 0;
v3._y = 0;
_root.gamePlay.archerMassive.push(v3);
}
if (_root.weapon == 5) {
v3 = this.attachMovie('archer', 'archer' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = 1.8;
v3._y = 0;
_root.gamePlay.archerMassive.push(v3);
v3 = this.attachMovie('archer', 'archer' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = -1.8;
v3._y = 0;
_root.gamePlay.archerMassive.push(v3);
}
};
v2.onEnterFrame = function () {
this._y -= this.manVelocity;
this.manVelocity = _root.V;
if (this._y < -1200) {
this.removeMovieClip();
}
if (Key.isDown(39)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
};
ASSetPropFlags(_global.archerBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 983 __Packages.bonusBlock {
#initclip
if (!_global.bonusBlock) {
var v1 = function () {
super();
};
_global.bonusBlock = v1;
_global.bonusBlock extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
this.i = Math.random();
if (this.i >= 0 and this.i < 0.325) {
var v6 = this.attachMovie('healthBonus', 'healthBonus' + this.getNextHighestDepth(), this.getNextHighestDepth());
v6._x = Math.random() * 600 + 150;
v6._y = Math.random() * 1200;
}
if (this.i >= 0.325 and this.i < 0.65) {
var v4 = this.attachMovie('oxygenBonus', 'oxygenBonus' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4._x = Math.random() * 600 + 150;
v4._y = Math.random() * 1200;
}
if (this.i < 0.3) {
var v5 = this.attachMovie('moneyBonus100', 'moneyBonus100' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5._x = Math.random() * 600 + 150;
v5._y = Math.random() * 1200;
}
if (this.i >= 0.4 and this.i < 0.55) {
v5 = this.attachMovie('moneyBonus500', 'moneyBonus500' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5._x = Math.random() * 600 + 150;
v5._y = Math.random() * 1200;
}
if (this.i >= 0.65 and this.i < 0.9) {
v5 = this.attachMovie('moneyBonus250', 'moneyBonus250' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5._x = Math.random() * 600 + 150;
v5._y = Math.random() * 1200;
}
if (_root.weapon > 1 and this.i > 0.5) {
var v3 = this.attachMovie('weaponBonus', 'weaponBonus' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = Math.random() * 600 + 150;
v3._y = Math.random() * 1200;
}
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
this.manVelocity = _root.V;
if (this._y < -1500) {
this.removeMovieClip();
}
if (Key.isDown(39)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.bonusBlock.prototype, null, 1);
}
#endinitclip
}
movieClip 984 __Packages.water {
#initclip
if (!_global.water) {
var v1 = function () {
super();
};
_global.water = v1;
_global.water extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
this.manVelocity = _root.V;
_root.waterY = this._y;
if (this._y < -1300) {
this.removeMovieClip();
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.water.prototype, null, 1);
}
#endinitclip
}
movieClip 985 __Packages.borderRight {
#initclip
if (!_global.borderRight) {
var v1 = function () {
super();
};
_global.borderRight = v1;
_global.borderRight extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
this.oxygen = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
_root.borderRightX = this._x;
this.oxygen += 1;
if (this.oxygen > 3) {
this.attachMovie('oxygen', 'oxygen' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.oxygen = 0;
}
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
if (this.manVelocity > 0) {
_root.deep += 2 * _root.accelerate;
_root.money += _root.accelerate / 20;
_root.bombTimer += 1;
_root.bonusTimer += 1;
}
this.manVelocity -= 0.1;
if (this.manVelocity <= 0) {
this.manVelocity = 0;
}
_root.V = this.manVelocity;
if (this._y < -850) {
this._y += 1540;
}
if (this._x <= 860) {
this._x = 860;
}
if (Key.isDown(39)) {
if (_root.borderLeftX < 570) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderLeftX < 570) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
_root.gamePlay.ManSwim.gotoAndPlay(2);
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.borderRight.prototype, null, 1);
}
#endinitclip
}
movieClip 986 __Packages.borderLeft {
#initclip
if (!_global.borderLeft) {
var v1 = function () {
super();
};
_global.borderLeft = v1;
_global.borderLeft extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.cacheAsBitmap = true;
_root.borderLeftX = this._x;
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
this.manVelocity = _root.V;
if (this._y < -850) {
this._y += 1540;
}
if (this._x >= 570) {
this._x = 570;
}
if (Key.isDown(39)) {
if (_root.borderRightX > 860) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderRightX > 860) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.borderLeft.prototype, null, 1);
}
#endinitclip
}
movieClip 987 __Packages.manSwim {
#initclip
if (!_global.manSwim) {
var v1 = function () {
super();
};
_global.manSwim = v1;
_global.manSwim extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manRotate = 0;
this.pressControl = 0;
this.o2Timer = 0;
_root.soundFX = new Sound();
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.o2Timer += 1;
if (this.o2Timer == 100 and _root.deep > 0 and _root.mute == 0) {
_root.soundFX.attachSound('oxygenSound');
_root.soundFX.start();
}
if (this.o2Timer > 200) {
this.o2Timer = 0;
}
if (this.o2Timer > 100 and _root.deep > 200) {
var v3 = _root.gamePlay.attachMovie('o2', 'o2' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = 850;
v3._y = this._y + 50;
}
_root.blodTimer -= 1;
if (_root.blodTimer <= 0) {
_root.blodTimer = 0;
}
if (_root.blodTimer > 0) {
var v4 = _root.gamePlay.attachMovie('blood', 'blood' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v4._x = 850;
v4._y = this._y + 50;
}
this._rotation = this.manRotate;
this.pressControl = this.manRotate;
if (Key.isDown(37)) {
this.manRotate += _root.accelerate * 0.25;
if (this.manRotate > 10) {
this.manRotate -= _root.accelerate * 0.25;
}
}
if (Key.isDown(39)) {
this.manRotate -= _root.accelerate * 0.25;
if (this.manRotate < -10) {
this.manRotate += _root.accelerate * 0.25;
}
}
if (this.pressControl == this.manRotate) {
if (this.manRotate < 0) {
this.manRotate += _root.accelerate * 0.25;
}
if (this.manRotate > 0) {
this.manRotate -= _root.accelerate * 0.25;
}
}
}
};
ASSetPropFlags(_global.manSwim.prototype, null, 1);
}
#endinitclip
}
movieClip 988 __Packages.o2 {
#initclip
if (!_global.o2) {
var v1 = function () {
super();
};
_global.o2 = v1;
_global.o2 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.angle = 0;
this._xscale = Math.random() * 100;
this._yscale = this._xscale;
this.ampli = Math.random() * 5 + 10;
this.speed = Math.random() * 3 + 1;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this._xscale -= 0.5 / this.speed;
this._yscale = this._xscale;
this._y -= this.speed;
this._x = Math.sin(this.angle) * this.ampli + 850;
this.angle += 0.1;
if (this.angle > 6.283185307179586) {
this.angle = 0;
}
if (this._y < -50) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.o2.prototype, null, 1);
}
#endinitclip
}
movieClip 989 __Packages.oxygen {
#initclip
if (!_global.oxygen) {
var v1 = function () {
super();
};
_global.oxygen = v1;
_global.oxygen extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._x = -1 * Math.random() * 850;
this.firstX = this._x;
this._y = 800;
this.angle = 0;
this._xscale = Math.random() * 80;
this._yscale = this._xscale;
this.ampli = Math.random() * 5 + 20;
this.speed = Math.random() * 3 + 1;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this._xscale -= 0.5 / this.speed;
if (this._xscale <= 0) {
this._xscale = 0;
}
this._yscale = this._xscale;
this._y -= this.speed;
this._x = Math.sin(this.angle) * this.ampli + this.firstX;
this.angle += 0.1;
if (this.angle > 6.283185307179586) {
this.angle = 0;
}
if (this._y < -50) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.oxygen.prototype, null, 1);
}
#endinitclip
}
movieClip 990 __Packages.waterBomb {
#initclip
if (!_global.waterBomb) {
var v1 = function () {
super();
};
_global.waterBomb = v1;
_global.waterBomb extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.speed = Math.random() * 2 - 1;
this.explode = 0;
_root.soundFX = new Sound();
this.soundNumber = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
for (var v3 in _root.gamePlay.archerMassive) {
if (this.hitTest(_root.gamePlay.archerMassive[v3])) {
_root.archerRemover = 1;
this.explode += 1;
if (this.explode == 1) {
this.gotoAndPlay(2);
_root.gamePlay.boom();
if (_root.mute == 0) {
_root.soundFX.attachSound('explosion');
_root.soundFX.start();
}
}
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
}
}
this._x += this.speed;
if (this.hitTest(_root.gamePlay.ManSwim)) {
this.explode += 1;
if (this.explode == 1) {
this.gotoAndPlay(2);
_root.gamePlay.updateHealth(80);
_root.gamePlay.boom();
if (_root.mute == 0) {
_root.soundFX.attachSound('explosion');
_root.soundFX.start();
}
}
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
}
}
};
ASSetPropFlags(_global.waterBomb.prototype, null, 1);
}
#endinitclip
}
movieClip 991 __Packages.inst {
#initclip
if (!_global.inst) {
var v1 = function () {
super();
};
_global.inst = v1;
_global.inst extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.Inst.MenuButton.onPress = function () {
_root.backPlanMusic.stop();
_root.gotoAndPlay('menuFrame');
};
_root.backPlanMusic = new Sound();
if (_root.music == 0) {
_root.backPlanMusic.attachSound('beach');
_root.backPlanMusic.start(0, 1000);
}
_root.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
};
v2.onEnterFrame = function () {};
ASSetPropFlags(_global.inst.prototype, null, 1);
}
#endinitclip
}
movieClip 992 __Packages.gameCompleteText {
#initclip
if (!_global.gameCompleteText) {
var v1 = function () {
super();
};
_global.gameCompleteText = v1;
_global.gameCompleteText extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
if (_root.bestRecord >= 60000) {
this.gotoAndPlay(2);
}
};
ASSetPropFlags(_global.gameCompleteText.prototype, null, 1);
}
#endinitclip
}
movieClip 993 __Packages.mainMenu {
#initclip
if (!_global.mainMenu) {
var v1 = function () {
super();
};
_global.mainMenu = v1;
_global.mainMenu extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.pause = 0;
this.mute = 0;
this.music = 0;
_root.buttonFX = new Sound();
_root.backPlanMusic = new Sound();
if (_root.music == 0) {
_root.backPlanMusic.attachSound('backPlanMusic');
_root.backPlanMusic.start(0, 1000);
}
_root.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
_root.MainMenu.MenuPlayButton.onPress = function () {
_root.backPlanMusic.stop();
if (_root.dayNumber == 0) {
_root.gotoAndPlay('statsFrame');
} else {
_root.gotoAndPlay('shopFrame');
}
};
_root.MainMenu.muteButton.onPress = function () {
_root.soundFX.attachSound('click');
_root.soundFX.start();
this.mute = _root.mute;
if (this.mute == 0) {
_root.mute = 1;
_root.MainMenu.muteButton.gotoAndStop(2);
}
if (this.mute == 1) {
_root.mute = 0;
_root.MainMenu.muteButton.gotoAndStop(1);
}
};
_root.MainMenu.musicButton.onPress = function () {
this.music = _root.music;
if (this.music == 0) {
_root.music = 1;
_root.MainMenu.musicButton.gotoAndStop(2);
_root.backPlanMusic.stop();
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
}
if (this.music == 1) {
_root.music = 0;
_root.MainMenu.musicButton.gotoAndStop(1);
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
_root.backPlanMusic.attachSound('backPlanMusic');
_root.backPlanMusic.start(0, 1000);
}
};
_root.MainMenu.MoreGamesButton.onPress = function () {
this.getURL('http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu-more-games&utm_campaign=johnny-deep', 'blank');
};
_root.MainMenu.BGamesButton.onPress = function () {
_root.MainMenu.BGames();
};
_root.MainMenu.FBButton.onPress = function () {
_root.MainMenu.FaceBook();
};
_root.MainMenu.TWButton.onPress = function () {
_root.MainMenu.Twitter();
};
_root.MainMenu.Instructions.onPress = function () {
_root.gotoAndPlay('instFrame');
_root.backPlanMusic.stop();
};
_root.MainMenu.Credits.onPress = function () {
_root.gotoAndPlay('creditsFrame');
_root.backPlanMusic.stop();
};
};
v2.onEnterFrame = function () {
if (_root.MainMenu.BGamesButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.BGamesButton.gotoAndPlay(2);
}
if (_root.MainMenu.FBButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.FBButton.gotoAndPlay(2);
}
if (_root.MainMenu.TWButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.TWButton.gotoAndPlay(2);
}
if (_root.MainMenu.MoreGamesButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.MoreGamesButton.gotoAndPlay(2);
}
if (_root.MainMenu.MenuPlayButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.MenuPlayButton.gotoAndPlay(2);
}
if (_root.MainMenu.Instructions.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.Instructions.gotoAndPlay(2);
}
if (_root.MainMenu.Credits.hitTest(_root._xmouse, _root._ymouse)) {
_root.MainMenu.Credits.gotoAndPlay(2);
}
};
v2.BGames = function () {
this.getURL('http://www.bgames.com/?utm_source=sponsor_game&utm_medium=menu-logo&utm_campaign=johnny-deep', 'blank');
};
v2.FaceBook = function () {
this.getURL('http://www.facebook.com/sharer.php?u=http://www.bgames.com/funny-games/Johnny-Deep.html&t=Johnny Deep', 'blank');
};
v2.Twitter = function () {
this.getURL('http://twitter.com/home?status=Playing Johnny Deep at http://www.bgames.com/funny-games/Johnny-Deep.html', 'blank');
};
ASSetPropFlags(_global.mainMenu.prototype, null, 1);
}
#endinitclip
}
movieClip 994 __Packages.credits {
#initclip
if (!_global.credits) {
var v1 = function () {
super();
};
_global.credits = v1;
_global.credits extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.backPlanMusic = new Sound();
if (_root.music == 0) {
_root.backPlanMusic.attachSound('beach');
_root.backPlanMusic.start(0, 1000);
}
_root.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
_root.Credits.MenuButton.onPress = function () {
_root.backPlanMusic.stop();
_root.gotoAndPlay('menuFrame');
};
};
v2.onEnterFrame = function () {};
v2.onConnectError = function () {
trace('disconnect');
};
v2.callback = function () {
trace('OK');
};
ASSetPropFlags(_global.credits.prototype, null, 1);
}
#endinitclip
}
movieClip 995 __Packages.stats {
#initclip
if (!_global.stats) {
var v1 = function () {
super();
};
_global.stats = v1;
_global.stats extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.dayNumber += 1;
_root.dayStats.shopButton.onPress = function () {
_root.gotoAndPlay('shopFrame');
};
_root.soundFX = new Sound();
if (_root.mute == 0) {
_root.soundFX.attachSound('clock');
_root.soundFX.start();
}
_root.attachMovie('introFader', 'introFader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
this.dayControl = 0;
};
v2.onEnterFrame = function () {
this.dayControl += 1;
if (this.dayControl == 100) {
_root.attachMovie('outroFader', 'outroFader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
if (this.dayControl == 145) {
_root.gotoAndPlay('gameFrame');
}
_root.dayStats.dayText.text = _root.dayNumber;
_root.dayStats.deepText.text = _root.ownRecord;
};
ASSetPropFlags(_global.stats.prototype, null, 1);
}
#endinitclip
}
movieClip 996 __Packages.gameplay {
#initclip
if (!_global.gameplay) {
var v1 = function () {
super();
};
_global.gameplay = v1;
_global.gameplay extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.pausedScreen._visible = false;
_root.pause = 0;
if (_root.jellyAchievement == 0) {
_root.jellyKill = 0;
}
if (_root.sharkBlackAchievement == 0) {
_root.sharkBlackKill = 0;
}
if (_root.sharkWhiteAchievement == 0) {
_root.sharkWhiteKill = 0;
}
if (_root.skatAchievement == 0) {
_root.skatKill = 0;
}
if (_root.jellyBlueAchievement == 0) {
_root.jellyBlueKill = 0;
}
if (_root.AFAchievement == 0) {
_root.angerFishKill = 0;
}
if (_root.GoldMinerAchivement == 0) {
_root.goldCollect = 0;
}
if (_root.nudeDivingAchievement == 0) {
}
_root.BGamesButtonGP.onPress = function () {
this.getURL('http://www.bgames.com/?utm_source=sponsor_game&utm_medium=in-game-logo&utm_campaign=johnny-deep', 'blank');
};
_root.MenuButton.onPress = function () {
if (_root.mute == 0) {
_root.soundFX.attachSound('click');
_root.soundFX.start();
}
_root.pausedScreen._visible = true;
_root.pause = 1;
};
_root.over = 0;
_root.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
_root.soundFX = new Sound();
_root.achievement = new Sound();
_root.scream = new Sound();
_root.backPlanMusic = new Sound();
_root.gamePlay.ManSwim._visible = false;
this.pause = 0;
this.oxygen = _root.oxygen;
_root.OxygenBar._xscale = this.oxygen;
this.oxygenBar = this.oxygen / 100;
this.health = _root.health;
_root.HealthBar._xscale = this.health;
this.healthBar = this.health / 100;
_root.deep = 0;
this.cursorY = 0;
this.go = 0;
this.sign = 0;
this.shootTimer = 50;
this.archerMassive = [];
this.archer = _root.archer;
_root.blodTimer = 0;
_root.bombTimer = 0;
_root.bonusTimer = 0;
this.dayOver = 0;
this.newRecord = 0;
_root.boomTimer = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this._x = -660;
this._y = -25;
if (_root.boomTimer > 0) {
this.boom();
}
this.dayOver -= 1;
if (this.dayOver <= 0) {
this.dayOver = 0;
}
if (this.dayOver == 1) {
_root.backPlanMusic.stop();
_root.ownRecord = Math.round(_root.deep / 100);
if (_root.ownRecord >= _root.bestRecord) {
_root.bestRecord = _root.ownRecord;
}
if (_root.gameComplete == true and _root.bestRecord == _root.ownRecord) {
_root.gotoAndPlay('ownStatsFrame');
this.removeMovieClip();
} else {
_root.gotoAndPlay('shopFrame');
this.removeMovieClip();
}
}
if (_root.deep > 0 and this.go < 11) {
this.go += 1;
}
if (this.go == 1) {
_root.gamePlay.Start.ShipMove.Ship.gotoAndPlay(2);
_root.gamePlay.ManSwim._visible = true;
}
if (this.go == 10) {
if (_root.mute == 0) {
_root.soundFX.attachSound('waterSplash');
_root.soundFX.start();
}
if (_root.music == 0) {
_root.backPlanMusic.attachSound('backPlanMusic');
_root.backPlanMusic.start(0, 1000);
}
}
this.cursorY = (Math.round(_root.deep / 100) / 1500) * 480;
if (this.cursorY >= 480) {
this.cursorY = 480;
}
_root.deepMeter.cursorDeep._y = this.cursorY;
_root.deepText.text = Math.round(_root.deep / 100);
_root.recordText.text = _root.bestRecord;
_root.moneyText.text = Math.round(_root.money);
_root.SpearScreen.archerText.text = this.archer;
if (_root.weapon == 1) {
_root.SpearScreen._visible = false;
}
_root.jelly.jellyAchievementScreen.jellyText.text = _root.jellyKill;
_root.sharkBlack.sharkBlackAchievementScreen.sharkBlackText.text = _root.sharkBlackKill;
_root.Skat.skatAchievementScreen.skatText.text = _root.skatKill;
_root.sharkWhite.sharkWhiteAchievementScreen.sharkWhiteText.text = _root.sharkWhiteKill;
_root.jellyBlue.JellyFishAchievementScreen.jellyBlueText.text = _root.jellyBlueKill;
_root.anger.AngerFishAchievementScreen.angerFishText.text = _root.angerFishKill;
if (Math.round(_root.deep / 100) > _root.bestRecord and this.newRecord == 0 and _root.dayNumber > 2) {
this.newRecord += 1;
_root.NewRecord.gotoAndPlay(2);
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
}
if (_root.deep > 0) {
this.updateOxygen();
}
_root.GoldAchievement.GA.collectText.text = _root.goldCollect;
if (_root.bombTimer == 240) {
_root.bombTimer += 1;
var v4 = this.attachMovie('bombBlock', 'bombBlock' + this.getNextHighestDepth(), this.getNextHighestDepth());
v4._x = 250 + _root.borderLeftX;
v4._y = 1000;
}
if (_root.bombTimer > 420) {
var v3 = this.attachMovie('sharkBlock', 'sharkBlock' + this.getNextHighestDepth(), this.getNextHighestDepth());
v3._x = _root.borderLeftX + 250;
v3._y = 1000;
_root.bombTimer = 0;
}
if (_root.bonusTimer == 180) {
var v5 = this.attachMovie('bonusBlock', 'bonusBlock' + this.getNextHighestDepth(), this.getNextHighestDepth());
v5._x = _root.borderLeftX + 250;
v5._y = 1000;
_root.bonusTimer = 0;
}
this.shootTimer += 1;
if (_root.mute == 0 and this.archer > 0 and this.shootTimer == 24) {
_root.soundFX.attachSound('reload');
_root.soundFX.start();
}
if (this.shootTimer > 25) {
this.shootTimer = 25;
if (this.archer > 0) {
_root.gamePlay.ManSwim.Spear.gotoAndStop(_root.weapon);
}
}
if (Key.isDown(32) and this.shootTimer == 25 and this.archer > 0 and _root.deep > 0) {
if (_root.mute == 0) {
_root.soundFX.attachSound('shoot');
_root.soundFX.start();
}
this.archer -= 1;
this.shootTimer = 0;
_root.shoot = 1;
_root.gamePlay.ManSwim.Spear.gotoAndStop(_root.weapon - 1);
var v6 = _root.gamePlay.attachMovie('archerBlock', 'archerBlock' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v6._x = 838;
v6._y = 130;
}
if (_root.jellyAchievement == 1) {
_root.jellyAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.JellyAchievementScreen.gotoAndPlay(2);
}
if (_root.sharkBlackAchievement == 1) {
_root.sharkBlackAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.SharkBlackAchievementScreen.gotoAndPlay(2);
}
if (_root.sharkWhiteAchievement == 1) {
_root.sharkWhiteAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.SharkWhiteAchievementScreen.gotoAndPlay(2);
}
if (_root.skatAchievement == 1) {
_root.skatAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.SkatAchievementScreen.gotoAndPlay(2);
}
if (_root.jellyBlueAchievement == 1) {
_root.jellyBlueAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.JellyBlueAchievementScreenLogo.gotoAndPlay(2);
}
if (_root.AFAchievement == 1) {
_root.AFAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.AFAchievementScreen.gotoAndPlay(2);
}
if (_root.FirstBloodAchievement == 1) {
_root.FirstBloodAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.FirstBloodAchievementScreen.gotoAndPlay(2);
}
if (_root.GoldMinerAchivement == 1) {
_root.GoldMinerAchivement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.GoldMinerAchivementScreen.gotoAndPlay(2);
}
if (_root.nudeDivingAchievement == 1) {
_root.nudeDivingAchievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.NudeDivingAchievementScreen.gotoAndPlay(2);
}
if (_root.M100Achievement == 1) {
_root.M100Achievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.m100AchievementScreen.gotoAndPlay(2);
}
if (_root.M200Achievement == 1) {
_root.M200Achievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.m200AchievementScreen.gotoAndPlay(2);
}
if (_root.M300Achievement == 1) {
_root.M300Achievement += 1;
if (_root.mute == 0) {
_root.achievement.attachSound('photo');
_root.achievement.start();
}
_root.m300AchievementScreen.gotoAndPlay(2);
}
if (_root.M600Achievement == 1) {
_root.M600Achievement += 1;
}
if (_root.jellyKill >= 5) {
_root.jellyAchievement += 1;
if (_root.jellyAchievement > 2) {
_root.jellyAchievement = 2;
}
}
if (_root.sharkBlackKill >= 10) {
_root.sharkBlackAchievement += 1;
if (_root.sharkBlackAchievement > 2) {
_root.sharkBlackAchievement = 2;
}
}
if (_root.sharkWhiteKill >= 10) {
_root.sharkWhiteAchievement += 1;
if (_root.sharkWhiteAchievement > 2) {
_root.sharkWhiteAchievement = 2;
}
}
if (_root.skatKill >= 10) {
_root.skatAchievement += 1;
if (_root.skatAchievement > 2) {
_root.skatAchievement = 2;
}
}
if (_root.jellyBlueKill >= 15) {
_root.jellyBlueAchievement += 1;
if (_root.jellyBlueAchievement > 2) {
_root.jellyBlueAchievement = 2;
}
}
if (_root.angerFishKill >= 15) {
_root.AFAchievement += 1;
if (_root.AFAchievement > 2) {
_root.AFAchievement = 2;
}
}
if (_root.goldCollect >= 20) {
_root.GoldMinerAchivement += 1;
if (_root.GoldMinerAchivement > 2) {
_root.GoldMinerAchivement = 2;
}
}
if (_root.deep > 0) {
_root.nudeDivingAchievement += 1;
if (_root.nudeDivingAchievement > 2) {
_root.nudeDivingAchievement = 2;
}
}
if (_root.deep >= 50000) {
_root.M100Achievement += 1;
if (_root.M100Achievement > 2) {
_root.M100Achievement = 2;
}
}
if (_root.deep >= 100000) {
_root.M200Achievement += 1;
if (_root.M200Achievement > 2) {
_root.M200Achievement = 2;
}
}
if (_root.deep >= 150000) {
_root.M300Achievement += 1;
if (_root.M300Achievement > 2) {
_root.M300Achievement = 2;
}
}
if (_root.deep >= 5000) {
_root.M600Achievement += 1;
if (_root.M600Achievement > 2) {
_root.M600Achievement = 2;
if (_root.gameComplete == false) {
_root.gameComplete = true;
}
}
}
}
};
v2.updateOxygen = function () {
this.oxygen -= 1 / _root.oxygenLow;
if (this.oxygen <= 0) {
this.oxygen = 0;
}
if (this.oxygen == 0 and this.dayOver == 0) {
this.oxygen = 0;
var v3 = _root.attachMovie('lowOxygen', 'lowOxygen' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 220;
v3._y = 180;
this.gameOver();
}
_root.OxygenBar.O2Bar._xscale = this.oxygen / this.oxygenBar;
};
v2.bonusOxygen = function () {
this.oxygen += 50;
if (this.oxygen > _root.oxygen) {
this.oxygen = _root.oxygen;
}
};
v2.updateHealth = function (damage) {
_root.FirstBloodAchievement += 1;
this.health -= damage;
if (this.health <= 0) {
this.health = 0;
}
if (this.health == 0 and this.dayOver == 0) {
this.health = 0;
var v3 = _root.attachMovie('lowHealth', 'lowHealth' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 220;
v3._y = 180;
this.gameOver();
}
_root.HealthBar.hBar._xscale = this.health / this.healthBar;
_root.blodTimer = 50;
if (_root.mute == 0 and damage > 25) {
this.soundNumber = Math.round(Math.random() * 7 + 1);
if (this.soundNumber == 1) {
_root.scream.attachSound('scream_01');
_root.scream.start();
}
if (this.soundNumber == 2) {
_root.scream.attachSound('scream_02');
_root.scream.start();
}
if (this.soundNumber == 3) {
_root.scream.attachSound('scream_03');
_root.scream.start();
}
if (this.soundNumber == 4) {
_root.scream.attachSound('scream_04');
_root.scream.start();
}
if (this.soundNumber == 5) {
_root.scream.attachSound('scream_05');
_root.scream.start();
}
if (this.soundNumber == 6) {
_root.scream.attachSound('scream_06');
_root.scream.start();
}
if (this.soundNumber == 7) {
_root.scream.attachSound('scream_07');
_root.scream.start();
}
if (this.soundNumber == 8) {
_root.scream.attachSound('scream_07');
_root.scream.start();
}
}
if (_root.mute == 0 and damage == 25) {
this.soundNumber = Math.round(Math.random() * 4 + 1);
if (this.soundNumber == 1) {
_root.scream.attachSound('jellyScream_01');
_root.scream.start();
}
if (this.soundNumber == 2) {
_root.scream.attachSound('jellyScream_02');
_root.scream.start();
}
if (this.soundNumber == 3) {
_root.scream.attachSound('jellyScream_03');
_root.scream.start();
}
if (this.soundNumber == 4) {
_root.scream.attachSound('jellyScream_04');
_root.scream.start();
}
if (this.soundNumber == 5) {
_root.scream.attachSound('jellyScream_04');
_root.scream.start();
}
}
};
v2.gameOver = function () {
if (this.dayOver == 0) {
this.dayOver = 50;
_root.over = 1;
var v3 = _root.attachMovie('outroFader', 'outroFader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = 0;
v3._y = 0;
}
};
v2.bonusHealth = function () {
this.health += 50;
if (this.health > _root.health) {
this.health = _root.health;
}
_root.HealthBar.hBar._xscale = this.health / this.healthBar;
};
v2.bonusMoney = function (bonus) {
_root.money += bonus;
if (_root.money >= 99900) {
_root.money = 99900;
}
};
v2.bonusWeapon = function () {
this.archer += 1;
};
v2.boom = function () {
if (_root.boomTimer == 0) {
_root.boomTimer = 35;
}
if (Math.random() > 0.5) {
this._x += Math.random() * 25;
} else {
this._x -= Math.random() * 25;
}
if (Math.random() > 0.5) {
this._y += Math.random() * 25;
} else {
this._y -= Math.random() * 25;
}
_root.boomTimer -= 1;
};
ASSetPropFlags(_global.gameplay.prototype, null, 1);
}
#endinitclip
}
movieClip 997 __Packages.start {
#initclip
if (!_global.start) {
var v1 = function () {
super();
};
_global.start = v1;
_global.start extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.manVelocity = 0;
this.pressControl = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == 0) {
this.pressControl -= 1;
if (this.pressControl <= 0) {
this.pressControl = 0;
}
this._y -= this.manVelocity;
this.manVelocity = _root.V;
if (this._y < -1300) {
this.removeMovieClip();
}
if (Key.isDown(39)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x -= _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(37)) {
if (_root.borderLeftX <= 570 and _root.borderRightX >= 860) {
this._x += _root.accelerate * this.manVelocity / 5;
}
}
if (Key.isDown(40)) {
if (this.pressControl == 0) {
this.manVelocity += _root.velocity * _root.accelerate;
if (this.manVelocity >= _root.manVelocityMax) {
this.manVelocity = _root.manVelocityMax;
}
this.pressControl = 30;
}
}
}
};
ASSetPropFlags(_global.start.prototype, null, 1);
}
#endinitclip
}
movieClip 998 __Packages.ownStats {
#initclip
if (!_global.ownStats) {
var v1 = function () {
super();
};
_global.ownStats = v1;
_global.ownStats extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.GameCompleteText._visible = true;
_root.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
_root.number += 1;
_root.buttonFX = new Sound();
_root.backPlanMusic = new Sound();
if (_root.music == 0) {
_root.backPlanMusic.attachSound('beach');
_root.backPlanMusic.start(0, 1000);
}
_root.OwnStats.moreGamesButton.onPress = function () {
this.getURL('http://www.bgames.com/games/distance-games-1.html?utm_source=sponsor_game&utm_medium=more-distance-games&utm_campaign=johnny-deep', 'blank');
};
_root.OwnStats.shopButton.onPress = function () {
_root.backPlanMusic.stop();
_root.gotoAndPlay('shopFrame');
};
_root.OwnStats.MenuButton.onPress = function () {
_root.backPlanMusic.stop();
_root.gotoAndPlay('menuFrame');
};
_root.OwnStats.SubmitButton.onPress = function () {
var v3 = {'n': [3, 0, 14, 3, 15, 7, 11, 5, 12, 14, 7, 5, 0, 9, 11, 7], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var v4 = v3.f(0, '30e3f7b5ce7509b7');
mochi.as2.MochiScores.showLeaderboard({'boardID': v4, 'score': _root.ownRecord, 'name': _root.OwnStats.nickNameText.text});
if (_root.mute == 0) {
_root.buttonFX.attachSound('click');
_root.buttonFX.start();
}
};
_root.attachMovie('introFader', 'introFader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
this.dayControl = 0;
};
v2.onEnterFrame = function () {
if (this.dayControl == 100) {
_root.attachMovie('outroFader', 'outroFader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
if (this.dayControl == 145) {
_root.gotoAndPlay('gameFrame');
}
_root.OwnStats.dayText.text = _root.dayNumber;
_root.OwnStats.deepText.text = _root.ownRecord;
};
ASSetPropFlags(_global.ownStats.prototype, null, 1);
}
#endinitclip
}
movieClip 999 __Packages.mochi.as2.MochiScores {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiScores) {
var v1 = function () {};
mochi.as2.MochiScores = v1;
var v2 = v1.prototype;
v1.setBoardID = function (boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID});
};
v1.showLeaderboard = function (options) {
options.clip = mochi.as2.MochiServices.clip;
if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) {
mochi.as2.MochiServices.disconnect();
trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!');
trace('make sure MochiServices.connect is called as early in the application runtime as possible.');
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof options.name == 'object') {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else {
if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
}
var v1 = Number(options.score);
if (isNaN(v1)) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\'');
} else {
if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(v1) != v1) {
trace('WARNING: Submitted score \'' + options.score + '\' will be truncated');
}
options.score = v1;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
(mochi.as2.MochiServices.__get__clip()).stop();
}
if (options.onClose != null) {
mochi.as2.MochiScores.onClose = options.onClose;
} else {
mochi.as2.MochiScores.onClose = function () {
(mochi.as2.MochiServices.__get__clip()).play();
};
}
if (options.onError != null) {
mochi.as2.MochiScores.onError = options.onError;
} else {
mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose;
}
if (options.boardID == null) {
if (mochi.as2.MochiScores.boardID != null) {
options.boardID = mochi.as2.MochiScores.boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal');
mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose);
};
v1.closeLeaderboard = function () {
mochi.as2.MochiServices.send('scores_closeLeaderboard');
};
v1.getPlayerInfo = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod);
};
v1.submit = function (score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\'');
} else {
if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(score) != score) {
trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated');
}
score = Number(score);
}
}
mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod);
};
v1.requestList = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod);
};
v1.scoresArrayToObjects = function (scores) {
var v5 = {};
var v1;
var v4;
var v2;
var v6;
for (var v8 in scores) {
if (typeof scores[v8] == 'object') {
if (scores[v8].cols != null && scores[v8].rows != null) {
v5[v8] = [];
v2 = scores[v8];
v4 = 0;
while (v4 < v2.rows.length) {
v6 = {};
v1 = 0;
while (v1 < v2.cols.length) {
v6[v2.cols[v1]] = v2.rows[v4][v1];
++v1;
}
v5[v8].push(v6);
++v4;
}
} else {
v5[v8] = {};
for (var v7 in scores[v8]) {
v5[v8][v7] = scores[v8][v7];
}
}
} else {
v5[v8] = scores[v8];
}
}
return v5;
};
v1.doClose = function (args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = 'IOError';
}
mochi.as2.MochiScores.onError.apply(null, [args.errorCode]);
} else {
mochi.as2.MochiScores.onClose.apply();
}
};
ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1);
}
#endinitclip
}
movieClip 1000 __Packages.mochi.as2.MochiDigits {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiDigits) {
var v1 = function (digit, index) {
this.Encoder = 0;
this.setValue(digit, index);
};
mochi.as2.MochiDigits = v1;
var v2 = v1.prototype;
v2.__get__value = function () {
return Number(this.toString());
};
v2.__set__value = function (v) {
this.setValue(v);
return this.__get__value();
};
v2.addValue = function (v) {
this.value += v;
};
v2.setValue = function (digit, index) {
var v3 = digit.toString();
if (index == undefined || isNaN(index)) {
index = 0;
}
this.Fragment = v3.charCodeAt(index++) ^ this.Encoder;
if (index < v3.length) {
this.Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
this.Sibling = null;
}
this.reencode();
};
v2.reencode = function () {
var v2 = int(2147483647 * Math.random());
this.Fragment ^= v2 ^ this.Encoder;
this.Encoder = v2;
};
v2.toString = function () {
var v2 = String.fromCharCode(this.Fragment ^ this.Encoder);
return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2;
};
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1);
}
#endinitclip
}
movieClip 1001 __Packages.clearDataOK {
#initclip
if (!_global.clearDataOK) {
var v1 = function () {
super();
};
_global.clearDataOK = v1;
_global.clearDataOK extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.resetOK._visible = false;
_root.resetOK.yesButton.onPress = function () {
if (_root.mute == 0) {
_root.buttonFX.attachSound('click');
_root.buttonFX.start();
}
_root.gotoAndPlay('resetFrame');
_root.resetFrame = true;
};
_root.resetOK.noButton.onPress = function () {
if (_root.mute == 0) {
_root.buttonFX.attachSound('click');
_root.buttonFX.start();
}
_root.resetOK._visible = false;
_root.fun._visible = false;
_root.Shop._visible = true;
};
};
ASSetPropFlags(_global.clearDataOK.prototype, null, 1);
}
#endinitclip
}
movieClip 1002 __Packages.shop {
#initclip
if (!_global.shop) {
var v1 = function () {
super();
};
_global.shop = v1;
_global.shop extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.fun._visible = false;
_root.buttonFX = new Sound();
_root.backPlanMusic = new Sound();
if (_root.music == 0) {
_root.backPlanMusic.attachSound('beach');
_root.backPlanMusic.start(0, 1000);
}
_root.soundFX = new Sound();
_root.resetFrame = false;
this.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
_root.Shop.PlayAgainButton.onPress = function () {
_root.backPlanMusic.stop();
_root.gotoAndPlay('statsFrame');
};
_root.Shop.MenuButton.onPress = function () {
_root.backPlanMusic.stop();
_root.gotoAndPlay('menuFrame');
};
_root.Shop.ClearDataButton.onPress = function () {
_root.attachMovie('introFader', 'introFader' + this.getNextHighestDepth(), this.getNextHighestDepth());
if (_root.mute == 0) {
_root.buttonFX.attachSound('click');
_root.buttonFX.start();
}
_root.resetOK._visible = true;
_root.fun._visible = true;
_root.Shop._visible = false;
};
_root.Shop.HintButton.onPress = function () {
this.getURL('http://www.bgames.com/sponsor/johnny-deep.html?utm_source=sponsor_game&utm_medium=hints&utm_campaign=johnny-deep', 'blank');
};
_root.Shop.suitButton1.onPress = function () {
if (_root.money >= _root.suitPrice1 and _root.suit == 1) {
if (_root.light < 2) {
_root.light = 2;
}
if (_root.manHead < 2) {
_root.manHead = 2;
}
if (_root.head < 2) {
_root.head = 2;
}
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.suitButton1.gotoAndPlay(3);
_root.money -= _root.suitPrice1;
_root.suit = 2;
}
};
_root.Shop.suitButton2.onPress = function () {
if (_root.money >= _root.suitPrice2 and _root.suit == 2) {
_root.manVelocityMax = 8;
_root.accelerate = 1.2;
_root.legs = 2;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.suitButton2.gotoAndPlay(3);
_root.money -= _root.suitPrice2;
_root.suit = 3;
}
};
_root.Shop.suitButton3.onPress = function () {
if (_root.money >= _root.suitPrice3 and _root.suit == 3) {
_root.manVelocityMax = 10;
_root.accelerate = 1.6;
_root.legs = 3;
_root.body = 2;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.suitButton3.gotoAndPlay(3);
_root.money -= _root.suitPrice3;
_root.suit = 4;
}
};
_root.Shop.suitButton4.onPress = function () {
if (_root.money >= _root.suitPrice4 and _root.suit == 4) {
_root.manVelocityMax = 12;
_root.accelerate = 2.2;
_root.body = 3;
_root.arms = 2;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.suitButton3.gotoAndPlay(3);
_root.money -= _root.suitPrice4;
_root.suit = 5;
}
};
_root.Shop.healthButton1.onPress = function () {
if (_root.money >= _root.healthPrice1 and _root.healthControl == 1) {
_root.health = 150;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.healthButton1.gotoAndPlay(3);
_root.money -= _root.healthPrice1;
_root.healthControl = 2;
}
};
_root.Shop.healthButton2.onPress = function () {
if (_root.money >= _root.healthPrice2 and _root.healthControl == 2) {
_root.health = 200;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.healthButton2.gotoAndPlay(3);
_root.money -= _root.healthPrice2;
_root.healthControl = 3;
}
};
_root.Shop.healthButton3.onPress = function () {
if (_root.money >= _root.healthPrice3 and _root.healthControl == 3) {
_root.health = 250;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.healthButton3.gotoAndPlay(3);
_root.money -= _root.healthPrice3;
_root.healthControl = 4;
}
};
_root.Shop.healthButton4.onPress = function () {
if (_root.money >= _root.healthPrice4 and _root.healthControl == 4) {
_root.health = 350;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.healthButton3.gotoAndPlay(3);
_root.money -= _root.healthPrice4;
_root.healthControl = 5;
}
};
_root.Shop.oxygenButton1.onPress = function () {
if (_root.money >= _root.oxygenPrice1 and _root.oxygenControl == 1) {
_root.oxygen = 150;
_root.oxygenLow = 10;
_root.baloon = 2;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.oxygenButton1.gotoAndPlay(3);
_root.money -= _root.oxygenPrice1;
_root.oxygenControl = 2;
}
};
_root.Shop.oxygenButton2.onPress = function () {
if (_root.money >= _root.oxygenPrice2 and _root.oxygenControl == 2) {
_root.oxygen = 200;
_root.oxygenLow = 10;
_root.baloon = 3;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.oxygenButton2.gotoAndPlay(3);
_root.money -= _root.oxygenPrice2;
_root.oxygenControl = 3;
}
};
_root.Shop.oxygenButton3.onPress = function () {
if (_root.money >= _root.oxygenPrice3 and _root.oxygenControl == 3) {
_root.oxygen = 250;
_root.oxygenLow = 12;
_root.baloon = 4;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.oxygenButton3.gotoAndPlay(3);
_root.money -= _root.oxygenPrice3;
_root.oxygenControl = 4;
}
};
_root.Shop.oxygenButton4.onPress = function () {
if (_root.money >= _root.oxygenPrice4 and _root.oxygenControl == 4) {
_root.oxygen = 350;
_root.oxygenLow = 12;
_root.baloon = 5;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.oxygenButton3.gotoAndPlay(3);
_root.money -= _root.oxygenPrice4;
_root.oxygenControl = 5;
}
};
_root.Shop.weaponButton1.onPress = function () {
if (_root.money >= _root.weaponPrice1 and _root.weaponControl == 1) {
_root.weapon = 3;
_root.archer = 1;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.weaponButton1.gotoAndPlay(3);
_root.money -= _root.weaponPrice1;
_root.weaponControl = 2;
}
};
_root.Shop.weaponButton2.onPress = function () {
if (_root.money >= _root.weaponPrice2 and _root.weaponControl == 2) {
_root.archer = 5;
_root.Shop.weaponButton2.gotoAndPlay(3);
_root.money -= _root.weaponPrice2;
_root.weaponControl = 3;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
}
};
_root.Shop.weaponButton3.onPress = function () {
if (_root.money >= _root.weaponPrice3 and _root.weaponControl == 3) {
_root.archer = 10;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.weaponButton3.gotoAndPlay(3);
_root.money -= _root.weaponPrice3;
_root.weaponControl = 4;
}
};
_root.Shop.weaponButton4.onPress = function () {
if (_root.money >= _root.weaponPrice4 and _root.weaponControl == 4) {
_root.archer = 20;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.weaponButton3.gotoAndPlay(3);
_root.money -= _root.weaponPrice4;
_root.weaponControl = 5;
}
};
_root.Shop.lightButton1.onPress = function () {
if (_root.money >= _root.lightPrice1 and _root.lightControl == 1) {
_root.light = 3;
_root.head = 3;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.lightButton1.gotoAndPlay(3);
_root.money -= _root.lightPrice1;
_root.lightControl = 2;
}
};
_root.Shop.lightButton2.onPress = function () {
if (_root.money >= _root.lightPrice2 and _root.lightControl == 2) {
_root.light = 4;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.lightButton2.gotoAndPlay(3);
_root.money -= _root.lightPrice2;
_root.lightControl = 3;
}
};
_root.Shop.lightButton3.onPress = function () {
if (_root.money >= _root.lightPrice3 and _root.lightControl == 3) {
_root.light = 5;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.lightButton3.gotoAndPlay(3);
_root.money -= _root.lightPrice3;
_root.lightControl = 4;
}
};
_root.Shop.lightButton4.onPress = function () {
if (_root.money >= _root.lightPrice4 and _root.lightControl == 4) {
_root.light = 6;
if (_root.mute == 0) {
_root.soundFX.attachSound('yeah');
_root.soundFX.start();
}
_root.Shop.lightButton3.gotoAndPlay(3);
_root.money -= _root.lightPrice4;
_root.lightControl = 5;
}
};
};
v2.onEnterFrame = function () {
_root.Shop.moneyText.text = Math.round(_root.money);
_root.Shop.shopSuit1._visible = false;
_root.Shop.shopSuit2._visible = false;
_root.Shop.shopSuit3._visible = false;
_root.Shop.shopSuit4._visible = false;
_root.Shop.shopHealth1._visible = false;
_root.Shop.shopHealth2._visible = false;
_root.Shop.shopHealth3._visible = false;
_root.Shop.shopHealth4._visible = false;
_root.Shop.shopOxygen1._visible = false;
_root.Shop.shopOxygen2._visible = false;
_root.Shop.shopOxygen3._visible = false;
_root.Shop.shopOxygen4._visible = false;
_root.Shop.shopWeapon1._visible = false;
_root.Shop.shopWeapon2._visible = false;
_root.Shop.shopWeapon3._visible = false;
_root.Shop.shopWeapon4._visible = false;
_root.Shop.shopLight1._visible = false;
_root.Shop.shopLight2._visible = false;
_root.Shop.shopLight3._visible = false;
_root.Shop.shopLight4._visible = false;
_root.Shop.description1._visible = false;
_root.Shop.description2._visible = false;
_root.Shop.description3._visible = false;
_root.Shop.description4._visible = false;
_root.Shop.description5._visible = false;
_root.Shop.description8._visible = false;
_root.Shop.description6._visible = false;
_root.Shop.description7._visible = false;
_root.Shop.description9._visible = false;
_root.Shop.description10._visible = false;
_root.Shop.description11._visible = false;
_root.Shop.description12._visible = false;
if (_root.Shop.suitButton1.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopSuit1._visible = true;
_root.Shop.shopSuit1._x = _root._xmouse;
_root.Shop.shopSuit1._y = _root._ymouse;
}
if (_root.Shop.suitButton2.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopSuit2._visible = true;
_root.Shop.shopSuit2._x = _root._xmouse;
_root.Shop.shopSuit2._y = _root._ymouse;
}
if (_root.Shop.suitButton3.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopSuit3._visible = true;
_root.Shop.shopSuit3._x = _root._xmouse;
_root.Shop.shopSuit3._y = _root._ymouse;
}
if (_root.Shop.suitButton4.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopSuit4._visible = true;
_root.Shop.shopSuit4._x = _root._xmouse;
_root.Shop.shopSuit4._y = _root._ymouse;
}
if (_root.Shop.healthButton1.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopHealth1._visible = true;
_root.Shop.shopHealth1._x = _root._xmouse;
_root.Shop.shopHealth1._y = _root._ymouse;
}
if (_root.Shop.healthButton2.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopHealth2._visible = true;
_root.Shop.shopHealth2._x = _root._xmouse;
_root.Shop.shopHealth2._y = _root._ymouse;
}
if (_root.Shop.healthButton3.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopHealth3._visible = true;
_root.Shop.shopHealth3._x = _root._xmouse;
_root.Shop.shopHealth3._y = _root._ymouse;
}
if (_root.Shop.healthButton4.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopHealth4._visible = true;
_root.Shop.shopHealth4._x = _root._xmouse;
_root.Shop.shopHealth4._y = _root._ymouse;
}
if (_root.Shop.oxygenButton1.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopOxygen1._visible = true;
_root.Shop.shopOxygen1._x = _root._xmouse;
_root.Shop.shopOxygen1._y = _root._ymouse;
}
if (_root.Shop.oxygenButton2.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopOxygen2._visible = true;
_root.Shop.shopOxygen2._x = _root._xmouse;
_root.Shop.shopOxygen2._y = _root._ymouse;
}
if (_root.Shop.oxygenButton3.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopOxygen3._visible = true;
_root.Shop.shopOxygen3._x = _root._xmouse;
_root.Shop.shopOxygen3._y = _root._ymouse;
}
if (_root.Shop.oxygenButton4.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopOxygen4._visible = true;
_root.Shop.shopOxygen4._x = _root._xmouse;
_root.Shop.shopOxygen4._y = _root._ymouse;
}
if (_root.Shop.weaponButton1.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopWeapon1._visible = true;
_root.Shop.shopWeapon1._x = _root._xmouse;
_root.Shop.shopWeapon1._y = _root._ymouse;
}
if (_root.Shop.weaponButton2.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopWeapon2._visible = true;
_root.Shop.shopWeapon2._x = _root._xmouse;
_root.Shop.shopWeapon2._y = _root._ymouse;
}
if (_root.Shop.weaponButton3.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopWeapon3._visible = true;
_root.Shop.shopWeapon3._x = _root._xmouse;
_root.Shop.shopWeapon3._y = _root._ymouse;
}
if (_root.Shop.weaponButton4.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopWeapon4._visible = true;
_root.Shop.shopWeapon4._x = _root._xmouse;
_root.Shop.shopWeapon4._y = _root._ymouse;
}
if (_root.Shop.lightButton1.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopLight1._visible = true;
_root.Shop.shopLight1._x = _root._xmouse;
_root.Shop.shopLight1._y = _root._ymouse;
}
if (_root.Shop.lightButton2.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopLight2._visible = true;
_root.Shop.shopLight2._x = _root._xmouse;
_root.Shop.shopLight2._y = _root._ymouse;
}
if (_root.Shop.lightButton3.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopLight3._visible = true;
_root.Shop.shopLight3._x = _root._xmouse;
_root.Shop.shopLight3._y = _root._ymouse;
}
if (_root.Shop.lightButton4.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.shopLight4._visible = true;
_root.Shop.shopLight4._x = _root._xmouse;
_root.Shop.shopLight4._y = _root._ymouse;
}
if (_root.Shop.JFAchievement.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description1._visible = true;
_root.Shop.description1._x = _root._xmouse;
_root.Shop.description1._y = _root._ymouse;
}
if (_root.Shop.SBAchievement.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description2._visible = true;
_root.Shop.description2._x = _root._xmouse;
_root.Shop.description2._y = _root._ymouse;
}
if (_root.Shop.SWAchievement.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description3._visible = true;
_root.Shop.description3._x = _root._xmouse;
_root.Shop.description3._y = _root._ymouse;
}
if (_root.Shop.SAchievement.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description4._visible = true;
_root.Shop.description4._x = _root._xmouse;
_root.Shop.description4._y = _root._ymouse;
}
if (_root.Shop.NDAchievementButton.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description5._visible = true;
_root.Shop.description5._x = _root._xmouse;
_root.Shop.description5._y = _root._ymouse;
}
if (_root.Shop.M100.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description6._visible = true;
_root.Shop.description6._x = _root._xmouse;
_root.Shop.description6._y = _root._ymouse;
}
if (_root.Shop.M200.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description7._visible = true;
_root.Shop.description7._x = _root._xmouse;
_root.Shop.description7._y = _root._ymouse;
}
if (_root.Shop.M300.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description8._visible = true;
_root.Shop.description8._x = _root._xmouse;
_root.Shop.description8._y = _root._ymouse;
}
if (_root.Shop.GM.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description12._visible = true;
_root.Shop.description12._x = _root._xmouse;
_root.Shop.description12._y = _root._ymouse;
}
if (_root.Shop.FB.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description11._visible = true;
_root.Shop.description11._x = _root._xmouse;
_root.Shop.description11._y = _root._ymouse;
}
if (_root.Shop.JFB.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description9._visible = true;
_root.Shop.description9._x = _root._xmouse;
_root.Shop.description9._y = _root._ymouse;
}
if (_root.Shop.AF.hitTest(_root._xmouse, _root._ymouse)) {
_root.Shop.description10._visible = true;
_root.Shop.description10._x = _root._xmouse;
_root.Shop.description10._y = _root._ymouse;
}
if (_root.money >= _root.suitPrice1 and _root.suit == 1) {
_root.Shop.suitButton1.gotoAndPlay(2);
}
if (_root.suit > 1) {
_root.Shop.suitButton1.gotoAndPlay(3);
}
if (_root.money >= _root.suitPrice2 and _root.suit == 2) {
_root.Shop.suitButton2.gotoAndPlay(2);
}
if (_root.suit > 2) {
_root.Shop.suitButton2.gotoAndPlay(3);
}
if (_root.money >= _root.suitPrice3 and _root.suit == 3) {
_root.Shop.suitButton3.gotoAndPlay(2);
}
if (_root.suit > 3) {
_root.Shop.suitButton3.gotoAndPlay(3);
}
if (_root.money >= _root.suitPrice4 and _root.suit == 4) {
_root.Shop.suitButton4.gotoAndPlay(2);
}
if (_root.suit > 4) {
_root.Shop.suitButton4.gotoAndPlay(3);
}
if (_root.money < _root.suitPrice1 and _root.suit == 1) {
_root.Shop.suitButton1.gotoAndPlay(1);
}
if (_root.money < _root.suitPrice2 and _root.suit == 2) {
_root.Shop.suitButton2.gotoAndPlay(1);
}
if (_root.money < _root.suitPrice3 and _root.suit == 3) {
_root.Shop.suitButton3.gotoAndPlay(1);
}
if (_root.money < _root.suitPrice4 and _root.suit == 4) {
_root.Shop.suitButton4.gotoAndPlay(1);
}
if (_root.money >= _root.healthPrice1 and _root.healthControl == 1) {
_root.Shop.healthButton1.gotoAndPlay(2);
}
if (_root.healthControl > 1) {
_root.Shop.healthButton1.gotoAndPlay(3);
}
if (_root.money >= _root.healthPrice2 and _root.healthControl == 2) {
_root.Shop.healthButton2.gotoAndPlay(2);
}
if (_root.healthControl > 2) {
_root.Shop.healthButton2.gotoAndPlay(3);
}
if (_root.money >= _root.healthPrice3 and _root.healthControl == 3) {
_root.Shop.healthButton3.gotoAndPlay(2);
}
if (_root.healthControl > 3) {
_root.Shop.healthButton3.gotoAndPlay(3);
}
if (_root.money >= _root.healthPrice4 and _root.healthControl == 4) {
_root.Shop.healthButton4.gotoAndPlay(2);
}
if (_root.healthControl > 4) {
_root.Shop.healthButton4.gotoAndPlay(3);
}
if (_root.money < _root.healthPrice1 and _root.healthControl == 1) {
_root.Shop.healthButton1.gotoAndPlay(1);
}
if (_root.money < _root.healthPrice2 and _root.healthControl == 2) {
_root.Shop.healthButton2.gotoAndPlay(1);
}
if (_root.money < _root.healthPrice3 and _root.healthControl == 3) {
_root.Shop.healthButton3.gotoAndPlay(1);
}
if (_root.money < _root.healthPrice4 and _root.healthControl == 4) {
_root.Shop.healthButton4.gotoAndPlay(1);
}
if (_root.money >= _root.oxygenPrice1 and _root.oxygenControl == 1) {
_root.Shop.oxygenButton1.gotoAndPlay(2);
}
if (_root.oxygenControl > 1) {
_root.Shop.oxygenButton1.gotoAndPlay(3);
}
if (_root.money >= _root.oxygenPrice2 and _root.oxygenControl == 2) {
_root.Shop.oxygenButton2.gotoAndPlay(2);
}
if (_root.oxygenControl > 2) {
_root.Shop.oxygenButton2.gotoAndPlay(3);
}
if (_root.money >= _root.oxygenPrice3 and _root.oxygenControl == 3) {
_root.Shop.oxygenButton3.gotoAndPlay(2);
}
if (_root.oxygenControl > 3) {
_root.Shop.oxygenButton3.gotoAndPlay(3);
}
if (_root.money >= _root.oxygenPrice4 and _root.oxygenControl == 4) {
_root.Shop.oxygenButton4.gotoAndPlay(2);
}
if (_root.oxygenControl > 4) {
_root.Shop.oxygenButton4.gotoAndPlay(3);
}
if (_root.money < _root.oxygenPrice1 and _root.oxygenControl == 1) {
_root.Shop.oxygenButton1.gotoAndPlay(1);
}
if (_root.money < _root.oxygenPrice2 and _root.oxygenControl == 2) {
_root.Shop.oxygenButton2.gotoAndPlay(1);
}
if (_root.money < _root.oxygenPrice3 and _root.oxygenControl == 3) {
_root.Shop.oxygenButton3.gotoAndPlay(1);
}
if (_root.money < _root.oxygenPrice4 and _root.oxygenControl == 4) {
_root.Shop.oxygenButton4.gotoAndPlay(1);
}
if (_root.money >= _root.lightPrice1 and _root.lightControl == 1) {
_root.Shop.lightButton1.gotoAndPlay(2);
}
if (_root.lightControl > 1) {
_root.Shop.lightButton1.gotoAndPlay(3);
}
if (_root.money >= _root.lightPrice2 and _root.lightControl == 2) {
_root.Shop.lightButton2.gotoAndPlay(2);
}
if (_root.lightControl > 2) {
_root.Shop.lightButton2.gotoAndPlay(3);
}
if (_root.money >= _root.lightPrice3 and _root.lightControl == 3) {
_root.Shop.lightButton3.gotoAndPlay(2);
}
if (_root.lightControl > 3) {
_root.Shop.lightButton3.gotoAndPlay(3);
}
if (_root.money >= _root.lightPrice4 and _root.lightControl == 4) {
_root.Shop.lightButton4.gotoAndPlay(2);
}
if (_root.lightControl > 4) {
_root.Shop.lightButton4.gotoAndPlay(3);
}
if (_root.money < _root.lightPrice1 and _root.lightControl == 1) {
_root.Shop.lightButton1.gotoAndPlay(1);
}
if (_root.money < _root.lightPrice2 and _root.lightControl == 2) {
_root.Shop.lightButton2.gotoAndPlay(1);
}
if (_root.money < _root.lightPrice3 and _root.lightControl == 3) {
_root.Shop.lightButton3.gotoAndPlay(1);
}
if (_root.money < _root.lightPrice4 and _root.lightControl == 4) {
_root.Shop.lightButton4.gotoAndPlay(1);
}
if (_root.money >= _root.weaponPrice1 and _root.weaponControl == 1) {
_root.Shop.weaponButton1.gotoAndPlay(2);
}
if (_root.weaponControl > 1) {
_root.Shop.weaponButton1.gotoAndPlay(3);
}
if (_root.money >= _root.weaponPrice2 and _root.weaponControl == 2) {
_root.Shop.weaponButton2.gotoAndPlay(2);
}
if (_root.weaponControl > 2) {
_root.Shop.weaponButton2.gotoAndPlay(3);
}
if (_root.money >= _root.weaponPrice3 and _root.weaponControl == 3) {
_root.Shop.weaponButton3.gotoAndPlay(2);
}
if (_root.weaponControl > 3) {
_root.Shop.weaponButton3.gotoAndPlay(3);
}
if (_root.money >= _root.weaponPrice4 and _root.weaponControl == 4) {
_root.Shop.weaponButton4.gotoAndPlay(2);
}
if (_root.weaponControl > 4) {
_root.Shop.weaponButton4.gotoAndPlay(3);
}
if (_root.money < _root.weaponPrice1 and _root.weaponControl == 1) {
_root.Shop.weaponButton1.gotoAndPlay(1);
}
if (_root.money < _root.weaponPrice2 and _root.weaponControl == 2) {
_root.Shop.weaponButton2.gotoAndPlay(1);
}
if (_root.money < _root.weaponPrice3 and _root.weaponControl == 3) {
_root.Shop.weaponButton3.gotoAndPlay(1);
}
if (_root.money < _root.weaponPrice4 and _root.weaponControl == 4) {
_root.Shop.weaponButton4.gotoAndPlay(1);
}
};
ASSetPropFlags(_global.shop.prototype, null, 1);
}
#endinitclip
}
frame 6 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('0b4467ee', this, 10301, true);
mochi.as2.MochiServices.connect('05eac285b5d35997');
Stage.showMenu = false;
saveData = SharedObject.getLocal('DeepGameData');
_root.resetFrame = false;
_root.pause = 0;
_root.deep = 0;
_root.over = 0;
_root.bombTimer = 0;
_root.bonusTimer = 0;
_root.mute = 0;
_root.music = 0;
_root.suitPrice1 = 50;
_root.suitPrice2 = 250;
_root.suitPrice3 = 500;
_root.suitPrice4 = 1000;
_root.healthPrice1 = 500;
_root.healthPrice2 = 1000;
_root.healthPrice3 = 1500;
_root.healthPrice4 = 2000;
_root.oxygenPrice1 = 500;
_root.oxygenPrice2 = 1000;
_root.oxygenPrice3 = 1500;
_root.oxygenPrice4 = 2000;
_root.weaponPrice1 = 500;
_root.weaponPrice2 = 1000;
_root.weaponPrice3 = 1500;
_root.weaponPrice4 = 2000;
_root.lightPrice1 = 500;
_root.lightPrice2 = 1000;
_root.lightPrice3 = 1500;
_root.lightPrice4 = 2000;
}
movieClip 38 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 44 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 50 {
}
movieClip 52 {
}
movieClip 54 {
}
movieClip 56 {
}
movieClip 58 {
}
movieClip 60 {
}
movieClip 63 {
}
movieClip 65 gameCompleteText {
#initclip
Object.registerClass('gameCompleteText', gameCompleteText);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 67 {
}
movieClip 69 {
}
movieClip 71 yes {
}
movieClip 73 no {
}
movieClip 75 {
}
movieClip 77 {
}
movieClip 80 {
}
movieClip 81 moreGamesInSubmit {
}
movieClip 83 {
}
movieClip 85 backToMenuButton {
}
movieClip 87 inGameMenuButton {
}
movieClip 91 {
}
movieClip 92 mainMenuButtonInGame {
frame 1 {
stop();
}
}
movieClip 94 {
}
movieClip 97 {
}
movieClip 100 {
}
movieClip 103 {
}
movieClip 106 {
}
movieClip 108 {
}
movieClip 111 {
}
movieClip 112 {
}
movieClip 113 {
}
movieClip 116 {
frame 1 {
if (_root.arms > 1) {
gotoAndPlay(_root.arms);
}
if (_root.arms == 1) {
stop();
}
}
frame 2 {
stop();
}
}
movieClip 120 {
frame 1 {
gotoAndStop(_root.body);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 124 {
}
movieClip 126 {
frame 1 {
gotoAndStop(_root.legs);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 130 {
frame 1 {
gotoAndStop(_root.legs);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 132 {
}
movieClip 137 {
}
movieClip 139 {
}
movieClip 141 {
}
movieClip 142 {
frame 1 {
if (_root.head == 1) {
stop();
}
if (_root.head > 1) {
gotoAndPlay(_root.head);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 147 {
frame 1 {
gotoAndStop(_root.baloon);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 152 spear {
frame 1 {
gotoAndStop(_root.weapon);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 153 {
}
movieClip 154 {
}
movieClip 157 {
}
movieClip 159 {
}
movieClip 161 {
}
movieClip 163 {
}
movieClip 164 {
}
movieClip 167 {
}
movieClip 168 healthBonus {
#initclip
Object.registerClass('healthBonus', healthBonus);
#endinitclip
}
movieClip 170 {
}
movieClip 171 moneyBonus500 {
#initclip
Object.registerClass('moneyBonus500', moneyBonus500);
#endinitclip
}
movieClip 173 {
}
movieClip 174 oxygenBonus {
#initclip
Object.registerClass('oxygenBonus', oxygenBonus);
#endinitclip
}
movieClip 176 {
}
movieClip 177 weaponBonus {
#initclip
Object.registerClass('weaponBonus', weaponBonus);
#endinitclip
}
movieClip 179 {
}
movieClip 180 {
}
movieClip 181 {
}
movieClip 182 InGameInststructions {
frame 21 {
stop();
}
}
// unknown tag 88 length 32
movieClip 186 {
}
movieClip 187 {
frame 1 {
stop();
}
frame 120 {
stop();
}
}
movieClip 189 {
}
movieClip 191 {
}
movieClip 193 {
}
movieClip 195 goldAchievementScreen {
}
movieClip 196 goldAchievement {
frame 1 {
stop();
}
}
movieClip 198 Twitterinto {
}
movieClip 200 FBinto {
}
movieClip 202 {
}
movieClip 204 {
}
movieClip 207 {
frame 1 {
stop();
}
}
movieClip 209 {
}
movieClip 211 {
}
movieClip 212 {
}
movieClip 214 {
}
movieClip 216 {
}
movieClip 218 {
}
movieClip 220 {
}
movieClip 222 {
}
movieClip 224 {
}
movieClip 226 {
}
movieClip 228 loaderLine {
}
movieClip 230 loader {
}
movieClip 233 {
}
movieClip 235 {
}
movieClip 238 {
}
movieClip 242 {
}
movieClip 244 {
}
movieClip 245 {
}
movieClip 246 {
}
movieClip 252 {
}
movieClip 253 jellyBlueAchievementScreenLogo {
frame 1 {
stop();
}
}
movieClip 254 afAchievementScreen {
frame 1 {
stop();
}
}
movieClip 255 firstBloodAchievementScreen {
frame 1 {
stop();
}
}
movieClip 256 goldMinerAchivementScreen {
frame 1 {
stop();
}
}
movieClip 258 {
}
movieClip 260 {
}
movieClip 262 {
}
movieClip 264 {
}
movieClip 266 {
}
movieClip 268 {
}
movieClip 270 {
}
movieClip 272 {
}
movieClip 273 {
}
movieClip 274 {
}
movieClip 280 {
}
movieClip 282 angerFishAchievementScreen {
}
movieClip 284 jellyBlueAchievementScreen {
}
movieClip 285 angerFishScreen {
frame 1 {
stop();
}
}
movieClip 286 jellyBlue {
frame 1 {
stop();
}
}
movieClip 287 {
}
movieClip 288 jellyfishBlue {
#initclip
Object.registerClass('jellyfishBlue', jellyfishBlue);
#endinitclip
}
movieClip 289 angerFish {
#initclip
Object.registerClass('angerFish', angerFish);
#endinitclip
frame 50 {
gotoAndPlay(1);
}
frame 51 {
gotoAndPlay(52);
}
frame 100 {
stop();
}
}
movieClip 291 {
}
movieClip 293 closeButtonInst {
}
movieClip 296 BGamesButton {
}
movieClip 297 BGamesButtonGamePlay {
}
movieClip 300 twitter {
frame 1 {
stop();
}
}
movieClip 303 faceBook {
frame 1 {
stop();
}
}
movieClip 305 {
}
movieClip 307 {
}
movieClip 309 {
}
movieClip 311 {
}
movieClip 313 description_8 {
}
movieClip 314 description_9 {
}
movieClip 316 description_11 {
}
movieClip 322 description_10 {
}
movieClip 323 description_7 {
}
movieClip 324 description_12 {
}
movieClip 325 description_6 {
}
movieClip 327 {
}
movieClip 328 description_5 {
}
movieClip 330 {
}
movieClip 332 skatAchievementLogo {
}
movieClip 334 {
}
movieClip 335 description_4 {
}
movieClip 338 {
}
movieClip 340 {
}
movieClip 341 sharkWhiteAchievementLogo {
}
movieClip 342 description_3 {
}
movieClip 345 {
}
movieClip 346 description_2 {
}
movieClip 348 jellyLegs {
}
movieClip 350 jellyHead {
}
movieClip 351 {
}
movieClip 352 description_1 {
}
movieClip 354 {
}
movieClip 356 {
}
movieClip 358 {
}
movieClip 360 {
}
movieClip 362 {
}
movieClip 364 pausedFlash {
}
movieClip 368 inGameMoreGamesButton {
frame 1 {
stop();
}
}
movieClip 371 instructionsRed {
}
movieClip 372 inGameMenuInstructionsButton {
frame 1 {
stop();
}
}
movieClip 375 inGameMenuPlayButton {
frame 1 {
stop();
}
}
movieClip 379 inGameMusicButton {
frame 1 {
if (_root.music == 0) {
stop();
}
if (_root.music == 1) {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 383 inGameMuteButton {
frame 1 {
if (_root.mute == 0) {
stop();
}
if (_root.mute == 1) {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 384 paused {
#initclip
Object.registerClass('paused', paused);
#endinitclip
}
movieClip 386 {
}
movieClip 388 soundOFF {
}
movieClip 390 soundOn {
}
movieClip 393 {
}
movieClip 395 {
}
movieClip 396 newRecord {
frame 1 {
stop();
}
}
movieClip 398 CloseButton {
}
movieClip 399 gameInst {
}
movieClip 400 inGameInst {
#initclip
Object.registerClass('inGameInst', inGameInst);
#endinitclip
frame 1 {
if (_root.nudeDivingAchievement == 0) {
gotoAndPlay(2);
} else {
stop();
}
}
frame 21 {
stop();
}
frame 42 {
stop();
}
}
movieClip 402 {
}
movieClip 405 {
}
movieClip 407 {
}
movieClip 409 {
}
movieClip 411 deeper {
}
movieClip 413 deep {
}
movieClip 425 logo {
frame 55 {
stop();
}
}
movieClip 427 {
}
movieClip 429 {
}
movieClip 432 creditsButton {
frame 1 {
stop();
}
}
movieClip 435 controls {
frame 1 {
stop();
}
}
movieClip 437 blueFader {
#initclip
Object.registerClass('blueFader', blueFader);
#endinitclip
}
movieClip 439 menuFader {
#initclip
Object.registerClass('menuFader', menuFader);
#endinitclip
}
movieClip 441 shopBorder {
#initclip
Object.registerClass('shopBorder', shopBorder);
#endinitclip
}
movieClip 445 {
}
movieClip 446 menuPlayButton {
frame 1 {
stop();
}
}
movieClip 449 {
}
movieClip 451 menuBGamesButton {
frame 1 {
stop();
}
}
movieClip 453 GameMuteButton {
frame 1 {
if (_root.mute == 0) {
stop();
}
if (_root.mute == 1) {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 455 GameMusicButton {
frame 1 {
if (_root.music == 0) {
stop();
}
if (_root.music == 1) {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 457 {
}
movieClip 459 {
}
movieClip 460 ShopWeapon4 {
}
movieClip 462 {
}
movieClip 464 {
}
movieClip 465 ShopWeapon3 {
}
movieClip 466 {
}
movieClip 468 {
}
movieClip 469 ShopWeapon2 {
}
movieClip 470 {
}
movieClip 472 {
}
movieClip 473 ShopWeapon1 {
}
movieClip 475 {
}
movieClip 476 ShopLight4 {
}
movieClip 478 {
}
movieClip 479 ShopLight3 {
}
movieClip 481 {
}
movieClip 482 ShopLight2 {
}
movieClip 484 {
}
movieClip 485 ShopLight1 {
}
movieClip 487 {
}
movieClip 488 ShopOxygen4 {
}
movieClip 490 {
}
movieClip 491 ShopOxygen3 {
}
movieClip 493 {
}
movieClip 494 ShopOxygen2 {
}
movieClip 496 {
}
movieClip 497 ShopOxygen1 {
}
movieClip 499 {
}
movieClip 500 ShopHealth4 {
}
movieClip 502 {
}
movieClip 503 ShopHealth3 {
}
movieClip 505 {
}
movieClip 506 ShopHealth2 {
}
movieClip 508 {
}
movieClip 509 ShopHealth1 {
}
movieClip 512 50gold {
}
movieClip 514 {
}
movieClip 515 ShopSuit1 {
}
movieClip 516 200gold {
}
movieClip 518 {
}
movieClip 519 ShopSuit2 {
}
movieClip 522 {
}
movieClip 523 ShopSuit4 {
}
movieClip 525 {
}
movieClip 526 ShopSuit3 {
}
movieClip 528 {
}
movieClip 529 + {
}
movieClip 530 plusMoney100 {
#initclip
Object.registerClass('plusMoney100', plus);
#endinitclip
}
movieClip 531 plusMoney250 {
#initclip
Object.registerClass('plusMoney250', plus);
#endinitclip
}
movieClip 532 plusMoney500 {
#initclip
Object.registerClass('plusMoney500', plus);
#endinitclip
}
movieClip 533 plusWeapon {
#initclip
Object.registerClass('plusWeapon', plus);
#endinitclip
}
movieClip 535 +oxygen {
}
movieClip 536 plusOxygen {
#initclip
Object.registerClass('plusOxygen', plus);
#endinitclip
}
movieClip 537 lowOxygen {
#initclip
Object.registerClass('lowOxygen', plus);
#endinitclip
}
movieClip 539 +health {
}
movieClip 540 plusHealth {
#initclip
Object.registerClass('plusHealth', plus);
#endinitclip
}
movieClip 541 lowHealth {
#initclip
Object.registerClass('lowHealth', plus);
#endinitclip
}
movieClip 544 GamePauseButton {
frame 1 {
if (_root.pause == 0) {
stop();
}
if (_root.pause == 1) {
gotoAndStop(2);
}
}
frame 2 {
stop();
}
}
movieClip 547 redPlay {
}
movieClip 548 playAfterButton {
}
movieClip 550 pauseSymbol {
}
movieClip 552 {
}
movieClip 554 {
}
movieClip 556 playAgainRed {
}
movieClip 558 shopRed {
}
movieClip 560 {
}
movieClip 562 {
}
movieClip 564 {
}
movieClip 566 blue {
}
movieClip 568 deepSea {
}
movieClip 570 {
}
movieClip 572 {
}
movieClip 574 {
}
movieClip 575 ShopButton {
}
movieClip 577 submitButton {
}
movieClip 582 {
}
movieClip 584 {
}
movieClip 587 {
}
movieClip 588 {
}
movieClip 590 {
}
movieClip 591 skatKill {
frame 1 {
stop();
}
}
movieClip 592 SharkWhiteKill {
frame 1 {
stop();
}
}
movieClip 594 {
}
movieClip 597 {
}
movieClip 599 {
}
movieClip 602 {
}
movieClip 604 {
}
movieClip 607 {
}
movieClip 609 {
}
movieClip 612 {
}
movieClip 615 {
}
movieClip 618 {
}
movieClip 621 {
}
movieClip 624 {
}
movieClip 625 M300AchievementScreen {
frame 1 {
stop();
}
}
movieClip 626 M200AchievementScreen {
frame 1 {
stop();
}
}
movieClip 627 {
frame 1 {
stop();
}
}
movieClip 628 nudeDivingAchievementScreen {
frame 1 {
stop();
}
}
movieClip 629 skatAchievementScree {
frame 1 {
stop();
}
}
movieClip 630 sharkBlackAchievementScreen {
frame 1 {
stop();
}
}
movieClip 631 jellyAchievementScreen {
frame 1 {
stop();
}
}
movieClip 632 sharkWhiteAchievementScreen {
frame 1 {
stop();
}
}
movieClip 635 shopSea {
#initclip
Object.registerClass('shopSea', shopSea);
#endinitclip
}
movieClip 638 100MAchievement {
#initclip
Object.registerClass('100MAchievement', data);
#endinitclip
frame 1 {
if (_root.M100Achievement == 0) {
stop();
}
if (_root.M100Achievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 641 200MAchievement {
#initclip
Object.registerClass('200MAchievement', data);
#endinitclip
frame 1 {
if (_root.M200Achievement == 0) {
stop();
}
if (_root.M200Achievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 643 300MAchievement {
#initclip
Object.registerClass('300MAchievement', data);
#endinitclip
frame 1 {
if (_root.M300Achievement == 0) {
stop();
}
if (_root.M300Achievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 646 NDAchievement {
#initclip
Object.registerClass('NDAchievement', data);
#endinitclip
frame 1 {
if (_root.nudeDivingAchievement == 0) {
stop();
}
if (_root.nudeDivingAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 648 FBAchievement {
frame 1 {
if (_root.FirstBloodAchievement == 0) {
stop();
}
if (_root.FirstBloodAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 650 GMAchievement {
frame 1 {
if (_root.GoldMinerAchivement == 0) {
stop();
}
if (_root.GoldMinerAchivement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 652 FBchievement {
frame 1 {
if (_root.nudeDivingAchievement == 0) {
stop();
}
if (_root.nudeDivingAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 655 JFAButton {
#initclip
Object.registerClass('JFAButton', data);
#endinitclip
frame 1 {
if (_root.jellyAchievement == 0) {
stop();
}
if (_root.jellyAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 657 SAButton {
#initclip
Object.registerClass('SAButton', data);
#endinitclip
frame 1 {
if (_root.skatAchievement == 0) {
stop();
}
if (_root.skatAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 659 JFBButton {
frame 1 {
if (_root.jellyBlueAchievement == 0) {
stop();
}
if (_root.jellyBlueAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 661 AFButton {
frame 1 {
if (_root.AFAchievement == 0) {
stop();
}
if (_root.AFAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 663 SBAButton {
#initclip
Object.registerClass('SBAButton', data);
#endinitclip
frame 1 {
if (_root.sharkBlackAchievement == 0) {
stop();
}
if (_root.sharkBlackAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 665 SWAButton {
#initclip
Object.registerClass('SWAButton', data);
#endinitclip
frame 1 {
if (_root.sharkWhiteAchievement == 0) {
stop();
}
if (_root.sharkWhiteAchievement > 0) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 668 {
}
movieClip 673 weapon4 {
#initclip
Object.registerClass('weapon4', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 675 {
}
movieClip 679 weapon3 {
#initclip
Object.registerClass('weapon3', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 682 {
}
movieClip 686 weapon2 {
#initclip
Object.registerClass('weapon2', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 690 weapon1 {
#initclip
Object.registerClass('weapon1', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 694 oxygen4 {
#initclip
Object.registerClass('oxygen4', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 698 oxygen3 {
#initclip
Object.registerClass('oxygen3', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 702 oxygen2 {
#initclip
Object.registerClass('oxygen2', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 706 oxygen1 {
#initclip
Object.registerClass('oxygen1', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 710 health4 {
#initclip
Object.registerClass('health4', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 714 health3 {
#initclip
Object.registerClass('health3', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 718 health2 {
#initclip
Object.registerClass('health2', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 722 health1 {
#initclip
Object.registerClass('health1', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 724 {
}
movieClip 727 {
}
movieClip 730 suit2 {
#initclip
Object.registerClass('suit2', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 732 suit1 {
#initclip
Object.registerClass('suit1', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 734 {
}
movieClip 736 suit3 {
#initclip
Object.registerClass('suit3', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 739 {
}
movieClip 741 suit4 {
#initclip
Object.registerClass('suit4', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 744 {
}
movieClip 746 {
}
movieClip 749 light1 {
#initclip
Object.registerClass('light1', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 754 light2 {
#initclip
Object.registerClass('light2', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 757 {
}
movieClip 760 light3 {
#initclip
Object.registerClass('light3', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 765 light4 {
#initclip
Object.registerClass('light4', data);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 767 sharkBlackAchievement {
}
movieClip 768 SharkBlack {
frame 1 {
stop();
}
}
movieClip 770 jellyAchievement {
}
movieClip 771 Jelly {
frame 1 {
stop();
}
}
movieClip 773 {
}
movieClip 775 {
}
movieClip 777 {
}
movieClip 779 sharkWhiteGlow {
}
movieClip 781 {
}
movieClip 783 {
}
movieClip 784 skat {
#initclip
Object.registerClass('skat', skat);
#endinitclip
frame 60 {
gotoAndPlay(1);
}
frame 61 {
gotoAndPlay(62);
}
frame 110 {
stop();
}
}
movieClip 785 jellyFishGlow {
}
movieClip 786 jellyfish {
#initclip
Object.registerClass('jellyfish', jellyfish);
#endinitclip
frame 40 {
stop();
}
}
movieClip 788 {
}
movieClip 789 blood {
#initclip
Object.registerClass('blood', blood);
#endinitclip
}
movieClip 791 {
}
movieClip 793 introFader {
#initclip
Object.registerClass('introFader', introFader);
#endinitclip
}
movieClip 794 outroFader {
#initclip
Object.registerClass('outroFader', outroFader);
#endinitclip
}
movieClip 795 blackFader {
}
movieClip 797 playButton {
}
movieClip 799 pause {
frame 1 {
stop();
}
}
movieClip 800 menuButton {
}
movieClip 801 hintButton {
}
movieClip 802 clearDataButton {
}
movieClip 803 {
}
movieClip 804 suit_1 {
}
movieClip 805 suit_2 {
}
movieClip 806 suit_3 {
}
movieClip 811 {
}
movieClip 814 {
}
movieClip 815 shark {
#initclip
Object.registerClass('shark', shark);
#endinitclip
frame 50 {
gotoAndPlay(1);
}
frame 51 {
gotoAndPlay(52);
}
frame 100 {
stop();
}
}
movieClip 816 sharkWhite {
#initclip
Object.registerClass('sharkWhite', sharkWhite);
#endinitclip
frame 50 {
gotoAndPlay(1);
}
frame 51 {
gotoAndPlay(52);
}
frame 100 {
stop();
}
}
movieClip 817 archer {
#initclip
Object.registerClass('archer', archer);
#endinitclip
}
movieClip 819 archerScreen {
}
movieClip 821 {
}
movieClip 823 {
}
movieClip 825 deepCursor {
}
movieClip 827 {
}
movieClip 829 {
}
movieClip 831 {
}
movieClip 833 {
}
movieClip 835 {
}
movieClip 837 {
}
movieClip 839 {
}
movieClip 840 moneyBonus250 {
#initclip
Object.registerClass('moneyBonus250', moneyBonus250);
#endinitclip
}
movieClip 841 moneyBonus100 {
#initclip
Object.registerClass('moneyBonus100', moneyBonus100);
#endinitclip
}
movieClip 843 {
}
movieClip 845 {
}
movieClip 847 {
}
movieClip 848 {
}
movieClip 853 fader {
#initclip
Object.registerClass('fader', fader);
#endinitclip
frame 1 {
gotoAndPlay(_root.light);
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 855 waterAlpha {
#initclip
Object.registerClass('waterAlpha', waterAlpha);
#endinitclip
}
movieClip 857 {
}
movieClip 858 bombBlock {
#initclip
Object.registerClass('bombBlock', bombBlock);
#endinitclip
}
movieClip 859 sharkBlock {
#initclip
Object.registerClass('sharkBlock', sharkBlock);
#endinitclip
}
movieClip 860 archerBlock {
#initclip
Object.registerClass('archerBlock', archerBlock);
#endinitclip
}
movieClip 861 bonusBlock {
#initclip
Object.registerClass('bonusBlock', bonusBlock);
#endinitclip
}
movieClip 865 man {
frame 1 {
if (_root.manHead == 1) {
stop();
}
if (_root.manHead == 2) {
gotoAndPlay(2);
}
}
frame 2 {
stop();
}
}
movieClip 867 ship {
frame 1 {
stop();
}
frame 10 {
stop();
}
}
movieClip 868 shipMove {
}
movieClip 870 {
}
movieClip 872 {
}
movieClip 891 water {
#initclip
Object.registerClass('water', water);
#endinitclip
}
movieClip 892 borderRight {
#initclip
Object.registerClass('borderRight', borderRight);
#endinitclip
}
movieClip 893 borderLeft {
#initclip
Object.registerClass('borderLeft', borderLeft);
#endinitclip
}
movieClip 894 manSwim {
#initclip
Object.registerClass('manSwim', manSwim);
#endinitclip
frame 1 {
stop();
}
}
movieClip 896 o2 {
#initclip
Object.registerClass('o2', o2);
#endinitclip
}
movieClip 898 oxygen {
#initclip
Object.registerClass('oxygen', oxygen);
#endinitclip
}
movieClip 900 {
}
movieClip 901 waterBomb {
#initclip
Object.registerClass('waterBomb', waterBomb);
#endinitclip
frame 1 {
stop();
}
}
movieClip 907 moose_eyes {
}
movieClip 909 {
}
movieClip 911 {
frame 1 {
stop();
}
}
movieClip 913 {
}
movieClip 914 inst {
#initclip
Object.registerClass('inst', inst);
#endinitclip
}
frame 7 {
if (_root.resetFrame == true) {
saveData.clear();
}
if (saveData.data.velocity == undefined) {
_root.velocity = 4;
_root.manVelocityMax = 5;
_root.accelerate = 1;
_root.legs = 1;
_root.body = 1;
_root.arms = 1;
_root.light = 1;
_root.oxygen = 100;
_root.oxygenLow = 8;
_root.head = 1;
_root.health = 100;
_root.money = 0;
_root.baloon = 1;
_root.weapon = 1;
_root.archerRemover = 0;
_root.blodTimer = 0;
_root.archer = 0;
_root.jellyKill = 0;
_root.sharkBlackKill = 0;
_root.sharkWhiteKill = 0;
_root.skatKill = 0;
_root.jellyBlueKill = 0;
_root.angerFishKill = 0;
_root.manHead = 1;
_root.jellyAchievement = 0;
_root.sharkBlackAchievement = 0;
_root.sharkWhiteAchievement = 0;
_root.skatAchievement = 0;
_root.nudeDivingAchievement = 0;
_root.M100Achievement = 0;
_root.M200Achievement = 0;
_root.M300Achievement = 0;
_root.M600Achievement = 0;
_root.dayNumber = 0;
_root.gameComplete = false;
_root.ownRecord = 0;
_root.bestRecord = 0;
_root.suit = 1;
_root.healthControl = 1;
_root.oxygenControl = 1;
_root.weaponControl = 1;
_root.lightControl = 1;
_root.AFAchievement = 0;
_root.jellyBlueAchievement = 0;
_root.FirstBloodAchievement = 0;
_root.GoldMinerAchivement = 0;
} else {
_root.velocity = saveData.data.velocity;
_root.manVelocityMax = saveData.data.manVelocityMax;
_root.accelerate = saveData.data.accelerate;
_root.legs = saveData.data.legs;
_root.body = saveData.data.body;
_root.arms = saveData.data.arms;
_root.light = saveData.data.light;
_root.oxygen = saveData.data.oxygen;
_root.oxygenLow = saveData.data.oxygenLow;
_root.head = saveData.data.head;
_root.health = saveData.data.health;
_root.money = saveData.data.money;
_root.baloon = saveData.data.baloon;
_root.weapon = saveData.data.weapon;
_root.archerRemover = saveData.data.archerRemover;
_root.blodTimer = saveData.data.blodTimer;
_root.archer = saveData.data.archer;
_root.jellyKill = saveData.data.jellyKill;
_root.sharkBlackKill = saveData.data.sharkBlackKill;
_root.sharkWhiteKill = saveData.data.sharkWhiteKill;
_root.skatKill = saveData.data.skatKill;
_root.jellyBlueKill = saveData.data.jellyBlueKill;
_root.angerFishKill = saveData.data.angerFishKill;
_root.manHead = saveData.data.manHead;
_root.jellyAchievement = saveData.data.jellyAchievement;
_root.sharkBlackAchievement = saveData.data.sharkBlackAchievement;
_root.sharkWhiteAchievement = saveData.data.sharkWhiteAchievement;
_root.skatAchievement = saveData.data.skatAchievement;
_root.nudeDivingAchievement = saveData.data.nudeDivingAchievement;
_root.M100Achievement = saveData.data.M100Achievement;
_root.M200Achievement = saveData.data.M200Achievement;
_root.M300Achievement = saveData.data.M300Achievement;
_root.M600Achievement = saveData.data.M600Achievement;
_root.dayNumber = saveData.data.dayNumber;
_root.gameComplete = saveData.data.gameComplete;
_root.ownRecord = saveData.data.ownRecord;
_root.bestRecord = saveData.data.bestRecord;
_root.suit = saveData.data.suit;
_root.healthControl = saveData.data.healthControl;
_root.oxygenControl = saveData.data.oxygenControl;
_root.weaponControl = saveData.data.weaponControl;
_root.lightControl = saveData.data.lightControl;
_root.AFAchievement = saveData.data.AFAchievement;
_root.jellyBlueAchievement = saveData.data.jellyBlueAchievement;
_root.FirstBloodAchievement = saveData.data.FirstBloodAchievement;
_root.GoldMinerAchivement = saveData.data.GoldMinerAchivement;
}
if (_root.resetFrame == true) {
_root.resetFrame = false;
_root.gotoAndPlay('shopFrame');
} else {
_root.gotoAndPlay('menuFrame');
}
}
frame 8 {
stop();
}
movieClip 915 mainMenu {
#initclip
Object.registerClass('mainMenu', mainMenu);
#endinitclip
}
frame 9 {
stop();
}
frame 10 {
stop();
}
movieClip 920 {
}
movieClip 922 developed {
}
movieClip 924 musicFrom {
}
movieClip 926 {
}
movieClip 927 credits {
#initclip
Object.registerClass('credits', credits);
#endinitclip
}
frame 11 {
stop();
}
movieClip 929 stats {
#initclip
Object.registerClass('stats', stats);
#endinitclip
frame 1 {
stop();
}
}
frame 12 {
saveData.data.velocity = _root.velocity;
saveData.data.manVelocityMax = _root.manVelocityMax;
saveData.data.accelerate = _root.accelerate;
saveData.data.legs = _root.legs;
saveData.data.body = _root.body;
saveData.data.arms = _root.arms;
saveData.data.light = _root.light;
saveData.data.oxygen = _root.oxygen;
saveData.data.oxygenLow = _root.oxygenLow;
saveData.data.head = _root.head;
saveData.data.health = _root.health;
saveData.data.money = _root.money;
saveData.data.baloon = _root.baloon;
saveData.data.weapon = _root.weapon;
saveData.data.archerRemover = _root.archerRemover;
saveData.data.blodTimer = _root.blodTimer;
saveData.data.archer = _root.archer;
saveData.data.jellyKill = _root.jellyKill;
saveData.data.sharkBlackKill = _root.sharkBlackKill;
saveData.data.sharkWhiteKill = _root.sharkWhiteKill;
saveData.data.skatKill = _root.skatKill;
saveData.data.manHead = _root.manHead;
saveData.data.jellyAchievement = _root.jellyAchievement;
saveData.data.sharkBlackAchievement = _root.sharkBlackAchievement;
saveData.data.sharkWhiteAchievement = _root.sharkWhiteAchievement;
saveData.data.skatAchievement = _root.skatAchievement;
saveData.data.nudeDivingAchievement = _root.nudeDivingAchievement;
saveData.data.M100Achievement = _root.M100Achievement;
saveData.data.M200Achievement = _root.M200Achievement;
saveData.data.M300Achievement = _root.M300Achievement;
saveData.data.dayNumber = _root.dayNumber;
saveData.data.gameComplete = _root.gameComplete;
saveData.data.ownRecord = _root.ownRecord;
saveData.data.bestRecord = _root.bestRecord;
saveData.data.suit = _root.suit;
saveData.data.healthControl = _root.healthControl;
saveData.data.oxygenControl = _root.oxygenControl;
saveData.data.weaponControl = _root.weaponControl;
saveData.data.lightControl = _root.lightControl;
saveData.data.jellyBlueKill = _root.jellyBlueKill;
saveData.data.angerFishKill = _root.angerFishKill;
saveData.data.AFAchievement = _root.AFAchievement;
saveData.data.jellyBlueAchievement = _root.jellyBlueAchievement;
saveData.data.FirstBloodAchievement = _root.FirstBloodAchievement;
saveData.data.GoldMinerAchivement = _root.GoldMinerAchivement;
stop();
}
movieClip 930 start {
#initclip
Object.registerClass('start', start);
#endinitclip
}
movieClip 931 gameplay {
#initclip
Object.registerClass('gameplay', gameplay);
#endinitclip
}
movieClip 936 meter {
}
frame 13 {
saveData.data.jellyAchievement = _root.jellyAchievement;
saveData.data.sharkBlackAchievement = _root.sharkBlackAchievement;
saveData.data.sharkWhiteAchievement = _root.sharkWhiteAchievement;
saveData.data.skatAchievement = _root.skatAchievement;
saveData.data.nudeDivingAchievement = _root.nudeDivingAchievement;
saveData.data.M100Achievement = _root.M100Achievement;
saveData.data.M200Achievement = _root.M200Achievement;
saveData.data.M300Achievement = _root.M300Achievement;
saveData.data.M600Achievement = _root.M600Achievement;
saveData.data.dayNumber = _root.dayNumber;
saveData.data.gameComplete = _root.gameComplete;
saveData.data.ownRecord = _root.ownRecord;
saveData.data.bestRecord = _root.bestRecord;
saveData.data.money = _root.money;
saveData.data.jellyBlueKill = _root.jellyBlueKill;
saveData.data.angerFishKill = _root.angerFishKill;
saveData.data.AFAchievement = _root.AFAchievement;
saveData.data.jellyBlueAchievement = _root.jellyBlueAchievement;
saveData.data.FirstBloodAchievement = _root.FirstBloodAchievement;
saveData.data.GoldMinerAchivement = _root.GoldMinerAchivement;
stop();
}
movieClip 941 ownStats {
#initclip
Object.registerClass('ownStats', ownStats);
#endinitclip
}
frame 14 {
saveData.data.velocity = _root.velocity;
saveData.data.manVelocityMax = _root.manVelocityMax;
saveData.data.accelerate = _root.accelerate;
saveData.data.legs = _root.legs;
saveData.data.body = _root.body;
saveData.data.arms = _root.arms;
saveData.data.light = _root.light;
saveData.data.oxygen = _root.oxygen;
saveData.data.oxygenLow = _root.oxygenLow;
saveData.data.head = _root.head;
saveData.data.health = _root.health;
saveData.data.money = _root.money;
saveData.data.baloon = _root.baloon;
saveData.data.weapon = _root.weapon;
saveData.data.archerRemover = _root.archerRemover;
saveData.data.blodTimer = _root.blodTimer;
saveData.data.archer = _root.archer;
saveData.data.jellyKill = _root.jellyKill;
saveData.data.sharkBlackKill = _root.sharkBlackKill;
saveData.data.sharkWhiteKill = _root.sharkWhiteKill;
saveData.data.skatKill = _root.skatKill;
saveData.data.manHead = _root.manHead;
saveData.data.jellyAchievement = _root.jellyAchievement;
saveData.data.sharkBlackAchievement = _root.sharkBlackAchievement;
saveData.data.sharkWhiteAchievement = _root.sharkWhiteAchievement;
saveData.data.skatAchievement = _root.skatAchievement;
saveData.data.nudeDivingAchievement = _root.nudeDivingAchievement;
saveData.data.M100Achievement = _root.M100Achievement;
saveData.data.M200Achievement = _root.M200Achievement;
saveData.data.M300Achievement = _root.M300Achievement;
saveData.data.M600Achievement = _root.M600Achievement;
saveData.data.dayNumber = _root.dayNumber;
saveData.data.gameComplete = _root.gameComplete;
saveData.data.ownRecord = _root.ownRecord;
saveData.data.bestRecord = _root.bestRecord;
saveData.data.suit = _root.suit;
saveData.data.healthControl = _root.healthControl;
saveData.data.oxygenControl = _root.oxygenControl;
saveData.data.weaponControl = _root.weaponControl;
saveData.data.lightControl = _root.lightControl;
saveData.data.jellyBlueKill = _root.jellyBlueKill;
saveData.data.angerFishKill = _root.angerFishKill;
saveData.data.AFAchievement = _root.AFAchievement;
saveData.data.jellyBlueAchievement = _root.jellyBlueAchievement;
saveData.data.FirstBloodAchievement = _root.FirstBloodAchievement;
saveData.data.GoldMinerAchivement = _root.GoldMinerAchivement;
stop();
}
movieClip 945 shop {
#initclip
Object.registerClass('shop', shop);
#endinitclip
}
movieClip 947 clearDataOK {
#initclip
Object.registerClass('clearDataOK', clearDataOK);
#endinitclip
}