Frame 1
stop();
var soundList = new Array("mayAmb", "exitAmb", "disSnd1", "disSnd2", "eleSnd1", "eleSnd2", "eleSnd3", "staticSnd", "monkSnd", "linaSnd", "woodMetalSnd", "stingSnd", "sandSnd", "leverSnd", "metalBreakSnd", "eleSnd", "kamienSnd2", "kamienSnd1", "portalCharge", "btnSnd", "pickUpSound", "putDownSound", "findSound", "itemUsed", "moveSound", "inventoryFull", "documentsSound", "documentsEnd");
goLive = true;
gameName = "Submachine: 32 chambers";
authorInfo = "\u00A9 Mateusz Skutnik";
miesiac = "July";
rok = "2010";
gameWidth = 400;
gameHeight = 500;
authorLink = "http://www.mateuszskutnik.com/";
commentLink = "http://www.mateuszskutnik.com/archive/submachine-32-chambers";
twitterLink = "http://twitter.com/mateuszskutnik";
facebookLink = "http://www.facebook.com/mateuszskutnik";
moreGamesLink = "http://www.mateuszskutnik.com/more.php";
thumpLink = "http://www.thumpmonks.com";
footer = ((((("<p align='center'>" + gameName) + " | <u><a href='") + authorLink) + "' target='_blank'>") + authorInfo) + "</a></u></p>";
footerRGB = 5465457 /* 0x536571 */;
Stage.showMenu = false;
Stage.scaleMode = "noScale";
fscommand ("showmenu", "false");
fscommand ("trapallkeys", true);
Button.prototype.tabEnabled = false;
MovieClip.prototype.tabEnabled = false;
load_to = "menu";
_global.root = this;
_quality = "BEST";
przechodzimy = false;
musicOn = true;
sfxOn = true;
_global.sfx = function (co) {
if (sfxOn) {
root[co].start();
}
};
_global.amb = function (ktory) {
if (musicOn && (ktoryAmbient != eval (ktory))) {
stopAllSounds();
eval (ktory).start();
}
ktoryAmbient = eval (ktory);
ktoryAmbient.onSoundComplete = function () {
this.start();
};
s.currentAmbient = ktory;
};
_global.rem = function (ktory, nr) {
ktoryMC = String(ktory).substring(8);
if (nr == undefined) {
if (s[ktory + "_stage"] != undefined) {
eval (ktoryMC).gotoAndStop(s[ktory + "_stage"]);
}
} else {
s[ktory + "_stage"] = nr;
}
};
ataczSounds = function () {
i = 0;
while (i < soundList.length) {
this[soundList[i]] = new Sound(this);
this[soundList[i]].attachSound(soundList[i]);
i++;
}
};
deadClick = function () {
createCustomMenu();
};
toggleMusic = function () {
if (musicOn) {
stopAllSounds();
musicOn = false;
} else {
ktoryAmbient.start();
musicOn = true;
}
createCustomMenu();
};
toggleSfx = function () {
if (sfxOn) {
sfxOn = false;
} else {
sfxOn = true;
}
createCustomMenu();
};
toggleQuality = function () {
if (_quality == "BEST") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "BEST";
}
createCustomMenu();
};
createFooter = function () {
attachMovie("ramka", "ramka", 1000000);
this.createTextField("footerTXT", 1000001, 0, gameHeight - 20, gameWidth, 20);
footerTXT.selectable = false;
footerTXT.html = true;
footerTXT.htmlText = footer;
var _local2 = new TextFormat();
_local2.color = footerRGB;
_local2.align = "center";
_local2.font = "Arial";
_local2.size = 10;
footerTXT.setTextFormat(_local2);
};
MovieClip.prototype.drawRectangle = function (w, h, alfa) {
var _local2 = this.createEmptyMovieClip("s1", 1);
_local2.beginFill(0, alfa);
_local2.moveTo(0, 0);
_local2.lineTo(w, 0);
_local2.lineTo(w, h);
_local2.lineTo(0, h);
_local2.endFill();
};
link = function (jakiLink) {
if (goLive) {
getURL (jakiLink, "_blank");
}
};
przejscie = function (gdzie) {
przejscieDest = gdzie;
if (!przechodzimy) {
przechodzimy = true;
this.createEmptyMovieClip("przejscieMC", 1000002);
przejscieMC.drawRectangle(gameWidth, gameHeight, 100);
przejscieMC._alpha = 1;
przejscieMC.dissolve = false;
przejscieMC.onEnterFrame = przejscieEF;
}
};
przejscieEF = function () {
if (!this.dissolve) {
this._alpha = this._alpha + 15;
} else {
this._alpha = this._alpha - 15;
}
if (this._alpha >= 140) {
if (pauseMC._visible) {
removeMovieClip(pauseMC);
pauseActive = false;
}
root.gotoAndStop(root.przejscieDest);
this.dissolve = true;
}
if (this._alpha <= 0) {
root.przechodzimy = false;
delete this.onEnterFrame;
removeMovieClip(this);
}
};
saveNr = SharedObject.getLocal("saveNr");
czekSave1 = SharedObject.getLocal("save_1");
czekSave2 = SharedObject.getLocal("save_2");
czekSave3 = SharedObject.getLocal("save_3");
czekSave4 = SharedObject.getLocal("save_4");
czekSave5 = SharedObject.getLocal("save_5");
if (saveNr.data.nr == undefined) {
saveNum = 0;
} else {
saveNum = saveNr.data.nr;
}
startNewGame = function () {
if (saveNum == 5) {
saveNum = 1;
} else {
saveNum++;
}
saveFile = SharedObject.getLocal("save_" + saveNum);
saveFile.clear();
_global.s = saveFile.data;
s.startDate = dat;
saveNr.data.nr = saveNum;
przejscie("float");
};
setDate = function () {
curDate = new Date();
day = curDate.getDate();
month = curDate.getMonth();
year = curDate.getFullYear();
hrs = curDate.getHours();
mns = curDate.getMinutes();
daytext = curDate.getDay();
if (mns <= 9) {
mns = "0" + mns;
}
if (hrs <= 9) {
hrs = "0" + hrs;
}
if (((day == 1) || (day == 21)) || (day == 31)) {
zaimek = "st";
} else if ((day == 2) || (day == 22)) {
zaimek = "nd";
} else if ((day == 3) || (day == 23)) {
zaimek = "rd";
} else {
zaimek = "th";
}
switch (month) {
case 0 :
month = "January";
break;
case 1 :
month = "February";
break;
case 2 :
month = "March";
break;
case 3 :
month = "April";
break;
case 4 :
month = "May";
break;
case 5 :
month = "June";
break;
case 6 :
month = "July";
break;
case 7 :
month = "August";
break;
case 8 :
month = "September";
break;
case 9 :
month = "October";
break;
case 10 :
month = "November";
break;
case 11 :
month = "December";
}
switch (daytext) {
case 0 :
daytext = "Sunday";
break;
case 1 :
daytext = "Monday";
break;
case 2 :
daytext = "Tuesday";
break;
case 3 :
daytext = "Wednesday";
break;
case 4 :
daytext = "Thursday";
break;
case 5 :
daytext = "Friday";
break;
case 6 :
daytext = "Saturday";
}
dat = ((((((((((daytext + ", ") + month) + " ") + day) + zaimek) + ", ") + year) + " - ") + hrs) + ":") + mns;
};
Frame 27
stop();
createCustomMenu();
createFooter();
ataczSounds();
setDate();
stopAllSounds();
removeMovieClip("rooms");
removeMovieClip("roomsRamka");
removeMovieClip("opisMC");
if (((((czekSave1.data.cFrame == undefined) && (czekSave2.data.cFrame == undefined)) && (czekSave3.data.cFrame == undefined)) && (czekSave4.data.cFrame == undefined)) && (czekSave5.data.cFrame == undefined)) {
loadBtn._alpha = 50;
loadBtn.enabled = false;
}
Frame 33
stop();
outOfOrderTXT = "- - empty - -";
savedGameTXT = "save";
btnNames = function () {
if (czekSave1.data.cFrame == undefined) {
delete b1.onPress;
delete b1.onRollOver;
delete b1.onRollOut;
b1.napis = "1. " + outOfOrderTXT;
} else {
b1.napis = (("1. " + savedGameTXT) + " 1 - ") + czekSave1.data.startDate;
}
if (czekSave2.data.cFrame == undefined) {
delete b2.onPress;
delete b2.onRollOver;
delete b2.onRollOut;
b2.napis = "2. " + outOfOrderTXT;
} else {
b2.napis = (("2. " + savedGameTXT) + " 2 - ") + czekSave2.data.startDate;
}
if (czekSave3.data.cFrame == undefined) {
delete b3.onPress;
delete b3.onRollOver;
delete b3.onRollOut;
b3.napis = "3. " + outOfOrderTXT;
} else {
b3.napis = (("3. " + savedGameTXT) + " 3 - ") + czekSave3.data.startDate;
}
if (czekSave4.data.cFrame == undefined) {
delete b4.onPress;
delete b4.onRollOver;
delete b4.onRollOut;
b4.napis = "4. " + outOfOrderTXT;
} else {
b4.napis = (("4. " + savedGameTXT) + " 4 - ") + czekSave4.data.startDate;
}
if (czekSave5.data.cFrame == undefined) {
delete b5.onPress;
delete b5.onRollOver;
delete b5.onRollOut;
b5.napis = "5. " + outOfOrderTXT;
} else {
b5.napis = (("5. " + savedGameTXT) + " 5 - ") + czekSave5.data.startDate;
}
setDate();
slotActive();
};
b1.onPress = function () {
setSaveFile("save_1");
};
b2.onPress = function () {
setSaveFile("save_2");
};
b3.onPress = function () {
setSaveFile("save_3");
};
b4.onPress = function () {
setSaveFile("save_4");
};
b5.onPress = function () {
setSaveFile("save_5");
};
i = 1;
while (i < 6) {
this["b" + i].onRollOver = function () {
this.gotoAndStop(2);
};
this["b" + i].onRollOut = function () {
this.gotoAndStop(1);
};
i++;
}
setSaveFile = function (fileName) {
sfx("btnSnd");
saveNr.data.nr = String(fileName).substring(length(String(fileName)) - 1);
saveFile = SharedObject.getLocal(fileName);
_global.s = saveFile.data;
s.startDate = dat;
restoreMe = true;
przejscie("float");
};
deleteSaves = function () {
czekSave1.clear();
czekSave2.clear();
czekSave3.clear();
czekSave4.clear();
czekSave5.clear();
saveNr.clear();
saveNum = 0;
};
btnNames();
Frame 40
middleX = 200;
middleY = 200;
roomDepth = 1;
this.createEmptyMovieClip("rooms", 100);
this.attachMovie("roomsRamka", "roomsRamka", 101);
this.attachMovie("opisMC", "opisMC", 102, {_y:450});
rooms._x = middleX;
rooms._y = middleY;
warp = function (num, jak) {
if (go && (readyToMove)) {
sfx("moveSound");
prevRoomX = rooms["r" + nr]._x;
prevRoomY = rooms["r" + nr]._y;
i = 0;
while (i < 10) {
rooms["r" + nr]["b" + i]._visible = false;
i++;
}
oldRoom = nr;
nr = num;
s.cFrame = num;
if (roomDepth == 1) {
roomDepth = 2;
} else {
roomDepth = 1;
}
rooms.attachMovie("r" + num, "r" + num, roomDepth);
if (jak == "p") {
rooms["r" + num]._x = prevRoomX + 310;
rooms["r" + num]._y = prevRoomY;
} else if (jak == "l") {
rooms["r" + num]._x = prevRoomX - 310;
rooms["r" + num]._y = prevRoomY;
} else if (jak == "g") {
rooms["r" + num]._x = prevRoomX;
rooms["r" + num]._y = prevRoomY - 310;
} else if (jak == "d") {
rooms["r" + num]._x = prevRoomX;
rooms["r" + num]._y = prevRoomY + 310;
}
roomsFriction = 0;
}
};
jump = function (num) {
if (go) {
sfx("btnSnd");
prevRoomX = rooms["r" + nr]._x;
prevRoomY = rooms["r" + nr]._y;
nr = num;
s.cFrame = num;
rooms.attachMovie("r" + num, "r" + num, roomDepth, {_x:prevRoomX, _y:prevRoomY});
}
};
onEnterFrame = function () {
if (roomsFriction <= 0.4) {
roomsFriction = roomsFriction + 0.05;
}
diffX = Math.round((((-eval ("rooms.r" + nr)._x) + middleX) - rooms._x) * roomsFriction);
diffY = Math.round((((-eval ("rooms.r" + nr)._y) + middleY) - rooms._y) * roomsFriction);
rooms._x = rooms._x + diffX;
rooms._y = rooms._y + diffY;
if (Math.abs(diffX + diffY) <= 1) {
if (!readyToMove) {
removeMovieClip(rooms["r" + oldRoom]);
}
readyToMove = true;
} else {
readyToMove = false;
}
};
reset = function () {
jumperItem = false;
opis = "";
liniaMenu = 400;
rozstawMenu = 35;
maxItems = 10;
maxShopItems = 15;
center = gameWidth / 2;
itemNumber = 0;
itemsOnScreen = 0;
go = true;
restoreRoom();
attachMovie("itemInvOpis", "itemInvOpis", 350, {_x:gameWidth / 2, _y:liniaMenu + 20});
};
var itemPlaceTaken = [];
var listOfItems = new Array();
if (s.listOfItems == undefined) {
s.listOfItems = new Array();
s.itemsInInventory = 0;
}
var listOfPhotos = new Array();
var listOfDocuments = new Array();
itemNumber = 0;
itemsOnScreen = 0;
var shadowJasny = (new flash.filters.DropShadowFilter(5, 45, 0, 0.8, 5, 10, 1, 1, false, false, false));
var shadowCiemny = (new flash.filters.DropShadowFilter(5, 45, 0, 2, 5, 10, 2, 3, false, false, false));
itemFinder = function () {
if (go) {
czekIlosc = this.ktoryItem + "_quantity";
if ((itemsOnScreen == maxItems) && (s[czekIlosc] == undefined)) {
sfx("inventoryFull");
rozmowa("the inventory is full...");
} else {
rozmowa("");
itemQuantityCzek(this.ktoryItem);
this._visible = false;
s[this.ktorySave] = true;
}
}
};
documentFinder = function () {
if (go) {
if ((listOfDocuments.length == 0) && (itemsOnScreen == maxItems)) {
sfx("inventoryFull");
rozmowa("the inventory is full...");
} else {
rozmowa("");
this._visible = false;
findDocument(this.ktoryDokument);
}
}
};
photoFinder = function () {
if (go) {
if ((listOfPhotos.length == 0) && (itemsOnScreen == maxItems)) {
sfx("inventoryFull");
rozmowa("the inventory is full...");
} else {
rozmowa("");
this._visible = false;
findPhoto(this.ktoreFoto);
}
}
};
itemQuantityCzek = function (co) {
if ((co != undefined) && (co != "s_undefined")) {
czekIlosc = co + "_quantity";
if (s[czekIlosc] == undefined) {
itemCollect(co);
s[czekIlosc] = 1;
} else {
s[czekIlosc]++;
itemQuantityDisplay(co, s[czekIlosc]);
ataczBot(co);
sfx("findSound");
}
}
};
itemQuantityDisplay = function (co, ile) {
this[co].createTextField("quantityTXT", 1, -20, -22, 15, 15);
this[co].quantityTXT.selectable = false;
this[co].quantityTXT.html = true;
this[co].quantityTXT.htmlText = ile;
this[co].quantityTXT.filters = [shadowCiemny];
var _local2 = new TextFormat();
_local2.color = 16777215 /* 0xFFFFFF */;
_local2.align = "left";
_local2.font = "arial";
_local2.size = 10;
this[co].quantityTXT.setTextFormat(_local2);
};
itemCollect = function (co) {
opis = "";
itemNumber++;
itemPlaceTaken[itemNumber] = co;
attachMovie(co, co, itemNumber + 450, {filters:[shadowJasny], ktory:itemNumber, moveInitVal:0, inInventory:false, drag:false, onEnterFrame:itemLocate, onRollOver:itemNameDisp, onRollOut:itemNameEnd, onPress:itemPress});
this[co].attachMovie("item_tester", "tester", 2);
if (itemsOnScreen == 0) {
this[co].destX = center;
} else {
this[co].destX = eval (lastName).destX + rozstawMenu;
i = 1;
while (i < (itemNumber + 1)) {
if (eval (itemPlaceTaken[i])._y >= (liniaMenu - 10)) {
eval (itemPlaceTaken[i]).moveInitVal = 0;
}
eval (itemPlaceTaken[i]).destX = eval (itemPlaceTaken[i]).destX - (rozstawMenu / 2);
i++;
}
}
itemsOnScreen++;
setLastName(itemNumber);
czekIlosc = co + "_quantity";
if ((s[czekIlosc] != undefined) && (s[czekIlosc] >= 2)) {
itemQuantityDisplay(co, s[czekIlosc]);
}
if (!restoring) {
sfx("findSound");
listOfItems.push(co);
saveListOfItems();
this[co]._x = _xmouse;
this[co]._y = _ymouse;
} else {
this[co]._x = center;
this[co]._y = liniaMenu;
}
onCollect(co);
};
itemLocate = function () {
if (((_ymouse >= (liniaMenu - 40)) && (this.inInventory)) && (go)) {
this.nr = 40 - (Math.abs(_xmouse - this._x) / 2);
if (this.nr <= 0) {
this.nr = 0;
}
this.destY = liniaMenu - this.nr;
this._xscale = this._xscale + (((100 + this.nr) - this._xscale) * 0.2);
this._yscale = this._yscale + (((100 + this.nr) - this._yscale) * 0.2);
} else {
this.destY = liniaMenu;
this._xscale = this._xscale + ((100 - this._xscale) * 0.2);
this._yscale = this._yscale + ((100 - this._yscale) * 0.2);
}
if (Math.abs(this._y - this.destY) <= 5) {
this.inInventory = true;
}
if (!this.drag) {
if (this.moveInitVal <= 0.3) {
this.moveInitVal = this.moveInitVal + 0.01;
}
this._x = this._x + ((this.destX - this._x) * this.moveInitVal);
this._y = this._y + ((this.destY - this._y) * 0.2);
}
if (this.hitTest(_xmouse, _ymouse, true)) {
if (this._totalframes != 1) {
if (go) {
this.nextFrame();
}
}
} else if (this._currentframe != 1) {
if (go) {
this.prevFrame();
}
}
};
shadowLocate = function () {
if (this.removeMe) {
this._xscale = this._xscale - 5;
this._yscale = this._yscale - 5;
if (this._xscale <= 5) {
delete this.onEnterFrame;
removeMovieClip(this);
}
} else {
this._x = this._x + ((eval ("root." + this.destItem).destX - this._x) * 0.2);
this._y = this._y + ((eval ("root." + this.destItem).destY - this._y) * 0.2);
}
};
itemNameDisp = function () {
if (go) {
opis = itemProperties[this._name][0];
rozmowa("");
}
};
itemNameEnd = function () {
opis = "";
};
itemPress = function () {
if (itemProperties[this._name][1]) {
if (this._alpha >= 60) {
if (go) {
if (!this.drag) {
this.gotoAndStop(this._totalframes);
go = false;
Mouse.hide();
shadowName = this._name + "_shadow";
this.swapDepths(this.ktory + 500);
attachMovie(this._name, shadowName, this.ktory + 400, {onEnterFrame:shadowLocate, _alpha:50, destItem:this._name, _x:this.destX, _y:this.destY});
eval (shadowName).gotoAndStop(this._totalframes);
root.visibleShadow = shadowName;
sfx("pickUpSound");
this.startDrag(true);
this.drag = true;
opis = "";
}
} else if (this.tester.hitTest(this.destX, this.destY) && (!go)) {
Mouse.show();
stopDrag();
this.moveInitVal = 0;
removeMovieClip(eval (shadowName));
this.swapDepths(this.ktory + 400);
this.drag = false;
opis = "";
sfx("putDownSound");
go = true;
}
}
} else {
opis = "";
if ((this._name == "documents") || (this._name == "photos")) {
sfx("documentsSound");
} else {
sfx("btnSnd");
}
showItem(this._name);
}
combine();
};
showItem = function (co) {
attachMovie(co + "_view", "showView", 5000);
go = false;
};
used = function (co) {
sfx("itemUsed");
czekIlosc = co + "_quantity";
if (s[czekIlosc] <= 1) {
s[czekIlosc] = undefined;
usedAll(co);
} else if (s[czekIlosc] == 2) {
s[czekIlosc]--;
this[co].quantityTXT.removeTextField();
} else if (s[czekIlosc] > 2) {
s[czekIlosc]--;
itemQuantityDisplay(co, s[czekIlosc]);
}
};
usedAll = function (co) {
i = 0;
while (i < listOfItems.length) {
if (listOfItems[i].toString() == co) {
listOfItems.splice(i, 1);
}
i++;
}
itemsOnScreen = listOfItems.length;
saveListOfItems();
currentBeingUsed = eval (co).ktory;
i = 1;
while (i < (itemNumber + 1)) {
if (i > currentBeingUsed) {
eval (itemPlaceTaken[i]).moveInitVal = 0;
eval (itemPlaceTaken[i]).destX = eval (itemPlaceTaken[i]).destX - (rozstawMenu / 2);
}
if (i < currentBeingUsed) {
eval (itemPlaceTaken[i]).moveInitVal = 0;
eval (itemPlaceTaken[i]).destX = eval (itemPlaceTaken[i]).destX + (rozstawMenu / 2);
}
i++;
}
itemPlaceTaken[currentBeingUsed] = null;
setLastName(itemNumber);
go = true;
Mouse.show();
eval (co + "_shadow").removeMe = true;
removeMovieClip(co);
};
setLastName = function (num) {
if ((eval (itemPlaceTaken[num]).destX == null) && (num > 0)) {
num--;
setLastName(num);
} else {
lastName = itemPlaceTaken[num];
}
};
removeAllItems = function () {
i = 0;
while (i < listOfItems.length) {
this[listOfItems[i]].removeMovieClip(this);
eval (listOfItems[i] + "_shadow").removeMovieClip(this);
i++;
}
Mouse.show();
rozmowa("");
itemNumber = 0;
itemsOnScreen = 0;
};
findDocument = function (co) {
if (listOfDocuments.length == 0) {
itemCollect("documents");
} else {
ataczBot("documents");
sfx("findSound");
}
opis = "";
listOfDocuments.push(co);
ktorySave = co + "_finder";
s[ktorySave] = true;
s.listOfDocuments = listOfDocuments;
reloadItemProperties();
onCollect(co);
};
findPhoto = function (co) {
if (listOfPhotos.length == 0) {
itemCollect("photos");
} else {
ataczBot("photos");
sfx("findSound");
}
opis = "";
listOfPhotos.push(co);
ktorySave = co + "_finder";
s[ktorySave] = true;
s.listOfPhotos = listOfPhotos;
reloadItemProperties();
onCollect(co);
};
botNr = 1;
ataczBot = function (co) {
attachMovie(co, co + botNr, this.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse, toWhere:co, filters:[shadowJasny], onEnterFrame:toInventory, friction:0});
botNr++;
};
toInventory = function () {
this.gotoAndStop(1);
if (this.friction <= 0.2) {
this.friction = this.friction + 0.02;
}
this._x = this._x + ((eval ("root." + this.toWhere)._x - this._x) * this.friction);
this._y = this._y + ((eval ("root." + this.toWhere)._y - this._y) * 0.2);
this._alpha = this._alpha - 4;
if (this._alpha <= 0) {
removeMovieClip(this);
delete this.onEnterFrame;
}
};
checkInventoryStatus = function () {
i = 0;
while (i < 20) {
if ((s.listOfItems[i].toString() == "s_undefined") || (s.listOfItems[i].toString() == undefined)) {
s.listOfItems.splice(i, 1);
s.itemsInInventory = s.listOfItems.length;
}
i++;
}
if ((s.itemsInInventory != undefined) && (s.itemsInInventory != 0)) {
listOfItems = s.listOfItems;
restoring = true;
restoringNr = 1;
restoringInt = setInterval(restoreItemsFromSave, 1);
} else {
restoring = false;
}
reloadItemProperties();
};
saveListOfItems = function () {
s.listOfItems = listOfItems;
s.itemsInInventory = listOfItems.length;
};
restoreItemsFromSave = function () {
if (restoring) {
if (s.listOfItems[restoringNr - 1] != undefined) {
itemCollect(s.listOfItems[restoringNr - 1]);
}
if (restoringNr != s.listOfItems.length) {
restoringNr++;
} else {
clearInterval(restoringInt);
restoring = false;
}
}
if (s.listOfDocuments != undefined) {
listOfDocuments = s.listOfDocuments;
}
if (s.listOfPhotos != undefined) {
listOfPhotos = s.listOfPhotos;
}
reloadItemProperties();
};
restoreRoom = function () {
checkInventoryStatus();
if (s.cFrame == undefined) {
amb("mayAmb");
jump(1);
} else {
amb(s.currentAmbient);
jump(s.cFrame);
}
};
dialogBoxEF = function () {
this._y = this._y + Math.round((this.A - this._y) * 0.4);
if (this.A == -20) {
if (this._y <= -18) {
delete this.onEnterFrame;
this.removeMovieClip(this);
}
}
};
rozmawiamy = false;
rozmowa = function (co) {
if ((!rozmawiamy) && (co != "")) {
attachMovie("dialogBox", "dialogBox", 50);
dialogBox.A = 30;
dialogBox._x = 275;
dialogBox._y = -20;
dialogBox.onEnterFrame = dialogBoxEF;
rozmawiamy = true;
}
if (co == "") {
dialogBox.A = -20;
rozmawiamy = false;
} else {
dialogBox.msg = co;
}
};
sc = function (ktory) {
if (go && (cursorOn)) {
Mouse.hide();
attachMovie("cursor_" + ktory, "movementCursor", this.getNextHighestDepth());
movementCursor._x = _xmouse;
movementCursor._y = _ymouse;
}
};
hc = function () {
if (go && (cursorOn)) {
removeMovieClip("movementCursor");
Mouse.show();
}
};
simpleHit = function () {
if (this.tester.hitTest(eval (this.triggerItem))) {
delete this.onMouseDown;
used(this.triggerItem, false);
this.play();
}
};
czat = function (ktora) {
go = false;
sfx("btnSnd");
s[ktora + "_done"] = true;
attachMovie("czatMC", "czatMC", this.getNextHighestDepth());
czatMC.gotoAndStop(ktora);
};
endCzat = function () {
go = true;
sfx("btnSnd");
czatter.resetMe();
removeMovieClip("czatMC");
};
gotoAndStop ("dane");
Frame 46
var itemProperties = [];
reloadItemProperties = function () {
itemProperties.jadeite = ["jadeite", true, 15];
itemProperties.lever = ["lever handle", true, 15];
itemProperties.wrench = ["wrench", true, "unknown"];
itemProperties.light_bulb = ["lightbulb", true, 213];
itemProperties.rusty_key = ["key", true, 67];
itemProperties.bowl = ["wooden bowl", true, 67];
itemProperties.bowl2 = ["wooden bowl filled with sand", true, 67];
itemProperties.weight_stone = ["weight stone", true, 67];
itemProperties.topaz = ["topaz", true, 67];
itemProperties.eye = ["round stone", true, 67];
itemProperties.bacab1 = ["winter bacab plate", true, 67];
itemProperties.bacab2 = ["spring bacab plate", true, 67];
itemProperties.bacab3 = ["summer bacab plate", true, 67];
itemProperties.bacab4 = ["autumn bacab plate", true, 67];
itemProperties.stick = ["wooden stick", true, 67];
itemProperties.cone = ["stone cone", true, 67];
};
setQuantity = function (co, ile) {
if (s[co] == undefined) {
s[co] = ile;
}
};
setQuantity("kolo1pozycja", 1);
setQuantity("kolo2pozycja", 1);
czekGlyfs = function () {
if (((s.r11_myGlyph == "air") && (s.r12_myGlyph == "wind")) && (s.r13_myGlyph == "fire")) {
if (s.zejscie2 == undefined) {
s.zejscie2 = true;
sfx("sandSnd");
}
}
};
reset();
Symbol 14 MovieClip Frame 1
onEnterFrame = function () {
percent = Math.round((root.getBytesLoaded() / root.getBytesTotal()) * 100);
napis.text = percent;
ramie._rotation = ramie._rotation + ((percent - ramie._rotation) * 0.2);
ramie2._rotation = ramie2._rotation - 5;
if (percent < 100) {
root.stop();
} else {
delete onEnterFrame;
root.gotoAndStop(root.load_to);
}
};
Symbol 19 MovieClip [opisMC] Frame 1
stop();
onEnterFrame = function () {
if (root.opis != "") {
DynamicOpis.napis = root.opis;
}
if (root.opis == "") {
prevFrame();
} else {
nextFrame();
}
};
footerDisplay = root.footerTxt;
Symbol 23 MovieClip Frame 1
_alpha = 0;
Symbol 88 MovieClip Frame 1
onRollOver = function () {
root.opis = "air glyph";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
_parent._parent.play();
};
Symbol 91 Button
on (press) {
root.jump(3);
}
Symbol 92 MovieClip Frame 1
stop();
rem(this);
Symbol 92 MovieClip Frame 2
rem(this, _totalframes);
sfx("kamienSnd1");
Symbol 92 MovieClip Frame 12
sfx("kamienSnd2");
Symbol 92 MovieClip Frame 24
stop();
Symbol 95 MovieClip Frame 1
onRollOver = function () {
root.opis = "box glyph";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 101 Button
on (press) {
play();
}
Symbol 104 MovieClip Frame 1
ktoryItem = "bacab4";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 187 MovieClip Frame 1
stop();
rem(this);
Symbol 187 MovieClip Frame 2
rem(this, _totalframes);
sfx("leverSnd");
Symbol 187 MovieClip Frame 4
sfx("sandSnd");
Symbol 187 MovieClip Frame 20
stop();
Symbol 188 MovieClip [r2] Frame 1
lewo = 3;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(1);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 195 MovieClip Frame 1
ktoryItem = "jadeite";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 196 MovieClip [r3] Frame 1
lewo = 1;
prawo = 1;
gora = 1;
dol = 4;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(2);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 201 MovieClip [r4] Frame 1
lewo = 1;
prawo = 1;
gora = 3;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(5);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 209 MovieClip [r5] Frame 1
lewo = 6;
prawo = 7;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 214 MovieClip Frame 1
onRollOver = function () {
root.opis = "greeting glyph";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 232 MovieClip Frame 1
stop();
rem(this);
if (s.coorX == undefined) {
coorX = 0;
} else {
coorX = s.coorX;
}
if (s.coorY == undefined) {
coorY = 0;
} else {
coorY = s.coorY;
}
if (s.coorZ == undefined) {
coorZ = 0;
} else {
coorZ = s.coorZ;
}
t1.onPress = function () {
if (coorX < 9) {
coorX++;
} else {
coorX = 0;
}
s.coorX = coorX;
};
t2.onPress = function () {
if (coorY < 9) {
coorY++;
} else {
coorY = 0;
}
s.coorY = coorY;
};
t3.onPress = function () {
if (coorZ < 9) {
coorZ++;
} else {
coorZ = 0;
}
s.coorZ = coorZ;
};
t4.onPress = function () {
play();
};
Symbol 232 MovieClip Frame 2
rem(this, _totalframes);
sfx("portalCharge");
Symbol 232 MovieClip Frame 32
sfx("eleSnd");
Symbol 232 MovieClip Frame 61
sfx("metalBreakSnd");
Symbol 232 MovieClip Frame 92
stop();
Symbol 237 MovieClip [r1] Frame 1
lewo = 2;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(32);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 245 MovieClip Frame 1
ktoryItem = "jadeite";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 247 MovieClip Frame 1
stop();
if (s.zsypOne) {
nextFrame();
}
Symbol 251 MovieClip Frame 1
ktoryItem = "lever";
onPress = root.itemFinder;
ktorySave = ktoryItem + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 252 MovieClip [r6] Frame 1
lewo = 1;
prawo = 5;
gora = 33;
dol = 8;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
if (s.zsypOne) {
b4._visible = true;
} else {
b4._visible = false;
}
Symbol 259 MovieClip Frame 1
stop();
rem(this);
triggerItem = "eye";
onMouseDown = root.simpleHit;
Symbol 259 MovieClip Frame 2
stop();
rem(this, 2);
delete onMouseDown;
_parent.czekEye();
Symbol 261 MovieClip Frame 1
stop();
rem(this);
triggerItem = "eye";
onMouseDown = root.simpleHit;
Symbol 261 MovieClip Frame 2
stop();
rem(this, 2);
delete onMouseDown;
_parent.czekEye();
Symbol 263 MovieClip Frame 1
ktoryItem = "topaz";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 264 MovieClip Frame 1
stop();
rem(this);
czekEye = function () {
if (((s.eyesDone != true) && (eye1._currentframe == 2)) && (eye2._currentframe == 2)) {
s.eyesDone = true;
play();
}
};
Symbol 264 MovieClip Frame 3
rem(this, _totalframes);
sfx("kamienSnd2");
Symbol 264 MovieClip Frame 10
sfx("woodMetalSnd");
Symbol 264 MovieClip Frame 14
sfx("woodMetalSnd");
Symbol 264 MovieClip Frame 15
stop();
Symbol 282 MovieClip Frame 1
stop();
rem(this);
triggerItem = "lever";
onMouseDown = root.simpleHit;
Symbol 282 MovieClip Frame 2
stop();
rem(this, 2);
Symbol 282 MovieClip Frame 3
rem(this, _totalframes);
s.zsypOne = true;
sfx("leverSnd");
Symbol 282 MovieClip Frame 12
sfx("sandSnd");
Symbol 282 MovieClip Frame 21
stop();
Symbol 283 MovieClip [r7] Frame 1
lewo = 5;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 292 MovieClip Frame 1
ktoryItem = "stick";
onPress = root.itemFinder;
ktorySave = ktoryItem + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 295 MovieClip [r8] Frame 1
lewo = 1;
prawo = 9;
gora = 6;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 303 MovieClip Frame 1
ktoryItem = "bowl";
onPress = root.itemFinder;
ktorySave = ktoryItem + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 310 Button
on (press) {
gotoAndPlay ("prest");
}
Symbol 315 MovieClip Frame 1
stop();
rem(this);
triggerItem = "weight_stone";
onMouseDown = root.simpleHit;
Symbol 315 MovieClip Frame 2
rem(this, 20);
s.czopDone = true;
Symbol 315 MovieClip Frame 3
sfx("kamienSnd1");
Symbol 315 MovieClip Frame 19
sfx("leverSnd");
Symbol 315 MovieClip Frame 20
stop();
Symbol 315 MovieClip Frame 26
sfx("kamienSnd1");
Symbol 316 MovieClip [r9] Frame 1
lewo = 8;
prawo = 10;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 320 MovieClip Frame 1
ktoryItem = "bacab1";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 321 MovieClip [r33] Frame 1
lewo = 1;
prawo = 1;
gora = 1;
dol = 6;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 339 MovieClip Frame 1
onRollOver = function () {
root.opis = "air wind and fire dig through the sand";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 346 MovieClip Frame 1
stop();
if (s.zejscie2) {
nextFrame();
}
Symbol 347 MovieClip [r10] Frame 1
lewo = 9;
prawo = 11;
gora = 1;
dol = 14;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
if (s.zejscie2) {
b4._visible = true;
} else {
b4._visible = false;
}
Symbol 355 Button
on (press) {
root.opis = "";
play();
}
on (rollOut) {
root.opis = "";
}
on (rollOver) {
root.opis = myGlyph;
}
Symbol 368 MovieClip Frame 1
stop();
rem(this);
myGlyph = "";
s[_parent._name + "_myGlyph"] = myGlyph;
if (s.zejscie2) {
b1._visible = false;
}
_parent.b1.enabled = true;
_parent.b2.enabled = true;
Symbol 368 MovieClip Frame 2
rem(this, 15);
myGlyph = "wind";
sfx("kamienSnd1");
_parent.b1.enabled = false;
_parent.b2.enabled = false;
Symbol 368 MovieClip Frame 15
stop();
myGlyph = "wind";
s[_parent._name + "_myGlyph"] = myGlyph;
root.czekGlyfs();
if (s.zejscie2) {
b1._visible = false;
}
_parent.b1.enabled = true;
_parent.b2.enabled = true;
Symbol 368 MovieClip Frame 16
rem(this, 30);
myGlyph = "fire";
sfx("kamienSnd1");
_parent.b1.enabled = false;
_parent.b2.enabled = false;
Symbol 368 MovieClip Frame 30
stop();
myGlyph = "fire";
s[_parent._name + "_myGlyph"] = myGlyph;
root.czekGlyfs();
if (s.zejscie2) {
b1._visible = false;
}
_parent.b1.enabled = true;
_parent.b2.enabled = true;
Symbol 368 MovieClip Frame 31
rem(this, 45);
myGlyph = "sand";
sfx("kamienSnd1");
_parent.b1.enabled = false;
_parent.b2.enabled = false;
Symbol 368 MovieClip Frame 45
stop();
myGlyph = "sand";
s[_parent._name + "_myGlyph"] = myGlyph;
root.czekGlyfs();
if (s.zejscie2) {
b1._visible = false;
}
_parent.b1.enabled = true;
_parent.b2.enabled = true;
Symbol 368 MovieClip Frame 46
rem(this, 60);
myGlyph = "air";
sfx("kamienSnd1");
_parent.b1.enabled = false;
_parent.b2.enabled = false;
Symbol 368 MovieClip Frame 60
stop();
myGlyph = "air";
s[_parent._name + "_myGlyph"] = myGlyph;
root.czekGlyfs();
if (s.zejscie2) {
b1._visible = false;
}
_parent.b1.enabled = true;
_parent.b2.enabled = true;
Symbol 368 MovieClip Frame 61
rem(this, 1);
myGlyph = "";
s[_parent._name + "_myGlyph"] = myGlyph;
sfx("kamienSnd1");
_parent.b1.enabled = false;
_parent.b2.enabled = false;
Symbol 373 MovieClip Frame 1
onRollOver = function () {
root.opis = "Ixtab";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 376 MovieClip [r11] Frame 1
lewo = 10;
prawo = 12;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 380 MovieClip [r12] Frame 1
lewo = 11;
prawo = 13;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 388 MovieClip Frame 1
ktoryItem = "eye";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 409 MovieClip Frame 1
stop();
rem(this);
Symbol 409 MovieClip Frame 2
rem(this, _totalframes);
sfx("leverSnd");
Symbol 409 MovieClip Frame 4
sfx("sandSnd");
Symbol 409 MovieClip Frame 20
stop();
Symbol 410 MovieClip [r13] Frame 1
lewo = 12;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 428 MovieClip Frame 1
stop();
rem(this);
triggerItem = "stick";
onMouseDown = root.simpleHit;
Symbol 428 MovieClip Frame 2
rem(this, _totalframes);
Symbol 428 MovieClip Frame 12
sfx("leverSnd");
Symbol 428 MovieClip Frame 24
sfx("kamienSnd1");
Symbol 428 MovieClip Frame 46
stop();
Symbol 429 MovieClip [r14] Frame 1
lewo = 1;
prawo = 1;
gora = 10;
dol = 15;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 443 Button
on (rollOver) {
play();
}
Symbol 446 MovieClip Frame 1
stop();
Symbol 446 MovieClip Frame 2
sfx("stingSnd");
Symbol 447 MovieClip [r15] Frame 1
lewo = 1;
prawo = 16;
gora = 14;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 452 MovieClip Frame 1
stop();
if (s.linaDown) {
nextFrame();
}
Symbol 452 MovieClip Frame 2
b3.onPress = function () {
root.warp(17, "g");
};
Symbol 462 MovieClip [r16] Frame 1
lewo = 15;
prawo = 20;
gora = 17;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 464 MovieClip Frame 1
ktoryItem = "bacab2";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 471 MovieClip [r17] Frame 1
lewo = 15;
prawo = 18;
gora = 1;
dol = 16;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 474 MovieClip Frame 1
onRollOver = function () {
root.opis = "mole glyph";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 478 MovieClip Frame 1
stop();
rem(this);
Symbol 478 MovieClip Frame 2
rem(this, _totalframes);
Symbol 478 MovieClip Frame 22
sfx("woodMetalSnd");
Symbol 478 MovieClip Frame 26
sfx("woodMetalSnd");
Symbol 478 MovieClip Frame 28
stop();
Symbol 485 Button
on (press) {
if (root.go) {
play();
}
}
Symbol 486 Button
on (press) {
root.jump(22);
}
Symbol 487 MovieClip Frame 1
stop();
rem(this);
Symbol 487 MovieClip Frame 2
rem(this, _totalframes);
Symbol 487 MovieClip Frame 38
stop();
Symbol 488 MovieClip [r18] Frame 1
lewo = 17;
prawo = 19;
gora = 1;
dol = 11;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 499 MovieClip Frame 1
stop();
onPress = function () {
play();
};
s.kolo1pozycja = 1;
rem(this);
Symbol 499 MovieClip Frame 2
sfx("kamienSnd1");
Symbol 499 MovieClip Frame 10
stop();
s.kolo1pozycja = 2;
rem(this, _currentframe);
Symbol 499 MovieClip Frame 11
sfx("kamienSnd1");
Symbol 499 MovieClip Frame 21
stop();
s.kolo1pozycja = 3;
rem(this, _currentframe);
Symbol 499 MovieClip Frame 22
sfx("kamienSnd1");
Symbol 499 MovieClip Frame 30
stop();
s.kolo1pozycja = 4;
rem(this, _currentframe);
Symbol 499 MovieClip Frame 31
s.kolo1pozycja = 1;
sfx("kamienSnd1");
rem(this, 1);
Symbol 504 MovieClip Frame 1
stop();
onPress = function () {
play();
};
s.kolo2pozycja = 1;
if (s.naczymstoimy != undefined) {
gotoAndStop(s.naczymstoimy);
}
Symbol 504 MovieClip Frame 2
sfx("kamienSnd1");
Symbol 504 MovieClip Frame 6
_parent.kolo1przelacznik.play();
Symbol 504 MovieClip Frame 10
stop();
s.kolo2pozycja = 2;
s.naczymstoimy = _currentframe;
Symbol 504 MovieClip Frame 11
sfx("kamienSnd1");
Symbol 504 MovieClip Frame 16
_parent.kolo1przelacznik.play();
Symbol 504 MovieClip Frame 21
stop();
s.kolo2pozycja = 3;
s.naczymstoimy = _currentframe;
Symbol 504 MovieClip Frame 22
sfx("kamienSnd1");
Symbol 504 MovieClip Frame 26
_parent.kolo1przelacznik.play();
Symbol 504 MovieClip Frame 30
stop();
s.kolo2pozycja = 4;
s.naczymstoimy = _currentframe;
Symbol 504 MovieClip Frame 31
s.kolo2pozycja = 1;
sfx("kamienSnd1");
s.naczymstoimy = 1;
Symbol 504 MovieClip Frame 35
_parent.kolo1przelacznik.play();
Symbol 505 MovieClip [r19] Frame 1
lewo = 18;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 510 MovieClip Frame 1
onRollOver = function () {
root.opis = "water glyph";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 512 MovieClip Frame 1
onRollOver = function () {
root.opis = "drink glyph";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 514 MovieClip Frame 1
onRollOver = function () {
root.opis = "( refutation - denial - rejection )";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 532 MovieClip Frame 1
stop();
rem(this);
triggerItem = "bowl2";
onMouseDown = root.simpleHit;
Symbol 532 MovieClip Frame 2
rem(this, _totalframes);
_parent.b1.enabled = false;
_parent.b2.enabled = false;
Symbol 532 MovieClip Frame 25
sfx("sandSnd");
Symbol 532 MovieClip Frame 46
s.linaDown = true;
sfx("linaSnd");
Symbol 532 MovieClip Frame 58
sfx("woodMetalSnd");
Symbol 532 MovieClip Frame 68
sfx("woodMetalSnd");
Symbol 532 MovieClip Frame 72
sfx("woodMetalSnd");
Symbol 532 MovieClip Frame 80
stop();
_parent.b1.enabled = true;
_parent.b2.enabled = true;
Symbol 533 MovieClip [r20] Frame 1
lewo = 16;
prawo = 21;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 542 MovieClip Frame 1
rem(this);
Symbol 542 MovieClip Frame 2
rem(this, _totalframes);
Symbol 542 MovieClip Frame 10
sfx("woodMetalSnd");
Symbol 542 MovieClip Frame 14
sfx("woodMetalSnd");
Symbol 597 MovieClip Frame 1
ktoryItem = "bowl2";
onPress = root.itemFinder;
ktorySave = ktoryItem + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 598 MovieClip Frame 1
stop();
rem(this);
triggerItem = "bowl";
onMouseDown = root.simpleHit;
Symbol 598 MovieClip Frame 2
stop();
rem(this, 2);
Symbol 598 MovieClip Frame 3
rem(this, _totalframes);
_parent.b1.enabled = false;
Symbol 598 MovieClip Frame 67
stop();
_parent.b1.enabled = true;
Symbol 620 MovieClip Frame 1
stop();
_parent.miska.tester._visible = true;
_parent.miska.tester._y = 0;
kolko.onPress = function () {
delete kolko.onPress;
play();
};
Symbol 620 MovieClip Frame 2
sfx("kamienSnd2");
_parent.miska.tester._visible = false;
_parent.miska.tester._y = -1000;
_parent.b1.enabled = false;
Symbol 620 MovieClip Frame 26
if (_parent.miska._currentframe == 2) {
gotoAndPlay ("bowl");
} else {
gotoAndPlay ("empty");
}
Symbol 620 MovieClip Frame 48
sfx("sandSnd");
_parent.b1.enabled = true;
Symbol 620 MovieClip Frame 134
gotoAndStop (1);
Symbol 620 MovieClip Frame 151
sfx("sandSnd");
Symbol 620 MovieClip Frame 163
_parent.miska.play();
Symbol 620 MovieClip Frame 226
_parent.b1.enabled = false;
gotoAndStop (1);
Symbol 622 MovieClip [r21] Frame 1
lewo = 20;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 631 Button
on (press) {
b4._visible = false;
s.idziemy = "lewo";
root.warp(23, "p");
}
Symbol 633 MovieClip Frame 1
ktoryItem = "cone";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 635 MovieClip Frame 1
stop();
gotoAndStop(s.kolo1pozycja + 1);
Symbol 636 MovieClip [r22] Frame 1
lewo = 17;
prawo = 23;
gora = 1;
dol = 11;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(18);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 649 MovieClip Frame 1
stop();
if (s.przelPodKolemDone) {
nextFrame();
}
Symbol 651 Button
on (press) {
b4._visible = false;
root.warp(24, "d");
}
Symbol 652 MovieClip Frame 1
stop();
gotoAndStop(s.kolo2pozycja + 1);
Symbol 654 Button
on (press) {
play();
}
Symbol 655 MovieClip Frame 1
stop();
rem(this);
Symbol 655 MovieClip Frame 2
rem(this, _totalframes);
s.krataUp = true;
sfx("leverSnd");
Symbol 655 MovieClip Frame 10
sfx("stingSnd");
Symbol 655 MovieClip Frame 13
sfx("stingSnd");
Symbol 655 MovieClip Frame 16
sfx("stingSnd");
Symbol 655 MovieClip Frame 18
stop();
Symbol 657 Button
on (press) {
b4._visible = false;
root.warp(22, "l");
}
Symbol 658 MovieClip Frame 1
stop();
gotoAndStop(s.kolo2pozycja + 1);
Symbol 659 MovieClip [r23] Frame 1
gotoAndStop(s.idziemy);
Symbol 659 MovieClip [r23] Frame 5
b1.onPress = function () {
root.warp(22, "l");
};
Symbol 659 MovieClip [r23] Frame 10
b4.onPress = function () {
root.warp(24, "d");
};
Symbol 665 MovieClip Frame 1
ktoryItem = "weight_stone";
onPress = _level0.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 666 MovieClip [r24] Frame 1
gora = 23;
dol = 25;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
s.idziemy = "dol";
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(18);
};
b6.onPress = function () {
root.jump(1);
};
if (s.czopDone) {
czop_piaskowy._visible = false;
b4._visible = true;
} else {
czop_piaskowy._visible = true;
b4._visible = false;
}
Symbol 670 MovieClip Frame 1
stop();
onPress = function () {
play();
};
s.kolo2pozycja = 1;
if (s.naczymstoimy != undefined) {
gotoAndStop(s.naczymstoimy);
}
Symbol 670 MovieClip Frame 2
sfx("kamienSnd1");
Symbol 670 MovieClip Frame 6
_parent.kolo1przelacznik.play();
Symbol 670 MovieClip Frame 10
stop();
s.kolo2pozycja = 2;
s.naczymstoimy = _currentframe;
Symbol 670 MovieClip Frame 11
sfx("kamienSnd1");
Symbol 670 MovieClip Frame 16
_parent.kolo1przelacznik.play();
Symbol 670 MovieClip Frame 21
stop();
s.kolo2pozycja = 3;
s.naczymstoimy = _currentframe;
Symbol 670 MovieClip Frame 22
sfx("kamienSnd1");
Symbol 670 MovieClip Frame 26
_parent.kolo1przelacznik.play();
Symbol 670 MovieClip Frame 30
stop();
s.kolo2pozycja = 4;
s.naczymstoimy = _currentframe;
Symbol 670 MovieClip Frame 31
s.kolo2pozycja = 1;
sfx("kamienSnd1");
s.naczymstoimy = 1;
Symbol 670 MovieClip Frame 35
_parent.kolo1przelacznik.play();
Symbol 672 MovieClip [r25] Frame 1
lewo = 26;
prawo = 27;
gora = 24;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 678 MovieClip Frame 1
ktoryItem = "eye";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 679 MovieClip [r26] Frame 1
lewo = 1;
prawo = 25;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 692 Button
on (press) {
root.jump(29);
}
Symbol 693 MovieClip Frame 1
stop();
if (s.krataUp) {
nextFrame();
}
Symbol 694 MovieClip [r27] Frame 1
lewo = 25;
prawo = 28;
gora = 24;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 699 MovieClip [r28] Frame 1
lewo = 27;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(4);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 705 MovieClip [r29] Frame 1
stop();
lewo = 30;
prawo = 31;
gora = 32;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(27);
};
if (s.schodyDone) {
gotoAndStop (2);
}
Symbol 705 MovieClip [r29] Frame 2
lewo = 30;
prawo = 31;
gora = 32;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(27);
};
Symbol 711 MovieClip Frame 1
onRollOver = function () {
root.opis = "Ah Puch";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 732 MovieClip Frame 1
stop();
rem(this);
Symbol 732 MovieClip Frame 2
rem(this, _totalframes);
sfx("leverSnd");
Symbol 732 MovieClip Frame 4
sfx("sandSnd");
Symbol 732 MovieClip Frame 20
stop();
Symbol 739 MovieClip Frame 1
stop();
rem(this);
triggerItem = "cone";
onMouseDown = root.simpleHit;
Symbol 739 MovieClip Frame 2
rem(this, _totalframes);
s.schodyDone = true;
Symbol 739 MovieClip Frame 19
sfx("kamienSnd1");
Symbol 739 MovieClip Frame 25
sfx("kamienSnd1");
Symbol 739 MovieClip Frame 31
sfx("kamienSnd1");
Symbol 739 MovieClip Frame 37
sfx("kamienSnd1");
Symbol 739 MovieClip Frame 44
sfx("kamienSnd1");
Symbol 739 MovieClip Frame 48
stop();
Symbol 740 MovieClip [r30] Frame 1
lewo = 1;
prawo = 29;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(27);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 747 Button
on (rollOver) {
root.opis = "tooth glyph";
}
on (rollOut) {
root.opis = "";
}
on (press) {
if (_currentframe == 1) {
play();
}
root.opis = "";
}
Symbol 748 MovieClip Frame 1
stop();
rem(this);
Symbol 748 MovieClip Frame 2
rem(this, _totalframes);
sfx("kamienSnd1");
Symbol 748 MovieClip Frame 16
stop();
Symbol 751 MovieClip Frame 1
onRollOver = function () {
root.opis = "Chak Chel";
};
onRollOut = function () {
root.opis = "";
};
onPress = function () {
root.opis = "";
};
Symbol 753 MovieClip Frame 1
ktoryItem = "bacab3";
onPress = root.itemFinder;
ktorySave = _name + "_finder";
if (s[ktorySave] != undefined) {
_visible = false;
delete onPress;
}
Symbol 754 MovieClip [r31] Frame 1
lewo = 29;
prawo = 1;
gora = 1;
dol = 1;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(27);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 759 MovieClip Frame 1
stop();
rem(this);
triggerItem = "jadeite";
onMouseDown = root.simpleHit;
Symbol 759 MovieClip Frame 2
_parent.czekJadeite();
rem(this, 3);
Symbol 759 MovieClip Frame 3
stop();
Symbol 760 MovieClip Frame 1
czekJadeite = function () {
if ((((((((jadeite_inplace_1._currentframe != 1) && (jadeite_inplace_2._currentframe != 1)) && (jadeite_inplace_3._currentframe != 1)) && (jadeite_inplace_4._currentframe != 1)) && (jadeite_inplace_5._currentframe != 1)) && (jadeite_inplace_6._currentframe != 1)) && (jadeite_inplace_7._currentframe != 1)) && (jadeite_inplace_8._currentframe != 1)) {
if (s.kalendarzKolo1__Done != true) {
s.kalendarzKolo1Status = "go";
sfx("leverSnd");
s.kalendarzKolo1__Done = true;
_parent.activateMe();
}
}
};
Symbol 761 MovieClip Frame 1
ktorySave = _name + "_myRotation";
if (s[ktorySave] != undefined) {
_rotation = s[ktorySave];
} else {
_rotation = random(180);
s[ktorySave] = _rotation;
}
activateMe = function () {
delete hand.onPress;
delete hand.onRelease;
delete hand.onReleaseOutside;
delete this.onEnterFrame;
if (s.kalendarzKolo1Status == "go") {
hand.onPress = function () {
var _local3 = this._parent._parent;
var _local8 = _local3._xmouse - this._parent._x;
var _local7 = _local3._ymouse - this._parent._y;
var _local5 = ((this._parent._rotation < 0) ? (-this._parent._rotation) : (360 - this._parent._rotation));
nAngleInit = Math.floor((Math.atan2(_local7, _local8) * 180) / Math.PI);
nAngleInit = ((nAngleInit < 0) ? (-nAngleInit) : (360 - nAngleInit));
nAngleInit = nAngleInit - _local5;
this.onEnterFrame = function () {
var _local3 = this._parent._parent;
var _local7 = _local3._xmouse - this._parent._x;
var _local6 = _local3._ymouse - this._parent._y;
var _local2 = Math.floor((Math.atan2(_local6, _local7) * 180) / Math.PI);
_local2 = ((_local2 < 0) ? (-_local2) : (360 - _local2));
var _local5 = (-_local2) + nAngleInit;
var _local4 = Math.round((_local5 + 360) / 1);
this._parent._rotation = -360 + (_local4 * 1);
};
};
hand.onRelease = (hand.onReleaseOutside = function () {
if (Math.abs(_rotation) <= 20) {
_rotation = 0;
sfx("leverSnd");
s.kalendarzKolo1Status = "done";
_parent.czekKalendarz();
_parent.resetKolaKalendarza();
}
s[ktorySave] = _rotation;
delete this.onEnterFrame;
});
}
};
activateMe();
Symbol 764 MovieClip Frame 1
stop();
rem(this);
triggerItem = "topaz";
topazResetMe = function () {
if (s.kalendarzKolo2Status == "readyForStones") {
onMouseDown = root.simpleHit;
}
};
topazResetMe();
Symbol 764 MovieClip Frame 2
_parent.czekTopaz();
rem(this, 3);
Symbol 764 MovieClip Frame 3
stop();
Symbol 765 MovieClip Frame 1
resetTopaz = function () {
topaz_inplace_1.topazResetMe();
topaz_inplace_2.topazResetMe();
topaz_inplace_3.topazResetMe();
topaz_inplace_4.topazResetMe();
};
resetTopaz();
czekTopaz = function () {
if ((((topaz_inplace_1._currentframe != 1) && (topaz_inplace_2._currentframe != 1)) && (topaz_inplace_3._currentframe != 1)) && (topaz_inplace_4._currentframe != 1)) {
sfx("leverSnd");
s.kalendarzKolo2Status = "done";
_parent._parent.czekKalendarz();
_parent._parent.resetKolaKalendarza();
_parent.activateMe();
}
};
Symbol 766 MovieClip Frame 1
ktorySave = _name + "_myRotation";
if (s[ktorySave] != undefined) {
_rotation = s[ktorySave];
} else {
_rotation = random(180);
s[ktorySave] = _rotation;
}
activateMe = function () {
delete hand.onPress;
delete hand.onRelease;
delete hand.onReleaseOutside;
delete this.onEnterFrame;
if ((s.kalendarzKolo1Status == "done") && (s.kalendarzKolo2Status == undefined)) {
hand.onPress = function () {
var _local3 = this._parent._parent;
var _local8 = _local3._xmouse - this._parent._x;
var _local7 = _local3._ymouse - this._parent._y;
var _local5 = ((this._parent._rotation < 0) ? (-this._parent._rotation) : (360 - this._parent._rotation));
nAngleInit = Math.floor((Math.atan2(_local7, _local8) * 180) / Math.PI);
nAngleInit = ((nAngleInit < 0) ? (-nAngleInit) : (360 - nAngleInit));
nAngleInit = nAngleInit - _local5;
this.onEnterFrame = function () {
var _local3 = this._parent._parent;
var _local7 = _local3._xmouse - this._parent._x;
var _local6 = _local3._ymouse - this._parent._y;
var _local2 = Math.floor((Math.atan2(_local6, _local7) * 180) / Math.PI);
_local2 = ((_local2 < 0) ? (-_local2) : (360 - _local2));
var _local5 = (-_local2) + nAngleInit;
var _local4 = Math.round((_local5 + 360) / 1);
this._parent._rotation = -360 + (_local4 * 1);
};
};
hand.onRelease = (hand.onReleaseOutside = function () {
if (Math.abs(_rotation) <= 20) {
_rotation = 0;
sfx("leverSnd");
s.kalendarzKolo2Status = "readyForStones";
hand.resetTopaz();
_parent.czekKalendarz();
_parent.resetKolaKalendarza();
activateMe();
}
s[ktorySave] = _rotation;
delete this.onEnterFrame;
});
}
};
activateMe();
Symbol 769 MovieClip Frame 1
stop();
rem(this);
triggerItem = "bacab1";
onMouseDown = root.simpleHit;
Symbol 769 MovieClip Frame 2
rem(this, 3);
_parent.czekPlates();
Symbol 769 MovieClip Frame 3
stop();
delete onMouseDown;
Symbol 771 MovieClip Frame 1
stop();
rem(this);
triggerItem = "bacab4";
onMouseDown = root.simpleHit;
Symbol 771 MovieClip Frame 2
rem(this, 3);
_parent.czekPlates();
Symbol 771 MovieClip Frame 3
stop();
delete onMouseDown;
Symbol 773 MovieClip Frame 1
stop();
rem(this);
triggerItem = "bacab2";
onMouseDown = root.simpleHit;
Symbol 773 MovieClip Frame 2
rem(this, 3);
_parent.czekPlates();
Symbol 773 MovieClip Frame 3
stop();
delete onMouseDown;
Symbol 775 MovieClip Frame 1
stop();
rem(this);
triggerItem = "bacab3";
onMouseDown = root.simpleHit;
Symbol 775 MovieClip Frame 2
rem(this, 3);
_parent.czekPlates();
Symbol 775 MovieClip Frame 3
stop();
delete onMouseDown;
Symbol 776 MovieClip Frame 1
czekPlates = function () {
if ((((plate_inplace_1._currentframe != 1) && (plate_inplace_2._currentframe != 1)) && (plate_inplace_3._currentframe != 1)) && (plate_inplace_4._currentframe != 1)) {
if (s.plates_inplace___Done != true) {
s.kalendarzKolo3Status = "go";
s.plates_inplace___Done = true;
sfx("leverSnd");
_parent.activateMe();
}
}
};
Symbol 777 MovieClip Frame 1
ktorySave = _name + "_myRotation";
if (s[ktorySave] != undefined) {
_rotation = s[ktorySave];
} else {
_rotation = random(180);
s[ktorySave] = _rotation;
}
activateMe = function () {
delete hand.onPress;
delete hand.onRelease;
delete hand.onReleaseOutside;
if (s.kalendarzKolo3Status == "go") {
hand.onPress = function () {
var _local3 = this._parent._parent;
var _local8 = _local3._xmouse - this._parent._x;
var _local7 = _local3._ymouse - this._parent._y;
var _local5 = ((this._parent._rotation < 0) ? (-this._parent._rotation) : (360 - this._parent._rotation));
nAngleInit = Math.floor((Math.atan2(_local7, _local8) * 180) / Math.PI);
nAngleInit = ((nAngleInit < 0) ? (-nAngleInit) : (360 - nAngleInit));
nAngleInit = nAngleInit - _local5;
this.onEnterFrame = function () {
var _local3 = this._parent._parent;
var _local7 = _local3._xmouse - this._parent._x;
var _local6 = _local3._ymouse - this._parent._y;
var _local2 = Math.floor((Math.atan2(_local6, _local7) * 180) / Math.PI);
_local2 = ((_local2 < 0) ? (-_local2) : (360 - _local2));
var _local5 = (-_local2) + nAngleInit;
var _local4 = Math.round((_local5 + 360) / 1);
this._parent._rotation = -360 + (_local4 * 1);
};
};
hand.onRelease = (hand.onReleaseOutside = function () {
if (Math.abs(_rotation) <= 20) {
_rotation = 0;
sfx("leverSnd");
s.kalendarzKolo3Status = "done";
_parent.czekKalendarz();
_parent.resetKolaKalendarza();
activateMe();
}
s[ktorySave] = _rotation;
delete this.onEnterFrame;
});
}
};
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
amb("staticSnd");
Symbol 789 MovieClip Frame 17
sfx("monkSnd");
Symbol 789 MovieClip Frame 51
sfx("eleSnd1");
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay(random(_totalframes));
}
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 51
onClipEvent (load) {
gotoAndPlay(random(_totalframes));
}
Symbol 789 MovieClip Frame 73
sfx("eleSnd2");
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 73
onClipEvent (load) {
gotoAndPlay(random(_totalframes));
}
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 73
onClipEvent (load) {
gotoAndPlay(random(_totalframes));
}
Symbol 789 MovieClip Frame 96
sfx("eleSnd3");
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 96
onClipEvent (load) {
gotoAndPlay(random(_totalframes));
}
Instance of Symbol 788 MovieClip in Symbol 789 MovieClip Frame 96
onClipEvent (load) {
gotoAndPlay(random(_totalframes));
}
Symbol 789 MovieClip Frame 120
sfx("eleSnd1");
Symbol 789 MovieClip Frame 125
sfx("eleSnd2");
Symbol 789 MovieClip Frame 129
sfx("eleSnd3");
Symbol 789 MovieClip Frame 141
stop();
root.go = true;
root.jump(34);
Symbol 790 MovieClip Frame 1
ktorySave = _name + "_myRotation";
if (s[ktorySave] != undefined) {
_rotation = s[ktorySave];
} else {
_rotation = random(180);
s[ktorySave] = _rotation;
}
activateMe = function () {
delete hand.onPress;
delete hand.onRelease;
delete hand.onReleaseOutside;
delete this.onEnterFrame;
if ((((s.kalendarzKolo4Status != "done") && (s.kalendarzKolo1Status == "done")) && (s.kalendarzKolo2Status == "done")) && (s.kalendarzKolo3Status == "done")) {
hand.onPress = function () {
var _local3 = this._parent._parent;
var _local8 = _local3._xmouse - this._parent._x;
var _local7 = _local3._ymouse - this._parent._y;
var _local5 = ((this._parent._rotation < 0) ? (-this._parent._rotation) : (360 - this._parent._rotation));
nAngleInit = Math.floor((Math.atan2(_local7, _local8) * 180) / Math.PI);
nAngleInit = ((nAngleInit < 0) ? (-nAngleInit) : (360 - nAngleInit));
nAngleInit = nAngleInit - _local5;
this.onEnterFrame = function () {
var _local3 = this._parent._parent;
var _local7 = _local3._xmouse - this._parent._x;
var _local6 = _local3._ymouse - this._parent._y;
var _local2 = Math.floor((Math.atan2(_local6, _local7) * 180) / Math.PI);
_local2 = ((_local2 < 0) ? (-_local2) : (360 - _local2));
var _local5 = (-_local2) + nAngleInit;
var _local4 = Math.round((_local5 + 360) / 1);
this._parent._rotation = -360 + (_local4 * 1);
};
};
hand.onRelease = (hand.onReleaseOutside = function () {
if (Math.abs(_rotation) <= 20) {
_rotation = 0;
s.kalendarzKolo4Status = "done";
_parent.czekKalendarz();
sfx("leverSnd");
activateMe();
}
s[ktorySave] = _rotation;
delete this.onEnterFrame;
});
}
};
activateMe();
Symbol 791 MovieClip Frame 1
resetKolaKalendarza = function () {
kalendarz_1.activateMe();
kalendarz_2.activateMe();
kalendarz_3.activateMe();
kalendarz_4.activateMe();
};
czekKalendarz = function () {
if ((((s.kalendarzKolo1Status == "done") && (s.kalendarzKolo2Status == "done")) && (s.kalendarzKolo3Status == "done")) && (s.kalendarzKolo4Status == "done")) {
kalendarz_4.oczy.play();
root.go = false;
}
};
resetKolaKalendarza();
Symbol 792 MovieClip [r32] Frame 1
lewo = 1;
prawo = 1;
gora = 1;
dol = 29;
b1.onPress = function () {
root.warp(lewo, "l");
};
b2.onPress = function () {
root.warp(prawo, "p");
};
b3.onPress = function () {
root.warp(gora, "g");
};
b4.onPress = function () {
root.warp(dol, "d");
};
b5.onPress = function () {
root.jump(27);
};
b6.onPress = function () {
root.jump(1);
};
Symbol 827 MovieClip [r34] Frame 2
stopAllSounds();
Symbol 827 MovieClip [r34] Frame 5
sfx("exitAmb");
Symbol 827 MovieClip [r34] Frame 17
sfx("disSnd1");
Symbol 827 MovieClip [r34] Frame 31
sfx("disSnd2");
Symbol 827 MovieClip [r34] Frame 457
stop();
root.przejscie("menu");
Symbol 833 Button
on (release) {
sfx("btnSnd");
link(authorLink);
}
Symbol 836 Button
on (press) {
sfx("btnSnd");
przejscie("load");
}
Symbol 839 Button
on (press) {
sfx("btnSnd");
startNewGame();
}
Symbol 842 Button
on (release) {
sfx("btnSnd");
link(moreGamesLink);
}
Symbol 847 Button
on (release) {
sfx("btnSnd");
link(thumpLink);
}
Symbol 850 Button
on (release) {
getURL ("http://www.facebook.com/mateuszskutnik", "_blank");
}
Symbol 853 Button
on (release) {
getURL ("http://www.twitter.com/mateuszskutnik", "_blank");
}
Symbol 857 Button
on (press) {
sfx("btnSnd");
deleteSaves();
przejscie("menu");
}
Symbol 860 Button
on (press) {
sfx("btnSnd");
przejscie("menu");
}
Symbol 863 MovieClip Frame 1
stop();