Frame 1
function playAgain() {
stopAllSounds();
var _local2 = 0;
while (_local2 < numHairHolders) {
var _local7 = _root["hairHolder" + _local2];
_local7.swapDepths(10);
_local7.removeMovieClip();
_local2++;
}
if (customer == 4) {
_local2 = 0;
while (_local2 < numWeedHolders) {
var _local8 = _root["weedHolder" + _local2];
_local8.swapDepths(10);
_local8.removeMovieClip();
_local2++;
}
}
if (customer == 8) {
_local2 = 0;
while (_local2 < numClumpHolders) {
var _local6 = _root["clumpHolder" + _local2];
_local6.swapDepths(10);
_local6.removeMovieClip();
_local2++;
}
}
if (customer == 5) {
_local2 = 0;
while (_local2 < numBumpHolders) {
var _local5 = _root["bumpHolder" + _local2];
_local5.swapDepths(10);
_local5.removeMovieClip();
_local2++;
}
} else if (customer == 7) {
_local2 = 0;
while (_local2 < numTumors) {
var _local5 = _root["bumpHolder" + _local2];
_local5.swapDepths(10);
_local5.removeMovieClip();
_local2++;
}
}
if (customer == 9) {
_local2 = 0;
while (_local2 < numCartilageHolders) {
var _local3 = _root["cartilageHolder" + _local2];
_local3.swapDepths(10);
_local3.removeMovieClip();
_local2++;
}
}
if (customer == 6) {
_local2 = 0;
while (_local2 < numWireHolders) {
var _local4 = _root["wireHolder" + _local2];
_local4.swapDepths(10);
_local4.removeMovieClip();
_local2++;
}
}
if (customer == 10) {
_root.confrontationStarted = false;
_root.ratArrived = false;
ratHole._visible = false;
}
_root.darkness._visible = false;
_root.scissorsOffset = 0;
_root.xFRICTION = 0.25;
_root.xVelocity = 0;
_root.scissorsPos = 0;
_root.headLeftBoundary = -62;
_root.headRightBoundary = -669;
_root.mouseTurnLeft = 390;
_root.mouseTurnRight = 410;
_root.savings = 0;
_root.payment = 20;
_root.timeLimit = 60;
_root.timeLeft = 0;
_root.customer = 0;
_root.leftBorder = -400;
_root.rightBorder = 400;
_root.directionChange = 10;
_root.framesPlayed = 0;
_root.secondsPlayed = 0;
_root.gamePaused = true;
_root.confrontationStarted = false;
_root.ratAppears = false;
_root.mouseDied = false;
_root.tutorialFinished = false;
_root.narrationEnded = false;
_root.randomize = false;
_root.moneyGoal = 130;
_root.highScoreRound = false;
_root.highScoreTime = 0;
_root.highScoreTimeLimit = 14400;
_root.endGame = false;
_root.customer02met = false;
_root.customer03met = false;
_root.customer04met = false;
_root.customer05met = false;
_root.customer06met = false;
_root.customer07met = false;
_root.customer08met = false;
_root.customer09met = false;
_root.customer10met = false;
_root.difficult = false;
_root.gameRound = 0;
_root.customer02round = 0;
_root.customer03round = 0;
_root.customer04round = 0;
_root.customer05round = 0;
_root.customer06round = 0;
_root.customer07round = 0;
_root.customer08round = 0;
_root.customer09round = 0;
_root.seat01customer = 0;
_root.seat02customer = 0;
_root.seat03customer = 0;
_root.seat04customer = 0;
_root.tempInitNumber = 0;
_root.leftLimit = 0;
_root.fl = 500;
_root.gravity = 0.5;
_root.vx = 0;
_root.vy = 0;
_root.vz = 0;
_root.friction = 0.98;
_root.vpX = Stage.width / 2;
_root.vpY = (Stage.height / 2) - 90;
_root.numHairHolders = 200;
_root.numWireHolders = 25;
_root.numBumpHolders = 10;
_root.numCartilageHolders = 10;
_root.numTumors = 10;
_root.numWeedHolders = 10;
_root.numClumpHolders = 20;
_root.waitingRoom.customer01._x = -500;
_root.waitingRoom.customer02._x = -500;
_root.waitingRoom.customer03._x = -500;
_root.waitingRoom.customer04._x = -500;
_root.waitingRoom.customer05._x = -500;
_root.waitingRoom.customer06._x = -500;
_root.waitingRoom.customer07._x = -500;
_root.waitingRoom.customer08._x = -500;
_root.waitingRoom.customer09._x = -500;
_root.waitingRoom.customer10._x = -500;
_root.titleCard._visible = true;
_root.titleCard.gotoAndPlay(1);
_root.titleCard.scissors.play();
_root.titleNarration._visible = true;
dayOver._x = -1000;
_root.customerIntro.gotoAndStop("noText");
init();
_root.waitingRoom._visible = true;
_root.waitingRoom.gotoAndStop("menu");
}
System.security.allowDomain("shockwave.com", "intranet.shockwave.com", "gameblast.shockwave.com", "www.shockwave.com", "dev.shockwave.com", "stage.shockwave.com");
_level0.swHighScoreObject = new Object();
_level0.swHighScoreObject.showTab = "view";
_level0.swHighScoreObject.gameId = "blazingscissors";
_level0.swHighScoreObject.gameTitle = "Blazing Scissors!";
_level0.swHighScoreObject.screenWidth = 800;
_level0.swHighScoreObject.screenHeight = 600;
_level0.swHighScoreObject.scoreDescriptor = "dollars";
_level0.swHighScoreObject.numPlayers = 1;
_level0.swHighScoreObject.player1Score = 123456789 /* 0x75BCD15 */;
_level0.swHighScoreObject.player2Score = 0;
_level0.swHighScoreObject.player3Score = 0;
_level0.swHighScoreObject.player4Score = 0;
_level0.HSHubURL = "http://www.shockwave.com/content/highscores/scorez-2002.swf";
Frame 2
function init() {
if (customer == 6) {
var _local4 = 0;
while (_local4 < numWireHolders) {
var _local3 = attachMovie("wireHolder", "wireHolder" + _local4, _local4 + 100);
if (_local4 == 1) {
_local3.x = -1500;
} else if (_local4 == 2) {
_local3.x = 1500;
}
_local3.x = (Math.random() * 3000) - 1500;
_local3.y = 400;
_local3.z = Math.random() * 8000;
_local4++;
}
} else {
var _local4 = 0;
while (_local4 < numHairHolders) {
var _local2 = attachMovie("hairHolder", "hairHolder" + _local4, _local4 + 100);
if (_local4 == 1) {
_local2.x = -1500;
} else if (_local4 == 2) {
_local2.x = 1500;
}
_local2.x = (Math.random() * 3000) - 1500;
_local2.y = 400;
_local2.z = Math.random() * 8000;
_local2.highlightCircle._visible = true;
_local4++;
}
}
scissors.hair01._visible = true;
scissors.hair02._visible = true;
scissors.hair03._visible = true;
scissors.hair04._visible = true;
scissors.hair05._visible = true;
timeLimit = 60;
leftBorder = -400;
rightBorder = 400;
numHairHolders = 200;
darkness._visible = false;
head.gotoAndStop("sloped");
vpY = (Stage.height / 2) - 90;
head._x = -339;
scissors._x = 436;
customer01intro5._x = -500;
ending._visible = false;
if (customer == 1) {
timeLimit = 45;
payment = 0;
head.gotoAndStop("dummy");
}
if (customer == 2) {
if (_local2.x > 0) {
_local2.highlightCircle._visible = true;
}
timeLimit = 45;
}
if (customer == 3) {
leftBorder = -300;
rightBorder = 300;
timeLimit = 45;
}
if (customer == 4) {
payment = 0;
scissors.scissors.gotoAndStop(1);
scissors.hair01._visible = false;
scissors.hair02._visible = false;
scissors.hair03._visible = false;
scissors.hair04._visible = false;
scissors.hair05._visible = false;
}
if (customer == 5) {
timeLimit = 30;
}
if (customer == 6) {
scissors.scissors.gotoAndStop(1);
scissors.hair01._visible = false;
scissors.hair02._visible = false;
scissors.hair03._visible = false;
scissors.hair04._visible = false;
scissors.hair05._visible = false;
timeLimit = 30;
head.gotoAndStop("robot");
}
if (customer == 7) {
timeLimit = 30;
}
if (customer == 8) {
payment = -20;
scissors.scissors.gotoAndStop(1);
scissors.hair01._visible = false;
scissors.hair02._visible = false;
scissors.hair03._visible = false;
scissors.hair04._visible = false;
scissors.hair05._visible = false;
}
if (customer == 9) {
darkness._visible = true;
darkness._alpha = 100;
numHairHolders = 100;
head.gotoAndStop("blank");
timeLimit = 30;
noseBreathing = new Sound();
noseBreathing.attachSound("noseBreathing");
noseBreathing.start();
_root.noseBreathing.onSoundComplete = function () {
noseBreathing.start();
};
}
if (customer == 10) {
timeLimit = 120;
}
customerIntro.gotoAndPlay(1);
if (customer == 4) {
var _local4 = 0;
while (_local4 < numWeedHolders) {
var _local8 = attachMovie("weedHolder", "weedHolder" + _local4, _local4 + 600);
_local8.x = (Math.random() * 1500) - 750;
_local8.y = 400;
_local8.z = _local4 * 1490;
_local4++;
}
}
if (customer == 8) {
var _local4 = 0;
while (_local4 < numClumpHolders) {
var _local7 = attachMovie("clumpHolder", "clumpHolder" + _local4, _local4 + 600);
_local7.x = (Math.random() * 1500) - 750;
_local7.y = 400;
_local7.z = _local4 * 1490;
_local4++;
}
}
if (customer == 5) {
var _local4 = 0;
while (_local4 < numBumpHolders) {
var _local6 = attachMovie("bumpHolder", "bumpHolder" + _local4, _local4 + 700);
_local6.x = (Math.random() * 2500) - 1250;
_local6.y = 400;
_local6.z = _local4 * 1490;
_local4++;
}
} else if (customer == 7) {
var _local4 = 0;
while (_local4 < numTumors) {
var _local6 = attachMovie("bumpHolder", "bumpHolder" + _local4, _local4 + 700);
_local6.x = (Math.random() * 1600) - 800;
_local6.y = 400;
_local6.z = _local4 * 1490;
_local4++;
}
}
if (customer == 9) {
var _local4 = 0;
while (_local4 < numCartilageHolders) {
var _local5 = attachMovie("cartilageHolder", "cartilageHolder" + _local4, _local4 + 700);
_local5.x = (Math.random() * 2500) - 1250;
_local5.y = 400;
_local5.z = _local4 * 1490;
_local4++;
}
}
payOutBox_x = -500;
}
function onEnterFrame() {
if (!gamePaused) {
if (confrontationStarted || (ratAppears)) {
vz = 0;
} else if (customer == 3) {
vz = -100;
} else if (customer == 5) {
vz = -40;
} else if (customer == 6) {
vz = -40;
} else if (customer == 7) {
vz = -40;
} else if (customer == 9) {
vz = -40;
} else {
vz = -80;
}
if (gameRound == 1) {
vz = vz * 1.5;
} else if (gameRound == 2) {
vz = vz * 2;
} else if (gameRound == 3) {
vz = vz * 2.5;
} else if (gameRound == 4) {
vz = vz * 3;
} else if (gameRound == 5) {
vz = vz * 3.5;
} else if (gameRound == 6) {
vz = vz * 4;
} else if (gameRound == 7) {
vz = vz * 4.5;
}
if (difficult) {
vz = vz * 2;
}
if (ratAppears) {
ratHole._visible = true;
ratHole.play();
ratAppears = false;
}
if (confrontationStarted) {
mouseConfrontation._visible = true;
mouseConfrontation.play();
} else {
mouseConfrontation._visible = false;
mouseConfrontation.gotoAndStop(1);
}
if (_xmouse < mouseTurnLeft) {
if (hairHolder1.x < -100) {
vx = vx + (((mouseTurnLeft - _xmouse) / mouseTurnLeft) * 1);
} else {
vx = 0;
}
} else if (_xmouse > mouseTurnRight) {
if (hairHolder2.x > 800) {
vx = vx - (((_xmouse - mouseTurnRight) / (800 - mouseTurnRight)) * 1);
} else {
vx = 0;
}
}
vy = vy - gravity;
vx = vx * friction;
vy = vy * friction;
vz = vz * friction;
if (customer != 6) {
var _local9 = 0;
while (_local9 < numHairHolders) {
var _local3 = this["hairHolder" + _local9];
vy = 0;
_local3.x = _local3.x + vx;
_local3.y = _local3.y + vy;
_local3.z = _local3.z + vz;
if (_local3.z <= (-fl)) {
_local3.gotoAndStop(1);
_local3.z = _local3.z + 8000;
} else if (_local3.z > (8000 - fl)) {
_local3.z = _local3.z - 8000;
}
var _local8 = fl / (fl + _local3.z);
_local3._xscale = (_local3._yscale = _local8 * 200);
_local3._x = vpX + (_local3.x * _local8);
_local3._y = vpY + (_local3.y * _local8);
_local3.swapDepths(-_local3.z);
if (customer == 8) {
_local3._yscale = _local3._yscale / 2;
}
_local9++;
}
} else {
var _local9 = 0;
while (_local9 < numWireHolders) {
var _local5 = this["wireHolder" + _local9];
vy = 0;
_local5.x = _local5.x + vx;
_local5.y = _local5.y + vy;
_local5.z = _local5.z + vz;
if (_local5.z <= (-fl)) {
_local5.gotoAndStop(1);
_local5.z = _local5.z + 8000;
} else if (_local5.z > (8000 - fl)) {
_local5.z = _local5.z - 8000;
}
var _local8 = fl / (fl + _local5.z);
_local5._xscale = (_local5._yscale = _local8 * 200);
_local5._x = vpX + (_local5.x * _local8);
_local5._y = vpY + (_local5.y * _local8);
_local5.swapDepths(-_local5.z);
_local9++;
}
}
if (customer == 4) {
var _local9 = 0;
while (_local9 < numWeedHolders) {
var _local7 = this["weedHolder" + _local9];
vy = 0;
_local7.x = _local7.x + vx;
_local7.y = _local7.y + vy;
_local7.z = _local7.z + vz;
if (_local7.z <= (-fl)) {
_local7.x = (Math.random() * 1500) - 750;
_local7.z = _local7.z + 15000;
} else if (_local7.z > (15000 - fl)) {
_local7.z = _local7.z - 15000;
}
var _local8 = fl / (fl + _local7.z);
_local7._xscale = (_local7._yscale = _local8 * 200);
_local7._x = vpX + (_local7.x * _local8);
_local7._y = vpY + (_local7.y * _local8);
_local7.swapDepths(-_local7.z);
_local9++;
}
}
if (customer == 8) {
var _local9 = 0;
while (_local9 < numClumpHolders) {
var _local6 = this["clumpHolder" + _local9];
vy = 0;
_local6.x = _local6.x + vx;
_local6.y = _local6.y + vy;
_local6.z = _local6.z + vz;
if (_local6.z <= (-fl)) {
_local6.x = (Math.random() * 1500) - 750;
_local6.z = _local6.z + 15000;
} else if (_local6.z > (15000 - fl)) {
_local6.z = _local6.z - 15000;
}
var _local8 = fl / (fl + _local6.z);
_local6._xscale = (_local6._yscale = _local8 * 200);
_local6._x = vpX + (_local6.x * _local8);
_local6._y = vpY + (_local6.y * _local8);
_local6.swapDepths(-_local6.z);
_local9++;
}
}
if (customer == 5) {
var _local9 = 0;
while (_local9 < numBumpHolders) {
var _local4 = this["bumpHolder" + _local9];
vy = 0;
_local4.x = _local4.x + vx;
_local4.y = _local4.y + vy;
_local4.z = _local4.z + vz;
if (_local4.z <= (-fl)) {
_local4.gotoAndStop(1);
_local4.x = (Math.random() * 2500) - 1250;
_local4.z = _local4.z + 15000;
} else if (_local4.z > (15000 - fl)) {
_local4.z = _local4.z - 15000;
}
var _local8 = fl / (fl + _local4.z);
_local4._xscale = (_local4._yscale = _local8 * 200);
_local4._x = vpX + (_local4.x * _local8);
_local4._y = vpY + (_local4.y * _local8);
_local4.swapDepths(-_local4.z);
_local9++;
}
} else if (customer == 7) {
var _local9 = 0;
while (_local9 < numTumors) {
var _local4 = this["bumpHolder" + _local9];
vy = 0;
_local4.x = _local4.x + vx;
_local4.y = _local4.y + vy;
_local4.z = _local4.z + vz;
if (_local4.z <= (-fl)) {
_local4.gotoAndStop(1);
_local4.x = (Math.random() * 2500) - 1250;
_local4.z = _local4.z + 15000;
} else if (_local4.z > (15000 - fl)) {
_local4.z = _local4.z - 15000;
}
var _local8 = fl / (fl + _local4.z);
_local4._xscale = (_local4._yscale = _local8 * 200);
_local4._x = vpX + (_local4.x * _local8);
_local4._y = vpY + (_local4.y * _local8);
_local4.swapDepths(-_local4.z);
_local9++;
}
}
if (customer == 9) {
var _local9 = 0;
while (_local9 < numCartilageHolders) {
var _local2 = this["cartilageHolder" + _local9];
vy = 0;
_local2.x = _local2.x + vx;
_local2.y = _local2.y + vy;
_local2.z = _local2.z + vz;
if (_local2.z <= (-fl)) {
_local2.gotoAndStop(1);
_local2.x = (Math.random() * 1500) - 750;
_local2.z = _local2.z + 15000;
} else if (_local2.z > (15000 - fl)) {
_local2.gotoAndStop(1);
_local2.x = (Math.random() * 2500) - 1250;
_local2.z = _local2.z + 15000;
}
var _local8 = fl / (fl + _local2.z);
_local2._xscale = (_local2._yscale = _local8 * 200);
_local2._x = vpX + (_local2.x * _local8);
_local2._y = vpY + (_local2.y * _local8);
_local2.swapDepths(-_local2.z);
_local9++;
}
}
if ((_xmouse < mouseTurnLeft) && (head._x < headLeftBoundary)) {
head._x = head._x + (((mouseTurnLeft - _xmouse) / mouseTurnLeft) * 10);
if (customer != 6) {
if (head._x > -440) {
vpY = vpY + (((mouseTurnLeft - _xmouse) / mouseTurnLeft) * 1.25);
} else {
vpY = vpY - (((mouseTurnLeft - _xmouse) / mouseTurnLeft) * 1.25);
}
}
} else if ((_xmouse > mouseTurnRight) && (head._x > headRightBoundary)) {
head._x = head._x - (((_xmouse - mouseTurnRight) / (800 - mouseTurnRight)) * 10);
if (customer != 6) {
if (head._x > -440) {
vpY = vpY - (((_xmouse - mouseTurnRight) / (800 - mouseTurnRight)) * 1.25);
} else {
vpY = vpY + (((_xmouse - mouseTurnRight) / (800 - mouseTurnRight)) * 1.25);
}
}
}
scissorsPos = scissors._x + scissorsOffset;
if (_xmouse < (scissorsPos - 100)) {
xVelocity = xVelocity - 1;
if (scissors._rotation > -18) {
scissors._rotation--;
}
} else if (_xmouse > (scissorsPos + 100)) {
xVelocity = xVelocity + 1;
if (scissors._rotation < 18) {
scissors._rotation++;
}
}
if (xVelocity > 0) {
xVelocity = xVelocity - xFRICTION;
if (scissors._rotation < -3) {
scissors._rotation++;
}
} else if (xVelocity < 0) {
xVelocity = xVelocity + xFRICTION;
if (scissors._rotation > 3) {
scissors._rotation--;
}
}
scissors._x = scissors._x + xVelocity;
if (((customer == 2) or (customer == 6)) or (customer == 7)) {
leftBorder = leftBorder + directionChange;
rightBorder = rightBorder + directionChange;
if (leftBorder < -900) {
directionChange = -directionChange;
leftBorder = leftBorder + (directionChange * 2);
rightBorder = rightBorder + (directionChange * 2);
} else if (rightBorder > 900) {
directionChange = -directionChange;
leftBorder = leftBorder + (directionChange * 2);
rightBorder = rightBorder + (directionChange * 2);
}
} else if (customer == 3) {
leftBorder = leftBorder + directionChange;
rightBorder = rightBorder + directionChange;
if (leftBorder < -1000) {
directionChange = -directionChange;
leftBorder = leftBorder + (directionChange * 4);
rightBorder = rightBorder + (directionChange * 4);
} else if (rightBorder > 1000) {
directionChange = -directionChange;
leftBorder = leftBorder + (directionChange * 4);
rightBorder = rightBorder + (directionChange * 4);
}
}
if ((!confrontationStarted) || (confrontationStarted)) {
framesPlayed++;
secondsPlayed = framesPlayed / 24;
secondsPlayed = Math.round(secondsPlayed);
timeLeft = timeLimit - secondsPlayed;
if ((payment < 0) && (customer != 8)) {
gamePaused = true;
payment = -5;
payOut._x = 270;
payOut.box.text = ("The customer ran away! You lost $" + (-payment)) + " savings.";
savings = savings + payment;
} else if ((payment > -1) && (customer == 8)) {
gamePaused = true;
payment = 0;
payOut._x = 270;
payOut.box.text = "The customer is satistfied. You didn't lose anything.";
} else if (timeLeft == 0) {
if (customer == 1) {
gamePaused = true;
payment = 20;
savings = savings + payment;
customer01intro5._x = 205;
tutorialFinished = true;
} else if (!confrontationStarted) {
gamePaused = true;
payment = Math.round(payment);
payOut._x = 270;
payOut.box.text = ("All finished! You received $" + payment) + " for this haircut!";
savings = savings + payment;
} else {
gamePaused = true;
payment = 0;
payOut._x = 270;
payOut.box.text = ("You ran out of time! You received $" + payment) + " for this haircut.";
}
}
if (timeLeft == 105) {
ratAppears = true;
}
if (payment > 20) {
gamePaused = true;
payment = Math.round(payment);
payOut._x = 270;
payOut.box.text = ("All finished! You received $" + payment) + " for this haircut!";
savings = savings + payment;
}
if (confrontationStarted && (mouseConfrontation.mouseHealthPercent == 0)) {
gamePaused = true;
payment = Math.round(payment);
payOut._x = 270;
payOut.box.text = ("All finished! You received $" + payment) + " for this haircut!";
savings = savings + payment;
mouseDied = true;
mouseConfrontation.mouse.gotoAndPlay("explode");
scissors.scissors.stop();
}
if (confrontationStarted && (mouseConfrontation.scissorsHealthPercent == 0)) {
gamePaused = true;
scissors.gotoAndStop("explode");
}
}
scores.scoreBox.text = ((((("Savings: $" + savings) + "\nCustomer Pay: $") + payment) + "\nTime Left: ") + timeLeft) + " sec";
}
if (highScoreRound) {
highScoreTime++;
if (highScoreTime > highScoreTimeLimit) {
endGame = true;
}
}
if (endGame) {
gamePaused == true;
scissors.scissors.stop();
payment = 0;
dayOver._x = 200;
dayOver.dayOverText.text = ("The day is over. Final money earned is $" + savings) + ".";
highScoreRound = false;
}
}
var scissorsOffset = 0;
var xFRICTION = 0.25;
var xVelocity = 0;
var scissorsPos = 0;
var headLeftBoundary = -62;
var headRightBoundary = -669;
var mouseTurnLeft = 390;
var mouseTurnRight = 410;
var savings = 0;
var payment = 20;
var timeLimit = 60;
var timeLeft = 0;
var customer = 0;
var leftBorder = -400;
var rightBorder = 400;
var directionChange = 10;
var framesPlayed = 0;
var secondsPlayed = 0;
var gamePaused = true;
var confrontationStarted = false;
var ratAppears = false;
var mouseDied = false;
var tutorialFinished = false;
var narrationEnded = false;
var randomize = false;
var moneyGoal = 130;
var highScoreRound = false;
var highScoreTime = 0;
var highScoreTimeLimit = 14400;
var endGame = false;
var difficult = false;
var customer02met = false;
var customer03met = false;
var customer04met = false;
var customer05met = false;
var customer06met = false;
var customer07met = false;
var customer08met = false;
var customer09met = false;
var customer10met = false;
var gameRound = 0;
var customer02round = 0;
var customer03round = 0;
var customer04round = 0;
var customer05round = 0;
var customer06round = 0;
var customer07round = 0;
var customer08round = 0;
var customer09round = 0;
var seat01customer = 0;
var seat02customer = 0;
var seat03customer = 0;
var seat04customer = 0;
var tempInitNumber = 0;
var leftLimit = 0;
var fl = 500;
var gravity = 0.5;
var vx = 0;
var vy = 0;
var vz = 0;
var friction = 0.98;
var vpX = (Stage.width / 2);
var vpY = ((Stage.height / 2) - 90);
var numHairHolders = 200;
var numWireHolders = 25;
var numBumpHolders = 10;
var numCartilageHolders = 10;
var numTumors = 10;
var numWeedHolders = 10;
var numClumpHolders = 10;
mousePointer.swapDepths(950);
customer01intro5.swapDepths(990);
scissors.swapDepths(991);
darkness.swapDepths(999);
scores.swapDepths(1000);
payOut.swapDepths(1001);
mouseConfrontation.swapDepths(1002);
waitingRoom.swapDepths(1003);
customerIntro.swapDepths(1004);
dayOver.swapDepths(1005);
titleNarration.swapDepths(1009);
titleCard.swapDepths(1010);
scold.swapDepths(1011);
ending.swapDepths(1012);
masker.swapDepths(1050);
addictingGames.swapDepths(1051);
init();
payOut.onRelease = function () {
stopAllSounds();
var _local2 = 0;
while (_local2 < numHairHolders) {
var _local7 = _root["hairHolder" + _local2];
_local7.swapDepths(10);
_local7.removeMovieClip();
_local2++;
}
if (customer == 4) {
_local2 = 0;
while (_local2 < numWeedHolders) {
var _local8 = _root["weedHolder" + _local2];
_local8.swapDepths(10);
_local8.removeMovieClip();
_local2++;
}
}
if (customer == 8) {
_local2 = 0;
while (_local2 < numClumpHolders) {
var _local6 = _root["clumpHolder" + _local2];
_local6.swapDepths(10);
_local6.removeMovieClip();
_local2++;
}
}
if (customer == 5) {
_local2 = 0;
while (_local2 < numBumpHolders) {
var _local5 = _root["bumpHolder" + _local2];
_local5.swapDepths(10);
_local5.removeMovieClip();
_local2++;
}
} else if (customer == 7) {
_local2 = 0;
while (_local2 < numTumors) {
var _local5 = _root["bumpHolder" + _local2];
_local5.swapDepths(10);
_local5.removeMovieClip();
_local2++;
}
}
if (customer == 9) {
_local2 = 0;
while (_local2 < numCartilageHolders) {
var _local3 = _root["cartilageHolder" + _local2];
_local3.swapDepths(10);
_local3.removeMovieClip();
_local2++;
}
}
if (customer == 6) {
_local2 = 0;
while (_local2 < numWireHolders) {
var _local4 = _root["wireHolder" + _local2];
_local4.swapDepths(10);
_local4.removeMovieClip();
_local2++;
}
}
if (customer == 10) {
_root.confrontationStarted = false;
_root.ratArrived = false;
ratHole._visible = false;
}
_root.darkness._visible = false;
_root.waitingRoom._visible = true;
_root.waitingRoom.gotoAndStop("menu");
if ((savings >= moneyGoal) && (!highScoreRound)) {
ending._visible = true;
ending.play();
}
};
customer01intro5.onRelease = function () {
var _local2 = 0;
while (_local2 < numHairHolders) {
var _local3 = _root["hairHolder" + _local2];
_local3.swapDepths(10);
_local3.removeMovieClip();
_local2++;
}
_root.waitingRoom._visible = true;
_root.waitingRoom.gotoAndStop("menu");
};
titleCard.onRelease = function () {
_root.titleCard.scissors.stop();
_root.titleCard._visible = false;
};
dayOver.hotspot.onRelease = function () {
this.stop();
};
dayOver.playAgain.onRelease = function () {
stopAllSounds();
var _local2 = 0;
while (_local2 < numHairHolders) {
var _local7 = _root["hairHolder" + _local2];
_local7.swapDepths(10);
_local7.removeMovieClip();
_local2++;
}
if (customer == 4) {
_local2 = 0;
while (_local2 < numWeedHolders) {
var _local8 = _root["weedHolder" + _local2];
_local8.swapDepths(10);
_local8.removeMovieClip();
_local2++;
}
}
if (customer == 8) {
_local2 = 0;
while (_local2 < numClumpHolders) {
var _local6 = _root["clumpHolder" + _local2];
_local6.swapDepths(10);
_local6.removeMovieClip();
_local2++;
}
}
if (customer == 5) {
_local2 = 0;
while (_local2 < numBumpHolders) {
var _local5 = _root["bumpHolder" + _local2];
_local5.swapDepths(10);
_local5.removeMovieClip();
_local2++;
}
} else if (customer == 7) {
_local2 = 0;
while (_local2 < numTumors) {
var _local5 = _root["bumpHolder" + _local2];
_local5.swapDepths(10);
_local5.removeMovieClip();
_local2++;
}
}
if (customer == 9) {
_local2 = 0;
while (_local2 < numCartilageHolders) {
var _local3 = _root["cartilageHolder" + _local2];
_local3.swapDepths(10);
_local3.removeMovieClip();
_local2++;
}
}
if (customer == 6) {
_local2 = 0;
while (_local2 < numWireHolders) {
var _local4 = _root["wireHolder" + _local2];
_local4.swapDepths(10);
_local4.removeMovieClip();
_local2++;
}
}
if (customer == 10) {
_root.confrontationStarted = false;
_root.ratArrived = false;
ratHole._visible = false;
}
_root.darkness._visible = false;
_root.scissorsOffset = 0;
_root.xFRICTION = 0.25;
_root.xVelocity = 0;
_root.scissorsPos = 0;
_root.headLeftBoundary = -62;
_root.headRightBoundary = -669;
_root.mouseTurnLeft = 390;
_root.mouseTurnRight = 410;
_root.savings = 0;
_root.payment = 20;
_root.timeLimit = 60;
_root.timeLeft = 0;
_root.customer = 0;
_root.leftBorder = -400;
_root.rightBorder = 400;
_root.directionChange = 10;
_root.framesPlayed = 0;
_root.secondsPlayed = 0;
_root.gamePaused = true;
_root.confrontationStarted = false;
_root.ratAppears = false;
_root.mouseDied = false;
_root.tutorialFinished = false;
_root.narrationEnded = false;
_root.randomize = false;
_root.moneyGoal = 130;
_root.highScoreRound = false;
_root.highScoreTime = 0;
_root.highScoreTimeLimit = 14400;
_root.endGame = false;
_root.customer02met = false;
_root.customer03met = false;
_root.customer04met = false;
_root.customer05met = false;
_root.customer06met = false;
_root.customer07met = false;
_root.customer08met = false;
_root.customer09met = false;
_root.customer10met = false;
_root.difficult = false;
_root.gameRound = 0;
_root.customer02round = 0;
_root.customer03round = 0;
_root.customer04round = 0;
_root.customer05round = 0;
_root.customer06round = 0;
_root.customer07round = 0;
_root.customer08round = 0;
_root.customer09round = 0;
_root.seat01customer = 0;
_root.seat02customer = 0;
_root.seat03customer = 0;
_root.seat04customer = 0;
_root.tempInitNumber = 0;
_root.leftLimit = 0;
_root.fl = 500;
_root.gravity = 0.5;
_root.vx = 0;
_root.vy = 0;
_root.vz = 0;
_root.friction = 0.98;
_root.vpX = Stage.width / 2;
_root.vpY = (Stage.height / 2) - 90;
_root.numHairHolders = 200;
_root.numWireHolders = 25;
_root.numBumpHolders = 10;
_root.numCartilageHolders = 10;
_root.numTumors = 10;
_root.numWeedHolders = 10;
_root.numClumpHolders = 20;
_root.waitingRoom.customer01._x = -500;
_root.waitingRoom.customer02._x = -500;
_root.waitingRoom.customer03._x = -500;
_root.waitingRoom.customer04._x = -500;
_root.waitingRoom.customer05._x = -500;
_root.waitingRoom.customer06._x = -500;
_root.waitingRoom.customer07._x = -500;
_root.waitingRoom.customer08._x = -500;
_root.waitingRoom.customer09._x = -500;
_root.waitingRoom.customer10._x = -500;
_root.titleCard._visible = true;
_root.titleCard.gotoAndPlay(1);
_root.titleCard.scissors.play();
_root.titleNarration._visible = true;
_root.dayOver._x = -1000;
_root.customerIntro.gotoAndStop("noText");
init();
_root.waitingRoom._visible = true;
_root.waitingRoom.gotoAndStop("menu");
};
addictingGames.onRelease = function () {
getURL ("http://addictinggames.com", "_blank");
};
this.stop();
Symbol 11 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
this.stop();
Symbol 11 MovieClip Frame 16
this.stop();
Symbol 16 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
this.stop();
Symbol 16 MovieClip Frame 16
this.stop();
Symbol 21 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
this.stop();
Symbol 21 MovieClip Frame 16
this.stop();
Symbol 27 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
this.stop();
Symbol 27 MovieClip Frame 16
this.stop();
Symbol 28 MovieClip [clumpHolder] Frame 1
function init() {
weed01.gotoAndStop("weed");
weed02.gotoAndStop("weed");
weed03.gotoAndStop("weed");
weed04.gotoAndStop("weed");
weed05.gotoAndStop("weed");
weed01._visible = false;
weed02._visible = false;
weed03._visible = false;
weed04._visible = false;
weed05._visible = false;
var _local1 = (Math.random() * 4) + 1;
_local1 = Math.round(_local1);
if (_local1 == 1) {
weed01._visible = true;
} else if (_local1 == 2) {
weed02._visible = true;
} else if (_local1 == 3) {
weed03._visible = true;
} else if (_local1 == 4) {
weed04._visible = true;
} else if (_local1 == 5) {
weed05._visible = true;
}
}
init();
Symbol 31 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
Symbol 31 MovieClip Frame 19
this.stop();
Symbol 34 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
Symbol 34 MovieClip Frame 19
this.stop();
Symbol 37 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
Symbol 37 MovieClip Frame 21
this.stop();
Symbol 40 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
Symbol 40 MovieClip Frame 20
this.stop();
Symbol 43 MovieClip Frame 1
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot) && (!alreadyHit)) {
_root.payment = _root.payment + 0.5;
alreadyHit = true;
this.gotoAndPlay("cut");
_root.scissors.scissors.play();
}
}
var alreadyHit = false;
Symbol 43 MovieClip Frame 21
this.stop();
Symbol 44 MovieClip [weedHolder] Frame 1
function init() {
weed01.gotoAndStop("weed");
weed02.gotoAndStop("weed");
weed03.gotoAndStop("weed");
weed04.gotoAndStop("weed");
weed05.gotoAndStop("weed");
weed01._visible = false;
weed02._visible = false;
weed03._visible = false;
weed04._visible = false;
weed05._visible = false;
var _local1 = (Math.random() * 4) + 1;
_local1 = Math.round(_local1);
if (_local1 == 1) {
weed01._visible = true;
} else if (_local1 == 2) {
weed02._visible = true;
} else if (_local1 == 3) {
weed03._visible = true;
} else if (_local1 == 4) {
weed04._visible = true;
} else if (_local1 == 5) {
weed05._visible = true;
}
}
init();
Symbol 48 MovieClip Frame 1
this.stop();
Symbol 52 MovieClip Frame 1
this.stop();
Symbol 55 MovieClip Frame 1
this.stop();
Symbol 58 MovieClip Frame 1
this.stop();
Symbol 61 MovieClip Frame 1
this.stop();
Symbol 62 MovieClip [cartilageHolder] Frame 1
function init() {
cartilage01.gotoAndStop("cartilage");
cartilage02.gotoAndStop("cartilage");
cartilage03.gotoAndStop("cartilage");
cartilage04.gotoAndStop("cartilage");
cartilage05.gotoAndStop("cartilage");
cartilage01._visible = false;
cartilage02._visible = false;
cartilage03._visible = false;
cartilage04._visible = false;
cartilage05._visible = false;
var _local1 = (Math.random() * 4) + 1;
_local1 = Math.round(_local1);
if (_local1 == 1) {
cartilage01._visible = true;
} else if (_local1 == 2) {
cartilage02._visible = true;
} else if (_local1 == 3) {
cartilage03._visible = true;
} else if (_local1 == 4) {
cartilage04._visible = true;
} else if (_local1 == 5) {
cartilage05._visible = true;
}
}
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot)) {
_root.payment = _root.payment - 1;
cartilage01.gotoAndStop("blood");
cartilage02.gotoAndStop("blood");
cartilage03.gotoAndStop("blood");
cartilage04.gotoAndStop("blood");
cartilage05.gotoAndStop("blood");
}
}
init();
this.gotoAndStop("moving");
Symbol 67 MovieClip Frame 1
gotoAndStop (17);
Symbol 68 MovieClip Frame 1
this.stop();
Symbol 72 MovieClip Frame 1
this.stop();
Symbol 76 MovieClip Frame 1
this.stop();
Symbol 81 MovieClip Frame 1
this.stop();
Symbol 84 MovieClip Frame 1
this.stop();
Symbol 85 MovieClip [bumpHolder] Frame 1
function init() {
bump01.gotoAndStop("bump");
bump02.gotoAndStop("bump");
bump03.gotoAndStop("bump");
bump04.gotoAndStop("bump");
bump05.gotoAndStop("bump");
bump01._visible = false;
bump02._visible = false;
bump03._visible = false;
bump04._visible = false;
bump05._visible = false;
var _local1 = (Math.random() * 4) + 1;
_local1 = Math.round(_local1);
if (_local1 == 1) {
bump01._visible = true;
} else if (_local1 == 2) {
bump02._visible = true;
} else if (_local1 == 3) {
bump03._visible = true;
} else if (_local1 == 4) {
bump04._visible = true;
} else if (_local1 == 5) {
bump05._visible = true;
}
}
function onEnterFrame() {
if (this.hotspot.hitTest(_root.scissors.hotspot)) {
_root.payment = _root.payment - 1;
bump01.gotoAndStop("blood");
bump02.gotoAndStop("blood");
bump03.gotoAndStop("blood");
bump04.gotoAndStop("blood");
bump05.gotoAndStop("blood");
}
}
init();
gotoAndStop ("moving");
Symbol 98 MovieClip [wireHolder] Frame 1
function init() {
if (_root.customer == 6) {
if ((this.x > _root.leftBorder) and (this.x < _root.rightBorder)) {
var _local3 = (Math.random() * 3) + 1;
_local3 = Math.round(_local3);
if (_local3 == 1) {
gotoAndStop ("one");
} else if (_local3 == 2) {
gotoAndStop ("two");
} else if (_local3 == 3) {
gotoAndStop ("three");
} else if (_local3 == 4) {
gotoAndStop ("four");
}
} else {
var _local3 = (Math.random() * 3) + 1;
_local3 = Math.round(_local3);
if (_local3 == 1) {
gotoAndStop ("five");
} else if (_local3 == 2) {
gotoAndStop ("six");
} else if (_local3 == 3) {
gotoAndStop ("seven");
} else if (_local3 == 4) {
gotoAndStop ("eight");
}
red = true;
}
}
}
function onEnterFrame() {
if (_root.customer == 6) {
if (this.hitTest(_root.scissors.hotspot)) {
_root.scissors.scissors.play();
if (red) {
_root.payment = _root.payment - 0.2;
this.gotoAndPlay("explode");
} else {
this.gotoAndPlay("cut");
}
}
}
}
var red = false;
init();
Symbol 98 MovieClip [wireHolder] Frame 55
this.gotoAndStop(1);
Symbol 98 MovieClip [wireHolder] Frame 63
this.gotoAndStop(1);
Symbol 103 MovieClip Frame 1
this.stop();
if (_root.customer == 6) {
this.gotoAndStop("wire");
}
Symbol 106 MovieClip Frame 1
this.stop();
if (_root.customer == 6) {
this.gotoAndStop("wire");
}
Symbol 109 MovieClip Frame 1
this.stop();
Symbol 112 MovieClip Frame 1
this.stop();
if (_root.customer == 6) {
this.gotoAndStop("wire");
}
Symbol 115 MovieClip Frame 1
this.stop();
if (_root.customer == 6) {
this.gotoAndStop("wire");
}
Symbol 128 MovieClip Frame 1
this.stop();
if (_root.customer == 6) {
this.gotoAndStop("wire");
}
Symbol 133 MovieClip [hairHolder] Frame 1
function init() {
if (_root.customer == 1) {
if (this.x > -100) {
highlightCircle._visible = true;
highlighted = true;
} else {
highlightCircle._visible = false;
highlighted = false;
}
} else if ((_root.customer == 2) or (_root.customer == 7)) {
if ((this.x > _root.leftBorder) and (this.x < _root.rightBorder)) {
highlightCircle._visible = true;
highlighted = true;
} else {
highlightCircle._visible = false;
highlighted = false;
}
} else if (_root.customer == 3) {
if ((this.x > _root.leftBorder) and (this.x < _root.rightBorder)) {
highlightCircle._visible = true;
highlighted = true;
} else {
highlightCircle._visible = false;
highlighted = false;
}
} else {
highlightCircle._visible = false;
}
var _local3 = (Math.random() * 12) + 1;
_local3 = Math.round(_local3);
if (_local3 == 1) {
gotoAndStop ("one");
} else if (_local3 == 2) {
gotoAndStop ("two");
} else if (_local3 == 3) {
gotoAndStop ("three");
} else if (_local3 == 4) {
gotoAndStop ("four");
} else if (_local3 == 5) {
gotoAndStop ("five");
} else if (_local3 == 6) {
gotoAndStop ("six");
} else if (_local3 == 7) {
gotoAndStop ("seven");
} else if (_local3 == 8) {
gotoAndStop ("eight");
} else if (_local3 == 9) {
gotoAndStop ("nine");
} else if (_local3 == 10) {
gotoAndStop ("ten");
} else if (_local3 == 11) {
gotoAndStop ("eleven");
} else if (_local3 == 12) {
gotoAndStop ("twelve");
} else if (_local3 == 13) {
gotoAndStop ("thirteen");
} else {
trace("no hair! " + _local3);
}
}
function onEnterFrame() {
if (_root.customer == 1) {
if (this.hitTest(_root.scissors.hotspot)) {
if (!highlighted) {
_root.scold.gotoAndPlay("uhoh");
}
}
} else if (((_root.customer == 2) || (_root.customer == 3)) || (_root.customer == 7)) {
if (this.hitTest(_root.scissors.hotspot)) {
if (!highlighted) {
_root.payment = _root.payment - 0.01;
}
}
}
}
var highlighted = false;
init();
Symbol 150 MovieClip Frame 1
function LOGO_IN() {
var _local1 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Strong.easeIn, -75, 85, 12, false);
_local1.onMotionFinished = function () {
LOGO_SMASH();
var _local3 = new mx.transitions.Tween(AGlogo_mc, "_y", mx.transitions.easing.Bounce.easeOut, 60, 85, 6, false);
var _local4 = new mx.transitions.Tween(AGlogo_mc, "_x", mx.transitions.easing.Bounce.easeOut, 30, 50, 6, false);
var _local2 = new mx.transitions.Tween(AGpresented_mc, "_y", mx.transitions.easing.Bounce.easeOut, 15, 25, 6, false);
var _local1 = new mx.transitions.Tween(AGpresented_mc, "_x", mx.transitions.easing.Bounce.easeOut, 110, 100, 6, false);
};
}
function LOGO_SMASH() {
AG_SMASH.start();
AGclick_btn._visible = true;
}
function AG_HOLD_COUNTER() {
if (AG_COUNT == AG_TIME) {
clearInterval(AG_HOLD_ID);
_level0.START_ping.broadcastMessage("presented");
_parent.play();
this.unloadMovie();
} else {
AG_COUNT++;
}
}
_parent.stop();
var AG_SMASH = new Sound();
AG_SMASH.attachSound("Smash");
var AG_COUNT = 0;
var AG_TIME = 4;
var AG_HOLD_ID;
AG_HOLD_ID = setInterval(this, "AG_HOLD_COUNTER", 1000);
AGpresented_mc._alpha = 0;
AGclick_btn._visible = false;
AGlogo_mc._y = -70;
var AGpresented_IN = (new mx.transitions.Tween(AGpresented_mc, "_alpha", mx.transitions.easing.Strong.easeIn, 0, 100, 12, false));
AGpresented_IN.onMotionFinished = function () {
LOGO_IN();
};
AGskip_btn.onRelease = function () {
AG_COUNT = AG_TIME;
AG_HOLD_COUNTER();
};
AGclick_btn.onRelease = function () {
getURL ("http://www.addictinggames.com", "_blank");
};
Symbol 549 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 550 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 551 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 552 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong
{
function Strong () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return((((((c * t) * t) * t) * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = (t / d) - 1;
return((c * (((((t * t) * t) * t) * t) + 1)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return(((((((c / 2) * t) * t) * t) * t) * t) + b);
}
t = t - 2;
return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b);
}
static var version = "1.1.0.52";
}
Symbol 553 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 154 MovieClip Frame 1
this.stop();
Symbol 168 MovieClip Frame 1
function init() {
randomSound = (Math.random() * 4) + 1;
randomSound = Math.round(randomSound);
if (randomSound == 1) {
gotoAndStop ("snip01");
} else if (randomSound == 2) {
gotoAndStop ("snip02");
} else if (randomSound == 3) {
gotoAndStop ("snip03");
} else if (randomSound == 4) {
gotoAndStop ("snip04");
} else if (randomSound == 5) {
gotoAndStop ("snip05");
} else {
trace("no sound");
}
}
var randomSound = 0;
init();
Symbol 169 MovieClip Frame 12
if (((_root.customer == 4) || (_root.customer == 8)) || (_root.customer == 6)) {
gotoAndStop (1);
}
Symbol 175 MovieClip Frame 1
function onEnterFrame() {
if ((((!_root.confrontationStarted) && (_root.customer != 4)) && (_root.customer != 8)) && (_root.customer != 6)) {
if (!_root.gamePaused) {
hair01.play();
hair02.play();
hair03.play();
hair04.play();
hair05.play();
scissors.play();
} else {
hair01.stop();
hair02.stop();
hair03.stop();
hair04.stop();
hair05.stop();
scissors.stop();
}
}
}
this.stop();
Symbol 175 MovieClip Frame 34
this.stop();
Symbol 179 MovieClip Frame 1
onEnterFrame = function () {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (_root._xmouse < (_root.scissors._x - 75)) {
this.gotoAndStop("left");
} else if (_root._Xmouse > (_root.scissors._x + 75)) {
this.gotoAndStop("right");
} else {
this.gotoAndStop("forward");
}
};
this.stop();
Symbol 218 MovieClip Frame 1
Symbol 230 MovieClip Frame 1
this.stop();
Symbol 230 MovieClip Frame 100
this.stop();
onEnterFrame = function () {
this.stop();
};
Symbol 235 MovieClip Frame 1
this.stop();
Symbol 236 MovieClip Frame 6
gotoAndPlay (1);
Symbol 236 MovieClip Frame 7
this.play();
this.onEnterFrame = function () {
explosion._xscale = (explosion._yscale = (Math.random * 50) + 50);
};
Symbol 236 MovieClip Frame 30
this.stop();
Symbol 238 MovieClip Frame 1
this.stop();
Symbol 239 MovieClip Frame 6
this.gotoAndPlay(1);
Symbol 239 MovieClip Frame 7
this.play();
this.onEnterFrame = function () {
explosion._xscale = (explosion._yscale = (Math.random * 50) + 50);
};
Symbol 239 MovieClip Frame 30
this.stop();
Symbol 240 MovieClip Frame 1
this.stop();
Symbol 240 MovieClip Frame 4
function init() {
_root.scissors.hair01._visible = false;
_root.scissors.hair02._visible = false;
_root.scissors.hair03._visible = false;
_root.scissors.hair04._visible = false;
_root.scissors.hair05._visible = false;
hitScissors = new Sound();
hitScissors.attachSound("hitScissors");
}
var mouseHealthPercent = 100;
var scissorsHealthPercent = 100;
init();
Symbol 240 MovieClip Frame 8
function onEnterFrame() {
tempHotspot._x = _root.scissors._x - 50;
tempHotspot._y = _root.scissors._y;
mouseHealth._yscale = mouseHealthPercent;
scissorsHealth._yscale = scissorsHealthPercent;
if (mouse.lasers.laser01.hitTest(tempHotspot)) {
scissorsHealthPercent = scissorsHealthPercent - 0.5;
readySound++;
}
if (mouse.lasers.laser02.hitTest(tempHotspot)) {
scissorsHealthPercent = scissorsHealthPercent - 0.5;
readySound++;
}
if (mouse.lasers.laser03.hitTest(tempHotspot)) {
scissorsHealthPercent = scissorsHealthPercent - 0.5;
readySound++;
}
if (mouse.lasers.laser04.hitTest(tempHotspot)) {
scissorsHealthPercent = scissorsHealthPercent - 0.5;
readySound++;
}
if (mouse.lasers.laser05.hitTest(tempHotspot)) {
scissorsHealthPercent = scissorsHealthPercent - 0.5;
readySound++;
}
if (scissorsHealthPercent < 0) {
scissorsHealthPercent = 0;
}
_root.scissors.scissors.stop();
if (readySound > 1) {
hitScissors.start();
readySound = 0;
}
}
var readySound = 0;
Symbol 240 MovieClip Frame 173
function onEnterFrame() {
if (!_root.mouseDied) {
tempHotspot._x = _root.scissors._x - 50;
tempHotspot._y = _root.scissors._y;
mouseHealth._yscale = mouseHealthPercent;
scissorsHealth._yscale = scissorsHealthPercent;
if (mouse.mouse.hotspot.hitTest(tempHotspot)) {
mouseHealthPercent = mouseHealthPercent - 2;
mouse.mouse.gotoAndPlay("bloodSpray");
mouse.mouse.blood._xscale = (mouse.mouse.blood._yscale = (Math.random() * 500) + 100);
}
if (mouseHealthPercent < 0) {
mouseHealthPercent = 0;
}
_root.scissors.scissors.play();
} else {
this.stop();
}
}
Instance of Symbol 227 MovieClip "mouse" in Symbol 240 MovieClip Frame 177
/* no clip actions */
Symbol 240 MovieClip Frame 323
gotoAndPlay ("shooting");
Symbol 243 MovieClip Frame 1
this.stop();
Symbol 243 MovieClip Frame 28
this.stop();
_root.confrontationStarted = true;
Symbol 289 MovieClip Frame 1
this.stop();
Symbol 289 MovieClip Frame 830
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 1070
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 1202
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 1465
gotoAndStop ("noText");
Symbol 289 MovieClip Frame 1870
gotoAndStop ("noText");
Symbol 289 MovieClip Frame 2100
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 2319
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 2604
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 2857
this.gotoAndStop("noText");
Symbol 289 MovieClip Frame 3044
gotoAndStop ("noText");
Symbol 292 MovieClip Frame 1
this.stop();
Symbol 321 MovieClip Frame 1
this.stop();
Symbol 321 MovieClip Frame 2
waves02 = new Sound();
waves02.attachSound("waves02");
waves02.setVolume(50);
waves02.start();
waves02.onSoundComplete = function () {
waves02.start();
};
backgrounds.onRelease = function () {
this.play();
};
Symbol 321 MovieClip Frame 200
this.stop();
backgrounds.onRelease = function () {
stopAllSounds();
_root.highScoreRound = true;
_root.ending._visible = false;
};
Symbol 326 MovieClip Frame 1
this.stop();
Symbol 349 MovieClip Frame 1
button01.onRelease = function () {
_root.narrationEnded = true;
_root.titleNarration._visible = false;
};
button02.onRelease = function () {
_root.narrationEnded = true;
_root.tutorialFinished = true;
_root.titleNarration._visible = false;
};
button03.onRelease = function () {
_root.narrationEnded = true;
_root.tutorialFinished = true;
_root.titleNarration._visible = false;
_root.difficult = true;
};
Symbol 357 MovieClip Frame 12
if (_root.customer == 4) {
gotoAndStop (1);
}
Symbol 376 MovieClip Frame 1
this.stop();
Symbol 383 MovieClip Frame 1
this.stop();
Symbol 390 MovieClip Frame 1
this.stop();
Symbol 397 MovieClip Frame 1
this.stop();
Symbol 404 MovieClip Frame 1
this.stop();
Symbol 421 MovieClip Frame 1
this.stop();
Symbol 425 MovieClip Frame 1
this.stop();
Symbol 439 MovieClip Frame 1
this.stop();
Symbol 446 MovieClip Frame 1
this.stop();
Symbol 453 MovieClip Frame 1
this.stop();
Symbol 494 MovieClip Frame 1
this.stop();
Symbol 501 MovieClip Frame 1
function onEnterFrame() {
if (_root.highScoreRound) {
this.play();
}
}
this.stop();
Symbol 501 MovieClip Frame 250
function onEnterFrame() {
this.stop();
}
this.stop();
Symbol 501 MovieClip Frame 260
this.gotoAndStop("ending");
Symbol 516 MovieClip Frame 1
website.onRelease = function () {
getURL ("http://pulledhair.com", "_blank");
};
Symbol 520 MovieClip Frame 1
this.stop();
onEnterFrame = function () {
if ((_root.gameRound > 0) and _root.waitingRoom._visible) {
this.gotoAndPlay("go");
} else {
this.stop();
}
};
Symbol 520 MovieClip Frame 11
this.play();
onEnterFrame = function () {
this.play();
};
Symbol 520 MovieClip Frame 212
this.stop();
onEnterFrame = function () {
this.stop();
};
Symbol 521 MovieClip Frame 2
function onEnterFrame() {
savingsBox.text = (("Savings: $" + _root.savings) + " Goal: $") + _root.moneyGoal;
if (_root.narrationEnded) {
wait._x = -500;
if (_root.highScoreRound) {
timeBox._visible = true;
currentTime = (_root.highScoreTime / _root.highScoreTimeLimit) * 8;
currentTime = Math.round(currentTime) + 1;
if (currentTime == 1) {
timeBox.timeWords.text = "9:00 am";
} else if (currentTime == 2) {
timeBox.timeWords.text = "10:00 am";
} else if (currentTime == 3) {
timeBox.timeWords.text = "11:00 am";
} else if (currentTime == 4) {
timeBox.timeWords.text = "12:00 pm";
} else if (currentTime == 5) {
timeBox.timeWords.text = "1:00 pm";
} else if (currentTime == 6) {
timeBox.timeWords.text = "2:00 pm";
} else if (currentTime == 7) {
timeBox.timeWords.text = "3:00 pm";
} else if (currentTime == 8) {
timeBox.timeWords.text = "4:00 pm";
}
} else {
timeBox._visible = false;
}
if (!_root.tutorialFinished) {
customer01._x = 577;
} else if (!_root.randomize) {
customer01._x = -500;
customer02._x = -500;
customer03._x = -500;
customer04._x = -500;
customer05._x = -500;
customer06._x = -500;
customer07._x = -500;
customer08._x = -500;
customer09._x = -500;
customer10._x = -500;
if (!_root.customer05met) {
customer05._x = 769;
wait._x = 695;
} else if (!_root.customer09met) {
customer09._x = 769;
}
if (!_root.customer04met) {
customer04._x = 577;
wait._x = 519;
} else if (!_root.customer08met) {
customer08._x = 577;
}
if (!_root.customer03met) {
customer03._x = 385;
wait._x = 342;
} else if (!_root.customer07met) {
customer07._x = 385;
}
if (!_root.customer02met) {
customer02._x = 193;
wait._x = 151;
} else if (!_root.customer06met) {
customer06._x = 193;
} else if (((_root.customer07met && (_root.customer08met)) && (_root.customer09met)) && (!_root.customer10met)) {
customer10._x = 193;
} else if (_root.customer10met) {
_root.randomize = true;
}
} else if (_root.randomize) {
if ((((_root.seat01customer == 0) && (_root.seat02customer == 0)) && (_root.seat03customer == 0)) && (_root.seat04customer == 0)) {
_root.gameRound++;
}
if (_root.seat01customer == 0) {
if (_root.gameRound > _root.customer08round) {
customer09._x = -500;
_root.seat01customer = 8;
_root.customer08round++;
customer08._x = 193;
} else if (_root.gameRound > _root.customer09round) {
customer08._x = -500;
_root.seat01customer = 9;
_root.customer09round++;
customer09._x = 193;
} else {
customer09._x = -500;
}
}
if (_root.seat02customer == 0) {
if (_root.gameRound > _root.customer06round) {
customer07._x = -500;
_root.seat02customer = 6;
_root.customer06round++;
customer06._x = 385;
} else if (_root.gameRound > _root.customer07round) {
customer06._x = -500;
_root.seat02customer = 7;
_root.customer07round++;
customer07._x = 385;
} else {
customer07._x = -500;
}
}
if (_root.seat03customer == 0) {
if (_root.gameRound > _root.customer04round) {
customer05._x = -500;
_root.seat03customer = 4;
_root.customer04round++;
customer04._x = 577;
} else if (_root.gameRound > _root.customer05round) {
customer04._x = -500;
_root.seat03customer = 5;
_root.customer05round++;
customer05._x = 577;
} else {
customer05._x = -500;
}
}
if (_root.seat04customer == 0) {
if (_root.gameRound > _root.customer02round) {
customer03._x = -500;
_root.seat04customer = 2;
_root.customer02round++;
customer02._x = 769;
} else if (_root.gameRound > _root.customer03round) {
customer02._x = -500;
_root.seat04customer = 3;
_root.customer03round++;
customer03._x = 769;
} else {
customer03._x = -500;
}
}
}
}
}
var currentTime = 0;
instructionsBox._visible = false;
customer01.onRelease = function () {
_root.customer = 1;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
_root.customerIntro.gotoAndPlay("customer01");
_root.waitingRoom._visible = false;
};
customer01.onRollOver = function () {
customerDemands.gotoAndStop("customer01");
customer01.gotoAndStop("selected");
};
customer01.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer01.gotoAndStop("still");
};
customer02.onRelease = function () {
_root.customer = 2;
_root.customer02met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 2) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 2) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 2) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 2) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer02");
_root.waitingRoom._visible = false;
};
customer02.onRollOver = function () {
if (!_root.customer02met) {
customerDemands.gotoAndStop("customer02");
} else {
customerDemands.gotoAndStop("repeat");
}
customer02.gotoAndStop("selected");
};
customer02.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer02.gotoAndStop("still");
};
customer03.onRelease = function () {
_root.customer = 3;
_root.customer03met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 3) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 3) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 3) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 3) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer03");
_root.waitingRoom._visible = false;
};
customer03.onRollOver = function () {
if (!_root.customer03met) {
customerDemands.gotoAndStop("customer03");
} else {
customerDemands.gotoAndStop("repeat");
}
customer03.gotoAndStop("selected");
};
customer03.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer03.gotoAndStop("still");
};
customer04.onRelease = function () {
_root.customer = 4;
_root.customer04met = true;
_root.gamePaused = false;
_root.payment = 0;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 4) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 4) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 4) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 4) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer04");
_root.waitingRoom._visible = false;
};
customer04.onRollOver = function () {
if (!_root.customer04met) {
customerDemands.gotoAndStop("customer04");
} else {
customerDemands.gotoAndStop("repeat");
}
customer04.gotoAndStop("selected");
};
customer04.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer04.gotoAndStop("still");
};
customer05.onRelease = function () {
_root.customer = 5;
_root.customer05met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 5) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 5) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 5) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 5) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer05");
_root.waitingRoom._visible = false;
};
customer05.onRollOver = function () {
if (!_root.customer05met) {
customerDemands.gotoAndStop("customer05");
} else {
customerDemands.gotoAndStop("repeat");
}
customer05.gotoAndStop("selected");
};
customer05.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer05.gotoAndStop("still");
};
customer06.onRelease = function () {
_root.customer = 6;
_root.customer06met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 6) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 6) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 6) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 6) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer06");
_root.waitingRoom._visible = false;
};
customer06.onRollOver = function () {
if (!_root.customer06met) {
customerDemands.gotoAndStop("customer06");
} else {
customerDemands.gotoAndStop("repeat");
}
customer06.gotoAndStop("selected");
};
customer06.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer06.gotoAndStop("still");
};
customer07.onRelease = function () {
_root.customer = 7;
_root.customer07met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 7) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 7) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 7) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 7) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer07");
_root.waitingRoom._visible = false;
};
customer07.onRollOver = function () {
if (!_root.customer07met) {
customerDemands.gotoAndStop("customer07");
} else {
customerDemands.gotoAndStop("repeat");
}
customer07.gotoAndStop("selected");
};
customer07.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer07.gotoAndStop("still");
};
customer08.onRelease = function () {
_root.customer = 8;
_root.customer08met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 8) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 8) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 8) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 8) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer08");
_root.waitingRoom._visible = false;
};
customer08.onRollOver = function () {
if (!_root.customer08met) {
customerDemands.gotoAndStop("customer08");
} else {
customerDemands.gotoAndStop("repeat");
}
customer08.gotoAndStop("selected");
};
customer08.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer08.gotoAndStop("still");
};
customer09.onRelease = function () {
_root.customer = 9;
_root.customer09met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
if (_root.seat01customer == 9) {
_root.seat01customer = 0;
} else if (_root.seat02customer == 9) {
_root.seat02customer = 0;
} else if (_root.seat03customer == 9) {
_root.seat03customer = 0;
} else if (_root.seat04customer == 9) {
_root.seat04customer = 0;
}
_root.customerIntro.gotoAndPlay("customer09");
_root.waitingRoom._visible = false;
};
customer09.onRollOver = function () {
if (!_root.customer09met) {
customerDemands.gotoAndStop("customer09");
} else {
customerDemands.gotoAndStop("repeat");
}
customer09.gotoAndStop("selected");
};
customer09.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer09.gotoAndStop("still");
};
customer10.onRelease = function () {
_root.customer = 10;
_root.customer10met = true;
_root.gamePaused = false;
_root.payment = 20;
_root.framesPlayed = 0;
_root.payOut._x = -500;
_root.init();
_root.customerIntro.gotoAndPlay("customer10");
_root.waitingRoom._visible = false;
};
customer10.onRollOver = function () {
if (!_root.customer10met) {
customerDemands.gotoAndStop("customer10");
} else {
customerDemands.gotoAndStop("repeat");
}
customer10.gotoAndStop("selected");
};
customer10.onRollOut = function () {
customerDemands.gotoAndStop(1);
customer10.gotoAndStop("still");
};
instructions.onRelease = function () {
_root.waitingRoom.instructionsBox._visible = true;
};
instructionsBox.hotspot.onRelease = function () {
_root.waitingRoom.instructionsBox._visible = false;
};
this.stop();
Symbol 530 Button
on (release) {
trace("record");
_level0.swHighScoreObject.player1Score = _root.savings;
_root.swHighScoreObject.showTab = "submit";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Symbol 535 Button
on (release) {
trace("view");
_root.swHighScoreObject.showTab = "view";
docount = true;
loadMovieNum (_root.HSHubURL, 2);
}
Instance of Symbol 536 MovieClip in Symbol 542 MovieClip Frame 1
onClipEvent (load) {
this.swapDepths(100033);
docount = false;
}
onClipEvent (enterFrame) {
if (docount) {
trycount++;
if ((_level2.getBytesTotal() == -1) && (trycount > 60)) {
docount = false;
trycount = 0;
}
}
}