Frame 1
function fsdPlayAgain() {
HSLoader.unloadMovie();
HSLoader.removeMovieClip();
HSLoader._x = 1000;
HSLoader._y = 1000;
if (game.gameState) {
game.endGame(null, null, true);
} else {
gotoAndStop ("game");
}
}
function fnSubmitScore() {
trace("playerScore=" + playerScore);
this.createEmptyMovieClip("HSLoader", 10001);
HSLoader._x = 88;
HSLoader._y = 90;
HSLoader.loadMovie(fsd);
}
var eventID = "td_ens_runawaycart";
var gameID = "td_ens_runawaycart";
var subject = "ENS";
var playerScore;
var playerName;
System.security.allowDomain("www.disney.go.com");
System.security.allowDomain("disney.go.com");
System.security.allowDomain("psc.disney.go.com");
System.security.allowDomain("apsc.disney.go.com");
System.security.allowDomain("tv.disney.go.com");
System.security.allowDomain("atv.disney.go.com");
System.security.allowDomain("scores.disney.go.com");
function fnInit() {
gInitted = true;
game = new Game(this);
}
var game;
var gInitted = false;
var musicOn = true;
var whichMusic = "musicIntro";
var musicPlaying = true;
_global.gameMC = this;
Array.prototype.searchArray = function (testFor) {
var _local2 = 0;
while (_local2 < this.length) {
if (this[_local2] == testFor) {
return(_local2);
}
_local2++;
}
return(null);
};
Frame 3
if (getBytesLoaded() == getBytesTotal()) {
gotoAndPlay ("title");
} else {
var percent = Math.round((getBytesLoaded() / getBytesTotal()) * 100);
bar_mc.gotoAndStop(percent);
gotoAndPlay ("loadloop");
}
Frame 5
mu = new Sound(AudioMusic_MC);
mu.attachSound("musicIntro");
mu.setVolume(40);
mu.start(0, 999);
Frame 57
stop();
Frame 125
stop();
Frame 159
stop();
Frame 179
stop();
Frame 180
stop();
Frame 181
stop();
Frame 182
stop();
if (!gInitted) {
fnInit();
}
if (level != null) {
game.startGame(level);
} else {
game.startGame(1);
}
Frame 200
mu.stop();
Frame 204
mu.stop();
Symbol 11 MovieClip Frame 1
stop();
Symbol 926 MovieClip [__Packages.Game] Frame 0
class Game
{
static var gameLevel;
var gameSlope, trackTypes, appRoot, gameOn, gameSpeed, tracks_arr, gameScore, iFace, frontDupIndex, backDupIndex, bg, player, enemy, gPaused, gameInterval, mapIndex, obstacleNum, mapLength, creator;
function Game (vRoot) {
gameSlope = 2.75;
trackTypes = ["drop", "track", "ramp", ["ramp", ["u"]], ["ramp", ["d"]], ["ramp", ["u", "d"]], ["straight", ["u"]], ["straight", ["d"]], ["straight", ["u", "d"]], "up", "down", "barrier", "bswitch", "fswitch"];
appRoot = vRoot;
appRoot.frontSwitch = [];
appRoot.barriers = [];
Map.init();
}
function get gameState() {
return(gameOn);
}
function get speed() {
return(gameSpeed);
}
function get slope() {
return(gameSlope);
}
function get tracks() {
return(tracks_arr);
}
function get score() {
return(gameScore);
}
function set score(num) {
if (num >= 0) {
gameScore = num;
} else {
gameScore = 0;
}
appRoot.playerScore = gameScore;
iFace.score_txt.text = String(gameScore);
//return(score);
}
function get level() {
return(gameLevel);
}
function updateHealthMeter(vNum) {
trace("updateHealth Meter to " + vNum);
if (vNum > 0) {
iFace.health_mc.gotoAndStop(vNum);
} else {
iFace.health_mc.gotoAndStop(1);
endGame(false);
}
}
function startGame(vLevel) {
trace("startGame called");
tracks_arr = [];
frontDupIndex = 9001;
backDupIndex = 10;
gameScore = 0;
initInterface();
bg = new BG(appRoot, vLevel);
if (vLevel == 1) {
iFace.transition1_mc.gotoAndPlay(2);
disableInterfaceButtons();
startLevel(vLevel);
} else {
iFace[("transition" + vLevel) + "_mc"].gotoAndPlay(2);
}
}
function initInterface() {
appRoot.interface_mc.duplicateMovieClip("interfaceDup_mc", 10000);
appRoot.interface_mc._visible = false;
iFace = appRoot.interfaceDup_mc;
iFace.objRef = this;
iFace.pause_mc.pause_btn.onRelease = function () {
trace("pause called");
this._parent._parent.objRef.pauseGame();
};
iFace.help_btn.onRelease = function () {
this._parent.objRef.pauseGame(false);
this._parent.help_mc.gotoAndStop(2);
this._parent.objRef.disableInterfaceButtons();
};
iFace.quit_btn.onRelease = function () {
this._parent.objRef.pauseGame();
this._parent.quit_mc.gotoAndStop("quit");
};
}
function endGame(vWin, gateNum, vRestart) {
gameOn = false;
clearLevel();
iFace.removeMovieClip();
gameLevel = 1;
if (vRestart) {
startGame(1);
} else if (vWin) {
appRoot.gotoAndStop("win");
} else {
appRoot.gotoAndStop("lose");
appRoot.end_mc.gate_mc.gotoAndStop(gateNum);
}
}
function pauseGame(showPause) {
trace("pause");
player.__get__mc().anim_mc.stop();
enemy.__get__mc().anim_mc.stop();
gPaused = true;
if (showPause == undefined) {
iFace.pause_mc.gotoAndStop(2);
}
var _local2 = 0;
while (_local2 < tracks_arr.length) {
if (tracks_arr[_local2].pauseAnim instanceof Function) {
tracks_arr[_local2].pauseAnim();
}
_local2++;
}
iFace.pause_mc.play_btn.onRelease = function () {
this._parent._parent.objRef.unPauseGame();
};
}
function unPauseGame() {
trace("unpause");
player.__get__mc().anim_mc.play();
enemy.__get__mc().anim_mc.play();
iFace.help_mc.gotoAndStop(1);
gPaused = false;
iFace.pause_mc.gotoAndStop(1);
iFace.quit_mc.gotoAndStop(1);
var _local2 = 0;
while (_local2 < tracks_arr.length) {
if (tracks_arr[_local2].playAnim instanceof Function) {
tracks_arr[_local2].playAnim();
}
_local2++;
}
iFace.pause_mc.pause_btn.onRelease = function () {
trace("pause called");
this._parent._parent.objRef.pauseGame();
};
enableInterfaceButtons();
}
function get pauseState() {
return(gPaused);
}
function startLevel(vLevel) {
gameOn = true;
appRoot.frontSwitch.splice(0);
appRoot.barriers.splice(0);
gameLevel = vLevel;
bg.reset();
switch (gameLevel) {
case 1 :
gameSpeed = 12.5;
gameInterval = 10;
player = new Player(appRoot, this, 285, 235, 2);
enemy = new Enemy(appRoot, this, 60, 150, 2);
break;
case 2 :
gameSpeed = 10.88;
gameInterval = 9;
player = new Player(appRoot, this, 285, 280, 3);
enemy = new Enemy(appRoot, this, 50, 197, 3);
break;
case 3 :
gameSpeed = 9.65;
gameInterval = 8;
player = new Player(appRoot, this, 285, 220, 3);
enemy = new Enemy(appRoot, this, 50, 133, 3);
}
iFace.health_mc.gotoAndStop(player.__get__health());
mapIndex = 0;
obstacleNum = 0;
mapLength = Map["level" + vLevel].track1.length;
creator = appRoot.createEmptyMovieClip("creator_mc", 9999999);
creator.objRef = this;
creator.onEnterFrame = function () {
this.objRef.update();
};
gPaused = false;
}
function disableInterfaceButtons() {
iFace.pause_mc.pause_btn.enabled = false;
iFace.quit_btn.enabled = false;
iFace.help_btn.enabled = false;
iFace.buttonTint_mc.gotoAndStop(2);
}
function enableInterfaceButtons() {
iFace.pause_mc.pause_btn.enabled = true;
iFace.quit_btn.enabled = true;
iFace.help_btn.enabled = true;
iFace.buttonTint_mc.gotoAndStop(1);
}
function endLevel() {
gameOn = false;
gameLevel++;
disableInterfaceButtons();
if (gameLevel < 4) {
iFace[("transition" + gameLevel) + "_mc"].gotoAndPlay(2);
} else {
endGame(true);
}
}
function clearLevel() {
creator.onEnterFrame = null;
creator.removeMovieClip();
player.remove();
enemy.remove();
for (var _local2 in tracks_arr) {
tracks_arr[_local2].remove();
}
}
function update() {
if (!gPaused) {
mapIndex++;
if (((mapIndex / gameInterval) < mapLength) && (gameOn)) {
if ((mapIndex % gameInterval) == 0) {
var _local4 = mapIndex / gameInterval;
var _local5 = 1;
while (_local5 <= Map["level" + gameLevel].tracks) {
var _local3 = Map["level" + gameLevel]["track" + _local5][_local4];
createTrack(_local3, _local5);
_local5++;
}
var _local2 = Map["level" + gameLevel].obstacles;
while ((_local2[obstacleNum][0] <= (_local4 + 1)) && (obstacleNum < _local2.length)) {
createObstacle(_local2[obstacleNum]);
obstacleNum++;
}
}
} else if (gameOn) {
endLevel();
}
for (var _local5 in tracks_arr) {
tracks_arr[_local5].moveClip();
}
bg.moveClip();
}
}
function createTrack(vIndex, vLevel) {
var _local3 = trackTypes[vIndex];
if (_local3 instanceof Array) {
var _local2 = _local3[0];
var _local6 = _local3[1];
} else {
var _local2 = _local3;
}
if (_local2 == "barrier") {
var _local5 = new Barrier(backDupIndex, frontDupIndex, appRoot, _local2, vLevel);
frontDupIndex++;
} else if (((((_local2 == "ramp") || (_local2 == "straight")) || (_local2 == "up")) || (_local2 == "down")) || (_local2 == "drop")) {
var _local5 = new Ramp(backDupIndex, appRoot, _local2, vLevel, _local6);
} else if (_local3.substring(1, 7) == "switch") {
var _local5 = new Switch(backDupIndex, appRoot, _local2, vLevel);
} else {
var _local5 = new Track(backDupIndex, appRoot, _local2, vLevel);
}
tracks_arr.push(_local5);
backDupIndex++;
}
function createObstacle(vData) {
var _local2 = vData[1];
var _local3 = vData[2];
if (_local2 == "sign") {
var _local4 = new Sign(backDupIndex, appRoot, _local2, _local3);
} else if (_local2 == "health") {
var _local4 = new Health(backDupIndex, appRoot, _local2, _local3);
} else {
var _local4 = new Bonus(backDupIndex, appRoot, _local2, _local3);
}
tracks_arr.push(_local4);
backDupIndex++;
}
function remove(which) {
var _local2 = tracks_arr.searchArray(which);
if (_local2 != null) {
var _local3 = tracks_arr[_local2];
tracks_arr.splice(_local2, 1);
}
}
}
Symbol 927 MovieClip [__Packages.Cart] Frame 0
class Cart
{
var gc, appRoot, vType, clip, cartState, level, trackHeight, switchDir, oldLevel, flashInt, flashNum;
function Cart (vRoot, gc, startX, startY, startLevel, vType) {
this.gc = gc;
appRoot = vRoot;
this.vType = vType;
if (vType == "cart") {
clip = appRoot.attachMovie("Cart" + appRoot.game.level, "cart_mc", 9000);
} else {
clip = appRoot.attachMovie("Enemy" + appRoot.game.level, "enemy_mc", 8999);
}
clip.objRef = this;
cartState = "rolling";
clip._x = startX;
clip._y = startY;
level = startLevel;
switch (appRoot.game.level) {
case 1 :
trackHeight = 132;
break;
case 2 :
trackHeight = 105;
break;
case 3 :
trackHeight = 80;
}
switchDir = null;
}
function get mc() {
return(clip);
}
function get vState() {
return(cartState);
}
function get xPos() {
return(clip._x);
}
function get trackNum() {
return(level);
}
function switchTrack(dir, force) {
if ((cartState == "rolling") || (cartState == "jumping")) {
if ((dir == "up") && (level > 1)) {
level--;
} else if (level < Map["level" + appRoot.game.level].tracks) {
level++;
}
if (switchDir == "up") {
finishUp(true);
} else if (switchDir == "down") {
finishDown(true);
}
cartState = dir;
oldLevel = level;
clip.gotoAndStop(dir);
clip.anim_mc.gotoAndPlay(1);
switchDir = dir;
}
}
function straightJump() {
if ((cartState == "rolling") || (cartState == "jumping")) {
if (vType == "enemy") {
trace("switchDir =" + switchDir);
}
if (switchDir == "up") {
finishUp(true);
} else if (switchDir == "down") {
finishDown(true);
}
cartState = "straightjump";
clip.gotoAndStop("straightjump");
clip.anim_mc.gotoAndPlay(1);
}
}
function finishUp(skipReset) {
trace("finishUp" + skipReset);
switchDir = null;
clip._y = clip._y - trackHeight;
if (skipReset != true) {
resetCart();
}
}
function finishDown(skipReset) {
trace("finishDown" + skipReset);
switchDir = null;
clip._y = clip._y + trackHeight;
if (skipReset != true) {
resetCart();
}
}
function resetCart() {
clip.gotoAndStop(1);
cartState = "rolling";
}
function setCartState(vState) {
cartState = vState;
oldLevel = null;
}
function collision() {
startFlashDamage();
}
function startFlashDamage() {
clearInterval(flashInt);
flashNum = 1;
flashInt = setInterval(this, "flashCart", 200, "damage");
}
function flashCart(flashType) {
if (!appRoot.game.pauseState) {
var _local2 = new Color(clip);
if ((flashNum % 2) == 1) {
if (flashType == "damage") {
var _local3 = {ra:53, rb:162, ga:53, gb:0, ba:53, bb:0, aa:100, ab:0};
} else {
var _local3 = {ra:100, rb:255, ga:100, gb:106, ba:100, bb:-121, aa:100, ab:0};
}
} else {
var _local3 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
}
_local2.setTransform(_local3);
flashNum++;
if (flashNum == 7) {
clearInterval(flashInt);
}
}
}
function checkGameOver() {
}
function remove() {
clip.removeMovieClip();
this=null;//parameter overwritten
}
}
Symbol 928 MovieClip [__Packages.Map] Frame 0
class Map
{
function Map () {
}
static function init() {
trace("mapInitted");
init1();
init2();
init3();
}
static function init1() {
level1.track1 = [1, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 1, 7, 1, 2, 0, 1, 7, 1, 1, 7, 1, 1, 2, 0, 1, 1, 7, 1, 13, 1, 12, 1, 2, 0, 1, 7, 1, 2, 0, 1, 1, 13, 1, 12, 1, 1, 7, 1, 1, 1, 1, 13, 1, 12, 7, 1, 1, 1, 13, 1, 12, 1, 1, 1, 7, 1, 1, 1, 1, 7, 1, 13, 1, 12, 2, 0, 1, 2, 0, 1, 1, 7, 1, 1, 7, 1, 1, 13, 1, 12, 1, 7, 1, 1, 1, 7, 1, 1, 1, 1, 13, 1, 12, 7, 1, 1, 1];
level1.track2 = [1, 1, 1, 5, 0, 1, 1, 1, 1, 3, 0, 1, 1, 1, 1, 5, 0, 1, 13, 1, 12, 1, 1, 1, 5, 0, 1, 1, 1, 1, 11, 1, 1, 1, 8, 1, 13, 1, 12, 3, 0, 1, 1, 11, 1, 1, 3, 0, 1, 5, 0, 1, 1, 11, 1, 13, 1, 12, 8, 1, 11, 1, 1, 8, 1, 1, 13, 1, 12, 1, 8, 1, 1, 11, 1, 1, 3, 0, 1, 1, 5, 0, 1, 1, 1, 13, 1, 12, 1, 11, 1, 1, 1, 1, 8, 1, 1, 1, 3, 0, 1, 1, 11, 13, 1, 12, 5, 0];
level1.track3 = [1, 1, 1, 1, 1, 3, 0, 1, 1, 1, 1, 3, 0, 1, 1, 1, 1, 1, 1, 11, 1, 1, 6, 1, 1, 1, 3, 0, 1, 1, 1, 1, 6, 1, 1, 1, 1, 11, 1, 1, 3, 0, 1, 1, 1, 1, 1, 3, 0, 1, 1, 1, 1, 1, 6, 1, 11, 1, 1, 1, 1, 3, 0, 1, 1, 6, 1, 11, 1, 1, 6, 1, 1, 1, 1, 1, 1, 3, 0, 1, 1, 1, 1, 6, 1, 1, 11, 1, 1, 1, 6, 1, 6, 1, 1, 1, 3, 0, 1, 6, 1, 1, 1, 1, 11, 1, 1, 1];
level1.obstacles = [[5, "points20", 1], [5, "points10", 3], [6, "points10", 2], [7, "points10", 2], [8, "points15", 1], [8, "points10", 2], [9, "points10", 1], [9, "points15", 2], [9, "points50", 3], [10, "points20", 3], [11, "points20", 1], [11, "points10", 3], [12, "points10", 1], [12, "points50", 2], [13, "points20", 2], [14, "points10", 1], [14, "points20", 2], [14, "sign", 3], [15, "points50", 2], [15, "points10", 3], [16, "points10", 3], [17, "points10", 3], [18, "points20", 2], [18, "points10", 3], [19, "points15", 1], [20, "points10", 1], [21, "points20", 2], [22, "sign", 2], [22, "points15", 3], [23, "points10", 1], [23, "points10", 2], [24, "points10", 2], [24, "points50", 3], [25, "points20", 3], [26, "points50", 3], [27, "points20", 1], [27, "points10", 2], [29, "points10", 1], [29, "points10", 2], [29, "minus10", 3], [31, "points50", 3], [32, "points10", 1], [32, "sign", 3], [33, "points10", 1], [33, "points10", 2], [34, "points20", 2], [34, "points10", 3], [35, "points10", 3], [36, "health", 1], [36, "minus10", 2], [36, "points10", 3], [38, "minus10", 1], [39, "sign", 2], [41, "points50", 1], [42, "points20", 1], [42, "points10", 2], [43, "points50", 3], [44, "points10", 1], [44, "points20", 3], [45, "points15", 1], [46, "points15", 1], [46, "points20", 2], [46, "points50", 3], [49, "minus10", 1], [49, "sign", 2], [50, "points50", 3], [51, "points50", 1], [51, "sign", 3], [52, "points20", 1], [52, "points10", 2], [52, "points15", 3], [53, "points50", 1], [53, "points15", 3], [54, "points20", 1], [55, "points10", 2], [56, "sign", 2], [57, "minus10", 1], [58, "points10", 2], [59, "points15", 1], [59, "points15", 3], [60, "points15", 3], [61, "points10", 3], [62, "points10", 1], [63, "points10", 2], [64, "points10", 1], [64, "sign", 3], [65, "points50", 1], [65, "points50", 2], [65, "points10", 3], [66, "points20", 2], [67, "minus10", 1], [69, "points15", 1], [69, "points50", 2], [70, "points10", 1], [70, "sign", 2], [70, "points10", 3], [72, "points50", 1], [72, "points10", 2], [72, "points50", 3], [73, "points20", 1], [73, "points20", 3], [74, "points20", 3], [75, "points20", 1], [76, "points15", 2], [77, "points10", 3], [78, "points10", 1], [79, "points20", 2], [80, "points50", 2], [80, "minus10", 3], [81, "sign", 3], [82, "points15", 1], [82, "points10", 3], [83, "points20", 2], [83, "points10", 3], [84, "points20", 1], [84, "points50", 2], [85, "points20", 1], [85, "points50", 2], [85, "points20", 3], [86, "sign", 2], [87, "minus10", 1], [88, "minus10", 1], [88, "points10", 2], [89, "points15", 3], [91, "points15", 1], [92, "points10", 1], [92, "points15", 2], [92, "points15", 3], [93, "points15", 2], [94, "minus10", 1], [94, "health", 2], [94, "points50", 3], [95, "points20", 3], [96, "points10", 1], [96, "points20", 2], [96, "points50", 3], [97, "sign", 2], [98, "points50", 1], [98, "points10", 2], [99, "points15", 1], [100, "points50", 1], [101, "points10", 2], [101, "sign", 3], [102, "points10", 3], [103, "points20", 3], [106, "points10", 1], [107, "points20", 1], [107, "points20", 3]];
level1.tracks = 3;
}
static function init2() {
level2.track1 = [0, 0, 0, 0, 1, 1, 1, 13, 1, 12, 7, 1, 1, 1, 1, 7, 1, 1, 1, 1, 7, 1, 1, 13, 1, 12, 2, 0, 1, 7, 1, 1, 7, 1, 1, 1, 7, 1, 1, 1, 7, 1, 1, 13, 1, 12, 2, 0, 1, 7, 1, 7, 1, 1, 1, 7, 1, 1, 1, 7, 1, 13, 1, 12, 1, 7, 1, 1, 1, 1, 1, 7, 1, 1, 7, 1, 1, 1, 7, 1, 1, 7, 1, 1, 1, 13, 1, 12, 1, 7, 1, 1, 1, 7, 1, 2, 0, 1, 7, 1, 1, 1, 1, 13, 1, 12, 1, 7, 1, 1, 1, 1, 7, 1, 1, 2, 0, 1, 7, 1, 13];
level2.track2 = [0, 0, 0, 0, 1, 6, 1, 1, 11, 1, 1, 1, 1, 8, 1, 1, 1, 1, 8, 1, 1, 1, 8, 1, 11, 1, 1, 5, 0, 1, 1, 13, 1, 12, 5, 0, 1, 8, 1, 1, 13, 1, 12, 1, 11, 1, 1, 8, 1, 1, 1, 7, 1, 1, 2, 0, 1, 8, 1, 1, 1, 1, 11, 1, 1, 1, 1, 8, 1, 1, 1, 1, 13, 1, 12, 1, 8, 1, 1, 1, 1, 1, 8, 1, 1, 1, 11, 1, 1, 1, 1, 8, 1, 1, 1, 1, 3, 0, 1, 1, 1, 8, 1, 1, 11, 1, 1, 1, 1, 6, 1, 13, 1, 12, 1, 1, 3, 0, 1, 1, 1];
level2.track3 = [1, 1, 1, 5, 0, 1, 1, 13, 1, 12, 1, 5, 0, 1, 1, 1, 1, 13, 1, 12, 5, 0, 1, 1, 1, 1, 1, 13, 1, 12, 1, 1, 11, 1, 1, 1, 1, 8, 1, 1, 1, 11, 1, 13, 1, 12, 1, 1, 1, 8, 1, 13, 1, 12, 1, 8, 1, 1, 1, 6, 13, 1, 12, 1, 1, 3, 0, 1, 8, 1, 1, 1, 1, 11, 1, 1, 1, 1, 8, 1, 5, 0, 1, 1, 13, 1, 12, 8, 1, 3, 0, 1, 1, 8, 1, 1, 1, 5, 0, 1, 1, 8, 1, 1, 1, 1, 13, 1, 12, 1, 8, 1, 11, 1, 13, 1, 12, 5, 0, 1, 1];
level2.track4 = [1, 1, 1, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 6, 1, 6, 1, 1, 11, 1, 1, 1, 6, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 1, 6, 1, 1, 6, 1, 1, 1, 6, 1, 1, 11, 1, 6, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 6, 1, 1, 1, 6, 1, 1, 6, 1, 1, 3, 0, 1, 1, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 3, 0, 1, 1, 1, 6, 1, 1, 1, 6, 1, 1, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 1, 6];
level2.obstacles = [[5, "sign", 2], [5, "sign", 4], [6, "points10", 3], [7, "points10", 1], [7, "points15", 2], [7, "points20", 3], [7, "points20", 4], [8, "points20", 3], [8, "points10", 4], [9, "points10", 4], [11, "points10", 2], [11, "points50", 3], [11, "points15", 4], [12, "points20", 4], [13, "points10", 1], [13, "points10", 2], [13, "points10", 4], [14, "points15", 1], [14, "points10", 3], [15, "points10", 1], [15, "points50", 2], [15, "points15", 3], [15, "sign", 4], [16, "points15", 2], [16, "points10", 3], [17, "minus10", 1], [17, "points10", 2], [17, "points20", 3], [17, "points20", 4], [18, "points15", 2], [19, "points10", 1], [20, "points10", 1], [20, "points10", 2], [21, "sign", 2], [21, "points10", 4], [22, "points50", 1], [22, "points10", 2], [22, "points10", 4], [23, "points20", 1], [23, "points15", 3], [24, "points15", 2], [24, "health", 3], [24, "sign", 4], [25, "points50", 3], [25, "points10", 4], [26, "points20", 3], [27, "points10", 2], [27, "points10", 3], [27, "points10", 4], [28, "sign", 3], [28, "points10", 4], [30, "points10", 2], [31, "minus10", 1], [31, "points50", 2], [31, "points15", 3], [31, "points15", 4], [32, "points15", 1], [32, "points15", 4], [33, "points15", 4], [34, "points10", 1], [34, "points20", 4], [35, "points10", 1], [35, "points10", 3], [36, "health", 1], [36, "points15", 3], [36, "minus10", 4], [37, "points20", 2], [37, "sign", 3], [37, "points20", 4], [39, "points10", 1], [39, "points50", 2], [39, "points10", 3], [39, "minus50", 4], [40, "points15", 1], [40, "points20", 2], [40, "points10", 3], [40, "points15", 4], [41, "points10", 4], [42, "minus10", 1], [43, "points10", 3], [44, "points10", 4], [46, "points50", 3], [47, "points20", 2], [47, "points20", 3], [48, "points20", 3], [48, "sign", 4], [49, "health", 1], [49, "points50", 3], [49, "points10", 4], [50, "points15", 2], [50, "points10", 4], [51, "points15", 1], [51, "points50", 2], [51, "points20", 4], [53, "points20", 2], [54, "minus10", 1], [54, "points50", 2], [55, "points15", 4], [56, "points15", 4], [57, "minus10", 1], [57, "points50", 2], [57, "points20", 3], [57, "sign", 4], [58, "minus10", 1], [58, "points50", 3], [58, "points15", 4], [59, "minus10", 1], [59, "sign", 2], [59, "points20", 3], [60, "points10", 2], [60, "points20", 4], [61, "points10", 2], [61, "points50", 3], [64, "points10", 4], [65, "points50", 3], [65, "points10", 4], [66, "points10", 2], [67, "points10", 1], [68, "points20", 1], [68, "sign", 3], [68, "minus10", 4], [69, "points10", 1], [69, "points50", 2], [69, "points20", 4], [70, "points15", 1], [70, "health", 2], [70, "points10", 3], [70, "points20", 4], [71, "points15", 1], [71, "points20", 2], [71, "points15", 3], [72, "points50", 2], [72, "points10", 3], [72, "minus10", 4], [73, "minus10", 1], [73, "points15", 4], [74, "points20", 1], [75, "points20", 4], [76, "points15", 1], [76, "points15", 2], [76, "points10", 3], [76, "points50", 4], [77, "points10", 1], [77, "points20", 3], [78, "points20", 1], [78, "points20", 2], [79, "points10", 2], [79, "points15", 4], [80, "points10", 1], [80, "points15", 2], [80, "sign", 4], [81, "sign", 2], [81, "points50", 4], [82, "minus10", 1], [82, "health", 2], [82, "points20", 4], [83, "points20", 1], [83, "points15", 3], [84, "points10", 1], [84, "points10", 2], [84, "points20", 3], [84, "points10", 4], [85, "points15", 1], [85, "points10", 2], [85, "points50", 3], [86, "points20", 2], [88, "points10", 4], [89, "points15", 1], [89, "points15", 2], [89, "points50", 3], [89, "points10", 4], [90, "points15", 2], [90, "points15", 4], [91, "points10", 1], [91, "points20", 2], [92, "points10", 1], [92, "points10", 3], [93, "points10", 1], [93, "points15", 2], [93, "points15", 3], [93, "points15", 4], [94, "points10", 2], [94, "points10", 4], [95, "points15", 1], [95, "points15", 2], [95, "points20", 3], [95, "points15", 4], [96, "points10", 2], [96, "points10", 3], [97, "points15", 3], [97, "points15", 4], [98, "points20", 1], [98, "points50", 4], [99, "sign", 2], [99, "points10", 4], [100, "minus10", 1], [100, "points15", 2], [100, "points15", 3], [101, "minus10", 1], [101, "points15", 2], [101, "points20", 3], [101, "minus10", 4], [102, "points20", 1], [103, "points10", 1], [103, "points50", 3], [103, "points10", 4], [104, "points10", 2], [104, "points20", 3], [104, "sign", 4], [105, "points20", 3], [106, "points15", 1], [106, "points15", 2], [106, "points50", 3], [106, "points10", 4], [107, "points15", 1], [107, "points10", 2], [108, "points10", 2], [109, "points20", 1], [109, "points20", 2], [109, "points15", 3], [110, "points10", 1], [110, "points15", 3], [110, "points20", 4], [111, "points20", 1], [111, "points20", 2], [111, "points15", 4], [112, "points10", 1], [112, "points50", 2], [112, "sign", 4], [113, "points10", 4], [114, "health", 2], [114, "points20", 4], [115, "points10", 1], [115, "points50", 2], [115, "points10", 4], [116, "points10", 2], [118, "points10", 1], [118, "points10", 4], [119, "points20", 4], [120, "points10", 1], [120, "points10", 2], [120, "points10", 3], [120, "points15", 4], [121, "points15", 2], [121, "points20", 3]];
level2.tracks = 4;
}
static function init3() {
level3.track1 = [0, 0, 1, 1, 1, 1, 1, 7, 2, 0, 1, 7, 1, 1, 1, 7, 1, 1, 13, 1, 12, 1, 7, 1, 1, 1, 1, 7, 1, 13, 1, 12, 2, 0, 1, 7, 1, 1, 7, 1, 1, 1, 13, 1, 12, 2, 0, 1, 7, 1, 1, 1, 7, 1, 1, 1, 13, 1, 12, 1, 7, 1, 1, 1, 1, 7, 1, 1, 1, 1, 7, 1, 1, 13, 1, 12, 1, 7, 1, 1, 1, 1, 1, 7, 1, 1, 1, 1, 13, 1, 12, 7, 1, 1, 1, 1, 7, 1, 2, 0, 1, 13, 1, 12, 1, 7, 1, 1, 1, 7, 1, 1, 1, 1, 7, 1, 13, 1, 12, 2, 0, 1, 7, 1, 1, 1, 1, 7, 1, 1, 13, 1, 12, 1, 1];
level3.track2 = [0, 0, 0, 1, 8, 1, 1, 1, 1, 3, 0, 1, 1, 8, 1, 1, 1, 8, 1, 11, 1, 1, 13, 1, 12, 5, 0, 1, 1, 1, 11, 1, 1, 3, 0, 1, 2, 0, 1, 1, 8, 1, 1, 11, 1, 1, 5, 0, 1, 1, 8, 1, 1, 1, 8, 1, 1, 11, 1, 13, 1, 12, 1, 3, 0, 1, 1, 5, 0, 1, 1, 13, 1, 12, 11, 1, 1, 1, 1, 8, 1, 1, 1, 13, 1, 12, 8, 1, 1, 11, 1, 1, 1, 1, 8, 1, 1, 1, 3, 0, 1, 1, 11, 1, 1, 8, 1, 1, 13, 1, 12, 1, 3, 0, 1, 1, 1, 11, 1, 1, 3, 0, 1, 1, 1, 8, 1, 1, 13, 1, 12, 11, 1, 1, 1];
level3.track3 = [1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 5, 0, 1, 1, 1, 5, 0, 1, 1, 1, 1, 1, 1, 11, 1, 1, 1, 8, 1, 7, 1, 2, 0, 1, 8, 1, 1, 8, 1, 1, 13, 1, 12, 1, 8, 1, 1, 1, 8, 1, 1, 13, 1, 12, 8, 1, 1, 8, 1, 1, 11, 1, 1, 1, 5, 0, 1, 1, 1, 8, 1, 1, 11, 1, 1, 1, 5, 0, 1, 1, 1, 1, 8, 1, 11, 13, 1, 12, 1, 7, 1, 1, 3, 0, 1, 1, 8, 1, 8, 1, 2, 0, 1, 1, 1, 8, 1, 1, 1, 11, 1, 1, 8, 1, 3, 0, 1, 1, 1, 8, 1, 1, 1, 13, 1, 12, 1, 1, 1, 11, 1, 1, 8, 1, 3];
level3.track4 = [0, 0, 1, 1, 7, 1, 1, 1, 8, 1, 1, 1, 8, 1, 1, 13, 1, 12, 1, 8, 1, 2, 0, 1, 1, 5, 0, 1, 13, 1, 12, 1, 8, 1, 1, 1, 2, 0, 13, 1, 12, 11, 1, 1, 1, 1, 3, 0, 1, 1, 8, 1, 11, 1, 1, 1, 1, 8, 1, 1, 13, 1, 12, 1, 1, 1, 8, 1, 1, 1, 1, 1, 2, 0, 1, 1, 8, 1, 1, 1, 6, 1, 1, 1, 8, 1, 11, 1, 1, 13, 1, 12, 1, 8, 1, 1, 6, 1, 1, 1, 1, 8, 1, 13, 1, 12, 1, 8, 1, 1, 1, 1, 13, 1, 12, 3, 0, 1, 1, 1, 1, 7, 1, 1, 11, 1, 13, 1, 13, 1, 1, 2, 0, 1, 1];
level3.track5 = [1, 1, 1, 1, 1, 1, 6, 1, 1, 1, 3, 0, 1, 1, 6, 1, 11, 1, 1, 6, 1, 1, 6, 1, 1, 1, 1, 6, 1, 11, 1, 1, 1, 1, 6, 1, 1, 6, 1, 11, 1, 1, 1, 6, 1, 1, 1, 3, 0, 1, 1, 1, 1, 1, 3, 0, 1, 1, 1, 6, 1, 11, 1, 1, 1, 2, 0, 1, 6, 1, 3, 0, 1, 3, 0, 1, 1, 1, 6, 1, 1, 1, 6, 1, 1, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 1, 1, 3, 0, 1, 1, 6, 1, 1, 11, 1, 1, 1, 1, 6, 1, 1, 1, 11, 1, 1, 3, 0, 1, 6, 1, 1, 1, 1, 1, 6, 1, 11, 1, 1, 1, 1, 3, 0, 1];
level3.obstacles = [[4, "points15", 4], [4, "points50", 5], [5, "points10", 1], [5, "points15", 3], [5, "points15", 5], [6, "points10", 1], [6, "points10", 2], [6, "points10", 3], [6, "points10", 4], [6, "points15", 5], [7, "points10", 1], [7, "points10", 2], [7, "points20", 4], [8, "points10", 3], [8, "points10", 4], [8, "points20", 5], [9, "points50", 5], [10, "points15", 3], [10, "points15", 4], [10, "points15", 5], [11, "points15", 1], [11, "points10", 4], [12, "points20", 3], [13, "points10", 1], [13, "points15", 2], [13, "points50", 3], [13, "sign", 5], [14, "points10", 1], [14, "points20", 3], [14, "points15", 4], [14, "points10", 5], [15, "points10", 1], [15, "points15", 2], [15, "points50", 3], [15, "points15", 4], [16, "sign", 2], [17, "points15", 1], [17, "points10", 2], [18, "points10", 1], [18, "points15", 3], [18, "points50", 4], [19, "minus10", 1], [19, "points10", 2], [19, "sign", 3], [19, "points20", 4], [19, "points10", 5], [21, "points10", 1], [21, "points15", 3], [21, "minus10", 4], [21, "points10", 5], [22, "points10", 1], [22, "points15", 2], [22, "points15", 3], [24, "points15", 1], [24, "points20", 4], [25, "points10", 1], [25, "points50", 4], [25, "points15", 5], [26, "points10", 1], [26, "points10", 3], [26, "sign", 5], [27, "points10", 3], [27, "points15", 5], [28, "points20", 4], [29, "points10", 1], [29, "points15", 2], [29, "points50", 4], [30, "points10", 1], [31, "points15", 3], [32, "points50", 4], [32, "points15", 5], [34, "points15", 5], [35, "health", 1], [35, "points20", 4], [36, "points15", 3], [36, "health", 4], [36, "sign", 5], [37, "points10", 1], [37, "points15", 3], [38, "points10", 1], [39, "points15", 2], [39, "points20", 3], [39, "sign", 4], [40, "points20", 1], [40, "sign", 2], [40, "points50", 3], [41, "points20", 1], [42, "points20", 1], [42, "points10", 5], [43, "points20", 1], [43, "points50", 3], [43, "points10", 5], [44, "points15", 4], [45, "points20", 1], [45, "points15", 4], [46, "points10", 2], [46, "points15", 4], [46, "points20", 5], [47, "points15", 3], [47, "points20", 5], [48, "points10", 1], [48, "health", 3], [49, "points10", 4], [50, "points15", 1], [50, "points20", 2], [50, "points20", 3], [50, "points10", 4], [50, "points20", 5], [51, "points10", 1], [51, "points15", 3], [51, "points20", 5], [52, "points20", 1], [52, "points20", 2], [52, "points15", 3], [52, "health", 5], [53, "points20", 2], [53, "points20", 5], [54, "points20", 1], [54, "points50", 2], [54, "points50", 5], [55, "points20", 1], [55, "points15", 4], [56, "points10", 2], [56, "health", 3], [56, "points15", 4], [57, "points20", 1], [57, "sign", 3], [57, "points10", 5], [58, "sign", 5], [59, "points15", 1], [59, "points20", 3], [59, "minus10", 4], [59, "points10", 5], [60, "points15", 1], [60, "points10", 2], [60, "points15", 4], [62, "points20", 1], [62, "points10", 2], [63, "points10", 2], [63, "points20", 3], [63, "points20", 4], [64, "health", 1], [64, "points20", 3], [64, "points50", 4], [64, "points15", 5], [65, "points15", 4], [65, "points15", 5], [66, "points20", 1], [67, "minus10", 1], [67, "minus10", 3], [68, "points15", 3], [68, "points50", 4], [68, "points20", 5], [69, "points15", 1], [69, "sign", 3], [69, "points20", 4], [70, "points10", 2], [70, "points20", 4], [70, "points50", 5], [71, "sign", 2], [71, "points15", 3], [71, "points50", 4], [72, "points20", 1], [72, "points10", 2], [74, "points20", 1], [75, "points15", 1], [75, "points15", 3], [75, "points20", 4], [76, "points20", 1], [76, "points50", 3], [76, "points50", 4], [76, "points50", 5], [77, "points15", 1], [77, "points20", 2], [77, "points20", 5], [78, "points15", 4], [78, "health", 5], [79, "points15", 1], [79, "points20", 2], [79, "sign", 3], [79, "points20", 4], [80, "points20", 1], [80, "points50", 3], [80, "points20", 4], [81, "health", 1], [81, "points50", 2], [81, "points10", 3], [81, "minus10", 5], [82, "points15", 1], [82, "points50", 2], [82, "points10", 3], [82, "sign", 4], [83, "points20", 1], [83, "points20", 2], [83, "points10", 4], [84, "points50", 2], [84, "points10", 4], [84, "points15", 5], [85, "points10", 1], [85, "points20", 5], [86, "points15", 1], [86, "sign", 2], [86, "points50", 5], [87, "points20", 1], [88, "points15", 1], [88, "points10", 2], [88, "points15", 3], [89, "points20", 3], [89, "points10", 4], [89, "points10", 5], [90, "points10", 4], [91, "points15", 1], [91, "points20", 3], [92, "points15", 2], [92, "points15", 3], [92, "points15", 4], [93, "points15", 1], [93, "points20", 2], [93, "points10", 5], [94, "points20", 1], [94, "points20", 2], [94, "points10", 5], [95, "points20", 1], [95, "points20", 3], [95, "points50", 4], [96, "points15", 1], [96, "points10", 2], [96, "points50", 3], [96, "points20", 4], [96, "points10", 5], [97, "points20", 2], [98, "points15", 1], [98, "sign", 2], [98, "points20", 3], [98, "points20", 4], [100, "points50", 3], [100, "points50", 4], [100, "sign", 5], [101, "points20", 1], [101, "points10", 5], [103, "points50", 3], [103, "points20", 4], [103, "points10", 5], [104, "points20", 1], [104, "points15", 3], [104, "points50", 4], [105, "points15", 1], [105, "sign", 3], [106, "points20", 4], [107, "points20", 1], [107, "health", 2], [107, "points50", 3], [107, "points50", 4], [107, "points10", 5], [108, "points20", 1], [108, "points15", 2], [108, "points15", 3], [108, "points10", 5], [109, "points20", 1], [109, "points20", 2], [109, "minus10", 4], [110, "points10", 4], [111, "points15", 1], [111, "points20", 2], [111, "points20", 4], [111, "points15", 5], [112, "points15", 1], [112, "points50", 2], [112, "points15", 3], [112, "points50", 4], [112, "points15", 5], [113, "points20", 4], [114, "minus10", 1], [114, "points20", 3], [115, "points10", 2], [115, "points20", 4], [116, "points15", 1], [116, "points10", 2], [116, "points15", 5], [117, "points20", 1], [117, "points50", 3], [118, "points20", 3], [118, "points50", 4], [119, "points15", 1], [119, "points50", 3], [119, "points20", 4], [119, "points20", 5], [120, "points15", 2], [120, "sign", 4], [121, "points50", 4], [122, "points15", 3], [122, "points15", 5], [123, "points50", 2], [123, "points15", 3], [123, "points20", 4], [123, "points10", 5], [124, "points15", 1], [124, "points20", 2], [124, "points50", 3], [124, "points10", 5], [125, "points15", 1], [125, "points50", 2], [125, "points10", 5], [126, "points10", 3], [127, "points20", 2], [127, "points15", 3], [127, "points10", 4], [128, "sign", 2], [128, "points15", 3], [129, "points20", 1], [129, "points10", 2], [129, "points50", 4], [130, "points20", 1], [130, "points10", 2], [130, "points20", 4], [130, "points15", 5], [131, "points20", 1], [131, "points10", 2], [131, "points50", 4], [131, "points50", 5], [132, "points20", 3], [132, "points20", 5], [134, "points20", 1], [134, "points15", 2], [134, "points10", 3], [134, "points10", 4], [135, "points20", 1], [135, "points50", 2], [135, "points10", 4], [135, "points50", 5]];
level3.tracks = 5;
}
static var level1 = {};
static var level2 = {};
static var level3 = {};
}
Symbol 929 MovieClip [__Packages.Player] Frame 0
class Player extends Cart
{
var kListener, healthLeft, cartState, switchDir, finishUp, finishDown, clip, resetCart, appRoot, startFlashDamage, flashInt, flashNum;
function Player (vRoot, gc, startX, startY, startLevel) {
super(vRoot, gc, startX, startY, startLevel, "cart");
kListener = {};
kListener.myCart = this;
kListener.onKeyDown = function () {
if (Key.getCode() == 32) {
this.myCart.jump();
}
};
Key.addListener(kListener);
healthLeft = 4;
}
function get health() {
return(healthLeft);
}
function jump() {
if (cartState == "rolling") {
if (switchDir == "up") {
finishUp(true);
} else if (switchDir == "down") {
finishDown(true);
}
cartState = "jumping";
clip.gotoAndStop("jumping");
}
}
function finishJump() {
resetCart();
}
function collectHealth() {
if (healthLeft < 4) {
healthLeft++;
}
appRoot.game.updateHealthMeter(healthLeft);
}
function collectBonus(vPoints) {
appRoot.game.score = appRoot.game.score + vPoints;
if (vPoints == -10) {
startFlashLosePoints();
}
}
function collision(gateNum) {
if (healthLeft > 1) {
healthLeft--;
}
clip.minus10_mc.gotoAndPlay(2);
appRoot.game.score = appRoot.game.score - 100;
appRoot.game.updateHealthMeter(healthLeft);
if (healthLeft == 1) {
appRoot.game.endGame(false, gateNum);
} else {
startFlashDamage();
}
}
function startFlashLosePoints() {
clearInterval(flashInt);
flashNum = 1;
flashInt = setInterval(this, "flashCart", 200, "losepoints");
}
}
Symbol 930 MovieClip [__Packages.Enemy] Frame 0
class Enemy extends Cart
{
function Enemy (vRoot, gc, startX, startY, startLevel) {
super(vRoot, gc, startX, startY, startLevel, "enemy");
}
}
Symbol 931 MovieClip [__Packages.BG] Frame 0
class BG
{
var appRoot, clip, startX, startY;
function BG (root, vLevel) {
appRoot = root;
clip = appRoot.bg_mc;
startX = clip._x;
startY = clip._y;
clip.gotoAndStop(vLevel);
}
function reset() {
clip._x = startX;
clip._y = startY;
clip.gotoAndStop(appRoot.game.level);
}
function moveClip() {
clip._x = clip._x - 0.5;
clip._y = clip._y - (0.5 / appRoot.game.slope);
}
}
Symbol 932 MovieClip [__Packages.MovingObject] Frame 0
class MovingObject
{
var appRoot, level, clip, vType;
function MovingObject (vtype, vnum, root, vLevel) {
appRoot = root;
level = vLevel;
if (((((vtype != "barrier") && (vtype.substring(0, 6) != "points")) && (vtype != "health")) && (vtype.substring(0, 5) != "minus")) && (vtype != "sign")) {
clip = appRoot.attachMovie(vtype + appRoot.game.level, "dup" + vnum, vnum);
} else {
clip = appRoot.attachMovie(vtype, "dup" + vnum, vnum);
}
vType = vtype;
}
function moveClip() {
clip._x = clip._x - appRoot.game.speed;
clip._y = clip._y - (appRoot.game.speed / appRoot.game.slope);
if ((clip._y < -100) || (clip._x < -200)) {
remove();
}
}
function remove() {
clip.removeMovieClip();
appRoot.game.remove(this);
}
var level1Locs = [[616, 225], [616, 357], [616, 489]];
var level2Locs = [[624, 201], [624, 306], [624, 411], [624, 516]];
var level3Locs = [[660, 198], [660, 278], [660, 358], [660, 438], [660, 518]];
}
Symbol 933 MovieClip [__Packages.Barrier] Frame 0
class Barrier extends MovingObject
{
var clips, gateNum, appRoot, clip, frontClip, openSwitch, gateOpen, hit, enemyHit, closeSwitch, level;
function Barrier (vnum, vfrontnum, root, vType, vLevel) {
super(vType, vnum, root, vLevel);
clips = [];
gateNum = (appRoot.game.level * 2) - Math.round(Math.random());
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
clip.gotoAndStop(gateNum);
clips.push(clip);
frontClip = appRoot.attachMovie("barrierfront", "dup" + vfrontnum, vfrontnum);
frontClip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
frontClip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
frontClip.gotoAndStop(gateNum);
frontClip.objRef = this;
clips.push(frontClip);
openSwitch = appRoot.frontSwitch[0];
appRoot.frontSwitch.splice(0, 1);
openSwitch.linkToBarrier(this);
appRoot.barriers.push(this);
gateOpen = false;
hit = false;
enemyHit = false;
}
function linkToSwitch(vSwitch) {
closeSwitch = vSwitch;
}
function moveClip() {
var _local2 = 0;
while (_local2 < clips.length) {
clips[_local2]._x = clips[_local2]._x - appRoot.game.speed;
clips[_local2]._y = clips[_local2]._y - (appRoot.game.speed / appRoot.game.slope);
if ((clips[_local2]._y < -100) || (clips[_local2]._x < -200)) {
remove();
}
_local2++;
}
if ((clips[0]._x < (appRoot.game.player.xPos - 50)) && (clips[0]._x > (appRoot.game.player.xPos - 87))) {
if ((level == appRoot.game.player.trackNum) && (!hit)) {
if (!gateOpen) {
collision();
}
}
}
if ((clips[0]._x < (appRoot.game.enemy.xPos - 20)) && (clips[0]._x > (appRoot.game.enemy.xPos - 57))) {
if ((level == appRoot.game.enemy.trackNum) && (!enemyHit)) {
if ((!gateOpen) && (!hit)) {
enemyCollision();
}
}
}
}
function openDoor() {
trace("openDoor");
gateOpen = true;
clips[1].gate_mc.gotoAndPlay("open");
appRoot.AudioSFX_MC.gotoAndPlay("openGate");
}
function closeDoor() {
if (!hit) {
trace("closeDoor");
gateOpen = false;
clips[1].gate_mc.gotoAndPlay("close");
}
}
function collision() {
hit = true;
clips[1].gate_mc.bars_mc.gotoAndPlay("busted");
appRoot.game.player.collision(gateNum);
appRoot.AudioSFX_MC.gotoAndPlay("minus20");
}
function enemyCollision() {
enemyHit = true;
clips[1].gate_mc.bars_mc.gotoAndPlay("busted");
appRoot.game.enemy.collision();
appRoot.game.score = appRoot.game.score + 200;
appRoot.AudioSFX_MC.gotoAndPlay("crashYzma");
}
function showFifty() {
trace("showfifty=" + enemyHit);
clips[1].gate_mc.bars_mc.fifty_mc._visible = enemyHit;
}
function remove() {
for (var _local2 in clips) {
clips[_local2].removeMovieClip();
}
appRoot.game.remove(this);
}
}
Symbol 934 MovieClip [__Packages.Switch] Frame 0
class Switch extends MovingObject
{
var appRoot, clip, switchLoc, myBarrier, hit, hilite, remove, level;
function Switch (vnum, root, vType, vLevel) {
super(vType, vnum, root, vLevel);
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
switchLoc = vType.substring(0, 1);
if (switchLoc == "f") {
appRoot.frontSwitch.push(this);
} else {
myBarrier = appRoot.barriers[0];
appRoot.barriers.splice(0, 1);
myBarrier.linkToSwitch(this);
}
hit = false;
hilite = false;
}
function moveClip() {
clip._x = clip._x - appRoot.game.speed;
clip._y = clip._y - (appRoot.game.speed / appRoot.game.slope);
if ((clip._y < -100) || (clip._x < -200)) {
remove();
} else if (switchLoc == "f") {
if ((!hit) && (level == (appRoot.game.player.trackNum - 1))) {
if ((clip._x < (appRoot.game.player.xPos + 200)) && (!hilite)) {
clip.gotoAndStop(2);
hilite = true;
}
if ((clip._x < appRoot.game.player.xPos) && (hilite)) {
clip.gotoAndStop(1);
hilite = false;
}
}
if ((clip._x < ((appRoot.game.player.xPos + 40) + ((appRoot.game.level - 1) * 10))) && (clip._x > ((appRoot.game.player.xPos - 45) + ((appRoot.game.level - 1) * 10)))) {
if ((level == (appRoot.game.player.trackNum - 1)) && (!hit)) {
if (appRoot.game.player.vState == "jumping") {
flipSwitch();
}
}
}
} else {
if ((!hit) && (level == (appRoot.game.player.trackNum - 1))) {
if ((clip._x < (appRoot.game.player.xPos + 50)) && (!hilite)) {
clip.gotoAndStop(2);
hilite = true;
}
if ((clip._x < (appRoot.game.player.xPos - 50)) && (hilite)) {
clip.gotoAndStop(1);
hilite = false;
}
}
if ((clip._x < ((appRoot.game.player.xPos - 70) + ((appRoot.game.level - 1) * 20))) && (clip._x > ((appRoot.game.player.xPos - 145) + ((appRoot.game.level - 1) * 20)))) {
if ((level == (appRoot.game.player.trackNum - 1)) && (!hit)) {
if (appRoot.game.player.vState == "jumping") {
flipSwitch();
}
}
}
}
}
function linkToBarrier(bar) {
myBarrier = bar;
}
function flipSwitch() {
hit = true;
if (switchLoc == "f") {
myBarrier.openDoor();
clip.gotoAndPlay("open");
} else {
trace("closing gate" + myBarrier);
myBarrier.closeDoor();
clip.gotoAndPlay("close");
}
}
}
Symbol 935 MovieClip [__Packages.Ramp] Frame 0
class Ramp extends MovingObject
{
var appRoot, clip, rampDir, availRamps, vType, hit, hitEnemy, keyPressed, remove, level, rampEnabled, kListener;
function Ramp (vnum, root, vtype, vLevel, vOptions) {
super("ramp", vnum, root, vLevel);
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
clip.objRef = this;
if (((vtype != "up") && (vtype != "down")) && (vtype != "drop")) {
rampDir = "s";
availRamps = [];
if (vOptions != undefined) {
availRamps = vOptions;
clip.upAvail = availRamps.searchArray("u");
clip.downAvail = availRamps.searchArray("d");
} else {
clip.upAvail = null;
clip.downAvail = null;
}
if (clip.upAvail == null) {
clip.main_mc.rotate_mc.up_mc._visible = false;
}
if (clip.downAvail == null) {
clip.main_mc.rotate_mc.down_mc._visible = false;
}
if (vtype == "straight") {
vType = "straight";
clip.main_mc.rotate_mc.straight_mc.gotoAndStop(2);
}
} else {
clip.upAvail = null;
clip.downAvail = null;
clip.gotoAndStop(vtype);
rampDir = vtype.substring(0, 1);
}
hit = false;
hitEnemy = false;
keyPressed = false;
}
function get dir() {
return(rampDir);
}
function moveClip() {
clip._x = clip._x - appRoot.game.speed;
clip._y = clip._y - (appRoot.game.speed / appRoot.game.slope);
if ((clip._y < -100) || (clip._x < -200)) {
remove();
} else if ((clip._x < ((appRoot.game.player.xPos - 90) + ((appRoot.game.level - 1) * 20))) && ((clip._x + ((appRoot.game.level - 1) * 12)) > (appRoot.game.player.xPos - 120))) {
if ((level == appRoot.game.player.trackNum) && (!hit)) {
checkCart();
}
} else if ((clip._x < ((appRoot.game.enemy.xPos - 80) + ((appRoot.game.level - 1) * 20))) && (clip._x > (appRoot.game.enemy.xPos - 120))) {
if ((level == appRoot.game.enemy.trackNum) && (!hitEnemy)) {
checkEnemy();
}
} else if ((clip._x < ((appRoot.game.player.xPos + 210) - ((appRoot.game.level - 1) * 30))) && (clip._x > appRoot.game.player.xPos)) {
if (level == appRoot.game.player.trackNum) {
if (!rampEnabled) {
enableRotation();
}
}
} else if (clip._x < ((appRoot.game.player.xPos - 90) + ((appRoot.game.level - 1) * 20))) {
if (rampEnabled) {
disableRotation();
}
}
}
function enableRotation() {
rampEnabled = true;
kListener = {};
kListener.myRamp = this;
kListener.onKeyDown = function () {
if (Key.getCode() == 38) {
if (!this.myRamp.keyPressed) {
this.myRamp.rotateRamp("up");
this.myRamp.keyPressed = true;
}
} else if (Key.getCode() == 40) {
if (!this.myRamp.keyPressed) {
this.myRamp.rotateRamp("down");
this.myRamp.keyPressed = true;
}
}
};
kListener.onKeyUp = function () {
if ((Key.getCode() == 38) || (Key.getCode() == 40)) {
this.myRamp.keyPressed = false;
}
};
Key.addListener(kListener);
}
function disableRotation() {
rampEnabled = false;
Key.removeListener(kListener);
}
function checkCart(force) {
disableRotation();
hit = true;
if (rampDir == "d") {
appRoot.game.player.switchTrack("down", force);
} else if (rampDir == "u") {
clip.flame_mc.gotoAndPlay(2);
appRoot.game.player.switchTrack("up", force);
} else if ((rampDir == "s") && (vType == "ramp")) {
appRoot.game.player.straightJump(true);
}
}
function checkEnemy() {
hitEnemy = true;
if (rampDir == "d") {
appRoot.game.enemy.switchTrack("down");
} else if (rampDir == "u") {
clip.flame_mc.gotoAndPlay(2);
appRoot.game.enemy.switchTrack("up");
} else if ((rampDir == "s") && (vType == "ramp")) {
appRoot.game.enemy.straightJump();
}
}
function rotateRamp(dir) {
var _local2 = clip.main_mc;
var _local3 = false;
if (dir == "up") {
switch (rampDir) {
case "d" :
_local2.gotoAndPlay("d_s");
rampDir = "s";
_local3 = true;
break;
case "s" :
if (clip.upAvail == null) {
break;
}
_local2.gotoAndPlay("s_u");
rampDir = "u";
_local3 = true;
}
} else if (dir == "down") {
switch (rampDir) {
case "u" :
_local2.gotoAndPlay("u_s");
rampDir = "s";
_local3 = true;
break;
case "s" :
if (clip.downAvail == null) {
break;
}
_local2.gotoAndPlay("s_d");
rampDir = "d";
_local3 = true;
}
}
}
}
Symbol 936 MovieClip [__Packages.Track] Frame 0
class Track extends MovingObject
{
var appRoot, clip;
function Track (vnum, root, vType, vLevel) {
super(vType, vnum, root, vLevel);
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
}
}
Symbol 937 MovieClip [__Packages.Sign] Frame 0
class Sign extends MovingObject
{
var appRoot, clip;
function Sign (vnum, root, vType, vLevel) {
super(vType, vnum, root, vLevel);
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
clip.gotoAndStop(appRoot.game.level);
}
}
Symbol 938 MovieClip [__Packages.Health] Frame 0
class Health extends MovingObject
{
var appRoot, clip, hit, level;
function Health (vnum, root, vType, vLevel) {
super(vType, vnum, root, vLevel);
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
clip.objRef = this;
switch (appRoot.game.level) {
case 2 :
clip._xscale = 92;
clip._yscale = 92;
break;
case 3 :
clip._xscale = 80;
clip._yscale = 80;
}
}
function moveClip() {
super.moveClip();
if ((clip.hitTest(appRoot.game.player.mc) && (!hit)) && (level == appRoot.game.player.trackNum)) {
hit = true;
collision();
}
}
function collision() {
appRoot.AudioSFX_MC.gotoAndPlay("health");
appRoot.game.player.collectHealth();
clip.gotoAndPlay(2);
}
}
Symbol 939 MovieClip [__Packages.Bonus] Frame 0
class Bonus extends MovingObject
{
var points, level, appRoot, clip, animStopped, hit, vType;
function Bonus (vnum, root, vType, vLevel) {
super(vType, vnum, root, vLevel);
switch (vType) {
case "points10" :
points = 10;
break;
case "points15" :
points = 15;
break;
case "points20" :
points = 20;
break;
case "minus10" :
points = -10;
break;
case "points50" :
points = 50;
}
if ((level == 1) && (points != -10)) {
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0] - 20;
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1] - (20 / appRoot.game.slope);
} else {
clip._x = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][0];
if ((points == 50) && (appRoot.game.level == 3)) {
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1] + 20;
} else {
clip._y = this[("level" + appRoot.game.level) + "Locs"][vLevel - 1][1];
}
}
clip.objRef = this;
switch (appRoot.game.level) {
case 2 :
clip._xscale = 92;
clip._yscale = 92;
break;
case 3 :
clip._xscale = 80;
clip._yscale = 80;
}
animStopped = false;
}
function pauseAnim() {
if (appRoot.game.level != 3) {
animStopped = true;
clip.anim_mc.stop();
}
}
function playAnim() {
if (appRoot.game.level != 3) {
clip.anim_mc.play();
}
}
function moveClip() {
super.moveClip();
if ((appRoot.game.level != 1) && (!animStopped)) {
clip.anim_mc.stop();
}
if ((clip.hitTest(appRoot.game.player.mc) && (!hit)) && (level == appRoot.game.player.trackNum)) {
if (vType != "points50") {
hit = true;
collision();
} else if (appRoot.game.player.vState == "jumping") {
hit = true;
collision();
}
}
}
function collision() {
switch (points) {
case 10 :
appRoot.AudioSFX_MC.gotoAndPlay("bonus10");
break;
case 15 :
appRoot.AudioSFX_MC.gotoAndPlay("bonus15");
break;
case 20 :
appRoot.AudioSFX_MC.gotoAndPlay("bonus20");
break;
case -10 :
appRoot.AudioSFX_MC.gotoAndPlay("minus10");
break;
case 50 :
appRoot.AudioSFX_MC.gotoAndPlay("bonus50");
}
appRoot.game.player.collectBonus(points);
clip.gotoAndPlay(2);
}
}
Symbol 34 MovieClip [barrier] Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 8
_parent._parent.objRef.showFifty();
Symbol 52 MovieClip Frame 23
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 7
stop();
Symbol 55 MovieClip Frame 13
stop();
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 9
_parent._parent.objRef.showFifty();
Symbol 68 MovieClip Frame 41
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 7
stop();
Symbol 69 MovieClip Frame 13
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 9
_parent._parent.objRef.showFifty();
Symbol 81 MovieClip Frame 36
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 8
stop();
Symbol 84 MovieClip Frame 14
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 9
_parent._parent.objRef.showFifty();
Symbol 96 MovieClip Frame 46
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 43
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 6
stop();
Symbol 98 MovieClip Frame 12
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 4
_parent._parent.objRef.showFifty();
Symbol 105 MovieClip Frame 15
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 8
stop();
Symbol 106 MovieClip Frame 13
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 10
_parent._parent.objRef.showFifty();
Symbol 113 MovieClip Frame 30
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 8
stop();
Symbol 114 MovieClip Frame 18
stop();
Symbol 115 MovieClip [barrierfront] Frame 1
stop();
Symbol 139 MovieClip [points50] Frame 1
stop();
Symbol 139 MovieClip [points50] Frame 20
this.objRef.remove();
Symbol 147 MovieClip Frame 10
stop();
Symbol 148 MovieClip Frame 11
stop();
Symbol 149 MovieClip [bswitch1] Frame 1
stop();
Symbol 149 MovieClip [bswitch1] Frame 12
stop();
Symbol 149 MovieClip [bswitch1] Frame 23
stop();
Symbol 151 MovieClip [bswitch2] Frame 1
stop();
Symbol 151 MovieClip [bswitch2] Frame 9
stop();
Symbol 151 MovieClip [bswitch2] Frame 17
stop();
Symbol 153 MovieClip [bswitch3] Frame 1
stop();
Symbol 153 MovieClip [bswitch3] Frame 10
stop();
Symbol 153 MovieClip [bswitch3] Frame 18
stop();
Symbol 183 MovieClip Frame 1
stop();
Symbol 183 MovieClip Frame 15
gotoAndStop (1);
Symbol 194 MovieClip Frame 12
_parent.objRef.finishJump();
Symbol 215 MovieClip Frame 14
_parent.objRef.setCartState("rolling");
Symbol 215 MovieClip Frame 18
_parent.objRef.finishUp();
Symbol 218 MovieClip Frame 7
_parent.objRef.setCartState("rolling");
Symbol 218 MovieClip Frame 15
_parent.objRef.finishDown();
Symbol 221 MovieClip Frame 16
_parent.objRef.setCartState("rolling");
Symbol 221 MovieClip Frame 19
_parent.objRef.resetCart();
Symbol 223 MovieClip Frame 10
_parent.objRef.resetCart();
Symbol 224 MovieClip [Cart1] Frame 1
stop();
Symbol 225 MovieClip [Cart2] Frame 1
stop();
Symbol 229 MovieClip Frame 14
_parent.objRef.setCartState("rolling");
Symbol 229 MovieClip Frame 18
_parent.objRef.finishUp();
Symbol 230 MovieClip Frame 7
_parent.objRef.setCartState("rolling");
Symbol 230 MovieClip Frame 14
_parent.objRef.finishDown();
Symbol 231 MovieClip Frame 10
_parent.objRef.setCartState("rolling");
Symbol 231 MovieClip Frame 17
_parent.objRef.resetCart();
Symbol 232 MovieClip [Cart3] Frame 1
stop();
Symbol 298 MovieClip Frame 18
_parent.objRef.setCartState("rolling");
Symbol 298 MovieClip Frame 26
_parent.objRef.finishUp();
Symbol 300 MovieClip Frame 9
_parent.objRef.setCartState("rolling");
Symbol 300 MovieClip Frame 21
_parent.objRef.finishDown();
Symbol 312 MovieClip Frame 18
_parent.objRef.setCartState("rolling");
Symbol 312 MovieClip Frame 33
_parent.objRef.resetCart();
Symbol 313 MovieClip [Enemy1] Frame 1
stop();
Symbol 317 MovieClip Frame 15
_parent.objRef.setCartState("rolling");
Symbol 317 MovieClip Frame 21
_parent.objRef.finishUp();
Symbol 318 MovieClip Frame 13
_parent.objRef.setCartState("rolling");
Symbol 318 MovieClip Frame 21
_parent.objRef.finishDown();
Symbol 319 MovieClip Frame 13
_parent.objRef.setCartState("rolling");
Symbol 319 MovieClip Frame 20
_parent.objRef.resetCart();
Symbol 320 MovieClip [Enemy2] Frame 1
stop();
Symbol 324 MovieClip Frame 14
_parent.objRef.setCartState("rolling");
Symbol 324 MovieClip Frame 20
_parent.objRef.finishUp();
Symbol 325 MovieClip Frame 9
_parent.objRef.setCartState("rolling");
Symbol 325 MovieClip Frame 21
_parent.objRef.finishDown();
Symbol 326 MovieClip Frame 10
_parent.objRef.setCartState("rolling");
Symbol 326 MovieClip Frame 25
_parent.objRef.resetCart();
Symbol 327 MovieClip [Enemy3] Frame 1
stop();
Symbol 328 MovieClip [fswitch1] Frame 1
stop();
Symbol 328 MovieClip [fswitch1] Frame 11
stop();
Symbol 328 MovieClip [fswitch1] Frame 21
stop();
Symbol 329 MovieClip [fswitch2] Frame 1
stop();
Symbol 329 MovieClip [fswitch2] Frame 9
stop();
Symbol 329 MovieClip [fswitch2] Frame 16
stop();
Symbol 330 MovieClip [fswitch3] Frame 1
stop();
Symbol 330 MovieClip [fswitch3] Frame 9
stop();
Symbol 330 MovieClip [fswitch3] Frame 17
stop();
Symbol 334 MovieClip [health] Frame 1
stop();
Symbol 334 MovieClip [health] Frame 24
this.objRef.remove();
Symbol 340 MovieClip [minus10] Frame 1
stop();
Symbol 340 MovieClip [minus10] Frame 30
this.objRef.remove();
Symbol 354 MovieClip [points10] Frame 1
stop();
Symbol 354 MovieClip [points10] Frame 28
this.objRef.remove();
Symbol 368 MovieClip [points15] Frame 1
stop();
Symbol 368 MovieClip [points15] Frame 31
this.objRef.remove();
Symbol 393 MovieClip [points20] Frame 1
stop();
Symbol 393 MovieClip [points20] Frame 31
this.objRef.remove();
Symbol 406 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 1
stop();
Instance of Symbol 413 MovieClip "straight_mc" in Symbol 422 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.objRef.rampDir == "s") {
this.h_mc.gotoAndStop(2);
} else {
this.h_mc.gotoAndStop(1);
}
}
Instance of Symbol 416 MovieClip "down_mc" in Symbol 422 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.objRef.rampDir == "d") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 419 MovieClip "up_mc" in Symbol 422 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent._parent.objRef.rampDir == "u") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 423 MovieClip Frame 1
stop();
rotate_mc.straight_mc.h_mc.gotoAndStop(1);
Symbol 423 MovieClip Frame 3
_root.AudioRamps_MC.play();
stop();
rotate_mc.down_mc.gotoAndStop(2);
Symbol 423 MovieClip Frame 5
_root.AudioRamps_MC.play();
stop();
rotate_mc.down_mc.gotoAndStop(1);
rotate_mc.straight_mc.h_mc.gotoAndStop(2);
Symbol 423 MovieClip Frame 7
_root.AudioRamps_MC.play();
stop();
rotate_mc.straight_mc.h_mc.gotoAndStop(1);
rotate_mc.up_mc.gotoAndStop(2);
Symbol 423 MovieClip Frame 9
_root.AudioRamps_MC.play();
stop();
rotate_mc.up_mc.gotoAndStop(1);
rotate_mc.straight_mc.h_mc.gotoAndStop(2);
Symbol 428 MovieClip [ramp1] Frame 1
stop();
Symbol 429 MovieClip [ramp2] Frame 1
stop();
Symbol 430 MovieClip [ramp3] Frame 1
stop();
Symbol 447 MovieClip Frame 1
stop();
Symbol 454 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 3
stop();
Symbol 458 MovieClip Frame 5
gotoAndStop ("park");
Symbol 468 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 11
gotoAndStop ("park");
Symbol 468 MovieClip Frame 21
gotoAndStop ("park");
Symbol 468 MovieClip Frame 31
gotoAndStop ("park");
Symbol 468 MovieClip Frame 41
gotoAndStop ("park");
Symbol 468 MovieClip Frame 51
gotoAndStop ("park");
Symbol 468 MovieClip Frame 61
gotoAndStop ("park");
Symbol 468 MovieClip Frame 71
gotoAndStop ("park");
Symbol 468 MovieClip Frame 81
gotoAndStop ("park");
Symbol 468 MovieClip Frame 91
gotoAndStop ("park");
Symbol 496 Button
on (release) {
gotoAndStop ("help");
}
Symbol 505 Button
on (release) {
play();
}
Symbol 572 Button
on (release) {
play();
}
Symbol 583 Button
on (release) {
gotoAndPlay ("continue");
}
Symbol 620 MovieClip Frame 14
stop();
Symbol 639 Button
on (release) {
gameMC.level = 1;
gameMC.gotoAndPlay("game");
}
Symbol 641 Button
on (release) {
gameMC.level = 2;
gameMC.gotoAndPlay("game");
}
Symbol 643 Button
on (release) {
gameMC.level = 3;
gameMC.gotoAndPlay("game");
}
Symbol 645 Button
on (release) {
_parent.play();
}
Symbol 671 Button
on (release) {
_parent._parent.play();
}
Symbol 675 Button
on (release) {
gameMC.game.unPauseGame();
}
Symbol 676 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 2
play();
Symbol 699 MovieClip Frame 7
_root.mu.setVolume(30);
Symbol 699 MovieClip Frame 8
_root.mu.setVolume(20);
Symbol 699 MovieClip Frame 9
_root.mu.setVolume(10);
Symbol 699 MovieClip Frame 10
_root.mu.setVolume(0);
_root.mu.stop();
Symbol 699 MovieClip Frame 11
_parent._parent.game.clearLevel();
Symbol 699 MovieClip Frame 12
_parent._parent.game.startLevel(2);
Symbol 699 MovieClip Frame 73
gameMC.game.enableInterfaceButtons();
_root.whichMusic = "musicLevel_02";
mu = new Sound(_root.AudioMusic_MC);
_root.mu.attachSound("musicLevel_02");
_root.mu.setVolume(70);
if (_root.musicOn) {
_root.mu.start(0, 999);
_root.musicPlaying = true;
}
Symbol 699 MovieClip Frame 78
stop();
Symbol 705 MovieClip Frame 1
stop();
Symbol 705 MovieClip Frame 2
play();
Symbol 705 MovieClip Frame 13
_parent._parent.game.clearLevel();
Symbol 705 MovieClip Frame 14
_parent._parent.game.startLevel(3);
Symbol 705 MovieClip Frame 15
_root.mu.setVolume(30);
Symbol 705 MovieClip Frame 16
_root.mu.setVolume(20);
Symbol 705 MovieClip Frame 17
_root.mu.setVolume(10);
Symbol 705 MovieClip Frame 18
_root.mu.setVolume(0);
_root.mu.stop();
Symbol 705 MovieClip Frame 94
gameMC.game.enableInterfaceButtons();
Symbol 705 MovieClip Frame 101
stop();
_root.whichMusic = "musicLevel_03";
mu = new Sound(_root.AudioMusic_MC);
_root.mu.attachSound("musicLevel_03");
_root.mu.setVolume(70);
if (_root.musicOn) {
_root.mu.start(0, 999);
_root.musicPlaying = true;
}
Symbol 711 MovieClip Frame 1
stop();
Symbol 711 MovieClip Frame 2
play();
Symbol 711 MovieClip Frame 3
_root.mu.setVolume(30);
Symbol 711 MovieClip Frame 4
_root.mu.setVolume(20);
Symbol 711 MovieClip Frame 5
_root.mu.setVolume(10);
Symbol 711 MovieClip Frame 6
_root.mu.setVolume(0);
_root.mu.stop();
Symbol 711 MovieClip Frame 64
gameMC.game.enableInterfaceButtons();
_root.whichMusic = "musicLevel_01";
mu = new Sound(_root.AudioMusic_MC);
_root.mu.attachSound("musicLevel_01");
_root.mu.setVolume(70);
if (_root.musicOn) {
_root.mu.start(0, 999);
_root.musicPlaying = true;
}
Symbol 711 MovieClip Frame 68
stop();
Symbol 723 Button
on (release) {
_root.mu.stop();
_root.musicOn = false;
_root.musicPlaying = false;
gotoAndStop ("off");
}
Symbol 726 Button
on (release) {
_root.mu.start(0, 999);
_root.musicOn = true;
_root.musicPlaying = true;
gotoAndStop ("on");
}
Symbol 727 MovieClip Frame 1
if (gameMC.musicOn == false) {
gotoAndStop ("off");
}
Symbol 727 MovieClip Frame 2
stop();
Symbol 727 MovieClip Frame 3
stop();
Symbol 735 Button
on (release) {
_parent.prevFrame();
}
Symbol 743 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 3
mask_btn.useHandCursor = false;
stop();
keepPlaying_btn.onRelease = function () {
gameMC.game.unPauseGame();
gotoAndStop (1);
};
submitScore_btn.onRelease = function () {
gameMC.fnSubmitScore();
gotoAndStop (1);
};
Symbol 766 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 1
stop();
Symbol 780 Button
on (release) {
play();
}
Symbol 781 Button
on (release) {
prevFrame();
}
Symbol 782 MovieClip Frame 1
stop();
Symbol 782 MovieClip Frame 3
stop();
Instance of Symbol 676 MovieClip in Symbol 782 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop (2);
}
Symbol 784 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 1
stop();
Symbol 846 MovieClip Frame 4
_root.playerScore = GameStats.getScore();
doge_mc.loadMovie(_level0.fsd);
mask_btn.useHandCursor = false;
stop();
Symbol 852 MovieClip Frame 1
score_txt.text = String(gameMC.game.score);
play();
Symbol 852 MovieClip Frame 9
stop();
Symbol 853 MovieClip Frame 1
whichMusic = "null";
_root.AudioMusic_MC.gotoAndPlay("startLoose");
_root.AudioMusic_MC.gotoAndPlay("stopLevel" + GameStats.getLevel());
play();
Symbol 853 MovieClip Frame 23
submitScore_btn.onRelease = function () {
gameMC.fnSubmitScore();
};
Symbol 853 MovieClip Frame 25
playAgain_btn.onRelease = function () {
gameMC.gotoAndStop("game");
};
Symbol 853 MovieClip Frame 62
stop();
whichMusic = "musicIntro";
if (_root.musicOn == true) {
_root.mu = new Sound(_root.AudioMusic_MC);
_root.mu.attachSound("musicIntro");
_root.mu.setVolume(40);
_root.mu.start(0, 999);
}
Symbol 915 MovieClip Frame 1
score_txt.text = String(gameMC.game.score);
play();
Symbol 915 MovieClip Frame 15
stop();
Symbol 920 Button
on (release) {
_parent.gotoAndStop("game");
}
Symbol 924 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 4
_root.playerScore = GameStats.getScore();
doge_mc.loadMovie(_level0.fsd);
mask_btn.useHandCursor = false;
stop();
Symbol 925 MovieClip Frame 1
whichMusic = "null";
_root.AudioMusic_MC.gotoAndPlay("startEOG");
_root.AudioMusic_MC.gotoAndPlay("stopLevel" + GameStats.getLevel());
Symbol 925 MovieClip Frame 145
whichMusic = "Intro";
if (_root.musicOn == true) {
_root.mu = new Sound(_root.AudioMusic_MC);
_root.mu.attachSound("musicIntro");
_root.mu.setVolume(40);
_root.mu.start(0, 999);
}
Symbol 925 MovieClip Frame 151
playAgain_btn.onRelease = function () {
GameMC.gotoAndStop("game");
};
Symbol 925 MovieClip Frame 157
submitScore_btn.onRelease = function () {
gameMC.fnSubmitScore();
};
Symbol 925 MovieClip Frame 186
stop();