STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
228126
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2561 · P5121

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/58776088?noj=FRM58776088-13DC" width="1" height="1"></div>

Swim Mr. Fish - collect coins and dodge rocks in this fun game.swf

This is the info page for
Flash #90242

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
frame 1 { stop(); mochi.as2.MochiServices.connect('8f316dfce85ae22e'); percent = 0; loader._xscale = 0; loader._x = 200; loaded.text = ''; loadtext = ''; } movieClip 8 { } movieClip 19 { } movieClip 26 { } movieClip 31 { } movieClip 33 { } movieClip 35 { } movieClip 38 { } movieClip 42 { } // unknown tag 88 length 68 movieClip 48 { } movieClip 50 { } movieClip 52 { } movieClip 54 { } movieClip 57 { } button 58 { on (release) { getURL('http://www.maxgames.com/', '_blank'); } } movieClip 60 { } movieClip 62 { } movieClip 64 { } // unknown tag 88 length 69 button 69 { on (press) { _root.play(); } } movieClip 70 { frame 1 { function loading() { if (_root.getBytesLoaded() / _root.getBytesTotal() >= 1) { play(); loadLeft.text = '0'; loadBar.scaleX = 1; delete this.onEnterFrame; loadLeft.text = '0'; loadBar._xscale = 100; } else { loadBar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; loadLeft.text = String(Math.ceil((_root.getBytesTotal() - _root.getBytesLoaded()) / 100000) / 10); } } _root.stop(); stop(); this.onEnterFrame = loading; } frame 40 { stop(); } } movieClip 344 __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 345 __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 346 __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 347 __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 348 __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 349 __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 350 __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 } frame 2 { 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; } stop(); __com_mochibot__('f5cbafe5', this, 10301, true); playS = true; playG = true; tiger = new Sound(this); tiger.attachSound('tiger'); tiger.start(1.2, 1); hcSound = new Sound(this); hcSound.attachSound('hcsound'); boomSound = new Sound(this); boomSound.attachSound('boom'); sqkSound = new Sound(this); sqkSound.attachSound('sqk'); pingSound = new Sound(this); pingSound.attachSound('ping'); bgSound = new Sound(this); bgSound.attachSound('bg'); finalDistance = 0; finalScore = 0; level1 = 1; level2 = 1; level3 = 1; maxAngel = 45; maxTurn = 2.5; maxHealth = 200; firstTimer = false; mySharedObject = SharedObject.getLocal('fishie'); if (mySharedObject.data.score == undefined) { firstTimer = true; mySharedObject.data.score = 1; } else { finalScore = mySharedObject.data.score; } if (mySharedObject.data.dis == undefined) { mySharedObject.data.dis = 1; } else { finalDistance = mySharedObject.data.dis; } mySharedObject.flush(); } movieClip 74 { } movieClip 89 bomb { frame 17 { stop(); } } movieClip 106 { } movieClip 107 coin { } movieClip 110 bubble { } movieClip 113 marker { } movieClip 116 rock1 { } movieClip 119 rock2 { } movieClip 126 { frame 1 { stop(); } frame 2 { stop(); } } movieClip 146 { } movieClip 147 { } movieClip 148 { } movieClip 149 { } movieClip 150 { } movieClip 152 { } movieClip 153 { } movieClip 154 { } movieClip 155 { } movieClip 156 { } movieClip 157 { } movieClip 160 { frame 1 { _root.stop(); } frame 186 { _root.play(); } } instance of movieClip 160 { onClipEvent (release) { getURL('http://www.maxgames.com', '_blank'); } } frame 3 { hcSound.start(0, 1); } movieClip 167 { frame 1 { _parent.stop(); } frame 100 { stop(); _parent.play(); } } frame 4 { stop(); curt = false; allT.removeMovieClip(); curT.removeMovieClip(); gameOver.removeMovieClip(); playButton.onRollOver = function () { playButton.gotoAndStop('Over_state'); }; playButton.onRollOut = function () { playButton.gotoAndStop('Up_state'); }; playButton.onDragOut = function () { playButton.gotoAndStop('Up_state'); }; playButton.onPress = function () { playButton.gotoAndStop('down_state'); }; playButton.onRelease = function () { mochi.as2.MochiEvents.startPlay(); gotoAndStop(7); }; scoresButton.onRollOver = function () { scoresButton.gotoAndStop('Over_state'); }; scoresButton.onRollOut = function () { scoresButton.gotoAndStop('Up_state'); }; scoresButton.onDragOut = function () { scoresButton.gotoAndStop('Up_state'); }; scoresButton.onPress = function () { scoresButton.gotoAndStop('down_state'); }; scoresButton.onRelease = function () { gotoAndStop(5); }; creditButton.onRollOver = function () { creditButton.gotoAndStop('Over_state'); }; creditButton.onRollOut = function () { creditButton.gotoAndStop('Up_state'); }; creditButton.onDragOut = function () { creditButton.gotoAndStop('Up_state'); }; creditButton.onPress = function () { creditButton.gotoAndStop('down_state'); }; creditButton.onRelease = function () { creds.play(); }; moreButton.onRollOver = function () { moreButton.gotoAndStop('Over_state'); }; moreButton.onRollOut = function () { moreButton.gotoAndStop('Up_state'); }; moreButton.onDragOut = function () { moreButton.gotoAndStop('Up_state'); }; moreButton.onPress = function () { moreButton.gotoAndStop('down_state'); }; moreButton.onRelease = function () { getURL('http://www.maxgames.com', '_blank'); }; creds.btn_back.onRollOver = function () { creds.btn_back.gotoAndStop('Over_state'); }; creds.btn_back.onRollOut = function () { creds.btn_back.gotoAndStop('Up_state'); }; creds.btn_back.onDragOut = function () { creds.btn_back.gotoAndStop('Up_state'); }; creds.btn_back.onPress = function () { creds.btn_back.gotoAndStop('down_state'); }; creds.btn_back.onRelease = function () { creds.play(); }; this.onEnterFrame = function () { if (Key.isDown(32) && curt) { gotoAndStop(7); } }; } movieClip 176 { } movieClip 178 { } movieClip 179 { } // unknown tag 88 length 295 movieClip 190 { frame 23 { stop(); } } movieClip 196 { frame 21 { stop(); _parent.curt = true; } } movieClip 201 { frame 21 { stop(); } } instance moreButton of movieClip 201 { onClipEvent (release) { getURL('http://www.maxgames.com', '_blank'); } } movieClip 207 { frame 21 { stop(); } } movieClip 210 { } movieClip 216 { } movieClip 223 { frame 23 { stop(); } } movieClip 224 { frame 1 { stop(); } instance of movieClip 216 { onClipEvent (release) { getURL('http://www.hardcircle.com', '_blank'); } } frame 20 { stop(); btn_back.onRollOver = function () { btn_back.gotoAndStop('Over_state'); }; btn_back.onRollOut = function () { btn_back.gotoAndStop('Up_state'); }; btn_back.onDragOut = function () { btn_back.gotoAndStop('Up_state'); }; btn_back.onPress = function () { btn_back.gotoAndStop('down_state'); }; btn_back.onRelease = function () { play(); }; } frame 40 { gotoAndStop(1); } } movieClip 226 { } movieClip 227 { } movieClip 228 { } movieClip 229 { } movieClip 230 { } instance of movieClip 230 { onClipEvent (release) { getURL('http://www.maxgames.com', '_blank'); } } frame 5 { var o = {'n': [9, 15, 6, 4, 14, 6, 13, 1, 15, 12, 15, 14, 14, 1, 4, 13], 'f': function (i, s) { if (s.length == 16) { return s; } return this.f(i + 1, s + this.n[i].toString(16)); }}; var boardID = o.f(0, ''); mochi.as2.MochiScores.showLeaderboard({'boardID': '9f64e6d1fcfee14d'}); } frame 6 { gotoAndStop(4); } frame 7 { function hit(obj1, obj2) { if ((obj1._x - obj2._x) * (obj1._x - obj2._x) + (obj1._y - obj2._y) * (obj1._y - obj2._y) < (obj1.radius + obj2.radius) * (obj1.radius + obj2.radius)) { return true; } else { return false; } } function spawnMarker(dis) { if (dis > 0 && dis > time) { if (dis < time + 400 / maxSpeed) { attachMovie('marker', 'mark', this.getNextHighestDepth()); mark.stop(); mark._x = 625; mark._y = 380; mark.onEnterFrame = function () { this._x -= maxSpeed; if (this._x < -100) { removeMovieClip(this); delete this.onEnterFrame; } }; marker = false; } } } function spawnBubble() { if (Math.floor(Math.random() * 2) + 1 == 1) { j = -1; i = 0; while (j < 0) { if (bubbleArray[i] == undefined) { j = i; bubbleArray[i] = bindex; } ++i; } attachMovie('bubble', 'bubble' + bindex, this.getNextHighestDepth()); (eval('bubble' + bindex)).stop(); (eval('bubble' + bindex))._x = 120; (eval('bubble' + bindex))._y = fish._y; (eval('bubble' + bindex)).xspeed = 0; (eval('bubble' + bindex)).xdir = -0.2; ++bindex; fish.swapDepths(this.getNextHighestDepth()); } } function spawnCoin() { if (Math.floor(Math.random() * 3) + 1 == 1) { j = -1; i = 0; while (j < 0) { if (coinArray[i] == undefined) { j = i; coinArray[i] = cindex; } ++i; } attachMovie('coin', 'coin' + cindex, this.getNextHighestDepth()); (eval('coin' + cindex)).stop(); (eval('coin' + cindex))._x = Math.random() * 10 + 900; (eval('coin' + cindex))._y = Math.random() * 180 + 120; (eval('coin' + cindex)).radius = 30; ++cindex; fish.swapDepths(this.getNextHighestDepth()); } } function spawnEnemie(sMode) { sMode = Math.floor(Math.random() * sMode) + 1; enemieStatus = 1; if (sMode == 1) { spawnModes = 'rock1'; radius = 25; } else { if (sMode == 2) { spawnModes = 'rock2'; radius = 60; } else { if (sMode == 3) { spawnModes = 'bomb'; enemieStatus = 2; radius = 25; } else { if (sMode == 4) { spawnModes = 'mine'; enemieStatus = 2; radius = 30; } else {} } } } j = -1; i = 0; while (j < 0) { if (enemieArray[i] == undefined) { j = i; enemieArray[i] = index; } ++i; } attachMovie(spawnModes, 'enemie' + index, this.getNextHighestDepth()); (eval('enemie' + index)).stop(); (eval('enemie' + index))._x = Math.random() * 10 + 900; (eval('enemie' + index))._y = Math.random() * 180 + 120; (eval('enemie' + index)).radius = radius; (eval('enemie' + index)).enemieStatus = enemieStatus; ++index; fish.swapDepths(this.getNextHighestDepth()); } stop(); curtt = false; fish.stop(); healthText.gotoAndStop(1); if (playS) { bgSound.start(0, 99); } allT.removeMovieClip(); curT.removeMovieClip(); gameOver.removeMovieClip(); tPoints = 0; points = 0; time = 0; vSound = 100; bgSound.setVolume(vSound); pausemenu._visible = false; resumebutton._visible = false; pauseBtn.stop(); pauseB = false; helpBtn.stop(); helpB = false; musicBtn.stop(); if (playS) { musicB = false; } else { musicB = true; musicBtn.gotoAndStop('down'); } buzz = 0; gfxBtn.stop(); if (playG) { gfxB = false; } else { gfxB = true; gfxBtn.gotoAndStop('down'); } mouseClick2 = false; pauseBtn.onRollOver = function () { if (!pauseB) { this.gotoAndStop('over'); } }; pauseBtn.onRollOut = function () { if (!pauseB) { this.gotoAndStop('Up'); } }; pauseBtn.onDragOut = function () { if (!pauseB) { this.gotoAndStop('Up'); } }; pauseBtn.onPress = function () { if (!pauseB) { this.gotoAndStop('down'); pausing = true; pauseB = true; mouseClick = false; pausemenu.helptext._visible = false; } }; helpBtn.onRollOver = function () { if (!helpB) { this.gotoAndStop('over'); } }; helpBtn.onRollOut = function () { if (!helpB) { this.gotoAndStop('Up'); } }; helpBtn.onDragOut = function () { if (!helpB) { this.gotoAndStop('Up'); } }; helpBtn.onPress = function () { if (!helpB) { this.gotoAndStop('down'); pausing = true; helpB = true; mouseClick = false; pausemenu.helptext._visible = true; } }; musicBtn.onRollOver = function () { if (!musicB) { this.gotoAndStop('over'); } }; musicBtn.onRollOut = function () { if (!musicB) { this.gotoAndStop('Up'); } }; musicBtn.onDragOut = function () { if (!musicB) { this.gotoAndStop('Up'); } }; musicBtn.onPress = function () { if (!musicB) { musicB = true; this.gotoAndStop('down'); playS = false; bgSound.stop('bg'); } else { musicB = false; this.gotoAndStop('Up'); playS = true; bgSound.start(bgSound.position / 1000, 99); } }; gfxBtn.onRollOver = function () { if (!gfxB) { this.gotoAndStop('over'); } }; gfxBtn.onRollOut = function () { if (!gfxB) { this.gotoAndStop('Up'); } }; gfxBtn.onDragOut = function () { if (!gfxB) { this.gotoAndStop('Up'); } }; gfxBtn.onPress = function () { if (!gfxB) { gfxB = true; this.gotoAndStop('down'); playG = false; } else { gfxB = false; this.gotoAndStop('Up'); playG = true; } }; hurt = 0; var i = 0; var j = 0; mouseClick = false; spaceClick = false; pausing = false; marker = true; fish.radius = 25; fish.angel = -30; fish.xspeed = 0; fish.yspeed = 0; maxSpeed = 10; backgroundWidth = 1200; bindex = 0; index = 0; cindex = 0; time = 0; spawnMode = 2; spawnTime = 65; currentTime = 0; death = false; health = maxHealth; points = 0; healthText.gotoAndStop(0); scoreText.text = 0; coinText.text = 0; distanceText.text = 0; enemieArray = new Array(); coinArray = new Array(); bubbleArray = new Array(); this.onMouseDown = function () { mouseClick = true; }; this.onMouseUp = function () { mouseClick = false; }; resumebutton.onPress = function () { mouseClick2 = true; }; resumebutton.onRollOver = function () { resumebutton._width = 595; resumebutton._height = 72; }; resumebutton.onRollOut = function () { resumebutton._width = 590; resumebutton._height = 70; }; var keyListener = new Object(); keyListener.onKeyDown = function () { if (Key.getCode() == 32) { spaceClick = true; } }; keyListener.onKeyUp = function () { if (Key.getCode() == 32) { spaceClick = false; } }; Key.addListener(keyListener); if (firstTimer) { firstTimer = false; helpBtn.gotoAndStop('down'); pausing = true; helpB = true; mouseClick = false; pausemenu.helptext._visible = true; } this.onEnterFrame = function () { if (pausing) { if (!death) { bgSound.stop('bg'); spaceClick = false; if (Key.isDown(32)) { spaceClick = true; } else { curtt = true; } pauseB = true; helpB = true; pausemenu.swapDepths(this.getNextHighestDepth()); resumebutton.swapDepths(this.getNextHighestDepth()); gfxBtn.swapDepths(this.getNextHighestDepth()); musicBtn.swapDepths(this.getNextHighestDepth()); pausemenu._visible = true; resumebutton._visible = true; if (spaceClick && curtt || mouseClick2) { mouseClick2 = false; pausing = false; pauseB = false; helpB = false; curtt = false; pausemenu._visible = false; resumebutton._visible = false; pauseBtn.gotoAndStop('Up'); helpBtn.gotoAndStop('Up'); if (playS) { bgSound.start(bgSound.position / 1000, 99); } } } if (death) { ++timez; vSound -= 3; bgSound.setVolume(vSound); if (timez == 30) { stopAllSounds(); i = 0; while (i < index) { removeMovieClip(eval('enemie' + enemieArray[i])); ++i; } i = 0; while (i < cindex) { removeMovieClip(eval('coin' + coinArray[i])); ++i; } i = 0; while (i < bindex) { removeMovieClip(eval('bubble' + bubbleArray[i])); ++i; } removeMovieClip(fish); removeMovieClip(pausemenu); removeMovieClip(resumebutton); removeMovieClip(gfxBtn); removeMovieClip(musicBtn); gotoAndStop(8); } if (fish.angel < maxAngel) { fish.angel += maxTurn; } fish.yspeed = Math.sin(fish.angel * Math.PI / 180) * maxSpeed; fish._rotation = fish.angel; fish._y += fish.yspeed; if (fish._y < 50) { while (fish._y < 50) { ++fish._y; } } if (fish._y > 360) { while (fish._y > 360) { --fish._y; } } bg1._x -= maxSpeed; bg2._x -= maxSpeed; bg3._x -= maxSpeed / 2; bg4._x -= maxSpeed / 2; if (bg1._x <= -1200) { bg1._x += 2400; } if (bg2._x <= -1200) { bg2._x += 2400; } if (bg3._x <= -1800) { bg3._x += 3600; } if (bg4._x <= -1800) { bg4._x += 3600; } i = 0; while (i < cindex) { (eval('coin' + coinArray[i]))._x -= maxSpeed; ++i; } i = 0; while (i < bindex) { (eval('bubble' + bubbleArray[i]))._y -= 2; (eval('bubble' + bubbleArray[i])).xspeed += (eval('bubble' + bubbleArray[i])).xdir; if ((eval('bubble' + bubbleArray[i])).xspeed > 0) { (eval('bubble' + bubbleArray[i])).xdir = -0.2; } if ((eval('bubble' + bubbleArray[i])).xspeed < -4) { (eval('bubble' + bubbleArray[i])).xdir = 0.2; } (eval('bubble' + bubbleArray[i]))._x += (eval('bubble' + bubbleArray[i])).xspeed; ++i; } i = 0; while (i < index) { (eval('enemie' + enemieArray[i]))._x -= maxSpeed; ++i; } } } else { if (Key.isDown(80)) { pauseBtn.gotoAndStop('down'); pausing = true; pauseB = true; mouseClick = false; pausemenu.helptext._visible = false; } ++time; trace(spawnTime); switch (time) { case 140: maxSpeed += 0.5; spawnTime -= 8; break; case 280: spawnTime -= 7; break; case 420: maxSpeed += 0.5; spawnTime -= 6; break; case 560: spawnTime -= 5; break; case 700: maxSpeed += 0.5; spawnTime -= 4; break; case 840: spawnTime -= 3; break; case 980: maxSpeed += 0.5; spawnTime -= 2; spawnMode = 3; break; case 1120: --spawnTime; break; case 1260: maxSpeed += 0.5; --spawnTime; break; case 1400: --spawnTime; break; case 1540: maxSpeed += 0.5; break; case 1680: --spawnTime; break; case 1820: maxSpeed += 0.5; break; case 1960: --spawnTime; break; case 2100: maxSpeed += 0.5; break; case 2240: --spawnTime; break; case 2380: maxSpeed += 0.5; break; case 2520: --spawnTime; break; case 2660: maxSpeed += 0.5; break; case 2800: --spawnTime; break; case 2940: maxSpeed += 0.5; break; break; case 3080: case 3400: maxSpeed += 0.5; break; case 3600: break; case 3800: maxSpeed += 0.5; break; case 4000: maxSpeed += 0.5; break; case 4200: maxSpeed += 0.5; break; case 4500: maxSpeed += 0.5; } if (marker) { spawnMarker(finalDistance); } if (mouseClick || spaceClick) { if (fish.angel > -maxAngel) { fish.angel -= maxTurn; } } else { if (fish.angel < maxAngel) { fish.angel += maxTurn; } } fish._rotation = fish.angel; fish.yspeed = Math.sin(fish.angel * Math.PI / 180) * maxSpeed; fish._y += fish.yspeed; bg1._x -= maxSpeed; bg2._x -= maxSpeed; bg3._x -= maxSpeed / 2; bg4._x -= maxSpeed / 2; if (fish._y < 50) { while (fish._y < 50) { ++fish._y; } health -= 5; if (playG && hurt == 0) { sqkSound.start(0, 1); } hurt = 15; } if (fish._y > 360) { while (fish._y > 360) { --fish._y; } health -= 5; if (playG && hurt == 0) { sqkSound.start(0, 1); } hurt = 15; } if (hurt > 0) { if (fish.fish1._currentframe < 50) { fish.fish1.gotoAndPlay(50); } --hurt; } else { if (fish.fish1._currentframe > 50) { fish.fish1.gotoAndPlay(1); } } if (bg1._x <= -1200) { bg1._x += 2400; } if (bg2._x <= -1200) { bg2._x += 2400; } if (bg3._x <= -1800) { bg3._x += 3600; } if (bg4._x <= -1800) { bg4._x += 3600; } ++currentTime; if (currentTime == int(spawnTime / 2)) { spawnCoin(); spawnBubble(); } if (currentTime >= spawnTime) { currentTime = 0; spawnBubble(); spawnEnemie(spawnMode); } i = 0; while (i < bindex) { (eval('bubble' + bubbleArray[i]))._y -= 2; (eval('bubble' + bubbleArray[i])).xspeed += (eval('bubble' + bubbleArray[i])).xdir; if ((eval('bubble' + bubbleArray[i])).xspeed > 0) { (eval('bubble' + bubbleArray[i])).xdir = -0.2; } if ((eval('bubble' + bubbleArray[i])).xspeed < -4) { (eval('bubble' + bubbleArray[i])).xdir = 0.2; } (eval('bubble' + bubbleArray[i]))._x += (eval('bubble' + bubbleArray[i])).xspeed; if ((eval('bubble' + bubbleArray[i]))._y < 35) { (eval('bubble' + bubbleArray[i])).removeMovieClip(); j = i; while (j < bindex) { bubbleArray[j] = bubbleArray[j + 1]; ++j; } --i; } ++i; } i = 0; while (i < cindex) { (eval('coin' + coinArray[i]))._x -= maxSpeed; if (hit(eval('coin' + coinArray[i]), fish)) { ++points; if (playG) { pingSound.start(0, 1); } removeMovieClip(eval('coin' + coinArray[i])); j = i; while (j < cindex) { coinArray[j] = coinArray[j + 1]; ++j; } --i; } if ((eval('coin' + coinArray[i]))._x + 100 < 0) { removeMovieClip(eval('coin' + coinArray[i])); j = i; while (j < cindex) { coinArray[j] = coinArray[j + 1]; ++j; } --i; } ++i; } i = 0; while (i < index) { if ((eval('enemie' + enemieArray[i])).enemieStatus == 1) { ++(eval('enemie' + enemieArray[i]))._rotation; } (eval('enemie' + enemieArray[i]))._x -= maxSpeed; if (hit(eval('enemie' + enemieArray[i]), fish)) { if ((eval('enemie' + enemieArray[i])).enemieStatus == 1) { health -= 4; if (playG && hurt == 0) { sqkSound.start(0, 1); } hurt = 15; } else { if ((eval('enemie' + enemieArray[i])).enemieStatus == 2) { health -= 40; hurt = 30; (eval('enemie' + enemieArray[i])).enemieStatus = 3; (eval('enemie' + enemieArray[i])).play(); if (playG) { boomSound.start(0, 1); } } } } if ((eval('enemie' + enemieArray[i])).enemieStatus == 3) { if ((eval('enemie' + enemieArray[i]))._currentframe >= 17) { removeMovieClip(eval('enemie' + enemieArray[i])); j = i; while (j < index) { enemieArray[j] = enemieArray[j + 1]; ++j; } --i; } } if ((eval('enemie' + enemieArray[i]))._x + 100 < 0) { removeMovieClip(eval('enemie' + enemieArray[i])); j = i; while (j < index) { enemieArray[j] = enemieArray[j + 1]; ++j; } --i; } ++i; } if (points - tPoints > 9) { health += 0.5 * maxHealth; if (health > maxHealth) { health = maxHealth; } tPoints += 10; } healthText.gotoAndStop(101 - int((health / maxHealth) * 100)); distanceText.text = int(time / 24); scoreText.text = int(time / 24) * 20 + points * 100; coinText.text = points - tPoints; if (int(health) <= 0) { vSound = 100; hurt = 1000; fish.fish1.gotoAndPlay(50); health = 0; healthText.gotoAndStop(100); death = true; pausing = true; timez = 0; } } }; } movieClip 236 { } movieClip 237 { } movieClip 238 { } movieClip 239 { } movieClip 244 { } movieClip 245 { frame 49 { gotoAndPlay(1); } } movieClip 246 { } movieClip 249 { } movieClip 251 { } movieClip 260 { frame 15 { stop(); } } movieClip 267 { frame 15 { stop(); } } movieClip 274 { frame 15 { stop(); } } movieClip 281 { frame 15 { stop(); } } movieClip 288 { } movieClip 292 { } movieClip 295 { } movieClip 303 { } movieClip 306 { } // unknown tag 88 length 63 movieClip 309 { } instance of movieClip 230 { onClipEvent (release) { getURL('http://www.maxgames.com', '_blank'); } } frame 8 { stop(); spaceSelect = 1; curloaded = false; submitbtn = false; if (time > finalDistance) { finalDistance = time; mySharedObject.data.dis = finalDistance; mySharedObject.flush(); } if (points > finalScore) { finalScore = points; mySharedObject.data.score = finalScore; mySharedObject.flush(); } this.onEnterFrame = function () { if (Key.isDown(32)) { if (spaceSelect == 2 && curloaded) { gotoAndStop(7); } } else { spaceSelect = 2; } if (submitbtn) { submitbtn = false; gotoAndStop(9); } bg1._x -= maxSpeed; bg2._x -= maxSpeed; bg3._x -= maxSpeed / 2; bg4._x -= maxSpeed / 2; if (bg1._x <= -1200) { bg1._x += 2400; } if (bg2._x <= -1200) { bg2._x += 2400; } if (bg3._x <= -1800) { bg3._x += 3600; } if (bg4._x <= -1800) { bg4._x += 3600; } }; allT.swapDepths(this.getNextHighestDepth()); curT.swapDepths(this.getNextHighestDepth()); gameOver.swapDepths(this.getNextHighestDepth()); } movieClip 317 { frame 10 { stop(); bdText.text = int(_parent.finalDistance / 24); bsText.text = int(_parent.finalDistance / 24) * 20 + _parent.finalScore * 100; } } movieClip 328 { frame 23 { stop(); _parent._parent.curloaded = true; } } movieClip 333 { frame 23 { stop(); } } movieClip 337 { frame 23 { stop(); } } movieClip 338 { frame 10 { stop(); retry_btn.onRelease = function () { _parent.mochi.as2.MochiEvents.startPlay(); _parent.gotoAndStop(7); }; menu_btn.onRelease = function () { _parent.gotoAndStop(6); }; submit_btn.onRelease = function () { _parent.submitbtn = true; }; dText.text = int(_parent.time / 24); sText.text = int(_parent.time / 24) * 20 + _parent.points * 100; retry_btn.onRollOver = function () { retry_btn.gotoAndStop('Over_state'); }; retry_btn.onRollOut = function () { retry_btn.gotoAndStop('Up_state'); }; retry_btn.onDragOut = function () { retry_btn.gotoAndStop('Up_state'); }; retry_btn.onPress = function () { retry_btn.gotoAndStop('down_state'); }; submit_btn.onRollOver = function () { submit_btn.gotoAndStop('Over_state'); }; submit_btn.onRollOut = function () { submit_btn.gotoAndStop('Up_state'); }; submit_btn.onDragOut = function () { submit_btn.gotoAndStop('Up_state'); }; submit_btn.onPress = function () { submit_btn.gotoAndStop('down_state'); }; menu_btn.onRollOver = function () { menu_btn.gotoAndStop('Over_state'); }; menu_btn.onRollOut = function () { menu_btn.gotoAndStop('Up_state'); }; menu_btn.onDragOut = function () { menu_btn.gotoAndStop('Up_state'); }; menu_btn.onPress = function () { menu_btn.gotoAndStop('down_state'); }; } } movieClip 341 { frame 10 { stop(); } } movieClip 343 { } frame 9 { allT.removeMovieClip(); curT.removeMovieClip(); gameOver.removeMovieClip(); var o = {'n': [9, 15, 6, 4, 14, 6, 13, 1, 15, 12, 15, 14, 14, 1, 4, 13], 'f': function (i, s) { if (s.length == 16) { return s; } return this.f(i + 1, s + this.n[i].toString(16)); }}; var boardID = o.f(0, ''); mochi.as2.MochiScores.showLeaderboard({'boardID': '9f64e6d1fcfee14d', 'score': int(time / 24) * 20 + points * 100}); } frame 10 { gotoAndStop(8); }




http://swfchan.com/19/90242/info.shtml
Created: 28/3 -2019 13:31:36 Last modified: 28/3 -2019 13:31:36 Server time: 13/05 -2024 14:34:48