Frame 1
ifFrameLoaded (153) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 92
stop();
Frame 93
stopAllSounds();
Frame 94
gotoAndPlay (95);
Frame 95
a = "0";
blue = "0";
bluedooropen = "0";
yellow = "0";
yellowdooropen = "0";
green = "0";
greendooropen = "0";
Frame 96
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
if (a == "0") {
setProperty("/you", _x , "170");
setProperty("/you", _y , "170");
} else if (a == "1") {
setProperty("/you", _x , "270");
setProperty("/you", _y , "210");
tellTarget ("/you") {
gotoAndStop (4);
};
} else if (a == "3") {
setProperty("/you", _x , "70");
setProperty("/you", _y , "30");
tellTarget ("/you") {
gotoAndStop (3);
};
} else if (a == "6") {
setProperty("/you", _x , "30");
setProperty("/you", _y , "150");
tellTarget ("/you") {
gotoAndStop (2);
};
}
if (bluedooropen == "0") {
tellTarget ("/bluedoor") {
gotoAndStop (1);
};
} else if (bluedooropen == "1") {
tellTarget ("/bluedoor") {
gotoAndStop (2);
};
}
if (yellowdooropen == "0") {
tellTarget ("/yellowdoor") {
gotoAndStop (1);
};
} else if (yellowdooropen == "1") {
tellTarget ("/yellowdoor") {
gotoAndStop (2);
};
}
stop();
Frame 97
tellTarget ("/you") {
gotoAndStop (2);
}
if (blue == "0") {
tellTarget ("/bluekey") {
gotoAndStop (1);
};
} else if (blue == "1") {
tellTarget ("/bluekey") {
gotoAndStop (3);
};
}
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
tellTarget ("/you") {
gotoAndStop (2);
}
stop();
Frame 98
if (facing == "1") {
tellTarget ("/you") {
gotoAndStop (1);
};
} else if (facing == "2") {
tellTarget ("/you") {
gotoAndStop (2);
};
} else if (facing == "3") {
tellTarget ("/you") {
gotoAndStop (3);
};
} else if (facing == "4") {
tellTarget ("/you") {
gotoAndStop (4);
};
}
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
if (a == "4") {
setProperty("/you", _x , "50");
setProperty("/you", _y , "50");
}
stop();
Frame 99
gotoAndStop (100);
Frame 100
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
if (facing == "1") {
tellTarget ("/you") {
gotoAndStop (1);
};
} else if (facing == "2") {
tellTarget ("/you") {
gotoAndStop (2);
};
} else if (facing == "3") {
tellTarget ("/you") {
gotoAndStop (3);
};
} else if (facing == "4") {
tellTarget ("/you") {
gotoAndStop (4);
};
}
if (greendooropen == "0") {
tellTarget ("/greendoor") {
gotoAndStop (1);
};
} else if (greendooropen == "1") {
tellTarget ("/greendoor") {
gotoAndStop (2);
};
}
if (a == "5") {
setProperty("/you", _x , "30");
setProperty("/you", _y , "110");
}
stop();
Frame 101
a = "4";
gotoAndStop (98);
Frame 102
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
if (yellow == "0") {
tellTarget ("/yellowkey") {
gotoAndStop (1);
};
} else if (yellow == "1") {
tellTarget ("/yellowkey") {
gotoAndStop (2);
};
}
lside = "1";
rside = "1";
tellTarget ("/you") {
gotoAndStop (4);
}
stop();
Frame 103
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
play();
Frame 147
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
stop();
Frame 148
stopAllSounds();
play();
Frame 151
stop();
Frame 152
if (blue == "1") {
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
}
if (yellow == "1") {
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
}
if (green == "1") {
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
}
tellTarget ("/you") {
gotoAndStop (4);
}
if (green == "0") {
tellTarget ("/greenkey") {
gotoAndStop (1);
};
} else if (green == "1") {
tellTarget ("/greenkey") {
gotoAndStop (2);
};
}
stop();
Frame 153
tellTarget ("/you") {
gotoAndStop (5);
}
stop();
Symbol 22 Button
on (release) {
play();
}
Symbol 47 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if (bluedooropen == "0") {
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
} else if ((getProperty("/you", _y) == "30") and (getProperty("/you", _x) <> "70")) {
setProperty("/you", _y , "30");
} else if ((getProperty("/you", _y) == "30") and (getProperty("/you", _x) == "70")) {
if (blue == "0") {
tellTarget ("/message") {
gotoAndPlay (2);
};
} else if (blue == "1") {
bluedooropen = "1";
tellTarget ("/bluedoor") {
gotoAndStop (2);
};
}
}
} else if (bluedooropen == "1") {
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
} else if ((getProperty("/you", _y) == "30") and (getProperty("/you", _x) <> "70")) {
setProperty("/you", _y , "30");
} else if ((getProperty("/you", _y) == "30") and (getProperty("/you", _x) == "70")) {
gotoAndStop (98);
}
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if (getProperty("/you", _y) < "270") {
setProperty("/you", _y , getProperty("/you", _y) + "20");
} else if (getProperty("/you", _y) == "270") {
setProperty("/you", _y , "270");
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if (yellowdooropen == "0") {
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
} else if ((getProperty("/you", _y) == "150") and (getProperty("/you", _x) <> "30")) {
setProperty("/you", _x , "30");
} else if ((getProperty("/you", _y) == "150") and (getProperty("/you", _x) == "30")) {
if (yellow == "0") {
tellTarget ("/message") {
gotoAndPlay (2);
};
} else if (yellow == "1") {
yellowdooropen = "1";
tellTarget ("/yellowdoor") {
gotoAndStop (2);
};
}
}
} else if (yellowdooropen == "1") {
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
} else if ((getProperty("/you", _y) == "150") and (getProperty("/you", _x) <> "30")) {
setProperty("/you", _y , "30");
} else if ((getProperty("/you", _y) == "150") and (getProperty("/you", _x) == "30")) {
gotoAndStop (152);
}
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
gotoAndStop (2);
};
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
} else if ((getProperty("/you", _x) == "270") and (getProperty("/you", _y) <> "210")) {
setProperty("/you", _x , "270");
} else if ((getProperty("/you", _x) == "270") and (getProperty("/you", _y) == "210")) {
gotoAndStop (97);
}
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 15
gotoAndStop (1);
Symbol 57 MovieClip Frame 33
gotoAndStop (1);
Symbol 57 MovieClip Frame 50
gotoAndStop (1);
Symbol 57 MovieClip Frame 69
gotoAndStop (1);
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 2
stop();
Symbol 64 Button
on (keyPress "q") {
toggleHighQuality();
}
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 3
stop();
stopAllSounds();
Symbol 72 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 3
stop();
Symbol 75 MovieClip Frame 4
stop();
Symbol 78 MovieClip Frame 1
stop();
Symbol 78 MovieClip Frame 2
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 2
stop();
Symbol 81 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
if ((getProperty("/you", _x) == "210") and (getProperty("/you", _y) == "70")) {
if (blue == "0") {
tellTarget ("/bluekey") {
gotoAndStop (2);
};
blue = "1";
tellTarget ("/message") {
gotoAndPlay (16);
};
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
} else if (blue == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _y) == "30") {
setProperty("/you", _y , "30");
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if (getProperty("/you", _y) < "270") {
setProperty("/you", _y , getProperty("/you", _y) + "20");
if ((getProperty("/you", _x) == "210") and (getProperty("/you", _y) == "70")) {
if (blue == "0") {
tellTarget ("/bluekey") {
gotoAndStop (2);
};
blue = "1";
tellTarget ("/message") {
gotoAndPlay (16);
};
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
} else if (blue == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _y) == "270") {
setProperty("/you", _y , "270");
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
if ((getProperty("/you", _x) == "210") and (getProperty("/you", _y) == "70")) {
if (blue == "0") {
tellTarget ("/bluekey") {
gotoAndStop (2);
};
blue = "1";
tellTarget ("/message") {
gotoAndPlay (16);
};
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
} else if (blue == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if ((getProperty("/you", _x) == "30") and (getProperty("/you", _y) <> "210")) {
setProperty("/you", _x , "30");
} else if ((getProperty("/you", _x) == "30") and (getProperty("/you", _y) == "210")) {
a = "1";
gotoAndPlay (96);
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
gotoAndStop (2);
};
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
if ((getProperty("/you", _x) == "210") and (getProperty("/you", _y) == "70")) {
if (blue == "0") {
tellTarget ("/bluekey") {
gotoAndStop (2);
};
blue = "1";
tellTarget ("/message") {
gotoAndPlay (16);
};
tellTarget ("/bluekeyitem") {
gotoAndStop (2);
};
} else if (blue == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _x) == "270") {
setProperty("/you", _x , "270");
}
}
Symbol 82 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 86 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
facing = "1";
gotoAndPlay (99);
}
} else if (getProperty("/you", _y) == "30") {
setProperty("/you", _y , "30");
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if (getProperty("/you", _y) < "270") {
setProperty("/you", _y , getProperty("/you", _y) + "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
facing = "3";
gotoAndPlay (99);
}
} else if ((getProperty("/you", _y) == "270") and (getProperty("/you", _x) <> "70")) {
setProperty("/you", _y , "270");
} else if ((getProperty("/you", _y) == "270") and (getProperty("/you", _x) == "70")) {
a = "3";
gotoAndStop (96);
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
gotoAndPlay (99);
facing = "4";
}
} else if (getProperty("/you", _x) == "30") {
setProperty("/you", _x , "30");
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
facing = "2";
gotoAndStop (2);
};
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
facing = "2";
gotoAndPlay (99);
}
} else if (getProperty("/you", _x) == "270") {
setProperty("/you", _x , "270");
}
}
Symbol 87 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 92 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
facing = "1";
gotoAndPlay (101);
}
} else if ((getProperty("/you", _y) == "30") and (getProperty("/you", _x) <> "230")) {
setProperty("/you", _y , "30");
} else if ((getProperty("/you", _y) == "30") and (getProperty("/you", _x) == "230")) {
if (greendooropen == "0") {
if (green == "0") {
tellTarget ("/message") {
gotoAndPlay (2);
};
} else if (green == "1") {
greendooropen = "1";
tellTarget ("/greendoor") {
gotoAndStop (2);
};
}
} else if (greendooropen == "1") {
gotoAndStop (103);
}
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if (getProperty("/you", _y) < "270") {
setProperty("/you", _y , getProperty("/you", _y) + "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
facing = "3";
gotoAndPlay (101);
}
} else if (getProperty("/you", _y) == "270") {
setProperty("/you", _y , "270");
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
gotoAndPlay (101);
facing = "4";
}
} else if ((getProperty("/you", _x) == "30") and (getProperty("/you", _y) <> "110")) {
setProperty("/you", _x , "30");
} else if ((getProperty("/you", _x) == "30") and (getProperty("/you", _y) == "110")) {
gotoAndStop (102);
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
gotoAndStop (2);
};
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "50")) {
facing = "2";
gotoAndPlay (101);
}
} else if (getProperty("/you", _x) == "270") {
setProperty("/you", _x , "270");
}
}
Symbol 93 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 96 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if (("30" < getProperty("/you", _y)) and (getProperty("/you", _x) <> "130")) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "230")) {
if (yellow == "0") {
yellowkey = "1";
yellow = "1";
tellTarget ("/message") {
gotoAndPlay (34);
};
tellTarget ("/yellowkey") {
gotoAndStop (2);
};
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
} else if (yellow == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if ((getProperty("/you", _y) == "70") and (getProperty("/you", _x) == "130")) {
setProperty("/you", _y , "70");
} else if (getProperty("/you", _y) == "30") {
setProperty("/you", _y , "30");
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if ((getProperty("/you", _y) < "270") and (getProperty("/you", _x) <> "130")) {
setProperty("/you", _y , getProperty("/you", _y) + "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "230")) {
if (yellow == "0") {
yellowkey = "1";
yellow = "1";
tellTarget ("/message") {
gotoAndPlay (34);
};
tellTarget ("/yellowkey") {
gotoAndStop (2);
};
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
} else if (yellow == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if ((getProperty("/you", _y) == "70") and (getProperty("/you", _x) == "130")) {
setProperty("/you", _y , "70");
} else if (getProperty("/you", _y) == "270") {
setProperty("/you", _y , "270");
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if (lside == "1") {
if (("150" < getProperty("/you", _x)) and (getProperty("/you", _x) < "280")) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "230")) {
if (yellow == "0") {
yellowkey = "1";
yellow = "1";
tellTarget ("/message") {
gotoAndPlay (34);
};
tellTarget ("/yellowkey") {
gotoAndStop (2);
};
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
} else if (yellow == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if ((getProperty("/you", _x) == "150") and (getProperty("/you", _y) <> "70")) {
setProperty("/you", _x , "150");
} else if ((getProperty("/you", _x) == "150") and (getProperty("/you", _y) == "70")) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
} else if ((getProperty("/you", _x) == "130") and (getProperty("/you", _y) == "70")) {
lside = "2";
rside = "2";
setProperty("/you", _x , getProperty("/you", _x) - "20");
}
} else if (lside == "2") {
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "230")) {
if (yellow == "0") {
yellowkey = "1";
yellow = "1";
tellTarget ("/message") {
gotoAndPlay (34);
};
tellTarget ("/yellowkey") {
gotoAndStop (2);
};
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
} else if (yellow == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _x) == "30") {
setProperty("/you", _x , "30");
}
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
gotoAndStop (2);
};
if (rside == "1") {
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
} else if ((getProperty("/you", _x) == "270") and (getProperty("/you", _y) <> "110")) {
setProperty("/you", _x , "270");
} else if ((getProperty("/you", _x) == "270") and (getProperty("/you", _y) == "110")) {
a = "5";
facing = "2";
gotoAndStop (100);
}
} else if (rside == "2") {
if (getProperty("/you", _x) < "110") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "230")) {
if (yellow == "0") {
yellowkey = "1";
yellow = "1";
tellTarget ("/message") {
gotoAndPlay (34);
};
tellTarget ("/yellowkey") {
gotoAndStop (2);
};
tellTarget ("/yellowkeyitem") {
gotoAndStop (2);
};
} else if (yellow == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if ((getProperty("/you", _x) == "110") and (getProperty("/you", _y) <> "70")) {
setProperty("/you", _x , "110");
} else if ((getProperty("/you", _x) == "110") and (getProperty("/you", _y) == "70")) {
setProperty("/you", _x , getProperty("/you", _x) + "20");
} else if ((getProperty("/you", _x) == "130") and (getProperty("/you", _y) == "70")) {
setProperty("/you", _x , getProperty("/you", _x) + "20");
rside = "1";
lside = "1";
}
}
}
Symbol 97 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 100 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 103 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
if (getProperty("/you", _y) < "110") {
gotoAndPlay (148);
}
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if (getProperty("/you", _y) < "270") {
setProperty("/you", _y , getProperty("/you", _y) + "20");
} else if (getProperty("/you", _y) == "270") {
setProperty("/you", _y , "270");
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
} else if (getProperty("/you", _x) == "30") {
setProperty("/you", _x , "30");
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
gotoAndStop (2);
};
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
} else if (getProperty("/you", _x) == "270") {
setProperty("/you", _x , "270");
}
}
Symbol 109 Button
on (keyPress "<Up>") {
tellTarget ("/you") {
gotoAndStop (1);
};
if ("30" < getProperty("/you", _y)) {
setProperty("/you", _y , getProperty("/you", _y) - "20");
if ((getProperty("/you", _x) == getProperty("/enemy1", _x)) and (getProperty("/you", _y) == getProperty("/enemy1", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy2", _x)) and (getProperty("/you", _y) == getProperty("/enemy2", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy3", _x)) and (getProperty("/you", _y) == getProperty("/enemy3", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy4", _x)) and (getProperty("/you", _y) == getProperty("/enemy4", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy5", _x)) and (getProperty("/you", _y) == getProperty("/enemy5", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy6", _x)) and (getProperty("/you", _y) == getProperty("/enemy6", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy7", _x)) and (getProperty("/you", _y) == getProperty("/enemy7", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy8", _x)) and (getProperty("/you", _y) == getProperty("/enemy8", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy9", _x)) and (getProperty("/you", _y) == getProperty("/enemy9", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy10", _x)) and (getProperty("/you", _y) == getProperty("/enemy10", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy11", _x)) and (getProperty("/you", _y) == getProperty("/enemy11", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy12", _x)) and (getProperty("/you", _y) == getProperty("/enemy12", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy13", _x)) and (getProperty("/you", _y) == getProperty("/enemy13", _y))) {
gotoAndStop (153);
}
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "90")) {
if (green == "0") {
tellTarget ("/greenkey") {
gotoAndStop (2);
};
green = "1";
tellTarget ("/message") {
gotoAndPlay (51);
};
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
} else if (green == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _y) == "30") {
setProperty("/you", _y , "30");
}
}
on (keyPress "<Down>") {
tellTarget ("/you") {
gotoAndStop (3);
};
if (getProperty("/you", _y) < "270") {
setProperty("/you", _y , getProperty("/you", _y) + "20");
if ((getProperty("/you", _x) == getProperty("/enemy1", _x)) and (getProperty("/you", _y) == getProperty("/enemy1", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy2", _x)) and (getProperty("/you", _y) == getProperty("/enemy2", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy3", _x)) and (getProperty("/you", _y) == getProperty("/enemy3", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy4", _x)) and (getProperty("/you", _y) == getProperty("/enemy4", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy5", _x)) and (getProperty("/you", _y) == getProperty("/enemy5", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy6", _x)) and (getProperty("/you", _y) == getProperty("/enemy6", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy7", _x)) and (getProperty("/you", _y) == getProperty("/enemy7", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy8", _x)) and (getProperty("/you", _y) == getProperty("/enemy8", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy9", _x)) and (getProperty("/you", _y) == getProperty("/enemy9", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy10", _x)) and (getProperty("/you", _y) == getProperty("/enemy10", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy11", _x)) and (getProperty("/you", _y) == getProperty("/enemy11", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy12", _x)) and (getProperty("/you", _y) == getProperty("/enemy12", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy13", _x)) and (getProperty("/you", _y) == getProperty("/enemy13", _y))) {
gotoAndStop (153);
}
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "90")) {
if (green == "0") {
tellTarget ("/greenkey") {
gotoAndStop (2);
};
green = "1";
tellTarget ("/message") {
gotoAndPlay (51);
};
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
} else if (green == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _y) == "270") {
setProperty("/you", _y , "270");
}
}
on (keyPress "<Left>") {
tellTarget ("/you") {
gotoAndStop (4);
};
if ("30" < getProperty("/you", _x)) {
setProperty("/you", _x , getProperty("/you", _x) - "20");
if ((getProperty("/you", _x) == getProperty("/enemy1", _x)) and (getProperty("/you", _y) == getProperty("/enemy1", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy2", _x)) and (getProperty("/you", _y) == getProperty("/enemy2", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy3", _x)) and (getProperty("/you", _y) == getProperty("/enemy3", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy4", _x)) and (getProperty("/you", _y) == getProperty("/enemy4", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy5", _x)) and (getProperty("/you", _y) == getProperty("/enemy5", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy6", _x)) and (getProperty("/you", _y) == getProperty("/enemy6", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy7", _x)) and (getProperty("/you", _y) == getProperty("/enemy7", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy8", _x)) and (getProperty("/you", _y) == getProperty("/enemy8", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy9", _x)) and (getProperty("/you", _y) == getProperty("/enemy9", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy10", _x)) and (getProperty("/you", _y) == getProperty("/enemy10", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy11", _x)) and (getProperty("/you", _y) == getProperty("/enemy11", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy12", _x)) and (getProperty("/you", _y) == getProperty("/enemy12", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy13", _x)) and (getProperty("/you", _y) == getProperty("/enemy13", _y))) {
gotoAndStop (153);
}
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "90")) {
if (green == "0") {
tellTarget ("/greenkey") {
gotoAndStop (2);
};
green = "1";
tellTarget ("/message") {
gotoAndPlay (51);
};
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
} else if (green == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if (getProperty("/you", _x) == "30") {
setProperty("/you", _x , "30");
}
}
on (keyPress "<Right>") {
tellTarget ("/you") {
gotoAndStop (2);
};
if (getProperty("/you", _x) < "270") {
setProperty("/you", _x , getProperty("/you", _x) + "20");
if ((getProperty("/you", _x) == getProperty("/enemy1", _x)) and (getProperty("/you", _y) == getProperty("/enemy1", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy2", _x)) and (getProperty("/you", _y) == getProperty("/enemy2", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy3", _x)) and (getProperty("/you", _y) == getProperty("/enemy3", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy4", _x)) and (getProperty("/you", _y) == getProperty("/enemy4", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy5", _x)) and (getProperty("/you", _y) == getProperty("/enemy5", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy6", _x)) and (getProperty("/you", _y) == getProperty("/enemy6", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy7", _x)) and (getProperty("/you", _y) == getProperty("/enemy7", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy8", _x)) and (getProperty("/you", _y) == getProperty("/enemy8", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy9", _x)) and (getProperty("/you", _y) == getProperty("/enemy9", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy10", _x)) and (getProperty("/you", _y) == getProperty("/enemy10", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy11", _x)) and (getProperty("/you", _y) == getProperty("/enemy11", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy12", _x)) and (getProperty("/you", _y) == getProperty("/enemy12", _y))) {
gotoAndStop (153);
} else if ((getProperty("/you", _x) == getProperty("/enemy13", _x)) and (getProperty("/you", _y) == getProperty("/enemy13", _y))) {
gotoAndStop (153);
}
if ((getProperty("/you", _x) == "50") and (getProperty("/you", _y) == "90")) {
if (green == "0") {
tellTarget ("/greenkey") {
gotoAndStop (2);
};
green = "1";
tellTarget ("/message") {
gotoAndPlay (51);
};
tellTarget ("/greenkeyitem") {
gotoAndStop (2);
};
} else if (green == "1") {
tellTarget ("/message") {
gotoAndStop (1);
};
}
}
} else if ((getProperty("/you", _x) == "270") and (getProperty("/you", _y) <> "150")) {
setProperty("/you", _x , "270");
} else if ((getProperty("/you", _x) == "270") and (getProperty("/you", _y) == "150")) {
a = "6";
facing = "2";
gotoAndStop (96);
}
}
Symbol 110 Button
on (keyPress "s") {
if (getProperty("/menu", _currentframe) == "3") {
tellTarget ("/menu") {
gotoAndStop (2);
};
} else if ((getProperty("/menu", _currentframe) == "1") or "2") {
tellTarget ("/menu") {
gotoAndStop (3);
};
}
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 115 Button
on (release, keyPress "<Enter>") {
gotoAndPlay (95);
}
on (release, keyPress "<Left>") {
stop();
}