Frame 1
function loadingComplete() {
var _local1 = _root;
if (settings_object.__get__isMusicPlay()) {
_local1.createEmptyMovieClip("music_mc", 2000001);
_local1.music = new Sound(_local1.music_mc);
music_mc.loadMovie(gameFilesFolder + "HE_Music.swf");
loadingComplete_2();
} else {
loadingComplete_2();
}
}
function loadingComplete_2() {
if (settings_object.__get__apiType() != Settings.MSN_API) {
fscommand ("showmenu", "false");
}
_quality = "MEDIUM";
gotoAndStop ("game");
}
_global.rootMain = this;
this._focusrect = false;
var game_object;
var loadingDelayCount = 25;
var logoDownloadStatus = true;
var isGameBreakSupport_bool = true;
var isGameReady = false;
var settings_object;
settings_object = new Settings(gameFilesFolder + "HE_Settings.xml");
settings_object.loadFile();
coLogo_mc.loadMovie(gameFilesFolder + "HE_Logo.jpg", "GET");
game_mc.loadMovie(gameFilesFolder + "HE_Game.swf");
language_object = new Language(gameFilesFolder + "HE_Language.xml");
language_object.loadFile();
stop();
Frame 2
game_mc.initGame(settings_object, language_object, gameFilesFolder);
Frame 3
game_mc.gotoAndStop("startgame");
_root.isGameReady = true;
Frame 10
if (game_mc.game_object.isGameReady) {
game_mc.game_object.startGame();
}
game_mc.game_object.isGameReady = false;
Frame 17
if (game_mc.game_object.isGameReady) {
game_mc.game_object.gotoNextLevel();
}
game_mc.game_object.isGameReady = false;
Frame 24
game_mc.game_object.mute.setMuteOn();
Frame 31
game_mc.game_object.mute.setMuteOff();
Frame 38
game_mc.game_object.pauseGame();
Frame 45
game_mc.game_object.resumeGame();
Symbol 23 MovieClip Frame 1
function startLoading() {
gotoAndPlay ("preload");
}
var count = 0;
Symbol 23 MovieClip Frame 3
gameBytesTotal = _root.getBytesTotal() + _root.game_mc.getBytesTotal();
gameBytesLoaded = _root.getBytesLoaded() + _root.game_mc.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
preloader_mc._xscale = percent;
if ((((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (_root.settings_object.isFileLoaded)) && (_root.language_object.isFileLoaded)) {
if (count > _root.loadingDelayCount) {
_root.loadingComplete();
stop();
} else {
count++;
gotoAndPlay ("preload");
}
} else {
gotoAndPlay ("preload");
}
Symbol 24 MovieClip [__Packages.Language] Frame 0
class Language
{
static var m_filePath, m_xml, GAMEMODE_TITLE, GAMEMODE_EXPRESS_1, GAMEMODE_EXPRESS_2, GAMEMODE_SCENIC_1, GAMEMODE_SCENIC_2, CARGO_RETURN_LABEL, SCORE_LABEL, LEVEL_LABEL, MAXAVG_TIMEALLOWED, HELP_BUTTON_LABEL, MUTE_BUTTON_LABEL, GAMEOVER, GAMEOVER_MESSAGE1, GAMEOVER_MESSAGE2, GAMEOVER_MESSAGE3, GAMEOVER_MESSAGE4, CLICKCONTINUE, LEVELEND_TITLE, LEVELEND_PASSED, LEVELEND_FAILED, LEVELEND_SKILLPOINTS, LEVELEND_TRAINSLOADED, LEVELEND_LOADINGTIME, LEVELEND_MAXTIME, MENU_HELP, MENU_GAMEOVER, MENU_GAMECOMPLETE, MENU_SCENIC, MENU_PAUSE, MENU_BUYBUTTON_LABEL, MENU_DOWNLOADBUTTON_LABEL, MENU_OKBUTTON_LABEL, MENU_RESUMEBUTTON_LABEL, PENALTY_LABEL, COMBO_LABEL, ROTATE_SPACETIP, ROTATE_SPACE_CLICK_TIP, MENU_LEVELCOMPLETE;
function Language (newFilePath) {
if (newFilePath == undefined) {
m_filePath = "Language.xml";
} else {
m_filePath = newFilePath;
}
}
function loadFile() {
m_xml = new XML();
m_xml.onLoad = loadFileXML;
m_xml.ignoreWhite = true;
m_xml.load(m_filePath);
}
function loadFileXML() {
var _local3 = m_xml.firstChild;
var nodeName;
var _local1;
var _local2 = 0;
while (_local2 < _local3.childNodes.length) {
nodeName = _local3.childNodes[_local2].nodeName;
_local1 = _local3.childNodes[_local2].childNodes[0].nodeValue;
switch (nodeName) {
case "GAMEMODE_TITLE" :
GAMEMODE_TITLE = _local1;
break;
case "GAMEMODE_EXPRESS_1" :
GAMEMODE_EXPRESS_1 = _local1;
break;
case "GAMEMODE_EXPRESS_2" :
GAMEMODE_EXPRESS_2 = _local1;
break;
case "GAMEMODE_SCENIC_1" :
GAMEMODE_SCENIC_1 = _local1;
break;
case "GAMEMODE_SCENIC_2" :
GAMEMODE_SCENIC_2 = _local1;
break;
case "CARGO_RETURN_LABEL" :
CARGO_RETURN_LABEL = _local1;
break;
case "SCORE_LABEL" :
SCORE_LABEL = _local1;
break;
case "LEVEL_LABEL" :
LEVEL_LABEL = _local1;
break;
case "MAXAVG_TIMEALLOWED" :
MAXAVG_TIMEALLOWED = _local1;
break;
case "HELP_BUTTON_LABEL" :
HELP_BUTTON_LABEL = _local1;
break;
case "MUTE_BUTTON_LABEL" :
MUTE_BUTTON_LABEL = _local1;
break;
case "GAMEOVER" :
GAMEOVER = _local1;
break;
case "GAMEOVER_MESSAGE1" :
GAMEOVER_MESSAGE1 = _local1;
break;
case "GAMEOVER_MESSAGE2" :
GAMEOVER_MESSAGE2 = _local1;
break;
case "GAMEOVER_MESSAGE3" :
GAMEOVER_MESSAGE3 = _local1;
break;
case "GAMEOVER_MESSAGE4" :
GAMEOVER_MESSAGE4 = _local1;
break;
case "CLICKCONTINUE" :
CLICKCONTINUE = _local1;
break;
case "LEVELEND_TITLE" :
LEVELEND_TITLE = _local1;
break;
case "LEVELEND_PASSED" :
LEVELEND_PASSED = _local1;
break;
case "LEVELEND_FAILED" :
LEVELEND_FAILED = _local1;
break;
case "LEVELEND_SKILLPOINTS" :
LEVELEND_SKILLPOINTS = _local1;
break;
case "LEVELEND_TRAINSLOADED" :
LEVELEND_TRAINSLOADED = _local1;
break;
case "LEVELEND_LOADINGTIME" :
LEVELEND_LOADINGTIME = _local1;
break;
case "LEVELEND_MAXTIME" :
LEVELEND_MAXTIME = _local1;
break;
case "MENU_HELP" :
MENU_HELP = _local1;
break;
case "MENU_GAMEOVER" :
MENU_GAMEOVER = _local1;
break;
case "MENU_GAMECOMPLETE" :
MENU_GAMECOMPLETE = _local1;
break;
case "MENU_SCENIC" :
MENU_SCENIC = _local1;
break;
case "MENU_PAUSE" :
MENU_PAUSE = _local1;
break;
case "MENU_BUYBUTTON_LABEL" :
MENU_BUYBUTTON_LABEL = _local1;
break;
case "MENU_DOWNLOADBUTTON_LABEL" :
MENU_DOWNLOADBUTTON_LABEL = _local1;
break;
case "MENU_OKBUTTON_LABEL" :
MENU_OKBUTTON_LABEL = _local1;
break;
case "MENU_RESUMEBUTTON_LABEL" :
MENU_RESUMEBUTTON_LABEL = _local1;
break;
case "PENALTY_LABEL" :
PENALTY_LABEL = _local1;
break;
case "COMBO_LABEL" :
COMBO_LABEL = _local1;
break;
case "ROTATE_SPACETIP" :
ROTATE_SPACETIP = _local1;
break;
case "ROTATE_SPACE_CLICK_TIP" :
ROTATE_SPACE_CLICK_TIP = _local1;
break;
case "MENU_LEVELCOMPLETE" :
MENU_LEVELCOMPLETE = _local1;
}
_local2++;
}
m_isFileLoaded = true;
}
function get filePath() {
return(m_filePath);
}
function get isFileLoaded() {
return(m_isFileLoaded);
}
static var m_isFileLoaded = false;
}
Symbol 25 MovieClip [__Packages.Settings] Frame 0
class Settings
{
static var m_filePath, m_xml;
function Settings (newFilePath) {
if (newFilePath == undefined) {
m_filePath = "Settings.xml";
} else {
m_filePath = newFilePath;
}
}
function loadFile() {
m_xml = new XML();
m_xml.onLoad = loadFileXML;
m_xml.ignoreWhite = true;
m_xml.load(m_filePath);
}
function loadFileXML() {
var _local3 = m_xml.firstChild;
var nodeName;
var _local1;
var _local2 = 0;
while (_local2 < _local3.childNodes.length) {
nodeName = _local3.childNodes[_local2].nodeName;
_local1 = _local3.childNodes[_local2].childNodes[0].nodeValue;
switch (nodeName) {
case "API" :
m_apiType = Number(_local1);
break;
case "SetCheat" :
m_isCheat = Boolean(_local1);
break;
case "ScoreBroadcastTime" :
m_scoreBroadcastTime = Number(_local1);
break;
case "DownloadURL" :
m_downloadURL = String(_local1);
break;
case "DownloadWindowType" :
m_downloadWindowType = String(_local1);
break;
case "BuyNowURL" :
m_buyNowURL = String(_local1);
break;
case "BuyNowWindowType" :
m_buyNowWindowType = String(_local1);
break;
case "GameOverUpsell" :
m_isGameOverUpsell = Boolean(_local1);
break;
case "GameOverUpsellDownload" :
m_isGameOverUpsellDownload = Boolean(_local1);
break;
case "NewGameDownload" :
m_isNewGameMenuDownload = Boolean(_local1);
break;
case "BuyNow" :
m_isBuyNow = Boolean(_local1);
break;
case "LevelUpsellFrequency" :
m_levelUpsellFrequency = Number(_local1);
break;
case "LevelCompleteDownload" :
m_isLevelCompleteUpsellDownload = Boolean(_local1);
break;
case "RotatePiece" :
m_isRotatePiece = Boolean(_local1);
break;
case "PictureMaxNumber" :
m_pictureMaxNumber = Number(_local1);
break;
case "MusicClipLoad" :
m_isMusicPlay = Boolean(_local1);
}
_local2++;
}
m_isFileLoaded = true;
}
function get filePath() {
return(m_filePath);
}
function get apiType() {
return(m_apiType);
}
function get isCheat() {
return(m_isCheat);
}
function get scoreBroadcastTime() {
return(m_scoreBroadcastTime);
}
function get downloadURL() {
return(m_downloadURL);
}
function get downloadWindowType() {
return(m_downloadWindowType);
}
function get buyNowURL() {
return(m_buyNowURL);
}
function get buyNowWindowType() {
return(m_buyNowWindowType);
}
function get isGameOverUpsell() {
return(m_isGameOverUpsell);
}
function get isGameOverUpsellDownload() {
return(m_isGameOverUpsellDownload);
}
function get isNewGameMenuDownload() {
return(m_isNewGameMenuDownload);
}
function get isBuyNow() {
return(m_isBuyNow);
}
function get levelUpsellFrequency() {
return(m_levelUpsellFrequency);
}
function get isLevelCompleteUpsellDownload() {
return(m_isLevelCompleteUpsellDownload);
}
function get isRotatePiece() {
return(m_isRotatePiece);
}
function get pictureMaxNumber() {
return(m_pictureMaxNumber);
}
function get isMusicPlay() {
return(m_isMusicPlay);
}
function get isFileLoaded() {
return(m_isFileLoaded);
}
static var NO_API = 0;
static var MSN_API = 1;
static var m_apiType = 0;
static var m_isCheat = false;
static var m_scoreBroadcastTime = 10000;
static var m_downloadURL = "";
static var m_downloadWindowType = "";
static var m_buyNowURL = "";
static var m_buyNowWindowType = "";
static var m_isGameOverUpsell = true;
static var m_isGameOverUpsellDownload = true;
static var m_isNewGameMenuDownload = true;
static var m_isBuyNow = true;
static var m_levelUpsellFrequency = 2;
static var m_isLevelCompleteUpsellDownload = true;
static var m_isRotatePiece = false;
static var m_pictureMaxNumber = 16;
static var m_isFileLoaded = false;
static var m_isMusicPlay = true;
}