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

swfchan turned sixteen years old yesterday! (5may2024)

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

Box Dude TD 4.swf

This is the info page for
Flash #216640

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


ActionScript [AS1/AS2]
Combined Code
frame 1 { mochi.as2.MochiAd.showPreGameAd({'id': '632f4ac82941d001', 'res': '700x450', 'background': 16777161, 'color': 7595007, 'outline': 2209279, 'no_bg': true}); mochi.as2.MochiServices.connect('632f4ac82941d001'); } movieClip 15 { } movieClip 18 { } movieClip 288 __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 mochi.as2.MochiServices.getVersion(); }; v1.showPreGameAd = function (options) { var v27 = {'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, v27); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v24 = 11000; var v19 = options.ad_timeout; if (options.skip) { v19 = 0; } 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 v15 = mochi.as2.MochiAd._getRes(options); var v5 = v15[0]; var v14 = v15[1]; mc._x = v5 * 0.5; mc._y = v14 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v5 * -0.5; chk._y = v14 * -0.5; var v7 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v7._visible = false; delete options.no_progress_bar; } else { v7._x = 10; v7._y = v14 - 20; } var v23 = options.color; delete options.color; var v21 = options.background; delete options.background; var v25 = options.outline; delete options.outline; var v6 = v7.createEmptyMovieClip('_outline', 1); v6.beginFill(v21); v6.moveTo(0, 0); v6.lineTo(v5 - 20, 0); v6.lineTo(v5 - 20, 10); v6.lineTo(0, 10); v6.lineTo(0, 0); v6.endFill(); var v4 = v7.createEmptyMovieClip('_inside', 2); v4.beginFill(v23); v4.moveTo(0, 0); v4.lineTo(v5 - 20, 0); v4.lineTo(v5 - 20, 10); v4.lineTo(0, 10); v4.lineTo(0, 0); v4.endFill(); v4._xscale = 0; var v8 = v7.createEmptyMovieClip('_outline', 3); v8.lineStyle(0, v25, 100); v8.moveTo(0, 0); v8.lineTo(v5 - 20, 0); v8.lineTo(v5 - 20, 10); v8.lineTo(0, 10); v8.lineTo(0, 0); chk.ad_msec = v24; chk.ad_timeout = v19; 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; } }; 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 v10 = this._parent._parent; var v3 = v10; for (;;) { if (!(!v3.getBytesTotal() && v3)) break; v3 = v3._parent; } if (!v3) { v3 = _root; } var v13 = this._parent._mochiad_ctr; var v7 = getTimer() - this.started; var v5 = false; var v6 = v3.getBytesTotal(); var v9 = v3.getBytesLoaded(); var v4 = 100 * v9 / v6; var v12 = 100 * v7 / chk.ad_msec; var v11 = this._mochiad_bar._inside; var v15 = Math.min(100, Math.min(v4 || 0, v12)); v15 = Math.max(this.last_pcnt, v15); this.last_pcnt = v15; v11._xscale = v15; options.ad_progress(v15); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v4}, clip._mochiad._containerLCName); if (v4 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v8 = v13.getBytesTotal(); if (v8 > 0 || typeof v8 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v7 > chk.ad_timeout && v4 == 100) { options.ad_failed(); v5 = true; } } } if (v7 > chk.ad_msec) { v5 = true; } if (v6 > 0 && v9 >= v6 && v5) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var v10 = {'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, v10); var clip = options.clip; var v9 = 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 v3 = clip._mochiad; v3.onUnload = function () { options.ad_finished(); }; var v5 = mochi.as2.MochiAd._getRes(options); var v11 = v5[0]; var v8 = v5[1]; v3._x = v11 * 0.5; v3._y = v8 * 0.5; var chk = v3.createEmptyMovieClip('_mochiad_wait', 3); chk.ad_timeout = v9; chk.started = getTimer(); chk.showing = false; v3.lc.adLoaded = options.ad_loaded; v3.lc.adSkipped = options.ad_skipped; v3.lc.rpc = function (callbackID, arg) { mochi.as2.MochiAd.rpc(clip, callbackID, arg); }; v3.rpcTestFn = function (s) { trace('[MOCHIAD rpcTestFn] ' + s); return s; }; var v21 = false; 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 v6 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; if (!chk.showing) { var v4 = v6.getBytesTotal(); if (v4 > 0 || typeof v4 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { _root.resources += 100; v3 = true; } if (v3) { 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 v12 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'}; options = mochi.as2.MochiAd._parseOptions(options, v12); options.swfv = options.clip.getSWFVersion() || 6; options.mav = mochi.as2.MochiAd.getVersion(); var v6 = options.clip; if (!mochi.as2.MochiAd._isNetworkAvailable()) { return null; } if (v6._mochiad_loaded) { return null; } var v11 = options.depth; delete options.depth; var mc = v6.createEmptyMovieClip('_mochiad', v11); var v10 = mochi.as2.MochiAd._getRes(options); options.res = v10[0] + 'x' + v10[1]; options.server += options.id; delete options.id; v6._mochiad_loaded = true; if (v6._url.indexOf('http') != 0) { trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal'); } var v4 = mc.createEmptyMovieClip('_mochiad_ctr', 1); for (var v7 in options) { v4[v7] = options[v7]; } var v9 = v4.server; delete v4.server; var v13 = mochi.as2.MochiAd._allowDomains(v9); mc.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 Object(); var v8 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_'); v5.mc = mc; v5.name = v8; v5.hostname = v13; v5.allowDomain = function (d) { return true; }; v5.allowInsecureDomain = v5.allowDomain; v5.connect(v8); mc.lc = v5; mc.lc.regContLC = function (lc_name) { mc._containerLCName = lc_name; }; v4.lc = v8; v4.st = getTimer(); if (!options.skip) { v4.loadMovie(v9 + '.swf', 'POST'); } return mc; }; v1.unload = function (clip) { if (typeof clip == 'undefined') { clip = _root; } if (clip.clip && clip.clip._mochiad) { clip = clip.clip; } if (!clip._mochiad) { return false; } mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName); 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); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName); break; case 'runMethod': var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args); mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName); 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; } }; v1.containerNotify = function (clip, args, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.notify) { v1.notify(args); } else { (new LocalConnection()).send(lcName, 'notify', args); } }; v1.containerRpcResult = function (clip, callbackID, val, lcName) { var v1 = clip._mochiad._mochiad_ctr.ad.app; if (v1.rpcResult) { v1.rpcResult(callbackID, val); } else { (new LocalConnection()).send(lcName, 'rpcResult', callbackID, val); } }; ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1); } #endinitclip } movieClip 289 __Packages.mochi.as2.MochiEventDispatcher { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEventDispatcher) { var v1 = function () { this.eventTable = {}; }; mochi.as2.MochiEventDispatcher = v1; var v2 = v1.prototype; v2.buildDelegate = function (thisObject, thatObject) { var v2 = {'thisObject': thisObject, 'thatObject': thatObject}; if (thatObject != undefined) { var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject; v2.delegate = function (args) { funct.call(thisObject, args); }; return v2; } v2.delegate = thisObject; return v2; }; v2.compareDelegate = function (d_A, d_B) { if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) { return false; } return true; }; v2.addEventListener = function (event, thisObject, thatObject) { this.removeEventListener(event, thisObject, thatObject); this.eventTable[event].push(this.buildDelegate(thisObject, thatObject)); }; v2.removeEventListener = function (event, thisObject, thatObject) { var v3 = this.buildDelegate(thisObject, thatObject); if (this.eventTable[event] == undefined) { this.eventTable[event] = []; return undefined; } for (var v4 in this.eventTable[event]) { if (!this.compareDelegate(this.eventTable[event][v4], v3)) { continue; } this.eventTable[event].splice(Number(v4), 1); } }; v2.triggerEvent = function (event, args) { if (this.eventTable[event] == undefined) { return undefined; } for (var v4 in this.eventTable[event]) { this.eventTable[event][v4].delegate(args); } }; ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1); } #endinitclip } movieClip 290 __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.9.5 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { mochi.as2.MochiServices.onError('NotConnected'); return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError('IOError'); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError(errorCode); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'services': mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args); break; case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args); break; case 'social': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError('IOError'); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.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('NotConnected'); } if (args.options != null && args.options.onError != null) { args.options.onError('NotConnected'); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': break; case 'b': case 'c': case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.CONNECTED = 'onConnected'; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); 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 291 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.getAchievements = function (properties) { mochi.as2.MochiServices.send('events_getAchievements', properties); }; v1.unlockAchievement = function (properties) { mochi.as2.MochiServices.send('events_unlockAchievement', properties); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.showAwards = function (options) { mochi.as2.MochiServices.send('events_showAwards', options, null, null); }; v1.setNotifications = function (style) { mochi.as2.MochiServices.send('events_setNotifications', style, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENTS_OWNED = 'AchievementOwned'; v1.ACHIEVEMENT_NEW = 'AchievementReceived'; v1.GAME_ACHIEVEMENTS = 'GameAchievements'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.IO_PENDING = 'IOPending'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1.FORMAT_NONE = 'NoForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 292 __Packages.mochi.as2.MochiCoins { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiCoins) { var v1 = function () {}; mochi.as2.MochiCoins = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showStore = function (options) { mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null); }; v1.showItem = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showItem call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null); }; v1.showVideo = function (options) { if (options == undefined || typeof options.item != 'string') { trace('ERROR: showVideo call must pass an Object with an item key'); return undefined; } mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null); }; v1.getStoreItems = function () { mochi.as2.MochiServices.send('coins_getStoreItems'); }; v1.requestFunding = function (properties) { mochi.as2.MochiServices.send('social_requestFunding', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate); }; v1.STORE_SHOW = 'StoreShow'; v1.STORE_HIDE = 'StoreHide'; v1.ITEM_OWNED = 'ItemOwned'; v1.ITEM_NEW = 'ItemNew'; v1.STORE_ITEMS = 'StoreItems'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1); } #endinitclip } movieClip 293 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('social_hideLoginWidget'); }; v1.requestLogin = function (properties) { mochi.as2.MochiServices.send('social_requestLogin', properties); }; v1.getFriendsList = function (properties) { mochi.as2.MochiServices.send('social_getFriendsList', properties); }; v1.showProfile = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('social_showProfile', options); }; v1.postToStream = function (properties) { mochi.as2.MochiServices.send('social_postToStream', properties); }; v1.inviteFriends = function (properties) { mochi.as2.MochiServices.send('social_inviteFriends', properties); }; v1.requestFan = function (properties) { mochi.as2.MochiServices.send('social_requestFan', properties); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('social_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.FRIEND_LIST = 'FriendsList'; v1.PROFILE_DATA = 'ProfileData'; v1.GAMEPLAY_DATA = 'GameplayData'; v1.ACTION_CANCELED = 'onCancel'; v1.ACTION_COMPLETE = 'onComplete'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } movieClip 294 __Packages.mochi.as2.MochiScores { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiScores) { var v1 = function () {}; mochi.as2.MochiScores = v1; var v2 = v1.prototype; v1.setBoardID = function (boardID) { mochi.as2.MochiServices.warnID(boardID, true); mochi.as2.MochiScores.boardID = boardID; mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID}); }; v1.showLeaderboard = function (options) { options.clip = mochi.as2.MochiServices.clip; if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) { mochi.as2.MochiServices.disconnect(); trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!'); trace('make sure MochiServices.connect is called as early in the application runtime as possible.'); mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip); } delete options.clip; if (options.name != null) { if (typeof options.name == 'object') { if (options.name.text != undefined) { options.name = options.name.text; } } } if (options.score != null) { if (options.score instanceof TextField) { if (options.score.text != undefined) { options.score = options.score.text; } } else { if (options.score instanceof mochi.as2.MochiDigits) { options.score = options.score.value; } } var v1 = Number(options.score); if (isNaN(v1)) { trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\''); } else { if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) { trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite'); } else { if (Math.floor(v1) != v1) { trace('WARNING: Submitted score \'' + options.score + '\' will be truncated'); } options.score = v1; } } } if (options.onDisplay != null) { options.onDisplay(); } else { (mochi.as2.MochiServices.__get__clip()).stop(); } if (options.onClose != null) { mochi.as2.MochiScores.onClose = options.onClose; } else { mochi.as2.MochiScores.onClose = function () { (mochi.as2.MochiServices.__get__clip()).stop(); }; } if (options.onError != null) { mochi.as2.MochiScores.onError = options.onError; } else { mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose; } if (options.boardID == null) { if (mochi.as2.MochiScores.boardID != null) { options.boardID = mochi.as2.MochiScores.boardID; } } mochi.as2.MochiServices.warnID(options.boardID, true); trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal'); mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose); }; v1.closeLeaderboard = function () { mochi.as2.MochiServices.send('scores_closeLeaderboard'); }; v1.getPlayerInfo = function (callbackObj, callbackMethod) { mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod); }; v1.submit = function (score, name, callbackObj, callbackMethod) { score = Number(score); if (isNaN(score)) { trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\''); } else { if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) { trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite'); } else { if (Math.floor(score) != score) { trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated'); } score = Number(score); } } mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod); }; v1.requestList = function (callbackObj, callbackMethod) { mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod); }; v1.scoresArrayToObjects = function (scores) { var v5 = {}; var v1; var v4; var v2; var v6; for (var v8 in scores) { if (typeof scores[v8] == 'object') { if (scores[v8].cols != null && scores[v8].rows != null) { v5[v8] = []; v2 = scores[v8]; v4 = 0; while (v4 < v2.rows.length) { v6 = {}; v1 = 0; while (v1 < v2.cols.length) { v6[v2.cols[v1]] = v2.rows[v4][v1]; ++v1; } v5[v8].push(v6); ++v4; } } else { v5[v8] = {}; for (var v7 in scores[v8]) { v5[v8][v7] = scores[v8][v7]; } } } else { v5[v8] = scores[v8]; } } return v5; }; v1.doClose = function (args) { if (args.error == true) { if (args.errorCode == undefined) { args.errorCode = 'IOError'; } mochi.as2.MochiScores.onError.apply(null, [args.errorCode]); } else { mochi.as2.MochiScores.onClose.apply(); } }; ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1); } #endinitclip } movieClip 295 __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 { var menubit = 0; stop(); } movieClip 21 { frame 119 { stop(); } } movieClip 27 { frame 10 { stop(); } } button 28 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); _root.gotoAndStop(3); } on (rollOver) { _root.menubit = 1; } on (rollOut) { _root.menubit = 0; } } movieClip 33 { frame 10 { stop(); } } button 34 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); var o = {'n': [2, 15, 9, 2, 2, 7, 15, 14, 3, 2, 4, 0, 11, 8, 0, 10], '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}); } on (rollOver) { _root.menubit = 2; } on (rollOut) { _root.menubit = 0; } } movieClip 39 { frame 10 { stop(); } } button 40 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); getURL('http://boxrocketstudios.weebly.com', new Window()); } on (rollOver) { _root.menubit = 3; } on (rollOut) { _root.menubit = 0; } } movieClip 45 { frame 10 { stop(); } } button 46 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); _root.gotoAndStop(11); } on (rollOver) { _root.menubit = 4; } on (rollOut) { _root.menubit = 0; } } movieClip 47 { } instance of movieClip 47 { onClipEvent (enterFrame) { if (_root.menubit > 0) { this.gotoAndStop(_root.menubit); } else { this.gotoAndStop(4); } } } movieClip 50 { } movieClip 53 { } movieClip 56 { } movieClip 57 { frame 95 { stop(); } } button 67 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); gotoAndStop(4); } } movieClip 70 { frame 182 { stop(); } } frame 4 { } frame 4 { var fing = 0; var desct = 0; } frame 4 { var stagecps = 5; var round = 0; var waves = _root.round; var buying = 0; var select = 0; var credits = 500; var objs = ['laserblaster1', 'laserblaster2', 'laserblaster3', 'laserblaster4', 'laserblaster5', 'track1', 'track2', 'track3', 'track4', 'track5', 'track6', 'track7', 'gluegun1', 'gluegun2', 'gluegun3', 'gluegun4', 'gluegun5', 'inferno1', 'inferno2', 'inferno3', 'inferno4', 'inferno5', 'creditgenerator1', 'creditgenerator2', 'creditgenerator3', 'creditgenerator4', 'creditgenerator5', 'healthgenerator1', 'healthgenerator2', 'healthgenerator3', 'healthgenerator4', 'healthgenerator5', 'teleporter2', 'teleporter3', 'teleporter4', 'teleporter5', 'teleporter1', 'ultimateblaster1', 'ultimateblaster2', 'ultimateblaster3', 'ultimateblaster4', 'ultimateblaster5']; var health = 100; var mode = 1; var wave = ['nope', 'nope', 'nope', 'nope']; var nextspawn = 100; var laserblaster = [0, 0, 0, 0, 0]; var gluegun = [0, 0, 0, 0, 0]; var inferno = [0, 0, 0, 0, 0]; var creditgenerator = [0, 0, 0, 0, 0]; var healthgenerator = [0, 0, 0, 0, 0]; var teleporter = [0, 0, 0, 0, 0]; var ultimateblaster = [0, 0, 0, 0, 0]; var count = 0; var nope = 0; var turretbb = ''; onMouseDown = function () { if (_root.buying > 0) { count = 0; if (_root.buying <= 5) { turretbb = 'laserblaster' + buying; } if (_root.buying >= 6 && _root.buying <= 10) { turretbb = 'gluegun' + (buying - 5); } if (_root.buying >= 11 && _root.buying <= 15) { turretbb = 'inferno' + (buying - 10); } if (_root.buying >= 16 && _root.buying <= 20) { turretbb = 'creditgenerator' + (buying - 15); } if (_root.buying >= 21 && _root.buying <= 25) { turretbb = 'healthgenerator' + (buying - 20); } if (_root.buying >= 26 && _root.buying <= 30) { turretbb = 'teleporter' + (buying - 25); } if (_root.buying >= 31 && _root.buying <= 35) { turretbb = 'ultimateblaster' + (buying - 30); } nope = 0; while (count <= 40) { if (turretbb != objs[count]) { if (_root[turretbb].hitTest(_root[objs[count]])) { if (_root[objs[count]]._visible == true) { nope = 123345; } } } count += 1; } if (nope == 0) { place = new Sound(); place.attachSound('punch.wav'); place.start(); _root.buying = 0; } } }; } movieClip 73 { } instance of movieClip 73 { onClipEvent (press) { _root.select = 0; } } movieClip 76 { frame 1 { stop(); } } instance of movieClip 76 { onClipEvent (enterFrame) { if (_root.mode == 1) { this.gotoAndStop(1); } else { this.gotoAndStop(2); } } } movieClip 78 { } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.gluegun1.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.gluegun1.shooting = 0; } } if (_root.gluegun1.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.gluegun1.shooting = 0; } } if (_root.gluegun1.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.gluegun1.shooting = 0; } } if (_root.gluegun1.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.gluegun1.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.gluegun1.shooting = 0; } if (_root.gluegun[0] == 1) { if (_root.select == 6) { this._visible = true; _x = _root.gluegun1._x; _y = _root.gluegun1._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun1.shooting == 1 || _root.gluegun1.shooting == 0)) { if (_root.gluegun1.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun1.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun1.shooting == 2 || _root.gluegun1.shooting == 0)) { if (_root.gluegun1.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun1.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun1.shooting == 3 || _root.gluegun1.shooting == 0)) { if (_root.gluegun1.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun1.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun1.shooting == 4 || _root.gluegun1.shooting == 0)) { if (_root.gluegun1.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun1.shooting = 4; } else { _root.gluegun1.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.gluegun2.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.gluegun2.shooting = 0; } } if (_root.gluegun2.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.gluegun2.shooting = 0; } } if (_root.gluegun2.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.gluegun2.shooting = 0; } } if (_root.gluegun2.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.gluegun2.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.gluegun2.shooting = 0; } if (_root.gluegun[1] == 1) { if (_root.select == 7) { this._visible = true; _x = _root.gluegun2._x; _y = _root.gluegun2._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun2.shooting == 1 || _root.gluegun2.shooting == 0)) { if (_root.gluegun2.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun2.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun2.shooting == 2 || _root.gluegun2.shooting == 0)) { if (_root.gluegun2.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun2.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun2.shooting == 3 || _root.gluegun2.shooting == 0)) { if (_root.gluegun2.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun2.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun2.shooting == 4 || _root.gluegun2.shooting == 0)) { if (_root.gluegun2.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun2.shooting = 4; } else { _root.gluegun2.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.gluegun3.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.gluegun3.shooting = 0; } } if (_root.gluegun3.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.gluegun3.shooting = 0; } } if (_root.gluegun3.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.gluegun3.shooting = 0; } } if (_root.gluegun3.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.gluegun3.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.gluegun3.shooting = 0; } if (_root.gluegun[2] == 1) { if (_root.select == 8) { this._visible = true; _x = _root.gluegun3._x; _y = _root.gluegun3._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun3.shooting == 1 || _root.gluegun3.shooting == 0)) { if (_root.gluegun3.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun3.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun3.shooting == 2 || _root.gluegun3.shooting == 0)) { if (_root.gluegun3.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun3.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun3.shooting == 3 || _root.gluegun3.shooting == 0)) { if (_root.gluegun3.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun3.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun3.shooting == 4 || _root.gluegun3.shooting == 0)) { if (_root.gluegun3.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun3.shooting = 4; } else { _root.gluegun3.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.gluegun4.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.gluegun4.shooting = 0; } } if (_root.gluegun4.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.gluegun4.shooting = 0; } } if (_root.gluegun4.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.gluegun4.shooting = 0; } } if (_root.gluegun4.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.gluegun4.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.gluegun4.shooting = 0; } if (_root.gluegun[3] == 1) { if (_root.select == 9) { this._visible = true; _x = _root.gluegun4._x; _y = _root.gluegun4._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun4.shooting == 1 || _root.gluegun4.shooting == 0)) { if (_root.gluegun4.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun4.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun4.shooting == 2 || _root.gluegun4.shooting == 0)) { if (_root.gluegun4.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun4.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun4.shooting == 3 || _root.gluegun4.shooting == 0)) { if (_root.gluegun4.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun4.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun4.shooting == 4 || _root.gluegun4.shooting == 0)) { if (_root.gluegun4.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun4.shooting = 4; } else { _root.gluegun4.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.gluegun5.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.gluegun5.shooting = 0; } } if (_root.gluegun5.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.gluegun5.shooting = 0; } } if (_root.gluegun5.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.gluegun5.shooting = 0; } } if (_root.gluegun5.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.gluegun5.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.gluegun5.shooting = 0; } if (_root.gluegun[4] == 1) { if (_root.select == 10) { this._visible = true; _x = _root.gluegun5._x; _y = _root.gluegun5._y; } else { this._visible = false; } } else { this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun5.shooting == 1 || _root.gluegun5.shooting == 0)) { if (_root.gluegun5.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun5.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun5.shooting == 2 || _root.gluegun5.shooting == 0)) { if (_root.gluegun5.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun5.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun5.shooting == 3 || _root.gluegun5.shooting == 0)) { if (_root.gluegun5.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun5.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.gluegun5.shooting == 4 || _root.gluegun5.shooting == 0)) { if (_root.gluegun5.shooting == 0) { glue = new Sound(); glue.attachSound('glue.mp3'); glue.start(); } _root.gluegun5.shooting = 4; } else { _root.gluegun5.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.creditgenerator[0] == 1) { if (_root.select == 16) { this._visible = true; _x = _root.creditgenerator1._x; _y = _root.creditgenerator1._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.laserblaster1.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.laserblaster1.shooting = 0; } } if (_root.laserblaster1.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.laserblaster1.shooting = 0; } } if (_root.laserblaster1.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.laserblaster1.shooting = 0; } } if (_root.laserblaster1.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.laserblaster1.shooting = 0; } } if (_root.laserblaster[0] == 1) { if (_root.select == 1) { this._visible = true; _x = _root.laserblaster1._x; _y = _root.laserblaster1._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 1) { if (_root.laserblaster1.shooting == 1 || _root.laserblaster1.shooting == 0) { if (_root.laserblaster1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster1.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 1) { if (_root.laserblaster1.shooting == 2 || _root.laserblaster1.shooting == 0) { if (_root.laserblaster1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster1.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 1) { if (_root.laserblaster1.shooting == 3 || _root.laserblaster1.shooting == 0) { if (_root.laserblaster1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster1.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 1) { if (_root.laserblaster1.shooting == 4 || _root.laserblaster1.shooting == 0) { if (_root.laserblaster1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster1.shooting = 4; } } else { _root.laserblaster1.shooting = 0; } } } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.laserblaster1.shooting = 0; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.laserblaster2.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.laserblaster2.shooting = 0; } } if (_root.laserblaster2.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.laserblaster2.shooting = 0; } } if (_root.laserblaster2.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.laserblaster2.shooting = 0; } } if (_root.laserblaster2.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.laserblaster2.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.laserblaster2.shooting = 0; } if (_root.laserblaster[1] == 1) { if (_root.select == 2) { this._visible = true; _x = _root.laserblaster2._x; _y = _root.laserblaster2._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.laserblaster2.shooting == 1 || _root.laserblaster2.shooting == 0) { if (_root.laserblaster2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster2.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.laserblaster2.shooting == 2 || _root.laserblaster2.shooting == 0) { if (_root.laserblaster2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster2.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.laserblaster2.shooting == 3 || _root.laserblaster2.shooting == 0) { if (_root.laserblaster2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster2.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.laserblaster2.shooting == 4 || _root.laserblaster2.shooting == 0) { if (_root.laserblaster2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster2.shooting = 4; } } else { _root.laserblaster2.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.laserblaster3.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.laserblaster3.shooting = 0; } } if (_root.laserblaster3.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.laserblaster3.shooting = 0; } } if (_root.laserblaster3.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.laserblaster3.shooting = 0; } } if (_root.laserblaster3.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.laserblaster3.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.laserblaster3.shooting = 0; } if (_root.laserblaster[2] == 1) { if (_root.select == 3) { this._visible = true; _x = _root.laserblaster3._x; _y = _root.laserblaster3._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 3) { if (_root.laserblaster3.shooting == 1 || _root.laserblaster3.shooting == 0) { if (_root.laserblaster3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster3.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 3) { if (_root.laserblaster3.shooting == 2 || _root.laserblaster3.shooting == 0) { if (_root.laserblaster3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster3.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 3) { if (_root.laserblaster3.shooting == 3 || _root.laserblaster3.shooting == 0) { if (_root.laserblaster3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster3.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 3) { if (_root.laserblaster3.shooting == 4 || _root.laserblaster3.shooting == 0) { if (_root.laserblaster3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster3.shooting = 4; } } else { _root.laserblaster3.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.laserblaster4.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.laserblaster4.shooting = 0; } } if (_root.laserblaster4.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.laserblaster4.shooting = 0; } } if (_root.laserblaster4.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.laserblaster4.shooting = 0; } } if (_root.laserblaster4.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.laserblaster4.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.laserblaster4.shooting = 0; } if (_root.laserblaster[3] == 1) { if (_root.select == 4) { this._visible = true; _x = _root.laserblaster4._x; _y = _root.laserblaster4._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 4) { if (_root.laserblaster4.shooting == 1 || _root.laserblaster4.shooting == 0) { if (_root.laserblaster4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster4.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 4) { if (_root.laserblaster4.shooting == 2 || _root.laserblaster4.shooting == 0) { if (_root.laserblaster4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster4.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 4) { if (_root.laserblaster4.shooting == 3 || _root.laserblaster4.shooting == 0) { if (_root.laserblaster4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster4.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 4) { if (_root.laserblaster4.shooting == 4 || _root.laserblaster4.shooting == 0) { if (_root.laserblaster4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster4.shooting = 4; } } else { _root.laserblaster4.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.laserblaster5.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.laserblaster5.shooting = 0; } } if (_root.laserblaster5.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.laserblaster5.shooting = 0; } } if (_root.laserblaster5.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.laserblaster5.shooting = 0; } } if (_root.laserblaster5.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.laserblaster5.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.laserblaster5.shooting = 0; } if (_root.laserblaster[4] == 1) { if (_root.select == 5) { this._visible = true; _x = _root.laserblaster5._x; _y = _root.laserblaster5._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 5) { if (_root.laserblaster5.shooting == 1 || _root.laserblaster5.shooting == 0) { if (_root.laserblaster5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster5.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 5) { if (_root.laserblaster5.shooting == 2 || _root.laserblaster5.shooting == 0) { if (_root.laserblaster5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster5.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 5) { if (_root.laserblaster5.shooting == 3 || _root.laserblaster5.shooting == 0) { if (_root.laserblaster5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster5.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 5) { if (_root.laserblaster5.shooting == 4 || _root.laserblaster5.shooting == 0) { if (_root.laserblaster5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.laserblaster5.shooting = 4; } } else { _root.laserblaster5.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.inferno[0] == 1) { if (_root.select == 11) { this._visible = true; _x = _root.inferno1._x; _y = _root.inferno1._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno1.shooting == 1 || _root.inferno1.shooting == 0)) { if (_root.inferno1.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno1.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno1.shooting == 2 || _root.inferno1.shooting == 0)) { if (_root.inferno1.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno1.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno1.shooting == 3 || _root.inferno1.shooting == 0)) { if (_root.inferno1.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno1.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno1.shooting == 4 || _root.inferno1.shooting == 0)) { if (_root.inferno1.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno1.shooting = 4; } else { _root.inferno1.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.inferno[1] == 1) { if (_root.select == 12) { this._visible = true; _x = _root.inferno2._x; _y = _root.inferno2._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno2.shooting == 1 || _root.inferno2.shooting == 0)) { if (_root.inferno2.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno2.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno2.shooting == 2 || _root.inferno2.shooting == 0)) { if (_root.inferno2.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno2.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno2.shooting == 3 || _root.inferno2.shooting == 0)) { if (_root.inferno2.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno2.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno2.shooting == 4 || _root.inferno2.shooting == 0)) { if (_root.inferno2.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno2.shooting = 4; } else { _root.inferno2.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.inferno[2] == 1) { if (_root.select == 13) { this._visible = true; _x = _root.inferno3._x; _y = _root.inferno3._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno3.shooting == 1 || _root.inferno3.shooting == 0)) { if (_root.inferno3.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno3.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno3.shooting == 2 || _root.inferno3.shooting == 0)) { if (_root.inferno3.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno3.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno3.shooting == 3 || _root.inferno3.shooting == 0)) { if (_root.inferno3.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno3.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno3.shooting == 4 || _root.inferno3.shooting == 0)) { if (_root.inferno3.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno3.shooting = 4; } else { _root.inferno3.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.inferno[3] == 1) { if (_root.select == 14) { this._visible = true; _x = _root.inferno4._x; _y = _root.inferno4._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno4.shooting == 1 || _root.inferno4.shooting == 0)) { if (_root.inferno4.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno4.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno4.shooting == 2 || _root.inferno4.shooting == 0)) { if (_root.inferno4.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno4.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno4.shooting == 3 || _root.inferno4.shooting == 0)) { if (_root.inferno4.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno4.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno4.shooting == 4 || _root.inferno4.shooting == 0)) { if (_root.inferno4.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno4.shooting = 4; } else { _root.inferno4.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.inferno[4] == 1) { if (_root.select == 15) { this._visible = true; _x = _root.inferno5._x; _y = _root.inferno5._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno5.shooting == 1 || _root.inferno5.shooting == 0)) { if (_root.inferno5.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno5.shooting = 1; } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno5.shooting == 2 || _root.inferno5.shooting == 0)) { if (_root.inferno5.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno5.shooting = 2; } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno5.shooting == 3 || _root.inferno5.shooting == 0)) { if (_root.inferno5.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno5.shooting = 3; } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 2 && (_root.inferno5.shooting == 4 || _root.inferno5.shooting == 0)) { if (_root.inferno5.shooting == 0) { flame = new Sound(); flame.attachSound('flame.mp3'); flame.start(); } _root.inferno5.shooting = 4; } else { _root.inferno5.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.creditgenerator[1] == 1) { if (_root.select == 17) { this._visible = true; _x = _root.creditgenerator2._x; _y = _root.creditgenerator2._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.creditgenerator[2] == 1) { if (_root.select == 18) { this._visible = true; _x = _root.creditgenerator3._x; _y = _root.creditgenerator3._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.creditgenerator[3] == 1) { if (_root.select == 19) { this._visible = true; _x = _root.creditgenerator4._x; _y = _root.creditgenerator4._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.creditgenerator[4] == 1) { if (_root.select == 20) { this._visible = true; _x = _root.creditgenerator5._x; _y = _root.creditgenerator5._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.healthgenerator[0] == 1) { if (_root.select == 21) { this._visible = true; _x = _root.healthgenerator1._x; _y = _root.healthgenerator1._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.healthgenerator[1] == 1) { if (_root.select == 22) { this._visible = true; _x = _root.healthgenerator2._x; _y = _root.healthgenerator2._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.healthgenerator[2] == 1) { if (_root.select == 23) { this._visible = true; _x = _root.healthgenerator3._x; _y = _root.healthgenerator3._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.healthgenerator[3] == 1) { if (_root.select == 24) { this._visible = true; _x = _root.healthgenerator4._x; _y = _root.healthgenerator4._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.healthgenerator[4] == 1) { if (_root.select == 25) { this._visible = true; _x = _root.healthgenerator5._x; _y = _root.healthgenerator5._y; } else { this._visible = false; } } else { this._visible = false; } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.teleporter[0] == 1) { if (_root.select == 26) { this._visible = true; _x = _root.teleporter1._x; _y = _root.teleporter1._y; } else { this._visible = false; } } else { this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.teleporter1.shooting == 1 || _root.teleporter1.shooting == 0) { if (_root.teleporter1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter1.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.teleporter1.shooting == 2 || _root.teleporter1.shooting == 0) { if (_root.teleporter1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter1.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 2) { if (_root.teleporter1.shooting == 3 || _root.teleporter1.shooting == 0) { if (_root.teleporter1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter1.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 26) { if (_root.teleporter1.shooting == 4 || _root.teleporter1.shooting == 0) { if (_root.teleporter1.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter1.shooting = 4; } } else { _root.teleporter1.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.teleporter[1] == 1) { if (_root.select == 27) { this._visible = true; _x = _root.teleporter2._x; _y = _root.teleporter2._y; } else { this._visible = false; } } else { this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 27) { if (_root.teleporter2.shooting == 1 || _root.teleporter2.shooting == 0) { if (_root.teleporter2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter2.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 27) { if (_root.teleporter2.shooting == 2 || _root.teleporter2.shooting == 0) { if (_root.teleporter2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter2.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 27) { if (_root.teleporter2.shooting == 3 || _root.teleporter2.shooting == 0) { if (_root.teleporter2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter2.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 27) { if (_root.teleporter2.shooting == 4 || _root.teleporter2.shooting == 0) { if (_root.teleporter2.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter2.shooting = 4; } } else { _root.teleporter2.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.teleporter[2] == 1) { if (_root.select == 28) { this._visible = true; _x = _root.teleporter3._x; _y = _root.teleporter3._y; } else { this._visible = false; } } else { this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 28) { if (_root.teleporter3.shooting == 1 || _root.teleporter3.shooting == 0) { if (_root.teleporter3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter3.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 28) { if (_root.teleporter3.shooting == 2 || _root.teleporter3.shooting == 0) { if (_root.teleporter3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter3.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 28) { if (_root.teleporter3.shooting == 3 || _root.teleporter3.shooting == 0) { if (_root.teleporter3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter3.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 28) { if (_root.teleporter3.shooting == 4 || _root.teleporter3.shooting == 0) { if (_root.teleporter3.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter3.shooting = 4; } } else { _root.teleporter3.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.teleporter[3] == 1) { if (_root.select == 29) { this._visible = true; _x = _root.teleporter4._x; _y = _root.teleporter4._y; } else { this._visible = false; } } else { this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 29) { if (_root.teleporter4.shooting == 1 || _root.teleporter4.shooting == 0) { if (_root.teleporter4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter4.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 29) { if (_root.teleporter4.shooting == 2 || _root.teleporter4.shooting == 0) { if (_root.teleporter4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter4.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 29) { if (_root.teleporter4.shooting == 3 || _root.teleporter4.shooting == 0) { if (_root.teleporter4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter4.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 29) { if (_root.teleporter4.shooting == 4 || _root.teleporter4.shooting == 0) { if (_root.teleporter4.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter4.shooting = 4; } } else { _root.teleporter4.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.teleporter[4] == 1) { if (_root.select == 30) { this._visible = true; _x = _root.teleporter5._x; _y = _root.teleporter5._y; } else { this._visible = false; } } else { this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 30) { if (_root.teleporter5.shooting == 1 || _root.teleporter5.shooting == 0) { if (_root.teleporter5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter5.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 30) { if (_root.teleporter5.shooting == 2 || _root.teleporter5.shooting == 0) { if (_root.teleporter5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter5.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 30) { if (_root.teleporter5.shooting == 3 || _root.teleporter5.shooting == 0) { if (_root.teleporter5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter5.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 30) { if (_root.teleporter5.shooting == 4 || _root.teleporter5.shooting == 0) { if (_root.teleporter5.shooting == 0) { laser = new Sound(); laser.attachSound('laser.wav'); laser.start(); } _root.teleporter5.shooting = 4; } } else { _root.teleporter5.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.ultimateblaster1.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.ultimateblaster1.shooting = 0; } } if (_root.ultimateblaster1.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.ultimateblaster1.shooting = 0; } } if (_root.ultimateblaster1.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.ultimateblaster1.shooting = 0; } } if (_root.ultimateblaster1.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster1.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster1.shooting = 0; } if (_root.ultimateblaster[0] == 1) { if (_root.select == 31) { this._visible = true; _x = _root.ultimateblaster1._x; _y = _root.ultimateblaster1._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && _root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 31) { if (_root.ultimateblaster1.shooting == 1 || _root.ultimateblaster1.shooting == 0) { if (_root.ultimateblaster1.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster1.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && _root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 31) { if (_root.ultimateblaster1.shooting == 2 || _root.ultimateblaster1.shooting == 0) { if (_root.ultimateblaster1.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster1.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && _root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 31) { if (_root.ultimateblaster1.shooting == 3 || _root.ultimateblaster1.shooting == 0) { if (_root.ultimateblaster1.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster1.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && _root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 31) { if (_root.ultimateblaster1.shooting == 4 || _root.ultimateblaster1.shooting == 0) { if (_root.ultimateblaster1.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster1.shooting = 4; } } else { _root.ultimateblaster1.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.ultimateblaster2.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.ultimateblaster2.shooting = 0; } } if (_root.ultimateblaster2.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.ultimateblaster2.shooting = 0; } } if (_root.ultimateblaster2.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.ultimateblaster2.shooting = 0; } } if (_root.ultimateblaster2.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster2.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster2.shooting = 0; } if (_root.ultimateblaster[1] == 1) { if (_root.select == 32) { this._visible = true; _x = _root.ultimateblaster2._x; _y = _root.ultimateblaster2._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && _root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster2.shooting == 1 || _root.ultimateblaster2.shooting == 0) { if (_root.ultimateblaster2.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster2.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && _root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster2.shooting == 2 || _root.ultimateblaster2.shooting == 0) { if (_root.ultimateblaster2.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster2.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && _root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster2.shooting == 3 || _root.ultimateblaster2.shooting == 0) { if (_root.ultimateblaster2.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster2.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && _root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster2.shooting == 4 || _root.ultimateblaster2.shooting == 0) { if (_root.ultimateblaster2.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster2.shooting = 4; } } else { _root.ultimateblaster2.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.ultimateblaster3.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.ultimateblaster3.shooting = 0; } } if (_root.ultimateblaster3.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.ultimateblaster3.shooting = 0; } } if (_root.ultimateblaster3.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.ultimateblaster3.shooting = 0; } } if (_root.ultimateblaster3.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster3.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster3.shooting = 0; } if (_root.ultimateblaster[_root.ultimateblaster3.valueID - 1] == 1) { if (_root.select == _root.ultimateblaster3.valueID + 30) { this._visible = true; _x = _root.ultimateblaster3._x; _y = _root.ultimateblaster3._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && _root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster3.shooting == 1 || _root.ultimateblaster3.shooting == 0) { if (_root.ultimateblaster3.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster3.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && _root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster3.shooting == 2 || _root.ultimateblaster3.shooting == 0) { if (_root.ultimateblaster3.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster3.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && _root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster3.shooting == 3 || _root.ultimateblaster3.shooting == 0) { if (_root.ultimateblaster3.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster3.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && _root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster3.shooting == 4 || _root.ultimateblaster3.shooting == 0) { if (_root.ultimateblaster3.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster3.shooting = 4; } } else { _root.ultimateblaster3.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.ultimateblaster4.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.ultimateblaster4.shooting = 0; } } if (_root.ultimateblaster4.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.ultimateblaster4.shooting = 0; } } if (_root.ultimateblaster4.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.ultimateblaster4.shooting = 0; } } if (_root.ultimateblaster4.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster4.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster4.shooting = 0; } if (_root.ultimateblaster[_root.ultimateblaster4.valueID - 1] == 1) { if (_root.select == _root.ultimateblaster4.valueID + 30) { this._visible = true; _x = _root.ultimateblaster4._x; _y = _root.ultimateblaster4._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && _root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster4.shooting == 1 || _root.ultimateblaster4.shooting == 0) { if (_root.ultimateblaster4.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster4.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && _root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster4.shooting == 2 || _root.ultimateblaster4.shooting == 0) { if (_root.ultimateblaster4.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster4.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && _root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster4.shooting == 3 || _root.ultimateblaster4.shooting == 0) { if (_root.ultimateblaster4.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster4.shooting = 3; } } else { if (_root.enemy4._x > 50 && _root.enemy4._x < 670 && _root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster4.shooting == 4 || _root.ultimateblaster4.shooting == 0) { if (_root.ultimateblaster4.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster4.shooting = 4; } } else { _root.ultimateblaster4.shooting = 0; } } } } } } instance of movieClip 78 { onClipEvent (enterFrame) { if (_root.ultimateblaster5.shooting == 1) { if (this.hitTest(_root.enemy1)) { } else { _root.ultimateblaster5.shooting = 0; } } if (_root.ultimateblaster5.shooting == 2) { if (this.hitTest(_root.enemy2)) { } else { _root.ultimateblaster5.shooting = 0; } } if (_root.ultimateblaster5.shooting == 3) { if (this.hitTest(_root.enemy3)) { } else { _root.ultimateblaster5.shooting = 0; } } if (_root.ultimateblaster5.shooting == 4) { if (this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster5.shooting = 0; } } if (this.hitTest(_root.enemy1) || this.hitTest(_root.enemy2) || this.hitTest(_root.enemy3) || this.hitTest(_root.enemy4)) { } else { _root.ultimateblaster5.shooting = 0; } if (_root.ultimateblaster[_root.ultimateblaster5.valueID - 1] == 1) { if (_root.select == _root.ultimateblaster5.valueID + 30) { this._visible = true; _x = _root.ultimateblaster5._x; _y = _root.ultimateblaster5._y; } else { this._visible = false; } } else { _x = -500; _y = -500; this._visible = false; } if (_root.enemy1._x > 50 && _root.enemy1._x < 670 && _root.enemy1._x > 50 && _root.enemy1._x < 670 && this.hitTest(_root.enemy1) && _root.enemy1.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster5.shooting == 1 || _root.ultimateblaster5.shooting == 0) { if (_root.ultimateblaster5.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster5.shooting = 1; } } else { if (_root.enemy2._x > 50 && _root.enemy2._x < 670 && _root.enemy2._x > 50 && _root.enemy2._x < 670 && this.hitTest(_root.enemy2) && _root.enemy2.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster5.shooting == 2 || _root.ultimateblaster5.shooting == 0) { if (_root.ultimateblaster5.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster5.shooting = 2; } } else { if (_root.enemy3._x > 50 && _root.enemy3._x < 670 && _root.enemy3._x > 50 && _root.enemy3._x < 670 && this.hitTest(_root.enemy3) && _root.enemy3.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster5.shooting == 3 || _root.ultimateblaster5.shooting == 0) { if (_root.ultimateblaster5.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster5.shooting = 3; } } else { if (_root.enemy5._x > 50 && _root.enemy4._x > 50 && _root.enemy4._x < 670 && this.hitTest(_root.enemy4) && _root.enemy4.hp > 0 && _root.mode == 2 && _root.buying != 32) { if (_root.ultimateblaster5.shooting == 4 || _root.ultimateblaster5.shooting == 0) { if (_root.ultimateblaster5.shooting == 0) { ultimate = new Sound(); ultimate.attachSound('ultimateshot.mp3'); ultimate.start(); } _root.ultimateblaster5.shooting = 4; } } else { _root.ultimateblaster5.shooting = 0; } } } } } } movieClip 80 { } instance checkpoint1 of movieClip 80 { onClipEvent (load) { this._alpha = 0; } } instance checkpoint2 of movieClip 80 { onClipEvent (load) { this._alpha = 0; } } instance checkpoint3 of movieClip 80 { onClipEvent (load) { this._alpha = 0; } } instance checkpoint4 of movieClip 80 { onClipEvent (load) { this._alpha = 0; } } instance checkpoint5 of movieClip 80 { onClipEvent (load) { this._alpha = 0; } } movieClip 81 { frame 15 { stop(); } } movieClip 82 { } instance enemy1 of movieClip 82 { onClipEvent (load) { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.glue = 0; var checkp = 'checkpoint' + (this.pos + 1); this.hp = _root.round * 5; } onClipEvent (enterFrame) { if (_x < 50) { this.hp = _root.round * 5; } if (this.glue > 0) { this.glue -= 1; } if (_root.wave[0] == 'spawned') { if (_root.mode == 2) { if (this.hp <= 0) { if (_root.laserblaster1.shooting == 1) { _root.laserblaster1.shooting = 0; } if (_root.laserblaster2.shooting == 1) { _root.laserblaster2.shooting = 0; } if (_root.laserblaster3.shooting == 1) { _root.laserblaster3.shooting = 0; } if (_root.laserblaster4.shooting == 1) { _root.laserblaster4.shooting = 0; } if (_root.laserblaster5.shooting == 1) { _root.laserblaster5.shooting = 0; } if (_root.gluegun1.shooting == 1) { _root.gluegun1.shooting = 0; } if (_root.gluegun2.shooting == 1) { _root.gluegun2.shooting = 0; } if (_root.gluegun3.shooting == 1) { _root.gluegun3.shooting = 0; } if (_root.gluegun4.shooting == 1) { _root.gluegun4.shooting = 0; } if (_root.gluegun5.shooting == 1) { _root.gluegun5.shooting = 0; } if (_root.teleporter1.shooting == 1) { _root.teleporter1.shooting = 0; } if (_root.teleporter2.shooting == 1) { _root.teleporter2.shooting = 0; } if (_root.teleporter3.shooting == 1) { _root.teleporter3.shooting = 0; } if (_root.teleporter4.shooting == 1) { _root.teleporter4.shooting = 0; } if (_root.teleporter5.shooting == 1) { _root.teleporter5.shooting = 0; } if (_root.ultimateblaster1.shooting == 1) { _root.ultimateblaster1.shooting = 0; } if (_root.ultimateblaster2.shooting == 1) { _root.ultimateblaster2.shooting = 0; } if (_root.ultimateblaster3.shooting == 1) { _root.ultimateblaster3.shooting = 0; } if (_root.ultimateblaster4.shooting == 1) { _root.ultimateblaster4.shooting = 0; } if (_root.ultimateblaster5.shooting == 1) { _root.ultimateblaster5.shooting = 0; } _root.enemiesleft -= 1; _x = -30; _y = 104; this.glue = 0; this.pos = 0; _root.credits += 5 * _root.round; this.hp = _root.round * 5; _root.wave[0] = 'dead'; var checkp = 'checkpoint' + (this.pos + 1); } if (checkp == 'checkpoint6') { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.checkp = 'checkpoint1'; this.hp = _root.round * 5; _root.wave[0] = 'dead'; _root.health -= 5; } if (this.hitTest(_root[checkp])) { this.pos += 1; var checkp = 'checkpoint' + (this.pos + 1); } if (_x > _root[checkp]._x) { if (this.glue > 0) { _x = _x - _root.round / 2; } else { if (_x - _root.round < _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x - _root.round; } } this.gotoAndStop(2); } else { if (_x < _root[checkp]._x) { if (this.glue > 0) { _x = _x + _root.round / 2; } else { if (_x + _root.round > _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x + _root.round; } } this.gotoAndStop(1); } } if (_y > _root[checkp]._y) { if (this.glue > 0) { _y = _y - _root.round / 2; } else { if (_y - _root.round < _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y - _root.round; } } } else { if (_y < _root[checkp]._y) { if (_y + _root.round > _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y + _root.round; } } } } else { _x = -30; _y = 104; } } else { _x = -30; _y = 104; } } } instance enemy2 of movieClip 82 { onClipEvent (load) { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.glue = 0; var checkp = 'checkpoint' + (this.pos + 1); this.hp = _root.round * 5; } onClipEvent (enterFrame) { if (_x < 50) { this.hp = _root.round * 5; } if (this.glue > 0) { this.glue -= 1; } if (_root.wave[1] == 'spawned') { if (_root.mode == 2) { if (this.hp <= 0) { if (_root.laserblaster1.shooting == 2) { _root.laserblaster1.shooting = 0; } if (_root.laserblaster2.shooting == 2) { _root.laserblaster2.shooting = 0; } if (_root.laserblaster3.shooting == 2) { _root.laserblaster3.shooting = 0; } if (_root.laserblaster4.shooting == 2) { _root.laserblaster4.shooting = 0; } if (_root.laserblaster5.shooting == 2) { _root.laserblaster5.shooting = 0; } if (_root.gluegun1.shooting == 2) { _root.gluegun1.shooting = 0; } if (_root.gluegun2.shooting == 2) { _root.gluegun2.shooting = 0; } if (_root.gluegun3.shooting == 2) { _root.gluegun3.shooting = 0; } if (_root.gluegun4.shooting == 2) { _root.gluegun4.shooting = 0; } if (_root.gluegun5.shooting == 2) { _root.gluegun5.shooting = 0; } if (_root.teleporter1.shooting == 2) { _root.teleporter1.shooting = 0; } if (_root.teleporter2.shooting == 2) { _root.teleporter2.shooting = 0; } if (_root.teleporter3.shooting == 2) { _root.teleporter3.shooting = 0; } if (_root.teleporter4.shooting == 2) { _root.teleporter4.shooting = 0; } if (_root.teleporter5.shooting == 2) { _root.teleporter5.shooting = 0; } if (_root.ultimateblaster1.shooting == 2) { _root.ultimateblaster1.shooting = 0; } if (_root.ultimateblaster2.shooting == 2) { _root.ultimateblaster2.shooting = 0; } if (_root.ultimateblaster3.shooting == 2) { _root.ultimateblaster3.shooting = 0; } if (_root.ultimateblaster4.shooting == 2) { _root.ultimateblaster4.shooting = 0; } if (_root.ultimateblaster5.shooting == 2) { _root.ultimateblaster5.shooting = 0; } _root.enemiesleft -= 1; _x = -30; _y = 104; this.glue = 0; this.pos = 0; _root.credits += 5 * _root.round; this.hp = _root.round * 5; _root.wave[1] = 'dead'; var checkp = 'checkpoint' + (this.pos + 1); } if (checkp == 'checkpoint6') { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.checkp = 'checkpoint1'; this.hp = _root.round * 5; _root.wave[1] = 'dead'; _root.health -= 5; } if (this.hitTest(_root[checkp])) { this.pos += 1; var checkp = 'checkpoint' + (this.pos + 1); } if (_x > _root[checkp]._x) { if (this.glue > 0) { _x = _x - _root.round / 2; } else { if (_x - _root.round < _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x - _root.round; } } this.gotoAndStop(2); } else { if (_x < _root[checkp]._x) { if (this.glue > 0) { _x = _x + _root.round / 2; } else { if (_x + _root.round > _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x + _root.round; } } this.gotoAndStop(1); } } if (_y > _root[checkp]._y) { if (this.glue > 0) { _y = _y - _root.round / 2; } else { if (_y - _root.round < _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y - _root.round; } } } else { if (_y < _root[checkp]._y) { if (_y + _root.round > _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y + _root.round; } } } } else { _x = -30; _y = 104; } } else { _x = -30; _y = 104; } } } instance enemy3 of movieClip 82 { onClipEvent (load) { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.glue = 0; var checkp = 'checkpoint' + (this.pos + 1); this.hp = _root.round * 5; } onClipEvent (enterFrame) { if (_x < 50) { this.hp = _root.round * 5; } if (this.glue > 0) { this.glue -= 1; } if (_root.wave[2] == 'spawned') { if (_root.mode == 2) { if (this.hp <= 0) { if (_root.laserblaster1.shooting == 3) { _root.laserblaster1.shooting = 0; } if (_root.laserblaster2.shooting == 3) { _root.laserblaster2.shooting = 0; } if (_root.laserblaster3.shooting == 3) { _root.laserblaster3.shooting = 0; } if (_root.laserblaster4.shooting == 3) { _root.laserblaster4.shooting = 0; } if (_root.laserblaster5.shooting == 3) { _root.laserblaster5.shooting = 0; } if (_root.gluegun1.shooting == 3) { _root.gluegun1.shooting = 0; } if (_root.gluegun2.shooting == 3) { _root.gluegun2.shooting = 0; } if (_root.gluegun3.shooting == 3) { _root.gluegun3.shooting = 0; } if (_root.gluegun4.shooting == 3) { _root.gluegun4.shooting = 0; } if (_root.gluegun5.shooting == 3) { _root.gluegun5.shooting = 0; } if (_root.teleporter1.shooting == 3) { _root.teleporter1.shooting = 0; } if (_root.teleporter2.shooting == 3) { _root.teleporter2.shooting = 0; } if (_root.teleporter3.shooting == 3) { _root.teleporter3.shooting = 0; } if (_root.teleporter4.shooting == 3) { _root.teleporter4.shooting = 0; } if (_root.teleporter5.shooting == 3) { _root.teleporter5.shooting = 0; } if (_root.ultimateblaster1.shooting == 3) { _root.ultimateblaster1.shooting = 0; } if (_root.ultimateblaster2.shooting == 3) { _root.ultimateblaster2.shooting = 0; } if (_root.ultimateblaster3.shooting == 3) { _root.ultimateblaster3.shooting = 0; } if (_root.ultimateblaster4.shooting == 3) { _root.ultimateblaster4.shooting = 0; } if (_root.ultimateblaster5.shooting == 3) { _root.ultimateblaster5.shooting = 0; } _root.enemiesleft -= 1; _x = -30; _y = 104; this.glue = 0; this.pos = 0; _root.credits += 5 * _root.round; this.hp = _root.round * 5; _root.wave[2] = 'dead'; var checkp = 'checkpoint' + (this.pos + 1); } if (checkp == 'checkpoint6') { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.checkp = 'checkpoint1'; this.hp = _root.round * 5; _root.wave[2] = 'dead'; _root.health -= 5; } if (this.hitTest(_root[checkp])) { this.pos += 1; var checkp = 'checkpoint' + (this.pos + 1); } if (_x > _root[checkp]._x) { if (this.glue > 0) { _x = _x - _root.round / 2; } else { if (_x - _root.round < _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x - _root.round; } } this.gotoAndStop(2); } else { if (_x < _root[checkp]._x) { if (this.glue > 0) { _x = _x + _root.round / 2; } else { if (_x + _root.round > _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x + _root.round; } } this.gotoAndStop(1); } } if (_y > _root[checkp]._y) { if (this.glue > 0) { _y = _y - _root.round / 2; } else { if (_y - _root.round < _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y - _root.round; } } } else { if (_y < _root[checkp]._y) { if (_y + _root.round > _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y + _root.round; } } } } else { _x = -30; _y = 104; } } else { _x = -30; _y = 104; } } } instance enemy4 of movieClip 82 { onClipEvent (load) { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.glue = 0; var checkp = 'checkpoint' + (this.pos + 1); this.hp = _root.round * 5; } onClipEvent (enterFrame) { if (_x < 50) { this.hp = _root.round * 5; } if (this.glue > 0) { this.glue -= 1; } if (_root.wave[3] == 'spawned') { if (_root.mode == 2) { if (this.hp <= 0) { if (_root.laserblaster1.shooting == 4) { _root.laserblaster1.shooting = 0; } if (_root.laserblaster2.shooting == 4) { _root.laserblaster2.shooting = 0; } if (_root.laserblaster3.shooting == 4) { _root.laserblaster3.shooting = 0; } if (_root.laserblaster4.shooting == 4) { _root.laserblaster4.shooting = 0; } if (_root.laserblaster5.shooting == 4) { _root.laserblaster5.shooting = 0; } if (_root.gluegun1.shooting == 4) { _root.gluegun1.shooting = 0; } if (_root.gluegun2.shooting == 4) { _root.gluegun2.shooting = 0; } if (_root.gluegun3.shooting == 4) { _root.gluegun3.shooting = 0; } if (_root.gluegun4.shooting == 4) { _root.gluegun4.shooting = 0; } if (_root.gluegun5.shooting == 4) { _root.gluegun5.shooting = 0; } if (_root.teleporter1.shooting == 4) { _root.teleporter1.shooting = 0; } if (_root.teleporter2.shooting == 4) { _root.teleporter2.shooting = 0; } if (_root.teleporter3.shooting == 4) { _root.teleporter3.shooting = 0; } if (_root.teleporter4.shooting == 4) { _root.teleporter4.shooting = 0; } if (_root.teleporter5.shooting == 4) { _root.teleporter5.shooting = 0; } if (_root.ultimateblaster1.shooting == 4) { _root.ultimateblaster1.shooting = 0; } if (_root.ultimateblaster2.shooting == 4) { _root.ultimateblaster2.shooting = 0; } if (_root.ultimateblaster3.shooting == 4) { _root.ultimateblaster3.shooting = 0; } if (_root.ultimateblaster4.shooting == 4) { _root.ultimateblaster4.shooting = 0; } if (_root.ultimateblaster5.shooting == 4) { _root.ultimateblaster5.shooting = 0; } _root.enemiesleft -= 1; _x = -30; _y = 104; this.glue = 0; this.pos = 0; _root.credits += 5 * _root.round; this.hp = _root.round * 5; _root.wave[3] = 'dead'; var checkp = 'checkpoint' + (this.pos + 1); } if (checkp == 'checkpoint6') { _x = -30; _y = 104; this.glue = 0; this.pos = 0; this.checkp = 'checkpoint1'; this.hp = _root.round * 5; _root.wave[3] = 'dead'; _root.health -= 5; } if (this.hitTest(_root[checkp])) { this.pos += 1; var checkp = 'checkpoint' + (this.pos + 1); } if (_x > _root[checkp]._x) { if (this.glue > 0) { _x = _x - _root.round / 2; } else { if (_x - _root.round < _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x - _root.round; } } this.gotoAndStop(2); } else { if (_x < _root[checkp]._x) { if (this.glue > 0) { _x = _x + _root.round / 2; } else { if (_x + _root.round > _root[checkp]._x) { _x = _root[checkp]._x; } else { _x = _x + _root.round; } } this.gotoAndStop(1); } } if (_y > _root[checkp]._y) { if (this.glue > 0) { _y = _y - _root.round / 2; } else { if (_y - _root.round < _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y - _root.round; } } } else { if (_y < _root[checkp]._y) { if (_y + _root.round > _root[checkp]._y) { _y = _root[checkp]._y; } else { _y = _y + _root.round; } } } } else { _x = -30; _y = 104; } } else { _x = -30; _y = 104; } } } movieClip 84 { } instance of movieClip 84 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.enemy1.glue > 0) { this._visible = true; this._x = _root.enemy1._x; this._y = _root.enemy1._y; } else { this._visible = false; } } } instance of movieClip 84 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.enemy2.glue > 0) { this._visible = true; this._x = _root.enemy2._x; this._y = _root.enemy2._y; } else { this._visible = false; } } } instance of movieClip 84 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.enemy3.glue > 0) { this._visible = true; this._x = _root.enemy3._x; this._y = _root.enemy3._y; } else { this._visible = false; } } } instance of movieClip 84 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.enemy4.glue > 0) { this._visible = true; this._x = _root.enemy4._x; this._y = _root.enemy4._y; } else { this._visible = false; } } } movieClip 86 { } instance of movieClip 86 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.buying > 0) { this._visible = true; } else { this._visible = false; } } } movieClip 88 { } movieClip 89 { } instance of movieClip 89 { onClipEvent (enterFrame) { if (_root.laserblaster[0] == 1) { this._visible = true; _x = _root.laserblaster1._x; _y = _root.laserblaster1._y; if (_root.laserblaster1.shooting == 1) { this._visible = false; angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } this._visible = true; _root.enemy1.hp -= 0.2; } else { if (_root.laserblaster1.shooting == 2) { this._visible = false; angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } this._visible = true; _root.enemy2.hp -= 0.2; } else { if (_root.laserblaster1.shooting == 3) { this._visible = false; angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } this._visible = true; _root.enemy3.hp -= 0.2; } else { if (_root.laserblaster1.shooting == 4) { this._visible = false; angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } this._visible = true; _root.enemy4.hp -= 0.2; } else { this._visible = false; } } } } } else { this._visible = false; _x = -1000; _y = 1000; } } } instance of movieClip 89 { onClipEvent (enterFrame) { if (_root.laserblaster[1] == 1) { this._visible = true; _x = _root.laserblaster2._x; _y = _root.laserblaster2._y; if (_root.laserblaster2.shooting == 1) { this._visible = false; angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } this._visible = true; _root.enemy1.hp -= 0.2; } else { if (_root.laserblaster2.shooting == 2) { this._visible = false; angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } this._visible = true; _root.enemy2.hp -= 0.2; } else { if (_root.laserblaster2.shooting == 3) { this._visible = false; angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } this._visible = true; _root.enemy3.hp -= 0.2; } else { if (_root.laserblaster2.shooting == 4) { this._visible = false; angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } this._visible = true; _root.enemy4.hp -= 0.2; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 89 { onClipEvent (enterFrame) { if (_root.laserblaster[2] == 1) { this._visible = true; _x = _root.laserblaster3._x; _y = _root.laserblaster3._y; if (_root.laserblaster3.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 0.2; } else { if (_root.laserblaster3.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 0.2; } else { if (_root.laserblaster3.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 0.2; } else { if (_root.laserblaster3.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 0.2; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 89 { onClipEvent (enterFrame) { if (_root.laserblaster[3] == 1) { this._visible = true; _x = _root.laserblaster4._x; _y = _root.laserblaster4._y; if (_root.laserblaster4.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 0.2; } else { if (_root.laserblaster4.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 0.2; } else { if (_root.laserblaster4.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 0.2; } else { if (_root.laserblaster4.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 0.2; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 89 { onClipEvent (enterFrame) { if (_root.laserblaster[4] == 1) { this._visible = true; _x = _root.laserblaster5._x; _y = _root.laserblaster5._y; if (_root.laserblaster5.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 0.2; } else { if (_root.laserblaster5.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 0.2; } else { if (_root.laserblaster5.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 0.2; } else { if (_root.laserblaster5.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 0.2; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } movieClip 92 { } instance laserblaster1 of movieClip 92 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.laserblaster[0] == 1) { this._visible = true; if (_root.buying == 1) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 1; } } } instance laserblaster2 of movieClip 92 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.laserblaster[1] == 1) { this._visible = true; if (_root.buying == 2) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 2; } } } instance laserblaster3 of movieClip 92 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.laserblaster[2] == 1) { this._visible = true; if (_root.buying == 3) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 3; } } } instance laserblaster4 of movieClip 92 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.laserblaster[3] == 1) { this._visible = true; if (_root.buying == 4) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 4; } } } instance laserblaster5 of movieClip 92 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.laserblaster[4] == 1) { this._visible = true; if (_root.buying == 5) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 5; } } } movieClip 95 { } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.inferno1.shooting > 0) { this._visible = true; this._rotation += 6; _x = _root.inferno1._x; _y = _root.inferno1._y; if (this.hitTest(_root.enemy1)) { _root.enemy1.hp -= 0.1; } if (this.hitTest(_root.enemy2)) { _root.enemy2.hp -= 0.1; } if (this.hitTest(_root.enemy3)) { _root.enemy3.hp -= 0.1; } if (this.hitTest(_root.enemy4)) { _root.enemy4.hp -= 0.1; } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.inferno2.shooting > 0) { this._visible = true; this._rotation += 6; _x = _root.inferno2._x; _y = _root.inferno2._y; if (this.hitTest(_root.enemy1)) { _root.enemy1.hp -= 0.1; } if (this.hitTest(_root.enemy2)) { _root.enemy2.hp -= 0.1; } if (this.hitTest(_root.enemy3)) { _root.enemy3.hp -= 0.1; } if (this.hitTest(_root.enemy4)) { _root.enemy4.hp -= 0.1; } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.inferno3.shooting > 0) { this._visible = true; this._rotation += 6; _x = _root.inferno3._x; _y = _root.inferno3._y; if (this.hitTest(_root.enemy1)) { _root.enemy1.hp -= 0.1; } if (this.hitTest(_root.enemy2)) { _root.enemy2.hp -= 0.1; } if (this.hitTest(_root.enemy3)) { _root.enemy3.hp -= 0.1; } if (this.hitTest(_root.enemy4)) { _root.enemy4.hp -= 0.1; } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.inferno4.shooting > 0) { this._visible = true; this._rotation += 6; _x = _root.inferno4._x; _y = _root.inferno4._y; if (this.hitTest(_root.enemy1)) { _root.enemy1.hp -= 0.1; } if (this.hitTest(_root.enemy2)) { _root.enemy2.hp -= 0.1; } if (this.hitTest(_root.enemy3)) { _root.enemy3.hp -= 0.1; } if (this.hitTest(_root.enemy4)) { _root.enemy4.hp -= 0.1; } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 95 { onClipEvent (enterFrame) { if (_root.inferno5.shooting > 0) { this._visible = true; this._rotation += 6; _x = _root.inferno5._x; _y = _root.inferno5._y; if (this.hitTest(_root.enemy1)) { _root.enemy1.hp -= 0.1; } if (this.hitTest(_root.enemy2)) { _root.enemy2.hp -= 0.1; } if (this.hitTest(_root.enemy3)) { _root.enemy3.hp -= 0.1; } if (this.hitTest(_root.enemy4)) { _root.enemy4.hp -= 0.1; } } else { _x = -1000; _y = 1000; this._visible = false; } } } movieClip 98 { } instance inferno1 of movieClip 98 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.inferno[0] == 1) { this._visible = true; if (_root.buying == 11) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting > 0) { this._rotation += 3; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 11; } } } instance inferno2 of movieClip 98 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.inferno[1] == 1) { this._visible = true; if (_root.buying == 12) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting > 0) { this._rotation += 3; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 12; } } } instance inferno4 of movieClip 98 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.inferno[3] == 1) { this._visible = true; if (_root.buying == 14) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting > 0) { this._rotation += 3; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 14; } } } instance inferno5 of movieClip 98 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.inferno[4] == 1) { this._visible = true; if (_root.buying == 15) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting > 0) { this._rotation += 3; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 15; } } } instance inferno3 of movieClip 98 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.inferno[2] == 1) { this._visible = true; if (_root.buying == 13) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting > 0) { this._rotation += 3; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 13; } } } movieClip 103 { } movieClip 104 { instance of movieClip 103 { onClipEvent (enterFrame) { this._rotation += 3; } } instance of movieClip 103 { onClipEvent (enterFrame) { this._rotation += 3; } } } movieClip 105 { instance of movieClip 103 { onClipEvent (enterFrame) { this._rotation += 3; } } } instance creditgenerator1 of movieClip 105 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.creditgenerator[0] == 1) { this._visible = true; if (_root.buying == 16) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 16; } } } instance creditgenerator2 of movieClip 105 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.creditgenerator[1] == 1) { this._visible = true; if (_root.buying == 17) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 17; } } } instance creditgenerator3 of movieClip 105 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.creditgenerator[2] == 1) { this._visible = true; if (_root.buying == 18) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 18; } } } instance creditgenerator4 of movieClip 105 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.creditgenerator[3] == 1) { this._visible = true; if (_root.buying == 19) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 19; } } } instance creditgenerator5 of movieClip 105 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.creditgenerator[4] == 1) { this._visible = true; if (_root.buying == 20) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 20; } } } movieClip 108 { } movieClip 109 { } instance healthgenerator1 of movieClip 109 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.healthgenerator[0] == 1) { this._visible = true; if (_root.buying == 21) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 21; } } } instance healthgenerator2 of movieClip 109 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.healthgenerator[1] == 1) { this._visible = true; if (_root.buying == 22) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 22; } } } instance healthgenerator3 of movieClip 109 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.healthgenerator[2] == 1) { this._visible = true; if (_root.buying == 23) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 23; } } } instance healthgenerator4 of movieClip 109 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.healthgenerator[3] == 1) { this._visible = true; if (_root.buying == 24) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 24; } } } instance healthgenerator5 of movieClip 109 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; } onClipEvent (enterFrame) { if (_root.healthgenerator[4] == 1) { this._visible = true; if (_root.buying == 25) { _x = _root._xmouse; _y = _root._ymouse; } if (_root.roundcomp._currentframe != 141) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 25; } } } movieClip 111 { } instance of movieClip 111 { onClipEvent (enterFrame) { if (_root.ultimateblaster[0] == 1) { this._visible = true; _x = _root.ultimateblaster1._x; _y = _root.ultimateblaster1._y; if (_root.ultimateblaster1.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 1; } else { if (_root.ultimateblaster1.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 1; } else { if (_root.ultimateblaster1.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 1; } else { if (_root.ultimateblaster1.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 1; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } movieClip 114 { } instance ultimateblaster1 of movieClip 114 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.ultimateblaster[0] == 1) { this._visible = true; if (_root.buying == 31) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 31; } } } instance of movieClip 111 { onClipEvent (enterFrame) { if (_root.ultimateblaster[1] == 1) { this._visible = true; _x = _root.ultimateblaster2._x; _y = _root.ultimateblaster2._y; if (_root.ultimateblaster2.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 1; } else { if (_root.ultimateblaster2.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 1; } else { if (_root.ultimateblaster2.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 1; } else { if (_root.ultimateblaster2.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 1; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance ultimateblaster2 of movieClip 114 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.ultimateblaster[1] == 1) { this._visible = true; if (_root.buying == 32) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 32; } } } instance of movieClip 111 { onClipEvent (enterFrame) { if (_root.ultimateblaster[_root.ultimateblaster3.valueID - 1] == 1) { this._visible = true; _x = _root.ultimateblaster3._x; _y = _root.ultimateblaster3._y; if (_root.ultimateblaster3.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 1; } else { if (_root.ultimateblaster3.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 1; } else { if (_root.ultimateblaster3.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 1; } else { if (_root.ultimateblaster3.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 1; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance ultimateblaster3 of movieClip 114 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; this.valueID = 3; } onClipEvent (enterFrame) { if (_root.ultimateblaster[this.valueID - 1] == 1) { this._visible = true; if (_root.buying == 30 + this.valueID) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 33; } } } instance of movieClip 111 { onClipEvent (enterFrame) { if (_root.ultimateblaster[_root.ultimateblaster4.valueID - 1] == 1) { this._visible = true; _x = _root.ultimateblaster4._x; _y = _root.ultimateblaster4._y; if (_root.ultimateblaster4.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 1; } else { if (_root.ultimateblaster4.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 1; } else { if (_root.ultimateblaster4.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 1; } else { if (_root.ultimateblaster4.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 1; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance ultimateblaster4 of movieClip 114 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; this.valueID = 4; } onClipEvent (enterFrame) { if (_root.ultimateblaster[this.valueID - 1] == 1) { this._visible = true; if (_root.buying == 30 + this.valueID) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 34; } } } instance of movieClip 111 { onClipEvent (enterFrame) { if (_root.ultimateblaster5 == 1) { this._visible = true; _x = _root.ultimateblaster5._x; _y = _root.ultimateblaster5._y; if (_root.ultimateblaster5.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.hp -= 1; } else { if (_root.ultimateblaster5.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.hp -= 1; } else { if (_root.ultimateblaster5.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.hp -= 1; } else { if (_root.ultimateblaster5.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.hp -= 1; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance ultimateblaster5 of movieClip 114 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; this.valueID = 5; } onClipEvent (enterFrame) { if (_root.ultimateblaster[this.valueID - 1] == 1) { this._visible = true; if (_root.buying == 30 + this.valueID) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 35; } } } movieClip 116 { } movieClip 117 { } instance of movieClip 117 { onClipEvent (enterFrame) { if (_root.gluegun[0] == 1) { this._visible = true; _x = _root.gluegun1._x; _y = _root.gluegun1._y; if (_root.gluegun1.shooting == 1) { this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.glue = 100; } else { if (_root.gluegun1.shooting == 2) { this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.glue = 100; } else { if (_root.gluegun1.shooting == 3) { this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.glue = 100; } else { if (_root.gluegun1.shooting == 4) { this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.glue = 100; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 117 { onClipEvent (enterFrame) { if (_root.gluegun[1] == 1) { this._visible = true; _x = _root.gluegun2._x; _y = _root.gluegun2._y; if (_root.gluegun2.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.glue = 100; } else { if (_root.gluegun2.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.glue = 100; } else { if (_root.gluegun2.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.glue = 100; } else { if (_root.gluegun2.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.glue = 100; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 117 { onClipEvent (enterFrame) { if (_root.gluegun[2] == 1) { this._visible = true; _x = _root.gluegun3._x; _y = _root.gluegun3._y; if (_root.gluegun3.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.glue = 100; } else { if (_root.gluegun3.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.glue = 100; } else { if (_root.gluegun3.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.glue = 100; } else { if (_root.gluegun3.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.glue = 100; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 117 { onClipEvent (enterFrame) { if (_root.gluegun[3] == 1) { this._visible = true; _x = _root.gluegun4._x; _y = _root.gluegun4._y; if (_root.gluegun4.shooting == 1) { this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.glue = 100; } else { if (_root.gluegun4.shooting == 2) { this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.glue = 100; } else { if (_root.gluegun4.shooting == 3) { this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.glue = 100; } else { if (_root.gluegun4.shooting == 4) { this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.glue = 100; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } instance of movieClip 117 { onClipEvent (enterFrame) { if (_root.gluegun[4] == 1) { this._visible = true; _x = _root.gluegun5._x; _y = _root.gluegun5._y; if (_root.gluegun5.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy1._x < _x) { this._width = this._x - _root.enemy1._x; } else { this._width = _root.enemy1._x - this._x; } angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy1.glue = 100; } else { if (_root.gluegun5.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy2._x < _x) { this._width = this._x - _root.enemy2._x; } else { this._width = _root.enemy2._x - this._x; } angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy2.glue = 100; } else { if (_root.gluegun5.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy3._x < _x) { this._width = this._x - _root.enemy3._x; } else { this._width = _root.enemy3._x - this._x; } angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy3.glue = 100; } else { if (_root.gluegun5.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = false; if (_root.enemy4._x < _x) { this._width = this._x - _root.enemy4._x; } else { this._width = _root.enemy4._x - this._x; } angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; this._visible = true; _root.enemy4.glue = 100; } else { this._visible = false; } } } } } else { _x = -1000; _y = 1000; this._visible = false; } } } movieClip 120 { } instance gluegun1 of movieClip 120 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.gluegun[0] == 1) { this._visible = true; if (_root.buying == 6) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 6; } } } instance gluegun2 of movieClip 120 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.gluegun[1] == 1) { this._visible = true; if (_root.buying == 7) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 7; } } } instance gluegun3 of movieClip 120 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.gluegun[2] == 1) { this._visible = true; if (_root.buying == 8) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 8; } } } instance gluegun4 of movieClip 120 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.gluegun[3] == 1) { this._visible = true; if (_root.buying == 9) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 9; } } } instance gluegun5 of movieClip 120 { onClipEvent (load) { this._visible = false; _x = -200; _y = -200; this.shooting = 0; } onClipEvent (enterFrame) { if (_root.gluegun[4] == 1) { this._visible = true; if (_root.buying == 10) { _x = _root._xmouse; _y = _root._ymouse; this._rotation = 90; } if (this.shooting == 1) { angley = Math.atan2(_root.enemy1._y - _y, _root.enemy1._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 2) { angley = Math.atan2(_root.enemy2._y - _y, _root.enemy2._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 3) { angley = Math.atan2(_root.enemy3._y - _y, _root.enemy3._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } if (this.shooting == 4) { angley = Math.atan2(_root.enemy4._y - _y, _root.enemy4._x - _x); this._rotation = angley * 360 / 6.283185307179586 + 90; } } else { this._visible = false; } } onClipEvent (press) { if (_root.buying == 0) { _root.select = 10; } } } movieClip 126 { } movieClip 129 { } movieClip 134 { frame 1 { stop(); } } instance of movieClip 134 { onClipEvent (load) { this.doneit = 0; } onClipEvent (enterFrame) { if (_root.health <= 0) { _root.gotoAndStop(9); } if (_root.waves <= 0) { _root.nextspawn = 100 - _root.round * 10; _root.wave[0] = 'nope'; _root.wave[1] = 'nope'; _root.wave[2] = 'nope'; _root.wave[3] = 'nope'; if (_root.roundcomp._currentframe == 141 && this.doneit == 0) { if (_root.round != 10) { trace('about to generate'); trace(_root.creditgenerator[0]); if (_root.creditgenerator[0] == 1) { trace('generated'); _root.credits += 250; } if (_root.creditgenerator[1] == 1) { _root.credits += 250; } if (_root.creditgenerator[2] == 1) { _root.credits += 250; } if (_root.creditgenerator[3] == 1) { _root.credits += 250; } if (_root.creditgenerator[4] == 1) { _root.credits += 250; } if (_root.healthgenerator[0] == 1) { _root.health += 5; } if (_root.healthgenerator[1] == 1) { _root.health += 5; } if (_root.healthgenerator[2] == 1) { _root.health += 5; } if (_root.healthgenerator[3] == 1) { _root.health += 5; } if (_root.healthgenerator[4] == 1) { _root.health += 5; } if (_root.health >= 100) { _root.health = 100; } stop(); if (_root.round != 0) { _root.roundcomp.gotoAndPlay(1); _root.credits += 100; } this.doneit = 1; } else { _root.gotoAndStop(10); } } _root.mode = 1; } if (_root.nextspawn > 0) { if (_root.mode == 2) { _root.nextspawn -= 1; } } else { if (_root.wave[0] == 'nope') { _root.nextspawn = 100 - _root.round * 10; _root.wave[0] = 'spawned'; } else { if (_root.wave[1] == 'nope') { _root.wave[1] = 'spawned'; _root.nextspawn = 100 - _root.round * 10; } else { if (_root.wave[2] == 'nope') { _root.wave[2] = 'spawned'; _root.nextspawn = 100 - _root.round * 10; } else { if (_root.wave[3] == 'nope') { _root.wave[3] = 'spawned'; _root.nextspawn = 100 - _root.round * 10; } else { if (_root.wave[0] == 'dead' && _root.wave[1] == 'dead' && _root.wave[2] == 'dead' && _root.wave[3] == 'dead') { _root.nextspawn = 100 - _root.round * 10; _root.wave[0] = 'nope'; _root.wave[1] = 'nope'; _root.wave[2] = 'nope'; _root.wave[3] = 'nope'; _root.waves -= 1; } } } } } } if (_root.mode == 1) { this._visible = true; } else { this._visible = false; } } onClipEvent (press) { if (_root.mode == 1) { _root.round += 1; _root.nextspawn = 100 - _root.round * 10; _root.waves = _root.round; _root.wave = ['nope', 'nope', 'nope', 'nope']; _root.mode = 2; this.doneit = 0; this.gotoAndStop(1); } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } } movieClip 139 { frame 1 { stop(); } } instance of movieClip 139 { onClipEvent (press) { if (_root.credits >= 150 && _root.buying == 0) { if (_root.laserblaster[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[0] = 1; _root.buying = 1; } else { if (_root.laserblaster[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[1] = 1; _root.buying = 2; } else { if (_root.laserblaster[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[2] = 1; _root.buying = 3; } else { if (_root.laserblaster[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[3] = 1; _root.buying = 4; } else { if (_root.laserblaster[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[4] = 1; _root.buying = 5; } } } } } } } onClipEvent (rollOut) { _root.desct = 0; this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { _root.desct = 1; this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.laserblaster[0] == 1 && _root.laserblaster[1] == 1 && _root.laserblaster[2] == 1 && _root.laserblaster[3] == 1 && _root.laserblaster[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } // unknown tag 88 length 70 movieClip 146 { frame 15 { stop(); } } movieClip 149 { frame 15 { stop(); } } movieClip 152 { frame 15 { stop(); } } movieClip 155 { frame 15 { stop(); } } movieClip 158 { frame 10 { stop(); } } movieClip 159 { frame 10 { stop(); } } movieClip 162 { frame 10 { stop(); } } movieClip 163 { } instance of movieClip 163 { onClipEvent (enterFrame) { if (_root.select > 0) { this._visible = true; this.gotoAndStop(_root.select); } else { this.gotoAndStop(51); this._visible = false; } } } movieClip 167 { frame 1 { stop(); } } movieClip 176 { } movieClip 177 { frame 1 { stop(); } instance of movieClip 176 { onClipEvent (load) { this.gotoAndStop(_root.select); } onClipEvent (enterFrame) { this.gotoAndStop(_root.select); } } } instance of movieClip 177 { onClipEvent (load) { this.gotoAndStop(3); } onClipEvent (enterFrame) { if (_root.select > 0) { this._visible = true; if (this._currentframe == 3) { this.gotoAndStop(1); } } else { this.gotoAndStop(3); this._visible = false; } } onClipEvent (rollOut) { if (this._currentframe != 3) { this.gotoAndStop(1); } } onClipEvent (rollOver) { if (this._currentframe != 3) { this.gotoAndStop(2); } } onClipEvent (press) { this.gotoAndStop(1); if (_root.select <= 5) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 1; _root.laserblaster[_root.fing] = 0; _root.credits += 75; _root.select = 0; } else { if (_root.select <= 10) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 6; _root.gluegun[_root.fing] = 0; _root.credits += 125; _root.select = 0; } else { if (_root.select <= 15) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 11; _root.inferno[_root.fing] = 0; _root.credits += 250; _root.select = 0; } else { if (_root.select <= 20) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 16; _root.creditgenerator[_root.fing] = 0; _root.credits += 325; _root.select = 0; } else { if (_root.select <= 25) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 21; _root.healthgenerator[_root.fing] = 0; _root.credits += 325; _root.select = 0; } else { if (_root.select <= 30) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 26; _root.teleporter[_root.fing] = 0; _root.credits += 500; _root.select = 0; } else { if (_root.select <= 35) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.fing = _root.select - 31; _root.ultimateblaster[_root.fing] = 0; _root.credits += 750; _root.select = 0; } else {} } } } } } } } } movieClip 178 { } movieClip 183 { frame 1 { stop(); } } instance of movieClip 183 { onClipEvent (press) { if (_root.credits >= 350 && _root.buying == 0) { if (_root.gluegun[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[0] = 1; _root.buying = 6; } else { if (_root.gluegun[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[1] = 1; _root.buying = 7; } else { if (_root.gluegun[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[2] = 1; _root.buying = 8; } else { if (_root.gluegun[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[3] = 1; _root.buying = 9; } else { if (_root.gluegun[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[4] = 1; _root.buying = 10; } } } } } } } onClipEvent (rollOut) { _root.desct = 0; this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { _root.desct = 2; this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.gluegun[0] == 1 && _root.gluegun[1] == 1 && _root.gluegun[2] == 1 && _root.gluegun[3] == 1 && _root.gluegun[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } movieClip 188 { frame 1 { stop(); } } instance of movieClip 188 { onClipEvent (press) { if (_root.credits >= 500 && _root.buying == 0) { if (_root.inferno[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[0] = 1; _root.buying = 11; } else { if (_root.inferno[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[1] = 1; _root.buying = 12; } else { if (_root.inferno[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[2] = 1; _root.buying = 13; } else { if (_root.inferno[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[3] = 1; _root.buying = 14; } else { if (_root.inferno[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[4] = 1; _root.buying = 15; } } } } } } } onClipEvent (rollOut) { _root.desct = 0; this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { _root.desct = 3; this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.inferno[0] == 1 && _root.inferno[1] == 1 && _root.inferno[2] == 1 && _root.inferno[3] == 1 && _root.inferno[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } movieClip 191 { frame 59 { gotoAndPlay(120); } frame 141 { stop(); } } instance roundcomp of movieClip 191 { onClipEvent (load) { this.gotoAndStop(141); } } movieClip 196 { frame 1 { stop(); } } instance of movieClip 196 { onClipEvent (press) { if (_root.credits >= 650 && _root.buying == 0) { if (_root.creditgenerator[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[0] = 1; _root.buying = 16; } else { if (_root.creditgenerator[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[1] = 1; _root.buying = 17; } else { if (_root.creditgenerator[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[2] = 1; _root.buying = 18; } else { if (_root.creditgenerator[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[3] = 1; _root.buying = 19; } else { if (_root.creditgenerator[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[4] = 1; _root.buying = 20; } } } } } } } onClipEvent (rollOut) { _root.desct = 0; this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { _root.desct = 4; this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.creditgenerator[0] == 1 && _root.creditgenerator[1] == 1 && _root.creditgenerator[2] == 1 && _root.creditgenerator[3] == 1 && _root.creditgenerator[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } movieClip 201 { frame 1 { stop(); } } instance of movieClip 201 { onClipEvent (press) { if (_root.credits >= 650 && _root.buying == 0) { if (_root.healthgenerator[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[0] = 1; _root.buying = 21; } else { if (_root.healthgenerator[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[1] = 1; _root.buying = 22; } else { if (_root.healthgenerator[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[2] = 1; _root.buying = 23; } else { if (_root.healthgenerator[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[3] = 1; _root.buying = 24; } else { if (_root.healthgenerator[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[4] = 1; _root.buying = 25; } } } } } } } onClipEvent (rollOut) { _root.desct = 0; this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { _root.desct = 5; this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.healthgenerator[0] == 1 && _root.healthgenerator[1] == 1 && _root.healthgenerator[2] == 1 && _root.healthgenerator[3] == 1 && _root.healthgenerator[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } movieClip 206 { frame 1 { stop(); } } instance of movieClip 206 { onClipEvent (press) { if (_root.credits >= 1500 && _root.buying == 0) { if (_root.ultimateblaster[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[0] = 1; _root.buying = 31; } else { if (_root.ultimateblaster[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[1] = 1; _root.buying = 32; } else { if (_root.ultimateblaster[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[2] = 1; _root.buying = 33; } else { if (_root.ultimateblaster[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[3] = 1; _root.buying = 34; } else { if (_root.ultimateblaster[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[4] = 1; _root.buying = 35; } } } } } } } onClipEvent (rollOut) { _root.desct = 0; this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { _root.desct = 6; this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.ultimateblaster[0] == 1 && _root.ultimateblaster[1] == 1 && _root.ultimateblaster[2] == 1 && _root.ultimateblaster[3] == 1 && _root.ultimateblaster[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } // unknown tag 88 length 137 movieClip 214 { } instance of movieClip 214 { onClipEvent (load) { this._visible = false; } onClipEvent (enterFrame) { if (_root.desct > 0) { this.gotoAndStop(_root.desct); this._visible = true; } else { this._visible = false; } } } movieClip 225 { frame 1 { stop(); } } instance of movieClip 225 { onClipEvent (enterFrame) { if (_root.round == 0) { this._visible = false; } else { this._visible = true; this.gotoAndStop(_root.round); } } } instance roundcomp of movieClip 191 { onClipEvent (load) { this.gotoAndStop(141); } } movieClip 228 { frame 1 { stop(); } } instance of movieClip 228 { onClipEvent (enterFrame) { if (_root.mode == 2) { this._visible = false; } else { this._visible = true; } } } movieClip 229 { frame 79 { stop(); } } frame 5 { var fing = 0; } instance of movieClip 134 { onClipEvent (load) { this.doneit = 0; } onClipEvent (enterFrame) { if (_root.health <= 0) { _root.gotoAndStop(9); } if (_root.waves <= 0) { _root.nextspawn = 100 - _root.round * 10; _root.wave[0] = 'nope'; _root.wave[1] = 'nope'; _root.wave[2] = 'nope'; _root.wave[3] = 'nope'; if (_root.roundcomp._currentframe == 141 && this.doneit == 0) { if (_root.round != 10) { _root.roundcomp.gotoAndPlay(1); _root.credits += 100; this.doneit = 1; } else { _root.gotoAndStop(10); } } _root.mode = 1; } if (_root.nextspawn > 0) { if (_root.mode == 2) { _root.nextspawn -= 1; } } else { if (_root.wave[0] == 'nope') { _root.nextspawn = 100 - _root.round * 10; _root.wave[0] = 'spawned'; } else { if (_root.wave[1] == 'nope') { _root.wave[1] = 'spawned'; _root.nextspawn = 100 - _root.round * 10; } else { if (_root.wave[2] == 'nope') { _root.wave[2] = 'spawned'; _root.nextspawn = 100 - _root.round * 10; } else { if (_root.wave[3] == 'nope') { _root.wave[3] = 'spawned'; _root.nextspawn = 100 - _root.round * 10; } else { if (_root.wave[0] == 'dead' && _root.wave[1] == 'dead' && _root.wave[2] == 'dead' && _root.wave[3] == 'dead') { _root.nextspawn = 100 - _root.round * 10; _root.wave[0] = 'nope'; _root.wave[1] = 'nope'; _root.wave[2] = 'nope'; _root.wave[3] = 'nope'; _root.waves -= 1; } } } } } } if (_root.mode == 1) { this._visible = true; } else { this._visible = false; } } onClipEvent (press) { if (_root.mode == 1) { _root.nextspawn = 100 - _root.round * 10; _root.round += 1; _root.waves = _root.round; _root.wave = ['nope', 'nope', 'nope', 'nope']; _root.mode = 2; this.doneit = 0; this.gotoAndStop(1); } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { this.gotoAndStop(2); } } instance of movieClip 139 { onClipEvent (press) { if (_root.credits >= 150 && _root.buying == 0) { if (_root.laserblaster[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[0] = 1; _root.buying = 1; } else { if (_root.laserblaster[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[1] = 1; _root.buying = 2; } else { if (_root.laserblaster[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[2] = 1; _root.buying = 3; } else { if (_root.laserblaster[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[3] = 1; _root.buying = 4; } else { if (_root.laserblaster[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 150; _root.laserblaster[4] = 1; _root.buying = 5; } } } } } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.laserblaster[0] == 1 && _root.laserblaster[1] == 1 && _root.laserblaster[2] == 1 && _root.laserblaster[3] == 1 && _root.laserblaster[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } instance of movieClip 183 { onClipEvent (press) { if (_root.credits >= 350 && _root.buying == 0) { if (_root.gluegun[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[0] = 1; _root.buying = 6; } else { if (_root.gluegun[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[1] = 1; _root.buying = 7; } else { if (_root.gluegun[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[2] = 1; _root.buying = 8; } else { if (_root.gluegun[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[3] = 1; _root.buying = 9; } else { if (_root.gluegun[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 350; _root.gluegun[4] = 1; _root.buying = 10; } } } } } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.gluegun[0] == 1 && _root.gluegun[1] == 1 && _root.gluegun[2] == 1 && _root.gluegun[3] == 1 && _root.gluegun[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } instance of movieClip 188 { onClipEvent (press) { if (_root.credits >= 500 && _root.buying == 0) { if (_root.inferno[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[0] = 1; _root.buying = 11; } else { if (_root.inferno[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[1] = 1; _root.buying = 12; } else { if (_root.inferno[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[2] = 1; _root.buying = 13; } else { if (_root.inferno[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[3] = 1; _root.buying = 14; } else { if (_root.inferno[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 500; _root.inferno[4] = 1; _root.buying = 15; } } } } } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.inferno[0] == 1 && _root.inferno[1] == 1 && _root.inferno[2] == 1 && _root.inferno[3] == 1 && _root.inferno[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } instance of movieClip 196 { onClipEvent (press) { if (_root.credits >= 650 && _root.buying == 0) { if (_root.creditgenerator[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[0] = 1; _root.buying = 16; } else { if (_root.creditgenerator[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[1] = 1; _root.buying = 17; } else { if (_root.creditgenerator[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[2] = 1; _root.buying = 18; } else { if (_root.creditgenerator[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[3] = 1; _root.buying = 19; } else { if (_root.creditgenerator[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.creditgenerator[4] = 1; _root.buying = 20; } } } } } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.creditgenerator[0] == 1 && _root.creditgenerator[1] == 1 && _root.creditgenerator[2] == 1 && _root.creditgenerator[3] == 1 && _root.creditgenerator[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } instance of movieClip 201 { onClipEvent (press) { if (_root.credits >= 650 && _root.buying == 0) { if (_root.healthgenerator[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[0] = 1; _root.buying = 21; } else { if (_root.healthgenerator[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[1] = 1; _root.buying = 22; } else { if (_root.healthgenerator[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[2] = 1; _root.buying = 23; } else { if (_root.healthgenerator[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[3] = 1; _root.buying = 24; } else { if (_root.healthgenerator[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 650; _root.healthgenerator[4] = 1; _root.buying = 25; } } } } } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.healthgenerator[0] == 1 && _root.healthgenerator[1] == 1 && _root.healthgenerator[2] == 1 && _root.healthgenerator[3] == 1 && _root.healthgenerator[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } instance of movieClip 206 { onClipEvent (press) { if (_root.credits >= 1500 && _root.buying == 0) { if (_root.ultimateblaster[0] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[0] = 1; _root.buying = 31; } else { if (_root.ultimateblaster[1] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[1] = 1; _root.buying = 32; } else { if (_root.ultimateblaster[2] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[2] = 1; _root.buying = 33; } else { if (_root.ultimateblaster[3] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[3] = 1; _root.buying = 34; } else { if (_root.ultimateblaster[4] == 0) { buy = new Sound(); buy.attachSound('buy.mp3'); buy.start(); _root.select = 0; _root.credits -= 1500; _root.ultimateblaster[4] = 1; _root.buying = 35; } } } } } } } onClipEvent (rollOut) { this.gotoAndStop(1); } onClipEvent (rollOver) { if (this._alpha == 100) { this.gotoAndStop(2); } } onClipEvent (enterFrame) { if (_root.ultimateblaster[0] == 1 && _root.ultimateblaster[1] == 1 && _root.ultimateblaster[2] == 1 && _root.ultimateblaster[3] == 1 && _root.ultimateblaster[4] == 1) { this._alpha = 30; } else { this._alpha = 100; } } } frame 9 { var score = Math.round(_root.round * 500 + _root.health * 500 + _root.credits / 10); } instance of movieClip 73 { onClipEvent (press) { _root.select = 0; } } movieClip 232 { } movieClip 235 { } movieClip 238 { } movieClip 243 { frame 10 { stop(); } } button 244 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); gotoAndStop(2); } } movieClip 249 { frame 10 { stop(); } } button 250 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); var o = {'n': [2, 15, 9, 2, 2, 7, 15, 14, 3, 2, 4, 0, 11, 8, 0, 10], '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': score}); } } movieClip 255 { frame 10 { stop(); } } button 256 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); gotoAndStop(4); } } frame 10 { var score = Math.round(_root.round * 500 + _root.health * 100 + _root.credits / 10); } movieClip 262 { } button 270 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); getURL('http://Downwierd.newgrounds.com', new Window()); } } button 273 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); getURL('http://lukania.newgrounds.com', new Window()); } } button 276 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); getURL('http://inhstudios.newgrounds.com', new Window()); } } button 279 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); getURL('http://boxrocketstudios.weebly.com', new Window()); } } button 284 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); gotoAndStop(2); } } button 287 { on (press) { click123 = new Sound(); click123.attachSound('Click2-Sebastian-759472264.wav'); click123.start(); getURL('http://Flamingweeny.newgrounds.com', new Window()); } }




http://swfchan.com/44/216640/info.shtml
Created: 27/1 -2019 10:09:33 Last modified: 27/1 -2019 10:09:33 Server time: 07/05 -2024 01:36:14