Frame 1
loaded = "0";
Frame 23
ifFrameLoaded (70) {
loaded = "1";
}
Frame 25
gotoAndPlay (21);
Frame 43
Set("../:tip", "CHECK THE INSTRUCTIONS BEFORE YOU ATTEMPT THIS EXERCISE.");
Set("../:lineMax", "0");
Set("../:comms", "1");
tellTarget ("../instructions") {
gotoAndPlay ("out");
}
Frame 50
gotoAndPlay (44);
Frame 51
if (../:registered == "1") {
loadVariables ("scripts/missioncount.asp?misstrain=1&mission=1&agentID=" add ../:agentID, "");
}
loader = ../:loader;
Set("../:comms", "0");
startDrag (loader add "/trail0", true, "100", "324", "450", "324");
drag = "1";
tellTarget (loader add "/trail0") {
gotoAndPlay (2);
};
score = "0";
Set(loader add "/target1:up", "0");
Set(loader add "/target2:up", "0");
Set(loader add "/target3:up", "0");
Set(loader add "/target1:hit", "0");
Set(loader add "/target2:hit", "0");
Set(loader add "/target3:hit", "0");
start = "1";
goneTime = "0";
play();
Frame 52
if (start == "1") {
play();
} else {
gotoAndStop (60);
}
punch = "0";
Frame 53
punchFrame = int((getProperty(loader add "/trail1", _x) - "80") / "40") + "1";
tellTarget (loader add "/trail1") {
gotoAndStop(../:punchFrame);
};
if ((eval (loader add "/target1:up") == "0") and (random("3") == "0")) {
target1 = random("10") + "1";
if ((target2 >= "8") and (target3 >= "8")) {
target1 = "1";
}
target1X = "170" + random("211");
tellTarget (loader add "/target1/character") {
gotoAndStop(../../:target1);
};
tellTarget (loader add "/target1") {
_x = ../:target1X;
count = "0";
upTime = "30" + random("50");
up = "1";
gotoAndPlay ("up");
};
}
if ((eval (loader add "/target2:up") == "0") and (random("3") == "0")) {
target2 = random("10") + "1";
if ((target1 >= "8") and (target3 >= "8")) {
target2 = "1";
}
target2X = "180" + random("201");
tellTarget (loader add "/target2/character") {
gotoAndStop(../../:target2);
};
tellTarget (loader add "/target2") {
_x = ../:target2X;
count = "0";
upTime = "30" + random("50");
up = "1";
gotoAndPlay ("up");
};
}
if ((eval (loader add "/target3:up") == "0") and (random("3") == "0")) {
target3 = random("10") + "1";
if ((target2 >= "8") and (target1 >= "8")) {
target3 = "1";
}
target3X = "190" + random("191");
tellTarget (loader add "/target3/character") {
gotoAndStop(../../:target3);
};
tellTarget (loader add "/target3") {
_x = ../:target3X;
count = "0";
upTime = "30" + random("50");
up = "1";
gotoAndPlay ("up");
};
}
prevFrame();
Frame 56
if (count == "11") {
scale = scale * (-"1");
xMove = xMove * (-"1");
yMove = yMove * (-"1");
}
play();
Frame 57
if ("21" >= count) {
setProperty(loader add "/trail1", _x , getProperty(loader add "/trail1", _x) + xMove);
setProperty(loader add "/trail1", _y , getProperty(loader add "/trail1", _y) - yMove);
setProperty(loader add "/trail1", _xscale , getProperty(loader add "/trail1", _xscale) - scale);
setProperty(loader add "/trail1", _yscale , getProperty(loader add "/trail1", _yscale) - scale);
posZ = getProperty(loader add "/trail1", _xscale);
posX = getProperty(loader add "/trail1", _x);
count = count + "1";
if ((((((((posZ < "42") and ("34" < posZ)) and ((posX - target1X) < "30")) and ((-"30") < (posX - target1X))) and (eval (loader add "/target1:hit") == "0")) and (eval (loader add "/target1:up") == "1")) and (eval (loader add "/target1:down") == "0")) and (count < "11")) {
if (target1 < "8") {
score = score + "20";
} else if (score >= "10") {
score = score - "10";
}
tellTarget (loader add "/target1") {
hit = "1";
gotoAndPlay ("hit");
};
scale = scale * (-"1");
xMove = xMove * (-"1");
yMove = yMove * (-"1");
count = "23" - count;
}
if ((((((((posZ < "32") and ("24" < posZ)) and ((posX - target2X) < "27")) and ((-"27") < (posX - target2X))) and (eval (loader add "/target2:hit") == "0")) and (eval (loader add "/target2:up") == "1")) and (eval (loader add "/target2:down") == "0")) and (count < "11")) {
if (target2 < "8") {
score = score + "25";
} else if (score >= "10") {
score = score - "10";
}
tellTarget (loader add "/target2") {
hit = "1";
gotoAndPlay ("hit");
};
scale = scale * (-"1");
xMove = xMove * (-"1");
yMove = yMove * (-"1");
count = "23" - count;
}
if ((((((((posZ < "24") and ("12" < posZ)) and ((posX - target3X) < "24")) and ((-"24") < (posX - target3X))) and (eval (loader add "/target3:hit") == "0")) and (eval (loader add "/target3:up") == "1")) and (eval (loader add "/target3:down") == "0")) and (count < "11")) {
if (target3 < "8") {
score = score + "30";
} else if (score >= "10") {
score = score - "10";
}
tellTarget (loader add "/target3") {
hit = "1";
gotoAndPlay ("hit");
};
scale = scale * (-"1");
xMove = xMove * (-"1");
yMove = yMove * (-"1");
count = "23" - count;
}
prevFrame();
} else {
setProperty(loader add "/trail1", _xscale , "100");
setProperty(loader add "/trail1", _yscale , "100");
tellTarget (loader add "/trail0") {
gotoAndPlay (2);
};
gotoAndPlay (52);
}
Frame 60
stop();
Symbol 8 MovieClip Frame 1
play();
Symbol 8 MovieClip Frame 62
if (../:loaded == "1") {
gotoAndStop (120);
}
Symbol 8 MovieClip Frame 73
if (../:loaded == "1") {
gotoAndStop (120);
}
Symbol 8 MovieClip Frame 82
if (../:loaded == "1") {
gotoAndStop (120);
}
Symbol 8 MovieClip Frame 92
if (../:loaded == "1") {
gotoAndStop (120);
}
Symbol 8 MovieClip Frame 102
if (../:loaded == "1") {
gotoAndStop (120);
}
Symbol 8 MovieClip Frame 112
if (../:loaded == "1") {
gotoAndStop (120);
}
Symbol 8 MovieClip Frame 120
play();
Symbol 8 MovieClip Frame 162
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 170
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 178
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 187
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 196
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 206
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 216
if (../:loaded == "1") {
gotoAndStop (225);
}
Symbol 8 MovieClip Frame 225
play();
Symbol 8 MovieClip Frame 257
if (../:loaded == "1") {
tellTarget ("../") {
gotoAndPlay ("enterplay");
};
}
Symbol 8 MovieClip Frame 259
gotoAndPlay (239);
Symbol 12 Button
on (release) {
gotoAndPlay (51);
}
Symbol 15 MovieClip Frame 1
play();
Symbol 15 MovieClip Frame 10
gotoAndPlay (1);
Symbol 17 Button
on (release) {
gotoAndPlay (51);
}
Symbol 22 MovieClip Frame 1
play();
Symbol 22 MovieClip Frame 2
if (../:start == "1") {
Set("../:goneTime", ../:goneTime + "83");
nowTime = "60000" - ../:goneTime;
if ("0" >= nowTime) {
nowTime = "0";
tellTarget ("../") {
start = "0";
};
}
secs = int(nowTime / "1000");
mins = int(secs / "60");
if ("0" < mins) {
secs = secs - (mins * "60");
}
timeTemp = ("0" add mins) add ":";
if (secs < "10") {
timeTemp = (timeTemp add "0") add secs;
} else {
timeTemp = timeTemp add secs;
}
if (mins < "1") {
millis = int((nowTime - (secs * "1000")) / "10");
} else {
millis = int((nowTime - ((secs * "1000") + (mins * "60000"))) / "10");
}
timeTemp = (timeTemp add ":") add millis;
time = timeTemp;
}
prevFrame();
Symbol 34 MovieClip Frame 1
up = "0";
hit = "0";
stop();
Symbol 34 MovieClip Frame 7
down = "0";
Symbol 34 MovieClip Frame 8
play();
Symbol 34 MovieClip Frame 9
if (count < upTime) {
count = count + "1";
prevFrame();
} else {
gotoAndPlay (11);
}
Symbol 34 MovieClip Frame 11
down = "1";
Symbol 34 MovieClip Frame 14
gotoAndStop (1);
Symbol 34 MovieClip Frame 20
gotoAndPlay (11);
Symbol 40 MovieClip Frame 1
play();
Symbol 40 MovieClip Frame 7
gotoAndPlay (1);
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
i = "1";
a = "5";
b = "1.55";
k = "0";
while (i >= "0") {
Set(((../:loader add "/trail") add i) add ":x_value", getProperty((../:loader add "/trail") add i, _x));
Set(((../:loader add "/trail") add i) add ":y_value", getProperty((../:loader add "/trail") add i, _y));
Set(((../:loader add "/trail") add i) add ":vx", "0");
Set(((../:loader add "/trail") add i) add ":vy", "0");
i = i - "1";
}
play();
Symbol 50 MovieClip Frame 3
Set(../:loader add "/trail1:vx", (eval (../:loader add "/trail1:vx") + ((((eval (../:loader add "/trail0:x_value") + k) - eval (../:loader add "/trail1:x_value")) * "1") / a)) / b);
Set(../:loader add "/trail1:vy", (eval (../:loader add "/trail1:vy") + ((((eval (../:loader add "/trail0:y_value") + k) - eval (../:loader add "/trail1:y_value")) * "1") / a)) / b);
Set(../:loader add "/trail1:x_value", eval (../:loader add "/trail1:x_value") + eval (../:loader add "/trail1:vx"));
Set(../:loader add "/trail1:y_value", eval (../:loader add "/trail1:y_value") + eval (../:loader add "/trail1:vy"));
Set(../:loader add "/trail0:x_value", getProperty(../:loader add "/trail0", _x));
Set(../:loader add "/trail0:y_value", getProperty(../:loader add "/trail0", _y));
setProperty(../:loader add "/trail1", _x , eval (../:loader add "/trail1:x_value"));
setProperty(../:loader add "/trail1", _y , eval (../:loader add "/trail1:y_value"));
play();
Symbol 50 MovieClip Frame 4
prevFrame();
Symbol 51 Button
on (rollOver) {
if (drag == "0") {
drag = "1";
startDrag (loader add "/trail0", true, "100", "324", "450", "324");
}
}
on (rollOut) {
drag = "0";
stopDrag();
}
on (press) {
power = "0";
tellTarget (loader add "/power") {
gotoAndPlay (2);
}
}
on (release, releaseOutside) {
if (punch == "0") {
scale = power * "0.18";
yMove = scale * "2.666";
xMove = (("275" - getProperty(loader add "/trail1", _x)) * "0.006") * scale;
tellTarget (loader add "/trail0") {
gotoAndStop (1);
};
tellTarget (loader add "/power/bar") {
gotoAndStop (1);
};
tellTarget (loader add "/power") {
gotoAndStop (1);
};
tellTarget (loader add "/sounds") {
gotoAndPlay (2);
};
count = "1";
punch = "1";
gotoAndPlay (57);
}
}
Symbol 53 MovieClip Frame 1
stop();
Symbol 53 MovieClip Frame 11
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
play();
Symbol 55 MovieClip Frame 3
if (../:power < "48") {
Set("../:power", ../:power + "4");
}
tellTarget ("bar") {
gotoAndStop(int(../../:power / "5") + "2");
};
prevFrame();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 25
gotoAndStop (1);
Symbol 64 Button
on (release) {
gotoAndPlay (51);
}
Symbol 75 MovieClip Frame 1
scoreTemp = "0";
incScore = ../:score / "25";
play();
Symbol 75 MovieClip Frame 2
play();
Symbol 75 MovieClip Frame 3
scoreTemp = int(scoreTemp + incScore);
if (scoreTemp < ../:score) {
prevFrame();
} else {
scoreTemp = ../:score;
nextFrame();
}
Symbol 75 MovieClip Frame 4
if ((../../:statusThreshold < "20000") and (../../:registered == "1")) {
Set("../../:agentStatusScore", ../../:agentStatusScore + scoreTemp);
if (../../:statusThreshold < ../../:agentStatusScore) {
if (../../:statusThreshold == "5000") {
Set("../../:statusThreshold", "15000");
Set("../../:agentStatus", "2");
} else {
Set("../../:statusThreshold", "20000");
Set("../../:agentStatus", "3");
}
Set("../../:tip", "GRRREAT WORK AGENT. YOU'VE NOW GAINED AGENT POWER " add ../../:agentStatus);
Set("../../:lineMax", "0");
Set("../../:comms", "1");
agentID = ../../:agentID;
statusScore = ../../:agentStatusScore;
loadVariables ((("scripts/agentstatus.asp?agentID=" add agentID) add "&statusScore=") add statusScore, "");
}
}
stop();