Frame 2
function _doGameOver(score, gamestate, showskip, delay) {
trace((((("CALLED : _doGameOver : score:" + score) + " gamestate:") + gamestate) + " showskip: ") + showskip);
clearInterval(_gameoverinterval);
if (delay == undefined) {
delay = 3000;
}
if ((score != undefined) and (gamestate != undefined)) {
_root.partner_score = score;
_root.obj_game._gstatus = gamestate;
_gameoverinterval = setInterval(attachGameOverMc, delay, showskip);
} else {
trace("Could Not Load GAMEOVER!!!");
}
}
function attachGameOverMc(showskip) {
stopAllSounds();
var _local2 = flash.external.ExternalInterface.call("document.URL.toString");
if ((_local2 != null) && (_local2.indexOf("gangofgamers.com") != -1)) {
trace(_local2.indexOf("gangofgamers.com"));
flash.external.ExternalInterface.call("inviziShowHtmlPlaceHolder", "");
}
clearInterval(_gameoverinterval);
_root.__gameover_mc = _root.attachMovie("_g2w_gameover_mc", "mc_gameover", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2});
if (_root.obj_game._gstatus == "gameover") {
_root.__gameover_mc.gotoAndStop("g2w_gameover");
if (showskip) {
_root.__gameover_mc.panel_btn.gotoAndStop("skip");
}
}
}
function g2w_playagain(resetlevel) {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
if (resetlevel) {
_root.level = 1;
_root.gotoAndStop("lblgameintro");
_root.gameIntro_mc.gotoAndStop("lblgameintro");
}
_root.myGame.gotoAndStop(1);
}
function g2w_skiplevel() {
_root.__gameover_mc.removeMovieClip();
_root.score = 0;
_root.level++;
_root.myGame.gotoAndStop(1);
}
var obj_game = new Array();
obj_game._host = "gog";
obj_game._gameName = "american_truck";
obj_game._gameTitle = "American Truck";
obj_game._g2wGameId = "10019";
obj_game._partnerGameId = "americantruck";
obj_game._gstatus = "gameover";
obj_game._googleText = "American Truck";
obj_game._gameStageW = 800;
obj_game._gameStageH = 600;
obj_game._gameScoreOrder = "desc";
obj_game._gstatus = "gameover";
obj_game._gameResolution = (Stage.width + "x") + Stage.height;
obj_game.g2wBot = "";
obj_game.g2wBotId = 10019;
obj_game.videoID = "a52qXkaYYsY";
obj_game.facebookURL = "http://apps.facebook.com/american-truck/?utm_source=gangofgamers&utm_medium=strip&utm_campaign=Referrers_american-truck";
obj_game.inviziads = (((("http://s1.inviziads.com/lookup.html?g=" + obj_game._g2wGameId) + "&h=") + obj_game._host) + "&l=") + obj_game._gameLanguage;
var obj_partner = new Array();
obj_partner.partner_name = "gog";
obj_partner.partner_id = 1;
obj_partner.invalid_txt = "Invalid Nickname!";
obj_partner.show_submit = false;
obj_partner.submitURL = "/submit_score.asp";
obj_partner.top10URL = "/get_top_scorer.asp";
obj_partner.lblsubmit = "Enter your GangofGamers Nickname below";
obj_partner.show_g2w_slate = true;
obj_partner.show_register = true;
obj_partner.text_register = "Create Nickname";
obj_partner.url_register = "/register.asp";
obj_partner.clickthru = "http://www.gangofgamers.com/";
obj_partner._allowclick = true;
_validateHost = function (mcpath) {
var _local2 = mcpath;
_local2.overlay_btn.useHandCursor = false;
if (_root.obj_game._gstatus == "gameover") {
_initGameOver(_local2);
} else if (_root.checkhost()) {
_initLoginPanel(_local2);
} else {
_initAlientHost(_local2);
}
};
_initGameOver = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_gameover");
_local2.panel_btn.playagain_btn.onRelease = function () {
_root.g2w_playagain();
};
_local2.panel_btn.skiplvl_btn.onRelease = function () {
_root.g2w_skiplevel();
};
};
_initLoginPanel = function (mcpath) {
var mc = mcpath;
mc.gotoAndStop("g2w_login");
Selection.setFocus("username_txt");
mc.username_txt.onSetFocus = function () {
if (this.text == obj_partner.invalid_txt) {
this.text = "";
}
};
mc.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
mc.nickname_btn.onRelease = function () {
getURL (_root.obj_partner.url_register, "_blank");
};
mc.submit_btn.onRelease = function () {
_root._scoreSubmit(mc);
};
};
_initAlientHost = function (mcpath) {
var _local2 = mcpath;
_local2.gotoAndStop("g2w_alienhost");
_local2.playagain_btn.onRelease = function () {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain(true);
};
};
_scoreSubmit = function (mcpath) {
var mc = mcpath;
myname = _root.partner_uname;
myscore = _root.partner_score;
mygameid = _root.obj_game._g2wGameId;
myname = myname.trim();
if (((myname.length == 0) or (myname == obj_partner.invalid_txt)) or (myname == undefined)) {
_root.partner_uname = obj_partner.invalid_txt;
} else {
mc.gotoAndStop("g2w_status");
mc.tryagain_btn._visible = false;
_root.send_lv = new LoadVars();
_root.send_lv.onLoad = function (success) {
if (success) {
if (_root.send_lv.isreg == 0) {
mc.status_txt.text = obj_partner.invalid_txt;
mc.tryagain_btn._visible = true;
mc.tryagain_btn.onRelease = function () {
_initLoginPanel(mc);
};
} else if (_root.send_lv.isreg == 1) {
mc.status_txt.text = "";
_root._getTop10(mc);
}
} else {
mc.status_txt.text = "Error in Connection...!";
mc.tryagain_btn._visible = true;
mc.tryagain_btn.onRelease = function () {
_initLoginPanel(mc);
};
}
};
_root.send_lv.nickname = myname;
_root.send_lv.points = myscore;
_root.send_lv.gameid = mygameid;
_root.send_lv.sendAndLoad(obj_partner.submitURL, _root.send_lv, "POST");
mc.status_txt.text = "Connecting to Server...";
}
};
c_fail = 0;
_getTop10 = function (mcpath) {
var mc = mcpath;
_root.send_lv = new XML();
_root.rst_lv = new XML();
mc.gotoAndStop("g2w_status");
_root.rst_lv.onLoad = function (success) {
if (success) {
var _local3 = new it.sephiroth.XML2Object();
mc.status_txt.text = "";
var _local4 = _local3.parseXML(this);
_initTop10(mc, _local4);
} else {
_root.c_fail++;
if (_root.c_fail >= 3) {
mc.status_txt.text = "Error!";
tryagain_btn._visible = true;
mc.tryagain_btn.onRelease = function () {
_initLoginPanel(mc);
};
} else {
_root.send_lv.sendAndLoad(url, _root.rst_lv, "POST");
}
}
};
var url = ((((((obj_partner.top10URL + "?game_id=") + _root.obj_game._g2wGameId) + "&order=") + obj_game._gameScoreOrder) + "&timspam") + getTimer());
mc.status_txt.text = "Connecting to Server...";
_root.send_lv.sendAndLoad(url, _root.rst_lv, "POST");
};
_initTop10 = function (mcpath, list) {
var _local3 = mcpath;
_local3.gotoAndStop("g2w_top10");
if ((list.top_score.status.data == 0) or (list.top_score.user[0].score.data == 0)) {
_top10_lbl._visible = false;
var _local2 = 0;
while (_local2 < 10) {
_local3["row" + _local2]._visible = false;
_local2++;
}
} else {
_noscore_mc._visible = false;
var _local2 = 0;
while (_local2 < 10) {
if ((list.top_score.user[_local2] == undefined) or (list.top_score.user[_local2].score.data == 0)) {
_local3["row" + _local2].txtrollno.text = "";
_local3["row" + _local2].txtusername.text = "";
_local3["row" + _local2].txtscore.text = "";
} else {
_local3["row" + _local2].txtrollno.text = _local2 + 1;
_local3["row" + _local2].txtusername.text = list.top_score.user[_local2].nick_name.data;
_local3["row" + _local2].txtscore.text = list.top_score.user[_local2].score.data;
}
_local2++;
}
}
_local3.playagain_btn.onRelease = function () {
_root.g2w_playagain(true);
};
};
var g2w_menu = new ContextMenu();
g2w_menu.hideBuiltInItems();
g2w_menu.customItems.push(new ContextMenuItem("gangofgamers.com", itemHandler));
itemHandler = function (obj, item) {
getURL (obj_partner.clickthru, "_blank");
};
this.menu = g2w_menu;
checkhost = function () {
trace("CALL CHECKHOST");
swfurl = this._url;
if (swfurl.indexOf("gangofgamers.com") == -1) {
return(false);
}
return(true);
};
_trackClickThru = function (mc) {
if (obj_partner._allowclick) {
mc.hit_area.onRelease = function () {
getURL (obj_partner.clickthru, "_blank");
};
} else {
mc.hit_area.useHandCursor = false;
}
};
String.prototype.trim = function () {
var _local3 = 0;
var _local2 = this.length;
white = new Object();
white._32 = 1;
_local2--;
while (white["_" + ord(this.charAt(_local2))]) {
}
while (white["_" + ord(this.charAt(_local3++))]) {
}
return(this.slice(_local3 - 1, _local2 + 1));
};
MovieClip.prototype.tabEnabled = false;
Button.prototype.tabEnabled = false;
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function playAgain() {
_root.g2w_playagain(true);
}
function restart() {
_root.g2w_playagain(true);
}
var newMenu = new ContextMenu();
_root.playIntro = true;
_root.allSounds = new Sound();
_root.score = 0;
_root.timeScore = 0;
_root.levelScore = 0;
_root.isPause = false;
_root.maxLevels = 10;
_root.levelArray = new Array(1 + _root.maxLevels);
i = 0;
while (i < maxLevels) {
_root.levelArray[i] = "lbllevel" + (i + 1);
i++;
}
_root.levelArray[maxLevels] = "win";
_root.level = 1;
_root.playIntroSound = true;
_root.debug = false;
Frame 9
stop();
Frame 18
stop();
Frame 26
stop();
Frame 36
stop();
_root.myGame = _root.game_mc;
Symbol 745 MovieClip Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
clearInterval(tint1);
Stage.scaleMode = "showAll";
_root.play();
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
if (success) {
parse_iads(lv_result);
} else {
Stage.scaleMode = "showAll";
_root.play();
}
};
lv_iads.sendAndLoad(adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function time_delay() {
var _local1 = 0;
tint1 = setInterval(timespam, 1000);
}
function timespam() {
tim++;
trace(((tim + " tim Tim") + " show_time") + show_time);
if (isNaN(tim)) {
clearInterval(tint1);
Stage.scaleMode = "showAll";
trace(Stage.scaleMode);
} else if (tim == show_time) {
clearInterval(tint1);
Stage.scaleMode = "showAll";
_root.play();
trace(Stage.scaleMode);
}
}
function create_assets(mc, _type) {
mc.createEmptyMovieClip("whitebg", 0);
whitebg.beginFill(16777215);
whitebg.moveTo(0, 0);
whitebg.lineTo(0, 0);
whitebg.lineTo(stageWidth, 0);
whitebg.lineTo(stageWidth, stageHeight + 20);
whitebg.lineTo(0, stageHeight + 20);
whitebg.endFill();
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local3 = new TextFormat();
_local3.align = "center";
_local3.font = "Verdana";
_local3.size = 10;
var _local2 = new TextFormat();
_local2.align = "right";
_local2.font = "Verdana";
_local2.size = 10;
_local2.underline = true;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("m_txt", mc.getNextHighestDepth(), 0, 0, 120, 22);
b_txt.autoSize = true;
m_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
m_txt.selectable = false;
m_txt.html = true;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local3);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local3);
m_txt.setNewTextFormat(_local2);
h_txt.text = "";
mc.createEmptyMovieClip("progressBar", 500);
}
}
function onLoadInit(mc) {
time_delay();
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
h_txt.text = "Advertisement";
loadMessages();
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start = function () {
game_fps = getFps();
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.start();
progressBar.onEnterFrame = function () {
this.start();
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
b_txt.text = "Note\rClicking on the above Ad won't interrupt your game.\rAd link opens in a new window.";
myself._y = b_txt._y - 10;
x = (stageWidth / 2) - (ad_width / 2);
y = (stageHeight / 2) - (ad_height / 2);
mc._x = x;
mc._y = y;
h_txt._x = (x + (ad_width / 2)) - (h_txt._width / 2);
h_txt._y = y - 20;
progressBar._x = (x + (ad_width / 2)) - (progressBar._width / 2);
progressBar._y = (y + 5) + ad_height;
myself.invizi_logo._alpha = 100;
myself.invizi_logo.swapDepths(myself.getNextHighestDepth());
myself.invizi_logo._x = int(progressBar._x);
myself.invizi_logo._y = int(progressBar._y + progressBar._height) + 5;
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 3;
myself.invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/index.html?utm_source=4_1&utm_medium=logo&utm_content=default&utm_campaign=invizi", "_blank");
};
b_txt._x = (x + (ad_width / 2)) - (b_txt._width / 2);
b_txt._y = progressBar._y + 38;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function loadMessages() {
lv_messages = new XML();
lv_messages.ignoreWhite = true;
lv_messages.onLoad = function (success) {
if (success) {
totalNodes = lv_messages.firstChild.childNodes.length;
ran = Math.floor(Math.random() * totalNodes);
if (lv_messages.firstChild.childNodes[ran].firstChild == undefined) {
m_txt.htmlText = "<font color='#0066CC'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
} else {
m_txt.htmlText = ((("<font color='#0066CC'><a href='" + lv_messages.firstChild.childNodes[ran].attributes.link) + "' target='_blank'>") + lv_messages.firstChild.childNodes[ran].firstChild) + "</a></font>";
}
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
} else {
m_txt.htmlText = "<font color='#0066CC'><a href='http://inviziads.com' target='_blank'>Advertisers, try us out for US$250</a></font>";
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
}
};
lv_messages.load(messageURL);
}
function pushdata() {
holder.obj_iads = _global.obj_iads;
}
function startdatapush(mc) {
var _local2;
_local2 = setInterval(this, "pushdata", 10);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
myself.createEmptyMovieClip("holder", 100);
var _local5 = _global.obj_iads.url;
obj_iads = _global.obj_iads;
var _local3 = new Object();
_local3.onLoadComplete = function (target_mc) {
};
var _local4 = new MovieClipLoader();
_local4.addListener(_local3);
_local4.loadClip(_global.obj_iads.url, holder);
} else {
brain();
}
clearInterval(this._parent._parent.int1);
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
function measureComScore() {
var _local1 = new LoadVars();
var _local2 = new LoadVars();
_local1.C1 = 7;
_local1.C2 = 5799339 /* 0x587DAB */;
_local1.C3 = 1;
var _local3 = "http://beacon.scorecardresearch.com/scripts/beacon.dll";
_local1.sendAndLoad(_local3, _local2, "GET");
_local2.onLoad = function (ok) {
if (ok) {
trace("Comscore Success");
} else {
trace("Comscore failed");
}
};
}
System.security.allowDomain("*");
System.security.allowInsecureDomain("*");
var time = 0;
var tim = 0;
var show_time = 0;
var tempo = 0;
var tint1;
var stageWidth = 0;
var stageHeight = 0;
getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps != 0) && (game_fps != undefined)) {
if (Stage.width > 0) {
stageWidth = Stage.width;
stageHeight = Stage.height;
get_iads();
this.onEnterFrame = null;
}
}
};
myself = this;
signal = true;
var purl = flash.external.ExternalInterface.call("document.URL.toString");
var hurl = escape(_root._url);
var adurl = "http://s1.inviziads.com/lookup.html?";
adurl = adurl + "g=10019";
adurl = adurl + "&h=gog";
adurl = adurl + "&type=pre";
adurl = adurl + "&v=5_0";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
adurl = adurl + "&l=en";
var my_date = new Date();
adurl = adurl + ("&ts=" + my_date.getSeconds());
var messageURL = "http://s1.inviziads.com/template/invizi_messages.xml";
stop();
Stage.scaleMode = "noScale";
Stage.align = "TL";
if ((purl.indexOf(".gangofgamers.com") == -1) && (hurl.indexOf(".gangofgamers.com") == -1)) {
measureComScore();
}
_root.stop();
Symbol 6 MovieClip Frame 1
stop();
Symbol 6 MovieClip Frame 2
stop();
Symbol 34 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 44 MovieClip Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
trace("_global.obj_iads.link " + _global.obj_iads.link);
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
_parent._visible = 0;
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
trace("success " + success);
if (success) {
parse_iads(lv_result);
myself.attachMovie("invizi_logo", "invizi_logo", this.getNextHighestDepth(), {_x:Stage.width - 120, _y:Stage.height - 20});
}
};
lv_iads.sendAndLoad(adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function create_assets(mc, _type) {
trace((("Create _ assets " + mc) + " ") + _type);
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local2 = new TextFormat();
_local2.align = "center";
_local2.font = "Verdana";
_local2.size = 10;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
b_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local2);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local2);
h_txt.text = "";
}
}
function onLoadInit(mc) {
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
_x = ((336 - ad_width) / 2);
_y = ((280 - ad_height) / 2);
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar.start = function () {
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.onEnterFrame = function () {
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start();
x = 0;
y = 0;
mc._x = x;
mc._y = y;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
this.createEmptyMovieClip("holder", 100);
var _local5 = _global.obj_iads.url;
_root.obj_iads = _global.obj_iads.payload;
holder.loadMovie(_global.obj_iads.url);
holder.obj_iads = _root.obj_iads;
show_time = 20;
} else {
if (((_global.obj_iads.htmlPostRoll != undefined) && (purl != null)) && (purl.indexOf("gangofgamers.com") != -1)) {
trace(purl.indexOf("gangofgamers.com") != -1);
var _local4 = flash.external.ExternalInterface.call("inviziShowHtmlPostRoll", _global.obj_iads.htmlPostRoll);
}
if (((_local4 != null) && (purl != null)) && (purl.indexOf("gangofgamers.com") != -1)) {
this._parent._visible = false;
} else {
brain();
}
}
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
System.security.allowDomain("*");
this.getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps ne 0) and (game_fps ne undefined)) {
this.onEnterFrame = null;
}
};
myself = this;
signal = true;
var purl = flash.external.ExternalInterface.call("document.URL.toString");
var hurl = escape(_root._url);
adurl = _root.obj_game.inviziads;
adurl = adurl + "&type=post&v=2_0";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
adurl = adurl + ("&ts=" + getTimer());
trace(adurl);
get_iads();
stop();
Symbol 46 MovieClip Frame 1
invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/", "_blank");
};
Symbol 65 Button
on (release) {
trace("CALLING : _root.g2w_playagain()");
_root.g2w_playagain();
}
Symbol 68 Button
on (release) {
trace("CALLING : _root.g2w_skiplevel()");
_root.g2w_skiplevel();
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
video_btn.onRelease = function () {
if (flash.external.ExternalInterface.available) {
flash.external.ExternalInterface.call("createpop");
} else {
getURL ("javascript:createpop()");
}
};
Symbol 71 MovieClip Frame 3
stop();
share_btn.onRelease = function () {
getURL (_root.obj_game.facebookURL, "_blank");
};
video_btn.onRelease = function () {
getURL ((("http://www.gangofgamers.com/videotutorial.html?url=" + _root.obj_game.videoID) + "&name=") + _root.obj_game._gameTitle, "_blank");
};
Symbol 88 MovieClip [_g2w_gameover_mc] Frame 1
stop();
_root._validateHost(this);
Symbol 88 MovieClip [_g2w_gameover_mc] Frame 2
stop();
Symbol 88 MovieClip [_g2w_gameover_mc] Frame 11
stop();
Symbol 88 MovieClip [_g2w_gameover_mc] Frame 20
stop();
share_btn.onRelease = function () {
getURL (_root.obj_game.facebookURL, "_blank");
};
video_btn.onRelease = function () {
getURL ((("http://www.gangofgamers.com/videotutorial.html?url=" + _root.obj_game.videoID) + "&name=") + _root.obj_game._gameTitle, "_blank");
};
Symbol 88 MovieClip [_g2w_gameover_mc] Frame 30
stop();
var purl = flash.external.ExternalInterface.call("document.URL.toString");
if ((purl != null) && (purl.indexOf("gangofgamers.com") != -1)) {
helpers.gotoAndStop(2);
} else {
helpers.gotoAndStop(3);
}
Symbol 88 MovieClip [_g2w_gameover_mc] Frame 41
stop();
Symbol 103 Button
on (press) {
getURL ("http://www.addictinggames.com", blank);
}
Symbol 105 MovieClip [brain_inviziads] Frame 1
function brain() {
create_assets(myself, _global.obj_iads.type);
switch (_global.obj_iads.type) {
case "FULL" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main);
break;
case "EMBED" :
mcLoader.loadClip(_global.obj_iads.url, trgt_main.trgt_ads);
if (_global.obj_iads.link ne undefined) {
trgt_main.onRelease = function () {
getURL (_global.obj_iads.link, "_blank");
};
}
break;
case "NOOP" :
clearInterval(int1);
_root.play();
break;
}
}
function get_iads() {
lv_iads = new XML();
lv_result = new XML();
lv_result.ignoreWhite = true;
lv_result.onLoad = function (success) {
if (success) {
parse_iads(lv_result);
} else {
_root.play();
}
};
lv_iads.g = game_id;
lv_iads.h = "as";
lv_iads.sendAndLoad(_root.adurl, lv_result, "POST");
}
function parse_iads(lv_result) {
_global.obj_iads = new Array();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes.length) {
if (lv_result.firstChild.childNodes[_local2].firstChild.nodeValue != null) {
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = lv_result.firstChild.childNodes[_local2].firstChild.nodeValue;
} else if (lv_result.firstChild.childNodes[_local2].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local4 = 0;
while (_local4 < lv_result.firstChild.childNodes[_local2].childNodes.length) {
_local5[lv_result.firstChild.childNodes[_local2].childNodes[_local4].nodeName] = lv_result.firstChild.childNodes[_local2].childNodes[_local4].firstChild.nodeValue;
_local4++;
}
obj_iads[lv_result.firstChild.childNodes[_local2].nodeName] = _local5;
}
_local2++;
}
show_time = int(_global.obj_iads.t);
check_type();
}
function time_delay() {
tim = 0;
int1 = setInterval(timespam, 1000);
}
function timespam() {
tim++;
if (tim == show_time) {
clearInterval(int1);
_root.play();
}
}
function create_assets(mc, _type) {
mc.createEmptyMovieClip("whitebg", 0);
whitebg.beginFill(16777215);
whitebg.moveTo(0, 0);
whitebg.lineTo(0, 0);
whitebg.lineTo(Stage.width, 0);
whitebg.lineTo(Stage.width, Stage.height + 20);
whitebg.lineTo(0, Stage.height + 20);
whitebg.endFill();
mc.createEmptyMovieClip("trgt_main", 4);
mcLoader = new MovieClipLoader();
mcLoader.addListener(mc);
if (_type != "FULL") {
mc.createEmptyMovieClip("square_mc", 5);
var _local4 = trgt_main.createEmptyMovieClip("trgt_ads", getNextHighestDepth());
var _local3 = new TextFormat();
_local3.align = "center";
_local3.font = "Verdana";
_local3.size = 10;
var _local2 = new TextFormat();
_local2.align = "right";
_local2.font = "Verdana";
_local2.size = 10;
_local2.underline = true;
mc.createTextField("h_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("b_txt", mc.getNextHighestDepth(), 0, 0, 100, 22);
mc.createTextField("m_txt", mc.getNextHighestDepth(), 0, 0, 120, 22);
b_txt.autoSize = true;
m_txt.autoSize = true;
b_txt.selectable = false;
h_txt.selectable = false;
m_txt.selectable = false;
m_txt.html = true;
b_txt.multiline = true;
b_txt.setNewTextFormat(_local3);
h_txt.autoSize = true;
h_txt.setNewTextFormat(_local3);
m_txt.setNewTextFormat(_local2);
loadMessages();
h_txt.text = "";
mc.createEmptyMovieClip("progressBar", 500);
}
}
function onLoadInit(mc) {
ad_width = int(_global.obj_iads.x);
ad_height = int(_global.obj_iads.y);
h_txt.text = "Advertisement";
progressBar.tim = show_time;
progressBar.width = _global.obj_iads.x;
progressBar.height = 15;
progressBar.start = function () {
game_fps = getFps();
maxw = this.width - 2;
this.ad = maxw / (this.tim + 1);
this.ad = this.ad / game_fps;
};
progressBar.onEnterFrame = function () {
if (this.bar._width < (this.width - 2)) {
this.bar._width = this.bar._width + this.ad;
} else {
this.bar._width = this.width;
}
};
progressBar._x = 100;
progressBar._y = 100;
bar_mc = progressBar.createEmptyMovieClip("bar", 1);
box_mc = progressBar.createEmptyMovieClip("box", 2);
bar_mc.beginFill(26112);
bar_mc.moveTo(0, 0);
bar_mc.lineTo(1, 0);
bar_mc.lineTo(1, progressBar.height - 2);
bar_mc.lineTo(0, progressBar.height - 2);
bar_mc.lineTo(0, 0);
bar_mc.endFill();
bar_mc._x = 1.5;
bar_mc._y = 1.5;
box_mc.lineStyle(1, 3355443, 100, true, "none", "round", "miter", 1);
box_mc.lineTo(progressBar.width, 0);
box_mc.lineTo(progressBar.width, progressBar.height);
box_mc.lineTo(0, progressBar.height);
box_mc.lineTo(0, 0);
box_mc._x = 0;
box_mc._y = 0;
progressBar.start();
b_txt.text = "Note\rClicking on the above Ad won't interrupt your game.\rAd link opens in a new window.\rThanks to our sponsors, we provide you free games to play.";
myself._y = b_txt._y - 10;
x = (Stage.width / 2) - (ad_width / 2);
y = (Stage.height / 2) - (ad_height / 2);
mc._x = x;
mc._y = y;
h_txt._x = (x + (ad_width / 2)) - (h_txt._width / 2);
h_txt._y = y - 20;
progressBar._x = (x + (ad_width / 2)) - (progressBar._width / 2);
progressBar._y = (y + 5) + ad_height;
myself.attachMovie("invizi_logo", "invizi_logo", this.getNextHighestDepth() + 100);
myself.invizi_logo.swapDepths(myself.getNextHighestDepth());
myself.invizi_logo._x = int(progressBar._x);
myself.invizi_logo._y = int(progressBar._y + progressBar._height) + 5;
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 3;
myself.invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com", "_blank");
};
b_txt._x = (x + (ad_width / 2)) - (b_txt._width / 2);
b_txt._y = progressBar._y + 38;
square_mc.beginFill(16711680);
square_mc.moveTo(0, 0);
square_mc.lineTo(ad_width, 0);
square_mc.lineTo(ad_width, ad_height);
square_mc.lineTo(0, ad_height);
square_mc.lineTo(0, 0);
square_mc.endFill();
square_mc._x = x;
square_mc._y = y;
trgt_main.setMask(square_mc);
}
function loadMessages() {
lv_messages = new XML();
lv_messages.onLoad = function (success) {
if (success) {
totalNodes = lv_messages.firstChild.childNodes.length;
ran = Math.floor(Math.random() * totalNodes);
trace(lv_messages.firstChild);
if (lv_messages.firstChild.childNodes[ran].firstChild == undefined) {
m_txt.htmlText = "<font color='#ff0000'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
} else {
m_txt.htmlText = ((("<font color='#ff0000'><a href='" + lv_messages.firstChild.childNodes[ran].attributes.link) + "' target='_blank'>") + lv_messages.firstChild.childNodes[ran].firstChild) + "</a></font>";
}
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
} else {
m_txt.htmlText = "<font color='#ff0000'><a href='http://www.inviziads.com/adv-starter-pack.html' target='_blank'>Advertisers, try us out for US$250</a></font>";
m_txt._x = int(progressBar._x + progressBar._width) - m_txt._width;
m_txt._y = int(progressBar._y + progressBar._height) + 2;
}
};
lv_messages.load(_root.messageURL);
}
function pushdata() {
holder.obj_iads = _global.obj_iads;
}
function startdatapush(mc) {
var _local2;
_local2 = setInterval(this, "pushdata", 10);
}
function check_type() {
if (_global.obj_iads.type eq "UPDATE") {
myself.createEmptyMovieClip("holder", 100);
var _local4 = _global.obj_iads.url;
show_time = 15;
obj_iads = _global.obj_iads;
var _local2 = new Object();
_local2.onLoadComplete = function (target_mc) {
};
var _local3 = new MovieClipLoader();
_local3.addListener(_local2);
_local3.loadClip(_global.obj_iads.url, holder);
} else {
brain();
}
time_delay();
}
function parse_xml(mydata) {
var _local4 = new Array();
var _local1 = 0;
while (_local1 < mydata.firstChild.childNodes.length) {
if (mydata.firstChild.childNodes[_local1].firstChild.nodeValue != null) {
_local4[mydata.firstChild.childNodes[_local1].nodeName] = mydata.firstChild.childNodes[_local1].firstChild.nodeValue;
} else if (mydata.firstChild.childNodes[_local1].firstChild.firstChild.nodeValue != null) {
var _local5 = new Object();
var _local2 = 0;
while (_local2 < lv_result.firstChild.childNodes[_local1].childNodes.length) {
_local4[lv_result.firstChild.childNodes[_local1].childNodes[_local2].nodeName] = mydata.firstChild.childNodes[_local1].childNodes[_local2].firstChild.nodeValue;
_local2++;
}
_local4[lv_result.firstChild.childNodes[_local1].nodeName] = _local5;
}
_local1++;
}
return(_local4);
}
System.security.allowDomain("*");
getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
this.onEnterFrame = function () {
game_fps = getFps();
if ((game_fps != 0) && (game_fps != undefined)) {
this.onEnterFrame = null;
}
};
myself = this;
signal = true;
if (_root.checkhost() == false) {
_root.stop();
var my_date = new Date();
_root.adurl = (_root.obj_game.inviziads + "&type=pre&ts=") + my_date.getSeconds();
_root.messageURL = "http://s1.inviziads.com/template/invizi_messages.xml";
get_iads();
} else {
_root.play();
}
Symbol 106 MovieClip [passngrs] Frame 1
gotoAndStop(frmNo);
stop();
Symbol 106 MovieClip [passngrs] Frame 2
stop();
Symbol 106 MovieClip [passngrs] Frame 3
stop();
Symbol 106 MovieClip [passngrs] Frame 4
stop();
Symbol 106 MovieClip [passngrs] Frame 5
stop();
Symbol 106 MovieClip [passngrs] Frame 6
stop();
Symbol 106 MovieClip [passngrs] Frame 7
stop();
Symbol 106 MovieClip [passngrs] Frame 8
stop();
Symbol 106 MovieClip [passngrs] Frame 9
stop();
Symbol 106 MovieClip [passngrs] Frame 10
stop();
Symbol 106 MovieClip [passngrs] Frame 11
stop();
Symbol 106 MovieClip [passngrs] Frame 12
stop();
Symbol 107 MovieClip [empty] Frame 1
function drop() {
if (pCounter <= 8) {
var _local5 = this.attachMovie("passngrs", "passngrs" + pCounter, this.getNextHighestDepth());
trace("pass - " + _local5);
var _local6 = _parent.bus_mc[("pass" + pCounter) + "_mc"].frmNo + 1;
trace("passenger = " + _local5);
this._x = _parent.bus_mc._x;
this._y = _parent.bus_mc._y;
var _local4 = new Object();
_local4.x = _parent.bus_mc[("pass" + pCounter) + "_mc"]._x;
_local4.y = _parent.bus_mc[("pass" + pCounter) + "_mc"]._y;
_local5.gotoAndStop(_local6);
_parent.bus_mc.localToGlobal(_local4);
this.globalToLocal(_local4);
trace("pos = " + _local4);
_local5._x = _local4.x;
_local5._y = _local4.y;
_parent.bus_mc[("pass" + pCounter) + "_mc"]._visible = false;
trace(_parent.bus_mc[("pass" + pCounter) + "_mc"]);
pCounter++;
_root.fall = false;
}
}
_root.i = 1;
var frm = 0;
var angle = _parent.bus_mc.angle;
var pCounter = 1;
var passengerFall = false;
onEnterFrame = function () {
if (_root.isPause == false) {
if (_root.fall == false) {
if (_parent.passngrAni == false) {
this._x = _parent.bus_mc._x;
this._y = _parent.bus_mc._y;
this._rotation = (_parent.bus_mc.angle * 180) / 3.141593;
}
} else if (_root.fall == true) {
if (passengerFall == false) {
passengerFall = true;
_parent.passngrAni = true;
drop();
}
}
if (_parent.bus_mc.passAry.length < _root.minPassengerArray[_root.level - 1]) {
trace("GO");
pCounter = 1;
passengerFall = false;
_parent.restart();
_parent.lifePopUp.gotoAndStop(1);
}
}
};
Symbol 115 MovieClip [game_sound_ctrl] Frame 1
_gameSounds = new Sound();
var frame = "on";
changeVol = function (targetvol, step) {
this.onEnterFrame = function () {
var _local3 = _gameSounds.getVolume();
if ((step < 0) and (_local3 <= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 1;
} else if ((step > 0) and (_local3 >= targetvol)) {
_local3 = targetvol;
delete this.onEnterFrame;
_root.so_sound = 0;
} else {
_gameSounds.setVolume(_local3 + step);
}
};
};
if (_root.so_sound == 1) {
frame = "off";
this.gotoAndPlay(frame);
}
this.onRelease = function () {
if (frame == "on") {
frame = "off";
} else {
frame = "on";
}
this.gotoAndPlay(frame);
};
Symbol 115 MovieClip [game_sound_ctrl] Frame 2
stop();
changeVol(100, 5);
Symbol 115 MovieClip [game_sound_ctrl] Frame 3
stop();
changeVol(0, -5);
Symbol 741 MovieClip [__Packages.it.sephiroth.XML2Object] Frame 0
class it.sephiroth.XML2Object
{
var oXML;
function XML2Object () {
}
function get xml() {
return(oXML);
}
function parseXML(sFile) {
oResult = new Object();
oXML = sFile;
oResult = translateXML();
return(oResult);
}
function translateXML(from, path, name, position) {
var _local2;
var _local9;
var _local4;
var _local10;
if (path == undefined) {
path = this;
name = "oResult";
}
path = path[name];
if (from == undefined) {
from = new XML(xml.toString());
from.ignoreWhite = true;
}
if (from.hasChildNodes()) {
_local9 = from.childNodes;
if (position != undefined) {
_local10 = path;
path = path[position];
}
while (_local9.length > 0) {
_local4 = _local9.shift();
_local2 = _local4.nodeName;
if (_local2 != undefined) {
var _local5 = new Object();
_local5.attributes = _local4.attributes;
_local5.data = _local4.firstChild.nodeValue;
if (position != undefined) {
_local10 = path;
}
if (path[_local2] != undefined) {
if (path[_local2].__proto__ == Array.prototype) {
path[_local2].push(_local5);
name = _local4.nodeName;
position = path[_local2].length - 1;
} else {
var _local8 = path[_local2];
path[_local2] = new Array();
path[_local2].push(_local8);
path[_local2].push(_local5);
name = _local2;
position = path[_local2].length - 1;
}
} else {
path[_local2] = _local5;
name = _local2;
position = undefined;
}
}
if (_local4.hasChildNodes()) {
translateXML(_local4, path, name, position);
}
}
}
return(oResult);
}
var oResult = new Object();
}
Symbol 742 MovieClip [__Packages.classes.CollisionDetection] Frame 0
class classes.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
if (p_scope == undefined) {
p_scope = p_clip2._parent;
}
var _local3 = p_clip1.getBounds(p_scope);
var _local2 = p_clip2.getBounds(p_scope);
if (((_local3.xMax < _local2.xMin) || (_local2.xMax < _local3.xMin)) || ((_local3.yMax < _local2.yMin) || (_local2.yMax < _local3.yMin))) {
return(null);
}
var _local1 = {};
_local1.xMin = Math.max(_local3.xMin, _local2.xMin);
_local1.xMax = Math.min(_local3.xMax, _local2.xMax);
_local1.yMin = Math.max(_local3.yMin, _local2.yMin);
_local1.yMax = Math.min(_local3.yMax, _local2.yMax);
var _local8 = new flash.display.BitmapData(_local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin, false);
var _local4 = p_clip1.transform.matrix;
_local4.tx = p_clip1._x - _local1.xMin;
_local4.ty = p_clip1._y - _local1.yMin;
_local8.draw(p_clip1, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local4 = p_clip2.transform.matrix;
_local4.tx = p_clip2._x - _local1.xMin;
_local4.ty = p_clip2._y - _local1.yMin;
_local8.draw(p_clip2, _local4, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local8.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local1.xMin;
_local6.y = _local6.y + _local1.yMin;
return(_local6);
}
}
Symbol 125 MovieClip Frame 90
_root.gotoAndStop("lblloader");
Symbol 132 Button
on (release) {
getURL ("http://www.gangofgamers.com", "_blank");
}
Symbol 135 MovieClip Frame 1
stop();
System.security.allowDomain("*");
var GameURL = _root._url;
if ((GameURL.indexOf(".gangofgamers.com") != -1) || (GameURL.indexOf(".games2win.com") != -1)) {
mc_common._visible = false;
} else {
mc_common._visible = true;
var str = ((("http://s1.inviziads.com/lookup.html?type=strip&g=" + _root.obj_game._g2wGameId) + "&h=") + _root.obj_game._host);
loadMovie (str, this.loaderClip);
}
Symbol 140 MovieClip Frame 1
var total = _root.getBytesTotal();
var loaded = 0;
var percent = 0;
onEnterFrame = function () {
if (percent <= 100) {
loaded = _root.getBytesLoaded();
percent = Math.ceil((loaded / total) * 100);
}
if (loaded >= total) {
_root.gotoAndStop("lblgameintro");
}
};
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 1
if (!_root.playIntro) {
gotoAndStop(_totalframes);
}
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
_root.playIntro = false;
Symbol 221 MovieClip Frame 2
stop();
story_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("story");
};
instructions_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("instructions");
};
start_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("forcehelp");
};
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 235 MovieClip Frame 1
back_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("lblgameintro");
};
Symbol 252 MovieClip Frame 1
back_btn.onRelease = function () {
_root.gameIntro_mc.gotoAndStop("lblgameintro");
};
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Symbol 254 MovieClip Frame 1
gotoAndStop ("lblgameintro");
Symbol 254 MovieClip Frame 9
stop();
if (_root.playIntroSound) {
stopAllSounds();
sound_mc.gotoAndStop(2);
}
_root.playIntroSound = false;
Symbol 254 MovieClip Frame 18
stop();
Symbol 254 MovieClip Frame 23
stop();
Symbol 254 MovieClip Frame 33
stop();
start_btn.onRelease = function () {
_root.gotoAndStop("lblgame");
};
Symbol 269 MovieClip Frame 1
onLoad = function () {
counter = 0;
};
onEnterFrame = function () {
if (this.hitTest(_parent.bus_mc)) {
if ((((((((this.hitTest(_parent.bus_mc.hit1_mc) && (this.hitTest(_parent.bus_mc.hit2_mc))) && (this.hitTest(_parent.bus_mc.hit3_mc))) && (this.hitTest(_parent.bus_mc.hit4_mc))) && (this.hitTest(_parent.bus_mc.hit5_mc))) && (this.hitTest(_parent.bus_mc.hit6_mc))) && (this.hitTest(_parent.bus_mc.hit7_mc))) && (this.hitTest(_parent.bus_mc.hit8_mc))) && (_parent.bus_mc.speed == 0)) {
counter++;
trace(counter);
if (counter >= 10) {
_root.parkScore = 5000;
if (_root.level < 11) {
_root.myGame.gotoAndStop("levelComplete");
} else {
_root.myGame.gotoAndStop("win");
}
}
}
} else {
counter = 0;
}
};
Symbol 288 MovieClip Frame 1
stop();
Symbol 288 MovieClip Frame 50
this._parent.startAgain();
trace("called startAgain");
Symbol 298 MovieClip Frame 1
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 50
this._parent.startAgain();
trace("called startAgain");
Symbol 326 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 50
this._parent.startAgain();
trace("called startAgain");
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 50
this._parent.startAgain();
trace("called startAgain");
Symbol 349 MovieClip Frame 1
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
function startAgain() {
trace("inside startAgain function");
this._x = xpos;
this._y = ypos;
var _local2 = randomRange(1, 2);
while (_local2 == _currentframe) {
_local2 = randomRange(1, 2);
}
gotoAndStop(_local2);
ped_mc._visible = true;
ped_die_mc._visible = false;
}
var frmNo = randomRange(1, 4);
gotoAndStop(frmNo);
var speed = 0.75;
var ypos = this._y;
var speed1 = speed;
onEnterFrame = function () {
if (_root.isPause == false) {
if (ped_mc._visible == true) {
if (this.hitTest(_parent.bus_mc)) {
this.shade._visible = false;
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
ped_mc._visible = false;
if (ped_die_mc._currentframe == 1) {
_root.killed++;
ped_die_mc.gotoAndPlay(2);
ped_die_mc._visible = true;
}
}
}
if (this.guy.hitTest(_parent.hitLine4Wlkr_mc) || (this.guy.hitTest(_parent.hitLine4WlkrY_mc))) {
this._y = ypos;
speed = randomRange(0.5, 1);
speed1 = speed;
if (_currentframe == 4) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
} else {
this.shade._visible = true;
if (this.shade.hitTest(_parent.bus_mc)) {
return(undefined);
}
this._y = this._y + (dirn * speed);
}
}
}
};
stop();
Instance of Symbol 288 MovieClip "ped_die_mc" in Symbol 349 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 349 MovieClip Frame 2
stop();
Instance of Symbol 312 MovieClip "ped_die_mc" in Symbol 349 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 349 MovieClip Frame 3
stop();
Instance of Symbol 326 MovieClip "ped_die_mc" in Symbol 349 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
}
Symbol 349 MovieClip Frame 4
stop();
Instance of Symbol 346 MovieClip "ped_die_mc" in Symbol 349 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Symbol 436 MovieClip [explode_001] Frame 13
_root.blasted = _root.blasted + 1;
_parent._visible = false;
Symbol 436 MovieClip [explode_001] Frame 31
_parent._parent.lifeLose = false;
this._parent.startAgain();
stop();
Symbol 437 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
function startAgain() {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
this._rotation = 90;
this._visible = true;
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 6;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this._x <= 700) {
this._x = this._x + speed;
} else {
this._x = xpos;
}
if ((_parent.ped_mc._y > -121) && (_parent.ped_mc._y < -26)) {
if ((this._x > 50) && (this._x <= 80)) {
speed = 0;
}
} else {
speed = 4;
}
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
_root.fall = true;
_parent.restart();
hit = true;
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y + skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.8;
if (skidSpeed < 2) {
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 437 MovieClip Frame 2
stop();
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 19
stop();
_root.isPause = false;
_root.myGame.gotoAndStop("gameOver");
Symbol 460 MovieClip Frame 1
function reduceHealth(prop) {
_root.health = _root.health - prop;
if (_root.health <= 0) {
_root.health = 100;
}
}
function adjust(v, threshold, maximum) {
vx = 0;
if (v <= threshold) {
vx = (v / threshold) * 1;
} else {
vx = 1;
}
return(vx);
}
function hitAreaCollision() {
if ((classes.CollisionDetection.checkForCollision(this, _parent.hitClip) != undefined) || (classes.CollisionDetection.checkForCollision.checkCollision(this, _parent.hitClip) != null)) {
return(true);
}
return(false);
}
function move() {
if (!collided) {
this._rotation = (angle * 180) / 3.141593;
UD = Key.isDown(38) - Key.isDown(40);
LR = (Key.isDown(39) - Key.isDown(37)) / 2;
HAND = Key.isDown(32);
if (LR) {
oldAngle = angle;
angle = angle + (((LR * UD) * steer) * adjust(Math.abs(speed), steer_threshold, MAXSpd));
} else {
turnskidding = false;
}
if (!UD) {
speed = speed * drift;
} else if (UD & (!HAND)) {
speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd);
}
if (Math.abs(speed) < (accel / 2)) {
speed = 0;
}
if (HAND) {
speed = speed * handbrake;
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
}
traction = handbrake_traction / surface;
} else {
skidding = false;
traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface));
steer = steer_normal;
}
if (speed <= 0) {
traction = 1;
}
vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction);
vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction);
var _local3 = hitAreaCollision();
if (!_local3) {
oldXPos = this._x;
oldYPos = this._y;
oldRotation = this._rotation;
xposArray.unshift(oldXPos);
yposArray.unshift(oldYPos);
rotArray.unshift(oldRotation);
if (xposArray.length > 5) {
xposArray.pop();
yposArray.pop();
rotArray.pop();
}
}
this._x = this._x + vector[0];
this._y = this._y + vector[1];
}
var _local4 = hitAreaCollision();
if (_local4) {
collided = true;
if (Math.abs(speed) > 1) {
_root.fall = true;
}
speed = 0;
this._x = xposArray[xposArray.length - 1];
this._y = yposArray[yposArray.length - 1];
this._rotation = rotArray[rotArray.length - 1];
vector[0] = 0;
vector[1] = 0;
angle = (this._rotation / 180) * 3.141593;
} else {
collided = false;
}
}
function restartBus() {
no = 0;
collided = false;
passAry = ["pass1", "pass2", "pass3", "pass4", "pass5", "pass6", "pass7", "pass8"];
this._x = xpos;
this._y = ypos;
this._rotation = initAngle;
angle = (this._rotation / 180) * 3.141593;
speed = 0;
pass1_mc._visible = true;
pass2_mc._visible = true;
pass3_mc._visible = true;
pass4_mc._visible = true;
pass5_mc._visible = true;
pass6_mc._visible = true;
pass7_mc._visible = true;
pass8_mc._visible = true;
vector[0] = 0;
vector[1] = 0;
}
function checkHitTestLeft() {
var _local3 = new Object();
_local3.x = hit1_mc._x;
_local3.y = hit1_mc._y;
var _local4 = new Object();
_local4.x = hit7_mc._x;
_local4.y = hit7_mc._y;
this.localToGlobal(_local3);
this.localToGlobal(_local4);
if (_parent.hitClip.hitTest(_local3.x, _local3.y, true) || (_parent.hitClip.hitTest(_local4.x, _local4.y, true))) {
return(true);
}
return(false);
}
function checkHitTestRight() {
var _local3 = new Object();
_local3.x = hit3_mc._x;
_local3.y = hit3_mc._y;
var _local4 = new Object();
_local4.x = hit5_mc._x;
_local4.y = hit5_mc._y;
this.localToGlobal(_local3);
this.localToGlobal(_local4);
if (_parent.hitClip.hitTest(_local3.x, _local3.y, true) || (_parent.hitClip.hitTest(_local4.x, _local4.y, true))) {
return(true);
}
return(false);
}
var accel = 0.3;
var steer = 0.04;
var steer_normal = 0.08;
var steer_handbrake = 0.099;
var steer_threshold = 4;
var MINspd = -5;
var MAXspd = 15;
var MAXskiddisplay = 2;
var MAXturnSpd = 10;
var MaxTurnSkid = 18;
var deccel = 0.92;
var handbrake = 0.33;
var handbrake_traction = 20;
var drift = 0.58;
var speed = 0;
var surface = 3;
var traction = 2;
var traction_max = 1;
var skidSpeed = 15;
var vector = [0, 0];
var angle = ((this._rotation / 180) * 3.141593);
var skidding = false;
var turnskidding = false;
var hit = false;
var oldAngle = angle;
var xpos = this._x;
var ypos = this._y;
var initAngle = this._rotation;
var xposArray = new Array();
var yposArray = new Array();
var rotArray = new Array();
var no = 0;
var passAry = ["pass1", "pass2", "pass3", "pass4", "pass5", "pass6", "pass7", "pass8"];
onEnterFrame = function () {
if (_root.isPause == false) {
move();
}
};
Symbol 469 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
onEnterFrame = function () {
if (_root.isPause == false) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
}
}
}
};
Symbol 476 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
onEnterFrame = function () {
if (_root.isPause == false) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
if (this.getDepth() > this._parent.bus_mc.getDepth()) {
this.swapDepths(_parent.bus_mc);
}
this.gotoAndStop(2);
trace("move up");
}
}
}
};
stop();
Symbol 476 MovieClip Frame 2
stop();
Symbol 483 Button
on (release) {
_root.isPause = false;
gotoAndStop (2);
}
Symbol 484 MovieClip Frame 1
_root.infoText = "Dammit! You lost a chance!";
_root.isPause = true;
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 487 Button
on (release) {
_root.isPause = false;
gotoAndStop (2);
}
Symbol 488 MovieClip Frame 1
stop();
_root.isPause = false;
gotoAndStop (2);
Symbol 488 MovieClip Frame 2
stop();
Symbol 489 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
_root.isPause = false;
_root.score = 0;
_root.levelScore1 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
_root.life = 3;
var lifeLose = false;
_root.health = 100;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (fall == true) {
}
};
Instance of Symbol 349 MovieClip "ped_mc" in Symbol 489 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
Symbol 502 MovieClip Frame 1
var countDown = true;
var minutes = 1;
var maxTime = 30;
trace(maxTime);
if (!countDown) {
_root.time = 0;
} else {
_root.time = maxTime;
}
var timer = 0;
onEnterFrame = function () {
if (!_root.isPause) {
_root.bonus = _root.time * 50;
if (timer <= (maxTime * 24)) {
timer++;
if (!countDown) {
_root.time = Math.round(timer / 24);
} else {
_root.time = maxTime - Math.round(timer / 24);
}
} else {
_root.gamOvrTxt = 2;
_root.myGame.gotoAndStop("gameOver");
}
}
};
Symbol 505 MovieClip Frame 1
Symbol 505 MovieClip Frame 2
stop();
Symbol 509 MovieClip Frame 1
function randomRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
function startAgain() {
trace("inside startAgain function");
this._y = ypos;
this._x = xpos;
var _local2 = randomRange(1, 4);
while (_local2 == _currentframe) {
_local2 = randomRange(1, 4);
}
gotoAndStop(_local2);
ped_mc._visible = true;
ped_die_mc._visible = false;
}
var frmNo = randomRange(1, 4);
gotoAndStop(frmNo);
var speed = 0.75;
var xpos = this._x;
onEnterFrame = function () {
if (_root.isPause == false) {
if (ped_mc._visible == true) {
if (this.hitTest(_parent.bus_mc)) {
this.shade._visible = false;
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
trace("inside kill");
ped_mc._visible = false;
if (ped_die_mc._currentframe == 1) {
_root.killed++;
ped_die_mc.gotoAndPlay(2);
ped_die_mc._visible = true;
}
}
}
if (this.guy.hitTest(_parent.hitLine4WlkrX_mc)) {
trace("movehit");
this._x = xpos;
speed = randomRange(0.5, 1);
speed1 = speed;
if (_currentframe == 4) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 1);
}
} else {
this.shade._visible = true;
if (this.shade.hitTest(_parent.bus_mc)) {
speed = 0;
} else {
speed = 0.75;
}
this._x = this._x + (dirn * speed);
trace(dirn * speed);
}
}
}
};
stop();
Instance of Symbol 288 MovieClip "ped_die_mc" in Symbol 509 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 509 MovieClip Frame 2
stop();
Instance of Symbol 312 MovieClip "ped_die_mc" in Symbol 509 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
Symbol 509 MovieClip Frame 3
stop();
Instance of Symbol 326 MovieClip "ped_die_mc" in Symbol 509 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
}
Symbol 509 MovieClip Frame 4
stop();
Instance of Symbol 346 MovieClip "ped_die_mc" in Symbol 509 MovieClip Frame 4
onClipEvent (load) {
this._visible = false;
}
Symbol 534 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 6;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
_parent.bus_mc.hit = true;
hit = true;
_parent.restart();
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 539 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
_root.levelScore2 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 349 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
Instance of Symbol 349 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
Instance of Symbol 509 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
var dirn = 1;
}
Instance of Symbol 509 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
var dirn = 1;
}
Instance of Symbol 534 MovieClip in Symbol 539 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
this._rotation = 0;
}
}
movable = false;
}
Symbol 549 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 6;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
hit = true;
_parent.bus_mc.hit = true;
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
_parent.restart();
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 572 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = ((_parent.time[_root.level - 1] * 60) * 24);
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
_root.levelScore3 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 534 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
movable = false;
}
Instance of Symbol 549 MovieClip "blackCab_mc" in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
_visible = true;
this.gotoAndStop(1);
this._rotation = 90;
}
}
var dirn = 1;
var speed = 5;
var xpos = this._x;
movable = true;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this._x <= 1500) {
this._x = this._x + speed;
} else {
this._x = xpos;
}
}
}
Instance of Symbol 349 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
onClipEvent (enterFrame) {
if ((this._y >= 623) && (this._y <= 690)) {
if (((this._x - _parent.blackCab_mc._x) <= 300) && ((this._x - _parent.blackCab_mc._x) >= -50)) {
this.speed = 0;
} else {
this.speed = this.speed1;
}
}
}
Instance of Symbol 349 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
onClipEvent (enterFrame) {
if ((this._y >= 623) && (this._y <= 690)) {
if (((this._x - _parent.blackCab_mc._x) <= 300) && ((this._x - _parent.blackCab_mc._x) >= -50)) {
this.speed = 0;
} else {
this.speed = this.speed1;
}
}
}
Instance of Symbol 349 MovieClip in Symbol 572 MovieClip Frame 1
onClipEvent (load) {
var dirn = 1;
}
onClipEvent (enterFrame) {
if ((this._y >= 530) && (this._y <= 560)) {
if (((this._x - _parent.blackCab_mc._x) <= 300) && ((this._x - _parent.blackCab_mc._x) >= -50)) {
this.speed = 0;
} else {
this.speed = this.speed1;
}
}
}
Symbol 588 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 6;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
hit = true;
_parent.bus_mc.hit = true;
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
_parent.restart();
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 589 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 6;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
this.shade._visible = false;
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
hit = true;
_parent.bus_mc.hit = true;
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
_parent.restart();
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 589 MovieClip Frame 2
stop();
Symbol 594 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = ((_parent.time[_root.level - 1] * 60) * 24);
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
lifePopUp.gotoAndStop(2);
_root.levelScore4 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 588 MovieClip "cab_mc" in Symbol 594 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
this._visible = true;
hit = false;
this._rotation = 90;
this.gotoAndStop(1);
}
}
var dirn = 1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (speed != 0) {
if (this._x <= 1400) {
this._x = this._x + (dirn * speed);
} else {
this._x = xpos;
}
}
if ((this._x >= 400) && (this._x <= 550)) {
if ((((this._x - _parent.cab1_mc._x) <= -30) && ((this._x - _parent.cab1_mc._x) >= -200)) || (((this._x - _parent.cab2_mc._x) <= -30) && ((this._x - _parent.cab2_mc._x) >= -200))) {
this.speed = 0;
} else {
this.speed = 3;
}
}
}
}
Instance of Symbol 589 MovieClip "cab1_mc" in Symbol 594 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
this._visible = true;
hit = false;
this._rotation = -42;
this.gotoAndStop(1);
}
}
var dirn = -1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (this.shade.hitTest(_parent.cab_mc)) {
return(undefined);
}
if (this._x >= 10) {
this._x = (this._x + (dirn * speed)) + 0.35;
this._y = this._y + (dirn * speed);
} else {
this._x = xpos;
this._y = ypos;
}
}
}
Instance of Symbol 549 MovieClip "cab2_mc" in Symbol 594 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
hit = false;
this._visible = true;
this._rotation = 137;
this.gotoAndStop(1);
}
}
var dirn = 1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (this.shade.hitTest(_parent.cab_mc)) {
return(undefined);
}
if (this._x <= 1400) {
this._x = this._x + (dirn * speed);
this._y = (this._y + (dirn * speed)) + 0.35;
} else {
this._x = xpos;
this._y = ypos;
}
}
}
Symbol 623 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 6;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
hit = true;
_parent.restart();
_parent.bus_mc.hit = true;
}
}
} else if (!movable) {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 626 MovieClip Frame 13
_root.blasted = _root.blasted + 1;
_parent._parent._parent._visible = false;
_parent._parent._parent.bus_mc.reduceHealth(10);
Symbol 626 MovieClip Frame 31
_parent._parent._parent._parent.lifeLose = false;
this._parent._parent._parent.startAgain();
stop();
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 2
stop();
Symbol 629 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var skidSpeed = 10;
var hit = false;
gotoAndStop (1);
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
_root.fall = true;
_root.game_mc.playSquashSound();
_root.blasted = _root.blasted + 1;
_parent.bus_mc.reduceHealth(10);
tangaNw_mc.stop();
tangaNw_mc.spTruck.gotoAndStop(2);
hit = true;
_parent.restart();
_parent.bus_mc.hit = true;
}
}
}
}
};
Symbol 629 MovieClip Frame 2
stop();
trace("gone to 2nd frame");
Symbol 632 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
_root.levelScore5 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 534 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
}
}
movable = false;
}
Instance of Symbol 534 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
}
}
movable = false;
}
Instance of Symbol 534 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
}
}
movable = false;
}
Instance of Symbol 623 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
}
}
movable = false;
}
Instance of Symbol 623 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
}
}
movable = false;
}
Instance of Symbol 629 MovieClip in Symbol 632 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
trace("Parent = " + this._parent);
this._visible = true;
hit = false;
this._alpha = 100;
this.gotoAndStop(1);
this.tangaNw_mc.gotoAndPlay(200);
}
var xpos = this._x;
var ypos = this._y;
hit = false;
}
Symbol 636 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var skidSpeed = 3;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
hit = true;
_parent.bus_mc.hit = true;
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
_parent.restart();
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 636 MovieClip Frame 2
stop();
Symbol 652 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
_root.levelScore6 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 349 MovieClip in Symbol 652 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
onClipEvent (enterFrame) {
if ((this._y <= 590) && (this._y >= 550)) {
if (((this._x - _parent.blueCab_mc._x) <= 460) && ((this._x - _parent.blueCab_mc._x) >= 150)) {
this.speed = 0;
} else {
this.speed = this.speed1;
}
}
}
Instance of Symbol 349 MovieClip in Symbol 652 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
onClipEvent (enterFrame) {
if ((this._y <= 590) && (this._y >= 550)) {
if (((this._x - _parent.blueCab_mc._x) <= 460) && ((this._x - _parent.blueCab_mc._x) >= 150)) {
this.speed = 0;
} else {
this.speed = this.speed1;
}
}
}
Instance of Symbol 636 MovieClip "blueCab_mc" in Symbol 652 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
hit = false;
speed = 3;
this._visible = true;
this._rotation = 90;
this.gotoAndStop(1);
}
}
var dirn = 1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (this._x <= 1400) {
this._x = this._x + (dirn * speed);
} else {
this._x = xpos;
}
}
}
Instance of Symbol 349 MovieClip "ped_mc" in Symbol 652 MovieClip Frame 1
onClipEvent (load) {
var dirn = 1;
var speed = 3;
var xpos = this._x;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (ped_die_mc._visible != true) {
if (speed != 0) {
if (this.hitTest(_parent.hitLine4Wlkr_mc)) {
this._x = xpos;
this._y = ypos;
} else {
this._x = this._x + (dirn * speed);
}
}
if ((this._y <= 465) && (this._y >= 420)) {
if (((this._x - _parent.blueCab_mc._x) <= 500) && ((this._x - _parent.blueCab_mc._x) >= 150)) {
this.speed = 0;
} else {
this.speed = this.speed1;
}
}
}
}
}
Symbol 657 MovieClip Frame 1
Symbol 658 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var skidSpeed = 4;
var hit = false;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
trace("hit Chariat");
speed = 0;
_root.fall = true;
hit = true;
_parent.bus_mc.hit = true;
_parent.restart();
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 658 MovieClip Frame 2
stop();
Symbol 659 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var skidSpeed = 4;
var hit = false;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
trace("hit Chariat");
speed = 0;
_root.fall = true;
hit = true;
_parent.bus_mc.hit = true;
_parent.restart();
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.4;
if (skidSpeed < 2) {
this.gotoAndStop(2);
}
}
}
};
stop();
Symbol 659 MovieClip Frame 2
stop();
Symbol 663 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
_root.levelScore7 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 658 MovieClip "tanga1_mc" in Symbol 663 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
speed = 3;
hit = false;
this._visible = true;
this._rotation = 90;
this.gotoAndStop(1);
}
}
var dirn = 1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (this.hitTest(_parent.hitLine4WlkrX_mc)) {
this._x = xpos;
} else {
this._x = (this._x + (dirn * speed)) + 0.35;
}
}
}
Instance of Symbol 659 MovieClip "tanga2_mc" in Symbol 663 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
speed = 3;
hit = false;
this._visible = true;
this._rotation = 180;
this.gotoAndStop(1);
}
}
var dirn = 1;
var speed = 2.5;
var ypos = this._y;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (speed != 0) {
if (this._y >= 1300) {
this._y = ypos;
} else {
this._y = (this._y + (dirn * speed)) + 0.35;
}
}
if ((this._y <= 370) && (this._y >= 290)) {
if (((this._x - _parent.tanga1_mc._x) <= 300) && ((this._x - _parent.tanga1_mc._x) >= -130)) {
this.speed = 0;
} else {
this.speed = 2.5;
}
}
}
}
Symbol 674 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
_root.levelScore8 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
lifePopUp.gotoAndStop(2);
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 349 MovieClip in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
var dirn = 1;
}
Instance of Symbol 349 MovieClip in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
Instance of Symbol 349 MovieClip in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
var dirn = 1;
}
Instance of Symbol 349 MovieClip in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
var dirn = -1;
}
Instance of Symbol 623 MovieClip in Symbol 674 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
}
}
movable = false;
}
Symbol 682 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.bus_mc)) {
_parent.flyOvr_mc._visible = true;
_parent.brigdBoundry_mc.gotoAndStop(1);
}
};
Symbol 683 MovieClip Frame 1
onEnterFrame = function () {
if (this.hitTest(_parent.bus_mc)) {
_parent.flyOvr_mc._visible = false;
_parent.brigdBoundry_mc.gotoAndStop(2);
}
};
Symbol 684 MovieClip Frame 1
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
var scope = _parent;
var tolerance = 120;
var hit = false;
var speed = 4;
var skidSpeed = 4;
var xpos = this._x;
var ypos = this._y;
onEnterFrame = function () {
if (_root.isPause == false) {
if (!hit) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
speed = 0;
_root.fall = true;
hit = true;
}
}
} else {
this._x = this._x - skidSpeed;
this._y = this._y - skidSpeed;
this._rotation = this._rotation + skidSpeed;
skidSpeed = skidSpeed * 0.3;
if (skidSpeed < 2) {
_parent.restart();
this.gotoAndStop(2);
}
}
}
};
stop();
stop();
Symbol 684 MovieClip Frame 2
stop();
Symbol 685 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 2
function checkCollision(mc2, mc1) {
var _local1 = classes.CollisionDetection.checkForCollision(mc1, mc2);
return(_local1);
}
stop();
onEnter = function () {
if (_root.isPause == false) {
if (this.hitTest(_parent.bus_mc)) {
if ((checkCollision(this, _parent.bus_mc) != undefined) || (checkCollision(this, _parent.bus_mc) != null)) {
}
}
}
};
Symbol 688 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
lifePopUp.gotoAndStop(2);
_root.levelScore9 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 534 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
this._rotation = 0;
}
}
var dirn = 1;
var speed = 4;
var xpos = this._x;
var ypos = this._y;
movable = false;
}
Instance of Symbol 684 MovieClip in Symbol 688 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
_visible = true;
this._rotation = 90;
}
}
var dirn = 1;
var speed = 5;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (!hit) {
if (this._x <= 1400) {
this._x = this._x + speed;
} else {
this._x = xpos;
}
}
}
Symbol 696 MovieClip Frame 1
function restart() {
if ((_root.isPause == false) && (lifeLose == false)) {
_root.myGame.playCrashSound();
lifeLose = true;
_root.life--;
trace(_root.life + " _root.life");
if (_root.life > 0) {
trace("Hi");
bus_mc.restartBus();
} else {
_root.game_mc.gotoAndStop("gameOver");
}
}
}
var intialTime = 0;
var maxTime = 480;
var secnd = 0;
var passX;
var passY;
_root.fall = false;
var emptyMv = true;
var passngrAni = false;
var isHitFootPath = false;
var lifeLose = false;
lifePopUp.gotoAndStop(2);
_root.levelScore10 = 0;
_root.killed = 0;
_root.blasted = 0;
_root.dropped = 0;
onEnterFrame = function () {
if (_root.fall == true) {
passX = bus_mc._x + 250;
passY = bus_mc._y - 400;
}
};
Instance of Symbol 534 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
this._x = xpos;
this._y = ypos;
this.hit = false;
this.gotoAndStop(1);
this._rotation = 0;
}
}
var dirn = 1;
var speed = 4;
var xpos = this._x;
var ypos = this._y;
movable = false;
}
Instance of Symbol 658 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
speed = 3;
hit = false;
this._visible = true;
this._rotation = 90;
this.gotoAndStop(1);
}
}
var dirn = 1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (this.hitTest(_parent.hitLine4WlkrX_mc)) {
this._x = xpos;
} else {
this._x = (this._x + (dirn * speed)) + 0.35;
}
}
}
Instance of Symbol 658 MovieClip in Symbol 696 MovieClip Frame 1
onClipEvent (load) {
function startAgain() {
if (movable) {
trace("Parent = " + this._parent);
this._x = xpos;
this._y = ypos;
hit = false;
speed = 3;
this._visible = true;
this._rotation = 90;
this.gotoAndStop(1);
}
}
var dirn = -1;
var speed = 3;
var xpos = this._x;
var ypos = this._y;
movable = true;
}
onClipEvent (enterFrame) {
if (_root.isPause == false) {
if (this.hitTest(_parent.hitLine4WlkrY_mc)) {
this._x = xpos;
} else {
this._x = (this._x + (dirn * speed)) + 0.35;
}
}
}
Symbol 702 MovieClip Frame 1
Symbol 702 MovieClip Frame 2
stop();
Symbol 707 MovieClip Frame 1
stop();
if (_root.level >= _root.maxLevels) {
gotoAndStop (2);
}
Symbol 708 MovieClip Frame 1
stop();
_root.isPause = false;
gameOrTxt_mc.gotoAndStop(_root.gamOvrTxt);
Symbol 710 MovieClip Frame 1
Symbol 710 MovieClip Frame 2
stop();
Symbol 739 MovieClip Frame 18
stop();
_root.penalty = (_root.killed + _root.dropped) + _root.blasted;
_root.penaltyScore = _root.penalty * 50;
var tempScore = ((_root.parkScore - _root.penaltyScore) + _root.bonus);
if (tempScore < 0) {
tempScore = 0;
}
_root["levelScore" + _root.level] = tempScore;
_root["levelBonus" + _root.level] = _root.bonus;
_root.penaltyText = "= " + _root.penalty;
_root.penaltyScoreText = "- " + _root.penaltyScore;
_root.levelScore = tempScore;
_root.lastScore = _root.score;
_root.score = _root.lastScore + _root.levelScore;
next_btn.onRelease = function () {
trace(_root.levelArray[int(_root.level)]);
_root.myGame.gotoAndStop(_root.levelArray[int(_root.level)]);
};
if (_root.level < 10) {
next_btn._visible = true;
cont_btn._visible = false;
} else {
next_btn._visible = false;
cont_btn._visible = true;
}
cont_btn.onRelease = function () {
_root.myGame.gotoAndStop(_root.levelArray[int(_root.level)]);
};
Symbol 740 MovieClip Frame 1
function playCrashSound() {
trace("play squashsound");
var _local1 = new Sound();
_local1.attachSound("crash.mp3");
_local1.start(0, 1);
}
_root.minPassengerArray = [3, 3, 4, 4, 5, 5, 6, 6, 7, 7];
gotoAndStop(_root.levelArray[_root.level - 1]);
Symbol 740 MovieClip Frame 13
stop();
stopAllSounds();
_root.level = 1;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 19
stop();
stopAllSounds();
_root.level = 2;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 26
stop();
stopAllSounds();
_root.level = 3;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 32
stop();
stopAllSounds();
_root.level = 4;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 39
stop();
stopAllSounds();
_root.level = 5;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 45
stop();
stopAllSounds();
_root.level = 6;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 51
stop();
stopAllSounds();
_root.level = 7;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 57
stop();
stopAllSounds();
_root.level = 8;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 63
stop();
stopAllSounds();
_root.level = 9;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 69
stop();
stopAllSounds();
_root.level = 10;
_root.gamOvrTxt = 1;
_root.minPass = _root.minPassengerArray[_root.level - 1];
_root.life = 3;
_root.health = 100;
Symbol 740 MovieClip Frame 76
stop();
stopAllSounds();
var gameOverframes = 2;
_root._doGameOver(_root.score, "gamecomplete", true, 3000);
Symbol 740 MovieClip Frame 83
stop();
stopAllSounds();
var showSkip = true;
if (_root.level >= _root.maxLevels) {
showSkip = false;
} else {
showSkip = true;
}
var gameOverframes = 2;
_root._doGameOver(_root.score, "gameover", showSkip, 3000);
Symbol 740 MovieClip Frame 93
stop();
stopAllSounds();