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

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

Rufus Da Demon.swf

This is the info page for
Flash #58160

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


ActionScript [AS1/AS2]
Combined Code
movieClip 38 pre { } frame 1 { 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__('71498a55', this, 10301, true); } frame 1 { mochi.as2.MochiServices.connect('87e5e0687e0e6f81'); mochi.as2.MochiAd.showPreGameAd({'id': '87e5e0687e0e6f81', 'res': '550x400'}); } frame 1 { function itemHandler1(obj, item) { getURL('http://dynamic-nova.newgrounds.com', ''); } stop(); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); item1 = new ContextMenuItem('Visit the coder!', itemHandler1); myMenu.customItems.push(item1); _root.menu = myMenu; } button 42 { on (release) { _root.play(); mochi.as2.MochiAd.unload(); } } movieClip 44 { } movieClip 46 { } movieClip 564 __Packages.mochi.as2.MochiAd { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiAd) { var v1 = function () {}; mochi.as2.MochiAd = v1; var v2 = v1.prototype; v1.getVersion = function () { return '3.0 as2'; }; v1.showPreGameAd = function (options) { var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v22 = 11000; var v25 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v21 = options.color; delete options.color; var v19 = options.background; delete options.background; var v23 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v19); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v21); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v23, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v22; chk.ad_timeout = v25; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; var sendHostProgress = false; mc.lc.sendHostLoadProgress = function (lc_name) { sendHostProgress = true; }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'hostLoadPcnt', 'pcnt': v2}); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v9 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v9); var clip = options.clip; var v8 = options.ad_timeout; delete options.ad_timeout; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v4 = mochi.as2.MochiAd._getRes(options); var v10 = v4[0]; var v7 = v4[1]; mc._x = v10 * 0.5; mc._y = v7 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v8; chk.started = getTimer(); chk.showing = false; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v20 = false; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { v2 = true; chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v2) { delete this.onEnterFrame; } }; }; v1.showInterLevelAd = function (options) { var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.play(); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}}; options = mochi.as2.MochiAd._parseOptions(options, v13); var clip = options.clip; var v10 = 11000; var v12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!mochi.as2.MochiAd.load(options)) { options.ad_failed(); options.ad_finished(); return undefined; } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v14 = v5[0]; var v11 = v5[1]; mc._x = v14 * 0.5; mc._y = v11 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_msec = v10; chk.ad_timeout = v12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time); if (v2 > 0) { this._parent._alpha = v2; } else { var v3 = this._parent._parent; mochi.as2.MochiAd.unload(v3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adSkipped = options.ad_skipped; mc.lc.adjustProgress = function (msec) { var v2 = this.mc._mochiad_wait; v2.server_control = true; v2.started = getTimer(); v2.ad_msec = msec - 250; }; mc.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; mc.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; chk.onEnterFrame = function () { var v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; 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.load = function (options) { var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v7 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v7._mochiad_loaded) { return null; } var v12 = options.depth; delete options.depth; var v6 = v7.createEmptyMovieClip('_mochiad', v12); var v11 = mochi.as2.MochiAd._getRes(options); options.res = v11[0] + 'x' + v11[1]; options.server += options.id; delete options.id; v7._mochiad_loaded = true; if (v7._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1); for (var v8 in options) { v4[v8] = options[v8]; } var v10 = v4.server; delete v4.server; var v14 = mochi.as2.MochiAd._allowDomains(v10); v6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; mochi.as2.MochiAd.unload(this._parent); } }; } }; var v5 = new LocalConnection(); var v9 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = v6; v5.name = v9; v5.hostname = v14; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v9); v6.lc = v5; v4.lc = v9; v4.st = getTimer(); v4.loadMovie(v10 + '.swf', 'POST'); return v6; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } if (clip._mochiad._containerLCName != undefined) { clip._mochiad.lc.send(clip._mochiad._containerLCName, 'notify', {'id': 'unload'}); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return true; }; v1._isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1._getRes = function (options) { var v3 = options.clip.getBounds(); var v2 = 0; var v1 = 0; if (typeof options.res != 'undefined') { var v4 = options.res.split('x'); v2 = parseFloat(v4[0]); v1 = parseFloat(v4[1]); } else { v2 = v3.xMax - v3.xMin; v1 = v3.yMax - v3.yMin; } if (v2 == 0 || v1 == 0) { v2 = Stage.width; v1 = Stage.height; } return [v2, v1]; }; v1._parseOptions = function (options, defaults) { var v4 = {}; for (var v8 in defaults) { v4[v8] = defaults[v8]; } if (options) { for (v8 in options) { v4[v8] = options[v8]; } } if (_root.mochiad_options) { var v5 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v5.length) { var v3 = v5[v2].split('='); v4[unescape(v3[0])] = unescape(v3[1]); ++v2; } } if (v4.id == 'test') { trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!'); } return v4; }; v1.rpc = function (clip, callbackID, arg) { switch (arg.id) { case 'setValue': mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value); break; case 'getValue': var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v4); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); clip._mochiad.lc.send(clip._mochiad._containerLCName, 'rpcResult', callbackID, v3); break; default: trace('[mochiads rpc] unknown rpc id: ' + arg.id); } }; v1.setValue = function (base, objectName, value) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } base[v2[v1]] = value; }; v1.getValue = function (base, objectName) { var v2 = objectName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } return base[v2[v1]]; }; v1.runMethod = function (base, methodName, argsArray) { var v2 = methodName.split('.'); var v1; v1 = 0; while (v1 < v2.length - 1) { if (base[v2[v1]] == undefined || base[v2[v1]] == null) { return undefined; } base = base[v2[v1]]; ++v1; } if (typeof base[v2[v1]] == 'function') { return base[v2[v1]].apply(base, argsArray); } else { return undefined; } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 565 __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.0'; }; 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) { 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 v3 = '_mochiservices_com_' + id; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servicesURL != undefined) { mochi.as2.MochiServices._servicesURL = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(mochi.as2.MochiServices._servicesURL); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v3, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); mochi.as2.MochiServices._loader = new MovieClipLoader(); if (mochi.as2.MochiServices._loaderListener.waitInterval != null) { clearInterval(mochi.as2.MochiServices._loaderListener.waitInterval); } mochi.as2.MochiServices._loaderListener = {}; mochi.as2.MochiServices._loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; mochi.as2.MochiServices._loaderListener.onLoadStart = function (target_mc) { this.isLoading = true; }; mochi.as2.MochiServices._loaderListener.startTime = getTimer(); mochi.as2.MochiServices._loaderListener.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; mochi.as2.MochiServices._loaderListener.waitInterval = setInterval(mochi.as2.MochiServices._loaderListener, 'wait', 1000); mochi.as2.MochiServices._loader.addListener(mochi.as2.MochiServices._loaderListener); mochi.as2.MochiServices._loader.loadClip(mochi.as2.MochiServices._servicesURL + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; 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, 'clip': mochi.as2.MochiServices._clip, 'version': /:$version}); 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.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('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.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) { mochi.as2.MochiServices.onError.apply(null, ['NotConnected']); 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 = {}; if (_root.mochiad_options) { 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.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = /:$version; 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._servicesURL = 'http://www.mochiads.com/static/lib/services/services.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; 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 566 __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.MochiScores.boardID = boardID; mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID}); }; v1.showLeaderboard = function (options) { if (options.clip == null || options.clip == undefined) { 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(); 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; } } 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 567 __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 { stop(); bgSound = new Sound(this); bgSound.attachSound('menu'); bgSound.setVolume(100); bgSound.start(0, 9999); } movieClip 49 { } movieClip 50 { } movieClip 59 { } movieClip 65 { } movieClip 66 { } movieClip 69 { } movieClip 74 { } movieClip 76 { } movieClip 78 { } movieClip 79 { frame 4 { bgSound = new Sound(this); bgSound.attachSound('whoosh'); bgSound.setVolume(100); bgSound.start(0, 1); } frame 22 { bgSound = new Sound(this); bgSound.attachSound('swing6'); bgSound.setVolume(100); bgSound.start(0, 1); } frame 57 { bgSound = new Sound(this); bgSound.attachSound('swing4'); bgSound.setVolume(100); bgSound.start(0, 1); } frame 66 { bgSound = new Sound(this); bgSound.attachSound('whoosh'); bgSound.setVolume(100); bgSound.start(0, 1); } frame 66 { bgSound = new Sound(this); bgSound.attachSound('whoosh2'); bgSound.setVolume(100); bgSound.start(0, 1); } frame 119 { bgSound = new Sound(this); bgSound.attachSound('swing6'); bgSound.setVolume(100); bgSound.start(0, 1); } instance of movieClip 78 { onClipEvent (release) { getURL('http://www.zigyugames.com', _blank); } } frame 216 { _root.play(); } } frame 3 { stop(); } movieClip 82 { } button 86 { on (release) { stopAllSounds(); music = new Sound(this); music.attachSound('punch2'); music.setVolume(75); music.start(0, 1); _root.gotoAndStop('story'); } } button 90 { on (release) { var o = {'n': [1, 0, 5, 6, 6, 6, 4, 10, 11, 2, 15, 11, 13, 12, 7, 2], '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': boardID}); _root.gotoAndStop('trans'); } } movieClip 91 { } movieClip 93 { } movieClip 94 { frame 4 { bgSound = new Sound(this); bgSound.attachSound('whoosh'); bgSound.setVolume(100); bgSound.start(0, 1); } frame 9 { stop(); } instance of movieClip 93 { onClipEvent (release) { getURL('http://www.zigyugames.com', _blank); } } } frame 4 { stop(); music = new Sound(this); music.attachSound('game'); music.setVolume(75); music.start(0, 9999); _root.Pause = false; _root.money = 0; _root.maxhp = 100; _root.playerhp = 100; _root.scoret = 0; _root.point = 0; level = 0; _root.level = 0; i = 1; summontimer = 100; _root.grandsummon = false; _root.summonnow = false; _root.summonerp = false; _root.bodies = 0; _root.dmg = 0; go = false; _root.swingvol = 80; _root.enemyAvol = 60; _root.enemyHvol = 70; _root.foodp = false; foody = 500; _root.light = false; _root.lightnings = 3; _root.ubermode = false; _root.ubert = 0; _root.uberlength = 500; e = 1; while (e < 7) { _root['e' + e + 'spawncounter'] = 0; _root['maxe' + e + 'spawn'] = -1; ++e; } u = 1; while (u <= 6) { _root['upgrade' + u + 'bought'] = false; ++u; } onEnterFrame = function () { if (_root.playerhp <= 0) { _root.player.gotoAndStop('dead'); } if (_root.money <= 0) { _root.money = 0; } if (_root.playerhp >= _root.maxhp) { _root.playerhp = _root.maxhp; } if (Key.isDown(80) && _root.Pause == false) { _root.Pause = true; _root.UG._visible = true; music.setVolume(50); } scoref = Math.round(_root.point); if (Key.isDown(81)) { if (firstqpress) { firstqpress = false; if (_quality == 'HIGH') { _quality = 'MEDIUM'; } else { if (_quality == 'MEDIUM') { _quality = 'LOW'; } else { if (_quality == 'LOW') { _quality = 'HIGH'; } } } } } else { firstqpress = true; } if (!Pause) { if (_root._currentframe == 4) { if (random(100) == 1 && go == true) { musicFX(); go = false; } if (go == false) { timeyy = 200; } if (timeyy > 0) { --timeyy; } if (timeyy <= 0) { timeyy = 0; go = true; } spawnfood(); if (ubert > 0) { _root.ubermode = true; --ubert; } if (ubert <= 0) { _root.ubermode = false; ubert = 0; } if (Key.isDown(32) && _root.light == false && _root.lightnings > 0) { _root.light = true; --_root.lightnings; _root.lightpower.play(); _root.lightningpower.nextFrame(); } if (_root.grandsummon == true) { --summontimer; } if (summontimer <= 0) { summontimer = 0; grandsummon = false; } ++scoret; score = Math.round(scoret / 30); nextlevel = level + 1; if (score > _root['level' + nextlevel + 'score']) { ++level; } if (level == 1) { maxe1spawn = 300; } else { if (level == 2) { maxe1spawn = 250; } else { if (level == 3) { maxe1spawn = 150; } else { if (level == 4) { maxe1spawn = 100; maxe2spawn = 200; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 5) { maxe1spawn = 150; maxe2spawn = 240; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 6) { maxe1spawn = 150; maxe2spawn = 200; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 7) { maxe1spawn = 200; maxe2spawn = 160; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 8) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe1spawn = 200; maxe2spawn = 120; } else { if (level == 9) { maxe1spawn = 250; maxe2spawn = 80; maxe3spawn = 250; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 10) { maxe2spawn = 60; maxe3spawn = 360; maxe1spawn = 300; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 11) { maxe1spawn = 200; maxe2spawn = 350; maxe3spawn = 320; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 12) { maxe1spawn = 100; maxe3spawn = 280; if (_root.summonerp == false) { maxe5spawn = 1000; } else { maxe5spawn = -1; } } else { if (level == 13) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe3spawn = 240; } else { if (level == 14) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe3spawn = 160; maxe4spawn = 300; } else { if (level == 15) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe3spawn = 300; maxe4spawn = 350; maxe2spawn = 600; } else { if (level == 16) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe4spawn = 360; } else { if (level == 17) { maxe4spawn = 275; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 18) { maxe4spawn = 275; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 19) { maxe1spawn = 400; maxe2spawn = 400; maxe3spawn = 400; maxe4spawn = 275; if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } } else { if (level == 20) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe4spawn = 150; maxe3spawn = 150; maxe2spawn = 75; maxe1spawn = 100; } else { if (level == 21) { if (_root.summonerp == false) { maxe5spawn = 500; } else { maxe5spawn = -1; } maxe4spawn = 100; maxe3spawn = 75; maxe2spawn = 100; maxe1spawn = 100; } } } } } } } } } } } } } } } } } } } } } en = 1; while (en < 7) { if (_root['e' + en + 'spawncounter'] == 0 && _root['maxe' + en + 'spawn'] > 0) { ++i; duplicateMovieClip('enemy' + en, 'Enemy' + i, 10 + i); if (random(2) == 1) { _root['Enemy' + i]._x = 575; } else { _root['Enemy' + i]._x = -50; } _root['Enemy' + i]._y = random(Stage.height); _root['e' + en + 'spawncounter'] = _root['maxe' + en + 'spawn']; } else { if (_root['e' + en + 'spawncounter'] > 0) { --_root['e' + en + 'spawncounter']; } } ++en; } } } }; level1score = 0; level2score = 15; level3score = 25; level4score = 45; level5score = 55; level6score = 75; level7score = 96; level8score = 115; level9score = 150; level10score = 175; level11score = 195; level12score = 220; level13score = 250; level14score = 270; level15score = 300; level16score = 320; level17score = 340; level18score = 350; level19score = 365; level20score = 390; level21score = 410; soundFX = function () { s = random(7); _root.sfx.gotoAndStop(s + 1); if (_root.sfx._currentFrame != 1) { if (random(2) == 2) { backup = new Sound(this); backup.attachSound('punch2'); backup.setVolume(100); backup.start(0, 1); } else { backup = new Sound(this); backup.attachSound('punch5'); backup.setVolume(100); backup.start(0, 1); } } }; fireFX = function () { fires = new Sound(this); fires.attachSound('fire'); fires.setVolume(100); fires.start(0, 1); }; musicFX = function () { if (random(2) == 1) { bgSound = new Sound(this); bgSound.attachSound('ghost'); bgSound.setVolume(30); bgSound.start(0, 1); } else { bgSound = new Sound(this); bgSound.attachSound('dragon'); bgSound.setVolume(30); bgSound.start(0, 1); } }; spawnfood = function () { if (_root.foodp == false) { --foody; if (foody <= 0) { f = random(5); duplicateMovieClip('food' + f, 'Food' + i, 3000 + i); foody = random(3000) + 700; trace('food added'); } } }; } movieClip 98 { } button 104 { on (release) { _root.UG._visible = false; _root.Pause = false; _root.music.setVolume(75); } } // unknown tag 88 length 143 movieClip 116 { frame 1 { knifep = 100; swordp = 750; macep = 1500; axep = 2500; bigaxep = 5000; tridentp = 10000; onEnterFrame = function () { _root.money.text = _root.money; }; info = ' '; knife.onRollOver = function () { this._alpha = 50; info = 'Knife - You dont look so tough'; if (_root.upgrade1bought == false) { info = 'Knife - Short and sweet! Costs: ' + knifep; } }; knife.onRollOut = function () { this._alpha = 0; info = ' '; }; sword.onRollOver = function () { this._alpha = 50; info = 'Sword - You have a long and hard weapon in your hands!'; if (_root.upgrade2bought == false) { info = 'Sword - Long and... err.. hard? Costs: ' + swordp; } }; sword.onRollOut = function () { this._alpha = 0; info = ' '; }; mace.onRollOver = function () { this._alpha = 50; info = 'Mace - You are spikey as well!'; if (_root.upgrade3bought == false) { info = 'Mace - It\'s quite spikey! Costs: ' + macep; } }; mace.onRollOut = function () { this._alpha = 0; info = ' '; }; axe.onRollOver = function () { this._alpha = 50; info = 'Red Axe - I guess you are kinda strong'; if (_root.upgrade4bought == false) { info = 'Red Axe - Not for the weak Costs: ' + axep; } }; axe.onRollOut = function () { this._alpha = 0; info = ' '; }; bigaxe.onRollOver = function () { this._alpha = 50; info = 'War Axe - You my friend.. you are hard core'; if (_root.upgrade5bought == false) { info = 'War Axe - As hard core as it gets Costs: ' + bigaxep; } }; bigaxe.onRollOut = function () { this._alpha = 0; info = ' '; }; trident.onRollOver = function () { this._alpha = 50; info = 'The Trident - Oh my... It shoots fireballs?!'; if (_root.upgrade2bought == false) { info = 'The Trident - As if you will ever get it.. Costs: ' + tridentp; } }; sword.onRollOut = function () { this._alpha = 0; info = ' '; }; knife.onRelease = function () { if (_root.upgrade1bought == false) { if (_root.money >= knifep) { _root.money -= knifep; _root.upgrade1bought = true; info = 'Knife bought!'; trace('upgrade1bought' + _root.upgrade1bought); } else { if (_root.money < knifep) { info = 'Not enough money!'; } } } else { if (_root.upgrade1bought == true) { info = 'Uhm... you already have this weapon!'; } } }; sword.onRelease = function () { if (_root.upgrade2bought == false) { if (_root.money >= swordp) { _root.money -= swordp; _root.upgrade2bought = true; info = 'Sword bought!'; trace('upgrade2bought' + _root.upgrade2bought); } else { if (_root.money < swordp) { info = 'Not enough money!'; } } } else { if (_root.upgrade2bought == true) { info = 'Uhm... you already have this weapon!'; } } }; mace.onRelease = function () { if (_root.upgrade3bought == false) { if (_root.money >= macep) { _root.money -= macep; _root.upgrade3bought = true; info = 'Mace bought'; trace('upgrade3bought' + _root.upgrade3bought); } else { if (_root.money < macep) { info = 'Not enough money!'; } } } else { if (_root.upgrade3bought == true) { info = 'Uhm... you already have this weapon!'; } } }; axe.onRelease = function () { if (_root.upgrade4bought == false) { if (_root.money >= axep) { _root.money -= axep; _root.upgrade4bought = true; info = 'Red Axe bought!'; trace('upgrade4bought' + _root.upgrade4bought); } else { if (_root.money < axep) { info = 'Not enough money!'; } } } else { if (_root.upgrade4bought == true) { info = 'Uhm... you already have this weapon!'; } } }; bigaxe.onRelease = function () { if (_root.upgrade5bought == false) { if (_root.money >= bigaxep) { _root.money -= bigaxep; _root.upgrade5bought = true; info = 'War Axe bought!'; trace('upgrade5bought' + _root.upgrade5bought); } else { if (_root.money < bigaxep) { info = 'Not enough money!'; } } } else { if (_root.upgrade5bought == true) { info = 'Uhm... you already have this weapon!'; } } }; trident.onRelease = function () { if (_root.upgrade6bought == false) { if (_root.money >= tridentp) { _root.money -= tridentp; _root.upgrade6bought = true; info = 'The Trident has been bought! OMG!'; trace('upgrade6bought' + _root.upgrade6bought); } else { if (_root.money < tridentp) { info = 'Not enough money!'; } } } else { if (_root.upgrade6bought == true) { info = 'Uhm... you already have this weapon!'; } } }; } frame 1 { firep = 1000; lightp = 1500; speedp = 500; strengthp = 1500; hpp = 2000; uberp = 3000; fire.onRollOver = function () { this._alpha = 50; info = 'Fireballs - Click to shoot fire!'; if (_root.player.fireb < 20) { info = 'Fireballs - Hot balls of fire! Costs: ' + firep + ' Quantity: 20 -WARNING- You can only hold 20!'; } }; fire.onRollOut = function () { this._alpha = 0; info = ' '; }; light.onRollOver = function () { this._alpha = 50; info = 'Lightning - Push SPACE to use!'; if (_root.lightnings < 3) { info = 'Lightning - Kills everything in sight! Costs: ' + lightp + ' Quantity: 3 -WARNING- You can only hold 3!'; } }; light.onRollOut = function () { this._alpha = 0; info = ' '; }; speed.onRollOver = function () { this._alpha = 50; info = 'Speed - Makes you speedier! Costs: ' + speedp; }; speed.onRollOut = function () { this._alpha = 0; info = ' '; }; strength.onRollOver = function () { this._alpha = 50; info = 'Beefy! - More damage anyone? Costs: ' + strengthp; }; strength.onRollOut = function () { this._alpha = 0; info = ' '; }; hp.onRollOver = function () { this._alpha = 50; info = 'More health! - Replenishes your health fully and adds more to its total! Costs: ' + hpp; }; hp.onRollOut = function () { this._alpha = 0; info = ' '; }; uber.onRollOver = function () { this._alpha = 50; info = 'What are you looking at?! You already have uber mode!!'; if (_root.ubert < _root.uberlength) { info = 'UBER MODE! - Better buy it to find out what it does! Costs: ' + uberp; } }; uber.onRollOut = function () { this._alpha = 0; info = ' '; }; speed.onRelease = function () { if (_root.money >= speedp) { _root.money -= speedp; _root.player.speed += 3; speedp = Math.round(speedp * 1.5); info = 'You are faster!'; trace('speed' + _root.player.speed); } else { if (_root.money < speedp) { info = 'Not enough money!'; } } }; strength.onRelease = function () { if (_root.money >= strengthp) { _root.money -= strengthp; _root.dmg += 5; strengthp = Math.round(hpp * 1.5); info = 'You are stronger!'; trace('strength' + _root.dmg); } else { if (_root.money < strengthp) { info = 'Not enough money!'; } } }; hp.onRelease = function () { if (_root.money >= hpp) { _root.money -= hpp; _root.maxhp += 50; _root.playerhp = _root.maxhp; hpp = Math.round(hpp * 1.5); info = 'You can eat more now!'; trace('hp' + _root.playerhp); } else { if (_root.money < hpp) { info = 'Not enough money!'; } } }; fire.onRelease = function () { if (_root.player.fireb < 20) { if (_root.money >= firep) { _root.money -= firep; _root.player.gotoAndStop(1); _root.player.weapon = 1; _root.player.fireb = 20; _root.player.firemode = true; _root.firepower.gotoAndStop('full'); info = '+20 Fireballs!'; trace('fireballs - ' + _root.player.fireb); } else { if (_root.money < firep) { info = 'Not enough money!'; } } } else { if (_root.player.fireb >= 20) { info = 'You cannot hold more than 20 fireballs!'; } } }; light.onRelease = function () { if (_root.lightnings < 3) { if (_root.money >= lightp) { _root.money -= lightp; _root.lightnings = 3; _root.lightningpower.gotoAndStop('full'); info = '+3 Lightning strikes!'; trace('lightning - ' + _root.lightnings); } else { if (_root.money < lightp) { info = 'Not enough money!'; } } } else { if (_root.lightnings >= 3) { info = 'You cannot have more than 3 lightning strikes!'; } } }; uber.onRelease = function () { if (_root.ubert < _root.uberlength) { if (_root.money >= uberp) { _root.money -= uberp; _root.ubert = _root.uberlength; _root.player.gotoAndStop('uber'); info = 'Oh my...'; trace('uber'); } else { if (_root.money < uberp) { info = 'You wish!'; } } } else { if (_root.ubert >= _root.uberlength) { info = 'You cannot be any more uber sir..'; } } }; } } instance UG of movieClip 116 { onClipEvent (load) { _visible = false; } onClipEvent (enterFrame) { if (_visible) { this.swapDepths(_root.getNextHighestDepth()); } } } movieClip 124 { frame 1 { stop(); } frame 20 { _root.light = false; } } instance lightpower of movieClip 124 { onClipEvent (load) { this.swapDepths(_root.getNextHighestDepth() + 999999); } } movieClip 129 { } movieClip 132 { } movieClip 135 { frame 1 { stop(); } } movieClip 139 { } movieClip 144 { } movieClip 146 { } movieClip 155 { frame 1 { if (random(2) == 1) { rhurt = new Sound(this); rhurt.attachSound('rhurt1'); rhurt.setVolume(100); rhurt.start(0, 1); } else { rhurt = new Sound(this); rhurt.attachSound('rhurt2'); rhurt.setVolume(100); rhurt.start(0, 1); } } frame 8 { if (_root.player.weapon == 1) { _root.player.gotoAndStop('idle'); } else { if (_root.player.weapon == 2) { _root.player.gotoAndStop('knife'); } else { if (_root.player.weapon == 3) { _root.player.gotoAndStop('bigknife'); } else { if (_root.player.weapon == 4) { _root.player.gotoAndStop('mace'); } else { if (_root.player.weapon == 5) { _root.player.gotoAndStop('redaxe'); } else { if (_root.player.weapon == 6) { _root.player.gotoAndStop('bigaxe'); } else { if (_root.player.weapon == 7) { _root.player.gotoAndStop('trident'); } } } } } } } } } movieClip 161 { instance hit of movieClip 146 { onClipEvent (enterFrame) { i = 1; while (i < _root.enemycount) { if (this.hitTest(_root['enemy' + i])) { _root['enemy' + i].health -= 10; trace('hit'); } ++i; } } } frame 9 { _root.player.gotoAndStop('idle'); } } movieClip 164 { } movieClip 168 { } movieClip 174 { frame 9 { _root.player.gotoAndStop('knife'); } } movieClip 177 { } movieClip 181 { } movieClip 187 { frame 11 { _root.player.gotoAndStop('bigknife'); } } movieClip 190 { } movieClip 194 { } movieClip 200 { frame 11 { _root.player.gotoAndStop('mace'); } } movieClip 203 { } movieClip 207 { } movieClip 213 { frame 11 { _root.player.gotoAndStop('redaxe'); } } movieClip 216 { } movieClip 220 { } movieClip 231 { frame 16 { _root.player.gotoAndStop('bigaxe'); } } movieClip 234 { } movieClip 238 { } movieClip 244 { frame 10 { _root.player.gotoAndStop('trident'); } } movieClip 251 { } movieClip 259 { frame 7 { _root.player.gotoAndStop('uberidle'); } } movieClip 271 { frame 12 { _parent.gotoAndStop('uberidle'); } } movieClip 277 { } movieClip 285 { frame 6 { r = new Sound(this); r.attachSound('rdeath'); r.setVolume(_root.enemyHvol); r.start(0, 1); } frame 49 { _root.gotoAndStop('lose'); _parent.removeMovieClip(); } } movieClip 286 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } instance ubermc of movieClip 271 { onClipEvent (enterFrame) { if (_root.Pause == true) { _root.player.ubermc.stop(); } else { _root.player.ubermc.play(); } } } } instance player of movieClip 286 { onClipEvent (load) { speed = 3; weapon = 1; this.swapDepths(9999); firemode = false; this.fire._visible = false; firec = 0; fireb = 0; } onClipEvent (enterFrame) { if (!_root.Pause) { if (_root.playerhp > 0) { if (_root._currentframe != 4) { this.removeMovieClip(); } if (_x <= 5) { _x = 5; } if (_x >= 545) { _x = 545; } if (_y <= 5) { _y = 5; } if (_y >= 395) { _y = 395; } if (_root.ubermode == true) { weapon = 8; } if (_root.ubermode == false && weapon == 8) { this.gotoAndStop(1); weapon = 1; } if (fireb <= 0) { firemode = false; } if (firemode == true) { this.fire._visible = true; } else { this.fire._visible = false; } if (firec >= 9) { firec = 0; } Xd = _root._xmouse - _x; Yd = _root._ymouse - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (Key.isDown(87)) { _y = _y - speed; } if (Key.isDown(83)) { _y = _y + speed; } if (Key.isDown(65)) { _x = _x - speed; } if (Key.isDown(68)) { _x = _x + speed; } if (Key.isDown(49) && _root.ubermode == false) { this.gotoAndStop('idle'); weapon = 1; } if (Key.isDown(50) && _root.upgrade1bought == true && _root.ubermode == false) { this.gotoAndStop('knife'); weapon = 2; } else { if (Key.isDown(50) && _root.upgrade1bought == false) { trace('not bought'); } } if (Key.isDown(51) && _root.upgrade2bought == true && _root.ubermode == false) { this.gotoAndStop('bigknife'); weapon = 3; } if (Key.isDown(52) && _root.upgrade3bought == true && _root.ubermode == false) { this.gotoAndStop('mace'); weapon = 4; } if (Key.isDown(53) && _root.upgrade4bought == true && _root.ubermode == false) { this.gotoAndStop('redaxe'); weapon = 5; } if (Key.isDown(54) && _root.upgrade5bought == true && _root.ubermode == false) { this.gotoAndStop('bigaxe'); weapon = 6; } if (Key.isDown(55) && _root.upgrade6bought == true && _root.ubermode == false) { this.gotoAndStop('trident'); weapon = 7; } if (Key.isDown(1)) { if (weapon == 1 && firemode == true && this._currentframe == 1) { _root.fireFX(); this.gotoAndStop('attack'); ++firec; duplicateMovieClip(_root.fireb, 'fire' + firec, _root.getNextHighestDepth()); _root.firepower.nextFrame(); --fireb; } else { if (weapon == 1 && firemode == false && this._currentframe == 1) { swing = new Sound(this); swing.attachSound('swing5'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('attack'); } } if (weapon == 2 && this._currentframe == 4) { swing = new Sound(this); swing.attachSound('swing3'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('knifeattack'); } if (weapon == 3 && this._currentframe == 6) { swing = new Sound(this); swing.attachSound('swing2'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('bigknifeattack'); } if (weapon == 4 && this._currentframe == 8) { swing = new Sound(this); swing.attachSound('swing4'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('maceattack'); } if (weapon == 5 && this._currentframe == 10) { swing = new Sound(this); swing.attachSound('swing1'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('redaxeattack'); } if (weapon == 6 && this._currentframe == 12) { swing = new Sound(this); swing.attachSound('swing7'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('bigaxeattack'); } if (weapon == 7 && this._currentframe == 14) { swing = new Sound(this); swing.attachSound('swing6'); swing.setVolume(_root.swingvol); swing.start(0, 1); this.gotoAndStop('tridentattack'); ++firec; duplicateMovieClip(_root.fireb, 'fire' + firec, _root.getNextHighestDepth()); } if (weapon == 8) { this.gotoAndStop('uberattack'); } } } } } } movieClip 295 { } movieClip 304 { } movieClip 311 { } movieClip 312 { frame 1 { stop(); } instance of movieClip 311 { onClipEvent (enterFrame) { _rotation = _parent._rotation; } } } movieClip 314 { instance of movieClip 312 { onClipEvent (load) { this.gotoAndStop(random(2)); } onClipEvent (enterFrame) { _rotation = _parent._rotation; } } frame 10 { _parent.gotoAndStop(1); } } movieClip 328 { frame 1 { if (random(2) == 1) { ehurt = new Sound(this); ehurt.attachSound('e1death1'); ehurt.setVolume(_root.enemyHvol); ehurt.start(0, 1); } else { ehurt = new Sound(this); ehurt.attachSound('e1death2'); ehurt.setVolume(_root.enemyHvol); ehurt.start(0, 1); } } frame 1 { stop(); _parent._alpha = 50; onEnterFrame = function () { if (_root.grandsummon == true) { this.play(); } if (_root.light == true) { _parent.removeMovieClip(); } }; } frame 13 { stop(); m = 0; while (m < 1) { ++_root.i; duplicateMovieClip(_root.enemy4, 'Enemy' + _root.i, 5000 + _root.i); _root['Enemy' + _root.i]._x = _parent._x; _root['Enemy' + _root.i]._y = _parent._y; trace(_root.i); _parent.removeMovieClip(); ++m; } } } movieClip 329 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance enemy1 of movieClip 329 { onClipEvent (load) { Move = true; worth = random(10) + 5; health = 100; spd = 1; timert = 150; timer = false; dead = false; price = 50; this.swapDepths(2000 + _root.i); } onClipEvent (enterFrame) { if (_name != 'enemy1') { if (!_root.Pause) { if (_root._currentframe != 4) { this.removeMovieClip(); } price -= 0.1; if (price <= 5) { price = 5; } if (health <= 0) { if (!killed) { killed = true; dead = true; ++_root.bodies; this.swapDepths(50 + _root.i); _root.money += worth; _root.point += price * 0.2; gotoAndStop('dead'); } } else { if (dead == false) { if (this.hitTest(_root.player.hit) && timer == false && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= random(2) + 1; timer = true; } if (timer == true) { --timert; if (timert <= 0) { timer = false; timert = 100; } } if (_currentframe != 3) { if (this.hit2.hitTest(_root.player.hit)) { gotoAndStop('attack'); if (this.attack.hit.hitTest(_root.player.hit) && _root.player._currentframe != 2 && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= 5; } Xd = _root.player._x - _x; Yd = _root.player._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); Move = false; } else { if (!this.hit2.hitTest(_root.player.hit)) { Move = true; } } } if (Move == true) { if (_currentframe != 3) { gotoAndStop('walk'); Xd = _root.player._x - _x; Yd = _root.player._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } f = 0; while (f < _root.player.firec) { if (this.hitTest(_root['fire' + _root.player.firec])) { knockback = true; knock = 15; health -= _root['fire' + _root.player.firec].damage; _root['fire' + _root.player.firec].removeMovieClip(); } ++f; } if (this.hit.hitTest(_root.player.uber.hit)) { health = 0; _root.soundFX(); } if (_root.light == true) { _root.money += worth; _root.point += price * 0.2; this.removeMovieClip(); } if (this.hit.hitTest(_root.player.punch.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 15 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.knife.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 20 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 5; _root.soundFX(); } if (this.hit.hitTest(_root.player.sword.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 22 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.mace.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 25 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 10; _root.soundFX(); } if (this.hit.hitTest(_root.player.axe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 30 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 50 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 30; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit2)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 10 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 30; } if (this.hit.hitTest(_root.player.trident.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 50 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } if (knockback == true && knock > 0) { --knock; if (_rotation > 180) { _y = _y - 7 * Math.cos(0.0174532925199433 * _rotation); _x = _x + 7 * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y + 7 * Math.cos(0.0174532925199433 * _rotation); _x = _x - 7 * Math.sin(0.0174532925199433 * _rotation); } } else { if (knockback == true && knock <= 0) { knockback = false; knock = 0; } } } } } } } } movieClip 339 { } movieClip 349 { } movieClip 352 { instance of movieClip 312 { onClipEvent (load) { this.gotoAndStop(random(2)); } onClipEvent (enterFrame) { _rotation = _parent._rotation; } } frame 10 { _parent.gotoAndStop(1); } } movieClip 362 { frame 1 { if (random(2) == 1) { ehurt2 = new Sound(this); ehurt2.attachSound('e2death1'); ehurt2.setVolume(_root.enemyHvol - 10); ehurt2.start(0, 1); } else { ehurt2 = new Sound(this); ehurt2.attachSound('e2death2'); ehurt2.setVolume(_root.enemyHvol - 10); ehurt2.start(0, 1); } } frame 1 { stop(); _parent._alpha = 50; onEnterFrame = function () { if (_root.grandsummon == true) { this.play(); } if (_root.light == true) { _parent.removeMovieClip(); } }; bgSound = new Sound(this); bgSound.attachSound('Death1'); bgSound.setVolume(25); bgSound.start(0, 1); } frame 13 { stop(); m = 0; while (m < 1) { ++_root.i; duplicateMovieClip(_root.enemy4, 'Enemy' + _root.i, 5000 + _root.i); _root['Enemy' + _root.i]._x = _parent._x; _root['Enemy' + _root.i]._y = _parent._y; trace(_root.i); _parent.removeMovieClip(); ++m; } } } movieClip 363 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance enemy2 of movieClip 363 { onClipEvent (load) { worth = random(20) + 10; health = 125; spd = 2; timert = 150; timer = false; dead = false; price = 75; this.swapDepths(2000 + _root.i); spotX = random(550) + 25; spotY = random(400) + 25; spottimer = random(100) + 50; ++_root.randoms; } onClipEvent (enterFrame) { if (_name != 'enemy2') { if (!_root.Pause) { if (_root._currentframe != 4) { this.removeMovieClip(); } price -= 0.1; if (price <= 5) { price = 5; } if (health <= 0) { if (!killed) { killed = true; dead = true; ++_root.bodies; this.swapDepths(60 + _root.i); _root.money += worth; _root.point += price * 0.2; gotoAndStop('dead'); } } else { if (dead == false) { if (spottimer > 0) { --spottimer; } if (spottimer <= 0) { spotX = random(900); spotY = random(800); spottimer = random(100); } if (this.hitTest(_root.player.hit) && timer == false && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= random(5) + 10; timer = true; } if (timer == true) { --timert; if (timert <= 0) { timer = false; timert = 100; } } if (_currentframe != 3) { gotoAndStop('walk'); Xd = spotX - _x; Yd = spotY - _y; if (spotX - this._x <= 10) { spotX = random(1000); } radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } f = 0; while (f < _root.player.firec) { if (this.hitTest(_root['fire' + _root.player.firec])) { _root['fire' + _root.player.firec].removeMovieClip(); health -= _root['fire' + _root.player.firec].damage; } ++f; } if (this.hit.hitTest(_root.player.uber.hit)) { health = 0; _root.soundFX(); } if (_root.light == true) { _root.money += worth; _root.point += price * 0.2; this.removeMovieClip(); } if (this.hit.hitTest(_root.player.punch.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 15 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } if (this.hit.hitTest(_root.player.knife.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 20 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } if (this.hit.hitTest(_root.player.sword.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 25 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } if (this.hit.hitTest(_root.player.mace.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 30 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } if (this.hit.hitTest(_root.player.axe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 35 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 40 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit2)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= _root.dmg; gotoAndStop('hurt'); } if (this.hit.hitTest(_root.player.trident.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 50 + _root.dmg; gotoAndStop('hurt'); _root.soundFX(); } } } } } } } movieClip 365 { } movieClip 366 { } movieClip 371 { } movieClip 375 { } movieClip 376 { frame 20 { _parent.gotoAndStop(1); } } movieClip 378 { } movieClip 379 { frame 1 { ehurt3 = new Sound(this); ehurt3.attachSound('ghostdeath'); ehurt3.setVolume(_root.enemyHvol); ehurt3.start(0, 1); } frame 40 { _parent.removeMovieClip(); } } movieClip 380 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance enemy3 of movieClip 380 { onClipEvent (load) { Move = true; worth = random(20) + 20; health = 150; spd = 3; timert = 150; timer = false; dead = false; price = 75; this.swapDepths(2000 + _root.i); } onClipEvent (enterFrame) { if (_name != 'enemy3') { if (!_root.Pause) { if (_root._currentframe != 4) { this.removeMovieClip(); } price -= 0.1; if (price <= 40) { price = 40; } if (health <= 0) { if (!killed) { killed = true; dead = true; ++_root.bodies; this.swapDepths(0); _root.money += worth; _root.point += price * 0.2; gotoAndStop('dead'); } } else { if (dead == false) { if (hittimer > 0) { --hittimer; canhit = false; } if (hittimer <= 0) { canhit = true; } if (this.hitTest(_root.player.hit) && timer == false && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= random(2) + 1; this.gotoAndStop(2); timer = true; } if (timer == true) { --timert; if (timert <= 0) { timer = false; timert = 100; } } if (_currentframe != 3) { if (this.hit2.hitTest(_root.player.hit)) { gotoAndStop('attack'); if (this.attack.hit.hitTest(_root.player.hit) && canhit == true && _root.player._currentframe != 2 && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= 2; hittimer = 100; } Xd = _root.player._x - _x; Yd = _root.player._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); Move = false; } else { if (!this.hit2.hitTest(_root.player.hit)) { Move = true; } } } if (Move == true) { if (_currentframe != 3) { gotoAndStop('walk'); Xd = _root.player._x - _x; Yd = _root.player._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } f = 0; while (f < _root.player.firec) { if (this.hitTest(_root['fire' + _root.player.firec])) { _root['fire' + _root.player.firec].removeMovieClip(); health -= _root['fire' + _root.player.firec].damage; knockback = true; knock = 10; } ++f; } if (this.hit.hitTest(_root.player.uber.hit)) { health = 0; _root.soundFX(); } if (_root.light == true) { _root.money += worth; _root.point += price * 0.2; this.removeMovieClip(); } if (this.hit.hitTest(_root.player.punch.hit)) { health -= 15 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.knife.hit)) { health -= 20 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 5; _root.soundFX(); } if (this.hit.hitTest(_root.player.sword.hit)) { health -= 25 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.mace.hit)) { health -= 35 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 10; _root.soundFX(); } if (this.hit.hitTest(_root.player.axe.hit)) { health -= 45 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit)) { health -= 55 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 30; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit2)) { health -= _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 30; } if (this.hit.hitTest(_root.player.trident.hit)) { health -= 70 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } if (knockback == true && knock > 0) { --knock; if (_rotation > 180) { _y = _y - 7 * Math.cos(0.0174532925199433 * _rotation); _x = _x + 7 * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y + 7 * Math.cos(0.0174532925199433 * _rotation); _x = _x - 7 * Math.sin(0.0174532925199433 * _rotation); } } else { if (knockback == true && knock <= 0) { knockback = false; knock = 0; } } } } } } } } movieClip 382 { } movieClip 387 { } movieClip 390 { frame 10 { _parent.gotoAndStop(1); } } movieClip 393 { } movieClip 394 { frame 1 { _parent._alpha = 25; ehurt4 = new Sound(this); ehurt4.attachSound('pdeath'); ehurt4.setVolume(_root.enemyHvol); ehurt4.start(0, 1); } frame 45 { _parent.removeMovieClip(); } } movieClip 397 { frame 10 { _parent.gotoAndStop(2); } } movieClip 398 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance enemy5 of movieClip 398 { onClipEvent (load) { Move = true; worth = random(150) + 50; health = 250; spd = 0.5; timert = 150; timer = false; dead = false; price = 150; cansummon = false; timers = false; this.swapDepths(2000 + _root.i); origx = _x; origy = _y; done = false; if (_name != 'enemy5') { if (_x > 575) { this._x = -50; } trace('not'); } } onClipEvent (enterFrame) { if (_name != 'enemy5') { if (!_root.Pause) { if (_root._currentframe != 4) { this.removeMovieClip(); } _root.summonerp = true; if (done == true) { _root.revive.gotoAndStop(1); } price -= 0.1; if (price <= 50) { price = 50; } _root.xloc = this._x; if (health <= 0) { if (!killed) { killed = true; dead = true; this.swapDepths(0); gotoAndStop('dead'); _root.money += worth; _root.point += price * 0.2; _root.summonerp = false; trace('summonerP' + _root.summonerp); } } else { if (dead == false) { if (this.hitTest(_root.summon)) { cansummon = true; this.gotoAndStop('attack'); timerS = true; _root.revive.play(); Move = false; } else { if (!this.hitTest(_root.summon)) { cansummon = false; timerS = false; Move = true; } } if (timerS == true) { ++timers; } if (timers >= 150) { timers = 0; timerS = false; done = true; _root.grandsummon = true; trace('grandsummon'); } if (timers >= 50) { _root.revive.gotoAndStop(1); } if (this.hitTest(_root.player.hit) && timer == false && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= random(30) + 20; timer = true; } if (timer == true) { --timert; if (timert <= 0) { timer = false; timert = 100; } } if (Move == true && cansummon == false && done == false) { gotoAndStop('walk'); Xd = _root.summon._x - _x; Yd = _root.summon._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } else { if (done == true) { if (_currentframe != 3) { gotoAndStop('walk'); Xd = origx - _x; Yd = origy - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } } if (done == true && this._x <= -50 || this._x >= 575 || this._y <= -50 || this._y >= 450) { this.removeMovieClip(); _root.summonerp = false; } f = 0; while (f < _root.player.firec) { if (this.hitTest(_root['fire' + _root.player.firec])) { if (cansummon == false) { knockback = true; knock = 2; } health -= _root['fire' + _root.player.firec].damage; _root['fire' + _root.player.firec].removeMovieClip(); } ++f; } if (this.hit.hitTest(_root.player.uber.hit)) { health = 0; _root.soundFX(); } if (_root.light == true) { _root.summonerp = false; _root.money += worth; _root.point += price * 0.2; this.removeMovieClip(); } if (this.hit.hitTest(_root.player.punch.hit)) { health -= 2 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (this.hit.hitTest(_root.player.knife.hit)) { health -= 5 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (this.hit.hitTest(_root.player.sword.hit)) { health -= 7 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (this.hit.hitTest(_root.player.mace.hit)) { health -= 12.5 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (this.hit.hitTest(_root.player.axe.hit)) { health -= 15 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (this.hit.hitTest(_root.player.bigaxe.hit)) { health -= 20 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (this.hit.hitTest(_root.player.trident.hit)) { health -= 25 + _root.dmg; gotoAndStop('hurt'); if (cansummon == false) { knockback = true; knock = 2; _root.soundFX(); } } if (knockback == true && knock > 0) { --knock; if (_rotation > 180) { _y = _y - 7 * Math.cos(0.0174532925199433 * (_root.player._rotation + 180)); _x = _x + 7 * Math.sin(0.0174532925199433 * (_root.player._rotation + 180)); } else { _y = _y + 7 * Math.cos(0.0174532925199433 * (_root.player._rotation + 180)); _x = _x - 7 * Math.sin(0.0174532925199433 * (_root.player._rotation + 180)); } } else { if (knockback == true && knock <= 0) { knockback = false; knock = 0; } } } } } } } } movieClip 400 { } movieClip 404 { } movieClip 411 { instance of movieClip 312 { onClipEvent (load) { this.gotoAndStop(random(2)); } onClipEvent (enterFrame) { _rotation = _parent._rotation; } } frame 10 { _parent.gotoAndStop(1); } } movieClip 419 { } movieClip 421 { frame 1 { _parent._alpha = 50; } frame 107 { _parent.removeMovieClip(); } } movieClip 422 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance enemy4 of movieClip 422 { onClipEvent (load) { Move = true; worth = random(50) + 20; health = 200; spd = 0.5; timert = 150; timer = false; dead = false; price = 100; this.swapDepths(2000 + _root.i); if (random(2) == 1) { attitude = 2; } else { attitude = 1; } } onClipEvent (enterFrame) { if (_name != 'enemy4') { if (!_root.Pause) { if (_root._currentframe != 4) { this.removeMovieClip(); } price -= 0.1; if (price <= 30) { price = 30; } if (health <= 0) { if (!killed) { killed = true; dead = true; this.swapDepths(150 + _root.i); _root.money += worth; _root.point += price * 0.2; gotoAndStop('dead'); } } else { if (dead == false) { if (attitude == 2) { if (spottimer > 0) { --spottimer; } if (spottimer <= 0) { spotX = random(1000); spotY = random(500); spottimer = random(100); } if (this.hitTest(_root.player.hit) && timer == false && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= random(5) + 10; timer = true; } if (timer == true) { --timert; if (timert <= 0) { timer = false; timert = 100; } } if (_currentframe != 3) { gotoAndStop('walk'); Xd = spotX - _x; Yd = spotY - _y; if (spotX - this._x <= 10) { spotX = random(1000); } radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } f = 0; while (f < _root.player.firec) { if (this.hitTest(_root['fire' + _root.player.firec])) { trace('hit'); _root['fire' + _root.player.firec].removeMovieClip(); health -= _root['fire' + _root.player.firec].damage; } ++f; } if (this.hit.hitTest(_root.player.uber.hit)) { health = 0; _root.soundFX(); } if (_root.light == true) { _root.money += worth; _root.point += price * 0.2; this.removeMovieClip(); } if (this.hit.hitTest(_root.player.punch.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 10 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 10; _root.soundFX(); } if (this.hit.hitTest(_root.player.knife.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 15 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 15; _root.soundFX(); } if (this.hit.hitTest(_root.player.sword.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 20 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 20; _root.soundFX(); } if (this.hit.hitTest(_root.player.mace.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 25 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } if (this.hit.hitTest(_root.player.axe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 35 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 40 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit2)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; } if (this.hit.hitTest(_root.player.trident.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 60 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } } else { if (attitude == 1) { if (this.hitTest(_root.player.hit) && timer == false && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= random(2) + 1; timer = true; } if (timer == true) { --timert; if (timert <= 0) { timer = false; timert = 100; } } if (_currentframe != 3) { if (this.hit2.hitTest(_root.player.hit)) { gotoAndStop('attack'); if (this.attack.hit.hitTest(_root.player.hit) && _root.player._currentframe != 2 && _root.ubermode == false) { _root.player.gotoAndStop('hurt'); _root.playerhp -= 15; } Xd = _root.player._x - _x; Yd = _root.player._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); Move = false; } else { if (!this.hit2.hitTest(_root.player.hit)) { Move = true; } } } if (Move == true) { if (_currentframe != 3) { gotoAndStop('walk'); Xd = _root.player._x - _x; Yd = _root.player._y - _y; radAngle = Math.atan2(Yd, Xd); _rotation = int(radAngle * 360 / 6.283185307179586 + 90); if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } } f = 0; while (f < _root.player.firec) { if (this.hitTest(_root['fire' + _root.player.firec])) { knockback = true; knock = 15; health -= _root['fire' + _root.player.firec].damage; _root['fire' + _root.player.firec].removeMovieClip(); } ++f; } if (this.hit.hitTest(_root.player.uber.hit)) { health = 0; _root.soundFX(); } if (_root.light == true) { _root.money += worth; _root.point += price * 0.2; this.removeMovieClip(); } if (this.hit.hitTest(_root.player.punch.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 10 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.knife.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 15 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 5; _root.soundFX(); } if (this.hit.hitTest(_root.player.sword.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 20 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.mace.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 25 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 10; _root.soundFX(); } if (this.hit.hitTest(_root.player.axe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 35 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 7; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 40 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 30; _root.soundFX(); } if (this.hit.hitTest(_root.player.bigaxe.hit2)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 30; } if (this.hit.hitTest(_root.player.trident.hit)) { if (random(2) == 1) { ++_root.i; duplicateMovieClip(_root.blud, 'blood' + _root.i, 1 + _root.i); _root['blood' + _root.i]._x = this._x; _root['blood' + _root.i]._y = this._y; } health -= 60 + _root.dmg; gotoAndStop('hurt'); knockback = true; knock = 25; _root.soundFX(); } if (knockback == true && knock > 0) { --knock; if (_rotation > 180) { _y = _y - 7 * Math.cos(0.0174532925199433 * _rotation); _x = _x + 7 * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y + 7 * Math.cos(0.0174532925199433 * _rotation); _x = _x - 7 * Math.sin(0.0174532925199433 * _rotation); } } else { if (knockback == true && knock <= 0) { knockback = false; knock = 0; } } } } } } } } } } movieClip 425 { } movieClip 428 { } movieClip 430 { frame 1 { stop(); } instance of movieClip 425 { onClipEvent (load) { maxhealth = _root.playerhp; } onClipEvent (enterFrame) { if (_parent.health >= 0) { _width = (100 / maxhealth) * _root.playerhp; } if (_width >= 100) { _width = 100; } } } instance num of movieClip 428 { onClipEvent (load) { _visible = false; } } } instance of movieClip 430 { onClipEvent (load) { this.swapDepths(9999999999999998.0); } onClipEvent (enterFrame) { if (_root._currentframe != 4) { this.removeMovieClip(); } onRollOver = function () { this.num._visible = true; }; onRollOut = function () { this.num._visible = false; }; } } movieClip 435 { } instance fireb of movieClip 435 { onClipEvent (load) { spd = 20; _x = _root.player._x - 25; _y = _root.player._y; _rotation = _root.player._rotation; damage = 75; if (_name == 'fireb') { _root.fireFX(); } } onClipEvent (enterFrame) { if (!Pause) { if (_name == 'fireb') { _x = -1000; } else { if (_rotation > 180) { _y = _y + spd * Math.cos(0.0174532925199433 * _rotation); _x = _x - spd * Math.sin(0.0174532925199433 * _rotation); } else { _y = _y - spd * Math.cos(0.0174532925199433 * _rotation); _x = _x + spd * Math.sin(0.0174532925199433 * _rotation); } } if (_x > 550 || _x < 0 || _y < 0 || _y > 400) { this.removeMovieClip(); } } } } movieClip 457 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } frame 5 { stop(); } frame 6 { stop(); } frame 7 { stop(); } frame 8 { stop(); } frame 9 { stop(); } frame 10 { stop(); } frame 11 { stop(); } frame 12 { stop(); } frame 13 { stop(); } frame 14 { stop(); } frame 15 { stop(); } frame 16 { stop(); } frame 17 { stop(); } frame 18 { stop(); } frame 19 { stop(); } frame 20 { stop(); } frame 21 { stop(); } } instance firepower of movieClip 457 { onClipEvent (load) { this.swapDepths(9001 + _root.i); this.gotoAndStop('zero'); } onClipEvent (enterFrame) { if (_root._currentframe != 4) { this.removeMovieClip(); } } } movieClip 463 { frame 1 { stop(); } frame 2 { stop(); } frame 3 { stop(); } frame 4 { stop(); } } instance lightningpower of movieClip 463 { onClipEvent (load) { this.swapDepths(9002 + _root.i); this.gotoAndStop('full'); } onClipEvent (enterFrame) { if (_root._currentframe != 4) { this.removeMovieClip(); } } } movieClip 465 { } instance of movieClip 465 { onClipEvent (load) { this.swapDepths(9003 + _root.i); } onClipEvent (enterFrame) { if (_root._currentframe != 4) { this.removeMovieClip(); } } } movieClip 467 { } movieClip 469 { frame 1 { stop(); } } movieClip 471 { frame 1 { stop(); } } movieClip 472 { frame 1 { stop(); } } instance blud of movieClip 472 { onClipEvent (load) { this._rotation = random(360); if (random(3) == 1) { this.gotoAndStop(2); } if (random(2) == 1) { this.gotoAndStop(3); } tiime = random(750) + 750; } onClipEvent (enterFrame) { if (_root._currentframe != 4) { tiime = 0; } if (_name != 'blud') { --tiime; } if (tiime <= 0) { this._alpha -= 0.5; } if (this._alpha <= 0) { this.removeMovieClip(); } } } movieClip 477 { } instance food3 of movieClip 477 { onClipEvent (load) { if (_name != 'food3') { worth = 40; this._x = random(500) + 25; this._y = random(350) + 25; present = 300; canget = true; } } onClipEvent (enterFrame) { if (_name != 'food3') { if (_root._currentframe != 4) { this.removeMovieClip(); } _root.foodp = true; --present; if (present <= 0) { --this._alpha; present = 0; } if (this._alpha <= 25) { canget = false; } if (this._alpha <= 0) { _root.foodp = false; this.removeMovieClip(); } if (this.hitTest(_root.player.hit) && canget == true) { duplicateMovieClip(_root.crum, 'Crum' + _root.i, 7000 + _root.i); _root['Crum' + _root.i]._x = this._x; _root['Crum' + _root.i]._y = this._y - 30; _root.playerhp += worth; _root.foodp = false; ++i; this.removeMovieClip(); } } } } movieClip 482 { } instance food2 of movieClip 482 { onClipEvent (load) { if (_name != 'food2') { worth = 20; this._x = random(500) + 25; this._y = random(350) + 25; present = 500; canget = true; } } onClipEvent (enterFrame) { if (_name != 'food2') { if (_root._currentframe != 4) { this.removeMovieClip(); } _root.foodp = true; --present; if (present <= 0) { --this._alpha; present = 0; } if (this._alpha <= 25) { canget = false; } if (this._alpha <= 0) { _root.foodp = false; this.removeMovieClip(); } if (this.hitTest(_root.player.hit) && canget == true) { duplicateMovieClip(_root.crum, 'Crum' + _root.i, 7000 + _root.i); _root['Crum' + _root.i]._x = this._x; _root['Crum' + _root.i]._y = this._y - 30; _root.playerhp += worth; _root.foodp = false; ++i; this.removeMovieClip(); } } } } movieClip 487 { } instance food1 of movieClip 487 { onClipEvent (load) { if (_name != 'food1') { worth = 10; this._x = random(500) + 25; this._y = random(350) + 25; present = 400; canget = true; } } onClipEvent (enterFrame) { if (_name != 'food1') { if (_root._currentframe != 4) { this.removeMovieClip(); } _root.foodp = true; --present; if (present <= 0) { --this._alpha; present = 0; } if (this._alpha <= 25) { canget = false; } if (this._alpha <= 0) { _root.foodp = false; this.removeMovieClip(); } if (this.hitTest(_root.player.hit) && canget == true) { ++_root.i; duplicateMovieClip(_root.crum, 'Crum' + _root.i, 7000 + _root.i); _root['Crum' + _root.i]._x = this._x; _root['Crum' + _root.i]._y = this._y - 30; _root.playerhp += worth; _root.foodp = false; ++i; this.removeMovieClip(); } } } } movieClip 492 { } instance food5 of movieClip 492 { onClipEvent (load) { if (_name != 'food5') { worth = -20; this._x = random(500) + 25; this._y = random(350) + 25; present = 400; canget = true; } } onClipEvent (enterFrame) { if (_name != 'food5') { if (_root._currentframe != 4) { this.removeMovieClip(); } _root.foodp = true; --present; if (present <= 0) { --this._alpha; present = 0; } if (this._alpha <= 25) { canget = false; } if (this._alpha <= 0) { _root.foodp = false; this.removeMovieClip(); } if (this.hitTest(_root.player.hit) && canget == true) { _root.player.gotoAndStop('hurt'); _root.playerhp += worth; _root.foodp = false; this.removeMovieClip(); } } } } movieClip 497 { } instance food4 of movieClip 497 { onClipEvent (load) { if (_name != 'food4') { worth = 75; this._x = random(500) + 25; this._y = random(350) + 25; present = 200; canget = true; } } onClipEvent (enterFrame) { if (_name != 'food4') { if (_root._currentframe != 4) { this.removeMovieClip(); } _root.foodp = true; --present; if (present <= 0) { --this._alpha; present = 0; } if (this._alpha <= 25) { canget = false; } if (this._alpha <= 0) { _root.foodp = false; this.removeMovieClip(); } if (this.hitTest(_root.player.hit) && canget == true) { duplicateMovieClip(_root.crum, 'Crum' + _root.i, 7000 + _root.i); _root['Crum' + _root.i]._x = _x; _root['Crum' + _root.i]._y = _y - 30; _root.playerhp += worth; _root.foodp = false; ++i; this.removeMovieClip(); } } } } movieClip 506 { frame 17 { stop(); this.removeMovieClip(); } } movieClip 510 { } instance of movieClip 510 { onClipEvent (enterFrame) { this.timer = Math.round(_root.ubert / 30); if (_root.ubert == 0) { this._visible = false; } else { this._visible = true; } } } movieClip 512 { frame 1 { stop(); } frame 2 { bgSound = new Sound(this); bgSound.attachSound('punch1'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } frame 3 { bgSound = new Sound(this); bgSound.attachSound('punch2'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } frame 4 { bgSound = new Sound(this); bgSound.attachSound('punch3'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } frame 5 { bgSound = new Sound(this); bgSound.attachSound('punch4'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } frame 6 { bgSound = new Sound(this); bgSound.attachSound('punch5'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } frame 7 { bgSound = new Sound(this); bgSound.attachSound('punch6'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } frame 8 { bgSound = new Sound(this); bgSound.attachSound('punch7'); bgSound.setVolume(100); bgSound.start(0, 1); gotoAndStop(1); } } instance sfx of movieClip 512 { onClipEvent (load) { _visible = false; } } instance of movieClip 93 { onClipEvent (release) { getURL('http://www.zigyugames.com', _blank); } } movieClip 514 { } instance of movieClip 514 { onClipEvent (load) { this.swapDepths(9004 + _root.i); } onClipEvent (enterFrame) { if (_root._currentframe != 4) { this.removeMovieClip(); } } } movieClip 516 { } instance of movieClip 516 { onClipEvent (load) { this.swapDepths(9005 + _root.i); } onClipEvent (enterFrame) { if (_root._currentframe != 4) { this.removeMovieClip(); } } } movieClip 518 { } button 519 { on (release) { stopAllSounds(); music = new Sound(this); music.attachSound('punch3'); music.setVolume(75); music.start(0, 1); _root.gotoAndStop('game'); } } frame 6 { stop(); stopAllSounds(); bgSound = new Sound(this); bgSound.attachSound('lose'); bgSound.setVolume(100); bgSound.start(0, 1); } movieClip 522 { } button 527 { on (release) { stopAllSounds(); _root.gotoAndStop('menu'); } } movieClip 528 { } button 534 { on (release) { var o = {'n': [1, 0, 5, 6, 6, 6, 4, 10, 11, 2, 15, 11, 13, 12, 7, 2], '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': boardID, 'score': _root.scoref}); } } frame 8 { stopAllSounds(); bgSound = new Sound(this); bgSound.attachSound('menu'); bgSound.setVolume(100); bgSound.start(0, 9999); _root.gotoAndStop('menu'); } frame 9 { 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__('71498a55', this, 10301, true); } frame 9 { stop(); music = new Sound(this); music.attachSound('story'); music.setVolume(75); music.start(0, 9999); } movieClip 536 { } movieClip 539 { } // unknown tag 88 length 84 button 545 { on (release) { nextFrame(); } } movieClip 549 { } movieClip 551 { } button 562 { on (release) { _root.gotoAndStop('tut'); } } movieClip 563 { frame 1 { stop(); } }




http://swfchan.com/12/58160/info.shtml
Created: 17/4 -2019 10:28:20 Last modified: 17/4 -2019 10:28:20 Server time: 28/04 -2024 08:13:20