Combined Code
movieClip 3 {
}
movieClip 17 {
frame 2 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 14 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
}
movieClip 22 {
frame 1 {
this.onRollOver = function () {
_root.objectName = 'Griswold';
};
this.onRollOut = function () {
_root.objectName = '';
};
this.onPress = function () {
if (_root.micon._currentframe > 1) {
if (_root.di.number <= 1) {
rand = random(3);
if (_root.micon._currentframe == 4) {
if (rand == 0) {
_root.di.d1 = 'Are you really that lonely that you have to resort to talking to yourself?';
} else {
if (rand == 1) {
_root.di.d1 = 'I\'m sure it would be very enlightening to have a conversation with yourself but you have work to do.';
} else {
_root.di.d1 = 'Stop talking to yourself!';
}
}
}
if (_root.micon._currentframe == 3) {
if (rand == 0) {
_root.di.d1 = 'Quit touching yourself and get back to work.';
} else {
if (rand == 1) {
_root.di.d1 = 'Hey don\'t touch that you don\'t know where it\'s been.';
} else {
_root.di.d1 = 'Keep your hands off yourself you sick little green thing.';
}
}
}
if (_root.micon._currentframe == 2) {
if (rand == 0) {
_root.di.d1 = 'Stop checking yourself out and get back to your quest.';
} else {
if (rand == 1) {
_root.di.d1 = 'Hey quit looking at yourself.';
} else {
_root.di.d1 = 'Quit it! You gotta keep your eyes on the mission, not on your... You know...';
}
}
}
if (_root.micon._currentframe == 21 && !moving) {
_root.di.d1 = 'Bottoms up!';
_root.scrollTarg = _root.tiles._x;
_root.micon.gotoAndStop(61);
_root.even17 = 2;
_root.animFrame = 26;
_root.tiles.char.gotoAndStop(26);
}
}
}
};
onEnterFrame = function () {
if (_root.micon._currentframe >= 60 || _root.micon._currentframe == 1) {
this.gotoAndStop(5);
} else {
if (_parent._currentframe < 5) {
this.gotoAndStop(_parent._currentframe);
}
}
};
}
frame 1 {
stop();
}
}
movieClip 36 {
frame 3 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 15 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 23 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 25 {
gotoAndPlay(7);
}
}
movieClip 51 {
frame 2 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 14 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 26 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
}
movieClip 65 {
frame 3 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 15 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 23 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 25 {
gotoAndPlay(7);
}
}
movieClip 85 {
}
movieClip 87 {
frame 1 {
stop();
}
frame 2 {
stop();
_parent.gotoAndStop(1);
}
}
movieClip 90 {
frame 1 {
stop();
}
frame 2 {
stop();
_parent.gotoAndStop(2);
}
}
movieClip 98 {
}
movieClip 99 {
frame 1 {
stop();
}
frame 2 {
stop();
_parent.gotoAndStop(3);
}
}
movieClip 104 {
frame 1 {
stop();
}
frame 2 {
stop();
_parent.gotoAndStop(4);
}
}
movieClip 106 {
}
movieClip 134 {
frame 17 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 20 {
_root.waitdi = '';
}
frame 35 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(2);
}
}
movieClip 162 {
frame 22 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 24 {
_root.waitdi = '';
}
frame 60 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 164 {
}
movieClip 166 {
}
movieClip 183 {
frame 19 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 21 {
_root.waitdi = '';
}
frame 31 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(2);
}
}
movieClip 208 {
frame 26 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 28 {
_root.waitdi = '';
}
frame 60 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 210 {
}
movieClip 212 {
}
movieClip 241 {
frame 23 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (!_root.waitdi == '') {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 26 {
_root.waitdi = '';
}
frame 45 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(2);
}
}
movieClip 266 {
frame 27 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 29 {
_root.waitdi = '';
}
frame 50 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 299 {
frame 23 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 25 {
_root.waitdi = '';
}
frame 44 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(4);
}
}
movieClip 356 {
frame 79 {
_root.tiles.vine1.gotoAndPlay(117);
}
frame 122 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 358 {
frame 2 {
_root.tiles.vine1.play();
}
frame 14 {
stop();
}
}
movieClip 391 {
}
movieClip 405 {
frame 70 {
_root.tiles.beast.gotoAndStop(4);
}
frame 90 {
_root.animFrame = 4;
_parent.gotoAndStop(4);
}
}
movieClip 407 {
frame 30 {
stop();
}
}
movieClip 479 {
frame 25 {
_root.eventUnlocked = 'Drank juice';
_root.sfx.gotoAndStop(3);
_root.even17 = 2;
_root.di.d1 = 'Hmm it may taste disgusting but it will make you stonger!';
}
frame 154 {
_root.micon.gotoAndStop(3);
_parent.gotoAndStop(1);
}
}
movieClip 501 {
frame 39 {
if (_root.waitdi == '') {
} else {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 41 {
_root.waitdi = '';
}
frame 73 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 504 {
frame 383 {
_parent.gotoAndStop(2);
}
}
movieClip 506 {
frame 160 {
_parent.gotoAndStop(4);
}
}
movieClip 559 {
frame 71 {
_root.di.wait = 100;
_root.di.number = 1;
_root.di.d1 = 'It looks like there\'s a fishing rod in there.';
}
frame 130 {
_root.sfx.gotoAndStop(3);
_root['even' + _root.completedEvent] = 1;
_root.addedOb = 5;
_root.addObject(_root.addedOb);
}
frame 175 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(4);
}
}
movieClip 622 {
frame 83 {
_root.addedOb = 7;
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
_root.sfx.gotoAndStop(3);
}
frame 165 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(4);
}
}
movieClip 627 {
frame 3 {
_root.autoSaveFile();
_parent.gotoAndStop(4);
}
frame 50 {
_root.di.number = 2;
_root.di.d2 = 'Holy hot java, is that a river of lava?';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 7;
}
frame 113 {
_root.micon.gotoAndStop(1);
_parent.gotoAndStop(4);
}
}
movieClip 669 {
}
movieClip 672 {
frame 92 {
_root.even10 = 1;
}
frame 120 {
_root.autoSaveFile();
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 700 {
frame 17 {
_root.addObject(10);
_root.even11 = 3;
_root.eventUnlocked = 'Gave spider bugs';
_root.di.number = 2;
_root.sfx.gotoAndStop(3);
_root.di.d2 = 'Mmm delicious. Finally a decent meal! Thanks kid. You\'re alright! (Yawn) All that food has made me kinda sleepy.';
_root.di.char2 = 'SPIDER';
_root.di.stream2 = 204;
}
frame 35 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(2);
}
}
movieClip 735 {
frame 52 {
_root.tiles.flyTrap.gotoAndStop(610);
}
frame 245 {
stop();
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(3);
}
}
movieClip 757 {
frame 146 {
stop();
_root.goFrame = 91;
_root.fade.play();
}
}
movieClip 768 {
}
movieClip 795 {
frame 23 {
_root.sfx.gotoAndStop(3);
_root.addObject(_root.addedOb);
_root['even' + _root.completedEvent] = 1;
if (!_root.waitdi == '') {
_root.di.number = 1;
_root.di.d1 = _root.waitdi;
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 30;
}
}
frame 26 {
_root.waitdi = '';
}
frame 45 {
_root.micon.gotoAndStop(_root.oldMouseFrame);
_parent.gotoAndStop(2);
}
}
movieClip 796 char {
frame 1 {
stop();
}
frame 6 {
_root.di.number = _root.setDiNumber;
if (_root.micon._currentframe == 61) {
_root.micon.gotoAndStop(_root.oldMouseFrame);
}
}
frame 7 {
_root.di.number = _root.setDiNumber;
if (_root.micon._currentframe == 61) {
_root.micon.gotoAndStop(_root.oldMouseFrame);
}
}
frame 8 {
_root.di.number = _root.setDiNumber;
if (_root.micon._currentframe == 61) {
_root.micon.gotoAndStop(_root.oldMouseFrame);
}
}
frame 9 {
_root.di.number = _root.setDiNumber;
if (_root.micon._currentframe == 61) {
_root.micon.gotoAndStop(_root.oldMouseFrame);
}
}
frame 32 {
_root.grisFrame = 1;
}
}
movieClip 797 tile {
}
// unknown tag 88 length 84
movieClip 801 empty {
}
frame 1 {
function SetSize(position) {
size = (position / 5 + 110) * _root.sizeScale;
return size;
}
function newGame() {
i = 1;
while (i <= _root.totalEvents) {
_root['even' + i] = 0;
++i;
}
i = 0;
while (i < invenLength) {
_root.inventory[i] = 1;
++i;
}
_root.di = {'wait': 0, 'number': 0, 'char1': 1, 'char2': 1, 'char3': 1, 'char4': 1, 'char5': 1, 'char6': 1, 'char7': 1, 'char8': 1, 'char9': 1, 'd1': '', 'd2': '', 'd3': '', 'd4': '', 'd5': '', 'd6': '', 'd7': '', 'd8': '', 'd9': ''};
_root.exit = false;
_root.inputting = 0;
Stage.showMenu = false;
_root.currentViewing = 2;
_root.bgSound = new Sound();
_root.soundCalc = 100;
_root.grisFrame = 1;
_root.grisX = 12;
_root.grisY = 10;
_root.levX = 0;
_root.setSpeed = 6;
_root.scrollSpeed = 6;
}
NewgroundsAPI.connectMovie(4943);
_root.waitdi = '';
_root.nameHints = 1;
_root._x = 10;
game = {'tileW': 30, 'tileH': 30};
game.Tile0 = function () {};
game.Tile0.prototype.walkable = true;
_root.exit = false;
_root.inputting = 0;
Stage.showMenu = false;
_root.currentViewing = 2;
_root.bgSound = new Sound();
_root.soundCalc = 100;
_root.grisFrame = 1;
_root.grisX = 12;
_root.grisY = 10;
_root.levX = 0;
_root.setSpeed = 6;
_root.scrollSpeed = 6;
}
frame 1 {
my_listener = new Object();
Mouse.addListener(my_listener);
my_listener.onMouseWheel = function (counter) {
if (_root.micon._currentframe != 61) {
currentFrame = _root.micon._currentframe;
foundFrame = 0;
if (currentFrame > 4) {
if (currentFrame == 60 || currentFrame == 61) {
foundFrame = currentFrame;
} else {
_root.addObject(currentFrame - 3);
}
}
if (counter > 0) {
while (foundFrame == 0) {
++currentFrame;
if (currentFrame > 100) {
foundFrame = 1;
} else {
if (currentFrame < 5) {
foundFrame = currentFrame;
} else {
foundFrame = findItem(currentFrame - 3);
}
}
}
} else {
while (foundFrame == 0) {
--currentFrame;
if (currentFrame < 1) {
currentFrame = 100;
} else {
if (currentFrame < 5) {
foundFrame = currentFrame;
} else {
foundFrame = findItem(currentFrame - 3);
}
}
}
}
_root.micon.gotoAndStop(foundFrame);
}
};
}
frame 1 {
function deleteFile() {
i = _root.fileSelected;
while (i < _root.saves.data.saves) {
_root.saves.data['File' + i + '_Name'] = _root.saves.data['File' + (i + 1) + '_Name'];
_root.saves.data['File' + i + '_Frame'] = _root.saves.data['File' + (i + 1) + '_Frame'];
_root.saves.data['File' + i + '_GrisX'] = _root.saves.data['File' + (i + 1) + '_GrisX'];
_root.saves.data['File' + i + '_GrisY'] = _root.saves.data['File' + (i + 1) + '_GrisY'];
_root.saves.data['File' + i + '_LevX'] = _root.saves.data['File' + (i + 1) + '_LevX'];
_root.saves.data['File' + i + '_Mouse'] = _root.saves.data['File' + (i + 1) + '_Mouse'];
e = 0;
while (e < invenLength) {
_root.saves.data['File' + i + '_Inven' + e] = _root.saves.data['File' + (i + 1) + '_Inven' + e];
++e;
}
e = 1;
while (e <= _root.totalEvents) {
_root.saves.data['File' + i + '_even' + e] = _root.saves.data['File' + (i + 1) + '_even' + e];
++e;
}
++i;
}
--_root.saves.data.saves;
}
function loadFile() {
_root.goFrame = _root.saves.data['File' + _root.fileSelected + '_Frame'];
_root.grisX = _root.saves.data['File' + _root.fileSelected + '_GrisX'];
_root.grisY = _root.saves.data['File' + _root.fileSelected + '_GrisY'];
_root.levX = _root.saves.data['File' + _root.fileSelected + '_LevX'];
_root.micon.gotoAndStop(_root.saves.data['File' + _root.fileSelected + '_Mouse']);
i = 0;
while (i < invenLength) {
_root.inventory[i] = _root.saves.data['File' + _root.fileSelected + '_Inven' + i];
++i;
}
i = 1;
while (i <= _root.totalEvents) {
_root['even' + i] = _root.saves.data['File' + _root.fileSelected + '_even' + i];
++i;
}
_root.popMenu.gotoAndStop(1);
gotoAndStop(100);
}
function autoSaveFile() {
saveNum = 0;
_root.saves.data['File' + saveNum + '_Name'] = 'Auto Save - ' + _root.eventUnlocked;
_root.saves.data['File' + saveNum + '_Frame'] = _root._currentframe;
_root.saves.data['File' + saveNum + '_GrisX'] = Math.round((_root.tiles.char._x - game.tileW / 2) / game.tileW);
_root.saves.data['File' + saveNum + '_GrisY'] = Math.round((_root.tiles.char._y - game.tileH / 2) / game.tileH);
_root.saves.data['File' + saveNum + '_LevX'] = _root.tiles._x;
_root.saves.data['File' + saveNum + '_Mouse'] = _root.micon._currentframe;
i = 0;
while (i < invenLength) {
_root.saves.data['File' + saveNum + '_Inven' + i] = _root.inventory[i];
++i;
}
i = 1;
while (i <= _root.totalEvents) {
_root.saves.data['File' + saveNum + '_even' + i] = _root['even' + i];
++i;
}
_root.saves.flush();
}
function shift() {
j = _root.saves.data.saves + 1;
while (j > 1) {
_root.saves.data['File' + j + '_Name'] = _root.saves.data['File' + (j - 1) + '_Name'];
_root.saves.data['File' + j + '_Frame'] = _root.saves.data['File' + (j - 1) + '_Frame'];
_root.saves.data['File' + j + '_GrisX'] = _root.saves.data['File' + (j - 1) + '_GrisX'];
_root.saves.data['File' + j + '_GrisY'] = _root.saves.data['File' + (j - 1) + '_GrisY'];
_root.saves.data['File' + j + '_LevX'] = _root.saves.data['File' + (j - 1) + '_LevX'];
_root.saves.data['File' + j + '_Mouse'] = _root.saves.data['File' + (j - 1) + '_Mouse'];
i = 0;
while (i < invenLength) {
_root.saves.data['File' + j + '_Inven' + i] = _root.saves.data['File' + (j - 1) + '_Inven' + i];
++i;
}
i = 1;
while (i <= _root.totalEvents) {
_root.saves.data['File' + j + '_even' + i] = _root.saves.data['File' + (j - 1) + '_even' + i];
++i;
}
--j;
}
_root.saves.flush();
}
function saveFile() {
shift();
++_root.saves.data.saves;
saveNum = 1;
_root.saves.data['File' + saveNum + '_Name'] = _root.saveFileName;
_root.saves.data['File' + saveNum + '_Frame'] = _root._currentframe;
_root.saves.data['File' + saveNum + '_GrisX'] = Math.round((_root.tiles.char._x - game.tileW / 2) / game.tileW);
_root.saves.data['File' + saveNum + '_GrisY'] = Math.round((_root.tiles.char._y - game.tileH / 2) / game.tileH);
_root.saves.data['File' + saveNum + '_LevX'] = _root.tiles._x;
_root.saves.data['File' + saveNum + '_Mouse'] = _root.micon._currentframe;
i = 0;
while (i < invenLength) {
_root.saves.data['File' + saveNum + '_Inven' + i] = _root.inventory[i];
++i;
}
i = 1;
while (i <= _root.totalEvents) {
_root.saves.data['File' + saveNum + '_even' + i] = _root['even' + i];
++i;
}
_root.saves.flush();
}
_root.totalEvents = 50;
i = 1;
while (i <= _root.totalEvents) {
_root['even' + i] = 0;
++i;
}
_root.saves = SharedObject.getLocal('GTG_IOF_SAVEFILES');
if (_root.saves.data.saves == undefined) {
_root.saves.data.saves = 0;
}
_root.saves.flush();
}
frame 1 {
function makeDialogue() {
_root.di.char1 = 'GRISWOLD';
_root.di.number = 1;
comment = random(6);
if (_root.micon._currentframe == 2) {
if (comment == 0) {
_root.di.d1 = 'Wow! It\'s nothing!';
}
if (comment == 1) {
_root.di.d1 = 'It doesn\'t look like anything important.';
}
if (comment == 2) {
_root.di.d1 = 'Nothing to see here.';
}
if (comment == 3) {
_root.di.d1 = 'You don\'t see anything of interest there.';
}
if (comment == 4) {
_root.di.d1 = 'Theres nothing important there.';
}
if (comment == 5) {
_root.di.d1 = 'Is it just me or is there a whole lot of nothing here?';
}
}
if (_root.micon._currentframe == 3) {
if (comment == 0) {
_root.di.d1 = 'You really shouldn\'t touch that.';
}
if (comment == 1) {
_root.di.d1 = 'Probably not the best idea...';
}
if (comment == 2) {
_root.di.d1 = 'You don\'t need that.';
}
if (comment == 3) {
_root.di.d1 = 'I\'m pretty sure that isn\'t going to help you at all!';
}
if (comment == 4) {
_root.di.d1 = 'What are you supposed to do with that?';
}
if (comment == 5) {
_root.di.d1 = 'There\'s nothing worth taking there.';
}
}
if (_root.micon._currentframe == 4) {
if (comment == 0) {
_root.di.d1 = 'You get no response...';
}
if (comment == 1) {
_root.di.d1 = 'There\'s nothing to talk to there.';
}
if (comment == 2) {
_root.di.d1 = '...';
}
if (comment == 3) {
_root.di.d1 = 'Talking to nothing isn\'t going to help you in your quest!';
}
if (comment == 4) {
_root.di.d1 = 'What are you trying to talk to?';
}
if (comment == 5) {
_root.di.d1 = 'I don\'t think that it has much to say.';
}
}
if (_root.micon._currentframe > 4) {
if (comment == 0) {
_root.di.d1 = 'What good would come of that?';
}
if (comment == 1) {
_root.di.d1 = 'This item can\'t be used on that.';
}
if (comment == 2) {
_root.di.d1 = 'There\'s no point in doing that.';
}
if (comment == 3) {
_root.di.d1 = 'That\'s a stupid idea!';
}
if (comment == 4) {
_root.di.d1 = 'And what is that supposed to achieve?';
}
if (comment == 5) {
_root.di.d1 = 'What are you trying to achieve by doing that?';
}
}
}
_root.di = {'wait': 0, 'number': 0, 'char1': 1, 'char2': 1, 'char3': 1, 'char4': 1, 'char5': 1, 'char6': 1, 'char7': 1, 'char8': 1, 'char9': 1, 'd1': '', 'd2': '', 'd3': '', 'd4': '', 'd5': '', 'd6': '', 'd7': '', 'd8': '', 'd9': ''};
}
frame 1 {
function addObject(ob) {
if (ob > 1) {
if (_root.addedOb > 0) {
_root.popMenu.newDis.gotoAndPlay(2);
}
i = 0;
while (i < _root.inventory.length) {
if (_root.inventory[i] == 1) {
_root.inventory[i] = ob;
_root.popMenu['box' + i].gotoAndStop(ob);
i = _root.inventory.length;
}
++i;
}
}
}
function findItem(item) {
i = 0;
while (i < _root.inventory.length) {
if (_root.inventory[i] == item) {
_root.inventory[i] = 1;
_root.popMenu['box' + i].gotoAndStop(1);
return currentFrame;
}
++i;
}
return 0;
}
invenLength = 16;
_root.inventory = [];
i = 0;
while (i < invenLength) {
_root.inventory[i] = 1;
++i;
}
}
frame 1 {
function buildMap() {
_root.nogo.gotoAndStop(_root._currentframe);
if (_root.tiles.lef._currentframe == 1) {
_root.nogo.blockLeft.gotoAndStop(2);
}
if (_root.tiles.rit._currentframe == 1) {
_root.nogo.blockRight.gotoAndStop(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, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
game.mapWidth = map[0].length;
game.mapHeight = map.length;
var v3 = 0;
while (v3 < game.mapHeight) {
var v2 = 0;
while (v2 < game.mapWidth) {
if (_root.nogo.hitTest(v2 * game.tileW + game.tileW / 2, v3 * game.tileH + game.tileH / 2, true)) {
map[v3][v2] = 1;
} else {
map[v3][v2] = 0;
}
game['t_' + v3 + '_' + v2] = new game['Tile' + map[v3][v2]]();
++v2;
}
++v3;
}
_root.nogo.swapDepths(2);
_root.nogo.removeMovieClip();
char = _root.tiles.char;
char._x = char.xtile * game.tileW + game.tileW / 2;
char._y = char.ytile * game.tileW + game.tileW / 2;
char._height = SetSize(char._y);
char._width = char._height;
char.gotoAndStop(_root.grisFrame);
char.walk.gotoAndStop(1);
char.swapDepths(char._y);
}
}
frame 1 {
function moveChar() {
char = _root.tiles.char;
if ((char._x - game.tileW / 2) % game.tileW == 0 && (char._y - game.tileH / 2) % game.tileH == 0) {
char.xtile = Math.floor(char._x / game.tileW);
char.ytile = Math.floor(char._y / game.tileH);
if (char.clicked) {
char.clicked = false;
findPath(char.xtile, char.ytile, char.targetx, char.targety);
return undefined;
}
if (char.path.length > 0 && _root.popMenu._currentframe == 1) {
char.targety = char.path.pop();
char.targetx = char.path.pop();
if (char.targetx > char.xtile) {
char.dirx = _root.setSpeed;
char.diry = 0;
char.gotoAndStop(4);
} else {
if (char.targetx < char.xtile) {
char.dirx = -_root.setSpeed;
char.diry = 0;
char.gotoAndStop(2);
} else {
if (char.targety > char.ytile) {
char.dirx = 0;
char.diry = _root.setSpeed;
char.gotoAndStop(1);
} else {
char.dirx = 0;
char.diry = -_root.setSpeed;
char.gotoAndStop(3);
}
}
}
char.walk.play();
} else {
char.walk.gotoAndStop(1);
char.moving = false;
return undefined;
}
}
char._y += char.diry / 2;
char._x += char.dirx;
char._height = SetSize(char._y);
char._width = char._height;
char.swapDepths(char._y);
}
}
frame 1 {
function checkTarget(mX, mY) {
game.xmouse = Math.round((mX - _root.tiles._x - game.tileW / 2) / game.tileW);
game.ymouse = Math.round((mY - _root.tiles._y - game.tileH / 2) / game.tileH);
if (game['t_' + game.ymouse + '_' + game.xmouse].walkable) {
_root.micon.cross.gotoAndStop(1);
} else {
_root.micon.cross.gotoAndStop(2);
}
}
function getTarget() {
char = _root.tiles.char;
char.targetx = game.xmouse;
char.targety = game.ymouse;
if (!char.moving) {
findPath(char.xtile, char.ytile, char.targetx, char.targety);
} else {
char.clicked = true;
}
}
}
frame 1 {
function addNode(ob, x, y, targetx, targety) {
path.name = 'node_' + y + '_' + x;
if (game['t_' + y + '_' + x].walkable) {
var v2 = Math.abs(x - targetx) + Math.abs(y - targety);
if (path[path.name].cost > v2 or path[path.name].cost == undefined) {
path[path.name] = {'x': x, 'y': y, 'visited': false, 'parentx': ob.x, 'parenty': ob.y, 'cost': v2};
var v1 = 0;
while (v1 < path.Unchecked_Neighbours.length) {
if (v2 < path.Unchecked_Neighbours[v1].cost) {
path.Unchecked_Neighbours.splice(v1, 0, path[path.name]);
break;
}
++v1;
}
if (v1 >= path.Unchecked_Neighbours.length) {
path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name];
}
}
}
}
function make_path(ob) {
char = _root.tiles.char;
char.path = [];
while (ob.parentx != null) {
char.path[char.path.length] = ob.x;
char.path[char.path.length] = ob.y;
ob = path['node_' + ob.parenty + '_' + ob.parentx];
}
char.moving = true;
}
function findPath(startx, starty, targetx, targety) {
path = {};
path.Unchecked_Neighbours = [];
path.name = 'node_' + starty + '_' + startx;
var v6 = Math.abs(startx - targetx) + Math.abs(starty - targety);
path[path.name] = {'x': startx, 'y': starty, 'visited': true, 'parentx': null, 'parenty': null, 'cost': v6};
path.Unchecked_Neighbours[path.Unchecked_Neighbours.length] = path[path.name];
while (path.Unchecked_Neighbours.length > 0) {
var v1 = path.Unchecked_Neighbours.shift();
if (v1.x == targetx and v1.y == targety) {
make_path(v1);
break;
} else {
v1.visited = true;
addNode(v1, v1.x + 1, v1.y, targetx, targety);
addNode(v1, v1.x - 1, v1.y, targetx, targety);
addNode(v1, v1.x, v1.y + 1, targetx, targety);
addNode(v1, v1.x, v1.y - 1, targetx, targety);
}
}
}
}
frame 1 {
function scrollMovement() {
scrollGive = 150;
if (_root.micon._currentframe == 61) {
xVal = _root.scrollTarg;
if (_root.tiles._x < xVal - _root.scrollSpeed) {
_root.tiles._x += _root.scrollSpeed;
} else {
if (_root.tiles._x > xVal + _root.scrollSpeed) {
_root.tiles._x -= _root.scrollSpeed;
}
}
} else {
xVal = _root.tiles.char._x + _root.tiles._x;
if (_root.tiles._x > _root.minX) {
if (xVal > 720 - scrollGive) {
_root.tiles._x -= _root.scrollSpeed;
} else {
if (_root._xmouse > 700 && xVal > scrollGive + _root.scrollSpeed) {
_root.tiles._x -= _root.scrollSpeed;
}
}
}
if (_root.tiles._x < _root.maxX) {
if (xVal < scrollGive) {
_root.tiles._x += _root.scrollSpeed;
} else {
if (_root._xmouse < 20 && xVal < 720 - scrollGive - _root.scrollSpeed) {
_root.tiles._x += _root.scrollSpeed;
}
}
}
}
}
}
frame 1 {
function mouseMovement() {
if (_root.micon._currentframe < 5) {
_root.oldMouseFrame = _root.micon._currentframe;
}
if (_root._currentframe < 80 || _root._currentframe > 90) {
if (_root.popMenu.speechBubble.hitTest(_root._xmouse, _root._ymouse, true) || _root._currentframe >= 99 || _root._currentframe == 1 || _root.popMenu._currentframe > 2 || _root._xmouse > 265 && _root._ymouse > 400) {
_root.micon._x = -100;
_root.menuMicon._x = _root._xmouse;
_root.menuMicon._y = _root._ymouse;
} else {
if (_root.nameHints == 1) {
if (_root.micon._currentframe == 1) {
_root.micon._y < 415 ? _root.micon.nameDis.gotoAndStop(2) : _root.micon.nameDis.gotoAndStop(1);
} else {
_root.micon.nameDis.gotoAndStop(1);
}
} else {
_root.micon.nameDis.gotoAndStop(2);
}
_root.menuMicon._x = -100;
_root.micon._x = _root._xmouse;
_root.micon._y = _root._ymouse;
}
Mouse.hide();
_root.checkTarget(_root._xmouse, _root._ymouse);
}
}
function mouseIsDown() {
if (_root.popMenu._currentframe == 1 && _root.di.number <= 1) {
if (_root.micon._currentframe == 1 && _root.micon.cross._currentframe == 1 || _root.micon._currentframe == 60) {
_root.getTarget();
}
}
}
}
frame 1 {
function work() {
char = _root.tiles.char;
if (char.moving) {
moveChar();
} else {
char.walk.gotoAndStop(1);
if (_root.micon._currentframe == 61) {
if (_root.exit == true) {
_root.exit = false;
_root.fade.play();
} else {
char.gotoAndStop(_root.animFrame);
if (_root.animFrame < 5) {
_root.di.number = _root.setDiNumber;
_root.micon.gotoAndStop(_root.oldMouseFrame);
}
}
}
}
}
}
frame 1 {
_root.totalSongs = 10;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i + '_frame'] = 1;
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
++i;
}
_root.songNumber = 0;
_root.ambNumber = 0;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 1 {
stop();
}
movieClip 804 {
}
movieClip 808 {
}
movieClip 818 {
frame 40 {
stop();
}
}
movieClip 831 {
}
button 832 {
on (press) {
tellTarget ('_root.menu') {
nextFrame();
}
}
}
button 833 {
on (press) {
gotoAndStop('end');
_root.menu.play();
}
}
movieClip 834 {
instance of movieClip 808 {
onClipEvent (load) {
_root.stop();
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndStop('lastframe');
}
}
onClipEvent (enterFrame) {
PercentLoaded = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (PercentLoaded != 100) {
_parent.gotoAndStop(PercentLoaded);
} else {
_parent.gotoAndPlay('loaded');
}
}
}
frame 101 {
play();
}
frame 165 {
stop();
}
}
button 840 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
button 846 {
on (release) {
NewgroundsAPI.loadNewgrounds();
}
}
movieClip 847 {
}
movieClip 848 {
frame 1 {
function startAd(ngad_url) {
trace('opening ' + ngad_url);
System.security.allowDomain('70.87.128.99');
System.security.allowInsecureDomain('70.87.128.99');
System.security.allowDomain('ads.shizmoo.com');
System.security.allowInsecureDomain('ads.shizmoo.com');
System.security.allowDomain('www.cpmstar.com');
System.security.allowInsecureDomain('www.cpmstar.com');
System.security.allowDomain('server.cpmstar.com');
System.security.allowInsecureDomain('server.cpmstar.com');
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace('[NEWGROUNDS FLASH ADS] :: You may get a \'Security Sandbox Violation\' ... this is normal, do not freak out!');
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), 'GET');
} else {}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
}
}
movieClip 851 {
}
movieClip 853 {
}
movieClip 855 {
}
movieClip 856 {
frame 316 {
_parent._parent.nextFrame();
}
}
movieClip 857 {
}
movieClip 945 {
frame 159 {
stop();
_parent.nextFrame();
}
}
movieClip 950 {
frame 20 {
stop();
}
}
movieClip 951 {
frame 50 {
stop();
}
}
movieClip 953 {
}
movieClip 954 {
}
movieClip 956 {
}
movieClip 971 {
}
movieClip 973 {
}
movieClip 975 {
}
movieClip 977 {
}
movieClip 979 {
}
movieClip 980 {
frame 291 {
_root.menu.play();
}
}
button 985 {
on (press) {
this.nextFrame();
}
}
button 989 {
on (press) {
this.gotoAndStop(7);
}
}
button 993 {
on (press) {
this.gotoAndStop(8);
}
}
button 997 {
on (press) {
getURL('http://www.newgrounds.com', _blank);
}
}
button 1001 {
on (press) {
getURL('http://www.newgrounds.com/portal/view/267573', _blank);
}
}
movieClip 1007 {
}
// unknown tag 88 length 84
movieClip 1011 {
}
movieClip 1012 {
frame 1 {
this.highlighted.gotoAndStop(1);
this.onPress = function () {
if (_root.saves.data['File' + this.number + '_Name'] == undefined) {
_root.fileSelected = -1;
} else {
_root.fileSelected = this.number;
}
};
this.onRollOver = function () {
rollover = 1;
this.highlighted.gotoAndStop(2);
};
this.onRollOut = function () {
rollover = 0;
if (_root.fileSelected != this.number) {
this.highlighted.gotoAndStop(1);
}
};
onEnterFrame = function () {
if (_root.fileSelected == this.number) {
this.highlighted.gotoAndStop(2);
this.select.gotoAndStop(1);
} else {
if (rollover != 1) {
this.select.gotoAndStop(2);
this.highlighted.gotoAndStop(1);
}
}
this._y = (number + 1) * 30 - _root.viewing * 30;
if (this._y < 20 || this._y > 250) {
this._x = 500;
} else {
this._x = 0;
}
};
}
}
movieClip 1015 {
}
movieClip 1017 {
frame 1 {
dif = _root.saves.data.saves - 7;
if (dif < 1) {
dif = 1;
}
scale = (_root.saves.data.saves + 1) / 8;
if (scale < 1) {
scale = 1;
}
scrollSpd = 3;
hei = 216 / scale;
this.bg._height = hei;
startY = 15 + this._height / 2;
this._y = startY;
down = false;
onPress = function () {
myPos = this._y;
mousePos = _root._ymouse;
down = true;
};
onMouseUp = function () {
_parent.scrollUp = false;
_parent.scrollDown = false;
down = false;
};
onEnterFrame = function () {
_root.viewing = ((this._y - startY) / (216 - hei)) * dif;
this._y -= (3 * _parent.scrollUp - 3 * _parent.scrollDown) / scale;
if (this._y > startY + (216 - hei)) {
this._y = startY + (216 - hei);
} else {
if (this._y < startY) {
this._y = startY;
}
}
if (down) {
moveTo = myPos + _root._ymouse - mousePos;
if (moveTo < startY) {
moveTo = startY;
} else {
if (moveTo > startY + (216 - hei)) {
moveTo = startY + (216 - this._height);
}
}
this._y = moveTo;
}
};
my_listener = new Object();
Mouse.addListener(my_listener);
my_listener.onMouseWheel = function (counter) {
scrollTo = _y - counter * 2;
if (scrollTo > startY + (216 - hei)) {
scrollTo = startY + (216 - hei);
}
if (scrollTo < startY) {
scrollTo = startY;
}
_y = scrollTo;
};
}
}
button 1020 {
on (press) {
scrollUp = true;
}
}
button 1021 {
on (press) {
scrollDown = true;
}
}
movieClip 1023 {
frame 1 {
i = 0;
while (i <= _root.saves.data.saves) {
duplicateMovieClip(this.item, 'item' + i, i + 1);
this['item' + i].fileName = _root.saves.data['File' + i + '_Name'];
if (i > 0) {
this['item' + i].dispName = i + '. ' + _root.saves.data['File' + i + '_Name'];
} else {
if (_root.saves.data['File' + i + '_Name'] == undefined) {
this['item' + i].dispName = '- Empty -';
} else {
this['item' + i].dispName = _root.saves.data['File' + i + '_Name'];
}
}
this['item' + i]._x = 0;
this['item' + i].number = i;
this['item' + i]._y = i * 30 - _root.viewing * 30 + 30;
++i;
}
}
}
button 1025 {
on (press) {
_root.fade.play();
_root.goFrame = 90;
}
}
button 1028 {
on (press) {
if (_root.fileSelected >= 0) {
_root.fade.gotoAndPlay(8);
_root.loadFile();
}
}
}
button 1031 {
on (press) {
this.prevFrame();
}
}
button 1034 {
on (press) {
this.gotoAndStop(5);
}
}
button 1046 {
on (press) {
this.gotoAndStop(9);
}
}
button 1049 {
on (press) {
this.gotoAndStop(5);
}
}
movieClip 1052 {
}
button 1053 {
on (press) {
getURL('http://www.newgrounds.com', _blank);
}
}
button 1054 {
on (press) {
getURL('http://www.bgroupproductions.com', _blank);
}
}
button 1055 {
on (press) {
getURL('http://www.holmesmusic.com', _blank);
}
}
button 1056 {
on (press) {
getURL('http://tomamoto.newgrounds.com/', _blank);
}
}
button 1057 {
on (press) {
getURL('http://phantasmagor.newgrounds.com/', _blank);
}
}
button 1061 {
on (press) {
this.gotoAndStop(8);
}
}
button 1063 {
on (press) {
getURL('http://www.newgrounds.com/audio/listen/198776', _blank);
}
}
button 1064 {
on (press) {
getURL('http://www.newgrounds.com/audio/listen/198775', _blank);
}
}
button 1065 {
on (press) {
getURL('http://www.newgrounds.com/audio/listen/198714', _blank);
}
}
button 1066 {
on (press) {
getURL('http://www.newgrounds.com/audio/listen/198713', _blank);
}
}
button 1067 {
on (press) {
getURL('http://www.newgrounds.com/audio/listen/101687', _blank);
}
}
movieClip 1068 {
frame 1 {
stop();
if (_root.menview != undefined) {
gotoAndStop(5);
}
}
frame 1 {
}
frame 2 {
l1.removeMovieClip();
l2.removeMovieClip();
stop();
logo1.onPress = function () {
getURL('http://phantasmagor.newgrounds.com/', _blank);
};
}
frame 3 {
stop();
logo2.onPress = function () {
getURL('http://www.bgroupproductions.com/', _blank);
};
}
frame 4 {
stop();
logo3.onPress = function () {
getURL('http://www.newgrounds.com/', _blank);
};
}
frame 5 {
if (_root.song5._currentframe == 1) {
_root.song5.play();
}
_root.menview = true;
}
frame 5 {
stop();
}
frame 6 {
_root.viewing = 0;
i = 0;
if (_root.saves.data['File' + i + '_Name'] == undefined) {
_root.fileSelected = -1;
} else {
_root.fileSelected = 0;
}
}
}
movieClip 1075 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
}
frame 22 {
_root.goFrame = 99;
_root.gotoAndStop(100);
}
}
movieClip 1081 {
frame 1 {
stop();
}
frame 1 {
if (_root.even50 != 1 && _root._currentframe == 2) {
_root.even50 = 1;
duplicateMovieClip(_root.checker, 'arrow1', 1);
_root.arrow1._x = 500;
_root.arrow1._y = 370;
_root.di.wait = 2;
_root.di.number = 9;
i = 9;
while (i > 3) {
_root.di['stream' + i] = 1;
_root.di['char' + i] = 'TUTORIAL';
--i;
}
_root.di.d9 = 'Welcome to the first chapter of \'Griswold the Goblin - Islands of Fire\'! Click the mouse to continue.';
_root.di.d8 = 'Everything in the game is mouse controlled. If you\'re having trouble with anything, open the menu then click on help!';
_root.di.d7 = 'Also in the menu you will find the inventory where you can interact with and combine objects you find around the world.';
_root.di.d6 = 'Please notice that there is a walkthrough button below the menu button if you are having trouble solving the puzzles.';
_root.di.d5 = 'The 4 buttons at the bottom left allow you to select the mouse icon you want to use to interact with the world.';
_root.di.d4 = 'The game is long so make sure you use the save feature found in the menu regularly. Have fun!';
_root.animFrame = 6;
_root.di.d3 = 'Ohh no. The TV is broken! I suppose since I have nothing better to do, I might as well see if I can get that gem reward!';
_root.di.stream3 = 2;
_root.di.char3 = 'GRISWOLD';
_root.di.d2 = 'First I need to find out how to get to the Goblin City.';
_root.di.stream2 = 3;
_root.di.char2 = 'GRISWOLD';
_root.eventUnlocked = 'Game start';
_root.autoSaveFile();
}
if (_root.even21 == 1 && _root.even22 == 0 && _root._currentframe == 6) {
_root.di.number = 7;
_root.di.d7 = 'The gate has been re-sealed to make sure no one will ever go inside that horrible place again!';
_root.di.char7 = 'HUSBAND';
_root.di.stream7 = 503;
_root.di.d6 = 'Thank you Griswold for your heroic deeds.';
_root.di.char6 = 'WIFE';
_root.di.stream6 = 104;
_root.di.d5 = 'Don\'t mention it. So your wife told me that you might know how to find the Goblin City.';
_root.di.char5 = 'GRISWOLD';
_root.di.stream5 = 29;
_root.di.d4 = 'Ah yes! I travelled there many years ago. The city is directly beneath us under the ground. However I\'m not sure where the entrance is anymore.';
_root.di.char4 = 'HUSBAND';
_root.di.stream4 = 504;
_root.di.d3 = 'Sorry I couldn\'t be of more help. I truly owe you my life. Please take this key. It unlocks a chest of valuables I buried on the beach to the west.';
_root.di.char3 = 'HUSBAND';
_root.di.stream3 = 505;
_root.di.d2 = 'Valuables? I like the sound of that!';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 30;
}
if (_root._currentframe == 25 && _root.even15 == 0) {
_root.di.number = 1;
_root.di.wait = 120;
_root.di.d1 = 'It\'s too dark in here. You need to find a source of light to be able to proceed!';
}
}
frame 7 {
stopAllSounds();
}
frame 8 {
_root.gotoAndStop(100);
}
}
movieClip 1083 {
}
movieClip 1084 {
frame 83 {
this.removeMovieClip();
}
}
instance controller of movieClip 801 empty {
onClipEvent (enterFrame) {
_root.scrollMovement();
if (_root.fade._currentframe == 1 && _root.popMenu._currentframe == 1) {
_root.work();
} else {
_root.tiles.char.walk.gotoAndStop(1);
}
_root.mouseMovement();
}
onClipEvent (mouseDown) {
_root.mouseIsDown();
}
}
movieClip 1092 {
frame 1 {
stop();
}
frame 2 {
gotoAndStop(1);
}
frame 3 {
gotoAndStop(1);
}
frame 4 {
gotoAndStop(1);
}
frame 5 {
gotoAndStop(1);
}
frame 6 {
gotoAndStop(1);
}
frame 7 {
gotoAndStop(1);
}
}
movieClip 1094 {
}
movieClip 1095 {
frame 10 {
stop();
}
}
movieClip 1098 {
frame 1 {
stop();
onEnterFrame = function () {
this._x = _root.speechX;
this._y = _root.speechY;
if (this.bg._currentframe == 10) {
this.dialogueDis = this.char + ' : ' + this.dialogue;
} else {
this.dialogueDis = ' ';
}
};
}
}
movieClip 1101 {
frame 1 {
stop();
}
}
movieClip 1103 {
frame 1 {
stop();
}
}
movieClip 1126 {
}
movieClip 1149 {
}
movieClip 1152 {
}
movieClip 1154 {
frame 1 {
stop();
_root.oldMouseFrame = this._currentframe;
}
frame 2 {
_root.oldMouseFrame = this._currentframe;
}
frame 3 {
_root.oldMouseFrame = this._currentframe;
}
frame 4 {
_root.oldMouseFrame = this._currentframe;
}
instance of movieClip 1149 {
onClipEvent (enterFrame) {
this._rotation = _root.exitRot;
}
}
frame 61 {
_root.objectName = '';
}
}
movieClip 1156 {
}
// unknown tag 88 length 153
movieClip 1160 {
frame 1997 {
gotoAndPlay(2);
}
}
movieClip 1162 {
frame 544 {
gotoAndPlay(2);
}
}
movieClip 1164 {
frame 322 {
gotoAndPlay(2);
}
}
movieClip 1166 {
frame 435 {
gotoAndPlay(3);
}
}
movieClip 1168 {
frame 2465 {
gotoAndPlay(3);
}
}
movieClip 1172 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1173 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1174 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1175 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1176 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1177 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1178 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1179 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1180 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1181 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1182 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1183 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1184 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1185 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1186 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1187 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1188 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1189 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1190 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1191 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1192 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1193 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1194 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1195 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1196 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1197 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1198 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1199 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1200 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1201 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1202 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1203 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1204 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1205 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1206 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1207 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1208 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1209 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1210 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1211 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1212 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1213 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1214 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1215 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1216 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1217 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1218 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1219 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1220 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1221 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1222 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1223 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1224 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 20 {
playCount = 1;
}
}
movieClip 1225 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1226 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1227 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1228 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1229 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1230 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1231 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1232 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1233 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1234 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1235 {
frame 1 {
if (playCount == 1) {
stop();
}
}
frame 2 {
playCount = 1;
}
}
movieClip 1236 {
frame 1 {
stop();
}
}
movieClip 1239 {
frame 4 {
stop();
}
}
movieClip 1241 {
frame 825 {
gotoAndPlay(2);
}
}
movieClip 1243 {
frame 520 {
gotoAndPlay(2);
}
}
movieClip 1245 {
frame 341 {
gotoAndPlay(2);
}
}
movieClip 1247 {
frame 474 {
gotoAndPlay(2);
}
}
movieClip 1249 {
frame 1135 {
gotoAndPlay(2);
}
}
movieClip 1252 {
frame 4 {
stop();
}
frame 474 {
gotoAndPlay(2);
}
}
movieClip 3384 __Packages.NewgroundsAPI {
#initclip
if (!_global.NewgroundsAPI) {
var v1 = function () {};
_global.NewgroundsAPI = v1;
var v2 = v1.prototype;
v1.connectMovie = function (id) {
if (!id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.connectMovie(id:Number)');
} else {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendMessage('Connecting to API gateway...');
NewgroundsAPI.tracker_id = id;
NewgroundsAPI.host = (_url.split('/'))[2].toLowerCase();
if (NewgroundsAPI.host.length < 1) {
NewgroundsAPI.host = 'localhost';
}
var v2 = new Object();
NewgroundsAPI.SendEvent(NewgroundsAPI.MOVIE_VIEWS);
}
}
};
v1.setMovieVersion = function (movie_version) {
if (!movie_version) {
NewgroundsAPI.SendError('Missing required \'version\' in NewgroundsAPI.setMovieVersion(version:String)');
} else {
NewgroundsAPI.version = movie_version;
}
};
v1.debugMode = function () {
NewgroundsAPI.debug = true;
};
v1.addCustomEvent = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)');
} else {
NewgroundsAPI.custom_events[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom event: ' + stat_name);
}
}
};
v1.addCustomLink = function (stat_id, stat_name) {
if (!stat_id) {
NewgroundsAPI.SendError('Missing required \'id\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
if (!stat_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)');
} else {
NewgroundsAPI.custom_links[stat_name] = NewgroundsAPI.CUSTOM_STATS + stat_id;
NewgroundsAPI.SendMessage('Created custom link ' + stat_id + ': ' + stat_name);
}
}
};
v1.loadMySite = function () {
NewgroundsAPI.SendLink(NewgroundsAPI.AUTHOR_SITE);
};
v1.loadNewgrounds = function (special) {
if (special) {
var v1 = {'page': special};
}
NewgroundsAPI.SendLink(NewgroundsAPI.NEWGROUNDS, v1);
};
v1.logCustomEvent = function (event_name) {
if (!event_name) {
NewgroundsAPI.SendError('Missing required \'event_name\' parameter in NewgroundsAPI.logCustomEvent(event_name:String)');
} else {
if (!NewgroundsAPI.custom_events[event_name]) {
NewgroundsAPI.SendError('Attempted to log undefined custom event: ' + event_name);
} else {
NewgroundsAPI.SendEvent(NewgroundsAPI.custom_events[event_name]);
}
}
};
v1.loadCustomLink = function (link_name) {
if (!link_name) {
NewgroundsAPI.SendError('Missing required \'link_name\' parameter in NewgroundsAPI.loadCustomLink(link_name:String)');
} else {
if (!NewgroundsAPI.custom_links[link_name]) {
NewgroundsAPI.SendError('Attempted to open undefined custom link: ' + link_name);
} else {
NewgroundsAPI.SendLink(NewgroundsAPI.custom_links[link_name]);
}
}
};
v1.getAdURL = function () {
return NewgroundsAPI.movie_options.ad_url;
};
v1.getMovieURL = function () {
if (NewgroundsAPI.movie_options.movie_url) {
return NewgroundsAPI.movie_options.movie_url;
} else {
return 'Newgrounds.com';
}
};
v1.getNewVersionURL = function () {
return NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + NewgroundsAPI.NEW_VERSION;
};
v1.SendEvent = function (id) {
NewgroundsAPI.SendStat(id, false);
};
v1.SendLink = function (id, extra) {
NewgroundsAPI.SendStat(id, true, extra);
};
v1.ReadGatewayData = function (params) {
for (var v2 in params) {
params[v2] = unescape(params[v2]);
NewgroundsAPI.movie_options[v2] = params[v2];
}
if (params.settings_loaded) {
NewgroundsAPI.SendMessage('You have successfully connected to the Newgrounds API gateway!');
NewgroundsAPI.SendMessage('Movie Identified as \'' + NewgroundsAPI.movie_options.movie_name + '\'');
if (NewgroundsAPI.movie_options.message) {
NewgroundsAPI.SendMessage(NewgroundsAPI.movie_options.message);
}
if (NewgroundsAPI.movie_options.ad_url) {
NewgroundsAPI.SendMessage('Your movie has been approved to run Flash Ads');
NewgroundsAPI.onAdsApproved(NewgroundsAPI.movie_options.ad_url);
}
if (NewgroundsAPI.movie_options.movie_version and NewgroundsAPI.movie_options.movie_version.toString() != NewgroundsAPI.version.toString()) {
NewgroundsAPI.SendMessage('WARNING: The movie version configured in your API settings does not match this movie\'s version!');
NewgroundsAPI.onNewVersionAvailable(NewgroundsAPI.movie_options.movie_version, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.deny_host) {
NewgroundsAPI.SendMessage('You have blocked \'localHost\' in your API settings.');
NewgroundsAPI.SendMessage('If you wish to test your movie you will need to remove this block.');
NewgroundsAPI.onDenyHost(NewgroundsAPI.host, NewgroundsAPI.getMovieURL(), NewgroundsAPI.getNewVersionURL());
}
if (NewgroundsAPI.movie_options.request_portal_url == 1) {
var v4 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&portal_url=' + escape(_url);
var v3 = new XML();
v3.ignoreWhite = true;
v3.load(v4);
}
} else {
if (!NewgroundsAPI.movie_options.settings_loaded) {
NewgroundsAPI.SendError('Could not establish connection to the API gateway.');
}
}
};
v1.SendStat = function (stat_id, open_in_browser, extra) {
if (!NewgroundsAPI.tracker_id) {
NewgroundsAPI.SendError('API calls cannot be made without a valid movie id.');
NewgroundsAPI.SendError('Did you remember to add the "NewgroundsAPI.connectMovie()" code?');
} else {
var v7 = NewgroundsAPI.GATEWAY_URL + '?&id=' + NewgroundsAPI.tracker_id + '&host=' + escape(NewgroundsAPI.host) + '&stat=' + stat_id;
for (var v9 in extra) {
v7 += '&' + escape(v9) + '=' + escape(extra[v9]);
}
trace(v7);
if (NewgroundsAPI.debug) {
v7 += '&debug=1';
}
if (open_in_browser) {
getURL(v7, '_blank');
} else {
var v10 = new XML();
v10.ignoreWhite = true;
v10.onLoad = function (success) {
var v6 = new Object();
var v3 = 0;
while (v3 < this.firstChild.childNodes.length) {
var v4 = this.firstChild.childNodes[v3];
var v5 = v4.nodeName;
var v2 = v4.attributes.value;
if (v2 == Number(v2)) {
v2 = Number(v2);
}
v6[v5] = v2;
++v3;
}
NewgroundsAPI.ReadGatewayData(v6);
};
v10.load(v7);
}
}
};
v1.SendError = function (msg) {
trace('[NEWGROUNDS API ERROR] :: ' + msg);
};
v1.SendMessage = function (msg) {
trace('[NEWGROUNDS API] :: ' + msg);
};
v1.InitTextFormats = function () {
if (!NewgroundsAPI.error_format) {
NewgroundsAPI.error_format = new TextFormat();
NewgroundsAPI.error_format.font = 'Arial Black';
NewgroundsAPI.error_format.size = 48;
NewgroundsAPI.error_format.color = 16711680;
}
if (!NewgroundsAPI.header_format) {
NewgroundsAPI.header_format = new TextFormat();
NewgroundsAPI.header_format.font = 'Arial Black';
NewgroundsAPI.header_format.size = 24;
NewgroundsAPI.header_format.color = 16777215;
}
if (!NewgroundsAPI.normal_format) {
NewgroundsAPI.normal_format = new TextFormat();
NewgroundsAPI.normal_format.font = 'Arial';
NewgroundsAPI.normal_format.bold = true;
NewgroundsAPI.normal_format.size = 12;
NewgroundsAPI.normal_format.color = 16777215;
}
if (!NewgroundsAPI.link_format) {
NewgroundsAPI.link_format = new TextFormat();
NewgroundsAPI.link_format.color = 16776960;
NewgroundsAPI.link_format.underline = true;
}
};
v1.onNewVersionAvailable = function (version, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
var v2 = new Object();
v2.x = Stage.width / 2;
v2.y = Stage.height / 2;
_root.createEmptyMovieClip('NGAPI_new_version_overlay', _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(v2.x + 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(v2.x - 240, v2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip('exit', 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 230, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 210, v2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 214, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 226, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(v2.x + 226, v2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(v2.x + 214, v2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var v3 = 'Version ' + version + ' is now available at:' + '\n';
var v5 = v3.length;
v3 += movie_url;
var v4 = v3.length;
_root.NGAPI_new_version_overlay.createTextField('mouseblocker', 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField('newversion', 100, v2.x - 210, v2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = 'New Version Available!';
_root.NGAPI_new_version_overlay.newversion.setTextFormat(NewgroundsAPI.header_format);
_root.NGAPI_new_version_overlay.createTextField('message', 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = v3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(v5, v4, NewgroundsAPI.link_format);
};
v1.onDenyHost = function (hostname, movie_url, redirect_url) {
NewgroundsAPI.InitTextFormats();
_root.createEmptyMovieClip('NGAPI_deny_host_overlay', _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var v2 = 'This movie has not been approved for use on ' + hostname + '.';
v2 += '\r\rFor an aproved copy, please visit:\r';
var v4 = v2.length;
v2 += movie_url;
var v3 = v2.length;
_root.NGAPI_deny_host_overlay.createTextField('mousekill', 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField('error', 101, (Stage.width - 400) / 2, Stage.height / 2 - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = 'ERROR!';
_root.NGAPI_deny_host_overlay.error.setTextFormat(NewgroundsAPI.error_format);
_root.NGAPI_deny_host_overlay.createTextField('message', 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = v2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(NewgroundsAPI.normal_format);
NewgroundsAPI.link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(v4, v3, NewgroundsAPI.link_format);
};
v1.isInstalled = function () {
return true;
};
v1.onAdsApproved = function (ad_url) {};
v1.movie_options = new Object();
v1.custom_events = new Object();
v1.custom_links = new Object();
v1.MOVIE_VIEWS = 1;
v1.AUTHOR_SITE = 2;
v1.NEWGROUNDS = 3;
v1.NEW_VERSION = 4;
v1.CUSTOM_STATS = 50;
v1.GATEWAY_URL = 'http://www.ngads.com/gateway.php';
ASSetPropFlags(_global.NewgroundsAPI.prototype, null, 1);
}
#endinitclip
}
frame 2 {
_root.songNumber = 2;
_root.ambNumber = 2;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 2 {
stop();
_root.sizeScale = 1;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = -200;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
_root.addObject(_root.addedOb);
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 1255 {
on (rollOver) {
_root.objectName = 'Big Rock';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'What is the point of carrying that heavy rock around?';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Just a big rock.';
}
}
}
}
movieClip 1256 {
frame 1 {
swapDepths(_y);
}
}
movieClip 1258 {
frame 1 {
swapDepths(_y);
}
}
button 1260 {
on (rollOver) {
_root.objectName = 'Rock';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You have no need for rocks.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Just a rock.';
}
}
}
}
movieClip 1261 {
frame 1 {
swapDepths(_y);
}
}
button 1263 {
on (rollOver) {
_root.objectName = 'Drawers';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s nothing worth using in there.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a set of drawers.';
}
}
}
}
movieClip 1264 {
frame 1 {
swapDepths(_y);
}
}
movieClip 1266 {
frame 1 {
swapDepths(_y);
}
}
button 1268 {
on (rollOver) {
_root.objectName = 'Bed';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Are you really in the mood for making your bed?';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s your bed.';
}
}
}
}
button 1269 {
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.dialogue1 = 'I\'m not carrying this around with me.';
}
if (_root.micon._currentframe == 2) {
_root.dialogue1 = 'Just a table.';
}
}
}
}
button 1270 {
on (rollOver) {
_root.objectName = 'Pillows';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s no time for pillow fighting right now.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Sweet soft pillows.';
}
}
}
}
button 1271 {
on (rollOver) {
_root.objectName = 'Table';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Why would you carry that big thing around?';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Just a table.';
}
}
}
}
button 1273 {
on (rollOver) {
_root.objectName = 'Candle';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _parent._x + _root.tiles._x + 80, _y + _parent._y + _root.tiles._y + 140);
_root.getTarget();
_root.animFrame = 11;
_root.micon.gotoAndStop(61);
_root.completedEvent = 2;
_root.addedOb = 3;
_root.di.d1 = 'It could be useful if you find a way to light it.';
_root.eventUnlocked = 'Candle taken';
_root.scrollTarg = -200;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a candle that never gets used. It\'s pretty hard to find flame around here.';
}
}
}
}
movieClip 1274 {
frame 1 {
if (_root.even2 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even2 == 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
button 1275 {
on (rollOver) {
_root.objectName = 'Broken TV';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3 || _root.micon._currentframe == 13) {
if (_root.even12 == 1) {
_root.checkTarget(_x + _root.tiles._x + 100, _y + _root.tiles._y + 80);
_root.getTarget();
_root.grisFrame = 3;
_root.grisX = 17;
_root.grisY = 10;
_root.goFrame = 80;
_root.levX = -200;
if (_root.micon._currentframe == 13) {
_root.addObject(10);
}
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = -200;
_root.di.d1 = 'It\'s bug catching time!';
} else {
if (_root.even12 == 2) {
_root.di.d1 = 'You can\'t do anything with the TV anymore.';
} else {
_root.di.d1 = 'You can\'t catch the bugs on that TV until you find something to store them in.';
}
}
}
if (_root.micon._currentframe == 2) {
if (_root.even12 == 2) {
_root.di.d1 = 'There are no more bugs on the TV now.';
} else {
_root.di.d1 = 'Poor TV! It\'s got bugs crawling all over it.';
}
}
}
}
}
movieClip 1290 {
frame 1 {
if (_root.even12 == 2) {
stop();
}
}
frame 50 {
stop();
onEnterFrame = function () {
if (this._currentframe == 50) {
num = random(100);
if (num <= 5) {
play();
}
}
};
}
}
movieClip 1310 {
frame 1 {
if (_root.even12 == 2) {
stop();
}
}
frame 50 {
stop();
onEnterFrame = function () {
if (this._currentframe == 50) {
num = random(100);
if (num <= 5) {
play();
}
}
};
}
}
movieClip 1320 {
frame 1 {
if (_root.even12 == 2) {
stop();
}
}
frame 50 {
stop();
onEnterFrame = function () {
if (this._currentframe == 50) {
num = random(100);
if (num <= 5) {
play();
}
}
};
}
}
movieClip 1321 {
frame 1 {
swapDepths(_y);
}
}
button 1323 {
on (rollOver) {
_root.objectName = 'Stone Mug';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _root.tiles._x + 80, _y + _root.tiles._y + 150);
_root.getTarget();
_root.animFrame = 11;
_root.micon.gotoAndStop(61);
_root.completedEvent = 1;
_root.addedOb = 2;
_root.di.d1 = 'Well you never know when you might need a stone mug.';
_root.eventUnlocked = 'Mug taken';
_root.scrollTarg = 0;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s an old stone mug. It still looks pretty solid though.';
}
}
}
}
movieClip 1324 {
frame 1 {
swapDepths(500);
if (_root.even1 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even1 == 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
button 1325 {
on (rollOver) {
_root.objectName = 'Door Mat';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'What would you use this doormat for?';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s your door mat, it says \'Cave, sweet cave\'';
}
}
}
}
button 1326 {
on (rollOver) {
_root.objectName = 'Big Rock';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Uuh... you expect to be able to move that?';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s just a big rock.';
}
}
}
}
button 1327 {
on (rollOver) {
_root.objectName = 'De-gas pills';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You\'ve already taken your dosage of de-gas pills. Just one pill per month for maximum effect.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a small bottle of de-gas pills. Apparently people don\'t like it when you fart.';
}
}
}
}
button 1329 {
on (rollOver) {
_root.objectName = 'Rock';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'What would you do with that?.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Those rocks look pretty sharp.';
}
}
}
}
button 1330 {
on (rollOver) {
_root.objectName = 'Stool';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _root.tiles._x + 70, _y + _root.tiles._y - 10);
_root.getTarget();
_root.animFrame = 19;
_root.micon.gotoAndStop(61);
_root.completedEvent = 3;
_root.addedOb = 4;
_root.di.d1 = 'It\'s going to be annoying carrying that big thing around, but it might be useful.';
_root.eventUnlocked = 'Stool taken';
_root.scrollTarg = 0;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a little old stool.';
}
}
}
}
movieClip 1332 {
frame 1 {
swapDepths(_y);
if (_root.even3 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even3 == 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
movieClip 1334 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onRollOver = function () {
_root.objectName = 'Door';
};
this.onRollOut = function () {
_root.objectName = '';
};
this.onPress = function () {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the door to your humble home.';
}
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 30, _y + _root.tiles._y - 20);
_root.getTarget();
_root.grisFrame = 4;
_root.grisX = 4;
_root.grisY = 12;
_root.goFrame = 3;
_root.levX = 0;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = -200;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1) {
_root.exitLoc = 'TO: Outside of the Cave';
hit = true;
_root.exitRot = 30;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
movieClip 1374 {
}
button 1380 {
on (press) {
if (_root.micon._currentframe != 61) {
_root.popHelp.play();
}
}
}
button 1381 {
on (press, keyPress '<Space>') {
if (_root.popMenu._currentframe < 7 && _root.di.number <= 1) {
if (_root.micon._currentframe < 60) {
if (_root.popMenu._currentframe != _root.currentViewing) {
_root.popMenu.gotoAndPlay(10);
} else {
_root.popMenu.gotoAndStop(1);
}
}
}
}
}
button 1382 {
on (press, keyPress 'w') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(1);
}
}
on (rollOver) {
_root.objectName = 'Walk';
}
on (rollOut) {
_root.objectName = '';
}
}
button 1383 {
on (press, keyPress 'e') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(2);
}
}
on (rollOver) {
_root.objectName = 'Look';
}
on (rollOut) {
_root.objectName = '';
}
}
button 1384 {
on (press, keyPress 'r') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(3);
}
}
on (rollOver) {
_root.objectName = 'Touch';
}
on (rollOut) {
_root.objectName = '';
}
}
button 1385 {
on (press, keyPress 't') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(4);
}
}
on (rollOver) {
_root.objectName = 'Talk';
}
on (rollOut) {
_root.objectName = '';
}
}
button 1386 {
on (press) {
getURL('http://www.newgrounds.com/lit/griswold.html', _blank);
}
}
movieClip 1389 {
frame 1 {
stop();
}
}
movieClip 1411 {
frame 1 {
this.stop();
onEnterFrame = function () {
this.gotoAndStop(_parent.setOb);
};
}
}
button 1412 {
on (press) {
if (_root.micon._currentframe < 60) {
_root.popOpenFrameNumber = setOb;
_root.popMenu.gotoAndStop(2);
}
}
}
movieClip 1413 {
frame 1 {
stop();
onEnterFrame = function () {
if (this._currentframe > 1) {
this.play();
}
};
}
frame 3 {
setOb = _root.addedOb;
_root.addedOb = 0;
}
}
movieClip 1417 {
}
movieClip 1418 {
}
movieClip 1420 {
}
button 1435 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
}
}
button 1437 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 8) {
_root.micon.gotoAndStop(3);
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(6);
_root.eventUnlocked = 'Fishing rod and cup combined';
_root.addObject(6);
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'And now we have a fishing cup.';
_root.inventory[number] = 1;
this.gotoAndStop(1);
}
}
}
}
button 1438 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 15) {
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'You can\'t light the candle. The is wind too strong and it\'s blowing out the flame.';
}
if (_root.micon._currentframe == 13) {
if (_root.even13 == 1) {
_root.micon.gotoAndStop(3);
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(15);
_root.eventUnlocked = 'Candle and jar combined';
_root.addObject(15);
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'You\'ve created a lantern.';
_root.inventory[number] = 1;
this.gotoAndStop(1);
}
}
}
}
}
button 1441 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 5) {
_root.micon.gotoAndStop(3);
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(6);
_root.eventUnlocked = 'Fishing rod and cup combined';
_root.addObject(6);
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'And now we have a fishing cup.';
_root.inventory[number] = 1;
this.gotoAndStop(1);
}
}
}
}
button 1447 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 6) {
if (_root.even13 == 1) {
_root.micon.gotoAndStop(3);
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(15);
_root.eventUnlocked = 'Candle and jar combined';
_root.addObject(15);
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'You\'ve created a lantern.';
_root.inventory[number] = 1;
this.gotoAndStop(1);
}
}
}
}
}
button 1450 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 6) {
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'You can\'t light the candle. The wind is too strong and it\'s blowing out the flame.';
}
if (_root.micon._currentframe == 18) {
_root.micon.gotoAndStop(3);
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(16);
_root.even15 = 1;
_root.eventUnlocked = 'Lantern lit';
_root.addObject(16);
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'You\'ve now lit the lantern.';
}
if (_root.micon._currentframe == 20) {
_root.micon.gotoAndStop(23);
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(20);
_root.eventUnlocked = 'Gum Melted Off';
_root.addObject(19);
_root.di.wait = 100;
_root.di.number = 1;
_root.di.d1 = 'You melted off the gum.';
}
}
}
}
button 1454 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 15) {
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(16);
_root.even15 = 1;
_root.eventUnlocked = 'Lantern lit';
_root.di.wait = 60;
_root.di.number = 1;
_root.di.d1 = 'You\'ve now lit the lantern.';
_root.inventory[number] = 16;
this.gotoAndStop(16);
}
}
}
}
button 1457 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 15) {
_root.sfx.gotoAndStop(3);
_parent.big.gotoAndStop(20);
_root.eventUnlocked = 'Gum Melted Off';
_root.addObject(19);
_root.di.wait = 100;
_root.di.number = 1;
_root.di.d1 = 'You melted off the gum.';
_root.inventory[number] = 20;
this.gotoAndStop(20);
}
}
}
}
button 1458 {
on (press) {
added = 0;
if (_root.micon._currentframe > 4 && _currentframe == 1) {
this.gotoAndStop(_root.micon._currentframe - 3);
_root.inventory[number] = _root.micon._currentframe - 3;
_parent.big.gotoAndStop(_currentframe);
_root.micon.gotoAndStop(3);
added = 1;
}
if (added == 0 && _root.micon._currentframe == 3 && _currentframe > 1) {
if (_parent.big._currentframe == _currentframe) {
_parent.big.gotoAndStop(1);
}
_root.micon.gotoAndStop(_currentframe + 3);
_root.inventory[number] = 1;
gotoAndStop(1);
}
if (_root.micon._currentframe == 2) {
_parent.big.gotoAndStop(_currentframe);
}
if (_root.micon._currentframe == 4) {
_root.findItem(18);
_root.di.d1 = 'Bottoms up!';
_root.scrollTarg = _root.tiles._x;
_root.micon.gotoAndStop(61);
_root.even17 = 2;
_root.animFrame = 26;
_root.tiles.char.gotoAndStop(26);
_root.popMenu.gotoAndStop(1);
}
}
}
movieClip 1463 {
frame 1 {
stop();
}
}
button 1488 {
on (press) {
if (_root.micon._currentframe == 3 || _root.micon._currentframe == 2) {
_root.eventUnlocked = 'Solving map';
_root.autoSaveFile();
_root.grisFrame = _root.tiles.char._currentframe;
_root.grisX = Math.round((_root.tiles.char._x - _root.game.tileW / 2) / _root.game.tileW);
_root.grisY = Math.round((_root.tiles.char._y - _root.game.tileH / 2) / _root.game.tileH);
_root.levX = _root.tiles._x;
_root.goFrame = 81;
_root.returnFrame = _root._currentframe;
_root.fade.play();
}
}
}
button 1498 {
on (press) {
if (_root.micon._currentframe == 3) {
_root.di.number = 1;
_root.di.d1 = 'The gum is stuck on there really good. You\'ll have to use something to soften the gum.';
_root.di.wait = 100;
}
if (_root.micon._currentframe == 15) {
_root.sfx.gotoAndStop(3);
gotoAndStop(20);
_root.eventUnlocked = 'Gum Melted Off';
_root.findItem(17);
_root.addObject(19);
_root.addObject(20);
_root.di.wait = 100;
_root.di.number = 1;
_root.di.d1 = 'You melted off the gum.';
}
}
}
button 1502 {
on (press) {
if (_root.micon._currentframe == 4) {
_root.findItem(18);
_root.di.d1 = 'Bottoms up!';
_root.scrollTarg = _root.tiles._x;
_root.micon.gotoAndStop(61);
_root.even17 = 2;
_root.animFrame = 26;
_root.tiles.char.gotoAndStop(26);
_root.popMenu.gotoAndStop(1);
}
}
}
movieClip 1512 {
frame 1 {
stop();
frame = _root.popOpenFrameNumber;
_root.popOpenFrameNumber = 1;
this.gotoAndStop(frame);
}
}
button 1513 {
on (press) {
gotoAndStop(3);
}
}
button 1514 {
on (press) {
gotoAndStop(2);
}
}
button 1515 {
on (press) {
gotoAndStop(4);
}
}
button 1516 {
on (press) {
gotoAndStop(5);
}
}
button 1521 {
on (press, keyPress '<Space>') {
if (_root.popMenu._currentframe < 7) {
if (_root.micon._currentframe != 61) {
if (_root.popMenu._currentframe != _root.currentViewing) {
_root.popMenu.gotoAndStop(_root.currentViewing);
} else {
_root.popMenu.gotoAndPlay(17);
}
}
}
}
}
button 1522 {
on (press, keyPress 'e') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(2);
}
}
}
button 1523 {
on (press, keyPress 'r') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(3);
}
}
}
button 1524 {
on (press, keyPress 't') {
if (_root.micon._currentframe != 61) {
if (_root.micon._currentframe > 4) {
_root.addObject(_root.micon._currentframe - 3);
}
_root.micon.gotoAndStop(4);
}
}
}
button 1529 {
on (press) {
_root._quality = 'LOW';
}
}
button 1532 {
on (press) {
_root._quality = 'MEDIUM';
}
}
button 1535 {
on (press) {
_root._quality = 'HIGH';
}
}
button 1539 {
on (press) {
_root.setSpeed = 3;
}
}
button 1542 {
on (press) {
_root.setSpeed = 6;
}
}
button 1544 {
on (press) {
_root.setSpeed = 10;
}
}
movieClip 1547 {
}
button 1550 {
on (press) {
_root.scrollSpeed = 3;
}
}
button 1552 {
on (press) {
_root.scrollSpeed = 6;
}
}
movieClip 1557 {
}
movieClip 1558 {
frame 1 {
this.slider._x = _root.soundCalc * 2;
down = 0;
onPress = function () {
mouseX = _root._xmouse - _x - _parent._x;
if (mouseX >= -5 && mouseX <= 305) {
down = 1;
}
};
onMouseUp = function () {
_parent.slideLeft = false;
_parent.slideRight = false;
down = 0;
};
onEnterFrame = function () {
mouseX = _root._xmouse - _x - _parent._x;
if (_parent.slideLeft || _parent.slideRight) {
this.slider._x += 5 * (_parent.slideRight - _parent.slideLeft);
if (this.slider._x < 0) {
this.slider._x = 0;
}
if (this.slider._x > 250) {
this.slider._x = 250;
}
_root.soundCalc = this.slider._x / 2;
}
if (down) {
if (mouseX >= 25 && mouseX <= 275) {
this.slider._x = mouseX - 25;
}
if (mouseX <= 25) {
this.slider._x = 0;
} else {
if (mouseX >= 275) {
this.slider._x = 250;
}
}
_root.soundCalc = this.slider._x / 2;
} else {
this.slider._x = _root.soundCalc * 2;
}
_root.bgSound.setVolume(_root.soundCalc);
};
}
}
button 1573 {
on (press) {
_root.nameHints = 1;
}
}
button 1576 {
on (press) {
_root.nameHints = 0;
}
}
button 1594 {
on (press) {
slideLeft = true;
}
}
button 1595 {
on (press) {
slideRight = true;
}
}
button 1596 {
on (press) {
_root.scrollSpeed = 10;
}
}
button 1603 {
on (press) {
gotoAndStop(7);
}
}
button 1606 {
on (press) {
gotoAndStop(9);
}
}
button 1609 {
on (press) {
if (_root.fileSelected > 0) {
gotoAndStop(8);
}
}
}
button 1621 {
on (press) {
gotoAndStop(4);
}
}
button 1624 {
on (press, keyPress '<Enter>') {
_root.saveFile();
gotoAndStop(4);
}
}
button 1632 {
on (press, keyPress '<Enter>') {
_root.deleteFile();
gotoAndStop(4);
}
}
button 1638 {
on (press, keyPress '<Enter>') {
_root.loadFile();
gotoAndStop(1);
}
}
movieClip 1640 {
}
movieClip 1642 {
frame 1 {
stop();
}
instance speechBubble of movieClip 1420 {
onClipEvent (mouseDown) {
diWas = _root.di.number;
if (_root.di.number > 0 && !_root.char.moving) {
if (_root.di.number == 2 && _root.di.stream2 > 1) {
_root.di.number = 1;
_root.tiles.char.talk.play();
}
--_root.di.number;
_root.setDiNumber = _root.di.number;
(_root.di['char' + _root.di.number] == 'GRISWOLD') ? _root.tiles.char.gotoAndStop(_root.animFrame) : _root.tiles.char.talk.play();
}
if (diWas <= 1 && _root.micon._currentframe > 1 && _root.micon._currentframe != 60 && _root.micon._currentframe != 61 && _root._ymouse < 400 && _root.popMenu._currentframe == 1) {
_root.makeDialogue();
}
_root.di.wait = 15;
clickWait = 2;
}
onClipEvent (enterFrame) {
--clickWait;
if (clickWait == 0 && _root.di.number == 1) {
_root.di.wait = Math.round((length(_root.di.d1) + 10) / 100) * 100 + 50;
}
if (_root.di.number > 0) {
_root.streams.gotoAndStop(_root.di['stream' + _root.di.number]);
this.char = _root.di['char' + _root.di.number];
this.dialogue = _root.di['d' + _root.di.number];
_root.bubble.dialogue = this.dialogue;
_root.bubble.char = this.char;
if (_root.di['stream' + _root.di.number] <= 1) {
this.gotoAndStop(2);
_root.bubble.gotoAndStop(3);
} else {
this.gotoAndStop(1);
if (this.char == 'GRISWOLD') {
_root.speechX = _root.tiles.char._x + _root.tiles._x;
_root.speechY = _root.tiles.char._y - _root.tiles.char._height * 0.6666666666666666 - _root.tiles._y;
if (_root.speechX < 400) {
_root.bubble.gotoAndStop(2);
} else {
_root.bubble.gotoAndStop(1);
}
} else {
if (this.char == 'WIDOW') {
_root.speechX = 535;
_root.speechY = 140;
_root.bubble.gotoAndStop(1);
} else {
if (this.char == 'WIFE') {
_root.speechX = 535;
_root.speechY = 140;
_root.bubble.gotoAndStop(1);
} else {
if (this.char == 'SPIDER') {
_root.bubble.gotoAndStop(1);
_root.speechX = 580 + _root.tiles._x;
_root.speechY = 95;
} else {
if (this.char == 'LUMBERJACK') {
_root.bubble.gotoAndStop(1);
_root.speechX = 880 + _root.tiles._x;
_root.speechY = 95;
} else {
if (this.char == 'OWL') {
_root.bubble.gotoAndStop(1);
_root.speechX = 600 + _root.tiles._x;
_root.speechY = 120;
} else {
if (this.char == 'BEAST') {
_root.bubble.gotoAndStop(2);
_root.speechX = 980 + _root.tiles._x;
_root.speechY = 120;
} else {
if (this.char == 'HUSBAND') {
_root.bubble.gotoAndStop(1);
if (_root._currentframe == 6) {
_root.speechX = 585;
_root.speechY = 140;
} else {
_root.speechX = 1360 + _root.tiles._x;
_root.speechY = 100;
}
}
}
}
}
}
}
}
}
}
if (_root.di.number == 1) {
this.glow.gotoAndStop(1);
--_root.di.wait;
if (_root.di.wait <= 0) {
_root.di.number = 0;
}
} else {
this.glow.play();
}
} else {
_root.bubble.gotoAndStop(3);
_root.streams.gotoAndStop(1);
this.gotoAndStop(1);
}
}
}
frame 2 {
stop();
_root.currentViewing = 2;
i = 0;
while (i < _root.inventory.length) {
this['box' + i].gotoAndStop(_root.inventory[i]);
++i;
}
if (_root.micon._currentframe == 1 || _root.micon._currentframe == 3 || _root.micon._currentframe == 4) {
_root.micon.gotoAndStop(3);
}
_root.objectName = '';
}
instance box4 of movieClip 1463 {
onClipEvent (load) {
this.number = 4;
}
}
instance box5 of movieClip 1463 {
onClipEvent (load) {
this.number = 5;
}
}
instance box6 of movieClip 1463 {
onClipEvent (load) {
this.number = 6;
}
}
instance box7 of movieClip 1463 {
onClipEvent (load) {
this.number = 7;
}
}
instance box8 of movieClip 1463 {
onClipEvent (load) {
this.number = 8;
}
}
instance box9 of movieClip 1463 {
onClipEvent (load) {
this.number = 9;
}
}
instance box10 of movieClip 1463 {
onClipEvent (load) {
this.number = 10;
}
}
instance box11 of movieClip 1463 {
onClipEvent (load) {
this.number = 11;
}
}
instance box12 of movieClip 1463 {
onClipEvent (load) {
this.number = 12;
}
}
instance box13 of movieClip 1463 {
onClipEvent (load) {
this.number = 13;
}
}
instance box14 of movieClip 1463 {
onClipEvent (load) {
this.number = 14;
}
}
instance box15 of movieClip 1463 {
onClipEvent (load) {
this.number = 15;
}
}
instance box0 of movieClip 1463 {
onClipEvent (load) {
this.number = 0;
}
}
instance box1 of movieClip 1463 {
onClipEvent (load) {
this.number = 1;
}
}
instance box2 of movieClip 1463 {
onClipEvent (load) {
this.number = 2;
}
}
instance box3 of movieClip 1463 {
onClipEvent (load) {
this.number = 3;
}
}
frame 3 {
_root.currentViewing = 3;
slideLeft = false;
slideRight = false;
}
instance of movieClip 1547 {
onClipEvent (load) {
initX = this._x;
}
onClipEvent (enterFrame) {
if (_root.setSpeed == 3) {
this._x = initX;
} else {
if (_root.setSpeed == 6) {
this._x = initX + 140;
} else {
this._x = initX + 280;
}
}
}
}
instance of movieClip 1547 {
onClipEvent (load) {
initX = this._x;
}
onClipEvent (enterFrame) {
if (_root._quality == 'LOW') {
this._x = initX;
} else {
if (_root._quality == 'MEDIUM') {
this._x = initX + 140;
} else {
this._x = initX + 280;
}
}
}
}
instance of movieClip 1547 {
onClipEvent (load) {
initX = this._x;
}
onClipEvent (enterFrame) {
if (_root.scrollSpeed == 3) {
this._x = initX;
} else {
if (_root.scrollSpeed == 6) {
this._x = initX + 140;
} else {
this._x = initX + 280;
}
}
}
}
instance of movieClip 1547 {
onClipEvent (load) {
initX = this._x;
}
onClipEvent (enterFrame) {
if (_root.nameHints == 1) {
this._x = initX;
} else {
this._x = initX + 140;
}
}
}
frame 4 {
_root.currentViewing = 4;
_root.viewing = 0;
_root.fileSelected = 0;
}
frame 5 {
_root.currentViewing = 5;
}
frame 6 {
_root.currentViewing = 6;
}
frame 7 {
_root.currentViewing = 4;
clicktmp = false;
_root.saveFileName = '- Enter name here -';
onMouseDown = function () {
if (clicktmp == false) {
clicktmp = true;
_root.saveFileName = '';
}
};
}
frame 8 {
_root.currentViewing = 4;
_root.saveFileName = '"' + _root.saves.data['File' + _root.fileSelected + '_Name'] + '"';
}
frame 9 {
_root.currentViewing = 4;
_root.saveFileName = '"' + _root.saves.data['File' + _root.fileSelected + '_Name'] + '"';
}
frame 16 {
gotoAndStop(_root.currentViewing);
}
frame 23 {
gotoAndStop(1);
}
}
movieClip 1652 {
frame 1 {
stop();
}
frame 2 {
_root.autoSaveFile();
gotoAndStop(1);
}
frame 3 {
_root.autoSaveFile();
gotoAndStop(1);
}
frame 4 {
gotoAndStop(1);
}
frame 5 {
gotoAndStop(1);
}
frame 6 {
gotoAndStop(1);
}
frame 7 {
gotoAndStop(1);
}
frame 8 {
gotoAndStop(1);
}
frame 9 {
gotoAndStop(1);
}
}
frame 3 {
_root.songNumber = 1;
_root.ambNumber = 1;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 3 {
stop();
_root.sizeScale = 1;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = -300;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 1669 {
frame 1 {
this.gotoAndPlay(random(30) + 150);
}
frame 29 {
this.gotoAndPlay(random(100) + 30);
}
frame 200 {
gotoAndPlay(2);
}
}
button 1672 {
on (rollOver) {
_root.objectName = 'Jar';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _root.tiles._x - 20, _y + _root.tiles._y + 20);
_root.getTarget();
_root.animFrame = 20;
_root.micon.gotoAndStop(61);
_root.completedEvent = 12;
_root.addedOb = 10;
_root.di.d1 = 'This should definitely come in handy. Never know when you\'ll need a jar!';
_root.eventUnlocked = 'Jar taken';
_root.scrollTarg = 0;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a glass jar.';
}
}
}
}
movieClip 1673 {
frame 1 {
if (_root.even12 >= 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even12 >= 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
movieClip 1676 {
frame 1 {
swapDepths(_y);
}
}
movieClip 1678 {
frame 1 {
swapDepths(_y);
}
}
movieClip 1680 {
frame 1 {
swapDepths(_y);
}
}
button 1681 {
on (rollOver) {
_root.objectName = 'Shrub';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Just one shrub of millions that live in this forest.';
}
}
}
}
button 1685 {
on (rollOver) {
_root.objectName = 'Cave';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s nothing you can do with the cave.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s your cave. You\'ve done a lot of renovations on it lately.';
}
}
}
}
button 1688 {
on (rollOver) {
_root.objectName = 'Lava River';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 5) {
_root.di.d1 = 'It\'s too risky! You can\'t get your hands close enough to scoop any out.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'What are you... stupid?';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Look at that lava!';
}
if (_root.micon._currentframe == 9) {
_root.checkTarget(this.fishingSpot._x + _root.tiles._x, this.fishingSpot._y + _root.tiles._y);
_root.getTarget();
_root.animFrame = 31;
_root.micon.gotoAndStop(61);
_root.eventUnlocked = 'Fished for lava';
_root.completedEvent = 7;
_root.di.d1 = 'It\'s time to go fishing!';
_root.scrollTarg = -300;
}
}
}
}
button 1689 {
on (rollOver) {
_root.objectName = 'The Forest';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The dense forests surround your home.';
}
}
}
}
button 1690 {
on (rollOver) {
_root.objectName = 'The Forest';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The dense forest surrounds your home.';
}
}
}
}
button 1691 {
on (rollOver) {
_root.objectName = 'River of Lava';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Look at that river of lava! It must have nearly split the island in two!';
}
}
}
}
movieClip 1692 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onRollOver = function () {
_root.objectName = 'Door';
};
this.onRollOut = function () {
_root.objectName = '';
};
this.onPress = function () {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the door to your humble home.';
}
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 50, _y + _root.tiles._y + 150);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = -200;
_root.grisX = 26;
_root.grisY = 10;
_root.goFrame = 2;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = 0;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Inside the Cave';
hit = true;
_root.exitRot = 320;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 100, _y + _root.tiles._y + 60);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 8;
_root.goFrame = 4;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = 0;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Behind the Cave';
hit = true;
_root.exitRot = 280;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
movieClip 1696 {
frame 1 {
if (_root.even45 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
_root.animFrame = 29;
_root.micon.gotoAndStop(61);
}
frame 2 {
_root.even45 = 1;
_root.di.wait = 200;
_root.tiles._x = -300;
_root.scrollTarg = -300;
}
frame 60 {
origScrollSpeed = _root.scrollSpeed;
_root.scrollSpeed = 3;
_root.scrollTarg = 0;
}
frame 155 {
_root.animFrame = 9;
}
frame 160 {
_root.scrollSpeed = origScrollSpeed;
_root.micon.gotoAndStop(1);
_root.di.number = 2;
_root.di.d2 = 'Holy hot java, is that a river of lava? What happened out here?';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 4;
}
}
frame 4 {
_root.songNumber = 1;
_root.ambNumber = 1;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 4 {
stop();
_root.sizeScale = 1.1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 1698 {
on (rollOver) {
_root.objectName = 'Hollow Log';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even4 == 0) {
_root.di.d1 = 'If you were just a little taller you could reach inside.';
} else {
if (_root.even6 == 0) {
_root.checkTarget(this.stool._x + _root.tiles._x - 30, this.stool._y + _root.tiles._y + 5);
_root.getTarget();
_root.animFrame = 30;
_root.micon.gotoAndStop(61);
_root.completedEvent = 6;
_root.addedOb = 5;
_root.di.d1 = 'Let\'s take a look inside.';
_root.eventUnlocked = 'Fishing rod taken';
} else {
_root.di.d1 = 'You have already taken everything you can from inside there.';
}
}
}
if (_root.micon._currentframe == 2) {
if (_root.even4 == 1) {
if (_root.even6 == 0) {
_root.checkTarget(stool._x + _root.tiles._x - 30, stool._y + _root.tiles._y + 5);
_root.getTarget();
_root.animFrame = 30;
_root.micon.gotoAndStop(61);
_root.completedEvent = 6;
_root.addedOb = 5;
_root.di.d1 = 'Let\'s take a look inside.';
_root.eventUnlocked = 'Fishing rod taken';
} else {
_root.di.d1 = 'You have already taken everything you can from inside there.';
}
} else {
_root.di.d1 = 'There\'s a hole in the top of that hollow stump.';
}
}
if (_root.micon._currentframe == 7) {
_root.checkTarget(stool._x + _root.tiles._x + 30, stool._y + _root.tiles._y + 20);
_root.getTarget();
_root.animFrame = 20;
_root.micon.gotoAndStop(61);
_root.completedEvent = 4;
_root.di.d1 = 'This should be enough to help you reach up there.';
_root.eventUnlocked = 'Stool placed';
}
}
}
}
button 1699 {
on (rollOver) {
_root.objectName = 'Stool';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I don\'t think you need to carry that around anymore.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the stool from your house.';
}
}
}
}
movieClip 1701 {
frame 1 {
onEnterFrame = function () {
if (_root.even4 == 1) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
};
}
}
movieClip 1704 {
frame 1 {
swapDepths(_y);
}
}
button 1706 {
on (rollOver) {
_root.objectName = 'Crank';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'The crank is jammed.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the crank that pumps the water in the well.';
}
}
}
}
button 1707 {
on (rollOver) {
_root.objectName = 'Wooden Frame';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You can\'t do anything with that.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the wooden frame of the well.';
}
}
}
}
button 1708 {
on (rollOver) {
_root.objectName = 'Well';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'The structure of the well seems pretty sturdy.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s an old well.';
}
}
}
}
button 1709 {
on (rollOver) {
_root.objectName = 'Well Opening';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even25 == 0) {
_root.di.d1 = 'You can\'t go down there! It\'s too deep!';
} else {
_root.checkTarget(230 + _root.tiles._x, 300 + _root.tiles._y);
_root.getTarget();
_root.goFrame = 91;
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 12;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = 0;
_root.di.number = 0;
}
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The well looks pretty deep and dark.';
}
}
}
}
button 1710 {
on (rollOver) {
_root.objectName = 'Metal Ring';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 25) {
_root.di.number = 0;
_root.checkTarget(230 + _root.tiles._x, 300 + _root.tiles._y);
_root.getTarget();
_root.animFrame = 12;
_root.micon.gotoAndStop(61);
_root.completedEvent = 25;
_root.addedOb = 0;
_root.eventUnlocked = 'Rope tied to well';
_root.scrollTarg = 0;
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You can\'t take that.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'I think you\'re supposed to attach a rope onto this metal ring so you can lower things down.';
}
}
}
}
button 1712 {
on (rollOver) {
_root.objectName = 'Rope';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(230 + _root.tiles._x, 300 + _root.tiles._y);
_root.getTarget();
_root.animFrame = 36;
_root.micon.gotoAndStop(61);
_root.scrollTarg = 0;
_root.di.number = 0;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The rope is now tied to the metal ring.';
}
}
}
}
movieClip 1713 {
frame 1 {
stop();
this.gotoAndStop(_root.even25 + 1);
onEnterFrame = function () {
this.gotoAndStop(_root.even25 + 1);
};
}
}
movieClip 1714 {
frame 1 {
swapDepths(_y);
}
}
button 1717 {
on (rollOver) {
_root.objectName = 'Back of the cave';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the back of the cave.';
}
}
}
}
movieClip 1718 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 50, _y + _root.tiles._y + 100);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 7;
_root.grisY = 6;
_root.goFrame = 3;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Outside of the Cave';
hit = true;
_root.exitRot = 100;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 30, _y + _root.tiles._y + 40);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = -215;
_root.grisX = 26;
_root.grisY = 10;
_root.goFrame = 5;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Deep Forest';
hit = true;
_root.exitRot = -90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 40, _y + _root.tiles._y + 120);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 6;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Labyrinth Gates';
hit = true;
_root.exitRot = 10;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 5 {
_root.songNumber = 2;
if (_root.even46 == 1) {
_root.songNumber = 1;
}
_root.ambNumber = 1;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 5 {
stop();
_root.sizeScale = 1;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = -215;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 1721 {
on (rollOver) {
_root.objectName = 'Spider web';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'Sorry but webs don\'t talk.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I wouldn\'t touch that if I were you.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The web is home to a large and hungry looking spider.';
}
}
}
}
movieClip 1722 {
}
button 1724 {
on (rollOver) {
_root.objectName = 'Piece of paper';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even11 == 3) {
_root.checkTarget(_x + _root.tiles._x, _y + _root.tiles._y + 90);
_root.getTarget();
_root.animFrame = 12;
_root.micon.gotoAndStop(61);
_root.completedEvent = 8;
_root.addedOb = 9;
_root.di.number = 0;
_root.waitdi = 'It\'s an old photo.';
_root.eventUnlocked = 'Photo picked up';
_root.scrollTarg = -200;
} else {
_root.di.d1 = 'Trying to take that wouldn\'t be safe with the spider right there.';
}
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It looks like a piece of paper stuck in that web.';
}
}
}
}
movieClip 1725 {
frame 1 {
if (_root.even8 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even8 == 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
movieClip 1743 {
}
button 1744 {
on (rollOver) {
_root.objectName = 'Spider';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I don\'t think that\'s a very smart idea.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a big spider.';
}
if (_root.micon._currentframe == 4) {
_root.di.number = 0;
_root.di.d1 = '';
_root.checkTarget(this._x + _root.tiles._x + 60, this._y + _root.tiles._y + 100);
_root.getTarget();
_root.scrollTarg = -200;
_root.animFrame = 7;
_root.micon.gotoAndStop(61);
if (_root.even11 == 0) {
_root.even11 = 1;
_root.setDiNumber = 6;
_root.di.d6 = 'Eww, I hate spiders!';
_root.di.char6 = 'GRISWOLD';
_root.di.stream6 = 5;
_root.di.d5 = 'Right back at ya buddy!';
_root.di.char5 = 'SPIDER';
_root.di.stream5 = 200;
_root.di.d4 = 'Ahh! You can talk?.';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 6;
_root.di.d3 = 'Yeah and you\'re ugly!';
_root.di.char3 = 'SPIDER';
_root.di.stream3 = 201;
_root.di.d2 = 'Yeesh... What a jerk!';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 7;
} else {
if (_root.even11 == 1) {
_root.even11 = 2;
_root.setDiNumber = 4;
_root.di.d4 = 'Uh... So I don\'t suppose you know where I can find Goblin City?';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 8;
_root.di.d3 = 'No I don\'t... I have my own problems to worry about here! Haven\'t had anything to eat in weeks!';
_root.di.char3 = 'SPIDER';
_root.di.stream3 = 202;
_root.di.d2 = 'Hmm maybe that\'s why the little fella is so cranky?';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 9;
} else {
if (_root.even11 == 2) {
_root.animFrame = 2;
_root.setDiNumber = 2;
_root.di.d2 = 'Unless you have some food get lost!';
_root.di.char2 = 'SPIDER';
_root.di.stream2 = 203;
} else {
if (_root.even11 == 3) {
_root.animFrame = 2;
_root.setDiNumber = 2;
_root.di.d2 = 'ZzZzZzZzzz';
_root.di.char2 = 'SPIDER';
_root.di.stream2 = 205;
}
}
}
}
}
if (_root.micon._currentframe == 14) {
if (_root.even11 == 1 || _root.even11 == 2) {
_root.di.number = 0;
_root.checkTarget(this._x + _root.tiles._x + 60, this._y + _root.tiles._y + 100);
_root.getTarget();
_root.animFrame = 34;
_root.micon.gotoAndStop(61);
} else {
_root.di.d1 = 'Why would you want to give the bugs to the spider?';
}
}
}
}
}
movieClip 1758 {
}
movieClip 1759 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.even11 == 3 && _root.di.number <= 1) {
gotoAndStop(2);
}
};
}
}
movieClip 1762 {
frame 1 {
swapDepths(_y + 20);
}
}
movieClip 1764 {
frame 1 {
swapDepths(_y + 50);
}
}
movieClip 1772 {
}
movieClip 1798 {
frame 4 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 19 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 34 {
_root.footSteps.gotoAndStop(random(6) + 2);
}
frame 39 {
gotoAndPlay(14);
}
}
movieClip 1899 {
}
movieClip 2042 {
frame 116 {
stop();
}
}
movieClip 2044 {
frame 1 {
swapDepths(_y + 130);
if (_root.even46 == 1) {
if (_root.even23 == 1) {
this.gotoAndStop(611);
} else {
this.gotoAndStop(402);
}
}
}
frame 2 {
_root.animFrame = 28;
_root.micon.gotoAndStop(61);
_root.tiles._x = 0;
_root.scrollTarg = 0;
}
frame 343 {
origScrollSpeed = _root.scrollSpeed;
_root.scrollSpeed = 6;
_root.scrollTarg = -215;
}
frame 380 {
_root.animFrame = 37;
_root.completedEvent = 46;
_root.addObject(8);
_root.eventUnlocked = 'Chicken Taken';
}
frame 401 {
_root.scrollSpeed = origScrollSpeed;
_root.micon.gotoAndStop(1);
}
frame 402 {
number1 = 0;
number2 = 0;
onEnterFrame = function () {
if (this._currentframe < 420) {
number1 = 0;
}
if (this._currentframe < 440) {
number2 = 0;
}
if (this._currentframe <= 460) {
this.gotoAndStop(402 + Math.round((950 - _root.tiles.char._x) / 8));
if (this._currentframe == 435 && number1 == 0) {
number1 = 1;
_root.sfx.gotoAndStop(5);
}
if (this._currentframe == 455 && number2 == 0) {
number2 = 1;
_root.sfx.gotoAndStop(6);
}
}
};
}
frame 461 {
play();
stopAllSounds();
_root.song2.stop();
_root.song1.stop();
_root.micon.gotoAndStop(61);
_root.scrollTarg = 0;
}
frame 464 {
_root.tiles.char.removeMovieClip();
origScrollSpeed = _root.scrollSpeed;
_root.scrollSpeed = 3;
_root.scrollTarg = 0;
}
frame 609 {
stop();
_root.scrollSpeed = origScrollSpeed;
_root.killer = 2;
_root.gameOver.play();
}
}
button 2045 {
on (rollOver) {
_root.objectName = 'Fly Trap';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'To be honest I don\'t think it would be interested in any kind of civilised conversation.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I wouldn\'t touch that if I were you.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a giant meat eating fly trap. It looks pretty deadly.';
}
if (_root.micon._currentframe == 22) {
_root.di.number = 0;
_root.checkTarget(490 + _root.tiles._x, 370 + _root.tiles._y);
_root.getTarget();
_root.eventUnlocked = 'Fly trap gummed';
_root.even23 = 1;
_root.sfx.gotoAndStop(3);
_root.animFrame = 35;
_root.micon.gotoAndStop(61);
}
}
}
}
movieClip 2046 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 30, _y + _root.tiles._y + 80);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 2;
_root.grisY = 10;
_root.goFrame = 4;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = -215;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Behind the Cave';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (enterFrame) {
if (_root.tiles.char._x < this._x && _root.even23 < 1) {
_root.exit = false;
_root.micon.gotoAndStop(61);
_root.scrollTarg = 0;
if (_root.tiles.flyTrap._currentframe < 450) {
_root.tiles.flyTrap.gotoAndPlay(450);
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1 && _root.even23 == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 40, _y + _root.tiles._y + 120);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 20;
_root.grisY = 11;
_root.goFrame = 43;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Beach';
hit = true;
_root.exitRot = -90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 6 {
_root.songNumber = 4;
if (_root.even21 == 1) {
_root.songNumber = 1;
}
_root.ambNumber = 1;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 6 {
stop();
_root.sizeScale = 1.2;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2049 {
frame 1 {
swapDepths(_y);
}
}
button 2050 {
on (rollOver) {
_root.objectName = 'Widow';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Hey! Leave the poor woman alone.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the weeping widow.';
}
if (_root.micon._currentframe == 4) {
_root.di.number = 0;
_root.checkTarget(this._x + _root.tiles._x - 200, this._y + _root.tiles._y - 5);
_root.getTarget();
_root.animFrame = 9;
_root.micon.gotoAndStop(61);
if (_root.even9 == 1) {
_root.even9 = 2;
_root.setDiNumber = 4;
_root.di.d4 = 'The gate to the labyrinth is locked. Do you know how I can get inside?';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 14;
_root.di.d3 = 'There is no other way inside and the key is lost.';
_root.di.char3 = 'WIDOW';
_root.di.stream3 = 102;
_root.di.d2 = 'Hmm... I\'ll have to find some other way to get through the gate!';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 15;
} else {
if (_root.even9 == 2) {
_root.setDiNumber = 3;
_root.di.d3 = 'So are you sure you don\'t know where I can find the Goblin City?';
_root.di.char3 = 'GRISWOLD';
_root.di.stream3 = 16;
_root.di.d2 = 'Please leave me be.';
_root.di.char2 = 'WIDOW';
_root.di.stream2 = 103;
} else {
_root.setDiNumber = 4;
_root.di.d4 = 'Hey there... Uh... do you know how to get to the Goblin City?';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 10;
_root.di.d3 = '...';
_root.di.char3 = 'WIDOW';
_root.di.stream3 = 999;
_root.di.d2 = 'Gee... What\'s her problem?';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 11;
}
}
}
if (_root.micon._currentframe == 12) {
_root.di.number = 0;
_root.checkTarget(this._x + _root.tiles._x - 200, this._y + _root.tiles._y - 5);
_root.getTarget();
_root.even9 = 1;
_root.eventUnlocked = 'Gave widow the photo';
_root.sfx.gotoAndStop(3);
_root.animFrame = 9;
_root.micon.gotoAndStop(61);
_root.setDiNumber = 5;
_root.di.d5 = 'Do you know anything about the man in this photo?';
_root.di.char5 = 'GRISWOLD';
_root.di.stream5 = 12;
_root.di.d4 = 'Oh my! It\'s a picture of my husband. He ventured into this labyrinth years ago and has never returned. I fear that the great beast inside may have found him.';
_root.di.char4 = 'WIDOW';
_root.di.stream4 = 100;
_root.di.d3 = 'Great beast... (GULP) Well do you know where I could find the Goblin City?';
_root.di.char3 = 'GRISWOLD';
_root.di.stream3 = 13;
_root.di.d2 = 'No I\'m sorry! I\'m sure my husband would, he was a great adventurer.';
_root.di.char2 = 'WIDOW';
_root.di.stream2 = 101;
}
}
}
}
movieClip 2246 {
frame 272 {
gotoAndPlay(2);
}
}
movieClip 2257 {
}
button 2258 {
on (rollOver) {
_root.objectName = 'Wife and Husband';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Don\'t touch them.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the Ex-Widow and her husband reunited.';
}
if (_root.micon._currentframe == 4) {
_root.di.number = 0;
_root.checkTarget(this._x + _root.tiles._x - 200, this._y + _root.tiles._y - 5);
_root.getTarget();
_root.animFrame = 9;
_root.micon.gotoAndStop(61);
_root.setDiNumber = 3;
_root.di.d3 = 'So is there any more information you can give me about the whereabouts of the Goblin City?';
_root.di.char3 = 'GRISWOLD';
_root.di.stream3 = 31;
_root.di.d2 = 'Sorry. There\'s nothing more I can tell you. Please feel free to take anything from my old ship. It\'s washed up on the beach to the west.';
_root.di.char2 = 'HUSBAND';
_root.di.stream2 = 506;
}
}
}
}
movieClip 2269 {
}
movieClip 2282 {
}
movieClip 2284 {
frame 1 {
onEnterFrame = function () {
if (_root.even21 == 1) {
if (_root.di.number == 2 && _root.even22 == 0) {
_root.even22 = 1;
_root.eventUnlocked = 'Rescued Husband';
_root.sfx.gotoAndStop(3);
_root.addedOb = 21;
_root.addObject(_root.addedOb);
}
if (_root.di['d' + _root.di.number] != '...') {
if (_root.di['char' + _root.di.number] == 'WIFE') {
this.gotoAndStop(4);
} else {
if (_root.di['char' + _root.di.number] == 'HUSBAND') {
this.gotoAndStop(5);
} else {
this.gotoAndStop(3);
}
}
} else {
this.gotoAndStop(3);
}
} else {
if (_root.di['char' + _root.di.number] == 'WIDOW' && _root.di['d' + _root.di.number] != '...') {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
};
}
}
button 2286 {
on (rollOver) {
_root.objectName = 'Gate';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even9 <= 1) {
_root.di.d1 = 'The gate is locked.';
} else {
if (_root.even21 == 0) {
_root.di.d1 = 'There must be some way to get through this gate by destroying this lock.';
} else {
_root.di.d1 = 'I\'m pretty sure you wouldn\'t want to go back in there again.';
}
}
}
if (_root.micon._currentframe == 2) {
if (_root.even9 == 0) {
_root.di.d1 = 'It\'s the gate to what appears to be a huge labyrinth.';
} else {
_root.di.d1 = 'It\'s the gate to the giant labyrinth.';
}
}
if (_root.micon._currentframe == 10) {
if (_root.even9 >= 1) {
_root.even9 = 2;
_root.addObject(2);
_root.checkTarget(this._x + _root.tiles._x, this._y + _root.tiles._y + 150);
_root.getTarget();
_root.eventUnlocked = 'Melted lock';
_root.sfx.gotoAndStop(3);
_root.animFrame = 33;
_root.micon.gotoAndStop(61);
_root.di.d1 = 'Let\'s see if you can melt the lock off using the hot lava...';
} else {
_root.di.d1 = 'Why would you use this lava on the gate?';
}
}
}
}
}
movieClip 2288 {
frame 1 {
stop();
onEnterFrame = function () {
if (_root.even10 == 1 && _root.even21 < 1) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
frame 2 {
stop();
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_parent._x + _root.tiles._x, _parent._y + _root.tiles._y + 150);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 7;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Labyrinth';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
movieClip 2290 {
frame 1 {
swapDepths(_y + 20);
}
}
movieClip 2291 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 190, _y + _root.tiles._y + 40);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 18;
_root.grisY = 8;
_root.goFrame = 4;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Behind the Cave';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 7 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 7 {
stop();
_root.sizeScale = 0.8;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2295 {
frame 1 {
swapDepths(_y + 50);
}
}
movieClip 2296 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 8;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 10;
_root.goFrame = 6;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Labyrinth Gates';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 8 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 8 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2299 {
frame 1 {
swapDepths(_y + 100);
}
}
movieClip 2300 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 9;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 17;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 7;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 9 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 9 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2304 {
frame 1 {
swapDepths(_y + 50);
}
}
movieClip 2305 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 10;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 8;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 10 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 10 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2309 {
frame 1 {
swapDepths(_y + 90);
}
}
movieClip 2310 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 11;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 12;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 10;
_root.grisY = 9;
_root.goFrame = 9;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 12;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 11 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 11 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2312 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 18;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 10;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 12 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 12 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2314 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 13;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 10;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 20;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 13 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 13 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2317 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 14;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 16;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 15;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 12;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 14 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 14 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2319 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 13;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 24;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 15 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 15 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2321 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 13;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 16 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 16 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 2325 {
on (rollOver) {
_root.objectName = 'Pile of bones';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need any of these bones.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s just a pile of old bones.';
}
}
}
}
button 2326 {
on (rollOver) {
_root.objectName = 'Lighter';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _root.tiles._x, _y + _root.tiles._y + 30);
_root.getTarget();
_root.animFrame = 20;
_root.micon.gotoAndStop(61);
_root.completedEvent = 13;
_root.addedOb = 12;
_root.di.d1 = 'This lighter could have many uses!';
_root.eventUnlocked = 'Lighter taken';
_root.scrollTarg = 0;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a small lighter.';
}
}
}
}
movieClip 2328 {
frame 1 {
if (_root.even13 >= 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even13 >= 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
button 2330 {
on (rollOver) {
_root.objectName = 'Backpack';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even14 == 1) {
_root.di.d1 = 'There\'s nothing else worth taking from this backpack.';
} else {
_root.checkTarget(_x + _root.tiles._x, _y + _root.tiles._y + 30);
_root.getTarget();
_root.animFrame = 20;
_root.micon.gotoAndStop(61);
_root.completedEvent = 14;
_root.addedOb = 13;
_root.di.d1 = 'The only thing worth taking from this back pack is this map.';
_root.eventUnlocked = 'Map found';
_root.scrollTarg = 0;
}
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s an old backpack.';
}
}
}
}
movieClip 2331 {
}
button 2333 {
on (rollOver) {
_root.objectName = 'Skull';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t really have a need for a human skull.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a human skull.';
}
}
}
}
movieClip 2334 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 13;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 17 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 17 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2338 {
frame 1 {
swapDepths(_y + 50);
}
}
movieClip 2340 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 10;
_root.goFrame = 25;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DARK HALLS';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 8;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 18 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 18 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2342 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 11;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 19;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 19 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 19 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2345 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 18;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 20 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 20 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2348 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 12;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 21;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 21 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 21 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2350 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 20;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 22;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 23;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 22 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 22 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2353 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 21;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 23 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 23 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2355 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 21;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 24 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 24 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2357 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 14;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 25 {
_root.songNumber = 3;
_root.ambNumber = 4;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 25 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2361 {
frame 1 {
swapDepths(_y + 100);
}
}
movieClip 2363 {
frame 1 {
swapDepths(_y + 500);
}
}
movieClip 2364 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5 - 40);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 10;
_root.goFrame = 26;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5 - 40);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 17;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 80, _y + _root.tiles._y);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 27;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
movieClip 2367 {
frame 1 {
onEnterFrame = function () {
this._x = _root.tiles.char._x + _root.tiles._x;
this._y = _root.tiles.char._y + _root.tiles._y;
if (_root.even15 == 1) {
this.gotoAndStop(2);
} else {
if (_root.popMenu._currentframe == 1 && _root.micon._y < 400) {
if (_root.micon._currentframe == 1) {
_root.exitLoc = 'GO BACK';
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (_root.micon._currentframe == 60) {
_root.micon.gotoAndStop(1);
}
}
}
};
this.gotoAndStop(_root.even15 + 1);
}
instance of movieClip 3 {
onClipEvent (enterFrame) {
onPress = function () {
if (_root.even15 == 0 && _root.micon._currentframe == 60 && _root.popMenu._currentframe == 1) {
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 17;
_root.fade.play();
_root.micon.gotoAndStop(61);
hit = false;
}
};
}
}
}
frame 26 {
_root.songNumber = 3;
_root.ambNumber = 4;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 26 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2372 {
frame 1 {
swapDepths(_y + 500);
}
}
movieClip 2373 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5 - 40);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 25;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 12;
_root.grisY = 9;
_root.goFrame = 28;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5 - 40);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 10;
_root.goFrame = 38;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 27 {
_root.songNumber = 3;
_root.ambNumber = 4;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 27 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2377 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 30;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 12;
_root.grisY = 9;
_root.goFrame = 25;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 28 {
_root.songNumber = 3;
_root.ambNumber = 4;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 28 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2381 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5 - 20);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 29;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + 80, _y + _root.tiles._y);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 26;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 29 {
_root.songNumber = 3;
_root.ambNumber = 4;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 29 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 2384 {
on (rollOver) {
_root.objectName = 'Juice';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _root.tiles._x, _y + _root.tiles._y + 20);
_root.getTarget();
_root.animFrame = 20;
_root.micon.gotoAndStop(61);
_root.completedEvent = 17;
_root.addedOb = 18;
_root.di.d1 = 'It\'s some kind of weird brand of juice.';
_root.eventUnlocked = 'Juice taken';
_root.scrollTarg = 0;
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a small bottle of juice.';
}
}
}
}
movieClip 2385 {
frame 1 {
if (_root.even17 >= 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even17 >= 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
movieClip 2386 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5 - 40);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 10;
_root.goFrame = 28;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 30 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 30 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2389 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 31;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 10;
_root.goFrame = 27;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DARK HALLS';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 31 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 31 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2391 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 40;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 32;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 30;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 32 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 32 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2393 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 31;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 33;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 33 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 33 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2396 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 34;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 36;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 32;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 35;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 34 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 34 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2399 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 33;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 35 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 35 {
stop();
_root.sizeScale = 1.2;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = -450;
_root.maxX = 0;
if (_root.even47) {
_root.tiles._x = _root.levX;
} else {
_root.even47 = 1;
_root.tiles._x = _root.minX;
}
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
_root.autoSaveFile();
}
if (_root.fromLabyGame) {
_root.fileSelected = 0;
_root.loadFile();
}
_root.fromLabyGame = false;
}
button 2403 {
on (rollOver) {
_root.objectName = 'Gum Tree';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s nothing you can do with the gum tree.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a gum tree, literally. It\'s made up of some kind of strange sticky substance.';
}
}
}
}
button 2404 {
on (rollOver) {
_root.objectName = 'Lumberjack';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Don\'t do that!';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the lumberjack, he looks kind of worried.';
}
if (_root.micon._currentframe == 4) {
_root.di.number = 0;
_root.scrollTarg = -400;
_root.checkTarget(this._x + _parent._x + _root.tiles._x - 200, this._y + _parent._y + _root.tiles._y - 5);
_root.getTarget();
_root.animFrame = 9;
_root.micon.gotoAndStop(61);
if (_root.even16 == 0) {
_root.even16 = 1;
_root.setDiNumber = 6;
_root.di.d6 = 'Hey do you know where I could find the Goblin City?';
_root.di.char6 = 'GRISWOLD';
_root.di.stream6 = 17;
_root.di.d5 = 'Oh thank god someone found me! Please help me get out of this damn place!';
_root.di.char5 = 'LUMBERJACK';
_root.di.stream5 = 300;
_root.di.d4 = 'You\'re lost? I would tell you the way out but I can\'t really remember the way here.';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 18;
_root.di.d3 = 'Please, you need to help me get out of here somehow. I\'ll tell you anything you need to know.';
_root.di.char3 = 'LUMBERJACK';
_root.di.stream3 = 301;
_root.di.d2 = 'Hmm... I\'ll have to find some way to show you how to get out.';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 19;
} else {
if (_root.even16 == 1) {
_root.animFrame = 4;
_root.setDiNumber = 2;
_root.di.d2 = 'Come on! Have you worked something out yet? I need to get outta here!';
_root.di.char2 = 'LUMBERJACK';
_root.di.stream2 = 307;
}
}
}
if (_root.micon._currentframe == 17) {
if (_root.even16 == 1) {
_root.di.number = 0;
_root.checkTarget(this._x + _parent._x + _root.tiles._x - 200, this._y + _parent._y + _root.tiles._y - 5);
_root.getTarget();
_root.even16 = 2;
_root.eventUnlocked = 'Showed Lumberjack map';
_root.sfx.gotoAndStop(3);
_root.animFrame = 9;
_root.micon.gotoAndStop(61);
_root.addObject(14);
_root.setDiNumber = 6;
_root.di.d6 = 'Take a look at this map I found. I think it\'s a map of the labyrinth!';
_root.di.char6 = 'GRISWOLD';
_root.di.stream6 = 20;
_root.di.d5 = 'Oh yes this is perfect! Ahh I see now, I should have taken a left right there and I took a right. You know what, you can keep the map. I know the way out now!';
_root.di.char5 = 'LUMBERJACK';
_root.di.stream5 = 303;
_root.di.d4 = 'So do you know anything about the Goblin City?';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 21;
_root.di.d3 = 'Not really... I do know that it\'s underground somewhere. I probably can\'t help you there. You know what... feel free to have my axe. I\'m done with the lumberjacking business.';
_root.di.char3 = 'LUMBERJACK';
_root.di.stream3 = 304;
_root.di.d2 = 'Oh... I dropped some lumberjack juice somewhere in the dark, if that helps you.';
_root.di.char2 = 'LUMBERJACK';
_root.di.stream2 = 305;
} else {
_root.di.d1 = 'Why would you give this map to the lumberjack?';
}
}
if (_root.micon._currentframe == 16) {
if (_root.even16 == 1) {
_root.di.number = 0;
_root.checkTarget(this._x + _parent._x + _root.tiles._x - 200, this._y + _parent._y + _root.tiles._y - 5);
_root.getTarget();
_root.animFrame = 9;
_root.micon.gotoAndStop(61);
_root.addObject(13);
_root.setDiNumber = 3;
_root.di.d3 = 'Does this help you?';
_root.di.char3 = 'GRISWOLD';
_root.di.stream3 = 22;
_root.di.d2 = 'Hmm... it looks like a scrambled map of the labyrinth. You know what if you could fix this, it would really help.';
_root.di.char2 = 'LUMBERJACK';
_root.di.stream2 = 302;
} else {
_root.di.d1 = 'Why would you give this map to the lumberjack?';
}
}
}
}
}
movieClip 2420 {
}
movieClip 2435 {
}
movieClip 2436 {
frame 151 {
stop();
}
}
movieClip 2437 {
frame 1 {
stop();
if (canGo == undefined) {
canGo = false;
}
if (_root.even16 == 2 && remove == undefined) {
this.swapDepths(2);
this.removeMovieClip();
}
remove = false;
onEnterFrame = function () {
if (this._currentframe < 3) {
if (_root.di['char' + _root.di.number] == 'LUMBERJACK' && _root.di['d' + _root.di.number] != '...') {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
if (_root.even16 == 2) {
if (_root.di.number == 6) {
canGo = true;
}
if (_root.di.number <= 1 && canGo) {
this.gotoAndStop(3);
}
}
};
}
}
button 2440 {
on (rollOver) {
_root.objectName = 'Axe';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even16 == 2) {
if (_root.even17 == 2) {
_root.checkTarget(_x + _parent._x + _root.tiles._x, _y + _parent._y + _root.tiles._y + 50);
_root.getTarget();
_root.animFrame = 12;
_root.micon.gotoAndStop(61);
_root.completedEvent = 18;
_root.addedOb = 17;
_root.di.number = 0;
_root.waitdi = 'After drinking that juice it\'s easy for you to pull out the axe.';
_root.eventUnlocked = 'Axe taken out of tree';
_root.scrollTarg = -450;
} else {
_root.checkTarget(_x + _parent._x + _root.tiles._x, _y + _parent._y + _root.tiles._y + 50);
_root.getTarget();
_root.animFrame = 27;
_root.micon.gotoAndStop(61);
_root.di.number = 0;
_root.waitdi = 'You\'re too weak to pull it out.';
_root.scrollTarg = -450;
}
} else {
_root.checkTarget(_x + _parent._x + _root.tiles._x, _y + _parent._y + _root.tiles._y + 50);
_root.getTarget();
_root.animFrame = 3;
_root.micon.gotoAndStop(61);
_root.di.d1 = 'Let\'s see if you can get this axe out.';
_root.setDiNumber = 2;
_root.di.d2 = 'Hey don\'t touch my axe!';
_root.di.char2 = 'LUMBERJACK';
_root.di.stream2 = 306;
_root.scrollTarg = -450;
}
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the Lumberjack\'s axe stuck firmly into the gum tree.';
}
}
}
}
movieClip 2441 {
frame 1 {
stop();
if (_root.even18 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
onEnterFrame = function () {
if (_root.even18 == 1) {
_root.objectName = '';
this.swapDepths(2);
this.removeMovieClip();
}
};
}
}
movieClip 2442 {
frame 1 {
swapDepths(_y - 100);
}
}
movieClip 2444 {
frame 1 {
swapDepths(_y + 100);
}
}
movieClip 2445 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 33;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = 0;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 36 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 36 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2447 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 33;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 37;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'RIGHT';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 37 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 37 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2449 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 11;
_root.goFrame = 36;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'LEFT';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 9;
_root.goFrame = 38;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 38 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 38 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2453 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 37;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 10;
_root.grisY = 9;
_root.goFrame = 39;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 2;
_root.levX = 0;
_root.grisX = 19;
_root.grisY = 10;
_root.goFrame = 26;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DARK HALLS';
hit = true;
_root.exitRot = 270;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 39 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 39 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2456 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.getTarget();
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
_root.goFrame = 38;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'UP';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 40 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 40 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2459 {
}
movieClip 2461 {
}
movieClip 2489 {
frame 1 {
stop();
if (_root.even19 == 1) {
this.gotoAndStop(190);
}
}
frame 2 {
stopAllSounds();
_root.song3.stop();
}
frame 90 {
stop();
_root.killer = 3;
_root.gameOver.play();
}
frame 128 {
_root.tiles.vine3.play();
}
frame 158 {
_root.tiles.vine2.play();
}
frame 191 {
stop();
}
}
movieClip 2496 {
frame 1 {
stop();
if (_root.even19 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
}
frame 12 {
this.swapDepths(2);
this.removeMovieClip();
}
}
movieClip 2511 {
}
movieClip 2517 {
frame 1 {
stop();
if (_root.even19 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
}
frame 17 {
this.swapDepths(2);
this.removeMovieClip();
}
}
movieClip 2536 {
frame 120 {
gotoAndPlay(1);
}
}
movieClip 2538 {
frame 1 {
stop();
}
}
movieClip 2560 {
}
movieClip 2561 {
frame 1 {
stop();
}
}
button 2564 {
on (rollOver) {
_root.objectName = 'Deadly Vine';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I wouldn\'t touch that if I were you.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a strong and deadly looking vine.';
}
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'I\'m pretty sure it\'s not in the mood for conversation.';
}
if (_root.micon._currentframe == 20) {
_root.di.d1 = 'The axe isn\'t going to be cutting anything with that gum stuck on the sharp end!';
}
if (_root.micon._currentframe == 23) {
if (_root.even19 == 1) {
_root.di.d1 = 'No need to cut the vine any more!';
} else {
_root.di.d1 = 'Time for a trim!';
_root.checkTarget(this._x + _root.tiles._x + 50, this._y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.animFrame = 22;
_root.micon.gotoAndStop(61);
_root.even19 = 1;
_root.eventUnlocked = 'Vine cut';
_root.sfx.gotoAndStop(3);
_root.addObject(20);
}
}
}
}
}
button 2566 {
on (rollOver) {
_root.objectName = 'Deadly Vine';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I wouldn\'t touch that if I were you.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a strong and deadly looking vine.';
}
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'I\'m pretty sure it\'s not in the mood for conversation.';
}
if (_root.micon._currentframe == 20) {
_root.di.d1 = 'The axe isn\'t going to be cutting anything with that gum stuck on the sharp end!';
}
if (_root.micon._currentframe == 23) {
if (_root.even19 == 1) {
_root.di.d1 = 'No need to cut the vine any more!';
} else {
_root.di.d1 = 'Time for a trim!';
_root.checkTarget(this._x + _root.tiles._x + 20, this._y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.animFrame = 22;
_root.micon.gotoAndStop(61);
_root.even19 = 1;
_root.eventUnlocked = 'Vine cut';
_root.sfx.gotoAndStop(3);
_root.addObject(20);
}
}
}
}
}
movieClip 2567 {
frame 1 {
stop();
if (_root.even19 == 1) {
this.gotoAndStop(3);
}
onEnterFrame = function () {
if (_root.micon._currentframe >= 60) {
this.gotoAndStop(2);
} else {
if (_root.even19 == 1) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(1);
}
}
};
}
}
movieClip 2568 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 10;
_root.grisY = 9;
_root.goFrame = 31;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'DOWN';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
if (_root.even19 == 1) {
_root.goFrame = 41;
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height - 20);
_root.exit = true;
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 12;
} else {
_root.animFrame = 23;
_root.checkTarget(_x + _root.tiles._x + this._width / 2 + 30, _y + _root.tiles._y + this._height - 10);
}
_root.getTarget();
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Ancient tree';
hit = true;
_root.exitRot = 0;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 41 {
_root.songNumber = 3;
_root.ambNumber = 3;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 41 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 2571 {
on (rollOver) {
_root.objectName = 'Ancient Tree';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s nothing you can do with the ancient.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a large ancient tree.';
}
}
}
}
// unknown tag 88 length 211
movieClip 2602 {
}
movieClip 2605 {
frame 65 {
stop();
_root.even26 = 2;
_root.eventUnlocked = 'Dial Solved';
_root.sfx.gotoAndStop(3);
}
}
movieClip 2606 {
frame 1 {
this.onRollOver = function () {
if (_root.even26 == 0) {
_root.objectName = 'Wooden Dial';
} else {
_root.objectName = 'Dark Tunnel';
}
};
this.onRollOut = function () {
_root.objectName = '';
};
this.onPress = function () {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.checkTarget(_x + _root.tiles._x - 20, _y + _root.tiles._y + 180);
_root.getTarget();
if (_root.even26 == 0) {
_root.grisX = 10;
_root.grisY = 11;
_root.goFrame = 82;
_root.levX = 0;
} else {
_root.goFrame = 42;
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
}
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
_root.scrollTarg = 0;
_root.di.number = 0;
}
if (_root.micon._currentframe == 2) {
if (_root.even26 == 0) {
_root.di.d1 = 'It\'s a strange dial that has been carved into this ancient tree.';
} else {
_root.di.d1 = 'The dial has opened to reveal a dark tunnel into the tree.';
}
}
}
};
this.gotoAndStop(_root.even26 + 1);
onEnterFrame = function () {
this.gotoAndStop(_root.even26 + 1);
};
}
}
button 2607 {
on (rollOver) {
_root.objectName = 'Full moon';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'No the moon is not a delicious cookie and no it\'s not within reach!';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a beautiful full moon.';
}
}
}
}
movieClip 2609 {
frame 1 {
swapDepths(_y + 200);
}
}
button 2611 {
on (rollOver) {
_root.objectName = 'Sign';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You have no need for this wooden sign!';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a sign that reads \'Beast Lair\'.';
}
}
}
}
button 2613 {
on (rollOver) {
_root.objectName = 'Owl';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Don\'t be cruel.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a very wise looking owl.';
}
if (_root.micon._currentframe == 4 && _root.even26 == 0) {
_root.di.number = 0;
_root.checkTarget(this._x + _root.tiles._x - 20, this._y + _root.tiles._y + 230);
_root.getTarget();
_root.scrollTarg = 0;
_root.animFrame = 8;
_root.micon.gotoAndStop(61);
if (_root.even20 == 0) {
_root.even20 = 1;
_root.setDiNumber = 8;
_root.di.d8 = 'Hey you! Up there... Do you know how I can get inside this beasts lair?';
_root.di.char8 = 'GRISWOLD';
_root.di.stream8 = 23;
_root.di.d7 = 'Hello there green man, how do you do? A secret code is needed if you wish to get through.';
_root.di.char7 = 'OWL';
_root.di.stream7 = 600;
_root.di.d6 = 'How do I find this code?';
_root.di.char6 = 'GRISWOLD';
_root.di.stream6 = 24;
_root.di.d5 = 'I know the code to the door below, I must give you one warning though. A terrible danger lies inside, for a monstrous beast does reside.';
_root.di.char5 = 'OWL';
_root.di.stream5 = 601;
_root.di.d4 = 'Oh great I see where this is going... You\'re gonna give me a riddle aren\'t you!?';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 25;
_root.di.d3 = 'A mysterious figure passes by, as I sit awake it takes my eye... It glides along, it\'s movement slow, it\'s rounded face smiles a glow.';
_root.di.char3 = 'OWL';
_root.di.stream3 = 602;
_root.di.d2 = 'This figures name is the secret code, granting entry to this beasts abode!';
_root.di.char2 = 'OWL';
_root.di.stream2 = 603;
} else {
if (_root.even20 == 1) {
_root.setDiNumber = 4;
_root.di.d4 = 'Could you give me that riddle again?';
_root.di.char4 = 'GRISWOLD';
_root.di.stream4 = 26;
_root.di.d3 = 'A mysterious figure passes by, as I sit awake it takes my eye... It glides along, it\'s movement slow, it\'s rounded face smiles a glow.';
_root.di.char3 = 'OWL';
_root.di.stream3 = 602;
_root.di.d2 = 'This figures name is the secret code, granting entry to this beasts abode!';
_root.di.char2 = 'OWL';
_root.di.stream2 = 603;
}
}
}
}
}
}
movieClip 2621 {
}
button 2622 {
on (rollOver) {
_root.objectName = 'Owl';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'Don\'t be cruel.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a very wise looking owl.';
}
if (_root.micon._currentframe == 4) {
_root.di.number = 0;
_root.checkTarget(this._x + _root.tiles._x - 20, this._y + _root.tiles._y + 170);
_root.getTarget();
_root.scrollTarg = 0;
_root.animFrame = 8;
_root.micon.gotoAndStop(61);
if (_root.even20 == 0) {
_root.even20 = 1;
_root.setDiNumber = 9;
_root.di.d9 = 'Hey you! Up there... Do you know how I can get inside this beasts lair?';
_root.di.char9 = 'GRISWOLD';
_root.di.stream9 = 999;
_root.di.d8 = 'What\'s up green man what\'s happenin witchu? A secret code is needed if you wish to get through.';
_root.di.char8 = 'OWL';
_root.di.stream8 = 999;
_root.di.d7 = 'How do I find this code?';
_root.di.char7 = 'GRISWOLD';
_root.di.stream7 = 999;
_root.di.d6 = 'I know the code to the door below, I must give you a warning though. A terrible danger lies inside, for a monstrous beast does reside.';
_root.di.char6 = 'OWL';
_root.di.stream6 = 999;
_root.di.d5 = 'Oh great I see where this is going... Your gonna give me a riddle aren\'t you!?';
_root.di.char5 = 'GRISWOLD';
_root.di.stream5 = 999;
_root.di.d4 = 'A mysterious figure passes by, as I sit awake it takes my eye...';
_root.di.char4 = 'OWL';
_root.di.stream4 = 999;
_root.di.d3 = 'It glides along, it\'s movement slow, it\'s rounded face smiles a glow.';
_root.di.char3 = 'OWL';
_root.di.stream3 = 999;
_root.di.d2 = 'This figures name is the secret code, allowing entry to the beasts abode!';
_root.di.char2 = 'OWL';
_root.di.stream2 = 999;
} else {
if (_root.even20 == 1) {
_root.setDiNumber = 5;
_root.di.d5 = 'Could you give me that riddle again?';
_root.di.char5 = 'GRISWOLD';
_root.di.stream5 = 999;
_root.di.d4 = 'A mysterious figure passes by, as I sit awake it takes my eye...';
_root.di.char4 = 'OWL';
_root.di.stream4 = 999;
_root.di.d3 = 'It glides along, it\'s movement slow, it\'s rounded face smiles a glow.';
_root.di.char3 = 'OWL';
_root.di.stream3 = 999;
_root.di.d2 = 'This figures name is the secret code, allowing entry to the beasts abode!';
_root.di.char2 = 'OWL';
_root.di.stream2 = 999;
}
}
}
}
}
}
movieClip 2623 {
frame 1 {
onEnterFrame = function () {
if (_root.di['char' + _root.di.number] == 'OWL' && _root.di['d' + _root.di.number] != '...') {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
}
movieClip 2624 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 2);
_root.getTarget();
_root.grisFrame = 1;
_root.levX = 0;
_root.grisX = 11;
_root.grisY = 10;
_root.goFrame = 40;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Labyrinth Exit';
hit = true;
_root.exitRot = 180;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 42 {
_root.songNumber = 2;
_root.ambNumber = 2;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 42 {
stop();
_root.sizeScale = 1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = -750;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
button 2626 {
on (rollOver) {
_root.objectName = 'Ripped Wallpaper';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The walls in this place are pretty damaged.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need to rip it any more than it already is.';
}
}
}
}
button 2628 {
on (rollOver) {
_root.objectName = 'Skeleton';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Looks like that skeleton has been there for years.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You probably shouldn\'t touch that disease covered skeleton.';
}
}
}
}
button 2629 {
on (rollOver) {
_root.objectName = 'Spider web';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'Sorry but webs don\'t talk.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'I wouldn\'t touch that if I were you.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a spider web.';
}
}
}
}
movieClip 2630 {
}
button 2632 {
on (rollOver) {
_root.objectName = 'Bone';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'Theres a big bone inside the cage.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need the bone.';
}
}
}
}
button 2634 {
on (rollOver) {
_root.objectName = 'Purple Bottle';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need this bottle.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a purple bottle.';
}
}
}
}
button 2636 {
on (rollOver) {
_root.objectName = 'Orange Bottle';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need this bottle.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s an orange bottle.';
}
}
}
}
button 2638 {
on (rollOver) {
_root.objectName = 'Red Bottle';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need this bottle.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a red bottle.';
}
}
}
}
button 2639 {
on (rollOver) {
_root.objectName = 'Yellow Bottle';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need this bottle.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a yellow bottle.';
}
}
}
}
movieClip 2640 {
frame 1 {
swapDepths(_y + 500);
}
}
button 2643 {
on (rollOver) {
_root.objectName = 'Broken Glass';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You have no use for broken glass.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the broken glass from the bottle you knocked over.';
}
}
}
}
movieClip 2644 {
frame 1 {
stop();
}
}
movieClip 2660 {
}
button 2662 {
on (rollOver) {
_root.objectName = 'Husband';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'He\'s pretty dirty... I wouldn\'t touch him if I were you.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s the Widow\'s husband.';
}
if (_root.micon._currentframe == 4) {
_root.di.number = 0;
_root.scrollTarg = -750;
_root.checkTarget(this._x + _root.tiles._x - 170, this._y + _root.tiles._y + 70);
_root.getTarget();
_root.animFrame = 4;
_root.micon.gotoAndStop(61);
_root.setDiNumber = 4;
_root.di.d4 = 'Finally I\'m saved! I thought I was going to be stuck here forever!';
_root.di.char4 = 'HUSBAND';
_root.di.stream4 = 501;
_root.di.d3 = 'Well I guess this is your lucky day.';
_root.di.char3 = 'GRISWOLD';
_root.di.stream3 = 28;
_root.di.d2 = 'Let me out of this damn cage and let\'s get out of this hell hole!';
_root.di.char2 = 'HUSBAND';
_root.di.stream2 = 502;
}
}
}
}
movieClip 2667 {
frame 1 {
if (spoke == true) {
if (_root.di.number <= 1) {
_root.fade.play();
_root.goFrame = 6;
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 14;
_root.grisY = 10;
} else {
_root.animFrame = 9;
_root.tiles.char.gotoAndStop(9);
}
}
onEnterFrame = function () {
if (_root.di['char' + _root.di.number] == 'HUSBAND' && _root.di['d' + _root.di.number] != '...') {
if (_root.even21 == 1) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
} else {
this.gotoAndStop(1);
}
};
}
frame 3 {
spoke = true;
}
}
movieClip 2672 {
}
movieClip 2682 {
}
movieClip 2687 {
}
movieClip 2690 {
}
movieClip 2700 {
frame 40 {
stop();
_root.killer = 4;
_root.gameOver.play();
}
}
movieClip 2711 {
}
movieClip 2712 {
frame 1 {
stop();
if (_root.even21 == 1) {
_root.tiles.smash.gotoAndStop(2);
this.swapDepths(2);
this.removeMovieClip();
}
this.onRollOver = function () {
_root.objectName = 'Beast';
};
this.onRollOut = function () {
_root.objectName = '';
};
this.onPress = function () {
if (_root.di.number <= 1 && this._currentframe == 2) {
if (_root.micon._currentframe == 11) {
_root.micon.gotoAndStop(61);
_root.animFrame = 24;
this.gotoAndStop(5);
_root.di.d1 = 'This might distract him!';
}
if (_root.micon._currentframe == 5 || _root.micon._currentframe == 17 || _root.micon._currentframe == 22) {
_root.di.d1 = 'I don\'t think that would really have much effect on him!';
}
if (_root.micon._currentframe == 15 || _root.micon._currentframe == 19 || _root.micon._currentframe == 23) {
_root.di.d1 = 'Now that would just be cruel!';
}
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'I don\'t think reasoning with him would work.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'He\'s a little too big and strong for you to overpower him.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a huge dopey beast.';
}
}
};
onEnterFrame = function () {
if (this._currentframe == 1 || this._currentframe == 6) {
if (_root.di['char' + _root.di.number] == 'BEAST' && _root.di['d' + _root.di.number] != '...') {
this.gotoAndStop(6);
} else {
this.gotoAndStop(1);
}
}
if (_root.micon._currentframe == 1 && this._currentframe != 4) {
_root.micon.gotoAndStop(3);
}
if (this._currentframe == 2) {
if (this._x > 300 && _root.popMenu._currentframe == 1) {
this._x -= 4;
this.walk.play();
this.walk.h1.play();
this.walk.h2.play();
this.walk.l.play();
} else {
if (this._x > 300) {
this.walk.h1.stop();
this.walk.h2.stop();
this.walk.l.stop();
this.walk.stop();
} else {
this.gotoAndStop(3);
}
}
_root.popMenu.walkCov.gotoAndStop(2);
} else {
if (this._currentframe == 4) {
if (this._x > -300 && _root.popMenu._currentframe == 1) {
if (this._y < 400) {
++this._y;
}
this._x -= 6;
this.walk.h1.play();
this.walk.h2.play();
this.walk.l.play();
this.walk.play();
} else {
if (this._x > -300) {
this.walk.h1.stop();
this.walk.h2.stop();
this.walk.l.stop();
this.walk.stop();
} else {
_root.cin.play();
_root.popMenu.walkCov.gotoAndStop(1);
this.swapDepths(1);
this.removeMovieClip();
}
}
} else {
if (_root.popMenu._currentframe == 1) {
this.walk.h1.play();
this.walk.h2.play();
this.walk.l.play();
this.walk.play();
} else {
this.walk.h1.stop();
this.walk.h2.stop();
this.walk.l.stop();
this.walk.stop();
}
}
}
};
}
frame 2 {
this._x += 200;
}
frame 4 {
this.swapDepths(this._y + 100);
}
frame 5 {
_root.even21 = 1;
_root.even48 = 1;
_root.eventUnlocked = 'Got rid of Beast';
_root.sfx.gotoAndStop(3);
}
}
button 2714 {
on (rollOver) {
_root.objectName = 'Tea cup';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a small tea cup.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s no time for having a tea party right now.';
}
}
}
}
button 2715 {
on (rollOver) {
_root.objectName = 'Tea pot';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a tea pot.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'There\'s no time for having a tea party right now.';
}
}
}
}
movieClip 2716 {
}
movieClip 2718 {
frame 1 {
if (_root.even48 == 1) {
this.swapDepths(2);
this.removeMovieClip();
}
_root.animFrame = 25;
_root.tiles.char.gotoAndStop(25);
_root.micon.gotoAndStop(61);
}
frame 25 {
origScrollSpeed = _root.scrollSpeed;
_root.scrollSpeed = 9;
_root.scrollTarg = -750;
}
frame 125 {
stop();
_root.tiles.char.anim.stop();
_root.di.number = 5;
_root.di.d5 = 'Would you like a cup of tea?';
_root.di.char5 = 'BEAST';
_root.di.stream5 = 400;
_root.di.d4 = 'Look I don\'t want your stupid tea! Let me go!';
_root.di.char4 = 'HUSBAND';
_root.di.stream4 = 500;
_root.di.d3 = 'Don\'t be silly little man. Everybody loves tea parties!';
_root.di.char3 = 'BEAST';
_root.di.stream3 = 401;
_root.di.d2 = 'Hey! What\'s that? Did somebody bring me a new toy?';
_root.di.char2 = 'BEAST';
_root.di.stream2 = 402;
onEnterFrame = function () {
if (_currentframe == 125) {
if (_root.di.number <= 1) {
_root.tiles.char.anim.play();
play();
}
}
};
_root.tiles.smash.gotoAndStop(2);
}
frame 126 {
_root.scrollSpeed = 9;
_root.scrollTarg = 0;
}
frame 224 {
_root.micon.gotoAndStop(3);
_root.tiles.char.gotoAndStop(9);
}
frame 225 {
stop();
_root.scrollSpeed = origScrollSpeed;
_root.di.number = 2;
_root.di.d2 = 'Ooops... This isn\'t good. I gotta do something about this beast fast!';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 27;
onEnterFrame = function () {
if (_currentframe == 225) {
if (_root.di.number <= 1) {
this.play();
_root.tiles.beast.gotoAndStop(2);
}
}
};
}
frame 226 {
stop();
}
frame 227 {
_root.tiles.char.gotoAndStop(9);
}
frame 228 {
stop();
_root.di.number = 2;
_root.di.d2 = 'Phew, that was a close one!';
_root.di.char2 = 'GRISWOLD';
_root.di.stream2 = 32;
}
}
frame 43 {
_root.songNumber = 0;
_root.ambNumber = 5;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 43 {
stop();
_root.sizeScale = 1.1;
_root.scrollTarg = 0;
char = _root.tiles.char;
char.xtile = _root.grisX;
char.ytile = _root.grisY;
char.speed = 2;
char.moving = false;
buildMap();
_root.nameCount = 1;
_root.minX = 0;
_root.maxX = 0;
_root.tiles._x = _root.levX;
if (challengeCompleted == true) {
challengeCompleted = false;
_root.sfx.gotoAndStop(3);
}
}
movieClip 2733 {
frame 1 {
this.onRollOver = function () {
_root.objectName = 'Waves';
};
this.onRollOut = function () {
_root.objectName = '';
};
this.onPress = function () {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 4) {
_root.di.d1 = 'If you\'re thirsty I don\'t think its a good idea for you to be drinking sea water.';
}
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'You don\'t need any sea water.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'The waves are crashing.';
}
}
};
}
}
movieClip 2736 {
frame 1 {
swapDepths(_y + 500);
}
}
button 2738 {
on (rollOver) {
_root.objectName = 'Shipwreck';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
_root.di.d1 = 'The ship looks very old and worn. It would probably fall apart if you touch it.';
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s an old old wooden ship that looks like it was used during the civil war era.';
}
}
}
}
button 2740 {
on (rollOver) {
_root.objectName = 'Chest';
}
on (rollOut) {
_root.objectName = '';
}
on (press) {
if (_root.di.number <= 1) {
if (_root.micon._currentframe == 3) {
if (_root.even24 == 0) {
_root.di.d1 = 'The chest is locked.';
} else {
_root.di.d1 = 'You have taken everything that is useful out of the chest.';
}
}
if (_root.micon._currentframe == 2) {
_root.di.d1 = 'It\'s a treasure chest.';
}
if (_root.micon._currentframe == 24) {
_root.checkTarget(_x + _root.tiles._x + 60, _y + _root.tiles._y + 20);
_root.getTarget();
_root.animFrame = 16;
_root.micon.gotoAndStop(61);
_root.completedEvent = 24;
_root.addedOb = 22;
_root.di.d1 = 'Let\'s see what\'s inside.';
_root.eventUnlocked = 'Chest Unlocked';
_root.scrollTarg = 0;
}
}
}
}
movieClip 2742 {
frame 1 {
swapDepths(_y);
oldEven = _root.even24;
gotoAndStop(_root.even24 + 1);
onEnterFrame = function () {
gotoAndStop(_root.even24 + 1);
};
}
frame 2 {
if (oldEven == 0) {
_root.sfx.gotoAndStop(9);
}
}
}
movieClip 2743 {
instance of movieClip 3 {
onClipEvent (load) {
hit = false;
}
onClipEvent (enterFrame) {
if (_root.di.number <= 1 && _root.popMenu._currentframe == 1) {
this.onPress = function () {
if (_root.micon._currentframe == 60) {
_root.checkTarget(_x + _root.tiles._x + this._width / 2, _y + _root.tiles._y + this._height / 1.5);
_root.getTarget();
_root.grisFrame = 4;
_root.levX = 0;
_root.grisX = 3;
_root.grisY = 11;
_root.goFrame = 5;
_root.exit = true;
_root.micon.gotoAndStop(61);
hit = false;
}
};
if (this.hitTest(_root.micon.point)) {
if (_root.micon._currentframe == 1 && _root.di.number <= 1) {
_root.exitLoc = 'TO: Deep Forest';
hit = true;
_root.exitRot = 90;
_root.micon.gotoAndStop(60);
}
} else {
if (hit == true) {
hit = false;
_root.micon.gotoAndStop(1);
}
}
}
}
}
}
frame 80 {
_root.songNumber = 7;
_root.ambNumber = 2;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 80 {
stop();
_root.micon._x = -100;
_root.menuMicon._x = -100;
_root.micon.gotoAndStop(61);
handTargX = 0;
handTargY = 0;
victory = false;
onEnterFrame = function () {
if (_root._currentframe == 80) {
Mouse.hide();
_root.gameMouse._x = _root._xmouse;
_root.gameMouse._y = _root._ymouse;
if (_root.hand._currentframe == 1 || _root.hand._currentframe > 15) {
handTargX = _root._xmouse / 5 - 70;
handTargY = _root._ymouse / 5 + 350;
if (_root.hand._currentframe == 1) {
spd = 10;
} else {
spd = 15;
}
} else {
spd = 4;
}
if (!victory) {
if (_root.hand._currentframe > 11 && _root.hand._currentframe < 14) {
i = 1;
while (i <= 3) {
bug = _root['bug' + i];
if (bug.inside.hitTest(_root.hand.grabSpot)) {
bug.gotoAndStop(1);
++bugs;
_root.sfx.gotoAndStop(7);
_root.bugDis = 'BUGS: ' + bugs;
_root['bugDis' + i].play();
}
++i;
}
}
count = 0;
i = 1;
while (i <= 3) {
bug = _root['bug' + i];
frame = _root['bugDis' + i]._currentframe;
if (frame > 1) {
++count;
if (frame > 448) {
bug.play();
}
}
++i;
}
victory = count == 3;
} else {
if (fade._currentframe == 1) {
i = 1;
while (i <= 3) {
_root['bugDis' + i].stop();
++i;
}
challengeCompleted = true;
_root.eventUnlocked = 'Bugs Captured';
_root.findItem(10);
_root.addedOb = 11;
_root.even12 = 2;
_root.fade.play();
_root.goFrame = 2;
}
}
_root.hand._x += (handTargX - _root.hand._x + 25) / spd;
_root.hand._y += (handTargY - _root.hand._y + 25) / spd;
}
};
onMouseDown = function () {
if (!victory && _root._currentframe == 80) {
_root.hand.play();
handTargX = _root._xmouse;
handTargY = _root._ymouse;
}
};
}
movieClip 2749 {
frame 1 {
stop();
}
}
button 2752 {
on (press) {
_root.fade.play();
_root.goFrame = 2;
}
}
movieClip 2756 {
frame 1 {
onEnterFrame = function () {
if (_root._xmouse > 640 && _root._ymouse > 445) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
}
movieClip 2765 {
frame 1 {
stop();
}
}
movieClip 2767 {
}
frame 81 {
_root.songNumber = 6;
_root.ambNumber = 0;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 81 {
stop();
_root.correct = 0;
_root.rotationCounter = 0;
_root.micon.gotoAndStop(3);
victory = false;
_root.fromLabyGame = true;
onEnterFrame = function () {
if (_root._currentframe == 81) {
Mouse.hide();
_root.micon._x = _root._xmouse;
_root.micon._y = _root._ymouse;
if (_root.correct == 0 && !victory) {
victory = true;
challengeCompleted = true;
_root.eventUnlocked = 'Map Solved';
_root.findItem(13);
_root.addObject(14);
_root.goFrame = _root.returnFrame;
_root.fade.play();
}
}
};
}
movieClip 2770 {
frame 1 {
origRot = this._rotation;
this._rotation += random(4) * 90;
this.correct = true;
onEnterFrame = function () {
onPress = function () {
_root.sfx.gotoAndStop(8);
this._rotation += 90;
};
if (correct) {
if (origRot != this._rotation && origRot != this._rotation + 180 && origRot != this._rotation - 180) {
correct = false;
--_root.correct;
}
} else {
if (origRot == this._rotation || origRot == this._rotation + 180 || origRot == this._rotation - 180) {
correct = true;
++_root.correct;
}
}
};
}
}
movieClip 2772 {
frame 1 {
origRot = this._rotation;
this._rotation += random(4) * 90;
this.correct = true;
onEnterFrame = function () {
onPress = function () {
_root.sfx.gotoAndStop(8);
this._rotation += 90;
};
if (correct) {
if (origRot != this._rotation) {
correct = false;
--_root.correct;
}
} else {
if (origRot == this._rotation) {
correct = true;
++_root.correct;
}
}
};
}
}
movieClip 2774 {
frame 1 {
origRot = this._rotation;
this._rotation += random(4) * 90;
this.correct = true;
onEnterFrame = function () {
onPress = function () {
_root.sfx.gotoAndStop(8);
this._rotation += 90;
};
if (correct) {
if (origRot != this._rotation) {
correct = false;
--_root.correct;
}
} else {
if (origRot == this._rotation) {
correct = true;
++_root.correct;
}
}
};
}
}
movieClip 2776 {
frame 1 {
onEnterFrame = function () {
onPress = function () {
_root.sfx.gotoAndStop(8);
this._rotation += 90;
};
};
}
}
movieClip 2778 {
frame 1 {
origRot = this._rotation;
this._rotation += random(4) * 90;
this.correct = true;
onEnterFrame = function () {
onPress = function () {
_root.sfx.gotoAndStop(8);
this._rotation += 90;
};
if (this.correct) {
if (origRot != this._rotation) {
this.correct = false;
--_root.correct;
}
} else {
if (origRot == this._rotation) {
this.correct = true;
++_root.correct;
}
}
};
}
}
movieClip 2780 {
}
movieClip 2784 {
frame 1 {
stop();
}
frame 2 {
this.onPress = function () {
_root.gotoAndStop(2);
};
}
}
button 2785 {
on (press) {
_root.goFrame = _root.returnFrame;
_root.fade.play();
}
}
movieClip 2787 {
frame 1 {
onEnterFrame = function () {
if (_root._xmouse > 640 && _root._ymouse > 445) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
};
}
}
frame 82 {
_root.songNumber = 6;
_root.ambNumber = 0;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 82 {
stop();
_root.micon.gotoAndStop(3);
onEnterFrame = function () {
if (_currentframe == 82) {
Mouse.hide();
_root.micon._x = _root._xmouse;
_root.micon._y = _root._ymouse;
if (_root.dcorrect1 == true && _root.dcorrect2 == true && _root.dcorrect3 == true && _root.dcorrect4 == true) {
_root.even26 = 1;
_root.fade.play();
_root.goFrame = 41;
_root.grisFrame = 3;
_root.levX = 0;
_root.grisX = 12;
_root.grisY = 12;
}
}
};
}
movieClip 2790 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2792 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2794 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2796 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2798 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2800 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2802 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2804 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2806 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2808 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2810 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2812 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2814 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2816 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2818 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2820 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2822 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2824 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2826 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2828 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2830 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2832 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2834 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2836 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2838 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2840 {
frame 1 {
onEnterFrame = function () {
if (_parent.rot) {
this._rotation = -_parent._rotation;
}
};
}
}
movieClip 2843 {
frame 1 {
rotate = false;
spd = 2;
roundNum = 22.5;
do {
rot = random(20) * roundNum;
this._rotation = rot;
} while (this._rotation == 0);
onPress = function () {
rotate = true;
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
origMRot = Math.atan2(yD, xD) * 180 / Math.PI;
origRot = rot;
down = true;
};
onMouseUp = function () {
down = false;
rot = Math.round(rot);
};
onEnterFrame = function () {
if (this._rotation == 0) {
_root.dcorrect1 = true;
} else {
_root.dcorrect1 = false;
}
if (rotate) {
roundVal = Math.round(rot / roundNum) * roundNum;
if (down) {
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
rot = origRot - (origMRot - Math.atan2(yD, xD) * 180 / Math.PI);
} else {
if (rot < roundVal - spd) {
rot += spd;
} else {
if (rot > roundVal + spd) {
rot -= spd;
} else {
if (rot != roundVal) {
rot = roundVal;
} else {
rotate = false;
}
}
}
}
this._rotation = rot;
}
};
}
}
movieClip 2845 {
frame 1 {
rotate = false;
spd = 2;
roundNum = 22.5;
do {
rot = random(20) * roundNum;
this._rotation = rot;
} while (this._rotation == 0);
onPress = function () {
rotate = true;
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
origMRot = Math.atan2(yD, xD) * 180 / Math.PI;
origRot = rot;
down = true;
};
onMouseUp = function () {
down = false;
rot = Math.round(rot);
};
onEnterFrame = function () {
if (this._rotation == 0) {
_root.dcorrect2 = true;
} else {
_root.dcorrect2 = false;
}
if (rotate) {
roundVal = Math.round(rot / roundNum) * roundNum;
if (down) {
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
rot = origRot - (origMRot - Math.atan2(yD, xD) * 180 / Math.PI);
} else {
if (rot < roundVal - spd) {
rot += spd;
} else {
if (rot > roundVal + spd) {
rot -= spd;
} else {
if (rot != roundVal) {
rot = roundVal;
} else {
rotate = false;
}
}
}
}
this._rotation = rot;
}
};
}
}
movieClip 2847 {
frame 1 {
rotate = false;
spd = 4;
roundNum = 45;
do {
rot = random(20) * roundNum;
this._rotation = rot;
} while (this._rotation == 0);
onPress = function () {
rotate = true;
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
origMRot = Math.atan2(yD, xD) * 180 / Math.PI;
origRot = rot;
down = true;
};
onMouseUp = function () {
down = false;
rot = Math.round(rot);
};
onEnterFrame = function () {
if (this._rotation == 0) {
_root.dcorrect3 = true;
} else {
_root.dcorrect3 = false;
}
if (rotate) {
roundVal = Math.round(rot / roundNum) * roundNum;
if (down) {
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
rot = origRot - (origMRot - Math.atan2(yD, xD) * 180 / Math.PI);
} else {
if (rot < roundVal - spd) {
rot += spd;
} else {
if (rot > roundVal + spd) {
rot -= spd;
} else {
if (rot != roundVal) {
rot = roundVal;
} else {
rotate = false;
}
}
}
}
this._rotation = rot;
}
};
}
}
movieClip 2849 {
frame 1 {
rotate = false;
spd = 8;
roundNum = 90;
do {
rot = random(20) * roundNum;
this._rotation = rot;
} while (this._rotation == 0);
onPress = function () {
rotate = true;
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
origMRot = Math.atan2(yD, xD) * 180 / Math.PI;
origRot = rot;
down = true;
};
onMouseUp = function () {
down = false;
rot = Math.round(rot);
};
onEnterFrame = function () {
if (this._rotation == 0) {
_root.dcorrect4 = true;
} else {
_root.dcorrect4 = false;
}
if (rotate) {
roundVal = Math.round(rot / roundNum) * roundNum;
if (down) {
xD = this._x - _root._xmouse;
yD = this._y - _root._ymouse;
rot = origRot - (origMRot - Math.atan2(yD, xD) * 180 / Math.PI);
} else {
if (rot < roundVal - spd) {
rot += spd;
} else {
if (rot > roundVal + spd) {
rot -= spd;
} else {
if (rot != roundVal) {
rot = roundVal;
} else {
rotate = false;
}
}
}
}
this._rotation = rot;
}
};
}
}
button 2850 {
on (press) {
_root.fade.play();
_root.goFrame = 41;
}
}
frame 90 {
_root.songNumber = 0;
_root.ambNumber = 0;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 90 {
onEnterFrame = function () {
if (_root._currentframe == 90) {
Mouse.hide();
_root.micon._x = -100;
_root.menuMicon._x = _root._xmouse;
_root.menuMicon._y = _root._ymouse;
}
};
}
movieClip 2854 {
frame 1605 {
stop();
}
}
movieClip 2901 {
}
movieClip 2913 {
frame 59 {
gotoAndPlay(14);
}
}
movieClip 2938 {
}
movieClip 2962 {
}
movieClip 2979 {
}
movieClip 2982 {
}
movieClip 3069 {
}
movieClip 3153 {
frame 1500 {
stop();
}
}
movieClip 3183 {
}
movieClip 3192 {
}
movieClip 3219 {
}
movieClip 3221 {
}
movieClip 3225 {
}
movieClip 3260 {
frame 1 {
count = 0;
origX = this._x;
origY = this._y;
startFrame = 1345;
endFrame = 1480;
onEnterFrame = function () {
if (this._currentframe > startFrame && this._currentframe < endFrame) {
intensity = (this._currentframe - startFrame) / 5;
if (this._y >= origY) {
this._y -= random(intensity);
} else {
this._y += random(intensity);
}
this._y;
if (this._x >= origX) {
this._x -= random(intensity);
} else {
this._x += random(intensity);
}
this._x;
}
if (count == 0) {
this.play();
count = 1;
} else {
this.stop();
--count;
}
};
}
frame 1595 {
stop();
_root.fade.play();
_root.goFrame = 2;
}
}
button 3264 {
on (press) {
_root.fade.play();
_root.goFrame = 2;
}
}
frame 91 {
_root.songNumber = 0;
_root.ambNumber = 0;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 91 {
onEnterFrame = function () {
if (_root._currentframe == 91) {
Mouse.hide();
_root.micon._x = -100;
_root.menuMicon._x = _root._xmouse;
_root.menuMicon._y = _root._ymouse;
}
};
}
movieClip 3309 {
}
movieClip 3321 {
}
movieClip 3323 {
frame 510 {
origX = this._x;
origY = this._y;
}
frame 511 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 512 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 513 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 514 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 516 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 518 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 520 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 523 {
_x = _x + (random(10) - 5 - (_x - origX));
_y = _y + (random(10) - 5 - (_y - origY));
}
frame 526 {
this._x = origX;
this._y = origY;
}
frame 1750 {
stop();
_root.goFrame = 1;
_root.fade.play();
}
}
button 3324 {
on (press) {
_root.fade.play();
_root.goFrame = 1;
}
}
frame 99 {
_root.songNumber = 6;
_root.ambNumber = 0;
i = 1;
while (i <= _root.totalSongs) {
_root['song' + i].gotoAndStop(1);
_root['amb' + i].gotoAndStop(1);
if (_root.songNumber == i) {
_root['song' + i].gotoAndPlay(_root['song' + i + '_frame']);
}
if (_root.ambNumber == i) {
_root['amb' + i].gotoAndPlay(2);
}
++i;
}
}
frame 99 {
_root.micon.gotoAndStop(1);
}
movieClip 3350 {
}
movieClip 3352 {
}
movieClip 3354 {
}
movieClip 3365 {
}
movieClip 3367 {
}
movieClip 3368 {
}
movieClip 3372 {
frame 1 {
this.gotoAndStop(_root.killer - 1);
}
}
button 3376 {
on (press) {
_parent.gotoAndStop(2);
}
}
movieClip 3377 {
frame 1 {
stop();
}
}
button 3380 {
on (press) {
_root.fade.play();
_root.goFrame = 1;
}
}
button 3382 {
on (press) {
_root.fade.gotoAndPlay(8);
_root.loadFile();
}
}
movieClip 3383 {
frame 1 {
stop();
}
frame 2 {
_root.viewing = 0;
i = 0;
if (_root.saves.data['File' + i + '_Name'] == undefined) {
_root.fileSelected = -1;
} else {
_root.fileSelected = 0;
}
}
}
frame 100 {
i = 1;
while (i < 10) {
_root['song' + i + '_frame'] = _root['song' + i]._currentframe;
++i;
}
}
frame 100 {
_root.di.wait = 40;
_root.di.number = 0;
i = 1;
while (i < 10) {
_root.di['stream' + i] = 1;
_root.di['char' + i] = 'GRISWOLD';
_root.di['d' + i] = '';
++i;
}
if (_root.micon._currentframe == 60 || _root.micon._currentframe == 61) {
_root.micon.gotoAndStop(1);
}
_root.objectName = '';
stopAllSounds();
gotoAndStop(_root.goFrame);
}