Combined Code
// unknown tag 88 length 153
movieClip 11 {
}
movieClip 15 {
frame 1 {
stop();
}
}
movieClip 19 {
frame 1 {
onRelease = function () {
getURL('http://www.arcadetown.com/index.asp?gameid=searchanddestroythehotspot', 'blank');
};
}
frame 1 {
stop();
}
}
movieClip 20 submit_note {
#initclip
Object.registerClass('submit_note', submit_note);
#endinitclip
}
frame 1 {
var urlString = _root._url;
if (urlString.indexOf('flashgamelicense.com') == -1) {
}
Stage.showMenu = false;
_root._quality = 'HIGH';
saveData = SharedObject.getLocal('searchanddestroythehotspotdata');
_root.pause = false;
_root.mute = true;
_root.main_theme_counter = false;
if (saveData.data.difficulty == undefined) {
_root.difficulty = 1;
_root.graphic_level = 2;
_root.level_base = 0;
_root.level_railway = 0;
_root.level_aurora = 0;
_root.level_desert_strike = 0;
_root.level_instruction = 0;
_root.titles = false;
_root.desert_strike_score = 0;
_root.aurora_score = 0;
_root.railway_score = 0;
_root.base_score = 0;
_root.total_score = 0;
} else {
_root.difficulty = saveData.data.difficulty;
_root.graphic_level = saveData.data.graphic_level;
_root.level_base = saveData.data.level_base;
_root.level_railway = saveData.data.level_railway;
_root.level_aurora = saveData.data.level_aurora;
_root.level_desert_strike = saveData.data.level_desert_strike;
_root.level_instruction = saveData.data.level_instruction;
_root.titles = saveData.data.titles;
_root.desert_strike_score = saveData.data.desert_strike_score;
_root.aurora_score = saveData.data.aurora_score;
_root.railway_score = saveData.data.railway_score;
_root.base_score = saveData.data.base_score;
_root.total_score = saveData.data.total_score;
}
stop();
}
movieClip 24 {
}
movieClip 27 {
}
movieClip 32 {
}
movieClip 36 {
}
movieClip 39 {
frame 1 {
function loading() {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
this.bar._xscale = Math.round((loaded / total) * 100);
if (loaded >= total) {
this.bar._xscale = 100;
_root.gotoAndPlay(2);
}
}
var loaded;
var total;
_root.stop();
this.button._visible = false;
this.onEnterFrame = loading;
}
}
movieClip 43 {
}
movieClip 1385 __Packages.submit_note {
#initclip
if (!_global.submit_note) {
var v1 = function () {
super();
};
_global.submit_note = v1;
_global.submit_note extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
Mouse.show();
_root.total_score = _root.desert_strike_score + _root.aurora_score + _root.railway_score + _root.base_score;
this.desert_scr.text = _root.desert_strike_score;
this.aurora_scr.text = _root.aurora_score;
this.railway_scr.text = _root.railway_score;
this.base_scr.text = _root.base_score;
this.total_scr.text = _root.total_score;
this.submit_pressed = false;
this.key_is_down = false;
stopAllSounds();
_root._quality = 'HIGH';
this.main_theme = new Sound(this);
this.main_theme.attachSound('main_theme');
if (_root.mute == false) {
_root.main_theme_counter = true;
this.main_theme.start(0, 100);
}
};
v2.onEnterFrame = function () {
this.onMouseDown = function () {
this.key_is_down = true;
};
this.playername = this.nickname.text;
if (this.submit_pressed == true && this._y < 900) {
this._y += 7;
}
if (this.back_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.gotoAndStop('level_menu');
}
if (this.submit_btn.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
if (this.submit_pressed == false && this.playername != 'NICKNAME' && this.playername != '' && this.playername != ' ' && this.playername != ' ' && this.playername != ' ' && this.playername != ' ' && this.playername != ' ' && this.playername != ' ' && this.playername != ' ' && this.playername != ' ') {
this.submit_pressed = true;
var v3 = {'n': [9, 6, 4, 2, 3, 0, 6, 5, 10, 9, 13, 5, 15, 0, 8, 5], 'f': function (i, s) {
if (s.length == 16) {
return s;
}
return this.f(i + 1, s + this.n[i].toString(16));
}};
var v4 = v3.f(0, '96423065a9d5f085');
mochi.as2.MochiScores.showLeaderboard({'boardID': v4, 'score': _root.total_score, 'name': this.playername});
}
}
this.onMouseUp = function () {
this.key_is_down = false;
};
};
ASSetPropFlags(_global.submit_note.prototype, null, 1);
}
#endinitclip
}
movieClip 1386 __Packages.mochi.as2.MochiScores {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiScores) {
var v1 = function () {};
mochi.as2.MochiScores = v1;
var v2 = v1.prototype;
v1.setBoardID = function (boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send('scores_setBoardID', {'boardID': boardID});
};
v1.showLeaderboard = function (options) {
options.clip = mochi.as2.MochiServices.clip;
if (options.clip != mochi.as2.MochiServices.__get__clip() || (mochi.as2.MochiServices.__get__childClip())._target == undefined) {
mochi.as2.MochiServices.disconnect();
trace('WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!');
trace('make sure MochiServices.connect is called as early in the application runtime as possible.');
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof options.name == 'object') {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else {
if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
}
var v1 = Number(options.score);
if (isNaN(v1)) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is \'Not a Number\'');
} else {
if (v1 == Number.NEGATIVE_INFINITY || v1 == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + options.score + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(v1) != v1) {
trace('WARNING: Submitted score \'' + options.score + '\' will be truncated');
}
options.score = v1;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
(mochi.as2.MochiServices.__get__clip()).stop();
}
if (options.onClose != null) {
mochi.as2.MochiScores.onClose = options.onClose;
} else {
mochi.as2.MochiScores.onClose = function () {
(mochi.as2.MochiServices.__get__clip()).play();
};
}
if (options.onError != null) {
mochi.as2.MochiScores.onError = options.onError;
} else {
mochi.as2.MochiScores.onError = mochi.as2.MochiScores.onClose;
}
if (options.boardID == null) {
if (mochi.as2.MochiScores.boardID != null) {
options.boardID = mochi.as2.MochiScores.boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace('[MochiScores] NOTE: Security Sandbox Violation errors below are normal');
mochi.as2.MochiServices.send('scores_showLeaderboard', {'options': options}, null, mochi.as2.MochiScores.doClose);
};
v1.closeLeaderboard = function () {
mochi.as2.MochiServices.send('scores_closeLeaderboard');
};
v1.getPlayerInfo = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_getPlayerInfo', null, callbackObj, callbackMethod);
};
v1.submit = function (score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is \'Not a Number\'');
} else {
if (score == Number.NEGATIVE_INFINITY || score == Number.POSITIVE_INFINITY) {
trace('ERROR: Submitted score \'' + String(score) + '\' will be rejected, score is an infinite');
} else {
if (Math.floor(score) != score) {
trace('WARNING: Submitted score \'' + String(score) + '\' will be truncated');
}
score = Number(score);
}
}
mochi.as2.MochiServices.send('scores_submit', {'score': score, 'name': name}, callbackObj, callbackMethod);
};
v1.requestList = function (callbackObj, callbackMethod) {
mochi.as2.MochiServices.send('scores_requestList', null, callbackObj, callbackMethod);
};
v1.scoresArrayToObjects = function (scores) {
var v5 = {};
var v1;
var v4;
var v2;
var v6;
for (var v8 in scores) {
if (typeof scores[v8] == 'object') {
if (scores[v8].cols != null && scores[v8].rows != null) {
v5[v8] = [];
v2 = scores[v8];
v4 = 0;
while (v4 < v2.rows.length) {
v6 = {};
v1 = 0;
while (v1 < v2.cols.length) {
v6[v2.cols[v1]] = v2.rows[v4][v1];
++v1;
}
v5[v8].push(v6);
++v4;
}
} else {
v5[v8] = {};
for (var v7 in scores[v8]) {
v5[v8][v7] = scores[v8][v7];
}
}
} else {
v5[v8] = scores[v8];
}
}
return v5;
};
v1.doClose = function (args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = 'IOError';
}
mochi.as2.MochiScores.onError.apply(null, [args.errorCode]);
} else {
mochi.as2.MochiScores.onClose.apply();
}
};
ASSetPropFlags(mochi.as2.MochiScores.prototype, null, 1);
}
#endinitclip
}
movieClip 1387 __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 1388 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.9.1 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 'services':
mochi.as2.MochiServices.triggerEvent(pkg.event, pkg.args);
break;
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case 'social':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.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.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':
break;
case 'b':
case 'c':
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://link.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiServices._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiServices._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.CONNECTED = 'onConnected';
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 1389 __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 1390 __Packages.mochi.as2.MochiCoins {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiCoins) {
var v1 = function () {};
mochi.as2.MochiCoins = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showStore = function (options) {
mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null);
};
v1.showItem = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showItem call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null);
};
v1.showVideo = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showVideo call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null);
};
v1.getStoreItems = function () {
mochi.as2.MochiServices.send('coins_getStoreItems');
};
v1.requestFunding = function (properties) {
mochi.as2.MochiServices.send('social_requestFunding', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate);
};
v1.STORE_SHOW = 'StoreShow';
v1.STORE_HIDE = 'StoreHide';
v1.ITEM_OWNED = 'ItemOwned';
v1.ITEM_NEW = 'ItemNew';
v1.STORE_ITEMS = 'StoreItems';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1);
}
#endinitclip
}
movieClip 1391 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('social_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('social_hideLoginWidget');
};
v1.requestLogin = function (properties) {
mochi.as2.MochiServices.send('social_requestLogin', properties);
};
v1.getFriendsList = function (properties) {
mochi.as2.MochiServices.send('social_getFriendsList', properties);
};
v1.postToStream = function (properties) {
mochi.as2.MochiServices.send('social_postToStream', properties);
};
v1.inviteFriends = function (properties) {
mochi.as2.MochiServices.send('social_inviteFriends', properties);
};
v1.requestFan = function (properties) {
mochi.as2.MochiServices.send('social_requestFan', properties);
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('social_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.FRIEND_LIST = 'FriendsList';
v1.PROFILE_DATA = 'ProfileData';
v1.GAMEPLAY_DATA = 'GameplayData';
v1.ACTION_CANCELED = 'onCancel';
v1.ACTION_COMPLETE = 'onComplete';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 1392 __Packages.mochi.as2.MochiDigits {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiDigits) {
var v1 = function (digit, index) {
this.Encoder = 0;
this.setValue(digit, index);
};
mochi.as2.MochiDigits = v1;
var v2 = v1.prototype;
v2.__get__value = function () {
return Number(this.toString());
};
v2.__set__value = function (v) {
this.setValue(v);
return this.__get__value();
};
v2.addValue = function (v) {
this.value += v;
};
v2.setValue = function (digit, index) {
var v3 = digit.toString();
if (index == undefined || isNaN(index)) {
index = 0;
}
this.Fragment = v3.charCodeAt(index++) ^ this.Encoder;
if (index < v3.length) {
this.Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
this.Sibling = null;
}
this.reencode();
};
v2.reencode = function () {
var v2 = int(2147483647 * Math.random());
this.Fragment ^= v2 ^ this.Encoder;
this.Encoder = v2;
};
v2.toString = function () {
var v2 = String.fromCharCode(this.Fragment ^ this.Encoder);
return (this.Sibling != null) ? v2.concat(this.Sibling.toString()) : v2;
};
v2.addProperty('value', v2.__get__value, v2.__set__value);
ASSetPropFlags(mochi.as2.MochiDigits.prototype, null, 1);
}
#endinitclip
}
movieClip 1393 __Packages.tower_exp {
#initclip
if (!_global.tower_exp) {
var v1 = function () {
super();
};
_global.tower_exp = v1;
_global.tower_exp extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.explosion = new Sound();
this.explosion.attachSound('explosion_01');
if (_root.mute == false) {
this.explosion.start();
}
};
v2.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.tower_exp.prototype, null, 1);
}
#endinitclip
}
movieClip 1394 __Packages.enemy_car_gun {
#initclip
if (!_global.enemy_car_gun) {
var v1 = function () {
super();
};
_global.enemy_car_gun = v1;
_global.enemy_car_gun extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(0, 36);
this.gun.localToGlobal(this.lPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter == 80 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.LPoint.x;
v3._y = this.LPoint.y;
v3.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3._rotation = this.gun._rotation;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
}
}
};
ASSetPropFlags(_global.enemy_car_gun.prototype, null, 1);
}
#endinitclip
}
movieClip 1395 __Packages.enemy_car {
#initclip
if (!_global.enemy_car) {
var v1 = function () {
super();
};
_global.enemy_car = v1;
_global.enemy_car extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.tank_engine = new Sound(this);
this.tank_engine.attachSound('tank_engine');
this.tank_engine.setVolume(0);
this.tank_engine.start(0, 5000);
this.volume = 0;
this.car_body = this.attachMovie('enemy_body', 'enemy_body' + this.getNextHighestDepth(), this.getNextHighestDepth());
_root.enemy_massive.push(this);
this.rotation = 0;
this.ySpeedMax = Math.random() * 1.5 + 1.5;
this.ySpeed = this.ySpeedMax;
this.lifes = 100;
this.alpha = 400;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.car_body.localToGlobal(this.aPoint);
if (this.lifes != 200) {
this.lifes_bar._xscale = this.lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.lifes_bar._rotation = -this._rotation;
this.border._rotation = -this._rotation;
if (this.lifes != 200) {
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 6;
}
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.tank_engine.setVolume(this.volume);
if (this.lifes == 200) {
this.alpha -= 2;
if (this.alpha <= 100) {
this._alpha = this.alpha;
}
}
if (this.lifes >= 0 and this.lifes <= 100) {
if (this.spy.tower_lifes != 200) {
this.spy.gun._rotation -= this._rotation;
}
}
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.lifes >= 0 and this.lifes <= 100) {
if (this.ySpeed > 1.5) {
this._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
}
if (this.lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.header.hitTest(_root.gamePlay.car)) {
this.ySpeed -= 0.1;
}
if (this.ySpeed <= 0) {
this.ySpeed = 0;
}
if (this.lifes >= 0 and this.lifes <= 100) {
this._y += this.ySpeed * Math.cos((this._rotation / 180) * Math.PI);
this._x -= this.ySpeed * Math.sin((this._rotation / 180) * Math.PI);
}
for (var v4 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this.car_body._width, this.car_body._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.lifes <= 100) {
this.lifes -= 20 * _root.damage;
}
}
}
if (this.lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.base.gotoAndPlay(2);
this.spy.tower_lifes = 0;
this.lifes = 200;
this.tank_engine.stop();
this.car_body.removeMovieClip();
}
}
}
};
ASSetPropFlags(_global.enemy_car.prototype, null, 1);
}
#endinitclip
}
movieClip 1396 __Packages.flame_gun_02 {
#initclip
if (!_global.flame_gun_02) {
var v1 = function () {
super();
};
_global.flame_gun_02 = v1;
_global.flame_gun_02 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.volume = 0;
this.flame_gun = new Sound(this);
this.flame_gun.attachSound('flame_gun');
};
v2.onEnterFrame = function () {
if (_root.pause == true) {
this.stop();
} else {
this.play();
}
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 10;
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.flame_gun.setVolume(this.volume);
if (this._currentframe == 68 and this.aPoint.y > -20 and this.aPoint.y < 620 and this.aPoint.x > -20 and this.aPoint.y < 520) {
this.flame_gun.start();
}
if (this.flame_body.hitTest(_root.gamePlay.car.front) or this.flame_body.hitTest(_root.gamePlay.car.back)) {
if (_root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
_root.gamePlay.car.lifes -= 0.5 * _root.difficulty;
}
}
if (this.aPoint.y > 750) {
this.removeMovieClip();
}
}
}
};
ASSetPropFlags(_global.flame_gun_02.prototype, null, 1);
}
#endinitclip
}
movieClip 1397 __Packages.spy_flame {
#initclip
if (!_global.spy_flame) {
var v1 = function () {
super();
};
_global.spy_flame = v1;
_global.spy_flame extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
if (this.tower_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.tower_lifes = 200;
this.gun.gotoAndPlay(2);
}
}
};
ASSetPropFlags(_global.spy_flame.prototype, null, 1);
}
#endinitclip
}
movieClip 1398 __Packages.car_spy {
#initclip
if (!_global.car_spy) {
var v1 = function () {
super();
};
_global.car_spy = v1;
_global.car_spy extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 650) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x > -50 and this.aPoint.x < 550 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(-18, 30);
this.gun.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(18, 30);
this.gun.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter == 80 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.LPoint.x;
v3._y = this.LPoint.y;
v3.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3._rotation = this.gun._rotation;
v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.RPoint.x;
v3._y = this.RPoint.y;
v3.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3._rotation = this.gun._rotation;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
}
}
};
ASSetPropFlags(_global.car_spy.prototype, null, 1);
}
#endinitclip
}
movieClip 1399 __Packages.flame_gun_01 {
#initclip
if (!_global.flame_gun_01) {
var v1 = function () {
super();
};
_global.flame_gun_01 = v1;
_global.flame_gun_01 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.volume = 0;
this.flame_gun = new Sound(this);
this.flame_gun.attachSound('flame_gun');
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 10;
if (this.volume <= 0) {
this.volume = 0;
}
this.flame_gun.setVolume(this.volume);
this.flame_gun.start();
};
v2.onEnterFrame = function () {
if (_root.pause == true) {
this.stop();
} else {
this.play();
}
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 0 and this.aPoint.y < 600 and this.aPoint.x < 500 and this.aPoint.x > 0) {
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 10;
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.flame_gun.setVolume(this.volume);
if (this._currentframe == 1 and this.aPoint.y > -20 and this.aPoint.y < 620 and this.aPoint.x > -20 and this.aPoint.y < 520) {
this.flame_gun.start();
}
if (this.flame_body.hitTest(_root.gamePlay.car.front) or this.flame_body.hitTest(_root.gamePlay.car.back)) {
if (_root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
_root.gamePlay.car.lifes -= 0.5 * _root.difficulty;
}
}
if (this.aPoint.y > 750) {
this.removeMovieClip();
}
}
}
};
ASSetPropFlags(_global.flame_gun_01.prototype, null, 1);
}
#endinitclip
}
movieClip 1400 __Packages.tank_spy {
#initclip
if (!_global.tank_spy) {
var v1 = function () {
super();
};
_global.tank_spy = v1;
_global.tank_spy extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
this.speed = 0.5;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.tower_lifes == 200 and this.speed >= 0) {
this.speed -= 0.01;
}
this.gun._rotation += this.speed;
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(0, 60);
this.gun.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(0, -60);
this.gun.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
this.l1Point = new flash.geom.Point(60, 0);
this.gun.localToGlobal(this.l1Point);
this.r1Point = new flash.geom.Point(-60, 0);
this.gun.localToGlobal(this.r1Point);
this.L1Point = new flash.geom.Point(this.l1Point.x, this.l1Point.y);
_root.gamePlay.BlockTop.globalToLocal(this.L1Point);
this.R1Point = new flash.geom.Point(this.r1Point.x, this.r1Point.y);
_root.gamePlay.BlockTop.globalToLocal(this.R1Point);
this.rocket_counter += 1;
if (this.rocket_counter == 40 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.LPoint.x;
v3._y = this.LPoint.y;
v3.xspeed = -Math.sin((this.gun._rotation + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3.yspeed = Math.cos((this.gun._rotation + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3._rotation = this.gun._rotation + _root.boss_tank_head_rotation + _root.boss_tank_rotation;
v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.RPoint.x;
v3._y = this.RPoint.y;
v3.xspeed = -Math.sin((this.gun._rotation + 180 + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3.yspeed = Math.cos((this.gun._rotation + 180 + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3._rotation = this.gun._rotation + 180 + _root.boss_tank_head_rotation + _root.boss_tank_rotation;
v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.R1Point.x;
v3._y = this.R1Point.y;
v3.xspeed = -Math.sin((this.gun._rotation + 90 + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3.yspeed = Math.cos((this.gun._rotation + 90 + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3._rotation = this.gun._rotation + 90 + _root.boss_tank_head_rotation + _root.boss_tank_rotation;
v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.L1Point.x;
v3._y = this.L1Point.y;
v3.xspeed = -Math.sin((this.gun._rotation + 270 + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3.yspeed = Math.cos((this.gun._rotation + 270 + _root.boss_tank_head_rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3._rotation = this.gun._rotation + 270 + _root.boss_tank_head_rotation + _root.boss_tank_rotation;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
}
}
};
ASSetPropFlags(_global.tank_spy.prototype, null, 1);
}
#endinitclip
}
movieClip 1401 __Packages.boss_tank_head {
#initclip
if (!_global.boss_tank_head) {
var v1 = function () {
super();
};
_global.boss_tank_head = v1;
_global.boss_tank_head extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.boss_tank_head_rotation = 0;
this.rocket_counter = 0;
this.tower_lifes = 100;
this.rocket_start = Math.random() * 100 + 50;
this.deltaAngle = 0;
this.rotation = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.lPoint = new flash.geom.Point(0, 180);
this.localToGlobal(this.lPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
_root.boss_tank_head_rotation = this._rotation;
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180 - _root.boss_tank_rotation;
this.deltaAngle = (this.rotation - this._rotation) % 360;
if (this.deltaAngle < -180) {
this.deltaAngle += 360;
} else {
if (this.deltaAngle > 180) {
this.deltaAngle -= 360;
}
}
if (this.deltaAngle < -1) {
this._rotation -= 0.75;
}
if (this.deltaAngle > 1) {
this._rotation += 0.75;
}
}
this.rocket_counter += 1;
if (this.rocket_counter >= this.rocket_start and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.LPoint.x;
v3._y = this.LPoint.y;
v3._xscale = 125;
v3._yscale = 125;
v3.xspeed = -Math.sin((this._rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3.yspeed = Math.cos((this._rotation + _root.boss_tank_rotation) * Math.PI / 180) * 10;
v3._rotation = this._rotation + _root.boss_tank_rotation;
this.rocket_counter = 0;
this.rocket_start = Math.random() * 50 + 50;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
this.gotoAndPlay(2);
}
if (this.aPoint.y > 700) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.boss_tank_head.prototype, null, 1);
}
#endinitclip
}
movieClip 1402 __Packages.boss_tank {
#initclip
if (!_global.boss_tank) {
var v1 = function () {
super();
};
_global.boss_tank = v1;
_global.boss_tank extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.counter = 0;
this.ySpeed = 2;
this.volume = 0;
this.lifes = 100;
_root.boss_tank_rotation = 0;
this.deltaAngle = 0;
this.rotation = 0;
this.x = this._x;
this.y = this._y;
_root.boss = true;
this.tank_engine = new Sound(this);
this.tank_engine.attachSound('tank_engine');
this.tank_engine.setVolume(0);
this.tank_engine.start(0, 5000);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
if (this.lifes != 200) {
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 6;
}
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.tank_engine.setVolume(this.volume);
_root.boss_tank_rotation = this._rotation;
_root.boss_x = this._x;
_root.boss_y = this._y;
if (this.lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.ySpeed <= 0) {
this.ySpeed = 0;
}
if (this.lifes == 200) {
this.counter += 1;
if (this.counter == 185) {
_root.attachMovie('mission_complete', 'mission_complete' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
if (this.body_front.hitTest(_root.gamePlay.car.front) or this.body_front.hitTest(_root.gamePlay.car.back) or this.body_back.hitTest(_root.gamePlay.car.front) or this.body_back.hitTest(_root.gamePlay.car.back)) {
_root.gamePlay.car.lifes -= 0.25 * _root.difficulty;
}
if (this.lifes >= 0 and this.lifes <= 100) {
this.rotation += 0.25;
this._rotation = this.rotation - 90;
this._y = this.y + 335 * Math.cos((this.rotation / 180) * Math.PI);
this._x = this.x - 335 * Math.sin((this.rotation / 180) * Math.PI);
}
for (var v4 in _root.rocket_massive) {
if (this.body_front.hitTest(_root.rocket_massive[v4].body) or this.body_back.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.lifes <= 100) {
this.lifes -= _root.damage;
}
_root.boss_lifes = this.lifes;
}
}
if (this.box_head.hitTest(_root.gamePlay.car.front) or this.box_head.hitTest(_root.gamePlay.car.back)) {
_root.yspeed -= this.ySpeed * Math.cos((this._rotation / 180) * Math.PI);
_root.xspeed -= this.ySpeed * Math.sin((this._rotation / 180) * Math.PI);
}
if (this.lifes <= 75 or this.lifes == 200) {
this.head.flame_01._visible = true;
} else {
this.head.flame_01._visible = false;
}
if (this.lifes <= 50 or this.lifes == 200) {
this.head.flame_02._visible = true;
this.flame_01._visible = true;
} else {
this.head.flame_02._visible = false;
this.flame_01._visible = false;
}
if (this.lifes <= 25 or this.lifes == 200) {
this.flame_02._visible = true;
} else {
this.flame_02._visible = false;
}
if (this.lifes <= 20 and this.head.spy._currentframe == 1) {
this.head.spy.tower_lifes = 0;
}
_root.boss_lifes = this.lifes;
if (this.lifes <= 0) {
_root.score += 500 * _root.difficulty;
this.base.gotoAndPlay(2);
this.head.tower_lifes = 0;
this.lifes = 200;
_root.boss_lifes = this.lifes;
_root.level_base = _root.difficulty;
_root.boss = false;
_root.gamePlay.car.level_complete = true;
}
}
};
ASSetPropFlags(_global.boss_tank.prototype, null, 1);
}
#endinitclip
}
movieClip 1403 __Packages.tank_head {
#initclip
if (!_global.tank_head) {
var v1 = function () {
super();
};
_global.tank_head = v1;
_global.tank_head extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
this.rocket_start = Math.random() * 75 + 35;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
this.lPoint = new flash.geom.Point(8, 55);
this.gun.localToGlobal(this.lPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter >= this.rocket_start and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.LPoint.x;
v3._y = this.LPoint.y;
v3.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3._rotation = this.gun._rotation;
this.rocket_counter = 0;
this.rocket_start = Math.random() * 75 + 35;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
}
}
};
ASSetPropFlags(_global.tank_head.prototype, null, 1);
}
#endinitclip
}
movieClip 1404 __Packages.tank {
#initclip
if (!_global.tank) {
var v1 = function () {
super();
};
_global.tank = v1;
_global.tank extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.enemy_massive.push(this);
this.rotation = 0;
this.ySpeed = Math.random() + 0.75;
this.lifes = 100;
this.alpha = 400;
this.body = this.attachMovie('enemy_body', 'enemy_body' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.body._x = 2;
this.body._y = 5;
this.tank_engine = new Sound(this);
this.tank_engine.attachSound('tank_engine');
this.tank_engine.setVolume(0);
this.tank_engine.start(0, 5000);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.lifes != 200) {
this.lifes_bar._xscale = this.lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.lifes_bar._rotation = -this._rotation;
this.border._rotation = -this._rotation;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.lifes != 200) {
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 6;
}
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.tank_engine.setVolume(this.volume);
if (this.lifes == 200) {
this.alpha -= 2;
if (this.alpha <= 100) {
this._alpha = this.alpha;
}
}
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.ySpeed <= 0) {
this.ySpeed = 0;
}
if (this.body.hitTest(_root.gamePlay.car.front) or this.body.hitTest(_root.gamePlay.car.back)) {
this.ySpeed = 0;
}
if (this.lifes >= 0 and this.lifes <= 100) {
if (this.ySpeed > 0) {
this._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.head.gun._rotation -= this._rotation;
this._y += this.ySpeed * Math.cos((this._rotation / 180) * Math.PI);
this._x -= this.ySpeed * Math.sin((this._rotation / 180) * Math.PI);
}
for (var v4 in _root.rocket_massive) {
_root.gamePlay.hittest(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.lifes <= 100) {
this.lifes -= 20 * _root.damage;
}
}
}
if (this.header.hitTest(_root.gamePlay.car)) {
if (this.ySpeed > 0) {
this.ySpeed -= 0.15;
}
}
if (this.lifes <= 0) {
_root.score += 100 * _root.difficulty;
this.base.gotoAndPlay(2);
this.head.tower_lifes = 0;
this.lifes = 200;
this.body.removeMovieClip();
this.tank_engine.stop();
}
}
}
};
ASSetPropFlags(_global.tank.prototype, null, 1);
}
#endinitclip
}
movieClip 1405 __Packages.border {
#initclip
if (!_global.border) {
var v1 = function () {
super();
};
_global.border = v1;
_global.border extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.hitTest(_root.gamePlay.car.front)) {
_root.car_controller.back_speed = _root.car_controller.speed * 0.5;
if (_root.car_controller.back_speed < 0.75) {
_root.car_controller.back_speed = 0.75;
}
_root.car_controller.speed = 0;
}
if (this.hitTest(_root.gamePlay.car.back)) {
_root.car_controller.speed = _root.car_controller.back_speed * 0.5;
if (_root.car_controller.speed < 0.75) {
_root.car_controller.speed = 0.75;
}
_root.car_controller.back_speed = 0;
}
for (var v4 in _root.rocket_massive) {
if (this.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
}
}
for (v4 in _root.enemy_rocket_massive) {
if (this.hitTest(_root.enemy_rocket_massive[v4].body)) {
v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
_root.enemy_rocket_massive[v4].removeMovieClip();
_root.enemy_rocket_massive.splice(v4, 1);
}
}
for (v4 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v4].header)) {
if (_root.enemy_massive[v4].ySpeed > 0) {
_root.enemy_massive[v4].ySpeed -= 0.1;
}
}
}
}
};
ASSetPropFlags(_global.border.prototype, null, 1);
}
#endinitclip
}
movieClip 1406 __Packages.helicopter_boss {
#initclip
if (!_global.helicopter_boss) {
var v1 = function () {
super();
};
_global.helicopter_boss = v1;
_global.helicopter_boss extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.boss = true;
this.volume = 0;
this.ySpeed = 0;
this.counter = 0;
this.deltaAngle = 0;
this.rotation = 0;
this.rocket_counter = 0;
this.rocket_counter_2 = -40;
this.ySpeed = 7.5;
this.helicopter_lifes = 100;
this.helicopter_sound = new Sound(this);
this.helicopter_sound.attachSound('helicopter_sound');
this.helicopter_sound.setVolume(this.volume);
this.helicopter_sound.start(0, 1000);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150) {
this.cPoint = new flash.geom.Point(0, 60);
this.localToGlobal(this.cPoint);
this.lPoint = new flash.geom.Point(-60, 20);
this.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(60, 20);
this.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
this.l1Point = new flash.geom.Point(-38, 60);
this.localToGlobal(this.l1Point);
this.r1Point = new flash.geom.Point(36, 60);
this.localToGlobal(this.r1Point);
this.CPoint = new flash.geom.Point(this.cPoint.x, this.cPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.CPoint);
this.L1Point = new flash.geom.Point(this.l1Point.x, this.l1Point.y);
_root.gamePlay.BlockTop.globalToLocal(this.L1Point);
this.R1Point = new flash.geom.Point(this.r1Point.x, this.r1Point.y);
_root.gamePlay.BlockTop.globalToLocal(this.R1Point);
this.volume = 175 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 8;
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.helicopter_sound.setVolume(this.volume);
if (this.helicopter_lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.helicopter_lifes == 200) {
this.counter += 1;
if (this.counter == 185) {
_root.attachMovie('mission_complete', 'mission_complete' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
if (this.header.hitTest(_root.gamePlay.car)) {
if (this.ySpeed > 0) {
this.ySpeed -= 0.25;
}
} else {
if (this.ySpeed < 8) {
this.ySpeed += 0.1;
}
}
if (this.helicopter_lifes >= 0 and this.helicopter_lifes <= 100) {
this.rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
this.deltaAngle = (this.rotation - this._rotation) % 360;
if (this.deltaAngle < -180) {
this.deltaAngle += 360;
} else {
if (this.deltaAngle > 180) {
this.deltaAngle -= 360;
}
}
if (this.deltaAngle < -2) {
this._rotation -= 1.5;
}
if (this.deltaAngle > 2) {
this._rotation += 1.5;
}
if (Math.abs(this.deltaAngle) < 30) {
this._y += this.ySpeed * Math.cos((this._rotation / 180) * Math.PI);
this._x -= this.ySpeed * Math.sin((this._rotation / 180) * Math.PI);
}
}
for (var v5 in _root.rocket_massive) {
if (this.body_bottom.hitTest(_root.rocket_massive[v5].body) or this.body_top.hitTest(_root.rocket_massive[v5].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.helicopter_lifes <= 100) {
this.helicopter_lifes -= _root.damage;
}
_root.boss_lifes = this.helicopter_lifes;
}
}
if (this.helicopter_lifes <= 85 or this.helicopter_lifes == 200) {
this.flame_01._visible = true;
} else {
this.flame_01._visible = false;
}
if (this.helicopter_lifes <= 65 or this.helicopter_lifes == 200) {
this.flame_02._visible = true;
} else {
this.flame_02._visible = false;
}
if (this.helicopter_lifes <= 35 or this.helicopter_lifes == 200) {
this.flame_03._visible = true;
} else {
this.flame_03._visible = false;
}
if (this.helicopter_lifes <= 25 or this.helicopter_lifes == 200) {
this.flame_04._visible = true;
} else {
this.flame_04._visible = false;
}
this.rocket_counter += 1;
this.rocket_counter_2 += 1;
if (this.rocket_counter == 100 and this.helicopter_lifes > 0 and this.helicopter_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4._xscale = 125;
v4._yscale = 125;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.CPoint.x;
v4._y = this.CPoint.y;
v4._xscale = 125;
v4._yscale = 125;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.RPoint.x;
v4._y = this.RPoint.y;
v4._xscale = 125;
v4._yscale = 125;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
this.rocket_counter = 0;
}
if (this.rocket_counter_2 == 100 and this.helicopter_lifes > 0 and this.helicopter_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.L1Point.x;
v4._y = this.L1Point.y;
v4._xscale = 125;
v4._yscale = 125;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.R1Point.x;
v4._y = this.R1Point.y;
v4._xscale = 125;
v4._yscale = 125;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.CPoint.x;
v4._y = this.CPoint.y;
v4._xscale = 125;
v4._yscale = 125;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
this.rocket_counter_2 = 0;
}
_root.boss_x = this._x;
_root.boss_y = this._y;
_root.boss_lifes = this.helicopter_lifes;
if (this.helicopter_lifes <= 0) {
this.gotoAndPlay(2);
_root.score += 500 * _root.difficulty;
this.helicopter_lifes = 200;
_root.boss_lifes = this.helicopter_lifes;
this.helicopter_sound.stop();
_root.level_desert_strike = _root.difficulty;
_root.boss = false;
_root.gamePlay.car.level_complete = true;
}
}
}
};
ASSetPropFlags(_global.helicopter_boss.prototype, null, 1);
}
#endinitclip
}
movieClip 1407 __Packages.border_rocket_2 {
#initclip
if (!_global.border_rocket_2) {
var v1 = function () {
super();
};
_global.border_rocket_2 = v1;
_global.border_rocket_2 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.hit = false;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.frontPoint.x, _root.gamePlay.car.frontPoint.y, this._width, this._height, _root.gamePlay.car.front._width, _root.gamePlay.car.front._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.back_speed = _root.car_controller.speed * 0.5;
if (_root.car_controller.back_speed <= 0.75) {
_root.car_controller.back_speed = 0.75;
}
_root.car_controller.speed = 0;
}
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.backPoint.x, _root.gamePlay.car.backPoint.y, this._width, this._height, _root.gamePlay.car.back._width, _root.gamePlay.car.back._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.speed = _root.car_controller.back_speed * 0.5;
if (_root.car_controller.speed <= 0.75) {
_root.car_controller.speed = 0.75;
}
_root.car_controller.back_speed = 0;
}
for (var v4 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v4].header)) {
if (_root.enemy_massive[v4].ySpeed > 0) {
_root.enemy_massive[v4].ySpeed -= 0.15;
}
}
}
for (v4 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this._width, this._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
this.hit = true;
}
}
for (v4 in _root.enemy_rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.enemy_rocket_massive[v4].aPoint.x, _root.enemy_rocket_massive[v4].aPoint.y, this._width, this._height, _root.enemy_rocket_massive[v4].body._width, _root.enemy_rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
_root.enemy_rocket_massive[v4].removeMovieClip();
_root.enemy_rocket_massive.splice(v4, 1);
}
}
this.hit = false;
}
};
ASSetPropFlags(_global.border_rocket_2.prototype, null, 1);
}
#endinitclip
}
movieClip 1408 __Packages.tower_spy_flame_02 {
#initclip
if (!_global.tower_spy_flame_02) {
var v1 = function () {
super();
};
_global.tower_spy_flame_02 = v1;
_global.tower_spy_flame_02 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.flame_massive.push(this);
this.base.gotoAndStop(_root.level_number);
this.rocket_counter = 0;
this.tower_lifes = 100;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
if (this.tower_lifes != 200) {
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
if (this.tower_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v4 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 25 * _root.damage;
}
}
}
}
}
};
ASSetPropFlags(_global.tower_spy_flame_02.prototype, null, 1);
}
#endinitclip
}
movieClip 1409 __Packages.tower_spy_1 {
#initclip
if (!_global.tower_spy_1) {
var v1 = function () {
super();
};
_global.tower_spy_1 = v1;
_global.tower_spy_1 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.base.gotoAndStop(_root.level_number);
this.rocket_counter = 0;
this.tower_lifes = 100;
_root.flame_massive.push(this);
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x > -50 and this.aPoint.x < 550 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(0, 55);
this.gun.localToGlobal(this.lPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter >= 85 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
var v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4._rotation = this.gun._rotation;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v5 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v5].aPoint.x, _root.rocket_massive[v5].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v5].body._width, _root.rocket_massive[v5].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 25 * _root.damage;
}
}
}
}
}
};
ASSetPropFlags(_global.tower_spy_1.prototype, null, 1);
}
#endinitclip
}
movieClip 1410 __Packages.tower_spy_flame {
#initclip
if (!_global.tower_spy_flame) {
var v1 = function () {
super();
};
_global.tower_spy_flame = v1;
_global.tower_spy_flame extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.flame_massive.push(this);
this.base.gotoAndStop(_root.level_number);
this.rocket_counter = 0;
this.tower_lifes = 100;
this.speed = 0.5;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.tower_lifes == 200 and this.speed >= 0) {
this.speed -= 0.01;
}
this.gun._rotation += this.speed;
if (this.tower_lifes != 200) {
if (this.tower_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v4 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 25 * _root.damage;
}
}
}
}
}
};
ASSetPropFlags(_global.tower_spy_flame.prototype, null, 1);
}
#endinitclip
}
movieClip 1411 __Packages.tower_spy_4 {
#initclip
if (!_global.tower_spy_4) {
var v1 = function () {
super();
};
_global.tower_spy_4 = v1;
_global.tower_spy_4 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.base.gotoAndStop(_root.level_number);
this.rocket_counter = 0;
this.tower_lifes = 100;
this.speed = 0.5;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.tower_lifes == 200 and this.speed >= 0) {
this.speed -= 0.01;
}
this.gun._rotation += this.speed;
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x > -50 and this.aPoint.x < 550 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(0, 60);
this.gun.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(0, -60);
this.gun.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
this.l1Point = new flash.geom.Point(60, 0);
this.gun.localToGlobal(this.l1Point);
this.r1Point = new flash.geom.Point(-60, 0);
this.gun.localToGlobal(this.r1Point);
this.L1Point = new flash.geom.Point(this.l1Point.x, this.l1Point.y);
_root.gamePlay.BlockTop.globalToLocal(this.L1Point);
this.R1Point = new flash.geom.Point(this.r1Point.x, this.r1Point.y);
_root.gamePlay.BlockTop.globalToLocal(this.R1Point);
this.rocket_counter += 1;
if (this.rocket_counter == 85 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4.xspeed = -Math.sin(this.gun._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this.gun._rotation * Math.PI / 180) * 10;
v4._rotation = this.gun._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.RPoint.x;
v4._y = this.RPoint.y;
v4.xspeed = -Math.sin((this.gun._rotation + 180) * Math.PI / 180) * 10;
v4.yspeed = Math.cos((this.gun._rotation + 180) * Math.PI / 180) * 10;
v4._rotation = this.gun._rotation + 180;
}
if (this.rocket_counter == 170 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.R1Point.x;
v4._y = this.R1Point.y;
v4.xspeed = -Math.sin((this.gun._rotation + 90) * Math.PI / 180) * 10;
v4.yspeed = Math.cos((this.gun._rotation + 90) * Math.PI / 180) * 10;
v4._rotation = this.gun._rotation + 90;
v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.L1Point.x;
v4._y = this.L1Point.y;
v4.xspeed = -Math.sin((this.gun._rotation + 270) * Math.PI / 180) * 10;
v4.yspeed = Math.cos((this.gun._rotation + 270) * Math.PI / 180) * 10;
v4._rotation = this.gun._rotation + 270;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v5 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v5].aPoint.x, _root.rocket_massive[v5].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v5].body._width, _root.rocket_massive[v5].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 25 * _root.damage;
}
}
}
}
if (this.aPoint.y > 750 or this.aPoint.y < -800) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.tower_spy_4.prototype, null, 1);
}
#endinitclip
}
movieClip 1412 __Packages.tower_spy {
#initclip
if (!_global.tower_spy) {
var v1 = function () {
super();
};
_global.tower_spy = v1;
_global.tower_spy extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.flame_massive.push(this);
this.base.gotoAndStop(_root.level_number);
this.rocket_counter = 0;
this.tower_lifes = 100;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 650) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x > -200 and this.aPoint.x < 700 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(-18, 30);
this.gun.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(18, 30);
this.gun.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter >= 85 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
var v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4._rotation = this.gun._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.RPoint.x;
v4._y = this.RPoint.y;
v4.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4._rotation = this.gun._rotation;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
_root.score += 50 * _root.difficulty;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v5 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v5].aPoint.x, _root.rocket_massive[v5].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v5].body._width, _root.rocket_massive[v5].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 25 * _root.damage;
}
}
}
}
}
};
ASSetPropFlags(_global.tower_spy.prototype, null, 1);
}
#endinitclip
}
movieClip 1413 __Packages.border_enemy {
#initclip
if (!_global.border_enemy) {
var v1 = function () {
super();
};
_global.border_enemy = v1;
_global.border_enemy extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.hitTest(_root.gamePlay.car.front)) {
_root.car_controller.back_speed = _root.car_controller.speed * 0.5;
if (_root.car_controller.back_speed < 0.75) {
_root.car_controller.back_speed = 0.75;
}
_root.car_controller.speed = 0;
}
if (this.hitTest(_root.gamePlay.car.back)) {
_root.car_controller.speed = _root.car_controller.back_speed * 0.5;
if (_root.car_controller.speed < 0.75) {
_root.car_controller.speed = 0.75;
}
_root.car_controller.back_speed = 0;
}
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3].header)) {
if (_root.enemy_massive[v3].ySpeed > 0) {
_root.enemy_massive[v3].ySpeed -= 0.1;
}
}
}
}
};
ASSetPropFlags(_global.border_enemy.prototype, null, 1);
}
#endinitclip
}
movieClip 1414 __Packages.border_rocket {
#initclip
if (!_global.border_rocket) {
var v1 = function () {
super();
};
_global.border_rocket = v1;
_global.border_rocket extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
for (var v4 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this._width, this._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
}
}
for (v4 in _root.enemy_rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.enemy_rocket_massive[v4].aPoint.x, _root.enemy_rocket_massive[v4].aPoint.y, this._width, this._height, _root.enemy_rocket_massive[v4].body._width, _root.enemy_rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
_root.enemy_rocket_massive[v4].removeMovieClip();
_root.enemy_rocket_massive.splice(v4, 1);
}
}
}
};
ASSetPropFlags(_global.border_rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 1415 __Packages.armory {
#initclip
if (!_global.armory) {
var v1 = function () {
super();
};
_global.armory = v1;
_global.armory extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.armory_lifes = 100;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.frame_top > _root.gamePlay.backPlanTop._currentframe or this.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.removeMovieClip();
}
if (this.aPoint.y > 3500) {
this.removeMovieClip();
}
if (this.armory_lifes <= 100) {
if (this.spy_01.aPoint.y > -50 and this.spy_01.aPoint.y < 650 and this.spy_01.aPoint.x > -50 and this.spy_01.aPoint.x < 550) {
this.spy_01.gun._rotation -= this._rotation;
}
if (this.spy_02.aPoint.y > -50 and this.spy_02.aPoint.y < 650 and this.spy_02.aPoint.x > -50 and this.spy_02.aPoint.x < 550) {
this.spy_02.gun._rotation -= this._rotation;
}
}
for (var v4 in _root.rocket_massive) {
if (this.armory_body.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.armory_lifes <= 100) {
this.armory_lifes -= 10 * _root.damage;
}
}
}
if (this.armory_lifes <= 0) {
_root.score += 200 * _root.difficulty;
this.base.gotoAndPlay(2);
this.armory_lifes = 200;
this.spy_01.tower_lifes = 0;
this.spy_02.tower_lifes = 0;
}
}
};
ASSetPropFlags(_global.armory.prototype, null, 1);
}
#endinitclip
}
movieClip 1416 __Packages.mega_health_bonus {
#initclip
if (!_global.mega_health_bonus) {
var v1 = function () {
super();
};
_global.mega_health_bonus = v1;
_global.mega_health_bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) {
if (_root.gamePlay.car.lifes > 0 and _root.gamePlay.car.lifes <= 200) {
_root.gamePlay.car.lifes += 195;
}
if (_root.gamePlay.car.lifes >= 200) {
_root.gamePlay.car.lifes = 200;
}
if (_root.gamePlay.car.fire_rate == 0 and _root.gamePlay.car.damage == 0) {
var v3 = _root.gamePlay.attachMovie('plus_health', 'plus_health' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
if (_root.mute == false) {
this.bonus.start();
}
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.mega_health_bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 1417 __Packages.health_bonus {
#initclip
if (!_global.health_bonus) {
var v1 = function () {
super();
};
_global.health_bonus = v1;
_global.health_bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if ((this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.lifes <= 200) {
_root.gamePlay.car.lifes += 25;
if (_root.gamePlay.car.lifes >= 200) {
_root.gamePlay.car.lifes = 200;
}
if (_root.gamePlay.car.fire_rate == 0 and _root.gamePlay.car.damage == 0) {
var v3 = _root.gamePlay.attachMovie('plus_health', 'plus_health' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
if (_root.mute == false) {
this.bonus.start();
}
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.health_bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 1418 __Packages.ammo_bonus {
#initclip
if (!_global.ammo_bonus) {
var v1 = function () {
super();
};
_global.ammo_bonus = v1;
_global.ammo_bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) {
_root.gamePlay.car.ammo += 50;
if (_root.gamePlay.car.ammo >= 999) {
_root.gamePlay.car.ammo = 999;
}
if (_root.gamePlay.car.fire_rate == 0 and _root.gamePlay.car.damage == 0) {
var v3 = _root.gamePlay.attachMovie('plus_ammo', 'plus_ammo' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
if (_root.mute == false) {
this.bonus.start();
}
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.ammo_bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 1419 __Packages.fire_rate_bonus {
#initclip
if (!_global.fire_rate_bonus) {
var v1 = function () {
super();
};
_global.fire_rate_bonus = v1;
_global.fire_rate_bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) {
if (_root.gamePlay.car.fire_rate == 0) {
var v3 = _root.gamePlay.attachMovie('plus_fire_rate', 'plus_fire_rate' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
_root.gamePlay.car.fire_rate += 525;
if (_root.mute == false) {
this.bonus.start();
}
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.fire_rate_bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 1420 __Packages.damage_bonus {
#initclip
if (!_global.damage_bonus) {
var v1 = function () {
super();
};
_global.damage_bonus = v1;
_global.damage_bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) {
if (_root.gamePlay.car.damage == 0) {
var v3 = _root.gamePlay.attachMovie('plus_damage', 'plus_damage' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
_root.gamePlay.car.damage += 10;
if (_root.gamePlay.car.damage > _root.gamePlay.car.ammo and _root.gamePlay.car.ammo >= 2) {
_root.gamePlay.car.damage = Math.round(_root.gamePlay.car.ammo);
}
if (_root.mute == false) {
this.bonus.start();
}
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.damage_bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 1421 __Packages.armor_bonus {
#initclip
if (!_global.armor_bonus) {
var v1 = function () {
super();
};
_global.armor_bonus = v1;
_global.armor_bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
if (this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) {
if (_root.gamePlay.car.armor == 0) {
var v3 = _root.gamePlay.attachMovie('plus_armor', 'plus_armor' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
_root.gamePlay.car.armor += 100;
if (_root.mute == false) {
this.bonus.start();
}
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.armor_bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 1422 __Packages.smoke_flake_rocket {
#initclip
if (!_global.smoke_flake_rocket) {
var v1 = function () {
super();
};
_global.smoke_flake_rocket = v1;
_global.smoke_flake_rocket extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.sin = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this._y += 1.5;
this._x += (Math.random() * 2 - 1) * Math.sin(this.sin);
this.sin += 0.35;
this._xscale -= 0.5;
this._yscale -= 0.5;
this._alpha -= 0.5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (this._xscale <= 0) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.smoke_flake_rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 1423 __Packages.smoke_rocket {
#initclip
if (!_global.smoke_rocket) {
var v1 = function () {
super();
};
_global.smoke_rocket = v1;
_global.smoke_rocket extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.timer = 4;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (_root.graphic_level > 1) {
this.timer += 2;
if (this.timer >= 5) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
this.timer = 0;
this.smoke_flake = this.attachMovie('smoke_flake_rocket', 'smoke_flake_rocket' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
}
}
};
ASSetPropFlags(_global.smoke_rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 1424 __Packages.rocket {
#initclip
if (!_global.rocket) {
var v1 = function () {
super();
};
_global.rocket = v1;
_global.rocket extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.sin = 0;
this.stop = 1;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y <= 650 or this.aPoint.y >= -50 or this.aPoint.x <= 550 or this.aPoint.x >= -50) {
_root.rocket_massive.push(this);
}
this.rocket_launch = new Sound();
this.rocket_launch.attachSound('rocket_launch');
if (_root.mute == false) {
this.rocket_launch.start();
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.body.localToGlobal(this.aPoint);
this._y += this.yspeed;
this._x += this.stop * Math.sin(this.sin) + this.xspeed;
this.sin += 0.5;
}
};
ASSetPropFlags(_global.rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 1425 __Packages.tower_rocket {
#initclip
if (!_global.tower_rocket) {
var v1 = function () {
super();
};
_global.tower_rocket = v1;
_global.tower_rocket extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.sin = 0;
this.stop = 1;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
_root.enemy_rocket_massive.push(this);
this.rocket_launch = new Sound();
this.rocket_launch.attachSound('rocket_launch');
if (_root.mute == false) {
this.rocket_launch.start();
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this._y += this.yspeed;
this._x += this.xspeed;
this.sin += 0.5;
}
};
ASSetPropFlags(_global.tower_rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 1426 __Packages.heli_rocket {
#initclip
if (!_global.heli_rocket) {
var v1 = function () {
super();
};
_global.heli_rocket = v1;
_global.heli_rocket extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.sin = 0;
this.stop = 1;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y <= 650 or this.aPoint.y >= -50 or this.aPoint.x <= 550 or this.aPoint.x >= -50) {
_root.heli_rocket_massive.push(this);
}
this.rocket_launch = new Sound();
this.rocket_launch.attachSound('rocket_launch');
if (_root.mute == false) {
this.rocket_launch.start();
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this._y += this.yspeed;
this._x += this.stop * Math.sin(this.sin) + this.xspeed;
this.sin += 0.5;
}
};
ASSetPropFlags(_global.heli_rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 1427 __Packages.track {
#initclip
if (!_global.track) {
var v1 = function () {
super();
};
_global.track = v1;
_global.track extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.timer = 0;
this._alpha = 100;
this.gotoAndStop(_root.level_number);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.timer += 1;
this._alpha -= 1;
if (this.timer >= 100) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.track.prototype, null, 1);
}
#endinitclip
}
movieClip 1428 __Packages.smoke_flake {
#initclip
if (!_global.smoke_flake) {
var v1 = function () {
super();
};
_global.smoke_flake = v1;
_global.smoke_flake extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.sin = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this._x += (Math.random() * 2 - 1) * Math.sin(this.sin);
this.sin += 1;
this._xscale -= 1;
this._yscale -= 1;
this._alpha -= 5;
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (this._xscale <= 0) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.smoke_flake.prototype, null, 1);
}
#endinitclip
}
movieClip 1429 __Packages.exp_01 {
#initclip
if (!_global.exp_01) {
var v1 = function () {
super();
};
_global.exp_01 = v1;
_global.exp_01 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.explosion = new Sound(this);
this.explosion.attachSound('explosion_02');
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 10;
if (this.volume <= 0) {
this.volume = 0;
}
this.explosion.setVolume(this.volume);
if (_root.mute == false) {
this.explosion.start();
}
};
v2.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.exp_01.prototype, null, 1);
}
#endinitclip
}
movieClip 1430 __Packages.exp_02 {
#initclip
if (!_global.exp_02) {
var v1 = function () {
super();
};
_global.exp_02 = v1;
_global.exp_02 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.explosion = new Sound(this);
this.explosion.attachSound('explosion_02');
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 10;
if (this.volume <= 0) {
this.volume = 0;
}
this.explosion.setVolume(this.volume);
if (_root.mute == false) {
this.explosion.start();
}
};
v2.onEnterFrame = function () {
if (this._currentframe == this._totalframes) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.exp_02.prototype, null, 1);
}
#endinitclip
}
movieClip 1431 __Packages.prepare_to_fight {
#initclip
if (!_global.prepare_to_fight) {
var v1 = function () {
super();
};
_global.prepare_to_fight = v1;
_global.prepare_to_fight extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
if (_root.level_number == 3) {
this.animation.gotoAndStop(2);
}
this.frame = _root._currentframe;
};
v2.onEnterFrame = function () {
if (this._currentframe == this._totalframes or _root.gamePlay.car.lifes <= 0 or this.frame != _root._currentframe) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.prepare_to_fight.prototype, null, 1);
}
#endinitclip
}
movieClip 1432 __Packages.mission_complete {
#initclip
if (!_global.mission_complete) {
var v1 = function () {
super();
};
_global.mission_complete = v1;
_global.mission_complete extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
stopAllSounds();
if (_root.level_number == 2 && _root.desert_strike_score <= _root.score) {
_root.desert_strike_score = _root.score;
}
if (_root.level_number == 3 && _root.aurora_score <= _root.score) {
_root.aurora_score = _root.score;
}
if (_root.level_number == 4 && _root.railway_score <= _root.score) {
_root.railway_score = _root.score;
}
if (_root.level_number == 5 && _root.base_score <= _root.score) {
_root.base_score = _root.score;
}
this.victory = new Sound(this);
this.victory.attachSound('victory');
if (_root.mute == false) {
this.victory.start(0, 10);
}
this._alpha = 0;
this.alpha = 0;
};
v2.onEnterFrame = function () {
this.victory.setVolume(200 - this.alpha);
if (this.alpha < 200) {
this.alpha += 0.4;
}
if (this.alpha > 0) {
this._alpha = this.alpha / 2;
}
if (this.alpha >= 200) {
this.removeMovieClip();
if (_root.level_base > 0 and _root.level_railway > 0 and _root.level_aurora > 0 and _root.level_desert_strike > 0 and _root.titles == false) {
_root.titles = true;
_root.gotoAndStop('submit_screen');
} else {
_root.gotoAndStop('level_menu');
}
}
};
ASSetPropFlags(_global.mission_complete.prototype, null, 1);
}
#endinitclip
}
movieClip 1433 __Packages.titles_fader {
#initclip
if (!_global.titles_fader) {
var v1 = function () {
super();
};
_global.titles_fader = v1;
_global.titles_fader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 0;
this.counter = 0;
};
v2.onEnterFrame = function () {
if (this.counter >= 100) {
this._alpha += 1;
}
this.counter += 1;
if (this.counter == 400) {
this._alpha = 0;
this.counter = 0;
this.title.gotoAndStop(this.title._currentframe + 1);
}
};
ASSetPropFlags(_global.titles_fader.prototype, null, 1);
}
#endinitclip
}
movieClip 1434 __Packages.intro_fader {
#initclip
if (!_global.intro_fader) {
var v1 = function () {
super();
};
_global.intro_fader = v1;
_global.intro_fader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 100;
this.out = false;
this.counter = 0;
};
v2.onEnterFrame = function () {
if (this.out == false) {
this._alpha -= 2.25;
}
if (this.out == true) {
this._alpha += 2.25;
}
if (this._alpha <= 0) {
if (this._alpha <= 0) {
this._alpha = 0;
}
this.counter += 1;
if (this.counter >= 44) {
this.out = true;
}
}
if (this._alpha >= 100) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.intro_fader.prototype, null, 1);
}
#endinitclip
}
movieClip 1435 __Packages.titles_fader_in {
#initclip
if (!_global.titles_fader_in) {
var v1 = function () {
super();
};
_global.titles_fader_in = v1;
_global.titles_fader_in extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 0;
};
v2.onEnterFrame = function () {
this._alpha += 2;
if (this._alpha >= 100) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.titles_fader_in.prototype, null, 1);
}
#endinitclip
}
movieClip 1436 __Packages.titles_fader_out {
#initclip
if (!_global.titles_fader_out) {
var v1 = function () {
super();
};
_global.titles_fader_out = v1;
_global.titles_fader_out extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 100;
};
v2.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha -= 2;
}
if (this._alpha == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.titles_fader_out.prototype, null, 1);
}
#endinitclip
}
movieClip 1437 __Packages.fader {
#initclip
if (!_global.fader) {
var v1 = function () {
super();
};
_global.fader = v1;
_global.fader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 100;
};
v2.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha -= 1;
}
if (this._alpha == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.fader.prototype, null, 1);
}
#endinitclip
}
movieClip 1438 __Packages.fader_out {
#initclip
if (!_global.fader_out) {
var v1 = function () {
super();
};
_global.fader_out = v1;
_global.fader_out extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
stopAllSounds();
this.mission_failed = new Sound(this);
this.mission_failed.attachSound('mission_failed');
if (_root.mute == false) {
this.mission_failed.start(0, 10);
}
this._alpha = 0;
this.alpha = 0;
};
v2.onEnterFrame = function () {
this.mission_failed.setVolume(200 - this.alpha);
if (this.alpha < 200) {
this.alpha += 0.4;
}
if (this.alpha > 0) {
this._alpha = this.alpha / 2;
}
if (this.alpha >= 200) {
this.removeMovieClip();
_root.gotoAndStop('level_menu');
}
};
ASSetPropFlags(_global.fader_out.prototype, null, 1);
}
#endinitclip
}
movieClip 1439 __Packages.pause_fader {
#initclip
if (!_global.pause_fader) {
var v1 = function () {
super();
};
_global.pause_fader = v1;
_global.pause_fader extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this._alpha = 0;
};
v2.onEnterFrame = function () {
if (this._alpha < 78 and _root.pause == true) {
this._alpha += 3;
}
if (this._alpha > 0 and _root.pause == false) {
this._alpha -= 3;
}
};
ASSetPropFlags(_global.pause_fader.prototype, null, 1);
}
#endinitclip
}
movieClip 1440 __Packages.smoke {
#initclip
if (!_global.smoke) {
var v1 = function () {
super();
};
_global.smoke = v1;
_global.smoke extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.timer = 4;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (_root.car_controller.speed > 0 and _root.graphic_level > 1 and _root.level_number != 4) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
if (_root.graphic_level > 1) {
this.timer += 1.5;
if (this.timer >= 4) {
this.timer = 0;
this.smoke_flake = _root.gamePlay.BlockBottom.attachMovie('smoke_flake', 'smoke_flake' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
this.smoke_flake._x = this.APoint.x;
this.smoke_flake._y = this.APoint.y;
}
}
}
}
};
ASSetPropFlags(_global.smoke.prototype, null, 1);
}
#endinitclip
}
movieClip 1441 __Packages.helicopter_test {
#initclip
if (!_global.helicopter_test) {
var v1 = function () {
super();
};
_global.helicopter_test = v1;
_global.helicopter_test extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.volume = 0;
this.ySpeed = 0;
this.sound_on = false;
this.deltaAngle = 0;
this.rotation = 0;
this.rocket_counter = 0;
this.ySpeed = 7.5;
this.helicopter_lifes = 100;
this.alpha = 400;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.helicopter_lifes != 200) {
this.lifes_bar._xscale = this.helicopter_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.lifes_bar._rotation = -this._rotation;
this.border._rotation = -this._rotation;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.lPoint = new flash.geom.Point(-18, 7);
this.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(18, 7);
this.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
this.volume = 175 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 8;
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.helicopter_sound.setVolume(this.volume);
if (this.helicopter_lifes == 200) {
this.alpha -= 2;
if (this.alpha <= 100) {
this._alpha = this.alpha;
}
}
if (this.aPoint.y > -250 and this.aPoint.y < 750 and this.aPoint.x < 700 and this.aPoint.x > -200) {
if (this.sound_on == false) {
this.helicopter_sound = new Sound(this);
this.helicopter_sound.attachSound('helicopter_sound');
if (_root.mute == true) {
this.volume = 0;
}
this.helicopter_sound.setVolume(this.volume);
this.helicopter_sound.start(0, 1000);
this.sound_on = true;
}
if (this.helicopter_lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.header.hitTest(_root.gamePlay.car)) {
if (this.ySpeed > 0) {
this.ySpeed -= 0.25;
}
} else {
if (this.ySpeed < 8) {
this.ySpeed += 0.1;
}
}
if (this.helicopter_lifes >= 0 and this.helicopter_lifes <= 100) {
this.rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
this.deltaAngle = (this.rotation - this._rotation) % 360;
if (this.deltaAngle < -180) {
this.deltaAngle += 360;
} else {
if (this.deltaAngle > 180) {
this.deltaAngle -= 360;
}
}
if (this.deltaAngle < -2) {
this._rotation -= 2;
}
if (this.deltaAngle > 2) {
this._rotation += 2;
}
if (Math.abs(this.deltaAngle) < 30) {
this._y += this.ySpeed * Math.cos((this._rotation / 180) * Math.PI);
this._x -= this.ySpeed * Math.sin((this._rotation / 180) * Math.PI);
}
}
for (var v5 in _root.rocket_massive) {
if (this.body_bottom.hitTest(_root.rocket_massive[v5].body) or this.body_top.hitTest(_root.rocket_massive[v5].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.helicopter_lifes <= 100) {
this.helicopter_lifes -= 20 * _root.damage;
}
}
}
this.rocket_counter += 1;
if (this.rocket_counter == 80 and this.helicopter_lifes > 0 and this.helicopter_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('heli_rocket', 'heli_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.RPoint.x;
v4._y = this.RPoint.y;
v4.xspeed = -Math.sin(this._rotation * Math.PI / 180) * 10;
v4.yspeed = Math.cos(this._rotation * Math.PI / 180) * 10;
v4._rotation = this._rotation;
this.rocket_counter = 0;
}
if (this.helicopter_lifes <= 0) {
_root.score += 100 * _root.difficulty;
this.gotoAndPlay(2);
this.helicopter_lifes = 200;
this.helicopter_sound.stop();
}
}
if (this.aPoint.y > 1000 or this.aPoint.y < -800 or this.alpha == 10) {
this.helicopter_sound.stop();
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.helicopter_test.prototype, null, 1);
}
#endinitclip
}
movieClip 1442 __Packages.mothership {
#initclip
if (!_global.mothership) {
var v1 = function () {
super();
};
_global.mothership = v1;
_global.mothership extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 950 or this.aPoint.y < -900) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.mothership.prototype, null, 1);
}
#endinitclip
}
movieClip 1443 __Packages.plus_damage {
#initclip
if (!_global.plus_damage) {
var v1 = function () {
super();
};
_global.plus_damage = v1;
_global.plus_damage extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.alpha = false;
this._alpha = 85;
};
v2.onEnterFrame = function () {
if (_root.gamePlay.car.damage > 0) {
this.timer.text = _root.gamePlay.car.damage;
}
if (_root.gamePlay.car.damage <= 0) {
this.alpha = true;
}
if (this.alpha == true) {
this._alpha -= 2;
}
if (_root.gamePlay.car.damage == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.plus_damage.prototype, null, 1);
}
#endinitclip
}
movieClip 1444 __Packages.plus_fire_rate {
#initclip
if (!_global.plus_fire_rate) {
var v1 = function () {
super();
};
_global.plus_fire_rate = v1;
_global.plus_fire_rate extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.alpha = false;
this._alpha = 85;
};
v2.onEnterFrame = function () {
if (_root.gamePlay.car.fire_rate > 0) {
this.timer.text = Math.floor(_root.gamePlay.car.fire_rate / 35) + 1;
}
if (_root.gamePlay.car.fire_rate == 50) {
this.alpha = true;
}
if (this.alpha == true) {
this._alpha -= 2;
}
if (_root.gamePlay.car.fire_rate == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.plus_fire_rate.prototype, null, 1);
}
#endinitclip
}
movieClip 1445 __Packages.plus_armor {
#initclip
if (!_global.plus_armor) {
var v1 = function () {
super();
};
_global.plus_armor = v1;
_global.plus_armor extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.alpha = false;
this._alpha = 85;
this.armor = 0;
};
v2.onEnterFrame = function () {
this.armor = Math.round(_root.gamePlay.car.armor);
if (this.armor <= 0) {
this.armor = 0;
}
this.timer.text = this.armor;
if (_root.gamePlay.car.armor <= 0) {
this.alpha = true;
}
if (this.alpha == true) {
this._alpha -= 2;
}
if (_root.gamePlay.car.armor <= 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.plus_armor.prototype, null, 1);
}
#endinitclip
}
movieClip 1446 __Packages.plus {
#initclip
if (!_global.plus) {
var v1 = function () {
super();
};
_global.plus = v1;
_global.plus extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha -= 1.5;
}
if (this._alpha == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.plus.prototype, null, 1);
}
#endinitclip
}
movieClip 1447 __Packages.box {
#initclip
if (!_global.box) {
var v1 = function () {
super();
};
_global.box = v1;
_global.box extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.box_lifes = 100;
this.random = Math.random();
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.box_lifes = 200;
this.gotoAndStop(this._totalframes);
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.frontPoint.x, _root.gamePlay.car.frontPoint.y, this.box_body._width, this.box_body._height, _root.gamePlay.car.front._width, _root.gamePlay.car.front._height);
if (_root.gamePlay.collision == true) {
if (_root.car_controller.speed >= 4.75 and this.box_lifes <= 100) {
this.box_lifes -= 100;
}
_root.car_controller.back_speed = _root.car_controller.speed;
if (_root.car_controller.back_speed <= 0.75) {
_root.car_controller.back_speed = 0.75;
}
_root.car_controller.speed = 0;
}
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.backPoint.x, _root.gamePlay.car.backPoint.y, this.box_body._width, this.box_body._height, _root.gamePlay.car.back._width, _root.gamePlay.car.back._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.speed = _root.car_controller.back_speed;
if (_root.car_controller.speed <= 0.75) {
_root.car_controller.speed = 0.75;
}
_root.car_controller.back_speed = 0;
}
if (this.box_lifes <= 100) {
for (var v4 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v4].aPoint.x, _root.rocket_massive[v4].aPoint.y, this.box_body._width, this.box_body._height, _root.rocket_massive[v4].body._width, _root.rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
this.box_lifes -= 100;
}
}
}
for (v4 in _root.enemy_massive) {
if (this.box_body.hitTest(_root.enemy_massive[v4].header)) {
if (_root.enemy_massive[v4].ySpeed > 0) {
_root.enemy_massive[v4].ySpeed -= 0.1;
}
}
}
if (this.box_lifes <= 0) {
this.box_lifes = 200;
this.gotoAndPlay(2);
}
if (this.box_lifes == 200 and this._currentframe == 20) {
if (this.random > 0 and this.random <= 0.15) {
this.block.attachMovie('health_bonus', 'health_bonus' + this.block.getNextHighestDepth(), this.block.getNextHighestDepth());
}
if (this.random > 0.2 and this.random <= 0.3) {
this.block.attachMovie('ammo_bonus', 'ammo_bonus' + this.block.getNextHighestDepth(), this.block.getNextHighestDepth());
}
if (this.random > 0.4 and this.random <= 0.325) {
this.block.attachMovie('mega_health_bonus', 'mega_health_bonus' + this.block.getNextHighestDepth(), this.block.getNextHighestDepth());
}
if (this.random > 0.405 and this.random <= 0.525) {
this.block.attachMovie('fire_rate_bonus', 'fire_rate_bonus' + this.block.getNextHighestDepth(), this.block.getNextHighestDepth());
}
if (this.random > 0.525 and this.random <= 0.61) {
this.block.attachMovie('damage_bonus', 'damage_bonus' + this.block.getNextHighestDepth(), this.block.getNextHighestDepth());
}
if (this.random > 0.61 and this.random <= 0.67) {
this.block.attachMovie('armor_bonus', 'armor_bonus' + this.block.getNextHighestDepth(), this.block.getNextHighestDepth());
}
}
}
};
ASSetPropFlags(_global.box.prototype, null, 1);
}
#endinitclip
}
movieClip 1448 __Packages.raft_instruction {
#initclip
if (!_global.raft_instruction) {
var v1 = function () {
super();
};
_global.raft_instruction = v1;
_global.raft_instruction extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.raft_massive.push(this);
this.xSpeed = 0;
this.ySpeed = 0;
this.counter = 0;
this.tank_engine = new Sound(this);
this.tank_engine.attachSound('tank_engine');
this.tank_engine.setVolume(0);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.frame_top > _root.gamePlay.backPlanTop._currentframe or this.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.removeMovieClip();
this.tank_engine.stop();
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 2500) {
this.removeMovieClip();
this.tank_engine.stop();
}
if (this.raft_engine.hitTest(_root.gamePlay.car.front) and this._currentframe == 1) {
this.gotoAndStop(2);
this.tank_engine.start(0, 5000);
}
if ((this.raft_header.hitTest(_root.gamePlay.backPlanTop.dock) or this.raft_header.hitTest(_root.gamePlay.backPlanBottom.dock)) and this.ySpeed > 0.5) {
this.ySpeed -= 0.05;
}
if (this.raft_body.hitTest(_root.gamePlay.backPlanTop.dock) or this.raft_body.hitTest(_root.gamePlay.backPlanBottom.dock)) {
this.ySpeed = 0;
_root.raftSpeed = 0;
_root.raftSpeed_instruction = 0;
this.gotoAndStop(3);
this.tank_engine.stop();
}
if (this.raft_body.hitTest(_root.gamePlay.car) and this._currentframe == 2) {
this.ySpeed += 0.01;
_root.gamePlay.car.level_complete = true;
_root.raftSpeed = this.ySpeed;
_root.raftSpeed_instruction = this.ySpeed;
}
if (_root.gamePlay.car.level_complete == true) {
this.counter += 1;
if (this.counter == 100) {
_root.attachMovie('mission_complete', 'mission_complete' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.level_instruction = 1;
trace(_root.level_instruction);
}
}
this._y -= this.ySpeed;
if (_root.mute == true) {
this.tank_engine.setVolume(0);
} else {
this.tank_engine.setVolume(this.ySpeed * 20);
}
}
};
ASSetPropFlags(_global.raft_instruction.prototype, null, 1);
}
#endinitclip
}
movieClip 1449 __Packages.raft {
#initclip
if (!_global.raft) {
var v1 = function () {
super();
};
_global.raft = v1;
_global.raft extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.raft_massive.push(this);
this.xSpeed = 0;
this.ySpeed = 0;
this.tank_engine = new Sound(this);
this.tank_engine.attachSound('tank_engine');
this.tank_engine.setVolume(0);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.frame_top > _root.gamePlay.backPlanTop._currentframe or this.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.removeMovieClip();
this.tank_engine.stop();
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 2500) {
this.removeMovieClip();
this.tank_engine.stop();
}
if (this.raft_engine.hitTest(_root.gamePlay.car) and this._currentframe == 1) {
this.gotoAndStop(2);
this.tank_engine.start(0, 5000);
}
if ((this.raft_header.hitTest(_root.gamePlay.backPlanTop.dock) or this.raft_header.hitTest(_root.gamePlay.backPlanBottom.dock)) and this.ySpeed > 0.5) {
this.ySpeed -= 0.05;
}
if (this.raft_body.hitTest(_root.gamePlay.backPlanTop.dock) or this.raft_body.hitTest(_root.gamePlay.backPlanBottom.dock)) {
this.ySpeed = 0;
_root.raftSpeed = 0;
this.gotoAndStop(3);
this.tank_engine.stop();
}
if (this.raft_body.hitTest(_root.gamePlay.car.front) and this._currentframe == 2) {
this.ySpeed += 0.01;
_root.raftSpeed = this.ySpeed;
_root.yspeed += this.ySpeed;
}
this._y -= this.ySpeed;
if (this.ySpeed >= 2.5) {
this.ySpeed = 2.5;
}
if (_root.mute == true) {
this.tank_engine.setVolume(0);
} else {
this.tank_engine.setVolume(this.ySpeed * 20);
}
}
};
ASSetPropFlags(_global.raft.prototype, null, 1);
}
#endinitclip
}
movieClip 1450 __Packages.plane {
#initclip
if (!_global.plane) {
var v1 = function () {
super();
};
_global.plane = v1;
_global.plane extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.plane_lifes = 100;
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.frame_top > _root.gamePlay.backPlanTop._currentframe or this.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
trace('plane_delete');
this.removeMovieClip();
}
if (this.aPoint.y > 2500) {
trace('plane_delete_distance');
this.removeMovieClip();
}
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
for (var v4 in _root.rocket_massive) {
if (this.plane_body_nose.hitTest(_root.rocket_massive[v4].body) or this.plane_wings.hitTest(_root.rocket_massive[v4].body) or this.plane_body_tale.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.plane_lifes <= 100) {
this.plane_lifes -= 20 * _root.damage;
}
}
}
if (this.plane_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.gotoAndPlay(2);
this.plane_lifes = 200;
}
}
};
ASSetPropFlags(_global.plane.prototype, null, 1);
}
#endinitclip
}
movieClip 1451 __Packages.madtruck {
#initclip
if (!_global.madtruck) {
var v1 = function () {
super();
};
_global.madtruck = v1;
_global.madtruck extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.tank_engine = new Sound(this);
this.tank_engine.attachSound('tank_engine');
this.tank_engine.setVolume(0);
if (_root.mute == false) {
this.tank_engine.start(0, 5000);
}
this.volume = 0;
_root.enemy_massive.push(this);
this.ySpeed = 1.5;
this.lifes = 100;
this.alpha = 400;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.car_body.localToGlobal(this.aPoint);
if (this.lifes != 200) {
this.volume = 100 - Math.sqrt((this.aPoint.x - _root.gamePlay.car.aPoint.x) * (this.aPoint.x - _root.gamePlay.car.aPoint.x) + (this.aPoint.y - _root.gamePlay.car.aPoint.y) * (this.aPoint.y - _root.gamePlay.car.aPoint.y)) / 6;
}
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.tank_engine.setVolume(this.volume);
if (this.aPoint.y > -500 and this.aPoint.y < 1000 and this.aPoint.x < 1000 and this.aPoint.x > -300) {
if (this.lifes > 100) {
this.lifes = 200;
}
if (this.lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.header.hitTest(_root.gamePlay.car.front) or this.header.hitTest(_root.gamePlay.car.back)) {
this.ySpeed = 0;
}
if (this.ySpeed <= 0) {
this.ySpeed = 0;
}
if (this.lifes >= 0 and this.lifes <= 100) {
this._y -= this.ySpeed;
}
for (var v4 in _root.rocket_massive) {
if (this.car_body.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.lifes <= 100) {
this.lifes -= 10;
}
}
}
if (this.lifes <= 0) {
_root.score += 100 * _root.difficulty;
this.wagon.gotoAndPlay(2);
this.lifes = 200;
this.tank_engine.stop();
}
if (this.wagon._currentframe == 2) {
this.gun_01.tower_lifes = 0;
}
if (this.wagon._currentframe == 15) {
this.gun_02.tower_lifes = 0;
}
if (this.wagon._currentframe == 30) {
this.gun_03.tower_lifes = 0;
}
}
}
};
ASSetPropFlags(_global.madtruck.prototype, null, 1);
}
#endinitclip
}
movieClip 1452 __Packages.border_rocket_3 {
#initclip
if (!_global.border_rocket_3) {
var v1 = function () {
super();
};
_global.border_rocket_3 = v1;
_global.border_rocket_3 extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.frontPoint.x, _root.gamePlay.car.frontPoint.y, this._width, this._height, _root.gamePlay.car.front._width, _root.gamePlay.car.front._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.back_speed = _root.car_controller.speed * 0.5;
if (_root.car_controller.back_speed <= 0.75) {
_root.car_controller.back_speed = 0.75;
}
_root.car_controller.speed = 0;
}
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.backPoint.x, _root.gamePlay.car.backPoint.y, this._width, this._height, _root.gamePlay.car.back._width, _root.gamePlay.car.back._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.speed = _root.car_controller.back_speed * 0.5;
if (_root.car_controller.speed <= 0.75) {
_root.car_controller.speed = 0.75;
}
_root.car_controller.back_speed = 0;
}
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3].header)) {
if (_root.enemy_massive[v3].ySpeed > 0) {
_root.enemy_massive[v3].ySpeed -= 0.15;
}
}
}
}
};
ASSetPropFlags(_global.border_rocket_3.prototype, null, 1);
}
#endinitclip
}
movieClip 1453 __Packages.main_menu {
#initclip
if (!_global.main_menu) {
var v1 = function () {
super();
};
_global.main_menu = v1;
_global.main_menu extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
Mouse.hide();
this.key_is_down = false;
this.main_theme = new Sound(this);
this.main_theme.attachSound('main_theme');
if (_root.main_theme_counter == false) {
stopAllSounds();
_root.main_theme_counter = true;
if (_root.mute == false) {
this.main_theme.start(0, 100);
}
}
_root._quality = 'HIGH';
};
v2.onEnterFrame = function () {
this.onMouseDown = function () {
this.key_is_down = true;
};
if (this.arcade_town_button.hitTest(_root._xmouse, _root._ymouse)) {
this.arcade_town_button.gotoAndPlay(2);
}
if (this._x > 500 - _root._xmouse) {
this._x -= 2 * (this._x - 500 + _root._xmouse) / 1000;
}
if (this._x < 500 - _root._xmouse) {
this._x += 2 * (-this._x + 500 - _root._xmouse) / 1000;
}
if (this._y > -_root._ymouse) {
this._y -= 2 * (this._y + _root._ymouse) / 1000;
}
if (this._y < -_root._ymouse) {
this._y += 2 * (-_root._ymouse - this._y) / 1000;
}
if (this._x < 240) {
this._x = 240;
}
if (this._x > 260) {
this._x = 260;
}
if (this._y < -310) {
this._y = -310;
}
if (this._y > -290) {
this._y = -290;
}
_root.aim._x = _root._xmouse;
_root.aim._y = _root._ymouse;
if (this.play_button_main_menu.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.gotoAndStop('level_menu');
}
if (this.options_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.gotoAndStop('options');
}
if (this.credits_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.gotoAndStop('credits');
}
if (this.instructions_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.gotoAndStop('instructions');
}
if (this.sound_on_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
if (_root.mute == true) {
this.main_theme.start(0, 100);
}
_root.mute = false;
_root.main_theme_counter = true;
}
if (this.sound_off_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.mute = true;
_root.main_theme_counter = false;
stopAllSounds();
}
if (this.easy_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.difficulty = 1;
}
if (this.normal_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.difficulty = 2;
}
if (this.hard_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.difficulty = 3;
}
if (this.low_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.graphic_level = 1;
}
if (this.high_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.graphic_level = 2;
}
if (this.back_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.gotoAndStop('menu');
}
if (this.play_instruction_button.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.gotoAndStop(6);
}
if (this.play_button_main_menu.hitTest(_root._xmouse, _root._ymouse)) {
this.play_button_main_menu.gotoAndPlay(2);
}
if (this.options_button.hitTest(_root._xmouse, _root._ymouse)) {
this.options_button.gotoAndPlay(2);
}
if (this.instructions_button.hitTest(_root._xmouse, _root._ymouse)) {
this.instructions_button.gotoAndPlay(2);
}
if (this.credits_button.hitTest(_root._xmouse, _root._ymouse)) {
this.credits_button.gotoAndPlay(2);
}
if (this.low_button.hitTest(_root._xmouse, _root._ymouse) or _root.graphic_level == 1) {
this.low_button.gotoAndPlay(2);
}
if (this.high_button.hitTest(_root._xmouse, _root._ymouse) or _root.graphic_level == 2) {
this.high_button.gotoAndPlay(2);
}
if (this.easy_button.hitTest(_root._xmouse, _root._ymouse) or _root.difficulty == 1) {
this.easy_button.gotoAndPlay(2);
}
if (this.normal_button.hitTest(_root._xmouse, _root._ymouse) or _root.difficulty == 2) {
this.normal_button.gotoAndPlay(2);
}
if (this.hard_button.hitTest(_root._xmouse, _root._ymouse) or _root.difficulty == 3) {
this.hard_button.gotoAndPlay(2);
}
if (this.sound_on_button.hitTest(_root._xmouse, _root._ymouse) or _root.mute == false) {
this.sound_on_button.gotoAndPlay(2);
}
if (this.sound_off_button.hitTest(_root._xmouse, _root._ymouse) or _root.mute == true) {
this.sound_off_button.gotoAndPlay(2);
}
if (this.back_button.hitTest(_root._xmouse, _root._ymouse)) {
this.back_button.gotoAndPlay(2);
}
if (this.play_instruction_button.hitTest(_root._xmouse, _root._ymouse)) {
this.play_instruction_button.gotoAndPlay(2);
}
if (this.more_games.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.getURL('http://www.arcadetown.com/index.asp?gameid=searchanddestroythehotspot', 'blank');
}
if (this.add_game.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.getURL('http://www.arcadetown.com/free_content/index.asp', 'blank');
}
if (this.download_game.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.getURL('http://www.arcadetown.com/partner/download.asp?gameid=searchanddestroythehotspot', 'blank');
}
if (this.more_games.hitTest(_root._xmouse, _root._ymouse)) {
this.more_games.gotoAndPlay(2);
}
if (this.add_game.hitTest(_root._xmouse, _root._ymouse)) {
this.add_game.gotoAndPlay(2);
}
if (this.download_game.hitTest(_root._xmouse, _root._ymouse)) {
this.download_game.gotoAndPlay(2);
}
this.onMouseUp = function () {
this.key_is_down = false;
};
};
ASSetPropFlags(_global.main_menu.prototype, null, 1);
}
#endinitclip
}
movieClip 1454 __Packages.number {
#initclip
if (!_global.number) {
var v1 = function () {
super();
};
_global.number = v1;
_global.number extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.level_score = 0;
};
v2.onEnterFrame = function () {
this.number_100000 = Math.floor(this.level_score / 100000);
this.number_10000 = Math.floor((this.level_score - this.number_100000 * 100000) / 10000);
this.number_1000 = Math.floor((this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000) / 1000);
this.number_100 = Math.floor((this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000 - this.number_1000 * 1000) / 100);
this.number_10 = Math.floor((this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000 - this.number_1000 * 1000 - this.number_100 * 100) / 10);
this.number_1 = this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000 - this.number_1000 * 1000 - this.number_100 * 100 - this.number_10 * 10;
this.score_1.gotoAndStop(this.number_1 + 1);
this.score_10.gotoAndStop(this.number_10 + 1);
this.score_100.gotoAndStop(this.number_100 + 1);
this.score_1000.gotoAndStop(this.number_1000 + 1);
this.score_10000.gotoAndStop(this.number_10000 + 1);
this.score_100000.gotoAndStop(this.number_100000 + 1);
if (this.number_100000 < 1) {
this.score_100000._visible = false;
} else {
this.score_100000._visible = true;
}
if (this.number_10000 < 1 && this.number_100000 < 1) {
this.score_10000._visible = false;
} else {
this.score_10000._visible = true;
}
if (this.number_10000 < 1 && this.number_1000 < 1 && this.number_100000 < 1) {
this.score_1000._visible = false;
} else {
this.score_1000._visible = true;
}
if (this.number_10000 < 1 && this.number_1000 < 1 && this.number_100 < 1 && this.number_100000 < 1) {
this.score_100._visible = false;
} else {
this.score_100._visible = true;
}
if (this.number_10000 < 1 && this.number_1000 < 1 && this.number_100 < 1 && this.number_10 < 1 && this.number_100000 < 1) {
this.score_10._visible = false;
} else {
this.score_10._visible = true;
}
};
v2.scores = function (score) {
this.level_score = score;
};
ASSetPropFlags(_global.number.prototype, null, 1);
}
#endinitclip
}
movieClip 1455 __Packages.total_number {
#initclip
if (!_global.total_number) {
var v1 = function () {
super();
};
_global.total_number = v1;
_global.total_number extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
this.level_score = _root.total_score;
this.number_100000 = Math.floor(this.level_score / 100000);
this.number_10000 = Math.floor((this.level_score - this.number_100000 * 100000) / 10000);
this.number_1000 = Math.floor((this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000) / 1000);
this.number_100 = Math.floor((this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000 - this.number_1000 * 1000) / 100);
this.number_10 = Math.floor((this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000 - this.number_1000 * 1000 - this.number_100 * 100) / 10);
this.number_1 = this.level_score - this.number_100000 * 100000 - this.number_10000 * 10000 - this.number_1000 * 1000 - this.number_100 * 100 - this.number_10 * 10;
this.score_1.gotoAndStop(this.number_1 + 1);
this.score_10.gotoAndStop(this.number_10 + 1);
this.score_100.gotoAndStop(this.number_100 + 1);
this.score_1000.gotoAndStop(this.number_1000 + 1);
this.score_10000.gotoAndStop(this.number_10000 + 1);
this.score_100000.gotoAndStop(this.number_100000 + 1);
if (this.number_100000 < 1) {
this.score_100000._visible = false;
} else {
this.score_100000._visible = true;
}
if (this.number_10000 < 1 && this.number_100000 < 1) {
this.score_10000._visible = false;
} else {
this.score_10000._visible = true;
}
if (this.number_10000 < 1 && this.number_1000 < 1 && this.number_100000 < 1) {
this.score_1000._visible = false;
} else {
this.score_1000._visible = true;
}
if (this.number_10000 < 1 && this.number_1000 < 1 && this.number_100 < 1 && this.number_100000 < 1) {
this.score_100._visible = false;
} else {
this.score_100._visible = true;
}
if (this.number_10000 < 1 && this.number_1000 < 1 && this.number_100 < 1 && this.number_10 < 1 && this.number_100000 < 1) {
this.score_10._visible = false;
} else {
this.score_10._visible = true;
}
};
ASSetPropFlags(_global.total_number.prototype, null, 1);
}
#endinitclip
}
movieClip 1456 __Packages.level_menu {
#initclip
if (!_global.level_menu) {
var v1 = function () {
super();
};
_global.level_menu = v1;
_global.level_menu extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.total_score = _root.desert_strike_score + _root.aurora_score + _root.railway_score + _root.base_score;
if (_root.titles == true) {
this.submit._visible = true;
} else {
this.submit._visible = false;
}
this.key_is_down = false;
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
this.number = 6;
Mouse.hide();
if (_root.mute == true) {
stopAllSounds();
}
if (_root.main_theme_counter == false) {
stopAllSounds();
_root.main_theme_counter = true;
this.main_theme = new Sound(this);
this.main_theme.attachSound('main_theme');
if (_root.mute == false) {
this.main_theme.start(0, 100);
}
}
_root._quality = 'HIGH';
};
v2.onEnterFrame = function () {
this.onMouseDown = function () {
this.key_is_down = true;
};
if (this._x > 500 - _root._xmouse) {
this._x -= 2 * (this._x - 500 + _root._xmouse) / 1000;
}
if (this._x < 500 - _root._xmouse) {
this._x += 2 * (-this._x + 500 - _root._xmouse) / 1000;
}
if (this._y > -_root._ymouse) {
this._y -= 2 * (this._y + _root._ymouse) / 1000;
}
if (this._y < -_root._ymouse) {
this._y += 2 * (-_root._ymouse - this._y) / 1000;
}
if (this._x < 240) {
this._x = 240;
}
if (this._x > 260) {
this._x = 260;
}
if (this._y < -310) {
this._y = -310;
}
if (this._y > -290) {
this._y = -290;
}
_root.aim._x = _root._xmouse;
_root.aim._y = _root._ymouse;
if (this.more_games.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.getURL('http://www.arcadetown.com/index.asp?gameid=searchanddestroythehotspot', 'blank');
}
if (this.more_games.hitTest(_root._xmouse, _root._ymouse)) {
this.more_games.gotoAndPlay(2);
}
if (this.training.body.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.number = 6;
this.level_photos.gotoAndStop(1);
}
if (this.aurora.body.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.number = 9;
this.level_photos.gotoAndStop(2);
}
if (this.base.body.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.number = 10;
this.level_photos.gotoAndStop(3);
}
if (this.desert.body.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.number = 7;
this.level_photos.gotoAndStop(4);
}
if (this.railway.body.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
this.number = 8;
this.level_photos.gotoAndStop(5);
}
if (this.start.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.gotoAndStop(this.number);
}
if (this.back.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.gotoAndStop('main_menu');
}
if (this.submit.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true and _root.titles == true) {
_root.gotoAndStop('submit_screen');
}
if (this.start.hitTest(_root._xmouse, _root._ymouse)) {
this.start.gotoAndPlay(2);
}
if (this.back.hitTest(_root._xmouse, _root._ymouse)) {
this.back.gotoAndPlay(2);
}
if (this.number == 6) {
this.level_score_text._visible = false;
this.level_score._visible = false;
} else {
this.level_score_text._visible = true;
this.level_score._visible = true;
}
if (this.level_photos._currentframe == 4) {
this.level_score.scores(_root.desert_strike_score);
}
if (this.level_photos._currentframe == 2) {
this.level_score.scores(_root.aurora_score);
}
if (this.level_photos._currentframe == 5) {
this.level_score.scores(_root.railway_score);
}
if (this.level_photos._currentframe == 3) {
this.level_score.scores(_root.base_score);
}
if (this.number == 6) {
this.training.gotoAndPlay(2);
}
if (this.number == 9) {
this.aurora.gotoAndPlay(2);
}
if (this.number == 10) {
this.base.gotoAndPlay(2);
}
if (this.number == 7) {
this.desert.gotoAndPlay(2);
}
if (this.number == 8) {
this.railway.gotoAndPlay(2);
}
this.onMouseUp = function () {
this.key_is_down = false;
};
};
ASSetPropFlags(_global.level_menu.prototype, null, 1);
}
#endinitclip
}
movieClip 1457 __Packages.photos {
#initclip
if (!_global.photos) {
var v1 = function () {
super();
};
_global.photos = v1;
_global.photos extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this._currentframe == 1) {
if (_root.level_instruction > 0) {
this.mission.gotoAndStop(4);
this.mission._visible = true;
} else {
this.mission._visible = false;
}
}
if (this._currentframe == 2) {
if (_root.level_aurora > 0) {
this.mission.gotoAndStop(_root.level_aurora);
this.mission._visible = true;
} else {
this.mission._visible = false;
}
}
if (this._currentframe == 3) {
if (_root.level_base > 0) {
this.mission.gotoAndStop(_root.level_base);
this.mission._visible = true;
} else {
this.mission._visible = false;
}
}
if (this._currentframe == 4) {
if (_root.level_desert_strike > 0) {
this.mission.gotoAndStop(_root.level_desert_strike);
this.mission._visible = true;
} else {
this.mission._visible = false;
}
}
if (this._currentframe == 5) {
if (_root.level_railway > 0) {
this.mission.gotoAndStop(_root.level_railway);
this.mission._visible = true;
} else {
this.mission._visible = false;
}
}
};
ASSetPropFlags(_global.photos.prototype, null, 1);
}
#endinitclip
}
movieClip 1458 __Packages.gates {
#initclip
if (!_global.gates) {
var v1 = function () {
super();
};
_global.gates = v1;
_global.gates extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.controller_lifes = 100;
this.gates_sound = new Sound(this);
this.gates_sound.attachSound('gates');
this.gates_sound.setVolume(50);
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 650) {
this.gotoAndStop(1);
}
if (this.controller_lifes <= 100) {
for (var v4 in _root.rocket_massive) {
if (this.controller.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
this.controller_lifes -= 100;
}
}
}
if (this.controller_lifes <= 0) {
this.controller_lifes = 200;
this.gotoAndPlay(2);
}
if (this._currentframe == 2) {
this.gates_sound.start();
}
if (_root.mute == true) {
this.gates_sound.setVolume(0);
} else {
this.gates_sound.setVolume(35);
}
};
ASSetPropFlags(_global.gates.prototype, null, 1);
}
#endinitclip
}
movieClip 1459 __Packages.health_bonus_boss {
#initclip
if (!_global.health_bonus_boss) {
var v1 = function () {
super();
};
_global.health_bonus_boss = v1;
_global.health_bonus_boss extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
this.timer = 0;
};
v2.onEnterFrame = function () {
this.timer += 1;
if (this.timer >= 1000 and this._currentframe == 2) {
this.gotoAndStop(1);
this.timer = 0;
}
if ((this.bonus_body.hitTest(_root.gamePlay.car.front) or this.bonus_body.hitTest(_root.gamePlay.car.back)) and this._currentframe == 1) {
if (_root.gamePlay.car.lifes > 0 and _root.gamePlay.car.lifes <= 200) {
_root.gamePlay.car.lifes += 25;
}
if (_root.gamePlay.car.lifes >= 200) {
_root.gamePlay.car.lifes = 200;
}
if (_root.gamePlay.car.fire_rate == 0 and _root.gamePlay.car.damage == 0) {
var v3 = _root.gamePlay.attachMovie('plus_health', 'plus_health' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
if (_root.mute == false) {
this.bonus.start();
}
this.gotoAndStop(2);
this.timer = 0;
}
};
ASSetPropFlags(_global.health_bonus_boss.prototype, null, 1);
}
#endinitclip
}
movieClip 1460 __Packages.ammo_bonus_boss {
#initclip
if (!_global.ammo_bonus_boss) {
var v1 = function () {
super();
};
_global.ammo_bonus_boss = v1;
_global.ammo_bonus_boss extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bonus = new Sound(this);
this.bonus.attachSound('bonus');
this.timer = 0;
};
v2.onEnterFrame = function () {
this.timer += 1;
if (this.timer >= 1000 and this._currentframe == 2) {
this.gotoAndStop(1);
this.timer = 0;
}
if ((this.bonus_body.hitTest(_root.gamePlay.car.front) or this.bonus_body.hitTest(_root.gamePlay.car.back)) and this._currentframe == 1) {
_root.gamePlay.car.ammo += 50;
if (_root.gamePlay.car.ammo >= 999) {
_root.gamePlay.car.ammo = 999;
}
if (_root.gamePlay.car.fire_rate == 0 and _root.gamePlay.car.damage == 0) {
var v3 = _root.gamePlay.attachMovie('plus_ammo', 'plus_ammo' + _root.gamePlay.getNextHighestDepth(), _root.gamePlay.getNextHighestDepth());
v3._x = _root.gamePlay.car._x;
v3._y = _root.gamePlay.car._y + 25;
}
this.gotoAndStop(2);
if (_root.mute == false) {
this.bonus.start(0, 1);
}
this.timer = 0;
}
};
ASSetPropFlags(_global.ammo_bonus_boss.prototype, null, 1);
}
#endinitclip
}
movieClip 1461 __Packages.enemy_car_spawn_01 {
#initclip
if (!_global.enemy_car_spawn_01) {
var v1 = function () {
super();
};
_global.enemy_car_spawn_01 = v1;
_global.enemy_car_spawn_01 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('enemy_car_01', 'enemy_car_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
this.spawn = true;
}
};
ASSetPropFlags(_global.enemy_car_spawn_01.prototype, null, 1);
}
#endinitclip
}
movieClip 1462 __Packages.mine {
#initclip
if (!_global.mine) {
var v1 = function () {
super();
};
_global.mine = v1;
_global.mine extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
_root.gamePlay.hittest(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.frontPoint.x, _root.gamePlay.car.frontPoint.y, this.mine_body._width, this.mine_body._height, _root.gamePlay.car.front._width, _root.gamePlay.car.front._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.back_speed = _root.car_controller.speed;
if (_root.car_controller.back_speed <= 0.7) {
_root.car_controller.back_speed = 1;
}
_root.car_controller.speed = 0;
this.gotoAndPlay(2);
if (_root.gamePlay.quake < 80) {
_root.gamePlay.quake += 60;
}
if (_root.gamePlay.car.level_complete == false) {
_root.gamePlay.car.lifes -= 10 * _root.difficulty;
}
}
_root.gamePlay.hittest(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.backPoint.x, _root.gamePlay.car.backPoint.y, this.mine_body._width, this.mine_body._height, _root.gamePlay.car.back._width, _root.gamePlay.car.back._height);
if (_root.gamePlay.collision == true) {
_root.car_controller.speed = _root.car_controller.back_speed;
if (_root.car_controller.speed <= 0.7) {
_root.car_controller.speed = 1;
}
_root.car_controller.back_speed = 0;
this.gotoAndPlay(2);
if (_root.gamePlay.quake < 80) {
_root.gamePlay.quake += 60;
}
if (_root.gamePlay.car.level_complete == false) {
_root.gamePlay.car.lifes -= 10 * _root.difficulty;
}
}
}
};
ASSetPropFlags(_global.mine.prototype, null, 1);
}
#endinitclip
}
movieClip 1463 __Packages.border_stop {
#initclip
if (!_global.border_stop) {
var v1 = function () {
super();
};
_global.border_stop = v1;
_global.border_stop extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3].header)) {
if (_root.enemy_massive[v3].ySpeed > 0) {
_root.enemy_massive[v3].ySpeed -= 0.15;
}
if (_root.enemy_massive[v3].xSpeed > 0) {
_root.enemy_massive[v3].xSpeed -= 0.15;
}
}
}
}
};
ASSetPropFlags(_global.border_stop.prototype, null, 1);
}
#endinitclip
}
movieClip 1464 __Packages.soldier {
#initclip
if (!_global.soldier) {
var v1 = function () {
super();
};
_global.soldier = v1;
_global.soldier extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rotation = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this._currentframe == 1) {
this.rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
if (this.rotation <= -50) {
this.rotation = -50;
}
if (this.rotation >= 50) {
this.rotation = 50;
}
}
}
};
ASSetPropFlags(_global.soldier.prototype, null, 1);
}
#endinitclip
}
movieClip 1465 __Packages.minigun {
#initclip
if (!_global.minigun) {
var v1 = function () {
super();
};
_global.minigun = v1;
_global.minigun extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rotation = 0;
this.timer = 0;
this.counter = Math.random() * 150;
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 26);
this.localToGlobal(this.aPoint);
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
if (this.aPoint.y > -150 and this.aPoint.y < 750 and this.aPoint.x > -150 and this.aPoint.x < 650) {
if (this._currentframe == 1) {
if (this.aPoint.y < _root.gamePlay.car.aPoint.y) {
this.rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
if (this.rotation <= -50) {
this.rotation = -50;
}
if (this.rotation >= 50) {
this.rotation = 50;
}
}
this.timer += 1;
if (this.timer >= this.counter and _root.gamePlay.car.lifes > 0 and this.rotation > -45 and this.rotation < 45 and this.aPoint.y < _root.gamePlay.car.aPoint.y) {
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v3._rotation = this._rotation;
this.timer = 0;
this.counter = Math.random() * 270;
}
}
}
};
ASSetPropFlags(_global.minigun.prototype, null, 1);
}
#endinitclip
}
movieClip 1466 __Packages.trench {
#initclip
if (!_global.trench) {
var v1 = function () {
super();
};
_global.trench = v1;
_global.trench extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.volume = 50;
this.random = Math.random();
this.scream = new Sound(this);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.soldier_01._currentframe == 1) {
this.soldier_01._rotation = this.soldier_01.rotation - this._rotation;
this.minigun_01._rotation = this.minigun_01.rotation - this._rotation;
this.soldier_02._rotation = this.soldier_02.rotation - this._rotation;
this.minigun_02._rotation = this.minigun_02.rotation - this._rotation;
for (var v4 in _root.rocket_massive) {
if (this.trench_body.hitTest(_root.rocket_massive[v4].body)) {
_root.score += 50 * _root.difficulty;
if (this.random < 0.5) {
this.scream.attachSound('scream');
}
this.scream.setVolume(50);
if (_root.mute == false) {
this.scream.start();
}
this.gotoAndStop(2);
this.soldier_01.gotoAndPlay(2);
this.soldier_02.gotoAndPlay(2);
this.minigun_01.gotoAndPlay(2);
this.minigun_02.gotoAndPlay(2);
this.soldier_01._rotation += Math.random() * 30;
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
}
}
}
if (this._currentframe == 2) {
if (this.volume > 0 and this.random <= 0.75) {
this.volume -= 2;
this.scream.setVolume(this.volume);
}
}
}
};
ASSetPropFlags(_global.trench.prototype, null, 1);
}
#endinitclip
}
movieClip 1467 __Packages.helicopter_spawn {
#initclip
if (!_global.helicopter_spawn) {
var v1 = function () {
super();
};
_global.helicopter_spawn = v1;
_global.helicopter_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('helicopter', 'helicopter' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._xscale = 215;
v3._yscale = 215;
this.spawn = true;
}
};
ASSetPropFlags(_global.helicopter_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1468 __Packages.tank_spawn {
#initclip
if (!_global.tank_spawn) {
var v1 = function () {
super();
};
_global.tank_spawn = v1;
_global.tank_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('tank_01', 'tank_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._xscale = 120;
v3._yscale = 120;
this.spawn = true;
}
};
ASSetPropFlags(_global.tank_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1469 __Packages.raft_spawn_instruction {
#initclip
if (!_global.raft_spawn_instruction) {
var v1 = function () {
super();
};
_global.raft_spawn_instruction = v1;
_global.raft_spawn_instruction extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockBottom.attachMovie('raft_instruction', 'raft_instruction' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.raft_spawn_instruction.prototype, null, 1);
}
#endinitclip
}
movieClip 1470 __Packages.backplan {
#initclip
if (!_global.backplan) {
var v1 = function () {
super();
};
_global.backplan = v1;
_global.backplan extends MovieClip;
var v2 = v1.prototype;
v2.enterFrame = function () {
if (_root.pause == false) {
this._x -= _root.xspeed;
this._y += _root.yspeed;
}
};
ASSetPropFlags(_global.backplan.prototype, null, 1);
}
#endinitclip
}
movieClip 1471 __Packages.wheel_back {
#initclip
if (!_global.wheel_back) {
var v1 = function () {
super();
};
_global.wheel_back = v1;
_global.wheel_back extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (_root.graphic_level > 1) {
if (_root.car_controller.speed > 0 and _root.track == 0) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.WPoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.WPoint);
var v3 = _root.gamePlay.BlockBottom.attachMovie('track', 'track' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
v3._x = this.WPoint.x;
v3._y = this.WPoint.y;
v3._rotation = _root.car_controller.rotation;
}
}
}
};
ASSetPropFlags(_global.wheel_back.prototype, null, 1);
}
#endinitclip
}
movieClip 1472 __Packages.wheel_front {
#initclip
if (!_global.wheel_front) {
var v1 = function () {
super();
};
_global.wheel_front = v1;
_global.wheel_front extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (_root.graphic_level > 1) {
if (_root.car_controller.back_speed > 0 and _root.track == 0) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.WPoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.WPoint);
var v3 = _root.gamePlay.BlockBottom.attachMovie('track', 'track' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
v3._x = this.WPoint.x;
v3._y = this.WPoint.y;
v3._rotation = _root.car_controller.rotation;
}
}
}
};
ASSetPropFlags(_global.wheel_front.prototype, null, 1);
}
#endinitclip
}
movieClip 1473 __Packages.armor_border {
#initclip
if (!_global.armor_border) {
var v1 = function () {
super();
};
_global.armor_border = v1;
_global.armor_border extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (_root.gamePlay.car.armor > 0) {
for (var v4 in _root.enemy_rocket_massive) {
if (this.hitTest(_root.enemy_rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
_root.enemy_rocket_massive[v4].removeMovieClip();
_root.enemy_rocket_massive.splice(v4, 1);
_root.gamePlay.car.armor -= 20;
_root.gamePlay.car.lifes -= 2 * _root.difficulty;
}
}
for (v4 in _root.heli_rocket_massive) {
if (this.hitTest(_root.heli_rocket_massive[v4].body)) {
v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
_root.heli_rocket_massive[v4].removeMovieClip();
_root.heli_rocket_massive.splice(v4, 1);
_root.gamePlay.car.armor -= 20;
_root.gamePlay.car.lifes -= 2 * _root.difficulty;
}
}
}
}
};
ASSetPropFlags(_global.armor_border.prototype, null, 1);
}
#endinitclip
}
movieClip 1474 __Packages.car_body {
#initclip
if (!_global.car_body) {
var v1 = function () {
super();
};
_global.car_body = v1;
_global.car_body extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.gamePlay.car.lifes <= 155) {
this.flame_01._visible = true;
} else {
this.flame_01._visible = false;
}
if (_root.gamePlay.car.lifes <= 100) {
this.flame_02._visible = true;
} else {
this.flame_02._visible = false;
}
if (_root.gamePlay.car.lifes <= 25) {
this.flame_03._visible = true;
} else {
this.flame_03._visible = false;
}
};
ASSetPropFlags(_global.car_body.prototype, null, 1);
}
#endinitclip
}
movieClip 1475 __Packages.car {
#initclip
if (!_global.car) {
var v1 = function () {
super();
};
_global.car = v1;
_global.car extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.level_complete = false;
this.speed = 0;
this.timer = 0;
this.armor = 0;
this.back_speed = 0;
this.lifes = 200;
this.ammo = 200;
this.mission_start = new Sound(this.back);
this.mission_start.attachSound('mission_start');
if (_root.mute == false) {
this.mission_start.start();
}
this.damage = 0;
this.fire_rate = 0;
this.armor_left._alpha = 0;
this.armor_right._alpha = 0;
this.car_engine = new Sound(this.front);
this.car_engine.attachSound('car_engine');
this.car_engine.setVolume(10);
this.car_engine.start(0, 5000);
_root.damage = 1;
_root.fire_rate = 1;
};
v2.onEnterFrame = function () {
if (_root.mute == true) {
this.mission_start.setVolume(0);
this.car_engine.setVolume(0);
} else {
this.car_engine.setVolume(_root.car_controller.volume);
this.mission_start.setVolume(100);
}
if (_root.pause == false) {
if (this.damage > 0) {
_root.damage = 2.5;
} else {
_root.damage = 1;
}
if (this.damage <= 0) {
this.damage = 0;
}
if (this.ammo < 10) {
this.ammo += 0.005;
}
if (this.ammo <= 0) {
this.ammo = 0;
}
if (this.fire_rate > 0) {
this.fire_rate -= 1;
_root.fire_rate = 1.75;
} else {
_root.fire_rate = 1;
}
if (this.armor > 100) {
this.armor -= 0.075;
}
if (this.armor > 0) {
if (this.armor_left._alpha <= 98) {
this.armor_left._alpha += 2;
}
if (this.armor_right._alpha <= 98) {
this.armor_right._alpha += 2;
}
}
if (this.armor <= 0) {
if (this.armor_left._alpha >= 2) {
this.armor_left._alpha -= 2;
}
if (this.armor_right._alpha >= 2) {
this.armor_right._alpha -= 2;
}
}
this.aPoint = new flash.geom.Point(0, 0);
this.damage_body.localToGlobal(this.aPoint);
this.lPoint = new flash.geom.Point(-14, -55);
this.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(14, -55);
this.localToGlobal(this.rPoint);
this.frontPoint = new flash.geom.Point(0, 0);
this.front.localToGlobal(this.frontPoint);
this.backPoint = new flash.geom.Point(0, 0);
this.back.localToGlobal(this.backPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
if (this.lifes <= 0) {
this.lifes = 0;
}
if (this.lifes == 0) {
if (this.body._currentframe == 1) {
this.body.gotoAndPlay(2);
_root.attachMovie('fader_out', 'fader_out' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
_root.gamePlay.gun._x = this._x;
_root.gamePlay.gun._y = this._y;
this.left_wheel._rotation = _root.car_controller.left_wheel_rotation;
this.right_wheel._rotation = _root.car_controller.right_wheel_rotation;
this._rotation = _root.car_controller.rotation;
for (var v4 in _root.enemy_rocket_massive) {
_root.gamePlay.hittest(this.aPoint.x, this.aPoint.y, _root.enemy_rocket_massive[v4].aPoint.x, _root.enemy_rocket_massive[v4].aPoint.y, this.damage_body._width, this.damage_body._height, _root.enemy_rocket_massive[v4].body._width, _root.enemy_rocket_massive[v4].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
if (this.level_complete == false) {
this.lifes -= 4 * _root.difficulty;
}
_root.enemy_rocket_massive[v4].removeMovieClip();
_root.enemy_rocket_massive.splice(v4, 1);
if (_root.gamePlay.quake < 100) {
_root.gamePlay.quake += 25;
}
}
}
for (v4 in _root.heli_rocket_massive) {
if (this.front.hitTest(_root.heli_rocket_massive[v4].body) or this.back.hitTest(_root.heli_rocket_massive[v4].body)) {
v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.heli_rocket_massive[v4]._x - 20;
v3._y = _root.heli_rocket_massive[v4]._y - 15;
if (this.level_complete == false) {
this.lifes -= 4 * _root.difficulty;
}
_root.heli_rocket_massive[v4].removeMovieClip();
_root.heli_rocket_massive.splice(v4, 1);
if (_root.gamePlay.quake < 40) {
_root.gamePlay.quake += 20;
}
}
}
}
};
ASSetPropFlags(_global.car.prototype, null, 1);
}
#endinitclip
}
movieClip 1476 __Packages.car_spy_gun {
#initclip
if (!_global.car_spy_gun) {
var v1 = function () {
super();
};
_global.car_spy_gun = v1;
_global.car_spy_gun extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.gamePlay.car.lifes <= 155) {
this.flame_01._visible = true;
} else {
this.flame_01._visible = false;
}
};
ASSetPropFlags(_global.car_spy_gun.prototype, null, 1);
}
#endinitclip
}
movieClip 1477 __Packages.car_gun {
#initclip
if (!_global.car_gun) {
var v1 = function () {
super();
};
_global.car_gun = v1;
_global.car_gun extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
_root.rocket_massive = [];
this.key_is_down = false;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this.lPoint = new flash.geom.Point(-18, 30);
this.gun.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(18, 30);
this.gun.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
if (_root.gamePlay.car.lifes <= 0 and this.gun._currentframe == 1) {
this.gun.gotoAndPlay(2);
}
this.onMouseDown = function () {
this.key_is_down = true;
};
if (_root.gamePlay.car.lifes > 0) {
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root._xmouse - this.aPoint.x, _root._ymouse - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1 * _root.fire_rate;
if (this.rocket_counter >= 30 and this.tower_lifes > 0 and this.tower_lifes <= 100 and this.key_is_down == true and _root.gamePlay.car.ammo >= 1 and _root.strike == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('rocket', 'rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.LPoint.x;
v3._y = this.LPoint.y;
v3.xspeed = ((_root._xmouse - this.aPoint.x) / Math.sqrt((_root._xmouse - this.aPoint.x) * (_root._xmouse - this.aPoint.x) + (_root._ymouse - this.aPoint.y) * (_root._ymouse - this.aPoint.y))) * 16 + _root.xspeed * 0.2;
v3.yspeed = ((_root._ymouse - this.aPoint.y) / Math.sqrt((_root._xmouse - this.aPoint.x) * (_root._xmouse - this.aPoint.x) + (_root._ymouse - this.aPoint.y) * (_root._ymouse - this.aPoint.y))) * 16 - _root.yspeed * 0.2;
v3._rotation = this.gun._rotation;
v3 = _root.gamePlay.BlockTop.attachMovie('rocket', 'rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.RPoint.x;
v3._y = this.RPoint.y;
v3.xspeed = ((_root._xmouse - this.aPoint.x) / Math.sqrt((_root._xmouse - this.aPoint.x) * (_root._xmouse - this.aPoint.x) + (_root._ymouse - this.aPoint.y) * (_root._ymouse - this.aPoint.y))) * 16 + _root.xspeed * 0.2;
v3.yspeed = ((_root._ymouse - this.aPoint.y) / Math.sqrt((_root._xmouse - this.aPoint.x) * (_root._xmouse - this.aPoint.x) + (_root._ymouse - this.aPoint.y) * (_root._ymouse - this.aPoint.y))) * 16 - _root.yspeed * 0.2;
v3._rotation = this.gun._rotation;
this.rocket_counter = 0;
_root.gamePlay.car.ammo -= 2;
_root.gamePlay.car.damage -= 2;
}
this.onMouseUp = function () {
this.key_is_down = false;
};
}
}
};
ASSetPropFlags(_global.car_gun.prototype, null, 1);
}
#endinitclip
}
movieClip 1478 __Packages.gameplay {
#initclip
if (!_global.gameplay) {
var v1 = function () {
super();
};
_global.gameplay = v1;
_global.gameplay extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
stopAllSounds();
_root.score = 0;
this.score_100000 = 0;
this.score_10000 = 0;
this.score_1000 = 0;
this.score_100 = 0;
this.score_10 = 0;
this.score_1 = 0;
this.quality_listener = 0;
_root.raftSpeed_instruction = 0;
this.boss_music = new Sound(this);
this.boss_music.attachSound('boss_music');
this.boss_music.setVolume(200);
this.volume = 200;
this.battlefield = new Sound(this);
this.battlefield.attachSound('battlefield');
this.battlefield.setVolume(250);
this.battlefield_volume = 250;
_root.boss = false;
this.collision = false;
_root.boss_lifes = 100;
_root.boss_x = 0;
_root.boss_y = 0;
_root.level_number = _root._currentframe - 5;
_root.main_theme_counter = false;
if (_root.graphic_level == 2) {
_root._quality = 'LOW';
}
if (_root.graphic_level == 1) {
_root._quality = 'LOW';
}
this.framerate_total = 0;
this.framerate = 0;
this.timer = 0;
_root.pause = false;
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamePlay.backPlanTop.gotoAndStop(2);
_root.back = true;
_root.front = true;
_root.frame_top = 2;
_root.frame_bottom = 1;
this.boss_music_start = false;
this.quake = 0;
_root.raft_massive = [];
_root.enemy_rocket_massive = [];
_root.enemy_rocket_massive = [];
_root.heli_rocket_massive = [];
_root.enemy_massive = [];
_root.air_enemy_massive = [];
_root.rocket_massive = [];
_root.flame_massive = [];
this.fps_massive = [];
Mouse.hide();
this.battlefield_listener = 0;
};
v2.onEnterFrame = function () {
if (this.battlefield_listener == 200) {
this.battlefield.start(0, 10000);
}
if (this.battlefield_listener <= 200) {
this.battlefield_listener += 1;
}
if (_root.boss == true and this.boss_music_start == false) {
if (_root.mute == false) {
this.boss_music.setVolume(0);
}
this.boss_music.start(0, 1000);
this.boss_music_start = true;
var v4 = _root.attachMovie('prepare_to_fight', 'prepare_to_fight' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v4._x = -480;
v4._y = 100;
}
if (_root.boss_lifes == 200 and this.volume > 0) {
this.volume -= 1;
this.battlefield_volume -= 1;
}
if (_root.mute == true) {
this.volume = 0;
this.battlefield_volume = 0;
} else {
if (_root.boss_lifes != 200) {
this.battlefield_volume = 250;
this.volume = 200;
}
}
this.boss_music.setVolume(this.volume);
this.battlefield.setVolume(this.battlefield_volume);
if (this.quality_listener < 1500) {
this.quality_listener += 1;
this.t = getTimer();
this.framerate = Math.round(1000 / (this.t - this.o));
this.o = this.t;
if (this.framerate > 36) {
this.framerate = 36;
}
this.timer += 1;
this.framerate_total += this.framerate;
if (this.timer == 35) {
this.framerate = Math.round(this.framerate_total / 35);
if (this.framerate < 28) {
_root.graphic_level = 1;
_root._quality = 'LOW';
this.quality_listener = 2000;
}
this.timer = 0;
this.framerate_total = 0;
}
}
_root.aim._x = _root._xmouse;
_root.aim._y = _root._ymouse;
if (_root.pause == false) {
_root.gamePlay.backPlanBottom.enterFrame();
_root.gamePlay.backPlanTop.enterFrame();
_root.gamePlay.BlockTop.enterFrame();
_root.gamePlay.BlockBottom.enterFrame();
this.car_lifes_100 = Math.floor(_root.gamePlay.car.lifes / 100);
this.car_lifes_10 = Math.floor((_root.gamePlay.car.lifes - this.car_lifes_100 * 100) / 10);
this.car_lifes_1 = _root.gamePlay.car.lifes - this.car_lifes_100 * 100 - this.car_lifes_10 * 10;
_root.counter.car_lifes_100.text = this.car_lifes_100;
_root.counter.car_lifes_10.text = this.car_lifes_10;
_root.counter.car_lifes_1.text = this.car_lifes_1;
this.car_ammo_100 = Math.floor(_root.gamePlay.car.ammo / 100);
this.car_ammo_10 = Math.floor((_root.gamePlay.car.ammo - this.car_ammo_100 * 100) / 10);
this.car_ammo_1 = _root.gamePlay.car.ammo - this.car_ammo_100 * 100 - this.car_ammo_10 * 10;
_root.counter.car_ammo_100.text = this.car_ammo_100;
_root.counter.car_ammo_10.text = this.car_ammo_10;
_root.counter.car_ammo_1.text = Math.round(this.car_ammo_1);
_root.score_table.score_100000.text = this.score_100000;
_root.score_table.score_10000.text = this.score_10000;
_root.score_table.score_1000.text = this.score_1000;
_root.score_table.score_100.text = this.score_100;
_root.score_table.score_10.text = this.score_10;
_root.score_table.score_1.text = this.score_1;
this.score_10000 = Math.floor(_root.score / 10000);
this.score_1000 = Math.floor((_root.score - this.score_10000 * 10000) / 1000);
this.score_100 = Math.floor((_root.score - this.score_10000 * 10000 - this.score_1000 * 1000) / 100);
this.score_10 = Math.floor((_root.score - this.score_10000 * 10000 - this.score_1000 * 1000 - this.score_100 * 100) / 10);
this.score_1 = _root.score - this.score_10000 * 10000 - this.score_1000 * 1000 - this.score_100 * 100 - this.score_10 * 10;
_root.score_table.score_100000.text = this.score_100000;
_root.score_table.score_10000.text = this.score_10000;
_root.score_table.score_1000.text = this.score_1000;
_root.score_table.score_100.text = this.score_100;
_root.score_table.score_10.text = this.score_10;
_root.score_table.score_1.text = this.score_1;
for (var v3 in _root.flame_massive) {
if (_root.flame_massive[v3].aPoint.y > 2000) {
_root.flame_massive[v3].removeMovieClip();
_root.flame_massive.splice(v3, 1);
}
}
_root.track = 0;
for (v3 in _root.raft_massive) {
if (_root.raft_massive[v3].hitTest(_root.gamePlay.car.front)) {
_root.track = 1;
}
if (_root.raft_massive[v3].aPoint.y > 2500) {
_root.raft_massive.splice(v3, 1);
}
}
if (_root.level_number == 2 and _root.gamePlay.backPlanBottom._currentframe > 6) {
_root.track = 1;
}
for (v3 in _root.enemy_massive) {
if (_root.enemy_massive[v3].aPoint.y > 950 or _root.enemy_massive[v3].alpha <= 10) {
_root.enemy_massive[v3].tank_engine.stop();
_root.enemy_massive[v3].removeMovieClip();
_root.enemy_massive.splice(v3, 1);
}
}
for (v3 in _root.enemy_rocket_massive) {
if (_root.enemy_rocket_massive[v3].aPoint.x > 550 or _root.enemy_rocket_massive[v3].aPoint.x < -50 or _root.enemy_rocket_massive[v3].aPoint.y > 650 or _root.enemy_rocket_massive[v3].aPoint.y < -50) {
_root.enemy_rocket_massive[v3].removeMovieClip();
_root.enemy_rocket_massive.splice(v3, 1);
}
}
for (v3 in _root.rocket_massive) {
if (_root.rocket_massive[v3].aPoint.x > 550 or _root.rocket_massive[v3].aPoint.x < -50 or _root.rocket_massive[v3].aPoint.y > 650 or _root.rocket_massive[v3].aPoint.y < -50) {
_root.rocket_massive[v3].removeMovieClip();
_root.rocket_massive.splice(v3, 1);
}
}
for (v3 in _root.heli_rocket_massive) {
if (_root.heli_rocket_massive[v3].aPoint.x > 550 or _root.heli_rocket_massive[v3].aPoint.x < -50 or _root.heli_rocket_massive[v3].aPoint.y > 650 or _root.heli_rocket_massive[v3].aPoint.y < -50) {
_root.heli_rocket_massive[v3].removeMovieClip();
_root.heli_rocket_massive.splice(v3, 1);
}
}
if (this._x > 500 - _root._xmouse) {
this._x -= 2 * (this._x - 500 + _root._xmouse) / 150;
}
if (this._x < 500 - _root._xmouse) {
this._x += 2 * (-this._x + 500 - _root._xmouse) / 150;
}
if (this._y > -_root._ymouse) {
this._y -= 2 * (this._y + _root._ymouse) / 150;
}
if (this._y < -_root._ymouse) {
this._y += 2 * (-_root._ymouse - this._y) / 150;
}
if (this._y < -700) {
this._y = -700;
}
if (this._y > -250) {
this._y = -250;
}
if (this._x > 350) {
this._x = 350;
}
if (this._x < 150) {
this._x = 150;
}
if (_root.gamePlay.backPlanBottom._y > 1400 and _root.gamePlay.backPlanBottom._currentframe < _root.gamePlay.backPlanBottom._totalframes) {
trace('up');
_root.gamePlay.backPlanBottom.gotoAndStop(_root.gamePlay.backPlanBottom._currentframe + 2);
_root.gamePlay.backPlanBottom._y = _root.gamePlay.backPlanTop._y - 1199;
}
if (_root.gamePlay.backPlanTop._y > 1400 and _root.gamePlay.backPlanTop._currentframe < _root.gamePlay.backPlanTop._totalframes - 1) {
trace('up');
_root.gamePlay.backPlanTop.gotoAndStop(_root.gamePlay.backPlanTop._currentframe + 2);
_root.gamePlay.backPlanTop._y = _root.gamePlay.backPlanBottom._y - 1199;
}
if (_root.gamePlay.backPlanBottom._y < -1200 and _root.gamePlay.backPlanBottom._currentframe > 1) {
trace('down');
_root.gamePlay.backPlanBottom.gotoAndStop(_root.gamePlay.backPlanBottom._currentframe - 2);
_root.gamePlay.backPlanBottom._y = _root.gamePlay.backPlanTop._y + 1199;
}
if (_root.gamePlay.backPlanTop._y < -1200 and _root.gamePlay.backPlanTop._currentframe > 2) {
trace('down');
_root.gamePlay.backPlanTop.gotoAndStop(_root.gamePlay.backPlanTop._currentframe - 2);
_root.gamePlay.backPlanTop._y = _root.gamePlay.backPlanBottom._y + 1199;
}
if (_root.gamePlay.backPlanBottom._y > _root.gamePlay.backPlanTop._y) {
_root.gamePlay.backPlanTop._y = _root.gamePlay.backPlanBottom._y - 1199;
}
if (_root.gamePlay.backPlanBottom._y < _root.gamePlay.backPlanTop._y) {
_root.gamePlay.backPlanBottom._y = _root.gamePlay.backPlanTop._y - 1199;
}
if (_root.frame_top < _root.gamePlay.backPlanTop._currentframe) {
_root.frame_top = _root.gamePlay.backPlanTop._currentframe;
}
if (_root.frame_bottom < _root.gamePlay.backPlanBottom._currentframe) {
_root.frame_bottom = _root.gamePlay.backPlanBottom._currentframe;
}
if (this.quake != 0) {
this.quake -= 1;
}
if (this.quake > 0) {
this.earthquake();
}
}
};
v2.hittest = function (objectA_x, objectA_y, objectB_x, objectB_y, objectA_width, objectA_height, objectB_width, objectB_height) {
if (Math.sqrt((objectB_x - objectA_x) * (objectB_x - objectA_x) + (objectB_y - objectA_y) * (objectB_y - objectA_y)) < Math.sqrt(objectA_width * objectA_width + objectA_height * objectA_height) / 4 + Math.sqrt(objectB_width * objectB_width + objectB_height * objectB_height) / 4) {
this.collision = true;
} else {
this.collision = false;
}
};
v2.hittest_rocket = function (objectA_x, objectA_y, objectB_x, objectB_y, objectA_width, objectA_height, objectB_width, objectB_height) {
if (Math.sqrt((objectB_x - objectA_x) * (objectB_x - objectA_x) + (objectB_y - objectA_y) * (objectB_y - objectA_y)) < (objectA_width + objectB_width) / 2) {
this.collision = true;
} else {
this.collision = false;
}
};
v2.earthquake = function () {
if (_root.pause == false) {
if (_root.gamePlay.car.lifes > 0) {
this._x += Math.random() * this.quake / 5 - this.quake / 10;
this._y += Math.random() * this.quake / 5 - this.quake / 10;
}
}
};
ASSetPropFlags(_global.gameplay.prototype, null, 1);
}
#endinitclip
}
movieClip 1479 __Packages.ingame_menu_motion {
#initclip
if (!_global.ingame_menu_motion) {
var v1 = function () {
super();
};
_global.ingame_menu_motion = v1;
_global.ingame_menu_motion extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.key_is_down = false;
};
v2.onEnterFrame = function () {
this.onMouseDown = function () {
this.key_is_down = true;
};
if (this.resume.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.pause = false;
_root._quality = 'LOW';
}
if (this.main_menu.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.gotoAndStop('level_menu');
}
if (this.high.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.graphic_level = 2;
}
if (this.low.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.graphic_level = 1;
}
if (_root.graphic_level == 2) {
this.high.gotoAndStop(2);
this.low.gotoAndStop(1);
} else {
this.high.gotoAndStop(1);
this.low.gotoAndStop(2);
}
if (this.sound_on.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.mute = false;
}
if (this.sound_off.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.mute = true;
}
if (_root.mute == false) {
this.sound_on.gotoAndStop(2);
this.sound_off.gotoAndStop(1);
} else {
this.sound_on.gotoAndStop(1);
this.sound_off.gotoAndStop(2);
}
this.onMouseUp = function () {
this.key_is_down = false;
};
};
ASSetPropFlags(_global.ingame_menu_motion.prototype, null, 1);
}
#endinitclip
}
movieClip 1480 __Packages.ingame_menu {
#initclip
if (!_global.ingame_menu) {
var v1 = function () {
super();
};
_global.ingame_menu = v1;
_global.ingame_menu extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.strike = true;
this.key_is_down = false;
};
v2.onEnterFrame = function () {
this.onMouseDown = function () {
this.key_is_down = true;
};
if (this.button_body.hitTest(_root._xmouse, _root._ymouse) and this.key_is_down == true) {
_root.pause = true;
_root._quality = 'MEDIUM';
}
if (_root.pause == true) {
if (this.menu._x < 5) {
this.menu._x += 10;
}
if (this.button_body._y > 20) {
this.button_body._y -= 1.5;
}
if (_root.counter._y < 680) {
_root.counter._y += 4;
}
if (_root.score._y < 630) {
_root.score._y += 4;
}
}
if (_root.gamePlay.car.lifes <= 0 or _root.gamePlay.car.level_complete == true) {
if (this.button_body._y > 20) {
this.button_body._y -= 1.5;
}
if (_root.counter._y < 680) {
_root.counter._y += 4;
}
}
if (_root.pause == false and _root.gamePlay.car.lifes > 0 and _root.gamePlay.car.level_complete == false) {
if (this.menu._x > -205) {
this.menu._x -= 10;
}
if (this.button_body._y < 50) {
this.button_body._y += 1.5;
}
if (_root.counter._y > 600) {
_root.counter._y -= 4;
}
if (_root.score._y > 580) {
_root.score._y -= 2.5;
}
}
if (this.menu._x > -205 or this.button_body.hitTest(_root._xmouse, _root._ymouse)) {
_root.strike = false;
} else {
_root.strike = true;
}
this.onMouseUp = function () {
this.key_is_down = false;
};
};
ASSetPropFlags(_global.ingame_menu.prototype, null, 1);
}
#endinitclip
}
movieClip 1481 __Packages.lifes_bar {
#initclip
if (!_global.lifes_bar) {
var v1 = function () {
super();
};
_global.lifes_bar = v1;
_global.lifes_bar extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.boss_lifes != 200) {
this.bar._xscale = _root.boss_lifes;
}
if (_root.boss == true and this._y < 1) {
this._y += 0.5;
}
if (_root.boss_lifes == 200 and this._y > -50) {
this._y -= 0.5;
}
};
ASSetPropFlags(_global.lifes_bar.prototype, null, 1);
}
#endinitclip
}
movieClip 1482 __Packages.controller {
#initclip
if (!_global.controller) {
var v1 = function () {
super();
};
_global.controller = v1;
_global.controller extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.raftSpeed = 0;
_root.trainSpeed = 0;
this.speed = 0;
this.back_speed = 0;
this.rotation = 0;
this.right_wheel_rotation = 0;
this.left_wheel_rotation = 0;
this.UP = false;
this.DOWN = false;
this.RIGHT = false;
this.LEFT = false;
this.SPACE = false;
this.volume = 16;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if ((Key.isDown(87) or Key.isDown(38)) and _root.gamePlay.car.lifes > 0) {
this.UP = true;
}
if ((Key.isDown(83) or Key.isDown(40)) and _root.gamePlay.car.lifes > 0) {
this.DOWN = true;
}
if ((Key.isDown(68) or Key.isDown(39)) and _root.gamePlay.car.lifes > 0) {
this.RIGHT = true;
}
if ((Key.isDown(65) or Key.isDown(37)) and _root.gamePlay.car.lifes > 0) {
this.LEFT = true;
}
if (this.UP == true) {
this.speed += 0.65;
if (this.speed >= 7) {
this.speed = 7;
}
if (this.volume < 100) {
this.volume += 2;
}
}
if (this.DOWN == true) {
this.back_speed += 0.55;
if (this.back_speed >= 5) {
this.back_speed = 5;
}
if (this.volume < 100) {
this.volume += 2;
}
}
if (this.UP == false and this.DOWN == false) {
if (this.volume > 50) {
this.volume -= 2;
}
}
if (this.LEFT == true and (this.speed > 0 or this.back_speed > 0)) {
if (this.speed > 1.25) {
this.speed -= 0.2;
}
this.rotation -= this.speed / 2;
if (this.left_wheel_rotation > -25) {
this.left_wheel_rotation -= this.speed / 4;
this.right_wheel_rotation -= this.speed / 4;
}
this.rotation += this.back_speed / 2;
if (this.left_wheel_rotation > -25) {
this.left_wheel_rotation -= this.back_speed / 4;
this.right_wheel_rotation -= this.back_speed / 4;
}
}
if (this.RIGHT == true and (this.speed > 0 or this.back_speed > 0)) {
if (this.speed > 1.25) {
this.speed -= 0.2;
}
this.rotation += this.speed / 2;
if (this.left_wheel_rotation < 25) {
this.left_wheel_rotation += this.speed / 4;
this.right_wheel_rotation += this.speed / 4;
}
this.rotation -= this.back_speed / 2;
if (this.left_wheel_rotation < 25) {
this.left_wheel_rotation += this.back_speed / 4;
this.right_wheel_rotation += this.back_speed / 4;
}
}
if (this.RIGHT == false and this.LEFT == false) {
if (this.left_wheel_rotation > 0) {
this.left_wheel_rotation -= 2.5;
}
if (this.left_wheel_rotation < 0) {
this.left_wheel_rotation += 2.5;
}
if (this.right_wheel_rotation > 0) {
this.right_wheel_rotation -= 2.5;
}
if (this.right_wheel_rotation < 0) {
this.right_wheel_rotation += 2.5;
}
}
this.speed -= 0.075;
if (this.speed <= 0) {
this.speed = 0;
}
this.back_speed -= 0.075;
if (this.back_speed <= 0) {
this.back_speed = 0;
}
_root.yspeed = this.speed * Math.cos((this.rotation / 180) * Math.PI) - this.back_speed * Math.cos((this.rotation / 180) * Math.PI);
_root.xspeed = this.speed * Math.sin((this.rotation / 180) * Math.PI) - this.back_speed * Math.sin((this.rotation / 180) * Math.PI);
if (_root.raftSpeed_instruction > 0) {
_root.yspeed += _root.raftSpeed_instruction;
}
this.UP = false;
this.DOWN = false;
this.RIGHT = false;
this.LEFT = false;
}
};
ASSetPropFlags(_global.controller.prototype, null, 1);
}
#endinitclip
}
movieClip 1483 __Packages.cone {
#initclip
if (!_global.cone) {
var v1 = function () {
super();
};
_global.cone = v1;
_global.cone extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.xspeed = 0;
this.yspeed = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x < 550 and this.aPoint.x > -50) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.frontPoint.x, _root.gamePlay.car.frontPoint.y, this.cone_body._width, this.cone_body._height, _root.gamePlay.car.front._width, _root.gamePlay.car.front._height);
if (_root.gamePlay.collision == true and this._currentframe == 1) {
this.gotoAndStop(2);
this.xspeed = _root.xspeed * 1.5;
this.yspeed = _root.yspeed * 1.5;
if (_root.car_controller.speed > 0) {
this.rotation = Math.random() * 10;
}
}
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.gamePlay.car.backPoint.x, _root.gamePlay.car.backPoint.y, this.cone_body._width, this.cone_body._height, _root.gamePlay.car.back._width, _root.gamePlay.car.back._height);
if (_root.gamePlay.collision == true and this._currentframe == 1) {
this.gotoAndStop(2);
this.xspeed = _root.xspeed * 2;
this.yspeed = _root.yspeed * 2;
if (_root.car_controller.back_speed > 0) {
this.rotation = Math.random() * 10;
}
}
if (this.rotation > 0) {
this.rotation -= 0.1;
} else {
this.rotation = 0;
}
this._x += this.xspeed;
this._y -= this.yspeed;
this._rotation += this.rotation;
if (this.xspeed < 0) {
this.xspeed += 0.5;
}
if (this.xspeed > 0) {
this.xspeed -= 0.5;
}
if (this.yspeed < 0) {
this.yspeed += 0.5;
}
if (this.yspeed > 0) {
this.yspeed -= 0.5;
}
if (Math.abs(this.yspeed) < 0.75) {
this.yspeed = 0;
}
if (Math.abs(this.xspeed) < 0.75) {
this.xspeed = 0;
}
}
}
};
ASSetPropFlags(_global.cone.prototype, null, 1);
}
#endinitclip
}
movieClip 1484 __Packages.enemy_car_spawn_02 {
#initclip
if (!_global.enemy_car_spawn_02) {
var v1 = function () {
super();
};
_global.enemy_car_spawn_02 = v1;
_global.enemy_car_spawn_02 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('enemy_car_02', 'enemy_car_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
this.spawn = true;
}
};
ASSetPropFlags(_global.enemy_car_spawn_02.prototype, null, 1);
}
#endinitclip
}
movieClip 1485 __Packages.desert_plane_spawn {
#initclip
if (!_global.desert_plane_spawn) {
var v1 = function () {
super();
};
_global.desert_plane_spawn = v1;
_global.desert_plane_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('desert_plane', 'desert_plane' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.desert_plane_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1486 __Packages.mothership_spawn {
#initclip
if (!_global.mothership_spawn) {
var v1 = function () {
super();
};
_global.mothership_spawn = v1;
_global.mothership_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -300 and this.aPoint.y < -250 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockBottom.attachMovie('mothership', 'mothership' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
this.spawn = true;
}
};
ASSetPropFlags(_global.mothership_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1487 __Packages.raft_spawn {
#initclip
if (!_global.raft_spawn) {
var v1 = function () {
super();
};
_global.raft_spawn = v1;
_global.raft_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockBottom.attachMovie('raft', 'raft' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.raft_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1488 __Packages.tower_spy_boss {
#initclip
if (!_global.tower_spy_boss) {
var v1 = function () {
super();
};
_global.tower_spy_boss = v1;
_global.tower_spy_boss extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_counter = 0;
this.tower_lifes = 100;
this.counter = Math.random() * 150;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.tower_lifes = 200;
this.gun.gotoAndStop(this.gun._totalframes);
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.lifes_bar._rotation = -this._rotation;
this.border._rotation = -this._rotation;
if (this.aPoint.y > -50 and this.aPoint.y < 800 and this.aPoint.x > -50 and this.aPoint.x < 550 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(0, 55);
this.gun.localToGlobal(this.lPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter >= this.counter and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4._rotation = this.gun._rotation;
this.rocket_counter = 0;
this.counter = Math.random() * 150;
}
if (this.tower_lifes <= 0) {
_root.score += 50 * _root.difficulty;
this.tower_lifes = 200;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v5 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v5].aPoint.x, _root.rocket_massive[v5].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v5].body._width, _root.rocket_massive[v5].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 15 * _root.damage;
}
}
}
if (this.aPoint.y > 700) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.tower_spy_boss.prototype, null, 1);
}
#endinitclip
}
movieClip 1489 __Packages.boss_true {
#initclip
if (!_global.boss_true) {
var v1 = function () {
super();
};
_global.boss_true = v1;
_global.boss_true extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 0 and this.aPoint.y < 200) {
_root.boss = true;
}
};
ASSetPropFlags(_global.boss_true.prototype, null, 1);
}
#endinitclip
}
movieClip 1490 __Packages.helicopter_boss_spawn {
#initclip
if (!_global.helicopter_boss_spawn) {
var v1 = function () {
super();
};
_global.helicopter_boss_spawn = v1;
_global.helicopter_boss_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('helicopter_boss', 'helicopter_boss' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
this.spawn = true;
}
};
ASSetPropFlags(_global.helicopter_boss_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1491 __Packages.block {
#initclip
if (!_global.block) {
var v1 = function () {
super();
};
_global.block = v1;
_global.block extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > 950 and this._currentframe == 1) {
this.gotoAndStop(2);
}
};
ASSetPropFlags(_global.block.prototype, null, 1);
}
#endinitclip
}
movieClip 1492 __Packages.flame_gun_01_spawn {
#initclip
if (!_global.flame_gun_01_spawn) {
var v1 = function () {
super();
};
_global.flame_gun_01_spawn = v1;
_global.flame_gun_01_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('flame_gun_01', 'flame_gun_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
this.spawn = true;
}
};
ASSetPropFlags(_global.flame_gun_01_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1493 __Packages.rails_flat {
#initclip
if (!_global.rails_flat) {
var v1 = function () {
super();
};
_global.rails_flat = v1;
_global.rails_flat extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.hitTest(_root.gamePlay.car.front) or this.hitTest(_root.gamePlay.car.back)) {
if (_root.car_controller.back_speed > 2) {
_root.car_controller.back_speed = 2;
_root.gamePlay.quake = 15;
}
if (_root.car_controller.speed > 2.5) {
_root.car_controller.speed = 2.5;
_root.gamePlay.quake = 15;
}
}
}
};
ASSetPropFlags(_global.rails_flat.prototype, null, 1);
}
#endinitclip
}
movieClip 1494 __Packages.tower_spy_flame_02_spawn {
#initclip
if (!_global.tower_spy_flame_02_spawn) {
var v1 = function () {
super();
};
_global.tower_spy_flame_02_spawn = v1;
_global.tower_spy_flame_02_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.flame_massive) {
if (this.hitTest(_root.flame_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_spy_flame_02', 'tower_spy_flame_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
this.spawn = true;
}
};
ASSetPropFlags(_global.tower_spy_flame_02_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1495 __Packages.madtruck_spawn {
#initclip
if (!_global.madtruck_spawn) {
var v1 = function () {
super();
};
_global.madtruck_spawn = v1;
_global.madtruck_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockBottom.attachMovie('madtruck', 'madtruck' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
this.spawn = true;
}
};
ASSetPropFlags(_global.madtruck_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1496 __Packages.armory_spawn {
#initclip
if (!_global.armory_spawn) {
var v1 = function () {
super();
};
_global.armory_spawn = v1;
_global.armory_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('armory', 'armory' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.armory_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1497 __Packages.enemy_car_spawn_03 {
#initclip
if (!_global.enemy_car_spawn_03) {
var v1 = function () {
super();
};
_global.enemy_car_spawn_03 = v1;
_global.enemy_car_spawn_03 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.enemy_massive) {
if (this.hitTest(_root.enemy_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('enemy_car_03', 'enemy_car_03' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
this.spawn = true;
}
};
ASSetPropFlags(_global.enemy_car_spawn_03.prototype, null, 1);
}
#endinitclip
}
movieClip 1498 __Packages.tower_spy_flame_spawn {
#initclip
if (!_global.tower_spy_flame_spawn) {
var v1 = function () {
super();
};
_global.tower_spy_flame_spawn = v1;
_global.tower_spy_flame_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.flame_massive) {
if (this.hitTest(_root.flame_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_spy_flame', 'tower_spy_flame' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
this.spawn = true;
}
};
ASSetPropFlags(_global.tower_spy_flame_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1499 __Packages.train_spy {
#initclip
if (!_global.train_spy) {
var v1 = function () {
super();
};
_global.train_spy = v1;
_global.train_spy extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.base.gotoAndStop(_root.level_number);
this.rocket_counter = 0;
this.tower_lifes = 100;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.tower_lifes <= 0) {
this.tower_lifes = 0;
}
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.lifes_bar._rotation = -this._rotation;
this.border._rotation = -this._rotation;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x > -200 and this.aPoint.x < 700 and this.tower_lifes != 200) {
this.lPoint = new flash.geom.Point(-18, 30);
this.gun.localToGlobal(this.lPoint);
this.rPoint = new flash.geom.Point(18, 30);
this.gun.localToGlobal(this.rPoint);
this.LPoint = new flash.geom.Point(this.lPoint.x, this.lPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.LPoint);
this.RPoint = new flash.geom.Point(this.rPoint.x, this.rPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.RPoint);
if (this.tower_lifes > 0 and this.tower_lifes <= 100) {
this.gun._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.rocket_counter += 1;
if (this.rocket_counter == 100 and this.tower_lifes > 0 and this.tower_lifes <= 100 and _root.gamePlay.car.lifes > 0) {
var v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.LPoint.x;
v4._y = this.LPoint.y;
v4.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4._rotation = this.gun._rotation;
v4 = _root.gamePlay.BlockTop.attachMovie('tower_rocket', 'tower_rocket' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v4._x = this.RPoint.x;
v4._y = this.RPoint.y;
v4.xspeed = ((_root.gamePlay.car.aPoint.x - this.aPoint.x) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4.yspeed = ((_root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.sqrt((_root.gamePlay.car.aPoint.x - this.aPoint.x) * (_root.gamePlay.car.aPoint.x - this.aPoint.x) + (_root.gamePlay.car.aPoint.y - this.aPoint.y) * (_root.gamePlay.car.aPoint.y - this.aPoint.y))) * 10;
v4._rotation = this.gun._rotation;
this.rocket_counter = 0;
}
if (this.tower_lifes <= 0) {
this.tower_lifes = 200;
_root.score += 50 * _root.difficulty;
this.gotoAndStop(2);
this.gun.gotoAndPlay(2);
}
for (var v5 in _root.rocket_massive) {
_root.gamePlay.hittest_rocket(this.aPoint.x, this.aPoint.y, _root.rocket_massive[v5].aPoint.x, _root.rocket_massive[v5].aPoint.y, this.body._width, this.body._height, _root.rocket_massive[v5].body._width, _root.rocket_massive[v5].body._height);
if (_root.gamePlay.collision == true) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v5]._x - 20;
v3._y = _root.rocket_massive[v5]._y - 15;
_root.rocket_massive[v5].removeMovieClip();
_root.rocket_massive.splice(v5, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 25;
}
}
}
}
}
};
ASSetPropFlags(_global.train_spy.prototype, null, 1);
}
#endinitclip
}
movieClip 1500 __Packages.train_head {
#initclip
if (!_global.train_head) {
var v1 = function () {
super();
};
_global.train_head = v1;
_global.train_head extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.box_lifes = 100;
this.counter = 0;
this.appeared = false;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.appeared == false) {
this.appeared = true;
_root.boss = true;
}
for (var v4 in _root.rocket_massive) {
if (this.box_body.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.box_lifes <= 100) {
this.box_lifes -= _root.damage;
_root.boss_lifes = this.box_lifes;
}
}
}
if (this.box_lifes == 200) {
this.counter += 1;
if (this.counter == 185) {
_root.attachMovie('mission_complete', 'mission_complete' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
if (this.box_lifes <= 0) {
this.gotoAndPlay(2);
_root.score += 500 * _root.difficulty;
this.gun_01.tower_lifes = 0;
this.gun_02.tower_lifes = 0;
this.gun_03.tower_lifes = 0;
this.box_lifes = 200;
_root.boss_lifes = this.box_lifes;
_root.boss = false;
_root.level_railway = _root.difficulty;
_root.gamePlay.car.level_complete = true;
}
}
};
ASSetPropFlags(_global.train_head.prototype, null, 1);
}
#endinitclip
}
movieClip 1501 __Packages.train_box {
#initclip
if (!_global.train_box) {
var v1 = function () {
super();
};
_global.train_box = v1;
_global.train_box extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.box_lifes = 100;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
for (var v4 in _root.rocket_massive) {
if (this.box_body.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.box_lifes <= 100) {
this.box_lifes -= 25 * _root.damage;
}
}
}
for (v4 in _root.enemy_rocket_massive) {
if (this.box_body.hitTest(_root.enemy_rocket_massive[v4].body)) {
v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.enemy_rocket_massive[v4]._x - 20;
v3._y = _root.enemy_rocket_massive[v4]._y - 15;
_root.enemy_rocket_massive[v4].removeMovieClip();
_root.enemy_rocket_massive.splice(v4, 1);
if (this.box_lifes <= 100) {
this.box_lifes -= 5;
}
}
}
if (this.box_lifes <= 0) {
this.gotoAndPlay(2);
this.box_lifes = 200;
}
}
};
ASSetPropFlags(_global.train_box.prototype, null, 1);
}
#endinitclip
}
movieClip 1502 __Packages.tank_stand {
#initclip
if (!_global.tank_stand) {
var v1 = function () {
super();
};
_global.tank_stand = v1;
_global.tank_stand extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rotation = 0;
this.ySpeed = Math.random() + 0.5;
this.ySpeed = 0;
this.tower_lifes = 100;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.tower_lifes != 200) {
this.lifes_bar._xscale = this.tower_lifes;
} else {
this.lifes_bar._visible = false;
this.border._alpha -= 4;
}
this.lifes_bar._rotation = -this._rotation;
this.border._rotation = -this._rotation;
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -50 and this.aPoint.y < 650 and this.aPoint.x > -50 and this.aPoint.x < 550 and this.tower_lifes != 200) {
if (this.tower_lifes == 200 and this.ySpeed > 0) {
this.ySpeed -= 0.01;
}
if (this.ySpeed <= 0) {
this.ySpeed = 0;
}
if (this.tower_lifes >= 0 and this.tower_lifes <= 100) {
if (this.ySpeed > 0) {
this._rotation = (-Math.atan2(_root.gamePlay.car.aPoint.x - this.aPoint.x, _root.gamePlay.car.aPoint.y - this.aPoint.y) / Math.PI) * 180;
}
this.head.gun._rotation -= this._rotation;
this._y += this.ySpeed * Math.cos((this._rotation / 180) * Math.PI);
this._x -= this.ySpeed * Math.sin((this._rotation / 180) * Math.PI);
}
for (var v4 in _root.rocket_massive) {
if (this.body.hitTest(_root.rocket_massive[v4].body)) {
var v3 = _root.gamePlay.BlockTop.attachMovie('exp_01', 'exp_01' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._xscale = 50;
v3._yscale = 50;
v3._x = _root.rocket_massive[v4]._x - 20;
v3._y = _root.rocket_massive[v4]._y - 15;
_root.rocket_massive[v4].removeMovieClip();
_root.rocket_massive.splice(v4, 1);
if (this.tower_lifes <= 100) {
this.tower_lifes -= 20 * _root.damage;
}
}
}
for (v4 in _root.enemy_massive) {
if (this.header.hitTest(_root.enemy_massive[v4].body)) {
if (this.ySpeed > 0) {
this.ySpeed -= 0.15;
}
}
}
if (this.header.hitTest(_root.gamePlay.car)) {
if (this.ySpeed > 0) {
this.ySpeed -= 0.15;
}
}
if (this.tower_lifes <= 0) {
_root.score += 100 * _root.difficulty;
this.base.gotoAndPlay(2);
this.head.tower_lifes = 0;
this.tower_lifes = 200;
}
}
}
};
ASSetPropFlags(_global.tank_stand.prototype, null, 1);
}
#endinitclip
}
movieClip 1503 __Packages.train {
#initclip
if (!_global.train) {
var v1 = function () {
super();
};
_global.train = v1;
_global.train extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.volume = 0;
this.ySpeed = 0.25;
this.maxSpeed = 2.5;
this.train_sound = new Sound(this);
this.train_sound.attachSound('train_sound');
this.train_sound_timer = 1000;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.head.box_lifes == 200 and this.ySpeed > 0 or this.aPoint.y < -4500 or _root.gamePlay.backPlanTop._currentframe >= 10 or _root.gamePlay.backPlanBottom._currentframe >= 10) {
this.ySpeed -= 0.0125;
} else {
if (this.ySpeed < this.maxSpeed) {
this.ySpeed += 0.0125;
}
}
if (this.aPoint.y < -4500) {
this.volume = 100 - Math.abs(this.aPoint.x - _root.gamePlay.car.aPoint.x) / 10 + (this.aPoint.y + 4670) / 10;
} else {
this.volume = 100 - Math.abs(this.aPoint.x - _root.gamePlay.car.aPoint.x) / 10;
}
if (this.volume <= 0) {
this.volume = 0;
}
if (_root.mute == true) {
this.volume = 0;
}
this.train_sound.setVolume(this.volume);
if (this.ySpeed <= 0) {
this.ySpeed = 0;
}
this.train_sound_timer += 1;
if (this.ySpeed >= 0 and this.train_sound_timer >= 200 / this.ySpeed) {
this.train_sound.start();
this.train_sound_timer = 0;
}
this._y -= this.ySpeed;
}
};
ASSetPropFlags(_global.train.prototype, null, 1);
}
#endinitclip
}
movieClip 1504 __Packages.flame_gun_02_spawn {
#initclip
if (!_global.flame_gun_02_spawn) {
var v1 = function () {
super();
};
_global.flame_gun_02_spawn = v1;
_global.flame_gun_02_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('flame_gun_02', 'flame_gun_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
this.spawn = true;
}
};
ASSetPropFlags(_global.flame_gun_02_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1505 __Packages.mothership_boss {
#initclip
if (!_global.mothership_boss) {
var v1 = function () {
super();
};
_global.mothership_boss = v1;
_global.mothership_boss extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.enemy_massive = [];
this.lifes_sum = 0;
this.lifes = 100;
_root.boss = true;
this.counter = 0;
this.enemy_massive.push(this.spy_01);
this.enemy_massive.push(this.spy_02);
this.enemy_massive.push(this.spy_03);
this.enemy_massive.push(this.spy_04);
this.enemy_massive.push(this.spy_05);
this.enemy_massive.push(this.spy_06);
this.enemy_massive.push(this.spy_07);
this.enemy_massive.push(this.spy_08);
this.enemy_massive.push(this.tank_01);
this.enemy_massive.push(this.tank_02);
this.enemy_massive.push(this.tank_03);
this.enemy_massive.push(this.tank_04);
};
v2.onEnterFrame = function () {
for (var v3 in this.enemy_massive) {
if (this.enemy_massive[v3].tower_lifes != 200) {
this.lifes_sum += this.enemy_massive[v3].tower_lifes;
}
}
if (this.lifes != 200) {
this.lifes = Math.round(this.lifes_sum / 12);
}
this.lifes_sum = 0;
_root.boss_lifes = this.lifes;
if (this.lifes <= 0) {
_root.score += 500 * _root.difficulty;
this.lifes = 200;
_root.boss_lifes = this.lifes;
this.base.gotoAndPlay(2);
if (this.plane_01.plane_lifes != 200) {
this.plane_01.plane_lifes = 0;
}
if (this.plane_02.plane_lifes != 200) {
this.plane_02.plane_lifes = 0;
}
if (this.plane_03.plane_lifes != 200) {
this.plane_03.plane_lifes = 0;
}
if (this.plane_04.plane_lifes != 200) {
this.plane_04.plane_lifes = 0;
}
_root.level_aurora = _root.difficulty;
_root.boss = false;
_root.gamePlay.car.level_complete = true;
}
if (this.lifes == 200) {
this.counter += 1;
if (this.counter == 185) {
_root.attachMovie('mission_complete', 'mission_complete' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
};
ASSetPropFlags(_global.mothership_boss.prototype, null, 1);
}
#endinitclip
}
movieClip 1506 __Packages.tower_spy_spawn {
#initclip
if (!_global.tower_spy_spawn) {
var v1 = function () {
super();
};
_global.tower_spy_spawn = v1;
_global.tower_spy_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.flame_massive) {
if (this.hitTest(_root.flame_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_spy', 'tower_spy' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
this.spawn = true;
}
};
ASSetPropFlags(_global.tower_spy_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1507 __Packages.armory_spawn_03 {
#initclip
if (!_global.armory_spawn_03) {
var v1 = function () {
super();
};
_global.armory_spawn_03 = v1;
_global.armory_spawn_03 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('armory_03', 'armory_03' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.armory_spawn_03.prototype, null, 1);
}
#endinitclip
}
movieClip 1508 __Packages.armory_spawn_02 {
#initclip
if (!_global.armory_spawn_02) {
var v1 = function () {
super();
};
_global.armory_spawn_02 = v1;
_global.armory_spawn_02 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('armory_02', 'armory_02' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.armory_spawn_02.prototype, null, 1);
}
#endinitclip
}
movieClip 1509 __Packages.armory_spawn_04 {
#initclip
if (!_global.armory_spawn_04) {
var v1 = function () {
super();
};
_global.armory_spawn_04 = v1;
_global.armory_spawn_04 extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y < 0) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockBottom.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('armory_04', 'armory_04' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._rotation = this._rotation;
v3._xscale = this._xscale;
v3._yscale = this._yscale;
v3.frame_top = _root.frame_top;
v3.frame_bottom = _root.frame_bottom;
}
};
ASSetPropFlags(_global.armory_spawn_04.prototype, null, 1);
}
#endinitclip
}
movieClip 1510 __Packages.boss_tank_spawn {
#initclip
if (!_global.boss_tank_spawn) {
var v1 = function () {
super();
};
_global.boss_tank_spawn = v1;
_global.boss_tank_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('boss_tank', 'boss_tank' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
v3._yscale = this._yscale;
v3._xscale = this._xscale;
this.spawn = true;
}
};
ASSetPropFlags(_global.boss_tank_spawn.prototype, null, 1);
}
#endinitclip
}
movieClip 1511 __Packages.tower_spy_1_spawn {
#initclip
if (!_global.tower_spy_1_spawn) {
var v1 = function () {
super();
};
_global.tower_spy_1_spawn = v1;
_global.tower_spy_1_spawn extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.spawn = false;
if (_root.frame_top > _root.gamePlay.backPlanTop._currentframe or _root.frame_bottom > _root.gamePlay.backPlanBottom._currentframe) {
this.spawn = true;
}
for (var v3 in _root.flame_massive) {
if (this.hitTest(_root.flame_massive[v3])) {
this.spawn = true;
}
}
};
v2.onEnterFrame = function () {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y > -150 and this.aPoint.y < -50 and this.spawn == false) {
this.APoint = new flash.geom.Point(this.aPoint.x, this.aPoint.y);
_root.gamePlay.BlockTop.globalToLocal(this.APoint);
var v3 = _root.gamePlay.BlockTop.attachMovie('tower_spy_1', 'tower_spy_1' + _root.gamePlay.BlockTop.getNextHighestDepth(), _root.gamePlay.BlockTop.getNextHighestDepth());
v3._x = this.APoint.x;
v3._y = this.APoint.y;
this.spawn = true;
}
};
ASSetPropFlags(_global.tower_spy_1_spawn.prototype, null, 1);
}
#endinitclip
}
frame 2 {
}
movieClip 45 {
}
movieClip 47 border_rocket_3 {
#initclip
Object.registerClass('border_rocket_3', border_rocket_3);
#endinitclip
}
movieClip 192 tower_exp {
#initclip
Object.registerClass('tower_exp', tower_exp);
#endinitclip
frame 72 {
stop();
}
}
movieClip 246 {
}
movieClip 247 {
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 252 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 254 {
}
movieClip 255 enemy_car_gun {
#initclip
Object.registerClass('enemy_car_gun', enemy_car_gun);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 258 {
}
movieClip 261 {
}
movieClip 262 {
}
movieClip 263 enemy_car_01 {
#initclip
Object.registerClass('enemy_car_01', enemy_car);
#endinitclip
}
movieClip 266 {
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 403 flame_gun_02_flame {
#initclip
Object.registerClass('flame_gun_02_flame', flame_gun_02);
#endinitclip
}
movieClip 404 car_gun_flame {
frame 1 {
stop();
}
frame 25 {
stop();
}
}
movieClip 405 spy_flame {
#initclip
Object.registerClass('spy_flame', spy_flame);
#endinitclip
}
movieClip 406 enemy_car_03 {
#initclip
Object.registerClass('enemy_car_03', enemy_car);
#endinitclip
}
movieClip 411 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 412 {
}
movieClip 413 car_spy {
#initclip
Object.registerClass('car_spy', car_spy);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 414 enemy_car_02 {
#initclip
Object.registerClass('enemy_car_02', enemy_car);
#endinitclip
}
movieClip 418 flame_gun_01 {
#initclip
Object.registerClass('flame_gun_01', flame_gun_01);
#endinitclip
}
movieClip 419 flame_gun_02 {
#initclip
Object.registerClass('flame_gun_02', flame_gun_02);
#endinitclip
}
movieClip 425 {
frame 1 {
stop();
}
frame 93 {
stop();
}
}
movieClip 432 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 433 tank_spy {
#initclip
Object.registerClass('tank_spy', tank_spy);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 436 boss_tank_head {
#initclip
Object.registerClass('boss_tank_head', boss_tank_head);
#endinitclip
frame 1 {
stop();
}
frame 110 {
stop();
}
}
movieClip 437 boss_tank {
#initclip
Object.registerClass('boss_tank', boss_tank);
#endinitclip
}
movieClip 442 {
frame 1 {
stop();
}
frame 70 {
stop();
}
}
movieClip 447 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 448 tank_head {
#initclip
Object.registerClass('tank_head', tank_head);
#endinitclip
frame 1 {
stop();
}
}
movieClip 449 tank_01 {
#initclip
Object.registerClass('tank_01', tank);
#endinitclip
}
movieClip 454 {
}
movieClip 455 {
frame 1 {
if (_root.pause == true) {
stop();
} else {
play();
}
}
}
movieClip 456 {
}
movieClip 459 {
}
movieClip 460 {
}
movieClip 463 {
}
movieClip 464 {
frame 1 {
if (_root.pause == true) {
stop();
} else {
play();
}
}
}
movieClip 465 {
}
movieClip 466 border {
#initclip
Object.registerClass('border', border);
#endinitclip
}
movieClip 470 helicopter_boss {
#initclip
Object.registerClass('helicopter_boss', helicopter_boss);
#endinitclip
frame 1 {
stop();
}
frame 71 {
stop();
}
}
movieClip 477 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 479 {
}
movieClip 480 {
}
movieClip 483 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 484 border_rocket_2 {
#initclip
Object.registerClass('border_rocket_2', border_rocket_2);
#endinitclip
}
movieClip 485 tower_spy_flame_02 {
#initclip
Object.registerClass('tower_spy_flame_02', tower_spy_flame_02);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 486 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 487 tower_spy_base {
#initclip
Object.registerClass('tower_spy_base', tower_spy_1);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 488 tower_spy_1 {
#initclip
Object.registerClass('tower_spy_1', tower_spy_1);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 489 flame_gun_01_flame {
#initclip
Object.registerClass('flame_gun_01_flame', flame_gun_01);
#endinitclip
}
movieClip 490 {
frame 1 {
stop();
}
frame 51 {
stop();
}
}
movieClip 491 tower_spy_flame {
#initclip
Object.registerClass('tower_spy_flame', tower_spy_flame);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 492 tower_spy_4 {
#initclip
Object.registerClass('tower_spy_4', tower_spy_4);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 493 tower_spy {
#initclip
Object.registerClass('tower_spy', tower_spy);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 494 border_enemy {
#initclip
Object.registerClass('border_enemy', border_enemy);
#endinitclip
}
movieClip 498 border_rocket {
#initclip
Object.registerClass('border_rocket', border_rocket);
#endinitclip
}
movieClip 504 {
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 505 armory_spy {
#initclip
Object.registerClass('armory_spy', tower_spy);
#endinitclip
frame 1 {
stop();
}
}
movieClip 506 armory {
#initclip
Object.registerClass('armory', armory);
#endinitclip
}
movieClip 512 {
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 513 armory_tower_spy_1 {
#initclip
Object.registerClass('armory_tower_spy_1', tower_spy_1);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 514 armory_02 {
#initclip
Object.registerClass('armory_02', armory);
#endinitclip
}
movieClip 520 {
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 521 armory_03 {
#initclip
Object.registerClass('armory_03', armory);
#endinitclip
}
movieClip 522 armory_04 {
#initclip
Object.registerClass('armory_04', armory);
#endinitclip
}
movieClip 533 {
}
movieClip 534 mega_health_bonus {
#initclip
Object.registerClass('mega_health_bonus', mega_health_bonus);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 545 {
}
movieClip 546 health_bonus {
#initclip
Object.registerClass('health_bonus', health_bonus);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 549 {
}
movieClip 550 {
}
movieClip 551 ammo_bonus {
#initclip
Object.registerClass('ammo_bonus', ammo_bonus);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 554 {
}
movieClip 555 {
}
movieClip 556 fire_rate_bonus {
#initclip
Object.registerClass('fire_rate_bonus', fire_rate_bonus);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 559 {
}
movieClip 560 {
}
movieClip 561 damage_bonus {
#initclip
Object.registerClass('damage_bonus', damage_bonus);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 564 {
}
movieClip 565 {
}
movieClip 566 armor_bonus {
#initclip
Object.registerClass('armor_bonus', armor_bonus);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 569 smoke_flake_rocket {
#initclip
Object.registerClass('smoke_flake_rocket', smoke_flake_rocket);
#endinitclip
}
movieClip 570 smoke_rocket {
#initclip
Object.registerClass('smoke_rocket', smoke_rocket);
#endinitclip
}
movieClip 575 {
}
movieClip 576 {
}
movieClip 577 rocket {
#initclip
Object.registerClass('rocket', rocket);
#endinitclip
frame 1 {
stop();
}
}
movieClip 578 tower_rocket {
#initclip
Object.registerClass('tower_rocket', tower_rocket);
#endinitclip
frame 1 {
stop();
}
frame 2 {
var exp = _root.gamePlay.BlockBottom.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
exp._x = _x;
exp._y = _y;
stop();
}
}
movieClip 579 heli_rocket {
#initclip
Object.registerClass('heli_rocket', heli_rocket);
#endinitclip
frame 1 {
stop();
}
frame 2 {
var exp = _root.gamePlay.BlockBottom.attachMovie('exp_02', 'exp_02' + _root.gamePlay.BlockBottom.getNextHighestDepth(), _root.gamePlay.BlockBottom.getNextHighestDepth());
exp._x = _x;
exp._y = _y;
stop();
}
}
movieClip 584 track {
#initclip
Object.registerClass('track', track);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 585 smoke_flake {
#initclip
Object.registerClass('smoke_flake', smoke_flake);
#endinitclip
}
movieClip 630 exp_01 {
#initclip
Object.registerClass('exp_01', exp_01);
#endinitclip
frame 23 {
stop();
}
}
movieClip 631 exp_02 {
#initclip
Object.registerClass('exp_02', exp_02);
#endinitclip
frame 23 {
stop();
}
}
movieClip 636 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 637 prepare_to_fight {
#initclip
Object.registerClass('prepare_to_fight', prepare_to_fight);
#endinitclip
frame 200 {
stop();
}
}
movieClip 641 mission_complete {
#initclip
Object.registerClass('mission_complete', mission_complete);
#endinitclip
}
movieClip 647 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 648 titles_fader {
#initclip
Object.registerClass('titles_fader', titles_fader);
#endinitclip
}
movieClip 650 intro_fader {
#initclip
Object.registerClass('intro_fader', intro_fader);
#endinitclip
}
movieClip 651 titles_fader_in {
#initclip
Object.registerClass('titles_fader_in', titles_fader_in);
#endinitclip
}
movieClip 652 titles_fader_out {
#initclip
Object.registerClass('titles_fader_out', titles_fader_out);
#endinitclip
}
movieClip 653 fader {
#initclip
Object.registerClass('fader', fader);
#endinitclip
}
movieClip 657 fader_out {
#initclip
Object.registerClass('fader_out', fader_out);
#endinitclip
}
movieClip 658 pause_fader {
#initclip
Object.registerClass('pause_fader', pause_fader);
#endinitclip
}
movieClip 659 enemy_body {
}
movieClip 680 {
frame 1 {
if (_root.pause == true) {
stop();
} else {
play();
}
}
}
movieClip 681 {
}
movieClip 682 smoke {
#initclip
Object.registerClass('smoke', smoke);
#endinitclip
}
movieClip 687 {
}
movieClip 688 {
frame 1 {
if (_root.pause == true) {
stop();
} else {
play();
}
}
}
movieClip 690 {
}
movieClip 692 {
}
movieClip 693 {
}
movieClip 696 helicopter {
#initclip
Object.registerClass('helicopter', helicopter_test);
#endinitclip
frame 1 {
stop();
}
frame 80 {
stop();
}
}
movieClip 699 spy {
#initclip
Object.registerClass('spy', tower_spy);
#endinitclip
frame 1 {
stop();
}
}
movieClip 700 mothership {
#initclip
Object.registerClass('mothership', mothership);
#endinitclip
frame 1 {
stop();
}
}
movieClip 704 plus_damage {
#initclip
Object.registerClass('plus_damage', plus_damage);
#endinitclip
frame 1 {
stop();
}
}
movieClip 708 plus_fire_rate {
#initclip
Object.registerClass('plus_fire_rate', plus_fire_rate);
#endinitclip
frame 1 {
stop();
}
}
movieClip 713 plus_armor {
#initclip
Object.registerClass('plus_armor', plus_armor);
#endinitclip
frame 1 {
stop();
}
}
movieClip 716 plus_health {
#initclip
Object.registerClass('plus_health', plus);
#endinitclip
}
movieClip 719 plus_ammo {
#initclip
Object.registerClass('plus_ammo', plus);
#endinitclip
}
movieClip 725 {
}
movieClip 726 box {
#initclip
Object.registerClass('box', box);
#endinitclip
frame 1 {
stop();
}
frame 110 {
stop();
}
}
movieClip 727 raft_instruction {
#initclip
Object.registerClass('raft_instruction', raft_instruction);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 730 {
frame 1 {
stop();
}
}
movieClip 731 raft {
#initclip
Object.registerClass('raft', raft);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 736 desert_plane_boss {
#initclip
Object.registerClass('desert_plane_boss', plane);
#endinitclip
frame 1 {
stop();
}
frame 60 {
stop();
}
}
movieClip 737 desert_plane {
#initclip
Object.registerClass('desert_plane', plane);
#endinitclip
frame 1 {
stop();
}
frame 60 {
stop();
}
}
movieClip 741 {
}
movieClip 744 {
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 745 madtruck {
#initclip
Object.registerClass('madtruck', madtruck);
#endinitclip
}
movieClip 747 {
}
movieClip 767 {
}
frame 3 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
mochi.as2.MochiServices.connect('784b52346a25abf8');
__com_mochibot__('8b877acf', this, 10301, true);
__com_mochibot__('60aeb910', this, 10301, true);
_root.mute = false;
stop();
}
movieClip 770 {
}
movieClip 788 {
frame 1 {
onRelease = function () {
getURL('http://www.arcadetown.com/index.asp?gameid=searchanddestroythehotspot', 'blank');
};
}
frame 120 {
_root.gotoAndStop(4);
}
}
frame 4 {
saveData.data.difficulty = _root.difficulty;
saveData.data.graphic_level = _root.graphic_level;
saveData.data.level_base = _root.level_base;
saveData.data.level_railway = _root.level_railway;
saveData.data.level_aurora = _root.level_aurora;
saveData.data.level_desert_strike = _root.level_desert_strike;
saveData.data.level_instruction = _root.level_instruction;
saveData.data.titles = _root.titles;
saveData.data.desert_strike_score = _root.desert_strike_score;
saveData.data.aurora_score = _root.aurora_score;
saveData.data.railway_score = _root.railway_score;
saveData.data.base_score = _root.base_score;
saveData.data.total_score = _root.total_score;
stop();
}
movieClip 793 {
frame 1 {
stop();
}
}
movieClip 796 {
frame 1 {
stop();
}
}
movieClip 799 {
frame 1 {
stop();
}
}
movieClip 802 {
frame 1 {
stop();
}
}
movieClip 805 {
frame 1 {
stop();
}
}
movieClip 808 {
frame 1 {
stop();
}
}
movieClip 812 {
frame 1 {
stop();
}
}
movieClip 816 {
frame 1 {
stop();
}
}
movieClip 819 {
frame 1 {
stop();
}
}
movieClip 822 {
frame 1 {
stop();
}
}
movieClip 825 {
frame 1 {
stop();
}
}
movieClip 828 {
frame 1 {
stop();
}
}
movieClip 832 {
frame 1 {
stop();
}
}
movieClip 834 main_menu {
#initclip
Object.registerClass('main_menu', main_menu);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 837 {
frame 1 {
stop();
}
}
frame 5 {
saveData.data.difficulty = _root.difficulty;
saveData.data.graphic_level = _root.graphic_level;
saveData.data.level_base = _root.level_base;
saveData.data.level_railway = _root.level_railway;
saveData.data.level_aurora = _root.level_aurora;
saveData.data.level_desert_strike = _root.level_desert_strike;
saveData.data.level_instruction = _root.level_instruction;
saveData.data.titles = _root.titles;
saveData.data.desert_strike_score = _root.desert_strike_score;
saveData.data.aurora_score = _root.aurora_score;
saveData.data.railway_score = _root.railway_score;
saveData.data.base_score = _root.base_score;
saveData.data.total_score = _root.total_score;
stop();
}
movieClip 847 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 856 photos {
#initclip
Object.registerClass('photos', photos);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 858 {
}
movieClip 860 {
frame 1 {
stop();
}
}
movieClip 863 {
frame 1 {
stop();
}
}
movieClip 866 {
frame 1 {
stop();
}
}
movieClip 869 {
frame 1 {
stop();
}
}
movieClip 872 {
frame 1 {
stop();
}
}
movieClip 875 {
frame 1 {
stop();
}
}
movieClip 886 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
}
movieClip 887 number {
#initclip
Object.registerClass('number', number);
#endinitclip
}
movieClip 888 total_number {
#initclip
Object.registerClass('total_number', total_number);
#endinitclip
}
movieClip 890 {
}
movieClip 892 {
}
movieClip 894 {
}
movieClip 895 level_menu {
#initclip
Object.registerClass('level_menu', level_menu);
#endinitclip
}
frame 6 {
stop();
}
movieClip 901 {
}
movieClip 908 cone {
#initclip
Object.registerClass('cone', cone);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 913 {
}
movieClip 915 {
}
movieClip 918 {
}
movieClip 919 {
}
movieClip 923 {
}
movieClip 926 {
}
movieClip 927 {
}
movieClip 928 gates_01 {
#initclip
Object.registerClass('gates_01', gates);
#endinitclip
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 931 {
}
movieClip 933 health_bonus_boss {
#initclip
Object.registerClass('health_bonus_boss', health_bonus_boss);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 934 ammo_bonus_boss {
#initclip
Object.registerClass('ammo_bonus_boss', ammo_bonus_boss);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 937 {
}
movieClip 940 {
}
movieClip 943 {
}
movieClip 946 {
}
movieClip 949 {
}
movieClip 952 {
}
movieClip 955 {
}
movieClip 964 enemy_car_spawn_01 {
#initclip
Object.registerClass('enemy_car_spawn_01', enemy_car_spawn_01);
#endinitclip
}
movieClip 969 mine {
#initclip
Object.registerClass('mine', mine);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 970 border_stop {
#initclip
Object.registerClass('border_stop', border_stop);
#endinitclip
}
movieClip 971 {
}
movieClip 974 {
}
movieClip 982 {
}
movieClip 984 {
}
movieClip 985 {
}
movieClip 986 soldier_01 {
#initclip
Object.registerClass('soldier_01', soldier);
#endinitclip
frame 1 {
stop();
}
frame 8 {
stop();
}
}
movieClip 990 {
}
movieClip 991 {
}
movieClip 992 soldier_02 {
#initclip
Object.registerClass('soldier_02', soldier);
#endinitclip
frame 1 {
stop();
}
frame 8 {
stop();
}
}
movieClip 995 minigun {
#initclip
Object.registerClass('minigun', minigun);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 998 trench {
#initclip
Object.registerClass('trench', trench);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1001 {
}
movieClip 1005 helicopter_spawn {
#initclip
Object.registerClass('helicopter_spawn', helicopter_spawn);
#endinitclip
}
movieClip 1008 {
}
movieClip 1009 tank_spawn {
#initclip
Object.registerClass('tank_spawn', tank_spawn);
#endinitclip
}
movieClip 1010 raft_spawn_instruction {
#initclip
Object.registerClass('raft_spawn_instruction', raft_spawn_instruction);
#endinitclip
}
movieClip 1013 back_plan_level_0 {
#initclip
Object.registerClass('back_plan_level_0', backplan);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
}
movieClip 1014 blockBottom_level_0 {
#initclip
Object.registerClass('blockBottom_level_0', backplan);
#endinitclip
}
movieClip 1016 wheel_back {
#initclip
Object.registerClass('wheel_back', wheel_back);
#endinitclip
}
movieClip 1017 wheel_front {
#initclip
Object.registerClass('wheel_front', wheel_front);
#endinitclip
}
movieClip 1019 armor_border {
#initclip
Object.registerClass('armor_border', armor_border);
#endinitclip
}
movieClip 1022 {
}
movieClip 1024 {
}
movieClip 1028 car_body {
#initclip
Object.registerClass('car_body', car_body);
#endinitclip
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 1030 jeep {
#initclip
Object.registerClass('jeep', car);
#endinitclip
}
movieClip 1034 car_spy_gun {
#initclip
Object.registerClass('car_spy_gun', car_spy_gun);
#endinitclip
frame 1 {
stop();
}
frame 50 {
stop();
}
}
movieClip 1035 car_gun {
#initclip
Object.registerClass('car_gun', car_gun);
#endinitclip
}
movieClip 1036 blockTop_level_0 {
#initclip
Object.registerClass('blockTop_level_0', backplan);
#endinitclip
}
movieClip 1037 gameplay_level_0 {
#initclip
Object.registerClass('gameplay_level_0', gameplay);
#endinitclip
}
movieClip 1041 {
}
movieClip 1047 {
}
movieClip 1053 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1058 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1061 {
}
movieClip 1064 ingame_menu_motion {
#initclip
Object.registerClass('ingame_menu_motion', ingame_menu_motion);
#endinitclip
}
movieClip 1065 ingame_menu {
#initclip
Object.registerClass('ingame_menu', ingame_menu);
#endinitclip
frame 1 {
stop();
}
}
movieClip 1076 {
}
movieClip 1078 {
}
movieClip 1079 lifes_bar {
#initclip
Object.registerClass('lifes_bar', lifes_bar);
#endinitclip
}
movieClip 1080 controller {
#initclip
Object.registerClass('controller', controller);
#endinitclip
}
frame 7 {
stop();
}
movieClip 1086 {
}
movieClip 1089 {
}
movieClip 1092 {
}
movieClip 1102 gates_02 {
#initclip
Object.registerClass('gates_02', gates);
#endinitclip
frame 1 {
stop();
}
frame 100 {
stop();
}
}
movieClip 1103 enemy_car_spawn_02 {
#initclip
Object.registerClass('enemy_car_spawn_02', enemy_car_spawn_02);
#endinitclip
}
movieClip 1108 {
}
movieClip 1110 desert_plane_spawn {
#initclip
Object.registerClass('desert_plane_spawn', desert_plane_spawn);
#endinitclip
frame 1 {
stop();
}
}
movieClip 1112 mothership_spawn {
#initclip
Object.registerClass('mothership_spawn', mothership_spawn);
#endinitclip
}
movieClip 1117 raft_spawn {
#initclip
Object.registerClass('raft_spawn', raft_spawn);
#endinitclip
}
movieClip 1123 {
}
movieClip 1129 tower_spy_boss {
#initclip
Object.registerClass('tower_spy_boss', tower_spy_boss);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1130 {
}
movieClip 1134 {
}
movieClip 1136 boss_true {
#initclip
Object.registerClass('boss_true', boss_true);
#endinitclip
}
movieClip 1143 helicopter_boss_spawn {
#initclip
Object.registerClass('helicopter_boss_spawn', helicopter_boss_spawn);
#endinitclip
}
movieClip 1146 block_03 {
#initclip
Object.registerClass('block_03', block);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1147 back_plan_level_1 {
#initclip
Object.registerClass('back_plan_level_1', backplan);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
}
movieClip 1148 blockBottom_level_01 {
#initclip
Object.registerClass('blockBottom_level_01', backplan);
#endinitclip
}
movieClip 1149 blockTop_level_01 {
#initclip
Object.registerClass('blockTop_level_01', backplan);
#endinitclip
}
movieClip 1150 gameplay_level_1 {
#initclip
Object.registerClass('gameplay_level_1', gameplay);
#endinitclip
}
movieClip 1158 {
}
frame 8 {
stop();
}
movieClip 1163 {
}
movieClip 1166 flame_gun_02_spawn {
#initclip
Object.registerClass('flame_gun_02_spawn', flame_gun_02_spawn);
#endinitclip
}
movieClip 1167 flame_gun_01_spawn {
#initclip
Object.registerClass('flame_gun_01_spawn', flame_gun_01_spawn);
#endinitclip
}
movieClip 1169 rails_flat {
#initclip
Object.registerClass('rails_flat', rails_flat);
#endinitclip
}
movieClip 1173 {
}
movieClip 1177 tower_spy_flame_02_spawn {
#initclip
Object.registerClass('tower_spy_flame_02_spawn', tower_spy_flame_02_spawn);
#endinitclip
}
movieClip 1182 {
}
movieClip 1186 block_01 {
#initclip
Object.registerClass('block_01', block);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1188 madtruck_spawn {
#initclip
Object.registerClass('madtruck_spawn', madtruck_spawn);
#endinitclip
}
movieClip 1196 armory_spawn {
#initclip
Object.registerClass('armory_spawn', armory_spawn);
#endinitclip
}
movieClip 1201 enemy_car_spawn_03 {
#initclip
Object.registerClass('enemy_car_spawn_03', enemy_car_spawn_03);
#endinitclip
}
movieClip 1211 tower_spy_flame_spawn {
#initclip
Object.registerClass('tower_spy_flame_spawn', tower_spy_flame_spawn);
#endinitclip
}
movieClip 1216 back_plan_level_2 {
#initclip
Object.registerClass('back_plan_level_2', backplan);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
}
movieClip 1217 blockBottom_level_02 {
#initclip
Object.registerClass('blockBottom_level_02', backplan);
#endinitclip
}
movieClip 1220 train_spy {
#initclip
Object.registerClass('train_spy', train_spy);
#endinitclip
frame 1 {
stop();
}
}
movieClip 1221 {
}
movieClip 1224 train_head {
#initclip
Object.registerClass('train_head', train_head);
#endinitclip
frame 1 {
stop();
}
frame 120 {
stop();
}
}
movieClip 1229 train_tank {
#initclip
Object.registerClass('train_tank', train_box);
#endinitclip
frame 1 {
stop();
}
frame 120 {
stop();
}
}
movieClip 1230 empty_box {
#initclip
Object.registerClass('empty_box', box);
#endinitclip
frame 1 {
stop();
}
frame 110 {
stop();
}
}
movieClip 1231 {
}
movieClip 1232 {
frame 1 {
stop();
}
frame 70 {
stop();
}
}
movieClip 1233 {
}
movieClip 1234 tank_stand {
#initclip
Object.registerClass('tank_stand', tank_stand);
#endinitclip
}
movieClip 1235 {
}
movieClip 1240 train_box_01 {
#initclip
Object.registerClass('train_box_01', train_box);
#endinitclip
frame 1 {
stop();
}
frame 120 {
stop();
}
}
movieClip 1241 train {
#initclip
Object.registerClass('train', train);
#endinitclip
}
movieClip 1242 blockTop_level_02 {
#initclip
Object.registerClass('blockTop_level_02', backplan);
#endinitclip
}
movieClip 1243 gameplay_level_2 {
#initclip
Object.registerClass('gameplay_level_2', gameplay);
#endinitclip
}
frame 9 {
stop();
}
movieClip 1249 {
}
movieClip 1252 {
}
movieClip 1258 {
}
movieClip 1264 {
}
movieClip 1288 {
}
movieClip 1299 tower_spy_spawn {
#initclip
Object.registerClass('tower_spy_spawn', tower_spy_spawn);
#endinitclip
}
movieClip 1306 {
frame 1 {
stop();
}
frame 150 {
stop();
}
}
movieClip 1307 mothership_boss {
#initclip
Object.registerClass('mothership_boss', mothership_boss);
#endinitclip
}
movieClip 1309 back_plan_level_3 {
#initclip
Object.registerClass('back_plan_level_3', backplan);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
}
movieClip 1310 blockBottom_level_03 {
#initclip
Object.registerClass('blockBottom_level_03', backplan);
#endinitclip
}
movieClip 1311 blockTop_level_03 {
#initclip
Object.registerClass('blockTop_level_03', backplan);
#endinitclip
}
movieClip 1312 gameplay_level_3 {
#initclip
Object.registerClass('gameplay_level_3', gameplay);
#endinitclip
}
frame 10 {
stop();
}
movieClip 1317 {
}
movieClip 1319 {
}
movieClip 1322 tower_spy_1_spawn {
#initclip
Object.registerClass('tower_spy_1_spawn', tower_spy_1_spawn);
#endinitclip
}
movieClip 1323 armory_spawn_03 {
#initclip
Object.registerClass('armory_spawn_03', armory_spawn_03);
#endinitclip
}
movieClip 1326 {
}
movieClip 1328 {
}
movieClip 1331 {
}
movieClip 1335 block_02 {
#initclip
Object.registerClass('block_02', block);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 1340 armory_spawn_02 {
#initclip
Object.registerClass('armory_spawn_02', armory_spawn_02);
#endinitclip
}
movieClip 1346 armory_spawn_04 {
#initclip
Object.registerClass('armory_spawn_04', armory_spawn_04);
#endinitclip
}
movieClip 1348 {
}
movieClip 1368 boss_tank_spawn {
#initclip
Object.registerClass('boss_tank_spawn', boss_tank_spawn);
#endinitclip
}
movieClip 1369 back_plan_level_4 {
#initclip
Object.registerClass('back_plan_level_4', backplan);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
}
movieClip 1370 blockBottom {
#initclip
Object.registerClass('blockBottom', backplan);
#endinitclip
}
movieClip 1371 blockTop {
#initclip
Object.registerClass('blockTop', backplan);
#endinitclip
}
movieClip 1372 gameplay_level_4 {
#initclip
Object.registerClass('gameplay_level_4', gameplay);
#endinitclip
}
frame 11 {
saveData.data.difficulty = _root.difficulty;
saveData.data.graphic_level = _root.graphic_level;
saveData.data.level_base = _root.level_base;
saveData.data.level_railway = _root.level_railway;
saveData.data.level_aurora = _root.level_aurora;
saveData.data.level_desert_strike = _root.level_desert_strike;
saveData.data.level_instruction = _root.level_instruction;
saveData.data.titles = _root.titles;
saveData.data.desert_strike_score = _root.desert_strike_score;
saveData.data.aurora_score = _root.aurora_score;
saveData.data.railway_score = _root.railway_score;
saveData.data.base_score = _root.base_score;
saveData.data.total_score = _root.total_score;
stop();
}
movieClip 1375 {
}
movieClip 1384 {
}
frame 12 {
_root.gotoAndStop('main_menu');
}
frame 13 {
_root.stop();
}