Frame 1
fscommand ("showmenu", false);
stop();
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
_root.przejdzDo = function (str) {
_root.ZAPAMIETANA = str;
_root.UltraMegaZaslaniaczyk.gotoAndPlay(2);
};
_root.onEnterFrame = function () {
loader.tt1._rotation = loader.tt1._rotation + 5;
loader.tt2._rotation = loader.tt2._rotation - 5;
_root.percent = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loader.per = _root.percent + "%";
_root.loader.pas._width = _root.percent * 3;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
delete _root.onEnterFrame;
_root.przejdzDo("intro");
}
};
Frame 2
prevFrame();
Frame 3
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
stop();
if (_root.introJuzBylo) {
_root.intr.gotoAndStop("koniec");
}
Frame 4
prevFrame();
Frame 5
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
stop();
_root.skala = 478;
_root.skala2 = 4.78;
suwak.lapka.onPress = function () {
this.startDrag(false, -3, suwak.suwka._height * -1, -3, -8);
this.onMouseMove = function () {
_root.skala = 100 + (4 * Math.round(((this._y * -1) / suwak.suwka._height) * 100));
_root.skala2 = _root.skala / 100;
_root.zawieracz.zmienSkale();
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
suwak.lapka.onMouseUp = function () {
this.stopDrag();
this.onMouseMove = undefined;
};
_root.end = false;
_root.nextRoom = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
_root.introJuzBylo = true;
_root.przejdzDo("intro");
}
};
MovieClip.prototype.ZoomIn = function (LinkageName) {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
if (LinkageName == "LockerBig0") {
_root.interFace.dezaktywujLoope();
}
TenRoom.door2.btn._visible = false;
_root.zoomIsActive = true;
chowajPrzyZoomie(doChowania);
_root.attachMovie("zaslona", "zaslona", this.getDepth() + 1);
var za = _root.zaslona;
with (za) {
_alpha = 0;
_width = Stage.width;
_height = Stage.height;
}
za.onEnterFrame = function () {
if (za._alpha <= 60) {
this._alpha = this._alpha + 8;
} else {
_root.attachMovie(LinkageName, "zzoomowany", _root.getNextHighestDepth());
_level0.aktualny = String(LinkageName);
var zo = _root.zzoomowany;
zo._x = Math.round(Stage.width / 2);
zo._y = Math.round(Stage.height / 2);
zo._alpha = 0;
zo.onEnterFrame = function () {
if (zo._alpha >= 100) {
zo._alpha = 100;
delete zo.onEnterFrame;
if (zo.wroc == undefined) {
zo.onMouseDown = function () {
if (_root.loopaIsActive == undefined) {
if (_level0._ymouse < 365) {
ZoomOut();
}
}
};
} else {
zo.wroc.onRelease = function () {
if (_root.loopaIsActive == undefined) {
ZoomOut();
if (LinkageName == "LockerBig0") {
_root.interFace.aktywujLoope();
}
}
this.gotoAndStop(2);
};
zo.wroc.gotoAndStop(1);
zo.wroc.onRollOut = function () {
this.gotoAndStop(1);
};
zo.wroc.onPress = function () {
this.gotoAndStop(3);
};
zo.wroc.onReleaseOutside = zo.wroc.onRollOut;
}
} else {
zo._alpha = zo._alpha + 8;
}
};
delete za.onEnterFrame;
}
};
}
};
_global.ZoomOut = function () {
_root.zzoomowany.znikaj(8, true);
_root.zaslona.znikaj(8);
_level0.aktualny = TenRoom;
};
MovieClip.prototype.znikaj = function (v, desactiveZoom) {
this.onEnterFrame = function () {
if (this._alpha <= 0) {
this._alpha = 0;
this.removeMovieClip();
delete this.onEnterFrame;
if (_root.end == true) {
if (TenRoom.door._currentframe != TenRoom.door._totalframes) {
TenRoom.door.play();
_root.zawieracz.maska.door.play();
}
}
if (desactiveZoom == true) {
_root.zoomIsActive = undefined;
chowajPrzyZoomie(doChowania);
}
} else {
this._alpha = this._alpha - v;
}
};
};
dzwiekHS = function () {
var HSSound = new Sound(this);
HSSound.attachSound("Cold4");
HSSound.start();
HSSound.onSoundComplete = function () {
delete HSSound;
};
_root.interFace.input = "";
};
_global.chowajPrzyZoomie = function (tab) {
if ((_root.zoomIsActive == true) || (_root.loopaIsActive == true)) {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = false;
i++;
}
} else {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = true;
i++;
}
}
};
MovieClip.prototype.loopa = function () {
var ten = this;
_root.loopaIsActive = true;
chowajPrzyZoomie(doChowania);
_root.createEmptyMovieClip("zawieracz", _root.getNextHighestDepth());
_root.attachMovie("Ramka", "ramka", _root.getNextHighestDepth());
_root.zawieracz.attachMovie("Lupa", "lupa", _root.zawieracz.getNextHighestDepth());
if (_level0.aktualny == TenRoom) {
_root.zawieracz.attachMovie("room0", "maska", _root.zawieracz.getNextHighestDepth());
_root.zawieracz.maska.onEnterFrame = function () {
var i = 0;
while (i < _root.dotrzymuje.length) {
eval ("this." + _root.dotrzymuje[i]).gotoAndStop(eval ("TenRoom." + _root.dotrzymuje[i])._currentframe);
i++;
}
};
i = 0;
while (i < _root.obiekt.length) {
eval ("_root.zawieracz.maska." + _root.obiekt[i])._x = eval ("TenRoom." + _root.obiekt[i])._x;
eval ("_root.zawieracz.maska." + _root.obiekt[i])._y = eval ("TenRoom." + _root.obiekt[i])._y;
i++;
}
} else {
_root.zawieracz.attachMovie(_level0.aktualny, "maska", _root.zawieracz.getNextHighestDepth());
}
_root.zawieracz.maska.setMask(_root.zawieracz.lupa);
_root.zawieracz.zmienSkale = function () {
this.maska._xscale = _root.skala;
this.maska._yscale = _root.skala;
};
_root.zawieracz.zmienPozycje = function () {
this.maska._x = (ten._x - this._x) * _root.skala2;
this.maska._y = (ten._y - this._y) * _root.skala2;
};
_root.zawieracz.zmienSkale();
_root.zawieracz._x = _root._xmouse;
_root.zawieracz._y = _root._ymouse;
_root.ramka._x = _root.zawieracz._x;
_root.ramka._y = _root.zawieracz._y;
_root.zawieracz.zmienPozycje();
_root.zawieracz.onMouseMove = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
_root.ramka._x = this._x;
_root.ramka._y = this._y;
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
usunHinty = function (num) {
i = 1;
while (i <= num) {
_root.interFace.usunHint(i);
i++;
}
};
HSsprawdz = function (str) {
i = 0;
while (i < HSCodes.length) {
if (str == HSCodes[i]) {
_root.GoodHSSound.play();
_root.interFace.dodajHint(i);
break;
}
i++;
}
};
var TenRoom = _root.room0;
_level0.aktualny = TenRoom;
_root.obiekt = Array("w1", "w2", "o1");
_root.doChowania = Array(TenRoom.t1, TenRoom.l1);
_root.HSCodes = Array("LITTLE HINT");
_root.dotrzymuje = Array("door");
TenRoom.t1.onRelease = function () {
TenRoom.ZoomIn("Info01");
};
TenRoom.t2.onRelease = function () {
TenRoom.ZoomIn("Info02");
};
TenRoom.l1.onRelease = function () {
TenRoom.ZoomIn("LockerBig0");
};
Frame 6
prevFrame();
Frame 7
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
stop();
_root.skala = 478;
_root.skala2 = 4.78;
suwak.lapka.onPress = function () {
this.startDrag(false, -3, suwak.suwka._height * -1, -3, -8);
this.onMouseMove = function () {
_root.skala = 100 + (4 * Math.round(((this._y * -1) / suwak.suwka._height) * 100));
_root.skala2 = _root.skala / 100;
_root.zawieracz.zmienSkale();
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
suwak.lapka.onMouseUp = function () {
this.stopDrag();
this.onMouseMove = undefined;
};
_root.end = false;
_root.nextRoom = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
_root.przejdzDo("roomCompleted");
_root.NASTEPNY = "room2";
}
};
MovieClip.prototype.ZoomIn = function (LinkageName) {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
if (LinkageName == "LockerBig") {
_root.interFace.dezaktywujLoope();
}
TenRoom.door2.btn._visible = false;
_root.zoomIsActive = true;
chowajPrzyZoomie(doChowania);
_root.attachMovie("zaslona", "zaslona", this.getDepth() + 1);
var za = _root.zaslona;
with (za) {
_alpha = 0;
_width = Stage.width;
_height = Stage.height;
}
za.onEnterFrame = function () {
if (za._alpha <= 60) {
this._alpha = this._alpha + 8;
} else {
_root.attachMovie(LinkageName, "zzoomowany", _root.getNextHighestDepth());
_level0.aktualny = String(LinkageName);
var zo = _root.zzoomowany;
zo._x = Math.round(Stage.width / 2);
zo._y = Math.round(Stage.height / 2);
zo._alpha = 0;
zo.onEnterFrame = function () {
if (zo._alpha >= 100) {
zo._alpha = 100;
delete zo.onEnterFrame;
if (zo.wroc == undefined) {
zo.onMouseDown = function () {
if (_root.loopaIsActive == undefined) {
if (_level0._ymouse < 365) {
ZoomOut();
}
}
};
} else {
zo.wroc.onRelease = function () {
if (_root.loopaIsActive == undefined) {
ZoomOut();
if (LinkageName == "LockerBig") {
_root.interFace.aktywujLoope();
}
}
this.gotoAndStop(2);
};
zo.wroc.gotoAndStop(1);
zo.wroc.onRollOut = function () {
this.gotoAndStop(1);
};
zo.wroc.onPress = function () {
this.gotoAndStop(3);
};
zo.wroc.onReleaseOutside = zo.wroc.onRollOut;
}
} else {
zo._alpha = zo._alpha + 8;
}
};
delete za.onEnterFrame;
}
};
}
};
_global.ZoomOut = function () {
_root.zzoomowany.znikaj(8, true);
_root.zaslona.znikaj(8);
_level0.aktualny = TenRoom;
};
MovieClip.prototype.znikaj = function (v, desactiveZoom) {
this.onEnterFrame = function () {
if (this._alpha <= 0) {
this._alpha = 0;
this.removeMovieClip();
delete this.onEnterFrame;
if (_root.end == true) {
if (TenRoom.door._currentframe != TenRoom.door._totalframes) {
TenRoom.door.play();
_root.zawieracz.maska.door.play();
}
}
if (desactiveZoom == true) {
_root.zoomIsActive = undefined;
chowajPrzyZoomie(doChowania);
}
} else {
this._alpha = this._alpha - v;
}
};
};
_global.chowajPrzyZoomie = function (tab) {
if ((_root.zoomIsActive == true) || (_root.loopaIsActive == true)) {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = false;
i++;
}
} else {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = true;
i++;
}
}
};
MovieClip.prototype.loopa = function () {
var ten = this;
_root.loopaIsActive = true;
chowajPrzyZoomie(doChowania);
_root.createEmptyMovieClip("zawieracz", _root.getNextHighestDepth());
_root.attachMovie("Ramka", "ramka", _root.getNextHighestDepth());
_root.zawieracz.attachMovie("Lupa", "lupa", _root.zawieracz.getNextHighestDepth());
if (_level0.aktualny == TenRoom) {
_root.zawieracz.attachMovie("room1", "maska", _root.zawieracz.getNextHighestDepth());
var doorTotal = TenRoom.door._totalframes;
if (TenRoom.door._currentframe == doorTotal) {
_root.zawieracz.maska.door.gotoAndStop(doorTotal);
} else if ((TenRoom.door._currentframe != 1) && (TenRoom.door._currentframe != doorTotal)) {
_root.zawieracz.maska.door.gotoAndPlay(TenRoom.door._currentframe);
}
i = 0;
while (i < _root.obiekt.length) {
eval ("_root.zawieracz.maska." + _root.obiekt[i])._x = eval ("TenRoom." + _root.obiekt[i])._x;
eval ("_root.zawieracz.maska." + _root.obiekt[i])._y = eval ("TenRoom." + _root.obiekt[i])._y;
i++;
}
} else {
_root.zawieracz.attachMovie(_level0.aktualny, "maska", _root.zawieracz.getNextHighestDepth());
}
_root.zawieracz.maska.setMask(_root.zawieracz.lupa);
_root.zawieracz.zmienSkale = function () {
this.maska._xscale = _root.skala;
this.maska._yscale = _root.skala;
};
_root.zawieracz.zmienPozycje = function () {
this.maska._x = (ten._x - this._x) * _root.skala2;
this.maska._y = (ten._y - this._y) * _root.skala2;
};
_root.zawieracz.zmienSkale();
_root.zawieracz._x = _root._xmouse;
_root.zawieracz._y = _root._ymouse;
_root.ramka._x = _root.zawieracz._x;
_root.ramka._y = _root.zawieracz._y;
_root.zawieracz.zmienPozycje();
_root.zawieracz.onMouseMove = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
_root.ramka._x = this._x;
_root.ramka._y = this._y;
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
var TenRoom = _root.room1;
_level0.aktualny = TenRoom;
_root.obiekt = Array("w1", "w2", "o1");
_root.doChowania = Array(TenRoom.t1, TenRoom.t2, TenRoom.t3, TenRoom.l1, TenRoom.o1, TenRoom.li1, TenRoom.w1, TenRoom.w2, zzoomowany.wroc);
TenRoom.t1.onRelease = function () {
TenRoom.ZoomIn("Info1");
};
TenRoom.t2.onRelease = function () {
TenRoom.ZoomIn("Info3");
};
TenRoom.t3.onRelease = function () {
TenRoom.ZoomIn("Info2");
};
TenRoom.l1.onRelease = function () {
TenRoom.ZoomIn("LockerBig");
};
_root.o1Moved = false;
TenRoom.o1.onPress = function () {
if ((_root.o1moving == false) || (_root.o1moving == undefined)) {
var xowe = _xmouse;
var yowe = _ymouse;
this.onEnterFrame = function () {
if ((_xmouse != xowe) || (_ymouse != yowe)) {
this.duplicateMovieClip("o1Copy", this._parent.getNextHighestDepth());
var kopia = TenRoom.o1Copy;
kopia._alpha = 50;
kopia.startDrag();
this.onMouseUp = function () {
stopDrag();
if (_root.o1Moved == false) {
if ((kopia._x >= 45) && (kopia._x <= 70)) {
if ((kopia._y >= -60) && (kopia._y <= -35)) {
var odlX = 118;
_root.o1moving = true;
this.onEnterFrame = function () {
this._x = this._x + (odlX / 2);
odlX = odlX / 2;
if (odlX < 1) {
this._x = this._x + 2;
delete this.onEnterFrame;
_root.o1moving = false;
_root.o1Moved = true;
}
};
}
}
} else if ((kopia._x >= -73) && (kopia._x <= -48)) {
if ((kopia._y >= -60) && (kopia._y <= -35)) {
var odlX = 118;
_root.o1moving = true;
this.onEnterFrame = function () {
this._x = this._x - (odlX / 2);
odlX = odlX / 2;
if (odlX < 1) {
this._x = this._x - 2;
delete this.onEnterFrame;
_root.o1moving = false;
_root.o1Moved = false;
}
};
}
}
removeMovieClip(kopia);
delete this.onMouseUp;
};
delete this.onEnterFrame;
} else {
this.onRelease = function () {
TenRoom.ZoomIn("PictureBig");
delete this.onEnterFrame;
};
}
};
}
};
TenRoom.li1.onPress = function () {
TenRoom.li1.gotoAndStop(2);
};
TenRoom.li1.onRelease = function () {
TenRoom.li1.gotoAndStop(1);
};
TenRoom.w1.onPress = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
this.startDrag(false, -350, 102, 290, 102);
this.onMouseUp = function () {
stopDrag();
delete this.onMouseUp;
};
}
};
TenRoom.w2.onPress = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
this.startDrag(false, -350, 124, 290, 124);
this.onMouseUp = function () {
stopDrag();
delete this.onMouseUp;
};
}
};
Frame 8
prevFrame();
Frame 9
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
stop();
_root.skala = 478;
_root.skala2 = 4.78;
suwak.lapka.onPress = function () {
this.startDrag(false, -3, suwak.suwka._height * -1, -3, -8);
this.onMouseMove = function () {
_root.skala = 100 + (4 * Math.round(((this._y * -1) / suwak.suwka._height) * 100));
_root.skala2 = _root.skala / 100;
_root.zawieracz.zmienSkale();
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
suwak.lapka.onMouseUp = function () {
this.stopDrag();
this.onMouseMove = undefined;
};
_root.end = false;
_root.nextRoom = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
_root.przejdzDo("roomCompleted");
usunHinty(6);
_root.NASTEPNY = "room3";
}
};
MovieClip.prototype.ZoomIn = function (LinkageName) {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
if (LinkageName == "LockerBig2") {
_root.interFace.dezaktywujLoope();
}
TenRoom.door2.btn._visible = false;
_root.zoomIsActive = true;
chowajPrzyZoomie(doChowania);
_root.attachMovie("zaslona", "zaslona", this.getDepth() + 1);
var za = _root.zaslona;
with (za) {
_alpha = 0;
_width = Stage.width;
_height = Stage.height;
}
za.onEnterFrame = function () {
if (za._alpha <= 60) {
this._alpha = this._alpha + 8;
} else {
_root.attachMovie(LinkageName, "zzoomowany", _root.getNextHighestDepth());
_level0.aktualny = String(LinkageName);
var zo = _root.zzoomowany;
zo._x = Math.round(Stage.width / 2);
zo._y = Math.round(Stage.height / 2);
zo._alpha = 0;
zo.onEnterFrame = function () {
if (zo._alpha >= 100) {
zo._alpha = 100;
delete zo.onEnterFrame;
if (zo.wroc == undefined) {
zo.onMouseDown = function () {
if (_root.loopaIsActive == undefined) {
if (_level0._ymouse < 365) {
ZoomOut();
}
}
};
} else {
zo.wroc.onRelease = function () {
if (_root.loopaIsActive == undefined) {
ZoomOut();
if (LinkageName == "LockerBig2") {
_root.interFace.aktywujLoope();
}
}
this.gotoAndStop(2);
};
zo.wroc.gotoAndStop(1);
zo.wroc.onRollOut = function () {
this.gotoAndStop(1);
};
zo.wroc.onPress = function () {
this.gotoAndStop(3);
};
zo.wroc.onReleaseOutside = zo.wroc.onRollOut;
}
} else {
zo._alpha = zo._alpha + 8;
}
};
delete za.onEnterFrame;
}
};
}
};
_global.ZoomOut = function () {
_root.zzoomowany.znikaj(8, true);
_root.zaslona.znikaj(8);
_level0.aktualny = TenRoom;
};
MovieClip.prototype.znikaj = function (v, desactiveZoom) {
this.onEnterFrame = function () {
if (this._alpha <= 0) {
this._alpha = 0;
this.removeMovieClip();
delete this.onEnterFrame;
if (_root.end == true) {
if (TenRoom.door._currentframe != TenRoom.door._totalframes) {
TenRoom.door.play();
_root.zawieracz.maska.door.play();
}
}
if (desactiveZoom == true) {
_root.zoomIsActive = undefined;
chowajPrzyZoomie(doChowania);
}
} else {
this._alpha = this._alpha - v;
}
};
};
_global.chowajPrzyZoomie = function (tab) {
if ((_root.zoomIsActive == true) || (_root.loopaIsActive == true)) {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = false;
i++;
}
} else {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = true;
i++;
}
}
};
MovieClip.prototype.loopa = function () {
var ten = this;
_root.loopaIsActive = true;
chowajPrzyZoomie(doChowania);
_root.createEmptyMovieClip("zawieracz", _root.getNextHighestDepth());
_root.attachMovie("Ramka", "ramka", _root.getNextHighestDepth());
_root.zawieracz.attachMovie("Lupa", "lupa", _root.zawieracz.getNextHighestDepth());
if (_level0.aktualny == TenRoom) {
_root.zawieracz.attachMovie("room2", "maska", _root.zawieracz.getNextHighestDepth());
var doorTotal = TenRoom.door._totalframes;
if (TenRoom.door._currentframe == doorTotal) {
_root.zawieracz.maska.door.gotoAndStop(doorTotal);
} else if ((TenRoom.door._currentframe != 1) && (TenRoom.door._currentframe != doorTotal)) {
_root.zawieracz.maska.door.gotoAndPlay(TenRoom.door._currentframe);
}
i = 0;
while (i < _root.obiekt.length) {
eval ("_root.zawieracz.maska." + _root.obiekt[i])._x = eval ("TenRoom." + _root.obiekt[i])._x;
eval ("_root.zawieracz.maska." + _root.obiekt[i])._y = eval ("TenRoom." + _root.obiekt[i])._y;
i++;
}
} else {
_root.zawieracz.attachMovie(_level0.aktualny, "maska", _root.zawieracz.getNextHighestDepth());
}
_root.zawieracz.maska.setMask(_root.zawieracz.lupa);
_root.zawieracz.zmienSkale = function () {
this.maska._xscale = _root.skala;
this.maska._yscale = _root.skala;
};
_root.zawieracz.zmienPozycje = function () {
this.maska._x = (ten._x - this._x) * _root.skala2;
this.maska._y = (ten._y - this._y) * _root.skala2;
};
_root.zawieracz.zmienSkale();
_root.zawieracz._x = _root._xmouse;
_root.zawieracz._y = _root._ymouse;
_root.ramka._x = _root.zawieracz._x;
_root.ramka._y = _root.zawieracz._y;
_root.zawieracz.zmienPozycje();
_root.zawieracz.onMouseMove = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
_root.ramka._x = this._x;
_root.ramka._y = this._y;
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
usunHinty = function (num) {
i = 1;
while (i <= num) {
_root.interFace.usunHint(i);
i++;
}
};
HSsprawdz = function (str) {
i = 0;
while (i < HSCodes.length) {
if (str == toCapitals(HSCodes[i])) {
_root.GoodHSSound.play();
_root.interFace.dodajHint(i + 1);
break;
}
i++;
}
};
var TenRoom = _root.room2;
_level0.aktualny = TenRoom;
_root.obiekt = Array("stall");
_root.doChowania = Array(TenRoom.t1, TenRoom.t2, TenRoom.l1, TenRoom.stall);
_root.HSCodes = Array("ZUYJEQZSTCWXIYHWDT", "DBIIONRMDFWGVICKKP", "KFFRGWUNJ");
TenRoom.t1.onRelease = function () {
TenRoom.ZoomIn("Info4");
};
TenRoom.t3.onRelease = function () {
TenRoom.ZoomIn("Info6");
};
TenRoom.t2.onRelease = function () {
TenRoom.ZoomIn("Info5");
};
TenRoom.l1.onRelease = function () {
TenRoom.ZoomIn("LockerBig2");
};
TenRoom.stall.onPress = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
this.startDrag(false, -178, this._y, 154, this._y);
this.onMouseUp = function () {
stopDrag();
delete this.onMouseUp;
};
}
};
Frame 10
prevFrame();
Frame 11
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
stop();
_root.skala = 478;
_root.skala2 = 4.78;
suwak.lapka.onPress = function () {
this.startDrag(false, -3, suwak.suwka._height * -1, -3, -8);
this.onMouseMove = function () {
_root.skala = 100 + (4 * Math.round(((this._y * -1) / suwak.suwka._height) * 100));
_root.skala2 = _root.skala / 100;
_root.zawieracz.zmienSkale();
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
suwak.lapka.onMouseUp = function () {
this.stopDrag();
this.onMouseMove = undefined;
};
_root.end = false;
_root.nextRoom = function () {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
_root.przejdzDo("roomCompleted");
_root.NASTEPNY = "ENDFrame";
usunHinty(8);
}
};
MovieClip.prototype.ZoomIn = function (LinkageName) {
if ((_root.zoomIsActive == undefined) && (_root.loopaIsActive == undefined)) {
if (LinkageName == "LockerBig3") {
_root.interFace.dezaktywujLoope();
}
TenRoom.door2.btn._visible = false;
_root.zoomIsActive = true;
chowajPrzyZoomie(doChowania);
_root.attachMovie("zaslona", "zaslona", this.getDepth() + 1);
var za = _root.zaslona;
with (za) {
_alpha = 0;
_width = Stage.width;
_height = Stage.height;
}
za.onEnterFrame = function () {
if (za._alpha <= 60) {
this._alpha = this._alpha + 8;
} else {
_root.attachMovie(LinkageName, "zzoomowany", _root.getNextHighestDepth());
_level0.aktualny = String(LinkageName);
var zo = _root.zzoomowany;
zo._x = Math.round(Stage.width / 2);
zo._y = Math.round(Stage.height / 2);
zo._alpha = 0;
zo.onEnterFrame = function () {
if (zo._alpha >= 100) {
zo._alpha = 100;
delete zo.onEnterFrame;
if (zo.wroc == undefined) {
zo.onMouseDown = function () {
if (_root.loopaIsActive == undefined) {
if (_level0._ymouse < 365) {
ZoomOut();
}
}
};
} else {
zo.wroc.onRelease = function () {
if (_root.loopaIsActive == undefined) {
ZoomOut();
if (LinkageName == "LockerBig3") {
_root.interFace.aktywujLoope();
}
}
this.gotoAndStop(2);
};
zo.wroc.gotoAndStop(1);
zo.wroc.onRollOut = function () {
this.gotoAndStop(1);
};
zo.wroc.onPress = function () {
this.gotoAndStop(3);
};
zo.wroc.onReleaseOutside = zo.wroc.onRollOut;
}
} else {
zo._alpha = zo._alpha + 8;
}
};
delete za.onEnterFrame;
}
};
}
};
_global.ZoomOut = function () {
_root.zzoomowany.znikaj(8, true);
_root.zaslona.znikaj(8);
_level0.aktualny = TenRoom;
};
MovieClip.prototype.znikaj = function (v, desactiveZoom) {
this.onEnterFrame = function () {
if (this._alpha <= 0) {
this._alpha = 0;
this.removeMovieClip();
delete this.onEnterFrame;
if (_root.end == true) {
if (TenRoom.door._currentframe != TenRoom.door._totalframes) {
TenRoom.door.play();
_root.zawieracz.maska.door.play();
}
}
if (desactiveZoom == true) {
_root.zoomIsActive = undefined;
chowajPrzyZoomie(doChowania);
}
} else {
this._alpha = this._alpha - v;
}
};
};
_global.chowajPrzyZoomie = function (tab) {
if ((_root.zoomIsActive == true) || (_root.loopaIsActive == true)) {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = false;
i++;
}
} else {
i = 0;
while (i < tab.length) {
tab[i].useHandCursor = true;
i++;
}
}
};
MovieClip.prototype.loopa = function () {
var ten = this;
_root.loopaIsActive = true;
chowajPrzyZoomie(doChowania);
_root.createEmptyMovieClip("zawieracz", _root.getNextHighestDepth());
_root.attachMovie("Ramka", "ramka", _root.getNextHighestDepth());
_root.zawieracz.attachMovie("Lupa", "lupa", _root.zawieracz.getNextHighestDepth());
if (_level0.aktualny == TenRoom) {
_root.zawieracz.attachMovie("room3", "maska", _root.zawieracz.getNextHighestDepth());
var doorTotal = TenRoom.door._totalframes;
if (TenRoom.door._currentframe == doorTotal) {
_root.zawieracz.maska.door.gotoAndStop(doorTotal);
} else if ((TenRoom.door._currentframe != 1) && (TenRoom.door._currentframe != doorTotal)) {
_root.zawieracz.maska.door.gotoAndPlay(TenRoom.door._currentframe);
}
i = 0;
while (i < _root.obiekt.length) {
eval ("_root.zawieracz.maska." + _root.obiekt[i])._x = eval ("TenRoom." + _root.obiekt[i])._x;
eval ("_root.zawieracz.maska." + _root.obiekt[i])._y = eval ("TenRoom." + _root.obiekt[i])._y;
i++;
}
} else {
_root.zawieracz.attachMovie(_level0.aktualny, "maska", _root.zawieracz.getNextHighestDepth());
}
_root.zawieracz.maska.setMask(_root.zawieracz.lupa);
_root.zawieracz.zmienSkale = function () {
this.maska._xscale = _root.skala;
this.maska._yscale = _root.skala;
};
_root.zawieracz.zmienPozycje = function () {
this.maska._x = (ten._x - this._x) * _root.skala2;
this.maska._y = (ten._y - this._y) * _root.skala2;
};
_root.zawieracz.zmienSkale();
_root.zawieracz._x = _root._xmouse;
_root.zawieracz._y = _root._ymouse;
_root.ramka._x = _root.zawieracz._x;
_root.ramka._y = _root.zawieracz._y;
_root.zawieracz.zmienPozycje();
_root.zawieracz.onMouseMove = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
_root.ramka._x = this._x;
_root.ramka._y = this._y;
_root.zawieracz.zmienPozycje();
updateAfterEvent();
};
};
usunHinty = function (num) {
i = 1;
while (i <= num) {
_root.interFace.usunHint(i);
i++;
}
};
HSsprawdz = function (str) {
i = 0;
while (i < HSCodes.length) {
if (str == toCapitals(HSCodes[i])) {
_root.GoodHSSound.play();
_root.interFace.dodajHint(i + 4);
break;
}
i++;
}
};
var TenRoom = _root.room3;
_level0.aktualny = TenRoom;
_root.obiekt = Array();
_root.doChowania = Array(TenRoom.t1, TenRoom.l1);
_root.HSCodes = Array("JWR");
TenRoom.t1.onRelease = function () {
TenRoom.ZoomIn("Info7");
};
TenRoom.l1.onRelease = function () {
TenRoom.ZoomIn("LockerBig3");
};
Frame 12
prevFrame();
Frame 13
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
btnd.onRelease = function () {
getURL ("http://theroomz.org", "_blank");
};
Frame 14
prevFrame();
Frame 15
if (_root.getBytesLoaded() < _root.getBytesTotal()) {
_root.gotoAndStop(1);
}
Symbol 10 Button
on (release) {
dodajLiterke("a");
}
Symbol 11 Button
on (release) {
dodajLiterke("b");
}
Symbol 12 Button
on (release) {
dodajLiterke("c");
}
Symbol 13 Button
on (release) {
dodajLiterke("d");
}
Symbol 14 Button
on (release) {
dodajLiterke("e");
}
Symbol 15 Button
on (release) {
dodajLiterke("f");
}
Symbol 16 Button
on (release) {
dodajLiterke("g");
}
Symbol 17 Button
on (release) {
dodajLiterke("h");
}
Symbol 18 Button
on (release) {
dodajLiterke("i");
}
Symbol 19 Button
on (release) {
dodajLiterke("j");
}
Symbol 20 Button
on (release) {
dodajLiterke("k");
}
Symbol 21 Button
on (release) {
dodajLiterke("l");
}
Symbol 22 Button
on (release) {
dodajLiterke("m");
}
Symbol 23 Button
on (release) {
dodajLiterke("n");
}
Symbol 24 Button
on (release) {
dodajLiterke("o");
}
Symbol 25 Button
on (release) {
dodajLiterke("p");
}
Symbol 26 Button
on (release) {
dodajLiterke("q");
}
Symbol 27 Button
on (release) {
dodajLiterke("r");
}
Symbol 28 Button
on (release) {
dodajLiterke("s");
}
Symbol 29 Button
on (release) {
dodajLiterke("t");
}
Symbol 30 Button
on (release) {
dodajLiterke("u");
}
Symbol 31 Button
on (release) {
dodajLiterke("v");
}
Symbol 32 Button
on (release) {
dodajLiterke("w");
}
Symbol 33 Button
on (release) {
dodajLiterke("x");
}
Symbol 34 Button
on (release) {
dodajLiterke("y");
}
Symbol 35 Button
on (release) {
dodajLiterke("z");
}
Symbol 79 MovieClip [LockerBig0] Frame 1
screen.autoSize = "left";
typing = "";
dodajLiterke = function (literka) {
if (screen._width < 290) {
typing = typing + literka.toUpperCase();
pointer._x = -152.6 + screen._width;
}
};
ok.onRelease = function () {
if ("IKNOWRULES" == typing) {
var _local2 = new Sound();
_local2.attachSound("GoodPass");
_local2.start();
_root.end = true;
typing = "";
pointer._x = -152.6 + screen._width;
}
};
c.onRelease = function () {
typing = "";
pointer._x = -152.6 + screen._width;
};
Symbol 89 MovieClip Frame 1
stop();
Symbol 91 Button
on (release) {
getURL ("http://wikipedia.com", "_blank");
}
Symbol 92 Button
on (release) {
getURL ("http://google.com", "_blank");
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 10
stop();
Symbol 104 MovieClip [LockerBig3] Frame 1
var dzwiek = new Sound(this);
screen.autoSize = "left";
typing = "";
dodajLiterke = function (literka) {
if (screen._width < 290) {
typing = typing + literka.toUpperCase();
pointer._x = -152.6 + screen._width;
}
};
ok.onRelease = function () {
if (toCapitals("JCJQUMRPGXNEMKOCIMSFRANV") == typing) {
var _local2 = new Sound();
_local2.attachSound("GoodPass");
_local2.start();
_root.end = true;
typing = "";
pointer._x = -152.6 + screen._width;
}
};
c.onRelease = function () {
typing = "";
pointer._x = -152.6 + screen._width;
};
Symbol 107 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 119 MovieClip Frame 1
stop();
Symbol 135 MovieClip [LockerBig2] Frame 1
screen.autoSize = "left";
typing = "";
dodajLiterke = function (literka) {
if (screen._width < 290) {
typing = typing + literka.toUpperCase();
pointer._x = -152.6 + screen._width;
}
};
ok.onRelease = function () {
if (toCapitals("VYYJUFJXIAJUJKRWREJQE") == typing) {
var _local2 = new Sound();
_local2.attachSound("GoodPass");
_local2.start();
_root.end = true;
typing = "";
pointer._x = -152.6 + screen._width;
}
};
c.onRelease = function () {
typing = "";
pointer._x = -152.6 + screen._width;
};
Symbol 147 MovieClip [zakrywka] Frame 10
stop();
_root.dezaktywujeLoope = undefined;
Symbol 157 MovieClip [LockerBig] Frame 1
screen.autoSize = "left";
typing = "";
dodajLiterke = function (literka) {
if (screen._width < 290) {
typing = typing + literka.toUpperCase();
pointer._x = -152.6 + screen._width;
}
};
ok.onRelease = function () {
trace(typing);
if (toCapitals("JVDKXBFLWBEOEQBJTO") == typing) {
var _local2 = new Sound();
_local2.attachSound("GoodPass");
_local2.start();
_root.end = true;
typing = "";
pointer._x = -152.6 + screen._width;
}
};
c.onRelease = function () {
typing = "";
pointer._x = -152.6 + screen._width;
};
Symbol 191 Button
on (release) {
_root.nextRoom();
}
Symbol 192 MovieClip [Door] Frame 1
stop();
Symbol 192 MovieClip [Door] Frame 12
stop();
Symbol 208 MovieClip Frame 1
_root.muffin = 2;
Symbol 233 MovieClip [room1] Frame 1
gogo.onRelease = function () {
_root.gotoAndStop("room2");
};
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 5
if (_root.ZAPAMIETANA == undefined) {
this.gotoAndStop(1);
}
Symbol 254 MovieClip Frame 15
_root.gotoAndStop(_root.ZAPAMIETANA);
_root.ZAPAMIETANA = undefined;
Symbol 254 MovieClip Frame 30
this.gotoAndStop(1);
Symbol 371 MovieClip Frame 358
gotoAndPlay (5);
Symbol 402 MovieClip Frame 1
gogo.onRelease = function () {
gotoAndPlay (375);
};
Symbol 402 MovieClip Frame 123
Symbol 402 MovieClip Frame 386
stop();
st.onRelease = function () {
_root.przejdzDo("room1");
stopAllSounds();
dzwiek.stop();
};
forum.onRelease = function () {
getURL ("http://theroomz.19.forumer.com", "_blank");
stopAllSounds();
dzwiek.stop();
};
rules.onRelease = function () {
_root.przejdzDo("rules");
stopAllSounds();
dzwiek.stop();
};
fullLink.onRelease = function () {
_root.przejdzDo("ENDFrame");
stopAllSounds();
dzwiek.stop();
};
Symbol 402 MovieClip Frame 387
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 11
gotoAndStop (1);
Symbol 411 Button
on (keyPress "<Enter>") {
_level0.HSsprawdz(input.toUpperCase());
}
Symbol 419 MovieClip Frame 10
stop();
Symbol 423 MovieClip Frame 10
gotoAndPlay (1);
Symbol 424 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 1
var sloty = new Array();
var ilosc = 6;
var i = 1;
while (i <= ilosc) {
sloty[i - 1] = "slot" + i;
i++;
}
var i = 0;
while (i < ilosc) {
eval (sloty[i]).stan = "empty";
i++;
}
dodajObiekt = function (LinkageNeme) {
this.attachMovie(LinkageNeme, LinkageNeme, this.getNextHighestDepth());
var i = 0;
while (i < ilosc) {
if (eval (sloty[i]).stan == "empty") {
var k = (i + 1);
eval (sloty[i]).stan = LinkageNeme;
eval ("this." + LinkageNeme)._x = eval (sloty[i])._x + (0.5 * slot1._width);
eval ("this." + LinkageNeme)._y = eval (sloty[i])._y + (0.5 * slot1._height);
break;
}
i++;
}
eval ("slot" + k).onRollOver = function () {
this.gotoAndStop(2);
};
eval ("slot" + k).onRollOut = function () {
this.gotoAndStop(1);
};
eval ("slot" + k).onReleaseOutside = eval ("slot" + k).onRollOut;
eval ("slot" + k).useHandCursor = true;
if (LinkageNeme == "Loopka") {
eval ("slot" + k).onRelease = function () {
if (_level0.aktualny == _root.TenRoom) {
_level0.aktualny.loopa();
this.onMouseMove = function () {
if (_level0._ymouse < 365) {
Mouse.hide();
} else {
Mouse.show();
}
};
} else {
_root.zzoomowany.loopa();
this.onMouseMove = function () {
if (_level0._ymouse < 365) {
Mouse.hide();
} else {
Mouse.show();
}
};
}
eval ("slot" + k).gotoAndStop(3);
eval ("slot" + k).onRollOut = undefined;
eval ("slot" + k).onRollOver = undefined;
eval ("slot" + k).onRelease = function () {
eval ("slot" + k).gotoAndStop(2);
if (_level0.aktualny == _root.TenRoom) {
_level0.aktualny._parent.loopaIsActive = undefined;
chowajPrzyZoomie(_level0.aktualny._parent.doChowania);
_level0.aktualny._parent.zawieracz.onEnterFrame = undefined;
_level0.aktualny._parent.zawieracz.removeMovieClip();
_level0.aktualny._parent.ramka.removeMovieClip();
this.onMouseMove = undefined;
Mouse.show();
} else {
_root.loopaIsActive = undefined;
_root.zawieracz.onEnterFrame = undefined;
this.onMouseMove = undefined;
Mouse.show();
_root.zawieracz.removeMovieClip();
_root.ramka.removeMovieClip();
}
usunObiekt(LinkageNeme);
dodajObiekt(LinkageNeme);
};
};
}
};
usunObiekt = function (LinkageNeme) {
var i = 0;
while (i < ilosc) {
if (eval (sloty[i]).stan == LinkageNeme) {
eval (sloty[i]).stan = "empty";
eval (sloty[i]).onRelease = undefined;
eval (sloty[i]).onReleaseOutside = undefined;
eval (sloty[i]).onRollOver = undefined;
eval (sloty[i]).onRollOut = undefined;
eval (sloty[i]).useHandCursor = false;
removeMovieClip(eval ("this." + LinkageNeme));
return;
}
i++;
}
};
dodajHint = function (num, LinkageName) {
if (eval ("_root.exhint" + num) == undefined) {
_root.createEmptyMovieClip("exhint" + num, _root.getNextHighestDepth());
_root.interFace.input = "";
if (LinkageName == undefined) {
attachMovie("PaperTool", "Paper" + num, this.getNextHighestDepth());
} else {
attachMovie(LinkageName, "Paper" + num, this.getNextHighestDepth());
}
eval ("Paper" + num)._alpha = 0;
eval ("Paper" + num).onEnterFrame = function () {
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
this._alpha = this._alpha + 5;
};
var i = 0;
while (i < ilosc) {
if (eval (sloty[i]).stan == "empty") {
var p = (i + 1);
eval (sloty[i]).stan = "Hint" + num;
eval ("Paper" + num)._x = eval (sloty[i])._x + (0.5 * slot1._width);
eval ("Paper" + num)._y = eval (sloty[i])._y + (0.5 * slot1._height);
break;
}
i++;
}
eval ("slot" + p).onRollOver = function () {
this.gotoAndStop(2);
};
eval ("slot" + p).onRollOut = function () {
this.gotoAndStop(1);
};
eval ("slot" + p).onReleaseOutside = eval ("slot" + k).onRollOut;
eval ("slot" + p).onRelease = function () {
_root.TenRoom.ZoomIn("Hint" + num);
};
eval ("slot" + p).useHandCursor = true;
}
};
usunHint = function (num) {
var i = 0;
while (i < ilosc) {
if (eval (sloty[i]).stan == ("Hint" + num)) {
eval (sloty[i]).stan = "empty";
eval ("Paper" + num).znikaj(4);
eval (sloty[i]).onRelease = undefined;
eval (sloty[i]).onReleaseOutside = undefined;
eval (sloty[i]).onRollOver = undefined;
eval (sloty[i]).onRollOut = undefined;
eval (sloty[i]).useHandCursor = false;
removeMovieClip(eval ("_root.exhint" + num));
return;
}
i++;
}
};
dezaktywujLoope = function () {
_root.dezaktywujeLoope = true;
_root.aktywujeLoope = undefined;
var i = 0;
while (i < ilosc) {
if (eval (sloty[i]).stan == "Loopka") {
eval (sloty[i]).onRelease = undefined;
eval (sloty[i]).onReleaseOutside = undefined;
eval (sloty[i]).onRollOver = undefined;
eval (sloty[i]).onRollOut = undefined;
eval (sloty[i]).useHandCursor = false;
attachMovie("zakrywka", "cover" + (i + 1), this.getNextHighestDepth());
eval ("cover" + (i + 1))._x = eval (sloty[i])._x;
eval ("cover" + (i + 1))._y = eval (sloty[i])._y;
return;
}
i++;
}
};
wall = new Array();
wall.push("_");
var s = 65;
while (s < 91) {
wall.push(String.fromCharCode(s));
s++;
}
_global.toCapitals = function (str) {
var _local3 = "";
var _local4 = 0;
while (_local4 < str.length) {
var _local6 = _local3.length;
var _local2 = 0;
while (_local2 < wall.length) {
if (str.substr(_local4, 1) == wall[_local2]) {
if ((_local2 % 2) == 0) {
_local3 = _local3 + wall[_local2 / 2];
} else {
_local3 = _local3 + wall[_local2 + ((wall.length - _local2) / 2)];
}
}
_local2++;
}
if (_local6 == _local3.length) {
_local3 = _local3 + str.substr(_local4, 1);
}
_local4 = _local4 + (_root.muffin + 1);
}
return(_local3);
};
aktywujLoope = function () {
_root.aktywujeLoope = true;
var i = 0;
while (i < ilosc) {
if (eval (sloty[i]).stan == "Loopka") {
eval ("cover" + (i + 1)).znikaj(3, false, true);
eval (sloty[i]).onRollOver = function () {
eval (sloty[i]).gotoAndStop(2);
};
eval (sloty[i]).onRollOut = function () {
eval (sloty[i]).gotoAndStop(1);
};
eval (sloty[i]).onReleaseOutside = eval ("slot" + k).onRollOut;
eval (sloty[i]).useHandCursor = true;
eval (sloty[i]).onRelease = function () {
if (_level0.aktualny == _root.TenRoom) {
_level0.aktualny.loopa();
} else {
_root.zzoomowany.loopa();
}
eval (sloty[i]).gotoAndStop(3);
eval (sloty[i]).onRollOut = undefined;
eval (sloty[i]).onRollOver = undefined;
eval (sloty[i]).onRelease = function () {
eval (sloty[i]).gotoAndStop(2);
if (_level0.aktualny == _root.TenRoom) {
_level0.aktualny._parent.loopaIsActive = undefined;
chowajPrzyZoomie(_level0.aktualny._parent.doChowania);
_level0.aktualny._parent.zawieracz.onEnterFrame = undefined;
_level0.aktualny._parent.zawieracz.removeMovieClip();
_level0.aktualny._parent.ramka.removeMovieClip();
} else {
_root.loopaIsActive = undefined;
_root.zawieracz.onEnterFrame = undefined;
_root.zawieracz.removeMovieClip();
_root.ramka.removeMovieClip();
}
usunObiekt("Loopka");
dodajObiekt("Loopka");
};
};
return;
}
i++;
}
};
go.onRelease = function () {
this._x = this._x - 1;
this._y = this._y - 1;
_root.HSsprawdz(input.toUpperCase());
};
go.onReleaseOutside = go.onRelease;
go.onPress = function () {
this._x = this._x + 1;
this._y = this._y + 1;
};
dodajObiekt("Loopka");
Symbol 489 MovieClip Frame 1
n = 1;
onEnterFrame = function () {
if (n < 15) {
eval ("k" + n)._alpha = eval ("k" + n)._alpha + 34;
if (eval ("k" + n)._alpha >= 100) {
n++;
}
} else {
delete onEnterFrame;
}
};
Symbol 489 MovieClip Frame 260
_root.przejdzDo(_root.NASTEPNY);
Symbol 489 MovieClip Frame 300
stop();