Combined Code
movieClip 2 {
}
movieClip 3 fader_in_survival {
frame 133 {
_root.gotoAndStop('survivalFrame');
stop();
}
}
movieClip 7 truck_body {
}
movieClip 8 {
}
movieClip 9 {
}
movieClip 10 choice {
#initclip
Object.registerClass('choice', choice);
#endinitclip
}
movieClip 68 flaming {
#initclip
Object.registerClass('flaming', flaming);
#endinitclip
}
movieClip 74 {
}
movieClip 75 {
}
movieClip 78 {
}
// unknown tag 88 length 64
movieClip 83 game_complete {
#initclip
Object.registerClass('game_complete', game_complete);
#endinitclip
}
movieClip 84 fader_in {
frame 51 {
stop();
}
}
frame 1 {
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = '__mochibot__';
mbc = 'mochibot.com';
g = _global ? _global : _level0._root;
if (g[mb + swfid]) {
return g[mb + swfid];
}
s = System.security;
x = mc._root.getSWFVersion;
fv = x ? mc.getSWFVersion() : (_global ? 6 : 5);
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == 'localWithFile') {
return null;
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = (fv == 5) ? /:$version : System.capabilities.version;
u = 'http://' + mbc + '/my/core.swf?mv=8&fv=' + fv + '&v=' + escape(pv) + '&swfid=' + escape(swfid) + '&l=' + lv + '&f=' + mc + (sb ? '&sb=' + sb : '') + (trk ? '&t=1' : '');
lv = fv > 6 ? mc.getNextHighestDepth() : (g[mb + 'level'] ? g[mb + 'level'] + 1 : lv);
g[mb + 'level'] = lv;
if (fv == 5) {
res = '_level' + lv;
if (!eval(res)) {
loadMovieNum(u, lv);
}
return res;
}
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
return res;
}
__com_mochibot__('68425635', this, 10301, true);
mochi.as2.MochiServices.connect('1f132a7eae246ef8');
Stage.showMenu = false;
saveData = SharedObject.getLocal('MTData');
_root.sound = true;
_root.music = true;
_root.pause = false;
_root._quality = 'MEDIUM';
var urlString = _root._url;
if (urlString.indexOf('flashgamelicense.com') == -1 and urlString.indexOf('kongregate.com') == -1 and urlString.indexOf('addictinggames.com') == -1 and urlString.indexOf('dwarfgames.com') == -1) {
var CPMStarContentSpotID = '3308Q906F1F46';
System.security.allowDomain('server.cpmstar.com');
adBox.loadMovie('http://server.cpmstar.com/adviewas2.swf?contentspotid=' + CPMStarContentSpotID);
}
if (saveData.data.meters == undefined) {
_root.meters = 0;
_root.fuel = 100;
_root.food = 100;
_root.damage = 100;
_root.maxSpeed = 25;
_root.steer_acceleration = 0.1;
_root.brakes = 2.5;
_root.acceleration = 0.1;
_root.rocket_number = 0;
_root.lights = 1;
_root.frame = 1;
_root.car_stop = 0;
_root.money = 0;
_root.backPlanFrame = 1;
_root.day_number = 0;
_root.m = 0;
_root.game_complete = 0;
_root.survival_mode = false;
_root.fuel_price = 100;
_root.engine_price = 1000;
_root.steer_price = 200;
_root.brakes_price = 100;
_root.armor_price = 100;
_root.food_price = 100;
_root.rocket_price = 500;
_root.lights_price = 500;
_root.achievement_10_miles = 0;
_root.achievement_30_miles = 0;
_root.achievement_50_miles = 0;
_root.achievement_70_miles = 0;
_root.achievement_90_miles = 0;
_root.achievement_1_clear_miles = 0;
_root.achievement_3_clear_miles = 0;
_root.achievement_5_clear_miles = 0;
_root.achievement_7_clear_miles = 0;
_root.achievement_9_clear_miles = 0;
_root.achievement_1_police = 0;
_root.achievement_3_police = 0;
_root.achievement_5_police = 0;
_root.achievement_7_police = 0;
_root.achievement_9_police = 0;
} else {
_root.meters = saveData.data.meters;
_root.fuel = saveData.data.fuel;
_root.food = saveData.data.food;
_root.damage = saveData.data.damage;
_root.maxSpeed = saveData.data.maxSpeed;
_root.steer_acceleration = saveData.data.steer_acceleration;
_root.brakes = saveData.data.brakes;
_root.acceleration = saveData.data.acceleration;
_root.rocket_number = saveData.data.rocket_number;
_root.lights = saveData.data.lights;
_root.frame = saveData.data.frame;
_root.car_stop = saveData.data.car_stop;
_root.money = saveData.data.money;
_root.backPlanFrame = saveData.data.backPlanFrame;
_root.day_number = saveData.data.day_number;
_root.m = saveData.data.m;
_root.game_complete = saveData.data.game_complete;
_root.survival_mode = saveData.data.survival_mode;
_root.fuel_price = saveData.data.fuel_price;
_root.engine_price = saveData.data.engine_price;
_root.steer_price = saveData.data.steer_price;
_root.brakes_price = saveData.data.brakes_price;
_root.armor_price = saveData.data.armor_price;
_root.food_price = saveData.data.food_price;
_root.rocket_price = saveData.data.rocket_price;
_root.lights_price = saveData.data.lights_price;
_root.achievement_10_miles = saveData.data.achievement_10_miles;
_root.achievement_30_miles = saveData.data.achievement_30_miles;
_root.achievement_50_miles = saveData.data.achievement_50_miles;
_root.achievement_70_miles = saveData.data.achievement_70_miles;
_root.achievement_90_miles = saveData.data.achievement_90_miles;
_root.achievement_1_clear_miles = saveData.data.achievement_1_clear_miles;
_root.achievement_3_clear_miles = saveData.data.achievement_3_clear_miles;
_root.achievement_5_clear_miles = saveData.data.achievement_5_clear_miles;
_root.achievement_7_clear_miles = saveData.data.achievement_7_clear_miles;
_root.achievement_9_clear_miles = saveData.data.achievement_9_clear_miles;
_root.achievement_1_police = saveData.data.achievement_1_police;
_root.achievement_3_police = saveData.data.achievement_3_police;
_root.achievement_5_police = saveData.data.achievement_5_police;
_root.achievement_7_police = saveData.data.achievement_7_police;
_root.achievement_9_police = saveData.data.achievement_9_police;
}
}
movieClip 87 {
}
movieClip 90 {
}
movieClip 91 {
frame 1 {
stop();
}
}
movieClip 92 {
frame 1 {
function wating() {
if (this.playButton.body.hitTest(_root._xmouse, _root._ymouse)) {
this.playButton.gotoAndPlay(2);
}
}
this.playButton.body.onRelease = function () {
_root.gotoAndPlay(2);
};
this.onEnterFrame = wating;
}
}
movieClip 93 smoke_rocket {
#initclip
Object.registerClass('smoke_rocket', smoke_rocket);
#endinitclip
}
movieClip 160 {
frame 34 {
stop();
}
}
movieClip 161 exp {
#initclip
Object.registerClass('exp', exp);
#endinitclip
}
movieClip 162 {
frame 1 {
stop();
}
frame 25 {
stop();
}
}
movieClip 164 shop_mask {
}
movieClip 167 {
}
movieClip 170 {
}
movieClip 171 shop_line {
}
movieClip 172 {
frame 1 {
function loading() {
_root.loading_delay += Math.random() * 10;
bar.mask._xscale = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
bar.flame._x = Math.round((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) * 3;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
this.button._visible = true;
if (this.button._currentframe == 1) {
this.button.gotoAndPlay(2);
}
}
}
_root.stop();
this.button._visible = false;
stop();
this.onEnterFrame = loading;
}
}
movieClip 174 {
}
movieClip 177 {
frame 1 {
this.onRelease = function () {
_root.getURL('http://www.dwarfgames.com/?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=mad_trucker2', 'blank');
};
}
}
movieClip 870 __Packages.mochi.as2.MochiSync {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSync) {
var v1 = function () {
this._syncContainer = {};
};
mochi.as2.MochiSync = v1;
var v2 = v1.prototype;
v2.getProp = function (name) {
return this._syncContainer[name];
};
v2.setProp = function (name, value) {
if (this._syncContainer[name] == value) {
return undefined;
}
this._syncContainer[name] = value;
mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value});
};
v2.triggerEvent = function (eventType, args) {
switch (eventType) {
case mochi.as2.MochiSync.SYNC_REQUEST:
mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer);
break;
case mochi.as2.MochiSync.SYNC_PROPERTY:
this._syncContainer[args.name] = args.value;
}
};
v1.SYNC_REQUEST = 'SyncRequest';
v1.SYNC_PROPERTY = 'UpdateProperty';
ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1);
}
#endinitclip
}
movieClip 871 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.8 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + mochi.as2.MochiServices.getVersion(), mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiSocial.triggerEvent(pkg.event, pkg.args);
break;
case 'sync':
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.updateCopy = function (args) {
mochi.as2.MochiServices.send('coins_updateCopy', args, null, null);
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ['NotConnected']);
}
if (args.options != null && args.options.onError != null) {
args.options.onError.apply(null, ['NotConnected']);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = 'NotConnected';
if (callbackObject != null && typeof callbackMethod == 'string') {
callbackObject[callbackMethod](args);
} else {
if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
case 'b':
case 'c':
break;
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1.servicesSync = new mochi.as2.MochiSync();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 872 __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 873 __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 874 __Packages.mochi.as2.MochiSocial {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSocial) {
var v1 = function () {};
mochi.as2.MochiSocial = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('coins_hideLoginWidget');
};
v1.requestLogin = function () {
mochi.as2.MochiServices.send('coins_requestLogin');
};
v1.getUserInfo = function () {
mochi.as2.MochiServices.send('coins_getUserInfo');
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('coins_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiSocial._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiSocial._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.LOGIN_SHOWN = 'LoginShown';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiSocial.prototype, null, 1);
}
#endinitclip
}
movieClip 875 __Packages.flaming {
#initclip
if (!_global.flaming) {
var v1 = function () {
super();
};
_global.flaming = v1;
_global.flaming extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.pause == true) {
this.stop();
}
if (_root.pause == false) {
this.play();
}
};
ASSetPropFlags(_global.flaming.prototype, null, 1);
}
#endinitclip
}
movieClip 876 __Packages.game_complete {
#initclip
if (!_global.game_complete) {
var v1 = function () {
super();
};
_global.game_complete = v1;
_global.game_complete extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
stopAllSounds();
_root.MenuMusic = new Sound();
_root.MenuMusic.attachSound('main_menu_music');
_root.MenuMusic.setVolume(0);
if (_root.music == true) {
_root.MenuMusic.start(0, 1000);
}
this.volume = 0;
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.menu.menu_button.body.onRelease = function () {
_root.gotoAndPlay('menuFrame');
};
_root.menu.survival_mode.body.onRelease = function () {
_root.survival = true;
_root.gotoAndPlay('gameFrame');
};
_root.menu.days.text = _root.day_number;
};
v2.onEnterFrame = function () {
this.volume += 0.5;
if (this.volume >= 90) {
this.volume = 90;
}
_root.gamePlayMusic.setVolume(this.volume);
};
ASSetPropFlags(_global.game_complete.prototype, null, 1);
}
#endinitclip
}
movieClip 877 __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) {
this.timer += 1;
if (this.timer >= 5) {
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 878 __Packages.exp {
#initclip
if (!_global.exp) {
var v1 = function () {
super();
};
_global.exp = v1;
_global.exp extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.bang = new Sound();
this.random = Math.random();
if (this.random < 0.33) {
this.bang.attachSound('bang01');
}
if (this.random >= 0.33 and this.random < 0.66) {
this.bang.attachSound('bang02');
}
if (this.random > 0.66) {
this.bang.attachSound('bang03');
}
if (_root.sound == true) {
this.bang.start(0, 1);
}
};
v2.onEnterFrame = function () {};
ASSetPropFlags(_global.exp.prototype, null, 1);
}
#endinitclip
}
movieClip 879 __Packages.choice {
#initclip
if (!_global.choice) {
var v1 = function () {
super();
};
_global.choice = v1;
_global.choice extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v2 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.choise_body.yes_button.onRelease = function () {
_root.meters = 0;
_root.fuel = 100;
_root.food = 100;
_root.damage = 100;
_root.maxSpeed = 25;
_root.steer_acceleration = 0.1;
_root.brakes = 2.5;
_root.acceleration = 0.1;
_root.rocket_number = 0;
_root.lights = 1;
_root.frame = 1;
_root.car_stop = 0;
_root.money = 0;
_root.backPlanFrame = 1;
_root.day_number = 0;
_root.m = 0;
_root.game_complete = 0;
_root.survival = false;
_root.survival_mode = false;
_root.fuel_price = 100;
_root.engine_price = 1000;
_root.steer_price = 200;
_root.brakes_price = 100;
_root.armor_price = 100;
_root.food_price = 100;
_root.rocket_price = 500;
_root.lights_price = 500;
_root.achievement_10_miles = 0;
_root.achievement_30_miles = 0;
_root.achievement_50_miles = 0;
_root.achievement_70_miles = 0;
_root.achievement_90_miles = 0;
_root.achievement_1_clear_miles = 0;
_root.achievement_3_clear_miles = 0;
_root.achievement_5_clear_miles = 0;
_root.achievement_7_clear_miles = 0;
_root.achievement_9_clear_miles = 0;
_root.achievement_1_police = 0;
_root.achievement_3_police = 0;
_root.achievement_5_police = 0;
_root.achievement_7_police = 0;
_root.achievement_9_police = 0;
_root.shop_body.flame_10_miles._visible = false;
_root.shop_body.flame_30_miles._visible = false;
_root.shop_body.flame_50_miles._visible = false;
_root.shop_body.flame_70_miles._visible = false;
_root.shop_body.flame_90_miles._visible = false;
_root.shop_body.flame_1_miles._visible = false;
_root.shop_body.flame_3_miles._visible = false;
_root.shop_body.flame_5_miles._visible = false;
_root.shop_body.flame_7_miles._visible = false;
_root.shop_body.flame_9_miles._visible = false;
_root.shop_body.flame_1_cars._visible = false;
_root.shop_body.flame_3_cars._visible = false;
_root.shop_body.flame_5_cars._visible = false;
_root.shop_body.flame_7_cars._visible = false;
_root.shop_body.flame_9_cars._visible = false;
_root.gotoAndStop('shopFrame');
};
_root.choise_body.no_button.onRelease = function () {
_root.gotoAndStop('shopFrame');
};
};
ASSetPropFlags(_global.choice.prototype, null, 1);
}
#endinitclip
}
movieClip 880 __Packages.achievement {
#initclip
if (!_global.achievement) {
var v1 = function () {
super();
};
_global.achievement = v1;
_global.achievement extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (this._currentframe == this._totalframes or _root._currentframe == 5) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.achievement.prototype, null, 1);
}
#endinitclip
}
movieClip 881 __Packages.smoke_car {
#initclip
if (!_global.smoke_car) {
var v1 = function () {
super();
};
_global.smoke_car = v1;
_global.smoke_car extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.timer = 4;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.timer += 1;
if (this.timer >= 15) {
this.timer = 0;
this.smoke_flake = this.attachMovie('smoke_flake_car', 'smoke_flake_car' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
}
};
ASSetPropFlags(_global.smoke_car.prototype, null, 1);
}
#endinitclip
}
movieClip 882 __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.explosion = true;
this.frame = Math.floor(Math.random() * 15);
this.car_engine = new Sound();
this.car_engine.attachSound('car_engine_long');
this.random = 0;
this.police = new Sound();
this.police.attachSound('police');
this.gotoAndPlay(this.frame);
this.hit = false;
this.yspeed = 0;
this.xspeed = 0;
this.dead = false;
this.light = true;
this.delta = 0;
this.car_stop = 0;
this.sound = false;
this.police_sound = false;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (_root.car_stop > 0) {
this.car_stop = _root.car_stop;
}
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y >= 400 and this.sound == false and this.yspeed >= _root.maxSpeed / 4 and this.hit == false and _root.sound == true) {
this.sound = true;
this.car_engine.start();
}
if (this.aPoint.y >= -50 and this.police_sound == false and (this.frame == 7 or this.frame == 8) and _root.sound == true) {
this.police_sound = true;
this.police.start();
}
if (this.delta == 0) {
this.delta = 1;
if (this._x == 60) {
this.yspeedMax = _root.maxSpeed / 1.6;
this.yspeed = _root.maxSpeed / 1.6;
} else {
this.yspeedMax = _root.maxSpeed / 1.4;
this.yspeed = _root.maxSpeed / 1.4;
}
}
this._y -= this.yspeed;
if (this.yspeed == this.yspeedMax) {
this.light = true;
}
if (this.yspeed == 0) {
this.light = false;
this.car_stop = 0;
}
if (this.yspeed < this.yspeedMax and this.light == true or this.yspeed == 0) {
this.stop_01.gotoAndStop(2);
this.stop_02.gotoAndStop(2);
} else {
this.stop_01.gotoAndStop(1);
this.stop_02.gotoAndStop(1);
}
if (this.dead == false) {
this.yspeed += _root.maxSpeed / 200;
}
if (this.yspeed >= this.yspeedMax and this.dead == false) {
this.yspeed = this.yspeedMax;
}
this.yspeed -= this.car_stop;
if (this.header.hitTest(_root.gamePlay.Truck.footer)) {
this.yspeed -= _root.maxSpeed / 30;
}
if (this.header.hitTest(_root.gamePlay.backPlan.cross.red_forward) or this.header.hitTest(_root.gamePlay.backPlanTop.cross.red_forward)) {
this.yspeed -= _root.maxSpeed / 38;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
for (var v3 in _root.gamePlay.car_massive_following) {
if (this.header.hitTest(_root.gamePlay.car_massive_following[v3].footer)) {
this.yspeed -= _root.maxSpeed / 55;
}
if (this.right.hitTest(_root.gamePlay.car_massive_following[v3].left)) {
if (this.dead == false) {
this.xspeed = Math.random() * 10 + 15;
this.yspeed += Math.random() * 10 + 15;
this.side = 'left';
trace(this.aPoint.x);
this.dead = true;
this.smoke._visible = false;
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.smoke._visible = false;
if (this.explosion == true) {
var v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
}
}
if (this.left.hitTest(_root.gamePlay.car_massive_following[v3].right)) {
if (this.dead == false) {
this.xspeed = Math.random() * 10 + 15;
this.yspeed += Math.random() * 10 + 15;
this.side = 'right';
trace(this.aPoint.x);
this.dead = true;
this.smoke._visible = false;
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.smoke._visible = false;
if (this.explosion == true) {
v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
}
}
}
if (this.yspeed <= 0) {
this.yspeed = 0;
}
for (v3 in _root.gamePlay.car_massive_counter) {
if (this.carbody.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
if (this.dead == true and this.yspeed < _root.maxSpeed / 1.6) {
this.dead = false;
}
if (this.dead == false) {
this.xspeed = Math.random() * 10 + 10;
this.yspeed += Math.random() * 10 + 10;
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
trace(this.aPoint.x);
this.dead = true;
this.smoke._visible = false;
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
}
}
if (this.header.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
this.yspeed -= _root.maxSpeed / 50;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
if (this.header.hitTest(_root.gamePlay.backPlan.right) or this.header.hitTest(_root.gamePlay.backPlanTop.right)) {
this.yspeed -= _root.maxSpeed / 55;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
if (this.header.hitTest(_root.gamePlay.backPlan.walk.body) and _root.gamePlay.backPlan.walk.hit == true or this.header.hitTest(_root.gamePlay.backPlanTop.walk.body) and _root.gamePlay.backPlanTop.walk.hit == true) {
this.yspeed -= _root.maxSpeed / 35;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
if (this.aPoint.y > 800) {
_root.remover += 1;
this.removeMovieClip();
}
if (this.aPoint.y < -4500) {
_root.remover += 1;
this.removeMovieClip();
}
if (this.carbody.hitTest(_root.gamePlay.Truck.Body)) {
if (this.dead == true and this.yspeed < _root.maxSpeed / 1.6) {
this.dead = false;
this.bang = new Sound();
this.random = Math.random();
if (this.random < 0.33) {
this.bang.attachSound('bang01');
}
if (this.random >= 0.33 and this.random < 0.66) {
this.bang.attachSound('bang02');
}
if (this.random > 0.66) {
this.bang.attachSound('bang03');
}
if (_root.sound == true) {
this.bang.start(0, 1);
}
}
if (this.dead == false) {
_root.clear_meters = 0;
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.xspeed = _root.yspeed / 2;
this.yspeed += _root.yspeed / 1.5;
if (this.yspeed < 10) {
this.yspeed = _root.maxSpeed / 2.5;
}
if (this.xspeed < 10) {
this.xspeed = _root.maxSpeed / 2;
}
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
trace(this.aPoint.x);
this.dead = true;
this.smoke._visible = false;
if (this.explosion == true) {
v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
_root.gamePlay.car_damage();
}
}
if (this.dead == true) {
if (this.carbody.hitTest(_root.gamePlay.backPlan.stop_right) or this.carbody.hitTest(_root.gamePlay.backPlanTop.stop_right) or this.carbody.hitTest(_root.gamePlay.backPlan.stop_left) or this.carbody.hitTest(_root.gamePlay.backPlanTop.stop_left)) {
this._xscale -= 2;
this._yscale -= 2;
this._alpha -= 2;
}
if (this.side == 'right') {
this._x += this.xspeed;
this._rotation += this.xspeed / (Math.random() * 2 + 2);
}
if (this.side == 'left') {
this._x -= this.xspeed;
this._rotation -= this.xspeed / (Math.random() * 2 + 2);
}
this.xspeed -= _root.maxSpeed / 30;
this.yspeed -= _root.maxSpeed / 30;
if (this.xspeed <= 0) {
this.xspeed = 0;
}
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
};
v2.rocket_contact = function () {
if (this.dead == false) {
this._xscale += 10;
this._yscale += 10;
this.xspeed = Math.random() * 10 + 10;
this.yspeed += Math.random() * 10 + 10;
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.dead = true;
this.smoke._visible = false;
if (this.explosion == true) {
var v3 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
}
};
ASSetPropFlags(_global.car.prototype, null, 1);
}
#endinitclip
}
movieClip 883 __Packages.car_cross {
#initclip
if (!_global.car_cross) {
var v1 = function () {
super();
};
_global.car_cross = v1;
_global.car_cross extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.frame = Math.floor(Math.random() * 15);
this.explosion = true;
this.gotoAndPlay(this.frame);
this.hit = false;
this.yspeed = 0;
this.xspeed = 0;
this.dead = false;
this.light = true;
this.delta = 0;
this.car_stop = 0;
this.yspeedMax = _root.maxSpeed / 2.25;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (_root.car_stop > 0) {
this.car_stop = _root.car_stop;
}
if (this.dead == false) {
this._y -= this.yspeed;
this.yspeed += 0.25;
}
if (this.dead == true and this.side == 'right') {
this._y += this.yspeed;
this.yspeed -= _root.maxSpeed / 20;
}
if (this.dead == true and this.side == 'left') {
this._y -= this.yspeed;
this.yspeed -= _root.maxSpeed / 20;
}
if (this.yspeed == this.yspeedMax) {
this.light = true;
}
if (this.yspeed == 0) {
this.light = false;
this.car_stop = 0;
}
if (this.yspeed < this.yspeedMax and this.light == true or this.yspeed == 0) {
this.stop_01.gotoAndStop(2);
this.stop_02.gotoAndStop(2);
} else {
this.stop_01.gotoAndStop(1);
this.stop_02.gotoAndStop(1);
}
if (this.dead == false) {
this.yspeed += _root.maxSpeed / 200;
}
if (this.yspeed >= this.yspeedMax and this.dead == false) {
this.yspeed = this.yspeedMax;
}
this.yspeed -= this.car_stop;
if (this.header.hitTest(_root.gamePlay.Truck.Body)) {
this.yspeed -= _root.maxSpeed / 35;
}
if (this.yspeed <= 0) {
this.yspeed = 0;
}
for (var v3 in _root.gamePlay.car_massive_counter) {
if (this.carbody.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
if (this.dead == true and this.yspeed < _root.maxSpeed / 1.6) {
this.dead = false;
}
if (this.dead == false) {
this.xspeed = Math.random() * 15 + 10;
this.yspeed += Math.random() * 10 + 10;
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
this.dead = true;
this.smoke._visible = false;
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
var v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
}
if (this.header.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
this.yspeed -= _root.maxSpeed / 50;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
for (v3 in _root.gamePlay.car_massive_following) {
if (this.carbody.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
if (this.dead == true and this.yspeed < _root.maxSpeed / 1.6) {
this.dead = false;
}
if (this.dead == false) {
this.xspeed = Math.random() * 15 + 10;
this.yspeed += Math.random() * 10 + 10;
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
this.dead = true;
this.smoke._visible = false;
if (this.frame == 4 and this.hit == false) {
_root.police += 1;
}
this.hit = true;
if (this.explosion == true) {
v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
}
}
if (this.header.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
this.yspeed -= _root.maxSpeed / 50;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
if (this.carbody.hitTest(_root.gamePlay.Truck.Body)) {
if (this.dead == true and this.yspeed < _root.maxSpeed / 1.6) {
this.dead = false;
}
if (this.dead == false) {
_root.clear_meters = 0;
if (this.frame == 4 and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.xspeed = Math.random() * 25 + 15;
this.yspeed += Math.random() * 5 + 10;
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
this.dead = true;
this.smoke._visible = false;
if (this.explosion == true) {
v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
_root.gamePlay.car_damage();
}
}
if (this.dead == true) {
this._x += this.xspeed;
this._rotation += this.xspeed / (Math.random() * 2 + 2);
this.xspeed -= _root.maxSpeed / 25;
this.yspeed -= _root.maxSpeed / 25;
if (this.xspeed <= 0) {
this.xspeed = 0;
}
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
};
v2.rocket_contact = function () {
if (this.dead == false) {
this._xscale += 10;
this._yscale += 10;
this.xspeed = Math.random() * 5 + 10;
this.yspeed += Math.random() * 5 + 10;
this.side = 'right';
if ((this.frame == 7 or this.frame == 8) and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.dead = true;
this.smoke._visible = false;
if (this.explosion == true) {
var v3 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
}
};
ASSetPropFlags(_global.car_cross.prototype, null, 1);
}
#endinitclip
}
movieClip 884 __Packages.car_counter {
#initclip
if (!_global.car_counter) {
var v1 = function () {
super();
};
_global.car_counter = v1;
_global.car_counter extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.random = 0;
this.explosion = true;
this.car_engine = new Sound();
this.car_engine.attachSound('car_engine');
this.frame = Math.floor(Math.random() * 15);
this.gotoAndPlay(this.frame);
this.yspeedMax = _root.maxSpeed / 2.5;
this.yspeed = this.yspeedMax;
this.xspeed = 0;
this.dead = false;
this.hit = false;
this.sound = false;
this.police_sound = false;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
if (this.aPoint.y >= 0 and this.police_sound == false and this.frame == 4 and _root.sound == true) {
this.police_sound = true;
this.police = new Sound();
this.police.attachSound('police');
this.police.start();
}
if (this.aPoint.y >= 0 and this.sound == false and this.yspeed >= _root.maxSpeed / 4 and this.hit == false and _root.sound == true) {
this.sound = true;
this.car_engine.start();
}
if (this.aPoint.y >= 800) {
_root.remover_counter += 1;
this.removeMovieClip();
}
if (this.dead == false) {
this._y += this.yspeed;
this.yspeed += 0.25;
}
if (this.dead == true) {
this._y -= this.yspeed;
this.yspeed -= _root.maxSpeed / 20;
}
if (this.yspeed >= this.yspeedMax and this.dead == false) {
this.yspeed = this.yspeedMax;
}
if (this.yspeed <= 0) {
this.yspeed = 0;
}
if (this.header.hitTest(_root.gamePlay.Truck.Body)) {
this.yspeed -= _root.maxSpeed / 30;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
if (this.header.hitTest(_root.gamePlay.backPlan.cross.red_counter) or this.header.hitTest(_root.gamePlay.backPlanTop.cross.red_counter)) {
this.yspeed -= _root.maxSpeed / 50;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
for (var v3 in _root.gamePlay.car_massive_counter) {
if (this.header.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
this.yspeed -= _root.maxSpeed / 30;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
if (this.header.hitTest(_root.gamePlay.backPlan.walk.body_counter) and _root.gamePlay.backPlan.walk.hit == true or this.header.hitTest(_root.gamePlay.backPlanTop.walk.body_counter) and _root.gamePlay.backPlanTop.walk.hit == true) {
this.yspeed -= _root.maxSpeed / 50;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
for (v3 in _root.gamePlay.car_massive_following) {
if (this.carbody.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
if (this.dead == true and this.yspeed < _root.maxSpeed / 1.6) {
this.dead = false;
}
if (this.dead == false) {
this.xspeed = Math.random() * 10 + 10;
this.yspeed += Math.random() * 10 + 10;
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
if (this.frame == 4 and this.hit == false) {
_root.police += 1;
}
if (this.explosion == true) {
var v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
this.hit = true;
this.dead = true;
}
}
if (this.header.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
this.yspeed -= _root.maxSpeed / 35;
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
if (this.carbody.hitTest(_root.gamePlay.Truck.Body)) {
if (this.dead == true and this.yspeed == 0) {
this.dead = false;
this.bang = new Sound();
this.random = Math.random();
if (this.random < 0.33) {
this.bang.attachSound('bang01');
}
if (this.random >= 0.33 and this.random < 0.66) {
this.bang.attachSound('bang02');
}
if (this.random > 0.66) {
this.bang.attachSound('bang03');
}
if (_root.sound == true) {
this.bang.start(0, 1);
}
}
if (this.dead == false) {
_root.clear_meters = 0;
this.xspeed = _root.yspeed / 1.4;
this.yspeed += _root.yspeed;
if (this.yspeed < 10) {
this.yspeed = _root.maxSpeed / 2;
}
if (this.xspeed < 10) {
this.xspeed = _root.maxSpeed / 2;
}
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
if (this.frame == 4 and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.dead = true;
if (this.explosion == true) {
v4 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
_root.gamePlay.car_damage();
}
}
if (this.dead == true) {
if (this.side == 'right') {
this._x += this.xspeed;
this._rotation += this.xspeed / (Math.random() * 2 + 1);
}
if (this.side == 'left') {
this._x -= this.xspeed;
this._rotation -= this.xspeed / (Math.random() * 2 + 1);
}
this.xspeed -= _root.maxSpeed / 25;
if (this.xspeed <= 0) {
this.xspeed = 0;
}
if (this.yspeed <= 0) {
this.yspeed = 0;
}
}
}
};
v2.rocket_contact = function () {
if (this.dead == false) {
this._xscale += 10;
this._yscale += 10;
this.xspeed = Math.random() * 10 + 10;
this.yspeed += Math.random() * 10 + 10;
if (this.yspeed < 10) {
this.yspeed = _root.maxSpeed / 2;
}
if (this.xspeed < 10) {
this.xspeed = _root.maxSpeed / 2;
}
if (this.aPoint.x >= _root.gamePlay._x) {
this.side = 'right';
}
if (this.aPoint.x < _root.gamePlay._x) {
this.side = 'left';
}
if (this.frame == 4 and this.hit == false) {
_root.police += 1;
}
this.hit = true;
this.dead = true;
if (this.explosion == true) {
var v3 = this.attachMovie('exp', 'exp' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.explosion = false;
}
}
};
ASSetPropFlags(_global.car_counter.prototype, null, 1);
}
#endinitclip
}
movieClip 885 __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;
this._x += (Math.random() * 2 - 1) * Math.sin(this.sin);
this.sin += 0.25;
this._xscale -= 0.25;
this._yscale -= 0.25;
this._alpha -= 0.1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (this._xscale <= 0) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.smoke_flake_rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 886 __Packages.smoke_flake_car {
#initclip
if (!_global.smoke_flake_car) {
var v1 = function () {
super();
};
_global.smoke_flake_car = v1;
_global.smoke_flake_car extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.sin = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this._y += 0.5;
this._x += (Math.random() * 2 - 1) * Math.sin(this.sin);
this.sin += 0.25;
this._xscale -= 0.5;
this._yscale -= 0.5;
this._alpha -= 1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (this._xscale <= 0) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.smoke_flake_car.prototype, null, 1);
}
#endinitclip
}
movieClip 887 __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._y += 1;
this._x += (Math.random() * 2 - 1) * Math.sin(this.sin);
this.sin += 0.25;
this._xscale -= 0.25;
this._yscale -= 0.25;
this._alpha -= 0.1;
if (this._alpha <= 0) {
this.removeMovieClip();
}
if (this._xscale <= 0) {
this.removeMovieClip();
}
}
};
ASSetPropFlags(_global.smoke_flake.prototype, null, 1);
}
#endinitclip
}
movieClip 888 __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) {
this.timer += 1;
if (this.timer >= 5 and _root.UP == true) {
this.timer = 0;
this.smoke_flake = this.attachMovie('smoke_flake', 'smoke_flake' + this.getNextHighestDepth(), this.getNextHighestDepth());
}
}
};
ASSetPropFlags(_global.smoke.prototype, null, 1);
}
#endinitclip
}
movieClip 889 __Packages.rocket {
#initclip
if (!_global.rocket) {
var v1 = function () {
super();
};
_global.rocket = v1;
_global.rocket extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
_root.soundFX = new Sound();
this.body = this.attachMovie('rocket_body', 'rocket_body' + this.getNextHighestDepth(), this.getNextHighestDepth());
this.body._y = -15;
this.body._x = -5;
this.speed = _root.maxSpeed + 10;
this.sin = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.aPoint = new flash.geom.Point(0, 0);
this.localToGlobal(this.aPoint);
this._y -= this.speed;
this._x += Math.sin(this.sin);
this.sin += 0.25;
if (this.aPoint.y <= -250) {
this.removeMovieClip();
}
for (var v3 in _root.gamePlay.car_massive_counter) {
if (this.body.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
_root.gamePlay.car_massive_following[v3].rocket_contact();
_root.soundFX.attachSound('explosion');
_root.gamePlay.car_massive_counter[v3].rocket_contact();
this.removeMovieClip();
}
}
for (v3 in _root.gamePlay.car_massive_following) {
if (this.body.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
_root.gamePlay.car_massive_following[v3].rocket_contact();
_root.soundFX.attachSound('explosion');
_root.soundFX.start();
this.removeMovieClip();
}
}
}
};
ASSetPropFlags(_global.rocket.prototype, null, 1);
}
#endinitclip
}
movieClip 890 __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 () {
this.alpha -= 2;
this._alpha = this.alpha;
if (this.alpha == 0) {
this.removeMovieClip();
}
};
ASSetPropFlags(_global.fader.prototype, null, 1);
}
#endinitclip
}
movieClip 891 __Packages.survival_complete {
#initclip
if (!_global.survival_complete) {
var v1 = function () {
super();
};
_global.survival_complete = v1;
_global.survival_complete extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
stopAllSounds();
_root.MenuMusic = new Sound();
_root.MenuMusic.attachSound('main_menu_music');
_root.MenuMusic.setVolume(0);
if (_root.music == true) {
_root.MenuMusic.start(0, 1000);
}
this.volume = 0;
var v5 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.menu.menu_button.body.onRelease = function () {
_root.gotoAndPlay('menuFrame');
};
_root.menu.submit_button.body.onRelease = function () {
var v3 = {'n': [6, 7, 6, 13, 1, 1, 4, 11, 12, 3, 7, 12, 1, 3, 13, 3], '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, '676d114bc37c13d3');
mochi.as2.MochiScores.showLeaderboard({'boardID': v4, 'score': Math.floor(_root.survival_meters)});
};
_root.menu.miles.text = Math.floor(_root.survival_meters);
};
v2.onEnterFrame = function () {
this.volume += 0.5;
if (this.volume >= 90) {
this.volume = 90;
}
_root.gamePlayMusic.setVolume(this.volume);
};
ASSetPropFlags(_global.survival_complete.prototype, null, 1);
}
#endinitclip
}
movieClip 892 __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 893 __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 894 __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 () {
stopAllSounds();
_root.menu.survival_hint._visible = false;
_root.MenuMusic = new Sound();
_root.MenuMusic.attachSound('main_menu_music');
_root.MenuMusic.setVolume(0);
if (_root.music == true) {
_root.MenuMusic.start(0, 1000);
}
this.volume = 0;
if (_root.survival_mode == true) {
_root.menu.survival_locked._visible = false;
}
if (_root.survival_mode == false) {
_root.menu.survival_locked._visible = true;
}
if (_root.survival_mode == false) {
_root.menu.survival_button._visible = false;
}
if (_root.survival_mode == true) {
_root.menu.survival_button._visible = true;
}
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.menu.play_button.body.onRelease = function () {
_root.survival = false;
if (_root.day_number == 0) {
_root.gotoAndPlay('gameFrame');
} else {
_root.gotoAndPlay('shopFrame');
}
};
_root.menu.credits_button.body.onRelease = function () {
_root.gotoAndPlay('creditsFrame');
};
_root.menu.survival_locked.body.onRelease = function () {};
_root.menu.tutorial_button.body.onRelease = function () {
_root.gotoAndPlay('tutorialFrame');
};
_root.menu.more_games_button.body.onRelease = function () {
_root.getURL('http://www.dwarfgames.com/?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=mad_trucker2', 'blank');
};
_root.menu.survival_button.body.onRelease = function () {
_root.survival = true;
_root.gotoAndPlay('gameFrame');
};
};
v2.onEnterFrame = function () {
this.volume += 0.5;
if (this.volume >= 90) {
this.volume = 90;
}
_root.MenuMusic.setVolume(this.volume);
if (_root.menu.play_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.menu.play_button.gotoAndPlay(2);
}
if (_root.menu.survival_locked.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.menu.survival_hint._visible = true;
_root.menu.survival_locked.gotoAndPlay(2);
} else {
_root.menu.survival_hint._visible = false;
}
if (_root.survival_mode == true) {
_root.menu.survival_hint._visible = false;
}
if (_root.menu.survival_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.menu.survival_button.gotoAndPlay(2);
}
if (_root.menu.credits_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.menu.credits_button.gotoAndPlay(2);
}
if (_root.menu.tutorial_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.menu.tutorial_button.gotoAndPlay(2);
}
if (_root.menu.more_games_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.menu.more_games_button.gotoAndPlay(2);
}
};
ASSetPropFlags(_global.main_menu.prototype, null, 1);
}
#endinitclip
}
movieClip 895 __Packages.credits {
#initclip
if (!_global.credits) {
var v1 = function () {
super();
};
_global.credits = v1;
_global.credits extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v2 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.credits_body.menu_button.body.onRelease = function () {
_root.gotoAndPlay('menuFrame');
};
};
v2.onEnterFrame = function () {
if (_root.credits_body.menu_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.credits_body.menu_button.gotoAndPlay(2);
}
};
ASSetPropFlags(_global.credits.prototype, null, 1);
}
#endinitclip
}
movieClip 896 __Packages.tutorial {
#initclip
if (!_global.tutorial) {
var v1 = function () {
super();
};
_global.tutorial = v1;
_global.tutorial extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
var v2 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.tutorial_body.menu_button.body.onRelease = function () {
_root.gotoAndPlay('menuFrame');
};
_root.tutorial_body.tutorial_ingame.next.onRelease = function () {
var v2 = _root.attachMovie('tutorial_fader', 'tutorial_fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v2._x = 120;
v2._y = 140;
if (_root.tutorial_body.tutorial_ingame._currentframe == _root.tutorial_body.tutorial_ingame._totalframes) {
_root.tutorial_body.tutorial_ingame.gotoAndStop(1);
} else {
_root.tutorial_body.tutorial_ingame.gotoAndStop(_root.tutorial_body.tutorial_ingame._currentframe + 1);
}
};
};
v2.onEnterFrame = function () {
if (_root.tutorial_body.menu_button.body.hitTest(_root._xmouse, _root._ymouse)) {
_root.tutorial_body.menu_button.gotoAndPlay(2);
}
};
ASSetPropFlags(_global.tutorial.prototype, null, 1);
}
#endinitclip
}
movieClip 897 __Packages.shop {
#initclip
if (!_global.shop) {
var v1 = function () {
super();
};
_global.shop = v1;
_global.shop extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
stopAllSounds();
_root.ShopMusic = new Sound();
_root.ShopMusic.attachSound('main_menu_music');
_root.ShopMusic.setVolume(0);
if (_root.music == true) {
_root.ShopMusic.start(0, 1000);
}
this.volume = 0;
_root.button_sound = new Sound();
_root.button_sound.attachSound('button_sound');
_root.money = Math.round(_root.money);
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.shop_body.playButton.onRelease = function () {
_root.survival = false;
_root.gotoAndPlay('gameFrame');
};
_root.shop_body.menuButton.onRelease = function () {
_root.gotoAndPlay('menuFrame');
};
_root.shop_body.clearButton.onRelease = function () {
_root.gotoAndStop('choiceFrame');
};
_root.shop_body.plus_fuel.plus.onRelease = function () {
if (_root.money >= _root.fuel_price) {
if (_root.fuel < 300) {
_root.fuel += 20;
_root.money -= _root.fuel_price;
_root.fuel_price += 100;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.fuel >= 300) {
_root.fuel_price = 9999999;
}
}
};
_root.shop_body.plus_engine.plus.onRelease = function () {
if (_root.money >= _root.engine_price) {
if (_root.maxSpeed < 45) {
_root.maxSpeed += 5;
_root.money -= _root.engine_price;
_root.engine_price += 2000;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.acceleration < 0.2) {
_root.acceleration += 0.025;
}
if (_root.maxSpeed >= 45) {
_root.engine_price = 9999999;
}
}
};
_root.shop_body.plus_steer.plus.onRelease = function () {
if (_root.money >= _root.steer_price) {
if (_root.steer_acceleration < 0.2) {
_root.steer_acceleration += 0.0125;
_root.money -= _root.steer_price;
_root.steer_price += 200;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.steer_acceleration >= 0.2) {
_root.steer_price = 9999999;
}
}
};
_root.shop_body.plus_brakes.plus.onRelease = function () {
if (_root.money >= _root.brakes_price) {
if (_root.brakes < 5) {
_root.brakes += 0.25;
_root.money -= _root.brakes_price;
_root.brakes_price += 100;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.brakes >= 5) {
_root.brakes_price = 9999999;
}
}
};
_root.shop_body.plus_armor.plus.onRelease = function () {
if (_root.money >= _root.armor_price) {
if (_root.damage < 300) {
_root.damage += 20;
_root.money -= _root.armor_price;
_root.armor_price += 100;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.damage >= 300) {
_root.armor_price = 9999999;
}
}
};
_root.shop_body.plus_food.plus.onRelease = function () {
if (_root.money >= _root.food_price) {
if (_root.food < 300) {
_root.food += 20;
_root.money -= _root.food_price;
_root.food_price += 100;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.food >= 300) {
_root.food_price = 9999999;
}
}
};
_root.shop_body.plus_rocket.plus.onRelease = function () {
if (_root.money >= _root.rocket_price) {
if (_root.rocket_number < 10) {
_root.rocket_number += 1;
_root.money -= _root.rocket_price;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.rocket_number >= 10) {
_root.rocket_price = 9999999;
}
}
};
_root.shop_body.plus_lights.plus.onRelease = function () {
if (_root.money >= _root.lights_price) {
if (_root.lights < 5) {
_root.lights += 1;
_root.money -= _root.lights_price;
_root.lights_price += 500;
if (_root.sound == true) {
_root.button_sound.start();
}
}
if (_root.lights >= 5) {
_root.lights_price = 9999999;
}
}
};
if (_root.achievement_10_miles >= 1) {
_root.shop_body.flame_10_miles._visible = true;
} else {
_root.shop_body.flame_10_miles._visible = false;
}
if (_root.achievement_30_miles >= 1) {
_root.shop_body.flame_30_miles._visible = true;
} else {
_root.shop_body.flame_30_miles._visible = false;
}
if (_root.achievement_50_miles >= 1) {
_root.shop_body.flame_50_miles._visible = true;
} else {
_root.shop_body.flame_50_miles._visible = false;
}
if (_root.achievement_70_miles >= 1) {
_root.shop_body.flame_70_miles._visible = true;
} else {
_root.shop_body.flame_70_miles._visible = false;
}
if (_root.achievement_90_miles >= 1) {
_root.shop_body.flame_90_miles._visible = true;
} else {
_root.shop_body.flame_90_miles._visible = false;
}
if (_root.achievement_1_clear_miles >= 1) {
_root.shop_body.flame_1_miles._visible = true;
} else {
_root.shop_body.flame_1_miles._visible = false;
}
if (_root.achievement_3_clear_miles >= 1) {
_root.shop_body.flame_3_miles._visible = true;
} else {
_root.shop_body.flame_3_miles._visible = false;
}
if (_root.achievement_5_clear_miles >= 1) {
_root.shop_body.flame_5_miles._visible = true;
} else {
_root.shop_body.flame_5_miles._visible = false;
}
if (_root.achievement_7_clear_miles >= 1) {
_root.shop_body.flame_7_miles._visible = true;
} else {
_root.shop_body.flame_7_miles._visible = false;
}
if (_root.achievement_9_clear_miles >= 1) {
_root.shop_body.flame_9_miles._visible = true;
} else {
_root.shop_body.flame_9_miles._visible = false;
}
if (_root.achievement_1_police >= 1) {
_root.shop_body.flame_1_cars._visible = true;
} else {
_root.shop_body.flame_1_cars._visible = false;
}
if (_root.achievement_3_police >= 1) {
_root.shop_body.flame_3_cars._visible = true;
} else {
_root.shop_body.flame_3_cars._visible = false;
}
if (_root.achievement_5_police >= 1) {
_root.shop_body.flame_5_cars._visible = true;
} else {
_root.shop_body.flame_5_cars._visible = false;
}
if (_root.achievement_7_police >= 1) {
_root.shop_body.flame_7_cars._visible = true;
} else {
_root.shop_body.flame_7_cars._visible = false;
}
if (_root.achievement_9_police >= 1) {
_root.shop_body.flame_9_cars._visible = true;
} else {
_root.shop_body.flame_9_cars._visible = false;
}
};
v2.onEnterFrame = function () {
this.volume += 0.5;
if (this.volume >= 90) {
this.volume = 90;
}
_root.ShopMusic.setVolume(this.volume);
_root.shop_body.fuel_hint.fuel_price.text = _root.fuel_price;
_root.shop_body.engine_hint.engine_price.text = _root.engine_price;
_root.shop_body.armor_hint.armor_price.text = _root.armor_price;
_root.shop_body.steer_hint.steer_price.text = _root.steer_price;
_root.shop_body.brakes_hint.brakes_price.text = _root.brakes_price;
_root.shop_body.food_hint.food_price.text = _root.food_price;
_root.shop_body.rocket_hint.rocket_price.text = _root.rocket_price;
_root.shop_body.lights_hint.lights_price.text = _root.lights_price;
if (_root.shop_body.plus_fuel.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.fuel_hint._visible = true;
} else {
_root.shop_body.fuel_hint._visible = false;
}
if (_root.shop_body.plus_engine.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.engine_hint._visible = true;
} else {
_root.shop_body.engine_hint._visible = false;
}
if (_root.shop_body.plus_armor.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.armor_hint._visible = true;
} else {
_root.shop_body.armor_hint._visible = false;
}
if (_root.shop_body.plus_steer.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.steer_hint._visible = true;
} else {
_root.shop_body.steer_hint._visible = false;
}
if (_root.shop_body.plus_brakes.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.brakes_hint._visible = true;
} else {
_root.shop_body.brakes_hint._visible = false;
}
if (_root.shop_body.plus_food.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.food_hint._visible = true;
} else {
_root.shop_body.food_hint._visible = false;
}
if (_root.shop_body.plus_rocket.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.rocket_hint._visible = true;
} else {
_root.shop_body.rocket_hint._visible = false;
}
if (_root.shop_body.plus_lights.plus.hitTest(_root._xmouse, _root._ymouse)) {
_root.shop_body.lights_hint._visible = true;
} else {
_root.shop_body.lights_hint._visible = false;
}
_root.shop_body.money.text = _root.money;
_root.shop_body.line_fuel.mask._xscale = (_root.fuel - 100) * 100 / 200;
_root.shop_body.line_fuel.flame._x = ((_root.fuel - 100) * 100 / 200) * 3;
_root.shop_body.line_engine.mask._xscale = (_root.maxSpeed - 25) * 100 / 20;
_root.shop_body.line_engine.flame._x = ((_root.maxSpeed - 25) * 100 / 20) * 3;
_root.shop_body.line_steer.mask._xscale = (_root.steer_acceleration - 0.1) * 100 / 0.1;
_root.shop_body.line_steer.flame._x = ((_root.steer_acceleration - 0.1) * 100 / 0.1) * 3;
_root.shop_body.line_brakes.mask._xscale = (_root.brakes - 2.5) * 100 / 2.5;
_root.shop_body.line_brakes.flame._x = ((_root.brakes - 2.5) * 100 / 2.5) * 3;
_root.shop_body.line_armor.mask._xscale = (_root.damage - 100) * 100 / 200;
_root.shop_body.line_armor.flame._x = ((_root.damage - 100) * 100 / 200) * 3;
_root.shop_body.line_food.mask._xscale = (_root.food - 100) * 100 / 200;
_root.shop_body.line_food.flame._x = ((_root.food - 100) * 100 / 200) * 3;
_root.shop_body.line_rocket.mask._xscale = _root.rocket_number * 10;
_root.shop_body.line_rocket.flame._x = _root.rocket_number * 10 * 3;
_root.shop_body.line_lights.mask._xscale = (_root.lights - 1) * 25;
_root.shop_body.line_lights.flame._x = (_root.lights - 1) * 25 * 3;
if (_root.fuel >= 300) {
_root.shop_body.fuel_hint.gotoAndStop(2);
}
if (_root.maxSpeed >= 45) {
_root.shop_body.engine_hint.gotoAndStop(2);
}
if (_root.brakes >= 5) {
_root.shop_body.brakes_hint.gotoAndStop(2);
}
if (_root.damage >= 300) {
_root.shop_body.armor_hint.gotoAndStop(2);
}
if (_root.food >= 300) {
_root.shop_body.food_hint.gotoAndStop(2);
}
if (_root.rocket_number >= 10) {
_root.shop_body.rocket_hint.gotoAndStop(2);
}
if (_root.lights >= 5) {
_root.shop_body.lights_hint.gotoAndStop(2);
}
if (_root.steer_acceleration >= 0.2) {
_root.shop_body.steer_hint.gotoAndStop(2);
}
if (_root.money >= _root.fuel_price) {
_root.shop_body.plus_fuel.flame._visible = true;
_root.shop_body.fuel_flame._visible = true;
} else {
_root.shop_body.plus_fuel.flame._visible = false;
_root.shop_body.fuel_flame._visible = false;
}
if (_root.money >= _root.engine_price) {
_root.shop_body.plus_engine.flame._visible = true;
_root.shop_body.engine_flame._visible = true;
} else {
_root.shop_body.plus_engine.flame._visible = false;
_root.shop_body.engine_flame._visible = false;
}
if (_root.money >= _root.brakes_price) {
_root.shop_body.plus_brakes.flame._visible = true;
_root.shop_body.brakes_flame._visible = true;
} else {
_root.shop_body.plus_brakes.flame._visible = false;
_root.shop_body.brakes_flame._visible = false;
}
if (_root.money >= _root.armor_price) {
_root.shop_body.plus_armor.flame._visible = true;
_root.shop_body.armor_flame._visible = true;
} else {
_root.shop_body.plus_armor.flame._visible = false;
_root.shop_body.armor_flame._visible = false;
}
if (_root.money >= _root.food_price) {
_root.shop_body.plus_food.flame._visible = true;
_root.shop_body.food_flame._visible = true;
} else {
_root.shop_body.plus_food.flame._visible = false;
_root.shop_body.food_flame._visible = false;
}
if (_root.money >= _root.rocket_price) {
_root.shop_body.plus_rocket.flame._visible = true;
_root.shop_body.rockets_flame._visible = true;
} else {
_root.shop_body.plus_rocket.flame._visible = false;
_root.shop_body.rockets_flame._visible = false;
}
if (_root.money >= _root.lights_price) {
_root.shop_body.plus_lights.flame._visible = true;
_root.shop_body.lights_flame._visible = true;
} else {
_root.shop_body.plus_lights.flame._visible = false;
_root.shop_body.lights_flame._visible = false;
}
if (_root.money >= _root.steer_price) {
_root.shop_body.plus_steer.flame._visible = true;
_root.shop_body.steer_flame._visible = true;
} else {
_root.shop_body.plus_steer.flame._visible = false;
_root.shop_body.steer_flame._visible = false;
}
};
ASSetPropFlags(_global.shop.prototype, null, 1);
}
#endinitclip
}
movieClip 898 __Packages.hint_60 {
#initclip
if (!_global.hint_60) {
var v1 = function () {
super();
};
_global.hint_60 = v1;
_global.hint_60 extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
for (var v3 in _root.gamePlay.car_massive_following) {
if (this.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
if (_root.maxSpeed == 20) {
_root.gamePlay.car_massive_following[v3].car_stop = _root.maxSpeed / 155;
}
if (_root.maxSpeed == 25) {
_root.gamePlay.car_massive_following[v3].car_stop = _root.maxSpeed / 150;
}
if (_root.maxSpeed == 30) {
_root.gamePlay.car_massive_following[v3].car_stop = _root.maxSpeed / 145;
}
if (_root.maxSpeed == 35) {
_root.gamePlay.car_massive_following[v3].car_stop = _root.maxSpeed / 140;
}
if (_root.maxSpeed == 40) {
_root.gamePlay.car_massive_following[v3].car_stop = _root.maxSpeed / 135;
}
if (_root.maxSpeed == 45) {
_root.gamePlay.car_massive_following[v3].car_stop = _root.maxSpeed / 130;
}
}
}
};
ASSetPropFlags(_global.hint_60.prototype, null, 1);
}
#endinitclip
}
movieClip 899 __Packages.crossroad {
#initclip
if (!_global.crossroad) {
var v1 = function () {
super();
};
_global.crossroad = v1;
_global.crossroad extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.timer = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.timer += 1;
_root.car_stop = 0;
if (this.timer == 400 and this._currentframe == 1) {
this.gotoAndStop(2);
this.timer = 0;
}
if (this.timer == 400 and this._currentframe == 2) {
this.gotoAndStop(1);
this.timer = 0;
}
}
};
ASSetPropFlags(_global.crossroad.prototype, null, 1);
}
#endinitclip
}
movieClip 900 __Packages.hint {
#initclip
if (!_global.hint) {
var v1 = function () {
super();
};
_global.hint = v1;
_global.hint extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.random = Math.random();
if (this.random < 0.33) {
_root.bonus_number = 1;
}
if (this.random >= 0.33 and this.random < 0.66) {
_root.bonus_number = 2;
}
if (this.random > 0.66) {
_root.bonus_number = 3;
}
if (_root.bonus_number == 0) {
_root.bonus_number = 1;
}
trace(_root.bonus_number);
};
v2.onEnterFrame = function () {
if (_root.bonus_number > 1) {
this.gotoAndStop(_root.bonus_number);
}
};
ASSetPropFlags(_global.hint.prototype, null, 1);
}
#endinitclip
}
movieClip 901 __Packages.bonus {
#initclip
if (!_global.bonus) {
var v1 = function () {
super();
};
_global.bonus = v1;
_global.bonus extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.number = _root.bonus_number;
this.station_sound = new Sound();
if (this.number > 1) {
this.gotoAndStop(this.number);
}
if (this.number == 1) {
this.station_sound.attachSound('fuel_sound');
}
if (this.number == 2) {
this.station_sound.attachSound('food_sound');
}
if (this.number >= 3) {
this.station_sound.attachSound('damage_sound');
}
this.hint = 0;
this.bonus_sound = new Sound();
this.bonus_sound.attachSound('achievement_03');
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.place.hitTest(_root.gamePlay.Truck.Body) and _root.yspeed < 2) {
if (this.hint == 0) {
if (this.number == 1 and _root.gamePlay.fuel < _root.fuel and _root.gamePlay.food > 0 and _root.gamePlay.damage > 0 or this.number == 2 and _root.gamePlay.food < _root.food and _root.gamePlay.fuel > 0 and _root.gamePlay.damage > 0 or this.number >= 3 and _root.gamePlay.damage < _root.damage and _root.gamePlay.fuel > 0 and _root.gamePlay.food > 0) {
_root.bonusHint.gotoAndPlay(2);
if (_root.sound == true) {
this.station_sound.start();
}
}
this.hint = 1;
}
if (this.number == 1) {
_root.gamePlay.fuel += 0.35;
_root.gamePlay.food += 0.035;
if (_root.gamePlay.fuel >= _root.fuel and this.hint == 1) {
var v5 = _root.attachMovie('full_fuel', 'full_fuel' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v5._x = -395;
v5._y = 170;
this.hint = 2;
if (_root.sound == true) {
this.bonus_sound.start();
}
}
}
if (this.number == 2) {
_root.bonusHint.hint.gotoAndStop(2);
_root.gamePlay.food += 0.35;
_root.gamePlay.fuel += 0.035;
if (_root.gamePlay.food >= _root.food and this.hint == 1) {
var v3 = _root.attachMovie('full_food', 'full_food' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = -395;
v3._y = 170;
this.hint = 2;
if (_root.sound == true) {
this.bonus_sound.start();
}
}
}
if (this.number >= 3) {
_root.bonusHint.hint.gotoAndStop(3);
_root.gamePlay.damage += 0.35;
_root.gamePlay.food += 0.035;
_root.gamePlay.fuel += 0.035;
if (_root.gamePlay.damage >= _root.damage and this.hint == 1) {
var v4 = _root.attachMovie('full_damage', 'full_damage' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v4._x = -395;
v4._y = 170;
this.hint = 2;
if (_root.sound == true) {
this.bonus_sound.start();
}
}
}
}
}
};
ASSetPropFlags(_global.bonus.prototype, null, 1);
}
#endinitclip
}
movieClip 902 __Packages.man {
#initclip
if (!_global.man) {
var v1 = function () {
super();
};
_global.man = v1;
_global.man extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.speed = Math.random() * 2 + 1;
this.random = Math.random();
this.manSpeed = this.speed;
this.scream = new Sound();
if (this.random >= 0 and this.random < 0.33) {
this.scream.attachSound('scream_05');
}
if (this.random >= 0.33 and this.random < 0.65) {
this.scream.attachSound('scream_06');
}
if (this.random >= 0.65) {
this.scream.attachSound('scream_07');
}
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this._x += this.manSpeed;
for (var v3 in _root.gamePlay.car_massive_following) {
if (this.body.hitTest(_root.gamePlay.car_massive_following[v3].carbody)) {
if (this.manSpeed > 0 and _root.sound == true) {
this.scream.start();
}
this.manSpeed = 0;
this.speed = 0;
this.gotoAndStop('dead');
}
}
for (v3 in _root.gamePlay.car_massive_counter) {
if (this.body.hitTest(_root.gamePlay.car_massive_counter[v3].carbody)) {
if (this.manSpeed > 0 and _root.sound == true) {
this.scream.start();
}
this.manSpeed = 0;
this.speed = 0;
this.gotoAndStop('dead');
}
}
if (this.body.hitTest(_root.gamePlay.Truck.Body)) {
if (this.manSpeed > 0 and _root.sound == true) {
this.scream.start();
}
this.manSpeed = 0;
this.speed = 0;
this.gotoAndStop('dead');
}
if (this.header.hitTest(_root.gamePlay.Truck.Body) and this.speed > 0) {
this.manSpeed = 0;
this.gotoAndStop('stand');
this.stand = true;
} else {
if (this.stand == true) {
this.stand = false;
this.gotoAndStop('walk');
this.manSpeed = this.speed;
}
}
}
};
ASSetPropFlags(_global.man.prototype, null, 1);
}
#endinitclip
}
movieClip 903 __Packages.crosswalk {
#initclip
if (!_global.crosswalk) {
var v1 = function () {
super();
};
_global.crosswalk = v1;
_global.crosswalk extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.hit = true;
_root.car_stop = 0;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.man_01._x > 100 and this.man_02._x > 100 and this.man_03._x > 100) {
this.hit = false;
}
}
};
ASSetPropFlags(_global.crosswalk.prototype, null, 1);
}
#endinitclip
}
movieClip 904 __Packages.backplan {
#initclip
if (!_global.backplan) {
var v1 = function () {
super();
};
_global.backplan = v1;
_global.backplan extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.acceleration = 0.1;
this.yspeed = 0;
if (_root.backPlanFrame / 2 > Math.floor(_root.backPlanFrame / 2)) {
this.frame = _root.backPlanFrame;
} else {
this.frame = _root.backPlanFrame + 1;
}
this.gotoAndStop(this.frame);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
_root.backPlanFrame = this._currentframe;
if (this._y >= 120) {
this._y = _root.gamePlay.backPlanTop._y - 1200;
this.frame += 2;
if (this.frame == this._totalframes - 1) {
this.frame = 1;
}
this.gotoAndStop(this.frame);
}
this._y += _root.yspeed;
this._x += _root.xspeed;
if (this._x >= 105) {
this._x = 105;
}
if (this._x <= -105) {
this._x = -105;
}
}
};
ASSetPropFlags(_global.backplan.prototype, null, 1);
}
#endinitclip
}
movieClip 905 __Packages.controller {
#initclip
if (!_global.controller) {
var v1 = function () {
super();
};
_global.controller = v1;
_global.controller extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.pause == false) {
_root.LEFT = false;
_root.RIGHT = false;
_root.UP = false;
_root.DOWN = false;
_root.SPACE = false;
if (Key.isDown(39)) {
_root.RIGHT = true;
}
if (Key.isDown(37)) {
_root.LEFT = true;
}
if (Key.isDown(38)) {
_root.UP = true;
}
if (Key.isDown(40)) {
_root.DOWN = true;
}
if (Key.isDown(32)) {
_root.SPACE = true;
}
}
};
ASSetPropFlags(_global.controller.prototype, null, 1);
}
#endinitclip
}
movieClip 906 __Packages.backplan_top {
#initclip
if (!_global.backplan_top) {
var v1 = function () {
super();
};
_global.backplan_top = v1;
_global.backplan_top extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.acceleration = 0.1;
this.yspeed = 0;
this.gotoAndStop(2);
if (_root.backPlanFrame / 2 > Math.floor(_root.backPlanFrame / 2)) {
this.frame = _root.backPlanFrame + 1;
} else {
this.frame = _root.backPlanFrame + 2;
}
this.gotoAndStop(this.frame);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this._y >= 120) {
this._y = _root.gamePlay.backPlan._y - 1200;
this.frame += 2;
if (this.frame == this._totalframes) {
this.frame = 2;
}
this.gotoAndStop(this.frame);
}
this._y += _root.yspeed;
this._x += _root.xspeed;
if (this._x >= 105) {
this._x = 105;
}
if (this._x <= -105) {
this._x = -105;
}
}
};
ASSetPropFlags(_global.backplan_top.prototype, null, 1);
}
#endinitclip
}
movieClip 907 __Packages.truck {
#initclip
if (!_global.truck) {
var v1 = function () {
super();
};
_global.truck = v1;
_global.truck extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_number = _root.rocket_number;
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this.timer += 1;
if (_root.SPACE == true and this.timer >= _root.rocketTimer and this.rocket_number > 0) {
var v3 = _root.gamePlay.Cars.attachMovie('rocket', 'rocket' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -_root.gamePlay.Cars._y - 25;
v3._x = -_root.gamePlay.Cars._x;
this.timer = 0;
this.rocket_number -= 1;
_root.gamePlay.Cars.rocket_massive.push(v3);
this.rocket_launch = new Sound();
this.rocket_launch.attachSound('rocket_launch');
this.rocket_launch.start();
}
this._rotation = -_root.xspeed * 1.8;
_root.gamePlay.Truck.weapon._rotation = 180 + _root.xspeed * 1.8;
_root.gamePlay.Truck.wheel_right._rotation = this._rotation * 2;
_root.gamePlay.Truck.wheel_left._rotation = this._rotation * 2;
}
};
ASSetPropFlags(_global.truck.prototype, null, 1);
}
#endinitclip
}
movieClip 908 __Packages.cars {
#initclip
if (!_global.cars) {
var v1 = function () {
super();
};
_global.cars = v1;
_global.cars extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.rocket_massive = [];
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this._y += _root.yspeed;
this._x = _root.gamePlay.backPlan._x + 34;
}
};
ASSetPropFlags(_global.cars.prototype, null, 1);
}
#endinitclip
}
movieClip 909 __Packages.night {
#initclip
if (!_global.night) {
var v1 = function () {
super();
};
_global.night = v1;
_global.night extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.gotoAndStop(_root.lights);
};
v2.onEnterFrame = function () {
if (_root.pause == false) {
this._rotation = _root.gamePlay.Truck._rotation;
if (_root.survival == false) {
this.alpha = _root.meters / 500 + 15;
if (this.alpha >= 99) {
this.alpha = 99;
}
this._alpha = this.alpha;
} else {
this.alpha = _root.survival_meters / 50 + 10;
if (this.alpha >= 99) {
this.alpha = 99;
}
this._alpha = this.alpha;
}
}
};
ASSetPropFlags(_global.night.prototype, null, 1);
}
#endinitclip
}
movieClip 910 __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();
this.random = Math.random();
this.abs_xspeed = 0;
if (_root.survival == true) {
_root.money_text._visible = false;
_root.dollar_sign._visible = false;
_root.survival_sign._visible = true;
_root.distance_meter.cursor.miles._visible = false;
_root.distance_meter.cursor.meters._visible = true;
}
if (_root.survival == false) {
_root.money_text._visible = true;
_root.dollar_sign._visible = true;
_root.survival_sign._visible = false;
_root.distance_meter.cursor.miles._visible = true;
_root.distance_meter.cursor.meters._visible = false;
}
_root.survival_meters = 0;
this.survival = 0;
_root.quit_button.onRelease = function () {
_root.gotoAndStop('shopFrame');
};
_root.pause_button.onRelease = function () {
if (_root.pause_button._currentframe == 1) {
_root.pause = true;
stopAllSounds();
}
if (_root.pause_button._currentframe == 2) {
_root.pause = false;
if (_root.sound == true) {
this.engine = new Sound();
this.engine.attachSound('engine');
this.engine.start(0, 1000);
}
if (_root.music == true) {
_root.gamePlayMusic.start(0, 1000);
}
}
};
_root.music_button.onRelease = function () {
if (_root.music_button._currentframe == 1) {
stopAllSounds();
if (_root.pause == false) {
if (_root.sound == true) {
this.engine = new Sound();
this.engine.attachSound('engine');
this.engine.start(0, 1000);
}
}
_root.music = false;
}
if (_root.music_button._currentframe == 2) {
_root.music = true;
if (_root.pause == false) {
if (_root.music == true) {
_root.gamePlayMusic.start(0, 1000);
}
}
}
};
_root.mute_button.onRelease = function () {
if (_root.mute_button._currentframe == 1) {
_root.sound = false;
stopAllSounds();
if (_root.pause == false) {
if (_root.music == true) {
_root.gamePlayMusic.start(0, 1000);
}
}
}
if (_root.mute_button._currentframe == 2) {
_root.sound = true;
if (_root.pause == false) {
if (_root.sound == true) {
this.engine = new Sound();
this.engine.attachSound('engine');
this.engine.start(0, 1000);
}
}
}
};
if (_root.game_complete == 0) {
_root.day_number += 1;
}
_root._day._number.day_number.text = _root.day_number;
trace(_root.day_number);
var v3 = _root.attachMovie('fader', 'fader' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.gamePlayMusic = new Sound();
_root.gamePlayMusic.attachSound('gameplay_music');
_root.gamePlayMusic.setVolume(0);
if (_root.music == true) {
_root.gamePlayMusic.start(0, 1000);
}
this.engine = new Sound();
this.engine.attachSound('engine');
this.game_over_sound = new Sound();
this.game_over_sound.attachSound('game_over_sound');
this.sound = true;
this.volume = 0;
if (_root.sound == true) {
this.engine.start(0, 1000);
}
_root.clear_meters = 0;
_root.police = 0;
_root.yspeed = 0;
_root.bridge == false;
this.car_massive_following = [];
this.car_massive_counter = [];
_root.xspeed = 0;
_root.friction = 0.02;
_root.steer_friction = 0.01 * _root.steer_acceleration / 0.015;
_root.steer = 2;
_root.rocketTimer = 20;
this.car_timer = 0;
this.timer = Math.random() * 200 + 500;
_root.car_remover = 0;
_root.remover = 0;
_root.car_remover_counter = 0;
_root.remover_counter = 0;
this.fuel = _root.fuel;
this.damage = _root.damage;
this.food = _root.food;
this.game_over = false;
_root.flame_05._visible = false;
};
v2.onEnterFrame = function () {
if (_root.pause == true) {
_root.pause_button.gotoAndPlay(2);
}
if (_root.sound == false) {
_root.mute_button.gotoAndPlay(2);
}
if (_root.music == false) {
_root.music_button.gotoAndPlay(2);
}
if (_root.pause == false) {
this.volume += 0.5;
if (this.volume >= 90) {
this.volume = 90;
}
_root.gamePlayMusic.setVolume(this.volume);
_root.rocket.gotoAndStop(_root.gamePlay.Truck.rocket_number);
if (_root.gamePlay.Truck.rocket_number == 0) {
_root.rocket._visible = false;
} else {
_root.rocket._visible = true;
}
_root.meters += _root.yspeed / 16;
_root.survival_meters += _root.yspeed / 16;
_root.clear_meters += _root.yspeed / 16;
if (_root.survival == false) {
_root.money += _root.yspeed / 60;
}
_root.money_text.text = Math.round(_root.money);
if (_root.survival == false) {
_root.distance_meter.cursor.distance.text = Math.floor(_root.meters / 10) / 100;
} else {
_root.distance_meter.cursor.distance.text = Math.round(_root.survival_meters);
}
if (_root.survival == false) {
_root.distance_meter.cursor._y = -0.0045 * _root.meters;
} else {
_root.distance_meter.cursor._y = -0.0045 * _root.survival_meters;
}
if (_root.distance_meter.cursor._y <= -450) {
_root.distance_meter.cursor._y = -450;
}
this.fuel -= 0.035;
if (this.fuel >= _root.fuel) {
this.fuel = _root.fuel;
}
if (this.fuel <= 0) {
this.fuel = 0;
}
_root.fuelMeter.arrow._rotation = (150 / _root.fuel) * this.fuel;
if (_root.survival == false) {
if (_root.meters >= 10000) {
_root.achievement_10_miles += 1;
}
if (_root.meters >= 30000) {
_root.achievement_30_miles += 1;
}
if (_root.meters >= 50000) {
_root.achievement_50_miles += 1;
}
if (_root.meters >= 70000) {
_root.achievement_70_miles += 1;
}
if (_root.meters >= 90000) {
_root.achievement_90_miles += 1;
}
if (_root.meters >= 100000) {
_root.game_complete += 1;
if (_root.game_complete == 1) {
var v21 = _root.attachMovie('fader_in', 'fader_in' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
if (_root.game_complete == 50) {
_root.gotoAndStop('gameCompleteFrame');
_root.survival_mode = true;
}
}
if (_root.achievement_10_miles == 1) {
var v3 = _root.attachMovie('achievement_10_miles', 'achievement_10_miles' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v3._x = -385;
v3._y = 150;
_root.money += 500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_30_miles == 1) {
var v20 = _root.attachMovie('achievement_30_miles', 'achievement_30_miles' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v20._x = -385;
v20._y = 150;
_root.money += 1500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_50_miles == 1) {
var v19 = _root.attachMovie('achievement_50_miles', 'achievement_50_miles' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v19._x = -385;
v19._y = 150;
_root.money += 2500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_70_miles == 1) {
var v17 = _root.attachMovie('achievement_70_miles', 'achievement_70_miles' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v17._x = -385;
v17._y = 150;
_root.money += 3500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_90_miles == 1) {
var v13 = _root.attachMovie('achievement_90_miles', 'achievement_90_miles' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v13._x = -385;
v13._y = 150;
_root.money += 5000;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.clear_meters >= 1000) {
_root.achievement_1_clear_miles += 1;
}
if (_root.clear_meters >= 3000) {
_root.achievement_3_clear_miles += 1;
}
if (_root.clear_meters >= 5000) {
_root.achievement_5_clear_miles += 1;
}
if (_root.clear_meters >= 7000) {
_root.achievement_7_clear_miles += 1;
}
if (_root.clear_meters >= 9000) {
_root.achievement_9_clear_miles += 1;
}
if (_root.achievement_1_clear_miles == 1) {
var v10 = _root.attachMovie('achievement_1_clear_mile', 'achievement_1_clear_mile' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v10._x = -385;
v10._y = 150;
_root.money += 500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_3_clear_miles == 1) {
var v14 = _root.attachMovie('achievement_3_clear_mile', 'achievement_3_clear_mile' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v14._x = -385;
v14._y = 150;
_root.money += 1500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_5_clear_miles == 1) {
var v6 = _root.attachMovie('achievement_5_clear_mile', 'achievement_5_clear_mile' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v6._x = -385;
v6._y = 150;
_root.money += 2500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_7_clear_miles == 1) {
var v8 = _root.attachMovie('achievement_7_clear_mile', 'achievement_7_clear_mile' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v8._x = -385;
v8._y = 150;
_root.money += 3500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_9_clear_miles == 1) {
var v4 = _root.attachMovie('achievement_9_clear_mile', 'achievement_9_clear_mile' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v4._x = -385;
v4._y = 150;
_root.money += 5000;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.police == 1) {
_root.achievement_1_police += 1;
}
if (_root.police == 3) {
_root.achievement_3_police += 1;
}
if (_root.police == 5) {
_root.achievement_5_police += 1;
}
if (_root.police == 7) {
_root.achievement_7_police += 1;
}
if (_root.police == 9) {
_root.achievement_9_police += 1;
}
if (_root.achievement_1_police == 1) {
var v7 = _root.attachMovie('achievement_1_police_car', 'achievement_1_police_car' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v7._x = -385;
v7._y = 190;
_root.money += 500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_3_police == 1) {
var v9 = _root.attachMovie('achievement_3_police_car', 'achievement_3_police_car' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v9._x = -385;
v9._y = 190;
_root.money += 1500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_5_police == 1) {
var v11 = _root.attachMovie('achievement_5_police_car', 'achievement_5_police_car' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v11._x = -385;
v11._y = 190;
_root.money += 2500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_7_police == 1) {
var v15 = _root.attachMovie('achievement_7_police_car', 'achievement_7_police_car' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v15._x = -385;
v15._y = 190;
_root.money += 3500;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
if (_root.achievement_9_police == 1) {
var v18 = _root.attachMovie('achievement_9_police_car', 'achievement_9_police_car' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v18._x = -385;
v18._y = 190;
_root.money += 5000;
if (_root.sound == true) {
this.achievement = new Sound();
if (Math.random() > 0.5) {
this.achievement.attachSound('achievement_03');
} else {
this.achievement.attachSound('achievement_02');
}
this.achievement.start();
}
}
}
if (_root.rocket_number > 0) {
_root.gamePlay.Truck.weapon._visible = true;
} else {
_root.gamePlay.Truck.weapon._visible = false;
}
this.food -= 0.035;
if (this.food >= _root.food) {
this.food = _root.food;
}
if (this.food <= 0) {
this.food = 0;
}
_root.foodMeter.arrow._rotation = (150 / _root.food) * this.food;
if (this.damage <= _root.damage / 1.5) {
_root.gamePlay.Truck.flame_01._visible = true;
_root.gamePlay.Night.flame_01._visible = true;
_root.flame_01._visible = true;
_root.flame_05._visible = true;
} else {
_root.gamePlay.Truck.flame_01._visible = false;
_root.gamePlay.Night.flame_01._visible = false;
_root.flame_01._visible = false;
_root.flame_05._visible = false;
}
if (this.damage <= _root.damage / 2.5) {
_root.flame_02._visible = true;
_root.gamePlay.Truck.flame_03._visible = true;
_root.gamePlay.Night.flame_03._visible = true;
_root.smoke_01._visible = true;
} else {
_root.flame_02._visible = false;
_root.gamePlay.Truck.flame_03._visible = false;
_root.gamePlay.Night.flame_03._visible = false;
_root.smoke_01._visible = false;
}
if (this.damage <= _root.damage / 3.5) {
_root.gamePlay.Truck.flame_02._visible = true;
_root.gamePlay.Night.flame_02._visible = true;
_root.flame_03._visible = true;
} else {
_root.gamePlay.Truck.flame_02._visible = false;
_root.gamePlay.Night.flame_02._visible = false;
_root.flame_03._visible = false;
}
if (this.damage >= _root.damage) {
this.damage = _root.damage;
}
if (this.damage <= 0) {
this.damage = 0;
}
_root.damageMeter.arrow._rotation = (150 / _root.damage) * this.damage;
_root.speedMeter.arrow._rotation = (270 / _root.maxSpeed) * _root.yspeed;
_root.speedMeter.speed.text = Math.round(_root.yspeed * 3);
this.damage_timer -= 1;
if (this.damage_timer <= 0) {
this.damage_timer = 0;
}
if (this.damage_timer > 0) {
this.border();
}
this._x += Math.random() * _root.yspeed / 10 - _root.yspeed / 20;
this._y += Math.random() * _root.yspeed / 10 - _root.yspeed / 20;
if (this._x <= 210) {
this._x = 210;
}
if (this._x >= 290) {
this._x = 290;
}
if (this._y <= 490) {
this._y = 490;
}
if (this._y >= 560) {
this._y = 560;
}
this.car_timer += 1;
if (this.car_timer == 100) {
}
if (_root.remover == _root.car_remover) {
trace('remover:' + _root.remover);
trace('car_remover:' + _root.car_remover);
_root.remover = 0;
_root.car_remover = 0;
this.car_massive_following = [];
this.car_following();
}
if (this.car_timer >= this.timer and _root.remover_counter == _root.car_remover_counter) {
this.car_counter();
this.timer = Math.random() * 200 + 200;
if (_root.meters > 20000) {
this.timer = Math.random() * 200 + 175;
}
if (_root.meters > 40000) {
this.timer = Math.random() * 200 + 150;
}
if (_root.meters > 60000) {
this.timer = Math.random() * 200 + 125;
}
if (_root.meters > 80000) {
this.timer = Math.random() * 200 + 100;
}
this.car_timer = 0;
}
if (_root.UP == true and this.fuel > 0 and this.damage > 0 and this.food > 0) {
_root.yspeed += _root.acceleration;
this.fuel -= 0.035;
}
if (this.fuel <= 0 and _root.yspeed <= 0 and this.game_over == false) {
this.game_over = true;
var v5 = _root.attachMovie('low_fuel', 'low_fuel' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v5._x = -395;
v5._y = 35;
if (_root.sound == true) {
this.game_over_sound = new Sound();
if (this.random < 0.5) {
this.game_over_sound.attachSound('scream_01');
} else {
this.game_over_sound.attachSound('scream_02');
}
this.game_over_sound.start();
}
if (_root.survival == true and this.survival == 0) {
this.survival = 1;
v21 = _root.attachMovie('fader_in_survival', 'fader_in_survival' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
if (this.damage <= 0 and _root.yspeed <= 0 and this.game_over == false) {
this.game_over = true;
var v16 = _root.attachMovie('low_damage', 'low_damage' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v16._x = -395;
v16._y = 35;
if (_root.sound == true) {
this.game_over_sound = new Sound();
if (this.random < 0.5) {
this.game_over_sound.attachSound('scream_01');
} else {
this.game_over_sound.attachSound('scream_02');
}
this.game_over_sound.start();
}
if (_root.survival == true and this.survival == 0) {
this.survival = 1;
v21 = _root.attachMovie('fader_in_survival', 'fader_in_survival' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
if (this.food <= 0 and _root.yspeed <= 0 and this.game_over == false) {
this.game_over = true;
var v12 = _root.attachMovie('low_food', 'low_food' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
v12._x = -395;
v12._y = 35;
if (_root.sound == true) {
this.game_over_sound = new Sound();
if (this.random < 0.5) {
this.game_over_sound.attachSound('scream_01');
} else {
this.game_over_sound.attachSound('scream_02');
}
this.game_over_sound.start();
}
if (_root.survival == true and this.survival == 0) {
this.survival = 1;
v21 = _root.attachMovie('fader_in_survival', 'fader_in_survival' + _root.getNextHighestDepth(), _root.getNextHighestDepth());
}
}
if (_root.DOWN == true) {
_root.yspeed -= _root.acceleration * _root.brakes * 1.1;
_root.gamePlay.Truck.stop_light_right.gotoAndPlay(2);
_root.gamePlay.Truck.stop_light_left.gotoAndPlay(2);
}
if (_root.yspeed == 0) {
_root.gamePlay.Truck.stop_light_right.gotoAndPlay(2);
_root.gamePlay.Truck.stop_light_left.gotoAndPlay(2);
}
if (_root.LEFT == true) {
_root.yspeed -= _root.acceleration * _root.maxSpeed / 75;
if (_root.xspeed < _root.yspeed * _root.steer_acceleration) {
_root.xspeed += _root.steer_acceleration * 1.75;
}
}
if (_root.LEFT == false and _root.RIGHT == false) {
this.abs_xspeed = Math.abs(_root.xspeed);
if (this.abs_xspeed < 0.1) {
_root.xspeed = 0;
}
}
if (_root.RIGHT == true) {
_root.yspeed -= _root.acceleration * _root.maxSpeed / 75;
if (_root.xspeed > -_root.yspeed * _root.steer_acceleration) {
_root.xspeed -= _root.steer_acceleration * 1.75;
}
}
trace(_root.xspeed);
if (_root.xspeed >= _root.steer) {
_root.xspeed = _root.steer;
}
if (_root.xspeed <= -_root.steer) {
_root.xspeed = -_root.steer;
}
if (_root.xspeed < 0) {
_root.xspeed += _root.steer_friction;
}
if (_root.xspeed > 0) {
_root.xspeed -= _root.steer_friction;
}
_root.yspeed -= _root.friction;
if (_root.yspeed >= _root.maxSpeed) {
_root.yspeed = _root.maxSpeed;
}
if (_root.yspeed <= 0) {
_root.yspeed = 0;
_root.xspeed = 0;
}
this._xscale = 100 - _root.yspeed;
this._yscale = this._xscale;
}
};
v2.car_following = function () {
if (Math.random() > 0.25 or _root.meters > 75000) {
var v3 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -1000 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v3._x = 60;
}
this.car_massive_following.push(v3);
_root.car_remover += 1;
}
if (Math.random() > 0.25 or _root.meters > 50000) {
var v10 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v10._y = -1500 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
this.car_following._x = 60;
}
this.car_massive_following.push(v10);
_root.car_remover += 1;
}
if (Math.random() > 0.25 or _root.meters > 50000) {
var v9 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v9._y = -2000 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v9._x = 60;
}
this.car_massive_following.push(v9);
_root.car_remover += 1;
}
var v6 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v6._y = -2500 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v6._x = 60;
}
this.car_massive_following.push(v6);
_root.car_remover += 1;
if (Math.random() > 0.25 or _root.meters > 75000) {
var v7 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v7._y = -3000 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v7._x = 60;
}
this.car_massive_following.push(v7);
_root.car_remover += 1;
}
if (Math.random() > 0.25 or _root.meters > 25000) {
var v4 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v4._y = -3500 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v4._x = 60;
}
this.car_massive_following.push(v4);
_root.car_remover += 1;
}
var v5 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v5._y = -4000 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v5._x = 60;
}
this.car_massive_following.push(v5);
_root.car_remover += 1;
var v8 = _root.gamePlay.Cars.attachMovie('car', 'car' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v8._y = -4500 + Math.random() * 50 - _root.gamePlay.Cars._y;
if (_root.road_right == 2 and Math.random() > 0.35) {
v8._x = 60;
}
this.car_massive_following.push(v8);
_root.car_remover += 1;
};
v2.car_counter = function () {
_root.remover_counter = 0;
_root.car_remover_counter = 0;
this.car_massive_counter = [];
if (Math.random() > 0.5) {
var v3 = _root.gamePlay.Cars.attachMovie('car_counter', 'car_counter' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -1000 + Math.random() * 200 - _root.gamePlay.Cars._y;
v3._x = -70;
this.car_massive_counter.push(v3);
_root.car_remover_counter += 1;
}
if (Math.random() > 0.5) {
v3 = _root.gamePlay.Cars.attachMovie('car_counter', 'car_counter' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -1500 + Math.random() * 100 - _root.gamePlay.Cars._y;
v3._x = -70;
this.car_massive_counter.push(v3);
_root.car_remover_counter += 1;
}
if (Math.random() > 0.5) {
v3 = _root.gamePlay.Cars.attachMovie('car_counter', 'car_counter' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -2000 + Math.random() * 200 - _root.gamePlay.Cars._y;
v3._x = -70;
this.car_massive_counter.push(v3);
_root.car_remover_counter += 1;
}
if (Math.random() > 0.5) {
v3 = _root.gamePlay.Cars.attachMovie('car_counter', 'car_counter' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -2500 + Math.random() * 200 - _root.gamePlay.Cars._y;
v3._x = -70;
this.car_massive_counter.push(v3);
_root.car_remover_counter += 1;
}
if (Math.random() > 0.5) {
v3 = _root.gamePlay.Cars.attachMovie('car_counter', 'car_counter' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -3000 + Math.random() * 200 - _root.gamePlay.Cars._y;
v3._x = -70;
this.car_massive_counter.push(v3);
_root.car_remover_counter += 1;
}
if (Math.random() > 0.5) {
v3 = _root.gamePlay.Cars.attachMovie('car_counter', 'car_counter' + _root.gamePlay.Cars.getNextHighestDepth(), _root.gamePlay.Cars.getNextHighestDepth());
v3._y = -3500 + Math.random() * 200 - _root.gamePlay.Cars._y;
v3._x = -70;
this.car_massive_counter.push(v3);
_root.car_remover_counter += 1;
}
};
v2.border = function () {
if (_root.yspeed >= 5) {
_root.yspeed -= 0.25;
}
this._x += Math.random() * _root.yspeed / 5 - _root.yspeed / 10;
this._y += Math.random() * _root.yspeed / 5 - _root.yspeed / 10;
if (this._x <= 210) {
this._x = 210;
}
if (this._x >= 290) {
this._x = 290;
}
if (this._y <= 490) {
this._y = 490;
}
if (this._y >= 560) {
this._y = 560;
}
};
v2.car_damage = function () {
this.damage -= 50;
_root.yspeed -= 5;
if (_root.yspeed <= 0) {
_root.yspeed = 0;
}
this.damage_timer = 100;
};
ASSetPropFlags(_global.gameplay.prototype, null, 1);
}
#endinitclip
}
movieClip 911 __Packages.border {
#initclip
if (!_global.border) {
var v1 = function () {
super();
};
_global.border = v1;
_global.border extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {};
v2.onEnterFrame = function () {
if (_root.pause == false) {
if (this.hitTest(_root.gamePlay.Truck.Body)) {
_root.gamePlay.border();
}
}
};
ASSetPropFlags(_global.border.prototype, null, 1);
}
#endinitclip
}
movieClip 912 __Packages.glass {
#initclip
if (!_global.glass) {
var v1 = function () {
super();
};
_global.glass = v1;
_global.glass extends MovieClip;
var v2 = v1.prototype;
v2.onEnterFrame = function () {
if (_root.gamePlay.damage <= _root.damage / 1.5) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
ASSetPropFlags(_global.glass.prototype, null, 1);
}
#endinitclip
}
frame 2 {
stop();
}
movieClip 180 {
}
movieClip 184 {
}
movieClip 185 achievement_3_clear_mile {
#initclip
Object.registerClass('achievement_3_clear_mile', achievement);
#endinitclip
frame 151 {
stop();
}
}
movieClip 187 {
}
movieClip 188 achievement_5_clear_mile {
#initclip
Object.registerClass('achievement_5_clear_mile', achievement);
#endinitclip
frame 151 {
stop();
}
}
movieClip 190 {
}
movieClip 191 achievement_7_clear_mile {
#initclip
Object.registerClass('achievement_7_clear_mile', achievement);
#endinitclip
frame 150 {
stop();
}
}
movieClip 193 {
}
movieClip 194 achievement_9_clear_mile {
#initclip
Object.registerClass('achievement_9_clear_mile', achievement);
#endinitclip
frame 150 {
stop();
}
}
movieClip 197 {
}
movieClip 198 achievement_1_clear_mile {
#initclip
Object.registerClass('achievement_1_clear_mile', achievement);
#endinitclip
frame 150 {
stop();
}
}
movieClip 202 {
}
movieClip 203 {
}
movieClip 204 achievement_10_miles {
#initclip
Object.registerClass('achievement_10_miles', achievement);
#endinitclip
frame 136 {
stop();
}
}
movieClip 206 {
}
movieClip 207 {
}
movieClip 208 achievement_30_miles {
#initclip
Object.registerClass('achievement_30_miles', achievement);
#endinitclip
frame 136 {
stop();
}
}
movieClip 210 {
}
movieClip 211 {
}
movieClip 212 achievement_50_miles {
#initclip
Object.registerClass('achievement_50_miles', achievement);
#endinitclip
frame 136 {
stop();
}
}
movieClip 214 {
}
movieClip 215 {
}
movieClip 216 achievement_70_miles {
#initclip
Object.registerClass('achievement_70_miles', achievement);
#endinitclip
frame 136 {
stop();
}
}
movieClip 218 {
}
movieClip 219 {
}
movieClip 220 achievement_90_miles {
#initclip
Object.registerClass('achievement_90_miles', achievement);
#endinitclip
frame 136 {
stop();
}
}
movieClip 224 {
}
movieClip 225 achievement_9_police_car {
#initclip
Object.registerClass('achievement_9_police_car', achievement);
#endinitclip
frame 132 {
stop();
}
}
movieClip 227 {
}
movieClip 228 achievement_7_police_car {
#initclip
Object.registerClass('achievement_7_police_car', achievement);
#endinitclip
frame 136 {
stop();
}
}
movieClip 231 {
}
movieClip 232 achievement_5_police_car {
#initclip
Object.registerClass('achievement_5_police_car', achievement);
#endinitclip
frame 131 {
stop();
}
}
movieClip 234 {
}
movieClip 235 achievement_3_police_car {
#initclip
Object.registerClass('achievement_3_police_car', achievement);
#endinitclip
frame 131 {
stop();
}
}
movieClip 244 {
}
movieClip 245 {
}
movieClip 246 achievement_1_police_car {
#initclip
Object.registerClass('achievement_1_police_car', achievement);
#endinitclip
frame 131 {
stop();
}
}
movieClip 249 {
}
movieClip 250 {
}
movieClip 251 low_fuel {
frame 130 {
if (_root.survival == false) {
_root.gotoAndStop('shopFrame');
}
stop();
}
}
movieClip 254 {
}
movieClip 255 low_food {
frame 131 {
if (_root.survival == false) {
_root.gotoAndStop('shopFrame');
}
stop();
}
}
movieClip 258 {
}
movieClip 259 low_damage {
frame 131 {
if (_root.survival == false) {
_root.gotoAndStop('shopFrame');
}
stop();
}
}
movieClip 262 {
}
movieClip 263 {
}
movieClip 264 full_fuel {
frame 131 {
stop();
}
}
movieClip 267 {
}
movieClip 268 {
}
movieClip 269 full_damage {
frame 131 {
stop();
}
}
movieClip 272 {
}
movieClip 273 {
}
movieClip 274 full_food {
frame 131 {
stop();
}
}
movieClip 275 smoke_car {
#initclip
Object.registerClass('smoke_car', smoke_car);
#endinitclip
}
movieClip 278 {
}
movieClip 279 stop_lights {
frame 1 {
stop();
}
}
movieClip 283 car_body {
frame 1 {
stop();
}
}
movieClip 284 car_header {
}
movieClip 285 {
}
movieClip 335 {
}
movieClip 344 car {
#initclip
Object.registerClass('car', car);
#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();
}
}
movieClip 345 car_cross {
#initclip
Object.registerClass('car_cross', car_cross);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 359 car_counter {
#initclip
Object.registerClass('car_counter', car_counter);
#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 362 smoke_flake_rocket {
#initclip
Object.registerClass('smoke_flake_rocket', smoke_flake_rocket);
#endinitclip
}
movieClip 363 smoke_flake_car {
#initclip
Object.registerClass('smoke_flake_car', smoke_flake_car);
#endinitclip
}
movieClip 364 smoke_flake {
#initclip
Object.registerClass('smoke_flake', smoke_flake);
#endinitclip
}
movieClip 365 smoke {
#initclip
Object.registerClass('smoke', smoke);
#endinitclip
}
movieClip 372 {
}
movieClip 375 {
}
movieClip 376 rocket {
#initclip
Object.registerClass('rocket', rocket);
#endinitclip
}
movieClip 378 rocket_body {
}
movieClip 400 {
}
movieClip 401 fader {
#initclip
Object.registerClass('fader', fader);
#endinitclip
}
movieClip 417 {
}
movieClip 421 {
}
movieClip 422 {
frame 27 {
stop();
}
}
movieClip 423 {
frame 1 {
this.onRelease = function () {
_root.getURL('http://www.dwarfgames.com/', 'blank');
};
}
frame 302 {
_root.gotoAndStop('menuFrame');
}
}
movieClip 424 {
}
movieClip 425 tutorial_fader {
frame 51 {
stop();
}
}
frame 3 {
stop();
}
movieClip 429 {
}
movieClip 432 {
}
movieClip 437 survival_complete {
#initclip
Object.registerClass('survival_complete', survival_complete);
#endinitclip
}
frame 4 {
stop();
}
movieClip 441 {
}
movieClip 443 {
}
movieClip 446 {
frame 1 {
this.onRelease = function () {
_root.getURL('http://www.dwarfgames.com/?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=mad_trucker2', 'blank');
};
}
}
movieClip 449 {
}
movieClip 450 {
frame 1 {
}
}
movieClip 451 {
frame 1 {
stop();
}
}
movieClip 454 {
}
movieClip 455 {
frame 1 {
stop();
}
}
movieClip 456 {
}
movieClip 459 {
}
movieClip 460 {
frame 1 {
stop();
}
}
movieClip 463 {
frame 1 {
stop();
}
}
movieClip 467 {
frame 1 {
this.onRelease = function () {
_root.getURL('http://www.dwarfgames.com/game/1726/mad-trucker.html?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=mad_trucker1');
};
}
}
movieClip 471 {
}
movieClip 472 {
}
movieClip 475 {
}
movieClip 476 {
frame 1 {
stop();
}
}
movieClip 477 main_menu {
#initclip
Object.registerClass('main_menu', main_menu);
#endinitclip
}
frame 5 {
stop();
}
movieClip 480 credits {
#initclip
Object.registerClass('credits', credits);
#endinitclip
}
frame 6 {
stop();
}
movieClip 491 {
}
movieClip 496 {
}
movieClip 505 {
}
movieClip 508 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 511 {
frame 1 {
this.onRelease = function () {
_root.getURL('http://www.dwarfgames.com/?utm_source=ingame&utm_medium=sponsoredgames&utm_campaign=mad_trucker2', 'blank');
};
}
}
movieClip 512 tutorial {
#initclip
Object.registerClass('tutorial', tutorial);
#endinitclip
}
frame 7 {
saveData.data.meters = _root.meters;
saveData.data.fuel = _root.fuel;
saveData.data.food = _root.food;
saveData.data.damage = _root.damage;
saveData.data.maxSpeed = _root.maxSpeed;
saveData.data.steer_acceleration = _root.steer_acceleration;
saveData.data.brakes = _root.brakes;
saveData.data.acceleration = _root.acceleration;
saveData.data.rocket_number = _root.rocket_number;
saveData.data.lights = _root.lights;
saveData.data.frame = _root.frame;
saveData.data.car_stop = _root.car_stop;
saveData.data.money = _root.money;
saveData.data.backPlanFrame = _root.backPlanFrame;
saveData.data.day_number = _root.day_number;
saveData.data.m = _root.m;
saveData.data.game_complete = _root.game_complete;
saveData.data.survival_mode = _root.survival_mode;
saveData.data.fuel_price = _root.fuel_price;
saveData.data.engine_price = _root.engine_price;
saveData.data.steer_price = _root.steer_price;
saveData.data.brakes_price = _root.brakes_price;
saveData.data.armor_price = _root.armor_price;
saveData.data.food_price = _root.food_price;
saveData.data.rocket_price = _root.rocket_price;
saveData.data.lights_price = _root.lights_price;
saveData.data.achievement_10_miles = _root.achievement_10_miles;
saveData.data.achievement_30_miles = _root.achievement_30_miles;
saveData.data.achievement_50_miles = _root.achievement_50_miles;
saveData.data.achievement_70_miles = _root.achievement_70_miles;
saveData.data.achievement_90_miles = _root.achievement_90_miles;
saveData.data.achievement_1_clear_miles = _root.achievement_1_clear_miles;
saveData.data.achievement_3_clear_miles = _root.achievement_3_clear_miles;
saveData.data.achievement_5_clear_miles = _root.achievement_5_clear_miles;
saveData.data.achievement_7_clear_miles = _root.achievement_7_clear_miles;
saveData.data.achievement_9_clear_miles = _root.achievement_9_clear_miles;
saveData.data.achievement_1_police = _root.achievement_1_police;
saveData.data.achievement_3_police = _root.achievement_3_police;
saveData.data.achievement_5_police = _root.achievement_5_police;
saveData.data.achievement_7_police = _root.achievement_7_police;
saveData.data.achievement_9_police = _root.achievement_9_police;
stop();
}
movieClip 516 {
}
movieClip 519 {
}
movieClip 520 {
}
movieClip 521 {
}
movieClip 524 {
}
movieClip 525 plus {
frame 1 {
stop();
}
}
movieClip 528 {
}
movieClip 533 {
}
movieClip 536 {
}
movieClip 539 {
}
movieClip 542 {
}
movieClip 544 {
}
movieClip 545 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 547 {
}
movieClip 549 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 551 {
}
movieClip 553 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 555 {
}
movieClip 557 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 559 {
}
movieClip 561 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 563 {
}
movieClip 565 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 567 {
}
movieClip 569 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 571 {
}
movieClip 573 {
}
movieClip 575 {
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 578 {
}
movieClip 580 {
}
movieClip 583 {
}
movieClip 584 shop {
#initclip
Object.registerClass('shop', shop);
#endinitclip
}
frame 8 {
saveData.data.meters = _root.meters;
saveData.data.fuel = _root.fuel;
saveData.data.food = _root.food;
saveData.data.damage = _root.damage;
saveData.data.maxSpeed = _root.maxSpeed;
saveData.data.steer_acceleration = _root.steer_acceleration;
saveData.data.brakes = _root.brakes;
saveData.data.acceleration = _root.acceleration;
saveData.data.rocket_number = _root.rocket_number;
saveData.data.lights = _root.lights;
saveData.data.frame = _root.frame;
saveData.data.car_stop = _root.car_stop;
saveData.data.money = _root.money;
saveData.data.backPlanFrame = _root.backPlanFrame;
saveData.data.day_number = _root.day_number;
saveData.data.m = _root.m;
saveData.data.game_complete = _root.game_complete;
saveData.data.survival_mode = _root.survival_mode;
saveData.data.fuel_price = _root.fuel_price;
saveData.data.engine_price = _root.engine_price;
saveData.data.steer_price = _root.steer_price;
saveData.data.brakes_price = _root.brakes_price;
saveData.data.armor_price = _root.armor_price;
saveData.data.food_price = _root.food_price;
saveData.data.rocket_price = _root.rocket_price;
saveData.data.lights_price = _root.lights_price;
saveData.data.achievement_10_miles = _root.achievement_10_miles;
saveData.data.achievement_30_miles = _root.achievement_30_miles;
saveData.data.achievement_50_miles = _root.achievement_50_miles;
saveData.data.achievement_70_miles = _root.achievement_70_miles;
saveData.data.achievement_90_miles = _root.achievement_90_miles;
saveData.data.achievement_1_clear_miles = _root.achievement_1_clear_miles;
saveData.data.achievement_3_clear_miles = _root.achievement_3_clear_miles;
saveData.data.achievement_5_clear_miles = _root.achievement_5_clear_miles;
saveData.data.achievement_7_clear_miles = _root.achievement_7_clear_miles;
saveData.data.achievement_9_clear_miles = _root.achievement_9_clear_miles;
saveData.data.achievement_1_police = _root.achievement_1_police;
saveData.data.achievement_3_police = _root.achievement_3_police;
saveData.data.achievement_5_police = _root.achievement_5_police;
saveData.data.achievement_7_police = _root.achievement_7_police;
saveData.data.achievement_9_police = _root.achievement_9_police;
stop();
}
movieClip 589 border {
#initclip
Object.registerClass('border', border);
#endinitclip
}
movieClip 594 side {
}
movieClip 598 {
}
movieClip 599 hint_60 {
#initclip
Object.registerClass('hint_60', hint_60);
#endinitclip
}
movieClip 609 {
}
movieClip 611 {
}
movieClip 613 {
}
movieClip 616 {
}
movieClip 617 crossroad {
#initclip
Object.registerClass('crossroad', crossroad);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 620 {
}
movieClip 629 hint {
#initclip
Object.registerClass('hint', hint);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 637 fuel_place {
}
movieClip 640 {
}
movieClip 643 {
}
movieClip 644 bonus {
#initclip
Object.registerClass('bonus', bonus);
#endinitclip
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 3 {
stop();
}
}
movieClip 653 crosswalk_body {
}
movieClip 670 man_walk {
}
movieClip 671 man_header {
}
movieClip 672 man_body {
}
movieClip 673 {
}
movieClip 687 {
frame 12 {
stop();
}
}
movieClip 688 man {
#initclip
Object.registerClass('man', man);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 689 crosswalk {
#initclip
Object.registerClass('crosswalk', crosswalk);
#endinitclip
}
movieClip 693 {
}
movieClip 710 {
}
movieClip 748 bonus_city {
#initclip
Object.registerClass('bonus_city', bonus);
#endinitclip
frame 1 {
stop();
}
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 3 {
stop();
}
}
movieClip 764 backplan {
#initclip
Object.registerClass('backplan', backplan);
#endinitclip
frame 1 {
_root.road_right = 1;
}
frame 27 {
_root.road_right = 2;
}
frame 51 {
_root.road_right = 1;
}
frame 68 {
_root.road_right = 2;
}
frame 84 {
_root.road_right = 1;
}
frame 137 {
_root.road_right = 2;
}
frame 156 {
_root.road_right = 1;
}
}
movieClip 765 controller {
#initclip
Object.registerClass('controller', controller);
#endinitclip
}
movieClip 770 backplan_top {
#initclip
Object.registerClass('backplan_top', backplan_top);
#endinitclip
frame 1 {
_root.road_right = 1;
}
frame 27 {
_root.road_right = 2;
}
frame 51 {
_root.road_right = 1;
}
frame 68 {
_root.road_right = 2;
}
frame 84 {
_root.road_right = 1;
}
frame 137 {
_root.road_right = 2;
}
frame 156 {
_root.road_right = 1;
}
}
movieClip 773 wheel {
}
movieClip 776 {
}
movieClip 778 {
}
movieClip 779 truck {
#initclip
Object.registerClass('truck', truck);
#endinitclip
}
movieClip 780 cars {
#initclip
Object.registerClass('cars', cars);
#endinitclip
}
movieClip 786 night {
#initclip
Object.registerClass('night', night);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
}
movieClip 787 gameplay {
#initclip
Object.registerClass('gameplay', gameplay);
#endinitclip
}
movieClip 791 {
}
movieClip 794 glass_02 {
#initclip
Object.registerClass('glass_02', glass);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 795 food {
}
movieClip 798 damage {
}
movieClip 801 fuel {
}
movieClip 805 {
}
// unknown tag 88 length 32
movieClip 811 arrow {
}
movieClip 814 glass_01 {
#initclip
Object.registerClass('glass_01', glass);
#endinitclip
frame 1 {
stop();
}
frame 2 {
stop();
}
}
movieClip 815 speed {
}
movieClip 818 {
}
movieClip 821 {
}
movieClip 824 {
}
movieClip 825 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
}
movieClip 826 {
frame 1 {
stop();
}
frame 231 {
stop();
}
}
movieClip 838 {
}
movieClip 841 {
}
movieClip 842 day {
frame 1 {
if (_root.game_complete == 0) {
this.gotoAndPlay(2);
} else {
stop();
}
}
frame 145 {
stop();
}
}
movieClip 847 cursorHead {
}
movieClip 850 TextCursor {
}
movieClip 853 meter {
}
movieClip 856 {
frame 1 {
stop();
}
}
movieClip 859 {
frame 1 {
stop();
}
}
movieClip 862 {
frame 1 {
stop();
}
}
movieClip 864 {
}
movieClip 866 {
}
movieClip 869 {
}
frame 9 {
saveData.data.meters = _root.meters;
saveData.data.fuel = _root.fuel;
saveData.data.food = _root.food;
saveData.data.damage = _root.damage;
saveData.data.maxSpeed = _root.maxSpeed;
saveData.data.steer_acceleration = _root.steer_acceleration;
saveData.data.brakes = _root.brakes;
saveData.data.acceleration = _root.acceleration;
saveData.data.rocket_number = _root.rocket_number;
saveData.data.lights = _root.lights;
saveData.data.frame = _root.frame;
saveData.data.car_stop = _root.car_stop;
saveData.data.money = _root.money;
saveData.data.backPlanFrame = _root.backPlanFrame;
saveData.data.day_number = _root.day_number;
saveData.data.m = _root.m;
saveData.data.game_complete = _root.game_complete;
saveData.data.survival_mode = _root.survival_mode;
saveData.data.fuel_price = _root.fuel_price;
saveData.data.engine_price = _root.engine_price;
saveData.data.steer_price = _root.steer_price;
saveData.data.brakes_price = _root.brakes_price;
saveData.data.armor_price = _root.armor_price;
saveData.data.food_price = _root.food_price;
saveData.data.rocket_price = _root.rocket_price;
saveData.data.lights_price = _root.lights_price;
saveData.data.achievement_10_miles = _root.achievement_10_miles;
saveData.data.achievement_30_miles = _root.achievement_30_miles;
saveData.data.achievement_50_miles = _root.achievement_50_miles;
saveData.data.achievement_70_miles = _root.achievement_70_miles;
saveData.data.achievement_90_miles = _root.achievement_90_miles;
saveData.data.achievement_1_clear_miles = _root.achievement_1_clear_miles;
saveData.data.achievement_3_clear_miles = _root.achievement_3_clear_miles;
saveData.data.achievement_5_clear_miles = _root.achievement_5_clear_miles;
saveData.data.achievement_7_clear_miles = _root.achievement_7_clear_miles;
saveData.data.achievement_9_clear_miles = _root.achievement_9_clear_miles;
saveData.data.achievement_1_police = _root.achievement_1_police;
saveData.data.achievement_3_police = _root.achievement_3_police;
saveData.data.achievement_5_police = _root.achievement_5_police;
saveData.data.achievement_7_police = _root.achievement_7_police;
saveData.data.achievement_9_police = _root.achievement_9_police;
stop();
}
frame 10 {
stop();
}