Frame 1
function lose(score) {
var _local1 = this;
_local1.gotoAndStop("lose");
_local1.score_txt.text = (_local1.playerScore = score);
}
function gameOver(score) {
var _local1 = this;
_local1.gotoAndStop("gameover");
_local1.score_txt.text = (_local1.playerScore = score);
}
function win(score) {
var _local1 = this;
_local1.gotoAndStop("win");
_local1.score_txt.text = (_local1.playerScore = score);
}
function viewHighScores(score) {
comm_mc.viewHighScores(score);
}
function sendScore(score) {
log("send score: " + score);
log("comm_mc is: " + this.comm_mc);
comm_mc.sendScore(score);
}
function testDone() {
if (performance.score > 70) {
_global.machine = "high";
} else {
_global.machine = "low";
}
this.isTested = true;
log("performance test done");
}
function startLoad() {
var _local1 = this;
_local1.onEnterFrame = function () {
var _local1 = this;
var _bytes = _local1.getBytesLoaded();
var _local3 = _local1.getBytesTotal();
var _local2 = Math.floor((_bytes / _local3) * 100);
((_local2 < 1) ? 1 : (_local2));
if (_local1._currentframe >= 10) {
if (intro_mc._currentframe == intro_mc._totalframes) {
_local1.introDone = true;
} else {
_local1.intro_mc.play();
}
} else if (_local1._framesloaded > 10) {
_local1.gotoAndStop("intro");
}
if (_local2 >= 100) {
loader_mc.bar_mc._xscale = 100;
if (!_local1.isTested) {
_local1.gotoAndStop("assetCache");
if (!_local1.testing) {
_global.performance = new PerformanceTest(null, function () {
testDone();
}, _local1);
}
} else if (_local1.introDone) {
_local1.gotoAndPlay("transition");
_local1.onEnterFrame = null;
} else if (!_local1.isLoaded) {
loader_mc.gotoAndPlay("skip");
loader_mc.skip_btn.controller = _local1;
loader_mc.skip_btn.onRelease = function () {
this.controller.gotoAndPlay("transition");
this.controller.onEnterFrame = null;
};
_local1.isLoaded = true;
}
} else {
loader_mc.bar_mc._xscale = _local2;
}
};
}
stop();
if (this == _level0) {
var gAppName = "vr_PolarExpressTrainAdventure";
_global.log = function (message) {
var _local1 = new LocalConnection();
_local1.send("_SILCtrace", "trace", message);
_local1.close();
trace(message);
};
log("vr game dummy loaded\r");
log("Object.Postopia exists: " + (Object.Postopia != null));
log("Object.Postopia.VR exists: " + (Object.Postopia.VR != null));
log("\rRewards/Tokens bought: ");
for (var prop in Object.Postopia.VR) {
log((("Object.Postopia.VR." + prop) + " = ") + Object.Postopia.VR[prop]);
}
log("\rHTML Parameters:");
ASSetPropFlags(this, ["gAppName", "debug", "$version", "prop", "log"], 1);
for (var prop in _level0) {
if ((typeof(_level0[prop]) == "movieclip") || (typeof(_level0[prop]) == "function")) {
continue;
}
log((("_level0." + prop) + " = ") + _level0[prop]);
}
this.introDone = false;
this.isLoaded = false;
this.isTested = false;
this.testing = false;
this.playerScore = 0;
_global.isMusicOn = true;
_global.isAudioOn = true;
_global.VRFullGame = (Object.Postopia.VR.levels ? true : false);
_global.VRPoints = (Object.Postopia.VR.points ? true : false);
_global.VRTries = (Object.Postopia.VR.tries ? true : false);
log("VR - Fullgame: " + VRFullGame);
log("VR - Speed: " + VRPoints);
log("VR - Tries: " + VRTries);
comm_mc.loadMovie(_level0.comm);
startLoad();
}
Frame 10
stop();
Instance of Symbol 31 MovieClip "fader_mc" in Frame 10
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 798 MovieClip "assets" in Frame 15
onClipEvent (load) {
this._visible = false;
}
Frame 25
play();
Frame 166
function fadeIntro() {
var _local1 = this;
start_btn.onRelease = null;
help_btn.onRelease = null;
intro = new Sound("intro_music");
if (machine == "high") {
fader_mc._alpha = 0;
fader_mc._visible = true;
fader_mc.controller = _local1;
fader_mc.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 3;
if (intro.getVolume() > 2) {
intro.setVolume(intro.getVolume() - 3);
}
if (fader_mc._alpha >= 100) {
_local1.controller.gotoAndStop("game");
stopAllSounds();
_local1.onEnterFrame = null;
}
};
} else {
stopAllSounds();
gotoAndStop ("game");
}
}
stop();
start_btn.onRelease = function () {
fadeIntro();
};
help_btn.onRelease = function () {
help_mc.gotoAndStop("on");
help_mc.start_btn.onRelease = function () {
fadeIntro();
};
};
Frame 174
stop();
Frame 184
stop();
promo_btn.onRelease = function () {
gotoAndStop ("promo");
};
continue_btn.onRelease = function () {
gotoAndStop ("end");
};
Frame 192
stop();
continue_btn.onRelease = function () {
gotoAndStop ("end");
};
Frame 201
stop();
continue_btn.onRelease = function () {
gotoAndStop ("end");
};
Frame 209
stop();
continue_btn.onRelease = function () {
gotoAndStop ("end");
};
Frame 218
stop();
quit_btn.onRelease = function () {
_level0.viewHighScores(_level0.playerScore);
};
replay_btn.onRelease = function () {
stopAllSounds();
gotoAndStop ("game");
};
Symbol 18 MovieClip Frame 1
stop();
Symbol 18 MovieClip Frame 8
play();
Symbol 18 MovieClip Frame 11
stop();
Symbol 24 MovieClip Frame 1
play();
Symbol 24 MovieClip Frame 29
stop();
Symbol 28 MovieClip Frame 1
play();
Symbol 28 MovieClip Frame 210
stop();
Symbol 41 MovieClip [Level1] Frame 1
#initclip 59
Object.registerClass("Level1", Levels.Level1);
#endinitclip
Symbol 44 MovieClip [Level3] Frame 1
#initclip 37
Object.registerClass("Level3", Levels.Level3);
#endinitclip
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 5
play();
Symbol 63 MovieClip Frame 10
stop();
Symbol 63 MovieClip Frame 28
play();
Symbol 63 MovieClip Frame 31
gotoAndStop ("on");
Symbol 64 MovieClip [Level5] Frame 1
#initclip 38
Object.registerClass("Level5", Levels.Level5);
#endinitclip
Symbol 68 MovieClip [Tile1] Frame 1
#initclip 39
Object.registerClass("Tile1", MainGame.Tile.Tile1);
#endinitclip
Symbol 69 MovieClip [Tile2] Frame 1
#initclip 40
Object.registerClass("Tile2", MainGame.Tile.Tile2);
#endinitclip
Symbol 72 MovieClip [Tile3] Frame 1
#initclip 41
Object.registerClass("Tile3", MainGame.Tile.Tile3);
#endinitclip
Symbol 77 MovieClip [Tile4] Frame 1
#initclip 42
Object.registerClass("Tile4", MainGame.Tile.Tile4);
#endinitclip
Symbol 82 MovieClip [Tile5] Frame 1
#initclip 43
Object.registerClass("Tile5", MainGame.Tile.Tile5);
#endinitclip
Symbol 84 MovieClip [Tile6] Frame 1
#initclip 44
Object.registerClass("Tile6", MainGame.Tile.Tile6);
#endinitclip
Symbol 85 MovieClip [Tile7] Frame 1
#initclip 45
Object.registerClass("Tile7", MainGame.Tile.Tile7);
#endinitclip
Symbol 91 MovieClip Frame 1
stop();
Symbol 92 MovieClip [Tile8] Frame 1
#initclip 46
Object.registerClass("Tile8", MainGame.Tile.Tile8);
#endinitclip
Symbol 99 MovieClip Frame 1
stop();
Symbol 100 MovieClip [Tile9] Frame 1
#initclip 47
Object.registerClass("Tile9", MainGame.Tile.Tile9);
#endinitclip
Symbol 101 MovieClip Frame 1
stop();
Symbol 102 MovieClip [Tile10] Frame 1
#initclip 48
Object.registerClass("Tile10", MainGame.Tile.Tile10);
#endinitclip
Symbol 103 MovieClip Frame 1
stop();
Symbol 104 MovieClip [Tile11] Frame 1
#initclip 49
Object.registerClass("Tile11", MainGame.Tile.Tile11);
#endinitclip
Symbol 107 MovieClip Frame 1
stop();
Symbol 108 MovieClip [Tile12] Frame 1
#initclip 50
Object.registerClass("Tile12", MainGame.Tile.Tile12);
#endinitclip
Symbol 113 MovieClip Frame 1
stop();
Symbol 114 MovieClip [Tile13] Frame 1
#initclip 51
Object.registerClass("Tile13", MainGame.Tile.Tile13);
#endinitclip
Symbol 115 MovieClip Frame 1
stop();
Symbol 116 MovieClip [Tile14] Frame 1
#initclip 52
Object.registerClass("Tile14", MainGame.Tile.Tile14);
#endinitclip
Symbol 117 MovieClip Frame 1
stop();
Symbol 118 MovieClip [Tile15] Frame 1
#initclip 53
Object.registerClass("Tile15", MainGame.Tile.Tile15);
#endinitclip
Symbol 132 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 8
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 217 MovieClip Frame 1
gemNum = 11;
stop();
Symbol 217 MovieClip Frame 2
gemNum = 8;
Symbol 217 MovieClip Frame 3
gemNum = 7;
Symbol 227 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 16
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 250 MovieClip Frame 4
stop();
Symbol 257 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 270 MovieClip Frame 2
stop();
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 9
stop();
Symbol 275 MovieClip Frame 17
stop();
Symbol 275 MovieClip Frame 25
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 290 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 8
stop();
Symbol 293 MovieClip Frame 15
stop();
Symbol 293 MovieClip Frame 23
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Symbol 326 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 337 Button
on (rollOver) {
nextFrame();
}
Symbol 338 Button
on (rollOver) {
prevFrame();
}
Symbol 348 MovieClip Frame 1
stop();
Symbol 350 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 1
stop();
Symbol 424 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 1
stop();
Symbol 495 Button
on (release) {
nextFrame();
}
Symbol 506 Button
on (release) {
prevFrame();
}
Symbol 519 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 1
stop();
Symbol 520 MovieClip Frame 20
back_btn.onRelease = function () {
this._parent.controller.showMenu();
};
Symbol 520 MovieClip Frame 30
sfx_on.onRelease = function () {
this._parent.controller.audioClick("on");
};
sfx_off.onRelease = function () {
this._parent.controller.audioClick("off");
};
music_on.onRelease = function () {
this._parent.controller.musicClick("on");
};
music_off.onRelease = function () {
this._parent.controller.musicClick("off");
};
Symbol 552 MovieClip Frame 1
play();
Symbol 552 MovieClip Frame 486
Symbol 552 MovieClip Frame 487
stop();
Symbol 577 MovieClip Frame 1
play();
Symbol 577 MovieClip Frame 321
Symbol 577 MovieClip Frame 322
stop();
Symbol 578 MovieClip [ConsoleSymbol] Frame 1
#initclip 54
Object.registerClass("ConsoleSymbol", PEGame.Console);
#endinitclip
stop();
Instance of Symbol 31 MovieClip "fader_mc" in Symbol 578 MovieClip [ConsoleSymbol] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 578 MovieClip [ConsoleSymbol] Frame 14
stop();
Symbol 579 MovieClip [MainGameSymbol] Frame 1
#initclip 55
Object.registerClass("MainGameSymbol", MainGame.MainGame);
#endinitclip
Symbol 580 MovieClip [MiniGameSymbol] Frame 1
#initclip 56
Object.registerClass("MiniGameSymbol", MiniGame.MiniGame);
#endinitclip
Symbol 581 MovieClip [BaseSymbol] Frame 1
#initclip 57
Object.registerClass("BaseSymbol", PEGame.Base);
#endinitclip
Symbol 587 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 1
play();
Symbol 590 MovieClip Frame 1
clipSound = new Sound(this);
clipSound.setVolume(30);
stop();
Symbol 590 MovieClip Frame 13
stop();
Symbol 597 MovieClip Frame 1
stop();
Symbol 597 MovieClip Frame 5
play();
Symbol 597 MovieClip Frame 7
stop();
Symbol 597 MovieClip Frame 12
gotoAndStop ("on");
Symbol 615 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 5
play();
Symbol 616 MovieClip Frame 50
stop();
Symbol 616 MovieClip Frame 60
play();
Symbol 616 MovieClip Frame 65
stop();
Symbol 621 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 1
stop();
Symbol 628 MovieClip Frame 7
play();
Symbol 628 MovieClip Frame 50
stop();
Symbol 628 MovieClip Frame 56
play();
Symbol 628 MovieClip Frame 60
stop();
Symbol 633 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 6
play();
Symbol 640 MovieClip Frame 50
stop();
Symbol 640 MovieClip Frame 55
play();
Symbol 640 MovieClip Frame 59
stop();
Symbol 641 MovieClip [obstacle] Frame 1
stop();
Symbol 642 MovieClip [reward] Frame 1
stop();
Symbol 664 MovieClip [TrainCoalCar] Frame 1
stop();
Symbol 669 MovieClip Frame 1
play();
Symbol 669 MovieClip Frame 45
stop();
Symbol 689 MovieClip [TrainPassenger] Frame 1
stop();
Symbol 707 MovieClip [TrainDefault] Frame 1
stop();
Symbol 732 MovieClip [TrainDining] Frame 1
stop();
Symbol 756 MovieClip [TrainToy] Frame 1
stop();
Symbol 761 MovieClip [SmokeSymbol] Frame 1
stop();
Symbol 762 MovieClip [Tile16] Frame 1
#initclip 58
Object.registerClass("Tile16", MainGame.Tile.Tile16);
#endinitclip
Symbol 784 MovieClip [TrainEngine] Frame 1
stop();
Symbol 791 MovieClip [PillSymbol] Frame 1
stop();
Symbol 798 MovieClip Frame 1
stop();
Symbol 948 MovieClip [__Packages.PerformanceTest] Frame 0
class PerformanceTest
{
function PerformanceTest (itterations, onComplete, parent) {
var _local1 = this;
_global.log("performance test instantiated");
parent.testing = true;
if (itterations) {
_local1.loops = itterations;
}
_local1.remainingLoops = _local1.loops;
if (onComplete) {
_local1.onComplete = onComplete;
}
var _local2 = System.capabilities.version.substr(4).split(",");
_local1.flashMajorVersion = Number(_local2[0]);
_local1.flashMinorVersion = Number(_local2[2]);
_local1.complete = false;
_local1.intervalID = setInterval(function (o) {
o.test();
}, 0, _local1);
}
function test() {
var _local3 = this;
if (_local3.remainingLoops <= 0) {
_local3.finalize();
clearInterval(_local3.intervalID);
} else {
_local3.remainingLoops--;
var startTime = getTimer();
var _local2;
var _local1 = 0;
while (_local1 < 6400) {
_local2 = {};
_local1++;
}
_local3.time = _local3.time + (getTimer() - startTime);
}
}
function finalize() {
var _local1 = this;
trace("FINAL");
_local1.score = Math.floor((_local1.loops / _local1.time) * 10000);
if (_local1.flashMajorVersion >= 7) {
_local1.log = Math.log(_local1.score * 0.015);
} else {
_local1.log = Math.log(_local1.score * 0.023);
}
_local1.processor = _local1.log * 1000;
_local1.complete = true;
_local1.onComplete(_local1);
}
function toString() {
var _local1 = this;
if (_local1.score) {
return((((((((("Loops:\t" + _local1.loops) + "\nFlash Version: \t") + System.capabilities.version) + "\nTotal Time:\t") + _local1.time) + "\nScore: \t") + _local1.score) + "\nProcessor: \t") + _local1.processor);
}
return("Test In Process.");
}
var score = 0;
var time = 0;
var loops = 20;
var complete = false;
}
Symbol 949 MovieClip [__Packages.Levels.Level3] Frame 0
class Levels.Level3 extends MovieClip
{
function Level3 () {
super();
}
function init() {
var _local1 = this;
_local1.obstacles = new Array();
_local1.obstacles.push(new MainGame.Objects.Obstacle([{x:11, y:14}, {x:15, y:7}], "moose", 8500, _local1.view));
_local1.obstacles.push(new MainGame.Objects.Obstacle([{x:13, y:8}, {x:12, y:2}], "moose", 9500, _local1.view));
_local1.rewards = new Array();
_local1.rewards.push(new MainGame.Objects.TrainCar([{x:7, y:8, rot:5}, {x:13, y:10, rot:5}, {x:17, y:11, rot:5}], "TrainDining", "dining_mc", _local1.view));
_local1.rewards.push(new MainGame.Objects.Reward([{x:4, y:13}, {x:13, y:14}, {x:13, y:6}], "lvl2_0", _local1.view));
_local1.rewards.push(new MainGame.Objects.Reward([{x:7, y:12}, {x:16, y:12}, {x:10, y:7}], "lvl2_1", _local1.view));
_local1.cars = new Array();
_local1.cars.push(new MainGame.Objects.TrainCar([{x:6, y:16, rot:1}, {x:7, y:13, rot:5}, {x:15, y:10, rot:5}, {x:14, y:5, rot:5}], "TrainDefault", "car0", _local1.view));
_local1.cars.push(new MainGame.Objects.TrainCar([{x:6, y:9, rot:1}, {x:10, y:5, rot:5}, {x:11, y:6, rot:1}, {x:10, y:13, rot:1}], "TrainDefault", "car1", _local1.view));
_local1.cars.push(new MainGame.Objects.TrainCar([{x:6, y:10, rot:1}, {x:9, y:14, rot:1}, {x:13, y:4, rot:1}, {x:11, y:2, rot:5}], "TrainDefault", "car2", _local1.view));
}
function showNewReward() {
var _local1 = this;
if (_local1.currentReward == null) {
_local1.currentReward = 0;
} else {
_local1.rewards[_local1.currentReward].remove();
_local1.currentReward++;
}
if (_local1.currentReward < _local1.rewards.length) {
_local1.rewards[_local1.currentReward].show();
}
}
function showNewCar() {
var _local1 = this;
if (_local1.currentCar == null) {
_local1.currentCar = 0;
} else {
_local1.cars[_local1.currentCar].remove();
_local1.currentCar++;
}
if (_local1.currentCar < _local1.cars.length) {
_local1.cars[_local1.currentCar].show();
} else {
_local1.view.activateExit();
}
}
function getCollection(x, y, start) {
var _local1 = this[(("tile_" + x) + "_") + y];
if (_local1.multiPath) {
var _local2 = _local1[("collection_" + start) + _local1.currentPath];
} else {
var _local2 = _local1["collection_" + start];
}
return(_local2);
}
var REQUIRED = 3;
var GRID_WIDTH = 23;
var GRID_HEIGHT = 23;
var TILE_WIDTH = 50;
var TILE_HEIGHT = 40;
var GRID_X = 277;
var GRID_Y = -237;
var START_X = 1;
var START_Y = 12;
var START_SIDE = 0;
var END_X = 16;
var END_Y = 0;
var END_SIDE = 1;
var FADE_X = 16;
var FADE_Y = 4;
var BONUS_TIME = 400;
var BONUS_POINTS = 3500;
var GRID = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 7, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 3, 4, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 6, 3, 7, 5, 1, 3, 7, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 5, 14, 15, 1, 1, 4, 2, 0, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3, 1, 1, 1, 12, 7, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6, 9, 1, 3, 7, 0, 0, 0, 11, 14, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 2, 0, 6, 4, 11, 1, 1, 7, 2, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 6, 9, 1, 4, 0, 2, 0, 2, 0, 6, 8, 3, 12, 7, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 11, 1, 7, 0, 2, 5, 2, 0, 2, 0, 2, 0, 2, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 2, 0, 15, 1, 3, 1, 3, 1, 3, 7, 2, 0, 2, 0, 0, 0, 0, 0], [0, 1, 1, 1, 3, 4, 0, 2, 0, 2, 0, 2, 0, 5, 3, 3, 1, 4, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 0, 0, 2, 0, 5, 1, 10, 0, 0, 15, 4, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 6, 1, 3, 1, 1, 9, 3, 1, 1, 8, 7, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 5, 10, 0, 2, 0, 0, 5, 14, 0, 0, 6, 4, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 5, 1, 8, 1, 9, 1, 3, 1, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
}
Symbol 950 MovieClip [__Packages.MainGame.View] Frame 0
class MainGame.View extends MovieClip
{
var __model, __controller, __parent, __objects, __level, __foreground, isPaused;
function View () {
super();
}
function set model(m) {
__model = m;
//return(model);
}
function get model() {
return(__model);
}
function set controller(c) {
__controller = c;
//return(controller);
}
function get controller() {
return(__controller);
}
function set parent(p) {
__parent = p;
//return(parent);
}
function get parent() {
return(__parent);
}
function set objects(o) {
__objects = o;
//return(objects);
}
function get objects() {
return(__objects);
}
function buildLevel(level) {
var _local1 = this;
_local1.trainCars = new Array();
var _local2 = "Level" + level;
_local1.__level = _local1.__parent.attachMovie(_local2, "level_mc", 1);
_local1.__level.count = 0;
_local1.__level.view = _local1;
_local1.__foreground = _local1.__parent.attachMovie(_local2 + "_foreground", "foreground_mc", 100);
_local1.__foreground.count = 0;
_local1.__smoke = _local1.__parent.createEmptyMovieClip("smoke_mc", 99);
_local1.__smoke.count = 0;
_local1.__pills = _local1.__parent.createEmptyMovieClip("pills_mc", 3);
_local1.__pills.count = 0;
_local1.buildGrid();
_local1.__objects = _local1.__parent.createEmptyMovieClip("objects_mc", 4);
_local1.__objects.count = 0;
_local1.__train = _local1.__parent.attachMovie("TrainEngine", "train_mc", _local1.parent.count++);
_local1.__coal = _local1.__parent.attachMovie("TrainCoalCar", "coal_mc", _local1.parent.count++);
_local1.trainCars.push(_local1.__train);
_local1.trainCars.push(_local1.__coal);
_local1.__level.init();
return(_local1.__level);
}
function start() {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.__level.obstacles.length) {
_local2.__level.obstacles[_local1].start();
_local1++;
}
_local2.__level.showNewReward();
_local2.__level.showNewCar();
if (_local2.bridgeTile != null) {
_local2.bridgeTile.start();
}
_local2.resume();
}
function resetTrain() {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.trainCars.length) {
_local2.trainCars[_local1]._x = -100;
_local2.trainCars[_local1]._y = -100;
_local1++;
}
}
function moveTrain(target, dataObj) {
var _local1 = dataObj;
placeClip(target, _local1.x, _local1.y, _local1.rotation);
}
function createClip(target, id, name, frame, tileX, tileY, oInit) {
var _local3 = target;
if ((_local3 == null) || (_local3 == "")) {
trace("ERROR - createClip: no target specified, clip not created");
} else {
var _local1 = _local3.attachMovie(id, name, _local3.count++);
if (frame != null) {
_local1.gotoAndStop(frame);
}
if ((tileX != null) && (tileY != null)) {
var _local2 = __level[(("tile_" + tileX) + "_") + tileY];
_local1._x = _local2._x;
_local1._y = _local2._y;
if (id.indexOf("Train") > -1) {
_local1._x = _local1._x + 25;
_local1._y = _local1._y + 20;
}
_local1.tileRef = _local2;
}
return(_local1);
}
return(undefined);
}
function createSmoke() {
var _local1 = this;
var _local2 = _local1.__smoke.attachMovie("smokeSymbol", "smoke" + (_local1.__smoke.count++), _local1.__smoke.count);
var _local3 = {x:_local1.trainCars[0].smoke_mc._x, y:_local1.trainCars[0].smoke_mc._y};
_local1.trainCars[0].localToGlobal(_local3);
_local2._x = _local3.x;
_local2._y = _local3.y;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1._rotation = _local1._rotation + 20;
_local1._alpha = _local1._alpha - 2;
_local1._y = _local1._y - 1;
if (_local1._alpha <= 0) {
_local1.removeMovieClip();
}
};
}
function placeClip(clip, newx, newy, frame) {
var _local1 = clip;
_local1._x = newx;
_local1._y = newy;
if (frame != null) {
_local1.gotoAndStop(frame);
}
}
function setPathButtons(tile) {
tile.direction_mc.gotoAndStop(tile.currentPath);
}
function activateExit() {
__foreground.lights_mc.gotoAndStop("open");
}
function deactivateExit() {
__foreground.lights_mc.clipSound.setVolume(0);
}
function pause() {
isPaused = true;
}
function resume() {
isPaused = false;
}
function buildGrid() {
var _local1 = this;
_local1.pills = new Array();
var y = 0;
while (y < _local1.__level.GRID_HEIGHT) {
var first_x = (_local1.__level.GRID_X - ((_local1.__level.TILE_WIDTH / 2) * y));
var first_y = (_local1.__level.GRID_Y + ((_local1.__level.TILE_HEIGHT / 2) * y));
var _local3 = 0;
while (_local3 < _local1.__level.GRID_WIDTH) {
var tileType = _local1.__level.GRID[y][_local3];
if (tileType == 0) {
} else {
_local1.__level.count++;
var x_pos = (first_x + ((_local1.__level.TILE_WIDTH / 2) * _local3));
var y_pos = (first_y + ((_local1.__level.TILE_HEIGHT / 2) * _local3));
var tileID = ("Tile" + tileType);
var tileName = ((("tile_" + _local3) + "_") + y);
var _local2 = _local1.__level.attachMovie(tileID, tileName, _local1.__level.count);
if (tileType < 4) {
var pill = _local1.__pills.attachMovie("PillSymbol", "pill" + (_local1.__pills.count++), _local1.__pills.count);
pill._x = x_pos + 25;
pill._y = y_pos + 20;
_local2.pill = _local1.pills.length;
_local1.pills.push(pill);
}
if (_local1.__parent.level == 1) {
if ((_local3 == 15) && (y == 14)) {
_local1.__model.changePath(_local2, _local2.currentPath);
}
}
if (tileType == 16) {
_local1.bridgeTile = _local2;
_local2.controller = _local1;
_local2.background = _local1.__level.bridge_mc;
_local2.foreground = _local1.__foreground.bridge_mc;
}
_local2._x = x_pos;
_local2._y = y_pos;
_local2.x_pos = _local3;
_local2.y_pos = y;
if (_local2.multiPath) {
_local2.addEventListener("onSwitchClick", _local1.__controller);
_local2.onRelease = function () {
var _local1 = this;
_local1.dispatchEvent({type:"onSwitchClick", target:_local1, currentPath:_local1.currentPath, tileIsActive:_local1.isActive});
};
}
}
_local3++;
}
y++;
}
}
var bridgeTile = null;
}
Symbol 951 MovieClip [__Packages.MainGame.Model] Frame 0
class MainGame.Model
{
var __view, __parent, __bonusElapsed, __gameLoop;
function Model () {
mx.events.EventDispatcher.initialize(this);
}
function set view(v) {
__view = v;
//return(view);
}
function get view() {
return(__view);
}
function set parent(p) {
__parent = p;
//return(parent);
}
function get parent() {
return(__parent);
}
function build(level) {
var _local1 = this;
_local1.__levelNum = level;
_local1.__level = _local1.__view.buildLevel(level);
var _local2 = _local1.parent.createEmptyMovieClip("music_mc", 201);
_local1.__gameLoop = new Sound(_local2);
_local1.__gameLoop.attachSound("GameSound");
if (!_global.isMusicOn) {
_local1.__gameLoop.setVolume(0);
} else {
_local1.__gameLoop.setVolume(50);
}
_local1.__gameLoop.start(0, 9999);
}
function destroy() {
var _local2 = this;
_local2.stopMovement();
var _local1 = 0;
while (_local1 < _local2.__level.obstacles.length) {
_local2.__level.obstacles[_local1].stop();
_local1++;
}
_local2.__level.removeMovieClip();
_local2.__gameLoop.stop();
}
function start() {
var _local1 = this;
_local1.__currentIndex = 0;
_local1.__trainPath = new Array();
_local1.__trainSpread = new Array(0, 11, 22, 37, 52, 67, 82);
_local1.__collection = _local1.getNewCollection();
_local1.__view.start();
_local1.__travelSpeed = DEFAULT_SPEED;
_local1.startMovement(DEFAULT_SPEED);
}
function changePath(target, currentPath) {
var _local1 = target;
switch (currentPath) {
case "a" :
_local1.currentPath = "b";
break;
case "b" :
_local1.currentPath = "a";
break;
default :
trace("ERROR - invalid path change request: " + currentPath);
return;
}
__view.setPathButtons(_local1);
}
function changeSpeed() {
var _local1 = this;
if (_local1.__currentSpeed == BRAKE_SPEED) {
if (_local1.__travelSpeed == DEFAULT_SPEED) {
_local1.__travelSpeed = FAST_SPEED;
_local1.changePills("star");
} else {
_local1.__travelSpeed = DEFAULT_SPEED;
_local1.changePills("snow");
}
} else if (_local1.__currentSpeed == DEFAULT_SPEED) {
_local1.__travelSpeed = FAST_SPEED;
_local1.startMovement(FAST_SPEED);
_local1.changePills("star");
} else {
_local1.__travelSpeed = DEFAULT_SPEED;
_local1.startMovement(DEFAULT_SPEED);
_local1.changePills("snow");
}
}
function changePills(type) {
var _local2 = this;
var _local3 = type;
if (_global.VRPoints) {
var _local1 = 0;
while (_local1 < _local2.__view.pills.length) {
_local2.__view.pills[_local1].gotoAndStop(_local3);
_local1++;
}
}
}
function activateBrakes() {
var _local1 = this;
_local1.startMovement(BRAKE_SPEED);
clearInterval(_local1.__brakeID);
_local1.__brakeID = setInterval(_local1, "deactivateBrakes", BRAKE_TIME);
}
function deactivateBrakes() {
var _local1 = this;
if (!_local1.isPaused) {
clearInterval(_local1.__brakeID);
_local1.startMovement(_local1.__travelSpeed);
}
}
function updateBonus() {
__bonusElapsed = __bonusElapsed + 1;
}
function loseTry() {
pause();
__parent.loseTry();
}
function reset() {
var _local1 = this;
_local1.__currentIndex = 0;
_local1.__collection = _local1.getNewCollection();
_local1.__trainPath = new Array();
_local1.__view.resetTrain();
}
function pause() {
var _local2 = this;
_local2.isPaused = true;
_local2.__view.pause();
_local2.stopMovement();
var _local1 = 0;
while (_local1 < _local2.__level.obstacles.length) {
_local2.__level.obstacles[_local1].pause();
_local1++;
}
}
function resume() {
var _local2 = this;
_local2.isPaused = false;
_local2.__view.resume();
_local2.startMovement(_local2.__travelSpeed);
var _local1 = 0;
while (_local1 < _local2.__level.obstacles.length) {
_local2.__level.obstacles[_local1].resume();
_local1++;
}
}
function activateMusic() {
__gameLoop.setVolume(50);
}
function deactivateMusic() {
__gameLoop.setVolume(0);
}
function startMovement(speed) {
var _local1 = this;
clearInterval(_local1.__movementID);
clearInterval(_local1.__smokeID);
_local1.__currentSpeed = speed;
_local1.__movementID = setInterval(_local1, "move", speed);
_local1.__bonusID = setInterval(_local1, "updateBonus", 1000);
if (_global.machine == "high") {
_local1.__smokeID = setInterval(_local1, "createSmoke", SMOKE_TIME);
}
}
function stopMovement() {
var _local1 = this;
clearInterval(_local1.__movementID);
clearInterval(_local1.__bonusID);
clearInterval(_local1.__smokeID);
}
function move() {
var _local1 = this;
var point = _local1.__collection.path[_local1.__currentIndex];
var tile_mc = _local1.__collection.target;
tile_mc.isActive = true;
var newPoint = {x:point.x, y:point.y};
tile_mc.localToGlobal(newPoint);
_local1.__level.globalToLocal(newPoint);
_local1.__trainPath.unshift({x:newPoint.x, y:newPoint.y, rotation:point.rotation, collection:_local1.__collection, index:_local1.__currentIndex});
if (_local1.__trainPath.length > TRAIN_LENGTH) {
_local1.__trainPath.pop();
}
var _local2 = 0;
while (_local2 < _local1.view.trainCars.length) {
var _local3 = _local1.__trainPath[_local1.__trainSpread[_local2]];
_local1.__view.moveTrain(_local1.view.trainCars[_local2], _local3);
_local2++;
}
_local1.doDepthSorting(_local1.view.trainCars);
if (tile_mc.isBlocked) {
_local1.loseTry();
}
if (tile_mc.train != null) {
_local1.__level.showNewCar();
_local1.__parent.updateScore(TRAIN_POINTS);
} else if (tile_mc.reward != null) {
_local1.__level.showNewReward();
_local1.__parent.updateScore(REWARD_POINTS);
}
_local1.__currentIndex++;
if (_local1.__currentIndex >= _local1.__collection.path.length) {
if (((tile_mc.x_pos == _local1.__level.END_X) && (tile_mc.y_pos == _local1.__level.END_Y)) && (_local1.__collection.exit == _local1.__level.END_SIDE)) {
if (_local1.__level.currentCar >= _local1.__level.REQUIRED) {
_local1.endLevel();
} else {
_local1.loseTry();
}
return;
}
if ((tile_mc.x_pos == _local1.__level.FADE_X) && (tile_mc.y_pos == _local1.__level.FADE_Y)) {
if (_global.machine == "high") {
if (_local1.__level.currentCar >= _local1.__level.REQUIRED) {
_local1.fadeOut();
}
}
}
_local1.__currentIndex = 0;
tile_mc.isActive = false;
_local1.__collection = _local1.getNewCollection(_local1.__collection);
if ((_local1.__collection == null) || (_local1.__collection == undefined)) {
_local1.loseTry();
}
if (_local1.__collection.target.pill != null) {
var pill = _local1.__view.pills[_local1.__collection.target.pill];
if (pill._currentframe > 1) {
_local1.__parent.updateScore(100);
} else {
_local1.__parent.updateScore(50);
}
if (_global.isAudioOn) {
var pillSound = new Sound(pill);
pillSound.attachSound("PillSound");
pillSound.start();
}
_local1.__collection.target.pill = null;
pill.removeMovieClip();
}
}
updateAfterEvent();
}
function createSmoke() {
__view.createSmoke();
}
function doDepthSorting(a) {
var _local3 = 5;
var _local2 = a.concat();
_local2.sort(order);
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1].swapDepths(_local3 + _local1);
_local1++;
}
}
function order(element1, element2) {
if (element1._y < element2._y) {
return(-1);
}
if (element1._y > element2._y) {
return(1);
}
return(0);
}
function getNewCollection(collection) {
var _local1 = this;
if ((collection == null) || (collection == undefined)) {
_local1.__currentTileX = _local1.__level.START_X;
_local1.__currentTileY = _local1.__level.START_Y;
return(_local1.__level.getCollection(_local1.__level.START_X, _local1.__level.START_Y, _local1.__level.START_SIDE));
}
var enter;
var _local3 = _local1.__currentTileX;
var _local2 = _local1.__currentTileY;
switch (collection.exit) {
case 0 :
enter = 2;
_local3 = _local3 - 1;
break;
case 1 :
enter = 3;
_local2 = _local2 - 1;
break;
case 2 :
enter = 0;
_local3 = _local3 + 1;
break;
case 3 :
enter = 1;
_local2 = _local2 + 1;
break;
default :
trace("ERROR - collection.exit invalid: " + collection.exit);
}
_local1.__currentTileX = _local3;
_local1.__currentTileY = _local2;
return(_local1.__level.getCollection(_local3, _local2, enter));
}
function fadeOut() {
var _local1 = this;
_local1.__view.deactivateExit();
var _local2 = _global.fader_mc;
_local2._alpha = 0;
_local2._visible = true;
_local2.music = _local1.__gameLoop;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 3;
if (_local1.music.getVolume() > 2) {
_local1.music.setVolume(_local1.music.getVolume() - 3);
}
if (_local1._alpha >= 100) {
_local1._alpha = 100;
_local1.music.setVolume(0);
stopAllSounds();
_local1.onEnterFrame = null;
}
};
}
function endLevel() {
var _local1 = this;
_local1.pause();
var _local2 = _local1.__level.BONUS_TIME - _local1.__bonusElapsed;
if (_local2 > 0) {
var _local3 = _local2 / _local1.__level.BONUS_TIME;
var score = Math.ceil(_local1.__level.BONUS_POINTS * _local3);
} else {
var score = 0;
}
_local1.__parent.console.showLevelEnd(score);
}
static var DEFAULT_SPEED = 26;
static var FAST_SPEED = 2;
static var BRAKE_SPEED = 104;
static var BRAKE_TIME = 6000;
static var SMOKE_TIME = 196;
static var REWARD_POINTS = 2000;
static var TRAIN_POINTS = 1000;
static var TRAIN_LENGTH = 100;
static var MAX_TRIES = 5;
var isPaused = false;
}
Symbol 952 MovieClip [__Packages.mx.events.EventDispatcher] Frame 0
class mx.events.EventDispatcher
{
function EventDispatcher () {
}
static function _removeEventListener(queue, event, handler) {
var _local3 = queue;
if (_local3 != undefined) {
var l = _local3.length;
var _local1;
_local1 = 0;
while (_local1 < l) {
var _local2 = _local3[_local1];
if (_local2 == handler) {
_local3.splice(_local1, 1);
return;
}
_local1++;
}
}
}
static function initialize(object) {
var _local1 = object;
if (_fEventDispatcher == undefined) {
_fEventDispatcher = new mx.events.EventDispatcher();
}
_local1.addEventListener = _fEventDispatcher.addEventListener;
_local1.removeEventListener = _fEventDispatcher.removeEventListener;
_local1.dispatchEvent = _fEventDispatcher.dispatchEvent;
_local1.dispatchQueue = _fEventDispatcher.dispatchQueue;
}
function dispatchQueue(queueObj, eventObj) {
var _local2 = eventObj;
var queueName = ("__q_" + _local2.type);
var queue = queueObj[queueName];
if (queue != undefined) {
var i;
for (i in queue) {
var _local1 = queue[i];
var _local3 = typeof(_local1);
if ((_local3 == "object") || (_local3 == "movieclip")) {
if (_local1.handleEvent == undefined) {
_local1[_local2.type](_local2);
} else {
_local1.handleEvent(_local2);
}
} else {
_local1.apply(queueObj, [_local2]);
}
}
}
}
function dispatchEvent(eventObj) {
var _local1 = eventObj;
var _local2 = this;
if (_local1.target == undefined) {
_local1.target = _local2;
}
_local2[_local1.type + "Handler"](_local1);
_local2.dispatchQueue(_local2, _local1);
}
function addEventListener(event, handler) {
var _local2 = this;
var _local1 = "__q_" + event;
if (_local2[_local1] == undefined) {
_local2[_local1] = new Array();
}
_global.ASSetPropFlags(_local2, _local1, 1);
_removeEventListener(_local2[_local1], event, handler);
_local2[_local1].push(handler);
}
function removeEventListener(event, handler) {
var _local1 = "__q_" + event;
_removeEventListener(this[_local1], event, handler);
}
static var _fEventDispatcher = undefined;
}
Symbol 953 MovieClip [__Packages.MainGame.MainGame] Frame 0
class MainGame.MainGame extends MovieClip
{
var __model, console, _quality, base, level;
function MainGame () {
super();
init();
}
function init() {
var _local1 = this;
_local1.count = 5;
_local1.__model = new MainGame.Model();
_local1.__view = new MainGame.View();
_local1.__controller = new MainGame.Controller();
_local1.__model.__set__view(_local1.__controller.__set__view(_local1.__view));
_local1.__controller.__set__model(_local1.__view.__set__model(_local1.__model));
_local1.__controller.__set__console(_local1.console);
_local1.__view.__set__controller(_local1.__controller);
_local1.__model.__set__parent(_local1.__view.__set__parent(_local1.__controller.__set__parent(_local1)));
_local1.__model.build(_local1.level);
}
function activateBrakes() {
__model.activateBrakes();
console.updateScore(-500);
}
function changeSpeed() {
__model.changeSpeed();
}
function updateScore(score) {
console.updateScore(score);
}
function start() {
if (_global.machine == "low") {
_quality = "LOW";
}
__model.start();
}
function destroy() {
__model.destroy();
}
function endLevel() {
base.changeLevel(level++);
}
function loseTry() {
pause();
base.loseTry();
}
function retry() {
__model.reset();
resume();
}
function pause() {
if (_global.machine == "low") {
_quality = "HIGH";
}
__model.pause();
}
function resume() {
if (_global.machine == "low") {
_quality = "LOW";
}
__model.resume();
}
function activateMusic() {
__model.activateMusic();
}
function deactivateMusic() {
__model.deactivateMusic();
}
}
Symbol 954 MovieClip [__Packages.MainGame.Controller] Frame 0
class MainGame.Controller
{
var __model, __view, __console, __parent;
function Controller () {
}
function set model(m) {
__model = m;
//return(model);
}
function get model() {
return(__model);
}
function set view(v) {
__view = v;
//return(view);
}
function get view() {
return(__view);
}
function set console(c) {
__console = c;
//return(console);
}
function get console() {
return(__console);
}
function set parent(p) {
__parent = p;
//return(parent);
}
function get parent() {
return(__parent);
}
function onSwitchClick(eventObj) {
var _local1 = eventObj;
if (_local1.tileIsActive) {
} else {
__model.changePath(_local1.target, _local1.currentPath);
}
}
}
Symbol 955 MovieClip [__Packages.PEGame.Console] Frame 0
class PEGame.Console extends MovieClip
{
var __lives, __points, brake_mc, level, base, timer_mc;
function Console () {
var _local1 = this;
super();
_local1.setLevelSelect();
_local1.checkLevelButtons();
_local1.updateScore(0);
}
function get lives() {
return(__lives);
}
function set lives(lives) {
__lives = lives;
//return(this.lives);
}
function get points() {
return(__points);
}
function set points(points) {
__points = points;
//return(this.points);
}
function setLevelSelect() {
var _local1 = this;
_local1.levels_mc.level1_mc.controller = _local1;
_local1.levels_mc.level1_mc.onRelease = function () {
this.controller.base.changeLevel(1);
};
_local1.levels_mc.level2_mc.controller = _local1;
_local1.levels_mc.level2_mc.onRelease = function () {
this.controller.base.changeLevel(2);
};
_local1.levels_mc.level3_mc.controller = _local1;
_local1.levels_mc.level3_mc.onRelease = function () {
this.controller.base.changeLevel(3);
};
_local1.levels_mc.level4_mc.controller = _local1;
_local1.levels_mc.level4_mc.onRelease = function () {
this.controller.base.changeLevel(4);
};
_local1.levels_mc.level5_mc.controller = _local1;
_local1.levels_mc.level5_mc.onRelease = function () {
this.controller.base.changeLevel(5);
};
}
function checkLevelButtons() {
var _local3 = this;
var _local1 = 1;
while (_local1 <= 5) {
var _local2 = _local3.levels_mc[("level" + _local1) + "_mc"];
if (_local1 == _local3.level) {
_local2.gotoAndStop("on");
} else {
_local2.gotoAndStop("off");
}
_local1++;
}
}
function activateBrake() {
var _local1 = this;
_local1.brake_mc.gotoAndStop("on_" + _global.machine);
_local1.brake_mc._btn.controller = _local1;
_local1.brake_mc._btn.onRelease = function () {
this.controller.base.game.activateBrakes();
};
}
function deactivateBrake() {
brake_mc.gotoAndStop("off_" + _global.machine);
}
function startLevel(levelNum) {
var _local1 = this;
var _local2 = _global;
_local1.changeLevel(levelNum);
var menu = _local1.menu_btn;
if ((_local1.level % 2) != 0) {
_local1._quality = "HIGH";
_local1.gotoAndStop("mainGame_" + _local2.machine);
var _local3 = _local1.fader_mc;
_local3._visible = false;
_local1.levelScreens.gotoAndStop("level" + _local1.level);
_local1.levelScreens.play_btn.controller = _local1;
_local1.levelScreens.play_btn.onRelease = function () {
this.controller.base.game.start();
this._parent.gotoAndStop("off");
};
_local1.levelScreens.next_btn.controller = _local1;
_local1.levelScreens.next_btn.onRelease = function () {
this.controller.startNextFrame();
};
_local1.tries = _local1.base.tries;
_local1.tries_mc.gotoAndStop(4 - (_local1.tries - 1));
_local1.speed_mc.gotoAndStop("on");
_local1.speed_mc.change_mc.gotoAndStop("slow_" + _local2.machine);
_local1.speed_mc.change_mc._btn.controller = _local1;
_local1.speed_mc.change_mc._btn.current = "slow";
_local1.speed_mc.change_mc._btn.onRelease = function () {
var _local1 = this;
if (_local1.current == "slow") {
_local1._parent.gotoAndStop("fast_" + _global.machine);
_local1.current = "fast";
} else {
_local1._parent.gotoAndStop("slow_" + _global.machine);
_local1.current = "slow";
}
_local1.controller.base.game.changeSpeed();
};
_local1.speed_mc.change_mc._btn.onRollOver = function () {
this._parent.txt_mc.gotoAndStop(2);
};
_local1.speed_mc.change_mc._btn.onRollOut = (_local1.speed_mc.change_mc._btn.onDragOut = (_local1.speed_mc.change_mc._btn.onReleaseOutside = function () {
this._parent.txt_mc.gotoAndStop(1);
}));
} else {
_local1.gotoAndStop("miniGame_" + _local2.machine);
_local1.brake_mc.gotoAndStop("off_" + _local2.machine);
_local1.speed_mc.gotoAndStop("off");
_local1.timer_mc.controller = _local1;
_local1.timer_mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentframe == _local1._totalframes) {
_local1._sound = new Sound(_local1);
if (_global.machine == "high") {
_local1._quality = "HIGH";
_local1.controller.levelScreens.gotoAndStop("levelEndMini");
var _local2 = _global.fader_mc;
_local2._alpha = 0;
_local2._visible = true;
_local2.caller = _local1;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 4;
if (_local1.caller._sound.getVolume() > 3) {
_local1.caller._sound.setVolume(_local1.caller._sound.getVolume() - 4);
}
if (_local1._alpha >= 100) {
_local1._alpha = 100;
_local1.caller.controller.base.game.pause();
stopAllSounds();
_local1.count++;
if (_local1.count > 32) {
_local1.caller.controller.base.changeLevel(_local1.caller.controller.level + 1);
_local1.onEnterFrame = null;
}
} else {
_local1.count = 0;
}
};
} else {
stopAllSounds();
_local1.controller.base.changeLevel(_local1.controller.level + 1);
}
_local1.onEnterFrame = null;
}
};
}
menu.controller = _local1;
menu.onRelease = function () {
this.controller.showMenu();
};
}
function startNextFrame() {
var _local1 = this;
_local1.levelScreens.nextFrame();
_local1.levelScreens.play_btn.controller = _local1;
_local1.levelScreens.play_btn.onRelease = function () {
var _local1 = this;
if ((_local1.controller.level == 2) || (_local1.controller.level == 4)) {
_local1.controller.base.changeLevel(_local1.controller.level);
} else {
_local1.controller.base.game.start();
}
_local1._parent.gotoAndStop("off");
};
}
function changeLevel(lvl) {
level = lvl;
checkLevelButtons();
}
function updateScore(score) {
var _local2 = this;
_local2.__points = _local2.__points + score;
if (_local2.__points < 0) {
_local2.__points = 0;
}
if (_global.machine == "high") {
_local2.score_txt.text = String(_local2.__points);
} else {
var strScore = String(_local2.__points);
var _local3 = strScore.split("");
_global.log("score array is: " + _local3);
_local3.reverse();
var _local1 = 0;
while (_local1 < 7) {
if (_local1 > _local3.length) {
_local2.score_mc["score" + _local1].gotoAndStop(1);
} else {
_local2.score_mc["score" + _local1].gotoAndStop(Number(_local3[_local1]) + 1);
}
_local1++;
}
}
if ((_local2.level % 2) != 0) {
if (_local2.__points >= 500) {
_local2.activateBrake();
} else {
_local2.deactivateBrake();
}
}
}
function showMenu() {
var _local1 = this;
_local1._quality = "HIGH";
_local1.menu_mc.gotoAndStop("on");
_local1.menu_mc.controller = _local1;
_local1.base.pauseGame();
_local1.menu_mc.help_btn.controller = _local1;
_local1.menu_mc.help_btn.onRelease = function () {
this.controller.showHelp();
};
_local1.menu_mc.audio_btn.controller = _local1;
_local1.menu_mc.audio_btn.onRelease = function () {
this.controller.showAudio();
};
_local1.menu_mc.resume_btn.controller = _local1;
_local1.menu_mc.resume_btn.onRelease = function () {
var _local1 = this;
trace("resume: " + _local1.controller.base);
_local1.controller.base.resumeGame();
_local1.controller.menu_mc.gotoAndStop("off");
};
_local1.menu_mc.quit_btn.controller = _local1;
_local1.menu_mc.quit_btn.onRelease = function () {
this.controller.base.quitGame(this.controller.points);
};
}
function showHelp() {
var _local1 = this;
_local1._quality = "HIGH";
_local1.menu_mc.gotoAndStop("help");
_local1.menu_mc.resume_btn.controller = _local1;
_local1.menu_mc.resume_btn.onRelease = function () {
this.controller.base.resumeGame();
this.controller.menu_mc.gotoAndStop("off");
};
}
function showAudio() {
var _local1 = this;
_local1._quality = "HIGH";
_local1.menu_mc.gotoAndStop("audio");
_local1.menu_mc.resume_btn.controller = _local1;
_local1.menu_mc.resume_btn.onRelease = function () {
this.controller.base.resumeGame();
this.controller.menu_mc.gotoAndStop("off");
};
if (_global.isAudioOn) {
_local1.menu_mc.sfx_on.gotoAndStop("on");
_local1.menu_mc.sfx_off.gotoAndStop("off");
} else {
_local1.menu_mc.sfx_on.gotoAndStop("off");
_local1.menu_mc.sfx_off.gotoAndStop("on");
}
if (_global.isMusicOn) {
_local1.menu_mc.music_on.gotoAndStop("on");
_local1.menu_mc.music_off.gotoAndStop("off");
} else {
_local1.menu_mc.music_on.gotoAndStop("off");
_local1.menu_mc.music_off.gotoAndStop("on");
}
}
function showLevelEnd(score) {
var _local1 = this;
_local1._quality = "HIGH";
_local1.levelScreens.gotoAndStop("levelEnd" + _local1.level);
_local1.levelScreens.score_txt.text = String(score);
_local1.updateScore(score);
_local1.level = _local1.level + 1;
_local1.levelScreens.next_btn.controller = _local1;
if ((_local1.level > 5) || (_global.VRFullGame == false)) {
_local1.levelScreens.next_btn.onRelease = function () {
this.controller.gameOver();
};
} else {
_local1.levelScreens.next_btn.onRelease = function () {
this.controller.startNextFrame();
};
}
}
function gameOver() {
base.gameOver(points);
}
function audioClick(type) {
var _local1 = _global;
var _local2 = this;
trace("audioClick");
if (type == "on") {
if (!_local1.isAudioOn) {
_local2.menu_mc.sfx_on.gotoAndStop("on");
_local2.menu_mc.sfx_off.gotoAndStop("off");
_local1.isAudioOn = true;
}
} else if (type == "off") {
if (_local1.isAudioOn) {
_local2.menu_mc.sfx_on.gotoAndStop("off");
_local2.menu_mc.sfx_off.gotoAndStop("on");
_local1.isAudioOn = false;
}
}
}
function musicClick(type) {
var _local1 = this;
var _local2 = _global;
trace("musicClick");
if (type == "on") {
if (!_local2.isMusicOn) {
_local1.menu_mc.music_on.gotoAndStop("on");
_local1.menu_mc.music_off.gotoAndStop("off");
_local2.isMusicOn = true;
_local1.base.game.activateMusic();
}
} else if (type == "off") {
if (_local2.isMusicOn) {
_local1.menu_mc.music_on.gotoAndStop("off");
_local1.menu_mc.music_off.gotoAndStop("on");
_local2.isMusicOn = false;
_local1.base.game.deactivateMusic();
}
}
}
function miniGamePause() {
timer_mc.stop();
}
function miniGameResume() {
timer_mc.play();
}
function loseTry(tries) {
var _local1 = this;
var _local2 = tries;
_local1.menu_mc.gotoAndStop("miss");
_local1.tries = _local2;
_local1.tries_mc.gotoAndStop(4 - (_local2 - 1));
_local1.menu_mc.tries_mc.gotoAndStop(4 - (_local2 - 1));
_local1.menu_mc.retry_btn.controller = _local1;
_local1.menu_mc.retry_btn.onRelease = function () {
this.controller.retry();
};
}
function retry() {
var _local1 = this;
_local1.menu_mc.gotoAndStop("off");
if (_local1.speed_mc.change_mc._btn.current == "fast") {
_local1.speed_mc.change_mc._btn.current = "slow";
_local1.speed_mc.change_mc.gotoAndStop("slow_" + _global.machine);
_local1.base.game.changeSpeed();
}
_local1.base.game.retry();
}
}
Symbol 956 MovieClip [__Packages.PEGame.Base] Frame 0
class PEGame.Base extends MovieClip
{
var game;
function Base () {
var _local1 = this;
super();
_local1.start();
_local1.root = _local1._parent;
}
function start() {
var _local1 = this;
var _local2 = _global;
_local2.log("testing base movieclip");
_local1.level = 1;
if (_local2.VRTries) {
_local1.tries = 4;
} else {
_local1.tries = 3;
}
_local1.console = _local1.attachMovie("ConsoleSymbol", "console_mc", 100, {base:_local1, level:_local1.level, tries:_local1.tries});
_local2.fader_mc = _local1.console.fader_mc;
_local1.buildGame();
_local1.console.startLevel(_local1.level);
}
function buildGame() {
var _local1 = this;
if ((_local1.level % 2) == 0) {
var _local2 = "MiniGameSymbol";
} else {
var _local2 = "MainGameSymbol";
}
_local1.game = _local1.attachMovie(_local2, "game_mc", 1, {base:_local1, console:_local1.console, level:_local1.level});
}
function changeLevel(lvl) {
var _local1 = this;
var _local2 = lvl;
trace("lvl is: " + _local2);
_local1.level = _local2;
_local1.game.destroy();
_local1.game.removeMovieClip();
_local1.buildGame();
_local1.console.startLevel(_local2);
}
function pauseGame() {
game.pause();
}
function resumeGame() {
trace("base.resume");
game.resume();
}
function loseTry() {
var _local1 = this;
_local1.tries--;
if (_local1.tries <= 0) {
_local1.quitGame(_local1.console.points);
} else {
_local1.console.loseTry(_local1.tries);
}
}
function quitGame(score) {
var _local1 = this;
_local1.game.destroy();
_local1.root.fader_mc._visible = false;
if (!_global.VRFullGame) {
_local1.root.gameOver(score);
} else {
_local1.root.lose(score);
}
}
function gameOver(score) {
var _local1 = this;
_local1.game.destroy();
_local1.root.fader_mc._visible = false;
if (!_global.VRFullGame) {
_local1.root.gameOver(score);
} else {
_local1.root.win(score);
}
}
}
Symbol 957 MovieClip [__Packages.MainGame.Objects.Objects] Frame 0
class MainGame.Objects.Objects
{
function Objects () {
}
}
Symbol 958 MovieClip [__Packages.MainGame.Objects.Obstacle] Frame 0
class MainGame.Objects.Obstacle extends MainGame.Objects.Objects
{
var _intervalID, _paused;
function Obstacle (points, type, interval, view) {
var _local1 = this;
super();
_local1._points = points;
_local1._type = type;
_local1._interval = interval;
_local1._view = view;
_local1._stage = _local1._view.objects;
_local1._activeInterval = 6000;
_local1._paused = false;
}
function start() {
var _local1 = this;
_local1._intervalID = setInterval(_local1, "show", _local1._interval);
}
function stop() {
clearInterval(_intervalID);
}
function pause() {
_paused = true;
}
function resume() {
_paused = false;
}
function show() {
var _local1 = this;
if (!_local1._paused) {
var _local2 = _local1._points[random(_local1._points.length)];
var _local3 = (("obstacle_" + _local2.x) + "_") + _local2.y;
_local1._clip = _local1._view.createClip(_local1._stage, "obstacle", _local3, _local1._type, _local2.x, _local2.y, null);
if (_local1._clip.tileRef.isActive) {
_local1._clip.removeMovieClip();
} else {
_local1._clip.gotoAndStop(_local1._type);
_local1._clip.anim.gotoAndPlay("in");
_local1._clip.anim.onEnterFrame = function () {
var _local1 = this;
if (_local1._currentFrame >= 50) {
_local1._parent.tileRef.isBlocked = true;
_local1.onEnterFrame = null;
}
};
clearInterval(_local1._intervalID);
_local1._intervalID = setInterval(_local1, "hide", _local1._activeInterval);
}
}
}
function hide() {
var _local1 = this;
if (!_local1._paused) {
_local1._clip.anim.gotoAndPlay("out");
_local1._clip.tileRef.isBlocked = false;
_local1._clip.anim.onEnterFrame = function () {
if (_currentframe == _totalframes) {
this._parent.removeMovieClip();
}
};
clearInterval(_local1._intervalID);
_local1._intervalID = setInterval(_local1, "show", _local1._interval);
}
}
}
Symbol 959 MovieClip [__Packages.MainGame.Objects.TrainCar] Frame 0
class MainGame.Objects.TrainCar extends MainGame.Objects.Objects
{
function TrainCar (points, type, name, view) {
var _local1 = this;
super();
_local1._points = points;
_local1._type = type;
_local1.__name = name;
_local1._view = view;
_local1._stage = view.parent;
}
function show() {
var _local1 = this;
var _local2 = _local1._points[random(_local1._points.length)];
_local1._clip = _local1._view.createClip(_local1._stage, _local1._type, _local1.__name, _local2.rot, _local2.x, _local2.y, null);
_local1._clip.train.gotoAndStop(_local2.rot);
if (_local1._type == "TrainDefault") {
_local1._clip.tileRef.train = _local1._clip;
} else {
_local1._clip.tileRef.reward = _local1._clip;
}
}
function remove() {
var _local2 = this;
_local2._clip.tileRef.train = (_local2._clip.tileRef.reward = null);
if (_global.isAudioOn) {
var _local1 = new Sound(_local2._clip);
_local1.attachSound("rewardSound");
_local1.setVolume(60);
_local1.start();
}
_local2._view.trainCars.push(_local2._clip);
}
}
Symbol 960 MovieClip [__Packages.MainGame.Objects.Reward] Frame 0
class MainGame.Objects.Reward extends MainGame.Objects.Objects
{
function Reward (points, type, view) {
var _local1 = this;
super();
_local1._points = points;
_local1._type = type;
_local1._view = view;
_local1._stage = _local1._view.objects;
}
function show() {
var _local1 = this;
var _local2 = _local1._points[random(_local1._points.length)];
var _local3 = (("reward_" + _local2.x) + "_") + _local2.y;
_local1._clip = _local1._view.createClip(_local1._stage, "reward", _local3, _local1._type, _local2.x, _local2.y, null);
_local1._clip.parent = _local1;
_local1._clip.tileRef.reward = _local1._clip;
}
function remove() {
var _local2 = this;
_local2._clip.tileRef.reward = null;
if (_global.isAudioOn) {
var _local1 = new Sound(_local2._clip);
_local1.attachSound("rewardSound");
_local1.setVolume(60);
_local1.start();
}
_local2._clip.removeMovieClip();
}
}
Symbol 961 MovieClip [__Packages.Levels.Level5] Frame 0
class Levels.Level5 extends MovieClip
{
function Level5 () {
super();
}
function init() {
var _local1 = this;
_local1.obstacles = new Array();
_local1.obstacles.push(new MainGame.Objects.Obstacle([{x:7, y:16}, {x:12, y:14}, {x:12, y:3}], "bear", 6000, _local1.view));
_local1.rewards = new Array();
_local1.rewards.push(new MainGame.Objects.TrainCar([{x:11, y:13, rot:1}, {x:19, y:10, rot:5}, {x:14, y:9, rot:5}], "TrainToy", "toy_mc", _local1.view));
_local1.rewards.push(new MainGame.Objects.Reward([{x:6, y:15}, {x:9, y:11}, {x:13, y:15}], "lvl3_0", _local1.view));
_local1.rewards.push(new MainGame.Objects.Reward([{x:8, y:9}, {x:13, y:6}, {x:8, y:5}], "lvl3_1", _local1.view));
_local1.cars = new Array();
_local1.cars.push(new MainGame.Objects.TrainCar([{x:8, y:17, rot:1}, {x:12, y:15, rot:1}, {x:14, y:13, rot:5}, {x:16, y:10, rot:7}], "TrainDefault", "car0", _local1.view));
_local1.cars.push(new MainGame.Objects.TrainCar([{x:6, y:8, rot:1}, {x:9, y:14, rot:1}, {x:10, y:11, rot:5}, {x:11, y:7, rot:1}], "TrainDefault", "car1", _local1.view));
_local1.cars.push(new MainGame.Objects.TrainCar([{x:12, y:17, rot:1}, {x:15, y:12, rot:5}, {x:9, y:5, rot:5}, {x:16, y:6, rot:5}], "TrainDefault", "car2", _local1.view));
_local1.cars.push(new MainGame.Objects.TrainCar([{x:4, y:13, rot:1}, {x:13, y:9, rot:5}, {x:19, y:9, rot:5}, {x:13, y:4, rot:1}], "TrainDefault", "car3", _local1.view));
}
function showNewReward() {
var _local1 = this;
if (_local1.currentReward == null) {
_local1.currentReward = 0;
} else {
_local1.rewards[_local1.currentReward].remove();
_local1.currentReward++;
}
if (_local1.currentReward < _local1.rewards.length) {
_local1.rewards[_local1.currentReward].show();
}
}
function showNewCar() {
var _local1 = this;
if (_local1.currentCar == null) {
_local1.currentCar = 0;
} else {
_local1.cars[_local1.currentCar].remove();
_local1.currentCar++;
}
if (_local1.currentCar < _local1.cars.length) {
_local1.cars[_local1.currentCar].show();
} else {
_local1.view.activateExit();
}
}
function getCollection(x, y, start) {
var _local1 = this[(("tile_" + x) + "_") + y];
if (_local1.multiPath) {
var _local2 = _local1[("collection_" + start) + _local1.currentPath];
} else {
var _local2 = _local1["collection_" + start];
}
return(_local2);
}
var REQUIRED = 4;
var GRID_WIDTH = 23;
var GRID_HEIGHT = 23;
var TILE_WIDTH = 50;
var TILE_HEIGHT = 40;
var GRID_X = 280;
var GRID_Y = -238;
var START_X = 9;
var START_Y = 20;
var START_SIDE = 3;
var END_X = 12;
var END_Y = 0;
var END_SIDE = 1;
var FADE_X = 12;
var FADE_Y = 2;
var BONUS_TIME = 540;
var BONUS_POINTS = 5000;
var GRID = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 15, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 6, 9, 9, 3, 3, 12, 9, 7, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 5, 10, 2, 0, 15, 3, 7, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 6, 3, 4, 0, 15, 12, 1, 3, 4, 2, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 15, 12, 7, 6, 3, 7, 0, 15, 1, 4, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 6, 1, 3, 1, 3, 3, 3, 4, 6, 3, 1, 1, 9, 13, 7, 0, 0, 0], [0, 0, 0, 0, 6, 3, 1, 3, 1, 3, 3, 4, 0, 2, 2, 0, 6, 10, 2, 2, 0, 0, 0], [0, 0, 0, 6, 12, 3, 7, 5, 1, 3, 3, 13, 1, 3, 3, 7, 5, 10, 2, 2, 0, 0, 0], [0, 0, 6, 3, 7, 5, 3, 7, 0, 2, 2, 2, 0, 2, 2, 2, 0, 11, 3, 4, 0, 0, 0], [0, 0, 4, 11, 8, 7, 5, 3, 7, 5, 3, 4, 0, 16, 2, 2, 0, 5, 4, 0, 0, 0, 0], [0, 0, 0, 5, 1, 3, 7, 5, 3, 13, 8, 7, 0, 2, 2, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 6, 10, 11, 1, 3, 3, 1, 3, 1, 12, 3, 4, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 5, 12, 4, 0, 2, 11, 1, 3, 1, 1, 14, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 6, 1, 8, 14, 6, 10, 0, 6, 4, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 5, 1, 1, 3, 3, 8, 1, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
}
Symbol 962 MovieClip [__Packages.MainGame.Tile.Tile] Frame 0
class MainGame.Tile.Tile extends MovieClip
{
var __x, __y;
function Tile () {
super();
mx.events.EventDispatcher.initialize(this);
}
function get x_pos() {
return(__x);
}
function set x_pos(x) {
__x = x;
//return(x_pos);
}
function get y_pos() {
return(__y);
}
function set y_pos(y) {
__y = y;
//return(y_pos);
}
function get multiPath() {
return(__multiPath);
}
function set multiPath(m) {
__multiPath = m;
//return(multiPath);
}
function get currentPath() {
return(__currentPath);
}
function set currentPath(c) {
__currentPath = c;
//return(currentPath);
}
function get isActive() {
return(__isActive);
}
function set isActive(a) {
__isActive = a;
//return(isActive);
}
function get isBlocked() {
return(__isBlocked);
}
function set isBlocked(b) {
__isBlocked = b;
//return(isBlocked);
}
function get reward() {
return(__reward);
}
function set reward(r) {
__reward = r;
//return(reward);
}
function get train() {
return(__train);
}
function set train(t) {
__train = t;
//return(train);
}
function get pill() {
return(__pill);
}
function set pill(p) {
__pill = p;
//return(pill);
}
var __multiPath = false;
var __currentPath = null;
var __isActive = false;
var __isBlocked = false;
var __reward = null;
var __train = null;
var __pill = null;
}
Symbol 963 MovieClip [__Packages.MainGame.Tile.Tile1] Frame 0
class MainGame.Tile.Tile1 extends MainGame.Tile.Tile
{
function Tile1 () {
var _local1 = this;
super();
_local1.collection_0 = new Object();
_local1.collection_0.target = _local1;
_local1.collection_0.exit = 2;
_local1.collection_0.path = new Array({x:13.2, y:9.9, rotation:9}, {x:14.9, y:11.3, rotation:9}, {x:16.6, y:12.7, rotation:9}, {x:18.3, y:14, rotation:9}, {x:20, y:15.4, rotation:9}, {x:21.6, y:16.7, rotation:9}, {x:23.4, y:18.1, rotation:9}, {x:25.1, y:19.4, rotation:9}, {x:26.8, y:20.8, rotation:9}, {x:28.4, y:22.1, rotation:9}, {x:30.1, y:23.4, rotation:9}, {x:31.9, y:24.9, rotation:9}, {x:33.6, y:26.2, rotation:9}, {x:35.4, y:27.6, rotation:9}, {x:36.9, y:28.9, rotation:9});
_local1.collection_2 = new Object();
_local1.collection_2.target = _local1;
_local1.collection_2.exit = 0;
_local1.collection_2.path = new Array({x:36.9, y:28.9, rotation:1}, {x:35.4, y:27.6, rotation:1}, {x:33.6, y:26.2, rotation:1}, {x:31.9, y:24.9, rotation:1}, {x:30.1, y:23.4, rotation:1}, {x:28.4, y:22.1, rotation:1}, {x:26.8, y:20.8, rotation:1}, {x:25.1, y:19.4, rotation:1}, {x:23.4, y:18.1, rotation:1}, {x:21.6, y:16.7, rotation:1}, {x:20, y:15.4, rotation:1}, {x:18.3, y:14, rotation:1}, {x:16.6, y:12.7, rotation:1}, {x:14.9, y:11.3, rotation:1}, {x:13.2, y:9.9, rotation:1});
}
}
Symbol 964 MovieClip [__Packages.MainGame.Tile.Tile2] Frame 0
class MainGame.Tile.Tile2 extends MainGame.Tile.Tile
{
function Tile2 () {
var _local1 = this;
super();
_local1.collection_1 = new Object();
_local1.collection_1.target = _local1;
_local1.collection_1.exit = 3;
_local1.collection_1.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
_local1.collection_3 = new Object();
_local1.collection_3.target = _local1;
_local1.collection_3.exit = 1;
_local1.collection_3.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
}
}
Symbol 965 MovieClip [__Packages.MainGame.Tile.Tile3] Frame 0
class MainGame.Tile.Tile3 extends MainGame.Tile.Tile
{
function Tile3 () {
var _local1 = this;
super();
_local1.collection_0 = new Object();
_local1.collection_0.target = _local1;
_local1.collection_0.exit = 2;
_local1.collection_0.path = new Array({x:13.2, y:9.9, rotation:9}, {x:14.9, y:11.3, rotation:9}, {x:16.6, y:12.7, rotation:9}, {x:18.3, y:14, rotation:9}, {x:20, y:15.4, rotation:9}, {x:21.6, y:16.7, rotation:9}, {x:23.4, y:18.1, rotation:9}, {x:25.1, y:19.4, rotation:9}, {x:26.8, y:20.8, rotation:9}, {x:28.4, y:22.1, rotation:9}, {x:30.1, y:23.4, rotation:9}, {x:31.9, y:24.9, rotation:9}, {x:33.6, y:26.2, rotation:9}, {x:35.4, y:27.6, rotation:9}, {x:36.9, y:28.9, rotation:9});
_local1.collection_1 = new Object();
_local1.collection_1.target = _local1;
_local1.collection_1.exit = 3;
_local1.collection_1.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
_local1.collection_2 = new Object();
_local1.collection_2.target = _local1;
_local1.collection_2.exit = 0;
_local1.collection_2.path = new Array({x:36.9, y:28.9, rotation:1}, {x:35.4, y:27.6, rotation:1}, {x:33.6, y:26.2, rotation:1}, {x:31.9, y:24.9, rotation:1}, {x:30.1, y:23.4, rotation:1}, {x:28.4, y:22.1, rotation:1}, {x:26.8, y:20.8, rotation:1}, {x:25.1, y:19.4, rotation:1}, {x:23.4, y:18.1, rotation:1}, {x:21.6, y:16.7, rotation:1}, {x:20, y:15.4, rotation:1}, {x:18.3, y:14, rotation:1}, {x:16.6, y:12.7, rotation:1}, {x:14.9, y:11.3, rotation:1}, {x:13.2, y:9.9, rotation:1});
_local1.collection_3 = new Object();
_local1.collection_3.target = _local1;
_local1.collection_3.exit = 1;
_local1.collection_3.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
}
}
Symbol 966 MovieClip [__Packages.MainGame.Tile.Tile4] Frame 0
class MainGame.Tile.Tile4 extends MainGame.Tile.Tile
{
function Tile4 () {
var _local1 = this;
super();
_local1.collection_0 = new Object();
_local1.collection_0.target = _local1;
_local1.collection_0.exit = 1;
_local1.collection_0.path = new Array({x:13.3, y:9.9, rotation:9}, {x:14.8, y:10.9, rotation:9}, {x:16.4, y:11.7, rotation:9}, {x:18.1, y:12.3, rotation:10}, {x:19.8, y:12.8, rotation:10}, {x:21.4, y:13.1, rotation:10}, {x:23.1, y:13.2, rotation:11}, {x:24.9, y:13.2, rotation:11}, {x:26.8, y:13, rotation:12}, {x:28.6, y:12.8, rotation:12}, {x:30.4, y:12.3, rotation:12}, {x:32.3, y:11.7, rotation:13}, {x:34.1, y:10.8, rotation:13}, {x:35.8, y:9.8, rotation:13});
_local1.collection_1 = new Object();
_local1.collection_1.target = _local1;
_local1.collection_1.exit = 0;
_local1.collection_1.path = new Array({x:35.8, y:9.8, rotation:5}, {x:34.1, y:10.8, rotation:5}, {x:32.3, y:11.7, rotation:5}, {x:30.4, y:12.3, rotation:4}, {x:28.6, y:12.8, rotation:4}, {x:26.8, y:13, rotation:4}, {x:24.9, y:13.2, rotation:3}, {x:23.1, y:13.2, rotation:3}, {x:21.4, y:13.1, rotation:2}, {x:19.8, y:12.8, rotation:2}, {x:18.1, y:12.3, rotation:2}, {x:16.4, y:11.7, rotation:1}, {x:14.8, y:10.9, rotation:1}, {x:13.3, y:9.9, rotation:1});
}
}
Symbol 967 MovieClip [__Packages.MainGame.Tile.Tile5] Frame 0
class MainGame.Tile.Tile5 extends MainGame.Tile.Tile
{
function Tile5 () {
var _local1 = this;
super();
_local1.collection_1 = new Object();
_local1.collection_1.target = _local1;
_local1.collection_1.exit = 2;
_local1.collection_1.path = new Array({x:36.3, y:9.8, rotation:5}, {x:35.5, y:10.9, rotation:5}, {x:34.6, y:12.2, rotation:5}, {x:33.9, y:13.5, rotation:6}, {x:33.3, y:15, rotation:6}, {x:32.9, y:16.5, rotation:6}, {x:32.7, y:18, rotation:7}, {x:32.8, y:19.6, rotation:7}, {x:32.9, y:21.1, rotation:8}, {x:33.3, y:22.7, rotation:8}, {x:34.1, y:24.3, rotation:8}, {x:35, y:25.8, rotation:9}, {x:36.1, y:27, rotation:9}, {x:37.3, y:28.1, rotation:9});
_local1.collection_2 = new Object();
_local1.collection_2.target = _local1;
_local1.collection_2.exit = 1;
_local1.collection_2.path = new Array({x:37.3, y:28.1, rotation:1}, {x:36.1, y:27, rotation:1}, {x:35, y:25.8, rotation:1}, {x:34.1, y:24.3, rotation:16}, {x:33.3, y:22.7, rotation:16}, {x:32.9, y:21.1, rotation:16}, {x:32.8, y:19.6, rotation:15}, {x:32.7, y:18, rotation:15}, {x:32.9, y:16.5, rotation:14}, {x:33.3, y:15, rotation:14}, {x:33.9, y:13.5, rotation:14}, {x:34.6, y:12.2, rotation:13}, {x:35.5, y:10.9, rotation:13}, {x:36.3, y:9.8, rotation:13});
}
}
Symbol 968 MovieClip [__Packages.MainGame.Tile.Tile6] Frame 0
class MainGame.Tile.Tile6 extends MainGame.Tile.Tile
{
function Tile6 () {
var _local1 = this;
super();
_local1.collection_2 = new Object();
_local1.collection_2.target = _local1;
_local1.collection_2.exit = 3;
_local1.collection_2.path = new Array({x:35.9, y:29, rotation:1}, {x:34.1, y:28, rotation:1}, {x:32.4, y:27.2, rotation:1}, {x:30.5, y:26.6, rotation:2}, {x:28.6, y:26.2, rotation:2}, {x:26.8, y:26, rotation:2}, {x:25, y:26.1, rotation:3}, {x:23.2, y:26.1, rotation:3}, {x:21.5, y:26.3, rotation:4}, {x:19.8, y:26.6, rotation:4}, {x:18.1, y:27.1, rotation:4}, {x:16.4, y:27.8, rotation:5}, {x:14.9, y:28.6, rotation:5}, {x:13.4, y:29.6, rotation:5});
_local1.collection_3 = new Object();
_local1.collection_3.target = _local1;
_local1.collection_3.exit = 2;
_local1.collection_3.path = new Array({x:13.4, y:29.6, rotation:13}, {x:14.9, y:28.6, rotation:13}, {x:16.4, y:27.8, rotation:13}, {x:18.1, y:27.1, rotation:12}, {x:19.8, y:26.6, rotation:12}, {x:21.5, y:26.3, rotation:12}, {x:23.2, y:26.1, rotation:11}, {x:25, y:26.1, rotation:11}, {x:26.8, y:26, rotation:10}, {x:28.6, y:26.2, rotation:10}, {x:30.5, y:26.6, rotation:10}, {x:32.4, y:27.2, rotation:9}, {x:34.1, y:28, rotation:9}, {x:35.9, y:29, rotation:9});
}
}
Symbol 969 MovieClip [__Packages.MainGame.Tile.Tile7] Frame 0
class MainGame.Tile.Tile7 extends MainGame.Tile.Tile
{
function Tile7 () {
var _local1 = this;
super();
_local1.collection_0 = new Object();
_local1.collection_0.target = _local1;
_local1.collection_0.exit = 3;
_local1.collection_0.path = new Array({x:12.6, y:10.4, rotation:9}, {x:13.7, y:11.4, rotation:9}, {x:14.7, y:12.7, rotation:9}, {x:15.5, y:14, rotation:8}, {x:16.2, y:15.5, rotation:8}, {x:16.6, y:17, rotation:8}, {x:16.9, y:18.5, rotation:7}, {x:16.9, y:20.1, rotation:7}, {x:16.6, y:21.6, rotation:6}, {x:16.2, y:23.2, rotation:6}, {x:15.6, y:24.8, rotation:6}, {x:14.7, y:26.3, rotation:5}, {x:13.8, y:27.5, rotation:5}, {x:12.6, y:28.6, rotation:5});
_local1.collection_3 = new Object();
_local1.collection_3.target = _local1;
_local1.collection_3.exit = 0;
_local1.collection_3.path = new Array({x:12.6, y:28.6, rotation:13}, {x:13.8, y:27.5, rotation:13}, {x:14.7, y:26.3, rotation:13}, {x:15.6, y:24.8, rotation:14}, {x:16.2, y:23.2, rotation:14}, {x:16.6, y:21.6, rotation:14}, {x:16.9, y:20.1, rotation:15}, {x:16.9, y:18.5, rotation:15}, {x:16.6, y:17, rotation:16}, {x:16.2, y:15.5, rotation:16}, {x:15.5, y:14, rotation:16}, {x:14.7, y:12.7, rotation:1}, {x:13.7, y:11.4, rotation:1}, {x:12.6, y:10.4, rotation:1});
}
}
Symbol 970 MovieClip [__Packages.MainGame.Tile.Tile8] Frame 0
class MainGame.Tile.Tile8 extends MainGame.Tile.Tile
{
function Tile8 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_0a = new Object();
_local1.collection_0a.target = _local1;
_local1.collection_0a.exit = 2;
_local1.collection_0a.path = new Array({x:13.2, y:9.9, rotation:9}, {x:14.9, y:11.3, rotation:9}, {x:16.6, y:12.7, rotation:9}, {x:18.3, y:14, rotation:9}, {x:20, y:15.4, rotation:9}, {x:21.6, y:16.7, rotation:9}, {x:23.4, y:18.1, rotation:9}, {x:25.1, y:19.4, rotation:9}, {x:26.8, y:20.8, rotation:9}, {x:28.4, y:22.1, rotation:9}, {x:30.1, y:23.4, rotation:9}, {x:31.9, y:24.9, rotation:9}, {x:33.6, y:26.2, rotation:9}, {x:35.4, y:27.6, rotation:9}, {x:36.9, y:28.9, rotation:9});
_local1.collection_0b = new Object();
_local1.collection_0b.target = _local1;
_local1.collection_0b.exit = 1;
_local1.collection_0b.path = new Array({x:13.3, y:9.9, rotation:9}, {x:14.8, y:10.9, rotation:9}, {x:16.4, y:11.7, rotation:9}, {x:18.1, y:12.3, rotation:10}, {x:19.8, y:12.8, rotation:10}, {x:21.4, y:13.1, rotation:10}, {x:23.1, y:13.2, rotation:11}, {x:24.9, y:13.2, rotation:11}, {x:26.8, y:13, rotation:12}, {x:28.6, y:12.8, rotation:12}, {x:30.4, y:12.3, rotation:12}, {x:32.3, y:11.7, rotation:13}, {x:34.1, y:10.8, rotation:13}, {x:35.8, y:9.8, rotation:13});
_local1.collection_1b = new Object();
_local1.collection_1b.target = _local1;
_local1.collection_1b.exit = 0;
_local1.collection_1b.path = new Array({x:35.8, y:9.8, rotation:5}, {x:34.1, y:10.8, rotation:5}, {x:32.3, y:11.7, rotation:5}, {x:30.4, y:12.3, rotation:4}, {x:28.6, y:12.8, rotation:4}, {x:26.8, y:13, rotation:4}, {x:24.9, y:13.2, rotation:3}, {x:23.1, y:13.2, rotation:3}, {x:21.4, y:13.1, rotation:2}, {x:19.8, y:12.8, rotation:2}, {x:18.1, y:12.3, rotation:2}, {x:16.4, y:11.7, rotation:1}, {x:14.8, y:10.9, rotation:1}, {x:13.3, y:9.9, rotation:1});
_local1.collection_2a = new Object();
_local1.collection_2a.target = _local1;
_local1.collection_2a.exit = 0;
_local1.collection_2a.path = new Array({x:36.9, y:28.9, rotation:1}, {x:35.4, y:27.6, rotation:1}, {x:33.6, y:26.2, rotation:1}, {x:31.9, y:24.9, rotation:1}, {x:30.1, y:23.4, rotation:1}, {x:28.4, y:22.1, rotation:1}, {x:26.8, y:20.8, rotation:1}, {x:25.1, y:19.4, rotation:1}, {x:23.4, y:18.1, rotation:1}, {x:21.6, y:16.7, rotation:1}, {x:20, y:15.4, rotation:1}, {x:18.3, y:14, rotation:1}, {x:16.6, y:12.7, rotation:1}, {x:14.9, y:11.3, rotation:1}, {x:13.2, y:9.9, rotation:1});
}
}
Symbol 971 MovieClip [__Packages.MainGame.Tile.Tile9] Frame 0
class MainGame.Tile.Tile9 extends MainGame.Tile.Tile
{
function Tile9 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_0a = new Object();
_local1.collection_0a.target = _local1;
_local1.collection_0a.exit = 2;
_local1.collection_0a.path = new Array({x:13.2, y:9.9, rotation:9}, {x:14.9, y:11.3, rotation:9}, {x:16.6, y:12.7, rotation:9}, {x:18.3, y:14, rotation:9}, {x:20, y:15.4, rotation:9}, {x:21.6, y:16.7, rotation:9}, {x:23.4, y:18.1, rotation:9}, {x:25.1, y:19.4, rotation:9}, {x:26.8, y:20.8, rotation:9}, {x:28.4, y:22.1, rotation:9}, {x:30.1, y:23.4, rotation:9}, {x:31.9, y:24.9, rotation:9}, {x:33.6, y:26.2, rotation:9}, {x:35.4, y:27.6, rotation:9}, {x:36.9, y:28.9, rotation:9});
_local1.collection_0b = new Object();
_local1.collection_0b.target = _local1;
_local1.collection_0b.exit = 3;
_local1.collection_0b.path = new Array({x:12.6, y:10.4, rotation:9}, {x:13.7, y:11.4, rotation:9}, {x:14.7, y:12.7, rotation:9}, {x:15.5, y:14, rotation:8}, {x:16.2, y:15.5, rotation:8}, {x:16.6, y:17, rotation:8}, {x:16.9, y:18.5, rotation:7}, {x:16.9, y:20.1, rotation:7}, {x:16.6, y:21.6, rotation:6}, {x:16.2, y:23.2, rotation:6}, {x:15.6, y:24.8, rotation:6}, {x:14.7, y:26.3, rotation:5}, {x:13.8, y:27.5, rotation:5}, {x:12.6, y:28.6, rotation:5});
_local1.collection_3b = new Object();
_local1.collection_3b.target = _local1;
_local1.collection_3b.exit = 0;
_local1.collection_3b.path = new Array({x:12.6, y:28.6, rotation:13}, {x:13.8, y:27.5, rotation:13}, {x:14.7, y:26.3, rotation:13}, {x:15.6, y:24.8, rotation:14}, {x:16.2, y:23.2, rotation:14}, {x:16.6, y:21.6, rotation:14}, {x:16.9, y:20.1, rotation:15}, {x:16.9, y:18.5, rotation:15}, {x:16.6, y:17, rotation:16}, {x:16.2, y:15.5, rotation:16}, {x:15.5, y:14, rotation:16}, {x:14.7, y:12.7, rotation:1}, {x:13.7, y:11.4, rotation:1}, {x:12.6, y:10.4, rotation:1});
_local1.collection_2a = new Object();
_local1.collection_2a.target = _local1;
_local1.collection_2a.exit = 0;
_local1.collection_2a.path = new Array({x:36.9, y:28.9, rotation:1}, {x:35.4, y:27.6, rotation:1}, {x:33.6, y:26.2, rotation:1}, {x:31.9, y:24.9, rotation:1}, {x:30.1, y:23.4, rotation:1}, {x:28.4, y:22.1, rotation:1}, {x:26.8, y:20.8, rotation:1}, {x:25.1, y:19.4, rotation:1}, {x:23.4, y:18.1, rotation:1}, {x:21.6, y:16.7, rotation:1}, {x:20, y:15.4, rotation:1}, {x:18.3, y:14, rotation:1}, {x:16.6, y:12.7, rotation:1}, {x:14.9, y:11.3, rotation:1}, {x:13.2, y:9.9, rotation:1});
}
}
Symbol 972 MovieClip [__Packages.MainGame.Tile.Tile10] Frame 0
class MainGame.Tile.Tile10 extends MainGame.Tile.Tile
{
function Tile10 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_1a = new Object();
_local1.collection_1a.target = _local1;
_local1.collection_1a.exit = 3;
_local1.collection_1a.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
_local1.collection_1b = new Object();
_local1.collection_1b.target = _local1;
_local1.collection_1b.exit = 0;
_local1.collection_1b.path = new Array({x:35.8, y:9.8, rotation:5}, {x:34.1, y:10.8, rotation:5}, {x:32.3, y:11.7, rotation:5}, {x:30.4, y:12.3, rotation:4}, {x:28.6, y:12.8, rotation:4}, {x:26.8, y:13, rotation:4}, {x:24.9, y:13.2, rotation:3}, {x:23.1, y:13.2, rotation:3}, {x:21.4, y:13.1, rotation:2}, {x:19.8, y:12.8, rotation:2}, {x:18.1, y:12.3, rotation:2}, {x:16.4, y:11.7, rotation:1}, {x:14.8, y:10.9, rotation:1}, {x:13.3, y:9.9, rotation:1});
_local1.collection_0b = new Object();
_local1.collection_0b.target = _local1;
_local1.collection_0b.exit = 1;
_local1.collection_0b.path = new Array({x:13.3, y:9.9, rotation:9}, {x:14.8, y:10.9, rotation:9}, {x:16.4, y:11.7, rotation:9}, {x:18.1, y:12.3, rotation:10}, {x:19.8, y:12.8, rotation:10}, {x:21.4, y:13.1, rotation:10}, {x:23.1, y:13.2, rotation:11}, {x:24.9, y:13.2, rotation:11}, {x:26.8, y:13, rotation:12}, {x:28.6, y:12.8, rotation:12}, {x:30.4, y:12.3, rotation:12}, {x:32.3, y:11.7, rotation:13}, {x:34.1, y:10.8, rotation:13}, {x:35.8, y:9.8, rotation:13});
_local1.collection_3a = new Object();
_local1.collection_3a.target = _local1;
_local1.collection_3a.exit = 1;
_local1.collection_3a.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
}
}
Symbol 973 MovieClip [__Packages.MainGame.Tile.Tile11] Frame 0
class MainGame.Tile.Tile11 extends MainGame.Tile.Tile
{
function Tile11 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_1a = new Object();
_local1.collection_1a.target = _local1;
_local1.collection_1a.exit = 3;
_local1.collection_1a.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
_local1.collection_1b = new Object();
_local1.collection_1b.target = _local1;
_local1.collection_1b.exit = 2;
_local1.collection_1b.path = new Array({x:36.3, y:9.8, rotation:5}, {x:35.5, y:10.9, rotation:5}, {x:34.6, y:12.2, rotation:5}, {x:33.9, y:13.5, rotation:6}, {x:33.3, y:15, rotation:6}, {x:32.9, y:16.5, rotation:6}, {x:32.7, y:18, rotation:7}, {x:32.8, y:19.6, rotation:7}, {x:32.9, y:21.1, rotation:8}, {x:33.3, y:22.7, rotation:8}, {x:34.1, y:24.3, rotation:8}, {x:35, y:25.8, rotation:9}, {x:36.1, y:27, rotation:9}, {x:37.3, y:28.1, rotation:9});
_local1.collection_2b = new Object();
_local1.collection_2b.target = _local1;
_local1.collection_2b.exit = 1;
_local1.collection_2b.path = new Array({x:37.3, y:28.1, rotation:1}, {x:36.1, y:27, rotation:1}, {x:35, y:25.8, rotation:1}, {x:34.1, y:24.3, rotation:16}, {x:33.3, y:22.7, rotation:16}, {x:32.9, y:21.1, rotation:16}, {x:32.8, y:19.6, rotation:15}, {x:32.7, y:18, rotation:15}, {x:32.9, y:16.5, rotation:14}, {x:33.3, y:15, rotation:14}, {x:33.9, y:13.5, rotation:14}, {x:34.6, y:12.2, rotation:13}, {x:35.5, y:10.9, rotation:13}, {x:36.3, y:9.8, rotation:13});
_local1.collection_3a = new Object();
_local1.collection_3a.target = _local1;
_local1.collection_3a.exit = 1;
_local1.collection_3a.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
}
}
Symbol 974 MovieClip [__Packages.MainGame.Tile.Tile12] Frame 0
class MainGame.Tile.Tile12 extends MainGame.Tile.Tile
{
function Tile12 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_2a = new Object();
_local1.collection_2a.target = _local1;
_local1.collection_2a.exit = 0;
_local1.collection_2a.path = new Array({x:36.9, y:28.9, rotation:1}, {x:35.4, y:27.6, rotation:1}, {x:33.6, y:26.2, rotation:1}, {x:31.9, y:24.9, rotation:1}, {x:30.1, y:23.4, rotation:1}, {x:28.4, y:22.1, rotation:1}, {x:26.8, y:20.8, rotation:1}, {x:25.1, y:19.4, rotation:1}, {x:23.4, y:18.1, rotation:1}, {x:21.6, y:16.7, rotation:1}, {x:20, y:15.4, rotation:1}, {x:18.3, y:14, rotation:1}, {x:16.6, y:12.7, rotation:1}, {x:14.9, y:11.3, rotation:1}, {x:13.2, y:9.9, rotation:1});
_local1.collection_2b = new Object();
_local1.collection_2b.target = _local1;
_local1.collection_2b.exit = 1;
_local1.collection_2b.path = new Array({x:37.3, y:28.1, rotation:1}, {x:36.1, y:27, rotation:1}, {x:35, y:25.8, rotation:1}, {x:34.1, y:24.3, rotation:16}, {x:33.3, y:22.7, rotation:16}, {x:32.9, y:21.1, rotation:16}, {x:32.8, y:19.6, rotation:15}, {x:32.7, y:18, rotation:15}, {x:32.9, y:16.5, rotation:14}, {x:33.3, y:15, rotation:14}, {x:33.9, y:13.5, rotation:14}, {x:34.6, y:12.2, rotation:13}, {x:35.5, y:10.9, rotation:13}, {x:36.3, y:9.8, rotation:13});
_local1.collection_1b = new Object();
_local1.collection_1b.target = _local1;
_local1.collection_1b.exit = 2;
_local1.collection_1b.path = new Array({x:36.3, y:9.8, rotation:5}, {x:35.5, y:10.9, rotation:5}, {x:34.6, y:12.2, rotation:5}, {x:33.9, y:13.5, rotation:6}, {x:33.3, y:15, rotation:6}, {x:32.9, y:16.5, rotation:6}, {x:32.7, y:18, rotation:7}, {x:32.8, y:19.6, rotation:7}, {x:32.9, y:21.1, rotation:8}, {x:33.3, y:22.7, rotation:8}, {x:34.1, y:24.3, rotation:8}, {x:35, y:25.8, rotation:9}, {x:36.1, y:27, rotation:9}, {x:37.3, y:28.1, rotation:9});
_local1.collection_0a = new Object();
_local1.collection_0a.target = _local1;
_local1.collection_0a.exit = 2;
_local1.collection_0a.path = new Array({x:13.2, y:9.9, rotation:9}, {x:14.9, y:11.3, rotation:9}, {x:16.6, y:12.7, rotation:9}, {x:18.3, y:14, rotation:9}, {x:20, y:15.4, rotation:9}, {x:21.6, y:16.7, rotation:9}, {x:23.4, y:18.1, rotation:9}, {x:25.1, y:19.4, rotation:9}, {x:26.8, y:20.8, rotation:9}, {x:28.4, y:22.1, rotation:9}, {x:30.1, y:23.4, rotation:9}, {x:31.9, y:24.9, rotation:9}, {x:33.6, y:26.2, rotation:9}, {x:35.4, y:27.6, rotation:9}, {x:36.9, y:28.9, rotation:9});
}
}
Symbol 975 MovieClip [__Packages.MainGame.Tile.Tile13] Frame 0
class MainGame.Tile.Tile13 extends MainGame.Tile.Tile
{
function Tile13 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_2a = new Object();
_local1.collection_2a.target = _local1;
_local1.collection_2a.exit = 0;
_local1.collection_2a.path = new Array({x:36.9, y:28.9, rotation:1}, {x:35.4, y:27.6, rotation:1}, {x:33.6, y:26.2, rotation:1}, {x:31.9, y:24.9, rotation:1}, {x:30.1, y:23.4, rotation:1}, {x:28.4, y:22.1, rotation:1}, {x:26.8, y:20.8, rotation:1}, {x:25.1, y:19.4, rotation:1}, {x:23.4, y:18.1, rotation:1}, {x:21.6, y:16.7, rotation:1}, {x:20, y:15.4, rotation:1}, {x:18.3, y:14, rotation:1}, {x:16.6, y:12.7, rotation:1}, {x:14.9, y:11.3, rotation:1}, {x:13.2, y:9.9, rotation:1});
_local1.collection_2b = new Object();
_local1.collection_2b.target = _local1;
_local1.collection_2b.exit = 3;
_local1.collection_2b.path = new Array({x:35.9, y:29, rotation:1}, {x:34.1, y:28, rotation:1}, {x:32.4, y:27.2, rotation:1}, {x:30.5, y:26.6, rotation:2}, {x:28.6, y:26.2, rotation:2}, {x:26.8, y:26, rotation:2}, {x:25, y:26.1, rotation:3}, {x:23.2, y:26.1, rotation:3}, {x:21.5, y:26.3, rotation:4}, {x:19.8, y:26.6, rotation:4}, {x:18.1, y:27.1, rotation:4}, {x:16.4, y:27.8, rotation:5}, {x:14.9, y:28.6, rotation:5}, {x:13.4, y:29.6, rotation:5});
_local1.collection_3b = new Object();
_local1.collection_3b.target = _local1;
_local1.collection_3b.exit = 2;
_local1.collection_3b.path = new Array({x:13.4, y:29.6, rotation:13}, {x:14.9, y:28.6, rotation:13}, {x:16.4, y:27.8, rotation:13}, {x:18.1, y:27.1, rotation:12}, {x:19.8, y:26.6, rotation:12}, {x:21.5, y:26.3, rotation:12}, {x:23.2, y:26.1, rotation:11}, {x:25, y:26.1, rotation:11}, {x:26.8, y:26, rotation:10}, {x:28.6, y:26.2, rotation:10}, {x:30.5, y:26.6, rotation:10}, {x:32.4, y:27.2, rotation:9}, {x:34.1, y:28, rotation:9}, {x:35.9, y:29, rotation:9});
_local1.collection_0a = new Object();
_local1.collection_0a.target = _local1;
_local1.collection_0a.exit = 2;
_local1.collection_0a.path = new Array({x:13.2, y:9.9, rotation:9}, {x:14.9, y:11.3, rotation:9}, {x:16.6, y:12.7, rotation:9}, {x:18.3, y:14, rotation:9}, {x:20, y:15.4, rotation:9}, {x:21.6, y:16.7, rotation:9}, {x:23.4, y:18.1, rotation:9}, {x:25.1, y:19.4, rotation:9}, {x:26.8, y:20.8, rotation:9}, {x:28.4, y:22.1, rotation:9}, {x:30.1, y:23.4, rotation:9}, {x:31.9, y:24.9, rotation:9}, {x:33.6, y:26.2, rotation:9}, {x:35.4, y:27.6, rotation:9}, {x:36.9, y:28.9, rotation:9});
}
}
Symbol 976 MovieClip [__Packages.MainGame.Tile.Tile14] Frame 0
class MainGame.Tile.Tile14 extends MainGame.Tile.Tile
{
function Tile14 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_3a = new Object();
_local1.collection_3a.target = _local1;
_local1.collection_3a.exit = 1;
_local1.collection_3a.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
_local1.collection_3b = new Object();
_local1.collection_3b.target = _local1;
_local1.collection_3b.exit = 0;
_local1.collection_3b.path = new Array({x:12.6, y:28.6, rotation:13}, {x:13.8, y:27.5, rotation:13}, {x:14.7, y:26.3, rotation:13}, {x:15.6, y:24.8, rotation:14}, {x:16.2, y:23.2, rotation:14}, {x:16.6, y:21.6, rotation:14}, {x:16.9, y:20.1, rotation:15}, {x:16.9, y:18.5, rotation:15}, {x:16.6, y:17, rotation:16}, {x:16.2, y:15.5, rotation:16}, {x:15.5, y:14, rotation:16}, {x:14.7, y:12.7, rotation:1}, {x:13.7, y:11.4, rotation:1}, {x:12.6, y:10.4, rotation:1});
_local1.collection_0b = new Object();
_local1.collection_0b.target = _local1;
_local1.collection_0b.exit = 3;
_local1.collection_0b.path = new Array({x:12.6, y:10.4, rotation:9}, {x:13.7, y:11.4, rotation:9}, {x:14.7, y:12.7, rotation:9}, {x:15.5, y:14, rotation:8}, {x:16.2, y:15.5, rotation:8}, {x:16.6, y:17, rotation:8}, {x:16.9, y:18.5, rotation:7}, {x:16.9, y:20.1, rotation:7}, {x:16.6, y:21.6, rotation:6}, {x:16.2, y:23.2, rotation:6}, {x:15.6, y:24.8, rotation:6}, {x:14.7, y:26.3, rotation:5}, {x:13.8, y:27.5, rotation:5}, {x:12.6, y:28.6, rotation:5});
_local1.collection_1a = new Object();
_local1.collection_1a.target = _local1;
_local1.collection_1a.exit = 3;
_local1.collection_1a.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
}
}
Symbol 977 MovieClip [__Packages.MainGame.Tile.Tile15] Frame 0
class MainGame.Tile.Tile15 extends MainGame.Tile.Tile
{
function Tile15 () {
var _local1 = this;
super();
_local1.__set__multiPath(true);
_local1.__set__currentPath("a");
_local1.collection_3a = new Object();
_local1.collection_3a.target = _local1;
_local1.collection_3a.exit = 1;
_local1.collection_3a.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
_local1.collection_3b = new Object();
_local1.collection_3b.target = _local1;
_local1.collection_3b.exit = 2;
_local1.collection_3b.path = new Array({x:13.4, y:29.6, rotation:13}, {x:14.9, y:28.6, rotation:13}, {x:16.4, y:27.8, rotation:13}, {x:18.1, y:27.1, rotation:12}, {x:19.8, y:26.6, rotation:12}, {x:21.5, y:26.3, rotation:12}, {x:23.2, y:26.1, rotation:11}, {x:25, y:26.1, rotation:11}, {x:26.8, y:26, rotation:10}, {x:28.6, y:26.2, rotation:10}, {x:30.5, y:26.6, rotation:10}, {x:32.4, y:27.2, rotation:9}, {x:34.1, y:28, rotation:9}, {x:35.9, y:29, rotation:9});
_local1.collection_2b = new Object();
_local1.collection_2b.target = _local1;
_local1.collection_2b.exit = 3;
_local1.collection_2b.path = new Array({x:35.9, y:29, rotation:1}, {x:34.1, y:28, rotation:1}, {x:32.4, y:27.2, rotation:1}, {x:30.5, y:26.6, rotation:2}, {x:28.6, y:26.2, rotation:2}, {x:26.8, y:26, rotation:2}, {x:25, y:26.1, rotation:3}, {x:23.2, y:26.1, rotation:3}, {x:21.5, y:26.3, rotation:4}, {x:19.8, y:26.6, rotation:4}, {x:18.1, y:27.1, rotation:4}, {x:16.4, y:27.8, rotation:5}, {x:14.9, y:28.6, rotation:5}, {x:13.4, y:29.6, rotation:5});
_local1.collection_1a = new Object();
_local1.collection_1a.target = _local1;
_local1.collection_1a.exit = 3;
_local1.collection_1a.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
}
}
Symbol 978 MovieClip [__Packages.MiniGame.MiniGame] Frame 0
class MiniGame.MiniGame extends MovieClip
{
var _quality, __model, onEnterFrame;
function MiniGame () {
super();
init();
}
function init() {
var _local1 = this;
_local1.__model = new MiniGame.Model();
_local1.__view = new MiniGame.View();
_local1.__controller = new MiniGame.Controller();
_local1.__model.__set__view(_local1.__controller.__set__view(_local1.__view));
_local1.__controller.__set__model(_local1.__view.__set__model(_local1.__model));
_local1.__controller.__set__console(_local1.console);
_local1.__view.__set__controller(_local1.__controller);
_local1.__model.__set__parent(_local1.__view.__set__parent(_local1.__controller.__set__parent(_local1)));
_local1.__view.init();
_local1.__model.build();
_local1.__model.start();
}
function start() {
if (_global.machine == "low") {
_quality = "LOW";
}
__model.start();
}
function destroy() {
__model.destroy();
onEnterFrame = null;
}
function pause() {
var _local1 = this;
if (_global.machine == "low") {
_local1._quality = "HIGH";
}
_local1.__model.pause();
_local1.console.miniGamePause();
}
function resume() {
var _local1 = this;
if (_global.machine == "low") {
_local1._quality = "LOW";
}
_local1.__model.resume();
_local1.console.miniGameResume();
}
function activateMusic() {
__model.activateMusic();
}
function deactivateMusic() {
__model.deactivateMusic();
}
}
Symbol 979 MovieClip [__Packages.MiniGame.Controller] Frame 0
class MiniGame.Controller
{
var __model, __view, __console, __parent;
function Controller () {
}
function set model(m) {
__model = m;
//return(model);
}
function get model() {
return(__model);
}
function set view(v) {
__view = v;
//return(view);
}
function get view() {
return(__view);
}
function set console(c) {
__console = c;
//return(console);
}
function get console() {
return(__console);
}
function set parent(p) {
__parent = p;
//return(parent);
}
function get parent() {
return(__parent);
}
function onGemClick(eventObj) {
__console.updateScore(50);
trace("onGemClick");
__view.removeGem(eventObj.target, true);
}
function onCoalClick(eventObj) {
trace("onCoalClick");
__view.removeCoal(eventObj.target, true);
__model.increaseSpeed();
}
}
Symbol 980 MovieClip [__Packages.MiniGame.Model] Frame 0
class MiniGame.Model
{
var __view, __parent, __whistleSound, __gameLoop, __currentSpeed;
function Model () {
}
function set view(v) {
__view = v;
//return(view);
}
function get view() {
return(__view);
}
function set parent(p) {
__parent = p;
//return(parent);
}
function get parent() {
return(__parent);
}
function build() {
var _local1 = this;
_local1.__view.buildContainers();
_local1.__foregroundTiles = new Array();
_local1.__midgroundTiles = new Array();
_local1.__backgroundTiles = new Array();
var _local2 = 0;
while (_local2 < TILE_COUNT) {
var name = ("bgtile_" + _local2);
var level = (10 + _local2);
var xpos = (446 * _local2);
var ypos = 0;
var _local3 = _local1.__view.createMovieClip("__background", "backgroundSymbol", name, level, xpos, ypos);
_local1.__backgroundTiles.push(_local3);
_local2++;
}
_local2 = 0;
while (_local2 < TILE_COUNT) {
var name = ("mgtile_" + _local2);
var level = (10 + _local2);
var xpos = (448 * _local2);
var ypos = 0;
var _local3 = _local1.__view.createMovieClip("__midground", "midgroundSymbol", name, level, xpos, ypos);
_local1.__view.setTile(_local3);
_local1.__midgroundTiles.push(_local3);
_local2++;
}
_local2 = 0;
while (_local2 < TILE_COUNT) {
var name = ("fgtile_" + _local2);
var level = (10 + _local2);
var xpos = (560 * _local2);
var ypos = 0;
var _local3 = _local1.__view.createMovieClip("__foreground", "foregroundSymbol", name, level, xpos, ypos);
_local1.__view.setTile(_local3);
_local1.__foregroundTiles.push(_local3);
_local2++;
}
}
function start() {
var _local1 = this;
var _local3 = _global;
var music_mc = _local1.parent.createEmptyMovieClip("chug_mc", 202);
_local1.__gameLoop = new Sound(music_mc);
_local1.__gameLoop.attachSound("ChugSound");
if (!_local3.isMusicOn) {
_local1.__gameLoop.setVolume(0);
}
_local1.__gameLoop.start(0, 9999);
var whistle_mc = _local1.parent.createEmptyMovieClip("whistle_mc", 203);
_local1.__whistleSound = new Sound(whistle_mc);
_local1.__whistleSound.attachSound("TrainWhistle");
_local1.__whistleID = setInterval(_local1, "playWhistle", 10000);
if (_local3.isAudioOn) {
_local1.__whistleSound.start();
}
var _local2 = _local3.fader_mc;
if (_local3.machine == "high") {
_local2._alpha = 100;
_local2._visible = true;
_local2.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 3;
if (_local1._alpha <= 0) {
_local1._visible = false;
_local1.onEnterFrame = null;
}
};
} else {
_local2._visible = false;
}
_local1.__currentSpeed = BASE_SPEED;
_local1.resume();
}
function playWhistle() {
if (_global.isAudioOn) {
__whistleSound.start();
}
}
function destroy() {
var _local1 = this;
_local1.__gameLoop.stop();
clearInterval(_local1.__whistleID);
_local1.pause();
}
function pause() {
var _local1 = this;
clearInterval(_local1.__moveInterval);
clearInterval(_local1.__speedInterval);
_local1.__view.pause();
}
function resume() {
var _local1 = this;
_local1.__view.resume();
_local1.lastUpdate = getTimer() * 0.001;
clearInterval(_local1.__moveInterval);
_local1.__moveInterval = setInterval(_local1, "move", 0);
clearInterval(_local1.__speedInterval);
_local1.__speedInterval = setInterval(_local1, "decreaseSpeed", 10000);
}
function activateMusic() {
__gameLoop.setVolume(100);
}
function deactivateMusic() {
__gameLoop.setVolume(0);
}
function move() {
var _local1 = this;
var elapsed = Math.min(_local1.maxFrameTime, (_local1.lastUpdate - ((_local1.lastUpdate = getTimer()))) * -0.001);
var elapsed = (_local1.lastElapsed - Math.max(-_local1.maxTimeDifference, Math.min(_local1.maxTimeDifference, _local1.lastElapsed - elapsed)));
_local1.lastElapsed = elapsed;
var bg_speed = ((_local1.__currentSpeed * BG_MULTIPLIER) * elapsed);
var mg_speed = ((_local1.__currentSpeed * MG_MULTIPLIER) * elapsed);
var fg_speed = ((_local1.__currentSpeed * FG_MULTIPLIER) * elapsed);
var _local2 = 0;
while (_local2 < TILE_COUNT) {
var _local3 = _local1.__backgroundTiles[_local2];
var mg_clip = _local1.__midgroundTiles[_local2];
var fg_clip = _local1.__foregroundTiles[_local2];
_local1.__view.placeClip(_local3, _local3._x - bg_speed);
_local1.__view.placeClip(mg_clip, mg_clip._x - mg_speed);
_local1.__view.placeClip(fg_clip, fg_clip._x - fg_speed);
_local2++;
}
if (_local1.__backgroundTiles[0]._x < (-_local1.__backgroundTiles[0]._width)) {
_local1.swapTile(_local1.__backgroundTiles);
}
if (_local1.__midgroundTiles[0]._x < (-_local1.__midgroundTiles[0]._width)) {
_local1.swapTile(_local1.__midgroundTiles);
}
if (_local1.__foregroundTiles[0]._x < (-_local1.__foregroundTiles[0]._width)) {
_local1.swapTile(_local1.__foregroundTiles);
}
updateAfterEvent();
}
function swapTile(_array) {
var _local2 = _array;
var _local1 = _local2.shift();
var _local3 = _local2.length - 1;
_local2.push(_local1);
__view.placeClip(_local1, _local2[_local3]._x + (_local1._width - 2));
__view.setTile(_local1);
}
function increaseSpeed() {
__currentSpeed = __currentSpeed + 50;
}
function decreaseSpeed() {
var _local1 = this;
if (_local1.__currentSpeed <= BASE_SPEED) {
_local1.__currentSpeed = BASE_SPEED;
} else {
_local1.__currentSpeed = _local1.__currentSpeed - 50;
}
}
static var TILE_COUNT = 3;
static var BASE_SPEED = 160;
static var BG_MULTIPLIER = 0.35;
static var MG_MULTIPLIER = 0.9;
static var FG_MULTIPLIER = 1.7;
var maxFrameTime = 0.05;
var lastElapsed = MiniGame.Model.prototype.maxFrameTime;
var maxTimeDifference = 0.0025;
}
Symbol 981 MovieClip [__Packages.MiniGame.View] Frame 0
class MiniGame.View extends MovieClip
{
var __gemCount, __model, __controller, __parent, __gemSound, isPaused, __smokeInterval;
function View () {
super();
mx.events.EventDispatcher.initialize(this);
__gemCount = new Array(11, 8, 7);
}
function set model(m) {
__model = m;
//return(model);
}
function get model() {
return(__model);
}
function set controller(c) {
__controller = c;
//return(controller);
}
function get controller() {
return(__controller);
}
function set parent(p) {
__parent = p;
//return(parent);
}
function get parent() {
return(__parent);
}
function init() {
var _local1 = this;
_local1.addEventListener("onGemClick", _local1.__controller);
_local1.addEventListener("onCoalClick", _local1.__controller);
}
function buildContainers() {
var _local1 = this;
_local1.__background = _local1.__parent.createEmptyMovieClip("background_mc", 1);
_local1.__midground = _local1.__parent.createEmptyMovieClip("midground_mc", 2);
_local1.__foreground = _local1.__parent.createEmptyMovieClip("foreground_mc", 5);
_local1.__smoke = _local1.__parent.createEmptyMovieClip("smoke_mc", 3);
_local1.__smoke.count = 0;
if (_global.machine == "high") {
var _local2 = _local1.createMovieClip("__smoke", "SmokeSymbol", "smoke_" + (_local1.__smoke.count++), _local1.__smoke.count, 60, 75);
_local2.gotoAndStop(2);
_local2.onEnterFrame = function () {
this._rotation = this._rotation - 5;
};
}
_local1.__train = _local1.__parent.attachMovie("trainSymbol", "train_mc", 4);
_local1.__gemSound = new Sound(_local1.__get__parent());
_local1.__gemSound.attachSound("GemSound");
}
function createMovieClip(parent, id, name, level, xpos, ypos) {
if ((((parent == null) || (id == null)) || (name == null)) || (level == null)) {
} else {
var _local1 = this[parent].attachMovie(id, name, level);
_local1._x = ((xpos != null) ? (xpos) : 0);
_local1._y = ((ypos != null) ? (ypos) : 0);
return(_local1);
}
return(undefined);
}
function placeClip(mc_ref, x_pos) {
mc_ref._x = x_pos;
}
function setTile(target) {
var _local2 = this;
var tileNum = random(target.clip_mc._totalframes);
var gemNum = _local2.__gemCount[tileNum];
target.clip_mc.gotoAndStop(tileNum + 1);
if (target._parent == _local2.__foreground) {
var _local3 = 0;
while (_local3 < 6) {
_local2.removeCoal(target.clip_mc["coal" + _local3], false);
_local3++;
}
if (random(2) == 1) {
var coal = target.clip_mc["coal" + random(6)];
coal._visible = true;
coal.hitArea = coal.hit_mc;
coal.hit_mc._visible = false;
coal.controller = _local2;
coal.onPress = function () {
this.controller.dispatchEvent({type:"onCoalClick", target:this});
};
}
} else if (target._parent == _local2.__midground) {
var _local3 = 0;
while (_local3 < gemNum) {
_local2.removeGem(target.clip_mc["gem" + _local3], false);
_local3++;
}
var j = 0;
while (j < 3) {
var _local1 = target.clip_mc["gem" + random(gemNum)];
_local1._visible = true;
_local1.hitArea = _local1.hit_mc;
_local1.hit_mc._visible = false;
_local1.controller = _local2;
_local1.gotoAndStop("on");
_local1.onPress = function () {
this.controller.dispatchEvent({type:"onGemClick", target:this});
};
j++;
}
}
}
function removeGem(target, playSound) {
target._visible = false;
target.onPress = null;
if (playSound && (_global.isAudioOn)) {
__gemSound.start();
}
}
function removeCoal(target, playSound) {
target._visible = false;
target.onRelease = null;
if (playSound && (_global.isAudioOn)) {
__gemSound.start();
}
}
function showSmoke() {
var _local1 = this;
if (!_local1.isPaused) {
var _local2 = _local1.createMovieClip("__smoke", "SmokeSymbol", "smoke_" + (_local1.__smoke.count++), _local1.__smoke.count, 60, 75);
_local2.controller = _local1;
_local2.gotoAndStop(2);
_local2.alpha = 50;
_local2.vertical = random(4) - 2;
_local2.rotate = random(5) + 5;
_local2.onEnterFrame = function () {
var _local1 = this;
if (!_local1.controller.isPaused) {
_local1._x = _local1._x - 5;
_local1._y = _local1._y - _local1.vertical;
_local1._rotation = _local1._rotation - _local1.rotate;
if (_local1._x < -50) {
_local1.removeMovieClip();
}
}
};
}
}
function pause() {
isPaused = true;
clearInterval(__smokeInterval);
}
function resume() {
var _local1 = this;
_local1.isPaused = false;
if (_global.machine == "high") {
clearInterval(_local1.__smokeInterval);
_local1.__smokeInterval = setInterval(_local1, "showSmoke", __smokeTime);
}
}
static var __smokeTime = 187;
}
Symbol 982 MovieClip [__Packages.MainGame.Tile.Tile16] Frame 0
class MainGame.Tile.Tile16 extends MainGame.Tile.Tile
{
function Tile16 () {
var _local1 = this;
super();
_local1.collection_1 = new Object();
_local1.collection_1.target = _local1;
_local1.collection_1.exit = 3;
_local1.collection_1.path = new Array({x:36.6, y:9.7, rotation:5}, {x:35.1, y:10.9, rotation:5}, {x:33.4, y:12.3, rotation:5}, {x:31.7, y:13.7, rotation:5}, {x:30, y:15.1, rotation:5}, {x:28.3, y:16.4, rotation:5}, {x:26.6, y:17.8, rotation:5}, {x:24.9, y:19.1, rotation:5}, {x:23.2, y:20.4, rotation:5}, {x:21.5, y:21.9, rotation:5}, {x:19.8, y:23.2, rotation:5}, {x:18.1, y:24.6, rotation:5}, {x:16.4, y:25.9, rotation:5}, {x:14.7, y:27.3, rotation:5}, {x:13, y:28.6, rotation:5});
_local1.collection_3 = new Object();
_local1.collection_3.target = _local1;
_local1.collection_3.exit = 1;
_local1.collection_3.path = new Array({x:13, y:28.6, rotation:13}, {x:14.7, y:27.3, rotation:13}, {x:16.4, y:25.9, rotation:13}, {x:18.1, y:24.6, rotation:13}, {x:19.8, y:23.2, rotation:13}, {x:21.5, y:21.9, rotation:13}, {x:23.2, y:20.4, rotation:13}, {x:24.9, y:19.1, rotation:13}, {x:26.6, y:17.8, rotation:13}, {x:28.3, y:16.4, rotation:13}, {x:30, y:15.1, rotation:13}, {x:31.7, y:13.7, rotation:13}, {x:33.4, y:12.3, rotation:13}, {x:35.1, y:10.9, rotation:13}, {x:36.6, y:9.7, rotation:13});
}
function start() {
var _local1 = this;
clearInterval(_local1.bridgeInterval);
_local1.bridgeInterval = setInterval(_local1, "breakBridge", BREAK_INTERVAL);
}
function breakBridge() {
var _local1 = this;
if (_local1.controller.isPaused) {
} else if (_local1.__get__isActive()) {
} else {
_local1.background.gotoAndPlay("off");
_local1.foreground.gotoAndPlay("off");
_local1.__set__isBlocked(true);
clearInterval(_local1.bridgeInterval);
_local1.bridgeInterval = setInterval(_local1, "fixBridge", FIX_INTERVAL);
}
}
function fixBridge() {
var _local1 = this;
if (_local1.controller.isPaused) {
} else {
_local1.background.gotoAndPlay("rebuild");
_local1.foreground.gotoAndPlay("rebuild");
_local1.__set__isBlocked(false);
clearInterval(_local1.bridgeInterval);
_local1.bridgeInterval = setInterval(_local1, "breakBridge", BREAK_INTERVAL);
}
}
static var BREAK_INTERVAL = 8000;
static var FIX_INTERVAL = 3000;
}
Symbol 983 MovieClip [__Packages.Levels.Level1] Frame 0
class Levels.Level1 extends MovieClip
{
function Level1 () {
super();
}
function init() {
var _local1 = this;
_local1.obstacles = new Array();
_local1.obstacles.push(new MainGame.Objects.Obstacle([{x:7, y:15}, {x:12, y:9}, {x:18, y:7}], "wolf", 8000, _local1.view));
_local1.rewards = new Array();
_local1.rewards.push(new MainGame.Objects.TrainCar([{x:4, y:12, rot:5}, {x:8, y:10, rot:1}, {x:6, y:9, rot:5}, {x:8, y:16, rot:5}], "TrainPassenger", "passenger_mc", _local1.view));
_local1.rewards.push(new MainGame.Objects.Reward([{x:17, y:8}, {x:13, y:8}, {x:11, y:8}, {x:7, y:7}], "lvl1_0", _local1.view));
_local1.rewards.push(new MainGame.Objects.Reward([{x:5, y:13}, {x:6, y:15}, {x:9, y:13}, {x:12, y:5}], "lvl1_1", _local1.view));
_local1.cars = new Array();
_local1.cars.push(new MainGame.Objects.TrainCar([{x:12, y:12, rot:5}, {x:6, y:15, rot:1}, {x:17, y:10, rot:5}, {x:12, y:15, rot:5}], "TrainDefault", "car0", _local1.view));
_local1.cars.push(new MainGame.Objects.TrainCar([{x:15, y:11, rot:5}, {x:15, y:6, rot:5}, {x:9, y:9, rot:5}, {x:13, y:11, rot:5}], "TrainDefault", "car1", _local1.view));
}
function showNewReward() {
var _local1 = this;
if (_local1.currentReward == null) {
_local1.currentReward = 0;
} else {
_local1.rewards[_local1.currentReward].remove();
_local1.currentReward++;
}
if (_local1.currentReward < _local1.rewards.length) {
_local1.rewards[_local1.currentReward].show();
}
}
function showNewCar() {
var _local1 = this;
if (_local1.currentCar == null) {
_local1.currentCar = 0;
} else {
_local1.cars[_local1.currentCar].remove();
_local1.currentCar++;
}
if (_local1.currentCar < _local1.cars.length) {
_local1.cars[_local1.currentCar].show();
} else {
_local1.view.activateExit();
}
}
function getCollection(x, y, start) {
var _local1 = this[(("tile_" + x) + "_") + y];
if (_local1.multiPath) {
var _local2 = _local1[("collection_" + start) + _local1.currentPath];
} else {
var _local2 = _local1["collection_" + start];
}
return(_local2);
}
var REQUIRED = 2;
var GRID_WIDTH = 23;
var GRID_HEIGHT = 23;
var TILE_WIDTH = 50;
var TILE_HEIGHT = 40;
var GRID_X = 257;
var GRID_Y = -228;
var START_X = 15;
var START_Y = 18;
var START_SIDE = 3;
var END_X = 13;
var END_Y = 0;
var END_SIDE = 1;
var FADE_X = 13;
var FADE_Y = 2;
var BONUS_TIME = 240;
var BONUS_POINTS = 2000;
var GRID = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 6, 1, 1, 1, 1, 12, 1, 7, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 6, 1, 3, 7, 0, 6, 1, 14, 0, 2, 6, 1, 7, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 5, 14, 0, 2, 6, 3, 1, 3, 8, 7, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 2, 0, 0, 2, 0, 2, 2, 2, 0, 2, 0, 2, 2, 0, 0, 0, 0], [0, 0, 0, 0, 0, 6, 12, 1, 1, 3, 7, 11, 3, 14, 0, 2, 0, 2, 2, 0, 0, 0, 0], [0, 0, 0, 0, 6, 10, 0, 0, 0, 2, 5, 4, 2, 2, 0, 2, 0, 5, 4, 0, 0, 0, 0], [0, 0, 0, 0, 2, 11, 7, 0, 6, 10, 0, 0, 2, 5, 1, 10, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 2, 2, 2, 0, 2, 2, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 5, 3, 4, 0, 2, 2, 0, 0, 2, 0, 0, 15, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 5, 1, 1, 3, 14, 0, 0, 2, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 2, 15, 1, 1, 4, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 5, 4, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
}
Symbol 803 MovieClip Frame 232
stop();
Symbol 806 MovieClip Frame 1
k = 0;
while (k < 50) {
duplicateMovieClip (this.snow, "snow" + k, k);
k++;
}
Instance of Symbol 805 MovieClip "snow" in Symbol 806 MovieClip Frame 1
onClipEvent (load) {
movieWidth = 600;
movieHeight = 500;
fal = 1 + (Math.random() * 4);
k = -3.14159265358979 + (Math.random() * Math.PI);
rot = 2 + (Math.random() * 5);
this._xscale = (this._yscale = 20 + (Math.random() * 90));
this._alpha = 60 + (Math.random() * 100);
this._x = -10 + (Math.random() * movieWidth);
this._y = -10 + (Math.random() * movieHeight);
}
onClipEvent (enterFrame) {
rad = rad + ((k / 180) * Math.PI);
this._x = this._x - Math.cos(rad);
this._y = this._y + fal;
this._rotation = this._rotation + rot;
if (this._y >= movieHeight) {
this._y = -5;
}
if ((this._x >= movieWidth) || (this._x <= 0)) {
this._x = -10 + (Math.random() * movieWidth);
this._y = -5;
}
}
Symbol 808 MovieClip Frame 24
stop();
Symbol 850 MovieClip Frame 1
stop();
Symbol 909 MovieClip Frame 16
stop();
Symbol 913 MovieClip Frame 60
stop();
Symbol 917 MovieClip Frame 17
stop();