Frame 4
bytesTotal = this.getBytesTotal();
bytesLoaded = this.getBytesLoaded();
if ((bytesLoaded >= bytesTotal) and (bytesTotal != 0)) {
gotoAndPlay ("EXI");
}
Frame 17
bytesTotal = this.getBytesTotal();
bytesLoaded = this.getBytesLoaded();
KBloaded = Math.ceil(bytesLoaded / 1000);
KBtotal = Math.ceil(bytesTotal / 1000);
frame = int(bytesLoaded / (bytesTotal / 100));
LB.gotoAndStop(frame);
LB.percent = frame + "%";
LB.KBloaded = KBloaded;
LB.KBtotal = KBtotal;
if (bytesLoaded >= bytesTotal) {
bytesTotal = 0;
bytesLoaded = 0;
LB.gotoAndStop(100);
LB.percent = "100%";
LB.KBloaded = KBtotal;
LB.KBtotal = KBtotal;
nextFrame();
play();
} else {
gotoAndPlay ("PRE");
}
Frame 28
gotoAndPlay (31);
Frame 31
trace("#INC : jrv_game_tapper_main.as");
trace("-----------------------------------");
_quality = "MEDIUM";
gObj = new Object();
gObj.holdingIconOffset = 3;
gObj.scoreField = score_txt;
gObj.scoreDigits = 6;
gObj.scoreAnimLinkage = scoreAnim;
gObj.initGame = function () {
gObj.gameState = -1;
popOvers_mc.gotoAndPlay("INTRO");
};
gObj.gameOver = function () {
gObj.gameState = -1;
clearInterval(gObj.env.spawnIntID);
gObj.soundCon.musicObj.stop();
gObj.soundCon.sfx1Obj.stop();
gObj.soundCon.sfx2Obj.stop();
gObj.player.idleStopTimer();
gObj.player._mc.gotoAndStop("PSTAND");
popOvers_mc.gotoAndPlay("GAMEOVER");
};
gObj.startGame = function () {
gObj.npc.clearAllNPC();
gObj.gameState = 1;
gObj.initEnvironment();
gObj.initPlayer();
gObj.initNPC();
gObj.env.spawnStartTimer();
gObj.scores.initScores();
popOvers_mc.gotoAndPlay("INTROOUT");
gObj.soundCon.sfxPlay(gObj.soundCon.musicObj, "musicLoop5", 50, 9999);
};
gObj.initEnvironment = function () {
gObj.env = new Object();
gObj.env.counterArray = new Array({npcState:1, medState:0}, {npcState:1, medState:0}, {npcState:0, medState:0}, {npcState:0, medState:0});
gObj.env.spawnIntID = null;
gObj.env.spawnIntNum = 0;
gObj.env.spawnRownCount = new Array(0, 0, 0, 0);
gObj.env.spawnTotalCount = 0;
gObj.env.spawnRowMax = 6;
gObj.env.spawnRowMaxArray = new Array(11, 9, 7, 6);
gObj.env.spawnTotalMax = 1000;
gObj.env.spawnIntLevel = 5;
gObj.env.clientsServed = 0;
clientsServed_txt.text = gObj.env.clientsServed;
gObj.env.rowMax = 3;
gObj.env.clientsServedUpdate = function (amt) {
gObj.env.clientsServed = gObj.env.clientsServed + amt;
clientsServed_txt.text = gObj.env.clientsServed;
switch (gObj.env.clientsServed) {
case 10 :
trace("*^*^* JUMP LEVEL *^*^*");
gObj.env.spawnIntLevel = 4;
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntID = setInterval(gObj.env.spawnIntFN, 600);
gObj.soundCon.sfxPlay(gObj.soundCon.musicObj, "musicLoop4", 60, 9999);
return;
case 20 :
trace("*^*^* JUMP LEVEL *^*^*");
gObj.env.spawnIntLevel = 3;
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntID = setInterval(gObj.env.spawnIntFN, 550);
gObj.soundCon.sfxPlay(gObj.soundCon.musicObj, "musicLoop3", 65, 9999);
return;
case 40 :
trace("*^*^* JUMP LEVEL *^*^*");
gObj.env.spawnIntLevel = 2;
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntID = setInterval(gObj.env.spawnIntFN, 500);
gObj.soundCon.sfxPlay(gObj.soundCon.musicObj, "musicLoop2", 70, 9999);
return;
case 80 :
trace("*^*^* JUMP LEVEL *^*^*");
gObj.env.spawnIntLevel = 1;
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntID = setInterval(gObj.env.spawnIntFN, 400);
gObj.soundCon.sfxPlay(gObj.soundCon.musicObj, "musicLoop1", 80, 9999);
return;
case 125 :
trace("*^*^* JUMP LEVEL *^*^*");
gObj.env.spawnIntLevel = 0;
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntID = setInterval(gObj.env.spawnIntFN, 300);
}
};
gObj.env.spawnStartTimer = function () {
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntID = setInterval(gObj.env.spawnIntFN, 600);
};
gObj.env.spawnIntFN = function () {
gObj.env.spawnIntNum++;
if (gObj.env.spawnIntNum > gObj.env.spawnIntLevel) {
trace("** SPAWN NPC ** : level:" + gObj.env.spawnIntLevel);
gObj.npc.spawnNPC();
gObj.env.spawnResetTimer();
}
gObj.npc.updateNPC();
};
gObj.env.spawnStopTimer = function () {
clearInterval(gObj.env.spawnIntID);
gObj.env.spawnIntNum = 0;
};
gObj.env.spawnResetTimer = function () {
gObj.env.spawnIntNum = 0;
};
gObj.env.medShelf = new Array(0, 1, 2, 3);
gObj.env.medShelfOffset = 2;
var thisMed = 0;
while (thisMed < gObj.env.medShelf.length) {
var medRef = eval ("smed" + thisMed);
medRef.gotoAndStop(thisMed + gObj.env.medShelfOffset);
thisMed++;
}
};
gObj.resetGame = function () {
};
gObj.keyCheckDown = function (num) {
trace("PLAYER:-----------\npos:" + gObj.player.pos);
trace("_x:" + gObj.player._mc._x);
trace("_y:" + gObj.player._mc._y);
if (gObj.gameState == 1) {
switch (num) {
case -4 :
trace("keyCheckDown:SPACE");
break;
case 2 :
trace("keyCheckDown:UP");
if (gObj.player.animState == 0) {
gObj.player.pMove(-1);
}
break;
case 4 :
trace("keyCheckDown:DOWN");
if (gObj.player.animState == 0) {
gObj.player.pMove(1);
}
break;
case 1 :
trace("keyCheckDown:LEFT");
if (gObj.player.animState == 0) {
if (gObj.player.holding == 0) {
gObj.player.pGetPut("TAK");
return(undefined);
}
if (gObj.player.holding == 1) {
gObj.player.pGetPut("PUT");
return(undefined);
}
}
break;
case 3 :
trace("keyCheckDown:RIGHT");
if (gObj.player.animState != 0) {
break;
}
if (gObj.player.holding != -1) {
break;
}
gObj.player.pGetPut("GET");
}
}
if (gObj.gameState == -1) {
if (!(num === -4)) {
} else {
trace("SPACE");
gObj.startGame();
}
}
};
gObj.keyCheckUp = function (num) {
if (gObj.gameState == 1) {
switch (num) {
case 1 :
case 3 :
}
}
};
trace("#INC : jrv_game_tapper_player.as");
trace("-----------------------------------");
gObj.initPlayer = function () {
trace("Init Player");
gObj.player = new Object();
gObj.player.pMove = function (dir) {
var _local1 = dir;
trace("gObj.player.pMove:" + _local1);
gObj.player.pos = gObj.player.pos + (-1 * _local1);
if ((gObj.player.pos <= gObj.player.posMax) && (gObj.player.pos >= gObj.player.posMin)) {
if (_local1 == 1) {
gObj.player.animState = 1;
gObj.player._mc.gotoAndPlay("PDOWN");
gObj.soundCon.sfxPlay(gObj.soundCon.sfx1Obj, "snd_move", 100, 0);
} else {
gObj.player.animState = 1;
gObj.player._mc.gotoAndPlay("PUP");
gObj.soundCon.sfxPlay(gObj.soundCon.sfx1Obj, "snd_move", 100, 0);
}
} else {
gObj.player.pos = gObj.player.pos + _local1;
}
};
gObj.player.pPlace = function (pos) {
var _local1 = pos;
if (_local1 == undefined) {
_local1 = gObj.player.pos;
}
gObj.player._mc._x = gObj.player.posArray[_local1].x;
gObj.player._mc._y = gObj.player.posArray[_local1].y;
gObj.player.animState = 0;
trace("-- PLACE --");
trace(gObj.player.posArray[_local1].x);
trace(gObj.player.posArray[_local1].y);
};
gObj.player.pGetPut = function (getPut) {
var _local1 = getPut;
if (_local1 == undefined) {
_local1 = "NONE";
}
trace("gObj.player.pGetPut:" + _local1);
switch (_local1) {
case "TAK" :
gObj.player.takeOrder();
return;
case "GET" :
gObj.player.fillOrder();
return;
case "PUT" :
gObj.player.putOrder();
}
};
gObj.player.takeOrder = function () {
trace("-- TAKE ORDER --");
var _local2 = gObj.player.pos;
var _local1 = gObj.npc.npcOnScreenArray[_local2][0];
var thisState = _local1.state;
var thisPillIndex = _local1.pillIndex;
var _local3 = int(_local1._x);
var endX = (gObj.npc.endPosArray[_local2] - 20);
trace("POS:" + _local2);
trace("thisNPCref:" + _local1);
trace("thisState:" + thisState);
trace("thisX:" + _local3);
if ((((_local3 >= endX) && (_local1.state != 0)) && (_local1.state != 2)) && (_local1.state != undefined)) {
if (gObj.env.counterArray[_local2].medState == 0) {
gObj.player._mc.gotoAndPlay("PLEFT");
gObj.soundCon.sfxPlay(gObj.soundCon.sfx1Obj, "snd_move", 100, 0);
gObj.player.animState = 1;
gObj.player.holding = -1;
gObj.player.pillIndexNEED = thisPillIndex;
trace(" > TAKEN");
inv_mc.gotoAndStop(gObj.player.holding + gObj.holdingIconOffset);
_local1.gotoAndPlay("NWAIT");
_local1.state = 1;
gObj.player.lastNPCref = _local1;
}
}
};
gObj.player.fillOrder = function () {
trace("-- FILL ORDER --");
var _local1 = gObj.player.pos;
if (gObj.player.holding == -1) {
gObj.player._mc.gotoAndPlay("PRIGHT");
gObj.soundCon.sfxPlay(gObj.soundCon.sfx1Obj, "snd_move", 100, 0);
gObj.player.animState = 1;
gObj.player.holding = 1;
trace(" > FILLED");
gObj.player.pillIndexGOT = _local1 + gObj.env.medShelfOffset;
inv_mc.pillIndex = gObj.player.pillIndexGOT;
if (gObj.player.pillIndexGOT != gObj.player.pillIndexNEED) {
gObj.soundCon.sfxPlay(gObj.soundCon.sfx2Obj, "snd_buzz", 100, 0);
gObj.scores.scoreClipWithAnim(-50, gObj.player._mc, 0, -70);
gObj.npc.resetOrderNPC(gObj.player.lastNPCref);
gObj.player.holding = 0;
inv_mc.gotoAndStop(gObj.player.holding + gObj.holdingIconOffset);
} else {
gObj.soundCon.sfxPlay(gObj.soundCon.sfx2Obj, "snd_ding", 100, 0);
gObj.scores.scoreClipWithAnim(50, gObj.player._mc, 0, -70);
inv_mc.gotoAndStop(gObj.player.holding + gObj.holdingIconOffset);
}
}
};
gObj.player.putOrder = function () {
trace("-- PUT ORDER --");
var pos = gObj.player.pos;
var thisNPCref = gObj.npc.npcOnScreenArray[pos][0];
var thisState = thisNPCref.state;
var thisX = int(thisNPCref._x);
trace("POS:" + pos);
trace("thisNPCref:" + thisNPCref);
trace("thisState:" + thisState);
trace("thisX:" + thisX);
trace("medState:" + gObj.env.counterArray[pos].medState);
if ((gObj.player.holding == 1) && (gObj.env.counterArray[pos].medState == 0)) {
gObj.player._mc.gotoAndPlay("PLEFT");
gObj.soundCon.sfxPlay(gObj.soundCon.sfx1Obj, "snd_move", 100, 0);
gObj.player.animState = 1;
gObj.player.holding = 0;
trace(" > PUT");
inv_mc.gotoAndStop(gObj.player.holding + gObj.holdingIconOffset);
var counterMed_mc = eval ("cmed" + pos);
if (thisState != 1) {
counterMed_mc.gotoAndPlay("WAS");
gObj.env.counterArray[pos].medState = 0;
gObj.soundCon.sfxPlay(gObj.soundCon.sfx2Obj, "snd_buzz", 100, 0);
gObj.scores.scoreClipWithAnim(-100, counterMed_mc);
gObj.npc.resetOrderNPC(gObj.player.lastNPCref);
gObj.player.holding = 0;
inv_mc.gotoAndStop(gObj.player.holding + gObj.holdingIconOffset);
} else {
trace("PUTTING >>>>");
counterMed_mc.gotoAndPlay("PUT");
gObj.env.counterArray[pos].medState = 1;
gObj.soundCon.sfxPlay(gObj.soundCon.sfx2Obj, "snd_ding", 100, 0);
gObj.scores.scoreClipWithAnim(100, counterMed_mc);
thisNPCref.gotoAndPlay("NTAKE");
thisNPCref.state = 2;
counterMed_mc.pos = pos;
counterMed_mc.thisNPCref = thisNPCref;
counterMed_mc.gotoAndPlay("TAK");
gObj.env.counterArray[pos].medState = 0;
gObj.env.clientsServedUpdate(1);
}
}
};
gObj.player.idleIntID = null;
gObj.player.idleIntNum = 0;
gObj.player.idleStartTimer = function () {
clearInterval(gObj.player.idleIntID);
gObj.player.idleIntID = setInterval(gObj.player.idleIntFN, 5000);
trace("IDLEINTID:" + gObj.player.idleIntID);
};
gObj.player.idleIntFN = function () {
trace("checking to see if I'm bored");
gObj.player.idleIntNum++;
if (gObj.player.idleIntNum > 3) {
gObj.player._mc.gotoAndPlay("PBORED");
clearInterval(gObj.player.idleIntID);
gObj.player.idleIntNum = 0;
}
};
gObj.player.idleStopTimer = function () {
clearInterval(gObj.player.idleIntID);
gObj.player.idleIntNum = 0;
};
gObj.player.posArray = new Array({x:543, y:405}, {x:510, y:338}, {x:476, y:273}, {x:443, y:208});
gObj.player._mc = player_mc;
gObj.player.pos = 1;
gObj.player.posMax = 3;
gObj.player.posMin = 0;
gObj.player.animState = 0;
gObj.player.pPlace(gObj.player.pos);
gObj.player.holding = 0;
gObj.player.lastNPCref = 0;
gObj.player._mc.gotoAndPlay("NSTAND");
};
trace("#INC : jrv_game_tapper_npc.as");
trace("-----------------------------------");
gObj.initNPC = function () {
gObj.npc = new Object();
gObj.npc.spawnNPC = function () {
var nmin = 0;
var nmax = 3;
var spRow = (Math.round(Math.random() * (nmax - nmin)) + nmin);
var spRef = eval ("npcspawn" + spRow);
var spRowRef = gObj.npc.npcOnScreenArray[spRow];
var countInRow = spRowRef.length;
var maxInRow = gObj.env.spawnRowMaxArray[spRow];
trace("----------------------------------");
trace((((("CHECKING ROW:" + spRow) + " CURR:") + countInRow) + " MAX:") + maxInRow);
trace("----------------------------------");
if (countInRow < maxInRow) {
var nmin = 0;
var nmax = 4;
var spNPC = (Math.round(Math.random() * (nmax - nmin)) + nmin);
var spLink = gObj.npc.npcLinkageArray[spNPC];
gObj.env.spawnRownCount[spRow] = gObj.env.spawnRownCount[spRow] + 1;
var spRefNew = spRef.createEmptyMovieClip("NPC" + gObj.env.spawnRownCount[spRow], gObj.env.spawnRownCount[spRow]);
var newClipRef = spRefNew.attachMovie(spLink, "NPC_mc", 1);
spRowRef.push(newClipRef);
newClipRef.rowIndex = spRow;
newClipRef.state = 0;
newClipRef.endPos = gObj.npc.endPosArray[spRow];
var nmin = 0;
var nmax = 3;
var spPill = (Math.round(Math.random() * (nmax - nmin)) + nmin);
newClipRef.pillIndex = spPill + gObj.env.medShelfOffset;
newClipRef.stepForward = function () {
gObj.npc.stepForward(this);
};
newClipRef.moveForward = function () {
gObj.npc.moveForward(this);
};
gObj.env.spawnTotalCount++;
} else {
trace(spRow + "^^^**** THE ROW IS FULL ****^^^");
gObj.gameOver();
}
};
gObj.npc.stepForward = function (clipRef) {
var _local2 = clipRef;
var _local1 = _local2.rowIndex;
if (_local2.state == 0) {
var thisNPC = getIndexOf(gObj.npc.npcOnScreenArray[_local1], _local2);
var thisNPCref = gObj.npc.npcOnScreenArray[_local1][thisNPC];
var _local3 = gObj.npc.npcOnScreenArray[_local1][thisNPC - 1];
trace("thisRow:" + _local1);
trace("thisNPC:" + thisNPC);
trace("nextNPCref:" + _local3);
if (_local3 != null) {
trace("---------------------");
var thisState = thisNPCref.state;
var thisX = int(thisNPCref._x);
var nextState = _local3.state;
var nextX = int(_local3._x);
if ((nextState != 0) && ((thisX + gObj.npc.charStepWidth) >= (nextX - (gObj.npc.charStepWidth * 2)))) {
trace("FREEEZE!!");
thisNPCref.state = -1;
thisNPCref._x = nextX - (gObj.npc.charStepWidth * 2);
thisNPCref.gotoAndPlay("NSTAND");
}
trace("---------------------");
}
_local2.gotoAndPlay("NWALK");
}
if (_local2._x < gObj.npc.endPosArray[_local1]) {
var thisNPC = getIndexOf(gObj.npc.npcOnScreenArray[_local1], _local2);
var thisNPCref = gObj.npc.npcOnScreenArray[_local1][thisNPC];
var _local3 = gObj.npc.npcOnScreenArray[_local1][thisNPC - 1];
var thisState = thisNPCref.state;
var thisX = int(thisNPCref._x);
var nextState = _local3.state;
var nextX = int(_local3._x);
if ((_local3 == null) or ((thisX + gObj.npc.charStepWidth) < (nextX - (gObj.npc.charStepWidth * 2)))) {
_local2.gotoAndPlay("NWALK");
}
}
};
gObj.npc.moveForward = function (clipRef) {
var _local1 = clipRef;
_local1._x = _local1._x + gObj.npc.charStepWidth;
if (_local1._x >= (_local1.endPos - 10)) {
_local1.state = -1;
_local1._x = _local1.endPos;
_local1.gotoAndPlay("NSTAND");
} else {
_local1.gotoAndPlay("NSTAND");
}
};
gObj.npc.updateNPC = function () {
var _local2 = 0;
while (_local2 < gObj.env.spawnRownCount.length) {
var _local1 = 0;
while (_local1 < gObj.npc.npcOnScreenArray[_local2].length) {
var _local3 = gObj.npc.npcOnScreenArray[_local2][_local1];
_local3.stepForward();
_local1++;
}
_local2++;
}
};
gObj.npc.clearAllNPC = function () {
var _local2 = 0;
while (_local2 < gObj.env.spawnRownCount.length) {
var _local1 = 0;
while (_local1 < gObj.npc.npcOnScreenArray[_local2].length) {
var _local3 = gObj.npc.npcOnScreenArray[_local2][_local1];
removeMovieClip(_local3);
_local1++;
}
_local2++;
}
};
gObj.npc.removeNPC = function (pos, ref) {
var _local3 = pos;
removeMovieClip(ref);
trace(":: SPL ::" + gObj.npc.npcOnScreenArray[_local3]);
gObj.npc.npcOnScreenArray[_local3].splice(0, 1);
trace(":: ICE ::" + gObj.npc.npcOnScreenArray[_local3]);
var _local2 = 0;
while (_local2 < gObj.npc.npcOnScreenArray[_local3].length) {
var _local1 = gObj.npc.npcOnScreenArray[_local3][_local2];
trace(">>> revive:" + _local1);
gObj.npc.nextStepForward(_local1);
_local2++;
}
};
gObj.npc.resetOrderNPC = function (thisNPCref) {
var _local1 = thisNPCref;
trace(">> resetOrderNPC >> " + _local1);
_local1.state = -1;
_local1.gotoAndPlay("NSTAND");
};
gObj.npc.nextStepForward = function (clipRef) {
var _local3 = clipRef;
var _local1 = _local3.rowIndex;
var _local2 = getIndexOf(gObj.npc.npcOnScreenArray[_local1], _local3);
var thisNPCref = gObj.npc.npcOnScreenArray[_local1][_local2];
var nextNPCref = gObj.npc.npcOnScreenArray[_local1][_local2 - 1];
trace("---------------------");
_local3.gotoAndPlay("NWALK");
};
gObj.npc.endPosArray = new Array(380, 325, 275, 220);
gObj.npc.npcLinkageArray = new Array("NPC_A", "NPC_B", "NPC_C", "NPC_D", "NPC_E");
gObj.npc.npcOnScreenArray = new Array([], [], [], []);
gObj.player.pos = 1;
gObj.npc.posMax = 3;
gObj.npc.posMin = 0;
gObj.npc.animState = 0;
gObj.npc.charStepWidth = 40;
gObj.npc.pPlace(gObj.player.pos);
gObj.npc.holding = 0;
};
trace("#INC: jrv_helpers_keyboard.as");
trace("-----------------------------------");
myListener = new Object();
myListener.onKeyDown = function () {
num = Key.getCode() - 36;
if (num > 48) {
num = num - 48;
}
trace("Key.getCode():" + Key.getCode());
trace("num:" + num);
gObj.keyCheckDown(num);
};
myListener.onKeyUp = function () {
num = Key.getCode() - 36;
if (num > 48) {
num = num - 48;
}
gObj.keyCheckUp(num);
};
Key.addListener(myListener);
trace("#INC : jrv_helpers_score.as");
trace("-----------------------------------");
if (gObj.scores == undefined) {
gObj.scores = new Object();
}
gObj.scores.initScores = function () {
gObj.scores.scoreAnimIterator = 0;
gObj.scores.score = 0;
gObj.scores.scoreField = gObj.scoreField;
if (gObj.scores.scoreField == undefined) {
gObj.scores.scoreField = score_txt;
}
gObj.scores.scoreDigits = gObj.scoreDigits;
if (gObj.scores.scoreDigits == undefined) {
gObj.scores.scoreDigits = 6;
}
gObj.scores.scoreAnimLinkage = gObj.scoreAnimLinkage;
if (gObj.scores.scoreAnimLinkage == undefined) {
gObj.scores.scoreAnimLinkage = "scoreAnim";
}
gObj.scores.updateScore();
};
gObj.scores.scoreClipWithAnim = function (val, scoreClipRef, xOffset, yOffset) {
var _local1 = yOffset;
var _local2 = xOffset;
if (_local2 == undefined) {
_local2 = 0;
}
if (_local1 == undefined) {
_local1 = 0;
}
gObj.scores.incScore(val);
args = {lX:scoreClipRef._x + _local2, lY:scoreClipRef._y + _local1, val:val, linkageID:undefined, targetClip:undefined, clipDepth:undefined};
gObj.scores.scoreAnim(args);
};
gObj.scores.leadingZeros = function (score, chars) {
var _local2 = String(score);
var zero = "0";
var _local3 = chars;
var charsInScore = String(score).length;
var _local1 = 0;
while (_local1 < (_local3 - charsInScore)) {
_local1++;
_local2 = zero.concat(_local2);
}
return(_local2);
};
gObj.scores.scoreAnim = function (args) {
var lX = args.lX;
var lY = args.lY;
var _local2 = args.val;
var linkageID = args.linkageID;
if (linkageID == undefined) {
linkageID = gObj.scores.scoreAnimLinkage;
}
var _local3 = args.targetClip;
if (_local3 == undefined) {
_local3 = _root;
}
var clipDepth = args.clipDepth;
if (clipDepth == undefined) {
clipDepth = _local3.getNextHighestDepth();
}
if (_local2 > 0) {
_local2 = "+" + _local2;
}
var newClip_mc = ("sa" + gObj.scores.scoreAnimIterator);
var _local1 = _local3.attachMovie(linkageID, newClip_mc, clipDepth);
_local1._x = lX;
_local1._y = lY;
_local1.scoreClip_mc.animScore_txt.text = _local2;
_local1.scoreClipS_mc.animScore_txt.text = _local2;
_local1.play();
};
gObj.scores.incScore = function (amount) {
trace("incScore:" + amount);
gObj.scores.score = gObj.scores.score + amount;
if (gObj.scores.score < 0) {
gObj.scores.score = 0;
}
gObj.scores.updateScore();
};
gObj.scores.updateScore = function () {
var _local1 = gObj.scores.leadingZeros(gObj.scores.score, gObj.scores.scoreDigits);
gObj.scores.scoreField.text = _local1;
trace("updateScore:" + _local1);
};
trace("#INC: jrv_helpers_sound.as");
trace("-----------------------------------");
if (soundCon == undefined) {
gObj.soundCon = new Object();
}
if (oRoot == undefined) {
gObj.oRoot = this;
}
gObj.soundCon.musicState = true;
gObj.soundCon.sfx1Obj = new Sound(_root.createEmptyMovieClip("sfx1Obj_mc", 1000));
gObj.soundCon.sfx2Obj = new Sound(_root.createEmptyMovieClip("sfx2Obj_mc", 1001));
gObj.soundCon.musicObj = new Sound(_root.createEmptyMovieClip("musicObj_mc", 1003));
gObj.soundCon.sfxPlay = function (channelRef, linkage, vol, loops) {
var _local1 = channelRef;
if (gObj.soundCon.musicState) {
trace((((_local1 + " :playing: ") + linkage) + " :vol:") + vol);
_local1.stop();
_local1.setVolume(vol);
_local1.attachSound(linkage);
_local1.start(0, loops);
}
};
gObj.soundCon.musicOff = function () {
gObj.soundCon.musicState = false;
gObj.soundCon.musicObj.stop();
gObj.soundCon.sfx1Obj.stop();
gObj.soundCon.sfx2Obj.stop();
};
gObj.soundCon.musicON = function () {
gObj.soundCon.musicObj.stop();
gObj.soundCon.sfx1Obj.stop();
gObj.soundCon.sfx2Obj.stop();
gObj.soundCon.musicState = true;
};
trace("#INC : jrv_helpers_arrays.as");
trace("-----------------------------------");
Array.prototype.indexOf = function (val) {
var _local2 = this;
var _local3 = val;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == _local3) {
return(_local1);
}
_local1++;
}
return(-1);
};
getIndexOf = function (arr, val) {
var _local2 = arr;
var _local3 = val;
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1] == _local3) {
return(_local1);
}
_local1++;
}
return(-1);
};
gObj.initGame();
stop();
Symbol 31 MovieClip Frame 1
stop();
Symbol 35 MovieClip [NPC_E] Frame 5
stop();
Symbol 35 MovieClip [NPC_E] Frame 16
moveForward();
stop();
Symbol 35 MovieClip [NPC_E] Frame 17
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
trace("my pill is " + myPill);
Symbol 35 MovieClip [NPC_E] Frame 22
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
stop();
Symbol 35 MovieClip [NPC_E] Frame 23
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
Symbol 35 MovieClip [NPC_E] Frame 31
stop();
Symbol 48 MovieClip [NPC_D] Frame 5
stop();
Symbol 48 MovieClip [NPC_D] Frame 16
moveForward();
stop();
Symbol 48 MovieClip [NPC_D] Frame 17
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
trace("my pill is " + myPill);
Symbol 48 MovieClip [NPC_D] Frame 22
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
stop();
Symbol 48 MovieClip [NPC_D] Frame 23
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
Symbol 48 MovieClip [NPC_D] Frame 31
stop();
Symbol 61 MovieClip [NPC_C] Frame 5
stop();
Symbol 61 MovieClip [NPC_C] Frame 16
moveForward();
stop();
Symbol 61 MovieClip [NPC_C] Frame 17
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
trace("my pill is " + myPill);
Symbol 61 MovieClip [NPC_C] Frame 22
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
stop();
Symbol 61 MovieClip [NPC_C] Frame 23
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
Symbol 61 MovieClip [NPC_C] Frame 31
stop();
Symbol 74 MovieClip [NPC_B] Frame 5
stop();
Symbol 74 MovieClip [NPC_B] Frame 16
moveForward();
stop();
Symbol 74 MovieClip [NPC_B] Frame 17
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
trace("my pill is " + myPill);
Symbol 74 MovieClip [NPC_B] Frame 22
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
stop();
Symbol 74 MovieClip [NPC_B] Frame 23
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
Symbol 74 MovieClip [NPC_B] Frame 32
stop();
Symbol 87 MovieClip [NPC_A] Frame 5
stop();
Symbol 87 MovieClip [NPC_A] Frame 14
moveForward();
stop();
Symbol 87 MovieClip [NPC_A] Frame 17
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
trace("my pill is " + myPill);
Symbol 87 MovieClip [NPC_A] Frame 22
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
stop();
Symbol 87 MovieClip [NPC_A] Frame 24
var myPill = this.pillIndex;
pill.gotoAndStop(myPill);
Symbol 87 MovieClip [NPC_A] Frame 32
stop();
Symbol 91 MovieClip [scoreAnim] Frame 15
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 11
stop();
Symbol 163 MovieClip Frame 21
stop();
Symbol 178 MovieClip Frame 1
_parent.stop();
this._visible = false;
Symbol 178 MovieClip Frame 2
timeNow = getTimer();
if (secs == undefined) {
secs = 0;
}
targetTime = timeNow + (secs * 1000);
Symbol 178 MovieClip Frame 4
if (getTimer() < targetTime) {
gotoAndPlay ("timeWait");
}
Symbol 178 MovieClip Frame 5
trace("timER: PLAY _parent timeline");
_parent.play();
Symbol 179 MovieClip Frame 1
var x = 0;
Symbol 179 MovieClip Frame 8
x++;
if (x < 10) {
gotoAndPlay ("taploop");
}
Instance of Symbol 178 MovieClip "timeER_mc" in Symbol 179 MovieClip Frame 10
//component parameters
onClipEvent (initialize) {
secs = 1;
}
Symbol 180 MovieClip Frame 4
_parent.gObj.player.idleStartTimer();
Symbol 180 MovieClip Frame 5
stop();
Symbol 180 MovieClip Frame 22
_parent.gObj.player.pPlace();
gotoAndPlay ("PSTAND");
stop();
Symbol 180 MovieClip Frame 34
_parent.gObj.player.pPlace();
gotoAndPlay ("PSTAND");
stop();
Symbol 180 MovieClip Frame 38
dust_mc.gotoAndPlay("TOWARD");
Symbol 180 MovieClip Frame 42
_parent.gObj.player.pPlace();
gotoAndPlay ("PSTAND");
stop();
Symbol 180 MovieClip Frame 46
dust_mc.gotoAndPlay("AWAY");
Symbol 180 MovieClip Frame 51
_parent.gObj.player.pPlace();
gotoAndPlay ("PSTAND");
stop();
Symbol 180 MovieClip Frame 55
_parent.gObj.player.idleStopTimer();
Symbol 180 MovieClip Frame 56
stop();
Symbol 180 MovieClip Frame 61
stop();
Symbol 183 MovieClip Frame 2
stop();
Symbol 183 MovieClip Frame 9
stop();
Symbol 183 MovieClip Frame 23
_parent.gObj.npc.removeNPC(this.pos, this.thisNPCref);
stop();
Symbol 183 MovieClip Frame 38
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 212 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 1
stop();
Symbol 213 MovieClip Frame 4
var myPill = pillIndex;
imed.gotoAndStop(myPill);
trace("my bottle's pill is " + myPill);
Symbol 218 Button
on (press) {
if ((gObj.soundCon.musicState == null) or (gObj.soundCon.musicState == true)) {
music_mc.gotoAndStop("off");
gObj.soundCon.musicOff();
} else {
music_mc.gotoAndStop("on");
gObj.soundCon.musicON();
if (gObj.gameState != -1) {
gObj.soundCon.sfxPlay(gObj.soundCon.musicObj, "PitfallMidi", 50, 999);
}
}
}
Symbol 241 Button
on (press) {
_parent.gObj.startGame();
}
Symbol 242 Button
on (press) {
gotoAndPlay ("INST");
}
Symbol 268 MovieClip Frame 1
stop();
Symbol 279 Button
on (press) {
var frameToGo = (instPage_mc._currentframe - 1);
if (frameToGo < 1) {
frameToGo = 5;
}
instPage_mc.gotoAndStop(frameToGo);
}
Symbol 280 Button
on (press) {
var frameToGo = (instPage_mc._currentframe + 1);
if (frameToGo > 5) {
frameToGo = 1;
}
instPage_mc.gotoAndStop(frameToGo);
}
Symbol 286 MovieClip Frame 2
stop();
Symbol 286 MovieClip Frame 11
stop();
Symbol 286 MovieClip Frame 17
gotoAndPlay ("MT");
Symbol 286 MovieClip Frame 30
stop();
Symbol 286 MovieClip Frame 40
stop();
Symbol 286 MovieClip Frame 48
gotoAndPlay ("MT");