Frame 1
function go(target) {
System.security.allowDomain("http://pagead2.googlesyndication.com/pagead");
Stage.scaleMode = "noScale";
Stage.align = "TL";
trace("LibraryTest::go");
var _local3 = target.createEmptyMovieClip("swfClip", target.getNextHighestDepth());
trace("loading Google ads swf...");
var _local1 = new Object();
_local1.onLoadStart = function () {
trace("onLoadStart");
};
_local1.onLoadComplete = function () {
trace("onLoadComplete");
};
_local1.onLoadInit = onLoadInit;
_local1.onLoadError = function () {
trace("onLoadError");
};
var _local2 = new MovieClipLoader();
_local2.addListener(_local1);
_local2.loadClip("http://pagead2.googlesyndication.com/pagead/googleflashadslibrary.swf", _local3);
}
function onLoadInit(clip) {
trace("onLoadInit");
trace("creating params object");
var _local1 = new Object();
_local1.productType = "2";
var _local2 = new Array();
_local1.publisherId = "ca-video-pub-2816128178367254";
_local1.channels = ["DarkCut2_Action_Preroll"];
trace("fetching an ad");
trace(_local1);
clip.requestAds(_local1, onAdsRequestResult);
}
function onAdsRequestResult(callbackObj) {
trace("and here");
trace("onAdsRequestResult, success =" + callbackObj.success);
if (!callbackObj.success) {
adDone = true;
}
if (callbackObj.success) {
var _local3 = callbackObj.ads[0];
var _local1 = _local3.getAdPlayerMovieClip();
_local1.setSize(320, 240);
_local1.onError = function () {
trace("error occurred");
adDone = true;
};
_local1.onStateChange = function (oldState, newState) {
trace((("State change from " + oldState) + " to ") + newState);
if (newState == "completed") {
adDone = true;
}
};
_local1.onAdSkip = function () {
trace("Ad skipped");
adDone = true;
};
_local1.load();
_local1.play();
}
}
adDone = false;
go(adLoc);
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function saveGame() {
savefile.data.ach1 = _root.ach1;
savefile.data.ach2 = _root.ach2;
savefile.data.ach3 = _root.ach3;
savefile.data.ach4 = _root.ach4;
savefile.data.ach5 = _root.ach5;
savefile.data.ach6 = _root.ach6;
savefile.data.ach7 = _root.ach7;
savefile.data.ach8 = _root.ach8;
savefile.data.levSet1 = _root.levSet1;
savefile.data.levSet2 = _root.levSet2;
savefile.data.levSet3 = _root.levSet3;
savefile.data.levSet4 = _root.levSet4;
savefile.data.oldName = _root.oldName;
savefile.flush();
}
stop();
k = 0;
onEnterFrame = function () {
var _local2 = Math.floor(framesLoaded / 4) - 1;
afw._x = afw._x - (0.3 * ((afw._x - _root["b" + _local2]._x) / 2));
afw._y = afw._y - (0.3 * ((afw._y - _root["b" + _local2]._y) / 2));
cat.removeMovieClip();
createEmptyMovieClip("cat", k++);
cat.lineStyle(1, 16777215, 50);
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
if (((framesLoaded >= 100) && (playMe.act == false)) && (adDone)) {
playMe.act = true;
playMe.play();
}
perDisp = framesLoaded + "%";
i = 0;
while (i < 25) {
if (framesLoaded >= (i * 4)) {
_root["b" + i]._alpha = _root["b" + i]._alpha - (0.08 * ((_root["b" + i]._alpha - 100) / 2));
_root["b" + i]._x = _root["b" + i]._x - (0.3 * ((_root["b" + i]._x - _root["b" + i].mainX) / 2));
_root["b" + i]._y = _root["b" + i]._y - (0.3 * ((_root["b" + i]._y - _root["b" + i].mainY) / 2));
if (i != 0) {
cat.moveTo(_root["b" + i]._x, _root["b" + i]._y);
cat.lineTo(_root["b" + (i - 1)]._x, _root["b" + (i - 1)]._y);
}
}
base = 1.5;
if (_root["b" + i].hitTest(_xmouse, _ymouse)) {
if ((_xmouse - _root["b" + i]._x) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x - (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x - (base / (t + 1));
t++;
}
} else if ((_xmouse - _root["b" + i]._x) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._x = _root["b" + (i - t)]._x + (base / (t + 1));
_root["b" + (i + t)]._x = _root["b" + (i + t)]._x + (base / (t + 1));
t++;
}
}
if ((_ymouse - _root["b" + i]._y) > 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y - (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y - (base / (t + 1));
t++;
}
} else if ((_ymouse - _root["b" + i]._y) <= 0) {
t = 0;
while (t < 25) {
_root["b" + (i - t)]._y = _root["b" + (i - t)]._y + (base / (t + 1));
_root["b" + (i + t)]._y = _root["b" + (i + t)]._y + (base / (t + 1));
t++;
}
}
}
i++;
}
};
i = 0;
while (i < 25) {
_root["b" + i].mainX = _root["b" + i]._x;
_root["b" + i].mainY = _root["b" + i]._y;
_root["b" + i]._x = random(Stage.width);
_root["b" + i]._y = random(Stage.height);
_root["b" + i]._alpha = 0;
_root["b" + i].act = true;
i++;
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
var curCut = 2;
Frame 2
stop();
Frame 3
stop();
Frame 4
var ach1 = false;
var ach2 = false;
var ach3 = false;
var ach4 = false;
var ach5 = false;
var ach6 = false;
var ach7 = false;
var ach8 = false;
var oldName;
var levSet1 = false;
var levSet2 = false;
var levSet3 = false;
var levSet4 = false;
var savefile = SharedObject.getLocal("darkcut2");
if (savefile.data.oldName == undefined) {
gotoAndStop ("newProfile");
} else {
ach1 = savefile.data.ach1;
ach2 = savefile.data.ach2;
ach3 = savefile.data.ach3;
ach4 = savefile.data.ach4;
ach5 = savefile.data.ach5;
ach6 = savefile.data.ach6;
ach7 = savefile.data.ach7;
ach8 = savefile.data.ach8;
oldName = savefile.data.oldName;
levSet1 = savefile.data.levSet1;
levSet2 = savefile.data.levSet2;
levSet3 = savefile.data.levSet3;
levSet4 = savefile.data.levSet4;
gotoAndStop ("menu");
}
Frame 5
var ach1 = false;
var ach2 = false;
var ach3 = false;
var ach4 = false;
var ach5 = false;
var ach6 = false;
var ach7 = false;
var ach8 = false;
var oldName;
var levSet1 = false;
var levSet2 = false;
var levSet3 = false;
var levSet4 = false;
savefile.data.ach1 = ach1;
savefile.data.ach2 = ach2;
savefile.data.ach3 = ach3;
savefile.data.ach4 = ach4;
savefile.data.ach5 = ach5;
savefile.data.ach6 = ach6;
savefile.data.ach7 = ach7;
savefile.data.ach8 = ach8;
savefile.data.levSet1 = levSet1;
savefile.data.levSet2 = levSet2;
savefile.data.levSet3 = levSet3;
savefile.data.levSet4 = levSet4;
savefile.data.oldName = "Medic";
savefile.flush();
Frame 6
stop();
notBusy = true;
Frame 7
play();
Frame 8
function saveGame() {
savefile.data.ach1 = _root.ach1;
savefile.data.ach2 = _root.ach2;
savefile.data.ach3 = _root.ach3;
savefile.data.ach4 = _root.ach4;
savefile.data.ach5 = _root.ach5;
savefile.data.ach6 = _root.ach6;
savefile.data.ach7 = _root.ach7;
savefile.data.ach8 = _root.ach8;
savefile.data.levSet1 = _root.levSet1;
savefile.data.levSet2 = _root.levSet2;
savefile.data.levSet3 = _root.levSet3;
savefile.data.levSet4 = _root.levSet4;
savefile.data.oldName = _root.oldName;
savefile.flush();
}
function init(num) {
sawFocus = "a";
spaceDown = false;
stopAllSounds();
clearTools();
willTo = 50;
curSurg = num;
if (curSurg == 1) {
curStep = 1;
gotoAndPlay ("surgery1");
stopAllSounds();
}
if (curSurg == 2) {
curStep = 11;
gotoAndPlay ("surgery2");
stopAllSounds();
}
if (curSurg == 3) {
curStep = 29;
gotoAndPlay ("surgery3");
stopAllSounds();
}
if (curSurg == 4) {
curStep = 40;
gotoAndPlay ("surgery4");
stopAllSounds();
}
ambienceOn = true;
if (!ambienceOn) {
stopAllSounds();
}
curTool = -1;
curToolDisp = " ";
curToolHold = " ";
holdMouse = false;
k = 1;
tSeconds = 0;
tSecondsDisp = 0;
tMili = 0;
tMiliDisp = 0;
frameRate = 28;
totTools = 11;
curDMax = 4000;
curDState = curDMax / 5;
curDFake = curDState;
healthActual = 100;
healthDisp = healthActual;
temp = 0;
temp2 = 0;
setRot = 0;
useNeedle = true;
drain = 0.001;
fHit = false;
ba = 0.02;
dir = true;
chalStars = 0;
i = 0;
while (i < totTools) {
bottomBar["t" + i]._alpha = 50;
i++;
}
touchNone = true;
i = 0;
while (i < totTools) {
bottomBar["t" + i].onRelease = function () {
if (curToolNum != Number(String(this._name).substr(1, 2))) {
j = 0;
while (j < totTools) {
bottomBar["t" + j]._xscale = 100;
bottomBar["t" + j]._yscale = 100;
bottomBar["t" + j]._alpha = 50;
j++;
}
this._xscale = 150;
this._yscale = 150;
this._alpha = 100;
curToolNum = Number(String(this._name).substr(1, 2));
curToolHold = curToolDisp;
activate(curToolNum);
}
};
bottomBar["t" + i].onRollOver = function () {
curToolDisp = toolNames[Number(String(this._name).substr(1, 2))];
};
i++;
}
curToolNum = -1;
wStart = false;
}
function fump() {
onEnterFrame = function () {
bars();
timerRun();
sedation();
intersection();
depths();
goals();
health();
checkVitals();
if (curStep >= 42) {
willToMeter();
}
achievements();
};
}
function achievements() {
if ((_root.willTo > 98) && (!_root.ach6)) {
_root.ach6 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "GOOD SPORT";
shel.reasoning = "Reach 100% Will";
shel.achPatches.gotoAndStop(6);
}
if ((_root.curDStateDisp > 98) && (!_root.ach7)) {
_root.ach7 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "TOWN DRUNK";
shel.reasoning = "Reach 100% Drunk";
shel.achPatches.gotoAndStop(7);
}
}
function bars() {
if (bottomBar.hitTest(_root._xmouse, _root._ymouse)) {
bottomBar._alpha = 100;
wb._visible = false;
ragger._visible = false;
beaker._visible = false;
knife._visible = false;
forceps._visible = false;
bandages._visible = false;
hotIron._visible = false;
cotton._visible = false;
scissors._visible = false;
syringe._visible = false;
saw._visible = false;
} else {
bottomBar._alpha = 25;
wb._visible = true;
ragger._visible = true;
beaker._visible = true;
knife._visible = true;
forceps._visible = true;
bandages._visible = true;
hotIron._visible = true;
cotton._visible = true;
scissors._visible = true;
syringe._visible = true;
saw._visible = true;
}
}
function goto(num) {
switch (num) {
case 1 :
gotoAndPlay ("surgery1");
break;
case 2 :
gotoAndPlay ("surgery2");
}
}
function cursorSS() {
}
function killSwitch() {
for (var _local2 in _root) {
if (typeof(_root[_local2]) == "movieclip") {
_root[_local2].removeMovieClip();
}
}
}
function depths() {
cursor.swapDepths(k++);
}
function tween() {
curStep++;
if (curStep == 7) {
createEmptyMovieClip("needlePoint", k++);
}
bar.flasher.play();
trace("CURSTEP + " + curStep);
nextFrame();
}
function dockHealth(tag) {
healthActual = healthActual - tag;
}
function checkVitals() {
if (healthDisp <= 0) {
healthDisp = 0;
if (curStep < 41) {
triggerDeath();
}
}
}
function triggerDeath() {
tra = 100;
trb = 0;
tga = 100;
tgb = 0;
tba = 100;
tbb = 0;
stopAllSounds();
ambience.stop();
shel = _root.attachMovie("redOut", "redOut", k++);
shel._x = 0;
shel._y = 0;
onEnterFrame = function () {
redOut.swapDepths(k++);
my_color = new Color(_root);
myColorTransform = {ra:tra, rb:trb, ga:tga, gb:tgb, ba:tba, tbb:0};
my_color.setTransform(myColorTransform);
tra = tra - 2.5;
tga = tga - 2.5;
tba = tba - 2.5;
trb = trb + 12.75;
tgb = tgb + 2.5;
tbb = tbb + 2.5;
if (tra == -100) {
redOut.play();
}
};
}
function health() {
healthDisp = healthDisp - Math.floor((healthDisp - healthActual) / 2);
bar.circles.fIn.gotoAndStop(healthDisp);
if (curDStateDisp > 80) {
healthActual = healthActual - (ba * 0);
} else if (curDStateDisp > 60) {
healthActual = healthActual - (ba * 0.1);
} else if (curDStateDisp > 40) {
healthActual = healthActual - (ba * 0.5);
} else if (curDStateDisp > 20) {
healthActual = healthActual - (ba * 1);
} else if (curDStateDisp > 5) {
healthActual = healthActual - (ba * 3);
} else {
healthActual = healthActual - (ba * 4);
}
}
function willToMeter() {
willTo = willTo - 0.5;
if (willTo < 1) {
willTo = 1;
triggerDeath();
}
if (willTo > 100) {
willTo = 100;
}
if (Key.isDown(32) && (!spaceDown)) {
willTo = willTo + 3;
spaceDown = true;
}
if ((!Key.isDown(32)) && (spaceDown)) {
spaceDown = false;
}
willToBar.gotoAndStop(Math.floor(willTo));
}
function goals() {
switch (curStep) {
case 1 :
if (curDStateDisp > 30) {
tween();
}
break;
case 2 :
i = 0;
while (i < 11) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if ((chalStars == 2) || (chalStars == 7)) {
chalStars++;
nextFrame();
}
if (chalStars == 13) {
tween();
}
}
i++;
}
break;
case 3 :
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
tween();
play();
break;
}
case 4 :
if (!holdMouse) {
}
i = 0;
while (i < 3) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
if (forceps.hitA.hitTest(hot3.hitA)) {
tween();
} else if (holdMouse && (actBull.hitA.hitTest(forceps.hitA))) {
tween();
} else if (holdMouse && (forceps.actBull.hitTest(plate.hitA))) {
plate.play();
shel = plate.ww.attachMovie("bulletSpd", "bulletSpd", k++);
shel._x = hitA._x;
shel._y = hitA._y;
tween();
} else {
if (((!usedAlready) && (holdMouse)) && (_root["a" + temp].hitTest(needle.hitA))) {
_root["a" + temp].play();
_root["a" + temp].activ = false;
if (temp > 0) {
needlePoint.lineStyle(0, 0, 100);
needlePoint.moveTo(lastX, lastY);
needlePoint.lineTo(_root["a" + temp]._x, _root["a" + temp]._y);
}
temp++;
if (temp == 6) {
tween();
} else if (temp > 1) {
nextFrame();
}
}
chalStars = 0;
break;
i = 0;
while (i < 6) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if ((chalStars == 3) || (chalStars == 5)) {
nextFrame();
}
if (chalStars == 6) {
tween();
}
}
i++;
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
tween();
play();
} else {
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
i = 0;
while (i < 14) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if (((chalStars == 2) || (chalStars == 7)) || (chalStars == 15)) {
chalStars++;
nextFrame();
}
if (chalStars == 17) {
tween();
chalStars = 0;
}
}
i++;
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
}
if (chalStars == 3) {
chalStars = 0;
temp2++;
if (temp2 == 3) {
tween();
nextFrame();
} else {
nextFrame();
}
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot2.hitA)) {
tween();
} else {
i = 0;
while (i < 3) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot5.hitA)) {
tween();
} else {
i = 0;
while (i < 6) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && forceps.hitA.hitTest(hot0.hitA)) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(hotIron.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && cotton.hitA.hitTest(hitA)) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && _root["b" + chalStars].activ) && holdMouse) && _root["b" + chalStars].hitA.hitTest(needle.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && beaker.pour.hitA.hitTest(hitA)) {
play();
}
break;
if (holdMouse && beaker.pour.hitA.hitTest(hitA)) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(knife.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && holdMouse) && (!fHit)) && _root["mag" + i].mag.hitA.hitTest(forceps.hitA)) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && _root["mag" + i].hitTest(ragger.hitA)) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(knife.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && hitA.hitTest(ragger.hitA)) {
nextFrame();
}
break;
if (holdMouse && hitA.hitTest(syringe.hitA)) {
syringe.nextFrame();
}
break;
if (holdMouse && hitA.hitTest(scissors.hitA)) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
}
}
}
}
case 5 :
if (holdMouse && (actBull.hitA.hitTest(forceps.hitA))) {
tween();
} else if (holdMouse && (forceps.actBull.hitTest(plate.hitA))) {
plate.play();
shel = plate.ww.attachMovie("bulletSpd", "bulletSpd", k++);
shel._x = hitA._x;
shel._y = hitA._y;
tween();
} else {
if (((!usedAlready) && (holdMouse)) && (_root["a" + temp].hitTest(needle.hitA))) {
_root["a" + temp].play();
_root["a" + temp].activ = false;
if (temp > 0) {
needlePoint.lineStyle(0, 0, 100);
needlePoint.moveTo(lastX, lastY);
needlePoint.lineTo(_root["a" + temp]._x, _root["a" + temp]._y);
}
temp++;
if (temp == 6) {
tween();
} else if (temp > 1) {
nextFrame();
}
}
chalStars = 0;
break;
i = 0;
while (i < 6) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if ((chalStars == 3) || (chalStars == 5)) {
nextFrame();
}
if (chalStars == 6) {
tween();
}
}
i++;
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
tween();
play();
} else {
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
i = 0;
while (i < 14) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if (((chalStars == 2) || (chalStars == 7)) || (chalStars == 15)) {
chalStars++;
nextFrame();
}
if (chalStars == 17) {
tween();
chalStars = 0;
}
}
i++;
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
}
if (chalStars == 3) {
chalStars = 0;
temp2++;
if (temp2 == 3) {
tween();
nextFrame();
} else {
nextFrame();
}
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot2.hitA)) {
tween();
} else {
i = 0;
while (i < 3) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot5.hitA)) {
tween();
} else {
i = 0;
while (i < 6) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && (forceps.hitA.hitTest(hot0.hitA))) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(hotIron.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && cotton.hitA.hitTest(hitA)) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && _root["b" + chalStars].activ) && holdMouse) && _root["b" + chalStars].hitA.hitTest(needle.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && beaker.pour.hitA.hitTest(hitA)) {
play();
}
break;
if (holdMouse && beaker.pour.hitA.hitTest(hitA)) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(knife.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && holdMouse) && (!fHit)) && _root["mag" + i].mag.hitA.hitTest(forceps.hitA)) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && _root["mag" + i].hitTest(ragger.hitA)) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(knife.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && hitA.hitTest(ragger.hitA)) {
nextFrame();
}
break;
if (holdMouse && hitA.hitTest(syringe.hitA)) {
syringe.nextFrame();
}
break;
if (holdMouse && hitA.hitTest(scissors.hitA)) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
}
}
}
}
case 6 :
if (holdMouse && (forceps.actBull.hitTest(plate.hitA))) {
plate.play();
shel = plate.ww.attachMovie("bulletSpd", "bulletSpd", k++);
shel._x = hitA._x;
shel._y = hitA._y;
tween();
} else {
if (((!usedAlready) && (holdMouse)) && (_root["a" + temp].hitTest(needle.hitA))) {
_root["a" + temp].play();
_root["a" + temp].activ = false;
if (temp > 0) {
needlePoint.lineStyle(0, 0, 100);
needlePoint.moveTo(lastX, lastY);
needlePoint.lineTo(_root["a" + temp]._x, _root["a" + temp]._y);
}
temp++;
if (temp == 6) {
tween();
} else if (temp > 1) {
nextFrame();
}
}
chalStars = 0;
break;
i = 0;
while (i < 6) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if ((chalStars == 3) || (chalStars == 5)) {
nextFrame();
}
if (chalStars == 6) {
tween();
}
}
i++;
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
tween();
play();
} else {
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
i = 0;
while (i < 14) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if (((chalStars == 2) || (chalStars == 7)) || (chalStars == 15)) {
chalStars++;
nextFrame();
}
if (chalStars == 17) {
tween();
chalStars = 0;
}
}
i++;
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
}
if (chalStars == 3) {
chalStars = 0;
temp2++;
if (temp2 == 3) {
tween();
nextFrame();
} else {
nextFrame();
}
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot2.hitA)) {
tween();
} else {
i = 0;
while (i < 3) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot5.hitA)) {
tween();
} else {
i = 0;
while (i < 6) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && (forceps.hitA.hitTest(hot0.hitA))) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(hotIron.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && (cotton.hitA.hitTest(hitA))) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && (_root["b" + chalStars].activ)) && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(needle.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && beaker.pour.hitA.hitTest(hitA)) {
play();
}
break;
if (holdMouse && beaker.pour.hitA.hitTest(hitA)) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(knife.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && holdMouse) && (!fHit)) && _root["mag" + i].mag.hitA.hitTest(forceps.hitA)) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && _root["mag" + i].hitTest(ragger.hitA)) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && holdMouse) && _root["b" + chalStars].hitA.hitTest(knife.hitA)) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && hitA.hitTest(ragger.hitA)) {
nextFrame();
}
break;
if (holdMouse && hitA.hitTest(syringe.hitA)) {
syringe.nextFrame();
}
break;
if (holdMouse && hitA.hitTest(scissors.hitA)) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
}
}
}
}
case 7 :
if (((!usedAlready) && (holdMouse)) && (_root["a" + temp].hitTest(needle.hitA))) {
_root["a" + temp].play();
_root["a" + temp].activ = false;
if (temp > 0) {
needlePoint.lineStyle(0, 0, 100);
needlePoint.moveTo(lastX, lastY);
needlePoint.lineTo(_root["a" + temp]._x, _root["a" + temp]._y);
}
temp++;
if (temp == 6) {
tween();
} else if (temp > 1) {
nextFrame();
}
}
chalStars = 0;
break;
case 8 :
i = 0;
while (i < 6) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if ((chalStars == 3) || (chalStars == 5)) {
nextFrame();
}
if (chalStars == 6) {
tween();
}
}
i++;
}
break;
case 9 :
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
tween();
play();
} else {
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
i = 0;
while (i < 14) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if (((chalStars == 2) || (chalStars == 7)) || (chalStars == 15)) {
chalStars++;
nextFrame();
}
if (chalStars == 17) {
tween();
chalStars = 0;
}
}
i++;
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
}
if (chalStars == 3) {
chalStars = 0;
temp2++;
if (temp2 == 3) {
tween();
nextFrame();
} else {
nextFrame();
}
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot2.hitA)) {
tween();
} else {
i = 0;
while (i < 3) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot5.hitA)) {
tween();
} else {
i = 0;
while (i < 6) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && (forceps.hitA.hitTest(hot0.hitA))) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(hotIron.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && (cotton.hitA.hitTest(hitA))) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && (_root["b" + chalStars].activ)) && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(needle.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && holdMouse) && (!fHit)) && _root["mag" + i].mag.hitA.hitTest(forceps.hitA)) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && _root["mag" + i].hitTest(ragger.hitA)) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && hitA.hitTest(ragger.hitA)) {
nextFrame();
}
break;
if (holdMouse && hitA.hitTest(syringe.hitA)) {
syringe.nextFrame();
}
break;
if (holdMouse && hitA.hitTest(scissors.hitA)) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
}
}
}
case 10 :
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
case 11 :
if (curDStateDisp > 30) {
tween();
}
break;
case 12 :
i = 0;
while (i < 14) {
if ((_root["a" + i].activ && (holdMouse)) && (_root["a" + i].hitA.hitTest(ragger.hitA))) {
_root["a" + i].play();
_root["a" + i].activ = false;
chalStars++;
if (((chalStars == 2) || (chalStars == 7)) || (chalStars == 15)) {
chalStars++;
nextFrame();
}
if (chalStars == 17) {
tween();
chalStars = 0;
}
}
i++;
}
break;
case 13 :
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
}
if (chalStars == 3) {
chalStars = 0;
temp2++;
if (temp2 == 3) {
tween();
nextFrame();
} else {
nextFrame();
}
}
break;
case 14 :
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot2.hitA)) {
tween();
} else {
i = 0;
while (i < 3) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot5.hitA)) {
tween();
} else {
i = 0;
while (i < 6) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && (forceps.hitA.hitTest(hot0.hitA))) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(hotIron.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && (cotton.hitA.hitTest(hitA))) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && (_root["b" + chalStars].activ)) && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(needle.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && (holdMouse)) && (!fHit)) && (_root["mag" + i].mag.hitA.hitTest(forceps.hitA))) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && (_root["mag" + i].hitTest(ragger.hitA))) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(syringe.hitA))) {
syringe.nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(scissors.hitA))) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
}
}
case 15 :
if (!holdMouse) {
}
if (forceps.hitA.hitTest(hot5.hitA)) {
tween();
} else {
i = 0;
while (i < 6) {
if (forceps.hitA.hitTest(_root["hot" + i].hitA)) {
nextFrame();
break;
}
i++;
}
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && (forceps.hitA.hitTest(hot0.hitA))) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(hotIron.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && (cotton.hitA.hitTest(hitA))) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && (_root["b" + chalStars].activ)) && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(needle.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && (holdMouse)) && (!fHit)) && (_root["mag" + i].mag.hitA.hitTest(forceps.hitA))) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && (_root["mag" + i].hitTest(ragger.hitA))) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(syringe.hitA))) {
syringe.nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(scissors.hitA))) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
}
case 16 :
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
if ((((chalStars == 4) || (chalStars == 8)) || (chalStars == 12)) || (chalStars == 16)) {
nextFrame();
}
chalStars++;
ragger.gotoAndStop(chalStars);
}
if (chalStars == 20) {
tween();
}
break;
case 17 :
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick._x > 520) {
tween();
}
break;
case 18 :
if (holdMouse && (forceps.hitA.hitTest(stick))) {
stick.startDrag();
} else {
stick.stopDrag();
}
if ((stick._x < 470) && (stick._y >= 230)) {
healthActual = 0;
healthDisp = 0;
}
if (stick.hitA.hitTest(plate.hitA)) {
tween();
plate.play();
stick.swapDepths(_root.k++);
stick.removeMovieClip();
}
case 19 :
if (holdMouse && (forceps.hitA.hitTest(hot1.hitA))) {
tween();
} else if (holdMouse && (forceps.hitA.hitTest(hot0.hitA))) {
nextFrame();
} else {
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(hotIron.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
if (holdMouse && (cotton.hitA.hitTest(hitA))) {
tween();
play();
cotton.removeMovieClip();
}
break;
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
if ((((!usedAlready) && (_root["b" + chalStars].activ)) && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(needle.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && (holdMouse)) && (!fHit)) && (_root["mag" + i].mag.hitA.hitTest(forceps.hitA))) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && (_root["mag" + i].hitTest(ragger.hitA))) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(syringe.hitA))) {
syringe.nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(scissors.hitA))) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
}
case 20 :
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(4);
}
break;
case 21 :
forceps.gotoAndStop(4);
if (forceps.skin.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
case 22 :
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(hotIron.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
break;
}
if (chalStars != 6) {
chalStars++;
nextFrame();
} else {
chalStars = 0;
tween();
}
}
break;
case 23 :
if (holdMouse && (cotton.hitA.hitTest(hitA))) {
tween();
play();
cotton.removeMovieClip();
}
break;
case 24 :
if (forceps.hitA.hitTest(plate.hitA)) {
plate.play();
tween();
forceps.gotoAndStop(5);
}
break;
case 25 :
forceps.gotoAndStop(5);
if (forceps.leather.hitA.hitTest(hitA)) {
chalStars = 0;
tween();
}
break;
case 26 :
if ((((!usedAlready) && (_root["b" + chalStars].activ)) && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(needle.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 23) {
tween();
break;
}
} else {
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && (holdMouse)) && (!fHit)) && (_root["mag" + i].mag.hitA.hitTest(forceps.hitA))) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
i = 0;
while (i < 17) {
if (holdMouse && (_root["mag" + i].hitTest(ragger.hitA))) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(syringe.hitA))) {
syringe.nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(scissors.hitA))) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
}
case 27 :
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
case 28 :
if (holdMouse && (beaker.pour.hitA.hitTest(hitA))) {
play();
}
break;
case 29 :
if (curDStateDisp > 30) {
tween();
}
break;
case 30 :
if (scissors.hitA.hitTest(hitA)) {
nextFrame();
}
break;
case 31 :
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
if (chalStars == 0) {
chalStars++;
} else {
if (chalStars == 8) {
chalStars = 0;
tween();
break;
}
if (chalStars > 0) {
chalStars++;
nextFrame();
}
}
}
break;
case 32 :
i = 0;
while (i < 17) {
if (((_root["mag" + i].activ && (holdMouse)) && (!fHit)) && (_root["mag" + i].mag.hitA.hitTest(forceps.hitA))) {
_root["mag" + i].gotoAndStop(1);
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].mag.gotoAndPlay(14);
_root["mag" + i].activ = false;
fHit = true;
if (chalStars == 13) {
pusBall.play();
}
_root["mag" + i].onEnterFrame = null;
_root["mag" + i].stop();
_root["mag" + i].count = -100;
chalStars++;
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
case 33 :
i = 0;
while (i < 17) {
if (holdMouse && (_root["mag" + i].hitTest(ragger.hitA))) {
_root["mag" + i]._alpha = _root["mag" + i]._alpha - 5;
if (_root["mag" + i]._alpha < 6) {
chalStars++;
_root["mag" + i].swapDepths(k++);
_root["mag" + i].removeMovieClip();
}
}
i++;
}
if (chalStars == 17) {
chalStars = 0;
tween();
}
break;
case 34 :
if ((_root["b" + chalStars].activ && (holdMouse)) && (_root["b" + chalStars].hitA.hitTest(knife.hitA))) {
_root["b" + chalStars].play();
_root["b" + chalStars].activ = false;
chalStars++;
if (chalStars == 2) {
chalStars = 0;
pusBall.play();
play();
break;
}
} else {
break;
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(syringe.hitA))) {
syringe.nextFrame();
}
break;
if (holdMouse && (hitA.hitTest(scissors.hitA))) {
play();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
if (curDStateDisp > 30) {
tween();
}
break;
break;
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
}
case 35 :
if (holdMouse && (hitA.hitTest(ragger.hitA))) {
nextFrame();
}
break;
case 36 :
if (holdMouse && (hitA.hitTest(syringe.hitA))) {
syringe.nextFrame();
}
break;
case 37 :
if (holdMouse && (hitA.hitTest(scissors.hitA))) {
play();
}
break;
case 38 :
if (dir) {
if (bandages.spinner._rotation < -150) {
nextFrame();
dir = false;
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
case 40 :
if (curDStateDisp > 30) {
tween();
}
break;
case 41 :
break;
case 42 :
if (willTo > 80) {
chalStars = 0;
tween();
}
break;
case 43 :
if (dir) {
if (bandages.spinner._rotation < -150) {
chalStars++;
dir = false;
if (chalStars == 3) {
chalStars = 0;
tween();
} else {
nextFrame();
}
}
} else if (bandages.spinner._rotation > 0) {
dir = true;
}
break;
case 44 :
}
}
function intersection() {
switch (curToolNum) {
case 0 :
beakerSS();
return;
case 1 :
whiskyBottle();
return;
case 2 :
forcepsSS();
return;
case 3 :
knifeSS();
return;
case 4 :
syringeSS();
return;
case 5 :
scissorsSS();
return;
case 6 :
needleSS();
return;
case 7 :
sawSS();
return;
case 8 :
ragThing();
return;
case 9 :
bandagesSS();
return;
case 10 :
hotIronSS();
}
}
function sawSS() {
if (curStep != 44) {
saw.gotoAndStop(1);
}
if (!sawTime) {
saw._x = _xmouse;
saw._y = _ymouse;
if (curStep == 44) {
if (holdMouse) {
if (hitA.hitTest(saw.hitA)) {
saw.gotoAndStop(3);
saw.stopDrag();
sawTime = true;
} else {
if (!sawTime) {
}
saw.gotoAndStop(2);
}
} else {
saw.gotoAndStop(1);
saw.startDrag(true);
}
}
}
}
function syringeSS() {
syringe._x = _xmouse;
syringe._y = _ymouse;
}
function hotIronSS() {
hotIron._x = _xmouse;
hotIron._y = _ymouse;
if (holdMouse) {
hotIron.gotoAndStop(2);
} else {
hotIron.gotoAndStop(1);
}
}
function bandagesSS() {
if (holdMouse && (bandages.spinner.center.hitTest(_root._xmouse, _root._ymouse))) {
bandages.spinner._rotation = 180 + rot(_xmouse, _ymouse, bandages.spinner._x, bandages.spinner._y);
}
cotton._x = _xmouse;
cotton._y = _ymouse;
}
function needleSS() {
needle._x = _xmouse;
needle._y = _ymouse;
needle._rotation = (needle._x - 275) / 10;
if (!holdMouse) {
usedAlready = false;
}
if (((!usedAlready) && (useNeedle)) && (holdMouse)) {
needle.play();
shel = attachMovie("stab", "stab" + k, k++);
shel._x = needle._x;
shel._y = needle._y;
needle._visible = false;
useNeedle = false;
}
}
function forcepsSS() {
forceps._x = _xmouse;
forceps._y = _ymouse;
if (((curStep != 5) || (curStep != 6)) || (curStep != 21)) {
if (holdMouse) {
forceps.gotoAndStop(2);
} else {
forceps.gotoAndStop(1);
}
}
if (((curStep != 17) && (curStep != 18)) && (curStep != 21)) {
forceps._rotation = (forceps._x - 275) / 6;
}
if (curStep == 6) {
forceps.gotoAndStop(3);
}
}
function ragThing() {
ragger._rotation = (ragger._x - 275) / 6;
ragger._x = _xmouse;
ragger._y = _ymouse;
}
function sedation() {
curDState = curDState - 2;
easeNum("curDFake", "curDState", 0.3);
curDStateDisp = Math.floor((curDFake / curDMax) * 100);
bar.circles.drunk.slider.gotoAndStop(curDStateDisp);
}
function easeNum(num, goal, drift) {
_root[num] = _root[num] - (drift * ((_root[num] - _root[goal]) / 2));
}
function tabAlcohol() {
curDState = curDState + (shotGlass.shotIn._currentframe * 10);
if (curDState > curDMax) {
curDState = curDMax;
}
shotGlass.shotIn.gotoAndStop(1);
}
function scissorsSS() {
scissors._x = _xmouse;
scissors._y = _ymouse;
scissors._rotation = scissors._rotation + ((_xmouse - scissors._x) / 8);
easing("rotation", scissors, 0, 0.7);
if (holdMouse) {
scissors.play();
}
}
function knifeSS() {
knife._x = _xmouse;
knife._y = _ymouse;
if (holdMouse) {
knife.gotoAndStop(2);
} else {
knife.gotoAndStop(1);
}
}
function beakerSS() {
if (curStep == 28) {
beaker.gotoAndStop(2);
} else {
beaker.gotoAndStop(1);
}
if (!holdMouse) {
beaker._rotation = beaker._rotation + ((_xmouse - beaker._x) / 8);
easing("rotation", beaker, 0, 0.7);
oldX = beaker._x;
oldY = beaker._y;
beaker._x = _xmouse;
beaker._y = _ymouse;
} else {
beaker._rotation = beaker._rotation + ((_xmouse - beaker._x) / 4);
easing("rotation", beaker, -90, 0.3);
oldX = wb._x;
oldY = wb._y;
beaker._x = _xmouse;
beaker._y = _ymouse;
}
if (beaker._rotation < -60) {
beaker.pour._visible = true;
beaker.pour._xscale = -beaker._rotation;
} else {
beaker.pour._visible = false;
}
}
function whiskyBottle() {
if (!holdMouse) {
wb._rotation = wb._rotation + ((_xmouse - wb._x) / 4);
easing("rotation", wb, 0, 0.3);
oldX = wb._x;
oldY = wb._y;
wb._x = _xmouse;
wb._y = _ymouse;
} else {
wb._rotation = wb._rotation + ((_xmouse - wb._x) / 4);
easing("rotation", wb, 90, 0.3);
oldX = wb._x;
oldY = wb._y;
wb._x = _xmouse;
wb._y = _ymouse;
}
if ((!holdMouse) && (wStart)) {
wStart = false;
shotGlass.play();
}
if (wb._rotation > 65) {
wb.pour._visible = true;
wb.pour._xscale = wb._rotation;
} else {
wb.pour._visible = false;
}
if ((wb.pour.hitA.hitTest(shotGlass.shotIn.hitA) && (wb._rotation > 65)) && (shotGlass.shotIn._currentframe < 98)) {
shotGlass.shotIn.play();
wStart = true;
} else {
shotGlass.shotIn.stop();
}
}
function easing(pro, mov1, mov2, drift) {
switch (pro) {
case "x" :
mov1._x = mov1._x - (drift * ((mov1._x - mov2) / 2));
break;
case "y" :
mov1._y = mov1._y - (drift * ((mov1._y - mov2) / 2));
break;
case "xscale" :
mov1._xscale = mov1._xscale - (drift * ((mov1._xscale - mov2) / 2));
break;
case "yscale" :
mov1._yscale = mov1._yscale - (drift * ((mov1._yscale - mov2) / 2));
break;
case "width" :
mov1._width = mov1._width - (drift * ((mov1._width - mov2) / 2));
break;
case "height" :
mov1._height = mov1._height - (drift * ((mov1._height - mov2) / 2));
break;
case "alpha" :
mov1._alpha = mov1._alpha - (drift * ((mov1._alpha - mov2) / 2));
break;
case "rotation" :
mov1._rotation = mov1._rotation - (drift * ((mov1._rotation - mov2) / 2));
}
}
function dist(x1, y1, x2, y2) {
return(Math.sqrt(((x2 - x1) * (x2 - x1)) + ((y2 - y1) * (y2 - y1))));
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(-(90 - degrees));
}
}
function timerRun() {
tMili++;
if (tMili == frameRate) {
tSeconds++;
tMili = 0;
}
tSecondsDisp = tSeconds;
tMiliDisp = Math.floor((tMili / frameRate) * 100);
dispTimer = (tSecondsDisp + ":") + tMiliDisp;
}
function bBar(i) {
}
function onMouseDown() {
holdMouse = true;
}
function onMouseUp() {
holdMouse = false;
fHit = false;
}
function activate(num) {
clearTools();
cursor._alpha = 50;
switch (num) {
case 0 :
shel = attachMovie("beaker", "beaker", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 1 :
shel = attachMovie("shotGlass", "shotGlass", k++);
shel = attachMovie("whiskyCursor", "wb", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 2 :
shel = attachMovie("forceps", "forceps", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 4 :
shel = attachMovie("syringe", "syringe", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 3 :
shel = attachMovie("knife", "knife", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 5 :
shel = attachMovie("scissorsLoad", "scissors", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 6 :
shel = attachMovie("needle", "needle", k++);
shel._x = _xmouse;
shel._y = _ymouse;
break;
case 7 :
shel = attachMovie("sawLoad", "saw", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 8 :
shel = attachMovie("ragger", "ragger", k++);
shel._x = _xmouse;
shel._y = _ymouse;
shel._visible = false;
break;
case 9 :
if (curStep == 23) {
shel = attachMovie("cottonCandy", "cotton", k++);
shel._visible = false;
} else {
shel = attachMovie("bandages", "bandages", k++);
shel._visible = false;
}
break;
case 10 :
shel = attachMovie("hotIron", "hotIron", k++);
shel._visible = false;
}
}
function clearTools() {
shotGlass.removeMovieClip();
wb.removeMovieClip();
ragger.removeMovieClip();
beaker.removeMovieClip();
knife.removeMovieClip();
forceps.removeMovieClip();
needle.removeMovieClip();
bandages.removeMovieClip();
hotIron.removeMovieClip();
cotton.removeMovieClip();
scissors.removeMovieClip();
syringe.removeMovieClip();
saw.removeMovieClip();
}
function rot(circx, circy, prevx, prevy) {
if ((circx < prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(degrees + 90);
}
if ((circx < prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(90 - degrees);
}
if ((circx > prevx) && (circy < prevy)) {
angle = Math.atan(Math.abs(circx - prevx) / Math.abs(circy - prevy));
degrees = (angle * 180) / Math.PI;
return(-(180 - degrees));
}
if ((circx > prevx) && (circy > prevy)) {
angle = Math.atan(Math.abs(circy - prevy) / Math.abs(circx - prevx));
degrees = (angle * 180) / Math.PI;
return(-(90 - degrees));
}
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
var timerDisp;
var ambienceOn = true;
if (!ambienceOn) {
stopAllSounds();
}
var curTool = -1;
var curToolDisp = " ";
var curToolHold = " ";
var holdMouse = false;
var k = 1;
var tSeconds = 0;
var tSecondsDisp = 0;
var tMili = 0;
var tMiliDisp = 0;
var frameRate = 28;
var dispTimer;
var totTools = 11;
var curDStateDisp;
var curDMax = 4000;
var curDState = (curDMax / 5);
var curDFake = curDState;
var healthActual = 100;
var healthDisp = healthActual;
var temp = 0;
var temp2 = 0;
var lastX;
var lastY;
var setRot = 0;
var useNeedle = true;
var drain = 0.001;
var fHit = false;
ba = 0.02;
var toolNames = new Array("Medical Alcohol", "Whisky", "Forceps", "Scapel", "Syringe", "Snips", "Suture Needle", "Saw", "Sponging Rag", "Bandages", "Hot Iron");
var dir = true;
var chalStars = 0;
i = 0;
while (i < totTools) {
bottomBar["t" + i]._alpha = 50;
i++;
}
var touchNone = true;
i = 0;
while (i < totTools) {
bottomBar["t" + i].onRelease = function () {
if (curToolNum != Number(String(this._name).substr(1, 2))) {
j = 0;
while (j < totTools) {
bottomBar["t" + j]._xscale = 100;
bottomBar["t" + j]._yscale = 100;
bottomBar["t" + j]._alpha = 50;
j++;
}
this._xscale = 150;
this._yscale = 150;
this._alpha = 100;
curToolNum = Number(String(this._name).substr(1, 2));
curToolHold = curToolDisp;
activate(curToolNum);
}
};
bottomBar["t" + i].onRollOver = function () {
curToolDisp = toolNames[Number(String(this._name).substr(1, 2))];
};
i++;
}
var curToolNum = -1;
var wStart = false;
var spaceDown = false;
var willTo = 50;
var sawFocus = "a";
var sawTime = false;
var addAlc = 0;
init(curSurg);
var globalVolume = new Sound();
var volumeOn = true;
Frame 14
stop();
Frame 15
stop();
Frame 19
stop();
Frame 22
stop();
Frame 25
dockHealth(10);
Frame 34
stop();
Frame 35
dockHealth(5);
Frame 39
dockHealth(5);
stop();
Frame 40
stop();
Frame 41
dockHealth(2);
Frame 42
dockHealth(2);
Frame 43
dockHealth(2);
Frame 44
dockHealth(2);
Frame 45
dockHealth(1);
Frame 50
stop();
Frame 51
dockHealth(10);
Frame 54
stop();
Frame 57
shel = attachMovie("complete1", "complete", k++);
shel._x = 325;
shel._y = 200;
onEnterFrame = null;
ambience.stop();
Frame 58
stop();
Frame 59
stop();
Frame 86
stop();
Frame 89
stop();
Frame 90
stop();
Frame 99
stop();
Frame 103
stop();
Frame 108
stop();
Frame 109
stop();
Frame 113
stop();
Frame 114
stop();
Frame 120
stop();
Frame 121
stop();
Frame 123
stop();
tween();
Frame 129
stop();
Frame 133
stop();
Frame 138
stop();
Frame 143
stop();
shel = attachMovie("complete1", "complete", k++);
shel._x = 325;
shel._y = 200;
onEnterFrame = null;
Frame 144
stop();
Frame 145
stop();
Frame 151
play();
Frame 156
stop();
tween();
Frame 165
play();
Frame 170
stop();
Frame 174
stop();
Frame 175
stop();
Frame 177
tween();
Frame 178
stop();
Frame 186
tween();
Frame 187
stop();
Frame 189
curStep++;
Frame 192
fump();
stop();
healthActual = 20;
healthDisp = 20;
Frame 203
_root.curSurg = 4;
ambience.gotoAndStop(1);
stop();
Frame 204
shel = attachMovie("complete1", "complete", k++);
shel._x = 325;
shel._y = 200;
onEnterFrame = null;
ambience.stop();
Symbol 24 MovieClip Frame 15
stop();
Symbol 25 Button
on (release) {
_root.play();
}
Symbol 29 MovieClip Frame 1
stop();
act = false;
Symbol 29 MovieClip Frame 10
stop();
Symbol 33 MovieClip Frame 1
frame._alpha = 0;
Symbol 46 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 86 MovieClip [achievement] Frame 133
this.removeMovieClip();
Symbol 90 MovieClip Frame 1
onEnterFrame = function () {
if (_root.bossMode) {
gotoAndStop (2);
}
};
stop();
Symbol 94 MovieClip [ball] Frame 1
stop();
Symbol 111 MovieClip Frame 1
this._visible = false;
Symbol 121 MovieClip Frame 1
_alpha = 0;
Symbol 125 MovieClip [beaker] Frame 1
stop();
Symbol 130 MovieClip Frame 1
this._visible = false;
Symbol 152 MovieClip Frame 1
stop();
onEnterFrame = function () {
i = 1;
while (i < 11) {
if (_root["ach" + i] == true) {
this["ach" + i].gotoAndStop(2);
}
i++;
}
};
if (_root.tMili != undefined) {
_root.oldMili = _root.tMili;
if (_root.tSeconds <= 9) {
oldSecondsDisp = "0" + _root.tSeconds;
} else {
oldSecondsDisp = _root.tSeconds;
}
if (_root.tMinutes <= 9) {
oldMinutesDisp = "0" + _root.tMinutes;
} else {
oldMinutesDisp = _root.tMinutes;
}
_root.oldLevel = _root.level;
_root.oldDeaths = _root.deaths;
} else {
if (_root.oldSeconds <= 9) {
oldSecondsDisp = "0" + _root.oldSeconds;
} else {
oldSecondsDisp = _root.oldSeconds;
}
if (_root.tMinutes <= 9) {
oldMinutesDisp = "0" + _root.oldMinutes;
} else {
oldMinutesDisp = _root.oldMinutes;
}
}
Symbol 157 Button
on (release) {
play();
}
Symbol 161 Button
on (release) {
play();
}
Symbol 165 MovieClip [complete1] Frame 1
this.swapDepths(_root.k++);
trace("IMLOADED");
Symbol 165 MovieClip [complete1] Frame 35
if ((_root.curSurg == 1) && (!_root.ach1)) {
_root.ach1 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "APPRENTICE";
shel.reasoning = "Complete the first surgery";
shel.achPatches.gotoAndStop(1);
}
if ((_root.curSurg == 2) && (!_root.ach2)) {
_root.ach2 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "BRAIN SURGEON";
shel.reasoning = "Complete the 2nd surgery";
shel.achPatches.gotoAndStop(2);
}
if ((_root.curSurg == 4) && (!_root.ach4)) {
_root.ach4 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "MASTER SURGEON";
shel.reasoning = "Complete the game";
shel.achPatches.gotoAndStop(4);
}
Symbol 165 MovieClip [complete1] Frame 120
_root.ambience.swapDepths(_root.k++);
_root.ambience.removeMovieClip();
_root._x = 0;
_root._y = 0;
_root._alpha = 100;
stopAllSounds();
for (i in _root) {
if ((typeof(_root[i]) == "movieclip") && (_root[i]._name != this._name)) {
_root[i].removeMovieClip();
}
}
_root.bottomBar._visible = false;
Symbol 165 MovieClip [complete1] Frame 121
if ((!_root.ach5) && (_root.healthDisp <= 5)) {
_root.ach5 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "TAKE THE PAIN";
shel.reasoning = "<5% on completion";
shel.achPatches.gotoAndStop(5);
}
Symbol 165 MovieClip [complete1] Frame 122
_root.saveGame();
Symbol 165 MovieClip [complete1] Frame 133
var t1 = (_root.tSeconds + " seconds");
var t2 = (_root.healthDisp + "%");
var t3 = (("Surgery " + _root.curSurg) + " complete!");
switch (_root.curSurg) {
case 1 :
var t5 = "Good job medic. You are on your way to becoming a great doctor!";
break;
case 2 :
var t5 = "Good job. We are on route to a clear victory!";
break;
case 4 :
var t5 = "You are lucky to be alive. Amazing job medic.";
}
Symbol 165 MovieClip [complete1] Frame 147
stop();
mrBtn.onRelease = function () {
play();
};
Symbol 165 MovieClip [complete1] Frame 177
_root.curSurg++;
if (_root.curSurg == 5) {
play();
} else {
_root.init(_root.curSurg);
_root.bottomBar._visible = true;
this.removeMovieClip();
}
Symbol 165 MovieClip [complete1] Frame 235
stop();
Symbol 165 MovieClip [complete1] Frame 265
stopAllSounds();
Symbol 165 MovieClip [complete1] Frame 426
_root.curSurg = 1;
_root.gotoAndStop("menu");
this.removeMovieClip();
Symbol 175 Button
on (release) {
play();
}
Symbol 253 Button
on (release) {
this.removeMovieClip();
}
Symbol 254 MovieClip [easterEgg] Frame 1
if (!_root.ach8) {
_root.ach8 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "EASTER EGG";
shel.reasoning = "You found it!";
shel.achPatches.gotoAndStop(8);
}
Symbol 254 MovieClip [easterEgg] Frame 10
stop();
Symbol 254 MovieClip [easterEgg] Frame 25
_root.saveGame();
Symbol 254 MovieClip [easterEgg] Frame 1232
stop();
Symbol 268 MovieClip [forceps] Frame 1
stop();
Symbol 272 MovieClip [hotIron] Frame 1
stop();
Symbol 277 MovieClip [knife] Frame 1
stop();
Symbol 292 MovieClip Frame 1
gotoAndStop(random(2) + 2);
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 12
gotoAndStop (1);
Symbol 293 MovieClip Frame 17
stop();
_parent._alpha = random(50) + 50;
Symbol 294 MovieClip [maggotLoad] Frame 1
counter = random(10) + 1;
count = 0;
onEnterFrame = function () {
if (activ) {
count++;
if (count == counter) {
counter = random(10) + 1;
play();
count = 0;
_rotation = (_rotation + (15 - random(30)));
}
}
};
stop();
activ = true;
Symbol 297 MovieClip [needle] Frame 1
stop();
Symbol 331 MovieClip Frame 199
stop();
Symbol 335 MovieClip [pusLoad1] Frame 3
stop();
Symbol 339 MovieClip [ragger] Frame 1
stop();
Symbol 339 MovieClip [ragger] Frame 21
stop();
Symbol 349 Button
on (release) {
play();
}
Symbol 353 Button
on (release) {
_root.gotoAndStop("menu");
this.removeMovieClip();
}
Symbol 357 Button
on (release) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 360 MovieClip [redOut] Frame 1
stop();
Symbol 360 MovieClip [redOut] Frame 25
_root.onEnterFrame = null;
stopAllSounds();
Symbol 360 MovieClip [redOut] Frame 26
for (i in _root) {
if ((typeof(_root[i]) == "movieclip") && (_root[i]._name != this._name)) {
_root[i].removeMovieClip();
}
}
_root.saveGame();
Symbol 360 MovieClip [redOut] Frame 128
stop();
Symbol 360 MovieClip [redOut] Frame 139
stopAllSounds();
_root.init(_root.curSurg);
this.removeMovieClip();
Symbol 366 MovieClip [sawLoad] Frame 3
startDrag (saw, true, -100, 0, 100, 0);
target = 1;
onEnterFrame = function () {
if ((target == 1) && (saw.hitA.hitTest(hitB))) {
target = 2;
_root.chalStars++;
if (_root.chalStars == 5) {
_root.chalStars = 0;
_root.tween();
this.gotoAndStop(1);
saw.stopDrag();
this.startDrag(true);
} else {
_root.nextFrame();
}
trace("HITA");
} else if ((target == 2) && (saw.hitA.hitTest(hitA))) {
target = 1;
trace("HIDB");
}
};
Symbol 374 MovieClip [scissorsLoad] Frame 1
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 100
stop();
Symbol 383 MovieClip [shotGlass] Frame 10
stop();
Symbol 383 MovieClip [shotGlass] Frame 20
_root.tabAlcohol();
Symbol 386 MovieClip [stab] Frame 17
_root.useNeedle = true;
_root.needle._visible = true;
this.removeMovieClip();
Symbol 402 MovieClip [syringe] Frame 1
stop();
Symbol 402 MovieClip [syringe] Frame 5
_root.nextFrame();
Symbol 402 MovieClip [syringe] Frame 13
_root.nextFrame();
Symbol 402 MovieClip [syringe] Frame 21
_root.nextFrame();
Symbol 402 MovieClip [syringe] Frame 28
stop();
_root.tween();
Symbol 421 MovieClip Frame 1
stop();
Symbol 427 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 436 MovieClip Frame 81
_root.nextFrame();
Symbol 450 MovieClip Frame 282
stop();
Symbol 453 MovieClip Frame 4
stop();
Symbol 454 MovieClip Frame 104
_root.nextFrame();
Symbol 474 Button
on (release) {
_root.savefile.data.oldName = _root.oldName;
play();
}
Symbol 475 Button
on (release) {
play();
}
Symbol 478 MovieClip Frame 1
_root.oldName = "Me";
Symbol 478 MovieClip Frame 10
stop();
Symbol 478 MovieClip Frame 51
_root.play();
Symbol 483 Button
on (release) {
if (notBusy) {
ep.play();
notBusy = false;
}
}
Symbol 487 Button
on (release) {
if (notBusy) {
ls.play();
notBusy = false;
}
}
Symbol 490 Button
on (release) {
_root.curSurg = 1;
fade.play();
}
Symbol 494 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 498 Button
on (release) {
if (notBusy) {
ql.play();
notBusy = false;
}
}
Symbol 501 Button
on (release) {
play();
}
Symbol 527 MovieClip Frame 1
onEnterFrame = function () {
i = 1;
while (i < 11) {
if (_root["ach" + i] == true) {
this["ach" + i].gotoAndStop(2);
this["achh" + i]._visible = true;
} else {
this["achh" + i]._visible = false;
}
i++;
}
};
Symbol 528 MovieClip Frame 1
stop();
Symbol 528 MovieClip Frame 10
stop();
Symbol 528 MovieClip Frame 20
_root.notBusy = true;
Symbol 530 Button
on (release) {
shel = attachMovie("easterEgg", "ee", k++);
shel._x = 325;
shel._y = 200;
}
Symbol 535 Button
on (release) {
stopAllSounds();
play();
}
Symbol 538 Button
on (release) {
nextFrame();
_root.triggerDeath();
}
Symbol 539 Button
on (release) {
stopAllSounds();
_root.gotoAndStop("newProfile");
}
Symbol 540 Button
on (release) {
play();
}
Symbol 541 MovieClip Frame 1
stop();
Symbol 541 MovieClip Frame 10
stop();
Symbol 541 MovieClip Frame 19
_root.notBusy = true;
Symbol 547 Button
on (release) {
stopAllSounds();
_root.curSurg = 1;
_root.fade.play();
}
Symbol 554 Button
on (release) {
stopAllSounds();
_root.curSurg = 2;
_root.fade.play();
}
Symbol 555 MovieClip Frame 1
if (_root.ach1) {
nextFrame();
stop();
} else {
stop();
}
Symbol 561 Button
on (release) {
stopAllSounds();
_root.curSurg = 3;
_root.fade.play();
}
Symbol 562 MovieClip Frame 1
if (_root.ach2) {
nextFrame();
stop();
} else {
stop();
}
Symbol 569 Button
on (release) {
stopAllSounds();
_root.curSurg = 4;
_root.fade.play();
}
Symbol 570 MovieClip Frame 1
if (_root.ach3) {
nextFrame();
stop();
} else {
stop();
}
Symbol 572 MovieClip Frame 1
stop();
Symbol 572 MovieClip Frame 21
stop();
Symbol 572 MovieClip Frame 30
_root.notBusy = true;
Symbol 574 MovieClip Frame 21
stop();
Symbol 574 MovieClip Frame 40
_root.nextFrame();
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 10
stop();
Symbol 668 Button
on (press) {
if (_quality == "HIGH") {
_quality = "MEDIUM";
} else if (_quality == "MEDIUM") {
_quality = "LOW";
} else if (_quality == "LOW") {
_quality = "HIGH";
}
}
Symbol 671 Button
on (release) {
if (volumeOn) {
globalVolume.setVolume(0);
} else {
globalVolume.setVolume(100);
}
volumeOn = !volumeOn;
}
Symbol 676 Button
on (release) {
fader.play();
}
Symbol 678 MovieClip Frame 10
stop();
Symbol 678 MovieClip Frame 25
_root.nextFrame();
_root.fump();
Symbol 678 MovieClip Frame 40
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 695 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local5 = sX / this._width;
var _local4 = sY / this._height;
_root._x = cX - ((this._x + _parent._x) * _local5);
_root._y = cY - ((this._y + _parent._y) * _local4);
_root._xscale = 100 * _local5;
_root._yscale = 100 * _local4;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_root._xscale = 100;
_root._yscale = 100;
_root._x = 0;
_root._y = 0;
}
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_root);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 700 MovieClip Frame 5
stop();
Symbol 709 MovieClip Frame 5
stop();
Symbol 715 MovieClip Frame 5
stop();
Symbol 721 MovieClip Frame 5
stop();
Symbol 724 MovieClip Frame 1
stop();
if (_root.ambienceOn) {
play();
}
Symbol 730 MovieClip Frame 10
stop();
Symbol 739 MovieClip Frame 1
stop();
this._visible = false;
tw = random(6) + 1;
counter = 0;
activ = true;
onEnterFrame = function () {
counter++;
if (counter == tw) {
this._visible = true;
play();
onEnterFrame = null;
}
};
Symbol 739 MovieClip Frame 10
stop();
Symbol 739 MovieClip Frame 11
_root.lastX = this._x;
_root.lastY = this._y;
Symbol 739 MovieClip Frame 20
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 752 MovieClip Frame 1
_root.needlePoint._visible = false;
Symbol 752 MovieClip Frame 32
_root.play();
_root.needlePoint._visible = true;
Symbol 752 MovieClip Frame 33
_root.needlePoint._visible = true;
Symbol 771 MovieClip Frame 10
this.stop();
Symbol 772 MovieClip Frame 1
stop();
Symbol 785 MovieClip Frame 4
stop();
Symbol 793 MovieClip Frame 20
stop();
Symbol 793 MovieClip Frame 40
stop();
Symbol 796 MovieClip Frame 12
stop();
Symbol 848 MovieClip Frame 5
stop();
Symbol 849 MovieClip Frame 1
stop();
if (_root.ambienceOn) {
play();
}
Symbol 914 MovieClip Frame 7
stop();
Symbol 927 MovieClip Frame 20
stop();
Symbol 927 MovieClip Frame 40
stop();
Symbol 938 MovieClip Frame 20
stop();
Symbol 938 MovieClip Frame 40
stop();
Symbol 955 MovieClip Frame 1
_root.needlePoint._visible = false;
Symbol 955 MovieClip Frame 2
_root.needlePoint._visible = true;
Symbol 955 MovieClip Frame 3
this._visible = false;
stop();
Symbol 987 MovieClip Frame 20
stop();
Symbol 987 MovieClip Frame 40
stop();
Symbol 1000 MovieClip Frame 10
stop();
Symbol 1003 MovieClip Frame 1
_root.needlePoint._visible = false;
Symbol 1003 MovieClip Frame 20
_root.play();
_root.needlePoint._visible = true;
Symbol 1003 MovieClip Frame 21
_root.needlePoint._visible = true;
Symbol 1086 MovieClip Frame 1
stop();
if (_root.ambienceOn) {
play();
}
Symbol 1153 MovieClip Frame 1
stop();
Symbol 1153 MovieClip Frame 2
stop();
Symbol 1153 MovieClip Frame 75
stop();
_root.tween();
Symbol 1206 Button
on (release) {
play();
}
Symbol 1222 MovieClip Frame 45
_root.onEnterFrame = null;
_root.ambience.stop();
_root.bandages.removeMovieClip();
Symbol 1222 MovieClip Frame 127
stopAllSounds();
Symbol 1222 MovieClip Frame 258
if (!_root.ach3) {
_root.ach3 = true;
shel = _root.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 260;
shel.title = "INFECTION";
shel.reasoning = "Complete the 3rd surgery";
shel.achPatches.gotoAndStop(3);
}
Symbol 1222 MovieClip Frame 276
stop();
Symbol 1222 MovieClip Frame 546
_root.curSurg++;
_root.init(4);
this.swapDepths(k++);
this.removeMovieClip();
Symbol 1234 MovieClip Frame 45
_root.tween();
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 1245 MovieClip Frame 20
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 1259 MovieClip Frame 1
_root.needlePoint._visible = false;
Symbol 1259 MovieClip Frame 30
_root.needlePoint._visible = true;
this.swapDepths(_root.k++);
this.removeMovieClip();
Symbol 1304 MovieClip Frame 100
stop();
_root.nextFrame();