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

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

Abduction - make some money by abducting hillbillies.swf

This is the info page for
Flash #91894

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


ActionScript [AS1/AS2]
Combined Code
// unknown tag 88 length 103 // unknown tag 88 length 14 // unknown tag 88 length 42 movieClip 6 TubeBackground { #initclip Object.registerClass('TubeBackground', TubeBackground); #endinitclip } movieClip 43 TubeCog { #initclip Object.registerClass('TubeCog', TubeCog); #endinitclip } movieClip 70 TubeCrusher { #initclip Object.registerClass('TubeCrusher', TubeCrusher); #endinitclip } movieClip 81 SpeechBubble { #initclip Object.registerClass('SpeechBubble', SpeechBubble); #endinitclip } frame 1 { function deadClick() {} mochi.as2.MochiAd.showPreGameAd({'id': '4592527aacd75ece', 'res': '700x470', 'background': 2436430, 'color': 14114190, 'outline': 10163991, 'no_bg': false}); var myMenu = new ContextMenu(); myMenu.hideBuiltInItems(); var copyrightNotice = new ContextMenuItem('© 2009 Lo-Jen Ltd.', deadClick); myMenu.customItems.push(copyrightNotice); _root.menu = myMenu; _root.bar.stop(); } movieClip 2363 __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 v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () { this.clip.stop(); }, 'ad_finished': function () { this.clip.gotoAndPlay(3); }, 'ad_failed': function () { trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software'); }, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}}; options = mochi.as2.MochiAd._parseOptions(options, v26); if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') { options.ad_started(); options.ad_finished(); return undefined; } var clip = options.clip; var v23 = 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 v14 = mochi.as2.MochiAd._getRes(options); var v4 = v14[0]; var v13 = v14[1]; mc._x = v4 * 0.5; mc._y = v13 * 0.5; var chk = mc.createEmptyMovieClip('_mochiad_wait', 3); chk._x = v4 * -0.5; chk._y = v13 * -0.5; var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4); if (options.no_progress_bar) { v6._visible = false; delete options.no_progress_bar; } else { v6._x = 10; v6._y = v13 - 20; } var v22 = options.color; delete options.color; var v20 = options.background; delete options.background; var v24 = options.outline; delete options.outline; var v5 = v6.createEmptyMovieClip('_outline', 1); v5.beginFill(v20); v5.moveTo(0, 0); v5.lineTo(v4 - 20, 0); v5.lineTo(v4 - 20, 10); v5.lineTo(0, 10); v5.lineTo(0, 0); v5.endFill(); var v3 = v6.createEmptyMovieClip('_inside', 2); v3.beginFill(v22); v3.moveTo(0, 0); v3.lineTo(v4 - 20, 0); v3.lineTo(v4 - 20, 10); v3.lineTo(0, 10); v3.lineTo(0, 0); v3.endFill(); v3._xscale = 0; var v7 = v6.createEmptyMovieClip('_outline', 3); v7.lineStyle(0, v24, 100); v7.moveTo(0, 0); v7.lineTo(v4 - 20, 0); v7.lineTo(v4 - 20, 10); v7.lineTo(0, 10); v7.lineTo(0, 0); chk.ad_msec = v23; 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 v6 = this._parent._parent; var v11 = this._parent._mochiad_ctr; var v5 = getTimer() - this.started; var v3 = false; var v4 = v6.getBytesTotal(); var v8 = v6.getBytesLoaded(); var v2 = 100 * v8 / v4; var v10 = 100 * v5 / chk.ad_msec; var v9 = this._mochiad_bar._inside; var v13 = Math.min(100, Math.min(v2 || 0, v10)); v13 = Math.max(this.last_pcnt, v13); this.last_pcnt = v13; v9._xscale = v13; options.ad_progress(v13); if (sendHostProgress) { mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName); if (v2 == 100) { sendHostProgress = false; } } if (!chk.showing) { var v7 = v11.getBytesTotal(); if (v7 > 0 || typeof v7 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v5 > chk.ad_timeout && v2 == 100) { options.ad_failed(); v3 = true; } } } if (v5 > chk.ad_msec) { v3 = true; } if (v4 > 0 && v8 >= v4 && v3) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; }; v1.showClickAwayAd = function (options) { var 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 v5 = this._parent._mochiad_ctr; var v4 = getTimer() - this.started; var v2 = false; if (!chk.showing) { var v3 = v5.getBytesTotal(); if (v3 > 0 || typeof v3 == 'undefined') { chk.showing = true; chk.started = getTimer(); } else { if (v4 > chk.ad_timeout) { options.ad_failed(); v2 = true; } } } if (v4 > chk.ad_msec) { v2 = true; } if (v2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; }; v1.showPreloaderAd = function (options) { trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0'); mochi.as2.MochiAd.showPreGameAd(options); }; v1.showTimedAd = function (options) { trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0'); mochi.as2.MochiAd.showInterLevelAd(options); }; v1._allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.load = function (options) { var 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 2364 __Packages.mochi.as2.MochiSync { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSync) { var v1 = function () { this._syncContainer = {}; }; mochi.as2.MochiSync = v1; var v2 = v1.prototype; v2.getProp = function (name) { return this._syncContainer[name]; }; v2.setProp = function (name, value) { if (this._syncContainer[name] == value) { return undefined; } this._syncContainer[name] = value; mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value}); }; v2.triggerEvent = function (eventType, args) { switch (eventType) { case mochi.as2.MochiSync.SYNC_REQUEST: mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer); break; case mochi.as2.MochiSync.SYNC_PROPERTY: this._syncContainer[args.name] = args.value; } }; v1.SYNC_REQUEST = 'SyncRequest'; v1.SYNC_PROPERTY = 'UpdateProperty'; ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1); } #endinitclip } movieClip 2365 __Packages.mochi.as2.MochiServices { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiServices) { var v1 = function () {}; mochi.as2.MochiServices = v1; var v2 = v1.prototype; v1.__get__id = function () { return mochi.as2.MochiServices._id; }; v1.__get__clip = function () { return mochi.as2.MochiServices._container; }; v1.__get__childClip = function () { return mochi.as2.MochiServices._clip; }; v1.getVersion = function () { return '3.8 as2'; }; v1.allowDomains = function (server) { var v1 = ((server.split('/'))[2].split(':'))[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain('*'); System.security.allowDomain(v1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain('*'); System.security.allowInsecureDomain(v1); } } return v1; }; v1.__get__isNetworkAvailable = function () { if (System.security) { var v1 = System.security; if (v1.sandboxType == 'localWithFile') { return false; } } return true; }; v1.__set__comChannelName = function (val) { if (val != undefined) { if (val.length > 3) { mochi.as2.MochiServices._sendChannelName = val + '_fromgame'; mochi.as2.MochiServices.initComChannels(); } } return mochi.as2.MochiServices.__get__comChannelName(); }; v1.__get__connected = function () { return mochi.as2.MochiServices._connected; }; v1.connect = function (id, clip, onError) { mochi.as2.MochiServices.warnID(id, false); if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) { trace('MochiServices Connecting...'); mochi.as2.MochiServices._connecting = true; mochi.as2.MochiServices.init(id, clip); } if (onError != undefined) { mochi.as2.MochiServices.onError = onError; } else { if (mochi.as2.MochiServices.onError == undefined) { mochi.as2.MochiServices.onError = function (errorCode) { trace(errorCode); }; } } }; v1.disconnect = function () { if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected; mochi.as2.MochiServices.flush(true); if (mochi.as2.MochiServices._clip != undefined) { mochi.as2.MochiServices._clip.removeMovieClip(); delete mochi.as2.MochiServices._clip; } mochi.as2.MochiServices._listenChannel.close(); } }; v1.init = function (id, clip) { mochi.as2.MochiServices._id = id; if (clip != undefined) { mochi.as2.MochiServices._container = clip; } else { mochi.as2.MochiServices._container = _root; } mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container); }; v1.loadCommunicator = function (id, clip) { var v6 = '_mochiservices_com_' + id; var v5 = new MovieClipLoader(); var v3 = {}; if (mochi.as2.MochiServices._clip != null) { return mochi.as2.MochiServices._clip; } if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) { return null; } if ((mochi.as2.MochiServices.urlOptions()).servURL) { mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL; } var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services; if ((mochi.as2.MochiServices.urlOptions()).servicesURL) { v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL; } mochi.as2.MochiServices.allowDomains(v4); mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false); mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999); mochi.as2.MochiServices.listen(); if (v3.waitInterval != null) { clearInterval(v3.waitInterval); } v3.onLoadError = mochi.as2.MochiServices.loadError; v3.onLoadStart = function (target_mc) { this.isLoading = true; }; v3.onLoadComplete = function (target_mc) { target_mc.MochiServices = mochi.as2.MochiServices; }; v3.startTime = getTimer(); v3.wait = function () { if (getTimer() - this.startTime > 10000) { if (!this.isLoading) { mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, ['IOError']); } clearInterval(this.waitInterval); } }; v3.waitInterval = setInterval(v3, 'wait', 1000); v5.addListener(v3); v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip); mochi.as2.MochiServices._sendChannel = new LocalConnection(); mochi.as2.MochiServices._sendChannel._queue = []; return mochi.as2.MochiServices._clip; }; v1.loadError = function (target_mc, errorCode, httpStatus) { trace('MochiServices could not load.'); mochi.as2.MochiServices.disconnect(); mochi.as2.MochiServices.onError.apply(null, [errorCode]); }; v1.onStatus = function (infoObject) { if (infoObject.level !== 'error') { } else { mochi.as2.MochiServices._connected = false; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); } }; v1.listen = function () { mochi.as2.MochiServices._listenChannel = new LocalConnection(); mochi.as2.MochiServices._listenChannel.handshake = function (args) { mochi.as2.MochiServices.__set__comChannelName(args.newChannel); }; mochi.as2.MochiServices._listenChannel.allowDomain = function (d) { return true; }; mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain; mochi.as2.MochiServices._listenChannel._nextcallbackID = 0; mochi.as2.MochiServices._listenChannel._callbacks = {}; mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName); trace('Waiting for MochiAds services to connect...'); }; v1.initComChannels = function () { if (!mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'}); mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()}); mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) { mochi.as2.MochiServices.onStatus(infoObject); }; mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) { var v5 = pkg.callbackID; var v4 = this._callbacks[v5]; if (!v4) { return undefined; } var v2 = v4.callbackMethod; var v3 = v4.callbackObject; if (v3 && typeof v2 == 'string') { v2 = v3[v2]; } if (v2 != undefined) { v2.apply(v3, pkg.args); } delete this._callbacks[v5]; }; mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) { switch (pkg.target) { case 'events': mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args); break; case 'coins': mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args); break; case 'sync': mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args); } }; mochi.as2.MochiServices._listenChannel.onError = function () { mochi.as2.MochiServices.onError.apply(null, ['IOError']); }; trace('[SERVICES_API] connected!'); mochi.as2.MochiServices._connecting = false; mochi.as2.MochiServices._connected = true; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift()); } } }; v1.updateCopy = function (args) { mochi.as2.MochiServices.send('coins_updateCopy', args, null, null); }; v1.flush = function (error) { var v1; var v2; while (mochi.as2.MochiServices._sendChannel._queue.length > 0) { v1 = mochi.as2.MochiServices._sendChannel._queue.shift(); false; if (v1.callbackID != null) { v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; } delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID]; if (error) { mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod); } } }; v1.handleError = function (args, callbackObject, callbackMethod) { if (args != null) { if (args.onError != null) { args.onError.apply(null, ['NotConnected']); } if (args.options != null && args.options.onError != null) { args.options.onError.apply(null, ['NotConnected']); } } if (callbackMethod != null) { args = {}; args.error = true; args.errorCode = 'NotConnected'; if (callbackObject != null && typeof callbackMethod == 'string') { callbackObject[callbackMethod](args); } else { if (callbackMethod != null) { callbackMethod.apply(args); } } } }; v1.send = function (methodName, args, callbackObject, callbackMethod) { if (mochi.as2.MochiServices._connected) { mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } else { if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) { trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName); mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod); mochi.as2.MochiServices.flush(true); return undefined; } else { mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID}); } } mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod}; ++mochi.as2.MochiServices._listenChannel._nextcallbackID; }; v1.urlOptions = function () { var v5 = {}; var v6; if (_root._url.indexOf('mochiad_options') != -1) { var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1; v6 = _root._url.substr(v2, _root._url.length); } else { if (_root.mochiad_options) { v6 = _root.mochiad_options; } } if (v6) { var v4 = _root.mochiad_options.split('&'); var v2 = 0; while (v2 < v4.length) { var v3 = v4[v2].split('='); v5[unescape(v3[0])] = unescape(v3[1]); ++v2; } } return v5; }; v1.warnID = function (bid, leaderboard) { bid = bid.toLowerCase(); if (bid.length != 16) { trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length'); return undefined; } else { if (bid == '1e113c7239048b3f') { if (leaderboard) { trace('WARNING: Using testing board ID'); } else { trace('WARNING: Using testing board ID as game ID'); } return undefined; } else { if (bid == '84993a1de4031cd8') { if (leaderboard) { trace('WARNING: Using testing game ID as board ID'); } else { trace('WARNING: Using testing game ID'); } return undefined; } } } var v1 = 0; while (v1 < bid.length) { switch (bid.charAt(v1)) { if (bid.charAt(v1) !== 'f') { } else { case '0': case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case 'a': case 'b': case 'c': break; case 'd': case 'e': } default: trace('WARNING: Board ID contains illegal characters: ' + bid); return undefined; } ++v1; } }; v1.addLinkEvent = function (url, burl, btn, onClick) { var timeout = 1500; var t0 = getTimer(); var v2 = new Object(); v2.mav = mochi.as2.MochiServices.getVersion(); v2.swfv = btn.getSWFVersion() || 6; v2.swfurl = btn._url; v2.fv = System.capabilities.version; v2.os = System.capabilities.os; v2.lang = System.capabilities.language; v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY; var s = '?'; var v3 = 0; for (var v6 in v2) { if (v3 != 0) { s += '&'; } ++v3; s = s + v6 + '=' + escape(v2[v6]); } if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) { var ping = btn.createEmptyMovieClip('ping', 777); var v7 = btn.createEmptyMovieClip('nettest', 778); mochi.as2.MochiServices.netupAttempted = true; ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer()); v7.onEnterFrame = function () { if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) { delete this.onEnterFrame; } else { if (getTimer() - t0 > timeout) { delete this.onEnterFrame; mochi.as2.MochiServices.netup = false; } } }; } var v4 = btn.createEmptyMovieClip('clk', 1001); v4._alpha = 0; v4.beginFill(1044735); v4.moveTo(0, 0); v4.lineTo(0, btn._height); v4.lineTo(btn._width, btn._height); v4.lineTo(btn._width, 0); v4.lineTo(0, 0); v4.endFill(); v4.onRelease = function () { if (mochi.as2.MochiServices.netup) { getURL(url + s, '_blank'); } else { getURL(burl, '_blank'); } if (onClick != undefined) { onClick(); } }; }; v1.setContainer = function (clip) {}; v1.stayOnTop = function (clip) {}; v1._servURL = 'http://www.mochiads.com/static/lib/services/'; v1._services = 'services.swf'; v1._mochiLC = 'MochiLC.swf'; v1._listenChannelName = '__ms_'; v1._connecting = false; v1._connected = false; v1.netup = true; v1.netupAttempted = false; v1.servicesSync = new mochi.as2.MochiSync(); v1.addProperty('childClip', v1.__get__childClip, function () {}); v1.addProperty('clip', v1.__get__clip, function () {}); v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName); v1.addProperty('connected', v1.__get__connected, function () {}); v1.addProperty('id', v1.__get__id, function () {}); v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {}); ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1); } #endinitclip } movieClip 2366 __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 2367 __Packages.mochi.as2.MochiEvents { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiEvents) { var v1 = function () {}; mochi.as2.MochiEvents = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.startSession = function (achievementID) { mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null); }; v1.setNotifications = function (clip, style) { var v2 = {}; for (var v3 in style) { v2[v3] = style[v3]; } v2.clip = clip; mochi.as2.MochiServices.send('events_setNotifications', v2, null, null); }; v1.addEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, thisObject, thatObject) { mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject); }; v1.startPlay = function (tag) { if (tag == undefined) { tag = 'gameplay'; } mochi.as2.MochiServices.send('events_setRoundID', {'tag': String(tag)}, null, null); }; v1.endPlay = function () { mochi.as2.MochiServices.send('events_clearRoundID', null, null, null); }; v1.trackEvent = function (tag, value) { mochi.as2.MochiServices.send('events_trackEvent', {'tag': tag, 'value': value}, null, null); }; v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived'; v1.ALIGN_TOP_LEFT = 'ALIGN_TL'; v1.ALIGN_TOP = 'ALIGN_T'; v1.ALIGN_TOP_RIGHT = 'ALIGN_TR'; v1.ALIGN_LEFT = 'ALIGN_L'; v1.ALIGN_CENTER = 'ALIGN_C'; v1.ALIGN_RIGHT = 'ALIGN_R'; v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL'; v1.ALIGN_BOTTOM = 'ALIGN_B'; v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR'; v1.FORMAT_SHORT = 'ShortForm'; v1.FORMAT_LONG = 'LongForm'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1); } #endinitclip } movieClip 2368 __Packages.mochi.as2.MochiSocial { #initclip if (!_global.mochi) { _global.mochi = new Object(); } if (!_global.mochi.as2) { _global.mochi.as2 = new Object(); } if (!_global.mochi.as2.MochiSocial) { var v1 = function () {}; mochi.as2.MochiSocial = v1; var v2 = v1.prototype; v1.getVersion = function () { return mochi.as2.MochiServices.getVersion(); }; v1.showLoginWidget = function (options) { mochi.as2.MochiServices.setContainer(); mochi.as2.MochiServices.stayOnTop(); mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options}); }; v1.hideLoginWidget = function () { mochi.as2.MochiServices.send('coins_hideLoginWidget'); }; v1.requestLogin = function () { mochi.as2.MochiServices.send('coins_requestLogin'); }; v1.getUserInfo = function () { mochi.as2.MochiServices.send('coins_getUserInfo'); }; v1.saveUserProperties = function (properties) { mochi.as2.MochiServices.send('coins_saveUserProperties', properties); }; v1.addEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate); }; v1.triggerEvent = function (eventType, args) { mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args); }; v1.removeEventListener = function (eventType, delegate) { mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate); }; v1.LOGGED_IN = 'LoggedIn'; v1.LOGGED_OUT = 'LoggedOut'; v1.LOGIN_SHOW = 'LoginShow'; v1.LOGIN_HIDE = 'LoginHide'; v1.LOGIN_SHOWN = 'LoginShown'; v1.PROFILE_SHOW = 'ProfileShow'; v1.PROFILE_HIDE = 'ProfileHide'; v1.PROPERTIES_SAVED = 'PropertySaved'; v1.WIDGET_LOADED = 'WidgetLoaded'; v1.USER_INFO = 'UserInfo'; v1.ERROR = 'Error'; v1.IO_ERROR = 'IOError'; v1.NO_USER = 'NoUser'; v1.PROPERTIES_SIZE = 'PropertiesSize'; v1._dispatcher = new mochi.as2.MochiEventDispatcher(); ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1); } #endinitclip } movieClip 2369 __Packages.TubeCog { #initclip if (!_global.TubeCog) { var v1 = function () { super(); }; _global.TubeCog = v1; _global.TubeCog extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this._currentframe == 7) { this.gotoAndPlay(1); } if (this._currentframe == 17) { this.gotoAndPlay(11); } if (this._currentframe == 27) { this.gotoAndPlay(21); } }; ASSetPropFlags(_global.TubeCog.prototype, null, 1); } #endinitclip } movieClip 2370 __Packages.TubeCrusher { #initclip if (!_global.TubeCrusher) { var v1 = function () { super(); }; _global.TubeCrusher = v1; _global.TubeCrusher extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.stop(); }; v2.onEnterFrame = function () { if (this._currentframe == 1) { this.stop(); } if (this._currentframe == 3 && this.Timer == 0) { this.stop(); this.Timer = 1; } if (this.Timer > 0) { this.Timer += 1; } if (this.Timer == 8) { this.play(); this.Timer = 0; } if (_root.control.crusher_left._currentframe == 2) { _root.S_CRUSHER(); } }; v2.Timer = 0; ASSetPropFlags(_global.TubeCrusher.prototype, null, 1); } #endinitclip } movieClip 2371 __Packages.SpeechBubble { #initclip if (!_global.SpeechBubble) { var v1 = function () { super(); }; _global.SpeechBubble = v1; _global.SpeechBubble extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.Conversation == 1) { this.LastText = 6; this.Text = new Array(0, 'Greetings...this is your manager; Zarbo speaking.\nWe need to be making money. Immediately!', 'The company account is empty. There\'s just nothing left.\nIt\'s because I spent the last we had on this hat.', 'Your ship is ready to go. The grinders are all working. You need to get some humans in there.', 'No no, don\'t worry your little head about selling the product. Just fill up the cans and send them to me.', 'Hmm, there\'s no point in hanging around here at the shop. It\'s not like you can afford anything yet. Hohohoo.', 'To Earth with you!'); } if (this.Conversation == 2) { this.LastText = 4; this.Text = new Array(0, 'Money?! Yes, we actually have some now.', 'We have a few buyers, but not enough \'MAN-IN-A-CAN\' for the demand!\nGo somewhere with more humans.\nMore meat.', 'Oh...someone was complaining that it\'s not juicy enough.', 'Try and get some more human females. They\'re the most juicy, surely.', 'Upgrades! Buy some. It\'ll make human collecting much easier.'); } if (this.Conversation == 3) { this.LastText = 5; this.Text = new Array(0, 'Ohohoo, it\'s going well! Pleasing.', 'The human females turned out not to be particularly juicy.\nMy mistake.', 'I assumed they\'d be at least twice the size of the males. Strange speices', 'I digress.\nThe demand for \'MAN-IN-A-CAN\' is more than we can handle. Unthinkable.', 'Find a place with more humans.\nGo.'); } if (this.Conversation == 4) { this.LastText = 7; this.Text = new Array(0, 'We\'ll be famous soon.\nOh, the excitement makes my intestines gibber!', 'Our \'MAN-IN-A-CAN\' is the best meat product out there. Absolutely.', 'If you happen to burn some humans, be sure to pick up their charred remains.', 'Yes, burn some humans and throw them in the mix. It will enhance the flavour.', 'One more thing.\nSome fool crashed into Earth whilst driving under the influence.\nHe\'s dead now.', 'The humans stole some technology from his ship. They might use it against you.\nHow rude of them!', 'Probably nothing to worry about. I\'m rambling.\nOff you go.'); } if (this.Conversation == 5) { this.LastText = 9; this.Text = new Array(0, 'Oh. I\'ve just seen our energy bills.\n$5,000,000!', 'I apologise.\nIt was my fault for leaving the Energon Back-Massager on whilst I was hibernating.\nProbably.', 'Fear not. An opportunity has arisen;', 'The humans have built some kind of giant Robot.\nIt\'s causing some problems.\nShooting down innocent passers-by, etc.', 'There\'s a big reward waiting for the 1st one to take it down, apparently.', 'Not wanting to pressure you, but if you don\'t do this then the company will go under.', 'How can you beat it?\nOoh yes, I forgot, you have no weapons. I don\'t know, maybe try using it\'s weapons against it.', 'What\'s that? I should do it because I got us into this mess? I\'m just a lazy, overweight, gelatonous blob. Have pity.', 'Goodluck!'); } if (this.Conversation == 6) { this.LastText = 5; this.Text = new Array(0, 'You did it!\nBrilliant.\nExquisite!', 'They\'re rewarding us 10,000,000$.\nWe\'re in the clear.', 'I won\'t have to sell my hat afterall, AND we can keep the company running.', 'I\'m exhausted.\nMuch sleep is needed.', 'Goodnight.'); } if (this.Conversation == 7) { this.LastText = 3; this.Text = new Array(0, 'Weldone. You\'ve done everything.', 'Now you can just play the levels over and over \'til you get bored.', 'Have fun.'); } }; v2.onEnterFrame = function () { if (this._currentframe == 4 && this.appeared == false) { this.LastText -= 1; this.currentString += 1; this.appeared = true; this.stop(); this.GenerateText(); var v3 = this.attachMovie('SpeechBubble', 'speech_bubble_arrow', 171); v3._x = 105; v3._y = 75; v3.gotoAndStop(8); v3.arrowMove = 1; } if (this.arrowMove > 0) { this.arrowMove += 1; } if (this.arrowMove == 11) { this.arrowMove = 1; } if (this.arrowMove >= 1 && this.arrowMove < 6) { this._y += 1; } if (this.arrowMove >= 6 && this.arrowMove < 11) { this._y -= 1; } this.onMouseDown = function () { if (this._currentframe == 4) { this.gotoAndPlay(5); _root.speech_bubble.speech_bubble_arrow.removeMovieClip(); _root.speech_bubble.txt_speech_bubble.removeTextField(); this.appeared = false; } }; if (this._currentframe == 7 && this.LastText > 0) { this.gotoAndPlay(1); } if (this._currentframe == 7 && this.LastText == 0 && _root.global.Unlocked >= 2 && _root.global.Unlocked <= 5) { _root.menu_control.Entry = 990; _root.alien_blob.Fade = 100; this.removeMovieClip(); } if (this._currentframe == 7 && this.LastText == 0) { if (_root.global.Unlocked == 1 or _root.global.Unlocked == 7) { _root.menu_control.Entry = 9985; _root.alien_blob.Fade = 100; this.removeMovieClip(); } } if (this._currentframe == 7 && this.LastText == 0 && _root.global.Unlocked == 6) { _root.menu_control.Entry = -1; _root.alien_blob.Fade = 100; var v4 = _root.attachMovie('SpaceStation', 'end', 9995999); v4.gotoAndStop(13); v4.ID = 2; v4._alpha = 0; v4.counter = 1; this.removeMovieClip(); } }; v2.GenerateText = function () { var v3 = this.createTextField('txt_speech_bubble', 172, -125, -60, 250, 120); v3.wordWrap = true; v3.selectable = false; v3.text = this.Text[this.currentString]; v3.embedFonts = true; v3.setTextFormat(_root.txtSpeech_format); }; v2.appeared = false; v2.currentString = 0; ASSetPropFlags(_global.SpeechBubble.prototype, null, 1); } #endinitclip } movieClip 2372 __Packages.Text { #initclip if (!_global.Text) { var v1 = function () { super(); }; _global.Text = v1; _global.Text extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this.life += 1; this._y += this.vY * 0.25; if (this.vY > 0) { this.vY -= 1; } if (this.vY < 0) { this.vY += 1; } if (this.Fade <= 100) { this.Fade -= 10; if (this.Objectives > 0) { this.Fade -= 10; } this._alpha = this.Fade; } if (this.Fade <= 0) { this.removeMovieClip(); } if (this._currentframe == 4 && this.life == 23) { this.Fade = 100; } if (this._currentframe == 15 && this.life == 30) { this.Fade = 100; } if (this.Objectives > 0 && this.Fade == 150 && this._alpha < 100) { this._alpha += 50; } if (this.ID == 50 or this.ID == 55) { if (this.Fade == 150 && this._alpha < 100) { this._alpha += 20; } if (this.Fade == 150 && this.ID == 50) { this.onMouseDown = function () { if (_root._xmouse > this._x - 35 && _root._xmouse < this._x + 35 && _root._ymouse > this._y - 35 && _root._ymouse < this._y + 35) { if (_root.global.SoundOn == false && this.SoundCount == 0) { _root.global.SoundOn = true; this.gotoAndStop(9); this.SoundCount = 4; _root.global.saveGame(); _root.MUSIC1(); } if (_root.global.SoundOn == true && this.SoundCount == 0) { _root.global.SoundOn = false; this.gotoAndStop(10); this.SoundCount = 4; _root.global.saveGame(); _root.mus1.stop(); } } }; if (_root._xmouse > this._x - 35 && _root._xmouse < this._x + 35 && _root._ymouse > this._y - 35 && _root._ymouse < this._y + 35) { _root.sound_splodge._visible = true; } else { _root.sound_splodge._visible = false; } } if (this.Fade == 150 && this.ID == 55) { this.onMouseDown = function () { if (_root._xmouse > this._x - 35 && _root._xmouse < this._x + 35 && _root._ymouse > this._y - 35 && _root._ymouse < this._y + 35) { if (_root.global.ControlMouse == false && this.SoundCount == 0) { _root.global.ControlMouse = true; this.gotoAndStop(12); this.SoundCount = 4; _root.global.saveGame(); _root.M_SELECTED3(); } if (_root.global.ControlMouse == true && this.SoundCount == 0) { _root.global.ControlMouse = false; this.gotoAndStop(13); this.SoundCount = 4; _root.global.saveGame(); _root.M_SELECTED3(); } } }; if (_root._xmouse > this._x - 35 && _root._xmouse < this._x + 35 && _root._ymouse > this._y - 35 && _root._ymouse < this._y + 35) { _root.control_splodge._visible = true; } else { _root.control_splodge._visible = false; } } if (this.SoundCount > 0) { this.SoundCount -= 1; } } if (this.Objectives > 0 && this.SetItem == false) { var v4 = 0; while (v4 < this.Objectives) { var v3 = this.attachMovie('Text', 'UnlockObjectiveBox' + v4, 290 - v4); v3._y = v4 * 60 + 45; v3._x = -85; v3.gotoAndStop(6); v3.ID = v4; v3.ID2 = this.ID2; var v5 = v3.createTextField('txt_objective' + v4, 310 - v4, -10, -8, 222, 100); v5.selectable = false; v5.text = this.ObjectiveDes[v4]; v5.embedFonts = true; v5.setTextFormat(_root.txtUnlock_format); if (v3.ID2 == 1 && v3.ID == 0 && _root.global.s1Objectives[0] == 1) { v3.ShowTick(); } if (v3.ID2 == 1 && v3.ID == 1 && _root.global.s1Objectives[1] == 1) { v3.ShowTick(); } if (v3.ID2 == 1 && v3.ID == 2 && _root.global.s1Objectives[2] == 1) { v3.ShowTick(); } if (v3.ID2 == 2 && v3.ID == 0 && _root.global.s2Objectives[0] == 1) { v3.ShowTick(); } if (v3.ID2 == 2 && v3.ID == 1 && _root.global.s2Objectives[1] == 1) { v3.ShowTick(); } if (v3.ID2 == 2 && v3.ID == 2 && _root.global.s2Objectives[2] == 1) { v3.ShowTick(); } if (v3.ID2 == 2 && v3.ID == 3 && _root.global.s2Objectives[3] == 1) { v3.ShowTick(); } if (v3.ID2 == 3 && v3.ID == 0 && _root.global.s3Objectives[0] == 1) { v3.ShowTick(); } if (v3.ID2 == 3 && v3.ID == 1 && _root.global.s3Objectives[1] == 1) { v3.ShowTick(); } if (v3.ID2 == 3 && v3.ID == 2 && _root.global.s3Objectives[2] == 1) { v3.ShowTick(); } if (v3.ID2 == 3 && v3.ID == 3 && _root.global.s3Objectives[3] == 1) { v3.ShowTick(); } if (v3.ID2 == 4 && v3.ID == 0 && _root.global.s4Objectives[0] == 1) { v3.ShowTick(); } if (v3.ID2 == 4 && v3.ID == 1 && _root.global.s4Objectives[1] == 1) { v3.ShowTick(); } if (v3.ID2 == 4 && v3.ID == 2 && _root.global.s4Objectives[2] == 1) { v3.ShowTick(); } ++v4; } } }; v2.ShowTick = function () { var v2 = this.attachMovie('Text', 'Tick' + this.ID, 370 + this.ID); v2.gotoAndStop(7); v2._x = 235; v2._y = 15; }; v2.life = 0; v2.vY = 0; v2.Fade = 150; v2.SetItem = false; v2.ObjectiveDes = []; v2.SoundCount = 0; ASSetPropFlags(_global.Text.prototype, null, 1); } #endinitclip } movieClip 2373 __Packages.TubeBackground { #initclip if (!_global.TubeBackground) { var v1 = function () { super(); }; _global.TubeBackground = v1; _global.TubeBackground extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.TubeBackground.prototype, null, 1); } #endinitclip } movieClip 2374 __Packages.Mountain { #initclip if (!_global.Mountain) { var v1 = function () { super(); }; _global.Mountain = v1; _global.Mountain extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this._x = _root.control.ScrollFinal * -0.5 + 480 * this.ID - 480; if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; ASSetPropFlags(_global.Mountain.prototype, null, 1); } #endinitclip } movieClip 2375 __Packages.Sky { #initclip if (!_global.Sky) { var v1 = function () { super(); }; _global.Sky = v1; _global.Sky extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.Sky.prototype, null, 1); } #endinitclip } movieClip 2376 __Packages.Road { #initclip if (!_global.Road) { var v1 = function () { super(); }; _global.Road = v1; _global.Road extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; ASSetPropFlags(_global.Road.prototype, null, 1); } #endinitclip } movieClip 2377 __Packages.Abductable { #initclip if (!_global.Abductable) { var v1 = function () { super(); }; _global.Abductable = v1; _global.Abductable extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.enabled = false; if (this.Random == 110) { this.Type = 3; } if (_root.global.Stage == 1 or _root.global.Stage == 0) { if (this.Random >= 0 && this.Random < 33) { this.Type = 0; } if (this.Random >= 33 && this.Random < 66) { this.Type = 2; } if (this.Random >= 66 && this.Random < 100) { this.Type = 4; } } if (_root.global.Stage == 2) { if (this.Random >= 0 && this.Random < 25) { this.Type = 0; } if (this.Random >= 25 && this.Random < 50) { this.Type = 1; } if (this.Random >= 50 && this.Random < 75) { this.Type = 2; } if (this.Random >= 75 && this.Random < 100) { this.Type = 4; } } if (_root.global.Stage == 3) { if (this.Random >= 0 && this.Random < 29) { this.Type = 0; } if (this.Random >= 29 && this.Random < 58) { this.Type = 1; } if (this.Random >= 58 && this.Random < 87) { this.Type = 2; } if (this.Random >= 87 && this.Random < 93) { this.Type = 4; } if (this.Random >= 93 && this.Random < 100) { this.Type = 5; } } if (_root.global.Stage == 4) { if (this.Random >= 0 && this.Random < 80) { this.Type = 5; } if (this.Random >= 80 && this.Random < 100) { this.Type = 4; } } if (_root.global.Stage == 5) { if (this.Random >= 0 && this.Random < 100) { this.Type = 5; } } this.Random = null; }; v2.onEnterFrame = function () { if (this.ParametersSet == false) { if (this.Type == 0) { this.Weight = 1.5; this.ThreatRange = 200; this.Height = 8; this.AbductionSpeed = 1.25; this.Load = 10; this.ResetAI(); } if (this.Type == 1) { this.Weight = 1.5; this.ThreatRange = 160; this.Height = 8; this.AbductionSpeed = 1.25; this.Load = 10; this.ResetAI(); } if (this.Type == 2) { this.Weight = 1.2; this.ThreatRange = 235; this.Height = 7; this.AbductionSpeed = 1.35; this.Load = 10; this.ResetAI(); } if (this.Type == 3) { this.Weight = 1.5; this.Height = 8; this.AbductionSpeed = 1.3; this.Load = 10; this.ResetAI(); } if (this.Type == 4) { this.Weight = 2; this.Height = 5; this.AbductionSpeed = 1.15; this.Load = 12; this.ResetAI(); } if (this.Type == 5) { this.Weight = 1.5; this.ThreatRange = 210; this.Height = 8; this.AbductionSpeed = 1.25; this.Load = 10; this.ResetAI(); } if (this.Type == 6) { this.Weight = 1.5; this.Height = 8; this.AbductionSpeed = 0.8; this.Load = 20; this.aiTimer = 100; if (this.aiAttackTimer == 0) { this._x = -10; } if (this.aiAttackTimer == 1) { this._x = _root.control.LevelWidth + 10; } this.ResetAI(); } if (this.Type == 10) { this.Weight = 2; this.Height = 0; this.AbductionSpeed = 1; this.gotoAndStop(1000 + random(3)); this._xscale = random(30) + 85; this._yscale = this._xscale; this.Load = 15; this._rotation = random(360); } if (this.Type == 11) { this.Weight = 2; this.Height = 0; this.AbductionSpeed = 1; this.Load = 15; this._rotation = random(360); this.aiTimer = 0; this.BombTimer = 0; } if (this.Type > 20) { this.gotoAndStop(this.Type + 1080); this._visible = true; this.Weight = 1.2; this.Height = 0; this.AbductionSpeed = 2.5; if (this.Type < 26) { this.vX = random(20) - 10; this.vY = random(10) - 25; this.Fling = true; } this.Load = 2; } for (var v13 in _root.control.Obstacles) { if (this.Type < 10 && this._x > _root.control.Obstacles[v13]._x - _root.control.Obstacles[v13].Width && this._x < _root.control.Obstacles[v13]._x + _root.control.Obstacles[v13].Width) { this._y = _root.control.Obstacles[v13]._y - _root.control.Obstacles[v13].Height - 20; } } this.ParametersSet = true; } if (this.Sucked == true && this._y > _root.control.Floor) { this.dy = _root.control.Floor - _root.tractor_beam._y; this.BeamDistance = Math.sqrt(this.dx * this.dx + this.dy * this.dy); if (this.Stuck == true) { _root.ufo.Damage(); } } if (this.Sucked == true && this._x <= 0) { this.dx = 10 - _root.ufo._x; this.BeamDistance = Math.sqrt(this.dx * this.dx + this.dy * this.dy); } if (this.Sucked == true && this._x >= _root.control.LevelWidth) { this.dx = _root.control.LevelWidth - 10 - _root.ufo._x; this.BeamDistance = Math.sqrt(this.dx * this.dx + this.dy * this.dy); } if (this.BeamDistance > 0 && this.Stuck == false) { this.BeamDistance -= (10 + this.BeamDistance / -55) * this.AbductionSpeed * _root.global.ufoSuction; } if (_root.ufo.StackDistance > 0 && this.BeamDistance <= _root.ufo.StackDistance * 25 + 25 && this.Sucked == true && this.Type < 10) { this.BeamDistance = _root.ufo.StackDistance * 25 + 25; this.Fling = true; this.Sucked = false; this.Stun = 7; _root.ufo.Load -= this.Load; _root.control.hud_load.updateLoad(); } if (this.hitTest(_root.robot.robot_head) && this.Type != 11 && this.Sucked == true) { this.Fling = true; this.Sucked = false; this.Stun = 7; _root.ufo.Load -= this.Load; _root.control.hud_load.updateLoad(); if (this.Type == 15) { this.DamageTruck(); _root.robot.robot_head.Damage(); } } if (this.Stun > 0) { this.Stun -= 1; } if (this._x <= _root.tractor_beam._x && this.Stopped == false) { this.Alignment = -Math.atan2(_root.ufo._x - this._x, _root.ufo._y + 5 - this._y) / 0.0174532925199433 + 180; } if (this._x > _root.tractor_beam._x && this.Stopped == false) { this.Alignment = -Math.atan2(_root.ufo._x - this._x, _root.ufo._y + 5 - this._y) / 0.0174532925199433 - 180; } if (this.Alignment < _root.tractor_beam.RotationCurrent + 2 && this.Alignment > _root.tractor_beam.RotationCurrent - 2 && this.Sucked == false && _root.tractor_beam.BeamOn == true && this.GibLife < 150 && this.Stun == 0) { if (this.Load + _root.ufo.Load <= _root.global.ufoLoadLimit) { this.dx = this._x - _root.ufo._x; this.dy = this._y - _root.ufo._y + 5; this.BeamDistance = Math.sqrt(this.dx * this.dx + this.dy * this.dy) - this.Height; this.Sucked = true; this.Fling = false; this.DropOffPoint = 0; this.vX = 0; this.vY = 0; this.aiTimer = 0; this.aiAttackRange = false; if (this.Type != 6) { this.aiAttackTimer = 0; } this.recordStatic = 0; _root.ufo.Load += this.Load; _root.control.hud_load.updateLoad(); this._yscale = 100; if (this.Type < 10 && this.Burnt == false) { this.gotoAndPlay(55 + this.Type * 100); } if (this.Type == 4) { _root.snd_cow2.stop('V_COW2'); _root.V_COW2(); } if (this.Type == 0 or this.Type == 1) { _root.V_SCREAM(); } if (this.Type == 2) { _root.V_GIRL(); } if (this.Type == 3) { _root.V_AMISH3(); } if (this.Type == 5) { _root.V_AGENT(); } } } if (this.Sucked == true) { this.dx = this._x - _root.ufo._x; this.dy = this._y - _root.ufo._y + 5; } if (this.BeamDistance <= 5 && this.Sucked == true) { if (this.Type == 2) { _root.control.uFemalesAbducted += 1; if (_root.global.Stage == 2 && _root.global.s2Objectives[2] == 0) { _root.control.UpdateFemalesAbducted(); } } if (this.Type == 4) { _root.V_COW1(); } if (this.Type == 6) { _root.V_ELVIS(); _root.txt_format.size = 40; var v14 = _root.control.createTextField('elvis_txt', 903511, 550, 240, 150, 50); v14.selectable = false; v14.text = 'ELVIS!'; v14.embedFonts = true; v14.setTextFormat(_root.txt_format); _root.txt_format.color = 0; var v8 = _root.control.createTextField('elvis_txt_shadow', 903510, 550, 243, 150, 50); v8.selectable = false; v8.text = 'ELVIS!'; v8.embedFonts = true; v8.setTextFormat(_root.txt_format); v8.alpha = 65; _root.txt_format.color = 16733525; _root.control.TimerElvis = 2000; _root.txt_format.size = 25; } if (this.Type != 2 && this.Type < 10 && _root.control.uFemalesAbducted != 0 && _root.global.s2Objectives[2] == 0 && _root.global.Stage == 2) { _root.control.uFemalesAbducted = 0; _root.control.UpdateFemalesAbducted(); } if (this.Type < 10 && this.Burnt != true) { var v15 = _root.control.attachMovie('Abducted', 'abducted' + _root.control.DepthAbducted, _root.control.DepthAbducted); v15.Type = this.Type; v15._x = 625; v15._y = 490; _root.ufo.Load -= this.Load; _root.control.hud_load.updateLoad(); if (this.Type != 6) { _root.control.Humans -= 1; _root.control.HumansKilled += 1; } if (this.Type == 2) { _root.V_GIRL2(); } if (this.Type == 0 or this.Type == 1 or this.Type == 3) { _root.V_ABDUCTED(); } if (this.Type == 5) { _root.V_AGENT2(); } this.removeMovieClip(); _root.S_ABDUCT(); _root.control.MultiplierSub += 1; if (_root.control.TTimer == 3 && _root.control.TSuccess == -1) { _root.control.TTimer2 += 25; } } if (this.Type > 20 or this.Burnt == true) { var v4 = _root.control.attachMovie('Gib', 'gib' + _root.control.DepthAbducted, _root.control.DepthAbducted); v4._x = 625; v4._y = 490; v4.Direction = 1; if (this.Burnt == false) { v4.gotoAndStop(this.Type - 20); v4._xscale = this._xscale; v4._yscale = this._yscale; } if (this.Burnt == true) { v4.gotoAndStop(random(2) + 26); v4._xscale = random(20) + 150; v4._yscale = random(20) + 70; _root.control.Humans -= 1; _root.control.HumansKilled += 1; } if (this._currentframe == 1106 or this._currentframe == 1107 or this.Burnt == true) { _root.control.uBurntAbducted += 1; if (_root.global.Stage == 4 && _root.global.s4Objectives[1] == 0) { _root.control.UpdateBurntAbducted(); } } if (_root.control.TTimer == 9 && _root.control.TSuccess == -1) { _root.control.TTimer2 += 35; } _root.ufo.Load -= this.Load; _root.control.hud_load.updateLoad(); this.removeMovieClip(); _root.S_ABDUCTGIB(); } _root.control.DepthAbducted += 1; } if (this.BeamDistance <= _root.ufo.StackDistance * 25 + 25 && this.Sucked == true && this.Stuck == false && this.Type >= 10 && this.Type < 20) { _root.ufo.StackDistance += 1; this.BeamDistance = _root.ufo.StackDistance * 25; this.Stuck = true; var v11 = this.attachMovie('Message', 'warning_cirlce', _root.control.DepthTruck); v11.gotoAndPlay(20); v11._xscale = 120; v11._yscale = 120; if (this.Type == 15) { this.BeamDistance = _root.ufo.StackDistance * 25 + 25; v11._y = -15; } _root.control.DepthTruck += 1; _root.S_ROCKWARNING(); if (_root.control.TTimer == 5 && this.Type != 15 && _root.control.TSuccess == -1) { _root.control.TTimer2 += 100; } } if (this.Sucked == true) { this.Xa = this._x; this.Ya = this._y; } if (this.Sucked == true) { this._x = _root.ufo._x + this.BeamDistance * Math.sin(_root.tractor_beam.BeamAngle); this._y = _root.ufo._y + 5 + this.BeamDistance * Math.cos(_root.tractor_beam.BeamAngle); this._rotation = this.Alignment; } if (_root.tractor_beam.BeamOn == false && this.Sucked == true && this.Fling == false) { this.Sucked = false; this.Fling = true; this.vX = Math.round((this._x - this.Xa) / this.Weight); this.vY = Math.round((this._y - this.Ya) / this.Weight); this.Stuck = false; } if (this.Fling == true && this.vY > 0 && this._y > _root.control.Floor) { this._y = _root.control.Floor; this.Bounce(); } if (this.Sucked == false && this.aiTimer == 0 && this.DropOffPoint == 0 && this._x < 0) { this._x = 0; this.SideBounce(); } if (this.Sucked == false && this.aiTimer == 0 && this.DropOffPoint == 0 && this._x > _root.control.LevelWidth) { this._x = _root.control.LevelWidth; this.SideBounce(); } for (v13 in _root.control.Obstacles) { if (this.Fling == true && this.vY > 0 && this._y > _root.control.Obstacles[v13]._y - (_root.control.Obstacles[v13].Height + 20) && this._y < _root.control.Obstacles[v13]._y - _root.control.Obstacles[v13].Height && this._x < _root.control.Obstacles[v13]._x + _root.control.Obstacles[v13].Width && this._x > _root.control.Obstacles[v13]._x - _root.control.Obstacles[v13].Width) { if (this.Type >= 10 && this.Type < 20 && this.vY > 12) { _root.control.Obstacles[v13].Damage(); } this._y = _root.control.Obstacles[v13]._y - (_root.control.Obstacles[v13].Height + 20); this.Bounce(); } } if (this.Fling == true) { this.recordX = this.vX; this.recordY = this.vY; } if (this.Fling == true && this.vY == 0 && this.vX > 0) { this.vX -= 1; } if (this.Fling == true && this.vY == 0 && this.vX < 0) { this.vX += 1; } if (this.Fling == true && this.vY < 20) { this.vY += 2; } if (this.Type < 10) { if (this._x < _root.ufo._x - 300 or this._x > _root.ufo._x + 300) { if (this.Stopped == false) { this.Alignment = 1000; this.Stopped = true; } } if (this._x >= _root.ufo._x - 300 && this._x <= _root.ufo._x + 300 && this.Stopped == true) { this.Stopped = false; } if (this.vX < 0 && this.AnimDirection == false) { this._xscale *= -1; this.AnimDirection = true; } if (this.vX > 0 && this.AnimDirection == true) { this._xscale *= -1; this.AnimDirection = false; } if (this._currentframe == 20 + this.Type * 100) { if (this.Type != 6) { this.gotoAndPlay(1 + this.Type * 100); } } if (this.Type == 0 && this._currentframe == 49) { this.gotoAndPlay(25); } if (this.Type == 1 && this._currentframe == 149) { this.gotoAndPlay(125); } if (this.Type == 2 && this._currentframe == 244) { this.gotoAndPlay(225); } if (this.Type == 3 && this._currentframe == 344) { this.gotoAndPlay(325); } if (this.Type == 4 && this._currentframe == 449) { this.gotoAndPlay(425); } if (this.Type == 5 && this._currentframe == 544) { this.gotoAndPlay(525); } if (this.Type == 6 && this._currentframe == 631) { this.gotoAndPlay(601); } if (this.Type == 0 && this._currentframe == 61) { this.gotoAndPlay(55); } if (this.Type == 1 && this._currentframe == 159) { this.gotoAndPlay(155); } if (this.Type == 2 && this._currentframe == 261) { this.gotoAndPlay(255); } if (this.Type == 3 && this._currentframe == 361) { this.gotoAndPlay(355); } if (this.Type == 4 && this._currentframe == 467) { this.gotoAndPlay(455); } if (this.Type == 5 && this._currentframe == 561) { this.gotoAndPlay(555); } if (this.Type == 6 && this._currentframe == 662) { this.gotoAndPlay(655); } if (this._currentframe == 69 + this.Type * 100) { if (this.Type < 4 or this.Type >= 5) { this.gotoAndPlay(65 + this.Type * 100); } } if (this.Type == 4 && this._currentframe == 474) { this.gotoAndPlay(470); } if (this.Type == 0 && this._currentframe == 95) { this.gotoAndPlay(1); } if (this.Type == 1 && this._currentframe == 195) { this.gotoAndPlay(101); } if (this.Type == 2 && this._currentframe == 294) { this.gotoAndPlay(201); } if (this.Type == 5 && this._currentframe == 592) { this.gotoAndPlay(501); } if (this._currentframe == 706) { this.gotoAndPlay(700); } if (this._currentframe >= 55 + this.Type * 100 && this._currentframe < 65 + this.Type * 100) { this._rotation += this.vX; } if (this.Sucked == false && this.Fling == false && this._currentframe < 75 + this.Type * 100 && this.Type < 10 && this.Type != 6 && _root.control.AIFunction == true && this.aiAttackTimer == 0 && this.DropOffPoint == 0) { this.aiTimer += 1; } if (this.aiTimer == 120) { if (this.Type != 6) { this.aiDirection = random(2) + 1; this.gotoAndPlay(25 + this.Type * 100); } this.aiTimer = 500 + random(200); } if (this.aiDirection == 1) { if (this.Type != 4 && this.Type != 6) { this.vX = -2; } if (this.Type == 4) { this.vX = -1; } this.aiDirection = 0; } if (this.aiDirection == 2) { if (this.Type != 4 && this.Type != 6) { this.vX = 2; } if (this.Type == 4) { this.vX = 1; } this.aiDirection = 0; } if (this._x < 0 && this.aiTimer > 0 && this.Type != 6) { this._x = 0; this.vX *= -1; } if (this._x > _root.control.LevelWidth && this.aiTimer > 0 && this.Type != 6) { this._x = _root.control.LevelWidth; this.vX *= -1; } if (this.Type == 6) { if (this._x < -35 && this.aiAttackTimer == 1 && this.Sucked == false) { this.removeMovieClip(); } if (this._x > _root.control.LevelWidth + 35 && this.aiAttackTimer == 0 && this.Sucked == false) { this.removeMovieClip(); } } for (v13 in _root.control.ObstacleBarriers) { if (this.aiTimer > 0 && this.hitTest(_root.control.ObstacleBarriers[v13])) { if (_root.control.ObstacleBarriers[v13].side == true && this.vX > 0) { this.vX *= -1; } if (_root.control.ObstacleBarriers[v13].side == false && this.vX < 0) { this.vX *= -1; } } } if (this.aiTimer == 900 && this.Type != 6) { this.ResetAI(); this.vX = 0; } if (this.Fling == true && this.recordX == this.vX && this.recordY == 0 && this.vY == 2) { this.recordStatic += 1; } if (this._x <= _root.ufo._x + this.ThreatRange && this._x >= _root.ufo._x - this.ThreatRange && this.aiAttackRange == false && this.Sucked == false && this.Fling == false) { if (this.Type < 3 or this.Type == 5) { this.aiAttackRange = true; this.aiAttackTimer = random(50); } } if (this._x > _root.ufo._x + this.ThreatRange && this._x < _root.ufo._x - this.ThreatRange && this.aiAttackRange == true) { if (this.Type < 3 or this.Type > 4) { this.aiAttackRange = false; this.aiAttackTimer = 0; } } if (this.aiAttackRange == true && _root.control.AIFunction == true && this.DropOffPoint == 0) { this.aiAttackTimer += 1; } if (this.aiAttackTimer == _root.control.AIAggression) { this.gotoAndPlay(70 + this.Type * 100); this.vX = 0; } if (this._currentframe == 70 + this.Type * 100 && this._xscale == 100 && this._x > _root.ufo._x && this.Type != 4) { this.AnimDirection = true; this._xscale *= -1; } if (this._currentframe == 70 + this.Type * 100 && this._xscale == -100 && this._x < _root.ufo._x && this.Type != 4) { this.AnimDirection = false; this._xscale *= -1; } if (this.aiAttackTimer > _root.control.AIAggression + 10 && this._currentframe < 75 + this.Type * 100) { this.ResetAI(); this.aiAttackTimer = 0; this.aiAttackRange = false; } if (this.Type == 0 && this._currentframe == 78) { var v5 = _root.attachMovie('Projectile', 'pitchfork' + _root.control.DepthProjectile, _root.control.DepthProjectile); v5._y = this._y - 46; v5.xForce = Math.ceil(Math.abs(this._x - _root.ufo._x) / 30); v5.rotSpeed = random(3) + 2; if (this._xscale == 100) { v5._x = this._x + 2; v5.Rot = 25; v5.direction = 0; } if (this._xscale == -100) { v5._x = this._x - 2; v5.Rot = -25; v5.direction = 1; } _root.control.DepthProjectile += 1; _root.S_THROW1(); } } if (this.Type == 1 && this._currentframe == 180) { var v9 = _root.attachMovie('Bullet', 'bullet' + _root.control.DepthProjectile, _root.control.DepthProjectile); v9._y = this._y - 35; if (this._xscale == 100) { v9._x = this._x + 6; v9._rotation = 23 + random(5); } if (this._xscale == -100) { v9._x = this._x - 6; v9._rotation = -23 - random(5); } _root.control.DepthProjectile += 1; _root.S_SHOTGUN(); } if (this.Type == 2 && this._currentframe == 285) { var v3 = _root.attachMovie('Projectile', 'boots' + _root.control.DepthProjectile, _root.control.DepthProjectile); v3._y = this._y - 30; v3.xForce = Math.ceil(Math.abs(this._x - _root.ufo._x) / 30); v3.rotSpeed = random(2) + 4; v3.gotoAndPlay(25); v3.Type = 1; if (this._xscale == 100) { v3._x = this._x + 5; v3.Rot = 25; v3.direction = 0; } if (this._xscale == -100) { v3._x = this._x - 5; v3.Rot = -25; v3.direction = 1; v3._xscale = -100; } _root.control.DepthProjectile += 1; _root.S_THROW2(); } if (this.Type == 5 && this._currentframe == 579) { var v6 = _root.attachMovie('PlasmaShot', 'plasma_shot' + _root.control.DepthProjectile, _root.control.DepthProjectile); v6._y = this._y - 46; v6.ID = 0; v6.speed = 6; if (this._xscale == 100) { v6._x = this._x + 7; v6.direction = -145; } if (this._xscale == -100) { v6._x = this._x - 7; v6.direction = 145; } _root.control.DepthProjectile += 1; _root.S_PLASMASHOT(); } if (this.Type >= 10 && this.Type < 15) { this._rotation += this.vX * 1.7; } if (this.Type == 15 && this.Sucked == false) { if (this._rotation < 0) { this._rotation += 5; } if (this._rotation > 0) { this._rotation -= 5; } } if (this.Type < 10) { if (_root.rock1.vY > 15 or _root.rock1.vX < -15 or _root.rock1.vX > 15) { if (this.hitTest(_root.rock1)) { this.Explode(); _root.control.UpdateMultiplier(); _root.rock1.vX *= 0.5; _root.rock1.vY *= -0.6; _root.control.uRockKills += 1; if (_root.global.Stage == 1 && _root.global.s1Objectives[1] == 0) { _root.control.UpdateRockKills(); } if (_root.control.TTimer == 7 && _root.control.TSuccess == -1) { _root.control.TTimer2 += 100; } } } if (_root.rock2.vY > 15 or _root.rock2.vX < -15 or _root.rock2.vX > 15) { if (this.hitTest(_root.rock2)) { this.Explode(); _root.control.UpdateMultiplier(); _root.rock2.vX *= 0.5; _root.rock2.vY *= -0.6; _root.control.uRockKills += 1; if (_root.global.Stage == 1 && _root.global.s1Objectives[1] == 0) { _root.control.UpdateRockKills(); } if (_root.control.TTimer == 7 && _root.control.TSuccess == -1) { _root.control.TTimer2 += 100; } } } if (_root.rock3.vY > 15 or _root.rock3.vX < -15 or _root.rock3.vX > 15) { if (this.hitTest(_root.rock3)) { this.Explode(); _root.control.UpdateMultiplier(); _root.rock3.vX *= 0.5; _root.rock3.vY *= -0.6; _root.control.uRockKills += 1; if (_root.global.Stage == 1 && _root.global.s1Objectives[1] == 0) { _root.control.UpdateRockKills(); } } } if (_root.rock4.vY > 15 or _root.rock4.vX < -15 or _root.rock4.vX > 15) { if (this.hitTest(_root.rock4)) { this.Explode(); _root.control.UpdateMultiplier(); _root.rock4.vX *= 0.5; _root.rock4.vY *= -0.6; _root.control.uRockKills += 1; if (_root.global.Stage == 1 && _root.global.s1Objectives[1] == 0) { _root.control.UpdateRockKills(); } } } if (_root.rock5.vY > 15 or _root.rock5.vX < -15 or _root.rock5.vX > 15) { if (this.hitTest(_root.rock5)) { this.Explode(); _root.control.UpdateMultiplier(); _root.rock5.vX *= 0.5; _root.rock5.vY *= -0.6; _root.control.uRockKills += 1; if (_root.global.Stage == 1 && _root.global.s1Objectives[1] == 0) { _root.control.UpdateRockKills(); } } } if (_root.truck.vY > 13 or _root.truck.vX < -13 or _root.truck.vX > 13) { if (this.hitTest(_root.truck)) { this.Explode(); _root.control.UpdateMultiplier(); _root.truck.vX *= 0.5; _root.truck.vY *= -0.6; _root.truck._rotation = (random(2) + 1) * 30 - 45; _root.control.uTruckKills += 1; if (_root.global.Stage == 3 && _root.global.s3Objectives[2] == 0) { _root.control.UpdateTruckKills(); } } } if (this.hitTest(_root.explosion_circle) && _root.explosion_circle.Time > 40) { this.Explode(); } if (_root.biplane_explosion._currentframe <= 2 && this.hitTest(_root.biplane_explosion)) { _root.control.UpdateMultiplier(); this.Explode(); } if (_root.biplane_explosion._currentframe > 2 && _root.biplane_explosion._currentframe < 5 && this.Type != 4 && this.Burnt == false && this.hitTest(_root.biplane_explosion)) { _root.control.UpdateMultiplier(); if (this.Fling == false && this.Sucked == false) { _root.S_BURNT(); this.Burn(); } if (this.Fling == true or this.Sucked == true) { this.Burnt = true; this.gotoAndPlay(700); _root.S_BURNT(); } } if (_root.firebox1.life > 0 && this.Type != 4 && this.Type != 6 && this.Burnt == false && this.hitTest(_root.firebox1)) { if (this.Fling == false && this.Sucked == false) { this.Burn(); } if (this.Fling == true or this.Sucked == true) { this.Burnt = true; this.gotoAndPlay(700); _root.S_BURNT(); } } if (_root.firebox2.life > 0 && this.Type != 4 && this.Type != 6 && this.Burnt == false && this.hitTest(_root.firebox2)) { if (this.Fling == false && this.Sucked == false) { this.Burn(); } if (this.Fling == true or this.Sucked == true) { this.Burnt = true; this.gotoAndPlay(700); _root.S_BURNT(); } } if (this.hitTest(_root.dust_generator) && _root.dust_generator.life < 3) { _root.control.UpdateMultiplier(); this.Explode(); } if (this.hitTest(_root.truck_explosion1) && _root.truck_explosion1._currentframe < 3 && this.Sucked == false) { this.DropOffPoint = 0; this.Fling = true; this.vY = random(9) - 22; this.vX = random(16) - 8; this._yscale = 100; this.gotoAndPlay(65 + this.Type * 100); } if (this.hitTest(_root.truck_explosion2) && _root.truck_explosion2._currentframe < 3 && this.Sucked == false) { _root.control.UpdateMultiplier(); this.DropOffPoint = 0; this.Fling = true; this.vY = random(6) - 16; this.vX = random(10) - 5; this._yscale = 100; this.gotoAndPlay(65 + this.Type * 100); } if (this._x > _root.tirefire._x - 35 && this._x < _root.tirefire._x + 35 && this._y > _root.tirefire._y - 60 && this._y < _root.tirefire._y + 2 && this.Burnt == false && this.Type != 4) { this.Burnt = true; this.gotoAndPlay(700); _root.S_BURNT(); } } if (_root.obstacle201.Vibrate == 6) { if (this.hitTest(_root.obstacle201) && this.Sucked == false && this.Fling == false && this.Type != 6) { if (this.Type < 10) { this.ResetAI(); this.aiAttackTimer = 0; } this.vY = random(10) + 15; this.vX = random(14) - 7; this.Fling = true; this.Bounce(); } } if (_root.obstacle202.Vibrate == 6) { if (this.hitTest(_root.obstacle202) && this.Sucked == false && this.Fling == false && this.Type != 6) { if (this.Type < 10) { this.ResetAI(); this.aiAttackTimer = 0; } this.vY = random(10) + 15; this.vX = random(14) - 7; this.Fling = true; this.Bounce(); } } if (this.Type > 20) { if (this.BloodTimer < 6) { if (this.vY > 5 or this.vY < -5) { if (this.BloodTimer == 1 or this.BloodTimer == 3 or this.BloodTimer == 5) { this.GenerateBlood(); } } this.BloodTimer += 1; } } if (this.Type > 20 && this.Sucked == false) { this.GibLife += 1; } if (this.Type > 20 && this.GibLife > 0 && this.Sucked == true) { this.GibLife = 0; } if (this.GibLife >= 150) { this._alpha -= 10; } if (this.Type > 20 && this.GibLife == 160) { this.removeMovieClip(); } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } if (this.DropOffPoint > 0) { if (this.vX > 0 && this._x >= this.DropOffPoint or this.vX < 0 && this._x <= this.DropOffPoint) { this.vY = random(5) - 15; this.vX = random(12) - 6; this.Fling = true; this.gotoAndPlay(65 + this.Type * 100); this.DropOffPoint = 0; if (Stage >= 4) { this._y -= 10; this._yscale = 100; } } } if (this.Type == 11) { this.BombTimer += 1; if (this.BombTimer == 250) { this.gotoAndPlay(1005); } if (this._currentframe == 1008) { this.gotoAndPlay(1005); } if (this.BombTimer >= 300) { var v7 = _root.attachMovie('EffectSmoke', 'Exploder' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v7._x = this._x; v7._y = this._y; v7.life = 0; v7.life2 = 1; v7.gotoAndStop(30); v7._visible = false; _root.control.DepthHitEffect += 1; _root.S_PLANEEXPLODE(); var v12 = _root.attachMovie('ExplosionCircle', 'explosion_circle' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v12._x = this._x; v12._y = this._y; v12._xscale = 65; v12._yscale = 30; _root.control.DepthHitEffect += 1; this.removeMovieClip(); } } if (this.Burnt == true) { if (this.FlameCycle < 3) { var v10 = _root.attachMovie('EffectSmoke', 'flame' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v10._x = this._x; v10._y = this._y - 1; if (this.FlameCycle == 1) { v10.gotoAndPlay(31); v10._xscale = 45; v10._yscale = 45; } _root.control.DepthHitEffect += 1; } ++this.FlameCycle; } if (this.recordStatic == 3) { this.vY = 0; this.recordStatic = 0; this.Fling = false; this.ResetAI(); this.CheckHeight(); if (this.Burnt == true) { this.Burn(); } } if (this.Sucked == false) { this._x += this.vX; this._y += this.vY; } }; v2.Bounce = function () { if (this.Type == 15 && this.vY > 12) { this.DamageTruck(); } if (this.Burnt == true) { this.Burn(); } if (this.Type < 10) { this._rotation = 0; } if (this._currentframe < 65 + this.Type * 100 && this.Type != 4 && this.Type < 10) { this.gotoAndPlay(65 + this.Type * 100); } if (this.Type == 4 && this._currentframe < 470) { this.gotoAndPlay(470); } if (this.Type >= 10 && this.Type <= 11 && this.vY > 5) { _root.S_ROCK(); } if (this.Type == 15 && this.vY > 5) { _root.S_TRUCK(); } this.BloodTimer = 0; if (this.vY <= 3) { this.vY = 0; } if (this.vY > 3) { this.Dust(); this.recordStatic = 0; this.vY = Math.ceil(this.vY / -1.4); this.vX = Math.ceil(this.vX / (1 + random(10) / 10)); this.BloodTimer = 0; if (this.Type > 20) { var v3 = _root.attachMovie('BloodSplat', 'bloodsplat' + _root.control.DepthBloodSplat, _root.control.DepthBloodSplat); v3.gotoAndStop(random(4) + 1); v3._xscale = random(40) + 60; v3._yscale = random(30) + 50; v3._x = this._x; v3._y = this._y + 5 + random(4); v3._alpha = random(30) + 45; _root.control.DepthBloodSplat += 1; } } }; v2.SideBounce = function () { this.vX = Math.ceil(this.vX / -1.5); }; v2.CheckHeight = function () { if (this._y >= _root.control.Floor) { this._y = _root.control.Floor; this.vY = 0; } }; v2.ResetAI = function () { if (this.Type < 20) { if (this.DropOffPoint == 0) { if (this.Type != 6) { this.aiTimer = random(70); } this.gotoAndPlay(random(15) + 1 + this.Type * 100); if (this.Type == 6) { this.aiTimer = 100; if (this.aiAttackTimer == 0) { this.vX = 1; } if (this.aiAttackTimer == 1) { this.vX = -1; } } } if (this.DropOffPoint > 0) { if (this.Type != 4) { this.gotoAndPlay(random(15) + 1 + this.Type * 100); } if (this.Type == 4) { this.gotoAndStop(470); this._y -= 10; } } } }; v2.Explode = function () { if (this.Type < 10) { var v3 = _root.attachMovie('EffectHit', 'hit' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._rotation = random(360); v3._x = this._x; v3._y = this._y - this.Height; v3.gotoAndPlay(20); _root.control.DepthHitEffect += 1; if (this.Type != 6) { _root.control.Humans -= 1; _root.control.HumansKilled += 1; } this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); if (this.Type == 4) { this.GenerateGib(); } if (this.Type == 6) { this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); } _root.S_SPLAT(); this.Release(); this.removeMovieClip(); } }; v2.GenerateGib = function () { var v3 = _root.attachMovie('Abductable', 'abductable' + _root.control.DepthGib, _root.control.DepthGib); v3._x = this._x; v3._y = this._y; v3._xscale = random(30) + 70; v3._yscale = v3._xscale; v3.Type = random(5) + 21; v3.aiTimer = 0; v3._visible = false; _root.control.DepthGib += 1; }; v2.GenerateBlood = function () { var v3 = _root.attachMovie('BloodDroplet', 'bloodOT' + _root.control.DepthGib, _root.control.DepthGib); v3._x = this._x; v3._y = this._y; _root.control.DepthGib += 1; }; v2.Dust = function () { if (this.Type < 20) { var v3 = _root.attachMovie('EffectSmoke', 'dust' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y + 7 - this.Height; v3.gotoAndPlay(15); _root.control.DepthHitEffect += 1; } }; v2.Detonate = function () { this.Release(); var v3 = _root.attachMovie('BiPlaneExplode', 'detonate' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation + 180; _root.S_PLANEEXPLODE(); _root.control.DepthHitEffect += 1; this.removeMovieClip(); }; v2.Release = function () { if (this.Stuck == true) { _root.ufo.StackDistance -= 1; this.Stuck = false; } if (this.Sucked == true) { this.Sucked = false; this.Fling = true; this.Stun = 10; _root.ufo.Load -= this.Load; _root.control.hud_load.updateLoad(); } }; v2.Burn = function () { var v3 = _root.attachMovie('Burnt', 'burnt' + _root.control.DepthAbductable, _root.control.DepthAbductable); v3._x = this._x; v3._y = this._y; v3.gotoAndPlay(700); if (this._xscale == 100) { v3.vX = 7; } if (this._xscale == -100) { v3.vX = -7; } _root.control.DepthAbductable += 1; this.removeMovieClip(); }; v2.DamageTruck = function () { this.HP += 10; if (this.HP == 10) { var v3 = this.attachMovie('Fire', 'fire' + _root.control.DepthAbductable, _root.control.DepthAbductable); v3._x = 20; v3._y = -24; v3._xscale = 35; v3._yscale = 35; _root.control.DepthAbductable += 1; } if (this.HP == 20) { v3 = this.attachMovie('Fire', 'fire' + _root.control.DepthAbductable, _root.control.DepthAbductable); v3._x = -30; v3._y = -30; v3._xscale = 70; v3._yscale = 35; _root.control.DepthAbductable += 1; } if (this.HP >= 30) { this.TruckExplode(); } }; v2.TruckExplode = function () { _root.control.UpdateMultiplier(); var v3 = _root.attachMovie('BiPlaneExplode', 'truck_explosion' + _root.control.TruckDestroyed, _root.control.DepthHitEffect); v3._y = this._y - 10; v3._x = this._x; _root.control.TruckDestroyed += 1; _root.control.DepthHitEffect += 1; _root.control.TruckStopped = false; this.removeMovieClip(); }; v2.BeamDistance = 0; v2.Sucked = false; v2.Fling = false; v2.Alignment = 0; v2.recordStatic = 0; v2.AnimDirection = false; v2.AnimWalking = false; v2.aiAttackRange = false; v2.aiAttackTimer = 0; v2.BloodTimer = 0; v2.GibLife = 0; v2.DropOffPoint = 0; v2.Stuck = false; v2.Stun = 0; v2.Stopped = false; v2.ParametersSet = false; v2.Burnt = false; v2.FlameCycle = 0; v2.HP = 0; ASSetPropFlags(_global.Abductable.prototype, null, 1); } #endinitclip } movieClip 2378 __Packages.Abducted { #initclip if (!_global.Abducted) { var v1 = function () { super(); }; _global.Abducted = v1; _global.Abducted extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this._rotation += this.vX * 0.3; if (this.SetAnimation == false) { if (this.Type == 0) { this.gotoAndPlay(1); } if (this.Type == 1) { this.gotoAndPlay(10); } if (this.Type == 2) { this.gotoAndPlay(20); } if (this.Type == 3) { this.gotoAndPlay(30); } if (this.Type == 4) { this.gotoAndPlay(40); } if (this.Type == 5) { this.gotoAndPlay(60); } if (this.Type == 6) { this.gotoAndPlay(70); } this.SetAnimation = true; } if (this._currentframe == 6) { this.gotoAndPlay(1); } if (this._currentframe == 14) { this.gotoAndPlay(10); } if (this._currentframe == 26) { this.gotoAndPlay(20); } if (this._currentframe == 36) { this.gotoAndPlay(30); } if (this._currentframe == 52) { this.gotoAndPlay(40); } if (this._currentframe == 66) { this.gotoAndPlay(60); } if (this._currentframe == 77) { this.gotoAndPlay(70); } this._x += this.vX * 0.1; this._y = this._y + this.vY / 10 + this.vYextra / 10; if (this.vYextra > 0) { this.vYextra -= 1; } this.vY = this._y * -1 + 300; if (this._y < 440 && this.RandomVelocity == false) { this.vX = random(60) - 30; this.RandomVelocity = true; } if (this._x < _root.control.tube_background._x + 75) { this.vX += 1.5; } if (this._x > _root.control.tube_background._x + 75) { this.vX -= 1.5; } if (this._y < _root.control.crusher_left._y + 27 && this._x < _root.control.crusher_left._x + 30 && _root.control.crusher_left._currentframe == 1) { this.vYextra = this.vY * -1.5 + random(10); this.vX *= -1; } if (this._y < _root.control.crusher_right._y + 27 && this._x > _root.control.crusher_right._x - 30 && _root.control.crusher_right._currentframe == 1) { this.vYextra = this.vY * -1.5 + random(10); this.vX *= -1; } if (this._y <= _root.control.crusher_left._y + 13 && this._x < _root.control.crusher_left._x + 50 && _root.control.crusher_left._currentframe == 2) { this._x = 612; } if (this._y <= _root.control.crusher_right._y + 13 && this._x > _root.control.crusher_right._x - 50 && _root.control.crusher_right._currentframe == 2) { this._x = 638; } if (this._y <= _root.control.crusher_left._y + 2 && _root.control.crusher_left._currentframe == 1) { _root.control.crusher_left.gotoAndPlay(2); _root.control.crusher_right.gotoAndPlay(2); } if (_root.control.crusher_left._currentframe == 3 && this._y <= _root.control.crusher_left._y + 13) { this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); if (this.Type == 4) { this.GenerateGib(); } if (this.Type == 6) { this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); this.GenerateGib(); } var v3 = _root.control.attachMovie('EffectHit', 'hit' + _root.control.DepthAbducted, _root.control.DepthAbducted); v3._x = 625; v3._y = this._y; v3._rotation = random(360); v3._yscale = random(50) + 110; v3.gotoAndPlay(20); v3.InTube = true; _root.control.DepthAbducted += 1; this.removeMovieClip(); } if (_root.control.crusher_left._currentframe == 3 && this._y > _root.control.crusher_left._y + 13 && this._y < _root.control.crusher_left._y + 23) { this.vYextra = this.vY * -3 + random(20); } if (_root.control.ConvertInstant == true) { _root.control.GibLeftOvers += 3; if (this.Type == 4) { _root.control.GibLeftOvers += 1; } this.removeMovieClip(); } }; v2.GenerateGib = function () { var v3 = _root.control.attachMovie('Gib', 'gib' + _root.control.DepthAbducted, _root.control.DepthAbducted); v3._x = 625; v3._y = this._y; v3.Direction = random(2); v3._xscale = random(60) + 40; v3._yscale = this._xscale; v3.gotoAndStop(random(5) + 1); _root.control.DepthAbducted += 1; }; v2.vX = 0; v2.vY = -40; v2.vYextra = 0; v2.RandomVelocity = false; v2.SetAnimation = false; ASSetPropFlags(_global.Abducted.prototype, null, 1); } #endinitclip } movieClip 2379 __Packages.BackgroundAnim { #initclip if (!_global.BackgroundAnim) { var v1 = function () { super(); }; _global.BackgroundAnim = v1; _global.BackgroundAnim extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.life = random(50); if (this.ID == 1) { this.gotoAndStop(1); this._x = 218; this._y = 192; } if (this.ID == 2) { this.gotoAndStop(6); this._x = 115; this._y = 176; } this._visible = false; }; v2.onEnterFrame = function () { if (this.On == true) { this.life += 1; } if (this.On == false && this.life > 0) { this._visible = false; this.life = 0; } if (this.life == 80) { this._visible = true; this.play(); } if (this._currentframe == 4) { this.gotoAndStop(1); this._visible = false; this.life = random(50); } if (this._currentframe == 9) { this.gotoAndStop(6); this._visible = false; this.life = random(50); } }; v2.On = true; ASSetPropFlags(_global.BackgroundAnim.prototype, null, 1); } #endinitclip } movieClip 2380 __Packages.BackupCover { #initclip if (!_global.BackupCover) { var v1 = function () { super(); }; _global.BackupCover = v1; _global.BackupCover extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this.life += 1; if (this.life == 2) { this.removeMovieClip(); } }; v2.life = 0; ASSetPropFlags(_global.BackupCover.prototype, null, 1); } #endinitclip } movieClip 2381 __Packages.BeamBit { #initclip if (!_global.BeamBit) { var v1 = function () { super(); }; _global.BeamBit = v1; _global.BeamBit extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(_root.global.UpgradeSuction + 1); }; v2.onEnterFrame = function () { this._x = _root.ufo._x + (_root.tractor_beam._yscale * 6 / 100) * this.Distance * Math.sin(_root.tractor_beam.BeamAngle); this._y = _root.ufo._y + 5 + (_root.tractor_beam._yscale * 6 / 100) * this.Distance * Math.cos(_root.tractor_beam.BeamAngle); this.Distance -= _root.global.UpgradeSuction / 2 + 1.5; this._xscale = this.Distance / 2 + 50; this._rotation = _root.tractor_beam._rotation; this._alpha = _root.tractor_beam.Transparency - this.Distance; if (this.Distance <= 0) { this.Distance = 100; } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; ASSetPropFlags(_global.BeamBit.prototype, null, 1); } #endinitclip } movieClip 2382 __Packages.BeamEnd { #initclip if (!_global.BeamEnd) { var v1 = function () { super(); }; _global.BeamEnd = v1; _global.BeamEnd extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._xscale = 150; this._yscale = 95; this.gotoAndStop(_root.global.UpgradeSuction + 1); }; v2.onEnterFrame = function () { this._x = _root.ufo._x + this.BeamDistance * Math.sin(_root.tractor_beam.BeamAngle); this._y = _root.ufo._y + 5 + this.BeamDistance * Math.cos(_root.tractor_beam.BeamAngle); this.dx = this._x - _root.ufo._x; this.dy = this._y - _root.ufo._y + 5; if (this._y != _root.control.Floor) { this.dy = _root.control.Floor - _root.ufo._y + 5; this.BeamDistance = Math.sqrt(this.dx * this.dx + this.dy * this.dy); } if (this._alpha != _root.tractor_beam.Transparency) { this._alpha = _root.tractor_beam.Transparency; } }; v2.BeamDistance = 100; v2.dx = 0; v2.dy = 0; ASSetPropFlags(_global.BeamEnd.prototype, null, 1); } #endinitclip } movieClip 2383 __Packages.BiPlane { #initclip if (!_global.BiPlane) { var v1 = function () { super(); }; _global.BiPlane = v1; _global.BiPlane extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._x = -50; this._y = random(130) + 80; this.stop(); }; v2.onEnterFrame = function () { if (this._currentframe == 15) { this.gotoAndPlay(1); } if (this._currentframe == 24) { this.gotoAndPlay(20); } if (this.timer > 0) { this.timer -= 1; } if (this.timer == 0 && this.side == 0) { if (_root.global.Stage < 4) { this.vX = -6; } if (_root.global.Stage >= 4) { this.vX = -10; this.gotoAndPlay(20); } this._x = _root.control.ScrollFinal * -1 + 225 + 400; this.side = 10; this.play(); } if (this.timer == 0 && this.side == 1) { if (_root.global.Stage < 4) { this.vX = 6; } if (_root.global.Stage >= 4) { this.vX = 10; this.gotoAndPlay(20); } this._x = _root.control.ScrollFinal * -1 + 225 - 400; this._xscale *= -1; this.side = 10; this.play(); } if (this._x > _root.control.LevelWidth + 50 && this.vX > 0) { this.removeMovieClip(); } if (this._x < -50 && this.vX < 0) { this.removeMovieClip(); } this._x += this.vX; this._y += this.vY / 5; if (this._x > _root.ufo._x - 30 && this._x < _root.ufo._x + 30 && this._y > _root.ufo._y - 27 && this._y < _root.ufo._y + 27 && this.Hit == false) { this.Smash(); _root.ufo.Damage(); } if (this.hitTest(_root.rock1) && this.Hit == false) { this.Smash(); if (_root.rock1.Type == 11) { _root.rock1.Detonate(); } _root.rock1.Release(); _root.rock2.Release(); _root.rock3.Release(); _root.rock4.Release(); _root.rock5.Release(); _root.truck.Release(); } if (this.hitTest(_root.rock2) && this.Hit == false) { this.Smash(); if (_root.rock2.Type == 11) { _root.rock2.Detonate(); } _root.rock1.Release(); _root.rock2.Release(); _root.rock3.Release(); _root.rock4.Release(); _root.rock5.Release(); _root.truck.Release(); } if (this.hitTest(_root.rock3) && this.Hit == false) { this.Smash(); if (_root.rock3.Type == 11) { _root.rock3.Detonate(); } _root.rock1.Release(); _root.rock2.Release(); _root.rock3.Release(); _root.rock4.Release(); _root.rock5.Release(); _root.truck.Release(); } if (this.hitTest(_root.rock4) && this.Hit == false) { this.Smash(); if (_root.rock4.Type == 11) { _root.rock4.Detonate(); } _root.rock1.Release(); _root.rock2.Release(); _root.rock3.Release(); _root.rock4.Release(); _root.rock5.Release(); _root.truck.Release(); } if (this.hitTest(_root.rock5) && this.Hit == false) { this.Smash(); if (_root.rock5.Type == 11) { _root.rock5.Detonate(); } _root.rock1.Release(); _root.rock2.Release(); _root.rock3.Release(); _root.rock4.Release(); _root.rock5.Release(); _root.truck.Release(); } if (this._x > _root.truck._x - 54 && this._x < _root.truck._x + 54 && this._y > _root.truck._y - 40 && this._y < _root.truck._y + 10 && this.Hit == false) { this.Smash(); _root.rock1.Release(); _root.rock2.Release(); _root.rock3.Release(); _root.rock4.Release(); _root.rock5.Release(); _root.truck.Release(); _root.truck.DamageTruck(); } if (this.smokeTimer == 1) { var v3 = _root.attachMovie('EffectSmoke', 'smoke' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y; v3._xscale = random(50) + 125; v3._yscale = v3._xscale; _root.control.DepthHitEffect += 1; } if (this.smokeTimer > 0) { this.smokeTimer += 1; } if (this.smokeTimer == 4) { this.smokeTimer = 1; } if (this.Hit == true && this.vY < 100) { this.vY += 2; } if (this.Hit == true && this.vX < 0) { this._rotation = this.vY * -1; } if (this.Hit == true && this.vX > 0) { this._rotation = this.vY; } if (this._y > _root.control.Floor) { this.Destroy(); } for (var v4 in _root.control.Obstacles) { if (this.Hit == true && this._y > _root.control.Obstacles[v4]._y - (_root.control.Obstacles[v4].Height + 20) && this._x < _root.control.Obstacles[v4]._x + _root.control.Obstacles[v4].Width && this._x > _root.control.Obstacles[v4]._x - _root.control.Obstacles[v4].Width) { this.Destroy(); _root.control.Obstacles[v4].Damage(); } } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; v2.Smash = function () { _root.control.UpdateMultiplier(); _root.control.UpdateMultiplier(); _root.control.uPlanesDestroyed += 1; _root.S_PLANEFALL(); this.Hit = true; this.vY = -20; this.smokeTimer = 1; if (_root.global.Stage == 3 && _root.global.s3Objectives[3] == 0) { _root.control.UpdatePlanesDestroyed(); } }; v2.Destroy = function () { var v3 = _root.attachMovie('BiPlaneExplode', 'biplane_explosion', _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y; _root.control.DepthHitEffect += 1; this.removeMovieClip(); }; v2.timer = 40; v2.vX = 0; v2.vY = 0; v2.Hit = false; v2.smokeTimer = 0; ASSetPropFlags(_global.BiPlane.prototype, null, 1); } #endinitclip } movieClip 2384 __Packages.BiPlaneExplode { #initclip if (!_global.BiPlaneExplode) { var v1 = function () { super(); }; _global.BiPlaneExplode = v1; _global.BiPlaneExplode extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this._currentframe == this._totalframes) { this.removeMovieClip(); } if (this._currentframe == 2) { _root.S_PLANEEXPLODE(); } }; ASSetPropFlags(_global.BiPlaneExplode.prototype, null, 1); } #endinitclip } movieClip 2385 __Packages.BloodDroplet { #initclip if (!_global.BloodDroplet) { var v1 = function () { super(); }; _global.BloodDroplet = v1; _global.BloodDroplet extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._xscale = random(40) + 70; this._yscale = this._xscale; this._rotation = random(360); }; v2.onEnterFrame = function () { if (this._currentframe == this._totalframes) { this.removeMovieClip(); } }; ASSetPropFlags(_global.BloodDroplet.prototype, null, 1); } #endinitclip } movieClip 2386 __Packages.Bullet { #initclip if (!_global.Bullet) { var v1 = function () { super(); }; _global.Bullet = v1; _global.Bullet extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this.ParametersSet == false) { this.rads = this._rotation * 0.0174532925199433; _root.control.DepthProjectile += 1; this.ParametersSet = true; } this.speedx = 8 * Math.sin(this.rads); this.speedy = -8 * Math.cos(this.rads); this._x += this.speedx; this._y += this.speedy; if (this._y < -5) { this.removeMovieClip(); } if (this._currentframe == this._totalframes) { this.stop(); } if (_root.truck.Sucked == true or _root.truck.Fling == true) { if (this._x > _root.truck._x - 35 && this._x < _root.truck._x + 35 && this._y > _root.truck._y - 30 && this._y < _root.truck._y + 2) { this.Destroy(); } } if (this._y < _root.ufo._y + 18 && this._y > _root.ufo._y - 18 && this._x < _root.ufo._x + 30 && this._x > _root.ufo._x - 30 && _root.control.Dead == false) { var v3 = _root.attachMovie('EffectHit', 'hit' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._rotation = this._rotation; v3._x = this._x; v3._y = this._y; _root.control.DepthHitEffect += 1; _root.ufo.Damage(); this.Destroy(); _root.S_HITSHIELD(); } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; v2.Destroy = function () { var v3 = _root.attachMovie('EffectSmoke', 'shot_death' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._yscale = 45; v3._xscale = 45; v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation; v3.gotoAndPlay(31); _root.control.DepthHitEffect += 1; this.removeMovieClip(); }; v2.ParametersSet = false; ASSetPropFlags(_global.Bullet.prototype, null, 1); } #endinitclip } movieClip 2387 __Packages.Control { #initclip if (!_global.Control) { var v1 = function () { super(); }; _global.Control = v1; _global.Control extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (_root.global.Stage > 0 && _root.global.Stage <= 4) { _root.MUSIC2(); } if (_root.title_control.GameStartTutorial == true) { this.GameStartTutorial = true; } _root.title_control.removeMovieClip(); this.Obstacles = []; this.ObstacleBarriers = []; this.Claws = []; var v3 = 0; while (v3 < 14) { this.GenerateFadeIn(); ++v3; } _root.itemupgrade1.removeMovieClip(); _root.itemupgrade2.removeMovieClip(); _root.itemupgrade3.removeMovieClip(); _root.itemupgrade4.removeMovieClip(); _root.itemupgrade5.removeMovieClip(); if (_root.global.Stage == 0) { this.HumanTarget = 18; this.HumanStock = 999999999; this.Objects = 0; this.TimeSeconds = 999; this.TimerTruck2 = 50; this.LevelWidth = 850; this.AIAggression = 999999999; this.DepthTruck = 350000; _root.global.Reset(); this.TruckStopped = true; this.HouseHP = 50; } if (_root.global.Stage == 1) { this.HumanTarget = 17; this.HumanStock = 50; this.Objects = 1; this.TimeSeconds = 60; this.TimerTruck2 = 80; this.LevelWidth = 1150; this.AIAggression = 103; this.HouseHP = 50; } if (_root.global.Stage == 2) { this.HumanTarget = 21; this.HumanStock = 105; this.Objects = 1; this.TimeSeconds = 90; this.TimerPlane2 = 250; this.TimerTruck2 = 65; this.LevelWidth = 1150; this.AIAggression = 90; this.HouseHP = 60; } if (_root.global.Stage == 3) { this.HumanTarget = 25; this.HumanStock = 195; this.Objects = 2; this.TimeSeconds = 120; this.TimerPlane2 = 175; this.TimerTruck2 = 55; this.LevelWidth = 1150; this.AIAggression = 83; this.HouseHP = 70; } if (_root.global.Stage == 4) { this.HumanTarget = 26; this.HumanStock = 220; this.Objects = 2; this.TimeSeconds = 150; this.TimerPlane2 = 160; this.TimerTruck2 = 45; this.LevelWidth = 1150; this.AIAggression = 94; this.HouseHP = 80; } if (_root.global.Stage == 5) { _root.MUSIC3(); this.HumanTarget = 11; this.HumanStock = 99999999; this.Objects = 0; this.TimeSeconds = 999; this.TimerPlane2 = 145; this.TimerTruck2 = 55; this.LevelWidth = 850; this.AIAggression = 55; } if (_root.global.Stage != 5) { this.TimerElvis = Math.round(this.TimeSeconds / 3 + random(this.TimeSeconds / 3)); } this.HumanTotal = this.HumanStock; this.attachMovie('InterfaceBar', 'interface_bar', 290000); var v8 = this.attachMovie('HUDShield', 'hud_shield_static', 300000); v8._x = 56; v8._y = 30; v8.gotoAndStop(2); var v9 = this.attachMovie('HUDShield', 'hud_shield', 300001); v9._x = 56; v9._y = 30; v9.gotoAndStop(1); var v17 = this.attachMovie('TubeBackground', 'tube_background', 500000); v17._x = 550; var v11 = this.attachMovie('TubeCog', 'cog_A', 501000); v11._x = 688; v11._y = 200; v11.gotoAndPlay((_root.global.UpgradeGibPurifier + 1) * 10 - 9); var v7 = this.attachMovie('TubeCog', 'cog_B', 502000); v7._x = 562; v7._y = 200; v7._xscale *= -1; v7.gotoAndPlay((_root.global.UpgradeGibPurifier + 1) * 10 - 6); var v5 = this.attachMovie('TubeCog', 'cog_C', 503000); v5._x = 662; v5._y = 124; v5._rotation = -45; v5._xscale = 75; v5._yscale = 75; v5.gotoAndPlay((_root.global.UpgradeGibPurifier + 1) * 10 - 9); var v4 = this.attachMovie('TubeCog', 'cog_D', 504000); v4._x = 587; v4._y = 124; v4._rotation = 225; v4._xscale = 75; v4._yscale = -75; v4.gotoAndPlay((_root.global.UpgradeGibPurifier + 1) * 10 - 6); var v15 = this.attachMovie('TubeCrusher', 'crusher_right', 505000); v15._x = 688; v15._y = 304; var v12 = this.attachMovie('TubeCrusher', 'crusher_left', 506000); v12._x = 562; v12._y = 304; v12._xscale *= -1; var v10 = _root.attachMovie('UFO', 'ufo', 500); v10._x = Math.round(this.LevelWidth * 0.5); v10._y = 25; v10.Control = false; _root.attachMovie('TractorBeam', 'tractor_beam', 400); _root.attachMovie('BeamEnd', 'beam_end', 600); _root.attachMovie('UFOBeamBase', 'ufo_beam_base', 115450); _root.attachMovie('UFOBody', 'ufo_body', 115500); _root.attachMovie('UFOLight', 'ufo_light', 115550); _root.attachMovie('UFOShield', 'ufo_shield', 115600); var v16 = _root.attachMovie('PinPoint', 'pinpoint', 295); v16._y = this.Floor + 8; v16._x = this.LevelWidth * 0.5; v3 = 0; while (v3 < 10) { this.GenerateBeamBit(); ++v3; } v3 = 0; while (v3 < this.Objects) { this.GenerateRock(); ++v3; } this.GenerateCloud(); this.GenerateCloud(); this.GenerateCloud(); this.GenerateCloud(); this.GenerateCloud(); v3 = 0; while (v3 < Math.ceil(this.LevelWidth / 200)) { this.GenerateRoad(); ++v3; } v3 = 0; while (v3 < Math.ceil(this.LevelWidth / 500)) { this.GenerateMountains(); ++v3; } if (_root.global.Stage != 5 && _root.global.Stage > 0) { this.GenerateObstacle(); this.GenerateObstacle(); } if (_root.global.Stage == 0) { this.GenerateObstacle(); } this.GenerateClaw(); v3 = 0; while (v3 < Math.round(this.HumanTarget / 2)) { this.GenerateAbductable(); ++v3; } var v6 = _root.attachMovie('Sky', 'sky', 5); v6._y = 50; v6._width = this.LevelWidth; if (_root.global.Stage == 1 or _root.global.Stage >= 4) { v6.gotoAndStop(2); } if (_root.global.Stage == 2) { v6.gotoAndStop(3); } if (_root.global.Stage == 3 or _root.global.Stage == 0) { v6.gotoAndStop(1); } var v13 = this.attachMovie('HUDLoad', 'hud_load', 900100); v13._x = 190.5; v13._y = 29.5; this.GenerateText(); this.FillAmount = _root.global.UpgradeGibPurifier * -1 + 11; if (_root.global.Stage == 5) { this.GenerateGiantRobot(); this.GenerateRobotFist(); } if (_root.global.Stage > 1 && _root.global.Stage < 5) { var v14 = _root.attachMovie('TireFire', 'tirefire', 265); v14._x = this.LevelWidth * 0.5 - 100 + random(200); v14._y = this.Floor - 12; } }; v2.onEnterFrame = function () { if (this.TimerIntro > 0) { this.TimerIntro += 1; } if (this.TimerIntro == 7 && _root.global.Stage == 0) { var v7 = this.attachMovie('Text', 'tutorial_text', 965800); v7.gotoAndStop(15); v7._x = 275; v7._y = 235; var v5 = this.createTextField('skip_tutorial', 965900, 0, 440, 550, 40); v5.selectable = false; v5.text = 'PRESS \'ESC\' TO SKIP THIS TUTORIAL.'; v5.embedFonts = true; v5.setTextFormat(_root.selectionB_format); } if (this.TimerIntro == 25) { _root.ufo.vY = 8; _root.S_PLAYERENTER(); } if (this.TimerIntro == 55) { v7 = this.attachMovie('Text', 'txt_go', 1500000); v7._x = 275; v7._y = 230; v7.gotoAndStop(4); _root.V_ALIEN(); } if (this.TimerIntro == 60) { _root.ufo.Control = true; this.TimerIntro = 0; this.AIFunction = true; } if (this.TimerIntro == 0 && this.TubeFader == 0 && this.End == false) { this.TimerPlane += 1; if (_root.global.Stage > 0 && _root.global.Stage < 5) { this.TimeIncrement += 1; } } if (this.TimeIncrement == 25 && this.TimeSeconds > 0) { this.TimeIncrement = 0; this.TimeSeconds -= 1; _root.control.counter_time.text = this.TimeSeconds; _root.control.counter_time.setTextFormat(_root.txt_format); } if (this.TimerPlane == this.TimerPlane2) { this.TimerPlane = 0; var v8 = _root.attachMovie('BiPlane', 'biplane' + this.DepthTruck, this.DepthTruck); v8.side = random(2); var v3 = this.attachMovie('Message', 'warning' + this.DepthTruck + 1, this.DepthTruck + 1); v3._y = 180; v3.ID = 2; if (v8.side == 0) { v3.gotoAndPlay(2); v3._x = 520; } if (v8.side == 1) { v3.gotoAndPlay(10); v3._x = 30; } this.DepthTruck += 2; } this.ScrollX = _root.ufo._x * -1 + 275; if (this.ScrollX > 0) { this.ScrollX = 0; } if (this.ScrollX < (this.LevelWidth - 550) * -1) { this.ScrollX = (this.LevelWidth - 550) * -1; } this.ScrollFinal += (this.ScrollX - this.ScrollFinal) / 12; this._x = this.ScrollFinal * -1; _level0._x = this.ScrollFinal; if (this.Humans <= this.HumanTarget - 5 && this.TruckType < 5) { this.TimerTruck += 1; } if (this.Humans <= this.HumanTarget - 9 && this.TruckType == 5) { this.TimerTruck += 1; } if (this.TimerTruck == this.TimerTruck2 && this.HumanStock > 0) { var v4 = _root.attachMovie('Truck', 'vehicle' + this.DepthTruck, this.DepthTruck); v4.Direction = random(2); if (this.TruckType < 5) { if (_root.global.Stage <= 3) { v4.ID = 1; } if (_root.global.Stage >= 4) { v4.ID = 3; v4.gotoAndPlay(30); } } if (this.TruckType == 5) { v4.ID = 2; v4.gotoAndPlay(11); this.TruckType = 0; _root.V_AMISH(); } this.DepthTruck += 1; this.TimerTruck = 0; if (_root.global.Stage == 3) { this.TruckType += 1; } } if (this.TruckDestroyed == 3) { this.TruckDestroyed = 1; } if (this.TimeSeconds == this.TimerElvis) { this.TimerElvis = 1500; var v6 = _root.attachMovie('Abductable', 'elvis', this.DepthAbductable); v6._y = this.Floor; v6.Type = 6; v6.aiAttackTimer = random(2); this.DepthAbductable += 1; } if (this.TimerElvis >= 2000) { this.TimerElvis += 1; } if (this.TimerElvis == 2100) { this.TimerElvis = null; _root.control.elvis_txt.removeTextField(); _root.control.elvis_txt_shadow.removeTextField(); } if (this.TubeFader == 1) { this.GenerateTubeFade(); this.GenerateTubeFade(); } if (this.TubeFader == 7) { this.GenerateTubeFade(); this.GenerateTubeFade(); } if (this.TubeFader == 13) { this.GenerateTubeFade(); this.GenerateTubeFade(); } if (this.TubeFader == 15) { this.TubeFader = 0; } if (this.TubeFader > 0) { this.TubeFader += 1; } if (this.TubeFader > 110 && this.TubeFader < 121) { this.GenerateStageFade(); } if (this.TubeFader >= 115 && this.TubeFader < 148) { _root.mus2.setVolume(this.TubeFader * -3 + 445); } if (this.TubeFader == 148) { _root.mus2.stop('MUSIC1'); _root.mus2.stop('MUSIC2'); _root.mus3.stop('MUSIC3'); _root.mus2.setVolume(100); } if (this.TubeFader == 155) { var v9 = _root.attachMovie('BackupCover', 'cover', 9999999); v9._width = this.LevelWidth + 150; } if (this.TubeFader == 156) { this.RemoveObjects(); _root.global.SetScene = false; _root.control.removeMovieClip(); } if (this.TimeSeconds == 0 && this.End == false or this.HumansKilled == this.HumanTotal && this.End == false or _root.global.Stage == 0 && Key.isDown(27) && this.End == false && this.TimerIntro == 0) { this.FinishStage(); } if (this.End == true && _root.ufo.vY > -10) { _root.ufo.vY -= 0.5; } if (_root.ufo.HP > 0 && this.uRockKills >= 10 && _root.global.Stage == 1 && _root.global.s1Objectives[1] == 0) { _root.global.s1Objectives[1] = 1; _root.global.saveGame(); } if (_root.ufo.HP > 0 && this.uTruckKills >= 40 && _root.global.Stage == 3 && _root.global.s3Objectives[2] == 0) { _root.global.s3Objectives[2] = 1; _root.global.saveGame(); } if (this.Score == 0 && _root.global.Money >= 3000 && _root.global.s1Objectives[2] == 0) { _root.global.s1Objectives[2] = 1; _root.global.saveGame(); } if (_root.ufo.HP > 0 && this.uPlanesDestroyed >= 10 && _root.global.Stage == 3 && _root.global.s3Objectives[3] == 0) { _root.global.s3Objectives[3] = 1; _root.global.saveGame(); } if (_root.ufo.HP > 0 && this.uFemalesAbducted >= 6 && _root.global.Stage == 2 && _root.global.s2Objectives[2] == 0) { _root.global.s2Objectives[2] = 1; _root.global.saveGame(); } if (_root.ufo.HP > 0 && this.uBurntAbducted >= 50 && _root.global.Stage == 4 && _root.global.s4Objectives[1] == 0) { _root.global.s4Objectives[1] = 1; _root.global.saveGame(); } if (_root.ufo.HP > 0 && this.Multiplier >= 50 && _root.global.Stage == 2 && _root.global.s2Objectives[3] == 0) { _root.global.s2Objectives[3] = 1; _root.global.saveGame(); } if (_root.ufo.HP > 0 && this.Multiplier >= 100 && _root.global.Stage == 4 && _root.global.s4Objectives[2] == 0) { _root.global.s4Objectives[2] = 1; _root.global.saveGame(); } if (this.MultiplierSub >= 5) { this.UpdateMultiplier(); this.MultiplierSub = 0; } if (this.MultiplierSize > 43) { this.MultiplierSize -= 2; _root.multiplier_format.size = this.MultiplierSize; this.UpdateMultiplier2(); _root.control.multiplier_num._x += 1; _root.control.multiplier_num._y += 1; _root.control.multiplier_num_shadow._x += 1; _root.control.multiplier_num_shadow._y += 1; } if (this.DepthProjectile >= 130000) { this.DepthProjectile = 120000; } if (this.DepthHitEffect >= 350000) { this.DepthHitEffect = 250000; } if (this.DepthAbductable >= 119000) { this.DepthAbductable = 100000; } if (this.DepthBloodSplat >= 6000) { this.DepthBloodSplat = 1000; } if (this.DepthGib >= 20000) { this.DepthGib = 10000; } if (_root.global.Stage == 0) { if (this.textAlpha < 50) { this.textAlpha += 1; } if (this.textAlpha == 50) { this.textAlpha = 0; } if (this.textAlpha < 25) { _root.control.skip_tutorial._alpha = this.textAlpha + 50; } if (this.textAlpha >= 25) { _root.control.skip_tutorial._alpha = this.textAlpha * -1 + 100; } if (this.TimerIntro == 57) { this.NextMessage(); } _root.bubble._x = this.ScrollFinal * -1 + _root.bubble.PosX; _root.comment._x = _root.bubble._x + 10; _root.comment._alpha = this.commentAlpha; _root.bubble._alpha = this.commentAlpha; if (this.TTimer2 >= 100) { this.Success(); this.TTimer2 = 0; } if (this.TSuccess > 0) { this.TSuccess -= 1; if (this.commentAlpha > 0) { this.commentAlpha -= 10; } } if (this.TSuccess == 0) { this.NextMessage(); } if (this.TSuccess == -1) { if (_root.ufo.vX != 0 && _root.ufo.vY == 0 or _root.ufo.vY != 0 && _root.ufo.vX == 0 or _root.ufo.vX != 0 && _root.ufo.vY != 0) { if (this.TTimer == 1 && this.TimerIntro == 0) { this.TTimer2 += 1.4; } } if (this.TTimer == 2 && _root.tractor_beam.BeamOn == true) { this.TTimer2 += 1.4; } if (this.TTimer == 4 or this.TTimer == 6 or this.TTimer >= 10 && this.TTimer <= 14) { this.TTimer2 += 0.6; } if (this.TTimer == 8) { this.TTimer2 += 0.65; } } if (this.FadeCounter > 0) { ++this.FadeCounter; } if (this.FadeCounter == 30) { this.FadeOut(); } } }; v2.GenerateAbductable = function () { var v3 = _root.attachMovie('Abductable', 'abductable' + this.DepthAbductable, this.DepthAbductable); v3._x = 25 + random(this.LevelWidth - 25); v3._y = this.Floor; v3.Random = random(100); this.HumanStock -= 1; this.Humans += 1; this.DepthAbductable += 1; }; v2.GenerateRock = function () { var v3 = _root.attachMovie('Abductable', 'rock' + (this.DepthTruck - 399999), this.DepthTruck); v3._x = 25 + random(this.LevelWidth - 25); v3._y = this.Floor; v3.Type = 10; this.DepthTruck += 1; }; v2.GenerateCloud = function () { var v3 = _root.attachMovie('Cloud', 'cloud' + this.DepthCloud, this.DepthCloud); v3.positionX = (this.DepthCloud - 30) * 164.2857142857143; v3._yscale = 60 + random(30); v3._xscale = this._yscale - (this._yscale / 100) * 15 + (this._yscale / 100) * random(30); v3.ID = this.DepthCloud - 30; this.DepthCloud += 1; if (_root.global.Stage == 1 or _root.global.Stage >= 4) { v3.gotoAndStop(random(3) + 4); } if (_root.global.Stage == 2) { v3.gotoAndStop(random(3) + 7); } if (_root.global.Stage == 3 or _root.global.Stage == 0) { v3.gotoAndStop(random(3) + 1); } }; v2.GenerateBeamBit = function () { this.DepthBeamBit += 1; var v3 = _root.attachMovie('BeamBit', 'beambit' + this.DepthBeamBit, this.DepthBeamBit); v3.Distance = (this.DepthBeamBit - 400) * 10; }; v2.GenerateObstacle = function () { this.DepthObstacle += 1; var v3 = _root.attachMovie('Obstacle', 'obstacle' + this.DepthObstacle, this.DepthObstacle); v3._x = (this.DepthObstacle - 200) * (Math.round(this.LevelWidth) / 5) * 2 - 100; v3._y = this.Floor - 17; v3.Type = random(3); v3.ID = this.DepthObstacle; this.Obstacles.push(v3); }; v2.GenerateRoad = function () { this.DepthRoad += 1; var v3 = _root.attachMovie('Road', 'road' + this.DepthRoad, this.DepthRoad); v3._x = (this.DepthRoad - 50) * 200 - 200; v3._y = 395; v3.stop(); if (_root.global.Stage == 1) { v3.gotoAndStop(2); } if (_root.global.Stage == 2) { v3.gotoAndStop(3); } if (_root.global.Stage == 3 or _root.global.Stage == 0) { v3.gotoAndStop(1); } if (_root.global.Stage >= 4) { v3.gotoAndStop(4); } }; v2.GenerateMountains = function () { this.DepthMountain += 1; var v3 = _root.attachMovie('Mountain', 'mountain' + this.DepthMountain, this.DepthMountain); v3._x = (this.DepthMountain - 40) * 480 - 480; v3._y = 395; v3.ID = this.DepthMountain - 40; v3.stop(); if (_root.global.Stage == 1) { v3.gotoAndStop(2); } if (_root.global.Stage == 2) { v3.gotoAndStop(3); } if (_root.global.Stage == 3 or _root.global.Stage == 0) { v3.gotoAndStop(1); } if (_root.global.Stage >= 4) { v3.gotoAndStop(4); } }; v2.GenerateClaw = function () { var v2 = this.attachMovie('TubeClaw', 'claw' + this.DepthClaw, this.DepthClaw); v2._x = 740; v2._y = -25; this.Claws.push(v2); this.DepthClaw += 1; }; v2.EndAll = function () { _root.ufo_body.RotationTarget = 0; _root.tractor_beam.BeamCounter = 0; _root.tractor_beam.RotationTarget = 0; if (_root.global.Stage != 0) { this.attachMovie('FullCover', 'full_cover', 250000); } }; v2.ConvertGibs = function () { this.Score += Math.floor(this.GibLeftOvers / this.FillAmount); _root.control.counter_score.text = this.Score; _root.control.counter_score.setTextFormat(_root.score_format); }; v2.UpdateMoney = function () { _root.control.txt_money.text = _root.global.Money + '$'; _root.control.txt_money.setTextFormat(_root.txtMedium_format); }; v2.UpdateScore = function () { _root.control.counter_score.text = _root.control.Score; _root.control.counter_score.setTextFormat(_root.score_format); }; v2.RemoveObjects = function () { _root.control.interface_bar.removeMovieClip(); _root.control.hud_shield.removeMovieClip(); _root.control.hud_shield_static.removeMovieClip(); _root.control.hud_load.removeMovieClip(); _root.control.tube_background.removeMovieClip(); _root.control.cog_A.removeMovieClip(); _root.control.cog_B.removeMovieClip(); _root.control.cog_C.removeMovieClip(); _root.control.cog_D.removeMovieClip(); _root.control.crusher_left.removeMovieClip(); _root.control.crusher_right.removeMovieClip(); _root.ufo.removeMovieClip(); _root.ufo_light.removeMovieClip(); _root.ufo_shield.removeMovieClip(); _root.ufo_beam_base.removeMovieClip(); _root.ufo_body.removeMovieClip(); _root.tractor_beam.removeMovieClip(); _root.beam_end.removeMovieClip(); _root.sky.removeMovieClip(); _root.control.counter_score.removeMovieClip(); _root.control.counter_time.removeMovieClip(); _root.tirefire.removeMovieClip(); _root.pinpoint.removeMovieClip(); }; v2.GenerateFadeIn = function () { this.DepthFader += 1; var v2 = this.attachMovie('Fader', 'fade_intro' + this.DepthFader, this.DepthFader + 1000000); v2._x = (this.DepthFader - 1000001) * 50 + 25; v2._y = 235; v2.vY = 1; v2.gotoAndStop(11); v2.Life = random(20) + 30; v2.ID = 0; var v3 = this.attachMovie('Fader', 'fade_intro' + this.DepthFader + 30, this.DepthFader + 1000030); v3._x = (this.DepthFader - 1000001) * 50 + 25; v3.vY = -1; v3.gotoAndStop(11); v3.Life = random(20) + 30; v3.ID = 0; }; v2.GenerateTubeFade = function () { this.DepthFader += 1; var v2 = this.attachMovie('Fader', 'fader_tube' + this.DepthFader, this.DepthFader); v2._alpha = 0; v2.ID = this.DepthFader - 1000000; }; v2.GenerateStageFade = function () { this.DepthFader += 1; var v2 = this.attachMovie('Fader', 'stage_fader' + this.DepthFader, this.DepthFader); v2.ID = this.DepthFader - 5000000; v2.gotoAndStop(11); v2._rotation = 270; v2._yscale = 250; v2._xscale = 25; v2.vY = -32; v2._y = (this.DepthFader - 5000100) * 50 + 470; }; v2.GenerateChoiceMenu = function () { _root.global.SelectionBoxNumber = 72; var v4 = 0; while (v4 < 2) { _root.global.SelectionBoxNumber += 1; var v3 = this.attachMovie('MenuSelectionBox', 'choicebox' + (_root.global.SelectionBoxNumber - 72), _root.global.SelectionBoxNumber + 1000000); v3.gotoAndStop(6); v3._x = 275; v3._y = 265 + (_root.global.SelectionBoxNumber - 72) * 55; v3.ID = _root.global.SelectionBoxNumber - 60; _root.global.SelectedMenu = false; ++v4; } }; v2.GenerateText = function () { var v3 = this.createTextField('counter_time', 900000, 277, 11, 70, 30); v3.selectable = false; v3.text = this.TimeSeconds; v3.embedFonts = true; v3.setTextFormat(_root.txt_format); var v4 = this.createTextField('counter_score', 900150, 480, 16, 70, 30); v4.selectable = false; v4.text = '0'; v4.embedFonts = true; v4.setTextFormat(_root.score_format); var v6 = this.createTextField('multiplier_num', 1900255, 435, 64, 125, 50); v6.selectable = false; v6.embedFonts = true; var v5 = this.createTextField('multiplier_num_shadow', 1900254, 439, 68, 125, 50); v5.selectable = false; v5.embedFonts = true; v5._alpha = 60; this.UpdateMultiplier(); this.UpdateMultiplier2(); }; v2.UpdateMultiplier = function () { if (this.Multiplier < 1000 && this.End == false) { this.Multiplier += 1; this.MultiplierSize = 53; _root.control.multiplier_num._x = 415; _root.control.multiplier_num._y = 66; _root.control.multiplier_num_shadow._x = 419; _root.control.multiplier_num_shadow._y = 70; } if (this.Multiplier > _root.global.TopMultiplier) { _root.global.TopMultiplier = this.Multiplier; } }; v2.UpdateMultiplier2 = function () { _root.multiplier_format.color = 7331839; _root.control.multiplier_num.text = 'x' + this.Multiplier * 0.1; _root.control.multiplier_num.setTextFormat(_root.multiplier_format); _root.multiplier_format.color = 0; _root.control.multiplier_num_shadow.text = 'x' + this.Multiplier * 0.1; _root.control.multiplier_num_shadow.setTextFormat(_root.multiplier_format); }; v2.GenerateGiantRobot = function () { var v5 = this.attachMovie('LoadBar', 'robot_hp', 599500); v5._x = 50; v5._y = 445; v5.gotoAndStop(2); v5.ID = 1; var v13 = this.attachMovie('LoadBar', 'robot_hp', 599450); v13._x = 50; v13._y = 445; v13.gotoAndStop(3); var v11 = _root.attachMovie('GiantRobot', 'robot', 90890); v11._x = 1100; v11.gotoAndStop(7); v11.ID = 0; var v14 = _root.robot.attachMovie('GiantRobot', 'robot_head', 90900); v14.stop(); v14.ID = 1; var v6 = _root.robot.attachMovie('GiantRobot', 'robot_legA1', 90901); v6._x = 8; v6._y = 18; v6.gotoAndStop(2); v6.ID = 2; var v10 = _root.robot.robot_legA1.attachMovie('GiantRobot', 'robot_legA2', 90902); v10._y = 153; v10.gotoAndStop(3); v10.ID = 3; var v7 = _root.robot.attachMovie('GiantRobot', 'robot_legB1', 199); v7._x = -23; v7._y = 16; v7.gotoAndStop(2); v7.ID = 4; var v12 = _root.robot.robot_legB1.attachMovie('GiantRobot', 'robot_legB2', 198); v12._y = 153; v12.gotoAndStop(3); v12.ID = 5; var v3 = _root.robot.attachMovie('GiantRobot', 'robot_armA1', 90902); v3._x = 26; v3._y = -5; v3.gotoAndStop(4); v3.ID = 6; var v8 = _root.robot.robot_armA1.attachMovie('GiantRobot', 'robot_armA2', 90903); v8._x = 1; v8._y = 86; v8.gotoAndStop(5); v8.ID = 7; var v4 = _root.robot.attachMovie('GiantRobot', 'robot_armB1', 197); v4._x = -5; v4._y = -7; v4.gotoAndStop(4); v4.ID = 9; var v9 = _root.robot.robot_armB1.attachMovie('GiantRobot', 'robot_armB2', 195); v9._x = 1; v9._y = 86; v9.gotoAndStop(5); v9.ID = 10; }; v2.GenerateRobotFist = function () { var v3 = _root.robot.robot_armA1.robot_armA2.attachMovie('GiantRobot', 'robot_fistA', 90904); v3._x = 0; v3._y = 45; v3.gotoAndStop(6); v3.ID = 8; var v2 = _root.robot.robot_armB1.robot_armB2.attachMovie('GiantRobot', 'robot_fistB', 196); v2._x = 0; v2._y = 45; v2.gotoAndStop(6); v2.ID = 11; }; v2.UpdateFemalesAbducted = function () { var v3 = this.createTextField('u_females_abducted', 902000, 12, 70, 200, 30); v3.selectable = false; v3.embedFonts = true; if (this.uFemalesAbducted < 6) { v3.text = 'FEMALES ABDUCTED: ' + this.uFemalesAbducted; v3.setTextFormat(_root.HUD_format); } if (this.uFemalesAbducted >= 6) { _root.HUD_format.color = 16723532; v3.text = 'FEMALES ABDUCTED: 6'; v3.setTextFormat(_root.HUD_format); _root.HUD_format.color = 3034367; } }; v2.UpdateBurntAbducted = function () { var v3 = this.createTextField('u_cows_abducted', 902000, 12, 70, 200, 30); v3.selectable = false; v3.embedFonts = true; if (this.uBurntAbducted < 50) { v3.text = 'TOASTED HUMANS: ' + this.uBurntAbducted; v3.setTextFormat(_root.HUD_format); } if (this.uBurntAbducted >= 50) { _root.HUD_format.color = 16723532; v3.text = 'TOASTED HUMANS: 50'; v3.setTextFormat(_root.HUD_format); _root.HUD_format.color = 3034367; } }; v2.UpdateRockKills = function () { var v3 = this.createTextField('u_rock_kills', 902000, 12, 70, 200, 30); v3.selectable = false; v3.embedFonts = true; if (_root.global.Stage == 1 && this.uRockKills < 10) { v3.text = 'ROCK KILLS: ' + this.uRockKills; v3.setTextFormat(_root.HUD_format); } if (_root.global.Stage == 1 && this.uRockKills >= 10) { _root.HUD_format.color = 16723532; v3.text = 'ROCK KILLS: 10'; v3.setTextFormat(_root.HUD_format); _root.HUD_format.color = 3034367; } }; v2.UpdateTruckKills = function () { var v3 = this.createTextField('u_rock_kills', 902000, 12, 70, 200, 30); v3.selectable = false; v3.embedFonts = true; if (_root.global.Stage == 3 && this.uTruckKills < 40) { v3.text = 'TRUCK KILLS: ' + this.uTruckKills; v3.setTextFormat(_root.HUD_format); } if (_root.global.Stage == 3 && this.uTruckKills >= 40) { _root.HUD_format.color = 16723532; v3.text = 'TRUCK KILLS: 40'; v3.setTextFormat(_root.HUD_format); _root.HUD_format.color = 3034367; } }; v2.UpdatePlanesDestroyed = function () { var v3 = this.createTextField('u_planes_destroyed', 902005, 12, 95, 200, 30); v3.selectable = false; v3.embedFonts = true; if (this.uPlanesDestroyed < 10) { v3.text = 'PLANES DESTROYED: ' + this.uPlanesDestroyed; v3.setTextFormat(_root.HUD_format); } if (this.uPlanesDestroyed >= 10) { _root.HUD_format.color = 16723532; v3.text = 'PLANES DESTROYED: 10'; v3.setTextFormat(_root.HUD_format); _root.HUD_format.color = 3034367; } }; v2.NextMessage = function () { ++this.TTimer; if (this.TTimer < 15) { var v3 = _root.attachMovie('SpeechBubble2', 'bubble', 99999933); v3.stop(); v3._alpha = 0; if (this.TTimer != 4) { } if (this.TTimer == 4) { } var v4 = _root.createTextField('comment', 99999934, v3._x + 10, v3._y + 10, 250, 100); v4.wordWrap = true; v4.selectable = false; v4.embedFonts = true; v4._alpha = 0; if (this.TTimer == 1) { v3.PosX = 25; v3.PosY = 90; if (_root.global.ControlMouse == true) { _root.comment.text = 'Move using the Direction Keys or W,A,S,D.'; } if (_root.global.ControlMouse == false) { _root.comment.text = 'Move using the W,A,S,D keys.'; } } if (this.TTimer == 2) { v3.PosX = 25; v3.PosY = 115; if (_root.global.ControlMouse == true) { _root.comment.text = 'Click and hold the left Mouse Button to activate the Abductor Beam. The mouse controls the direction of the beam.'; } if (_root.global.ControlMouse == false) { _root.comment.text = 'Press and hold \'Space\' to activate the Abductor Beam. The left and right arrow keys control the direction of the beam'; } } if (this.TTimer == 3) { v3.PosX = 25; v3.PosY = 130; _root.comment.text = 'Hold the Abductor Beam over Humans to abduct them (Cows count as humans too).\nYou can only hold so much in your beam!'; } if (this.TTimer == 4) { v3.PosX = 360; v3.PosY = 165; _root.comment.text = 'The Humans will be crushed and converted into MAN-IN-A-CAN automatically.'; } if (this.TTimer == 5) { v3.PosX = 25; v3.PosY = 90; _root.comment.text = 'Try abducting a rock.'; this.DepthTruck = 400000; this.GenerateRock(); this.GenerateRock(); _root.rock1._x = 200; _root.rock1._y = 60; _root.rock1.Fling = true; _root.rock1.Bounce(); _root.rock2._x = 650; _root.rock2._y = 60; _root.rock2.Fling = true; _root.rock2.Bounce(); } if (this.TTimer == 6) { v3.PosX = 25; v3.PosY = 115; _root.comment.text = 'Rocks will block the Abductor Beam passage. This is bad because we won\'t be able to abduct any humans!'; } if (this.TTimer == 7) { v3.PosX = 25; v3.PosY = 90; _root.comment.text = 'Drop a rock on a Human.'; } if (this.TTimer == 8) { v3.PosX = 25; v3.PosY = 120; _root.comment.text = 'Splat! It\'s not a waste though. We can abduct those Giblets that the Human exploded into.'; } if (this.TTimer == 9) { v3.PosX = 25; v3.PosY = 90; _root.comment.text = 'Pick up some Giblets.'; } if (this.TTimer == 10) { v3.PosX = 25; v3.PosY = 110; _root.comment.text = 'Good. We wouldn\'t want those precious Giblets going to waste!'; } if (this.TTimer == 11) { v3.PosX = 360; v3.PosY = 165; _root.comment.text = 'This big number here is the Multiplier. If we get this higher, we\'ll get more money at the end of the stage.'; } if (this.TTimer == 12) { v3.PosX = 25; v3.PosY = 130; _root.comment.text = 'How to increase the Multiplier:\nKill Humans.\nBlow up stuff.\nAbduct lots of humans in a row.'; } if (this.TTimer == 13) { v3.PosX = 25; v3.PosY = 120; _root.comment.text = 'The Humans will throw things at us!\nTry to avoid it or else we might crash...'; this.AIAggression = 45; this.TruckStopped = false; } if (this.TTimer == 14) { v3.PosX = 25; v3.PosY = 120; _root.comment.text = 'We need to either kill every Human on the stage, or survive until the Time runs out.\nYou can work out the rest by yourself.'; } this.UpdateText(); } if (this.TTimer == 15) { this.FinishStage(); } }; v2.FadeOut = function () { this.DepthFader = 5000100; this.TubeFader = 100; if (this.GameStartTutorial == true) { _root.global.Reset(); _root.global.Mus = false; _root.global.SceneType = 3; } if (this.GameStartTutorial == false) { _root.global.SceneType = 1; _root.global.loadGame(); } }; v2.UpdateText = function () { this.TSuccess = -1; _root.txtSpeech_format.size = 13; _root.comment.setTextFormat(_root.txtSpeech_format); _root.txtSpeech_format.size = 17; _root.bubble.numLines = _root.comment.bottomScroll - _root.comment.scroll + 1; _root.bubble.myMaxScroll = _root.comment.maxscroll; _root.bubble.myTotalLines = _root.bubble.numLines + (_root.bubble.myMaxScroll - 1); _root.bubble._yscale = 27 + _root.bubble.myTotalLines * 17; _root.bubble._y = _root.bubble.myTotalLines * -10 + _root.bubble.PosY; _root.comment._y = _root.bubble._y + 10; this.commentAlpha = 100; }; v2.Success = function () { this.TSuccess = 35; if (this.End == false) { if (this.TTimer == 1 or this.TTimer == 2 or this.TTimer == 3 or this.TTimer == 5 or this.TTimer == 7 or this.TTimer == 9) { _root.M_SELECTED2(); } } }; v2.FinishStage = function () { this.End = true; this.DepthFader = 1000050; this.TubeFader = 1; this.AIFunction = false; _root.ufo.Control = false; this.EndAll(); if (_root.global.Stage == 0) { this.FadeCounter = 1; this.Success(); this.TTimer = 300; } }; v2.DepthObject = 950; v2.DepthGib = 10000; v2.DepthAbductable = 100000; v2.DepthCloud = 30; v2.DepthBeamBit = 400; v2.DepthObstacle = 200; v2.DepthProjectile = 120000; v2.DepthAbducted = 600000; v2.DepthHitEffect = 250000; v2.DepthTruck = 400000; v2.DepthFader = 1000000; v2.DepthBloodSplat = 1000; v2.DepthRoad = 50; v2.DepthMountain = 40; v2.DepthClaw = 750000; v2.Floor = 420; v2.ScrollX = 0; v2.ScrollFinal = 0; v2.TimerIntro = 1; v2.TimerPlane = 0; v2.TimerTruck = 0; v2.AIFunction = false; v2.TimeIncrement = 0; v2.TubeLid = false; v2.TubeFader = 0; v2.FirstClaw = true; v2.Score = 0; v2.Humans = 0; v2.HumansKilled = 0; v2.End = false; v2.ConvertInstant = false; v2.GibLeftOvers = 0; v2.Dead = false; v2.uRockKills = 0; v2.uFemalesAbducted = 0; v2.uPlanesDestroyed = 0; v2.uBurntAbducted = 0; v2.uTruckKills = 0; v2.Multiplier = 9; v2.MultiplierSub = 0; v2.MoneyCurrent = 0; v2.MultiplierSize = 43; v2.TruckType = 0; v2.TruckDestroyed = 1; v2.TruckStopped = false; v2.TTimer = 0; v2.TTimer2 = 0; v2.TSuccess = -1; v2.commentAlpha = 0; v2.textAlpha = 0; v2.GameStartTutorial = false; v2.FadeCounter = 0; ASSetPropFlags(_global.Control.prototype, null, 1); } #endinitclip } movieClip 2388 __Packages.ControlMenu { #initclip if (!_global.ControlMenu) { var v1 = function () { super(); }; _global.ControlMenu = v1; _global.ControlMenu extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (_root.global.Mus == false) { _root.MUSIC1(); } _root.stars1.removeMovieClip(); _root.stars2.removeMovieClip(); _root.auto_save.removeTextField(); _root.global.Selected = true; _root.global.SelectedMenu = true; var v3 = 1; while (v3 < 6) { var v5 = _root.attachMovie('ItemUpgrade', 'itemupgrade' + v3, 60000 + v3); v5.ID = v3; ++v3; } v3 = 1; while (v3 < 3) { var v6 = _root.attachMovie('BackgroundAnim', 'anim' + v3, 30 + v3); v6.ID = v3; ++v3; } v3 = 0; while (v3 < 2) { var v4 = _root.attachMovie('SpaceStation', 'stars' + (1 + v3), 6 + v3); v4.gotoAndStop(14); v4._x = v3 * 700; v4.ID = 3; v4.counter = v3 * 700; ++v3; } this.ID1 = new Array('SAPPHIRE', 'EMERALD', 'CITRINE', 'RUBY', 'AMETHYST', 'SOLD OUT', 0, 0, 0, 0, 3000, 12500, 55000, 125000, 0); this.ID2 = new Array('HAMSTER WHEEL', 'SHARK REELER', 'THE GRIZZLY', 'WHIRL-WHALE', 'GYRO-ANT', 'SOLD OUT', 0, 0, 0, 0, 3000, 12500, 55000, 125000, 0); this.ID3 = new Array('BLUE FRISBEE', 'SPIKED-SAUCER', 'THE MEGATRON', 'NIGHT STALKER', 'SOLD OUT', 0, 0, 0, 0, 0, 10000, 65000, 110000, 0); this.ID4 = new Array('ANTI-GRAV ENGINE', 'SUPER AVIATOR', 'COSMOTRON', 'THRUST MASTER X', 'OMEGA BOOSTER', 'SOLD OUT', 0, 0, 0, 0, 2000, 8500, 35000, 75000, 0); this.ID5 = new Array('GRIND-O-MATIC', 'BONE CRUSHER', 'MAN MUNCHER', 'SOLD OUT', 0, 0, 0, 0, 0, 0, 15000, 40000, 0); var v10 = _root.attachMovie('SpaceStation', 'spacestation_left', 14); v10.stop(); var v7 = _root.attachMovie('SpaceStation', 'current_craft', 28); v7.ID = 1; v7._x = 1000; v7._y = 340; var v8 = _root.attachMovie('SpaceStation', 'alien_standing', 30); v8.gotoAndStop(3); v8._x = 840; v8._y = 375; this._visible = false; var v9 = _root.attachMovie('MenuSelectionBox', 'selectionbox_bottom', _root.global.SelectionBoxNumber + 30); v9._y = 330; v9.ID = 7; v9.gotoAndStop(5); this.GenerateFadeIn(); }; v2.onEnterFrame = function () { if (this.Entry >= 0 && this.Entry < 10100) { this.Entry += 1; } if (this.Entry == 15 && _root.global.Unlocked2 == _root.global.Unlocked) { this.Entry = 10000; } if (this.Entry == 10 && _root.global.Unlocked2 < _root.global.Unlocked) { var v6 = _root.attachMovie('SpeechBubble', 'speech_bubble', 170); this.Entry = -1; v6._x = 350; v6._y = 275; v6.Conversation = _root.global.Unlocked; var v5 = _root.attachMovie('Text', 'alien_blob', 156); v5._x = 350; v5._y = 130; v5.gotoAndStop(8); } if (this.Entry == 1000 && _root.global.Unlocked2 < _root.global.Unlocked) { _root.M_SELECTED2(); this.DepthFader += 1; var v3 = _root.attachMovie('Fader', 'blackband', 9500000); v3.ID = 1000; v3._rotation = 270; v3._x = 0; v3._y = 200; v3.gotoAndStop(11); v3._xscale = 150; v3._yscale = 350; _root.txt_format.size = 50; var v4 = _root.createTextField('txt_unlocked', 9550000, 0, 177, 700, 100); if (_root.global.Unlocked == 2) { v4.text = 'STAGE 2 UNLOCKED!'; } if (_root.global.Unlocked == 3) { v4.text = 'STAGE 3 UNLOCKED!'; } if (_root.global.Unlocked == 4) { v4.text = 'STAGE 4 UNLOCKED!'; } if (_root.global.Unlocked == 5) { v4.text = 'FINAL STAGE UNLOCKED!'; } v4.selectable = false; v4.embedFonts = true; v4.setTextFormat(_root.txt_format); _root.txt_format.size = 25; } if (this.Entry == 1020) { _root.V_ALIEN3(); } if (this.Entry == 1065) { this.Entry = 10000; } if (this.Entry == 999 && _root.global.Unlocked2 == _root.global.Unlocked) { this.Entry = 10000; } if (this.Entry == 10000) { _root.global.Selected = false; _root.global.SelectedMenu = false; _root.blackband.removeMovieClip(); _root.txt_unlocked.removeTextField(); _root.global.Unlocked2 = _root.global.Unlocked; this.Entry = -1; this.UpdateEquipment(); this.ShopMenu(); } if (this.EarthMenuTimer > 0) { this.EarthMenuTimer += 1; } if (this.EarthMenuTimer == 2) { var v7 = _root.attachMovie('SpaceStation', 'spacestation_right', 15); v7.gotoAndStop(2); v7._x = 700; } if (this.EarthMenuTimer == 4) { this.RemoveMenu(); } if (this.EarthMenuTimer > 1 && this.EarthMenuTimer < 16) { _root.spacestation_left._x -= 50; _root.spacestation_right._x -= 50; _root.current_craft._x -= 50; _root.alien_standing._x -= 50; } if (this.EarthMenuTimer == 10) { _root.selectionbox_earth.Fade = 100; } if (this.EarthMenuTimer == 16) { this.EarthMenu(); this.EarthMenuTimer = 0; _root.global.Selected = false; _root.spacestation_left.removeMovieClip(); } if (this.ShopMenuTimer > 0) { this.ShopMenuTimer += 1; } if (this.ShopMenuTimer == 4) { this.RemoveMenu(); _root.selectionbox_bottom.txt_multiplier.removeTextField(); _root.selectionbox_bottom.num_multiplierS.removeTextField(); _root.selectionbox_bottom.num_multiplier.removeTextField(); } if (this.ShopMenuTimer == 2) { var v8 = _root.attachMovie('SpaceStation', 'spacestation_left', 14); v8.stop(); v8._x = -700; } if (this.ShopMenuTimer > 1 && this.ShopMenuTimer < 16) { _root.spacestation_left._x += 50; _root.spacestation_right._x += 50; _root.current_craft._x += 50; _root.alien_standing._x += 50; } if (this.ShopMenuTimer == 10) { _root.selectionbox_goback.Fade = 100; } if (this.ShopMenuTimer == 16) { this.ShopMenu(); this.ShopMenuTimer = 0; _root.global.Selected = false; _root.spacestation_right.removeMovieClip(); } if (this.degreesTarget != this.degrees) { this.degrees += (this.degreesTarget - this.degrees) / 9; } if (this.FadeTimer > 0) { this.FadeTimer += 1; } if (this.FadeTimer >= 1 && this.FadeTimer < 20) { this.GenerateFadeOut(); } if (this.FadeTimer == 55) { this.RemoveObjects(); if (this.ToTitle == false) { _root.global.SceneType = 5; _root.global.SetScene = false; } if (this.ToTitle == true) { _root.global.SceneType = 1; _root.global.SetScene = false; } this.removeMovieClip(); } if (this.FadeTimer >= 10 && this.FadeTimer < 42) { _root.mus1.setVolume(this.FadeTimer * -3 + 130); } if (this.FadeTimer == 42) { _root.mus1.stop('MUSIC1'); _root.mus1.setVolume(100); _root.global.Mus = false; } if (this.PurchaseTimer > 0) { ++this.PurchaseTimer; } if (this.PurchaseTimer == 13) { _root.V_ALIEN4(); this.PurchaseTimer = 0; } }; v2.GenerateSelectionBox = function () { _root.global.SelectionBoxNumber += 1; var v4 = _root.attachMovie('MenuSelectionBox', 'selectionbox' + _root.global.SelectionBoxNumber, _root.global.SelectionBoxNumber + 50); v4.ID = _root.global.SelectionBoxNumber; v4.Stage = _root.global.SelectionBoxNumber - 20; if (_root.global.SelectionBoxNumber <= 5) { var v3 = v4.attachMovie('MenuSelectionBox', 'display_bar' + _root.global.SelectionBoxNumber, _root.global.SelectionBoxNumber + 40); v3.gotoAndStop(17); v3._y = -53; v3._yscale = 80; v3.ID = 100; var v2 = v3.createTextField('item_des_bar', _root.global.SelectionBoxNumber + 60, -80, -12, 160, 35); v2.selectable = false; v2.embedFonts = true; if (_root.global.SelectionBoxNumber == 1) { v2.text = 'ABDUCTOR CRYSTAL'; } if (_root.global.SelectionBoxNumber == 2) { v2.text = 'BEAM GENERATOR'; } if (_root.global.SelectionBoxNumber == 3) { v2.text = 'ARMOUR'; } if (_root.global.SelectionBoxNumber == 4) { v2.text = 'ENGINE'; } if (_root.global.SelectionBoxNumber == 5) { v2.text = 'GRINDER'; } v2.setTextFormat(_root.txtSpeech_format); } }; v2.UpdateMoney = function () { _root.selectionbox_bottom.txt_money.text = '$' + _root.global.Money; _root.selectionbox_bottom.txt_money.setTextFormat(_root.txtMedium_format); }; v2.UpdateEquipment = function () { if (_root.selectionbox1.Highlighted == true or _root.choicebox1.ChoiceID == 1) { _root.selectionbox_bottom.txt_equipped.text = this.ID1[_root.global.UpgradeSuction]; } if (_root.selectionbox2.Highlighted == true or _root.choicebox1.ChoiceID == 2) { _root.selectionbox_bottom.txt_equipped.text = this.ID2[_root.global.UpgradeLoadLimit]; } if (_root.selectionbox3.Highlighted == true or _root.choicebox1.ChoiceID == 3) { _root.selectionbox_bottom.txt_equipped.text = this.ID3[_root.global.UpgradeHP]; } if (_root.selectionbox4.Highlighted == true or _root.choicebox1.ChoiceID == 4) { _root.selectionbox_bottom.txt_equipped.text = this.ID4[_root.global.UpgradeSpeed]; } if (_root.selectionbox5.Highlighted == true or _root.choicebox1.ChoiceID == 5) { _root.selectionbox_bottom.txt_equipped.text = this.ID5[_root.global.UpgradeGibPurifier]; } if (_root.selectionbox_earth.Highlighted == true) { _root.selectionbox_bottom.txt_equipped.text = ''; } _root.selectionbox_bottom.txt_equipped.setTextFormat(_root.selectionA_format); _root.itemupgrade1.Update(); _root.itemupgrade2.Update(); _root.itemupgrade3.Update(); _root.itemupgrade4.Update(); _root.itemupgrade5.Update(); }; v2.RemoveMenu = function () { _root.selectionbox1.Fade = 100; _root.selectionbox2.Fade = 100; _root.selectionbox3.Fade = 100; _root.selectionbox4.Fade = 100; _root.selectionbox5.Fade = 100; _root.selectionbox21.Fade = 100; _root.selectionbox22.Fade = 100; _root.selectionbox23.Fade = 100; _root.selectionbox24.Fade = 100; _root.selectionbox25.Fade = 100; _root.selectionbox_title.Fade = 100; _root.anim1.On = false; _root.anim2.On = false; }; v2.ShopMenu = function () { _root.global.SelectionBoxNumber = 0; var v3 = 0; while (v3 < 5) { this.GenerateSelectionBox(); ++v3; } var v6 = _root.attachMovie('MenuSelectionBox', 'selectionbox_earth', _root.global.SelectionBoxNumber + 51); v6._x = 500; v6._y = 320; v6.ID = 6; v6.gotoAndStop(3); if (_root.global.Unlocked == 1 && _root.global.Money == 0) { var v5 = _root.attachMovie('Message', 'go_here', 17); v5._x = 500; v5._y = 320; v5._xscale = 550; v5._yscale = 350; v5.gotoAndPlay(20); } var v4 = _root.attachMovie('MenuSelectionBox', 'selectionbox_title', _root.global.SelectionBoxNumber + 52); v4._x = 115; v4._y = 355; v4.ID = 20; v4._xscale = -70; v4._yscale = 70; v4.gotoAndStop(3); _root.anim1.On = true; _root.anim1.life = random(50); _root.anim2.On = true; _root.anim2.life = random(50); }; v2.EarthMenu = function () { _root.global.SelectionBoxNumber = 0; var v5 = _root.attachMovie('MenuSelectionBox', 'selectionbox_goback', _root.global.SelectionBoxNumber + 53); v5._xscale = -100; v5._x = 175; v5._y = 80; v5.ID = 8; v5.gotoAndStop(3); _root.global.SelectionBoxNumber = 20; var v3 = 0; while (v3 < 5) { this.GenerateSelectionBox(); ++v3; } var v6 = _root.selectionbox_bottom.createTextField('txt_multiplier', 515, 496, 68, 150, 30); v6.selectable = false; v6.embedFonts = true; v6.text = 'TOP MULTIPLIER'; v6.setTextFormat(_root.selectionA_format); _root.multiplier_format.size = 30; _root.multiplier_format.color = 0; var v4 = _root.selectionbox_bottom.createTextField('num_multiplierS', 516, 498, 82, 150, 50); v4.selectable = false; v4.embedFonts = true; v4.text = 'x' + _root.global.TopMultiplier / 10; v4.setTextFormat(_root.multiplier_format); v4._alpha = 60; _root.multiplier_format.color = 16773668; var v7 = _root.selectionbox_bottom.createTextField('num_multiplier', 517, 496, 80, 150, 50); v7.selectable = false; v7.embedFonts = true; v7.text = 'x' + _root.global.TopMultiplier / 10; v7.setTextFormat(_root.multiplier_format); _root.multiplier_format.size = 43; }; v2.RemoveObjects = function () { _root.spacestation_left.removeMovieClip(); _root.alien_standing.removeMovieClip(); _root.current_craft.removeMovieClip(); _root.spacestation_right.removeMovieClip(); _root.selectionbox_bottom.removeMovieClip(); _root.anim1.removeMovieClip(); _root.anim2.removeMovieClip(); _root.itemupgrade1.removeMovieClip(); _root.itemupgrade2.removeMovieClip(); _root.itemupgrade3.removeMovieClip(); _root.itemupgrade4.removeMovieClip(); _root.itemupgrade5.removeMovieClip(); _root.stars1.removeMovieClip(); _root.stars2.removeMovieClip(); }; v2.GenerateFadeIn = function () { this.DepthFader += 1; var v4 = _root.attachMovie('Fader', 'fade_intro' + this.DepthFader, this.DepthFader); v4.ID = 201; v4._x = 0; v4._y = 235; v4.gotoAndStop(11); v4.Life = random(20) + 30; v4._yscale = 190; v4._xscale = 950; v4._rotation = 270; v4.Life = 1; var v3 = _root.attachMovie('Fader', 'fade_intro' + this.DepthFader + 30, this.DepthFader + 30); v3.ID = 202; v3._x = 700; v3._y = 235; v3.gotoAndStop(11); v3.Life = random(20) + 30; v3._yscale = 190; v3._xscale = 950; v3._rotation = 90; v3.Life = 1; }; v2.GenerateFadeOut = function () { this.DepthFader += 1; var v4 = _root.attachMovie('Fader', 'fade_intro' + this.DepthFader, this.DepthFader + 9000000); v4.ID = 300; v4._x = this.DepthFader * 50 - 25; v4._y = 0; v4.gotoAndStop(11); v4.Life = 1; v4._yscale = 0; var v3 = _root.attachMovie('Fader', 'fade_intro' + this.DepthFader + 100, this.DepthFader + 9000100); v3.ID = 301; v3._x = this.DepthFader * 50 - 25; v3._y = 470; v3._rotation = 180; v3.gotoAndStop(11); v3.Life = 1; v3._yscale = 0; }; v2.DepthFader = 5000000; v2.ChangeDescription = false; v2.EarthMenuTimer = 0; v2.ShopMenuTimer = 0; v2.SetCurrentEquipment = false; v2.FadeTimer = 0; v2.Infront = 1; v2.degrees = 0; v2.degreesTarget = 18; v2.canSpin = true; v2.ID1 = []; v2.ID2 = []; v2.ID3 = []; v2.ID4 = []; v2.ID5 = []; v2.Entry = 0; v2.ToTitle = false; v2.PurchaseTimer = 0; ASSetPropFlags(_global.ControlMenu.prototype, null, 1); } #endinitclip } movieClip 2389 __Packages.EffectHit { #initclip if (!_global.EffectHit) { var v1 = function () { super(); }; _global.EffectHit = v1; _global.EffectHit extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this._currentframe == 15 or this._currentframe == 27) { this.removeMovieClip(); } if (this.InTube == true) { this._x = _root.control.ScrollFinal * -1 + this.positionX; } if (this._currentframe == 1) { _root.S_HITSHIELD(); } }; v2.InTube = false; ASSetPropFlags(_global.EffectHit.prototype, null, 1); } #endinitclip } movieClip 2390 __Packages.EffectSmoke { #initclip if (!_global.EffectSmoke) { var v1 = function () { super(); }; _global.EffectSmoke = v1; _global.EffectSmoke extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this._x += this.vX; this._y += this.vY; if (this._currentframe == 13) { this.removeMovieClip(); } if (this._currentframe == 24) { this.removeMovieClip(); } if (this._currentframe == 30) { this.life2 += 1; this._y -= 10; if (this.life2 == 2) { var v3 = _root.attachMovie('EffectSmoke', 'rising_flame' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y - 15; v3._yscale = 160; v3.gotoAndPlay(31); _root.control.DepthHitEffect += 1; this.life2 = 0; } if (this.life == 60) { this.removeMovieClip(); } if (this.hitTest(_root.ufo)) { _root.ufo.Damage(); this.removeMovieClip(); } } if (this._currentframe >= 31 && this._xscale > 50) { this._y += 5; } if (this._currentframe == 41) { this.removeMovieClip(); } if (this.CircleFire == true) { this.rads = this._rotation * 0.0174532925199433; this.speedx = -this.speed * Math.sin(this.rads); this.speedy = this.speed * Math.cos(this.rads); this._x += this.speedx; this._y += this.speedy; } if (this.Rising == true) { this._y -= 6; this._x += 2.5; } }; ASSetPropFlags(_global.EffectSmoke.prototype, null, 1); } #endinitclip } movieClip 2391 __Packages.ExplosionCircle { #initclip if (!_global.ExplosionCircle) { var v1 = function () { super(); }; _global.ExplosionCircle = v1; _global.ExplosionCircle extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this.Time -= 5; this._xscale += this.Time * 0.9; this._yscale = this._xscale; this._alpha -= 5; if (this._alpha <= 0) { this.removeMovieClip(); } if (this.Time >= 70) { var v4 = 0; while (v4 < 12) { var v3 = _root.attachMovie('EffectSmoke', 'circle_flame' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y; if (this.Time == 75) { v3.gotoAndPlay(31); } v3.CircleFire = true; v3._xscale = 170; v3._yscale = 130; v3._rotation = v4 * 30; v3.speed = this.Time - 60; _root.control.DepthHitEffect += 1; ++v4; } } }; v2.Time = 80; ASSetPropFlags(_global.ExplosionCircle.prototype, null, 1); } #endinitclip } movieClip 2392 __Packages.Fader { #initclip if (!_global.Fader) { var v1 = function () { super(); }; _global.Fader = v1; _global.Fader extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.ID == 51) { this._x = 563; } if (this.ID == 52) { this._x = 687; } if (this.ID == 53) { this._x = 588; } if (this.ID == 54) { this._x = 662; } if (this.ID == 55) { this._x = 613; } if (this.ID == 56) { this._x = 637; } }; v2.onEnterFrame = function () { if (this._currentframe == 10) { this.stop(); } if (this._alpha < 100) { this._alpha += 20; } if (this.Life > 0) { this.Life += 1; } if (this.Life >= 50 && this.ID < 100) { if (this.vY > 0) { this.vY += 1; } if (this.vY < 0) { this.vY -= 1; } } if (this.ID == 56 && this._currentframe == 9) { _root.control.ConvertInstant = true; } if (this.ID > 100 && this.ID < 200 && this.vY < 0) { this.vY += 1; } if (this.ID > 100 && this.ID < 200 && this._xscale < 100) { this._xscale += 2; } if (this.ID == 201) { this._x -= 25; } if (this.ID == 202) { this._x += 25; } if (this.ID >= 300 && this.ID <= 301 && this._yscale < 150) { this._yscale += this.Life * 0.4; } if (this.Life == 120) { this.removeMovieClip(); } if (_root.control.TubeFader == 155 or _root.menu_control.FadeTimer == 54) { this.removeMovieClip(); } this._y += this.vY; }; v2.Life = 0; ASSetPropFlags(_global.Fader.prototype, null, 1); } #endinitclip } movieClip 2393 __Packages.FullCover { #initclip if (!_global.FullCover) { var v1 = function () { super(); }; _global.FullCover = v1; _global.FullCover extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._alpha = 0; }; v2.onEnterFrame = function () { if (this.life >= 0) { this.life += 1; } if (this._alpha < 55 && this.life > 20) { this._alpha += 3; } if (this.life == 5) { _root.pinpoint.removeMovieClip(); } if (this.life == 25) { var v4 = _root.control.attachMovie('Text', 'txt_timeup', 1500000); v4._x = 275; v4._y = 265; if (_root.control.HumansKilled >= _root.control.HumanTotal) { v4.gotoAndStop(1); if (_root.global.Stage == 1) { _root.global.s1Objectives[0] = 1; _root.global.s2Objectives[1] = 1; } if (_root.global.Stage == 2) { _root.global.s2Objectives[0] = 1; _root.global.s3Objectives[0] = 1; } if (_root.global.Stage == 3) { _root.global.s3Objectives[1] = 1; } if (_root.global.Stage == 4) { _root.global.s4Objectives[0] = 1; } if (_root.global.Stage == 5) { _root.global.uCleared = true; } } if (_root.control.TimeSeconds == 0) { v4.gotoAndStop(2); if (_root.global.Stage == 1) { _root.global.s1Objectives[0] = 1; } if (_root.global.Stage == 2) { _root.global.s2Objectives[0] = 1; } } if (_root.control.Dead == true) { v4.gotoAndStop(3); } if (_root.control.Dead == false) { _root.control.ConvertGibs(); } } if (this.life >= 30) { if (_root.global.Unlocked == 1 && _root.global.s1Objectives[0] == 1 && _root.global.s1Objectives[1] == 1 && _root.global.s1Objectives[2] == 1) { _root.global.Unlocked = 2; _root.global.saveGame(); } if (_root.global.Unlocked == 2 && _root.global.s2Objectives[0] == 1 && _root.global.s2Objectives[1] == 1 && _root.global.s2Objectives[2] == 1 && _root.global.s2Objectives[3] == 1) { _root.global.Unlocked = 3; _root.global.saveGame(); } if (_root.global.Unlocked == 3 && _root.global.s3Objectives[0] == 1 && _root.global.s3Objectives[1] == 1 && _root.global.s3Objectives[2] == 1 && _root.global.s3Objectives[3] == 1) { _root.global.Unlocked = 4; _root.global.saveGame(); } if (_root.global.Unlocked == 4 && _root.global.s4Objectives[0] == 1 && _root.global.s4Objectives[1] == 1 && _root.global.s4Objectives[2] == 1) { _root.global.Unlocked = 5; _root.global.saveGame(); } if (_root.global.Unlocked == 5 && _root.global.uCleared == true) { _root.global.Unlocked = 6; _root.global.saveGame(); } } if (this.life == 45) { _root.control.txt_timeup.vY = -30; _root.control.u_cows_abducted.removeTextField(); _root.control.u_females_abducted.removeTextField(); _root.control.u_planes_destroyed.removeTextField(); _root.control.u_rock_kills.removeTextField(); } if (this.life >= 45 && this.life < 55) { _root.control.multiplier_num._alpha -= 10; _root.control.multiplier_num_shadow._alpha -= 10; } if (this.life == 55) { var v6 = _root.control.attachMovie('MenuSelectionBox', 'moneybar', 1450000); v6._x = 275; v6._y = 237; v6.ID = 18; v6.gotoAndStop(10); _root.control.multiplier_num._x = 375; _root.control.multiplier_num._y = 204; _root.control.multiplier_num_shadow._x = 379; _root.control.multiplier_num_shadow._y = 208; } if (this.life >= 65 && this.life < 75 && _root.control.Dead == false) { _root.control.multiplier_num._alpha += 10; _root.control.multiplier_num_shadow._alpha += 10; } if (this.life > 20010) { _root.multiplier_format.size -= 1; _root.control.UpdateMultiplier2(); _root.control.multiplier_num._x -= 3; _root.control.multiplier_num._y += 0.75; _root.control.multiplier_num_shadow._x -= 3; _root.control.multiplier_num_shadow._y += 0.75; _root.control.multiplier_num._alpha -= 7; _root.control.multiplier_num_shadow._alpha -= 7; } if (this.life == 20020) { _root.multiplier_format; _root.global.Money += Math.round(_root.control.MoneyCurrent * (_root.control.Multiplier * 0.1)) - _root.control.MoneyCurrent; _root.control.UpdateMoney(); _root.S_MONEYCOUNTED(); _root.control.moneybar.gotoAndPlay(11); } if (this.life == 20025) { if (_root.control.HumansKilled < _root.control.HumanTotal) { this.life = 10000; } if (_root.control.HumansKilled >= _root.control.HumanTotal) { this.life = 30000; } } if (this.life == 65) { var v7 = _root.control.createTextField('txt_money', 1600000, 195, 225, 160, 35); v7.selectable = false; v7.embedFonts = true; if (_root.control.Dead == false) { _root.control.UpdateMoney(); } if (_root.control.Dead == true) { v7.text = 'NO BONUS'; v7.setTextFormat(_root.txtMedium_format); } } if (this.life == 76) { _root.S_MONEYCOUNT(); } if (this.life > 75) { this.tinCounter += 1; } if (this.tinCounter == 1 && _root.control.Score > 0) { _root.control.Score -= 1; _root.control.UpdateScore(); _root.control.MoneyCurrent += _root.global.MarketValue; _root.global.Money += _root.global.MarketValue; _root.control.UpdateMoney(); this.tinCounter = 0; } if (this.tinCounter == 1 && _root.control.Score == 0) { _root.control.moneybar.gotoAndPlay(11); _root.snd_moneycount.stop('S_MONEYCOUNT'); _root.S_MONEYCOUNTED(); this.life = 20000; } if (this.life == 30010) { _root.score_format.align = 'center'; var v3 = _root.control.createTextField('txt_clear', 5905100, 0, 300, 550, 30); v3.selectable = false; v3.text = 'AREA CLEAR BONUS'; v3.embedFonts = true; v3.setTextFormat(_root.score_format); v3._alpha = 0; _root.score_format.size = 50; var v5 = _root.control.createTextField('num_clear', 5905110, 0, 330, 550, 30); v5.selectable = false; v5.text = _root.global.Stage * _root.global.Stage * 1000 + '$'; v5.embedFonts = true; v5.setTextFormat(_root.score_format); v5._alpha = 0; _root.score_format.size = 25; _root.score_format.align = 'left'; _root.S_SCORE(); } if (this.life >= 30010 && this.life < 30020) { _root.control.txt_clear._alpha += 20; _root.control.num_clear._alpha += 20; } if (this.life >= 30010 && this.life <= 30050) { _root.control.txt_clear._y -= 0.25; _root.control.num_clear._y -= 0.25; } if (this.life > 30050) { _root.control.txt_clear._y -= 5; _root.control.num_clear._y -= 5; } if (this.life > 30051) { _root.control.txt_clear._alpha -= 25; } if (this.life > 30055) { _root.control.num_clear._alpha -= 15; } if (this.life == 30062) { _root.M_SELECTED2(); _root.global.Money += _root.global.Stage * _root.global.Stage * 1000; _root.control.UpdateMoney(); _root.control.moneybar.gotoAndPlay(11); } if (this.life == 30070) { _root.control.txt_clear.removeTextField(); _root.control.num_clear.removeTextField(); this.life = 10000; } if (this.life == 10010) { _root.control.GenerateChoiceMenu(); _root.control.multiplier_num.removeTextField(); _root.control.multiplier_num_shadow.removeTextField(); this.life = -1; } }; v2.life = 0; v2.tinCounter = 0; ASSetPropFlags(_global.FullCover.prototype, null, 1); } #endinitclip } movieClip 2394 __Packages.Gib { #initclip if (!_global.Gib) { var v1 = function () { super(); }; _global.Gib = v1; _global.Gib extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.TerminalVelocity = (120 - this._yscale) / -4; this.Xgain = random(6) - 3; this._rotation = random(360); }; v2.onEnterFrame = function () { if (this.Timer < 6) { if (this.Timer == 1 or this.Timer == 3 or this.Timer == 5) { this.GenerateBlood(); } this.Timer += 1; } if (this.SetInitialVelocity == false && this.Direction == 0) { this.vY = random(4) + 5; this.SetInitialVelocity = true; } if (this.SetInitialVelocity == false && this.Direction == 1) { this.vY = random(4) - 9; this.SetInitialVelocity = true; } this._x += this.vX * 0.1; this._y += this.vY; if (this.vY > this.TerminalVelocity) { this.vY -= 0.4; } this.vX += this.Xgain; if (this._x < 570) { this.Xgain = random(3) - 4; this.vX = 50; } if (this._x > 680) { this.Xgain = random(3) + 1; this.vX = -50; } if (this._y < _root.control.crusher_left._y + 27 && this._y > _root.control.crusher_left._y - 27 && this._x < _root.control.crusher_left._x + 30) { this.vY = 2 + random(4); this.vX *= -1; this.Timer = 0; } if (this._y < _root.control.crusher_right._y + 27 && this._y > _root.control.crusher_right._y - 27 && this._x > _root.control.crusher_right._x - 30) { this.vY = 2 + random(4); this.vX *= -1; this.Timer = 0; } this.dxA = this._x - _root.control.cog_A._x; this.dyA = this._y - _root.control.cog_A._y; this.dxB = this._x - _root.control.cog_B._x; this.dyB = this._y - _root.control.cog_B._y; this.dxC = this._x - _root.control.cog_C._x; this.dyC = this._y - _root.control.cog_C._y; this.dxD = this._x - _root.control.cog_D._x; this.dyD = this._y - _root.control.cog_D._y; if (this._y < 250 && this._y > 150) { if (this.CogAttachA == false) { this.CogDistanceA = Math.sqrt(this.dxA * this.dxA + this.dyA * this.dyA); } if (this.CogAttachB == false) { this.CogDistanceB = Math.sqrt(this.dxB * this.dxB + this.dyB * this.dyB); } } if (this._y < 154 && this._y > 94) { if (this.CogAttachC == false) { this.CogDistanceC = Math.sqrt(this.dxC * this.dxC + this.dyC * this.dyC); } if (this.CogAttachD == false) { this.CogDistanceD = Math.sqrt(this.dxD * this.dxD + this.dyD * this.dyD); } } if (this.CogDistanceA < 42 && this.CogAttachA == false && this.CogAttach == false) { this.CogConnectA(); } if (this.CogDistanceB < 42 && this.CogAttachB == false && this.CogAttach == false) { this.CogConnectB(); } if (this.CogDistanceC < 32 && this.CogAttachC == false && this.CogAttach == false) { this.CogConnectC(); } if (this.CogDistanceD < 32 && this.CogAttachD == false && this.CogAttach == false) { this.CogConnectD(); } if (this.CogAttachA == true) { this._x = _root.control.cog_A._x + this.CogDistanceA * Math.sin(this.RotPosition); this._y = _root.control.cog_A._y + this.CogDistanceA * Math.cos(this.RotPosition); this.RotPosition -= 0.13; } if (this.CogAttachB == true) { this._x = _root.control.cog_B._x + this.CogDistanceB * Math.sin(this.RotPosition); this._y = _root.control.cog_B._y + this.CogDistanceB * Math.cos(this.RotPosition); this.RotPosition += 0.13; } if (this.CogAttachC == true) { this._x = _root.control.cog_C._x + this.CogDistanceC * Math.sin(this.RotPosition); this._y = _root.control.cog_C._y + this.CogDistanceC * Math.cos(this.RotPosition); this.RotPosition -= 0.15; } if (this.CogAttachD == true) { this._x = _root.control.cog_D._x + this.CogDistanceD * Math.sin(this.RotPosition); this._y = _root.control.cog_D._y + this.CogDistanceD * Math.cos(this.RotPosition); this.RotPosition += 0.15; } if (this.CogAttachA == true && this.RotPosition < -2.9) { this.CogAttachA = false; this.CogDistanceC = 33; this.CogConnectC(); this.RotPosition = 0.7; } if (this.CogAttachB == true && this.RotPosition > -3.2) { this.CogAttachB = false; this.CogDistanceD = 33; this.CogConnectD(); this.RotPosition = -6.9; } if (this.CogAttachC == true && this.RotPosition < -2.3) { this.CogAttachC = false; this._x = 640; this.Xgain = 1.6 + random(10) * 0.1; this.vX = -25; this.vY = 0; this.Timer = 0; } if (this.CogAttachD == true && this.RotPosition > -4) { this.CogAttachD = false; this._x = 610; this.Xgain = (1.6 + random(10) * 0.1) * -1; this.vX = 25; this.vY = 0; this.Timer = 0; } if (this.CogAttach == false && this._y < 97 && this._x < _root.tube_background._x + 70) { this._x = _root.tube_background._x + 66; this.vX = 10; this.Xgain = 0; } if (this.CogAttach == false && this._y < 97 && this._x > _root.tube_background._x + 80) { this._x = _root.tube_background._x + 84; this.vX = -10; this.Xgain = 0; } this._rotation += this.vX * 0.3 + this.vY * 0.3; if (this._y < 70 && _root.control.TubeLid == false) { this.vY = random(2) + 3; this.vX = 0; this._y = 70; this.Xgain = 0; } if (this._y < 57) { for (var v3 in _root.control.Claws) { if (_root.control.Claws[v3].Current == true) { _root.control.Claws[v3].Fill += 1; if (this._currentframe >= 6) { _root.control.Claws[v3].Fill += 2; } } } this.removeMovieClip(); } if (_root.control.ConvertInstant == true) { _root.control.GibLeftOvers += 1; if (this._currentframe >= 6) { _root.control.GibLeftOvers += 2; } this.removeMovieClip(); } }; v2.CogConnectA = function () { this.Alignment = -Math.atan2(_root.control.cog_A._x - this._x, _root.control.cog_A._y - this._y) / 0.0174532925199433 + 180; this.RotPosition = -(this.Alignment / 57.27); this.CogAttach = true; this.CogAttachA = true; this.Timer = 0; }; v2.CogConnectB = function () { this.Alignment = -Math.atan2(_root.control.cog_B._x - this._x, _root.control.cog_B._y - this._y) / 0.0174532925199433 + 180; this.RotPosition = -(this.Alignment / 57.27); this.CogAttach = true; this.CogAttachB = true; this.Timer = 0; }; v2.CogConnectC = function () { this.Alignment = -Math.atan2(_root.control.cog_C._x - this._x, _root.control.cog_C._y - this._y) / 0.0174532925199433 + 180; this.RotPosition = -(this.Alignment / 57.27); this.CogAttach = true; this.CogAttachC = true; this.Timer = 0; }; v2.CogConnectD = function () { this.Alignment = -Math.atan2(_root.control.cog_D._x - this._x, _root.control.cog_D._y - this._y) / 0.0174532925199433 + 180; this.RotPosition = -(this.Alignment / 57.27); this.CogAttach = true; this.CogAttachD = true; this.Timer = 0; }; v2.GenerateBlood = function () { if (this._currentframe <= 5) { var v3 = _root.control.attachMovie('BloodDroplet', 'blood' + _root.control.DepthAbducted, _root.control.DepthAbducted); } if (this._currentframe >= 6) { v3 = _root.control.attachMovie('EffectSmoke', 'gibsmoke' + _root.control.DepthAbducted, _root.control.DepthAbducted); v3._xscale = 65; v3._yscale = 65; v3.rotation = random(360); } v3._x = this._x; v3._y = this._y; v3.InTube = true; _root.control.DepthAbducted += 1; }; v2.vX = 0; v2.vY = 0; v2.SetInitialVelocity = false; v2.CogAttach = false; v2.CogAttachA = false; v2.CogAttachB = false; v2.CogAttachC = false; v2.CogAttachD = false; v2.Timer = 6; ASSetPropFlags(_global.Gib.prototype, null, 1); } #endinitclip } movieClip 2395 __Packages.HUDLoad { #initclip if (!_global.HUDLoad) { var v1 = function () { super(); }; _global.HUDLoad = v1; _global.HUDLoad extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this.Scale += Math.round((this.TargetScale - this.Scale) / 4); this._xscale = this.Scale; this._yscale = this.Scale; if (_root.tractor_beam.BeamOn == false && this.TargetScale != 0) { _root.ufo.Load = 0; this.TargetScale = 0; } if (this.Scale <= 40 && this._currentframe != 1) { this.gotoAndStop(1); } if (this.Scale > 40 && this.Scale <= 75 && this._currentframe != 2) { this.gotoAndStop(2); } if (this.Scale > 75 && this._currentframe != 3) { this.gotoAndStop(3); } }; v2.updateLoad = function () { this.TargetScale = (_root.ufo.Load / _root.global.ufoLoadLimit) * 100; }; v2.TargetScale = 0; v2.Scale = 100; ASSetPropFlags(_global.HUDLoad.prototype, null, 1); } #endinitclip } movieClip 2396 __Packages.HUDShield { #initclip if (!_global.HUDShield) { var v1 = function () { super(); }; _global.HUDShield = v1; _global.HUDShield extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.HUDShield.prototype, null, 1); } #endinitclip } movieClip 2397 __Packages.InterfaceBar { #initclip if (!_global.InterfaceBar) { var v1 = function () { super(); }; _global.InterfaceBar = v1; _global.InterfaceBar extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.InterfaceBar.prototype, null, 1); } #endinitclip } movieClip 2398 __Packages.ItemUpgrade { #initclip if (!_global.ItemUpgrade) { var v1 = function () { super(); }; _global.ItemUpgrade = v1; _global.ItemUpgrade extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.stop(); this._y = 438; this._visible = false; }; v2.onEnterFrame = function () { if (this.Signal >= 1) { this.gotoAndStop(2); } if (this.Signal <= 0) { this.gotoAndStop(1); } }; v2.Update = function () { if (_root.selectionbox_earth.Highlighted == false) { if (_root.selectionbox1.Highlighted == true or _root.choicebox1.ChoiceID == 1) { this._x = 570 + this.ID * 27 - 81; this.Signal = _root.global.UpgradeSuction - this.ID + 2; _root.itemupgrade1._visible = true; _root.itemupgrade2._visible = true; _root.itemupgrade3._visible = true; _root.itemupgrade4._visible = true; _root.itemupgrade5._visible = true; } if (_root.selectionbox2.Highlighted == true or _root.choicebox1.ChoiceID == 2) { this._x = 570 + this.ID * 27 - 81; this.Signal = _root.global.UpgradeLoadLimit - this.ID + 2; _root.itemupgrade1._visible = true; _root.itemupgrade2._visible = true; _root.itemupgrade3._visible = true; _root.itemupgrade4._visible = true; _root.itemupgrade5._visible = true; } if (_root.selectionbox3.Highlighted == true or _root.choicebox1.ChoiceID == 3) { this._x = 570 + this.ID * 27 - 67; this.Signal = _root.global.UpgradeHP - this.ID + 2; _root.itemupgrade1._visible = true; _root.itemupgrade2._visible = true; _root.itemupgrade3._visible = true; _root.itemupgrade4._visible = true; _root.itemupgrade5._visible = false; } if (_root.selectionbox4.Highlighted == true or _root.choicebox1.ChoiceID == 4) { this._x = 570 + this.ID * 27 - 81; this.Signal = _root.global.UpgradeSpeed - this.ID + 2; _root.itemupgrade1._visible = true; _root.itemupgrade2._visible = true; _root.itemupgrade3._visible = true; _root.itemupgrade4._visible = true; _root.itemupgrade5._visible = true; } if (_root.selectionbox5.Highlighted == true or _root.choicebox1.ChoiceID == 5) { this._x = 570 + this.ID * 27 - 54; this.Signal = _root.global.UpgradeGibPurifier - this.ID + 2; _root.itemupgrade1._visible = true; _root.itemupgrade2._visible = true; _root.itemupgrade3._visible = true; _root.itemupgrade4._visible = false; _root.itemupgrade5._visible = false; } } if (_root.selectionbox_earth.Highlighted == true) { _root.itemupgrade1._visible = false; _root.itemupgrade2._visible = false; _root.itemupgrade3._visible = false; _root.itemupgrade4._visible = false; _root.itemupgrade5._visible = false; } }; ASSetPropFlags(_global.ItemUpgrade.prototype, null, 1); } #endinitclip } movieClip 2399 __Packages.LoadBar { #initclip if (!_global.LoadBar) { var v1 = function () { super(); }; _global.LoadBar = v1; _global.LoadBar extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this.ID == 1) { this._xscale = _root.robot.robot_head.HP; if (this._xscale < 0) { this._xscale = 0; } } }; ASSetPropFlags(_global.LoadBar.prototype, null, 1); } #endinitclip } movieClip 2400 __Packages.MenuSelectionBox { #initclip if (!_global.MenuSelectionBox) { var v1 = function () { super(); }; _global.MenuSelectionBox = v1; _global.MenuSelectionBox extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._alpha = 0; this.stop(); if (this.ID == 1) { this._x = 120; this._y = 100; this.Type = 'ABDUCTOR CRYSTAL'; this.Description = 'AFFECTS THE ABDUCTION SPEED\nOF THE ABDUCTOR BEAM.'; this.desY = 80; } if (this.ID == 2) { this._x = 305; this._y = 100; this.Type = 'BEAM GENERATOR'; this.Description = 'AFFECTS THE AMOUNT THAT\nTHE ABDUCTOR BEAM CAN HOLD. '; this.desY = 80; } if (this.ID == 3) { this._x = 490; this._y = 100; this.Type = 'ARMOUR'; this.Description = 'AFFECTS THE AMOUNT OF DAMAGE\nTHE SHIP CAN WITHSTAND.'; this.desY = 80; } if (this.ID == 4) { this._x = 398; this._y = 224; this.Type = 'ENGINE'; this.Description = 'AFFECTS THE SPEED OF THE SHIP.'; this.desY = 87; } if (this.ID == 5) { this._x = 583; this._y = 224; this.Type = 'GRINDER'; this.Description = 'AFFECTS THE\nGRINDER\'S EFFICIENCY.'; this.desY = 80; } if (this.ID >= 21 && this.ID < 100) { this.gotoAndStop(8); } if (this.ID == 21) { this._x = 425; this._y = 100; this.Description = '-STAGE 1-\n\tA FEW REDNECKS'; this.desY = 80; } if (this.ID == 22) { this._x = 580; this._y = 135; this.Description = '-STAGE 2-\n\tA LOT OF REDNECKS'; this.desY = 80; } if (this.ID == 23) { this._x = 545; this._y = 290; this.Description = '-STAGE 3-\n\tLOADS OF REDNECKS'; this.desY = 80; } if (this.ID == 24) { this._x = 390; this._y = 255; this.Description = '-STAGE 4-\n\tAREA 51'; this.desY = 80; } if (this.ID == 25) { this._x = 235; this._y = 290; this.Description = '-FINAL STAGE-\n\tBATTLE AGAINST ROBOTRON'; this.desY = 80; } if (this.ID >= 21 && this.ID <= 25) { var v11 = this.attachMovie('MenuLocation', 'location' + _root.global.SelectionBoxNumber, _root.global.SelectionBoxNumber + 40); v11.ID = this.ID; if (this.Locked == true) { v11.Locked = true; } } if (this.ID == 6) { this.GenerateSymbol(); _root.txtMedium_format.align = 'center'; var v6 = this.createTextField('txt_toearth', this.ID + 410, -100, -13, 150, 35); v6.selectable = false; v6.embedFonts = true; v6.text = 'TO EARTH'; v6.setTextFormat(_root.txtMedium_format); this.desY = 79; this.Type = 'TO EARTH'; this.Description = 'GO TO EARTH AND HUNT\nHILLBILLIES.'; _root.txtMedium_format.align = 'right'; } if (this.ID == 8) { var v4 = this.createTextField('txt_goback', this.ID + 410, 70, -13, 150, 35); v4.selectable = false; v4.embedFonts = true; v4.text = 'GO BACK'; v4.setTextFormat(_root.txtMedium_format); v4._xscale = -100; this.desY = 86; this.Type = 'GO BACK'; this.Description = 'GO BACK TO THE SHOP'; } if (this.ID >= 11 && this.ID < 18) { _root.txtMedium_format.align = 'center'; var v3 = this.createTextField('txt_confirm', this.ID + 80, -100, -13, 200, 35); v3.selectable = false; v3.embedFonts = true; if (this.ID == 11) { v3.text = 'BUY ITEM'; } if (this.ID == 12) { v3.text = 'CANCEL'; } if (this.ID == 13) { v3.text = 'RETRY'; } if (this.ID == 14) { v3.text = 'BACK TO BASE'; v3._xscale = 90; v3._x += 11; } if (this.ID == 15) { v3.text = 'NEW GAME'; } if (this.ID == 16) { v3.text = 'CONTINUE'; } if (this.ID == 17) { v3.text = 'HOW TO PLAY'; } v3.setTextFormat(_root.txtMedium_format); _root.txtMedium_format.align = 'right'; } if (this.ID == 19) { var v5 = this.createTextField('txt_next', 115, -125, -13, 150, 35); v5.selectable = false; v5.embedFonts = true; v5.text = 'NEXT'; v5.setTextFormat(_root.txtMedium_format); } if (this.ID == 20) { v5 = this.createTextField('txt_title', 116, 67, -13, 170, 35); v5.selectable = false; v5.embedFonts = true; v5.text = 'BACK TO TITLE'; v5.setTextFormat(_root.txtMedium_format); v5._xscale = -100; } if (this.ID <= 5) { this.GenerateItem(); this.degrees = this.ID * 72; } if (this.ID == 7) { var v9 = this.createTextField('txt_des', this.ID + 411, 285, 72, 182, 50); v9.selectable = false; v9.embedFonts = true; var v7 = this.createTextField('txt_type', this.ID + 412, 493, 37, 170, 25); v7.selectable = false; v7.embedFonts = true; v7._yscale = 80; v7._xscale = 95; var v8 = this.createTextField('txt_youhave', this.ID + 413, 38, 61, 170, 25); v8.selectable = false; v8.embedFonts = true; v8.text = 'YOU HAVE'; v8.setTextFormat(_root.txtBB_format); var v10 = this.createTextField('txt_equipped', this.ID + 414, 496, 76, 150, 30); v10.selectable = false; v10.embedFonts = true; _root.menu_control.UpdateEquipment(); var v12 = this.createTextField('txt_money', this.ID + 415, 44, 93, 160, 35); v12.selectable = false; v12.embedFonts = true; _root.menu_control.UpdateMoney(); } if (_root.global.Unlocked < 2) { _root.selectionbox22.Locked = true; _root.selectionbox22.Description = 'LOCKED'; _root.selectionbox22.desY = 86; _root.selectionbox23._visible = false; } if (_root.global.Unlocked < 3) { _root.selectionbox23.Locked = true; _root.selectionbox23.Description = 'LOCKED'; _root.selectionbox23.desY = 86; _root.selectionbox24._visible = false; } if (_root.global.Unlocked < 4) { _root.selectionbox24.Locked = true; _root.selectionbox24.Description = 'LOCKED'; _root.selectionbox24.desY = 86; _root.selectionbox25._visible = false; } if (_root.global.Unlocked < 5) { _root.selectionbox25.Locked = true; _root.selectionbox25.Description = 'LOCKED'; _root.selectionbox25.desY = 86; } }; v2.onEnterFrame = function () { if (this.Life < 100) { this.Life += 20; this._alpha = this.Life; } this.onMouseDown = function () { if (this.HighlightCounter == 1 && _root.global.Selected == false && this.Locked == false) { if (this.ID < 11 or this.ID >= 21) { _root.global.Selected = true; this.Selected = 1; } } if (this.HighlightCounter == 1 && _root.global.SelectedMenu == false && this.ID >= 11 && this.ID <= 20) { _root.global.SelectedMenu = true; this.Selected = 1; } }; if (this.HighlightCounter > 0) { this.HighlightCounter -= 1; } if (_root.global.Selected == false && this.Fade == 150) { if (this.ID <= 5 && this.FrontBox == true && _root._xmouse > this._x - 75 && _root._xmouse < this._x + 75 && _root._ymouse > this._y - 40 && _root._ymouse < this._y + 40) { this.gotoAndStop(2); this.Highlighted = true; this.HighlightCounter = 1; } if (this.ID == 6 or this.ID == 8 or this.ID == 19 or this.ID == 20) { if (_root._xmouse > this._x - 120 && _root._xmouse < this._x + 120 && _root._ymouse > this._y - 25 && _root._ymouse < this._y + 25) { this.gotoAndStop(4); this.Highlighted = true; this.HighlightCounter = 1; } } if (this.ID >= 21 && this.ID < 100 && _root._xmouse > this._x - 65 && _root._xmouse < this._x + 65 && _root._ymouse > this._y - 65 && _root._ymouse < this._y + 65 && this._visible == true) { this.gotoAndStop(9); this.Highlighted = true; this.HighlightCounter = 1; } } if (_root.global.SelectedMenu == false) { if (this.ID >= 11 && this.ID <= 12 or this.ID == 15 or this.ID == 17 or this.ID == 16 && _root.title_control.NoSave != true) { if (_root._xmouse > this._x - 78 && _root._xmouse < this._x + 78 && _root._ymouse > this._y - 24 && _root._ymouse < this._y + 24) { this.gotoAndStop(7); this.Highlighted = true; this.HighlightCounter = 1; } } } if (this.ID >= 13 && this.ID <= 14 && _root.global.SelectedMenu == false) { if (_root._xmouse > this._x - 78 + _root.control.ScrollFinal * -1 && _root._xmouse < this._x + 78 + _root.control.ScrollFinal * -1 && _root._ymouse > this._y - 24 && _root._ymouse < this._y + 24) { this.gotoAndStop(7); this.Highlighted = true; this.HighlightCounter = 1; } } if (this.HighlightCounter == 0 && this.Highlighted == true) { if (this.ID <= 5) { this.gotoAndStop(1); } if (this.ID == 6 or this.ID == 8 or this.ID == 19 or this.ID == 20) { this.gotoAndStop(3); } if (this.ID >= 11 && this.ID <= 17) { this.gotoAndStop(6); } if (this.ID >= 21) { this.gotoAndStop(8); } this.Highlighted = false; _root.menu_control.ChangeDescription = false; } if (this.Highlighted == true && this.Highlighted2 == false) { this.Highlighted2 = true; this.UnlockText(); _root.M_SELECT(); } if (this.Highlighted == false && this.Highlighted2 == true) { this.Highlighted2 = false; if (this.Locked == true) { _root.UnlockText.Fade = 100; } } if (this.Highlighted == true && _root.menu_control.ChangeDescription == false) { if (this.ID < 11 or this.ID >= 21) { _root.selectionbox_bottom.txt_des.text = this.Description; _root.selectionbox_bottom.txt_des._y = this.desY; _root.selectionbox_bottom.txt_des.setTextFormat(_root.txtDescription_format); _root.selectionbox_bottom.txt_type.text = this.Type; _root.selectionbox_bottom.txt_type.setTextFormat(_root.txtBB_format); _root.menu_control.UpdateEquipment(); _root.menu_control.ChangeDescription = true; _root.itemupgrade1.Update(); _root.itemupgrade2.Update(); _root.itemupgrade3.Update(); _root.itemupgrade4.Update(); _root.itemupgrade5.Update(); } } if (this.Selected > 0) { this.Selected += 1; } if (this.Selected == 2) { if (this.ID <= 5) { this.gotoAndStop(1); } if (this.ID == 6 or this.ID == 8 or this.ID == 19 or this.ID == 20) { this.gotoAndStop(3); } if (this.ID >= 11 && this.ID <= 17) { this.gotoAndStop(6); } if (this.ID >= 21) { this.gotoAndStop(8); } } if (this.Selected == 3) { if (this.ID <= 5) { this.gotoAndStop(2); } if (this.ID == 6 or this.ID == 8 or this.ID == 19 or this.ID == 20) { this.gotoAndStop(4); } if (this.ID >= 11 && this.ID <= 17) { this.gotoAndStop(7); } if (this.ID >= 21) { this.gotoAndStop(9); } this.Selected2 += 1; this.Selected = 1; } if (this.Selected2 == 3) { this.Selected2 = 0; this.Selected = 0; this.Select(); } if (this.Selected2 == 0 && this.Selected == 2) { if (this.ID <= 5) { _root.M_SELECTED3(); } if (this.ID > 5) { _root.M_SELECTED1(); } } if (this.Fade <= 100 && this.Fade > 0) { if (this.ID > 5) { this.Fade -= 10; this._alpha = this.Fade; this._yscale = this.Fade / 2 + 50; } if (this.ID <= 5) { this._alpha -= 20; } } if (this.Fade == 0 or this.Fade <= 100 && this._alpha <= 0) { _root.global.SelectedMenu = false; this.removeMovieClip(); } if (this._currentframe == 16) { this.gotoAndStop(10); } if (this.ID >= 1 && this.ID <= 5) { this.angle = (_root.menu_control.degrees + this.ID * 72) * 0.0174532925199433; this.xposition = this.radius * Math.cos(this.angle); this.yposition = this.radius * (Math.sin(this.angle) / 2); this._x = this.xposition + 440; this._y = this.yposition + 115; this._xscale = this.yposition * 0.6 + 70; this._yscale = this._xscale; this.swapDepths(this._y); if (this.yposition > 57 && this.FrontBox == false) { this.FrontBox = true; _root.menu_control.canSpin = true; } if (this.yposition <= 57 && this.FrontBox == true) { this.FrontBox = false; } if (this.Fade == 150) { this._alpha = this.yposition * 0.7 + 60; } if (this.FrontBox == true && _root.menu_control.canSpin == true && _root.global.Selected == false) { if (_root._xmouse > this._x + 90 && _root._xmouse < this._x + 160 && _root._ymouse > this._y - 65 && _root._ymouse < this._y - 15) { _root.menu_control.degreesTarget += 72; _root.menu_control.canSpin = false; } if (_root._xmouse > this._x - 160 && _root._xmouse < this._x - 90 && _root._ymouse > this._y - 65 && _root._ymouse < this._y - 15) { _root.menu_control.degreesTarget -= 72; _root.menu_control.canSpin = false; } } } }; v2.GenerateItem = function () { var v4 = this.createTextField('txt_item' + this.ID, this.ID + 300, -90, -38, 180, 25); v4.selectable = false; v4.embedFonts = true; if (this.ID == 1) { v4.text = _root.menu_control.ID1[_root.global.UpgradeSuction + 1]; } if (this.ID == 2) { v4.text = _root.menu_control.ID2[_root.global.UpgradeLoadLimit + 1]; } if (this.ID == 3) { v4.text = _root.menu_control.ID3[_root.global.UpgradeHP + 1]; } if (this.ID == 4) { v4.text = _root.menu_control.ID4[_root.global.UpgradeSpeed + 1]; } if (this.ID == 5) { v4.text = _root.menu_control.ID5[_root.global.UpgradeGibPurifier + 1]; } v4.setTextFormat(_root.selectionA_format); var v3 = this.createTextField('txt_cost' + this.ID, this.ID + 400, -60, 20, 120, 25); v3.selectable = false; v3.embedFonts = true; if (this.ID == 1) { this.Cost = _root.menu_control.ID1[_root.global.UpgradeSuction + 10]; v3.text = '$' + _root.menu_control.ID1[_root.global.UpgradeSuction + 10]; } if (this.ID == 2) { this.Cost = _root.menu_control.ID2[_root.global.UpgradeLoadLimit + 10]; v3.text = '$' + _root.menu_control.ID2[_root.global.UpgradeLoadLimit + 10]; } if (this.ID == 3) { this.Cost = _root.menu_control.ID3[_root.global.UpgradeHP + 10]; v3.text = '$' + _root.menu_control.ID3[_root.global.UpgradeHP + 10]; } if (this.ID == 4) { this.Cost = _root.menu_control.ID4[_root.global.UpgradeSpeed + 10]; v3.text = '$' + _root.menu_control.ID4[_root.global.UpgradeSpeed + 10]; } if (this.ID == 5) { this.Cost = _root.menu_control.ID5[_root.global.UpgradeGibPurifier + 10]; v3.text = '$' + _root.menu_control.ID5[_root.global.UpgradeGibPurifier + 10]; } v3.setTextFormat(_root.selectionB_format); if (this.Cost == 0) { v3._visible = false; } this.GenerateSymbol(); }; v2.GenerateSymbol = function () { var v2 = this.attachMovie('MenuSymbol', 'symbol' + this.ID, this.ID + 250); v2.ID = this.ID; if (this.ID == 1) { v2._y = 3; } if (this.ID == 2) { v2.gotoAndPlay(70); v2._y = 4; } if (this.ID == 3) { v2.gotoAndPlay(30); v2._y = 0; } if (this.ID == 4) { v2.gotoAndPlay(40); v2._y = 0; } if (this.ID == 5) { v2.gotoAndPlay(50); v2._y = 0; } if (this.ID == 6) { v2.gotoAndPlay(90); v2._y = 0; v2._x = 90; } }; v2.UnlockText = function () { if (this.Locked == true && this.ID >= 21 && this.ID <= 25) { var v3 = _root.attachMovie('Text', 'UnlockText', 300); v3.gotoAndStop(5); if (this.ID == 22) { v3.ID2 = 1; v3._x = 350; v3._y = 215; v3.Objectives = 3; v3._alpha = 0; v3._yscale = 70; v3.ObjectiveDes = new Array('SURVIVE \'TIL THE TIME\nRUNS OUT ON STAGE 1', 'KILL AT LEAST 10 HUMANS\nWITH A ROCK ON STAGE 1', 'MAKE AT LEAST $3000'); } if (this.ID == 23) { v3.ID2 = 2; v3._x = 245; v3._y = 175; v3.Objectives = 4; v3._alpha = 0; v3._yscale = 70; v3.ObjectiveDes = new Array('SURVIVE \'TIL THE TIME\nRUNS OUT ON STAGE 2.', 'WIPE OUT ALL LIFE\nON STAGE 1', 'ABDUCT 6 HUMAN FEMALES\nIN A ROW ON STAGE 2', 'SCORE A MULTIPLIER OF X5\nOR HIGHER ON STAGE 2'); } if (this.ID == 24) { v3.ID2 = 3; v3._x = 165; v3._y = 160; v3.Objectives = 4; v3._alpha = 0; v3._yscale = 70; v3.ObjectiveDes = new Array('WIPE OUT ALL LIFE\nON STAGE 2', 'WIPE OUT ALL LIFE\nON STAGE 3', 'KILL AT LEAST 40 HUMANS\nWITH A TRUCK ON STAGE 3', 'DESTROY AT LEAST\n10 BI-PLANES ON STAGE 3'); } if (this.ID == 25) { v3.ID2 = 4; v3._x = 470; v3._y = 110; v3.Objectives = 3; v3._alpha = 0; v3._yscale = 70; v3.ObjectiveDes = new Array('WIPE OUT ALL LIFE\nON STAGE 4', 'ABDUCT 50 BURNT HUMANS\nON STAGE 4', 'SCORE A MULTIPLIER OF X10\nOR HIGHER ON STAGE 4'); } } }; v2.Select = function () { if (this.ID <= 5) { if (_root.global.Money >= this.Cost && this.Cost > 0) { _root.global.GenerateChoiceMenu(); _root.choicebox1.Cost = this.Cost; _root.choicebox1.ChoiceID = this.ID; } if (_root.global.Money < this.Cost) { var v3 = this.attachMovie('Message', 'msg_cannotafford', 650); v3.ID = 1; v3.stop(); this.Highlighted = true; } if (this.Cost == 0) { this.Highlighted = true; _root.global.Selected = false; } } if (this.ID == 8) { _root.menu_control.ShopMenuTimer = 1; } if (this.ID == 6) { _root.menu_control.EarthMenuTimer = 1; } if (this.ID >= 11 && this.ID <= 12) { _root.choicebox1.Fade = 100; _root.choicebox2.Fade = 100; _root.questionbox.Fade = 100; _root.selectionbox1.gotoAndStop(1); _root.selectionbox2.gotoAndStop(1); _root.selectionbox3.gotoAndStop(1); _root.selectionbox4.gotoAndStop(1); _root.selectionbox5.gotoAndStop(1); if (this.ID == 11) { _root.global.Money -= this.Cost; _root.menu_control.UpdateMoney(); if (this.ChoiceID == 1) { _root.global.UpgradeSuction += 1; _root.selectionbox1.GenerateItem(); } if (this.ChoiceID == 2) { _root.global.UpgradeLoadLimit += 1; _root.selectionbox2.GenerateItem(); } if (this.ChoiceID == 3) { _root.global.UpgradeHP += 1; _root.selectionbox3.GenerateItem(); } if (this.ChoiceID == 4) { _root.global.UpgradeSpeed += 1; _root.selectionbox4.GenerateItem(); } if (this.ChoiceID == 5) { _root.global.UpgradeGibPurifier += 1; _root.selectionbox5.GenerateItem(); } _root.menu_control.UpdateEquipment(); _root.M_SELECTED2(); _root.menu_control.PurchaseTimer = 1; _root.global.saveGame(); } if (this.ID == 11 or this.ID == 12) { _root.global.Selected = false; } } if (this.ID == 20) { _root.selectionbox1.Fade = 100; _root.selectionbox2.Fade = 100; _root.selectionbox3.Fade = 100; _root.selectionbox4.Fade = 100; _root.selectionbox5.Fade = 100; _root.selectionbox_title.Fade = 100; _root.selectionbox_earth.Fade = 100; _root.menu_control.DepthFader = 0; _root.menu_control.FadeTimer = 1; _root.menu_control.ToTitle = true; } if (this.ID >= 13 && this.ID <= 14) { _root.control.choicebox1.Fade = 100; _root.control.choicebox2.Fade = 100; _root.control.DepthFader = 5000100; _root.control.TubeFader = 100; _root.global.saveGame(); if (this.ID == 14) { _root.global.SceneType = 3; } } if (this.ID >= 21 && this.ID <= 25) { _root.selectionbox21.Fade = 100; _root.selectionbox22.Fade = 100; _root.selectionbox23.Fade = 100; _root.selectionbox24.Fade = 100; _root.selectionbox25.Fade = 100; _root.selectionbox_goback.Fade = 100; _root.menu_control.DepthFader = 0; _root.menu_control.FadeTimer = 1; _root.global.Stage = this.Stage; } if (this.ID >= 15 && this.ID <= 17) { _root.choicebox1.Fade = 100; _root.choicebox2.Fade = 100; _root.choicebox3.Fade = 100; _root.sound_switch.Fade = 100; _root.control_switch.Fade = 100; _root.title_control.FadeOut(); if (this.ID != 15) { _root.title_control.Goto = this.ID - 14; } if (this.ID == 15 && _root.global.Played == true) { _root.title_control.Goto = 1; } if (this.ID == 15 && _root.global.Played == false) { _root.title_control.GameStartTutorial = true; _root.title_control.Goto = 3; _root.global.Played = true; } } if (this.ID == 19) { this.Fade = 100; _root.title_control.FadeOut(); _root.fadeout.ID = 1; } }; v2.Highlighted = false; v2.Highlighted2 = false; v2.HighlightCounter = 0; v2.Description = ''; v2.Type = ''; v2.Selected = 0; v2.Selected2 = 0; v2.Life = 0; v2.Fade = 150; v2.Locked = false; v2.FrontBox = false; v2.radius = 120; v2.degrees = 0; ASSetPropFlags(_global.MenuSelectionBox.prototype, null, 1); } #endinitclip } movieClip 2401 __Packages.MenuSymbol { #initclip if (!_global.MenuSymbol) { var v1 = function () { super(); }; _global.MenuSymbol = v1; _global.MenuSymbol extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this._currentframe == 25) { this.gotoAndPlay(1); } if (this._currentframe == 39) { this.gotoAndPlay(30); } if (this._currentframe == 49) { this.gotoAndPlay(40); } if (this._currentframe == 68) { this.gotoAndPlay(50); } if (this._currentframe == 89) { this.gotoAndPlay(70); } if (this._currentframe == 120) { this.gotoAndPlay(90); } if (this.HighlightCounter > 0) { this.HighlightCounter -= 1; } if (_root.selectionbox1.Highlighted == true && this.HighlightCounter < 2 && this.ID == 1) { this.Enlarge(); } if (_root.selectionbox2.Highlighted == true && this.HighlightCounter < 2 && this.ID == 2) { this.Enlarge(); } if (_root.selectionbox3.Highlighted == true && this.HighlightCounter < 2 && this.ID == 3) { this.Enlarge(); } if (_root.selectionbox4.Highlighted == true && this.HighlightCounter < 2 && this.ID == 4) { this.Enlarge(); } if (_root.selectionbox5.Highlighted == true && this.HighlightCounter < 2 && this.ID == 5) { this.Enlarge(); } if (_root.selectionbox_earth.Highlighted == true && this.HighlightCounter < 2 && this.ID == 6) { this.Enlarge(); } if (this.HighlightCounter == 0 && this.Highlighted == true) { this._xscale = 100; this._yscale = 100; this.Highlighted = false; } }; v2.Enlarge = function () { this._xscale = 120; this._yscale = 120; this.HighlightCounter = 2; this.Highlighted = true; }; v2.Highlighted = false; v2.HighlightCounter = 0; ASSetPropFlags(_global.MenuSymbol.prototype, null, 1); } #endinitclip } movieClip 2402 __Packages.Message { #initclip if (!_global.Message) { var v1 = function () { super(); }; _global.Message = v1; _global.Message extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.ID != 5) { this._alpha = 0; } }; v2.onEnterFrame = function () { if (this.ID == 5) { this._x += this.vX; if (this._x < -50 && this.vX < 0) { this.removeMovieClip(); } if (this._x > _root.control.LevelWidth + 50 && this.vX > 0) { this.removeMovieClip(); } } if (this.ID != 5) { this.life += 1; if (this.life < 5) { this._alpha += 25; } if (this.life == 25) { _root.global.Selected = false; } if (this.life == 32) { this.fade = 100; } if (this.fade <= 100) { this.fade -= 10; this._alpha = this.fade; } if (this.fade <= 0) { this.removeMovieClip(); } if (this._currentframe == 8) { this.gotoAndPlay(2); } if (this._currentframe == 16) { this.gotoAndPlay(10); } if (this._currentframe == 31) { this.gotoAndPlay(20); } } }; v2.life = 0; v2.fade = 150; v2.vX = 0; ASSetPropFlags(_global.Message.prototype, null, 1); } #endinitclip } movieClip 2403 __Packages.Obstacle { #initclip if (!_global.Obstacle) { var v1 = function () { super(); }; _global.Obstacle = v1; _global.Obstacle extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.X = this._x; this.Y = this._y; this.HP = _root.control.HouseHP; }; v2.onEnterFrame = function () { if (this.ParametersSet == false && this.Type != 5) { if (this.Type == 0) { this.Width = 100; this.Height = 70; this.gotoAndStop(1); } if (this.Type == 1) { this.Width = 85; this.Height = 65; this.gotoAndStop(2); } if (this.Type == 2) { this.Width = 92; this.Height = 67; this.gotoAndStop(3); } var v3 = this.attachMovie('ObstacleBarrier', 'obstaclebarrier' + _root.control.DepthObstacle + 10, _root.control.DepthObstacle + 10); v3._x -= this.Width; v3._y -= this.Height; v3._xscale * -1; v3.side = false; v3._visible = false; _root.control.ObstacleBarriers.push(v3); var v4 = this.attachMovie('ObstacleBarrier', 'obstaclebarrier' + _root.control.DepthObstacle + 20, _root.control.DepthObstacle + 20); v4._x += this.Width; v4._y -= this.Height; v4.side = true; v4._visible = false; _root.control.ObstacleBarriers.push(v4); this.ParametersSet = true; } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } if (this.Vibrate > 0) { this.Vibrate -= 0.5; this._x = this.X - this.Vibrate * 0.5 + random(this.Vibrate); this._y = this.Y - this.Vibrate * 0.5 + random(this.Vibrate); } if (this.HP <= 0 && this._visible == true) { this.Explode(); } if (this.DeathCounter > 0) { this.DeathCounter -= 1; } if (this.DeathCounter == 0) { this.removeMovieClip(); } }; v2.Damage = function () { _root.S_BANG(); this.Vibrate = 7; this.HP -= 10; _root.control.DepthObstacle += 1; var v3 = this.attachMovie('HouseDamage', 'house_damage' + _root.control.DepthObstacle, _root.control.DepthObstacle); v3._x = -(this.Width * 0.5) + random(this.Width); v3._y = -random(this.Height - 20) - 35; v3.gotoAndStop(random(5) + 1); v3._xscale = random(2) * 200 - 100; v3._alpha = 65 + random(30); v3.Type = 0; }; v2.Explode = function () { _root.S_ROBOEXPLODE(); this._visible = false; this.DeathCounter = 3; _root.control.UpdateMultiplier(); _root.control.UpdateMultiplier(); _root.control.UpdateMultiplier(); _root.control.UpdateMultiplier(); _root.control.UpdateMultiplier(); _root.control.DepthObstacle += 1; var v9 = _root.attachMovie('Obstacle', 'obstacle' + _root.control.DepthObstacle, _root.control.DepthObstacle); v9._x = this._x; v9._y = this._y; v9.Type = 5; v9.gotoAndStop(this._currentframe + 3); var v8 = _root.attachMovie('BiPlaneExplode', 'house_explosion' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v8._y = this._y - 15; v8._x = this._x; v8._xscale = 300; v8._yscale = 300; _root.control.DepthHitEffect += 1; var v6 = 0; while (v6 < this.Width / 15) { var v4 = _root.attachMovie('HouseDamage', 'bit_upper' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v4._x = this._x - this.Width * 0.5 + v6 * 15; v4._y = this._y - this.Height * 0.5 + random(this.Height * 0.5 - 15); v4.Type = 1; v4._rotation = random(360); if (this.Type == 0 or this.Type == 1) { v4.gotoAndStop(7); } if (this.Type == 2) { v4.gotoAndStop(9); } _root.control.DepthHitEffect += 1; ++v6; } v6 = 0; while (v6 < this.Width / 15) { var v3 = _root.attachMovie('HouseDamage', 'bit_lower' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x - this.Width * 0.5 + v6 * 15; v3._y = this._y - this.Height + random(this.Height * 0.5 - 10); v3.Type = 1; v3._rotation = random(360); if (this.Type == 0) { v3.gotoAndStop(6); } if (this.Type == 1 or this.Type == 2) { v3.gotoAndStop(8); } _root.control.DepthHitEffect += 1; ++v6; } v6 = 0; while (v6 < 2) { var v5 = _root.attachMovie('Fire', 'fire' + _root.control.DepthAbductable, _root.control.DepthAbductable); v5._x = this._x - 30 + v6 * 60; v5._y = this._y + 15; v5._xscale = 110; v5.gotoAndPlay(random(13) + 1); v5.Type = 1; _root.control.DepthAbductable += 1; ++v6; } if (this.ID == 201) { var v7 = _root.attachMovie('Fire', 'firebox1', _root.control.DepthAbductable); } if (this.ID == 202) { v7 = _root.attachMovie('Fire', 'firebox2', _root.control.DepthAbductable); } v7._x = this._x; v7._y = this._y + 15; v7.gotoAndStop(15); v7.Type = 2; v7._visible = false; _root.control.DepthAbductable += 1; }; v2.Type = 5; v2.ParametersSet = false; ASSetPropFlags(_global.Obstacle.prototype, null, 1); } #endinitclip } movieClip 2404 __Packages.ObstacleBarrier { #initclip if (!_global.ObstacleBarrier) { var v1 = function () { super(); }; _global.ObstacleBarrier = v1; _global.ObstacleBarrier extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; ASSetPropFlags(_global.ObstacleBarrier.prototype, null, 1); } #endinitclip } movieClip 2405 __Packages.PlasmaShot { #initclip if (!_global.PlasmaShot) { var v1 = function () { super(); }; _global.PlasmaShot = v1; _global.PlasmaShot extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this.life += 1; if (this.life < 60 && this.ID == 0) { this.targetDirection = -Math.atan2(_root.ufo._x - this._x, _root.ufo._y - this._y) / 0.0174532925199433; if (this.direction < this.targetDirection - 1) { this.direction += 2; } if (this.direction > this.targetDirection + 1) { this.direction -= 2; } this._rotation = this.direction + 90; } if (this.ID == 0 && _root.truck.Sucked == true or this.ID == 0 && _root.truck.Fling == true) { if (this._x > _root.truck._x - 35 && this._x < _root.truck._x + 35 && this._y > _root.truck._y - 30 && this._y < _root.truck._y + 2) { this.Destroy(); } } if (this.life < 100 && this.ID == 1) { this.targetDirection = -Math.atan2(_root.ufo._x - this._x, _root.ufo._y - this._y) / 0.0174532925199433; if (this.direction < this.targetDirection - 2) { this.direction += 4; } if (this.direction > this.targetDirection + 2) { this.direction -= 4; } this._rotation = this.direction + 90; } if (this._currentframe == 7) { this.gotoAndPlay(1); } if (this._currentframe == 14) { this.gotoAndPlay(10); } this.rads = this.direction * 0.0174532925199433; this.speedx = -this.speed * Math.sin(this.rads); this.speedy = this.speed * Math.cos(this.rads); this._x += this.speedx; this._y += this.speedy; if (this._y > _root.control.Floor - 5 or this._y < 40 or this._x > _root.control.LevelWidth + 20 or this._x < -25) { if (this.ID == 0) { this.removeMovieClip(); } } if (this._y < _root.ufo._y + 20 && this._y > _root.ufo._y - 20 && this._x < _root.ufo._x + 33 && this._x > _root.ufo._x - 33 && _root.control.Dead == false) { var v4 = _root.attachMovie('EffectHit', 'hit' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v4._rotation = this._rotation; v4._x = this._x; v4._y = this._y; _root.control.DepthHitEffect += 1; _root.ufo.Damage(); _root.S_HITSHIELD(); if (this.ID == 0) { this.removeMovieClip(); } if (this.ID == 1) { this.life == 500; } } if (this.ID == 1) { this.trailcounter += 1; } if (this.trailcounter == 3) { var v3 = this.attachMovie('EffectSmoke', 'smoke' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._yscale = random(50) + 125; v3._xscale = 130; v3._x = -30; v3.vX = -6; _root.control.DepthHitEffect += 1; this.trailcounter = 0; } }; v2.Destroy = function () { var v3 = _root.attachMovie('EffectSmoke', 'shot_death' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._yscale = 45; v3._xscale = 45; v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation; v3.gotoAndPlay(31); _root.control.DepthHitEffect += 1; this.removeMovieClip(); }; v2.life = 0; ASSetPropFlags(_global.PlasmaShot.prototype, null, 1); } #endinitclip } movieClip 2406 __Packages.Projectile { #initclip if (!_global.Projectile) { var v1 = function () { super(); }; _global.Projectile = v1; _global.Projectile extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this.xForce > 6) { this.xForce = 6; } if (this.xForce < -6) { this.xForce = -6; } if (_root.truck.Sucked == true or _root.truck.Fling == true) { if (this.Flying == true && this._x > _root.truck._x - 35 && this._x < _root.truck._x + 35 && this._y > _root.truck._y - 30 && this._y < _root.truck._y + 2) { this.Destroy(); } } if (this.Flying == true) { this.rads = this.Rot * 0.0174532925199433; this.speedx = this.xForce * Math.sin(this.rads); this.speedy = -17 * Math.cos(this.rads); this._x += this.speedx; this._y += this.speedy; if (this.direction == 0 && this.Rot < 180) { this.Rot += this.rotSpeed; } if (this.direction == 1 && this.Rot > -180) { this.Rot -= this.rotSpeed; } } if (this._y > _root.control.Floor - 7 && this.Flying == true) { this._y = _root.control.Floor - 7; if (this.Type == 0) { this.Rot = 180; this.gotoAndPlay(15); this.StopProjectile(); } if (this.Type == 1) { this.SplitBoots(); } if (this.Type == 2) { this.Dust(); this.removeMovieClip(); } } for (var v3 in _root.control.Obstacles) { if (this.Flying == true && this.speedy > 0 && this._y > _root.control.Obstacles[v3]._y - (_root.control.Obstacles[v3].Height + 20) && this._y < _root.control.Obstacles[v3]._y - _root.control.Obstacles[v3].Height && this._x < _root.control.Obstacles[v3]._x + _root.control.Obstacles[v3].Width && this._x > _root.control.Obstacles[v3]._x - _root.control.Obstacles[v3].Width) { this._y = _root.control.Obstacles[v3]._y - (_root.control.Obstacles[v3].Height + 20) - 7; this.Rot = 180; this.gotoAndPlay(15); this.StopProjectile(); if (this.Type == 1) { this._y = _root.control.Obstacles[v3]._y - (_root.control.Obstacles[v3].Height + 20); this.SplitBoots(); } if (this.Type == 2) { this.Dust(); this.removeMovieClip(); } } } if (this._currentframe == 9) { this.gotoAndPlay(1); } if (this._currentframe == 21) { this.stop(); } if (this._currentframe == 39) { this.gotoAndPlay(25); } if (this._currentframe == 58) { this.gotoAndPlay(45); } if (this.life > 0) { this.life += 1; } if (this.life > 30) { this._alpha -= 5; } if (this.life == 50) { this.removeMovieClip(); } if (this.Flying == true && this._y < _root.ufo._y + 18 && this._y > _root.ufo._y - 18 && this._x < _root.ufo._x + 30 && this._x > _root.ufo._x - 30 && _root.control.Dead == false) { var v4 = _root.attachMovie('EffectHit', 'hit' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v4._rotation = this.Rot; v4._x = this._x; v4._y = this._y; _root.control.DepthHitEffect += 1; _root.ufo.Damage(); this.Destroy(); _root.S_HITSHIELD(); } if (this.Type == 0 && this._rotation != this.Rot) { this._rotation = this.Rot; } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; v2.StopProjectile = function () { this.Flying = false; this.life = 1; }; v2.SplitBoots = function () { this.Dust(); this.Boot(); this.Boot(); this.removeMovieClip(); }; v2.Boot = function () { var v3 = _root.attachMovie('Projectile', 'boot_seperate' + _root.control.DepthProjectile, _root.control.DepthProjectile); v3._x = this._x; v3._y = this._y - 2; v3.xForce = this.xForce * 0.5; v3.rotSpeed = random(4) + 7; v3.gotoAndPlay(45); v3.Type = 2; v3.direction = this.direction; if (this.direction == 0) { v3.Rot = 25; } if (this.direction == 1) { v3.Rot = -25; } _root.control.DepthProjectile += 1; }; v2.Dust = function () { var v3 = _root.attachMovie('EffectSmoke', 'dust' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y; v3.gotoAndPlay(15); _root.control.DepthHitEffect += 1; }; v2.Destroy = function () { var v3 = _root.attachMovie('EffectSmoke', 'shot_death' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._yscale = 45; v3._xscale = 45; v3._x = this._x; v3._y = this._y; v3._rotation = this._rotation; v3.gotoAndPlay(31); _root.control.DepthHitEffect += 1; this.removeMovieClip(); }; v2.Flying = true; v2.life = 0; v2.Type = 0; ASSetPropFlags(_global.Projectile.prototype, null, 1); } #endinitclip } movieClip 2407 __Packages.SpaceStation { #initclip if (!_global.SpaceStation) { var v1 = function () { super(); }; _global.SpaceStation = v1; _global.SpaceStation extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this.ID == 1 && this._currentframe != _root.global.UpgradeHP + 4) { this.gotoAndStop(_root.global.UpgradeHP + 4); } if (this.ID == 2) { if (this.counter > 0) { this.counter += 1; } if (this.counter < 25 && this._alpha < 100) { this._alpha += 10; } if (this.counter > 140 && this._alpha > 0) { this._alpha -= 10; } if (this.counter == 150) { this.removeMovieClip(); _root.global.Unlocked = 7; _root.menu_control.Entry = 1; } } if (this.ID == 3) { if (this.counter > -700) { this.counter -= 1; } if (this.counter == -700) { this.counter = 700; } this._x = this.counter; } }; ASSetPropFlags(_global.SpaceStation.prototype, null, 1); } #endinitclip } movieClip 2408 __Packages.TractorBeam { #initclip if (!_global.TractorBeam) { var v1 = function () { super(); }; _global.TractorBeam = v1; _global.TractorBeam extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(_root.global.UpgradeSuction + 1); this._alpha = 0; this.stop(); }; v2.onEnterFrame = function () { this._x = _root.ufo._x; this._y = _root.ufo._y + 5; this._rotation = this.RotationCurrent; if (_root.global.ControlMouse == true) { if (_root._ymouse > this._y && _root.ufo.Control == true) { this.RotationTarget = -Math.atan2(_root._xmouse - this._x, _root._ymouse - this._y) / 0.0174532925199433; } } if (_root.global.ControlMouse == false) { if (_root.ufo.Control == true) { if (Key.isDown(39)) { this.RotationTarget -= 3.5; } if (Key.isDown(37)) { this.RotationTarget += 3.5; } } } if (this.RotationTarget < -40) { this.RotationTarget = -40; } if (this.RotationTarget > 40) { this.RotationTarget = 40; } this.RotationCurrent += (this.RotationTarget - this.RotationCurrent) / 3; this.BeamAngle = -(_root.tractor_beam.RotationCurrent / 57.27); if (_root.global.ControlMouse == true) { this.onMouseDown = function () { if (this.BeamCounter == 0 && _root.ufo.Control == true) { this.BeamCounter = 1; } }; this.onMouseUp = function () { this.BeamCounter = 0; }; } if (_root.global.ControlMouse == false) { if (Key.isDown(32)) { if (this.BeamCounter == 0 && _root.ufo.Control == true) { this.BeamCounter = 1; } } if (!Key.isDown(32)) { this.BeamCounter = 0; } } if (this.BeamOn == false && _root.ufo.Control == true && this.BeamCounter > 0) { this.BeamOn = true; _root.S_BEAM(); } if (this.BeamOn == true && this.BeamCounter == 0) { this.BeamOn = false; _root.ufo.Load = 0; _root.control.MultiplierSub = 0; _root.control.MultiplierCurrent = 1; _root.control.UpdateMultiplierCurrent(); _root.hud_load.TargetScale = 0; _root.ufo.StackDistance = 0; _root.snd_beam.stop('S_BEAM'); } if (this.BeamOn == true && this.Transparency < 100) { this.Transparency += 20; } if (this.BeamOn == false && this.Transparency > 0) { this.Transparency -= 20; } if (this._alpha != this.Transparency / 2) { this._alpha = this.Transparency / 2; } this.dx = _root.beam_end._x - this._x; this.dy = _root.beam_end._y - this._y; this._yscale = Math.sqrt(this.dx * this.dx + this.dy * this.dy) / 6; }; v2.BeamAngle = 0; v2.RotationTarget = 0; v2.RotationCurrent = 0; v2.BeamOn = false; v2.Transparency = 0; v2.BeamCounter = 0; ASSetPropFlags(_global.TractorBeam.prototype, null, 1); } #endinitclip } movieClip 2409 __Packages.Truck { #initclip if (!_global.Truck) { var v1 = function () { super(); }; _global.Truck = v1; _global.Truck extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._y = _root.control.Floor + 35; if (_root.control.TruckStopped == false && this.ID != 2) { _root.control.TruckStopped = true; this.Halt = true; } if (this.Direction == 0) { this._x = -55; this.vX = 11; } if (this.Direction == 1) { this._x = _root.control.LevelWidth + 55; this._xscale = -100; this.vX = -11; } this.GenerateAbductable(); this.GenerateAbductable(); this.GenerateAbductable(); this.GenerateAbductable(); this.GenerateAbductable(); if (this.ID == 2) { this.GenerateAbductable(); this.GenerateAbductable(); this.GenerateAbductable(); this.GenerateAbductable(); } }; v2.onEnterFrame = function () { if (this._currentframe == 5) { this.gotoAndPlay(1); } if (this._currentframe == 28) { this.gotoAndPlay(11); } if (this._currentframe == 34) { this.gotoAndPlay(30); } this._x += this.vX; if (this._x > _root.control.LevelWidth + 60) { this.removeMovieClip(); } if (this._x < -60) { this.removeMovieClip(); } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } if (_root.rock1.vY > 15 or _root.rock1.vX < -15 or _root.rock1.vX > 15) { if (this.hitTest(_root.rock1)) { this.Explode(); _root.rock1.vX *= 0.5; _root.rock1.vY *= -0.6; } } if (_root.rock2.vY > 15 or _root.rock2.vX < -15 or _root.rock2.vX > 15) { if (this.hitTest(_root.rock2)) { this.Explode(); _root.rock2.vX *= 0.5; _root.rock2.vY *= -0.6; } } if (_root.rock3.vY > 15 or _root.rock3.vX < -15 or _root.rock3.vX > 15) { if (this.hitTest(_root.rock3)) { this.Explode(); _root.rock3.vX *= 0.5; _root.rock3.vY *= -0.6; } } if (_root.rock4.vY > 15 or _root.rock4.vX < -15 or _root.rock4.vX > 15) { if (this.hitTest(_root.rock4)) { this.Explode(); _root.rock4.vX *= 0.5; _root.rock4.vY *= -0.6; } } if (_root.rock5.vY > 15 or _root.rock5.vX < -15 or _root.rock5.vX > 15) { if (this.hitTest(_root.rock5)) { this.Explode(); _root.rock5.vX *= 0.5; _root.rock5.vY *= -0.6; } } if (this.vX == 0) { var v3 = _root.attachMovie('Abductable', 'truck', _root.control.DepthAbductable); v3._x = this._x; v3._y = this._y; v3.Type = 15; v3.vX = 0; v3.vY = 0; v3.aiTimer = 0; v3.aiAttackRange = false; v3.DropOffPoint = 0; v3.AbductionSpeed = 1; v3.Height = 0; v3.Weight = 3; v3.ParametersSet = true; v3.Load = 20; if (this.ID == 1) { v3.gotoAndStop(1003); } if (this.ID == 3) { v3.gotoAndStop(1004); } if (this.Direction == 1) { v3._xscale = -100; } _root.control.DepthAbductable += 1; this.removeMovieClip(); } if (this.Halt == true) { if (this.Direction == 0 && this._x > _root.control.LevelWidth - 250 && this.vX > 0) { this.vX -= 0.5; } if (this.Direction == 1 && this._x < 250 && this.vX < 0) { this.vX += 0.5; } if (this.vX == 0) { this.stop(); } } }; v2.GenerateAbductable = function () { if (_root.control.HumanStock > 0) { var v3 = _root.attachMovie('Abductable', 'abductable' + _root.control.DepthAbductable, _root.control.DepthAbductable); if (this.ID == 1) { if (this.Direction == 0) { v3._x = this._x - this.HumanPosition * 13 + 10; } if (this.Direction == 1) { v3._x = this._x + this.HumanPosition * 13 - 10; } v3._y = this._y - 18; v3.Random = random(100); } if (this.ID == 2) { if (this.HumanPosition < 5) { if (this.Direction == 0) { v3._x = this._x - this.HumanPosition * 13 + 15; } if (this.Direction == 1) { v3._x = this._x + this.HumanPosition * 13 - 15; } v3._y = this._y - 24; } if (this.HumanPosition >= 5) { if (this.Direction == 0) { v3._x = this._x - (this.HumanPosition - 5) * 13 + 10; } if (this.Direction == 1) { v3._x = this._x + (this.HumanPosition - 5) * 13 - 10; } v3._y = this._y - 17; } v3.Random = 110; } if (this.ID == 3) { if (this.Direction == 0) { v3._x = this._x - 10; } if (this.Direction == 1) { v3._x = this._x + 10; } v3._y = this._y - 10; v3.Random = random(100); v3._yscale = 2; } v3.ID = _root.control.DepthAbductable - 100000; v3.vX = this.vX; if (this.Direction == 0) { v3.DropOffPoint = random(_root.control.LevelWidth - 200) + 25; } if (this.Direction == 1) { v3.DropOffPoint = random(_root.control.LevelWidth - 200) + 175; } _root.control.Humans += 1; _root.control.HumanStock -= 1; this.HumanPosition += 1; _root.control.DepthAbductable += 1; } }; v2.Explode = function () { _root.control.UpdateMultiplier(); _root.control.UpdateMultiplier(); var v4 = _root.attachMovie('BiPlaneExplode', 'truck_explosion' + _root.control.TruckDestroyed, _root.control.DepthHitEffect); v4._y = this._y - 10; _root.control.TruckDestroyed += 1; _root.control.DepthHitEffect += 1; if (this.ID != 2) { v4._x = this._x; } if (this.ID == 2) { v4._x = this._x - 28; var v3 = _root.attachMovie('EffectHit', 'hit' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._rotation = random(360); v3._x = this._x + 23; v3._y = this._y - 18; v3._xscale = 140; v3._yscale = 140; v3.gotoAndPlay(20); _root.control.DepthHitEffect += 1; } if (this.Halt == true) { _root.control.TruckStopped = false; } this.removeMovieClip(); }; v2.HumanPosition = 1; ASSetPropFlags(_global.Truck.prototype, null, 1); } #endinitclip } movieClip 2410 __Packages.TubeClaw { #initclip if (!_global.TubeClaw) { var v1 = function () { super(); }; _global.TubeClaw = v1; _global.TubeClaw extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this._x += this.vX / 5; if (this.Life < 16) { this.Life += 1; } if (this.Life < 16 && this.vX < 0) { this.vX += 3; } if (this.Life == 16 && _root.control.FirstClaw == true) { _root.control.FirstClaw = false; this.Life = 100; } if (this.Life == 100) { _root.control.GenerateClaw(); } if (this.Life >= 100 && this.Life < 130) { this.Life += 1; } if (this.Life >= 100 && this.Life < 109 && this.vX > -25) { this.vX -= 3; } if (this.Life >= 110 && this.Life < 130 && this.vX < 0) { this.vX += 3; } if (this.Life >= 105 && this.Life < 115) { this._y += 2; } if (this.Life == 114 && this.Current == false) { this.Current = true; _root.control.TubeLid = true; } if (this.Fill >= _root.control.FillAmount && _root.control.TubeLid == true) { _root.control.TubeLid = false; this.Current = false; this.Fill = 0; this.Life = 2000; _root.control.FirstClaw = true; } if (this.Life >= 2000) { this.Life += 1; } if (this.Life >= 2000 && this.Life < 2030 && this.vX > -30) { this.vX -= 1; } if (this.Life > 2010 && this.Life < 2032) { this._y -= 1; } if (this.Life > 2030 && this.vX < -20) { this.vX += 1.5; } if (this.Life > 2035) { this._alpha -= 10; } if (this.Life >= 2045) { _root.control.Score += 1; _root.control.UpdateScore(); _root.S_SCORE(); var v3 = 1; while (v3 < _root.control.Claws.length) { if (_root.control.Claws[v3] == this) { _root.control.Claws = _root.control.Claws.slice(v3); break; } ++v3; } trace(_root.control.Claws); this.removeMovieClip(); } if (_root.control.ConvertInstant == true) { if (this.Fill > 0) { _root.control.GibLeftOvers += this.Fill; } this.removeMovieClip(); } }; v2.Fill = 0; v2.Current = false; v2.Life = 0; v2.vX = -45; ASSetPropFlags(_global.TubeClaw.prototype, null, 1); } #endinitclip } movieClip 2411 __Packages.UFO { #initclip if (!_global.UFO) { var v1 = function () { super(); }; _global.UFO = v1; _global.UFO extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (_root.global.UpgradeSpeed == 0) { this.vStraight = 8; this.vDiagonal = 6; this.Acc = 0.75; this.Dec = 0.25; } if (_root.global.UpgradeSpeed == 1) { this.vStraight = 10; this.vDiagonal = 7.5; this.Acc = 1; this.Dec = 0.5; } if (_root.global.UpgradeSpeed == 2) { this.vStraight = 12; this.vDiagonal = 9; this.Acc = 1.25; this.Dec = 0.75; } if (_root.global.UpgradeSpeed == 3) { this.vStraight = 14; this.vDiagonal = 10.5; this.Acc = 1.5; this.Dec = 1; } if (_root.global.UpgradeSpeed == 4) { this.vStraight = 16; this.vDiagonal = 12; this.Acc = 2; this.Dec = 1.25; } if (_root.global.UpgradeHP == 0) { this.HPMax = 50; } if (_root.global.UpgradeHP == 1) { this.HPMax = 60; } if (_root.global.UpgradeHP == 2) { this.HPMax = 70; } if (_root.global.UpgradeHP == 3) { this.HPMax = 80; } this.HP = this.HPMax; }; v2.onEnterFrame = function () { if (this.Control == true) { if (_root.global.ControlMouse == true) { if (Key.isDown(38) or Key.isDown(87)) { this.dUp = 1; } else { this.dUp = 0; } if (Key.isDown(40) or Key.isDown(83)) { this.dDown = 1; } else { this.dDown = 0; } if (Key.isDown(37) or Key.isDown(65)) { this.dLeft = 1; } else { this.dLeft = 0; } if (Key.isDown(39) or Key.isDown(68)) { this.dRight = 1; } else { this.dRight = 0; } } if (_root.global.ControlMouse == false) { if (Key.isDown(87)) { this.dUp = 1; } else { this.dUp = 0; } if (Key.isDown(83)) { this.dDown = 1; } else { this.dDown = 0; } if (Key.isDown(65)) { this.dLeft = 1; } else { this.dLeft = 0; } if (Key.isDown(68)) { this.dRight = 1; } else { this.dRight = 0; } } if (this.dUp == 1 && this.vY > this.vStraight * -1 && this.dLeft == 0 && this.dRight == 0) { this.vY -= this.Acc; } if (this.dDown == 1 && this.vY < this.vStraight && this.dLeft == 0 && this.dRight == 0) { this.vY += this.Acc; } if (this.dLeft == 1 && this.vX > this.vStraight * -1 && this.dUp == 0 && this.dDown == 0) { this.vX -= this.Acc; } if (this.dRight == 1 && this.vX < this.vStraight && this.dUp == 0 && this.dDown == 0) { this.vX += this.Acc; } if (this.dUp == 1 && this.dLeft == 1 && this.vY > this.vDiagonal * -1) { this.vY -= this.Acc; } if (this.dUp == 1 && this.dLeft == 1 && this.vX > this.vDiagonal * -1) { this.vX -= this.Acc; } if (this.dUp == 1 && this.dRight == 1 && this.vY > this.vDiagonal * -1) { this.vY -= this.Acc; } if (this.dUp == 1 && this.dRight == 1 && this.vX < this.vDiagonal) { this.vX += this.Acc; } if (this.dDown == 1 && this.dLeft == 1 && this.vY < this.vDiagonal) { this.vY += this.Acc; } if (this.dDown == 1 && this.dLeft == 1 && this.vX > this.vDiagonal * -1) { this.vX -= this.Acc; } if (this.dDown == 1 && this.dRight == 1 && this.vY < this.vDiagonal) { this.vY += this.Acc; } if (this.dDown == 1 && this.dRight == 1 && this.vX < this.vDiagonal) { this.vX += this.Acc; } } if (_root.control.Dead == false) { this._x += this.vX; this._y += this.vY; } if (this.vX > 0 && this.DeathCounter == 0) { this.vX -= this.Dec; } if (this.vX < 0 && this.DeathCounter == 0) { this.vX += this.Dec; } if (_root.control.TimerIntro == 0 && _root.control.End == false && this.DeathCounter == 0) { if (this.vY > 0) { this.vY -= this.Dec; } if (this.vY < 0) { this.vY += this.Dec; } } if (_root.control.TimerIntro > 0 && this.vY > 0) { this.vY -= 0.25; } if (this.dUp == 0 && this.dDown == 0 && this.vY > this.Dec * -1 && this.vY < this.Dec && this.Control == true) { this.vY = 0; } if (this.dLeft == 0 && this.dRight == 0 && this.vX > this.Dec * -1 && this.vX < this.Dec && this.Control == true) { this.vX = 0; } if (this._x > _root.control.LevelWidth - 20) { this._x = _root.control.LevelWidth - 20; this.vX = 0; } if (this._x < 20) { this._x = 20; this.vX = 0; } if (this._y < 65 && this.DeathCounter == 0 && _root.control.TimerIntro == 0 && _root.control.End == false) { this._y = 65; this.vY = 0; } if (this._y > _root.control.Floor - 20) { this._y = _root.control.Floor - 20; this.Destroy(); this.vY = 0; } for (var v4 in _root.control.Obstacles) { if (this._y > _root.control.Obstacles[v4]._y - (_root.control.Obstacles[v4].Height + 20) && this._y < _root.control.Obstacles[v4]._y - _root.control.Obstacles[v4].Height && this._x < _root.control.Obstacles[v4]._x + _root.control.Obstacles[v4].Width && this._x > _root.control.Obstacles[v4]._x - _root.control.Obstacles[v4].Width) { this.Destroy(); this.vY = this.vStraight * -0.5; } } for (v4 in _root.control.Obstacles) { if (this._x > _root.control.Obstacles[v4]._x - _root.control.Obstacles[v4].Width - 20 && this._x < _root.control.Obstacles[v4]._x && this._y > _root.control.Obstacles[v4]._y - _root.control.Obstacles[v4].Height) { this.vX = this.vStraight * -0.5; } } for (v4 in _root.control.Obstacles) { if (this._x < _root.control.Obstacles[v4]._x + _root.control.Obstacles[v4].Width + 20 && this._x > _root.control.Obstacles[v4]._x && this._y > _root.control.Obstacles[v4]._y - _root.control.Obstacles[v4].Height) { this.vX = this.vStraight * 0.5; } } if (_root.global.Stage == 5 && _root.robot.robot_head.HP > 0 && this.HP > 0) { if (this._x > _root.robot._x - 40 && this._x < _root.robot._x + 40 && this._y < _root.robot._y + 40 && this._y > _root.robot._y - 40) { var v5 = _root.attachMovie('EffectHit', 'hit' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v5._rotation = random(360); v5._x = this._x; v5._y = this._y; _root.control.DepthHitEffect += 1; _root.S_HITSHIELD(); this.Damage(); _root.robot.robot_head.HP -= 0.1; } } this.DamageRecovery == 35; 34; 32; 29; if (25 && _root.control.End == false) { this.DamageSpinGo(); } if (this.DamageRecovery == 20) { _root.ufo_body.RotationTarget = 0; } if (this.DamageRecovery > 0) { this.DamageRecovery -= 1; } if (this.DamageRecovery == 20 && this.Control == false) { _root.ufo_shield.Activate(); if (_root.control.End == false) { this.Control = true; } } if (this.HP <= 0 && this.DeathCounter == 0) { this.DeathCounter = 4; this.Control = false; _root.ufo_light.gotoAndStop(20); _root.control.AIFunction = false; this.vY -= 15; _root.control.hud_shield_static.removeMovieClip(); _root.control.hud_shield.removeMovieClip(); _root.pinpoint.removeMovieClip(); _root.control.DepthFader = 1000050; _root.control.TubeFader = 1; if (_root.global.Stage == 5) { _root.V_ROBOHAHAHA(); } } if (this.DeathCounter > 0 && this.vY < 20) { this.vY += 1; } if (this.DeathCounter == 4 && _root.control.Dead == false) { this.DamageRecovery = 35; var v3 = _root.attachMovie('EffectSmoke', 'smoke' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._x = this._x; v3._y = this._y; v3._xscale = random(50) + 125; v3._yscale = v3._xscale; _root.control.DepthHitEffect += 1; } if (this.DeathCounter > 0) { this.DeathCounter -= 1; } if (this.DeathCounter == 1) { this.DeathCounter = 4; } if (this.StackDistance > 0 && _root.tractor_beam.BeamOn == false) { this.StackDistance = 0; } }; v2.Damage = function () { if (this.DamageRecovery == 0 && _root.control.End == false && this.Invulnerable == false) { _root.snd_beam.stop('S_BEAM'); _root.S_HIT(); _root.V_DAMAGE(); this.Control = false; this.DamageRecovery = 35; _root.tractor_beam.BeamOn = false; _root.ufo_light.gotoAndPlay(20); if (_root.ufo_body.Direction == true) { this.DamageSpin = true; } if (_root.ufo_body.Direction == false) { this.DamageSpin = false; } _root.control.MultiplierSub = 0; _root.control.MultiplierCurrent = 1; _root.control.UpdateMultiplierCurrent(); if (_root.global.Stage > 0) { this.HP -= 10; } _root.control.hud_shield._xscale = Math.round((this.HP / this.HPMax) * 100); this.Load = 0; this.StackDistance = 0; _root.control.hud_load.TargetScale = 0; } }; v2.DamageSpinGo = function () { if (this.DamageSpin == true) { _root.ufo_body.RotationTarget = this.DamageRecovery + 25 + this.vY * 5; } if (this.DamageSpin == false) { _root.ufo_body.RotationTarget = (this.DamageRecovery + 25) * -1 + this.vY * 5; } this.DamageSpin = !this.DamageSpin; }; v2.Destroy = function () { if (this.DeathCounter > 0 && _root.control.Dead == false) { _root.ufo_beam_base.removeMovieClip(); _root.tractor_beam.removeMovieClip(); _root.ufo_light.removeMovieClip(); _root.ufo_body.removeMovieClip(); _root.ufo_shield.removeMovieClip(); var v3 = _root.attachMovie('ExplosionCircle', 'explosion_circle', 15000); v3._x = this._x; v3._y = this._y; _root.S_PLAYERDEATH(); _root.control.End = true; _root.control.EndAll(); _root.control.Score = 0; _root.control.UpdateScore(); _root.control.Dead = true; } }; v2.vX = 0; v2.vY = 0; v2.Control = true; v2.DamageRecovery = 0; v2.DamageSpin = false; v2.DeathCounter = 0; v2.Load = 0; v2.StackDistance = 0; v2.Invulnerable = false; v2.dUp = 0; v2.dDown = 0; v2.dLeft = 0; v2.dRight = 0; ASSetPropFlags(_global.UFO.prototype, null, 1); } #endinitclip } movieClip 2412 __Packages.UFOBeamBase { #initclip if (!_global.UFOBeamBase) { var v1 = function () { super(); }; _global.UFOBeamBase = v1; _global.UFOBeamBase extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(_root.global.UpgradeLoadLimit + 1); }; v2.onEnterFrame = function () { this._x = _root.ufo._x; this._y = _root.ufo._y + 5; this._rotation = _root.tractor_beam._rotation; }; ASSetPropFlags(_global.UFOBeamBase.prototype, null, 1); } #endinitclip } movieClip 2413 __Packages.UFOBody { #initclip if (!_global.UFOBody) { var v1 = function () { super(); }; _global.UFOBody = v1; _global.UFOBody extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (_root.global.UpgradeHP == 1) { this.AnimFrame = 35; } if (_root.global.UpgradeHP == 2) { this.AnimFrame = 65; } if (_root.global.UpgradeHP == 3) { this.AnimFrame = 95; } }; v2.onEnterFrame = function () { this._x = _root.ufo._x; this._y = _root.ufo._y; if (_root.ufo.Control == true) { if (_root.ufo.dLeft == 1 && _root.ufo.dRight == 0) { this.RotationTarget = -25; } if (_root.ufo.dRight == 1 && _root.ufo.dLeft == 0) { this.RotationTarget = 25; } if (_root.ufo.dLeft == 0 && _root.ufo.dRight == 0) { this.RotationTarget = 0; } if (_root.ufo.dLeft == 1 && _root.ufo.dRight == 1) { this.RotationTarget = 0; } } if (_root.control.TimerIntro == 0) { this._rotation += (this.RotationTarget - this._rotation) / 8; } if (this._rotation < 0.5 && this._rotation > 0 && this.RotationTarget == 0) { this._rotation = 0; } if (this._rotation > -0.5 && this._rotation < 0 && this.RotationTarget == 0) { this._rotation = 0; } if (_root.ufo.vX >= 1 or _root.ufo.vX <= -1) { this.AnimFrame += Math.round(_root.ufo.vX * 3 / _root.ufo.vStraight); } if (_root.ufo.vX < 0 && this.Direction == false) { this.Direction = true; } if (_root.ufo.vX > 0 && this.Direction == true) { this.Direction = false; } if (_root.ufo.vX < 1 && this.Direction == false) { this.AnimFrame += 1; } if (_root.ufo.vX > -1 && this.Direction == true) { this.AnimFrame -= 1; } if (this.AnimFrame > 20 && this.AnimFrame < 25) { this.AnimFrame = 1; } if (this.AnimFrame < 1) { this.AnimFrame = 20; } if (this.AnimFrame > 50 && this.AnimFrame < 55) { this.AnimFrame = 31; } if (this.AnimFrame > 25 && this.AnimFrame < 31) { this.AnimFrame = 50; } if (this.AnimFrame > 80 && this.AnimFrame < 85) { this.AnimFrame = 61; } if (this.AnimFrame > 55 && this.AnimFrame < 61) { this.AnimFrame = 80; } if (this.AnimFrame > 110) { this.AnimFrame = 91; } if (this.AnimFrame > 85 && this.AnimFrame < 91) { this.AnimFrame = 110; } this.gotoAndStop(this.AnimFrame); }; v2.Direction = false; v2.AnimFrame = 1; ASSetPropFlags(_global.UFOBody.prototype, null, 1); } #endinitclip } movieClip 2414 __Packages.UFOLight { #initclip if (!_global.UFOLight) { var v1 = function () { super(); }; _global.UFOLight = v1; _global.UFOLight extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { this._x = _root.ufo._x; this._y = _root.ufo._y; this._rotation = _root.ufo_body._rotation; if (this._currentframe == 18) { this.gotoAndPlay(1); } }; ASSetPropFlags(_global.UFOLight.prototype, null, 1); } #endinitclip } movieClip 2415 __Packages.UFOShield { #initclip if (!_global.UFOShield) { var v1 = function () { super(); }; _global.UFOShield = v1; _global.UFOShield extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.stop(); this._visible = false; }; v2.onEnterFrame = function () { if (this.Life > 0) { this._x = _root.ufo._x; this._y = _root.ufo._y; } if (this.Life > 0) { this.Life -= 5; } if (this.Life < 75) { this._alpha = this.Life; } if (this.On == true && this.Life == 0) { this.stop(); this._visible = false; this.On = false; } if (this.Life > 100 && this._alpha < 75) { this._alpha += 25; } }; v2.Activate = function () { this._visible = true; this._alpha = 0; this._x = _root.ufo._x; this._y = _root.ufo._y; this.On = true; this.Life = 200; this.play(); }; v2.On = false; v2.Life = 0; ASSetPropFlags(_global.UFOShield.prototype, null, 1); } #endinitclip } movieClip 2416 __Packages.MenuLocation { #initclip if (!_global.MenuLocation) { var v1 = function () { super(); }; _global.MenuLocation = v1; _global.MenuLocation extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.gotoAndStop(this.ID - 19); }; v2.onEnterFrame = function () { if (this.Locked == false) { if (this.ID == 21 && _root.selectionbox21.Highlighted == true) { this.gotoAndStop(this.ID - 13); } if (this.ID == 22 && _root.selectionbox22.Highlighted == true) { this.gotoAndStop(this.ID - 13); } if (this.ID == 23 && _root.selectionbox23.Highlighted == true) { this.gotoAndStop(this.ID - 13); } if (this.ID == 24 && _root.selectionbox24.Highlighted == true) { this.gotoAndStop(this.ID - 13); } if (this.ID == 25 && _root.selectionbox25.Highlighted == true) { this.gotoAndStop(this.ID - 13); } if (this.ID == 21 && _root.selectionbox21.Highlighted == false) { this.gotoAndStop(this.ID - 19); } if (this.ID == 22 && _root.selectionbox22.Highlighted == false) { this.gotoAndStop(this.ID - 19); } if (this.ID == 23 && _root.selectionbox23.Highlighted == false) { this.gotoAndStop(this.ID - 19); } if (this.ID == 24 && _root.selectionbox24.Highlighted == false) { this.gotoAndStop(this.ID - 19); } if (this.ID == 25 && _root.selectionbox25.Highlighted == false) { this.gotoAndStop(this.ID - 19); } } if (this.Locked == true && this._currentframe != 1) { this.gotoAndStop(1); } }; v2.Locked = false; ASSetPropFlags(_global.MenuLocation.prototype, null, 1); } #endinitclip } movieClip 2417 __Packages.GiantRobot { #initclip if (!_global.GiantRobot) { var v1 = function () { super(); }; _global.GiantRobot = v1; _global.GiantRobot extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.ID == 0) { this._y = this.StartingHeight; this.roboShot = 0; this.roboShot2 = 0; } if (this.ID == 1) { this.HP = 100; } if (this.ID == 2) { this._rotation = -25; } if (this.ID == 3) { this._rotation = -50; this.life = 140; } if (this.ID == 4) { this._rotation = 70; this.life = 140; } if (this.ID == 5) { this._rotation = -50; } if (this.ID == 6) { this._rotation = 45; this.life = 140; } if (this.ID == 9) { this._rotation = -45; } if (this.ID == 7) { this._rotation = 75; } if (this.ID == 10) { this._rotation = 25; this.life = 140; } }; v2.onEnterFrame = function () { if (_root.robot.robot_head.HP > 0) { this.life += 1; if (this.ID == 0) { this._x += this.vX; this._y += this.vY * 0.03; if (this.life == 15) { _root.S_ROBOSTEP(); } if (this.life >= 0 && this.life < 30) { this.vY -= 2; } if (this.life >= 30 && this.life < 90) { this.vY += 1; } if (this.life >= 90 && this.life < 100) { this.vY += 28; } if (this.life >= 100 && this.life < 105) { this.vY -= 30; } if (this.life == 105) { this._y = this.StartingHeight; this.vY = 0; this.steps += 1; } if (this.life == 120 && this.steps > 0 && this.steps < 3 && this.remainingShots > 0 && _root.ufo.HP > 0) { _root.V_ROBODESTROY(); var v3 = _root.attachMovie('PlasmaShot', 'rocket_punch' + _root.control.DepthProjectile, _root.control.DepthProjectile); v3.trailcounter = 0; v3.ID = 1; v3.speed = 10; v3.gotoAndPlay(10); if (_root.robot.robot_legA1.life == 120) { if (this.direction == 0) { v3._x = _root.robot._x + 122; v3._y = _root.robot._y + 20; v3._rotation = -125; v3.direction = -125; } if (this.direction == 1) { v3._x = _root.robot._x - 122; v3._y = _root.robot._y + 20; v3._rotation = 125; v3.direction = 125; } _root.robot.robot_armB1.robot_armB2.robot_fistB.removeMovieClip(); } if (_root.robot.robot_legB1.life == 120) { if (this.direction == 0) { v3._x = _root.robot._x + 110; v3._y = _root.robot._y + 18; v3._rotation = -125; v3.direction = -125; } if (this.direction == 1) { v3._x = _root.robot._x - 110; v3._y = _root.robot._y + 18; v3._rotation = 125; v3.direction = 125; } _root.robot.robot_armA1.robot_armA2.robot_fistA.removeMovieClip(); } var v6 = _root.attachMovie('EffectSmoke', 'rising_flame' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v6._x = v3._x; v6._y = v3._y; v6._rotation = v3._rotation; v6._xscale = 210; v6._yscale = 160; v6.gotoAndPlay(31); _root.control.DepthHitEffect += 1; _root.control.DepthProjectile += 1; this.fistfired = true; } if (this.life == 140) { this.life = 0; } if (this.steps == 3) { this.fistfired = false; this._xscale *= -1; _root.control.GenerateRobotFist(); if (_root.robot.robot_head.HP <= 80 && _root.robot.robot_head.HP > 60) { this.remainingShots = 1; } if (_root.robot.robot_head.HP <= 60 && _root.robot.robot_head.HP > 40) { this.remainingShots = 1; _root.control.HumanTarget = 13; } if (_root.robot.robot_head.HP <= 40 && _root.robot.robot_head.HP > 20) { this.remainingShots = 2; _root.control.HumanTarget = 16; } if (_root.robot.robot_head.HP <= 20 && _root.robot.robot_head.HP > 0) { this.remainingShots = 2; _root.control.HumanTarget = 19; } } if (this.steps == 3 && this.direction == 1) { this.direction = 0; this.steps = 0; } if (this.steps == 3 && this.direction == 0) { this.direction = 1; this.steps = 0; } if (this.direction == 1) { if (this.life >= 0 && this.life < 15) { this._x -= 0.5; } if (this.life >= 15 && this.life < 25) { this._x -= 1; } if (this.life >= 25 && this.life < 95) { this._x -= 5; } if (this.life >= 95 && this.life < 105) { this._x -= 7; } } if (this.direction == 0) { if (this.life >= 0 && this.life < 15) { this._x += 0.5; } if (this.life >= 15 && this.life < 25) { this._x += 1; } if (this.life >= 25 && this.life < 95) { this._x += 5; } if (this.life >= 95 && this.life < 105) { this._x += 7; } } if (this.life == 95 && this.steps == 0) { _root.robot.robot_head.gotoAndPlay(10); } if (_root.robot.robot_head._currentframe == 13) { _root.robot.robot_head.stop(); } if (this.life == 105 && this.steps == 1 && _root.ufo.HP > 0) { this.roboShot = 5; this.roboShot2 = 5; } if (this.life == 135 && this.steps == 1) { _root.robot.robot_head.gotoAndPlay(14); } if (_root.robot.robot_head._currentframe == 16) { _root.robot.robot_head.gotoAndStop(1); } if (this.roboShot > 0) { this.roboShot -= 1; } if (this.roboShot == 1 && this.roboShot2 > 0) { var v5 = _root.attachMovie('Abductable', 'rock' + this.roboShot2, _root.control.DepthTruck); if (this.direction == 0) { v5._x = this._x + 30; v5.vX = 6 + this.roboShot2 * 9; } if (this.direction == 1) { v5._x = this._x - 30; v5.vX = -6 - this.roboShot2 * 9; } v5.vY = -20 + random(5); v5._y = this.StartingHeight + 4; v5.Type = 11; v5.Fling = true; v5.gotoAndStop(1005); _root.control.DepthTruck += 1; this.roboShot2 -= 1; this.roboShot = 5; } } if (this.ID == 2 or this.ID == 4) { if (this.life >= 0 && this.life < 15) { this._rotation += 0.5; } if (this.life >= 15 && this.life < 30) { this._rotation += 1.3; } if (this.life >= 30 && this.life < 60) { this._rotation += 1.6; } if (this.life >= 60 && this.life < 75) { this._rotation += 2.4; } if (this.life >= 75 && this.life < 85) { this._rotation += 1; } if (this.life >= 85 && this.life < 100) { this._rotation += 0.25; } if (this.life >= 100 && this.life < 105) { this._rotation -= 6; } if (this.life == 105) { this._rotation = 70; } if (this.life >= 140 && this.life < 165) { this._rotation -= 0.15; } if (this.life >= 165 && this.life < 195) { this._rotation -= 0.6; } if (this.life >= 195 && this.life < 230) { this._rotation -= 1.3; } if (this.life >= 230 && this.life < 245) { this._rotation -= 1.7; } if (this.life == 245) { this._rotation = -25; } } if (this.ID == 3 or this.ID == 5) { if (this.life >= 0 && this.life < 25) { this._rotation -= 0.1; } if (this.life >= 25 && this.life < 50) { this._rotation -= 0.6; } if (this.life >= 50 && this.life < 55) { this._rotation -= 0.2; } if (this.life >= 55 && this.life < 65) { this._rotation += 0.2; } if (this.life >= 65 && this.life < 80) { this._rotation += 0.9; } if (this.life >= 80 && this.life < 95) { this._rotation += 0.35; } if (this.life >= 95 && this.life < 105) { this._rotation -= 0.45; } if (this.life == 105) { this._rotation = -50; } if (this.life >= 140 && this.life < 150) { this._rotation -= 0.6; } if (this.life >= 150 && this.life < 170) { this._rotation -= 1.4; } if (this.life >= 170 && this.life < 190) { this._rotation -= 0.7; } if (this.life >= 190 && this.life < 200) { this._rotation += 1.2; } if (this.life >= 200 && this.life < 212) { this._rotation += 3; } if (this.life >= 212 && this.life < 225) { this._rotation += 1.2; } if (this.life >= 225 && this.life < 238) { this._rotation += 0.3; } if (this.life >= 238 && this.life < 242) { this._rotation -= 1.5; } if (this.life >= 242 && this.life < 245) { this._rotation -= 4; } if (this.life == 245) { this._rotation = -50; } } if (this.ID == 6 or this.ID == 9) { if (this.life >= 0 && this.life < 20) { this._rotation += 0.2; } if (this.life >= 20 && this.life < 40) { this._rotation += 0.4; } if (this.life >= 40 && this.life < 60) { this._rotation += 0.6; } if (this.life >= 60 && this.life < 70) { this._rotation += 1.3; } if (this.life >= 70 && this.life < 80) { this._rotation += 1.7; } if (this.life >= 80 && this.life < 95) { this._rotation += 2; } if (this.life >= 95 && this.life < 100) { this._rotation += 0.9; } if (this.life >= 100 && this.life < 105) { this._rotation += 0.2; } if (this.life == 105) { this._rotation = 45; } if (this.life >= 140 && this.life < 160) { this._rotation -= 0.2; } if (this.life >= 160 && this.life < 180) { this._rotation -= 0.4; } if (this.life >= 180 && this.life < 200) { this._rotation -= 0.6; } if (this.life >= 200 && this.life < 210) { this._rotation -= 1.3; } if (this.life >= 210 && this.life < 220) { this._rotation -= 1.7; } if (this.life >= 220 && this.life < 235) { this._rotation -= 2; } if (this.life >= 235 && this.life < 240) { this._rotation -= 0.9; } if (this.life >= 240 && this.life < 245) { this._rotation -= 0.2; } if (this.life == 245) { this._rotation = -45; } } if (this.ID == 7 or this.ID == 10) { if (this.life >= 0 && this.life < 95) { this._rotation -= 0.75; } if (this.life >= 95 && this.life < 100) { this._rotation += 1; } if (this.life >= 100 && this.life < 105) { this._rotation += 4; } if (this.life >= 140 && this.life < 235) { this._rotation += 0.75; } if (this.life >= 235 && this.life < 240) { this._rotation -= 1; } if (this.life >= 240 && this.life < 245) { this._rotation -= 4; } if (this.life == 105) { this._rotation = 25; } if (this.life == 245) { this._rotation = 75; } } if (this.ID == 20) { var v4 = _root.attachMovie('EffectSmoke', 'dust' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v4._x = this._x - 15 + random(30); v4._y = this._y; v4.gotoAndPlay(15); v4.vX = -4 + random(9); v4.vY = -8 + random(5); if (this.life >= 0 && this.life < 3) { v4._xscale = 250; v4._yscale = 400; } if (this.life >= 3) { v4._xscale = 300; v4._yscale = 200; } v4._alpha = 40; _root.control.DepthHitEffect += 1; if (this.life == 60) { this.removeMovieClip(); } } if (this.ID == 2 && this.life == 105) { this.DustGenerator(); } if (this.ID == 4 && this.life == 105) { this.DustGenerator(); } if (this.life == 280) { this.life = 0; } } if (this.ID == 1) { if (this._currentframe == 25 && this.HP > 0) { this.gotoAndStop(1); } if (this._currentframe < 20 && this.HP > 0) { if (this.hitTest(_root.rock1)) { if (_root.rock1.BombTimer > 25 or _root.rock1.Sucked == true) { this.Damage(); _root.rock1.Detonate(); } } if (this.hitTest(_root.rock2)) { if (_root.rock2.BombTimer > 25 or _root.rock2.Sucked == true) { this.Damage(); _root.rock2.Detonate(); } } if (this.hitTest(_root.rock3)) { if (_root.rock3.BombTimer > 25 or _root.rock3.Sucked == true) { this.Damage(); _root.rock3.Detonate(); } } if (this.hitTest(_root.rock4)) { if (_root.rock4.BombTimer > 25 or _root.rock4.Sucked == true) { this.Damage(); _root.rock4.Detonate(); } } if (this.hitTest(_root.rock5)) { if (_root.rock5.BombTimer > 25 or _root.rock5.Sucked == true) { this.Damage(); _root.rock5.Detonate(); } } if (this._x > _root.truck._x - 35 && this._x < _root.truck._x + 35 && this._y > _root.truck._y - 30 && this._y < _root.truck._y + 2) { this.Damage(); _root.truck.DamageTruck(); } } if (this._currentframe == 26 && this.HP <= 0) { this.gotoAndPlay(20); } if (this.HP <= 0) { _root.ufo.Invulnerable = true; this.DeathCounter1 += 1; this.DeathCounter2 += 1; } if (this.DeathCounter2 == 2 or this.DeathCounter2 == 4 && this.DeathCounter1 < 85) { v6 = _root.attachMovie('EffectSmoke', 'robo_explode' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v6._x = _root.robot._x - 40 + random(80); v6._y = _root.robot._y - 50 + random(90); v6._xscale = 175; v6._yscale = 175; v6.gotoAndPlay(31); _root.control.DepthHitEffect += 1; } if (this.DeathCounter2 == 4 && this.DeathCounter1 < 80) { _root.S_SHOTGUN(); this.DeathCounter2 = 0; var v7 = _root.robot.robot_legA1.attachMovie('EffectSmoke', 'robo_explode' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v7._y = 50; v7.gotoAndPlay(31); v7._yscale = 500; _root.control.DepthHitEffect += 1; var v10 = _root.robot.robot_legB1.attachMovie('EffectSmoke', 'robo_explode' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v10._y = 50; v10.gotoAndPlay(31); v10._yscale = 500; _root.control.DepthHitEffect += 1; var v9 = _root.robot.robot_armA1.attachMovie('EffectSmoke', 'robo_explode' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v9._y = 35; v9.gotoAndPlay(31); v9._yscale = 300; _root.control.DepthHitEffect += 1; var v8 = _root.robot.robot_armB1.attachMovie('EffectSmoke', 'robo_explode' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v8._y = 35; v8.gotoAndPlay(31); v8._yscale = 300; _root.control.DepthHitEffect += 1; } if (this.DeathCounter1 == 25) { _root.V_ROBONO(); } if (this.DeathCounter1 == 75) { _root.S_ROBOEXPLODE(); var v11 = _root.attachMovie('ExplosionCircle', 'explosion_circle_robot', 15001); v11._x = _root.robot._x; v11._y = _root.robot._y; _root.robot.robot_armA1.vX = 15; _root.robot.robot_armB1.vX = -15; _root.robot.robot_armA1.robot_armA2.robot_fistA.removeMovieClip(); _root.robot.robot_armA1.robot_armA2.vX = 20; _root.robot.robot_armB1.robot_armB2.vX = -20; _root.robot.robot_armB1.robot_armB2.robot_fistB.removeMovieClip(); _root.robot.robot_legA1.vX = 12; _root.robot.robot_legB1.vX = -12; _root.robot.robot_legA1.robot_legA2.vX = 16; _root.robot.robot_legB1.robot_legB2.vX = -16; _root.robot.robot_head._visible = false; } } if (_root.robot.robot_head.HP <= 0 && _root.robot.robot_head.DeathCounter1 >= 75) { if (_root.robot.robot_head.DeathCounter1 == 75) { this.vY = -12; } this._x += this.vX; this._y += this.vY * 0.5; if (this.vY < 30) { this.vY += 1; } } if (_root.robot.robot_head.DeathCounter1 == 110) { _root.control.End = true; _root.control.DepthFader = 1000050; _root.control.TubeFader = 1; _root.control.AIFunction = false; _root.ufo.Control = false; _root.control.EndAll(); _root.control.HumansKilled = _root.control.HumanTotal; } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; v2.DustGenerator = function () { var v3 = _root.attachMovie('GiantRobot', 'dust_generator', 910); if (_root.robot.direction == 1) { if (this.ID == 2) { v3._x = _root.robot._x - 200; v3._y = this.StartingHeight + 230; } if (this.ID == 4) { v3._x = _root.robot._x - 215; v3._y = this.StartingHeight + 228; } } if (_root.robot.direction == 0) { if (this.ID == 2) { v3._x = _root.robot._x + 200; v3._y = this.StartingHeight + 230; } if (this.ID == 4) { v3._x = _root.robot._x + 215; v3._y = this.StartingHeight + 228; } } v3.gotoAndStop(8); v3.ID = 20; v3._visible = false; }; v2.Damage = function () { _root.V_ROBOOW(); this.gotoAndPlay(20); this.HP -= 3; }; v2.life = 0; v2.vX = 0; v2.vY = 0; v2.StartingHeight = 205; v2.direction = 1; v2.steps = 0; v2.fistfired = false; v2.DeathCounter1 = 0; v2.DeathCounter2 = 0; ASSetPropFlags(_global.GiantRobot.prototype, null, 1); } #endinitclip } movieClip 2418 __Packages.ControlTitle { #initclip if (!_global.ControlTitle) { var v1 = function () { super(); }; _global.ControlTitle = v1; _global.ControlTitle extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.FadeIn(); var v3 = _root.attachMovie('SpaceStation', 'title_image', 13); v3.gotoAndStop(8); _root.global.Mus = true; _root.MUSIC1(); }; v2.onEnterFrame = function () { if (this.IntroCounter < 100) { this.IntroCounter += 1; } if (this.IntroCounter == 2) { _root.selectionB_format.color = 16747584; _root.selectionB_format.font = 'my_font2'; var v10 = _root.createTextField('trading', 31, 0, 434, 700, 40); v10.selectable = false; v10.text = 'Trading under Lo-Jen ltd. Copyright(c) 2009. All Rights Reserved.'; v10.embedFonts = true; v10.setTextFormat(_root.selectionB_format); _root.selectionB_format.color = 0; var v6 = _root.createTextField('trading_shadow', 30, 0, 436, 700, 40); v6.selectable = false; v6.text = 'Trading under Lo-Jen ltd. Copyright(c) 2009. All Rights Reserved.'; v6.embedFonts = true; v6.setTextFormat(_root.selectionB_format); v6._alpha = 65; _root.selectionB_format.color = 16766976; _root.selectionB_format.font = 'my_font'; } if (this.IntroCounter == 15) { this.GenerateChoiceMenu(); var v3 = _root.attachMovie('Text', 'sound_switch', 27); v3._x = 635; v3._y = 55; v3.ID = 50; v3._alpha = 0; var v7 = _root.attachMovie('Text', 'sound_splodge', 25); v7._x = v3._x - 6; v7._y = v3._y; v7.ID = 100; v7._visible = false; v7.gotoAndStop(14); var v4 = _root.attachMovie('Text', 'control_switch', 28); v4._x = 630; v4._y = 127; v4.ID = 55; v4._alpha = 0; var v8 = _root.attachMovie('Text', 'control_splodge', 26); v8._x = v4._x; v8._y = v4._y; v8.ID = 100; v8._visible = false; v8.gotoAndStop(14); var v11 = _root.attachMovie('Logo', 'logo', 29); v11._x = 97; v11._y = 392; v11.stop(); v11._alpha = 0; var v5 = _root.attachMovie('SpeechBubble2', 'bubble', 33); v5._x = 307; v5._y = 170; v5.stop(); v5._alpha = 0; var v9 = _root.attachMovie('SpeechBubble2', 'bubble_point', 32); v9._x = v5._x + 155; v9.gotoAndStop(2); v9._alpha = 0; v9._yscale = 60; v10 = _root.createTextField('comment', 34, v5._x + 10, v5._y + 10, 250, 100); v10.wordWrap = true; v10.selectable = false; v10.embedFonts = true; v10._alpha = 0; if (_root.global.SoundOn == true) { v3.gotoAndStop(9); } if (_root.global.SoundOn == false) { v3.gotoAndStop(10); } if (_root.global.ControlMouse == true) { v4.gotoAndStop(12); } if (_root.global.ControlMouse == false) { v4.gotoAndStop(13); } } if (_root.sound_splodge._visible == true && _root.global.SoundOn == true) { _root.comment.text = 'SOUND ON!\nThe sounds are currently on. Good!'; this.UpdateText(); } if (_root.sound_splodge._visible == true && _root.global.SoundOn == false) { _root.comment.text = 'SOUND OFF!\nNo sounds. It\'s so quiet and lonely...'; this.UpdateText(); } if (_root.control_splodge._visible == true && _root.global.ControlMouse == true) { _root.comment.text = 'KEYBOARD AND MOUSE!\nI highly recommend using this control setting.'; this.UpdateText(); } if (_root.control_splodge._visible == true && _root.global.ControlMouse == false) { _root.comment.text = 'KEYBOARD ONLY! Don\'t use this control setting unless you have one of those nasty little tracker pads instead of a proper mouse.'; this.UpdateText(); } if (_root.choicebox1.Highlighted == true) { _root.comment.text = 'NEW GAME!\nThis will overwrite any saved data you have so be careful.'; this.UpdateText(); } if (_root.choicebox2.Highlighted == true) { _root.comment.text = 'CONTINUE!\nContinue from where you last left off.'; this.UpdateText(); } if (_root.choicebox3.Highlighted == true) { _root.comment.text = 'HOW TO PLAY!\nThis tells you how to play the game.'; this.UpdateText(); } if (_root.choicebox3.Highlighted == false && _root.choicebox2.Highlighted == false && _root.choicebox1.Highlighted == false && _root.control_splodge._visible == false && _root.sound_splodge._visible == false && this.commentAlpha > 0) { this.commentAlpha -= 10; } _root.comment._alpha = this.commentAlpha; _root.bubble._alpha = this.commentAlpha; _root.bubble_point._alpha = this.commentAlpha; if (this.Move > 0) { this.Move -= 20; _root.title_image._x -= 140; _root.tutorial_image1._x -= 140; _root.tutorial_image2._x -= 140; _root.tutorial_image3._x -= 140; } if (this.Move == 0) { _root.global.SelectedMenu = false; this.NextButton(); this.Move = null; } if (this.textAlpha < 50) { this.textAlpha += 1; } if (this.textAlpha == 50) { this.textAlpha = 0; } if (this.textAlpha < 25) { _root.auto_save._alpha = this.textAlpha + 50; } if (this.textAlpha >= 25) { _root.auto_save._alpha = this.textAlpha * -1 + 100; } }; v2.FadeIn = function () { var v2 = _root.attachMovie('BlackOut', 'fadein', 9000000); v2.counter = 100; }; v2.FadeOut = function () { var v2 = _root.attachMovie('BlackOut', 'fadeout', 9000001); v2.FadeIn = false; v2.counter = 0; v2._alpha = 0; _root.logo.Fade = 100; }; v2.GenerateChoiceMenu = function () { _root.global.SelectionBoxNumber = 72; var v2 = 0; while (v2 < 3) { _root.global.SelectionBoxNumber += 1; var v3 = _root.attachMovie('MenuSelectionBox', 'choicebox' + (v2 + 1), _root.global.SelectionBoxNumber + 1000000); v3.gotoAndStop(6); v3._x = 285 + v2 * 25; v3._y = 285 + v2 * 52; v3.ID = v2 + 15; _root.global.SelectedMenu = false; ++v2; } }; v2.Go = function () { _root.trading.removeTextField(); _root.trading_shadow.removeTextField(); if (this.Goto == 0) { this.FadeIn(); this.IntroCounter = 0; this.RemoveImages(); _root.stars1.removeMovieClip(); _root.stars2.removeMovieClip(); _root.auto_save.removeTextField(); var v6 = _root.attachMovie('SpaceStation', 'title_image', 13); v6.gotoAndStop(8); } if (this.Goto == 1) { this.RemoveImages(); _root.global.Reset(); _root.global.SceneType = 3; _root.global.SetScene = false; _root.title_image.removeMovieClip(); } if (this.Goto == 2) { _root.global.SceneType = 3; _root.global.SetScene = false; this.RemoveImages(); _root.title_image.removeMovieClip(); } if (this.Goto == 3) { var v3 = 0; while (v3 < 2) { var v4 = _root.attachMovie('SpaceStation', 'stars' + (1 + v3), 5 + v3); v4.gotoAndStop(14); v4._x = v3 * 700; v4.ID = 3; v4.counter = v3 * 700; this.FadeIn(); if (_root.global.ControlMouse == true) { _root.title_image.gotoAndStop(9); } if (_root.global.ControlMouse == false) { _root.title_image.gotoAndStop(19); } this.CurrentImage = 0; this.NextButton(); _root.global.Played = true; var v5 = _root.createTextField('auto_save', 750, 0, 15, 700, 40); v5.selectable = false; v5.text = 'THIS GAME AUTO-SAVES SO FEEL FREE TO LEAVE AND COME BACK ANYTIME!'; v5.embedFonts = true; v5.setTextFormat(_root.selectionB_format); ++v3; } } }; v2.NextButton = function () { var v2 = _root.attachMovie('MenuSelectionBox', 'next', 100); v2.gotoAndStop(3); v2._x = 365; v2._y = 405; v2.ID = 19; }; v2.NextImage = function () { this.CurrentImage += 1; this.Move = 100; this.FadeOut(); }; v2.RemoveImages = function () { _root.tutorial_image1.removeMovieClip(); _root.tutorial_image2.removeMovieClip(); _root.tutorial_image3.removeMovieClip(); _root.bubble.removeMovieClip(); _root.bubble_point.removeMovieClip(); _root.comment.removeTextField(); }; v2.UpdateText = function () { _root.txtSpeech_format.size = 13; _root.comment.setTextFormat(_root.txtSpeech_format); _root.txtSpeech_format.size = 17; _root.bubble.numLines = _root.comment.bottomScroll - _root.comment.scroll + 1; _root.bubble.myMaxScroll = _root.comment.maxscroll; _root.bubble.myTotalLines = _root.bubble.numLines + (_root.bubble.myMaxScroll - 1); _root.bubble._yscale = 25 + _root.bubble.myTotalLines * 15; _root.bubble._y = _root.bubble.myTotalLines * -10 + 180; _root.bubble_point._y = _root.bubble._y + _root.bubble.myTotalLines * 15 + 25; _root.comment._y = _root.bubble._y + 10; this.commentAlpha = 100; }; v2.IntroCounter = 0; v2.GameStartTutorial = false; v2.textAlpha = 0; v2.commentAlpha = 0; ASSetPropFlags(_global.ControlTitle.prototype, null, 1); } #endinitclip } movieClip 2419 __Packages.BlackOut { #initclip if (!_global.BlackOut) { var v1 = function () { super(); }; _global.BlackOut = v1; _global.BlackOut extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this.FadeIn == true && this.counter > 0) { this.counter -= 5; } if (this.FadeIn == false && this.counter < 100) { this.counter += 5; } this._alpha = this.counter; if (this.FadeIn == true && this.counter == 0) { this.removeMovieClip(); } if (this.FadeIn == false && this.counter == 100) { if (this.ID == 0) { this.removeMovieClip(); _root.title_control.Go(); _root.title_control.RemoveImages(); } if (this.ID == 1) { this.removeMovieClip(); _root.title_control.RemoveImages(); _root.global.SetScene = false; _root.global.Stage = 0; _root.global.SceneType = 5; _root.stars1.removeMovieClip(); _root.stars2.removeMovieClip(); _root.title_image.removeMovieClip(); _root.auto_save.removeTextField(); } } }; v2.FadeIn = true; v2.ID = 0; ASSetPropFlags(_global.BlackOut.prototype, null, 1); } #endinitclip } movieClip 2420 __Packages.Logo { #initclip if (!_global.Logo) { var v1 = function () { super(); }; _global.Logo = v1; _global.Logo extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this._alpha < 100 && this.Fade == 150) { this._alpha += 10; } if (this.Fade <= 100) { this.Fade -= 10; this._alpha = this.Fade; } if (this.Fade == 0) { this.removeMovieClip(); } if (_root._xmouse > -80 && _root._xmouse < this._x + 80 && _root._ymouse > this._y - 30 && _root._ymouse < this._y + 30) { this.gotoAndStop(2); } else { this.gotoAndStop(1); } if (this.cooldown > 0) { --this.cooldown; } this.onMouseDown = function () { if (this._currentframe == 2 && this.Fade == 150 && this.cooldown == 0) { this.getURL('http://www.odditygames.co.uk', '_blank'); this.cooldown = 30; } }; }; v2.Fade = 150; v2.cooldown = 0; ASSetPropFlags(_global.Logo.prototype, null, 1); } #endinitclip } movieClip 2421 __Packages.BloodSplat { #initclip if (!_global.BloodSplat) { var v1 = function () { super(); }; _global.BloodSplat = v1; _global.BloodSplat extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { ++this.life; if (this.life >= 45) { this._alpha -= 3; } if (this._alpha <= 0) { this.removeMovieClip(); } }; v2.life = 0; ASSetPropFlags(_global.BloodSplat.prototype, null, 1); } #endinitclip } movieClip 2422 __Packages.PinPoint { #initclip if (!_global.PinPoint) { var v1 = function () { super(); }; _global.PinPoint = v1; _global.PinPoint extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (_root.tractor_beam.BeamOn == false && this.exist == false) { this.exist = true; } if (_root.tractor_beam.BeamOn == true && this.exist == true) { this.exist = false; } if (this.exist == true && this._alpha < 80) { this._alpha += 20; } if (this.exist == false && this._alpha > 0) { this._alpha -= 20; } this._x = _root.ufo._x + this.BeamDistance * Math.sin(_root.tractor_beam.BeamAngle); this.dx = this._x - _root.ufo._x; this.dy = this._y - _root.ufo._y + 5; this.BeamDistance = Math.sqrt(this.dx * this.dx + this.dy * this.dy); }; v2.BeamDistance = 100; v2.dx = 0; v2.dy = 0; v2.exist = false; ASSetPropFlags(_global.PinPoint.prototype, null, 1); } #endinitclip } movieClip 2423 __Packages.SpeechBubble2 { #initclip if (!_global.SpeechBubble2) { var v1 = function () { super(); }; _global.SpeechBubble2 = v1; _global.SpeechBubble2 extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.SpeechBubble2.prototype, null, 1); } #endinitclip } movieClip 2424 __Packages.Burnt { #initclip if (!_global.Burnt) { var v1 = function () { super(); }; _global.Burnt = v1; _global.Burnt extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this.lifeMax = random(20) + 30; this.ChangeDirection(); this.ChangeDirection(); }; v2.onEnterFrame = function () { if (this._currentframe == 13) { this.gotoAndPlay(1); } this._x += this.vX; ++this.life; ++this.directionTimer; if (this._currentframe == 26) { this.GenerateGib(); } if (this._currentframe == 31) { this.removeMovieClip(); _root.control.Humans -= 1; _root.control.HumansKilled += 1; } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } if (this.vX < 0 && this._xscale != -100) { this._xscale = -100; } if (this.vX > 0 && this._xscale != 100) { this._xscale = 100; } if (this.directionTimer == this.directionTarget) { this.ChangeDirection(); } if (this._x < 0) { this._x = 0; this.vX *= -1; this._xscale *= -1; } if (this._x > _root.control.LevelWidth) { this._x = _root.control.LevelWidth; this.vX *= -1; } for (var v3 in _root.control.ObstacleBarriers) { if (this.hitTest(_root.control.ObstacleBarriers[v3])) { if (_root.control.ObstacleBarriers[v3].side == true && this.vX > 0) { this.vX *= -1; } if (_root.control.ObstacleBarriers[v3].side == false && this.vX < 0) { this.vX *= -1; } } } if (this.life == this.lifeMax) { this.gotoAndPlay(15); this.vX = 0; } }; v2.ChangeDirection = function () { this.vX *= -1; this.directionTimer = 0; this.directionTarget = 8 + random(5); }; v2.GenerateGib = function () { var v3 = _root.attachMovie('Abductable', 'abductable' + _root.control.DepthGib, _root.control.DepthGib); v3._visible = false; v3._x = this._x; v3._y = this._y; v3._xscale = random(20) + 150; v3._yscale = random(20) + 70; v3.Type = random(2) + 26; v3.aiTimer = 0; _root.control.DepthGib += 1; }; v2.life = 0; v2.directionTimer = 0; ASSetPropFlags(_global.Burnt.prototype, null, 1); } #endinitclip } movieClip 2425 __Packages.TireFire { #initclip if (!_global.TireFire) { var v1 = function () { super(); }; _global.TireFire = v1; _global.TireFire extends MovieClip; var v2 = v1.prototype; ASSetPropFlags(_global.TireFire.prototype, null, 1); } #endinitclip } movieClip 2426 __Packages.Fire { #initclip if (!_global.Fire) { var v1 = function () { super(); }; _global.Fire = v1; _global.Fire extends MovieClip; var v2 = v1.prototype; v2.onEnterFrame = function () { if (this._currentframe == 14) { this.gotoAndPlay(1); } if (this.Type == 1) { if (this._yscale > 0) { this._yscale -= 0.2; } if (this._yscale <= 50) { this._alpha -= 1; } if (this._alpha <= 0) { this.removeMovieClip(); } } if (this.Type == 2) { ++this.life; if (this.life == 300) { this.removeMovieClip(); } } if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; v2.life = 0; ASSetPropFlags(_global.Fire.prototype, null, 1); } #endinitclip } movieClip 2427 __Packages.HouseDamage { #initclip if (!_global.HouseDamage) { var v1 = function () { super(); }; _global.HouseDamage = v1; _global.HouseDamage extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { if (this.Type == 0) { var v3 = this.attachMovie('EffectSmoke', 'house_dust' + _root.control.DepthHitEffect, _root.control.DepthHitEffect); v3._xscale = 300; v3._yscale = 300; v3.gotoAndPlay(15); _root.control.DepthHitEffect += 1; } if (this.Type == 1) { this.vY = random(15) - 20; this.vX = random(30) - 15; this._xscale = random(35) + 65; this._yscale = this._xscale; } }; v2.onEnterFrame = function () { if (this.Type == 1) { this._x += this.vX * 0.5; this._y += this.vY; if (this.vY < 20 && this.fade == 150) { this.vY += 1; } if (this._y > _root.control.Floor) { this.Bounce(); } if (this.fade <= 100) { this.fade -= 10; this._alpha = this.fade; } if (this.fade <= 0) { this.removeMovieClip(); } this._rotation += this.vX; } }; v2.Bounce = function () { this._y = _root.control.Floor; if (this.vY < 6) { this.vY = 0; this.vX = 0; this.fade = 100; } if (this.vY >= 6) { this.vY *= -0.6; this.vX *= 0.7; } }; v2.SmokeTimer = 0; v2.fade = 150; ASSetPropFlags(_global.HouseDamage.prototype, null, 1); } #endinitclip } movieClip 2428 __Packages.Cloud { #initclip if (!_global.Cloud) { var v1 = function () { super(); }; _global.Cloud = v1; _global.Cloud extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._alpha = 70; if (this.ID == 0) { this._y = 220; } if (this.ID == 1) { this._y = 130; } if (this.ID == 2) { this._y = 250; } if (this.ID == 3) { this._y = 140; } if (this.ID == 4) { this._y = 230; } }; v2.onEnterFrame = function () { this._x = _root.control.ScrollFinal * -0.7 + this.positionX; if (_root.control.TubeFader == 155) { this.removeMovieClip(); } }; ASSetPropFlags(_global.Cloud.prototype, null, 1); } #endinitclip } movieClip 2429 __Packages.Global { #initclip if (!_global.Global) { var v1 = function () { super(); }; _global.Global = v1; _global.Global extends MovieClip; var v2 = v1.prototype; v2.onLoad = function () { this._visible = false; this.myLSO = SharedObject.getLocal('uniqueName'); this.s1Objectives = new Array(0, 0, 0); this.s2Objectives = new Array(0, 0, 0, 0); this.s3Objectives = new Array(0, 0, 0, 0); this.s4Objectives = new Array(0, 0, 0); this.localInfo = SharedObject.getLocal('test'); this.loadGame(); this.Played = false; }; v2.onEnterFrame = function () { if (this.SetScene == false) { _root.Format(); if (this.SceneType == 1) { var v3 = _root.attachMovie('ControlTitle', 'title_control', 2); if (this.myLSO.data.myObj == undefined) { v3.NoSave = true; } } if (this.SceneType == 5) { var v4 = _root.attachMovie('Control', 'control', 1000000); this.ufoLoadLimit = 30 + this.UpgradeLoadLimit * 10; this.ufoSuction = (this.UpgradeSuction + 3) * 0.25; } if (this.SceneType == 3) { this.Stage = 0; var v5 = _root.attachMovie('ControlMenu', 'menu_control', 2); } this.Selected = false; this.SelectedMenu = false; this.SetScene = true; _level0._x = 0; if (this.SceneType != 5 or this.SceneType == 5 && this.Stage > 0) { this.saveGame(); } } }; v2.GenerateChoiceMenu = function () { this.SelectionBoxNumber = 70; var v4 = 0; while (v4 < 2) { this.SelectionBoxNumber += 1; var v3 = _root.attachMovie('MenuSelectionBox', 'choicebox' + (this.SelectionBoxNumber - 70), this.SelectionBoxNumber); v3.gotoAndStop(6); v3._x = 170; v3._y = 165 + (this.SelectionBoxNumber - 70) * 55; v3.ID = this.SelectionBoxNumber - 60; ++v4; } }; v2.saveGame = function () { if (this.myLSO.data.myObj == undefined) { trace('Saved Game'); } else { trace('Overwrote Saved Game'); } this.myObj = {}; this.myObj.objArray = new Array(); this.myObj.objArray[0] = this.Money; this.myObj.objArray[1] = this.ControlMouse; this.myObj.objArray[2] = this.UpgradeSuction; this.myObj.objArray[3] = this.UpgradeLoadLimit; this.myObj.objArray[4] = this.UpgradeHP; this.myObj.objArray[5] = this.UpgradeSpeed; this.myObj.objArray[6] = this.UpgradeGibPurifier; this.myObj.objArray[7] = this.Unlocked; this.myObj.objArray[8] = this.Unlocked2; this.myObj.objArray[9] = this.s1Objectives[0]; this.myObj.objArray[10] = this.s1Objectives[1]; this.myObj.objArray[11] = this.s1Objectives[2]; this.myObj.objArray[12] = this.s2Objectives[0]; this.myObj.objArray[13] = this.s2Objectives[1]; this.myObj.objArray[14] = this.s2Objectives[2]; this.myObj.objArray[15] = this.s2Objectives[3]; this.myObj.objArray[16] = this.s3Objectives[0]; this.myObj.objArray[17] = this.s3Objectives[1]; this.myObj.objArray[18] = this.s3Objectives[2]; this.myObj.objArray[19] = this.s3Objectives[3]; this.myObj.objArray[20] = this.s4Objectives[0]; this.myObj.objArray[21] = this.s4Objectives[1]; this.myObj.objArray[22] = this.s4Objectives[2]; this.myObj.objArray[23] = this.Played; this.myObj.objArray[24] = this.SoundOn; this.myObj.objArray[25] = this.TopMultiplier; this.myLSO.data.myObj = this.myObj; this.myLSO.data.flush(); _root.kongregate.stats.submit('Most Money', this.Money); _root.kongregate.stats.submit('Highest Multiplier', _root.control.Multiplier); }; v2.loadGame = function () { if (this.myLSO.data.myObj == undefined) { trace('No Saved Game'); } else { trace('Loaded Game'); this.Money = this.myLSO.data.myObj.objArray[0]; this.ControlMouse = this.myLSO.data.myObj.objArray[1]; this.UpgradeSuction = this.myLSO.data.myObj.objArray[2]; this.UpgradeLoadLimit = this.myLSO.data.myObj.objArray[3]; this.UpgradeHP = this.myLSO.data.myObj.objArray[4]; this.UpgradeSpeed = this.myLSO.data.myObj.objArray[5]; this.UpgradeGibPurifier = this.myLSO.data.myObj.objArray[6]; this.Unlocked = this.myLSO.data.myObj.objArray[7]; this.Unlocked2 = this.myLSO.data.myObj.objArray[8]; this.s1Objectives[0] = this.myLSO.data.myObj.objArray[9]; this.s1Objectives[1] = this.myLSO.data.myObj.objArray[10]; this.s1Objectives[2] = this.myLSO.data.myObj.objArray[11]; this.s2Objectives[0] = this.myLSO.data.myObj.objArray[12]; this.s2Objectives[1] = this.myLSO.data.myObj.objArray[13]; this.s2Objectives[2] = this.myLSO.data.myObj.objArray[14]; this.s2Objectives[3] = this.myLSO.data.myObj.objArray[15]; this.s3Objectives[0] = this.myLSO.data.myObj.objArray[16]; this.s3Objectives[1] = this.myLSO.data.myObj.objArray[17]; this.s3Objectives[2] = this.myLSO.data.myObj.objArray[18]; this.s3Objectives[3] = this.myLSO.data.myObj.objArray[19]; this.s4Objectives[0] = this.myLSO.data.myObj.objArray[20]; this.s4Objectives[1] = this.myLSO.data.myObj.objArray[21]; this.s4Objectives[2] = this.myLSO.data.myObj.objArray[22]; this.Played = this.myLSO.data.myObj.objArray[23]; this.SoundOn = this.myLSO.data.myObj.objArray[24]; this.TopMultiplier = this.myLSO.data.myObj.objArray[25]; } }; v2.Reset = function () { this.UpgradeSuction = 0; this.UpgradeLoadLimit = 0; this.UpgradeHP = 0; this.UpgradeSpeed = 0; this.UpgradeGibPurifier = 0; this.Money = 0; this.Unlocked = 1; this.Unlocked2 = 0; this.s1Objectives = new Array(0, 0, 0); this.s2Objectives = new Array(0, 0, 0, 0); this.s3Objectives = new Array(0, 0, 0, 0); this.s4Objectives = new Array(0, 0, 0); this.ufoLoadLimit = 30 + this.UpgradeLoadLimit * 10; this.ufoSuction = (this.UpgradeSuction + 3) * 0.25; }; v2.SetScene = false; v2.SceneType = 1; v2.UpgradeSuction = 0; v2.UpgradeLoadLimit = 0; v2.UpgradeHP = 0; v2.UpgradeSpeed = 0; v2.UpgradeGibPurifier = 0; v2.Money = 0; v2.MarketValue = 100; v2.SelectionBoxNumber = 0; v2.Selected = false; v2.SelectedMenu = false; v2.Stage = 0; v2.Unlocked = 1; v2.Unlocked2 = 0; v2.SoundOn = true; v2.uCleared = false; v2.s1Objectives = []; v2.s2Objectives = []; v2.s3Objectives = []; v2.s4Objectives = []; v2.ControlMouse = true; v2.NoSave = true; v2.Played = false; v2.Mus = false; v2.TopMultiplier = 10; ASSetPropFlags(_global.Global.prototype, null, 1); } #endinitclip } movieClip 101 Cloud { #initclip Object.registerClass('Cloud', Cloud); #endinitclip } movieClip 110 Mountain { #initclip Object.registerClass('Mountain', Mountain); #endinitclip } movieClip 114 Sky { #initclip Object.registerClass('Sky', Sky); #endinitclip } movieClip 123 Road { #initclip Object.registerClass('Road', Road); #endinitclip } movieClip 1036 Abductable { #initclip Object.registerClass('Abductable', Abductable); #endinitclip } movieClip 1037 Abducted { #initclip Object.registerClass('Abducted', Abducted); #endinitclip } movieClip 1046 BackgroundAnim { #initclip Object.registerClass('BackgroundAnim', BackgroundAnim); #endinitclip } movieClip 1047 BackupCover { #initclip Object.registerClass('BackupCover', BackupCover); #endinitclip } movieClip 1053 BeamBit { #initclip Object.registerClass('BeamBit', BeamBit); #endinitclip } movieClip 1059 BeamEnd { #initclip Object.registerClass('BeamEnd', BeamEnd); #endinitclip } movieClip 1094 BiPlane { #initclip Object.registerClass('BiPlane', BiPlane); #endinitclip } movieClip 1135 BiPlaneExplode { #initclip Object.registerClass('BiPlaneExplode', BiPlaneExplode); #endinitclip } movieClip 1154 BloodDroplet { #initclip Object.registerClass('BloodDroplet', BloodDroplet); #endinitclip } movieClip 1162 Bullet { #initclip Object.registerClass('Bullet', Bullet); #endinitclip } movieClip 1164 Control { #initclip Object.registerClass('Control', Control); #endinitclip } movieClip 1166 ControlMenu { #initclip Object.registerClass('ControlMenu', ControlMenu); #endinitclip } movieClip 1209 EffectHit { #initclip Object.registerClass('EffectHit', EffectHit); #endinitclip } movieClip 1279 EffectSmoke { #initclip Object.registerClass('EffectSmoke', EffectSmoke); #endinitclip } movieClip 1281 ExplosionCircle { #initclip Object.registerClass('ExplosionCircle', ExplosionCircle); #endinitclip } movieClip 1285 Fader { #initclip Object.registerClass('Fader', Fader); #endinitclip } movieClip 1287 FullCover { #initclip Object.registerClass('FullCover', FullCover); #endinitclip } movieClip 1288 Gib { #initclip Object.registerClass('Gib', Gib); #endinitclip } movieClip 1292 HUDLoad { #initclip Object.registerClass('HUDLoad', HUDLoad); #endinitclip } movieClip 1295 HUDShield { #initclip Object.registerClass('HUDShield', HUDShield); #endinitclip } movieClip 1298 InterfaceBar { #initclip Object.registerClass('InterfaceBar', InterfaceBar); #endinitclip } movieClip 1301 ItemUpgrade { #initclip Object.registerClass('ItemUpgrade', ItemUpgrade); #endinitclip } movieClip 1305 LoadBar { #initclip Object.registerClass('LoadBar', LoadBar); #endinitclip } movieClip 1332 MenuSelectionBox { #initclip Object.registerClass('MenuSelectionBox', MenuSelectionBox); #endinitclip } movieClip 1537 MenuSymbol { #initclip Object.registerClass('MenuSymbol', MenuSymbol); #endinitclip } movieClip 1578 Message { #initclip Object.registerClass('Message', Message); #endinitclip } movieClip 1591 Obstacle { #initclip Object.registerClass('Obstacle', Obstacle); #endinitclip } movieClip 1593 ObstacleBarrier { #initclip Object.registerClass('ObstacleBarrier', ObstacleBarrier); #endinitclip } movieClip 1614 PlasmaShot { #initclip Object.registerClass('PlasmaShot', PlasmaShot); #endinitclip } movieClip 1703 Projectile { #initclip Object.registerClass('Projectile', Projectile); #endinitclip } movieClip 1736 SpaceStation { #initclip Object.registerClass('SpaceStation', SpaceStation); #endinitclip } movieClip 1765 Text { #initclip Object.registerClass('Text', Text); #endinitclip } movieClip 1771 TractorBeam { #initclip Object.registerClass('TractorBeam', TractorBeam); #endinitclip } movieClip 1821 Truck { #initclip Object.registerClass('Truck', Truck); #endinitclip } movieClip 1824 TubeClaw { #initclip Object.registerClass('TubeClaw', TubeClaw); #endinitclip } movieClip 1826 UFO { #initclip Object.registerClass('UFO', UFO); #endinitclip } movieClip 1837 UFOBeamBase { #initclip Object.registerClass('UFOBeamBase', UFOBeamBase); #endinitclip } movieClip 1998 UFOBody { #initclip Object.registerClass('UFOBody', UFOBody); #endinitclip } movieClip 2025 UFOLight { #initclip Object.registerClass('UFOLight', UFOLight); #endinitclip } movieClip 2046 UFOShield { #initclip Object.registerClass('UFOShield', UFOShield); #endinitclip } movieClip 2069 MenuLocation { #initclip Object.registerClass('MenuLocation', MenuLocation); #endinitclip } movieClip 2091 GiantRobot { #initclip Object.registerClass('GiantRobot', GiantRobot); #endinitclip } movieClip 2093 ControlTitle { #initclip Object.registerClass('ControlTitle', ControlTitle); #endinitclip } movieClip 2094 BlackOut { #initclip Object.registerClass('BlackOut', BlackOut); #endinitclip } movieClip 2099 Logo { #initclip Object.registerClass('Logo', Logo); #endinitclip } movieClip 2108 BloodSplat { #initclip Object.registerClass('BloodSplat', BloodSplat); #endinitclip } movieClip 2116 PinPoint { #initclip Object.registerClass('PinPoint', PinPoint); #endinitclip } movieClip 2119 SpeechBubble2 { #initclip Object.registerClass('SpeechBubble2', SpeechBubble2); #endinitclip } movieClip 2176 Burnt { #initclip Object.registerClass('Burnt', Burnt); #endinitclip } movieClip 2235 TireFire { #initclip Object.registerClass('TireFire', TireFire); #endinitclip } movieClip 2265 Fire { #initclip Object.registerClass('Fire', Fire); #endinitclip } movieClip 2284 HouseDamage { #initclip Object.registerClass('HouseDamage', HouseDamage); #endinitclip } frame 3 { function Format() { txt_format.bold = true; txt_format.size = 25; txt_format.color = 16733525; txt_format.font = 'my_font'; txt_format.align = 'center'; score_format.bold = true; score_format.size = 25; score_format.color = 2620671; score_format.font = 'my_font'; score_format.align = 'left'; selectionA_format.bold = true; selectionA_format.size = 15; selectionA_format.color = 12648192; selectionA_format.font = 'my_font3'; selectionA_format.align = 'center'; selectionB_format.bold = false; selectionB_format.size = 17; selectionB_format.color = 16766976; selectionB_format.font = 'my_font'; selectionB_format.align = 'center'; txtMedium_format.bold = true; txtMedium_format.size = 25; txtMedium_format.color = 16580352; txtMedium_format.font = 'my_font'; txtMedium_format.align = 'right'; txtDescription_format.bold = true; txtDescription_format.size = 11; txtDescription_format.color = 13167359; txtDescription_format.font = 'my_font2'; txtDescription_format.align = 'left'; txtBB_format.bold = true; txtBB_format.size = 18; txtBB_format.color = 4784128; txtBB_format.font = 'my_font3'; txtBB_format.align = 'right'; txtUnlock_format.bold = true; txtUnlock_format.size = 17; txtUnlock_format.color = 16776563; txtUnlock_format.font = 'my_font'; txtUnlock_format.align = 'center'; multiplier_format.bold = true; multiplier_format.size = 43; multiplier_format.color = 16773668; multiplier_format.font = 'my_font3'; multiplier_format.align = 'center'; multiplier2_format.bold = true; multiplier2_format.size = 26; multiplier2_format.color = 5266687; multiplier2_format.font = 'my_font3'; multiplier2_format.align = 'center'; txtSpeech_format.bold = true; txtSpeech_format.size = 17; txtSpeech_format.color = 16776563; txtSpeech_format.font = 'my_font3'; txtSpeech_format.align = 'center'; HUD_format.bold = true; HUD_format.size = 21; HUD_format.color = 3034367; HUD_format.font = 'my_font'; HUD_format.align = 'left'; } function MUSIC1() { if (_root.global.SoundOn == true) { mus1.start(0, 9999999); } } function MUSIC2() { if (_root.global.SoundOn == true) { mus2.start(0, 9999999); } } function MUSIC3() { if (_root.global.SoundOn == true) { mus3.start(0, 9999999); } } function S_SPLAT() { var v2 = random(2); if (_root.global.SoundOn == true) { if (v2 == 0) { _root.snd_splat.stop('S_SPLAT'); snd_splat.start(0, 1); } if (v2 == 1) { _root.snd_splat2.stop('S_SPLAT2'); snd_splat2.start(0, 1); } } } function S_ABDUCT() { if (_root.global.SoundOn == true) { snd_abduct.start(0, 1); } } function S_ABDUCTGIB() { if (_root.global.SoundOn == true) { snd_abductgib.start(0, 1); } } function S_HIT() { if (_root.global.SoundOn == true) { snd_hit.start(0, 1); } } function S_PLAYERDEATH() { if (_root.global.SoundOn == true) { snd_playerdeath.start(0, 1); } } function S_PLANEFALL() { if (_root.global.SoundOn == true) { snd_planefall.start(0, 1); } } function S_PLANEEXPLODE() { if (_root.global.SoundOn == true) { snd_planeexplode.start(0, 1); } } function S_ROCKWARNING() { if (_root.global.SoundOn == true) { snd_rockwarning.start(0, 1); } } function M_SELECT() { if (_root.global.SoundOn == true) { snd_select.start(0, 1); } } function M_SELECTED1() { if (_root.global.SoundOn == true) { snd_selected1.start(0, 1); } } function M_SELECTED2() { if (_root.global.SoundOn == true) { snd_selected2.start(0, 1); } } function M_SELECTED3() { if (_root.global.SoundOn == true) { snd_selected3.start(0, 1); } } function S_BEAM() { if (_root.global.SoundOn == true) { snd_beam.start(0, 99999); } } function S_MONEYCOUNT() { if (_root.global.SoundOn == true) { snd_moneycount.start(0, 99999); } } function S_MONEYCOUNTED() { if (_root.global.SoundOn == true) { snd_moneycounted.start(0, 1); } } function S_THROW1() { if (_root.global.SoundOn == true) { snd_throw1.start(0, 1); } } function S_THROW2() { if (_root.global.SoundOn == true) { snd_throw2.start(0, 1); } } function S_SHOTGUN() { if (_root.global.SoundOn == true) { snd_shotgun.start(0, 1); } } function S_ROBOEXPLODE() { _root.snd_robostep.stop('S_ROBOSTEP'); if (_root.global.SoundOn == true) { snd_roboexplode.start(0, 1); } } function S_ROBOSTEP() { if (_root.global.SoundOn == true) { snd_robostep.start(0, 1); } } function V_ROBOOW() { if (_root.global.SoundOn == true) { snd_roboow.start(0, 1); } } function V_ROBONO() { if (_root.global.SoundOn == true) { snd_robono.start(0, 1); } } function V_ROBOHAHAHA() { if (_root.global.SoundOn == true) { snd_robohahaha.start(0, 1); } } function V_ROBODESTROY() { if (_root.global.SoundOn == true) { snd_robodestroy.start(0, 1); } } function S_HITSHIELD() { if (_root.global.SoundOn == true) { snd_hitshield.start(0, 1); } } function S_PLASMASHOT() { if (_root.global.SoundOn == true) { snd_plasmashot.start(0, 1); } } function S_SCORE() { if (_root.global.SoundOn == true) { snd_score.start(0, 1); } } function S_PLAYERENTER() { if (_root.global.SoundOn == true) { snd_playerenter.start(0, 1); } } function S_CRUSHER() { if (_root.global.SoundOn == true) { snd_crusher.start(0, 1); } } function V_COW1() { if (_root.global.SoundOn == true) { snd_cow1.start(0, 1); } } function V_COW2() { if (_root.global.SoundOn == true) { snd_cow2.start(0, 1); } } function S_BURNT() { if (_root.global.SoundOn == true) { snd_burnt.start(0, 1); } } function S_TRUCK() { if (_root.global.SoundOn == true) { snd_truck.start(0, 1); } } function S_ROCK() { var v2 = random(2); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_rock.start(0, 1); } if (v2 == 1) { snd_rock2.start(0, 1); } } } function V_SCREAM() { var v2 = random(9); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v1.start(0, 1); } if (v2 == 1) { snd_v2.start(0, 1); } if (v2 == 2) { snd_v4.start(0, 1); } if (v2 == 3) { snd_v6.start(0, 1); } if (v2 == 4) { snd_v20.start(0, 1); } if (v2 == 5) { snd_v25.start(0, 1); } } } function V_ABDUCTED() { var v2 = random(8); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v3.start(0, 1); } if (v2 == 1) { snd_v7.start(0, 1); } if (v2 == 2) { snd_v8.start(0, 1); } if (v2 == 3) { snd_v21.start(0, 1); } if (v2 == 4) { snd_v22.start(0, 1); } } } function V_DAMAGE() { var v2 = random(2); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v13.start(0, 1); } if (v2 == 1) { snd_v14.start(0, 1); } } } function V_TAUNT() { if (_root.global.SoundOn == true) { snd_v5.start(0, 1); } } function V_AGENT() { if (_root.global.SoundOn == true) { snd_v9.start(0, 1); } } function V_ALIEN() { if (_root.global.SoundOn == true) { snd_v15.start(0, 1); } } function V_ALIEN2() { if (_root.global.SoundOn == true) { snd_v12.start(0, 1); } } function V_ALIEN3() { if (_root.global.SoundOn == true) { snd_v10.start(0, 1); } } function V_ALIEN4() { if (_root.global.SoundOn == true) { snd_v11.start(0, 1); } } function V_AMISH() { if (_root.global.SoundOn == true) { snd_v16.start(0, 1); } } function V_AMISH2() { var v2 = random(2); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v18.start(0, 1); } if (v2 == 1) { snd_v19.start(0, 1); } } } function V_AMISH3() { var v2 = random(5); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v23.start(0, 1); } if (v2 == 1) { snd_v24.start(0, 1); } } } function V_GIRL() { var v2 = random(5); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v26.start(0, 1); } if (v2 == 1) { snd_v27.start(0, 1); } } } function V_GIRL2() { var v2 = random(5); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v28.start(0, 1); } if (v2 == 1) { snd_v29.start(0, 1); } } } function S_BANG() { if (_root.global.SoundOn == true) { snd_bang.start(0, 1); } } function V_AGENT() { var v2 = random(7); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v30.start(0, 1); } if (v2 == 1) { snd_v31.start(0, 1); } if (v2 == 2) { snd_v36.start(0, 1); } } } function V_AGENT2() { var v2 = random(7); if (_root.global.SoundOn == true) { if (v2 == 0) { snd_v33.start(0, 1); } if (v2 == 1) { snd_v9.start(0, 1); } if (v2 == 2) { snd_v35.start(0, 1); } } } function V_ELVIS() { if (_root.global.SoundOn == true) { snd_v34.start(0, 1); } } MochiServices.connect(); stop(); var txt_format = new TextFormat(); var score_format = new TextFormat(); var selectionA_format = new TextFormat(); var selectionB_format = new TextFormat(); var txtMedium_format = new TextFormat(); var txtDescription_format = new TextFormat(); var txtBB_format = new TextFormat(); var txtUnlock_format = new TextFormat(); var txtSpeech_format = new TextFormat(); var multiplier_format = new TextFormat(); var multiplier2_format = new TextFormat(); var HUD_format = new TextFormat(); var snd_v1 = new Sound(); snd_v1.attachSound('V_1'); var snd_v2 = new Sound(); snd_v2.attachSound('V_2'); var snd_v3 = new Sound(); snd_v3.attachSound('V_3'); var snd_v4 = new Sound(); snd_v4.attachSound('V_4'); var snd_v5 = new Sound(); snd_v5.attachSound('V_5'); var snd_v6 = new Sound(); snd_v6.attachSound('V_6'); var snd_v7 = new Sound(); snd_v7.attachSound('V_7'); var snd_v8 = new Sound(); snd_v8.attachSound('V_8'); var snd_v9 = new Sound(); snd_v9.attachSound('V_9'); var snd_v10 = new Sound(); snd_v10.attachSound('V_10'); var snd_v11 = new Sound(); snd_v11.attachSound('V_11'); var snd_v12 = new Sound(); snd_v12.attachSound('V_12'); var snd_v13 = new Sound(); snd_v13.attachSound('V_13'); var snd_v14 = new Sound(); snd_v14.attachSound('V_14'); var snd_v15 = new Sound(); snd_v15.attachSound('V_15'); var snd_v16 = new Sound(); snd_v16.attachSound('V_16'); var snd_v17 = new Sound(); snd_v17.attachSound('V_17'); var snd_v18 = new Sound(); snd_v18.attachSound('V_18'); var snd_v19 = new Sound(); snd_v19.attachSound('V_19'); var snd_v20 = new Sound(); snd_v20.attachSound('V_20'); var snd_v21 = new Sound(); snd_v21.attachSound('V_21'); var snd_v22 = new Sound(); snd_v22.attachSound('V_22'); var snd_v23 = new Sound(); snd_v23.attachSound('V_23'); var snd_v24 = new Sound(); snd_v24.attachSound('V_24'); var snd_v25 = new Sound(); snd_v25.attachSound('V_25'); var snd_v26 = new Sound(); snd_v26.attachSound('V_26'); var snd_v27 = new Sound(); snd_v27.attachSound('V_27'); var snd_v28 = new Sound(); snd_v28.attachSound('V_28'); var snd_v29 = new Sound(); snd_v29.attachSound('V_29'); var snd_v30 = new Sound(); snd_v30.attachSound('V_30'); var snd_v31 = new Sound(); snd_v31.attachSound('V_31'); var snd_v32 = new Sound(); snd_v32.attachSound('V_32'); var snd_v33 = new Sound(); snd_v33.attachSound('V_33'); var snd_v34 = new Sound(); snd_v34.attachSound('V_34'); var snd_v35 = new Sound(); snd_v35.attachSound('V_35'); var snd_v36 = new Sound(); snd_v36.attachSound('V_36'); var snd_bang = new Sound(); snd_bang.attachSound('S_BANG'); var snd_splat = new Sound(); snd_splat.attachSound('S_SPLAT'); var snd_planefall = new Sound(); snd_planefall.attachSound('S_PLANEFALL'); var snd_abduct = new Sound(); snd_abduct.attachSound('S_ABDUCT'); var snd_abductgib = new Sound(); snd_abductgib.attachSound('S_ABDUCTGIB'); var snd_splat2 = new Sound(); snd_splat2.attachSound('S_SPLAT2'); var snd_hit = new Sound(); snd_hit.attachSound('S_HIT'); var snd_playerdeath = new Sound(); snd_playerdeath.attachSound('S_PLAYERDEATH'); var snd_select = new Sound(); snd_select.attachSound('M_SELECT'); var snd_selected1 = new Sound(); snd_selected1.attachSound('M_SELECTED1'); var snd_selected2 = new Sound(); snd_selected2.attachSound('M_SELECTED2'); var snd_selected3 = new Sound(); snd_selected3.attachSound('M_SELECTED3'); var snd_rock = new Sound(); snd_rock.attachSound('S_ROCK'); var snd_rock2 = new Sound(); snd_rock2.attachSound('S_ROCK2'); var snd_rockwarning = new Sound(); snd_rockwarning.attachSound('S_ROCKWARNING'); var snd_planeexplode = new Sound(); snd_planeexplode.attachSound('S_PLANEEXPLODE'); var snd_beam = new Sound(); snd_beam.attachSound('S_BEAM'); var snd_moneycount = new Sound(); snd_moneycount.attachSound('S_MONEYCOUNT'); var snd_moneycounted = new Sound(); snd_moneycounted.attachSound('S_MONEYCOUNTED'); var snd_throw1 = new Sound(); snd_throw1.attachSound('S_THROW1'); var snd_throw2 = new Sound(); snd_throw2.attachSound('S_THROW2'); var snd_shotgun = new Sound(); snd_shotgun.attachSound('S_SHOTGUN'); var snd_plasmashot = new Sound(); snd_plasmashot.attachSound('S_PLASMASHOT'); var snd_crusher = new Sound(); snd_crusher.attachSound('S_CRUSHER'); var snd_playerenter = new Sound(); snd_playerenter.attachSound('S_PLAYERENTER'); var snd_score = new Sound(); snd_score.attachSound('S_SCORE'); var snd_cow1 = new Sound(); snd_cow1.attachSound('V_COW1'); var snd_cow2 = new Sound(); snd_cow2.attachSound('V_COW2'); var snd_roboow = new Sound(); snd_roboow.attachSound('V_ROBOOW'); var snd_robono = new Sound(); snd_robono.attachSound('V_ROBONO'); var snd_robodestroy = new Sound(); snd_robodestroy.attachSound('V_ROBODESTROY'); var snd_robohahaha = new Sound(); snd_robohahaha.attachSound('V_ROBOHAHAHA'); var snd_hitshield = new Sound(); snd_hitshield.attachSound('S_HITSHIELD'); var snd_roboexplode = new Sound(); snd_roboexplode.attachSound('S_ROBOEXPLODE'); var snd_robostep = new Sound(); snd_robostep.attachSound('S_ROBOSTEP'); var snd_burnt = new Sound(); snd_burnt.attachSound('S_BURNT'); var snd_truck = new Sound(); snd_truck.attachSound('S_TRUCK'); var mus1 = new Sound(); mus1.attachSound('MUSIC1'); var mus2 = new Sound(); mus2.attachSound('MUSIC2'); var mus3 = new Sound(); mus3.attachSound('MUSIC3'); } movieClip 2362 Global { #initclip Object.registerClass('Global', Global); #endinitclip }




http://swfchan.com/19/91894/info.shtml
Created: 27/3 -2019 17:34:38 Last modified: 27/3 -2019 17:34:38 Server time: 02/05 -2024 08:02:47