Frame 2
function _shareScoreHandler(mc, scoreText) {
_root._alienShareScoreFB(scoreText);
}
function _homeShareScoreFB(scoreText) {
var _local1 = flash.external.ExternalInterface.available;
if (_local1) {
flash.external.ExternalInterface.call("g2wShareScore", scoreText);
} else {
getURL (("javascript:g2wShareScore('" + scoreText) + "')");
}
}
function _alienShareScoreFB() {
getURL (_root.obj_game.facebookURL, "_blank");
}
function _shareScoreFB(scoreText) {
var _local3 = new LocalConnection();
var _local2 = _root.fb_local_connection;
_local3.send(_local2, "callFBJS", "g2wShareScore", [scoreText]);
}
function _playAgainHandler(mc) {
Stage.scaleMode = "showAll";
_root.g2w_playagain(true);
}
function _showGameVideo() {
getURL ((("http://www.gangofgamers.com/videotutorial.html?url=" + _root.obj_game.videoID) + "&name=") + _root.obj_game._gameTitle, "_blank");
}
function _calculateScore(limits, score) {
var _local4 = false;
var _local1 = 0;
while (_local1 < (limits.length - 1)) {
if (score <= limits[_local1]) {
return(_local1);
}
_local1++;
}
return(limits.length - 1);
}
function checkhost() {
swfurl = this._url;
if ((((((((((((((((((((((((((((((((((((((((swfurl.indexOf("spilgames.com") != -1) || (swfurl.indexOf("girlsgogames.com") != -1)) || (swfurl.indexOf("girlsgogames.co.uk") != -1)) || (swfurl.indexOf("girlsgogames.nl") != -1)) || (swfurl.indexOf("girlsgogames.fr") != -1)) || (swfurl.indexOf("girlsgogames.de") != -1)) || (swfurl.indexOf("girlsgogames.it") != -1)) || (swfurl.indexOf("girlsgogames.br") != -1)) || (swfurl.indexOf("girlsgogames.es") != -1)) || (swfurl.indexOf("girlsgogames.pl") != -1)) || (swfurl.indexOf("girlsgogames.se") != -1)) || (swfurl.indexOf("girlsgogames.ru") != -1)) || (swfurl.indexOf("juegosdechicas.com") != -1)) || (swfurl.indexOf("ojogos.pt") != -1)) || (swfurl.indexOf("egames.jp") != -1)) || (swfurl.indexOf("game.co.in") != -1)) || (swfurl.indexOf("games.co.id") != -1)) || (swfurl.indexOf("games.co.uk") != -1)) || (swfurl.indexOf("gamesgames.com") != -1)) || (swfurl.indexOf("spelletjes.nl") != -1)) || (swfurl.indexOf("jeux.fr") != -1)) || (swfurl.indexOf("jetztspielen.de") != -1)) || (swfurl.indexOf("gioco.it") != -1)) || (swfurl.indexOf("juegos.com") != -1)) || (swfurl.indexOf("ojogos.com.br") != -1)) || (swfurl.indexOf("gry.pl") != -1)) || (swfurl.indexOf("ourgames.ru") != -1)) || (swfurl.indexOf("spela.se") != -1)) || (swfurl.indexOf("a10.com") != -1)) || (swfurl.indexOf("agame.com") != -1)) || (swfurl.indexOf("mygames.co.uk") != -1)) || (swfurl.indexOf("spel.nl") != -1)) || (swfurl.indexOf("jeu.fr") != -1)) || (swfurl.indexOf("spielen.com") != -1)) || (swfurl.indexOf("giocaregratis.it") != -1)) || (swfurl.indexOf("clickjogos.com") != -1)) || (swfurl.indexOf("zapjuegos.com") != -1)) || (swfurl.indexOf("minigry.pl") != -1)) || (swfurl.indexOf("spel.eu") != -1)) || (swfurl.indexOf("flashgames.ru") != -1)) {
return(true);
}
return(false);
}
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();
clearInterval(_gameoverinterval);
_root.__gameover_mc = _root.attachMovie("_g2w_gameover_mc", "mc_gameover", _root.getNextHighestDepth(), {_x:Stage.width / 2, _y:Stage.height / 2});
_root.__gameover_mc.showSkip = showskip;
}
function _showAssetPanels(mc) {
if (mc.gameState == "gameover") {
trace("gameState");
_root._initGameOver(mc);
} else {
_root._initGameCompleted(mc);
}
}
function g2w_playagain(resetlevel) {
_root.__gameover_mc.removeMovieClip();
_root.game_mc.game_score = 0;
if (resetlevel) {
winSnd_mc.gotoAndStop(1);
_root.game_mc.gotoAndStop("init");
} else {
_root.game_mc.gotoAndStop("game");
}
}
function g2w_skiplevel() {
_root.__gameover_mc.removeMovieClip();
Key.removeListener(kListen);
_root.game_mc.level++;
_root.game_mc.gotoAndStop("game");
game_mc.game_score = 0;
}
var obj_game = new Array();
obj_game._host = "spil";
obj_game._gameName = "soccer_sensation";
obj_game._partnerSite = "agame";
obj_game._gameTitle = "Soccer Sensation";
obj_game._g2wGameId = "10018";
obj_game._partnerGameId = "soccersensation";
obj_game._gstatus = "gameover";
obj_game._googleText = "Soccer Sensation";
obj_game._gameStageW = 650;
obj_game._gameStageH = 490;
obj_game._gameScoreOrder = "desc";
obj_game._gameResolution = (Stage.width + "x") + Stage.height;
obj_game.g2wBot = "";
obj_game.g2wBotId = 10301;
obj_game.videoID = "L5A72SNa7aw";
obj_game.facebookURL = "http://apps.facebook.com/soccer-sensation/?utm_source=gangofgamers&utm_medium=strip&utm_campaign=Referrers_soccer-sensation";
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 Games2win Nickname below";
obj_partner.show_g2w_slate = true;
obj_partner.show_register = true;
obj_partner.text_register = "Create Nickname";
obj_partner.url_register = "http://www.gangofgamers.com/register.asp";
obj_partner.clickthru = (("http://www.gangofgamers.com/?utm_source=" + _root.obj_game._gameName) + "&utm_medium=logo_link&utm_campaign=") + _root.obj_game._partnerSite;
obj_partner._allowclick = true;
_initAssetsPanel = function (mcpath) {
Stage.scaleMode = "noScale";
Stage.align = "";
var _local2 = mcpath;
_local2.onEnterFrame = function () {
Stage.scaleMode = "noScale";
Stage.align = "";
};
_local2.overlay_btn.useHandCursor = false;
_local2.gameState = _root.obj_game._gstatus;
};
_initGameOver = function (mcpath) {
var _local2 = mcpath;
if (!_root.checkhost()) {
_local2.gotoAndStop("g2w_gameover");
} else {
_local2.gotoAndStop("g2w_spil_gameover");
}
if (_local2.showSkip) {
_local2.g2w_skipPanel.gotoAndStop("skip");
_local2.g2w_skipPanel.btn_nextLevel.onRelease = function () {
Stage.scaleMode = "showAll";
_root.g2w_skiplevel();
};
}
_local2.g2w_skipPanel.btn_playAgain.onRelease = function () {
Stage.scaleMode = "showAll";
_root.g2w_playagain();
};
};
_initGameCompleted = function (mcpath) {
var _local2 = mcpath;
if (!_root.checkhost()) {
_local2.gotoAndStop("g2w_gamecompleted");
} else {
_local2.gotoAndStop("g2w_spil_gamecompleted");
}
};
var g2w_menu = new ContextMenu();
g2w_menu.hideBuiltInItems();
g2w_menu.customItems.push(new ContextMenuItem("Games2win.com", itemHandler));
itemHandler = function (obj, item) {
getURL (obj_partner.clickthru, "_blank");
};
this.menu = g2w_menu;
_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;
Frame 7
stop();
Frame 15
stop();
gamename = "soccer_sensation";
_root.localization_url1 = ("http://www.agame.com/moregames/?utm_medium=brandedgames_as2&utm_campaign=" + gamename) + "&utm_source=unknown";
_root.localization_language_nr = 1;
_root.localization_branding_nr = 1;
_root.localization_portal = "tweens";
if (_root.localization_portal == "game_com_cn") {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.mainscreen_moregames.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
};
}
Frame 22
stop();
Instance of Symbol 270 MovieClip in Frame 22
onClipEvent (load) {
total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
loaded = _parent.getBytesLoaded();
percent = int((loaded / total) * 100);
this.txt = ("Loaded : " + percent) + "%";
this.bar._width = percent;
if (loaded == total) {
_parent.gotoAndStop("intro");
}
}
Frame 30
stop();
Frame 36
stop();
Symbol 660 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(hostID) {
hostID = hostID.toUpperCase();
var _local2 = "";
var _local1 = 0;
_local1 = 0;
while (_local1 < 4) {
if (!isNaN(hostID.charCodeAt(_local1))) {
_local2 = _local2 + hostID.charCodeAt(_local1);
}
_local1++;
}
while (length(_local2) < 8) {
_local2 = "0" + _local2;
}
_local2 = ("10" + _local2) + "000000000";
var _local4 = new LoadVars();
var _local5 = new LoadVars();
_local4.C1 = 7;
_local4.C2 = 5799339 /* 0x587DAB */;
_local4.C3 = _local2;
var _local6 = "http://beacon.scorecardresearch.com/scripts/beacon.dll";
_local4.sendAndLoad(_local6, _local5, "GET");
_local5.onLoad = function (ok) {
if (ok) {
trace("Comscore Success");
} else {
trace("Comscore failed");
}
};
}
function checkhost() {
swfurl = this._url;
if ((((((((((((((((((((((((((((((((((((((((((swfurl.indexOf("spilgames.com") != -1) || (swfurl.indexOf("girlsgogames.com") != -1)) || (swfurl.indexOf("girlsgogames.co.uk") != -1)) || (swfurl.indexOf("girlsgogames.nl") != -1)) || (swfurl.indexOf("girlsgogames.fr") != -1)) || (swfurl.indexOf("girlsgogames.de") != -1)) || (swfurl.indexOf("girlsgogames.it") != -1)) || (swfurl.indexOf("girlsgogames.br") != -1)) || (swfurl.indexOf("girlsgogames.es") != -1)) || (swfurl.indexOf("girlsgogames.pl") != -1)) || (swfurl.indexOf("girlsgogames.se") != -1)) || (swfurl.indexOf("girlsgogames.ru") != -1)) || (swfurl.indexOf("juegosdechicas.com") != -1)) || (swfurl.indexOf("ojogos.pt") != -1)) || (swfurl.indexOf("egames.jp") != -1)) || (swfurl.indexOf("game.co.in") != -1)) || (swfurl.indexOf("games.co.id") != -1)) || (swfurl.indexOf("games.co.uk") != -1)) || (swfurl.indexOf("gamesgames.com") != -1)) || (swfurl.indexOf("spelletjes.nl") != -1)) || (swfurl.indexOf("jeux.fr") != -1)) || (swfurl.indexOf("jetztspielen.de") != -1)) || (swfurl.indexOf("gioco.it") != -1)) || (swfurl.indexOf("juegos.com") != -1)) || (swfurl.indexOf("ojogos.com.br") != -1)) || (swfurl.indexOf("gry.pl") != -1)) || (swfurl.indexOf("ourgames.ru") != -1)) || (swfurl.indexOf("spela.se") != -1)) || (swfurl.indexOf("a10.com") != -1)) || (swfurl.indexOf("agame.com") != -1)) || (swfurl.indexOf("mygames.co.uk") != -1)) || (swfurl.indexOf("spel.nl") != -1)) || (swfurl.indexOf("jeu.fr") != -1)) || (swfurl.indexOf("spielen.com") != -1)) || (swfurl.indexOf("giocaregratis.it") != -1)) || (swfurl.indexOf("clickjogos.com") != -1)) || (swfurl.indexOf("zapjuegos.com") != -1)) || (swfurl.indexOf("minigry.pl") != -1)) || (swfurl.indexOf("spel.eu") != -1)) || (swfurl.indexOf("flashgames.ru") != -1)) || (swfurl.indexOf("games2win.com") != -1)) || (swfurl.indexOf("gangofgamers.com") != -1)) {
return(false);
}
return(true);
}
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;
var showPreAd = false;
getFps = function () {
if (signal == true) {
time = getTimer();
} else {
tempo = int(1000 / (getTimer() - time));
}
signal = !signal;
return(tempo);
};
myself = this;
signal = true;
_root.stop();
measureComScore("spil");
if (checkhost() == 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=10018";
adurl = adurl + "&h=spil";
adurl = adurl + "&type=pre";
adurl = adurl + "&v=5_0";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
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";
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;
}
}
};
} else {
_root.play();
}
Symbol 10 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 20 MovieClip Frame 1
stop();
Symbol 20 MovieClip Frame 2
stop();
Symbol 36 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);
this._parent._visible = 1;
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");
};
}
this._parent._visible = 1;
break;
case "NOOP" :
this._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);
}
};
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._parent._visible = 1;
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("games2win.com") != -1)) {
trace(purl.indexOf("games2win.com") != -1);
var _local4 = flash.external.ExternalInterface.call("inviziShowHtmlPostRoll", _global.obj_iads.htmlPostRoll);
}
if (((_local4 != null) && (purl != null)) && (purl.indexOf("games2win.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._parent._visible = 0;
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";
adurl = adurl + ("&purl=" + escape(purl));
adurl = adurl + ("&hurl=" + hurl);
adurl = adurl + ("&ts=" + getTimer());
trace(adurl);
get_iads();
stop();
Symbol 39 MovieClip Frame 1
invizi_logo.onRelease = function () {
getURL ("http://www.inviziads.com/", "_blank");
};
Symbol 41 MovieClip [_g2w_gameover_mc] Frame 1
stop();
_root._initAssetsPanel(this);
_root._showAssetPanels(this);
Symbol 41 MovieClip [_g2w_gameover_mc] Frame 2
stop();
btn_shareScore.onRelease = function () {
_root._shareScoreHandler(this, _root.obj_game.FBMsg);
};
btn_videoTutorial.onRelease = function () {
_root._showGameVideo();
};
Symbol 41 MovieClip [_g2w_gameover_mc] Frame 3
stop();
btn_shareScore.onRelease = function () {
_root._shareScoreHandler(this, _root.obj_game.FBMsg);
};
btn_videoTutorial.onRelease = function () {
_root._showGameVideo();
};
Symbol 41 MovieClip [_g2w_gameover_mc] Frame 4
stop();
btn_shareScore.onRelease = function () {
_root._shareScoreHandler(this, _root.obj_game.FBMsg);
};
btn_videoTutorial.onRelease = function () {
_root._showGameVideo();
};
btn_playAgain.onRelease = function () {
_root._playAgainHandler(this);
};
Symbol 41 MovieClip [_g2w_gameover_mc] Frame 5
stop();
btn_shareScore.onRelease = function () {
_root._shareScoreHandler(this, _root.obj_game.FBMsg);
};
btn_videoTutorial.onRelease = function () {
_root._showGameVideo();
};
btn_playAgain.onRelease = function () {
_root._playAgainHandler(this);
};
Symbol 42 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 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 2
stop();
if (_parent._parent.player._currentframe <= 15) {
_parent._parent.player.gotoAndStop("caught1");
}
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
if (_parent._parent.player._currentframe <= 15) {
_parent._parent.player.gotoAndStop("caught1");
}
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
stop();
if (_parent._parent.player._currentframe <= 15) {
_parent._parent.player.gotoAndStop("caught1");
}
Symbol 92 MovieClip [enemy] Frame 1
stop();
Symbol 92 MovieClip [enemy] Frame 2
stop();
Symbol 92 MovieClip [enemy] Frame 3
stop();
Symbol 96 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 96 MovieClip [game_sound_ctrl] Frame 2
stop();
changeVol(100, 5);
Symbol 96 MovieClip [game_sound_ctrl] Frame 3
stop();
changeVol(0, -5);
Symbol 101 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 106 MovieClip Frame 1
_root._trackClickThru(this);
Symbol 115 MovieClip Frame 90
_root.gotoAndStop("spilintro");
Symbol 121 Button
on (release) {
getURL ("http://www.gangofgamers.com", "_blank");
}
Symbol 124 MovieClip Frame 1
stop();
System.security.allowDomain("*");
var GameURL = _root._url;
trace(GameURL);
if (_root.checkhost() == true) {
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 230 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Symbol 235 MovieClip Frame 90
Symbol 235 MovieClip Frame 91
stop();
_root.gotoAndStop("lblloader");
Symbol 238 MovieClip Frame 1
if (_root.localization_portal == "game_com_cn") {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1, "_blank");
};
} else {
this.logo_intro.onRelease = function () {
getURL (_root.localization_url1 + "&utm_content=logo_intro", "_blank");
};
}
Symbol 238 MovieClip Frame 90
stop();
Symbol 244 MovieClip Frame 89
stop();
_root.gotoAndStop("lblloader");
Symbol 252 MovieClip Frame 89
stop();
Symbol 255 MovieClip Frame 89
stop();
Symbol 262 MovieClip Frame 39
stop();
Symbol 264 MovieClip Frame 91
stop();
Symbol 265 MovieClip Frame 1
if (_root.localization_portal == "family") {
gotoAndStop (1);
}
if (_root.localization_portal == "tweens") {
gotoAndStop (2);
}
if (_root.localization_portal == "girl") {
gotoAndStop (3);
}
if (_root.localization_portal == "game_com_cn") {
gotoAndStop (4);
}
if (_root.localization_portal == "teen") {
gotoAndStop (5);
}
Symbol 271 Button
on (release) {
getURL (_root.localization_url1 + "&utm_content=button_mainscreen_moregames", "_blank");
}
Symbol 301 Button
on (release) {
gotoAndPlay ("ins");
}
Symbol 308 MovieClip Frame 66
stop();
var kListen = new Object();
kListen.onKeyDown = function () {
if (Key.isDown(32)) {
start_btn.onRelease();
}
};
Key.addListener(kListen);
start_btn.onRelease = function () {
delete start_btn.onRelease;
Key.removeListener(kListen);
stopAllSounds();
_parent.gotoAndStop("lblgame");
};
Symbol 308 MovieClip Frame 67
stop();
Symbol 308 MovieClip Frame 71
stop();
Symbol 317 MovieClip Frame 1
stop();
Symbol 317 MovieClip Frame 2
stop();
Symbol 317 MovieClip Frame 3
stop();
Symbol 317 MovieClip Frame 4
stop();
Symbol 317 MovieClip Frame 5
stop();
Symbol 317 MovieClip Frame 6
stop();
Symbol 317 MovieClip Frame 7
stop();
Symbol 317 MovieClip Frame 8
stop();
Symbol 317 MovieClip Frame 9
stop();
Symbol 360 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 1
Symbol 362 MovieClip Frame 13
gotoAndPlay (1);
Symbol 364 MovieClip Frame 1
Symbol 364 MovieClip Frame 13
gotoAndPlay (1);
Symbol 366 MovieClip Frame 41
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 3
stop();
Symbol 367 MovieClip Frame 4
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 15
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 3
stop();
Symbol 395 MovieClip Frame 4
stop();
Symbol 395 MovieClip Frame 5
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 397 MovieClip Frame 1
stop();
Symbol 398 MovieClip Frame 364
stop();
Symbol 398 MovieClip Frame 400
stop();
_parent.kickBall();
Symbol 400 MovieClip Frame 45
gotoAndPlay ("loop");
Symbol 445 MovieClip Frame 25
_parent._parent._parent.jumpToRun();
Symbol 457 MovieClip Frame 25
_parent._parent._parent.jumpToRun();
Symbol 460 MovieClip Frame 13
_parent._parent._parent.slideToRun();
Symbol 463 MovieClip Frame 13
_parent._parent._parent.slideToRun();
Symbol 464 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 2
stop();
Symbol 464 MovieClip Frame 3
stop();
Symbol 464 MovieClip Frame 4
stop();
Symbol 464 MovieClip Frame 5
stop();
Symbol 467 MovieClip Frame 6
stop();
Symbol 480 MovieClip Frame 15
gotoAndPlay (1);
Symbol 480 MovieClip Frame 17
stop();
Symbol 480 MovieClip Frame 22
stop();
_parent.beginSlide();
Symbol 480 MovieClip Frame 30
stop();
Symbol 480 MovieClip Frame 37
play();
Symbol 480 MovieClip Frame 65
gotoAndPlay ("start");
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 36
stop();
if (_parent.level == 4) {
_parent.lvlDone("win");
} else {
_parent.lvlDone("lvlcomplt");
}
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 36
stop();
_parent.score = 0;
_parent.lvlDone("gameover");
Symbol 488 MovieClip Frame 100
stop();
Symbol 501 MovieClip Frame 32
stop();
Symbol 502 MovieClip Frame 24
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 2
_parent._parent.goalieMov();
Symbol 504 MovieClip Frame 12
_parent._parent.checkCatch(2, 11, this, bounceBall_mc, 13);
Symbol 504 MovieClip Frame 19
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 505 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 505 MovieClip Frame 11
_parent._parent.checkCatch(3, 1, this, bounceBall_mc, 12);
Symbol 505 MovieClip Frame 17
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 506 MovieClip Frame 2
_parent._parent.goalieMov();
Symbol 506 MovieClip Frame 11
_parent._parent.checkCatch(5, 10, this, bounceBall_mc, 12);
trace("Check Frm");
Symbol 506 MovieClip Frame 14
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 507 MovieClip Frame 30
stop();
Symbol 508 MovieClip Frame 21
stop();
Symbol 509 MovieClip Frame 1
stop();
Symbol 510 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 510 MovieClip Frame 11
_parent._parent.checkCatch(2, 11, this, bounceBall_mc, 12);
Symbol 510 MovieClip Frame 16
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 511 MovieClip Frame 30
stop();
Symbol 512 MovieClip Frame 22
stop();
Symbol 513 MovieClip Frame 1
stop();
Symbol 514 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 514 MovieClip Frame 10
_parent._parent.checkCatch(3, 1, this, bounceBall_mc, 11);
Symbol 514 MovieClip Frame 13
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 515 MovieClip Frame 30
stop();
Symbol 516 MovieClip Frame 25
stop();
Symbol 517 MovieClip Frame 1
stop();
Symbol 518 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 518 MovieClip Frame 11
_parent._parent.checkCatch(5, 11, this, bounceBall_mc, 11);
Symbol 518 MovieClip Frame 14
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 519 MovieClip Frame 30
stop();
Symbol 520 MovieClip Frame 20
stop();
Symbol 521 MovieClip Frame 1
stop();
Symbol 522 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 522 MovieClip Frame 12
_parent._parent.checkCatch(2, 12, this, bounceBall_mc, 13);
Symbol 522 MovieClip Frame 16
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 523 MovieClip Frame 20
stop();
Symbol 524 MovieClip Frame 1
stop();
Symbol 525 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 525 MovieClip Frame 10
_parent._parent.checkCatch(3, 1, this, bounceBall_mc, 11);
Symbol 525 MovieClip Frame 15
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 526 MovieClip Frame 20
stop();
Symbol 527 MovieClip Frame 20
stop();
Symbol 528 MovieClip Frame 1
stop();
Symbol 529 MovieClip Frame 1
_parent._parent.goalieMov();
Symbol 529 MovieClip Frame 12
_parent._parent.checkCatch(5, 12, this, bounceBall_mc, 13);
Symbol 529 MovieClip Frame 15
stop();
_parent._parent.bounceBallEffect(bounceBall_mc);
Symbol 530 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 130
stop();
trace("gameover");
_parent._parent.striker_mc.gotoAndPlay("fighting");
Symbol 534 MovieClip Frame 130
stop();
Symbol 568 MovieClip Frame 1
stop();
Symbol 568 MovieClip Frame 31
_parent._parent.kickBall();
Symbol 568 MovieClip Frame 43
stop();
Symbol 570 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 1
stop();
Symbol 611 MovieClip Frame 2
stop();
Symbol 611 MovieClip Frame 30
stop();
_parent.lvlDone("gameover");
Symbol 618 MovieClip Frame 1
stop();
Symbol 618 MovieClip Frame 2
stop();
Symbol 618 MovieClip Frame 3
stop();
Symbol 627 MovieClip Frame 1
stop();
Symbol 627 MovieClip Frame 2
stop();
Symbol 628 MovieClip Frame 2
stop();
lvlComltSnd_mc.gotoAndStop(2);
var kListen = new Object();
kListen.onKeyDown = function () {
if (Key.isDown(32)) {
next_btn.onRelease();
}
};
Key.addListener(kListen);
next_btn.onRelease = function () {
delete next_btn.onRelease;
Key.removeListener(kListen);
_parent.level++;
lvlComltSnd_mc.gotoAndStop(1);
_parent.gotoAndStop("game");
};
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 2
stop();
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 2
stop();
Symbol 637 MovieClip Frame 2
stop();
lvlOvrSnd_mc.gotoAndStop(2);
Symbol 642 MovieClip Frame 1
stop();
Symbol 642 MovieClip Frame 2
stop();
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 2
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 2
stop();
Symbol 652 MovieClip Frame 2
stop();
winSnd_mc.gotoAndStop(2);
Symbol 657 MovieClip Frame 1
stop();
inGameSound_mc.gotoAndStop(2);
var score = 0;
var level = 1;
var kListen = new Object();
kListen.onKeyDown = function () {
if (Key.isDown(32)) {
start_btn.onRelease();
}
};
Key.addListener(kListen);
start_btn.onRelease = function () {
delete start_btn.onRelease;
Key.removeListener(kListen);
gotoAndStop ("game");
};
Symbol 657 MovieClip Frame 2
function depthChange() {
stedium_mc.swapDepths(-20);
ground_mc.swapDepths(1);
player.swapDepths(30);
distMeter_mc.swapDepths(150);
}
function switchToOrigDepth() {
player.swapDepths(origPlyrDepth);
stedium_mc.swapDepths(origStedmDepth);
ground_mc.swapDepths(origGndDepth);
distMeter_mc.swapDepths(origMetrDepth);
stedium_mc._y = 1000;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function distBtnTwoPt(x1, y1, x2, y2) {
var _local6 = x1 - x2;
var _local5 = y1 - y2;
dist = Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2)));
return(dist);
}
function jumpToRun() {
player.inPlayer_mc.gotoAndStop("run");
}
function slideToRun() {
player._xscale = 100;
player.inPlayer_mc.gotoAndStop("run");
}
function lvlDone(stat) {
inGameSound_mc.gotoAndStop(1);
isPause = true;
timeCount = 0;
clearInterval(interval_time);
switchToOrigDepth();
if (level != 1) {
var l = 1;
while (l <= defendrArr[level].length) {
var mc = eval ("enemy" + l);
delete mc.onEnterFrame;
mc.swapDepths(origGndDepth - l);
mc._x = 1000;
mc._y = 1000;
mc.removeMovieClip();
l++;
}
}
if (stat == "gameover") {
score = 0;
}
trace((stat + " ") + score);
gotoAndStop(stat);
}
function checkCatchCondition(e) {
if (e._currentframe == 1) {
if ((actionJump == true) && (e.action == true)) {
catchPlayer = false;
} else {
heroMov = false;
catchPlayer = true;
e.inDefender_mc.gotoAndStop(2);
player.gotoAndStop("caught1");
e.scale = 110;
e._xscale = (e._yscale = e.scale);
e._y = 320;
isPause = true;
var _local2 = stedium_mc._currentframe;
stedium_mc.gotoAndStop(_local2);
var _local3 = ground_mc._currentframe;
ground_mc.gotoAndStop(_local3);
lvlOvr_mc.gotoAndPlay(10);
}
} else if (e._currentframe >= 2) {
if ((actionSlide == true) && (e.action == true)) {
catchPlayer = false;
} else {
heroMov = false;
catchPlayer = true;
trace((e.dist + " >2Def ") + (player._y - e._y));
e.inDefender_mc.gotoAndStop(2);
player.gotoAndStop("caught2");
e.scale = 110;
e._xscale = (e._yscale = e.scale);
e._y = 320;
isPause = true;
var _local2 = stedium_mc._currentframe;
stedium_mc.gotoAndStop(_local2);
var _local3 = ground_mc._currentframe;
ground_mc.gotoAndStop(_local3);
lvlOvr_mc.gotoAndPlay(10);
}
}
}
function walkTo(e) {
if (!isPause) {
e.lx = e._x - player._x;
e.ly = e._y - player._y;
if ((player._y - e._y) < 200) {
nearDefender = e;
}
angle = Math.atan2(e.ly, e.lx);
e.dist = Math.sqrt((e.lx * e.lx) + (e.ly * e.ly));
e._x = e._x - ((Math.cos(angle) * e.speed) * e.xFactor);
if ((e._y - (e._width / 2)) <= Stage.height) {
if (e.gndUp == false) {
e._y = e._y + (Math.sin(angle) * e.speed);
if (e._y <= 130) {
e.gndUp = true;
e.swapDepths(player.getDepth() - e.myNo);
e.val = 3;
}
} else if ((e.gndUp == true) && (e.changeDepth == false)) {
e._y = e._y - (Math.sin(angle) * e.speed);
if (e.scale <= 130) {
e.scale = e.scale + ((0.8 * e.val) / 2);
e._xscale = (e._yscale = e.scale);
e.val = e.val + 0.1;
} else {
e.val = e.val + 0.5;
}
}
}
if (((((Math.abs(e.lx) < 40) && (e.dist < 95)) && (e.dist > 80)) && (e.changeDepth == false)) && (e.action == false)) {
trace(e.dist + " Dist");
if (((((actionJump == true) && (e._currentframe == 1)) && ((player.inPlayer_mc._currentframe == 2) || (player.inPlayer_mc._currentframe == 3))) && (9 <= player.inPlayer_mc.player._currentframe)) && (player.inPlayer_mc.player._currentframe <= 21)) {
e.speed = 20;
e.val = 12;
e.dodge = true;
e.action = true;
jump++;
score = score + 50;
depthChangeWidPlayer(e);
} else if (((actionSlide == true) && (e._currentframe >= 2)) && ((player.inPlayer_mc._currentframe == 4) || (player.inPlayer_mc._currentframe == 5))) {
trace(e.dist + " Slide");
e.dodge = true;
e.action = true;
slide++;
score = score + 50;
depthChangeWidPlayer(e);
}
}
if ((((((Math.abs(e.lx) < 45) && ((player._y - e._y) >= 70)) && (e.dist >= 80)) && (e.dist <= 95)) && (e.changeDepth == false)) && (e.scale <= 133)) {
checkCatchCondition(e);
} else if (((e.dist < 95) && ((player._y - e._y) < 80)) && (e.changeDepth == false)) {
depthChangeWidPlayer(e);
}
if (e.changeDepth == true) {
e.scale = e.scale + (0.5 * e.val);
e._xscale = (e._yscale = e.scale);
if (e.Type >= 2) {
if (e.scale > 170) {
delete e.onEnterFrame;
e.removeMovieClip();
}
} else if (e.Type == 1) {
if (e.scale > 190) {
delete e.onEnterFrame;
e.removeMovieClip();
}
}
}
}
}
function depthChangeWidPlayer(e) {
lastDefTyp = e.Type;
e.changeDepth = true;
e.swapDepths(100 - e.myNo);
e.val = 10;
e.speed = 8;
if (e.dodge == false) {
e.dodge = true;
dodge = dodge + 1;
}
if (dodge >= 2) {
forced = true;
var nxtDefender = eval ("enemy" + (e.myNo + 1));
nxtDefender.xFactor = 15;
currentDefender = nxtDefender;
}
}
function kickBall() {
switchToOrigDepth();
gotoAndStop ("shootball");
}
function timerCall() {
if ((!isPause) && (level != 1)) {
interval_time = setInterval(timer, 1000);
}
}
function timer() {
if (!isPause) {
timeCount++;
barFrm = Math.floor((distMeter_mc.bar_mc._totalframes * timeCount) / totalSec);
distMeter_mc.bar_mc.gotoAndStop(barFrm);
hud_mc.time_txt.text = totalSec - timeCount;
if (level != 1) {
var k = 1;
while (k <= defendrArr[level].length) {
if (timeCount == defendrArr[level][k]) {
var defender = _parent.game_mc.attachMovie("enemy", "enemy" + k, ground_mc.getDepth() - k);
defender.scale = 30;
defender.changeDepth = false;
defender.action = false;
defender.dodge = false;
defender._xscale = (defender._yscale = defender.scale);
if ((k < 3) && (level == 2)) {
var frmNo = k;
defender.Type = frmNo;
} else {
if (level <= 2) {
var frmNo = randRange(1, 2);
} else {
var frmNo = randRange(1, 3);
}
defender.Type = frmNo;
if (lastDefTyp == defender.Type) {
typeCount++;
if (typeCount >= 2) {
if (frmNo == 1) {
frmNo = 2;
} else if (frmNo == 2) {
frmNo = 1;
} else if (frmNo == 3) {
frmNo = 1;
}
typeCount = 0;
defender.Type = frmNo;
}
}
}
defender.myNo = k;
defender.speed = 4;
defender.myDepth = ground_mc.getDepth() - k;
defender.gndUp = false;
defender.val = 1;
if (forced == false) {
defender.xFactor = 5;
} else {
defender.xFactor = 15;
}
defender.gotoAndStop(frmNo);
var xVariation = randRange(-40, 40);
defender._x = player._x + xVariation;
defender._y = 160;
defender.mySpeed = defSpeed * defender.val;
defender.onEnterFrame = function () {
walkTo(this);
};
}
k++;
}
}
if (timeCount >= totalSec) {
timeCount = 0;
isPause = true;
clearInterval(interval_time);
delete this.onEnterFrame;
if (level >= 3) {
var l = 1;
while (l <= defendrArr[level].length) {
var mc = eval ("enemy" + l);
delete mc.onEnterFrame;
mc.swapDepths(origGndDepth - l);
mc._x = 1000;
mc._y = 1000;
mc.removeMovieClip();
l++;
}
goal_post_Mov_mc._alpha = 100;
stedium_mc.gotoAndPlay(365);
Key.removeListener(keyListener);
} else if (level <= 2) {
ingameSound_mc.gotoAndStop(1);
lvlDone_mc.gotoAndPlay(35);
switchToOrigDepth();
}
}
}
}
stop();
inGameSound_mc.gotoAndStop(2);
var xSpeed = 10;
var actionJump = false;
var actionSlide = false;
var catchPlayer = false;
var defenderYspd = 1;
var defenderXspd = 1;
var stdPos = stedium_mc._y;
var timeCount = 0;
var timeArray = [0, 20, 27, 30, 30];
var totalSec = timeArray[level];
var interval_time = 0;
var speed = 3;
var isPause = false;
var defenderCount = 0;
var newDepth = 40;
var defSpeed = 0.5;
var slide = 0;
var jump = 0;
var dist;
var lvlCount = 0;
var lvlInterval = 0;
var dodge = 0;
var typeCount = 0;
var noOfDefender = [0, 0, 5, 8, 10];
var defendrArr = [0, 0, [0, 2, 8, 13, 17, 22], [0, 2, 5, 8, 11, 15, 19, 22, 26], [0, 1, 3, 5, 8, 10, 13, 16, 18, 21, 24]];
var winStatArry = [0, "Amazing! Keep Kickin\u2019! ", "Super Awesome! ", "You Rock!"];
var gameOverArray = [0, "Damn! They got ya! ", "Uh-Oh You lost it for the team!"];
var currentDefender = enemy1;
var forced = false;
var showGoal = 1;
var changDir = 1;
var barFrm = 1;
var lastDefTyp = 1;
var origPlyrDepth = player.getDepth();
var origStedmDepth = stedium_mc.getDepth();
var origGndDepth = ground_mc.getDepth();
var origMetrDepth = distMeter_mc.getDepth();
stedm_mc._visible = false;
stedium_mc._y = 242;
distMeter_mc.bar_mc.gotoAndStop(barFrm);
hud_mc.time_txt.text = totalSec;
goal_post_Mov_mc._alpha = 0;
var dir = 1;
var slideSpeed = 30;
var nearDefender = enemy1;
var heroMov = false;
var lvl1Up = 0;
var lvl1Down = 0;
var keyUpState = true;
var keyListener = new Object();
if (level == 1) {
distMeter_mc._visible = false;
inst_mc.gotoAndStop(1);
} else if (level == 2) {
inst_mc.gotoAndStop(3);
} else {
inst_mc.gotoAndStop(4);
}
depthChange();
onEnterFrame = function () {
if (!isPause) {
if (Key.isDown(39)) {
if ((player._x + (player._width / 2)) < (Stage.width - 50)) {
dir = 1;
player._x = player._x + (xSpeed * dir);
}
}
if (Key.isDown(37)) {
if ((player._x - (player._width / 2)) > 65) {
dir = -1;
player._x = player._x + (xSpeed * dir);
}
}
if (Key.isDown(38)) {
if ((!actionJump) && (player.inPlayer_mc._currentframe == 1)) {
actionJump = true;
var _local2 = randRange(2, 3);
player.inPlayer_mc.gotoAndStop(_local2);
currentDefender.xFactor = 5;
inst_mc.gotoAndStop(4);
if (level == 1) {
lvl1Up++;
inst_mc.gotoAndStop(2);
}
}
}
if (Key.isDown(40)) {
if ((!actionSlide) && (player.inPlayer_mc._currentframe == 1)) {
actionSlide = true;
if (level == 1) {
if (inst_mc._currentframe == 2) {
slideSpeed = 20;
var _local1 = randRange(4, 5);
player.inPlayer_mc.gotoAndStop(_local1);
}
} else {
slideSpeed = 20;
var _local1 = randRange(4, 5);
player.inPlayer_mc.gotoAndStop(_local1);
}
if (currentDefender._currentframe >= 2) {
currentDefender.xFactor = 5;
}
if (player._x < 200) {
changDir = 1;
} else if (player._x > 450) {
if (player._x > 575) {
changDir = -1;
} else {
changDir = -1;
}
} else if ((player._x - nearDefender._x) > 1) {
changDir = 1;
} else if ((player._x - nearDefender._x) < -1) {
changDir = -1;
}
if (changDir == 0) {
changDir = -1;
}
player._xscale = 100 * changDir;
if (level == 1) {
lvl1Down++;
if (((lvl1Down >= 1) && (lvl1Up >= 1)) && (lvlDone_mc._currentframe < 2)) {
inst_mc.gotoAndStop(4);
lvlDone_mc.gotoAndPlay(2);
}
}
}
}
if (player.inPlayer_mc._currentframe >= 4) {
if (changDir == -1) {
if ((player._x - (player._width / 2)) > 65) {
player._x = player._x + (15 * changDir);
}
} else if (changDir == 1) {
if ((player._x + (player._width / 2)) < (Stage.width - 50)) {
player._x = player._x + (15 * changDir);
}
}
}
}
};
keyListener.onKeyUp = function () {
actionSlide = false;
actionJump = false;
};
Key.addListener(keyListener);
timerCall();
Symbol 657 MovieClip Frame 3
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function goalieMov(delay) {
if (((frmNo == 6) || (frmNo == 9)) || (frmNo == 12)) {
catchFrm = randRange(2, 3);
goalKeeper.keeper.gotoAndStop(catchFrm);
} else if (((frmNo == 8) || (frmNo == 11)) || (frmNo == 14)) {
catchFrm = randRange(4, 5);
goalKeeper.keeper.gotoAndStop(catchFrm);
} else if (((frmNo == 7) || (frmNo == 10)) || (frmNo == 13)) {
catchFrm = randRange(3, 4);
goalKeeper.keeper.gotoAndStop(catchFrm);
}
delayCount = 0;
clearInterval(delayInterval);
}
function checkCatch(frm, inFrm, mc1, mc2, nxt) {
trace((delayInterval + " D_I::D_C") + delayCount);
trace((goalKeeper.keeper._currentframe + " Fn Call ") + frm);
if (goalKeeper.keeper._currentframe == frm) {
trace("Goali FRAM :" + goalKeeper.keeper._currentframe);
trace("Goali FRAM @@@ :" + goalKeeper.keeper.goli_mc._currentframe);
if (defArrow_mc.arrow_mc._currentframe < 175) {
if (goalKeeper.keeper.goli_mc._currentframe == inFrm) {
trace("BALL CAUGHT");
mc1.gotoAndStop(nxt - 1);
mc2.gotoAndStop(2);
trace("gameover");
Key.removeListener(keyListener1);
lvlOvr_mc.gotoAndPlay(10);
} else {
ball.swapDepths(empty_mc);
trace("lvlcomplt");
Key.removeListener(keyListener1);
score = score + 100;
lvlDone_mc.gotoAndPlay(10);
}
}
} else if (defArrow_mc.arrow_mc._currentframe < 175) {
ball.swapDepths(empty_mc);
trace("lvlcomplt");
Key.removeListener(keyListener1);
score = score + 100;
lvlDone_mc.gotoAndPlay(10);
}
}
function bounceBallEffect(mc) {
mc.gotoAndStop(3);
goalArea_mc.goalPost.gotoAndPlay("animate");
}
function movingLines() {
if (!horiznLine) {
if ((line1_mc._x < (bg_mc._x + (bg_mc._width / 2))) && (!goLeft)) {
line1_mc._x = line1_mc._x + 10;
if (line1_mc._x >= (bg_mc._x + (bg_mc._width / 2))) {
goLeft = true;
}
} else if ((line1_mc._x > pos1) && (goLeft)) {
line1_mc._x = line1_mc._x - 10;
if (line1_mc._x <= pos1) {
goLeft = false;
}
}
vx = line1_mc._x;
} else if (horiznLine) {
if ((line2_mc._y < (bg_mc._y + (bg_mc._height / 2))) && (!goLeft)) {
line2_mc._y = line2_mc._y + 10;
if (line2_mc._y >= (bg_mc._y + (bg_mc._height / 2))) {
goLeft = true;
}
} else if ((line2_mc._y > pos2) && (goLeft)) {
line2_mc._y = line2_mc._y - 10;
if (line2_mc._y <= pos2) {
goLeft = false;
}
}
vy = line2_mc._y;
}
}
function checkTheHitBox() {
var k = 1;
while (k <= 9) {
var box = eval ("box" + k);
if ((vx > box._x) && (vx < (box._x + box._width))) {
if ((vy > box._y) && (vy < (box._y + box._height))) {
striker_mc.kicker.gotoAndPlay("runup");
striker_mc.frm = k;
}
}
k++;
}
}
function kickBall() {
var _local1 = defArrow_mc.arrow_mc._currentframe;
defArrow_mc.arrow_mc.gotoAndStop(_local1);
defArw2_mc.arrow_mc.gotoAndStop(_local1);
frmNo = striker_mc.frm + 5;
ball.gotoAndStop(frmNo);
}
stop();
switchToOrigDepth();
clearInterval(interval_time);
var goLeft = false;
var pos1 = line1_mc._x;
var pos2 = line2_mc._y;
var horiznLine = false;
var vx;
var vy;
var count = 0;
var catchFrm;
var frmNo;
var delayCount = 0;
var delayInterval = 0;
var keyListener1 = new Object();
keyListener1.onKeyDown = function () {
if (Key.isDown(32)) {
if ((count < 2) && (striker_mc._currentframe == 1)) {
count++;
horiznLine = true;
goLeft = false;
if (count == 2) {
checkTheHitBox();
trace((vx + " ") + vy);
Key.removeListener(keyListener);
Key.removeListener(keyListener1);
delete onEnterFrame;
}
}
}
};
Key.addListener(keyListener1);
onEnterFrame = function () {
movingLines();
};
Symbol 657 MovieClip Frame 4
stop();
levelCOmpltTxt_mc.gotoAndStop(level);
if (level >= 2) {
lvlCmlt_mc.gotoAndStop(2);
} else {
lvlCmlt_mc.gotoAndStop(1);
}
Symbol 657 MovieClip Frame 5
stop();
var txtNo = randRange(1, 2);
gameOverTxt_mc.gotoAndStop(txtNo);
if (level <= 3) {
overState_mc.gotoAndStop(1);
_root._doGameOver(score, "gameover", false, 3000);
} else {
overState_mc.gotoAndStop(2);
_root._doGameOver(score, "gameover", false, 3000);
}
trace((interval_time + " LVL ") + lvlInterval);
Symbol 657 MovieClip Frame 6
stop();
_root._doGameOver(score, "gamecompleted", false, 4000);