Frame 2
ifFrameLoaded (29) {
gotoAndStop (21);
}
Frame 20
gotoAndPlay (2);
Frame 21
s = "/stage";
p = "/player";
w = "/walls";
main = "/main";
m = "/message";
sT = "0";
sL = "0";
sR = getProperty(s, _width);
sB = getProperty(s, _height);
Set("_level0:poster", "1");
stop();
Frame 22
stop();
Frame 23
obj1 = "letter_E1";
obj2 = "points_Tugrik1";
obj3 = "doorN";
obj4 = "doorE";
obj5 = "doorW";
obj6 = "wallN";
obj7 = "wallS";
obj8 = "wallE";
obj9 = "wallW";
objCount = "9";
doorN = "Room2";
doorE = "Room12";
doorW = "Room3";
doorNKey = "";
doorEKey = "";
doorWKey = "";
signObj1 = "../sign1";
signCount = "1";
stop();
Frame 25
obj1 = "letter_V";
obj2 = "points_Yen1";
obj3 = "inventory_Gate Key";
obj4 = "doorS";
obj5 = "wallN";
obj6 = "wallS";
obj7 = "wallE";
obj8 = "wallW";
objCount = "8";
doors = "Room1";
doorSKey = "";
enemyObj1 = "../bug1";
enemyObj2 = "../bug2";
enemyObj3 = "../bug3";
enemyCount = "3";
stop();
Frame 27
obj1 = "letter_R";
obj2 = "points_Euro1";
obj3 = "inventory_SpyWatch";
obj4 = "doorS";
obj5 = "doorE";
obj6 = "wallN";
obj7 = "wallS";
obj8 = "wallE";
obj9 = "wallW";
objCount = "9";
doorS = "Room4";
doorE = "Room1";
doorSKey = "";
doorEKey = "";
signObj1 = "../sign2";
signCount = "1";
stop();
Frame 29
obj1 = "letter_S";
obj2 = "points_Yen2";
obj3 = "doorS";
obj4 = "doorW";
obj5 = "wallN";
obj6 = "wallS";
obj7 = "wallE";
obj8 = "wallW";
objCount = "8";
doorS = "Room8";
doorW = "Room1";
doorSKey = "";
doorWKey = "";
enemyObj1 = "../bomb1";
enemyCount = "1";
signObj1 = "../sign6";
signCount = "1";
stop();
Frame 31
obj1 = "letter_E2";
obj2 = "points_Dollar1";
obj3 = "doorN";
obj4 = "doorS";
obj5 = "doorE";
obj6 = "wallN";
obj7 = "wallS";
obj8 = "wallE";
obj9 = "wallW";
objCount = "9";
doorN = "Room3";
doorS = "Room6";
doorE = "Room5";
doorNKey = "";
doorSKey = "../inventory_Gate Key";
doorEKey = "";
enemyObj1 = "../poison1";
enemyCount = "1";
stop();
Frame 33
obj1 = "letter_M";
obj2 = "points_Tugrik2";
obj3 = "inventory_DebugSpray";
obj4 = "doorS";
obj5 = "doorE";
obj6 = "doorW";
obj7 = "wallN";
obj8 = "wallS";
obj9 = "wallE";
obj10 = "wallW";
objCount = "10";
doorS = "Room7";
doorE = "Room8";
doorW = "Room4";
doorSKey = "";
doorEKey = "";
doorWKey = "";
stop();
Frame 35
obj1 = "letter_T";
obj2 = "points_Cruzeiro1";
obj3 = "inventory_Nunchucks";
obj4 = "doorN";
obj5 = "wallN";
obj6 = "wallS";
obj7 = "wallE";
obj8 = "wallW";
objCount = "8";
doorN = "Room4";
doorNKey = "../inventory_Gate Key";
stop();
Frame 37
obj1 = "letter_E4";
obj2 = "points_Euro2";
obj3 = "doorN";
obj4 = "doorS";
obj5 = "wallN";
obj6 = "wallS";
obj7 = "wallE";
obj8 = "wallW";
obj9 = "wall1";
obj10 = "wall2";
obj11 = "wall3";
objCount = "11";
doorN = "Room5";
doorS = "Room10";
doorNKey = "";
doorSKey = "";
signObj1 = "../sign3";
signCount = "1";
stop();
Frame 39
obj1 = "letter_E3";
obj2 = "points_Won1";
obj3 = "doorN";
obj4 = "doorS";
obj5 = "doorW";
obj6 = "wallN";
obj7 = "wallS";
obj8 = "wallE";
obj9 = "wallW";
obj10 = "Safe";
objCount = "10";
doorN = "Room12";
doorS = "Room9";
doorW = "Room5";
doorSKey = "";
enemyObj1 = "../fighter1";
enemyObj2 = "../fighter2";
enemyCount = "2";
stop();
Frame 41
obj1 = "letter_N";
obj2 = "points_Dollar2";
obj3 = "doorN";
obj4 = "doorS";
obj5 = "wallN";
obj6 = "wallS";
obj7 = "wallE";
obj8 = "wallW";
objCount = "8";
doorN = "Room8";
doorS = "Room11";
doorNKey = "";
doorSKey = "";
signObj1 = "../sign4";
signCount = "1";
stop();
Frame 43
obj1 = "letter_A";
obj2 = "points_Won2";
obj3 = "inventory_BulletProofVest";
obj4 = "doorN";
obj5 = "doorE";
obj6 = "wallN";
obj7 = "wallS";
obj8 = "wallE";
obj9 = "wallW";
objCount = "9";
doorN = "Room7";
doorE = "Room11";
doorNKey = "";
doorEKey = "";
signObj1 = "../sign5";
signCount = "1";
stop();
Frame 45
obj1 = "letter_H";
obj2 = "points_Cruzeiro2";
obj3 = "inventory_SpyCamera";
obj4 = "doorN";
obj5 = "doorW";
obj6 = "wallN";
obj7 = "wallS";
obj8 = "wallE";
obj9 = "wallW";
objCount = "9";
doorN = "Room9";
doorW = "Room10";
doorNKey = "";
doorWKey = "";
stop();
Frame 47
stop();
Frame 50
stop();
Frame 323
call("ShowIcon");
Frame 2897
tellTarget ("/final_people") {
gotoAndStop(_level0:poster);
}
Frame 2975
loadVariables ((_level0:cgiPath add "nts_end_sw.pl?uid=") add _level0:uid, "");
stop();
Frame 2976
tellTarget ("/poster_icons") {
gotoAndStop(_level0:poster);
}
Symbol 20 Button
on (release) {
unloadMovieNum (2);
tellTarget ("../") {
gotoAndPlay ("SINGLE INSTRUCTION");
}
}
Symbol 21 MovieClip Frame 1
if (zxc == "1") {
setProperty("loader", _xscale , "1");
}
Symbol 21 MovieClip Frame 2
T = getProperty("../", _totalframes);
L = getProperty("../", _framesloaded);
X = T * "0.75";
if (L >= X) {
gotoAndStop (4);
} else {
loaded = int((L / X) * "100");
if (loaded == "0") {
loaded = "1";
}
setProperty("progress_bar", _xscale , loaded);
if (length(loaded) < "2") {
loaded = " " add loaded;
}
loaded = (substring(loaded, "1", "2")) add " %";
}
Symbol 21 MovieClip Frame 3
gotoAndPlay (2);
Symbol 21 MovieClip Frame 4
stop();
Symbol 21 MovieClip Frame 5
stop();
Symbol 21 MovieClip Frame 6
stop();
Symbol 21 MovieClip Frame 7
stop();
Symbol 21 MovieClip Frame 8
stop();
Symbol 22 MovieClip Frame 1
call("Main");
Symbol 22 MovieClip Frame 2
call("Main");
Symbol 22 MovieClip Frame 3
call("Main");
gotoAndPlay (2);
Symbol 22 MovieClip Frame 5
call("../player:Main");
call("../message:Main");
if (../:enemyCount ne "") {
index = "1";
while (../:enemyCount >= index) {
enemy = eval ("../:enemyObj" add index);
call(enemy add ":Main");
index = index + "1";
}
}
if (../:signCount ne "") {
index = "1";
while (../:signCount >= index) {
sign = eval ("../:signObj" add index);
call(sign add ":Main");
index = index + "1";
}
}
Symbol 23 MovieClip Frame 1
call("Init");
stop();
Symbol 23 MovieClip Frame 20
if (arg2 < arg1) {
result = arg1;
} else {
result = arg2;
}
Symbol 23 MovieClip Frame 30
left1 = r1L;
right1 = r1R;
top1 = r1T;
bottom1 = r1B;
left2 = ../player:rL;
right2 = ../player:rR;
top2 = ../player:rT;
bottom2 = ../player:rB;
if (top2 >= bottom1) {
result = "0";
Set("/:output", "not colliding");
} else if (top1 >= bottom2) {
result = "0";
Set("/:output", "not colliding");
} else if (left2 >= right1) {
result = "0";
Set("/:output", "not colliding");
} else if (left1 >= right2) {
result = "0";
Set("/:output", "not colliding");
} else {
result = "1";
Set("/:output", "colliding");
}
if (zxc == "1") {
trace("utilities:CheckCollision");
}
Symbol 33 Button
on (release) {
gotoAndPlay (22);
loadVariables ((_level0:cgiPath add "nts_game_sw.pl?uid=") add _level0:uid, "");
}
Symbol 41 Button
on (release) {
gotoAndPlay (23);
}
Symbol 43 MovieClip Frame 1
call("Init");
stop();
Symbol 43 MovieClip Frame 10
me = "../wallS";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 43 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 43 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 43 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 45 MovieClip Frame 1
call("Init");
stop();
Symbol 45 MovieClip Frame 10
me = "../wallW";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 45 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 45 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 45 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 46 MovieClip Frame 1
call("Init");
stop();
Symbol 46 MovieClip Frame 10
me = "../wallE";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 46 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 46 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 46 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 47 MovieClip Frame 1
call("Init");
stop();
Symbol 47 MovieClip Frame 10
me = "../wallN";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 47 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 47 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 47 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 49 MovieClip Frame 1
call("Init");
stop();
Symbol 49 MovieClip Frame 10
me = "../doorW";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 49 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
}
if (zxc == "1") {
Set("../message:arg1", me);
call("../message:Message");
}
Symbol 49 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 49 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 49 MovieClip Frame 50
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = "0";
} else if (dy <> "0") {
offsetX = "0";
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 49 MovieClip Frame 60
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = -offsetY;
} else if (dy <> "0") {
offsetX = -offsetX;
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 50 MovieClip Frame 1
call("Init");
stop();
Symbol 50 MovieClip Frame 10
me = "../doorE";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 50 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
}
if (zxc == "1") {
Set("../message:arg1", me);
call("../message:Message");
trace("walls:CheckCollision");
}
Symbol 50 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 50 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 50 MovieClip Frame 50
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = "0";
} else if (dy <> "0") {
offsetX = "0";
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 50 MovieClip Frame 60
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = -offsetY;
} else if (dy <> "0") {
offsetX = -offsetX;
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 52 MovieClip Frame 1
call("Init");
stop();
Symbol 52 MovieClip Frame 10
me = "../doorN";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 52 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
}
if (zxc == "1") {
Set("../message:arg1", me);
call("../message:Message");
}
Symbol 52 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 52 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 52 MovieClip Frame 50
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
trace((me add ":dx = ") add dx);
trace((me add ":dy = ") add dy);
if (dx <> "0") {
offsetY = "0";
} else if (dy <> "0") {
offsetX = "0";
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 52 MovieClip Frame 60
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = -offsetY;
} else if (dy <> "0") {
offsetX = -offsetX;
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 54 MovieClip Frame 1
call("Init");
stop();
Symbol 54 MovieClip Frame 10
me = "../points_Tugrik1";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 54 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 54 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 54 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 54 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 54 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 60 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 60 MovieClip Frame 2
stop();
Symbol 60 MovieClip Frame 5
me = "../sign1";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 60 MovieClip Frame 6
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
gotoAndStop (1);
} else if (../utilities:result == "1") {
result = "1";
gotoAndStop (2);
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 60 MovieClip Frame 15
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 60 MovieClip Frame 16
call("CheckCollision");
Symbol 62 MovieClip Frame 1
call("Init");
stop();
Symbol 62 MovieClip Frame 10
me = "../letter_E1";
name = "\"E\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 62 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 62 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 2
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 2
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
stop();
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 2
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 1
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 2
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 90 MovieClip Frame 1
call("Init");
stop();
Symbol 90 MovieClip Frame 10
me = "../inventory_Gate Key";
name = "Gate Key";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "100";
call("CalcRect");
Set("../player:item", me);
call("../player:HaveItem");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 90 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:item", me);
Set("../player:inventoryName", name);
call("../player:TakeItem");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 90 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 95 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 2
stop();
Symbol 95 MovieClip Frame 3
stop();
Symbol 95 MovieClip Frame 4
stop();
Symbol 95 MovieClip Frame 5
stop();
Symbol 95 MovieClip Frame 6
stop();
Symbol 95 MovieClip Frame 7
stop();
Symbol 95 MovieClip Frame 8
stop();
Symbol 97 Button
on (keyPress "<Left>") {
key = "L";
}
on (keyPress "<Right>") {
key = "R";
}
on (keyPress "<Down>") {
key = "D";
}
on (keyPress "<Up>") {
key = "U";
}
Symbol 104 MovieClip Frame 1
if (isInit == "0") {
call("Init");
isInit = "1";
}
stop();
Symbol 104 MovieClip Frame 10
me = "../player";
speed = "10";
animNum = "1";
lastMove = "0";
standW = getProperty("stand", _width);
standH = getProperty("stand", _height);
p = me;
hasCollision = "0";
inventoryCount = "0";
killedCount = "0";
pointsCount = "0";
letterCount = "0";
fightersKilled = "0";
inventoryIconCount = "0";
isActive = "1";
if (zxc == "1") {
call("CalcTime");
call("TakeSuitcase");
item = "../inventory_Nunchucks";
call("TakeItem");
item = "../inventory_DebugSpray";
if (../:newGame == "1") {
call("NewGame");
Set("../:newGame", "0");
}
enemy = "../bug1";
call("KillEnemy");
}
trace("Init player");
Symbol 104 MovieClip Frame 11
locH = getProperty(me, _x);
locV = getProperty(me, _y);
call("CalcW");
call("CalcH");
call("CalcRect1");
locH = locH + (dx * speed);
locV = locV + (dy * speed);
call("CalcRect2");
if (((("0" < rL) and ("0" < rT)) and (rR < ../:sR)) and (rB < ../:sB)) {
call("CheckCollisions");
if (collisionObj eq "") {
animNum = animNum + "1";
if ("2" < animNum) {
animNum = "1";
}
if ("0" < dx) {
gotoAndStop("R" add animNum);
} else if (dx < "0") {
gotoAndStop("L" add animNum);
} else if ("0" < dy) {
gotoAndStop("D" add animNum);
} else if (dy < "0") {
gotoAndStop("U" add animNum);
}
setProperty(me, _x , locH);
setProperty(me, _y , locV);
lastMove = getTimer();
}
}
if (zxc == "1") {
pW = getProperty(p, _width);
pH = getProperty(p, _height);
}
Symbol 104 MovieClip Frame 12
collisionObj = "";
objIndex = "1";
index = "1";
while (../:objCount >= objIndex) {
curObj = eval ("../:obj" add objIndex);
if (curObj ne "") {
call(("../" add curObj) add ":CheckCollision");
if (eval (("../" add curObj) add ":result") == "1") {
collisionObj = curObj;
if ((substring(curObj, "1", "4")) eq "door") {
Set(("../" add curObj) add ":dx", dx);
Set(("../" add curObj) add ":dy", dy);
call(("../" add curObj) add ":EnterDoor");
}
if ((substring(curObj, "1", "6")) eq "points") {
trace("prize: " add curObj);
trace("../:obj" add objIndex);
Set("../:obj" add objIndex, "");
trace("prize: " add eval ("../:obj" add objIndex));
}
if ((substring(curObj, "1", "9")) eq "inventory") {
call("InventoryCollision");
}
if ((substring(curObj, "1", "6")) eq "letter") {
trace("letter: " add curObj);
trace("../:obj" add objIndex);
Set("../:obj" add objIndex, "");
tellTarget ("../title_" add (substring(curObj, "8", length(curObj)))) {
gotoAndStop ("Show");
};
trace("weapon: " add eval ("../:obj" add objIndex));
}
objIndex = ../:objCount + "1";
} else {
objIndex = objIndex + "1";
}
} else {
objIndex = objIndex + "1";
}
}
if (collisionObj eq "") {
hasCollision = "0";
} else {
hasCollision = "1";
}
if (zxc == "1") {
trace("collisionObj " add collisionObj);
}
Symbol 104 MovieClip Frame 13
index = "1";
result = "";
while (killedCount >= index) {
if (eval ("killed" add index) eq enemy) {
result = eval ("killed" add index);
}
index = index + "1";
}
Symbol 104 MovieClip Frame 14
index = "1";
result = "";
while (letterCount >= index) {
if (eval ("letter" add index) eq arg1) {
result = eval ("letter" add index);
}
index = index + "1";
}
trace("HaveLetter result = " add result);
if (zxc == "1") {
}
Symbol 104 MovieClip Frame 20
if (isActive == "1") {
call("CheckKey");
call("IsStill");
}
Symbol 104 MovieClip Frame 21
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 104 MovieClip Frame 22
item = eval (("../:" add collisionObj) add "Key");
call("HaveItem");
if ((eval (("../:" add collisionObj) add "Key") eq "") or (result ne "")) {
tellTarget ("../") {
newRoom = player/:collisionObj;
newRoom = eval (newRoom);
gotoAndPlay(newRoom);
};
if (collisionObj eq "doorN") {
newDoor = "../doorS";
} else if (collisionObj eq "doorS") {
newDoor = "../doorN";
} else if (collisionObj eq "doorE") {
newDoor = "../doorW";
} else if (collisionObj eq "doorW") {
newDoor = "../doorE";
}
setProperty(me, _x , getProperty(newDoor, _x) - offsetX);
setProperty(me, _y , getProperty(newDoor, _y) - offsetY);
if (eval (("../:" add collisionObj) add "Key") ne "") {
}
} else {
Set("../message:arg1", "The gate is locked and you don't have the key.");
call("../message:Message");
}
if (zxc == "1") {
trace("newRoom " add newRoom);
trace((me add ":offsetX = ") add offsetX);
trace((me add ":offsetY = ") add offsetY);
trace("EnterDoor");
trace(("../:" add collisionObj) add "Key");
trace(eval (("../:" add collisionObj) add "Key"));
Set("../message:arg1", ("You opened the door with the " add (substring(item, "14", length(item)))) add "!");
call("../message:Message");
}
Symbol 104 MovieClip Frame 23
killedCount = killedCount + "1";
Set("killed" add killedCount, enemy);
Set("../message:arg1", ("You killed the " add enemy) add "!");
call("../message:Message");
Symbol 104 MovieClip Frame 24
letterCount = letterCount + "1";
Set("letter" add letterCount, arg1);
Set("../message:arg1", letterName add " found!");
call("../message:Message");
if (letterCount >= "12") {
item = "Safe Combination";
inventoryName = "Safe Combination";
call("TakeItem");
}
Symbol 104 MovieClip Frame 30
if ((lastMove + "600") < getTimer()) {
gotoAndStop (1);
}
Symbol 104 MovieClip Frame 31
rL = rL + (dx * speed);
rT = rT + (dy * speed);
rR = rR + (dx * speed);
rB = rB + (dy * speed);
Symbol 104 MovieClip Frame 32
points = points + arg1;
call("ShowPoints");
Symbol 104 MovieClip Frame 33
index = "1";
result = "";
while (inventoryCount >= index) {
if (eval ("inventory" add index) eq item) {
result = eval ("inventory" add index);
}
index = index + "1";
}
if (zxc == "1") {
trace("HaveItem:result = " add result);
}
Symbol 104 MovieClip Frame 34
trace("inventory: " add curObj);
trace("../:obj" add objIndex);
Set("../:obj" add objIndex, "");
inventoryIconCount = inventoryIconCount + "1";
tellTarget ("../inventory_icon" add inventoryIconCount) {
gotoAndStop(substring(../player:curObj, "11", length(../player:curObj)));
};
trace("inventory: " add eval ("../:obj" add objIndex));
Symbol 104 MovieClip Frame 40
tellTarget ("../") {
gotoAndStop ("GameOver");
};
if (zxc == "1") {
call("CalcTime");
Set("../message:arg1", "You've been killed!");
}
Symbol 104 MovieClip Frame 41
Set("../utilities:arg1", standW);
Set("../utilities:arg2", pW);
call("../utilities:max");
w = ../utilities:result;
Symbol 104 MovieClip Frame 42
len = length(points);
if (len == "1") {
Set("../:points", "000" add points);
} else if (len == "2") {
Set("../:points", "00" add points);
} else if (len == "3") {
Set("../:points", "0" add points);
} else {
Set("../:points", points);
}
Symbol 104 MovieClip Frame 43
inventoryCount = inventoryCount + "1";
Set("inventory" add inventoryCount, item);
if (item eq "Safe Combination") {
Set("../message:arg1", "Safe combination complete!");
} else {
Set("../message:arg1", inventoryName add " taken!");
}
call("../message:Message");
Symbol 104 MovieClip Frame 50
if (key eq "L") {
dx = -"1";
dy = "0";
call("Move");
} else if (key eq "R") {
dx = "1";
dy = "0";
call("Move");
} else if (key eq "D") {
dx = "0";
dy = "1";
call("Move");
} else if (key eq "U") {
dx = "0";
dy = -"1";
call("Move");
}
key = VOID;
if (zxc == "1") {
}
Symbol 104 MovieClip Frame 51
Set("../utilities:arg1", standH);
Set("../utilities:arg2", pH);
call("../utilities:max");
h = ../utilities:result;
Symbol 104 MovieClip Frame 52
index = "1";
result = "";
while (pointsCount >= index) {
if (eval ("points" add index) eq arg1) {
result = eval ("points" add index);
}
index = index + "1";
}
trace("HavePoints result = " add result);
Symbol 104 MovieClip Frame 53
call("TakeItem");
curObj = item;
call("InventoryCollision");
Symbol 104 MovieClip Frame 60
isActive = "0";
Set("../fighter1:isActive", "0");
Set("../fighter2:isActive", "0");
Set("_level0:poster", "5");
tellTarget ("../win") {
gotoAndStop ("Show");
};
gotoAndStop (1);
loadVariables ((_level0:cgiPath add "nts_win_sw.pl?uid=") add _level0:uid, "");
if (zxc == "1") {
call("CalcTime");
}
Symbol 104 MovieClip Frame 62
pointsCount = pointsCount + "1";
Set("points" add pointsCount, arg1);
Symbol 104 MovieClip Frame 69
if (start eq "") {
start = getTimer();
trace("start = " add start);
} else {
Set("../message:arg1", ((getTimer() - start) / "1000") add " secs");
call("../message:Message");
}
Symbol 107 MovieClip Frame 1
call("Init");
stop();
Symbol 107 MovieClip Frame 10
me = "../message";
Symbol 107 MovieClip Frame 20
call("CheckMessage");
Symbol 107 MovieClip Frame 30
if (lastMessageTime ne "") {
if ((lastMessageTime + "2000") < getTimer()) {
lastMessageTime = "";
message = "";
}
}
Symbol 107 MovieClip Frame 40
message = arg1;
lastMessageTime = getTimer();
Symbol 109 MovieClip Frame 1
call("Init");
stop();
Symbol 109 MovieClip Frame 10
me = "../doorS";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 109 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
}
if (zxc == "1") {
Set("../message:arg1", me);
call("../message:Message");
}
Symbol 109 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 109 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 109 MovieClip Frame 50
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = "0";
} else if (dy <> "0") {
offsetX = "0";
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 109 MovieClip Frame 60
offsetX = getProperty("../player", _x) - getProperty(me, _x);
offsetY = getProperty("../player", _y) - getProperty(me, _y);
if (dx <> "0") {
offsetY = -offsetY;
} else if (dy <> "0") {
offsetX = -offsetX;
}
Set("../player:offsetX", offsetX);
Set("../player:offsetY", offsetY);
call("../player:EnterDoor");
Symbol 118 MovieClip Frame 1
call("Init");
stop();
Symbol 118 MovieClip Frame 10
me = "../points_Yen1";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 118 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 118 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 118 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 118 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 118 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 119 MovieClip Frame 1
call("Init");
stop();
Symbol 119 MovieClip Frame 10
me = "../letter_V";
name = "\"V\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 119 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 119 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 122 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
Symbol 122 MovieClip Frame 6
gotoAndPlay (1);
Symbol 122 MovieClip Frame 10
me = "../bug1";
name = "Bug 1";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "6";
enemyKiller = "../inventory_DebugSpray";
enemyTricker = "";
points = "200";
Set("../player:enemy", me);
call("../player:HaveKilled");
if (../player:result ne "") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
call("CalcRect");
}
trace((me add ": isActive = ") add isActive);
Symbol 122 MovieClip Frame 11
if (isActive == "1") {
call("CalcRect");
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
call("NoCollision");
} else if (../utilities:result == "1") {
result = "1";
call("Collision");
}
if (zxc == "1") {
trace("walls:CheckCollision");
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
}
Symbol 122 MovieClip Frame 20
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 122 MovieClip Frame 21
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 122 MovieClip Frame 30
call("CheckCollision");
Symbol 122 MovieClip Frame 31
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../message:arg1", "Debugged!");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 122 MovieClip Frame 40
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
Symbol 122 MovieClip Frame 41
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = ../player:locH - getProperty(me, _x);
dy = ../player:locV - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
} else if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , dLocX);
setProperty(me, _y , dLocY);
}
} else if (../utilities:result == "1") {
result = "1";
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:points", points);
call("../player:AddPoints");
} else {
call("../player:Die");
}
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 122 MovieClip Frame 51
if (isActive == "1") {
call("CalcRect");
Set("../utilities:obj2_x1", rL);
Set("../utilities:obj2_x2", rT);
Set("../utilities:obj2_y1", rR);
Set("../utilities:obj2_y2", rB);
Set("../utilities:r1L", ../player:rL);
Set("../utilities:r1T", ../player:rT);
Set("../utilities:r1R", ../player:rR);
Set("../utilities:r1B", ../player:rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
call("NoCollision");
} else if (../utilities:result == "1") {
call("Collision");
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 123 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
Symbol 123 MovieClip Frame 6
gotoAndPlay (1);
Symbol 123 MovieClip Frame 10
me = "../bug2";
name = "Bug 2";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "1";
enemyKiller = "../inventory_DebugSpray";
enemyTricker = "";
points = "200";
Set("../player:enemy", me);
call("../player:HaveKilled");
if (../player:result ne "") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
call("CalcRect");
}
trace((me add ": isActive = ") add isActive);
Symbol 123 MovieClip Frame 11
if (isActive == "1") {
call("CalcRect");
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
call("NoCollision");
} else if (../utilities:result == "1") {
result = "1";
call("Collision");
}
if (zxc == "1") {
Set("../message:arg1", "Enemy!");
call("../message:Message");
trace("walls:CheckCollision");
}
}
Symbol 123 MovieClip Frame 20
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 123 MovieClip Frame 21
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 123 MovieClip Frame 30
call("CheckCollision");
Symbol 123 MovieClip Frame 31
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../message:arg1", "Debugged!");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 123 MovieClip Frame 40
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
Symbol 123 MovieClip Frame 41
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = ../player:locH - getProperty(me, _x);
dy = ../player:locV - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
} else if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , dLocX);
setProperty(me, _y , dLocY);
}
} else if (../utilities:result == "1") {
result = "1";
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:points", points);
call("../player:AddPoints");
} else {
call("../player:Die");
}
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 123 MovieClip Frame 51
if (isActive == "1") {
call("CalcRect");
Set("../utilities:obj2_x1", rL);
Set("../utilities:obj2_x2", rT);
Set("../utilities:obj2_y1", rR);
Set("../utilities:obj2_y2", rB);
Set("../utilities:r1L", ../player:rL);
Set("../utilities:r1T", ../player:rT);
Set("../utilities:r1R", ../player:rR);
Set("../utilities:r1B", ../player:rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
call("NoCollision");
} else if (../utilities:result == "1") {
call("Collision");
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 124 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
Symbol 124 MovieClip Frame 6
gotoAndPlay (1);
Symbol 124 MovieClip Frame 10
me = "../bug3";
name = "Bug 3";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "2";
enemyKiller = "../inventory_DebugSpray";
enemyTricker = "";
points = "200";
Set("../player:enemy", me);
call("../player:HaveKilled");
if (../player:result ne "") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
call("CalcRect");
}
trace((me add ": isActive = ") add isActive);
Symbol 124 MovieClip Frame 11
if (isActive == "1") {
call("CalcRect");
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
call("NoCollision");
} else if (../utilities:result == "1") {
result = "1";
call("Collision");
}
if (zxc == "1") {
Set("../message:arg1", "Enemy!");
call("../message:Message");
trace("walls:CheckCollision");
}
}
Symbol 124 MovieClip Frame 20
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 124 MovieClip Frame 21
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 124 MovieClip Frame 30
call("CheckCollision");
Symbol 124 MovieClip Frame 31
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../message:arg1", "Debugged!");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 124 MovieClip Frame 40
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
Symbol 124 MovieClip Frame 41
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = ../player:locH - getProperty(me, _x);
dy = ../player:locV - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
} else if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , dLocX);
setProperty(me, _y , dLocY);
}
} else if (../utilities:result == "1") {
result = "1";
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:points", points);
call("../player:AddPoints");
} else {
call("../player:Die");
}
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 124 MovieClip Frame 51
if (isActive == "1") {
call("CalcRect");
Set("../utilities:obj2_x1", rL);
Set("../utilities:obj2_x2", rT);
Set("../utilities:obj2_y1", rR);
Set("../utilities:obj2_y2", rB);
Set("../utilities:r1L", ../player:rL);
Set("../utilities:r1T", ../player:rT);
Set("../utilities:r1R", ../player:rR);
Set("../utilities:r1B", ../player:rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
call("NoCollision");
} else if (../utilities:result == "1") {
call("Collision");
Set("../message:arg1", "Enemy!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 128 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 128 MovieClip Frame 2
stop();
Symbol 128 MovieClip Frame 5
me = "../sign2";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 128 MovieClip Frame 6
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
gotoAndStop (1);
} else if (../utilities:result == "1") {
result = "1";
gotoAndStop (2);
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 128 MovieClip Frame 15
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 128 MovieClip Frame 16
call("CheckCollision");
Symbol 129 MovieClip Frame 1
call("Init");
stop();
Symbol 129 MovieClip Frame 10
me = "../inventory_SpyWatch";
name = "Spy Watch";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "100";
call("CalcRect");
Set("../player:item", me);
call("../player:HaveItem");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 129 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:item", me);
Set("../player:inventoryName", name);
call("../player:TakeItem");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 129 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 131 MovieClip Frame 1
call("Init");
stop();
Symbol 131 MovieClip Frame 10
me = "../points_Euro1";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 131 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 131 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 131 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 131 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 131 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 132 MovieClip Frame 1
call("Init");
stop();
Symbol 132 MovieClip Frame 10
me = "../letter_R";
name = "\"R\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 132 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 132 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 134 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 134 MovieClip Frame 5
me = "../sign6";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 134 MovieClip Frame 6
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
gotoAndStop (1);
} else if (../utilities:result == "1") {
result = "1";
gotoAndStop (2);
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 134 MovieClip Frame 15
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 134 MovieClip Frame 16
call("CheckCollision");
Symbol 135 MovieClip Frame 1
call("Init");
stop();
Symbol 135 MovieClip Frame 10
me = "../points_Yen2";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 135 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 135 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 135 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 135 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 135 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 136 MovieClip Frame 1
call("Init");
stop();
Symbol 136 MovieClip Frame 5
trace("door12S:me = " add me);
if (../player:fightersKilled == "2") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
me = "../door bars";
name = "Door Bars";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "100";
call("CalcRect");
call("CalcRadii");
}
Symbol 137 MovieClip Frame 1
call("Init");
stop();
Symbol 137 MovieClip Frame 10
me = "../letter_S";
name = "\"S\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 137 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 137 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 139 MovieClip Frame 1
interval = "5";
startTime = getTimer();
endTime = (interval * "1000") + startTime;
trace("Timer initialized...");
Symbol 139 MovieClip Frame 2
if (getTimer() >= endTime) {
call("Action");
gotoAndStop (20);
trace("Timer expired");
}
if (a == "1") {
trace("Still ticking...");
}
Symbol 139 MovieClip Frame 3
gotoAndPlay (2);
Symbol 139 MovieClip Frame 10
tellTarget ("../") {
gotoAndPlay ("BAM");
}
Symbol 139 MovieClip Frame 20
stop();
Symbol 143 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
Symbol 143 MovieClip Frame 4
gotoAndPlay (1);
Symbol 143 MovieClip Frame 6
trace("BAM! You're Dead");
call("../player:Die");
stop();
Symbol 143 MovieClip Frame 11
me = "../bomb1";
name = "Da Bomb";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "0";
enemyKiller = "";
enemyTricker = "";
points = "200";
call("CalcRect");
Symbol 143 MovieClip Frame 12
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
gotoAndPlay (5);
}
if (zxc == "1") {
call("NoCollision");
call("Collision");
trace("walls:CheckCollision");
}
Symbol 143 MovieClip Frame 21
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 143 MovieClip Frame 22
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 143 MovieClip Frame 31
call("CheckCollision");
Symbol 143 MovieClip Frame 32
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:points", points);
call("../player:AddPoints");
Set("../message:arg1", "\"You debugged \" & name & \"!\"");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 147 MovieClip Frame 1
call("Init");
stop();
Symbol 147 MovieClip Frame 10
me = "../points_Dollar1";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 147 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 147 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 147 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 147 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 147 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 149 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
Symbol 149 MovieClip Frame 6
gotoAndPlay (1);
Symbol 149 MovieClip Frame 10
me = "../poison1";
name = "Sweet Elixir";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "0";
enemyKiller = "";
enemyTricker = "";
isPoisoned = "0";
points = "200";
call("CalcRect");
Symbol 149 MovieClip Frame 11
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
call("../player:Die");
}
if (zxc == "1") {
if ((isPoisoned == "0") and (../player:speed >= "1")) {
isPoisoned = "1";
Set("../player:speed", ../player:speed / "2");
Set("../message:arg1", "You've been poisoned! ");
call("../message:Message");
}
call("Collision");
trace("walls:CheckCollision");
}
Symbol 149 MovieClip Frame 20
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 149 MovieClip Frame 21
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 149 MovieClip Frame 30
call("CheckCollision");
Symbol 149 MovieClip Frame 31
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:points", points);
call("../player:AddPoints");
Set("../message:arg1", "\"You debugged \" & name & \"!\"");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 150 MovieClip Frame 1
call("Init");
stop();
Symbol 150 MovieClip Frame 5
me = "../door_gate";
trace("door bare:me = " add me);
Set("../player:item", "../inventory_Gate Key");
call("../player:HaveItem");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
name = "Door Bars";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "100";
call("CalcRect");
call("CalcRadii");
}
Symbol 151 MovieClip Frame 1
call("Init");
stop();
Symbol 151 MovieClip Frame 10
me = "../letter_E2";
name = "\"E\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 151 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 151 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 155 MovieClip Frame 1
call("Init");
stop();
Symbol 155 MovieClip Frame 10
me = "../inventory_DebugSpray";
name = "Debug Spray";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "500";
call("CalcRect");
Set("../player:item", me);
call("../player:HaveItem");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 155 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:item", me);
Set("../player:inventoryName", name);
call("../player:TakeItem");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 155 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 156 MovieClip Frame 1
call("Init");
stop();
Symbol 156 MovieClip Frame 10
me = "../points_Tugrik2";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 156 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 156 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 156 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 156 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 156 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 157 MovieClip Frame 1
call("Init");
stop();
Symbol 157 MovieClip Frame 10
me = "../letter_M";
name = "\"M\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 157 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 157 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 159 MovieClip Frame 1
call("Init");
stop();
Symbol 159 MovieClip Frame 10
me = "../points_Cruzeiro1";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 159 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 159 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 159 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 159 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 159 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 160 MovieClip Frame 1
call("Init");
stop();
Symbol 160 MovieClip Frame 10
me = "../inventory_Nunchucks";
name = "Nunchucks";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "200";
call("CalcRect");
Set("../player:item", me);
call("../player:HaveItem");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 160 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:item", me);
Set("../player:inventoryName", name);
call("../player:TakeItem");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 160 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 161 MovieClip Frame 1
call("Init");
stop();
Symbol 161 MovieClip Frame 10
me = "../letter_T";
name = "\"T\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 161 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 161 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 163 MovieClip Frame 1
call("Init");
stop();
Symbol 163 MovieClip Frame 10
me = "../wall2";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 163 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 163 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 163 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 164 MovieClip Frame 1
call("Init");
stop();
Symbol 164 MovieClip Frame 10
me = "../wall1";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 164 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 164 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 164 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 165 MovieClip Frame 1
call("Init");
stop();
Symbol 165 MovieClip Frame 10
me = "../wall3";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 165 MovieClip Frame 20
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
Set("../message:arg1", "Wall!");
call("../message:Message");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 165 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 165 MovieClip Frame 40
rL = (locH - (w / "2")) - "1";
rT = (locV - (h / "2")) - "1";
rR = (locH + (w / "2")) + "1";
rB = (locV + (h / "2")) + "1";
Symbol 169 MovieClip Frame 1
call("Init");
stop();
Symbol 169 MovieClip Frame 10
me = "../points_Euro2";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 169 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 169 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 169 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 169 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 169 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 171 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 171 MovieClip Frame 2
stop();
Symbol 171 MovieClip Frame 5
me = "../sign3";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 171 MovieClip Frame 6
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
gotoAndStop (1);
} else if (../utilities:result == "1") {
result = "1";
gotoAndStop (2);
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 171 MovieClip Frame 15
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 171 MovieClip Frame 16
call("CheckCollision");
Symbol 172 MovieClip Frame 1
call("Init");
stop();
Symbol 172 MovieClip Frame 10
me = "../letter_E4";
name = "\"E\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 172 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 172 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 184 MovieClip Frame 1
call("Init");
stop();
Symbol 184 MovieClip Frame 5
me = "../Safe";
name = "Safe";
h = getProperty(me, _height);
w = getProperty(me, _width);
contents = "inventory_Suitcase";
containerKey = "Safe Combination";
points = "200";
call("CalcRect");
Symbol 184 MovieClip Frame 6
call("CalcRect");
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
call("Collision");
}
Symbol 184 MovieClip Frame 15
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 184 MovieClip Frame 16
Set("../player:item", containerKey);
call("../player:HaveItem");
if (../player:result ne "") {
Set("../player:item", "Suitcase");
call("../player:HaveItem");
if (../player:result eq "") {
Set("../player:item", contents);
Set("../player:inventoryName", "Suitcase");
call("../player:TakeSuitcase");
}
Set("../message:arg1", "Safe opened and Suitcase taken!");
call("../message:Message");
call("../player:Win");
} else {
lettersLeft = "12" - ../player:letterCount;
if (lettersLeft == "1") {
Set("../message:arg1", "You need to find 1 more letter before you can open the Safe!");
} else {
Set("../message:arg1", ("You need to find " add lettersLeft) add " more letters before Safe can be opened!");
}
call("../message:Message");
}
if (zxc == "1") {
result = "1";
}
Symbol 184 MovieClip Frame 25
call("CheckCollision");
Symbol 186 MovieClip Frame 1
call("Init");
stop();
Symbol 186 MovieClip Frame 10
me = "../points_Won1";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 186 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 186 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 186 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 186 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 186 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 187 MovieClip Frame 1
call("Init");
stop();
Symbol 187 MovieClip Frame 5
trace("door8N:me = " add me);
if (../player:fightersKilled == "2") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
me = "../door bars";
name = "Door Bars";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "100";
call("CalcRect");
call("CalcRadii");
}
Symbol 188 MovieClip Frame 1
call("Init");
stop();
Symbol 188 MovieClip Frame 10
me = "../letter_E3";
name = "\"E\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 188 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 188 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 195 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 195 MovieClip Frame 30
gotoAndPlay (1);
Symbol 195 MovieClip Frame 31
me = "../fighter1";
name = "Kung Fu fighter";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "1";
enemyKiller = "../inventory_Nunchucks";
enemyTricker = "";
points = "500";
Set("../player:enemy", me);
call("../player:HaveKilled");
if (../player:result ne "") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
call("CalcRect");
}
trace((me add ": isActive = ") add isActive);
Symbol 195 MovieClip Frame 32
if (isActive == "1") {
call("CalcRect");
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
call("NoCollision");
} else if (../utilities:result == "1") {
result = "1";
call("Collision");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 195 MovieClip Frame 41
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 195 MovieClip Frame 42
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 195 MovieClip Frame 51
call("CheckCollision");
Symbol 195 MovieClip Frame 52
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:fightersKilled", ../player:fightersKilled + "1");
if (../player:fightersKilled == "2") {
setProperty("../door8N", _x , -"10000");
}
Set("../message:arg1", "Aaarrggghhh!");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 196 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 196 MovieClip Frame 30
gotoAndPlay (1);
Symbol 196 MovieClip Frame 31
me = "../fighter2";
name = "Kung Fu fighter";
h = getProperty(me, _height);
w = getProperty(me, _width);
speed = "3";
enemyKiller = "../inventory_Nunchucks";
enemyTricker = "";
points = "500";
Set("../player:enemy", me);
call("../player:HaveKilled");
if (../player:result ne "") {
setProperty(me, _x , -"10000");
isActive = "0";
} else {
isActive = "1";
call("CalcRect");
}
trace((me add ": isActive = ") add isActive);
Symbol 196 MovieClip Frame 32
if (isActive == "1") {
call("CalcRect");
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
call("NoCollision");
} else if (../utilities:result == "1") {
result = "1";
call("Collision");
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
}
Symbol 196 MovieClip Frame 41
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 196 MovieClip Frame 42
Set("../player:item", enemyTricker);
call("../player:HaveItem");
if ((enemyTricker eq "") or (../player:result eq "")) {
dx = getProperty("../player", _x) - getProperty(me, _x);
dy = getProperty("../player", _y) - getProperty(me, _y);
if (dx < "0") {
dx = -"1";
} else if ("0" < dx) {
dx = "1";
}
if (dy < "0") {
dy = -"1";
} else if ("0" < dy) {
dy = "1";
}
dLocX = dx * speed;
dLocY = dy * speed;
setProperty(me, _x , getProperty(me, _x) + dLocX);
setProperty(me, _y , getProperty(me, _y) + dLocY);
}
Symbol 196 MovieClip Frame 51
call("CheckCollision");
Symbol 196 MovieClip Frame 52
Set("../player:item", enemyKiller);
call("../player:HaveItem");
if ((enemyKiller ne "") and (../player:result ne "")) {
setProperty(me, _x , -"10000");
isActive = "0";
Set("../player:enemy", me);
call("../player:KillEnemy");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:fightersKilled", ../player:fightersKilled + "1");
if (../player:fightersKilled >= "2") {
setProperty("../door8N", _x , -"10000");
}
Set("../message:arg1", "Eeeeeeeeeeiiiiiiii!");
call("../message:Message");
} else {
call("../player:Die");
trace("You're dead");
}
if (zxc == "1") {
result = "1";
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 1
call("Init");
stop();
Symbol 199 MovieClip Frame 10
me = "../points_Dollar2";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 199 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 199 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 199 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 199 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 199 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 200 MovieClip Frame 1
call("Init");
stop();
Symbol 200 MovieClip Frame 10
me = "../letter_N";
name = "\"N\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 200 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 200 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 201 MovieClip Frame 1
call("Init");
stop();
Symbol 201 MovieClip Frame 10
me = "../points_Won2";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 201 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 201 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 201 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 201 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 201 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 203 MovieClip Frame 1
if (isInit <> "1") {
call("Init");
isInit = "1";
}
stop();
Symbol 203 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 5
me = "../sign5";
h = getProperty(me, _height);
w = getProperty(me, _width);
call("CalcRect");
Symbol 203 MovieClip Frame 6
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
gotoAndStop (1);
} else if (../utilities:result == "1") {
result = "1";
gotoAndStop (2);
}
if (zxc == "1") {
trace("walls:CheckCollision");
}
Symbol 203 MovieClip Frame 15
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 203 MovieClip Frame 16
call("CheckCollision");
Symbol 204 MovieClip Frame 1
call("Init");
stop();
Symbol 204 MovieClip Frame 10
me = "../letter_A";
name = "\"A\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 204 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 204 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 205 MovieClip Frame 1
call("Init");
stop();
Symbol 205 MovieClip Frame 10
me = "../inventory_SpyCamera";
name = "Spy Camera";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "500";
call("CalcRect");
Set("../player:item", me);
call("../player:HaveItem");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 205 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:item", me);
Set("../player:inventoryName", name);
call("../player:TakeItem");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 205 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 206 MovieClip Frame 1
call("Init");
stop();
Symbol 206 MovieClip Frame 10
me = "../points_Cruzeiro2";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HavePoints");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 206 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
call("../player:TakePoints");
Set("../message:arg1", points add " points");
call("../message:Message");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 206 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 206 MovieClip Frame 40
Set("../utilities:arg1", getProperty(me, _width));
Set("../utilities:arg2", getProperty(me, _height));
call("../utilities:max");
radius1 = ../utilities:result / "2";
Set("../utilities:arg1", getProperty("../player", _width));
Set("../utilities:arg2", getProperty("../player", _height));
call("../utilities:max");
radius2 = ../utilities:result / "2";
Symbol 206 MovieClip Frame 49
radius1 = getProperty(me, _width) / "2";
radius2 = (getProperty("../player", _width) + getProperty("../player", _height)) / "2";
Symbol 206 MovieClip Frame 59
obj1_x = getProperty(me, _x);
obj2_x = getProperty("../player", _x);
delta_x = obj1_x - obj2_x;
obj1_y = getProperty(me, _y);
obj2_y = getProperty("../player", _y);
delta_y = obj1_y - obj2_y;
if (((radius1 + radius2) * (radius1 + radius2)) >= ((delta_x * delta_x) + (delta_y * delta_y))) {
Set("/:output", "colliding");
result = "1";
setProperty(me, _x , -"1000");
Set("../player:item", me);
call("../player:TakeItem");
Set("../player:arg1", points);
call("../player:AddPoints");
} else {
Set("/:output", "not colliding");
result = "0";
}
Symbol 207 MovieClip Frame 1
call("Init");
stop();
Symbol 207 MovieClip Frame 10
me = "../letter_H";
name = "\"H\"";
h = getProperty(me, _height);
w = getProperty(me, _width);
points = "50";
call("CalcRect");
Set("../player:arg1", me);
call("../player:HaveLetter");
if (../player:result ne "") {
setProperty(me, _x , -"1000");
isActive = "0";
} else {
isActive = "1";
}
if (zxc == "1") {
call("CalcRadii");
}
Symbol 207 MovieClip Frame 20
if (isActive == "1") {
Set("../utilities:r1L", rL);
Set("../utilities:r1T", rT);
Set("../utilities:r1R", rR);
Set("../utilities:r1B", rB);
call("../utilities:CheckCollision");
if (../utilities:result == "0") {
result = "0";
} else if (../utilities:result == "1") {
result = "1";
setProperty(me, _x , -"1000");
Set("../player:arg1", points);
call("../player:AddPoints");
Set("../player:arg1", me);
Set("../player:letterName", name);
call("../player:TakeLetter");
}
}
if (zxc == "1") {
trace(me add ":CheckCollision");
}
Symbol 207 MovieClip Frame 30
locH = getProperty(me, _x);
locV = getProperty(me, _y);
rL = locH - (w / "2");
rT = locV - (h / "2");
rR = locH + (w / "2");
rB = locV + (h / "2");
Symbol 209 Button
on (release) {
newGame = "1";
points = "0000";
gotoAndPlay (23);
}
Symbol 214 Button
on (release) {
gotoAndPlay (51);
loadVariables ((_level0:cgiPath add "nts_start_sw.pl?uid=") add _level0:uid, "");
}
Symbol 236 MovieClip Frame 266
stopAllSounds();
tellTarget ("_level0") {
gotoAndPlay ("start");
}
Symbol 244 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 2
stop();
Symbol 244 MovieClip Frame 3
stop();
Symbol 244 MovieClip Frame 4
stop();
Symbol 244 MovieClip Frame 5
stop();
Symbol 383 Button
on (release) {
if (_level0:poster <> "5") {
Set("_level0:poster", "2");
call("/:ShowIcon");
}
}
Symbol 790 Button
on (release) {
if (_level0:poster <> "5") {
Set("_level0:poster", "3");
call("/:ShowIcon");
}
}
on (release) {
tellTarget ("final_people") {
gotoAndStop ("rick");
}
}
Symbol 891 MovieClip Frame 20
stop();
Symbol 1030 Button
on (release) {
if (_level0:poster <> "5") {
Set("_level0:poster", "4");
call("/:ShowIcon");
}
}
on (release) {
tellTarget ("final_people") {
gotoAndStop ("kiram");
}
}
Symbol 1095 MovieClip Frame 16
stop();
Symbol 1135 MovieClip Frame 6
stop();
Symbol 1240 MovieClip Frame 1
stop();
Symbol 1240 MovieClip Frame 2
stop();
Symbol 1240 MovieClip Frame 3
stop();
Symbol 1240 MovieClip Frame 4
stop();
Symbol 1240 MovieClip Frame 5
stop();
Symbol 1259 Button
on (release) {
getURL ("http://www.sbleisure.com/", "_blank");
}
Symbol 1263 Button
on (release) {
getURL ("http://www.pixelwurld.com", "_blank");
}
Symbol 1274 MovieClip Frame 1
stop();
Symbol 1274 MovieClip Frame 2
loadMovie (((_level0:sw_host add "nts") add _level0:poster) add ".swf", "poster");
Symbol 1274 MovieClip Frame 3
if (poster:movieLoaded == "1") {
gotoAndPlay (7);
}
Symbol 1274 MovieClip Frame 4
prevFrame();
play();
Symbol 1274 MovieClip Frame 7
getURL ("print:", "poster");
loadVariables ((((_level0:cgiPath add "nts_p") add _level0:poster) add "_sw.pl?uid=") add _level0:uid, "");
Symbol 1274 MovieClip Frame 14
gotoAndStop (1);
Symbol 1274 MovieClip Frame 39
getURL ("http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash", "_blank");
stop();
Symbol 1281 Button
on (release) {
playerversion = $version;
versionnumber = substring(playerversion, "9", "2");
if (versionnumber >= "20") {
tellTarget ("/print_clip") {
play();
};
} else {
tellTarget ("/print_clip") {
gotoAndPlay ("no_print");
};
}
}
Symbol 1284 Button
on (release) {
Set("_level0:poster", "1");
gotoAndPlay (1);
loadVariables ((_level0:cgiPath add "nts_again_sw.pl?uid=") add _level0:uid, "");
}