Frame 1
stop();
Stage.showMenu = false;
this.onEnterFrame = function () {
var _local1 = this;
sofar = _local1.getBytesLoaded();
total = _local1.getBytesTotal();
Bar._width = int((sofar / total) * 100);
if (sofar == total) {
delete _local1.onEnterFrame;
play();
}
};
Frame 25
gotoAndPlay (26);
Frame 26
_root.BGM_JazzyDnB.start();
Frame 27
stop();
_root.soundOn = true;
Frame 31
stop();
Frame 32
stop();
Frame 33
function inserths_Result(result) {
_root.inserthsresult = result;
}
function initVars() {
pacDir = 3;
pacPos = 0;
if (level >= 4) {
pacX = 16;
pacY = 22;
} else {
pacX = 16;
pacY = 23;
}
nextX = pacX - 1;
nextY = pacY;
nextPacDir = 3;
ghKill = 100;
ghBlue = 0;
numEyes = 0;
Pacman.gotoAndStop(1);
pacStep = 4;
pacPosMax = 2;
pauseCount = 0;
if (newLev || (newGame)) {
newLev = false;
newGame = false;
pillCount = 0;
m = eval ("m" + level);
var i = -1;
while (i < 29) {
Maze.attachMovie("Empty", i, i + 1);
i++;
}
pos = 0;
var j = 0;
while (j < 31) {
var i = 0;
while (i < 28) {
Maze[i][j] = m.charAt(pos++);
pill = false;
if (Maze[i][j] == ".") {
pill = true;
Maze[i].attachMovie("Pill", "P" + j, pos);
}
if (Maze[i][j] == "O") {
pill = true;
Maze[i].attachMovie("Power", "P" + j, pos);
}
if (pill) {
pillCount++;
with (Maze[i]["P" + j]) {
_x = OFFX + (12 * i);
_y = OFFY + (12 * j);
}
}
i++;
}
j++;
}
}
with (Pacman) {
_x = OFFX + (12 * pacX);
_y = OFFY + (12 * pacY);
}
tellTarget (Ghost[1]) {
ghPos = 1;
ghOldDir = -1;
ghDir = 3;
ghX = 13;
ghY = 11;
ghNX = ghX - 1;
_y = (_root.OFFY + 132);
};
tellTarget (Ghost[2]) {
ghOldDir = -1;
ghDir = 0;
ghX = 13;
};
tellTarget (Ghost[3]) {
ghOldDir = -1;
ghDir = 2;
ghX = 11;
};
tellTarget (Ghost[4]) {
ghOldDir = -1;
ghDir = 2;
ghX = 15;
};
g = 1;
while (g < 5) {
tellTarget (Ghost[g]) {
if (this.g > 1) {
ghPos = 0;
ghY = 14;
ghNX = ghX;
_y = (_root.OFFY + 174);
}
_x = ((_root.OFFX + (12 * ghX)) + 6);
gotoAndStop (1);
gNum = 0;
ghNY = ghY;
ghStep = 4;
ghPosMax = 2;
ghFast = true;
ghBlinking = false;
ShapeVisible = true;
ShapeHitVisible = true;
};
g++;
}
}
function setPacMove(d, lastDir) {
var _local1 = d;
var _local2 = lastDir;
if (_local1 == 0) {
nextX = pacX;
nextY = pacY - 1;
if (_local1 != _local2) {
if (ghBlue == 0) {
Pacman.gotoAndPlay("up");
} else {
Pacman.gotoAndPlay("angryup");
}
}
} else if (_local1 == 1) {
nextX = pacX + 1;
nextY = pacY;
if (_local1 != _local2) {
Pacman._xscale = -100;
if (ghBlue == 0) {
Pacman.gotoAndPlay("run");
} else {
Pacman.gotoAndPlay("angryrun");
}
}
} else if (_local1 == 2) {
nextX = pacX;
nextY = pacY + 1;
if (_local1 != _local2) {
if (ghBlue == 0) {
Pacman.gotoAndPlay("down");
} else {
Pacman.gotoAndPlay("angrydown");
}
}
} else if (_local1 == 3) {
nextX = pacX - 1;
nextY = pacY;
if (_local1 != _local2) {
Pacman._xscale = 100;
if (ghBlue == 0) {
Pacman.gotoAndPlay("run");
} else {
Pacman.gotoAndPlay("angryrun");
}
}
}
}
function setGhMove(d, g) {
with (Ghost[g]) {
if (d == 0) {
ghNX = ghX;
ghNY = ghY - 1;
} else if (d == 1) {
ghNX = ghX + 1;
ghNY = ghY;
} else if (d == 2) {
ghNX = ghX;
ghNY = ghY + 1;
} else if (d == 3) {
ghNX = ghX - 1;
ghNY = ghY;
}
}
}
function startBGSnd() {
var _local1 = _root;
tellTarget ("BGSnd") {
if (_local1.ghBlue > 2) {
if (_local1.numEyes) {
_local1.BGM.gotoAndPlay("loop");
} else {
_local1.BGM.gotoAndPlay("loopFast");
}
}
};
}
_quality = "medium";
OFFX = 18;
OFFY = 18;
score = 0;
lastScore = 0;
_root.HUD.score.score = 0;
lives = 3;
level = 0;
leveltxt = 0;
fruitNum = 1;
notMute = true;
newLev = true;
newGame = true;
newLife = false;
quttting = false;
quit = false;
Snd.ChSnd = true;
Pacman.Hit._visible = false;
pillCount = 0;
ghPause = 40;
ghBVal = 220;
ghMove = new Array(4);
ghChoice = new Array(4);
ghBest = new Array(4);
var g = 1;
while (g < 5) {
Ghost.attachMovie("Ghost", g, g);
Ghost.attachMovie("GhKill", "K" + g, g + 4);
Ghost["K" + g].kval = "";
g++;
}
var i = 1;
while (i < 5) {
_root["Life" + i].gotoAndStop(1);
if (i >= lives) {
_root.HUD.score["Life" + i]._visible = false;
}
i++;
}
m = "";
m1 = "#############################..........................##.####.#####.##.#####.####.##O####.#####.##.#####.####O##.####.#####.##.#####.####.##..........................##.####.##.########.##.####.##.####.##.########.##.####.##......##..........##......#######.##.########.##.############.##.########.##.############.##..........##.############.##.########.##.############.##.# # # ##.##.######L.........# # # ##.........R######.##.### ####.##.############.##.########.##.############.##..........##.############.##.########.##.############.##.########.##.#######..........................##.####.#####.##.#####.####.##.####.#####.##.#####.####.##O..##.......##.......##..O####.##.##.########.##.##.######.##.##.########.##.##.####......##....##....##......##.##########.##.##########.##.##########.##.##########.##..........................#############################";
m2 = "#############################O .......########....... O## #######.########.####### ##.#######.########.#######.##.#######.########.#######.##.####................####.##.####.##.########.##.####.##.####.##.########.##.####.##.####.##....##....##.####.##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.####.##..........##.####.##.####.##.########.##.####.##.####.##.# # # ##.##.####.#L.........# # # ##.........R#.####.##.### ####.##.####.##.####.##.########.##.####.##.####.##..........##.####.##.####.##.########.##.####.##.####.##.########.##.####.##............##............##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.####.##..... ....##.####.##.####.##.########.##.####.##.####.##.########.##.####.##......##....##....##......##.##########.##.##########.## ##########.##.########## ##O ...................... O#############################";
m3 = "#############################..........................##.####.#####.##.#####.####.##O####.#####.##.#####.####O##.####.#####.##.#####.####.##..........................##.####.##.########.##.####.##.####.##.########.##.####.##......##..........##......#######.##.########.##.############.##.########.##.############.##..........##.############.##.########.##.############.##.# # # ##.##.######L.........# # # ##.........R#.####.##.### ####.##.####.##.####.##.########.##.####.##.####.##..........##.####.##.####.##.########.##.####.##.####.##.########.##.####.##............##............##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.####.##..... ....##.####.##.####.##.########.##.####.##.####.##.########.##.####.##......##....##....##......##.##########.##.##########.## ##########.##.########## ##O ...................... O#############################";
m4 = "#############################O ...................... O## ##########.##.########## ##.##########.##.##########.##......##....##....##......####.##.##.########.##.##.######.##.##.########.##.##.####...##.......##.......##...##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.........##.##.##.........#######.##..........##.############.##.########.##.############.##.# # # ##.##.############.##.# # # ##.##.############.##.### ####.##.######L.........########.........R######.##..........##.############.##.########.##.############.##.########.##.############.##.########.##.############.##.########.##.#######......##..........##......##.####.##.########.##.####.##.####.##.########.##.####.##..........................##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.####.#####.##.#####.####.##O........................O#############################";
m5 = "#############################O ...................... O## ##########.##.########## ##.##########.##.##########.##......##....##....##......##.####.##.########.##.####.##.####.##.########.##.####.##.####.##....##....##.####.##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.........##.##.##.........##.####.##..........##.####.##.####.##.########.##.####.##.####.##.# # # ##.##.####.##.####.##.# # # ##.##.####.##.####.##.### ####.##.####.#L.........########.........R#.####.##..........##.####.##.####.##.########.##.####.##.####.##..........##.####.##.####.#####.##.#####.####.##.####.#####.##.#####.####.##.####.##....##....##.####.##.####.##.########.##.####.##.####.##.########.##.####.##.####................####.##.#######.########.#######.##.#######.########.#######.## #######.########.####### ##O .......########....... O#############################";
border.duplicateMovieClip("mainBorder", 2500);
Instance of Symbol 133 MovieClip [Empty] "Maze" in Frame 33
onClipEvent (keyDown) {
with (_root) {
if (Key.getCode() == 38) {
nextPacDir = 0;
} else if (Key.getCode() == 39) {
nextPacDir = 1;
} else if (Key.getCode() == 40) {
nextPacDir = 2;
} else if (Key.getCode() == 37) {
nextPacDir = 3;
}
}
}
Instance of Symbol 391 MovieClip "HUD" in Frame 33
onClipEvent (enterFrame) {
this._xscale = (100 / _root._xscale) * 100;
this._yscale = (100 / _root._yscale) * 100;
}
Instance of Symbol 403 MovieClip "border" in Frame 33
/* no clip actions */
Frame 34
originalWidth = 360;
originalHeight = 420;
camZoom = 150;
stop();
stopAllSounds();
playing = false;
barkSound = new Sound();
barkSound.attachSound("bark");
chompSound = new Sound();
chompSound.attachSound("chomp");
chompSound.onSoundComplete = function () {
_root.BGM.gotoAndPlay("loopFast");
};
chompSound2 = new Sound();
chompSound2.attachSound("chomp");
stopped = true;
_root.BGM.gotoAndPlay("loop");
Fruit.gotoAndStop(1);
if (newLev) {
bgNum = 1;
pillEat = 0;
if (level != 5) {
level++;
leveltxt++;
} else {
level = 1;
leveltxt++;
}
_root.levels.gotoAndStop(level);
m = "m" + level;
if (ghPause > 4) {
ghPause = ghPause - 4;
}
if (ghBVal > 2) {
ghBVal = ghBVal - 10;
}
if (fruitNum < 14) {
fruitNum++;
FrLev.gotoAndStop(fruitNum);
}
initVars();
if (!newGame) {
var g = 1;
while (g < 5) {
Ghost[g]._visible = false;
g++;
}
Pacman._visible = false;
BGSnd.gotoAndPlay("NewLev");
}
}
if (newLife) {
newLife = false;
Ready._visible = true;
lives--;
if (lives > 0) {
_root.HUD.score["Life" + lives]._visible = false;
initVars();
BGSnd.gotoAndPlay("NewLife");
} else {
Pacman._visible = false;
Ready.gotoAndStop("GameOver");
}
}
if (newGame) {
BGSnd.gotoAndPlay("NewGame");
}
Frame 35
if (Math.abs(_root._xscale - camZoom) > 1) {
tempZoom = _root._xscale - ((_root._xscale - camZoom) / 4);
_root._xscale = (_root._yscale = tempZoom);
_root._x = _root._x - ((_root._x + 117) / 4);
_root._y = _root._y - ((_root._y + 186) / 4);
_root.HUD._x = _root.HUD._x - ((_root.HUD._x - 198) / 4);
_root.HUD._y = _root.HUD._y - ((_root.HUD._y - 264) / 4);
} else {
if ((_root.Pacman._x < 235) && (_root.Pacman._x > 118)) {
_root._x = ((-_root.Pacman._x) * (camZoom / 100)) + (originalWidth / 2);
_root.HUD._x = _root.Pacman._x;
} else if (_root.Pacman._x >= 235) {
_root._x = -168;
_root.HUD._x = 232;
} else {
_root._x = -3;
_root.HUD._x = 121;
}
if ((_root.Pacman._y < 264) && (_root.Pacman._y > 140)) {
_root._y = ((-_root.Pacman._y) * (camZoom / 100)) + (originalHeight / 2);
_root.HUD._y = _root.Pacman._y;
} else if (_root.Pacman._y >= 264) {
_root._y = -186;
_root.HUD._y = 264;
} else {
_root._y = -6;
_root.HUD._y = 144;
}
}
_root.HUD.score.score = score;
if (pacPos == 0) {
tempDir = pacDir;
pacDir = nextPacDir;
}
setPacMove(pacDir, tempDir);
if ((tempDir + ", ") + pacDir) {
}
if (pacPos == 0) {
P = Maze[pacX]["P" + pacY];
if (P._visible) {
pacStep = 4;
pacPosMax = 2;
if (notMute) {
tellTarget ("Snd") {
if (ChSnd) {
_root.barkSound.start();
} else {
_root.barkSound.start();
}
ChSnd = !ChSnd;
};
}
P._visible = false;
pillEat++;
if (pillEat == pillCount) {
camZoom = 100;
while (Math.abs(_root._xscale - camZoom) > 1) {
tempZoom = _root._xscale - ((_root._xscale - camZoom) / 4);
_root._xscale = (_root._yscale = tempZoom);
_root._x = _root._x - (_root._x / 4);
_root._y = _root._y - (_root._y / 4);
_root.HUD._x = _root.HUD._x - ((_root.HUD._x - 180) / 4);
_root.HUD._y = _root.HUD._y - ((_root.HUD._y - 208) / 4);
}
_root._xscale = (_root._yscale = 100);
_root._x = (_root._y = 0);
newLev = true;
_root.levelDone.play();
gotoAndStop ("Restart");
}
score = score + 10;
if (Maze[pacX][pacY] == "O") {
score = score + 40;
chompSound.start();
_root.fade.play();
if (notMute && (_root.BGM._currentframe <= 10)) {
}
ghBlue = ghBval;
ghKill = 100;
var g = 1;
while (g < 5) {
tellTarget (Ghost[g]) {
if (ShapeVisible) {
c.setRGB(13311);
ghFast = false;
e = new Color(PPEyes);
e.setRGB(16777215);
}
};
g++;
}
}
} else if ((++pauseCount) % 2) {
pacStep = 4;
pacPosMax = 2;
} else {
pacStep = 6;
pacPosMax = 1;
}
if (Maze[pacX + 1][pacY] == "L") {
pacX = 28;
nextX = 27;
Pacman._x = OFFX + 336;
} else if (Maze[pacX - 1][pacY] == "R") {
pacX = -1;
nextX = 0;
Pacman._x = OFFX - 12;
}
if ((Maze[nextX][nextY] == "#") && (ang != 1)) {
pacDir = tempDir;
setPacMove(pacDir);
}
}
if (!((pacPos == 0) && (Maze[nextX][nextY] == "#"))) {
with (Pacman) {
if (nextX < pacX) {
_x = _x - pacStep;
pacPos--;
} else if (nextX > pacX) {
_x = _x + pacStep;
pacPos++;
} else if (nextY < pacY) {
_y = _y - pacStep;
pacPos--;
} else if (nextY > pacY) {
_y = _y + pacStep;
pacPos++;
}
}
if ((pacPos < 0) || (pacPos > pacPosMax)) {
if (pacPos > pacPosMax) {
pacPos = 0;
} else if (pacPos < 0) {
pacPos = pacPosMax;
}
pacX = nextX;
pacY = nextY;
}
if (stopped) {
stopped = false;
Pacman.play();
}
} else if (!stopped) {
stopped = true;
Pacman.gotoAndStop(1);
}
tellTarget ("Fruit") {
if (_currentframe == 1) {
if (!random(600)) {
gotoAndStop(_root.fruitNum);
}
} else if (fCount) {
if (hitTest(_root.Pacman.Hit)) {
gotoAndStop ("Show");
} else {
fCount--;
}
} else {
gotoAndStop (1);
}
};
if (ghBlue) {
ghBlue--;
}
unBlue = false;
var g = 1;
while (g < 5) {
with (Ghost[g]) {
if (ghBlue && (_currentframe >= 25)) {
if ((ghBlue < 50) && (_currentframe < 53)) {
ghBlinking = true;
}
if (ghBlue == 1) {
Pacman.gotoAndPlay(Pacman._currentframe - 40);
ghFast = true;
}
}
if (ghBlue == 1) {
ghBlinking = false;
}
gTest = false;
if (ghPos == 0) {
if ((Maze[ghX + 1][ghY] == "L") && (ghDir == 3)) {
ghX = 29;
ghNX = 28;
_x = OFFX + 348;
} else if ((Maze[ghX - 1][ghY] == "R") && (ghDir == 1)) {
ghX = -2;
ghNX = -1;
_x = OFFX - 24;
} else if ((ghX > 0) && (ghX < 27)) {
var i = 0;
while (i < 4) {
ghMove[i] = 1;
i++;
}
oppDir = ((ghDir < 2) ? (ghDir + 2) : (ghDir - 2));
ghMove[oppDir] = 0;
if (Maze[ghX][ghY - 1] == "#") {
ghMove[0] = 0;
}
if (Maze[ghX + 1][ghY] == "#") {
ghMove[1] = 0;
}
if (Maze[ghX][ghY + 1] == "#") {
ghMove[2] = 0;
}
if (Maze[ghX - 1][ghY] == "#") {
ghMove[3] = 0;
}
pos = 0;
var i = 0;
while (i < 4) {
ghChoice[i] = -1;
if (ghMove[i]) {
ghChoice[pos++] = i;
}
i++;
}
bestXDir = -1;
bestYDir = -1;
if (ShapeVisible && (_currentframe < 25)) {
testX = pacX;
testY = pacY;
} else {
testX = 13;
testY = 11;
}
if (testX < ghX) {
bestXDir = 3;
} else if (testX > ghX) {
bestXDir = 1;
}
if (testY < ghY) {
bestYDir = 0;
} else if (testY > ghY) {
bestYDir = 2;
}
best = 0;
var i = 0;
while (i < pos) {
if ((ghChoice[i] == bestXDir) || (ghChoice[i] == bestYDir)) {
ghBest[best++] = ghChoice[i];
}
i++;
}
ghOldDir = ghDir;
if ((best == 0) || (ShapeVisible && (!random(3)))) {
ghDir = ghChoice[random(pos)];
} else {
ghDir = ghBest[random(best)];
}
if (ghDir != ghOldDir) {
switch (ghDir) {
case 0 :
if (ghDir != ghOldDir) {
ghOldDir = ghDir;
if ((ghFast == true) && (ShapeHitVisible == true)) {
gotoAndPlay("chaseback");
} else if (((ghFast == false) && (ShapeHitVisible == true)) && (!ghBlinking)) {
gotoAndPlay("escapeback");
} else if (ghBlinking) {
gotoAndPlay("blinkback");
} else {
gotoAndPlay("bittenback");
}
}
break;
case 2 :
if (ghDir != ghOldDir) {
ghOldDir = ghDir;
if ((ghFast == true) && (ShapeHitVisible == true)) {
gotoAndPlay("chasefront");
} else if (((ghFast == false) && (ShapeHitVisible == true)) && (!ghBlinking)) {
gotoAndPlay("escapefront");
} else if (ghBlinking) {
gotoAndPlay("blinkfront");
} else {
gotoAndPlay("bittenfront");
}
}
break;
case 3 :
if (ghDir != ghOldDir) {
if ((ghFast == true) && (ShapeHitVisible == true)) {
gotoAndPlay("chaseside");
} else if (((ghFast == false) && (ShapeHitVisible == true)) && (!ghBlinking)) {
gotoAndPlay("escapeside");
} else if (ghBlinking) {
gotoAndPlay("blinkside");
} else {
gotoAndPlay("bittenside");
}
_xscale = 100;
}
break;
case 1 :
if (ghDir == ghOldDir) {
break;
}
ghOldDir = ghDir;
if ((ghFast == true) && (ShapeHitVisible == true)) {
gotoAndPlay("chaseside");
} else if (((ghFast == false) && (ShapeHitVisible == true)) && (!ghBlinking)) {
gotoAndPlay("escapeside");
} else if (ghBlinking) {
gotoAndPlay("blinkside");
} else {
gotoAndPlay("bittenside");
}
_xscale = -100;
}
}
if (ghFast) {
ghStep = 4;
ghPosMax = 2;
} else {
ghStep = 2;
ghPosMax = 5;
}
gNum++;
if (ghX == 13) {
if ((ghY > 11) && (ghY < 15)) {
if (ShapeVisible) {
gTest = true;
ghDir = 0;
if (gNum < 4) {
_y = _y - 2;
}
} else if (ghY == 13) {
unBlue = true;
numEyes--;
ShapeVisible = true;
ShapeHitVisible = true;
}
} else if (ghY == 11) {
if ((gNum == 1) && (g == 1)) {
_x = _x - 2;
}
if (gNum == 4) {
ghPos = 2;
if (ghFast) {
_x = _x + 2;
} else {
_x = _x - 2;
}
}
if (!ShapeVisible) {
gTest = true;
ghDir = 2;
}
}
}
if ((ghY > 11) && (ghY < 15)) {
if ((ghX == 11) && (gNum == (ghPause + 2))) {
gTest = true;
ghDir = 1;
gNum = -1;
}
if ((ghX == 15) && (gNum == ((2 * ghPause) + 2))) {
gTest = true;
ghDir = 3;
gNum = -1;
}
}
}
}
setGhMove(ghDir, g);
if ((!((ghPos == 0) && (Maze[ghNX][ghNY] == "#"))) || (gTest)) {
if (ghNX < ghX) {
_x = _x - ghStep;
ghPos--;
} else if (ghNX > ghX) {
_x = _x + ghStep;
ghPos++;
} else if (ghNY < ghY) {
_y = _y - ghStep;
ghPos--;
} else if (ghNY > ghY) {
_y = _y + ghStep;
ghPos++;
}
Eyes.gotoAndStop(ghDir + 1);
if ((ghPos < 0) || (ghPos > ghPosMax)) {
if (ghPos > ghPosMax) {
ghPos = 0;
} else if (ghPos < 0) {
ghPos = ghPosMax;
}
ghX = ghNX;
ghY = ghNY;
}
}
if ((ShapeHitVisible && (Pacman.Hit.hitTest(Shape.Hit))) && (!newLev)) {
if (((_currentframe < 25) && (ghFast == true)) || (ghKill >= 1600)) {
_root.stop();
playing = false;
Pacman.gotoAndPlay("Die");
} else {
chompSound2.start();
_root.fade.gotoAndPlay("red");
ghKill = ghKill * 2;
if (ghKill > 1600) {
ghKill = ghKill * 0;
}
score = score + ghKill;
ghFast = true;
if (ghPos > ghPosMax) {
ghPos = 0;
} else if (ghPos < 0) {
ghPos = ghPosMax;
}
eatGhost = true;
if (notMute) {
Snd.gotoAndPlay("EatGhost");
}
gotoAndStop(1);
numEyes++;
ShapeVisible = false;
ShapeHitVisible = false;
with (Ghost["K" + g]) {
_visible = true;
_x = Ghost[g]._x;
_y = Ghost[g]._y;
kval = ghKill;
Ghost[g].gotoAndPlay("bitten");
}
}
}
}
g++;
}
if (ghBlue && (notMute)) {
with (BGSnd) {
if (ghBlue == 1) {
_root.BGM.gotoAndPlay("loop");
} else if (unBlue && (!numEyes)) {
_root.BGM.gotoAndStop("loopFast");
}
}
}
lastScore = score;
if (!playing) {
stop();
}
if (quit) {
gotoAndStop (34);
}
Frame 36
gotoAndPlay ("Loop");
Frame 37
camZoom = 100;
if (Math.abs(_root._xscale - camZoom) > 1) {
tempZoom = _root._xscale - ((_root._xscale - camZoom) / 4);
_root._xscale = (_root._yscale = tempZoom);
_root._x = _root._x - (_root._x / 4);
_root._y = _root._y - (_root._y / 4);
}
Frame 38
gotoAndPlay ("Over");
Symbol 127 MovieClip [Ghost] Frame 1
this._xscale = 120;
this._yscale = 120;
Symbol 127 MovieClip [Ghost] Frame 8
if (ghfast == false) {
gotoAndPlay ("escapefront");
} else {
gotoAndPlay ("chasefront");
}
Symbol 127 MovieClip [Ghost] Frame 16
if (ghfast == false) {
gotoAndPlay ("escapeback");
} else {
gotoAndPlay ("chaseback");
}
Symbol 127 MovieClip [Ghost] Frame 24
if (ghfast == false) {
gotoAndPlay ("escapeside");
} else {
gotoAndPlay ("chaseside");
}
Symbol 127 MovieClip [Ghost] Frame 32
if (ghfast == false) {
gotoAndPlay ("escapefront");
} else {
gotoAndPlay ("chasefront");
}
Symbol 127 MovieClip [Ghost] Frame 42
if (ghfast == false) {
gotoAndPlay ("escapeback");
} else {
gotoAndPlay ("chaseback");
}
Symbol 127 MovieClip [Ghost] Frame 52
if (ghfast == false) {
gotoAndPlay ("escapeside");
} else {
gotoAndPlay ("chaseside");
}
Symbol 127 MovieClip [Ghost] Frame 60
gotoAndPlay ("bittenfront");
Symbol 127 MovieClip [Ghost] Frame 68
gotoAndPlay ("bittenback");
Symbol 127 MovieClip [Ghost] Frame 78
gotoAndPlay ("bittenside");
Symbol 127 MovieClip [Ghost] Frame 90
gotoAndPlay ("bittenfront");
Symbol 127 MovieClip [Ghost] Frame 98
if (ghBlinking) {
gotoAndPlay ("blinkfront");
} else {
gotoAndPlay ("chasefront");
}
Symbol 127 MovieClip [Ghost] Frame 106
if (ghBlinking) {
gotoAndPlay ("blinkback");
} else {
gotoAndPlay ("chaseback");
}
Symbol 127 MovieClip [Ghost] Frame 114
if (ghBlinking) {
gotoAndPlay ("blinkside");
} else {
gotoAndPlay ("chaseside");
}
Symbol 129 MovieClip [Pill] Frame 1
this._xscale = 200;
this._yscale = 200;
Symbol 132 MovieClip [GhKill] Frame 1
stop();
Symbol 132 MovieClip [GhKill] Frame 2
tellTarget ("/") {
playing = false;
Pacman._visible = false;
};
play();
Symbol 132 MovieClip [GhKill] Frame 12
tellTarget ("/") {
playing = true;
Pacman._visible = true;
gotoAndPlay ("Loop");
};
Symbol 132 MovieClip [GhKill] Frame 41
kval = "";
tellTarget ("_parent") {
if (fval) {
gotoAndStop (1);
}
};
Symbol 189 Button
on (release) {
gotoAndPlay (33);
}
Symbol 200 MovieClip Frame 16
stop();
Symbol 204 Button
on (release) {
gotoAndPlay ("instructions");
}
Symbol 213 Button
on (release) {
gotoAndPlay ("giveaway");
}
Symbol 217 Button
on (release) {
gotoAndStop ("menu");
}
Symbol 246 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 2
stop();
Symbol 246 MovieClip Frame 3
stop();
Symbol 246 MovieClip Frame 4
stop();
Symbol 246 MovieClip Frame 5
stop();
Symbol 255 MovieClip Frame 1
fCount = 200;
stop();
Symbol 255 MovieClip Frame 2
fval = 100;
Symbol 255 MovieClip Frame 3
fval = 300;
Symbol 255 MovieClip Frame 4
fval = 500;
Symbol 255 MovieClip Frame 5
fval = 700;
Symbol 255 MovieClip Frame 6
fval = 1000;
Symbol 255 MovieClip Frame 7
fval = 2000;
Symbol 255 MovieClip Frame 8
fval = 3000;
Symbol 255 MovieClip Frame 9
fval = 5000;
Symbol 255 MovieClip Frame 10
stop();
tellTarget ("/") {
if (notMute) {
Snd.gotoAndPlay("EatFruit");
}
};
_root.score = _root.score + fval;
F.kval = fval;
F.gotoAndPlay(2);
Symbol 368 MovieClip Frame 10
gotoAndPlay ("still");
Symbol 368 MovieClip Frame 20
gotoAndPlay ("down");
Symbol 368 MovieClip Frame 30
gotoAndPlay ("up");
Symbol 368 MovieClip Frame 40
gotoAndPlay ("run");
Symbol 368 MovieClip Frame 50
gotoAndPlay ("angrystill");
Symbol 368 MovieClip Frame 60
gotoAndPlay ("angrydown");
Symbol 368 MovieClip Frame 70
gotoAndPlay ("angryup");
Symbol 368 MovieClip Frame 80
gotoAndPlay ("angryrun");
Symbol 368 MovieClip Frame 81
_root.BGSnd.stop();
stopAllSounds();
Symbol 368 MovieClip Frame 100
tellTarget ("/") {
BGSnd.gotoAndPlay("Killed");
for (var g in Ghost) {
Ghost[g]._visible = false;
}
};
Symbol 368 MovieClip Frame 102
_rotation = 0;
Symbol 368 MovieClip Frame 120
camZoom = 100;
if (Math.abs(_root._xscale - camZoom) > 1) {
tempZoom = _root._xscale - ((_root._xscale - camZoom) / 4);
_root._xscale = (_root._yscale = tempZoom);
_root._x = _root._x - (_root._x / 4);
_root._y = _root._y - (_root._y / 4);
_root.HUD._x = _root.HUD._x - ((_root.HUD._x - 180) / 4);
_root.HUD._y = _root.HUD._y - ((_root.HUD._y - 208) / 4);
} else {
stop();
tellTarget ("/") {
newLife = true;
gotoAndPlay ("Restart");
};
}
Symbol 368 MovieClip Frame 121
gotoAndPlay(_currentframe - 1);
Symbol 368 MovieClip Frame 134
stop();
tellTarget ("/") {
newLife = true;
gotoAndPlay ("Restart");
};
Symbol 372 MovieClip Frame 5
if (_root.notMute) {
_root.BGSnd.NewLev.start();
}
Symbol 372 MovieClip Frame 33
stop();
Symbol 381 Button
on (release) {
getURL ("javascript:location.reload();");
}
Symbol 384 Button
on (release) {
var id;
var holder = new LoadVars();
var gateway_str = (("http://www.imagerymedia.com/sonny/submit.php?ewruu=435&nmkf=5431&asdfg=" + _root.HUD.score.score) + "&noewro=969&mpqwe=9218&mn=43");
holder.onLoad = function (success:Boolean) {
id = holder.id;
getURL ("http://www.imagerymedia.com/sonny/info.php?id=" + id, "_blank");
};
holder.load(gateway_str);
}
Symbol 385 MovieClip Frame 8
camZoom = 100;
if (Math.abs(_root._xscale - camZoom) > 1) {
tempZoom = _root._xscale - ((_root._xscale - camZoom) / 4);
_root._xscale = (_root._yscale = tempZoom);
_root._x = _root._x - (_root._x / 4);
_root._y = _root._y - (_root._y / 4);
} else {
gotoAndStop(_currentframe + 2);
}
Symbol 385 MovieClip Frame 9
gotoAndPlay(_currentframe - 1);
Symbol 385 MovieClip Frame 10
stop();
_root.stop();
Symbol 386 MovieClip Frame 1
stop();
Symbol 386 MovieClip Frame 2
with (_root) {
LevMov.lval = ((leveltxt < 10) ? ("0" + leveltxt) : (leveltxt));
}
Symbol 386 MovieClip Frame 3
if (_level0.u_id == null) {
_level0.u_id = 0;
}
if (_level0.paid == null) {
_level0.paid = 0;
}
_root.inserthscfc.inserths(_level0.u_id, 2, _level0.paid, _root.score);
Symbol 392 MovieClip Frame 1
stop();
Back1 = new Sound();
Back1.attachSound("BG1b");
Back2 = new Sound();
Back2.attachSound("BG2b");
Back3 = new Sound();
Back3.attachSound("BG3b");
BlueGh = new Sound();
BlueGh.attachSound("BGGhosta");
EyesGh = new Sound();
EyesGh.attachSound("BGGhosta");
ExLife = new Sound();
ExLife.attachSound("ExLife");
NewLev = new Sound();
NewLev.attachSound("NewLeva");
Symbol 392 MovieClip Frame 2
if (!_root.notMute) {
gotoAndPlay ("NewLev");
}
Symbol 392 MovieClip Frame 31
tellTarget ("/") {
if (!newGame) {
Ready.gotoAndStop("Level");
Ready._visible = true;
var j = 0;
while (j < 31) {
var i = 0;
while (i < 28) {
Maze[i]["P" + j]._visible = true;
i++;
}
j++;
}
}
newGame = false;
};
Symbol 392 MovieClip Frame 65
tellTarget ("/") {
g = 1;
while (g < 5) {
Ghost[g]._visible = true;
g++;
}
Pacman._visible = true;
Ready.gotoAndStop(1);
};
Symbol 392 MovieClip Frame 87
tellTarget ("/") {
Ready._visible = false;
playing = true;
nextPacDir = 3;
play();
if (notMute) {
BGSnd["Back" + bgNum].start(0, 1000);
}
};
stop();
Symbol 392 MovieClip Frame 88
if (!_root.notMute) {
stop();
}
Symbol 392 MovieClip Frame 90
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 6
stop();
Symbol 395 MovieClip Frame 8
stop();
Symbol 395 MovieClip Frame 21
stop();
_root.BGSnd.EyesGh.start(0, 100);
Symbol 395 MovieClip Frame 23
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 10
gotoAndStop (1);
Symbol 396 MovieClip Frame 23
gotoAndStop (1);
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stopAllSounds();
Symbol 401 MovieClip Frame 41
_root.fade.play();
_root.BGM.gotoAndPlay("loop");
gotoAndStop (1);
Symbol 404 MovieClip Frame 1
stopAllSounds();
play();
Symbol 404 MovieClip Frame 9
stop();
Symbol 404 MovieClip Frame 10
stopAllSounds();
play();
Symbol 404 MovieClip Frame 19
stop();
Symbol 404 MovieClip Frame 20
stopAllSounds();
play();
Symbol 404 MovieClip Frame 30
stop();