Frame 1
function loadingComplete() {
if (rootMain.isZoneAPI) {
fscommand ("SessionReady", "<data></data>");
} else {
_level1.gotoAndPlay("begin");
}
}
function getGameSettings() {
var fileNumber;
var settingsXML = new XML();
settingsXML.onLoad = loadGameSettingsXML;
settingsXML.ignoreWhite = true;
settingsXML.load(gameFilesFolder + "GS_Settings.xml");
}
function loadGameSettingsXML() {
var objNode = this.firstChild;
var index = 0;
while (index < objNode.childNodes.length) {
setGameSettingsVariable(objNode.childNodes[index].nodeName, objNode.childNodes[index].childNodes[0].nodeValue);
index++;
}
if (!isZoneAPI) {
fscommand ("showmenu", "false");
}
rootMain.settingsLoaded_bool = true;
}
function setGameSettingsVariable(nodeName, nodeValue) {
switch (nodeName) {
case "API" :
rootMain.isZoneAPI = Boolean(nodeValue);
return;
case "SetCheat" :
rootMain.isCheatsEnabled = Boolean(nodeValue);
return;
case "ScoreBroadcastTime" :
rootMain.scoreBroadcastTime = Number(nodeValue);
return;
case "DownloadURL" :
rootMain.downloadURL = String(nodeValue);
return;
case "DownloadWindowType" :
rootMain.downloadWindowType = String(nodeValue);
return;
case "GameOverUpsell" :
rootMain.isGameOverUpsell = Boolean(nodeValue);
return;
case "upsellLevelSnap" :
rootMain.upsellLevelSnap = Number(nodeValue);
return;
case "BuyNowButton" :
rootMain.isBuyButtonOn = Number(nodeValue);
return;
case "BuyNowURL" :
rootMain.buyNowURL = String(nodeValue);
return;
case "BuyNowWindowType" :
rootMain.buyNowWindowType = String(nodeValue);
return;
case "UpsellText" :
rootMain.upsellTXT = String(nodeValue);
return;
case "LoadBG_Sound" :
rootMain.LoadBG_Sound = Number(nodeValue);
return;
case "LastLevel" :
rootMain.lastLevel = Number(nodeValue);
return;
case "Tries" :
rootMain.tries = Number(nodeValue);
return;
case "FirstLevel" :
rootMain.FirstLevel = Number(nodeValue);
}
}
function callFSCommand(callString, valueString) {
fscommand (callString, valueString);
}
var playTutCont = true;
_global.rootMain = this;
_global.gameMain = _level1;
rootMain._focusrect = false;
var gameFilesFolder = "";
var loadingDelayCount_int = 50;
var logoDownloadStatus = true;
var isGameBreakSupport_bool = true;
var isGameReady = false;
var downloadURL = "";
var downloadWindowType = "";
var buyNowWindowType = "";
var isBuyButtonOn = false;
var isZoneAPI = false;
var isCheatsEnabled = false;
var isGameOverUpsell = true;
var scoreBroadcastTime = 0;
var isUpsellDownloadOn = true;
var settingsLoaded_bool = false;
var lastLevel = 10;
if (logoDownloadStatus) {
rootMain.coLogo_mc.loadMovie(gameFilesFolder + "GS_Logo.jpg", "GET");
}
getGameSettings();
loadMovieNum ("GS_Game.swf", 1);
stop();
Frame 2
_level1.gotoAndPlay(2);
Frame 8
_root.isGameReady = true;
_level1.gotoAndStop("begin");
Frame 13
if (_root.isGameReady) {
_root.isGameReady = false;
_level1.gotoAndStop("start");
} else if (_level1.isGameOver) {
_level1.gotoAndPlay("begin");
}
Frame 18
_level1.continuePlayNextLevel();
Frame 23
_level1.muteSound = true;
Frame 28
_level1.muteSound = false;
Frame 32
if ((!_level1.isWaiting) && (!_level1.isPaused)) {
_level1.sound_obj.playSound("DialogPopUp");
_level1.controller.displayGameMenu();
}
Frame 36
if (_level1.isPaused) {
_level1.controller.resumeGame();
_level1.isWaiting = false;
_level1.gameMenu_mc.removeMovieClip();
}
Symbol 9 MovieClip Frame 3
rootTotal = rootMain.getBytesTotal();
gameTotal = _level1.getBytesTotal();
gameBytesTotal = rootTotal + gameTotal;
gameBytesLoaded = rootMain.getBytesLoaded() + _level1.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
preloader_mc._xscale = percent;
if (_root.coLogo_mc.getBytesLoaded() > 1) {
_root.hipLogo_mc._x = 85;
_root.hipLogo_mc.gotoAndStop("end");
}
if (((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (rootMain.settingsLoaded_bool)) {
if (count > rootMain.loadingDelayCount_int) {
rootMain.loadingComplete();
stop();
} else {
if (count == 1) {
if (_root.coLogo_mc.getBytesLoaded() == 0) {
_root.hipLogo_mc.gotoAndPlay("start");
}
}
count++;
gotoAndPlay ("preload");
}
} else {
gotoAndPlay ("preload");
}
Symbol 12 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 20
stop();