Frame 1
globalVolume = new Sound();
_global.app = this;
app.soundVol = 100;
loaded = Math.round(_root.getBytesLoaded());
total = Math.round(_root.getBytesTotal());
percent = (loaded / total) * 100;
trace(percent + " cur percent loaded");
if ((percent >= 10) && (percent < 20)) {
loadMC.gotoAndStop(2);
}
if ((percent >= 20) && (percent < 30)) {
loadMC.gotoAndStop(3);
}
if ((percent >= 30) && (percent < 40)) {
loadMC.gotoAndStop(4);
}
if ((percent >= 40) && (percent < 50)) {
loadMC.gotoAndStop(5);
}
if ((percent >= 50) && (percent < 60)) {
loadMC.gotoAndStop(6);
}
if ((percent >= 60) && (percent < 70)) {
loadMC.gotoAndStop(7);
}
if ((percent >= 70) && (percent < 80)) {
loadMC.gotoAndStop(8);
}
if ((percent >= 80) && (percent < 90)) {
loadMC.gotoAndStop(9);
}
if ((percent >= 90) && (percent < 100)) {
loadMC.gotoAndStop(10);
}
if (percent == 100) {
loadMC.gotoAndStop(11);
}
Instance of Symbol 12 MovieClip "versionMC" in Frame 1
onClipEvent (load) {
this._visible = false;
scripts.showVersion = false;
}
Frame 2
loaded = Math.round(_root.getBytesLoaded());
total = Math.round(_root.getBytesTotal());
percent = (loaded / total) * 100;
if (loaded != total) {
gotoAndPlay (1);
} else {
gotoAndPlay ("loadDone");
}
Frame 17
app.myscreenName = "null";
app.basePath = "http://www.nick.com";
app.userPath = "/games/common/user_name/getUserInfo.jhtml";
app.scorePath = "/common/score/Scoreboard.jhtml?msg=Q&game=sb_peril";
loadUser = new LoadVars();
loadUser.load(app.basePath + app.userPath);
loadUser.onLoad = function () {
returnLog = loadUser.toString();
app.rawName = this.screenName;
index = app.rawName.indexOf(newline);
trace("index " + index);
if (index <= -1) {
trace("no return to strip....");
app.myscreenName = app.rawName;
} else {
trace("stripping return");
app.myscreenName = app.rawName.substr(0, index);
}
if (app.myscreenName != "null") {
if (app.myscreenName != "undefined") {
if (app.myscreenName != "") {
if (app.myscreenName == null) {
trace("actual null returned");
app.myscreenName = "null";
}
} else {
trace("blank val returned");
app.myscreenName = "null";
}
} else {
trace("undefined returned");
app.myscreenName = "null";
}
} else {
trace("null returned");
}
};
Frame 18
menuloopSound = new Sound();
menuloopSound.attachSound("menuloop");
menuLoopPlaying = false;
Frame 22
if (menuLoopPlaying == false) {
menuloopSound.start(0, 400);
menuLoopPlaying = true;
}
Frame 25
stop();
Frame 26
stop();
Frame 39
stop();
Frame 50
stop();
Frame 51
menuloopSound.stop();
menuLoopPlaying = false;
stopAllSounds();
levelMusicOn = false;
if (app.soundVol != 100) {
soundMC.gotoAndStop("soundOFF");
} else {
soundMC.gotoAndStop("soundON");
}
Instance of Symbol 607 MovieClip "scriptsMC" in Frame 52
onClipEvent (load) {
function toggleVolume() {
trace("toggelVol called");
if (app.soundVol != 100) {
app.soundVol = 100;
_parent.globalVolume.setVolume(100);
app.helpMC.soundMC.gotoAndStop("soundON");
} else {
app.soundVol = 0;
_parent.globalVolume.setVolume(0);
app.helpMC.soundMC.gotoAndStop("soundOFF");
}
}
function randomIn(lowerbound, upperbound) {
return(Math.round(((upperbound - lowerbound) * Math.random()) + lowerbound));
}
function radToDegrees(radsIn) {
degrees = (radsIn * 180) / 3.14159297943115;
return(degrees);
}
function degreesToRads(degreesIn) {
radians = (degreesIn * 3.14159297943115) / 180;
return(radians);
}
function getUserName() {
screenName = null;
basePath = "http://origin-www.nick-q.mtvi.com";
userPath = "/games/common/user_name/getUserInfo.jhtml";
loadUser = new LoadVars();
loadUser.load(basePath + userPath);
loadUser.onLoad = function () {
sName = this.screenName;
index = sName.indexOf(newline);
trace("return index:" + index);
if (index > -1) {
sName = my_str.sName(0, index);
}
if (sName == "null") {
trace("null screenName found");
} else {
scripts.screenName = sName;
}
};
}
function initGame() {
_global.HUD = _parent.hudMC;
_global.scene = _parent.levelMC;
scene.startX = scene._x;
levelHolder = _parent.levelMC;
_global.tileW = 36;
_global.tileH = 36;
newBak = 1;
scene.pyramidMC.gotoAndStop(newBak);
_parent.bakMC.gotoAndStop(newBak);
HUD.changeTo.gotoAndStop(newBak);
activeTile.x = 0;
activeTile.y = 0;
lives = 3;
targetScore = 25;
intermediateScore = 15;
levelBonusIncrement = 250;
levelBonus = 1000 - levelBonusIncrement;
baddyLogicDelay = 1500;
baddyLogicDelay2 = 1200;
baddySpawnDelay = 5000;
followTime = 4000;
baddyLevel = 1000;
baddyCount = 0;
baddyIncrement = 0;
charDepth = 900;
gameOn = false;
charFrozen = true;
gameFrozen = true;
totalScore = 0;
levelScore = 0;
levelNum = 0;
roundNum = 0;
showHelpFlag = true;
helpOn = false;
quitOn = false;
updateHUD();
}
function toggleQuit() {
if (!quitOn) {
quitOn = true;
gamePaused = true;
levelMusic.stop();
levelMusicOn = false;
_parent.messagingMC.stop();
_parent.helpMC.quitMC.gotoAndPlay("show");
_parent.helpMC.gotoAndPlay("showQuit");
char.dirHilite.curX = char.dirHilite._x;
char.dirHilite._x = -1000;
} else {
quitOn = false;
if (char.dirHilite._x == -1000) {
char.dirHilite._x = char.dirHilite.curX;
}
_parent.helpMC.quitMC.gotoAndPlay("hide");
_parent.helpMC.gotoAndPlay("hide");
gamePaused = false;
if (!_parent.messagingMC.moving) {
levelMusic.stop();
levelMusic.start(0, 200);
levelMusicOn = true;
} else {
_parent.messagingMC.play();
}
}
}
function doQuit() {
trace("quit button action here");
_parent.gotoAndPlay("gameOver");
}
function toggleHelp() {
if (!helpOn) {
helpOn = true;
gamePaused = true;
levelMusic.stop();
levelMusicOn = false;
_parent.messagingMC.stop();
_parent.helpMC.gotoAndPlay("show");
char.curX = char._x;
char._x = -1000;
} else {
helpOn = false;
if (char._x == -1000) {
char._x = char.curX;
}
_parent.helpMC.gotoAndPlay("hide");
if (quitOn == false) {
gamePaused = false;
if (!_parent.messagingMC.moving) {
if (levelMusicOn == false) {
levelMusic.start(0, 200);
levelMusicOn = true;
}
} else {
_parent.messagingMC.play();
}
}
}
}
function addScore(scoreVal) {
oldScore = totalScore;
totalScore = totalScore + scoreVal;
if ((oldScore < 10000) && (totalScore >= 10000)) {
trace("newLife awarded");
extraLifeSound.start(0, 1);
lives++;
updateHUD();
}
if (Math.floor(totalScore / 20000) > Math.floor(oldScore / 20000)) {
trace("newLife awarded");
extraLifeSound.start(0, 1);
lives++;
updateHUD();
}
updateHUD();
}
function updateHUD() {
HUD.scoreDisplay = totalScore;
HUD.scoreMC.updateScore(totalScore);
newlevelDisp = (4 * (levelNum - 1)) + roundNum;
HUD.levelDisplay = levelNum;
HUD.levelMC.updateScore(newlevelDisp);
HUD.levelTag.updateTag(newlevelDisp);
HUD.roundDisplay = roundNum;
HUD.livesDisplay = lives;
HUD.livesTag.updateTag(lives);
HUD.livesMC.updateScore(lives);
}
function initLevel() {
scripts.levelMusicOn = false;
baddyCount = 0;
firstBaddyFlag = true;
baddyLevel = 1000;
dropFollow = false;
if (levelNum == 0) {
levelNum = 1;
}
roundNum = roundNum + 1;
if (roundNum == 5) {
levelNum = levelNum + 1;
roundNum = 1;
curBak = scene.pyramidMC._currentframe;
newBak = curBak + 1;
if (newBak > 3) {
newBak = 1;
}
}
scene.pyramidMC.gotoAndStop(newBak);
_parent.bakMC.gotoAndStop(newBak);
HUD.changeTo.gotoAndStop(newBak);
levelBonus = levelBonus + levelBonusIncrement;
seahorseFlag = false;
garyFlag = false;
if (levelNum == 1) {
flipStyle = 1;
targetColor = 2;
baddyLimit = 4;
baddyLimit = 3;
}
if (levelNum == 2) {
flipStyle = 2;
targetColor = 3;
baddyLimit = 4;
}
if (levelNum == 3) {
flipStyle = 3;
targetColor = 2;
baddyLimit = 5;
}
if (levelNum == 4) {
flipStyle = 4;
targetColor = 3;
baddyLimit = 5;
}
if (levelNum >= 5) {
flipStyle = 5;
targetColor = 3;
baddyLimit = 6;
}
if (newBak == 1) {
tileBaseColor = 1;
}
if (newBak == 2) {
tileBaseColor = 4;
targetColor = targetColor + 3;
}
if (newBak == 3) {
tileBaseColor = 7;
targetColor = targetColor + 6;
}
trace("levelNum:" + levelNum);
trace("flipStyle:" + flipStyle);
trace("targetColor:" + targetColor);
trace("baddyLimit:" + baddyLimit);
HUD.sampleTile.art.gotoAndStop(targetColor);
totalColorTiles = 21;
tilezStart = 100;
i = 0;
while (i < 8) {
tilezStart++;
j = 0;
while (j <= 8) {
tile = scene[(("t_" + i) + "_") + j];
tilezStart++;
scene.pyramidMC.swapDepths(98);
tile.swapDepths(tilezStart);
if (((((i == 0) || (j == 0)) || (i > 7)) || (j > 7)) || ((i + j) > 7)) {
tile.gotoAndStop("blank");
} else {
tile.tcolor = tileBaseColor;
tile.gotoAndStop(tileBaseColor);
}
j++;
}
i++;
}
if (levelNum == 1) {
if (roundNum == 1) {
scene.t_5_0.gotoAndStop("disc");
scene.t_0_5.gotoAndStop("disc");
discNum = 2;
}
if (roundNum == 2) {
scene.t_6_0.gotoAndStop("disc");
scene.t_0_6.gotoAndStop("disc");
discNum = 2;
}
if (roundNum == 3) {
scene.t_6_0.gotoAndStop("disc");
scene.t_0_4.gotoAndStop("disc");
discNum = 2;
}
if (roundNum == 4) {
scene.t_6_0.gotoAndStop("disc");
scene.t_0_4.gotoAndStop("disc");
discNum = 2;
}
}
if (levelNum == 2) {
if (roundNum == 1) {
scene.t_2_0.gotoAndStop("disc");
scene.t_5_0.gotoAndStop("disc");
scene.t_0_4.gotoAndStop("disc");
discNum = 3;
}
if (roundNum == 2) {
scene.t_2_0.gotoAndStop("disc");
scene.t_6_0.gotoAndStop("disc");
scene.t_0_3.gotoAndStop("disc");
discNum = 3;
}
if (roundNum == 3) {
scene.t_2_0.gotoAndStop("disc");
scene.t_6_0.gotoAndStop("disc");
scene.t_0_4.gotoAndStop("disc");
discNum = 3;
}
if (roundNum == 4) {
scene.t_2_0.gotoAndStop("disc");
scene.t_6_0.gotoAndStop("disc");
scene.t_0_4.gotoAndStop("disc");
discNum = 3;
}
}
if (levelNum > 2) {
scene.t_2_0.gotoAndStop("disc");
scene.t_0_2.gotoAndStop("disc");
scene.t_6_0.gotoAndStop("disc");
scene.t_0_4.gotoAndStop("disc");
discNum = 4;
}
updateHUD();
startPos = [1, 1];
char = scene.attachMovie("char", "char", charDepth);
_global.char = char;
char.myZ = charDepth;
char.moveable = true;
char.discMove = false;
char.fallMove = false;
char.jumping = false;
char.art.gotoAndStop("down");
placeChar(1, 1);
charFrozen = false;
charJumping = false;
gameFrozen = false;
_parent.messagingMC.gotoAndPlay("ready_go");
}
function newChar(x, y) {
if (lives <= 0) {
endGame();
} else {
dropFollow = false;
char.moveable = true;
char.discMove = false;
char.fallMove = false;
placeChar(x, y);
char.art.gotoAndStop("down");
gameFrozen = false;
charFrozen = false;
charJumping = false;
char.jumping = false;
updateHUD();
}
}
function charDie(dieType) {
if ((gameFrozen == false) && (charFrozen == false)) {
gameFrozen = true;
charFrozen = true;
lives = lives - 1;
updateHUD();
if (lives <= 0) {
_parent.messagingMC.gotoAndPlay("barnacles");
} else {
_parent.messagingMC.gotoAndPlay("try_again");
}
if (dieType != "fall") {
char.art.gotoAndStop("die_left");
} else {
char.x = 1;
char.y = 1;
}
}
}
function endGame() {
gameOn = false;
_parent.gotoAndPlay("gameOver");
}
function placeChar(x, y) {
char.dirHilite.gotoAndStop("blank");
targetTile = (("scene.t_" + x) + "_") + y;
char._x = eval (targetTile)._x;
char._y = eval (targetTile)._y;
char.x = x;
char.y = y;
zsum = (x + y) * 10;
myZ = char.myZ;
newZ = myZ + zSum;
bMC.swapDepths(newZ);
activeTile.x = x;
activeTile.y = y;
}
function moveChar(x, y) {
char.dirHilite.gotoAndStop("blank");
char.jumping = false;
charJumping = false;
targetTile = (("scene.t_" + x) + "_") + y;
char._x = eval (targetTile)._x;
char._y = eval (targetTile)._y;
char.x = x;
char.y = y;
restDir = char.jumpDir;
char.art.gotoAndStop(restDir);
activeTile.x = x;
activeTile.y = y;
zsum = (x + y) * 10;
myZ = char.myZ;
newZ = myZ + zSum;
bMC.swapDepths(newZ);
if (charFrozen == false) {
doTileAction(x, y);
}
}
function doTileAction(x, y) {
if ((x == 0) && (x == 0)) {
}
mTile = eval ((("scene.t_" + x) + "_") + y);
if (mTile.style == "color") {
flipTile(mTile);
}
if (mTile.style == "blank") {
trace("blank tile, falling........");
xDif = 0;
yDif = -500;
char.moveable = false;
char.xInc = xDif / 30;
char.yInc = yDif / 30;
char.fallMove = true;
charFalling = true;
char.swapDepths(scene.fallProxy);
fallSound.start(0, 1);
}
if (mTile.style == "disc") {
mTile.gotoAndStop("blank");
if (x != 0) {
char.art.gotoAndStop("whirlPool_right");
} else {
char.art.gotoAndStop("whirlPool_left");
}
xDif = mTile._x - scene.t_0_0._x;
yDif = mTile._y - scene.t_0_0._y;
char.moveable = false;
char.discMove = true;
char.xInc = xDif / 30;
char.yInc = yDif / 30;
dropX = activeTile.x;
dropY = activeTile.y;
dropFollow = true;
dropFollowTime = getTimer() + followTime;
}
}
function flipTile(mTile) {
tColor = mTile.tcolor;
newColor = tColor;
if (flipStyle == 1) {
if (tColor == tileBaseColor) {
newColor = tileBaseColor + 1;
addScore(targetScore);
}
}
if (flipStyle == 2) {
if (tColor == tileBaseColor) {
newColor = tileBaseColor + 1;
addScore(intermediateScore);
}
if (tColor == (tileBaseColor + 1)) {
newColor = tileBaseColor + 2;
addScore(targetScore);
}
}
if (flipStyle == 3) {
if (tColor == tileBaseColor) {
newColor = tileBaseColor + 1;
addScore(targetScore);
}
if (tColor == (tileBaseColor + 1)) {
newColor = tileBaseColor;
}
}
if (flipStyle == 4) {
if (tColor == tileBaseColor) {
newColor = tileBaseColor + 1;
addScore(intermediateScore);
}
if (tColor == (tileBaseColor + 1)) {
newColor = tileBaseColor + 2;
addScore(targetScore);
}
if (tColor == (tileBaseColor + 2)) {
newColor = tileBaseColor + 1;
}
}
if (flipStyle == 5) {
if (tColor == tileBaseColor) {
newColor = tileBaseColor + 1;
addScore(intermediateScore);
}
if (tColor == (tileBaseColor + 1)) {
newColor = tileBaseColor + 2;
addScore(targetScore);
}
if (tColor == (tileBaseColor + 2)) {
newColor = tileBaseColor;
}
}
mTile.tcolor = newColor;
mTile.gotoAndStop(newColor);
checkTiles();
}
function checkTiles() {
targetCount = 0;
i = 1;
while (i < 8) {
j = 1;
while (j < 8) {
tile = scene[(("t_" + i) + "_") + j];
if ((tile.style == "color") && (tile.tcolor == targetColor)) {
targetCount++;
}
j++;
}
i++;
}
totalTarget = targetCount;
if (targetCount == totalColorTiles) {
levelDone();
}
}
function levelDone() {
gameFrozen = true;
char.moveable = false;
charFrozen = true;
iterativeLevel = roundNum + ((levelNum - 1) * 4);
levelBonus = 1000 + ((iterativeLevel - 1) * 500);
if (levelBonus > 4500) {
levelBonus = 4500;
}
addScore(levelBonus);
suicideJump = false;
e = 0;
while (e <= baddyIncrement) {
badMC = eval ("scene.bad_" + baddyIncrement);
if ((badMC.jumping == false) && (badMC.active)) {
if ((badMC.x == char.x) && (badMC.y == char.y)) {
badType = badMC.myType;
if (badType == 2) {
badMC.active = false;
baddyCount--;
badMC.removeMovieClip();
suicideJump = true;
}
if (badType == 3) {
badMC.active = false;
baddyCount--;
badMC.removeMovieClip();
scripts.seahorseFlag = false;
suicideJump = true;
}
if (badType == 6) {
badMC.active = false;
baddyCount--;
badMC.removeMovieClip();
scripts.seahorseFlag = false;
suicideJump = true;
}
if (badType == 4) {
badMC.active = false;
addScore(300);
baddyCount--;
badMC.swapDepths(charDepth + 5);
badMC.art.gotoAndPlay("die");
suicideJump = false;
}
if (badType == 5) {
badMC.active = false;
baddyCount--;
addScore(100);
faceDir = badMC.faceDir;
dieFrame = "die" + faceDir;
badMC.swapDepths(charDepth + 5);
badMC.art.gotoAndPlay(dieFrame);
suicideJump = false;
scripts.garyFlag = false;
}
}
}
e++;
}
if (suicideJump != true) {
gameOn = false;
_parent.messagingMC.gotoAndPlay("level_done");
} else {
lives = lives - 1;
updateHUD();
char.art.gotoAndStop("die_left");
_parent.messagingMC.gotoAndPlay("level_done");
}
}
function buildMap() {
i = 0;
while (i < map[0].length) {
j = 0;
while (j < map.length) {
d++;
tile = scene.attachMovie("tile", (("t_" + i) + "_") + j, d);
tile._x = i * tileW;
tile._y = j * tileH;
tile.gotoAndStop(map[j][i] + 1);
j++;
}
i++;
}
}
function doRollOver(hDir) {
if ((gameOn && (charFrozen == false)) && (char.discMove == false)) {
char.rollDirection = hDir;
char.dirHilite.gotoAndStop(hDir);
}
}
function doTileClick(hDir) {
if ((((((gameOn && (charFrozen == false)) && (char.discMove == false)) && (char.fallMove == false)) && (char.jumping == false)) && (charJumping == false)) && (helpOn == false)) {
char.art.gotoAndStop(hDir);
newX = activeTile.x;
newY = activeTile.y;
switch (hDir) {
case "up" :
newDir = "jumpUp";
newY = activeTile.y - 1;
break;
case "down" :
newDir = "jumpDown";
newY = activeTile.y + 1;
break;
case "left" :
newDir = "jumpLeft";
newX = activeTile.x - 1;
break;
case "right" :
newDir = "jumpRight";
newX = activeTile.x + 1;
}
char.jumpDir = hDir;
char.jumpX = newX;
char.jumpY = newY;
charJumping = true;
char.jumping = true;
char.art.gotoAndPlay(newDir);
}
}
function navClick(mydir) {
if (gameOn && (charFrozen == false)) {
char.art.gotoAndStop(mydir);
newX = activeTile.x;
newY = activeTile.y;
switch (mydir) {
case "up" :
newY = activeTile.y - 1;
break;
case "down" :
newY = activeTile.y + 1;
break;
case "left" :
newX = activeTile.x - 1;
break;
case "right" :
newX = activeTile.x + 1;
}
moveChar(newX, newY);
}
}
function finishJump() {
newX = char.jumpX;
newY = char.jumpY;
restDir = char.jumDir;
moveChar(newX, newY);
charJumping = false;
char.jumping = false;
if (gameOn && (suicideJump == false)) {
char.art.gotoAndStop(restDir);
}
}
function newBaddy() {
if (baddyCount < baddyLimit) {
if (!firstBaddyFlag) {
badPicker = randomIn(1, 10);
} else {
badPicker = 2;
firstBaddyFlag = false;
}
if (badPicker <= 4) {
badType = 2;
}
if ((badPicker == 5) || (badPicker == 6)) {
badType = 3;
}
if ((badPicker == 9) || (badPicker == 10)) {
badType = 4;
}
if ((badPicker == 7) || (badPicker == 8)) {
badType = 5;
}
if (seahorseFlag && (badType == 3)) {
badType = 2;
}
if (garyFlag && (badType == 5)) {
badType = 2;
}
if (newlevelDisp == 1) {
badType = 2;
}
if (newlevelDisp == 2) {
if (badType == 3) {
badType = 2;
}
if (badType == 5) {
badType = 2;
}
}
if (newlevelDisp == 3) {
if (badType == 3) {
badType = 2;
}
}
startSide = "";
startX = randomIn(1, 2);
if (startX != 1) {
startY = 1;
startSide = "right";
} else {
startY = 2;
startSide = "left";
}
if (badType == 5) {
garyFlag = true;
}
if (badType == 3) {
seahorseFlag = true;
}
badClip = "baddy" + badType;
baddyCount++;
baddyIncrement++;
baddy = scene.attachMovie(badClip, "bad_" + baddyIncrement, baddyLevel + baddyIncrement);
baddy.myType = badType;
baddy.myZ = baddyLevel + baddyIncrement;
baddy.falling = false;
baddy.startSide = startSide;
dropBaddy(baddy, startX, startY);
baddy.onEnterFrame = function () {
if (gameOn == false) {
baddyCount--;
this.removeMovieClip();
}
if (gamePaused == false) {
if ((this.activeX == null) || (this.activeY == null)) {
trace("invalid placement, kill myself!");
baddyCount--;
this.removeMovieClip();
}
if (!this.falling) {
if (!this.dropping) {
if (!this.active) {
if (getTimer() > (this.timeStart + scripts.baddyLogicDelay)) {
this.removeMovieClip();
}
} else {
if (this.myType != 3) {
if (getTimer() > (this.timeStart + scripts.baddyLogicDelay)) {
scripts.baddyLogic(this);
this.timeStart = getTimer();
}
} else if (getTimer() > (this.timeStart + scripts.baddyLogicDelay2)) {
scripts.baddyLogic(this);
this.timeStart = getTimer();
}
if (((this.x == char.x) && (this.y == char.y)) && (char.jumping == false)) {
if (this.active) {
if (this.jumping == false) {
scripts.baddyCollide(this);
this.timeStart = getTimer();
}
}
}
}
} else {
scripts.baddyDrop(this);
}
} else {
scripts.baddyFall(this);
}
}
};
}
baddy.active = true;
baddy.timeStart = getTimer();
}
function baddyCollide(badMC) {
if ((badMC.jumping == false) && (char.jumping == false)) {
badType = badMC.myType;
switch (badType) {
case 2 :
if (gameFrozen == false) {
badMC.active = false;
baddyCount--;
badMC.removeMovieClip();
}
if ((charFrozen == false) && (gameFrozen == false)) {
charDie("hit");
}
return;
case 3 :
if (gameFrozen == false) {
badMC.active = false;
baddyCount--;
badMC.removeMovieClip();
scripts.seahorseFlag = false;
}
if ((charFrozen == false) && (gameFrozen == false)) {
charDie("hit");
}
return;
case 6 :
if (gameFrozen == false) {
badMC.active = false;
baddyCount--;
badMC.removeMovieClip();
scripts.seahorseFlag = false;
}
if ((charFrozen == false) && (gameFrozen == false)) {
charDie("hit");
}
return;
case 4 :
badMC.active = false;
addScore(300);
baddyCount--;
badMC.swapDepths(charDepth + 5);
badMC.art.gotoAndPlay("die");
return;
case 5 :
badMC.active = false;
baddyCount--;
addScore(100);
faceDir = badMC.faceDir;
dieFrame = "die" + faceDir;
badMC.swapDepths(charDepth + 5);
badMC.art.gotoAndPlay(dieFrame);
}
}
}
function baddyFall(badMC) {
badMC.active = false;
badMC._y = badMC._y + 15;
baddyType = badMC.myType;
if (badMC._y > 450) {
baddyCount--;
badMC.removeMovieClip();
if (baddyType == 5) {
scripts.garyFlag = false;
}
if ((baddyType == 3) || (baddyType == 6)) {
scripts.seahorseFlag = false;
}
}
}
function baddyTileAction(badMC, x, y) {
if (badMC.myType == 4) {
if ((x + y) < 8) {
mTile = eval ((("scene.t_" + x) + "_") + y);
if (mTile.tcolor != (tileBaseColor + 2)) {
if (mTile.tcolor == (tileBaseColor + 1)) {
mTile.tcolor = tileBaseColor;
}
} else {
mTile.tcolor = tileBaseColor + 1;
}
mTile.gotoAndStop(mTile.tcolor);
}
}
}
function baddyDrop(badMC) {
newY = badMC._y + 8;
if (newY >= badMC.dropY) {
newY = badMC.dropY;
badMC.dropping = false;
badMC.jumping = false;
badMC.activeY = badMC.dropTileY;
badMC.y = badMC.dropTileY;
baddyTileAction(badMC, badMC.x, badMC.y);
}
badMC._y = newY;
}
function baddyLogic(badMC) {
if ((gameOn && (gameFrozen == false)) && (gamePaused == false)) {
myType = badMC.myType;
myX = badMC.activeX;
myY = badMC.activeY;
targetX = myX;
targetY = myY;
if ((myType == 4) || (myType == 5)) {
if ((myX + myY) != 7) {
charX = activeTile.x;
charY = activeTile.y;
downX = myX;
downY = myY + 1;
rightX = myX + 1;
rightY = myY;
if (!((charX == downX) && (charY == downY))) {
if (!((charX == rightX) && (charY == rightY))) {
if (!randomIn(0, 1)) {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
} else {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
}
} else {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
}
} else {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
}
} else if (!randomIn(0, 1)) {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
} else {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
}
}
if (myType == 2) {
if ((myX + myY) != 7) {
if (!randomIn(0, 1)) {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
} else {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
}
} else if (!randomIn(0, 1)) {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
} else {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
}
}
if (myType == 3) {
jumpDown = randomIn(0, 1);
if ((myX + myY) != 6) {
if (!jumpDown) {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
} else {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
}
} else {
trace("pop bubble routine");
if (!jumpDown) {
jumpDir = "popRight";
targetX = myX + 1;
targetY = myY;
} else {
jumpDir = "popDown";
targetX = myX;
targetY = myY + 1;
}
}
}
if (myType == 6) {
if (dropFollow && (getTimer() > dropFollowTime)) {
dropFollow = false;
}
if (!dropFollow) {
followX = activeTile.x;
followY = activeTile.y;
} else {
followX = dropX;
followY = dropY;
}
dX = Math.abs(Number(followX) - Number(myX));
dY = Math.abs(Number(followY) - Number(myY));
trace(((dX + ":") + dY) + " = distances");
right = true;
down = true;
if ((myX + myY) == 7) {
down = false;
right = false;
}
if (dY > dX) {
if (!((followY < myY) || (down == false))) {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
} else {
jumpDir = "jumpUp";
targetX = myX;
targetY = myY - 1;
}
}
if (dY < dX) {
if (!((followX < myX) || (right == false))) {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
} else {
jumpDir = "jumpLeft";
targetX = myX - 1;
targetY = myY;
}
}
if (dY == dX) {
if (right != false) {
jChoice = randomIn(0, 1);
if (!jChoice) {
if (!((followX < myX) || (right == false))) {
jumpDir = "jumpRight";
targetX = myX + 1;
targetY = myY;
} else {
jumpDir = "jumpLeft";
targetX = myX - 1;
targetY = myY;
}
} else if (!((followY < myY) || (down == false))) {
jumpDir = "jumpDown";
targetX = myX;
targetY = myY + 1;
} else {
jumpDir = "jumpUp";
targetX = myX;
targetY = myY - 1;
}
} else if (followX >= myX) {
jumpDir = "jumpUp";
targetX = myX;
targetY = myY - 1;
} else {
jumpDir = "jumpLeft";
targetX = myX - 1;
targetY = myY;
}
}
}
badMC.jumpX = targetX;
badMC.jumpY = targetY;
badMC.art.gotoAndPlay(jumpDir);
}
}
function placeBaddy(bMC, x, y) {
btargetTile = (("scene.t_" + x) + "_") + y;
bMC._x = eval (btargetTile)._x;
bMC._y = eval (btargetTile)._y;
bMC.x = x;
bMC.y = y;
bMC.activeX = x;
bMC.activeY = y;
zsum = (x + y) * 10;
myZ = bMC.myZ;
newZ = myZ + zSum;
bMC.swapDepths(newZ);
}
function dropBaddy(badMC, x, y) {
btargetTile = (("scene.t_" + x) + "_") + y;
badMC.dropY = eval (btargetTile)._y;
badMC.dropTileY = y;
badMC._x = eval (btargetTile)._x;
badMC._y = eval (btargetTile)._y - 160;
badMC.x = x;
badMC.y = 0;
badMC.activeX = x;
badMC.activeY = 0;
badMC.dropping = true;
zsum = (x + y) * 10;
myZ = bMC.myZ;
newZ = myZ + zSum;
bMC.swapDepths(newZ);
}
function moveBaddy(badMC, x, y) {
btargetTile = (("scene.t_" + x) + "_") + y;
badMC._x = eval (btargetTile)._x;
badMC._y = eval (btargetTile)._y;
badMC.x = x;
badMC.y = y;
badMC.activeX = x;
badMC.activeY = y;
myType = badMC.myType;
zsum = (x + y) * 10;
myZ = bMC.myZ;
newZ = myZ + zSum;
bMC.swapDepths(newZ);
if ((badMC.myType == 3) && ((x + y) == 7)) {
trace("changing badTypes to 6");
badMC.myType = 6;
badMC.gotoAndStop("noBubble");
}
faceDir = badMC.faceDir;
badMC.jumping = false;
badMC.art.gotoAndStop(faceDir);
baddyTileAction(badMC, badMC.x, badMC.y);
if (((x == 0) || (y == 0)) || ((x + y) > 7)) {
badMC.falling = true;
if (badMC.myType == 6) {
badMC.swapDepths(95);
}
}
}
function showHelp() {
helpOpen = true;
_parent.helpMC.gotoAndPlay("open");
}
function closeHelp() {
helpOpen = false;
_parent.helpMC.gotoAndPlay("close");
}
_global.scripts = this;
_global.gameRoot = _parent;
_global.map = [];
activeTile = new Object();
levelMusic = new Sound();
levelMusic.attachSound("levelMusic");
gameOverMusic = new Sound();
gameOverMusic.attachSound("gameOverMusic");
eBounceSound = new Sound();
eBounceSound.attachSound("eBounceSound");
fallSound = new Sound();
fallSound.attachSound("fallSound");
extraLifeSound = new Sound();
extraLifeSound.attachSound("extraLife");
screenName = _parent.screenName;
helpOn = false;
quitOn = false;
}
onClipEvent (enterFrame) {
if (char.discMove && (gamePaused == false)) {
char.moveable = false;
char.discMove = true;
newX = char._x - char.xInc;
newY = char._y - char.yInc;
char._x = newX;
char._y = newY;
if (char.x != 0) {
char.art.gotoAndStop("whirlPool_right");
} else {
char.art.gotoAndStop("whirlPool_left");
}
if (Math.abs(char._y - scene.t_0_1._y) < 5) {
char.moveable = true;
char.discMove = false;
discNum = discNum - 1;
moveChar(1, 1);
char.art.gotoAndStop("down");
}
}
if (char.fallMove && (gamePaused == false)) {
newX = char._x - char.xInc;
newY = char._y - char.yInc;
char._x = newX;
char._y = newY;
if (char._y > 520) {
char.moveable = true;
char.fallMove = false;
charFalling = false;
char.swapDepths(scene.fallProxy);
charDie("fall");
}
}
if (gameOn && (gamePaused == false)) {
if ((freezeStart > 0) && (gameFrozen)) {
if (getTimer() > freezeStop) {
freezeStart = 0;
gameFrozen = false;
}
}
}
if ((gameOn && (gameFrozen == false)) && (gamePaused == false)) {
if (getTimer() > (baddySpawnTimer + baddySpawnDelay)) {
baddySpawnTimer = getTimer();
newBaddy();
}
}
}
onClipEvent (keyDown) {
theKey = String.fromCharCode(Key.getAscii());
if (Key.isDown(16)) {
if (theKey == "&") {
scripts.lives++;
scripts.updateHUD();
}
if (theKey == "*") {
if (scripts.gameOn) {
scripts.levelDone();
}
}
}
}
Frame 58
stopAllSounds();
levelMusicOn = false;
Frame 61
scripts.initGame();
scripts.initLevel();
Frame 67
this.stop();
Frame 68
menuloopSound.stop();
menuLoopPlaying = false;
scripts.levelMusic.stop();
levelMusicOn = false;
app.gameScore = scripts.totalScore;
scripts.levelMusicFile.stop();
trace("app.myscreenName=" + app.myscreenName);
if (app.myscreenName != "null") {
trace("enabling sub button");
submitMC.gotoAndStop("enabled");
} else {
trace("disabling sub button");
submitMC.gotoAndStop("disabled");
}
Instance of Symbol 612 MovieClip "gscoreMC" in Frame 68
onClipEvent (load) {
function updateScore(inScore) {
if (inScore >= 10000000) {
this._x = 415;
}
if (inScore < 10000000) {
this._x = 415;
}
if (inScore < 1000000) {
this._x = 395;
}
if (inScore < 100000) {
this._x = 375;
}
if (inScore < 10000) {
this._x = 355;
}
if (inScore < 1000) {
this._x = 320;
}
if (inScore < 100) {
this._x = 300;
}
if (inScore < 10) {
this._x = 280;
}
premainder = 0;
if (inScore < 10000000) {
this.tenmillions.gotoAndStop(1);
} else {
myDigit = Math.floor(inScore / 10000000);
this.tenmillions.gotoAndStop(myDigit + 2);
premainder = myDigit * 10000000;
}
if (inScore < 1000000) {
this.millions.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000000);
this.millions.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000000);
}
if (inScore < 100000) {
this.hundredthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100000);
this.hundredthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100000);
}
if (inScore < 10000) {
this.tenthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10000);
this.tenthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10000);
}
if (inScore < 1000) {
this.thousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000);
this.thousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000);
}
if (inScore < 100) {
this.hundreds.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100);
this.hundreds.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100);
}
if (inScore < 10) {
this.tens.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10);
this.tens.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10);
}
if (inScore < 0) {
this.ones.gotoAndStop(2);
} else {
myDigit = Math.floor(inScore - premainder);
this.ones.gotoAndStop(Number(myDigit + 2));
}
}
updateScore(scripts.totalScore);
}
Instance of Symbol 645 MovieClip "submitMC" in Frame 68
on (release) {
var gname = "PyramidPerilPC";
var gscore = app.gameScore;
}
Frame 76
stop();
Frame 77
menuloopSound.stop();
menuLoopPlaying = false;
stopAllSounds();
scroller._y = 700;
app.submitPath = (("/common/score/Scoreboard.jhtml?msg=S&limitEntries=true&game=sb_peril&name=" + app.myscreenName) + "&score=") + String(app.gameScore);
loadScores = new LoadVars();
loadScores.load(app.basePath + app.submitPath);
loadScores.onLoad = function () {
trace("load complete");
if (this.msg != "EE") {
myScoreFlag = true;
z = 0;
while (z < 100) {
nVar = eval ("this.pn" + z);
sVar = eval ("this.ps" + z);
scrollVar = eval ("scroller.contentMain.score" + (z + 1));
scrollVar.gotoAndStop(1);
if (myScoreFlag) {
if ((app.gameScore == sVar) && (app.myscreenName == nVar)) {
trace("found my sub score at:" + z);
myScoreFlag = false;
scrollVar.gotoAndStop("hi");
}
}
scrollVar.placeval = z + 1;
scrollVar.nameval = nVar;
scrollVar.scoreval = sVar;
z++;
}
gotoAndPlay ("displayScores");
} else {
if (this.text != "no scores available for that game (sb_peril)") {
MSGtext = "Oops, the high-score list isn\u2019t available right now!";
} else {
MSGtext = "Sorry, the high-score list is empty!";
}
gotoAndStop ("displayError");
}
};
stop();
Frame 82
menuloopSound.stop();
menuLoopPlaying = false;
stopAllSounds();
loadScores = null;
loadScores = new LoadVars();
loadScores.load(app.basePath + app.scorePath);
loadScores.onLoad = function () {
trace("load complete");
if (this.msg != "EE") {
z = 0;
while (z < 100) {
nVar = eval ("this.pn" + z);
sVar = eval ("this.ps" + z);
scrollVar = eval ("scroller.contentMain.score" + (z + 1));
scrollVar.placeval = z + 1;
scrollVar.nameval = nVar;
scrollVar.scoreval = sVar;
z++;
}
gotoAndPlay ("displayScores");
} else {
if (this.text != "no scores available for that game (sb_peril)") {
MSGtext = "Oops, the high-score list isn\u2019t available right now!";
} else {
MSGtext = "Sorry, the high-score list is empty!";
}
gotoAndStop ("displayError");
}
};
stop();
Frame 94
scroller._y = 4.80000019073486;
stop();
Frame 99
stop();
Symbol 7 MovieClip Frame 1
this.stop();
Symbol 7 MovieClip Frame 3
this.stop();
Symbol 7 MovieClip Frame 4
this.stop();
Symbol 7 MovieClip Frame 5
this.stop();
Symbol 7 MovieClip Frame 6
this.stop();
Symbol 7 MovieClip Frame 7
this.stop();
Symbol 7 MovieClip Frame 8
this.stop();
Symbol 7 MovieClip Frame 9
this.stop();
Symbol 7 MovieClip Frame 10
this.stop();
Symbol 7 MovieClip Frame 11
this.stop();
Symbol 7 MovieClip Frame 12
this.stop();
Symbol 16 Button
on (keyPress "<Left>") {
return(undefined);
}
on (keyPress "<Right>") {
return(undefined);
}
on (keyPress "<Up>") {
return(undefined);
}
on (keyPress "<Down>") {
return(undefined);
}
Symbol 692 MovieClip Frame 1
var site_url_off = "file:";
var site_url = "http://www.stanis.nl";
var site_url_2 = "http://games.leukespellen.be";
var site_url_3 = "http://sgames.jskgames.com";
var site_url_4 = "http://sgames.speeleiland.nl";
var site_url_5 = "http://sspiele.spielkarussell.de";
var site_url_6 = "http://sgierki.wyspagier.pl";
var domein = _root._url;
if (domein.substr(0, site_url_off.length) == site_url_off) {
trace("offline");
} else if ((((((domein.substr(0, site_url.length) != site_url) && (domein.substr(0, site_url_2.length) != site_url_2)) && (domein.substr(0, site_url_3.length) != site_url_3)) && (domein.substr(0, site_url_4.length) != site_url_4)) && (domein.substr(0, site_url_5.length) != site_url_5)) && (domein.substr(0, site_url_6.length) != site_url_6)) {
trace("wrong");
gotoAndStop (555);
}
stop();
Symbol 692 MovieClip Frame 555
System.security.allowInsecureDomain("www.ilia.nl");
loadmov = "http://www.ilia.nl/secured/stln.swf?domain=";
loadMovieNum (loadmov + _root._url, 1000);
stop();
Symbol 19 MovieClip Frame 1
versionString = String(getVersion());
theVersion = substring(versionString, 5, 1);
if (theVersion >= 7) {
gotoAndPlay ("load");
}
Symbol 19 MovieClip Frame 2
this.stop();
Symbol 19 MovieClip Frame 3
loadBarLength = 84;
loaded = Math.round(_root.getBytesLoaded());
total = Math.round(_root.getBytesTotal());
percent = (loaded / total) * 100;
this.loadBar._width = percent * loadBarLength;
if (total >= 1) {
TEXT = Math.round(percent);
} else {
TEXT = 0;
}
this.loadPercent = TEXT;
trace(percent + " cur percent loaded");
if ((percent >= 10) && (percent < 20)) {
loadMC.gotoAndStop(2);
}
if ((percent >= 20) && (percent < 30)) {
loadMC.gotoAndStop(3);
}
if ((percent >= 30) && (percent < 40)) {
loadMC.gotoAndStop(4);
}
if ((percent >= 40) && (percent < 50)) {
loadMC.gotoAndStop(5);
}
if ((percent >= 50) && (percent < 60)) {
loadMC.gotoAndStop(6);
}
if ((percent >= 60) && (percent < 70)) {
loadMC.gotoAndStop(7);
}
if ((percent >= 70) && (percent < 80)) {
loadMC.gotoAndStop(8);
}
if ((percent >= 80) && (percent < 90)) {
loadMC.gotoAndStop(9);
}
if ((percent >= 90) && (percent < 100)) {
loadMC.gotoAndStop(10);
}
if (percent == 100) {
loadMC.gotoAndStop(11);
}
Symbol 19 MovieClip Frame 7
if (loaded != total) {
this.gotoAndPlay("load");
} else {
_parent.play();
}
Symbol 30 MovieClip Frame 1
stop();
Symbol 38 Button
on (release) {
gotoAndPlay ("getScores");
}
Symbol 43 Button
on (release) {
gotoAndPlay ("intro");
}
Symbol 46 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 53 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 69 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
this.moving = false;
stop();
Symbol 56 MovieClip Frame 19
this.moving = true;
Symbol 56 MovieClip Frame 117
this.moving = false;
stop();
if (scripts.helpOn == false) {
if (scripts.levelMusicOn == false) {
scripts.levelMusicOn = true;
scripts.levelMusic.start(0, 200);
}
scripts.gamePaused = false;
}
scripts.gameOn = true;
scripts.baddySpawnTimer = getTimer();
Symbol 56 MovieClip Frame 123
this.moving = true;
Symbol 56 MovieClip Frame 161
this.moving = false;
stop();
scripts.newChar(char.x, char.y);
Symbol 56 MovieClip Frame 162
this.moving = true;
_parent.helpMC.gotoAndStop("lockOut");
Symbol 56 MovieClip Frame 198
this.moving = false;
stop();
scripts.endGame();
Symbol 56 MovieClip Frame 204
this.moving = true;
scripts.levelMusic.stop();
roundBonusDisplay = scripts.levelBonus;
discBonusDisplay = scripts.discBonusDisplay;
Symbol 56 MovieClip Frame 217
if (roundBonusDisplay == 1000) {
bonusMC.gotoAndStop(1);
}
if (roundBonusDisplay == 1500) {
bonusMC.gotoAndStop(2);
}
if (roundBonusDisplay == 2000) {
bonusMC.gotoAndStop(3);
}
if (roundBonusDisplay == 2500) {
bonusMC.gotoAndStop(4);
}
if (roundBonusDisplay == 3000) {
bonusMC.gotoAndStop(5);
}
if (roundBonusDisplay == 3500) {
bonusMC.gotoAndStop(6);
}
if (roundBonusDisplay == 4000) {
bonusMC.gotoAndStop(7);
}
if (roundBonusDisplay >= 4500) {
bonusMC.gotoAndStop(8);
}
Symbol 56 MovieClip Frame 245
scripts.gameOn = false;
char.art.gotoAndPlay("victory");
Symbol 56 MovieClip Frame 359
this.moving = false;
stop();
scripts.initLevel();
Symbol 79 MovieClip Frame 7
this.stop();
Symbol 113 MovieClip Frame 1
this.jumping = true;
Symbol 113 MovieClip Frame 10
this.jumping = false;
scripts.finishJump();
stop();
Symbol 124 MovieClip Frame 1
this.jumping = true;
Symbol 124 MovieClip Frame 10
this.jumping = false;
scripts.finishJump();
stop();
Symbol 169 MovieClip Frame 8
stop();
Symbol 154 MovieClip Frame 15
stop();
Symbol 197 MovieClip Frame 7
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 3
stop();
Symbol 83 MovieClip Frame 4
stop();
Symbol 83 MovieClip Frame 20
scripts.finishJump("left");
stop();
Symbol 83 MovieClip Frame 35
scripts.finishJump("up");
Symbol 83 MovieClip Frame 50
scripts.finishJump("right");
Symbol 83 MovieClip Frame 66
scripts.finishJump("down");
Symbol 83 MovieClip Frame 80
stop();
Symbol 83 MovieClip Frame 95
stop();
Symbol 83 MovieClip Frame 109
stop();
Symbol 83 MovieClip Frame 125
stop();
Symbol 83 MovieClip Frame 140
stop();
Symbol 83 MovieClip Frame 155
stop();
Symbol 83 MovieClip Frame 170
stop();
Symbol 202 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 70
scripts.newChar(_parent.x, _parent.y);
Symbol 207 Button
on (release) {
scripts.doTileClick("up");
}
Symbol 209 Button
on (release) {
scripts.doTileClick("right");
}
Symbol 211 Button
on (release) {
scripts.doTileClick("left");
}
Symbol 212 Button
on (release) {
scripts.doTileClick("down");
}
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 2
stop();
Symbol 206 MovieClip Frame 3
stop();
Symbol 206 MovieClip Frame 4
stop();
Symbol 206 MovieClip Frame 5
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
stop();
Symbol 223 Button
on (rollOver, dragOver) {
this.dirHilite.mouseActive = false;
}
on (rollOut, dragOut) {
this.dirHilite.mouseActive = false;
}
Symbol 82 MovieClip [char] Frame 1
stop();
Instance of Symbol 206 MovieClip "dirHilite" in Symbol 82 MovieClip [char] Frame 1
onClipEvent (enterFrame) {
yOffset = 23;
this.startX = this._x;
xm = _xmouse;
ym = _ymouse - yOffset;
var mdir = "blank";
if ((Math.abs(this._xmouse) < 150) && (Math.abs(this._ymouse) < 150)) {
if (xm <= 0) {
if (ym >= 0) {
mdir = "down";
} else {
mdir = "left";
}
} else if (ym >= 0) {
mdir = "right";
} else {
mdir = "up";
}
}
if (((((((scripts.gameOn == false) || (scripts.charFrozen == true)) || (char.discMove == true)) || (scripts.charFalling)) || (char.jumping)) || (scripts.charJumping)) || (char.moveable == false)) {
mdir = "blank";
}
this.gotoAndStop(mdir);
}
Symbol 236 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 236 MovieClip Frame 14
_parent._parent.jumping = false;
Symbol 236 MovieClip Frame 19
stop();
Symbol 237 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 237 MovieClip Frame 15
_parent._parent.jumping = false;
Symbol 237 MovieClip Frame 20
stop();
Symbol 238 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 238 MovieClip Frame 15
_parent._parent.jumping = false;
Symbol 238 MovieClip Frame 19
stop();
Symbol 241 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 241 MovieClip Frame 14
_parent._parent.jumping = false;
Symbol 241 MovieClip Frame 19
stop();
Symbol 226 MovieClip Frame 1
_parent.faceDir = "ready";
Symbol 226 MovieClip Frame 18
stop();
Symbol 226 MovieClip Frame 37
stop();
_parent.faceDir = "ready";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 226 MovieClip Frame 56
stop();
_parent.faceDir = "ready";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 226 MovieClip Frame 75
stop();
_parent.faceDir = "ready";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 226 MovieClip Frame 94
stop();
_parent.faceDir = "ready";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 225 MovieClip [baddy1] Frame 1
stop();
Symbol 242 MovieClip [baddy2] Frame 1
stop();
Symbol 252 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 252 MovieClip Frame 11
_parent._parent.jumping = false;
Symbol 252 MovieClip Frame 12
stop();
Symbol 260 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 260 MovieClip Frame 11
_parent._parent.jumping = false;
Symbol 260 MovieClip Frame 12
stop();
Symbol 268 MovieClip Frame 4
stop();
Symbol 274 MovieClip Frame 4
stop();
Symbol 279 MovieClip Frame 4
stop();
Symbol 288 MovieClip Frame 6
stop();
Symbol 297 MovieClip Frame 11
stop();
Symbol 284 MovieClip Frame 15
stop();
Symbol 266 MovieClip Frame 8
stop();
Symbol 244 MovieClip Frame 1
_parent.faceDir = "down";
stop();
Symbol 244 MovieClip Frame 2
_parent.faceDir = "up";
stop();
Symbol 244 MovieClip Frame 3
_parent.faceDir = "right";
stop();
Symbol 244 MovieClip Frame 4
_parent.faceDir = "left";
stop();
Symbol 244 MovieClip Frame 16
_parent.faceDir = "down";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
stop();
Symbol 244 MovieClip Frame 28
_parent.faceDir = "right";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
stop();
Symbol 244 MovieClip Frame 40
_parent.faceDir = "up";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
stop();
Symbol 244 MovieClip Frame 52
_parent.faceDir = "left";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
stop();
Symbol 244 MovieClip Frame 61
_parent.removeMovieClip();
Symbol 243 MovieClip [baddy4] Frame 1
stop();
Symbol 319 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 319 MovieClip Frame 13
_parent._parent.jumping = false;
Symbol 319 MovieClip Frame 14
stop();
Symbol 334 MovieClip Frame 6
stop();
Symbol 335 MovieClip Frame 11
stop();
Symbol 329 MovieClip Frame 3
_parent._parent.jumping = true;
Symbol 329 MovieClip Frame 14
_parent._parent.jumping = false;
Symbol 329 MovieClip Frame 16
stop();
Symbol 300 MovieClip Frame 1
_parent.faceDir = "down";
stop();
Symbol 300 MovieClip Frame 2
_parent.faceDir = "up";
stop();
Symbol 300 MovieClip Frame 3
_parent.faceDir = "right";
stop();
Symbol 300 MovieClip Frame 4
_parent.faceDir = "left";
stop();
Symbol 300 MovieClip Frame 17
stop();
_parent.faceDir = "down";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 300 MovieClip Frame 30
stop();
_parent.faceDir = "right";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 300 MovieClip Frame 43
stop();
_parent.faceDir = "up";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 300 MovieClip Frame 56
stop();
_parent.faceDir = "left";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 300 MovieClip Frame 74
stop();
_parent.faceDir = "down";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
stop();
Symbol 300 MovieClip Frame 92
stop();
_parent.faceDir = "right";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 340 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 340 MovieClip Frame 13
_parent._parent.jumping = false;
Symbol 350 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 350 MovieClip Frame 13
_parent._parent.jumping = false;
Symbol 339 MovieClip Frame 1
stop();
_parent.faceDir = "down";
Symbol 339 MovieClip Frame 2
stop();
_parent.faceDir = "up";
Symbol 339 MovieClip Frame 3
stop();
_parent.faceDir = "right";
Symbol 339 MovieClip Frame 4
stop();
_parent.faceDir = "left";
Symbol 339 MovieClip Frame 17
stop();
_parent.faceDir = "down";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 339 MovieClip Frame 30
stop();
_parent.faceDir = "right";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 339 MovieClip Frame 43
stop();
_parent.faceDir = "up";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 339 MovieClip Frame 56
stop();
_parent.faceDir = "left";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 339 MovieClip Frame 71
stop();
_parent.removeMovieClip();
Symbol 299 MovieClip [baddy3] Frame 1
stop();
Symbol 299 MovieClip [baddy3] Frame 2
stop();
myDir = _parent.myDir;
this.art.gotoAndStop(myDir);
Symbol 372 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 372 MovieClip Frame 13
stop();
_parent._parent.jumping = false;
Symbol 381 MovieClip Frame 3
_parent._parent.jumping = true;
_parent._parent.x = _parent._parent.jumpX;
_parent._parent.y = _parent._parent.jumpY;
Symbol 381 MovieClip Frame 14
stop();
_parent._parent.jumping = false;
Symbol 387 MovieClip Frame 3
_parent.gotoAndPlay("disappear");
stop();
Symbol 415 MovieClip Frame 11
stop();
Symbol 411 MovieClip Frame 18
stop();
Symbol 358 MovieClip Frame 1
_parent.faceDir = "down";
stop();
Symbol 358 MovieClip Frame 2
_parent.faceDir = "up";
stop();
Symbol 358 MovieClip Frame 3
_parent.faceDir = "right";
stop();
Symbol 358 MovieClip Frame 4
_parent.faceDir = "left";
stop();
Symbol 358 MovieClip Frame 20
stop();
_parent.faceDir = "down";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 358 MovieClip Frame 36
stop();
_parent.faceDir = "right";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 358 MovieClip Frame 52
stop();
_parent.faceDir = "up";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 358 MovieClip Frame 68
stop();
_parent.faceDir = "left";
scripts.moveBaddy(_parent, _parent.jumpX, _parent.jumpY);
Symbol 358 MovieClip Frame 71
scripts.freezeStart = getTimer();
scripts.gameFrozen = true;
scripts.freezeStop = scripts.freezeStart + 5000;
Symbol 358 MovieClip Frame 99
stop();
scripts.garyFlag = false;
_parent.removeMovieClip();
Symbol 358 MovieClip Frame 103
scripts.freezeStart = getTimer();
scripts.gameFrozen = true;
scripts.freezeStop = scripts.freezeStart + 5000;
Symbol 358 MovieClip Frame 130
stop();
scripts.garyFlag = false;
_parent.removeMovieClip();
Symbol 358 MovieClip Frame 134
scripts.freezeStart = getTimer();
scripts.gameFrozen = true;
scripts.freezeStop = scripts.freezeStart + 5000;
Symbol 358 MovieClip Frame 162
stop();
scripts.garyFlag = false;
_parent.removeMovieClip();
Symbol 358 MovieClip Frame 166
scripts.freezeStart = getTimer();
scripts.gameFrozen = true;
scripts.freezeStop = scripts.freezeStart + 5000;
Symbol 358 MovieClip Frame 194
stop();
scripts.garyFlag = false;
_parent.removeMovieClip();
Symbol 358 MovieClip Frame 198
scripts.garyFlag = false;
Symbol 358 MovieClip Frame 215
_parent.removeMovieClip();
Symbol 357 MovieClip [baddy5] Frame 1
stop();
Symbol 420 Button
on (release) {
gotoAndPlay ("enemies");
}
Symbol 421 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 426 MovieClip Frame 1
stop();
Symbol 437 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 1
this.style = "color";
this.tcolor = 1;
stop();
Symbol 446 MovieClip Frame 2
this.style = "color";
this.tcolor = 2;
stop();
Symbol 446 MovieClip Frame 3
this.style = "color";
this.tcolor = 3;
stop();
Symbol 446 MovieClip Frame 10
this.style = "disc";
this.tcolor = 0;
stop();
Symbol 446 MovieClip Frame 11
this.style = "blank";
this.tcolor = 0;
stop();
Symbol 461 MovieClip Frame 1
this.style = "color";
this.tcolor = 1;
stop();
Symbol 461 MovieClip Frame 2
this.style = "color";
this.tcolor = 2;
stop();
Symbol 461 MovieClip Frame 3
this.style = "color";
this.tcolor = 3;
stop();
Symbol 461 MovieClip Frame 4
this.style = "disc";
this.tcolor = 0;
stop();
Symbol 461 MovieClip Frame 5
this.style = "blank";
this.tcolor = 0;
stop();
Symbol 464 MovieClip Frame 1
this.style = "color";
this.tcolor = 1;
stop();
Symbol 464 MovieClip Frame 2
this.style = "color";
this.tcolor = 2;
stop();
Symbol 464 MovieClip Frame 3
this.style = "color";
this.tcolor = 3;
stop();
Symbol 464 MovieClip Frame 4
this.style = "disc";
this.tcolor = 0;
stop();
Symbol 464 MovieClip Frame 5
this.style = "blank";
this.tcolor = 0;
stop();
Symbol 434 MovieClip Frame 1
stop();
Instance of Symbol 435 MovieClip "fallProxy2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
trace("fallProxie2 art zDepth = " + this.getDepth());
}
Instance of Symbol 437 MovieClip "pyramidMC" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
trace("Pyramid art zDepth = " + this.getDepth());
}
Instance of Symbol 446 MovieClip "t_0_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 1;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_1_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 0;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_1_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_0_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 2;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_2_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 0;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_1_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_2_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_0_3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 3;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_3_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 3;
this.y = 0;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_1_3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_2_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_3_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 3;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_0_4" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 4;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_4_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 4;
this.y = 0;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_1_4" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 4;
}
Instance of Symbol 446 MovieClip "t_2_3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_3_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 3;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_4_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 4;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_0_5" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 5;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_5_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 5;
this.y = 0;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_1_5" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 5;
}
Instance of Symbol 446 MovieClip "t_2_4" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 4;
}
Instance of Symbol 446 MovieClip "t_3_3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 3;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_4_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 4;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_5_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 5;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_0_6" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 6;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_6_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 6;
this.y = 0;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_6_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 6;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_5_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 5;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_4_3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 4;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_3_4" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 3;
this.y = 4;
}
Instance of Symbol 446 MovieClip "t_2_5" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 5;
}
Instance of Symbol 446 MovieClip "t_1_6" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 6;
}
Instance of Symbol 446 MovieClip "t_1_7" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 7;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_7_1" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 7;
this.y = 1;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_6_2" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 6;
this.y = 2;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_5_3" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 5;
this.y = 3;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_2_6" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 2;
this.y = 6;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_3_5" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 3;
this.y = 5;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_4_4" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 4;
this.y = 4;
this.gotoAndStop("blank");
}
Instance of Symbol 446 MovieClip "t_0_0" in Symbol 434 MovieClip Frame 1
onClipEvent (load) {
this.x = 0;
this.y = 0;
this.gotoAndStop("blank");
}
Symbol 434 MovieClip Frame 2
stop();
Instance of Symbol 461 MovieClip "t_1_1" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Instance of Symbol 461 MovieClip "t_1_2" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 2;
}
Instance of Symbol 461 MovieClip "t_2_1" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 2;
this.y = 1;
}
Instance of Symbol 461 MovieClip "t_1_3" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 3;
}
Instance of Symbol 461 MovieClip "t_2_2" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 2;
this.y = 2;
}
Instance of Symbol 461 MovieClip "t_3_1" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 3;
this.y = 1;
}
Instance of Symbol 461 MovieClip "t_1_4" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 4;
}
Instance of Symbol 461 MovieClip "t_2_3" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 2;
this.y = 3;
}
Instance of Symbol 461 MovieClip "t_3_2" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 3;
this.y = 2;
}
Instance of Symbol 461 MovieClip "t_4_1" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 4;
this.y = 1;
}
Instance of Symbol 461 MovieClip "t_1_5" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 5;
}
Instance of Symbol 461 MovieClip "t_2_4" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 2;
this.y = 4;
}
Instance of Symbol 461 MovieClip "t_3_3" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 3;
this.y = 3;
}
Instance of Symbol 461 MovieClip "t_4_2" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 4;
this.y = 2;
}
Instance of Symbol 461 MovieClip "t_5_1" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 5;
this.y = 1;
}
Instance of Symbol 461 MovieClip "t_6_1" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 6;
this.y = 1;
}
Instance of Symbol 461 MovieClip "t_5_2" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 5;
this.y = 2;
}
Instance of Symbol 461 MovieClip "t_4_3" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 4;
this.y = 3;
}
Instance of Symbol 461 MovieClip "t_3_4" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 3;
this.y = 4;
}
Instance of Symbol 461 MovieClip "t_2_5" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 2;
this.y = 5;
}
Instance of Symbol 461 MovieClip "t_1_6" in Symbol 434 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 6;
}
Symbol 434 MovieClip Frame 3
stop();
Instance of Symbol 464 MovieClip "t_1_1" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Instance of Symbol 464 MovieClip "t_1_2" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 2;
}
Instance of Symbol 464 MovieClip "t_2_1" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 2;
this.y = 1;
}
Instance of Symbol 464 MovieClip "t_1_3" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 3;
}
Instance of Symbol 464 MovieClip "t_2_2" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 2;
this.y = 2;
}
Instance of Symbol 464 MovieClip "t_3_1" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 3;
this.y = 1;
}
Instance of Symbol 464 MovieClip "t_1_4" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 4;
}
Instance of Symbol 464 MovieClip "t_2_3" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 2;
this.y = 3;
}
Instance of Symbol 464 MovieClip "t_3_2" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 3;
this.y = 2;
}
Instance of Symbol 464 MovieClip "t_4_1" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 4;
this.y = 1;
}
Instance of Symbol 464 MovieClip "t_1_5" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 5;
}
Instance of Symbol 464 MovieClip "t_2_4" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 2;
this.y = 4;
}
Instance of Symbol 464 MovieClip "t_3_3" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 3;
this.y = 3;
}
Instance of Symbol 464 MovieClip "t_4_2" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 4;
this.y = 2;
}
Instance of Symbol 464 MovieClip "t_5_1" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 5;
this.y = 1;
}
Instance of Symbol 464 MovieClip "t_6_1" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 6;
this.y = 1;
}
Instance of Symbol 464 MovieClip "t_5_2" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 5;
this.y = 2;
}
Instance of Symbol 464 MovieClip "t_4_3" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 4;
this.y = 3;
}
Instance of Symbol 464 MovieClip "t_3_4" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 3;
this.y = 4;
}
Instance of Symbol 464 MovieClip "t_2_5" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 2;
this.y = 5;
}
Instance of Symbol 464 MovieClip "t_1_6" in Symbol 434 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 6;
}
Instance of Symbol 446 MovieClip "t_1_1" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_1_2" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 1;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_2_1" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 2;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_1_3" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 1;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_2_2" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 2;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_3_1" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 3;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_1_4" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 1;
this.y = 4;
}
Instance of Symbol 446 MovieClip "t_2_3" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 2;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_3_2" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 3;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_4_1" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 4;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_1_5" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 1;
this.y = 5;
}
Instance of Symbol 446 MovieClip "t_2_4" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 2;
this.y = 4;
}
Instance of Symbol 446 MovieClip "t_3_3" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 3;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_4_2" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 4;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_5_1" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 5;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_6_1" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 6;
this.y = 1;
}
Instance of Symbol 446 MovieClip "t_5_2" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 5;
this.y = 2;
}
Instance of Symbol 446 MovieClip "t_4_3" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 4;
this.y = 3;
}
Instance of Symbol 446 MovieClip "t_3_4" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 3;
this.y = 4;
}
Instance of Symbol 446 MovieClip "t_2_5" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 2;
this.y = 5;
}
Instance of Symbol 446 MovieClip "t_1_6" in Symbol 434 MovieClip Frame 4
onClipEvent (load) {
this.x = 1;
this.y = 6;
}
Symbol 471 MovieClip Frame 1
stop();
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 446 MovieClip "art" in Symbol 487 MovieClip Frame 1
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Instance of Symbol 461 MovieClip "art" in Symbol 487 MovieClip Frame 2
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Instance of Symbol 464 MovieClip "art" in Symbol 487 MovieClip Frame 3
onClipEvent (load) {
this.x = 1;
this.y = 1;
}
Symbol 490 MovieClip Frame 1
this.stop();
Symbol 531 MovieClip Frame 1
this.stop();
Symbol 545 MovieClip Frame 1
this.stop();
Symbol 557 MovieClip Frame 1
this.stop();
Symbol 467 MovieClip Frame 1
stop();
Instance of Symbol 480 MovieClip "levelTag" in Symbol 467 MovieClip Frame 1
onClipEvent (load) {
function updateTag(levNum) {
if (levNum >= 100) {
newX = 469;
}
if ((levNum < 100) && (levNum >= 10)) {
newX = 489;
}
if (levNum < 10) {
newX = 509;
}
this._x = newX;
}
}
Instance of Symbol 483 MovieClip "livesTag" in Symbol 467 MovieClip Frame 1
onClipEvent (load) {
function updateTag(lifeNum) {
if (lifeNum >= 100) {
newX = 467;
}
if ((lifeNum < 100) && (lifeNum >= 10)) {
newX = 487;
}
if (lifeNum < 10) {
newX = 507;
}
this._x = newX;
}
}
Instance of Symbol 488 MovieClip "scoreMC" in Symbol 467 MovieClip Frame 1
onClipEvent (load) {
function updateScore(inScore) {
if (inScore >= 10000000) {
this._x = 280;
}
if (inScore < 10000000) {
this._x = 260;
}
if (inScore < 1000000) {
this._x = 236;
}
if (inScore < 100000) {
this._x = 215;
}
if (inScore < 10000) {
this._x = 196;
}
if (inScore < 1000) {
this._x = 172;
}
if (inScore < 100) {
this._x = 152;
}
if (inScore < 10) {
this._x = 133;
}
premainder = 0;
if (inScore < 10000000) {
this.tenmillions.gotoAndStop(1);
} else {
myDigit = Math.floor(inScore / 10000000);
this.tenmillions.gotoAndStop(myDigit + 2);
premainder = myDigit * 10000000;
}
if (inScore < 1000000) {
this.millions.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000000);
this.millions.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000000);
}
if (inScore < 100000) {
this.hundredthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100000);
this.hundredthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100000);
}
if (inScore < 10000) {
this.tenthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10000);
this.tenthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10000);
}
if (inScore < 1000) {
this.thousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000);
this.thousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000);
}
if (inScore < 100) {
this.hundreds.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100);
this.hundreds.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100);
}
if (inScore < 10) {
this.tens.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10);
this.tens.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10);
}
if (inScore < 0) {
this.ones.gotoAndStop(2);
} else {
myDigit = Math.floor(inScore - premainder);
this.ones.gotoAndStop(Number(myDigit + 2));
}
}
updateScore(scripts.totalScore);
}
Instance of Symbol 544 MovieClip "livesMC" in Symbol 467 MovieClip Frame 1
onClipEvent (load) {
function updateScore(inScore) {
if (inScore < 100) {
this._x = 575;
}
if (inScore < 10) {
this._x = 575;
}
premainder = 0;
if (inScore < 10000000) {
this.tenmillions.gotoAndStop(1);
} else {
myDigit = Math.floor(inScore / 10000000);
this.tenmillions.gotoAndStop(myDigit + 2);
premainder = myDigit * 10000000;
}
if (inScore < 1000000) {
this.millions.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000000);
this.millions.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000000);
}
if (inScore < 100000) {
this.hundredthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100000);
this.hundredthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100000);
}
if (inScore < 10000) {
this.tenthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10000);
this.tenthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10000);
}
if (inScore < 1000) {
this.thousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000);
this.thousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000);
}
if (inScore < 100) {
this.hundreds.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100);
this.hundreds.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100);
}
if (inScore < 10) {
this.tens.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10);
this.tens.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10);
}
if (inScore < 0) {
this.ones.gotoAndStop(2);
} else {
myDigit = Math.floor(inScore - premainder);
this.ones.gotoAndStop(Number(myDigit + 2));
}
}
updateScore(3);
}
Instance of Symbol 556 MovieClip "levelMC" in Symbol 467 MovieClip Frame 1
onClipEvent (load) {
function updateScore(inScore) {
if (inScore < 1000) {
}
if (inScore < 100) {
}
if (inScore < 10) {
}
premainder = 0;
if (inScore < 10000000) {
this.tenmillions.gotoAndStop(1);
} else {
myDigit = Math.floor(inScore / 10000000);
this.tenmillions.gotoAndStop(myDigit + 2);
premainder = myDigit * 10000000;
}
if (inScore < 1000000) {
this.millions.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000000);
this.millions.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000000);
}
if (inScore < 100000) {
this.hundredthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100000);
this.hundredthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100000);
}
if (inScore < 10000) {
this.tenthousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10000);
this.tenthousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10000);
}
if (inScore < 1000) {
this.thousands.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 1000);
this.thousands.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 1000);
}
if (inScore < 100) {
this.hundreds.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 100);
this.hundreds.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 100);
}
if (inScore < 10) {
this.tens.gotoAndStop(1);
} else {
myDigit = Math.floor((inScore - premainder) / 10);
this.tens.gotoAndStop(myDigit + 2);
premainder = premainder + (myDigit * 10);
}
if (inScore < 0) {
this.ones.gotoAndStop(2);
} else {
myDigit = Math.floor(inScore - premainder);
this.ones.gotoAndStop(Number(myDigit + 2));
}
}
updateScore(1);
}
Symbol 575 Button
on (release) {
scripts.toggleVolume();
}
Symbol 578 Button
on (release) {
scripts.toggleVolume();
}
Symbol 574 MovieClip Frame 1
stop();
Symbol 574 MovieClip Frame 2
trace("sound ON frame");
this.stop();
Symbol 574 MovieClip Frame 9
this.stop();
Symbol 574 MovieClip Frame 10
trace("sound OFF frame");
this.stop();
Symbol 574 MovieClip Frame 18
this.stop();
Symbol 582 Button
on (release) {
scripts.toggleQuit();
}
Symbol 587 Button
on (release) {
scripts.toggleHelp();
}
Symbol 598 Button
on (release) {
this.gotoAndPlay("goAway");
}
Symbol 599 Button
on (release) {
scripts.doQuit();
}
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 17
stop();
Symbol 588 MovieClip Frame 58
scripts.toggleQuit();
Symbol 588 MovieClip Frame 60
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 2
trace("sound ON frame");
this.stop();
Symbol 602 MovieClip Frame 9
this.stop();
Symbol 602 MovieClip Frame 10
trace("sound OFF frame");
this.stop();
Symbol 602 MovieClip Frame 18
this.stop();
Symbol 603 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 604 Button
on (release) {
gotoAndPlay ("enemies");
}
Symbol 605 Button
on (release) {
scripts.toggleHelp();
}
Symbol 581 MovieClip Frame 1
if (app.soundVol != 100) {
soundMC.gotoAndStop("soundOFF");
} else {
soundMC.gotoAndStop("soundON");
}
stop();
Symbol 581 MovieClip Frame 4
stop();
Symbol 581 MovieClip Frame 5
stop();
Symbol 581 MovieClip Frame 10
if (app.soundVol != 100) {
soundMC.gotoAndStop("soundOFF");
} else {
soundMC.gotoAndStop("soundON");
}
Symbol 581 MovieClip Frame 17
stop();
Symbol 581 MovieClip Frame 28
stop();
Symbol 581 MovieClip Frame 40
stop();
Symbol 581 MovieClip Frame 41
if (app.soundVol != 100) {
soundMC.gotoAndStop("soundOFF");
} else {
soundMC.gotoAndStop("soundON");
}
stop();
Symbol 581 MovieClip Frame 50
stop();
Symbol 613 MovieClip Frame 1
this.stop();
Symbol 634 MovieClip Frame 1
this.stop();
Symbol 641 Button
on (release) {
gotoAndPlay ("replay");
}
Symbol 644 Button
on (release) {
gotoAndPlay ("getScores");
}
Symbol 646 Button
on (release) {
_parent.gotoAndPlay("subScores");
}
Symbol 645 MovieClip Frame 1
stop();
Symbol 645 MovieClip Frame 5
stop();
Symbol 653 Button
on (release) {
gotoAndPlay ("replay");
}
Symbol 654 Button
on (release) {
gotoAndPlay ("replay");
}
Symbol 655 Button
on (release) {
gotoAndPlay ("replay");
}
Symbol 662 Button
on (release) {
gotoAndPlay ("replay");
}
Symbol 663 Button
on (release) {
gotoAndPlay ("menu");
}
Symbol 666 MovieClip Frame 1
stop();
Symbol 666 MovieClip Frame 2
stop();
Symbol 664 MovieClip Frame 1
contentMain.setMask(maskedView);
Symbol 664 MovieClip Frame 5
scrolling = function () {
var _loc5 = scrollTrack._height;
var _loc2 = (contentMain._height + 20);
var _loc4 = scrollFace._height;
var _loc3 = maskedView._height;
var initPosition = ((scrollFace._y = scrollTrack._y));
var initContentPos = (contentMain._y + 5);
var finalContentPos = ((_loc3 - _loc2) + initContentPos);
var left = scrollTrack._x;
var top = scrollTrack._y;
var right = scrollTrack._x;
var bottom = ((scrollTrack._height - _loc4) + scrollTrack._y);
var dy = 0;
var speed = 10;
var moveVal = ((_loc2 - _loc3) / (_loc5 - _loc4));
scrollFace.onPress = function () {
var _loc2 = this._y;
startDrag (this, false, left, top, right, bottom);
this.onMouseMove = function () {
dy = Math.abs(initPosition - this._y);
contentMain._y = Math.round(((dy * -1) * moveVal) + initContentPos);
};
};
scrollFace.onMouseUp = function () {
stopDrag();
delete this.onMouseMove;
};
btnUp.onPress = function () {
this.onEnterFrame = function () {
if ((contentMain._y + speed) >= maskedView._y) {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
} else {
if (scrollFace._y > top) {
scrollFace._y = scrollFace._y - (speed / moveVal);
} else {
scrollFace._y = top;
}
contentMain._y = contentMain._y + speed;
}
};
};
btnUp.onDragOut = function () {
delete this.onEnterFrame;
};
btnUp.onRollOut = function () {
delete this.onEnterFrame;
};
btnUp.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onPress = function () {
this.onEnterFrame = function () {
if ((contentMain._y - speed) <= finalContentPos) {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
} else {
if (scrollFace._y < bottom) {
scrollFace._y = scrollFace._y + (speed / moveVal);
} else {
scrollFace._y = bottom;
}
contentMain._y = contentMain._y - speed;
}
};
};
btnDown.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onDragOut = function () {
delete this.onEnterFrame;
};
btnDown.onRollOut = function () {
delete this.onEnterFrame;
};
if (_loc2 >= _loc3) {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
} else {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
}
};
scrolling();
stop();