Frame 1
globalVolume = new Sound();
_global.app = this;
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);
}
Frame 2
loaded = Math.round(_root.getBytesLoaded());
total = Math.round(_root.getBytesTotal());
percent = (loaded / total) * 100;
if (loaded == total) {
gotoAndPlay ("loadDone");
} else {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 6
globalVolume = new Sound();
stop();
Frame 15
_global.app = this;
app.soundVol = 100;
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_panic";
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("stripping return");
app.myscreenName = app.rawName.substr(0, index);
} else {
trace("no return to strip....");
app.myscreenName = app.rawName;
}
if (app.myscreenName == "null") {
trace("null returned");
} else if (app.myscreenName == "undefined") {
trace("undefined returned");
app.myscreenName = "null";
} else if (app.myscreenName == "") {
trace("blank val returned");
app.myscreenName = "null";
} else if (app.myscreenName == null) {
trace("actual null returned");
}
};
Instance of Symbol 54 MovieClip "versionMC" in Frame 15
onClipEvent (load) {
this._visible = false;
scripts.showVersion = false;
}
Frame 16
menuloopSound = new Sound();
menuloopSound.attachSound("menuloop");
menuLoopPlaying = false;
Frame 21
stop();
scripts.gameOverMusic.stop();
if (menuLoopPlaying == false) {
menuloopSound.start(0, 400);
menuLoopPlaying = true;
}
Instance of Symbol 65 MovieClip "scriptsMC" in Frame 22
onClipEvent (load) {
function toggleVolume() {
if (app.soundVol == 100) {
app.soundVol = 0;
_parent.globalVolume.setVolume(0);
app.helpMC.soundMC.gotoAndStop("soundOFF");
} else {
app.soundVol = 100;
_parent.globalVolume.setVolume(100);
app.helpMC.soundMC.gotoAndStop("soundON");
}
}
function randomIn(lowerbound, upperbound) {
return(Math.round(((upperbound - lowerbound) * Math.random()) + lowerbound));
}
function radToDegrees(radsIn) {
degrees = (radsIn * 180) / Math.PI;
return(degrees);
}
function degreesToRads(degreesIn) {
radians = (degreesIn * Math.PI) / 180;
return(radians);
}
function addCommas(inNumber) {
inNumber = "" + inNumber;
if (inNumber.length > 3) {
var _local1 = inNumber.length % 3;
var _local3 = ((_local1 > 0) ? (inNumber.substring(0, _local1)) : "");
i = 0;
while (i < Math.floor(inNumber.length / 3)) {
if ((_local1 == 0) && (i == 0)) {
_local3 = _local3 + inNumber.substring(_local1 + (3 * i), (_local1 + (3 * i)) + 3);
} else {
_local3 = _local3 + ("," + inNumber.substring(_local1 + (3 * i), (_local1 + (3 * i)) + 3));
}
i++;
}
return(_local3);
}
return(inNumber);
}
function initGame() {
_global.messaging = _parent.messagingMC;
_global.HUD = _parent.hudMC;
_global.scene = _parent.levelMC;
levelHolder = _parent.levelMC;
_global.tileW = 30;
_global.tileH = 30;
enemySpeed = 2;
enemyLogicCount = 2;
scorePatty = 25;
scoreBurger = 100;
totalScore = 0;
levelScore = 0;
lives = 3;
mustard = 3;
mustCount = 0;
mustardEnabled = false;
levelNum = 0;
showHelpFlag = true;
updateHUD();
clearEnemies = true;
gameOn = false;
editGrid = false;
editBurgers = false;
map = [];
burgerMap = [];
tileW = 30;
helpOn = false;
quitOn = false;
gameOver = false;
}
function flasher() {
_parent.whiteFlashMC.gotoAndPlay("flasher");
}
function nextLevel() {
levelNum++;
if (levelNum > 9) {
levelMult = Math.floor(levelNum / 9);
if (levelMult == 1) {
enemySpeed = 2.5;
}
if (levelMult == 2) {
enemySpeed = 3;
}
if (levelMult == 3) {
enemySpeed = 3.75;
}
levelRemainder = levelNum % 9;
gotoLevel = levelRemainder;
} else {
gotoLevel = levelNum;
}
burgersCollected = 0;
pattyArray = [];
scene.gotoAndPlay(gotoLevel + 1);
}
function initLevel() {
trace("init level routine");
scripts.updateHUD();
clearEnemies = true;
burgersCollected = 0;
pattyArray = [];
mustardEnabled = false;
buildMap();
levelBonusCount = 0;
scripts.levelDone = false;
initChar();
}
function toggleQuit() {
if (quitOn) {
quitOn = false;
_parent.helpMC.gotoAndPlay("hide");
gamePaused = false;
if (_parent.messagingMC.moving) {
_parent.messagingMC.play();
} else {
levelMusicFile.stop();
levelMusicFile.start(0, 200);
levelMusicOn = true;
}
} else {
quitOn = true;
gamePaused = true;
levelMusicFile.stop();
levelMusicOn = false;
_parent.messagingMC.stop();
_parent.helpMC.gotoAndPlay("showQuit");
}
}
function doQuit() {
_parent.gotoAndPlay("gameOver");
}
function toggleHelp() {
if (helpOn) {
_parent.soundMC._y = _parent.soundMC.startY;
helpOn = false;
_parent.helpMC.gotoAndPlay("hide");
if (quitOn == false) {
gamePaused = false;
if (_parent.messagingMC.moving) {
_parent.messagingMC.play();
} else {
levelMusicFile.stop();
levelMusicFile.start(0, 200);
levelMusicOn = true;
}
}
} else {
helpOn = true;
_parent.soundMC._y = 800;
gamePaused = true;
levelMusicFile.stop();
levelMusicOn = false;
_parent.messagingMC.stop();
_parent.helpMC.gotoAndPlay("show");
}
}
function charDie(mydir) {
char.active = false;
mustardEnabled = false;
lives--;
if (lives < 1) {
scripts.loseAllLivesSound.start(0, 1);
levelDone = true;
}
gameOn = false;
updateHUD();
if (mydir == "left") {
scene.char.art.gotoAndStop("dieL");
} else {
scene.char.art.gotoAndStop("dieR");
}
scripts.dieSound.start(0, 1);
}
function initChar() {
if (lives > 0) {
e = 1;
while (e < 10) {
eval ("scene.baddy_" + e).removeMovieClip();
e++;
}
badCount = 0;
clearEnemies = false;
scene.char.art.gotoAndStop(1);
charX = charStartPos[0];
charY = charStartPos[1];
charMC = scene.attachMovie("char", "char", 1000);
charMC.myDir = "left";
_global.char = charMC;
char.active = true;
charMC._x = (charStartPos[0] * tileW) + (tileW / 2);
charMC._y = (charStartPos[1] * tileW) + (tileW / 2);
powerUpDisplay = false;
scene.powerUp_MC.removeMovieClip();
sp = 1;
while (sp <= spawnNum) {
if (sp == 1) {
eType = 1;
enemySpawn(spawn1[0], spawn1[1], eType);
}
if (sp == 2) {
eType = 2;
enemySpawn(spawn2[0], spawn2[1], eType);
}
if (sp == 3) {
eType = 3;
enemySpawn(spawn3[0], spawn3[1], eType);
}
if (sp == 4) {
eType = 3;
enemySpawn(spawn4[0], spawn4[1], eType);
}
if (sp == 5) {
eType = 2;
enemySpawn(spawn5[0], spawn5[1], eType);
}
if (sp == 6) {
eType = 2;
enemySpawn(spawn6[0], spawn6[1], eType);
}
if (sp == 7) {
eType = 3;
enemySpawn(spawn7[0], spawn7[1], eType);
}
if (sp == 8) {
eType = 2;
enemySpawn(spawn8[0], spawn8[1], eType);
}
sp++;
}
mustardEnabled = false;
attacking = false;
messaging.gotoAndPlay("ready_go");
} else {
_parent.gotoAndPlay("gameOver");
}
}
function newPowerUp(pType) {
if (helpOn == false) {
powerUpDisplay = true;
scene.powerUp_MC.removeMovieClip();
powX = bonusPos[0];
powY = bonusPos[1];
powerMC = scene.attachMovie("powerUp_MC", "powerUp_MC", 4000);
powerMC.pType = pType;
scene.powerUp_MC._x = powX * tileW;
scene.powerUp_MC._y = powY * tileW;
scene.powerUp_MC.gotoAndPlay(pType);
pTimer = getTimer();
}
}
function removePowerUp(rType) {
trace("removing powerup, removeType:" + rType);
pType = scene.powerUp_MC.pType;
scene.powerUp_MC.removeMovieClip();
if (rType == "hit") {
trace("collected powerUP! of type:" + pType);
if (pType == "Mustard") {
powerUpSound.start(0, 1);
scripts.mustard++;
scripts.updateHUD();
}
if (pType == "Spatula") {
spatulaSound.start(0, 1);
b = 1;
while (b <= badCount) {
badMC = eval ("scene.baddy_" + b);
badMC.active = false;
badMC.art.gotoAndStop("squish");
b++;
}
}
}
powerUpDisplay = false;
}
function checkPowerUp() {
if (scene.powerUp_MC.hitMask.hitTest(scene.char.hitMask)) {
removePowerUp("hit");
}
}
function respawn(badMC) {
spawnLoc = randomIn(1, 4);
if (spawnLoc == 1) {
spawnX = spawn1[0];
spawnY = spawn1[1];
}
if (spawnLoc == 2) {
spawnX = spawn2[0];
spawnY = spawn2[1];
}
if (spawnLoc == 3) {
spawnX = spawn3[0];
spawnY = spawn3[1];
}
if (spawnLoc == 4) {
spawnX = spawn4[0];
spawnY = spawn4[1];
}
startPos = [spawnX, spawnY];
badMC.deltaX = 0;
badMC.deltaY = 0;
badMC.active = true;
badMC.frozen = false;
badMC.initTile = true;
badMC.myDir = "down";
badMC._x = startPos[0] * tileW;
badMC._y = startPos[1] * tileW;
}
function buildMap() {
d = 5;
mapWidth = map[0].length;
mapHeight = map.length;
i = 0;
while (i < map[0].length) {
j = 0;
while (j < map.length) {
tile = scene.attachMovie("tile", (("t_" + i) + "_") + j, ++d);
tile._x = i * tileW;
tile._y = j * tileH;
tile.gotoAndStop(map[j][i] + 1);
tile.x = i;
tile.y = j;
j++;
}
i++;
}
}
function showHelp() {
helpOpen = true;
_parent.helpMC.gotoAndPlay("open");
}
function closeHelp() {
helpOpen = false;
_parent.helpMC.gotoAndPlay("close");
}
function addScore(scoreVal) {
oldScore = totalScore;
totalScore = totalScore + scoreVal;
updateHUD();
if (gameOn) {
if (Math.floor(totalScore / 500) > Math.floor(oldScore / 500)) {
levelBonusCount++;
bonusMod = levelBonusCount % 2;
if ((levelBonusCount % 2) == 0) {
newPowerUp("Spatula");
} else {
newPowerUp("Mustard");
}
}
}
if ((oldScore < 3000) && (totalScore >= 3000)) {
if (lives > 0) {
trace("newLife awarded");
newLifeSound.start(0, 1);
lives++;
updateHUD();
}
}
if (totalScore > 5000) {
lifeScore = totalScore - 3000;
oldlifeScore = oldScore - 3000;
if (Math.floor(lifeScore / 5000) > Math.floor(oldlifeScore / 5000)) {
trace("newLife awarded");
extraLifeSound.start(0, 1);
lives++;
updateHUD();
}
}
}
function updateHUD() {
HUD.scoreDisplay = addCommas(totalScore);
HUD.levelDisplay = levelNum;
HUD.livesDisplay = lives;
HUD.mustard = mustard;
}
function initPatty(pattyMC) {
resetPatty(pattyMC);
pattyMC.falling = false;
pattyMC.weight = 0;
pattyMC.burgerItemChain = 1;
pattyMC.trapCount = 0;
pattyArray.push(pattyMC);
trayMC = "scene.tray_" + pattyMC.tray;
restingTileY = Math.floor(pattyMC._y / tileH);
eval (trayMC).myItem = pattyMC;
}
function resetPatty(pattyMC) {
pattyMC.falling = false;
pattyMC.gotoAndStop(1);
pattyMC.p1.gotoAndStop("up");
pattyMC.p1.up = true;
pattyMC.p2.gotoAndStop("up");
pattyMC.p2.up = true;
pattyMC.p3.gotoAndStop("up");
pattyMC.p3.up = true;
pattyMC.burgerItemChain = 1;
pattyMC.trapCount = 0;
}
function dropPatty(pattyMC) {
pattyMC.trapCount = 0;
pattyMC.falling = true;
pattyMC.gotoAndStop("fall");
trayMC = eval ("scene.tray_" + pattyMC.tray);
if (trayMC.myItem == pattyMC) {
trayMC.myItem = null;
}
}
function pattyFall(pattyMC) {
if (levelDone == false) {
pattyMC.gotoAndStop("fall");
newY = pattyMC._y + 5;
newTray = eval ("scene.tray_" + (Number(pattyMC.tray) + 1));
itemCount = newTray.collected;
if (newTray.lastTray) {
newTrayY = newTray._y - (itemCount * 8);
} else {
newTrayY = newTray._y;
}
if (newY >= newTrayY) {
pattyMC.falling = false;
newY = newTrayY;
resetPatty(pattyMC);
pattyMC.tray = pattyMC.tray + 1;
pattySound.start(0, 1);
if (newTray.lastTray) {
collectTray(newTray, pattyMC);
} else {
hitTray(newTray, pattyMC);
}
}
pattyMC._y = newY;
}
}
function hitTray(trayMC, burgerItem) {
oldItem = eval (trayMC.myItem);
trayMC.myItem = burgerItem;
restingTileY = Math.floor(pattyMC._y / tileH);
addScore(scorePatty);
if (burgerItem.weight > 0) {
burgerItem.weight--;
burgerItemChain++;
oldItem.weight = burgerItem.weight;
oldItem._y = oldItem._y + 15;
dropPatty(oldItem);
burgerItem.trapCount = 0;
dropPatty(burgerItem);
} else {
burgerItem.trapCount = 0;
dropPatty(oldItem);
}
}
function collectTray(trayMC, burgerItem) {
pattyMC.trapCount = 0;
trayMC.collected = trayMC.collected + 1;
if (trayMC.collected == pattyNum) {
addScore(scoreBurger);
burgerCompleteSound.start(0, 1);
burgersCollected++;
if (burgersCollected == burgerNum) {
scripts.gameOn = false;
scripts.levelDone = true;
char.art.gotoAndStop("win");
_parent.messagingMC.gotoAndPlay("levelDone");
scripts.clearEnemies = true;
}
} else {
addScore(scorePatty);
}
}
function finishMustard() {
attacking = false;
}
function fireMustard() {
if (((mustard > 0) && (mustardEnabled == true)) && (gameOn)) {
mustardEnabled = false;
if (scene.char.myDir == "right") {
mustardEnabled = false;
attacking = true;
mustard = mustard - 1;
updateHUD();
scene.char.art.gotoAndStop("attackR");
mustardSquirtSound.start(0, 1);
mustCount++;
mustardMC = scene.attachMovie("mustardMC", "mustardMC_" + mustCount, 2000 + mustCount);
mustardMC._x = scene.char._x + (2 * tileW);
mustardMC._y = scene.char._y;
}
if (scene.char.myDir == "left") {
mustardEnabled = false;
attacking = true;
mustard = mustard - 1;
updateHUD();
scene.char.art.gotoAndStop("attackL");
mustardSquirtSound.start(0, 1);
mustCount++;
mustardMC = scene.attachMovie("mustardMC", "mustardMC_" + mustCount, 2000 + mustCount);
mustardMC._x = scene.char._x - (2 * tileW);
mustardMC._y = scene.char._y;
}
if (scene.char.myDir == "up") {
mustardEnabled = false;
attacking = true;
mustard = mustard - 1;
updateHUD();
mustardSquirtSound.start(0, 1);
mustCount++;
mustardMC = scene.attachMovie("mustardMC", "mustardMC_" + mustCount, 2000 + mustCount);
mustardMC._x = scene.char._x - (1 * tileW);
mustardMC._y = scene.char._y - (2 * tileW);
scripts.finishMustard();
}
if (scene.char.myDir == "down") {
mustardEnabled = false;
attacking = true;
mustard = mustard - 1;
updateHUD();
mustardSquirtSound.start(0, 1);
mustCount++;
mustardMC = scene.attachMovie("mustardMC", "mustardMC_" + mustCount, 2000 + mustCount);
mustardMC._x = scene.char._x - (1 * tileW);
mustardMC._y = scene.char._y + (2 * tileW);
scripts.finishMustard();
}
}
}
function enemySpawn(sX, sY, eType) {
startPos = [sX, sY];
badCount++;
if (eType == 1) {
badMC = scene.attachMovie("baddy1", "baddy_" + badCount, 1000 + badCount);
}
if (eType == 2) {
badMC = scene.attachMovie("baddy2", "baddy_" + badCount, 1000 + badCount);
}
if (eType == 3) {
badMC = scene.attachMovie("baddy3", "baddy_" + badCount, 1000 + badCount);
}
badMC.deltaX = 0;
badMC.deltaY = 0;
badMC.myNumber = badCount;
badMC.active = true;
badMC.frozen = false;
badMC.dead = false;
badMC.falling = false;
badMC.fallCheck = false;
badMC.eType = eType;
badMC.initTile = true;
badMC.myDir = "down";
badMC.myID = badCount;
badMC._x = startPos[0] * tileW;
badMC._y = startPos[1] * tileW;
badMC.initX = startPos[0];
badMC.initY = startPos[1];
badMC.onEnterFrame = function () {
if (clearEnemies) {
scripts.badCount--;
this.removeMovieClip();
}
if (((this.active && (this.falling == false)) && (this.frozen == false)) && (gameOn)) {
scripts.enemyGetPos(this);
}
scripts.enemyCollision(this);
if (this.falling) {
scripts.enemyFall(this);
}
};
}
function enemyRemove(clipMC) {
badCount--;
this.removeMovieClip();
}
function enemyCollision(clipMC) {
if ((clipMC.active && (char.active)) && (clipMC.frozen == false)) {
if (clipMC.hitMask.hitTest(scene.char.hitMask)) {
if (clipMC._x < scene.char._x) {
charDie("left");
} else {
charDie("right");
}
}
}
if ((clipMC.falling == false) && (clipMC.active)) {
i = 0;
while (i < pattyArray.length) {
pattyMC = pattyArray[i];
if (pattyMC.falling) {
trayMC = eval ("scene.tray_" + pattyMC.tray);
if (clipMC.footMask.hitTest(trayMC) && (clipMC.footMask.hitTest(pattyMC))) {
pattyMC.weight++;
if (clipMC.active && (clipMC.falling == false)) {
pattyMC.trapCount++;
scripts.trapBonus(pattyMC);
}
clipMC.active = false;
clipMC.falling = true;
clipMC.currentY;
clipMC.currentTray = trayMC;
fallTray = eval ("scene.tray_" + (Number(pattyMC.tray) + 1));
clipMC.fallTray = fallTray;
clipMC.fallCheck = false;
clipMC.art.gotoAndStop("fall");
} else if (clipMC.footMask.hitTest(pattyMC)) {
if (clipMC.active) {
pattyMC.trapCount++;
scripts.trapBonus(pattyMC);
}
clipMC.active = false;
clipMC.art.gotoAndStop("squish");
}
}
i++;
}
}
if (clipMC.active && (clipMC.frozen == false)) {
i = 0;
while (i < 50) {
mustMC = eval ("scene.mustardMC_" + i);
if (clipMC.hitMask.hitTest(mustMC)) {
clipMC.frozen = true;
clipMC.art.gotoAndStop("freeze");
}
i++;
}
}
}
function trapBonus(pattyMC) {
trace((pattyMC + ":") + pattyMC.trapCount);
if (pattyMC.trapCount == 2) {
trace(pattyMC + ":adding 300 trap count");
addScore(100);
}
if (pattyMC.trapCount == 3) {
trace(pattyMC + ":adding 500 trap count");
addScore(100);
}
if (pattyMC.trapCount == 4) {
trace(pattyMC + ":adding 1000 trap count");
addScore(400);
}
if (pattyMC.trapCount == 5) {
trace(pattyMC + ":adding 10000 trap count");
addScore(8900);
}
if (pattyMC.trapCount == 6) {
trace(pattyMC + ":adding 20000 trap count");
addScore(9900);
}
}
function enemyFall(clipMC) {
if (gameOn && (gamePaused == false)) {
newY = clipMC._y + 5;
clipMC._y = newY;
if (clipMC.footMask.hitTest(clipMC.fallTray)) {
clipMC.falling = false;
clipMC._y = clipMC._y + 15;
clipMC.art.gotoAndStop("fallDie");
}
}
}
function enemyGetPos(clipMC) {
posX = Math.floor(clipMC._x / tileW);
posY = Math.floor(clipMC._y / tileH);
clipMC.tileX = posX;
clipMC.tileY = posY;
myDir = clipMC.myDir;
currentDir = myDir;
up = false;
down = false;
left = false;
right = false;
var _local2 = Array();
curTileVal = map[posY][posX];
rightTileVal = map[posY][posX + 1];
leftTileVal = map[posY][posX - 1];
upTileVal = map[posY - 1][posX];
downTileVal = map[posY + 1][posX];
clipMC.curTileVal = curTileVal;
if ((curTileVal >= 5) && (upTileVal > 0)) {
up = true;
_local2.push("up");
}
if ((curTileVal >= 5) && (downTileVal > 0)) {
down = true;
_local2.push("down");
}
if (rightTileVal > 0) {
right = true;
_local2.push("right");
}
if (leftTileVal > 0) {
left = true;
_local2.push("left");
}
clipMC.right = right;
clipMC.left = left;
clipMC.up = up;
clipMC.down = down;
moveAble = false;
if ((myDir == "right") && (right)) {
moveAble = true;
}
if ((myDir == "left") && (left)) {
moveAble = true;
}
if ((myDir == "up") && (up)) {
moveAble = true;
}
if ((myDir == "down") && (down)) {
moveAble = true;
}
tileX = posX * tileW;
tileY = posY * tileH;
if ((clipMC._x == tileX) && (clipMC._y == tileY)) {
isCentered = true;
} else {
isCentered = false;
}
if (isCentered) {
if (((up || (down)) && (left || (right))) || (moveAble == false)) {
if (clipMC.eType == 1) {
if (posY == charY) {
if (((currentDir == "left") || (currentDir == "right")) && (up)) {
clipMC.myDir = "up";
} else {
if (posX > charX) {
if (currentDir == "left") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
}
}
}
if (posX <= charX) {
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
}
}
} else if (posY < charY) {
if (((currentDir == "left") || (currentDir == "right")) && (down)) {
clipMC.myDir = "down";
} else {
if (posX > charX) {
if (currentDir == "left") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
}
}
}
if (posX <= charX) {
if (currentDir == "left") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
}
}
} else if (posY > charY) {
if (((currentDir == "left") || (currentDir == "right")) && (up)) {
clipMC.myDir = "up";
} else {
if (posX > charX) {
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
}
if (posX <= charX) {
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
}
}
}
}
if (clipMC.eType == 2) {
if (posY == charY) {
if (((currentDir == "left") || (currentDir == "right")) && (down)) {
clipMC.myDir = "down";
} else {
if (posX > charX) {
if (currentDir == "left") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
}
}
}
if (posX <= charX) {
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
}
}
} else if (posY < charY) {
if (((currentDir == "left") || (currentDir == "right")) && (down)) {
clipMC.myDir = "down";
} else {
if (posX > charX) {
if (currentDir == "left") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
}
}
}
if (posX <= charX) {
if (currentDir == "left") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
}
}
} else if (posY > charY) {
if (((currentDir == "left") || (currentDir == "right")) && (up)) {
clipMC.myDir = "up";
} else {
if (posX > charX) {
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
}
if (posX <= charX) {
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
}
}
if (currentDir == "up") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
}
}
}
}
if (clipMC.eType == 3) {
if (posX == charX) {
if (posY > charY) {
if (currentDir == "up") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
}
}
}
if (posY <= charY) {
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
}
}
if (posY == charY) {
if (posX > charX) {
if (currentDir == "up") {
if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
}
}
}
if (posX <= charX) {
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
}
}
if ((posX != charX) && (posY != charY)) {
hDif = Math.abs(posX - charX);
vDif = Math.abs(posY - charY);
if (hDif >= vDif) {
if (posX > charX) {
if (currentDir == "up") {
if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
}
}
}
if (posX <= charX) {
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
}
} else {
if (posY > charY) {
if (currentDir == "up") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
}
}
}
if (posY <= charY) {
if (currentDir == "up") {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (currentDir == "down") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
}
}
if (currentDir == "left") {
if (down) {
clipMC.myDir = "down";
} else if (left) {
clipMC.myDir = "left";
} else if (up) {
clipMC.myDir = "up";
} else if (right) {
clipMC.myDir = "right";
}
}
if (currentDir == "right") {
if (down) {
clipMC.myDir = "down";
} else if (right) {
clipMC.myDir = "right";
} else if (up) {
clipMC.myDir = "up";
} else if (left) {
clipMC.myDir = "left";
}
}
}
}
}
}
}
}
myNum = clipMC.myNumber;
if (((gameOn && (gamePaused == false)) && (clipMC.active)) && (clipMC.frozen == false)) {
if (clipMC.myDir == "right") {
clipMC.art.gotoAndStop("right");
clipMC.swapDepths(1000 + myNum);
clipMC.deltaX = enemySpeed;
clipMC.deltaY = 0;
}
if (clipMC.myDir == "left") {
clipMC.art.gotoAndStop("left");
clipMC.swapDepths(1000 + myNum);
clipMC.deltaX = -enemySpeed;
clipMC.deltaY = 0;
}
if (clipMC.myDir == "down") {
clipMC.art.gotoAndStop("down");
clipMC.swapDepths(750 + myNum);
clipMC.deltaX = 0;
clipMC.deltaY = enemySpeed;
}
if (clipMC.myDir == "up") {
clipMC.art.gotoAndStop("up");
clipMC.swapDepths(750 + myNum);
clipMC.deltaX = 0;
clipMC.deltaY = -enemySpeed;
}
newX = clipMC._x + clipMC.deltaX;
newY = clipMC._y + clipMC.deltaY;
clipMC._x = newX;
clipMC._y = newY;
}
}
function enemyMove(clipMC) {
if (gameOn && (gamePaused == false)) {
if (clipMC.active && (clipMC.frozen == false)) {
posX = Math.floor(clipMC._x / tileW);
posY = Math.floor(clipMC._y / tileH);
clipMC.tileX = posX;
clipMC.tileY = posY;
myDir = clipMC.myDir;
newX = clipMC._x + clipMC.deltaX;
newY = clipMC._y + clipMC.deltaY;
newPosX = Math.floor(newX / tileW);
newPosY = Math.floor(newY / tileH);
moveAble = true;
myDir = clipMC.myDir;
if (clipMC.initTile == false) {
if (map[newPosY][newPosX] == 0) {
moveAble = false;
}
}
if (moveAble) {
clipMC._x = newX;
clipMC._y = newY;
} else {
enemyAI(clipMC);
trace("stuck");
}
}
}
}
function enemyAI(clipMC) {
up = false;
down = false;
left = false;
right = false;
posX = Math.floor(clipMC._x / tileW);
posY = Math.floor(clipMC._y / tileH);
tileX = posX * tileW;
tileY = posY * tileH;
clipMC.locNum = map[posY][posX];
if ((clipMC._x == tileX) && (clipMC._y == tileY)) {
if (map[posY - 1][posX] >= 5) {
up = true;
}
if (map[posY + 1][posX] >= 5) {
down = true;
}
if (map[posY][posX - 1] > 0) {
left = true;
}
if (map[posY][posX + 1] > 0) {
right = true;
}
clipMC.up = up;
clipMC.down = down;
clipMC.left = left;
clipMC.right = right;
invalid = false;
myDir = clipMC.myDir;
if ((myDir == "right") && (right == false)) {
invalid = true;
}
if ((myDir == "down") && (down == false)) {
invalid = true;
}
if ((myDir == "up") && (up == false)) {
invalid = true;
}
if ((myDir == "left") && (left == false)) {
invalid = true;
}
if ((((up || (down)) && (left || (right))) || (clipMC.initTile)) || (invalid == true)) {
if (invalid) {
trace(clipMC + ":invalid move");
}
clipMC.deltaX = 0;
clipMC.deltaY = 0;
hDif = Math.abs(posX - charX);
vDif = Math.abs(posY - charY);
if ((posX == clipMC.initX) && (posY == clipMC.initY)) {
} else {
clipMC.initTile = false;
}
if (clipMC.eType == 1) {
if ((clipMC.myDir == "down") || (clipMC.myDir == "up")) {
if (posX > charX) {
if (left) {
clipMC.myDir = "left";
} else if (right) {
clipMC.myDir = "right";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
if (posX <= charX) {
if (right) {
clipMC.myDir = "right";
} else if (left) {
clipMC.myDir = "left";
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
} else if (down) {
clipMC.myDir = "down";
} else if (up) {
clipMC.myDir = "up";
}
}
if (clipMC.eType == 2) {
if ((clipMC.myDir == "down") || (clipMC.myDir == "up")) {
if (posX > charX) {
if (left) {
clipMC.myDir = "left";
} else {
clipMC.myDir = "right";
}
}
if (posX <= charX) {
if (right) {
clipMC.myDir = "right";
} else {
clipMC.myDir = "left";
}
}
} else if (up) {
clipMC.myDir = "up";
} else if (down) {
clipMC.myDir = "down";
}
}
if (clipMC.eType == 3) {
if (posX == charX) {
if (posY > charY) {
if (up) {
clipMC.myDir = "up";
} else {
if (left) {
clipMC.myDir = "left";
}
if (right) {
clipMC.myDir = "right";
}
}
}
if (posY <= charY) {
if (down) {
clipMC.myDir = "down";
} else {
if (left) {
clipMC.myDir = "left";
}
if (right) {
clipMC.myDir = "right";
}
}
}
}
if (posY == charY) {
if (posX > charX) {
if (left) {
clipMC.myDir = "left";
} else {
if (up) {
clipMC.myDir = "up";
}
if (down) {
clipMC.myDir = "down";
}
}
}
if (posX <= charX) {
if (right) {
clipMC.myDir = "right";
} else {
if (up) {
clipMC.myDir = "up";
}
if (down) {
clipMC.myDir = "down";
}
}
}
}
if ((posX != charX) && (posY != charY)) {
hDif = Math.abs(posX - charX);
vDif = Math.abs(posY - charY);
if (hDif >= vDif) {
if (posX > charX) {
if (left) {
clipMC.myDir = "left";
} else {
if (up) {
clipMC.myDir = "up";
}
if (down) {
clipMC.myDir = "down";
}
}
}
if (posX <= charX) {
if (right) {
clipMC.myDir = "right";
} else {
if (up) {
clipMC.myDir = "up";
}
if (down) {
clipMC.myDir = "down";
}
}
}
} else {
if (posY > charY) {
if (up) {
clipMC.myDir = "up";
} else {
if (left) {
clipMC.myDir = "left";
}
if (right) {
clipMC.myDir = "right";
}
}
}
if (posY <= charY) {
if (down) {
clipMC.myDir = "down";
} else {
if (left) {
clipMC.myDir = "left";
}
if (right) {
clipMC.myDir = "right";
}
}
}
}
}
}
}
}
myNum = clipMC.myNumber;
if (clipMC.myDir == "right") {
clipMC.art.gotoAndStop("right");
clipMC.swapDepths(1000 + myNum);
clipMC.deltaX = enemySpeed;
clipMC.deltaY = 0;
}
if (clipMC.myDir == "left") {
clipMC.art.gotoAndStop("left");
clipMC.swapDepths(1000 + myNum);
clipMC.deltaX = -enemySpeed;
clipMC.deltaY = 0;
}
if (clipMC.myDir == "down") {
clipMC.art.gotoAndStop("down");
clipMC.swapDepths(750 + myNum);
clipMC.deltaX = 0;
clipMC.deltaY = enemySpeed;
}
if (clipMC.myDir == "up") {
clipMC.art.gotoAndStop("up");
clipMC.swapDepths(750 + myNum);
clipMC.deltaX = 0;
clipMC.deltaY = -enemySpeed;
}
}
_global.scripts = this;
_global.gameRoot = _parent;
_global.map = [];
_global.burgerMap = [];
_global.messaging = _parent.messagingMC;
mapDepth = 5;
powerUpDisplay = false;
pattyArray = [];
levelMusicFile = new Sound();
levelMusicFile.attachSound("levelMusicFile");
gameOverMusic = new Sound();
gameOverMusic.attachSound("gameOverMusic");
powerUpSound = new Sound();
powerUpSound.attachSound("powerUpSound");
pattySound = new Sound();
pattySound.attachSound("pattySound");
burgerCompleteSound = new Sound();
burgerCompleteSound.attachSound("burgercomplete");
walkoverSound = new Sound();
walkoverSound.attachSound("walkover");
newLifeSound = new Sound();
newLifeSound.attachSound("newLife");
spatulaSound = new Sound();
spatulaSound.attachSound("spatula");
mustardSquirtSound = new Sound();
mustardSquirtSound.attachSound("mustardSquirt");
dieSound = new Sound();
dieSound.attachSound("dieSound");
}
onClipEvent (enterFrame) {
if (gameOn) {
checkPowerUp();
}
}
onClipEvent (keyDown) {
theKey = String.fromCharCode(Key.getAscii());
if (Key.isDown(16)) {
if (theKey == "&") {
trace("adding a life");
scripts.lives++;
scripts.updateHUD();
}
if (theKey == "*") {
if (scripts.gameOn) {
trace("skipping a level");
scripts.gameOn = false;
_parent.messagingMC.gotoAndPlay("levelDone");
scene.char.removeMovieClip();
scripts.clearEnemies = true;
}
}
}
}
Frame 25
stop();
Frame 29
stop();
Frame 39
stop();
Frame 40
stop();
Instance of Symbol 377 MovieClip [powerUp_MC] "powerUp_MC" in Frame 40
/* no clip actions */
Instance of Symbol 651 MovieClip "soundMC" in Frame 40
onClipEvent (load) {
this.startY = this._y;
}
Frame 41
trace("play routine here..");
menuloopSound.stop();
menuLoopPlaying = false;
scripts.gameOverMusic.stop();
trace("calling init game");
scripts.initGame();
scripts.editGrid = false;
Frame 42
menuloopSound.stop();
menuLoopPlaying = false;
if (app.soundVol == 100) {
app.helpMC.soundMC.gotoAndStop("soundON");
} else {
app.helpMC.soundMC.gotoAndStop("soundOFF");
}
trace("calling next level func");
scripts.nextLevel();
Frame 45
this.stop();
Frame 46
gotoAndPlay ("replay");
Frame 51
stop();
Frame 52
scripts.levelMusicFile.stop();
stopAllSounds();
gameScore = scripts.addCommas(scripts.totalScore);
gameScoreShadow = gameScore;
scripts.gameScore = scripts.totalScore;
app.gameScore = scripts.gameScore;
if (app.myscreenName == "null") {
submitMC.gotoAndStop("disabled");
} else {
submitMC.gotoAndStop("enabled");
}
Frame 53
scripts.gameOverMusic.start(0, 1);
Frame 56
stop();
Frame 57
scripts.gameOverMusic.stop();
menuLoopPlaying == false;
stopAllSounds();
scroller._y = 700;
loadScores = null;
app.submitPath = (("/common/score/Scoreboard.jhtml?msg=S&limitEntries=true&game=sb_panic&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") {
if (this.text == "no scores available for that game (sb_panic)") {
MSGtext = "Sorry, the high-score list is empty!";
} else {
MSGtext = "Oops, the high-score list isn\u2019t available right now!";
}
gotoAndStop ("displayError");
} else {
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");
}
};
stop();
Frame 61
scripts.gameOverMusic.stop();
menuLoopPlaying == false;
stopAllSounds();
loadScores = new LoadVars();
loadScores.load(app.basePath + app.scorePath);
loadScores.onLoad = function () {
trace("load complete");
if (this.msg == "EE") {
if (this.text == "no scores available for that game (sb_panic)") {
MSGtext = "Sorry, the high-score list is empty!";
} else {
MSGtext = "Oops, the high-score list isn\u2019t available right now!";
}
gotoAndPlay ("displayError");
} else {
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");
}
};
stop();
Frame 74
menuLoopPlaying = false;
scroller._y = 4.8;
Frame 75
stop();
Frame 80
stop();
Symbol 9 MovieClip Frame 1
this.stop();
Symbol 9 MovieClip Frame 3
this.stop();
Symbol 9 MovieClip Frame 4
this.stop();
Symbol 9 MovieClip Frame 5
this.stop();
Symbol 9 MovieClip Frame 6
this.stop();
Symbol 9 MovieClip Frame 7
this.stop();
Symbol 9 MovieClip Frame 8
this.stop();
Symbol 9 MovieClip Frame 9
this.stop();
Symbol 9 MovieClip Frame 10
this.stop();
Symbol 9 MovieClip Frame 11
this.stop();
Symbol 9 MovieClip Frame 12
this.stop();
Symbol 13 Button
on (keyPress "<Left>") {
return(undefined);
}
on (keyPress "<Right>") {
return(undefined);
}
on (keyPress "<Up>") {
return(undefined);
}
on (keyPress "<Down>") {
return(undefined);
}
Symbol 17 MovieClip Frame 1
versionString = String(getVersion());
theVersion = substring(versionString, 5, 1);
if (theVersion >= 7) {
gotoAndPlay ("load");
}
Symbol 17 MovieClip Frame 2
this.stop();
Symbol 17 MovieClip Frame 3
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);
}
Symbol 17 MovieClip Frame 7
if (loaded == total) {
_parent.play();
} else {
this.gotoAndPlay("load");
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
this.moving = false;
this.soundFrame = null;
stop();
Symbol 51 MovieClip Frame 7
this.moving = true;
stopAllSounds();
Symbol 51 MovieClip Frame 8
this.soundFrame = this._currentframe;
Symbol 51 MovieClip Frame 113
this.moving = false;
this.gotoAndStop(1);
if (scripts.helpOn == false) {
scripts.levelMusicFile.stop();
scripts.levelMusicFile.start(0, 200);
scripts.gamePaused = false;
}
scripts.gameOn = true;
Symbol 51 MovieClip Frame 136
this.moving = true;
Symbol 51 MovieClip Frame 137
Symbol 51 MovieClip Frame 186
stop();
this.moving = false;
scripts.initChar();
Symbol 51 MovieClip Frame 187
stop();
Symbol 51 MovieClip Frame 188
stop();
Symbol 51 MovieClip Frame 189
stop();
Symbol 51 MovieClip Frame 190
stop();
Symbol 51 MovieClip Frame 191
stop();
Symbol 51 MovieClip Frame 209
this.moving = true;
scripts.levelMusicFile.stop();
scripts.powerUpDisplay = false;
scene.powerUp_MC.removeMovieClip();
Symbol 51 MovieClip Frame 210
this.soundFrame = this._currentframe;
Symbol 51 MovieClip Frame 333
this.moving = false;
this.gotoAndStop(1);
_parent.gotoAndPlay("levelDone");
Symbol 57 MovieClip Frame 1
this.myscreenName = app.myscreenName;
this.myrawName = app.myrawName;
Symbol 61 Button
on (release) {
gotoAndPlay ("intro");
}
Symbol 62 Button
on (release) {
gotoAndPlay ("getScores");
}
Symbol 63 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 70 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 73 MovieClip Frame 7
this.stop();
Symbol 78 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 158 MovieClip Frame 8
stop();
scripts.finishMustard();
Symbol 186 MovieClip Frame 8
stop();
Symbol 206 MovieClip Frame 2
if (scripts.lives > 0) {
}
Symbol 206 MovieClip Frame 17
Symbol 206 MovieClip Frame 55
if (scripts.lives > 0) {
messaging.gotoAndPlay("try_again");
} else {
stop();
scripts.initChar();
}
Symbol 206 MovieClip Frame 75
this.stop();
Symbol 216 MovieClip Frame 3
stop();
Symbol 218 MovieClip Frame 1
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 2
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 3
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 4
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 5
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 6
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 7
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 8
if (scripts.mustardEnabled == false) {
scripts.mustardEnabled = true;
}
stop();
Symbol 218 MovieClip Frame 16
stop();
Symbol 225 MovieClip [char] Frame 1
onEnterFrame = function () {
scripts.charX = Math.floor(_x / tileW);
scripts.charY = Math.floor(_y / tileH);
var _local2 = 0;
if (Key.isDown(37)) {
_local2 = 1;
}
if (Key.isDown(38)) {
_local2 = 2;
}
if (Key.isDown(39)) {
_local2 = 4;
}
if (Key.isDown(40)) {
_local2 = 8;
}
if (Key.isDown(32)) {
eventFire();
}
if ((scripts.gameOn && (scripts.attacking == false)) && (scripts.gamePaused == false)) {
switch (_local2) {
case 0 :
if (char.myDir == "left") {
this.art.gotoAndStop("ready_left");
}
if (char.myDir == "right") {
this.art.gotoAndStop("ready_right");
}
if (char.myDir == "up") {
this.art.gotoAndStop("ready_up");
}
if (char.myDir == "down") {
this.art.gotoAndStop("ready_down");
}
break;
case 1 :
eventLeft();
break;
case 2 :
eventUp();
break;
case 4 :
eventRight();
break;
case 8 :
eventDown();
}
}
};
function eventUp() {
posX = Math.floor(this._x / tileW);
posY = Math.floor(this._y / tileH);
posFloorY = posY + 1;
posNextY = posY - 1;
curTileVal = map[posY][posX];
floorTileVal = map[posFloorY][posX];
nextTileVal = map[posNextY][posX];
nextFloorTileVal = map[posNextY + 1][posX];
newY = this._y - spd;
if ((curTileVal >= 5) && (nextTileVal >= 5)) {
this.art.gotoAndStop("up");
this.myDir = "up";
txCenter = (posX * tileW) + (tileW / 2);
this._x = txCenter;
if (nextTileVal >= 5) {
this._y = newY;
} else {
tyCenter = (posY * tileW) + (tileW / 2);
if (newY < tyCenter) {
newY = tyCenter;
}
this._y = newY;
}
}
}
function eventDown() {
posX = Math.floor(this._x / tileW);
posY = Math.floor(this._y / tileH);
posFloorY = posY + 1;
posNextY = posY + 1;
curTileVal = map[posY][posX];
floorTileVal = map[posFloorY][posX];
nextTileVal = map[posNextY][posX];
nextFloorTileVal = map[posNextY + 1][posX];
newY = this._y + spd;
if (curTileVal >= 5) {
txCenter = (posX * tileW) + (tileW / 2);
this._x = txCenter;
if (nextTileVal >= 5) {
this.art.gotoAndStop("down");
this.myDir = "down";
this._y = newY;
} else {
tyCenter = (posY * tileW) + (tileW / 2);
if (newY >= tyCenter) {
newY = tyCenter;
this._y = newY;
} else {
this.art.gotoAndStop("down");
this._y = newY;
}
}
}
}
function eventLeft() {
posX = Math.floor(this._x / tileW);
posY = Math.floor(this._y / tileH);
posFloorY = posY + 1;
posNextX = posX - 1;
curTileVal = map[posY][posX];
floorTileVal = map[posFloorY][posX];
nextTileVal = map[posY][posNextX];
nextFloorTileVal = map[posFloorY][posNextX];
newX = this._x - spd;
if (nextTileVal > 0) {
this._x = newX;
this.art.gotoAndStop("left");
this.myDir = "left";
tyCenter = (posY * tileW) + (tileW / 2);
this._y = tyCenter;
} else {
txCenter = (posX * tileW) + (tileW / 2);
if (newX < txCenter) {
newX = txCenter;
}
this._x = newX;
}
}
function eventRight() {
posX = Math.floor(this._x / tileW);
posY = Math.floor(this._y / tileH);
posFloorY = posY + 1;
posNextX = posX + 1;
curTileVal = map[posY][posX];
floorTileVal = map[posFloorY][posX];
nextTileVal = map[posY][posNextX];
nextFloorTileVal = map[posFloorY][posNextX];
newX = this._x + spd;
if (nextTileVal > 0) {
this._x = newX;
tyCenter = (posY * tileW) + (tileW / 2);
this._y = tyCenter;
this.art.gotoAndStop("right");
this.myDir = "right";
} else {
txCenter = (posX * tileW) + (tileW / 2);
if (newX > txCenter) {
newX = txCenter;
}
this._x = newX;
}
}
function eventFire() {
if (scripts.gameOn) {
posX = Math.floor(this._x / tileW);
posY = Math.floor(this._y / tileH);
scripts.fireMustard();
}
}
map = scripts.map;
tileW = 30;
tileH = 30;
cTile = tileW / 2;
var hTile = (tileW / 2);
var spd = 5;
stop();
Instance of Symbol 220 MovieClip "hitMask" in Symbol 225 MovieClip [char] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 222 MovieClip "footMask" in Symbol 225 MovieClip [char] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 250 Button
on (release) {
trace((("Tile:" + this.x) + ":") + this.y);
trace("Tile val = " + map[this.x][this.y]);
}
Symbol 309 MovieClip Frame 8
stop();
Symbol 311 MovieClip Frame 85
stop();
_parent._parent.active = true;
_parent._parent.frozen = false;
_parent._parent.art.gotoAndStop(1);
Symbol 329 MovieClip Frame 2
scripts.addScore(50);
Symbol 329 MovieClip Frame 25
Symbol 329 MovieClip Frame 115
stop();
scripts.respawn(_parent._parent);
Symbol 341 MovieClip Frame 2
scripts.addScore(100);
Symbol 341 MovieClip Frame 13
stop();
Symbol 342 MovieClip Frame 9
stop();
scripts.respawn(_parent._parent);
Symbol 344 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 2
stop();
Symbol 344 MovieClip Frame 3
stop();
Symbol 344 MovieClip Frame 4
stop();
Symbol 356 MovieClip [baddy3] Frame 1
stop();
Instance of Symbol 220 MovieClip "hitMask" in Symbol 356 MovieClip [baddy3] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 222 MovieClip "footMask" in Symbol 356 MovieClip [baddy3] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 365 MovieClip Frame 21
Symbol 366 MovieClip Frame 80
Symbol 368 MovieClip [mustardMC] Frame 80
removeMovieClip(this);
Instance of Symbol 220 MovieClip "hitMask" in Symbol 377 MovieClip [powerUp_MC] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 377 MovieClip [powerUp_MC] Frame 10
Instance of Symbol 220 MovieClip "hitMask" in Symbol 377 MovieClip [powerUp_MC] Frame 25
onClipEvent (load) {
this._visible = false;
}
Symbol 377 MovieClip [powerUp_MC] Frame 128
stop();
scripts.removePowerUp("timeout");
Symbol 377 MovieClip [powerUp_MC] Frame 130
Instance of Symbol 220 MovieClip "hitMask" in Symbol 377 MovieClip [powerUp_MC] Frame 146
onClipEvent (load) {
this._visible = false;
}
Symbol 377 MovieClip [powerUp_MC] Frame 249
stop();
scripts.removePowerUp("timeout");
Symbol 430 MovieClip Frame 8
stop();
Symbol 432 MovieClip Frame 14
Symbol 432 MovieClip Frame 85
stop();
_parent._parent.active = true;
_parent._parent.frozen = false;
_parent._parent.art.gotoAndStop(1);
Symbol 448 MovieClip Frame 2
scripts.addScore(50);
Symbol 448 MovieClip Frame 25
Symbol 448 MovieClip Frame 115
stop();
scripts.respawn(_parent._parent);
Symbol 459 MovieClip Frame 2
scripts.addScore(100);
Symbol 459 MovieClip Frame 13
stop();
Symbol 460 MovieClip Frame 9
stop();
scripts.respawn(_parent._parent);
Symbol 461 MovieClip Frame 1
stop();
Symbol 461 MovieClip Frame 2
stop();
Symbol 461 MovieClip Frame 3
stop();
Symbol 461 MovieClip Frame 4
stop();
Symbol 472 MovieClip [baddy2] Frame 1
stop();
Instance of Symbol 220 MovieClip "hitMask" in Symbol 472 MovieClip [baddy2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 222 MovieClip "footMask" in Symbol 472 MovieClip [baddy2] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 527 MovieClip Frame 85
stop();
_parent._parent.active = true;
_parent._parent.frozen = false;
_parent._parent.art.gotoAndStop(1);
Symbol 543 MovieClip Frame 2
scripts.addScore(100);
Symbol 543 MovieClip Frame 25
Symbol 543 MovieClip Frame 115
stop();
scripts.respawn(_parent._parent);
Symbol 554 MovieClip Frame 2
scripts.addScore(100);
Symbol 554 MovieClip Frame 13
stop();
Symbol 555 MovieClip Frame 9
stop();
scripts.respawn(_parent._parent);
Symbol 556 MovieClip Frame 1
stop();
Symbol 556 MovieClip Frame 2
stop();
Symbol 556 MovieClip Frame 3
stop();
Symbol 556 MovieClip Frame 4
stop();
Symbol 564 MovieClip [baddy1] Frame 1
stop();
Instance of Symbol 220 MovieClip "hitMask" in Symbol 564 MovieClip [baddy1] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 222 MovieClip "footMask" in Symbol 564 MovieClip [baddy1] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 576 MovieClip Frame 1
this._visible = false;
this.stop();
Symbol 581 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 581 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 581 MovieClip Frame 2
stop();
Symbol 582 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 582 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 584 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 584 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 587 MovieClip Frame 1
stop();
Instance of Symbol 581 MovieClip "p1" in Symbol 587 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 582 MovieClip "p2" in Symbol 587 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 584 MovieClip "p3" in Symbol 587 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Symbol 590 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 590 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 590 MovieClip Frame 2
stop();
Symbol 591 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 591 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 592 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 592 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 595 MovieClip Frame 1
stop();
Instance of Symbol 590 MovieClip "p1" in Symbol 595 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 591 MovieClip "p2" in Symbol 595 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 592 MovieClip "p3" in Symbol 595 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Symbol 595 MovieClip Frame 2
stop();
Symbol 598 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 598 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 598 MovieClip Frame 2
stop();
Symbol 599 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 599 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 600 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 600 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 603 MovieClip Frame 1
stop();
Instance of Symbol 598 MovieClip "p1" in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 599 MovieClip "p2" in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 600 MovieClip "p3" in Symbol 603 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Symbol 611 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 611 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 611 MovieClip Frame 2
stop();
Symbol 612 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 612 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 613 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip "hitMask" in Symbol 613 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 616 MovieClip Frame 1
stop();
Instance of Symbol 611 MovieClip "p1" in Symbol 616 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 612 MovieClip "p2" in Symbol 616 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Instance of Symbol 613 MovieClip "p3" in Symbol 616 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.up) {
if (this.hitMask.hitTest(scene.char.footMask)) {
this.up = false;
this.gotoAndStop("down");
scripts.walkoverSound.start(0, 1);
}
}
}
Symbol 616 MovieClip Frame 2
stop();
Symbol 643 MovieClip Frame 1
stop();
Symbol 643 MovieClip Frame 2
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 9, 1, 6, 3, 9, 1, 2, 3, 9, 1, 2, 2, 9, 1, 6, 3, 9, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 10, 1, 7, 3, 8, 1, 2, 3, 10, 1, 2, 3, 10, 1, 5, 3, 10, 0, 0], [0, 0, 11, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 8, 1, 5, 3, 9, 1, 2, 3, 10, 1, 6, 2, 10, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 8, 1, 2, 3, 8, 1, 5, 3, 8, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 4;
scripts.pattyNum = 3;
scripts.spawn1 = [1, 2];
scripts.spawn2 = [19, 2];
scripts.spawn3 = [1, 8];
scripts.spawn4 = [19, 8];
scripts.spawn5 = [1, 5];
scripts.spawn6 = [19, 5];
scripts.spawnNum = 2;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [10, 11];
scripts.bonusPos = [10, 4];
trace("calling initlevel");
scripts.initLevel();
this.stop();
Instance of Symbol 574 MovieClip in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
this.swapDepths(900);
}
Instance of Symbol 576 MovieClip "tray_4" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_9" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_14" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_18" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 587 MovieClip "patty_1" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 1;
this.pattyNum = 1;
scripts.initPatty(this);
this.swapDepths(550);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_2" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 2;
this.pattyNum = 2;
scripts.initPatty(this);
this.swapDepths(549);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_3" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 3;
this.pattyNum = 3;
scripts.initPatty(this);
this.swapDepths(548);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_4" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 5;
this.pattyNum = 5;
scripts.initPatty(this);
this.swapDepths(560);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_5" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 6;
this.pattyNum = 6;
scripts.initPatty(this);
this.swapDepths(559);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_6" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 7;
this.pattyNum = 7;
scripts.initPatty(this);
this.swapDepths(558);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_7" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 10;
this.pattyNum = 10;
scripts.initPatty(this);
this.swapDepths(570);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_8" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 11;
this.pattyNum = 11;
scripts.initPatty(this);
this.swapDepths(569);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_9" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 12;
this.pattyNum = 12;
scripts.initPatty(this);
this.swapDepths(568);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_10" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 15;
this.pattyNum = 15;
scripts.initPatty(this);
this.swapDepths(580);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_11" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 16;
this.pattyNum = 16;
scripts.initPatty(this);
this.swapDepths(579);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_12" in Symbol 643 MovieClip Frame 2
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 17;
this.pattyNum = 17;
scripts.initPatty(this);
this.swapDepths(578);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Symbol 643 MovieClip Frame 3
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 9, 1, 6, 3, 9, 1, 2, 3, 9, 1, 2, 2, 9, 1, 6, 3, 9, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 10, 1, 5, 3, 10, 1, 2, 3, 8, 1, 2, 3, 10, 1, 5, 3, 10, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 8, 1, 2, 3, 8, 1, 2, 3, 9, 1, 2, 2, 8, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 8, 1, 2, 3, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 4;
scripts.pattyNum = 3;
scripts.spawn1 = [1, 2];
scripts.spawn2 = [19, 2];
scripts.spawn3 = [1, 8];
scripts.spawn4 = [19, 8];
scripts.spawn5 = [1, 5];
scripts.spawn6 = [19, 5];
scripts.spawnNum = 2;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [10, 11];
scripts.bonusPos = [10, 7];
scripts.initLevel();
this.stop();
Instance of Symbol 587 MovieClip "patty_1" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 1;
scripts.initPatty(this);
this.swapDepths(550);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_2" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 2;
scripts.initPatty(this);
this.swapDepths(549);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_3" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 3;
scripts.initPatty(this);
this.swapDepths(548);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_4" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 5;
scripts.initPatty(this);
this.swapDepths(560);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_5" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 6;
scripts.initPatty(this);
this.swapDepths(559);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_6" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 7;
scripts.initPatty(this);
this.swapDepths(558);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_7" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 10;
scripts.initPatty(this);
this.swapDepths(570);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_8" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 11;
scripts.initPatty(this);
this.swapDepths(569);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_9" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 12;
scripts.initPatty(this);
this.swapDepths(568);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_10" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 15;
scripts.initPatty(this);
this.swapDepths(580);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_11" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 16;
scripts.initPatty(this);
this.swapDepths(579);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_12" in Symbol 643 MovieClip Frame 3
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 17;
scripts.initPatty(this);
this.swapDepths(578);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Symbol 643 MovieClip Frame 4
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 1, 6, 3, 9, 1, 2, 3, 9, 1, 2, 2, 9, 1, 6, 3, 0, 0, 0], [0, 0, 0, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 0, 0, 0], [0, 0, 0, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 0, 0, 0], [0, 0, 9, 1, 5, 3, 10, 1, 2, 3, 10, 1, 2, 3, 10, 1, 5, 3, 9, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 10, 1, 2, 3, 10, 1, 2, 2, 10, 0, 0, 0, 10, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 8, 1, 2, 3, 8, 0, 0, 0, 8, 0, 0, 0, 8, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 4;
scripts.pattyNum = 3;
scripts.spawn1 = [2, 2];
scripts.spawn2 = [18, 2];
scripts.spawn3 = [1, 11];
scripts.spawn4 = [19, 11];
scripts.spawn5 = [1, 5];
scripts.spawn6 = [19, 5];
scripts.spawnNum = 3;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [10, 11];
scripts.bonusPos = [10, 4];
scripts.initLevel();
this.stop();
Instance of Symbol 576 MovieClip "tray_8" in Symbol 643 MovieClip Frame 4
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_13" in Symbol 643 MovieClip Frame 4
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Symbol 643 MovieClip Frame 5
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 2, 2, 9, 1, 6, 3, 9, 0, 0], [0, 0, 9, 1, 6, 3, 9, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 10, 1, 5, 3, 10, 0, 0], [0, 0, 10, 1, 5, 3, 10, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 10, 1, 2, 2, 10, 0, 0, 0, 10, 0, 0], [0, 0, 8, 1, 2, 3, 10, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 0, 0, 0, 0, 8, 1, 2, 2, 8, 2, 2, 3, 8, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
map2 = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8, 1, 2, 2, 8, 1, 5, 3, 8, 0, 0], [0, 0, 8, 1, 5, 3, 8, 0, 0, 0, 10, 0, 0, 0, 10, 0, 10, 0, 10, 0, 0], [0, 0, 10, 0, 10, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 10, 0, 10, 0, 0], [0, 0, 10, 0, 10, 0, 10, 0, 0, 0, 10, 0, 0, 0, 9, 1, 4, 3, 9, 0, 0], [0, 0, 9, 1, 4, 3, 9, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0], [0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0], [0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 7, 1, 2, 2, 9, 0, 0, 0, 9, 0, 0], [0, 0, 7, 1, 2, 3, 9, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0], [0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0, 0, 10, 0, 0], [0, 0, 0, 0, 0, 0, 7, 1, 2, 2, 7, 2, 2, 3, 7, 1, 2, 3, 7, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 3;
scripts.pattyNum = 3;
scripts.spawn1 = [1, 3];
scripts.spawn2 = [19, 2];
scripts.spawn3 = [1, 9];
scripts.spawn4 = [19, 8];
scripts.spawn5 = [1, 6];
scripts.spawn6 = [19, 5];
scripts.spawn7 = [5, 11];
scripts.spawn8 = [15, 11];
scripts.spawnNum = 3;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [10, 11];
scripts.bonusPos = [10, 4];
scripts.initLevel();
this.stop();
Instance of Symbol 608 MovieClip in Symbol 643 MovieClip Frame 5
onClipEvent (load) {
this.swapDepths(900);
}
Symbol 643 MovieClip Frame 6
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 9, 1, 2, 3, 9, 1, 2, 3, 9, 1, 2, 2, 9, 1, 2, 3, 9, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 8, 1, 6, 3, 8, 1, 2, 3, 10, 1, 2, 3, 10, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0], [0, 0, 9, 1, 5, 3, 9, 1, 2, 3, 10, 1, 2, 3, 10, 1, 2, 3, 9, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 8, 1, 2, 3, 8, 1, 2, 2, 8, 2, 2, 3, 8, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 4;
scripts.pattyNum = 4;
scripts.spawn1 = [1, 2];
scripts.spawn2 = [19, 2];
scripts.spawn3 = [1, 8];
scripts.spawn4 = [19, 8];
scripts.spawn5 = [1, 5];
scripts.spawn6 = [19, 5];
scripts.spawnNum = 4;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [10, 11];
scripts.bonusPos = [10, 4];
scripts.initLevel();
this.stop();
Instance of Symbol 574 MovieClip in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
this.swapDepths(900);
}
Instance of Symbol 576 MovieClip "tray_5" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_10" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_15" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_20" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 616 MovieClip "patty_2" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 2;
scripts.initPatty(this);
this.swapDepths(549);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_4" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 4;
scripts.initPatty(this);
this.swapDepths(547);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_5" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 6;
scripts.initPatty(this);
this.swapDepths(560);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 616 MovieClip "patty_6" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 7;
scripts.initPatty(this);
this.swapDepths(559);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_8" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 9;
scripts.initPatty(this);
this.swapDepths(557);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_9" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 11;
scripts.initPatty(this);
this.swapDepths(570);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 616 MovieClip "patty_10" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 12;
scripts.initPatty(this);
this.swapDepths(569);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_12" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 14;
scripts.initPatty(this);
this.swapDepths(567);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_13" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 16;
scripts.initPatty(this);
this.swapDepths(580);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 616 MovieClip "patty_14" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 17;
scripts.initPatty(this);
this.swapDepths(579);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_16" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 19;
scripts.initPatty(this);
this.swapDepths(577);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_3" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 3;
scripts.initPatty(this);
this.swapDepths(548);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_7" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 8;
scripts.initPatty(this);
this.swapDepths(558);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_11" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 13;
scripts.initPatty(this);
this.swapDepths(568);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_15" in Symbol 643 MovieClip Frame 6
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 18;
scripts.initPatty(this);
this.swapDepths(578);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Symbol 643 MovieClip Frame 7
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 1, 2, 2, 9, 0, 0, 0, 0, 0, 0], [0, 0, 9, 1, 6, 3, 9, 0, 0, 0, 11, 0, 0, 0, 10, 1, 6, 3, 9, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 10, 1, 5, 3, 10, 0, 0, 0, 11, 0, 0, 0, 8, 1, 5, 3, 10, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 10, 1, 2, 3, 9, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 8, 1, 2, 3, 8, 1, 2, 2, 8, 2, 2, 3, 8, 1, 2, 3, 8, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 3;
scripts.pattyNum = 3;
scripts.spawn1 = [1, 3];
scripts.spawn2 = [19, 3];
scripts.spawn3 = [1, 11];
scripts.spawn4 = [19, 11];
scripts.spawn5 = [1, 6];
scripts.spawn6 = [19, 6];
scripts.spawnNum = 4;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [10, 11];
scripts.bonusPos = [10, 4];
scripts.initLevel();
this.stop();
Instance of Symbol 608 MovieClip in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
this.swapDepths(900);
}
Instance of Symbol 576 MovieClip "tray_4" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_13" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_18" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 595 MovieClip "patty_2" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 2;
scripts.initPatty(this);
this.swapDepths(549);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_3" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 3;
scripts.initPatty(this);
this.swapDepths(548);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_7" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 10;
scripts.initPatty(this);
this.swapDepths(570);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_8" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 11;
scripts.initPatty(this);
this.swapDepths(569);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_9" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 12;
scripts.initPatty(this);
this.swapDepths(568);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_10" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 15;
scripts.initPatty(this);
this.swapDepths(580);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_11" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 16;
scripts.initPatty(this);
this.swapDepths(579);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_12" in Symbol 643 MovieClip Frame 7
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 17;
scripts.initPatty(this);
this.swapDepths(578);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Symbol 643 MovieClip Frame 8
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 6, 0, 9, 1, 6, 3, 4, 1, 2, 3, 4, 1, 6, 3, 9, 0, 6, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 11, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 11, 0, 11, 0, 0], [0, 0, 11, 0, 8, 1, 5, 3, 4, 1, 6, 3, 4, 1, 5, 3, 8, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0], [0, 1, 7, 3, 9, 0, 0, 0, 9, 1, 5, 3, 9, 0, 0, 0, 9, 1, 5, 3, 0], [0, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0], [0, 0, 11, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0], [0, 1, 5, 3, 8, 1, 2, 3, 8, 1, 2, 3, 8, 1, 2, 3, 8, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 3;
scripts.pattyNum = 3;
scripts.spawn1 = [19, 2];
scripts.spawn2 = [20, 8];
scripts.spawn3 = [17, 11];
scripts.spawn4 = [0, 11];
scripts.spawn5 = [7, 8];
scripts.spawn6 = [13, 8];
scripts.spawnNum = 4;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [2, 2];
scripts.bonusPos = [10, 5];
scripts.initLevel();
this.stop();
Instance of Symbol 621 MovieClip in Symbol 643 MovieClip Frame 8
onClipEvent (load) {
this.swapDepths(900);
}
Instance of Symbol 576 MovieClip "tray_14" in Symbol 643 MovieClip Frame 8
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_18" in Symbol 643 MovieClip Frame 8
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Symbol 643 MovieClip Frame 9
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 6, 3, 0, 1, 6, 3, 4, 1, 2, 3, 4, 1, 6, 3, 4, 1, 6, 3, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0], [0, 1, 7, 3, 4, 1, 5, 3, 4, 1, 6, 3, 4, 1, 5, 3, 4, 1, 6, 3, 0], [0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0], [0, 1, 2, 3, 4, 1, 2, 3, 4, 1, 5, 3, 4, 1, 2, 3, 9, 1, 7, 3, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 11, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 11, 0, 0], [0, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 4, 1, 2, 3, 8, 1, 5, 3, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 4;
scripts.pattyNum = 4;
scripts.spawn1 = [0, 2];
scripts.spawn2 = [20, 2];
scripts.spawn3 = [0, 5];
scripts.spawn4 = [20, 5];
scripts.spawn5 = [0, 8];
scripts.spawn6 = [20, 8];
scripts.spawnNum = 4;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [2, 11];
scripts.bonusPos = [10, 5];
scripts.initLevel();
trace("level frame=6");
trace("patty array:" + scripts.pattyArray.length);
this.stop();
Instance of Symbol 622 MovieClip in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
this.swapDepths(900);
}
Instance of Symbol 576 MovieClip "tray_5" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_10" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_15" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 576 MovieClip "tray_20" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
this.collected = 0;
this.lastTray = true;
}
Instance of Symbol 616 MovieClip "patty_2" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 2;
scripts.initPatty(this);
this.swapDepths(549);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_4" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 4;
scripts.initPatty(this);
this.swapDepths(547);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_5" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 6;
scripts.initPatty(this);
this.swapDepths(560);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 616 MovieClip "patty_6" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 7;
scripts.initPatty(this);
this.swapDepths(559);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_8" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 9;
scripts.initPatty(this);
this.swapDepths(557);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_9" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 11;
scripts.initPatty(this);
this.swapDepths(570);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 616 MovieClip "patty_10" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 12;
scripts.initPatty(this);
this.swapDepths(569);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_12" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 14;
scripts.initPatty(this);
this.swapDepths(567);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 587 MovieClip "patty_13" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 16;
scripts.initPatty(this);
this.swapDepths(580);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 616 MovieClip "patty_14" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 17;
scripts.initPatty(this);
this.swapDepths(579);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 603 MovieClip "patty_16" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 19;
scripts.initPatty(this);
this.swapDepths(577);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_3" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 3;
scripts.initPatty(this);
this.swapDepths(548);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_7" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 8;
scripts.initPatty(this);
this.swapDepths(558);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_11" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 13;
scripts.initPatty(this);
this.swapDepths(568);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Instance of Symbol 595 MovieClip "patty_15" in Symbol 643 MovieClip Frame 9
onClipEvent (load) {
function setMeUp() {
setUp = true;
this.falling = false;
this.tray = 18;
scripts.initPatty(this);
this.swapDepths(578);
}
}
onClipEvent (enterFrame) {
if (setUp != true) {
this.setMeUp();
}
if (((this.p1.up == false) && (this.p2.up == false)) && (this.p3.up == false)) {
scripts.dropPatty(this);
}
if (this.falling) {
scripts.pattyFall(this);
}
}
Symbol 643 MovieClip Frame 10
map = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 1, 6, 3, 9, 0, 0, 0, 4, 1, 6, 3, 4, 1, 6, 3, 4, 1, 2, 3, 0], [0, 0, 11, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0], [0, 0, 11, 0, 11, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 0, 0, 0], [0, 1, 7, 3, 8, 1, 2, 3, 4, 1, 7, 3, 4, 0, 11, 0, 0, 1, 6, 3, 0], [0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 11, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 1, 5, 3, 0, 0, 0, 0, 4, 1, 7, 3, 4, 0, 11, 0, 0, 1, 7, 3, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0, 0, 11, 0, 0], [0, 1, 2, 3, 4, 1, 2, 3, 4, 1, 5, 3, 4, 1, 5, 3, 4, 1, 5, 3, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
scripts.map = map;
scripts.burgerNum = 3;
scripts.pattyNum = 4;
scripts.spawn1 = [0, 2];
scripts.spawn2 = [20, 2];
scripts.spawn3 = [0, 5];
scripts.spawn4 = [20, 5];
scripts.spawn5 = [0, 8];
scripts.spawn6 = [20, 8];
scripts.spawnNum = 4;
if (scripts.levelNum > 9) {
scripts.spawnNum = 5;
}
if (scripts.levelNum > 18) {
scripts.spawnNum = 6;
}
scripts.charStartPos = [2, 11];
scripts.bonusPos = [10, 5];
scripts.initLevel();
this.stop();
Instance of Symbol 625 MovieClip in Symbol 643 MovieClip Frame 10
onClipEvent (load) {
this.swapDepths(900);
}
Symbol 643 MovieClip Frame 11
stop();
Symbol 646 Button
on (release) {
scripts.toggleVolume();
}
Symbol 647 Button
on (release) {
scripts.toggleVolume();
}
Symbol 650 Button
on (release) {
scripts.toggleVolume();
}
Symbol 651 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 2
this.stop();
Symbol 651 MovieClip Frame 3
this.stop();
Symbol 664 Button
on (release) {
scripts.toggleQuit();
}
Symbol 667 Button
on (release) {
if (scripts.quitOn == false) {
scripts.toggleHelp();
}
}
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 2
this.stop();
Symbol 668 MovieClip Frame 3
this.stop();
Symbol 669 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 670 Button
on (release) {
scripts.toggleHelp();
}
Symbol 683 Button
on (release) {
scripts.doQuit();
}
Symbol 684 Button
on (release) {
scripts.toggleQuit();
}
Symbol 686 MovieClip Frame 1
if (app.soundVol == 100) {
soundMC.gotoAndStop("soundON");
} else {
soundMC.gotoAndStop("soundOFF");
}
stop();
Instance of Symbol 651 MovieClip "soundMC" in Symbol 686 MovieClip Frame 1
onClipEvent (load) {
this.startY = this._y;
}
Symbol 686 MovieClip Frame 4
stop();
Instance of Symbol 668 MovieClip "soundMC" in Symbol 686 MovieClip Frame 4
onClipEvent (load) {
this.startY = this._y;
}
Symbol 686 MovieClip Frame 7
stop();
if (app.soundVol == 100) {
soundMC.gotoAndStop("soundON");
} else {
soundMC.gotoAndStop("soundOFF");
}
Symbol 686 MovieClip Frame 11
stop();
Symbol 686 MovieClip Frame 20
stop();
Symbol 686 MovieClip Frame 22
stop();
Symbol 686 MovieClip Frame 23
if (app.soundVol == 100) {
soundMC.gotoAndStop("soundON");
} else {
soundMC.gotoAndStop("soundOFF");
}
Symbol 686 MovieClip Frame 51
stop();
Symbol 695 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 698 Button
on (release) {
_parent.gotoAndPlay("subScores");
}
Symbol 699 MovieClip Frame 1
stop();
Symbol 699 MovieClip Frame 9
stop();
Symbol 699 MovieClip Frame 10
stop();
Symbol 699 MovieClip Frame 18
stop();
Symbol 713 MovieClip Frame 1
stop();
Symbol 713 MovieClip Frame 2
stop();
Symbol 729 MovieClip Frame 1
contentMain.setMask(maskedView);
Instance of Symbol 714 MovieClip "contentMain" in Symbol 729 MovieClip Frame 1
/* no clip actions */
Symbol 729 MovieClip Frame 5
scrolling = function () {
var _local5 = scrollTrack._height;
var _local2 = contentMain._height + 20;
var _local4 = scrollFace._height;
var _local3 = maskedView._height;
var initPosition = ((scrollFace._y = scrollTrack._y));
var initContentPos = (contentMain._y + 5);
var finalContentPos = ((_local3 - _local2) + initContentPos);
var left = scrollTrack._x;
var top = scrollTrack._y;
var right = scrollTrack._x;
var bottom = ((scrollTrack._height - _local4) + scrollTrack._y);
var dy = 0;
var speed = 10;
var moveVal = ((_local2 - _local3) / (_local5 - _local4));
scrollFace.onPress = function () {
var _local2 = 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) {
if (scrollFace._y <= top) {
scrollFace._y = top;
} else {
scrollFace._y = scrollFace._y - (speed / moveVal);
}
contentMain._y = contentMain._y + speed;
} else {
scrollFace._y = top;
contentMain._y = maskedView._y;
delete this.onEnterFrame;
}
};
};
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) {
if (scrollFace._y >= bottom) {
scrollFace._y = bottom;
} else {
scrollFace._y = scrollFace._y + (speed / moveVal);
}
contentMain._y = contentMain._y - speed;
} else {
scrollFace._y = bottom;
contentMain._y = finalContentPos;
delete this.onEnterFrame;
}
};
};
btnDown.onRelease = function () {
delete this.onEnterFrame;
};
btnDown.onDragOut = function () {
delete this.onEnterFrame;
};
btnDown.onRollOut = function () {
delete this.onEnterFrame;
};
if (_local2 < _local3) {
scrollFace._visible = false;
btnUp.enabled = false;
btnDown.enabled = false;
} else {
scrollFace._visible = true;
btnUp.enabled = true;
btnDown.enabled = true;
}
};
scrolling();
stop();
Symbol 733 Button
on (release) {
gotoAndPlay ("menu");
}