Frame 1
loader.bar._xscale = percentage;
percentage = (this.getBytesLoaded() / this.getBytesTotal()) * 100;
if (percentage == 100) {
gotoAndStop ("menu");
}
screenshotArr = new Array();
screenshotArr.push(["screen1.jpg", "In the ER PC game, there's never a dull moment. Diagnose and treat hundreds of patients with a variety of medical problems. Only the best and brightest interns will make the grade at County General Hospital."]);
screenshotArr.push(["screen2.jpg", "So many patients, so little time, in the ER PC game. Work with your colleagues to diagnose critical ailments before it's too late!"]);
screenshotArr.push(["screen3.jpg", "You never know who will walk through the doors of the ER, including this Samurai. Everyone must be nursed back to health in the ER PC game."]);
screenshotArr.push(["screen4.jpg", "Paging Dr. Carter! As the newest intern in the ER, you will occasionally need some help. Several of your favorite characters from the TV show are there to assist you."]);
screenshotArr.push(["screen5.jpg", "Better send this patient to the lab for further testing!"]);
screenshotArr.push(["screen6.jpg", "In the ER PC game, build your skill levels in six medical specialties: cardiology, pediatrics, orthopedics, neurology, surgery, and toxicology."]);
screenshotArr.push(["screen7.jpg", "In the ER PC game, explore the halls of Chicago's County General Hospital. Everything is there to ensure your success, including a fitness room, lounge, cafeteria, and more."]);
screenshotArr.push(["screen9.jpg", "In the ER PC game, patients will live or die. Their fate is in your hands!"]);
trace("hkkk" + screenshotArr[0]);
Frame 2
gotoAndPlay (1);
Frame 3
testButt.onRelease = function () {
getURL ("javascript: window.location.reload()");
};
stop();
buttPlay.onRelease = function () {
play();
};
buttInstructions.onRelease = function () {
instructions._visible = 100;
};
screenshot._visible = 0;
resetNurses();
resetPatients();
Frame 7
function resetNurses() {
clearInterval(track.nurses.nurse1.nurse.moveInterval);
clearInterval(track.nurses.nurse2.nurse.moveInterval);
clearInterval(track.nurses.nurse3.nurse.moveInterval);
clearInterval(track.nurses.nurse4.nurse.moveInterval);
clearInterval(track.nurses.nurse5.nurse.moveInterval);
clearInterval(track.nurses.nurse6.nurse.moveInterval);
clearInterval(track.nurses.nurse7.nurse.moveInterval);
clearInterval(track.nurses.nurse8.nurse.moveInterval);
track.nurses.nurse1.gotoAndPlay(1);
track.nurses.nurse2.gotoAndPlay(1);
track.nurses.nurse3.gotoAndPlay(1);
track.nurses.nurse4.gotoAndPlay(1);
track.nurses.nurse5.gotoAndPlay(1);
track.nurses.nurse6.gotoAndPlay(1);
track.nurses.nurse7.gotoAndPlay(1);
track.nurses.nurse8.gotoAndPlay(1);
}
function resetPatients() {
num = 0;
while (num <= _global.gameAssetLevel) {
clearInterval(eval ("track.patient" + num).moveInterval);
num++;
}
_global.gameAssetLevel = 0;
}
_global.locationNum = undefined;
_global.iconLevel = undefined;
_global.iconPos = undefined;
_global.patientTime = undefined;
_global.droppedOff = undefined;
_global.warningGiven = undefined;
_global.fastPatient = undefined;
_global.elapsedTime = undefined;
Frame 8
function two(x) {
return(((x > 9) ? "" : "0") + x);
}
function three(x) {
var _local1 = x;
return((((_local1 > 99) ? "" : "0") + ((_local1 > 9) ? "" : "0")) + _local1);
}
function displaytime(ms) {
var _local2 = Math.floor(ms / 1000);
ms = ms % 1000;
var _local1 = three(ms);
var _local3 = Math.floor(_local2 / 60);
_local2 = _local2 % 60;
_local1 = (two(_local2) + ":") + _local1;
var hr = Math.floor(_local3 / 60);
_local3 = _local3 % 60;
_local1 = (two(_local3) + ":") + _local1;
return(_local1);
}
track._xscale = 100;
track._yscale = 100;
clearInterval(track.nurses.nurse1.nurse.moveInterval);
track.nurses.nurse1.gotoAndPlay(1);
_global.score = 0;
scoreText.text = _global.score;
_global.trackReset_y = -800;
_global.trackReset_x = -1300;
_global.roundNumber = 1;
_global.gameAssetLevel = 0;
_global.patientTreatedNum = 0;
_global.iconLevel = 0;
num = 1;
while (num <= 6) {
eval ("track.room" + num)._visible = 0;
num++;
}
mbenneyTimer = function () {
this.reset();
};
mT = mbenneyTimer.prototype;
mT.reset = function () {
var _local1 = this;
_local1.oldTime = 0;
_local1.pause = true;
_local1.totalTime = 0;
};
mT.stop = function () {
var _local1 = this;
if (!_local1.pause) {
_local1.pause = true;
_local1.totalTime = _local1.totalTime + (getTimer() - _local1.oldTime);
}
};
mT.start = function () {
var _local1 = this;
if (_local1.pause) {
_local1.pause = false;
_local1.oldTime = getTimer();
}
};
mT.getMili = function () {
var _local2 = this;
var _local1 = _local2.totalTime;
if (!_local2.pause) {
_local1 = _local1 + (getTimer() - _local2.oldTime);
}
return(_local1);
};
mT.getSecs = function () {
var _local2 = this;
var _local1 = _local2.totalTime / 1000;
if (!_local2.pause) {
_local1 = _local1 + ((getTimer() - _local2.oldTime) / 1000);
}
return(Math.round(_local1));
};
mT.getMins = function () {
var _local2 = this;
var _local1 = _local2.totalTime / 1000;
if (!_local2.pause) {
_local1 = _local1 + (((getTimer() - _local2.oldTime) / 1000) / 60);
}
return(Math.round(_local1));
};
mT.getCount = function (secs) {
var _local2 = this;
var _local1 = _local2.totalTime;
if (!_local2.pause) {
_local1 = _local1 + ((getTimer() - _local2.oldTime) / 1000);
}
var _local3 = secs - _local1;
return(Math.round(_local3));
};
_root.totalrace = displaytime(_root.racetimer);
_root.bestlap = displaytime(_root.bestlaptime);
_global.patientLocationArray = new Array();
_global.patientLocationArray.push([1431, 1117]);
_global.patientLocationArray.push([1573, 1123]);
_global.patientLocationArray.push([1423, 1038]);
_global.patientLocationArray.push([1525, 1018]);
_global.patientLocationArray.push([1489, 938]);
_global.patientLocationArray.push([1572, 958]);
_global.patientLocationArray.push([1429, 970]);
_global.patientLocationArray.push([1401, 906]);
_global.patientLocationArray.push([1576, 886]);
_global.patientLocationArray.push([1463, 992]);
_global.patientLocationArray.push([1529, 1101]);
_global.patientLocationArray.push([1568, 1060]);
_global.patientLocationArray.push([1566, 1100]);
_global.patientLocationArray.push([1635, 1142]);
_global.patientLocationArray.push([1688, 1128]);
_global.filledLocationArray = new Array();
menuButt1.onRelease = function () {
getURL ("javascript: window.location.reload()");
};
menuButt2.onRelease = function () {
getURL ("javascript: window.location.reload()");
};
menuButt3.onRelease = function () {
music.gotoAndStop(1);
resetNurses();
resetPatients();
gotoAndStop ("endGame");
};
Frame 9
stop();
_root.track._x = _global.trackReset_x;
_root.track._y = _global.trackReset_y;
Instance of Symbol 224 MovieClip "player" in Frame 9
onClipEvent (load) {
this._y = Stage.height / 1.9;
this._x = Stage.width / 2;
angle = 1.5609317684435;
_rotation = ((angle * 180) / Math.PI);
}
Frame 10
stop();
levelText.text = "LEVEL " + _global.roundNumber;
Instance of Symbol 224 MovieClip "player" in Frame 10
onClipEvent (load) {
function getPos(clip) {
var _local1 = {x:0, y:0};
clip.localToGlobal(_local1);
return(_local1);
}
function two(x) {
return(((x > 9) ? "" : "0") + x);
}
function three(x) {
var _local1 = x;
return((((_local1 > 99) ? "" : "0") + ((_local1 > 9) ? "" : "0")) + _local1);
}
function displaytime(ms) {
var _local2 = Math.floor(ms / 1000);
ms = ms % 1000;
var _local1 = three(ms);
var _local3 = Math.floor(_local2 / 60);
_local2 = _local2 % 60;
_local1 = (two(_local2) + ":") + _local1;
var hr = Math.floor(_local3 / 60);
_local3 = _local3 % 60;
_local1 = (two(_local3) + ":") + _local1;
return(_local1);
}
function skid(Handbrakey) {
var _local2 = this;
var _local3 = _root.track.attachMovie("skidmark", "skidleft" + skids, 1000000 + skids);
var _local1 = 0;
while (_local1 < _local2.displaywheels) {
wheelsPos[_local1] = getPos(_local2["w" + _local1]);
if (handbrakey) {
if (_global.skidSounding != true) {
_global.skidSounding = true;
_parent.skidSound.gotoAndPlay(2);
}
_local3.lineStyle(4, 0, 70);
_local3.moveto(_local2.wheelsPos[_local1].x - track_x, _local2.wheelsPos[_local1].y - track_y);
_local3.lineTo(_local2.lastpos[_local1].x, _local2.lastpos[_local1].y);
} else {
_local3.lineStyle(3, 0, 50);
_local3.moveto(_local2.wheelsPos[_local1].x - track_x, _local2.wheelsPos[_local1].y - track_y);
_local3.lineTo(_local2.lastpos[_local1].x, _local2.lastpos[_local1].y);
}
lastpos[_local1].x = _local2.wheelsPos[_local1].x - track_x;
lastpos[_local1].y = _local2.wheelsPos[_local1].y - track_y;
skids++;
_local1++;
}
return(true);
}
function setLastpos() {
var _local2 = this;
var _local1 = 0;
while (_local1 < _local2.displaywheels) {
_local2.wheelsPos[_local1] = getPos(_local2["w" + _local1]);
lastpos[_local1].x = _local2.wheelsPos[_local1].x - track_x;
lastpos[_local1].y = _local2.wheelsPos[_local1].y - track_y;
_local1++;
}
}
function adjust(v, threshold, maximum) {
vx = 0;
if (v <= threshold) {
vx = (v / threshold) * 1;
} else {
vx = 1;
}
return(vx);
}
function dropOff(conditionNumber) {
if (this.hitTest(eval ("_root.track.room" + conditionNumber))) {
_root.map.room1.gotoAndStop(1);
_root.map.room2.gotoAndStop(1);
_root.map.room3.gotoAndStop(1);
_root.map.room4.gotoAndStop(1);
_root.map.room5.gotoAndStop(1);
_root.map.room6.gotoAndStop(1);
tingle_sound.start();
if (_global.iconLevel <= 8) {
_root.counter.counter_graphic.gotoAndStop(1);
}
_global.droppedOff = true;
this.gotoAndStop(1);
occupied = false;
iconNum = _global.iconLevel - 1;
_global.iconLevel--;
eval ("_root.counter.icon_patient" + iconNum).unloadMovie();
_global.iconPos = _global.iconPos - 25;
_parent.game.changeScore();
if (iconNum == 0) {
_root.game.changeScore("bonus");
}
}
}
damageAmount = 6;
track_y = _global.trackReset_y;
track_x = _global.trackReset_x;
trackStartY = -1000;
trackStartX = -1300;
mapStartY = 97;
mapStartX = 121;
_root.map.dot._x = 121;
_root.map.dot._y = 93;
crash_sound = new Sound();
crash_sound.attachSound("crash");
tingle_sound = new Sound();
tingle_sound.attachSound("tingle");
accel = 0.2;
steer = 0.8;
steer_normal = 0.1;
steer_handbrake = 0.099;
steer_threshold = 4;
MINspd = -4;
MAXspd = 10;
MAXskiddisplay = 4;
MAXturnSpd = 1;
MaxTurnSkid = 18;
deccel = 0.92;
handbrake = 0.93;
handbrake_traction = 20;
drift = 0.98;
speed = 0;
surface = 3;
traction = 1;
traction_max = 1;
vector = [0, 0];
bounceBack = 0.6;
laptimes = new Array();
laps = 3;
var i = 1;
while (i <= laps) {
laptimes[i] = 0;
i++;
}
checkpoints = new Array();
checks = 4;
var i = 0;
while (i <= checks) {
checkpoints[i] = false;
i++;
}
lap = 0;
collide = false;
angle = 1.5609317684435;
_rotation = ((angle * 180) / Math.PI);
myTimer = new _root.mbenneyTimer();
displaywheels = 2;
wheelsPos = new Array();
lastPos = new Array();
var i = 0;
while (i < displaywheels) {
wheelsPos[i] = getPos(this["w" + i]);
lastPos[i] = wheelspos[i];
i++;
}
skidding = false;
turnskidding = false;
skids = 1;
myTimer.start();
carPosY = Stage.height / 1.9;
carPosX = Stage.width / 2;
this._x = carPosX;
this._y = carPosY;
_root.createEmptyMovieClip("iconHolder", 0);
_root.iconHolder._x = carPosX - 20;
_root.iconHolder._y = carPosY - 30;
}
onClipEvent (enterFrame) {
if (_global.gamePaused == true) {
speed = 0;
}
walkingSpeed = Math.floor(speed);
if (speed >= 8) {
this.movement.gotoAndStop("fast");
} else if (speed >= 4) {
this.movement.gotoAndStop("medium");
} else if ((speed > 0.5) || (speed < 0)) {
this.movement.gotoAndStop("slow");
} else {
this.movement.gotoAndStop("stand");
}
_rotation = ((angle * 180) / Math.PI);
if (_global.gamePaused != true) {
_root.track._x = track_x;
_root.track._y = track_y;
}
yChange = trackStartY - _root.track._y;
xChange = trackStartX - _root.track._x;
_root.map.dot._y = mapStartY + (yChange / 12.82);
_root.map.dot._x = mapStartX + (xChange / 12.85);
if (_global.gamePaused != true) {
UD = Key.isDown(90) - Key.isDown(67);
}
LR = Key.isDown(39) - Key.isDown(37);
HAND = Key.isDown(88);
if (LR) {
angle = angle + ((LR * steer) * adjust(Math.Abs(speed), steer_threshold, MAXSpd));
if (speed > maxturnskid) {
if (!turnskidding) {
setLastpos();
}
turnskidding = skid(HAND);
} else {
turnskidding = false;
}
} else {
turnskidding = false;
}
if (!UD) {
speed = speed * drift;
} else if (UD & (!HAND)) {
speed = Math.min(Math.max(speed + (UD * accel), MINspd), MAXspd);
}
if (Math.abs(speed) < (accel / 2)) {
speed = 0;
}
if (HAND) {
this.movement.gotoAndStop("stand");
speed = speed * handbrake;
if (speed > MAXskiddisplay) {
steer = steer_handbrake;
if (!skidding) {
setLastpos();
}
skidding = skid(HAND);
}
traction = handbrake_traction / surface;
} else {
skidding = false;
traction = Math.max(traction_max, Math.abs((speed - MAXturnSpd) / surface));
steer = steer_normal;
}
if (speed < 0) {
traction = 1;
}
var frontpos = new Array();
var i = 0;
while (i < this.displaywheels) {
this.frontpos[i] = getPos(this["f" + i]);
i++;
}
if (_root.track.crunchers.hittest(frontpos[0].x, frontpos[0].y, true) & (!collide)) {
if (speed > 3) {
trace("this is the round number " + _global.roundNumber);
trace("this is the damage " + damageAmount);
damageAmount = damageAmount - 1;
if ((damageAmount - _global.roundNumber) <= 0) {
_root.damageScale.nextFrame();
damageAmount = 6;
}
crash_sound.start();
}
speed = ((-speed) * bounceback) - 1;
vector[0] = -vector[0];
vector[1] = -vector[1];
collide = true;
} else if (_root.track.crunchers.hittest(frontpos[1].x, frontpos[1].y, true) & (!collide)) {
if (speed > 3) {
trace("this is the damage " + damageAmount);
damageAmount = damageAmount - 1;
if ((damageAmount - _global.roundNumber) <= 0) {
_root.damageScale.nextFrame();
damageAmount = 6;
}
crash_sound.start();
}
speed = ((-speed) * bounceback) - 1;
vector[0] = -vector[0];
vector[1] = -vector[1];
collide = true;
} else {
collide = false;
}
var backpos = new Array();
var i = 0;
while (i < this.displaywheels) {
this.backpos[i] = getPos(this["w" + i]);
i++;
}
if ((_root.track.crunchers.hittest(backpos[0].x, backpos[0].y, true) & (!collide)) && (speed < 0)) {
if (speed > 3) {
trace("this is the damage " + damageAmount);
damageAmount = damageAmount - 1;
if ((damageAmount - _global.roundNumber) <= 0) {
_root.damageScale.nextFrame();
damageAmount = 6;
}
}
speed = ((-speed) * bounceback) + 1;
vector[0] = -vector[0];
vector[1] = -vector[1];
collide = true;
} else if ((_root.track.crunchers.hittest(backpos[1].x, backpos[1].y, true) & (!collide)) && (speed < 0)) {
if (speed > 3) {
damageAmount = damageAmount - 1;
if ((damageAmount - _global.roundNumber) <= 0) {
_root.damageScale.nextFrame();
damageAmount = 6;
}
}
speed = ((-speed) * bounceback) + 1;
vector[0] = -vector[0];
vector[1] = -vector[1];
collide = true;
} else {
collide = false;
}
track_x = track_x + ((vector[0] = vector[0] + (((Math.cos(angle) * speed) - vector[0]) / traction)));
track_y = track_y + ((vector[1] = vector[1] + (((Math.sin(angle) * speed) - vector[1]) / traction)));
_root.timer = displaytime(myTimer.getMili());
_root.seconds = myTimer.getSecs();
_root.minutes = myTimer.getMins();
_root.speedHand._rotation = Math.max(-11, Math.Abs(speed * 8.5));
if (occupied == true) {
dropOff(conditionNumber);
}
}
Instance of Symbol 259 MovieClip "game" in Frame 10
onClipEvent (load) {
function pauseGame() {
var _local1 = _root;
_global.gamePaused = true;
_local1.screenHolder.attachMovie("screenshot", "screenshot", 2);
screenNum = _global.roundNumber - 2;
if (screenNum > 9) {
screenNum = 9;
}
trace("this is the scrren num " + screenNum);
_local1.screenHolder.screenshot.imageLoader.holder.loadMovie(_parent.screenshotArr[screenNum][0]);
_local1.screenHolder.screenshot.imageLoader.caption.text = _parent.screenshotArr[screenNum][1];
trace("pause");
}
function continueGame() {
trace("cont");
_parent.screenholder.screenshot.unloadMovie();
_global.gamePaused = false;
_parent.roundMC.play();
}
function gameOver() {
var _local1 = _root;
_local1.gotoAndStop("endGame");
_local1.resetNurses();
_local1.resetPatients();
}
function voiceOver(type) {
var _local1 = type;
voice = new Sound();
if ((_local1 == "warning") && (_global.warningGiven != true)) {
voice.attachSound("warning");
voice.start();
_global.warningGiven = true;
} else if (_local1 == "goodWork1") {
voice.attachSound("goodWork1");
voice.start();
} else if (_local1 == "goodWork2") {
voice.attachSound("goodWork2");
voice.start();
} else if (_local1 == "goodWork3") {
voice.attachSound("goodWork3");
voice.start();
} else if (_local1 == "goodWork4") {
voice.attachSound("goodWork4");
voice.start();
} else if (_local1 == "letsGo") {
voice.attachSound("letsGo");
voice.start();
}
}
function changeScore(typeOfPoints) {
var _local1 = _global;
var _local2 = _root;
if (typeOfPoints == "penalty") {
_local1.penaltyAmount = 20 * _local1.roundNumber;
if (_local1.penaltyAmount > 60) {
_local1.penaltyAmount = 60;
}
_local2.penalty_holder.attachMovie("points_penalty", "points_penalty", 1);
_local1.score = Number(_local1.score) - _local1.penaltyAmount;
if (_local1.score < 0) {
_local1.score = 0;
}
_local2.scoreText.text = _local1.score;
} else if (typeOfPoints == "bonus") {
_local2.counter.attachMovie("points_bonus", "points_bonus", 1);
_local1.bonusAdd = _local1.roundNumber * 25;
_local1.score = Number(_local1.score) + _local1.bonusAdd;
_local2.scoreText.text = _local1.score;
} else {
_local1.pointsAdd = _local1.roundNumber * 50;
_local1.score = Number(_local1.score) + _local1.pointsAdd;
_local2.scoreText.text = _local1.score;
_local2.iconHolder.attachMovie("points", "points", 1);
_local1.patientTreatedNum++;
targetNum = 5;
if (_local1.patientTreatedNum == targetNum) {
_local1.roundNumber++;
_parent.roundMC.gotoAndPlay(1);
_parent.levelText.text = "LEVEL " + _local1.roundNumber;
_local1.patientTreatedNum = 0;
_local2.track.nurses.nextFrame();
if (_local1.roundNumber == 2) {
voiceOver("goodWork1");
} else if (_local1.roundNumber == 3) {
voiceOver("goodWork2");
} else if (_local1.roundNumber == 4) {
voiceOver("goodWork3");
} else if (_local1.roundNumber == 5) {
voiceOver("goodWork4");
}
}
}
}
function populate(whatTime) {
if (_global.droppedOff == true) {
_global.fastPatient = true;
} else {
_global.fastPatient = false;
}
if (_global.gamePaused != true) {
_root.track.attachMovie("patient", "patient" + _global.gameAssetLevel, _global.gameAssetLevel);
}
eval ("_root.track.patient" + _global.gameAssetLevel)._y = 1308;
eval ("_root.track.patient" + _global.gameAssetLevel)._x = 1535;
populated = true;
_global.gameAssetLevel++;
_global.locationNum = _global.locationNum + 1;
if (_global.locationNum >= 11) {
_global.locationNum = 0;
}
if ((_global.locationNum == 0) && (_global.filledLocationArray[0] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 1) && (_global.filledLocationArray[1] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 2) && (_global.filledLocationArray[2] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 3) && (_global.filledLocationArray[3] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 4) && (_global.filledLocationArray[4] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 5) && (_global.filledLocationArray[5] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 6) && (_global.filledLocationArray[6] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 7) && (_global.filledLocationArray[7] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 8) && (_global.filledLocationArray[8] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 9) && (_global.filledLocationArray[9] == true)) {
_global.locationNum++;
}
if ((_global.locationNum == 10) && (_global.filledLocationArray[10] == true)) {
_global.locationNum++;
}
}
voiceOver("letsGo");
_global.locationNum = -1;
}
onClipEvent (enterFrame) {
trace(activateNum);
extraTime = Math.round(_global.patientTime + (2 / _global.roundNumber));
_global.elapsedTime = (_root.seconds - _root.pickUpTime) + 1;
if (_root.seconds <= 8) {
activateNum = _root.seconds % 3;
} else if (_global.patientTime == undefined) {
activateNum = _root.seconds % 30;
} else if ((_global.fastPatient == true) && (_global.droppedOff == true)) {
activateNum = _root.seconds % (4 + extraTime);
} else {
activateNum = _global.elapsedTime % (_global.patientTime + extraTime);
}
if ((activateNum == 0) && (populated != true)) {
populate();
} else if (activateNum != 0) {
populated = false;
}
}
Frame 39
function loadEntries(act, increment, goWhere) {
NumLow = 0;
myEntries = new LoadVars();
myEntries.ref = this;
myEntries.load((("http://www.legacyinteractive.com/test/highscores2.php?action=read&r=" + random(999)) + "&NumLow=") + NumLow);
myEntries.onLoad = function (success) {
if (success) {
trace("success = " + this.score1);
_global.highscoreArray = new Array();
num = 0;
while (num <= 9) {
_global.highscoreArray.push([eval ("this.name" + num), eval ("this.city" + num), eval ("this.state" + num), eval ("this.score" + num)]);
num++;
}
trace(_global.highscoreArray[0][0]);
trace(_global.highscoreArray[1][0]);
trace(_global.highscoreArray[2][0]);
trace(this.num0fRows);
lowestScore = _global.highscoreArray[9][3];
entries.text = this.name1;
totalEntries.text = this.totalEntries;
num = Number(NumLow);
var totalEntries = Number(this.totalEntries);
var total = (num + increment);
if (goWhere == "check") {
checkScore();
} else {
topTen.gotoAndPlay("ad");
}
}
};
}
function checkScore() {
var _local1 = _global;
trace("this is the lowest score " + Number(lowestScore));
trace("this is the global score " + _local1.score);
if (_local1.score > Number(lowestScore)) {
trace("ok");
gotoAndStop ("highScore");
voice = new Sound();
voice.attachSound("goodGame");
voice.start();
} else {
end.gotoAndStop("displayScore");
if (_local1.roundNumber > 4) {
voice = new Sound();
voice.attachSound("goodGame");
voice.start();
} else {
voice = new Sound();
voice.attachSound("badGame");
voice.start();
}
}
}
_root.music.gotoAndStop(1);
resetNurses();
resetPatients();
loadEntries("Default", 10, "check");
stop();
Frame 49
menu.onRelease = function () {
getURL ("javascript: window.location.reload()");
};
Symbol 16 MovieClip [skidmark] Frame 2
Symbol 16 MovieClip [skidmark] Frame 71
this.removemovieclip();
Symbol 23 MovieClip [patient] Frame 1
function diagnosis() {
conditionNumber = randRange(1, 6);
conditionNumberText.text = conditionNumber;
}
function randRange(min, max) {
randomNum = Math.round(Math.random() * (max - min)) + min;
return(randomNum);
}
function pickUp() {
var _local1 = _root;
var _local2 = _global;
clearInterval(moveInterval);
bell_sound.start();
_local1.pickUpTime = _local1.seconds;
_local2.filledLocationArray[locationNum] = false;
_local1.player.gotoAndStop(2);
_local1.player.occupied = true;
_local1.player.conditionNumber = conditionNumber;
_local1.iconHolder.attachMovie("icon" + conditionNumber, "icon", 1);
this.unloadMovie();
_local1.map.room1.gotoAndStop(1);
_local1.map.room2.gotoAndStop(1);
_local1.map.room3.gotoAndStop(1);
_local1.map.room4.gotoAndStop(1);
_local1.map.room5.gotoAndStop(1);
_local1.map.room6.gotoAndStop(1);
if (conditionNumber == 1) {
_local2.patientTime = 11;
_local1.map.room1.gotoAndPlay(2);
} else if (conditionNumber == 2) {
_local2.patientTime = 9;
_local1.map.room2.gotoAndPlay(2);
} else if (conditionNumber == 3) {
_local2.patientTime = 11;
_local1.map.room3.gotoAndPlay(2);
} else if (conditionNumber == 4) {
_local2.patientTime = 7;
_local1.map.room4.gotoAndPlay(2);
} else if (conditionNumber == 5) {
_local2.patientTime = 4;
_local1.map.room5.gotoAndPlay(2);
} else if (conditionNumber == 6) {
_local2.patientTime = 10;
_local1.map.room6.gotoAndPlay(2);
}
_local2.droppedOff = false;
}
function movePlayer(_xPos, _yPos, _start) {
xPos = _xPos;
yPos = _yPos;
clearInterval(moveInterval);
if (_start == true) {
moveInterval = setInterval(gotoPos, 10, this, xPos, yPos, true);
} else {
moveInterval = setInterval(gotoPos, 10, this, xPos, yPos);
}
}
function gotoPos(_mc, _xPos, _yPos, _start) {
var _local1 = _mc;
var _local2 = _global;
var _local3 = _yPos;
currentY1 = Math.floor(_local1._y);
currentY2 = Math.ceil(_local1._y);
currentX1 = Math.floor(_local1._x);
currentX1 = Math.ceil(_local1._x);
moving(_local1, _xPos, _local3);
if ((currentY1 == _local3) || (currentY2 == _local3)) {
if ((currentX1 == _xPos) || (currentX2 == _xPos)) {
clearInterval(moveInterval);
if (_start == true) {
movePlayer(_local2.patientLocationArray[locationNum][0], _local2.patientLocationArray[locationNum][1]);
_local2.filledLocationArray[locationNum] = true;
} else {
gotoAndStop ("stand");
}
}
}
}
function moving(_mc, _xPos, _yPos) {
var _local1 = _mc;
var _local2 = this;
var _local3 = _xPos;
dir = checkDirection(_local3, _yPos);
switch (dir) {
case "right up" :
if (_local2._rotation < 45) {
_local2._rotation = _local2._rotation + 2;
}
if (_local1._x < _local3) {
_local1._x = _local1._x + 1;
}
if (_local1._y > _yPos) {
_local1._y = _local1._y - 1;
}
return;
case "left up" :
if (_local2._rotation > -45) {
_local2._rotation = _local2._rotation - 2;
}
if (_local1._x > _local3) {
_local1._x = _local1._x - 1;
}
if ((_local1._y > _yPos) && (_local1._y >= 1)) {
_local1._y = _local1._y - 1;
}
return;
case "up" :
if (_local2._rotation < 0) {
_local2._rotation = _local2._rotation + 2;
}
if (_local2._rotation > 0) {
_local2._rotation = _local2._rotation - 2;
}
if ((_local1._y > _yPos) && (_local1._y >= 1)) {
_local1._y = _local1._y - 1;
}
return;
case "right" :
if (_local2._rotation < 90) {
_local2._rotation = _local2._rotation + 2;
}
if (_local1._x < _local3) {
_local1._x = _local1._x + 1;
}
return;
case "left" :
if (_local2._rotation > -90) {
_local2._rotation = _local2._rotation - 2;
}
if (_local1._x <= _local3) {
break;
}
_local1._x = _local1._x - 1;
}
}
function checkDirection(_xPos, _yPos) {
var _local1 = this;
var _local2 = _xPos;
var _local3 = _yPos;
if ((_local2 < _local1._x) && (_local3 < _local1._y)) {
dir = "left up";
} else if ((_local2 > _local1._x) && (_local3 < _local1._y)) {
dir = "right up";
} else if (_local3 < _local1._y) {
dir = "up";
} else if (_local2 < _local1._x) {
dir = "left";
} else if (_local2 > _local1._x) {
dir = "right";
}
return(dir);
}
locationNum = _global.locationNum;
clearInterval(moveInterval);
this.createEmptyMovieClip("action_mc", 1);
bell_sound = new Sound();
bell_sound.attachSound("bell");
action_mc.onEnterFrame = function () {
if (this._parent.hitTest(_root.player) && (_root.player.occupied != true)) {
pickup();
}
};
_root.counter.attachMovie("icon_patient", "icon_patient" + _global.iconLevel, _global.iconLevel);
eval ("_root.counter.icon_patient" + _global.iconLevel)._x = eval ("_root.counter.icon_patient" + _global.iconLevel)._x + _global.iconPos;
_global.iconPos = _global.iconPos + 25;
_global.iconLevel++;
if (_global.iconLevel >= 8) {
_root.counter.counter_graphic.gotoAndPlay(2);
_root.game.voiceOver("warning");
}
if (_global.iconLevel == 10) {
_root.game.gameOver();
_root.counter.counter_graphic.gotoAndStop(1);
}
diagnosis();
movePlayer(this._x, 1184, true);
Symbol 23 MovieClip [patient] Frame 17
gotoAndPlay (2);
Symbol 29 MovieClip [icon1] Frame 66
stop();
Symbol 33 MovieClip [icon2] Frame 66
stop();
Symbol 37 MovieClip [icon3] Frame 66
stop();
Symbol 41 MovieClip [icon4] Frame 66
stop();
Symbol 45 MovieClip [icon5] Frame 66
stop();
Symbol 49 MovieClip [icon6] Frame 66
stop();
Symbol 52 MovieClip Frame 1
txt.text = "-" + _global.penaltyAmount;
Symbol 53 MovieClip [points_penalty] Frame 31
stop();
Symbol 56 MovieClip [points_bonus] Frame 50
stop();
Symbol 58 MovieClip Frame 1
pointsText.text = "+" + _global.pointsAdd;
Symbol 59 MovieClip [points] Frame 31
stop();
Symbol 70 MovieClip Frame 1
caption._visible = 0;
loading.onEnterFrame = function () {
loading.percent.text = Math.round((holder.getBytesLoaded() / holder.getBytesTotal()) * 100) + "%";
trace(holder.getBytesTotal());
if ((loading.percent.text == "100%") && (holder.getBytesLoaded() > 20)) {
this.unloadMovie();
caption._visible = 100;
}
};
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip [screenshot] Frame 1
next.onRelease = function () {
_parent._parent.game.continueGame();
};
bg.useHandCursor = false;
Symbol 82 MovieClip Frame 1
this.bar._xscale = 0;
Symbol 119 MovieClip Frame 1
menu.onRelease = function () {
this._parent._visible = 0;
};
shield.useHandCursor = false;
this._visible = 0;
Symbol 128 MovieClip Frame 1
popUp._visible = 0;
legalButt.onRollOver = function () {
popUp._visible = 100;
};
legalButt.onRollOut = (legalButt.onDragOut = function () {
popUp._visible = 0;
});
Symbol 149 MovieClip Frame 1
function movePlayer(_finalPos, _mc, _dir) {
finalPos = _finalPos;
mc = _mc;
dir = _dir;
clearInterval(moveInterval);
moveInterval = setInterval(gotoPos, 10, mc, dir, finalPos);
}
function gotoPos(_mc, _dir, finalPos) {
var _local1 = _mc;
var _local2 = finalPos;
if (hitTest(_root.player) && (_global.gamePaused != true)) {
gotoAndPlay ("fall");
clearInterval(moveInterval);
}
switch (_dir) {
case "right" :
_local1._rotation = 90;
if (_local1._x < _local2) {
_local1._x = _local1._x + 1;
} else {
clearInterval(moveInterval);
_local1._parent.nextFrame();
}
return;
case "left" :
_local1._rotation = -90;
if (_local1._x > _local2) {
_local1._x = _local1._x - 1;
} else {
clearInterval(moveInterval);
_local1._parent.nextFrame();
}
return;
case "down" :
_local1._rotation = 180;
if (_local1._y < _local2) {
_local1._y = _local1._y + 1;
} else {
clearInterval(moveInterval);
_local1._parent.nextFrame();
}
return;
case "up" :
_local1._rotation = 0;
if (_local1._y > _local2) {
_local1._y = _local1._y - 1;
} else {
clearInterval(moveInterval);
_local1._parent.nextFrame();
}
}
}
floomp_sound = new Sound();
floomp_sound.attachSound("floomp");
clearInterval(moveInterval);
Symbol 149 MovieClip Frame 18
gotoAndPlay (2);
penaltized = false;
Symbol 149 MovieClip Frame 19
if (!penaltized) {
if (_global.roundNumber != 1) {
_root.game.changeScore("penalty");
}
floomp_sound.start();
_root.player.speed = -1;
penaltized = true;
}
Symbol 149 MovieClip Frame 78
if (hitTest(_root.player)) {
gotoAndPlay ("fall");
clearInterval(moveInterval);
} else {
movePlayer(_parent.destination, _parent.moveMC, _parent.dir);
gotoAndPlay (2);
}
Symbol 150 MovieClip Frame 1
nurse._x = 44;
nurse._y = -24;
moveMC = this.nurse;
Symbol 150 MovieClip Frame 2
stop();
destination = 933;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 150 MovieClip Frame 3
destination = 355;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 150 MovieClip Frame 4
destination = 226;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 150 MovieClip Frame 5
destination = 0;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 150 MovieClip Frame 6
gotoAndStop (2);
Symbol 151 MovieClip Frame 1
nurse._x = 195;
nurse._y = 316;
moveMC = this.nurse;
Symbol 151 MovieClip Frame 2
stop();
destination = 1330;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 151 MovieClip Frame 3
destination = -92;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 151 MovieClip Frame 4
destination = 792;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 151 MovieClip Frame 5
destination = -180;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 151 MovieClip Frame 6
destination = 468;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 151 MovieClip Frame 7
destination = 195;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 151 MovieClip Frame 8
gotoAndStop (2);
Symbol 152 MovieClip Frame 1
nurse._x = 208;
nurse._y = 1330;
moveMC = this.nurse;
Symbol 152 MovieClip Frame 2
stop();
destination = -230;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 152 MovieClip Frame 3
destination = 945;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 152 MovieClip Frame 4
destination = 88;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 152 MovieClip Frame 5
destination = 1310;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 152 MovieClip Frame 6
gotoAndStop (2);
Symbol 153 MovieClip Frame 1
nurse._x = 88;
nurse._y = 1309;
moveMC = this.nurse;
Symbol 153 MovieClip Frame 2
stop();
destination = 1540;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 153 MovieClip Frame 3
destination = 1249;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 153 MovieClip Frame 4
destination = 88;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 153 MovieClip Frame 5
destination = 1309;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 153 MovieClip Frame 6
gotoAndStop (2);
Symbol 154 MovieClip Frame 1
nurse._x = 1540;
nurse._y = 1250;
moveMC = this.nurse;
Symbol 154 MovieClip Frame 2
stop();
destination = 2348;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 154 MovieClip Frame 3
destination = 790;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 154 MovieClip Frame 4
destination = 1588;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 154 MovieClip Frame 5
destination = 1250;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 154 MovieClip Frame 6
gotoAndStop (2);
Symbol 155 MovieClip Frame 1
nurse._x = 1588;
nurse._y = 1249;
moveMC = this.nurse;
Symbol 155 MovieClip Frame 2
stop();
destination = 2432;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 3
destination = 1089;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 4
destination = 2784;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 5
destination = 1329;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 6
destination = 2344;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 7
destination = 1261;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 8
destination = 1524;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 155 MovieClip Frame 9
gotoAndStop (2);
Symbol 156 MovieClip Frame 1
nurse._x = 1524;
nurse._y = 1261;
moveMC = this.nurse;
Symbol 156 MovieClip Frame 2
stop();
destination = 2444;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 156 MovieClip Frame 3
stop();
destination = 985;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 156 MovieClip Frame 4
stop();
destination = 1812;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 156 MovieClip Frame 5
stop();
destination = 1261;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 156 MovieClip Frame 6
stop();
destination = 1524;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 156 MovieClip Frame 7
gotoAndStop (2);
Symbol 157 MovieClip Frame 1
nurse._x = 1524;
nurse._y = 1261;
moveMC = this.nurse;
Symbol 157 MovieClip Frame 2
stop();
destination = 673;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 3
stop();
destination = 1444;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 4
stop();
destination = 353;
dir = "up";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 5
stop();
destination = 1364;
dir = "left";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 6
stop();
destination = 749;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 7
stop();
destination = 1468;
dir = "right";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 8
stop();
destination = 1269;
dir = "down";
nurse.movePlayer(destination, moveMC, dir);
Symbol 157 MovieClip Frame 9
gotoAndStop (2);
Symbol 158 MovieClip Frame 1
stop();
Instance of Symbol 150 MovieClip "nurse1" in Symbol 158 MovieClip Frame 1
/* no clip actions */
Symbol 159 MovieClip Frame 1
this.crunchers._visible = false;
this.check0._visible = false;
this.check1._visible = false;
this.check2._visible = false;
this.check3._visible = false;
this.check4._visible = false;
this.track._visible = false;
this.obstacle1._visible = false;
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 41
gotoAndPlay (2);
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 41
gotoAndPlay (2);
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 41
gotoAndPlay (2);
Symbol 170 MovieClip Frame 1
stop();
Symbol 170 MovieClip Frame 41
gotoAndPlay (2);
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 41
gotoAndPlay (2);
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 41
gotoAndPlay (2);
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 61
gotoAndPlay (2);
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 3
voice = new Sound();
voice.attachSound("rusure");
voice.start();
Symbol 199 MovieClip Frame 11
glow.gotoAndPlay(2);
Symbol 199 MovieClip Frame 13
_root.game.gameOver();
glow.gotoAndStop(1);
Symbol 204 MovieClip Frame 1
stop();
Symbol 209 MovieClip Frame 1
Symbol 209 MovieClip Frame 19
gotoAndPlay (1);
Symbol 210 MovieClip Frame 1
Symbol 210 MovieClip Frame 13
gotoAndPlay (1);
Symbol 211 MovieClip Frame 1
Symbol 211 MovieClip Frame 7
gotoAndPlay (1);
Symbol 212 MovieClip Frame 1
stop();
Symbol 215 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
fscommand ("allowscale", "false");
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 41
gotoAndPlay (2);
Symbol 240 MovieClip Frame 70
_parent.play();
Symbol 240 MovieClip Frame 90
stop();
Symbol 261 MovieClip Frame 1
roundText.text = "Level " + _global.roundNumber;
Symbol 262 MovieClip Frame 50
if (_global.roundNumber > 1) {
stop();
_parent.game.pauseGame();
}
Symbol 262 MovieClip Frame 102
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 26
_global.skidSounding = false;
Symbol 267 MovieClip Frame 5
stop();
Symbol 271 MovieClip Frame 1
stop();
_parent.music.gotoAndStop(2);
bg.onRelease = function () {
nextFrame();
};
Symbol 271 MovieClip Frame 2
_parent.music.gotoAndStop(1);
bg.onRelease = function () {
prevFrame();
};
Symbol 279 MovieClip Frame 1
if (this.counter == 20) {
gotoAndPlay ("failed");
}
Symbol 279 MovieClip Frame 40
this.counter++;
gotoAndPlay (1);
Symbol 279 MovieClip Frame 100
_parent.gotoAndStop("displayScore");
Symbol 285 MovieClip Frame 1
stop();
retrieving.counter = 0;
Symbol 285 MovieClip Frame 5
score.text = _global.score;
replay.onRelease = function () {
getURL ("javascript: window.location.reload()");
};
highscore.onRelease = function () {
_root.gotoAndStop("highScore");
};
Symbol 298 MovieClip Frame 1
stop();
Symbol 298 MovieClip Frame 60
stop();
Symbol 305 MovieClip Frame 1
this._visible = 0;
bg.useHandCursor = false;
stop();
Symbol 305 MovieClip Frame 2
if (this.counter == 20) {
gotoAndPlay ("failed");
}
Symbol 305 MovieClip Frame 41
this.counter++;
gotoAndPlay (2);
Symbol 305 MovieClip Frame 100
_parent.gotoAndStop("list");
Symbol 346 MovieClip Frame 1
stop();
if (_global.score < Number(_parent.lowestScore)) {
gotoAndStop ("list");
}
Instance of Symbol 74 MovieClip "menu" in Symbol 346 MovieClip Frame 1
on (release) {
if (_parent.nameField.text eq "") {
_parent.messageMC.gotoAndPlay(2);
_parent.messageMC.message.text = "Please enter your name";
trace("bad man");
} else if (_parent.cityField.text eq "") {
_parent.messageMC.gotoAndPlay(2);
_parent.messageMC.message.text = "Please enter your city";
} else if (_parent.stateField.text eq "") {
_parent.messageMC.gotoAndPlay(2);
_parent.messageMC.message.text = "Please enter your state";
} else {
_parent.updating._visible = 100;
_parent.updating.gotoAndPlay(2);
newEntry = new LoadVars();
newEntry.ref = this;
newEntry.submit = "Yes";
newEntry.name = _parent.nameField.text;
newEntry.city = _parent.cityField.text;
newEntry.state = _parent.stateField.text;
newEntry.score = _global.score;
newEntry.sendAndLoad("http://www.legacyinteractive.com/test/highscores2.php?action=write&r=" + random(999), newEntry, "POST");
newEntry.onLoad = function (success) {
if (success) {
_parent._parent.loadEntries("Default", 10);
}
};
}
}
Symbol 346 MovieClip Frame 220
stop();
num = 0;
while (num <= 9) {
my_str.toUpperCase();
nameText = _global.highscoreArray[num][0];
cityText = (_global.highscoreArray[num][1] + ", ") + _global.highscoreArray[num][2];
uppernameText = nameText.toUpperCase();
uppercityText = cityText.toUpperCase();
eval ("score" + num).text = _global.highscoreArray[num][3];
eval ("name" + num).text = uppernameText;
eval ("city" + num).text = uppercityText;
if (_global.highscoreArray[num][2] == undefined) {
eval ("city" + num).text = "";
}
num++;
}