Frame 1
loaded = _root.getBytesLoaded() / _root.getBytesTotal();
loadAmount = Math.floor(loaded * 100) + "%";
fps = 24;
Frame 2
if (loaded < 1) {
gotoAndPlay (1);
}
Frame 3
fps = 24;
loungerSpeed = 10;
lastAte = 0;
lastComp = 0;
lastPhone = 0;
eatTime = (fps * 60) * 5;
compTime = (fps * 60) * 5;
money = 100;
fishHunger = 0;
fishHungerMax = (10 * fps) * 60;
phoneTime = (random(90) + 1) * fps;
TV = false;
CID = false;
TVon = false;
callLog = new Array();
won = false;
stop();
Frame 4
if (_root.TV) {
television._visible = true;
} else {
television._visible = false;
}
if (_root.lounger.hitTest(_root.chair)) {
if (!lounging) {
lounging = true;
if (TV) {
_root.tvsound = new Sound();
tvsound.attachSound("tvsound");
tvsound.start(0, 1000);
TVon = true;
}
_root.chair.gotoAndStop(2);
_root.lounger._visible = false;
}
} else {
if (TV) {
TVon = false;
tvsound.stop();
}
lounging = false;
_root.chair.gotoAndStop(1);
_root.lounger._visible = true;
}
if (Key.isDown(Key.SHIFT)) {
if (moving && (!lounging)) {
_root.lounger.nextFrame();
_root.loungerSpeed = 5;
}
} else {
loungerSpeed = 2.5;
}
if (Key.isDown(Key.LEFT)) {
if (!lounging) {
if (10 < _root.lounger._x) {
moving = true;
_root.lounger._x = _root.lounger._x - loungerSpeed;
_root.lounger._rotation = 0;
_root.lounger.nextFrame();
}
} else {
lounger._x = 380;
}
} else if (Key.isDown(Key.RIGHT)) {
if (!lounging) {
if (_root.lounger._x < 630) {
moving = true;
_root.lounger._x = _root.lounger._x + loungerSpeed;
_root.lounger._rotation = 180;
_root.lounger.nextFrame();
}
}
} else if (Key.isDown(Key.DOWN)) {
if (!lounging) {
if (_root.lounger._y < 470) {
moving = true;
_root.lounger._y = _root.lounger._y + loungerSpeed;
_root.lounger._rotation = 270;
_root.lounger.nextFrame();
}
}
} else if (Key.isDown(Key.UP)) {
if (!lounging) {
if (10 < _root.lounger._y) {
moving = true;
_root.lounger._y = _root.lounger._y - loungerSpeed;
_root.lounger._rotation = 90;
_root.lounger.nextFrame();
}
}
} else {
moving = false;
}
if (_root.lounger.hitTest(_root.desk)) {
gotoAndPlay (162);
} else if (_root.lounger.hitTest(_root.fridge)) {
gotoAndPlay (159);
} else if (_root.lounger.hitTest(_root.phone)) {
gotoAndPlay (223);
} else if (_root.lounger.hitTest(_root.fishTank)) {
gotoAndPlay (224);
}
Instance of Symbol 122 MovieClip in Frame 4
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
money.money = _root.money;
}
Frame 5
if ((((_root.money >= 2000) & TV) && (CID)) && (!won)) {
won = true;
gotoAndPlay (267);
} else if (_root.lastAte >= _root.eatTime) {
_root.deathText = "Come on, you have to remember to eat. I recommend at least 5 servings of fruits and vegetables in the future.";
gotoAndPlay (226);
} else if (_root.lastComp >= _root.compTime) {
_root.deathText = "The Lounger's love of computer goes so deep that if he doesn't get enough he dies. Try to remeber that for your next game.";
gotoAndPlay (226);
} else if (-100 >= _root.money) {
_root.deathText = "Those creditors really meant it when they said you better pay them back. Try to make good on your debts in the future.";
gotoAndPlay (226);
} else if (lastPhone >= phoneTime) {
tvsound.stop();
gotoAndPlay (227);
} else {
gotoAndPlay (4);
}
Frame 102
gotoAndPlay (4);
Frame 103
if (pickleTime >= 30) {
luck = random(2);
if (luck == 1) {
mood = "shocked";
gotoAndPlay (105);
} else {
mood = "good";
gotoAndPlay (139);
}
}
mood = "plain";
_root.face3._x = _root.face3._x + random(5);
_root.face3._x = _root.face3._x - random(5);
_root.face3._y = _root.face3._y + random(5);
_root.face3._y = _root.face3._y - random(5);
pickleTime++;
_root.pickleText = "That pickle really upset your stomache";
Instance of Symbol 178 MovieClip in Frame 103
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 104
gotoAndPlay (103);
Frame 105
mood = "shocked";
pukeSound = new Sound();
pukeSound.attachSound("puke");
pukeSound.start();
Frame 138
loseAmount = random(100) + 1;
_root.pickleText = ("Now you've done it, those pickles have been there for years. You lose $" + loseAmount) + " for hospital bills";
mood = "bad";
lastAte = lastAte + random(fps * 30);
stop();
Frame 139
mood = "good";
_root.pickleText = "Whew, those pickles have been there for years. Lucky you didn't get sick";
lastAte = 0;
stop();
Frame 140
stop();
Instance of Symbol 200 MovieClip in Frame 140
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 141
stop();
Frame 142
stop();
Frame 143
_root.hitGrey._alpha = 50;
_root.standGrey._alpha = 50;
_root.betUpGrey._alpha = 0;
_root.betDownGrey._alpha = 0;
_root.maxBetGrey._alpha = 0;
_root.dealGrey._alpha = 0;
_root.doubleGrey._alpha = 50;
bet = 5;
dist = 30;
firstDeal = false;
total = 0;
dtotal = 0;
winText = "";
_root.pcard._visible = false;
_root.dcard._visible = false;
_root.cover._visible = false;
Suits = new Array();
Values = new Array();
i = 0;
while (i < 4) {
j = 0;
while (j < 13) {
if (i == 1) {
let = "S";
} else if (i == 0) {
let = "D";
} else if (i == 2) {
let = "H";
} else if (i == 3) {
let = "C";
}
Suits[(13 * i) + j] = let;
Values[(13 * i) + j] = j + 1;
j++;
}
i++;
}
betText = "";
gameOver = true;
stop();
Instance of Symbol 200 MovieClip in Frame 143
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 144
_root.hitGrey._alpha = 0;
_root.standGrey._alpha = 0;
_root.betUpGrey._alpha = 50;
_root.betDownGrey._alpha = 50;
_root.maxBetGrey._alpha = 50;
_root.dealGrey._alpha = 50;
_root.doubleGrey._alpha = 0;
win = false;
double = false;
firstDeal = true;
bust = false;
gameOver = false;
pCards = 2;
dCards = 2;
turn = true;
hit = false;
dhit = false;
aceCount = 0;
daceCount = 0;
dtotal = 0;
deckOut = 0;
pCardsOut = 0;
dCardsOut = 0;
_root.total = 0;
winText = "";
_root.cover._visible = true;
pHandV = new Array();
dHandV = new Array();
pHandS = new Array();
dHandS = new Array();
i = 0;
while (i < 300) {
rand1 = random(52);
temp = Suits[rand1];
temp2 = Values[rand1];
rand = random(52);
Suits[rand1] = Suits[rand];
Values[rand1] = Values[rand];
Suits[rand] = temp;
Values[rand] = temp2;
i++;
}
i = 0;
while (i < 2) {
pHandV[i] = Values[deckOut];
pHandS[i] = Suits[deckOut];
deckOut++;
dHandV[i] = Values[deckOut];
dHandS[i] = Suits[deckOut];
deckOut++;
i++;
}
_root.dcard.duplicateMovieClip("dcard0", 100);
_root.dcard0.mySuit = dHandS[0];
_root["dcard" + i]._x = _root["dcard" + i]._x + (_root.dcard._width / 3);
if (10 < dHandV[0]) {
if (dHandV[0] == 11) {
_root.dcard0.value = "J";
} else if (dHandV[0] == 12) {
_root.dcard0.value = "Q";
} else if (dHandV[0] == 13) {
_root.dcard0.value = "K";
}
dtotal = dtotal + 10;
} else if (dHandV[0] == 1) {
daceCount++;
_root.dcard0.value = "A";
if (21 >= (dtotal + 11)) {
dtotal = dtotal + 11;
} else {
dtotal = dtotal + 1;
}
} else {
dtotal = dtotal + dHandV[0];
_root.dcard0.value = dHandV[0];
}
dCardsOut = 1;
Instance of Symbol 278 MovieClip in Frame 144
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 145
if (hit == true) {
_root.pHandV[_root.pCardsOut] = _root.Values[_root.decKOut];
_root.pHandS[_root.pCardsOut] = _root.Suits[_root.deckOut];
_root.deckOut++;
_root.pCards++;
hit = false;
firstDeal = false;
}
i = pCardsOut;
while (i < pCards) {
_root.pcard.duplicateMovieClip("pcard" + i, i);
_root["pcard" + i].mySuit = pHandS[i];
if (0 < i) {
_root["pcard" + i]._x = _root["pcard" + (i - 1)]._x;
}
_root["pcard" + i]._x = _root["pcard" + i]._x + (_root.pcard._width / 3);
if (10 < pHandV[i]) {
if (pHandV[i] == 11) {
_root["pcard" + i].value = "J";
} else if (pHandV[i] == 12) {
_root["pcard" + i].value = "Q";
} else if (pHandV[i] == 13) {
_root["pcard" + i].value = "K";
}
total = total + 10;
} else if (pHandV[i] == 1) {
_root["pcard" + i].value = "A";
if (21 >= (total + 11)) {
total = total + 11;
aceCount++;
} else {
total = total + 1;
}
} else {
total = total + pHandV[i];
_root["pcard" + i].value = pHandV[i];
}
i++;
}
if (0 < aceCount) {
if (21 < total) {
total = total - 10;
aceCount--;
}
}
pCardsOut = pCards;
if ((total >= 21) || (double)) {
turn = false;
if (21 < total) {
bust = true;
}
_root.gotoAndPlay("dealer");
}
if (((pHandV[0] == 1) || (pHandV[1] == 1)) && ((9 < pHandV[0]) || (9 < pHandV[1]))) {
win = true;
blackJack = true;
gotoAndPlay (158);
} else if (((dHandV[0] == 1) || (dHandV[1] == 1)) && ((9 < dHandV[0]) || (9 < dHandV[1]))) {
if (((pHandV[0] == 1) || (pHandV[1] == 1)) && ((9 < pHandV[0]) || (9 < pHandV[1]))) {
draw = true;
} else {
win = false;
}
gotoAndPlay (147);
}
stop();
Frame 146
_root.doubleGrey._alpha = 50;
_root.gotoAndPlay("player");
Frame 147
_root.hitGrey._alpha = 50;
_root.standGrey._alpha = 50;
_root.betUpGrey._alpha = 50;
_root.betDownGrey._alpha = 50;
_root.maxBetGrey._alpha = 50;
_root.dealGrey._alpha = 50;
_root.doubleGrey._alpha = 50;
turn = false;
if (dhit == true) {
_root.dHandV[_root.dCardsOut] = _root.Values[_root.decKOut];
_root.dHandS[_root.dCardsOut] = _root.Suits[_root.deckOut];
_root.deckOut++;
_root.dCards++;
dhit = false;
}
i = dCardsOut;
while (i < dCards) {
_root.dcard.duplicateMovieClip("dcard" + i, i + 100);
_root["dcard" + i].mySuit = dHandS[i];
if (0 < i) {
_root["dcard" + i]._x = _root["dcard" + (i - 1)]._x;
}
_root["dcard" + i]._x = _root["dcard" + i]._x + (_root.dcard._width / 3);
if (10 < dHandV[i]) {
if (dHandV[i] == 11) {
_root["dcard" + i].value = "J";
} else if (dHandV[i] == 12) {
_root["dcard" + i].value = "Q";
} else if (dHandV[i] == 13) {
_root["dcard" + i].value = "K";
}
dtotal = dtotal + 10;
} else if (dHandV[i] == 1) {
daceCount++;
_root["dcard" + i].value = "A";
if (21 >= (dtotal + 11)) {
dtotal = dtotal + 11;
} else {
dtotal = dtotal + 1;
}
} else {
dtotal = dtotal + dHandV[i];
_root["dcard" + i].value = dHandV[i];
}
i++;
}
dCardsOut = dCards;
play();
Frame 157
if (bust == true) {
win = false;
_root.gotoAndPlay("winBJ");
} else if ((dtotal < 17) && (!win)) {
dhit = true;
_root.gotoAndPlay("dealer");
} else {
dhit = false;
if ((dtotal < total) || (21 < dtotal)) {
win = true;
} else if (total < dtotal) {
win = false;
}
_root.gotoAndPlay("winBJ");
}
Frame 158
gameOver = true;
if (((total == dtotal) && (21 >= total)) || (draw)) {
winText = "Draw";
draw = false;
} else if (win == true) {
if (blackJack == true) {
money = money + Math.ceil(bet * 1.5);
blackJack = false;
winText = "Blackjack!!!";
} else {
money = money + bet;
winText = "You Win!";
}
} else {
money = money - bet;
winText = "You Lose";
}
if (double) {
bet = bet / 2;
}
_root.hitGrey._alpha = 50;
_root.standGrey._alpha = 50;
_root.betUpGrey._alpha = 0;
_root.betDownGrey._alpha = 0;
_root.maxBetGrey._alpha = 0;
_root.dealGrey._alpha = 0;
_root.doubleGrey._alpha = 50;
stop();
Instance of Symbol 200 MovieClip in Frame 158
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 159
_root.fridgeInstructions._visible = false;
fridgeText = "";
stop();
Instance of Symbol 178 MovieClip in Frame 159
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 160
maxBet = (betKills * betTanks) * 10;
if (0 >= wagerAmount) {
wagerAmount = 0;
}
if (maxBet < wagerAmount) {
wagerAmount = maxBet;
}
if (_root.money < wagerAmount) {
wagerAmount = _root.money;
}
if (7 < betTanks) {
betTanks = 7;
}
numTanks = betTanks;
numKills = betKills;
Instance of Symbol 200 MovieClip in Frame 160
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 161
gotoAndPlay (160);
Frame 162
stop();
Instance of Symbol 178 MovieClip in Frame 162
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 216
lastComp = lastComp + random(fps * 120);
stop();
Frame 217
stop();
Frame 218
function tankStart(tankNum) {
_root["tank" + tankNum]._x = 720;
_root["tank" + tankNum].moving = true;
_root["tank" + tankNum].bullet.gotoAndStop(1);
_root["tank" + tankNum].base.tread1.play();
_root["tank" + tankNum].base.tread2.play();
_root["tank" + tankNum].bullet.firing = true;
_root["tank" + tankNum].strength = 2;
}
function tankStop(tankNum) {
_root["tank" + tankNum]._x = 420;
_root["tank" + tankNum].base.tread1.stop();
_root["tank" + tankNum].base.tread2.stop();
_root["tank" + tankNum].bullet.firing = false;
_root["tank" + tankNum].fireTime = random(_root.fps * 3);
_root["tank" + tankNum].time = 0;
}
function isOut(tankNum) {
i = 0;
while (i < _root.numTanks) {
if (_root.tanksOut[i] == tankNum) {
return(true);
}
i++;
}
return(false);
}
function fire(tankNum) {
_root["tank" + tankNum].bullet.play();
_root["tank" + tankNum].time = 0;
_root["tank" + tankNum].fireTime = random(_root.fps * 5);
}
tanksKilled = 0;
heroStrength = 5;
tanksOut = new Array();
tankSpeed = 4;
_root.tank.tread1.stop();
_root.tank.tread2.stop();
Instance of Symbol 394 MovieClip in Frame 218
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 219
while (tanksOut.length < numTanks) {
nextTank = random(7);
if (!isOut(nextTank)) {
tanksOut.push(nextTank);
tankStart(nextTank);
}
}
i = 0;
while (i < tanksOut.length) {
if (_root["tank" + tanksOut[i]].moving) {
if (420 < _root["tank" + tanksOut[i]]._x) {
_root["tank" + tanksOut[i]]._x = _root["tank" + tanksOut[i]]._x - tankSpeed;
} else {
tankStop(tanksOut[i]);
_root["tank" + tanksOut[i]].moving = false;
}
}
_root["tank" + tanksOut[i]].adjacent = _root["tank" + tanksOut[i]]._x - _root.tank._x;
_root["tank" + tanksOut[i]].opposite = Math.abs(_root["tank" + tanksOut[i]]._y - _root.tank._y);
_root["tank" + tanksOut[i]].angle = Math.atan(_root["tank" + tanksOut[i]].opposite / _root["tank" + tanksOut[i]].adjacent);
_root["tank" + tanksOut[i]].angle = _root["tank" + tanksOut[i]].angle * 57.2957795130823;
if (_root.tank._y < _root["tank" + tanksOut[i]]._y) {
_root["tank" + tanksOut[i]].nozzle._rotation = _root["tank" + tanksOut[i]].angle;
if (!_root["tank" + tanksOut[i]].bullet.firing) {
_root["tank" + tanksOut[i]].bullet._rotation = _root["tank" + tanksOut[i]].angle;
_root["tank" + tanksOut[i]].time++;
}
} else {
_root["tank" + tanksOut[i]].angle = _root["tank" + tanksOut[i]].angle * -1;
_root["tank" + tanksOut[i]].nozzle._rotation = _root["tank" + tanksOut[i]].angle;
if (!_root["tank" + tanksOut[i]].bullet.firing) {
_root["tank" + tanksOut[i]].bullet._rotation = _root["tank" + tanksOut[i]].angle;
_root["tank" + tanksOut[i]].time++;
}
}
if ((_root["tank" + tanksOut[i]].time >= _root["tank" + tanksOut[i]].fireTime) && (!_root["tank" + tanksOut[i]].bullet.firing)) {
fire(tanksOut[i]);
_root["tank" + tanksOut[i]].bullet.firing = true;
}
if (_root["tank" + tanksOut[i]].base.hitTest(_root.bullet)) {
_root.bullet.gotoAndStop(1);
_root.bullet.firing = false;
_root["tank" + tanksOut[i]].strength--;
if (0 >= _root["tank" + tanksOut[i]].strength) {
tanksKilled++;
_root.explosion._x = _root["tank" + tanksOut[i]]._x;
_root.explosion._y = _root["tank" + tanksOut[i]]._y;
_root.explosion.gotoAndPlay(2);
_root["tank" + tanksOut[i]]._x = 750;
_root["tank" + tanksOut[i]].bullet.gotoAndStop(1);
tanksOut[i] = -1;
tanksOut.sort();
tanksOut.splice(0, 1);
}
}
if (_root.tank.hitTest(_root["tank" + tanksOut[i]].bullet)) {
_root["tank" + tanksOut[i]].bullet.gotoAndStop(1);
tankStop(tanksOut[i]);
_root.heroStrength--;
}
i++;
}
if (Key.isDown(65) || (Key.isDown(Key.CONTROL))) {
heroSpeed = 8;
_root.tank.tread1.nextFrame();
_root.tank.tread2.nextFrame();
} else {
heroSpeed = 4;
}
if (Key.isDown(Key.LEFT)) {
_root.tank._rotation = 0;
if (_root.tankGround.getBounds(_root).xMin < _root.tank._x) {
_root.tank._x = _root.tank._x - heroSpeed;
_root.tank.tread1.nextFrame();
_root.tank.tread2.nextFrame();
}
} else if (Key.isDown(Key.RIGHT)) {
_root.tank._rotation = 180;
if (_root.tank._x < 300) {
_root.tank._x = _root.tank._x + heroSpeed;
_root.tank.tread1.nextFrame();
_root.tank.tread2.nextFrame();
}
} else if (Key.isDown(Key.UP)) {
_root.tank._rotation = 90;
if (_root.tankGround.getBounds(_root).yMin < _root.tank._y) {
_root.tank._y = _root.tank._y - heroSpeed;
_root.tank.tread1.nextFrame();
_root.tank.tread2.nextFrame();
}
} else if (Key.isDown(Key.DOWN)) {
_root.tank._rotation = 270;
if (_root.tank._y < _root.tankGround.getBounds(_root).yMax) {
_root.tank._y = _root.tank._y + heroSpeed;
_root.tank.tread1.nextFrame();
_root.tank.tread2.nextFrame();
}
}
if (Key.isDown(87)) {
_root.nozzle._rotation = _root.nozzle._rotation - 5;
} else if (Key.isDown(90)) {
_root.nozzle._rotation = _root.nozzle._rotation + 5;
}
if (!_root.bullet.firing) {
_root.bullet._x = _root.tank._x;
_root.bullet._y = _root.tank._y;
_root.bullet._rotation = _root.nozzle._rotation;
} else if (((640 < _root.bullet.getBounds(_root).xMin) || (480 < _root.bullet.getBounds(_root).yMin)) || (_root.bullet.getBounds(_root).yMax < 0)) {
_root.bullet.gotoAndStop(1);
_root.bullet.firing = false;
}
_root.nozzle._x = _root.tank._x;
_root.nozzle._y = _root.tank._y;
if ((Key.isDown(83) || (Key.isDown(Key.SPACE))) && (!_root.bullet.firing)) {
_root.bullet.firing = true;
_root.bullet.play();
}
if (tanksKilled >= numKills) {
gotoAndStop (221);
}
Frame 220
_root.meter.bar._width = heroStrength * 20;
if (heroStrength == 0) {
gotoAndStop (222);
} else {
gotoAndPlay (219);
}
Frame 221
_root.tankWinText = "You Win!!";
if (_root.practice) {
_root.tankExplainText = "Too bad this was only practice";
} else {
_root.tankExplainText = ("$" + wagerAmount) + " has been added to your bank account";
money = money + Number(wagerAmount);
}
stop();
Instance of Symbol 200 MovieClip in Frame 221
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = "0%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 222
_root.tankWinText = "You Lose!!";
if (_root.practice) {
_root.tankExplainText = "Good thing this was only practice";
} else {
_root.tankExplainText = ("$" + wagerAmount) + " has been subtracted from your bank account";
money = money - Number(wagerAmount);
}
stop();
Frame 223
phonetext = "";
stop();
Instance of Symbol 178 MovieClip in Frame 223
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 224
if (fishHungerMax < fishHunger) {
gotoAndPlay (225);
} else {
stop();
}
Instance of Symbol 444 MovieClip in Frame 224
onClipEvent (mouseDown) {
_root.fingers.dropping = true;
_root.fingers.play();
if (!dropping) {
_root.pellet.play();
}
}
Instance of Symbol 447 MovieClip "fingers" in Frame 224
onClipEvent (enterFrame) {
if ((_root._xmouse < 440) && (200 < _root._xmouse)) {
_x = _root._xmouse;
}
if (!dropping) {
_root.pellet.gotoAndStop(1);
_root.pellet._x = _x;
}
}
Instance of Symbol 451 MovieClip in Frame 224
onClipEvent (enterFrame) {
temp = Math.floor((_root.fishHunger / _root.fishHungerMax) * 100);
if (temp < 100) {
fishHungerPercent = temp + "%";
} else {
fishHungerPercent = "100%";
}
}
Instance of Symbol 452 MovieClip in Frame 224
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 225
_root.fish.stop();
fishbuytext = "";
stop();
Frame 226
i = 0;
while (i < pCards) {
_root["pcard" + i].removeMovieClip();
i++;
}
i = 0;
while (i < dCards) {
_root["dcard" + i].removeMovieClip();
i++;
}
_root.deadText = _root.deathText;
stop();
Frame 227
mood = "plain";
lastPhone = 0;
phoneTime = random(90) * fps;
numCalls = 10;
winAmount = random(495) + 5;
winAmount = winAmount - (winAmount % 5);
loseAmount = random(95) + 5;
loseAmount = loseAmount - (loseAmount % 5);
cid1 = "Invitation to the bars";
cid4 = "Nuggets";
cid2 = "Needs a ride";
cid6 = "Needs your computer";
cid3 = "Sweepstakes";
cid5 = "Your Mom";
cid7 = "Investor";
cid8 = "Police Station";
cid9 = "Needs to borrow money";
cid10 = "telemarketer";
cid100 = "private";
cid101 = "unavailable";
callerText1 = "Hey, let's go out to the bars!";
callerText2 = "My car broke down and I need you to pick me up.";
callerText3 = "You just won $" + winAmount;
callerText4 = "I just got a Q.P. of nuggets, come by and you can have some for free.";
callerText5 = "It's your mother, I need you to come by and help me do some chores around the house";
callerText6 = "I gotta come by and use your computer.";
callerText7 = ("Hello Sir, how would you like to invest a little, but recieve huge paybacks. Well all you need to do is give me $" + loseAmount) + " to be on your way to becoming a millionare.";
callerText8 = "I just got arrested man. Can you believe it? Anyway, could you please come down here to pick me up and bail me out?";
callerText9 = ("I'm really sorry to ask, but I need to borrow $" + loseAmount) + ". Can you help me out.";
callerText10 = "Hello Sir, we have got some great deals for you. If you switch to out phone company we can offer you great savings.";
response11 = "Not tonight, I'm really not feeling that good.";
response12 = "I can't, I have a lot of homework to do.";
response13 = "Ok, count me in. I'm dying to get out of the house. Come get me as soon as you can.";
response21 = "I would, but my car is having problems too. You'll have to call someone else.";
response22 = "Who is this, do I know you?";
response23 = "Ok, just tell me where you are and I'll be there as soon as I can.";
response31 = "Woo Hoo....Whats the catch";
response32 = "Wow, I'm never this lucky";
response33 = "I don't want it, give it to charity";
response41 = "Oh, I'm quitting, I'm going to turn around my life, no more lounging for me";
response42 = "Ok, I'll be right by";
response43 = "I'm good right now, I don't wanna leave the house";
response51 = "I'd love to, but I'm really busy right now.";
response52 = "I really hurt my back the other day, and the doctor said that I shouldn't move around much.";
response53 = "Ok, I'll be right by.";
response61 = "Oh man, it just crashed...Sorry, call me in an hour and maybe I'll have it working again";
response62 = "Sorry, I'm writing a very important paper right now.";
response63 = "Sure, I'm not using it right now.";
response71 = "No way man, call some other sucker to fall for you shananagins.";
response72 = "Hmmm.....Sounds legit. Count me in.";
response73 = "Well, sounds like too much money, can I go in with half";
response81 = "Hello, I'm not home right now, but if you leave a message after the beep I'll get right back to you........BEEP!";
response82 = "I don't have enough cash man, sorry, you'll have to call someone else.";
response83 = "Ok, I'll be right there.";
response91 = "Sure";
response92 = "Yeah right, I was going to ask you the same question.";
response93 = "You still owe me from the last time.";
response101 = "That sounds great I'm sick of my current phone carrier";
response102 = "No thank you, I am quite satisfied with my current provider.";
response103 = "No way";
callerText111 = (callerText122 = (("No excuses, your going out, I'll be there in five minutes\n\nGoing to the bar costs Money, $" + loseAmount) + " has been deducted from your bank account") + "\t");
callerText112 = (callerText121 = "Ok, talk to you later\n\nWhew...that was a close one. You got lucky this time.");
callerText131 = (callerText132 = (("Ok, I'll be there shortly\n\nGoing to the bar costs Money, $" + loseAmount) + " has been deducted from your bank account") + "\t");
callerText211 = "Oh, ok, I'll call someone else\n\nWhew...that was a close one. You got lucky this time.";
callerText212 = (("I saw driving this morning...you suck\n\nNow your going to have to pay for his tow truck to make up for this, $" + loseAmount) + " has been deducted from your bank account") + "\t";
callerText221 = (("Well, screw you! We're not friends anymore.\n\nNow your going to have to pay for his tow truck to make up for this, $" + loseAmount) + " has been deducted from your bank account") + "\t";
callerText222 = "Sorry, I must have the wrong number\n\nWhew...that was a close one. You got lucky this time.";
callerText231 = (("Thank's a lot\n\nAfter gas the trip cost you $" + loseAmount) + " oh well.") + "\t";
callerText232 = (("Thank's a lot\n\nGreat he gave you $" + winAmount) + " for your troubles.") + newline;
callerText311 = (("Ha, fooled you, your not sick your going to the bar\n\nGoing to the bar costs Money, $" + loseAmount) + " has been deducted from your bank account") + "\t";
callerText312 = (("No, catch I'll forward it to your bank account\n\nGreat, you just added $" + winAmount) + " to your bank account.") + newline;
callerText321 = (((((("Well...techniquely after we tax your winnings you owe us $" + loseAmount) + newline) + newline) + "Oh well, $") + loseAmount) + " has been deducted from your bank account") + "\t";
callerText322 = (("Well, then today's your lucky day\n\nGreat, you just added $" + winAmount) + " to your bank account.") + newline;
callerText331 = (callerText332 = "Wow, what a kind person you are\n\nWell, nothing won, nothing lost, cant complain about that");
callerText411 = "ok, fine, but this chance only comes around every one and a while";
callerText412 = (("Fine, but you'll have to buy it later\n\nWhat were you thinking, of course you aren't quitting, now you have to buy some $" + loseAmount) + " has been deducted from your bank account") + "\t";
callerText421 = (("Ahh...Drugs are bad\n\nOn your way home you got pulled over, so now you have to devote $" + loseAmount) + " towards bail") + "\t";
callerText422 = (("Nice\n\nYou even have a bit left over to sell. $" + winAmount) + " has been added to your bank account") + newline;
callerText431 = "fine, fine, just trying to be nice";
callerText432 = "Oh, well, your loss";
callerText511 = (callerText522 = (("Well then you are going to have to hire someone\n\nYou should always help your mother...now its gonna cost you $" + loseAmount) + "to help her.") + "\t");
callerText512 = "Ok, well I hope things settle down for you soon.";
callerText521 = "Oh, well you should rest up, I'll call you later.";
callerText531 = (("Great\n\nGood job, she gave you $" + winAmount) + " for helping her") + newline;
callerText532 = (("Great\n\nGood job, but it really put a strain on your back $" + loseAmount) + " needs to go to a doctor") + "\t";
callerText611 = "Are you kidding, that sucks, I guess I'll call someone else.\n\nNice, The computer is all your for the rest of the night.";
callerText612 = (("I can fix it, I'll be right by.\n\nGreat, now he really broke it its gonna cost you $" + loseAmount) + " to have it fixed and your computer angst has shot way up") + "\t";
callerText621 = "Ok, maybe i'll call you later.\n\nGood excuse, that took care of him.";
callerText622 = "Oh, it will just take a minute.\n\nWell, he was there for a few hours. Your computer angst has shot way up.";
callerText631 = (callerText632 = "OK, i'll be right by\n\nHe was there for hours, your computer Angst has shot way up.");
if (loseAmount >= winAmount) {
winAmount2 = loseAmount + 1;
} else {
winAmount2 = WinAmount;
}
callerText711 = "Oh well, your loss. You could have had a ton of money in your pocket.";
callerText712 = "Too bad I had a real winning investment in my hands";
callerText721 = (("Wise idea sir. I'll be back to you shortly with your profit margin\n\nWell, this one turned out in your favor. You have another $" + winAmount2) + " in your a bank account.") + newline;
callerText722 = (("Sometimes these things just don't work out.\n\nOh well, at least you only lost $" + loseAmount) + ". Maybe nextime the luck will be in your favor.") + "\t";
callerText731 = "No way, I got a bunch of other people waiting in line for this deal, so your loss.";
callerText732 = (("Well, ok.\n\nDammit, you lost $" + Math.ceil(loseAmount / 2)) + " Oh well, maybe next time") + "\t";
callerText733 = (("Well, ok.\n\nYes, you win $" + Math.ceil(winAmount / 2)) + " Lady luck must be smiling upon you") + newline;
callerText811 = "Great, you're not even home. I guess I'll try someone else\n\nI can't believe he feel for it. Look's like you got out of this one.";
callerText812 = (("Oh no you don't. I'm on to your tricks, and I know you're there. Come get me as soon as you can.\n\nNow you have to go get him. $" + loseAmount) + " has been deducted from your bank account") + "\t";
callerText821 = (("This is my only phone call, you'll HAVE to come get me. You are very resourceful, I know you'll find a way.\n\n$" + loseamount) + " has been deducted from your bank account") + "\t";
callerText822 = "OK, I guess I'm going to have to get myself out of this one.";
callerText831 = (("Thank you so much, I promise I'll pay you back and then some\n\nWell, he kept his word. $" + winAmount) + " has been added to your bank account") + newline;
callerText832 = (("Thank you so much, I promise I'll pay you back and then some\n\nSo much for his word, he never paid you back. $" + loseAmount) + " has been subtracted from your bank account") + "\t";
callerText911 = (callerText912 = (("Thank you so much\n\nWhat a good friend you are $" + loseAmount) + " has been deducted from your bank account.") + "\t");
callerText921 = "Oh well, I guess I'll just have to live without electricity for a month.....THANKS A LOT";
callerText922 = "I'll remember this when you don't have a dollar to your name";
callerText931 = (("Oh yeah, well I'll get that back to you as soon as possible.\n\nHe actually did. $" + winAmount) + " has been added to your bank account.") + newline;
callerText932 = "I guess I'll call someone else then.";
callerText1011 = (("Great I assure you we will save you a lot\n\nThey did. $" + winAmount) + " has been added to your bank account") + newline;
callerText1012 = (("Great I assure you we will save you a lot\n\nThey didn't. $" + loseAmount) + " has been taken from your bank account") + "\t";
callerText1021 = "Oh well your loss\n\nYou really should have given them a chance you could have saved $" + winamount;
callerText1022 = "Good choice there was prboably some fine print";
callerText1031 = (callerText1032 = "Well now you'll never know if you could have saved money or not.");
Instance of Symbol 178 MovieClip in Frame 227
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 262
Frame 263
mood = "shocked";
i = 1;
while (numCalls >= i) {
if (callLog[i] == 0) {
empty = false;
break;
}
empty = true;
i++;
}
if (empty == true) {
i = 1;
while (numCalls >= i) {
callLog[i] = 0;
i++;
}
}
callerNum = random(numCalls) + 1;
while (callLog[callerNum] == 1) {
callerNum = random(numCalls) + 1;
}
callLog[callerNum] = 1;
if (CID) {
callerID._visible = true;
if (random(10) < 8) {
callerID.callerIDText = _root["cid" + callerNum];
} else if (random(2) == 1) {
callerID.callerIDText = _root.cid101;
} else {
callerID.callerIDText = _root.cid100;
}
} else {
callerID._visible = false;
}
stop();
Frame 264
stop();
mood = "plain";
callerText = _root["callerText" + callerNum];
callerSound = new Sound();
callerSound.attachSound("voice" + callerNum);
callerSound.start();
responseBox1 = _root[("response" + callerNum) + 1];
responseBox2 = _root[("response" + callerNum) + 2];
responseBox3 = _root[("response" + callerNum) + 3];
Frame 265
r3 = random(2) + 1;
if (callerNum == 7) {
if (r2 == 2) {
winAmount = winAmount2;
}
if (r2 == 3) {
r3 = random(3) + 1;
loseAmount = Math.ceil(loseAmount / 2);
winAmount = Math.ceil(winAmount / 2);
}
}
if (callerNum == 3) {
if ((r2 == 1) && (r3 == 1)) {
sound1 = new Sound();
sound1.attachSound("voice1");
sound1.start();
}
}
_root.callerText = _root[(("callerText" + callerNum) + r2) + r3];
if (((callerNum == 4) && (r2 == 2)) && (r3 == 1)) {
sound1 = new Sound();
sound1.attachSound("drugsBad");
sound1.start();
}
if (callerNum == 7) {
if (r2 == 2) {
winAmount = winAmount2;
}
if (r2 == 3) {
loseAmount = Math.ceil(loseAmount / 2);
winAmount = Math.ceil(winAmount / 2);
}
}
if (_root.callerText.charAt(_root.callerText.length - 1) == "\t") {
mood = "bad";
} else if (_root.callerText.charAt(_root.callerText.length - 1) == newline) {
mood = "good";
} else {
mood = "plain";
}
if (callerNum == 6) {
if ((r2 == 3) || (r3 == 2)) {
lastComp = lastComp + (360 + random(360));
}
}
lastPhone = 0;
phoneTime = random(90) * fps;
stop();
Frame 266
mood = "plain";
answerer1 = "Hello";
answerer2 = "I'm sorry the number you have dialed is no longer in service";
answerer3 = "Waddaya want?";
response11 = "Hello, can I interest you in an Insurance plan that will leave you with peace of mind for years to come";
response12 = "Sorry wrong number.";
response13 = "Hi there, is your refridgerator running";
response21 = "Oh well I'll try again later";
response22 = "";
response23 = "";
response31 = "Hello, can I interest you in an Insurance plan that will leave you with peace of mind for years to come";
response32 = "Sorry wrong number.";
response33 = "Hi there, is your refridgerator running";
answerer111 = "I'm sorry I'm not interested";
answerer112 = "Well yes that sounds nice, how much do you need";
answerer121 = (answerer122 = "No problem");
answerer131 = "You kids and your pranks";
answerer132 = "You little bastard, I got caller ID. If you call again I'm gonna call the cops.";
callerNum = random(3) + 1;
callerText = _root["answerer" + callerNum];
answererSound = new Sound();
answererSound.attachSound("ansSound" + callerNum);
answererSound.start();
responseBox1 = _root[("response" + callerNum) + 1];
responseBox2 = _root[("response" + callerNum) + 2];
responseBox3 = _root[("response" + callerNum) + 3];
stop();
Instance of Symbol 178 MovieClip in Frame 266
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 267
TVon = true;
won = true;
i = 0;
while (i < pCards) {
_root["pcard" + i].removeMovieClip();
i++;
}
i = 0;
while (i < dCards) {
_root["dcard" + i].removeMovieClip();
i++;
}
if (!firstEnd) {
firstEnd = true;
endSound = new Sound();
endSound.attachSound("loungin");
endSound.start();
}
Frame 391
gotoAndPlay (267);
Frame 392
if (betColorNum == null) {
betColorNum = 0;
}
stop();
Instance of Symbol 521 MovieClip "wheel" in Frame 392
/* no clip actions */
Instance of Symbol 536 MovieClip "colorBar" in Frame 392
onClipEvent (enterFrame) {
if (_root.betColorNum == 0) {
this.colorChoice = "green";
this.colorOdd = "1:2";
_root.odds = 2;
} else if (_root.betColorNum == 1) {
this.colorChoice = "blue";
this.colorOdd = "5:24";
_root.odds = 4.8;
} else if (_root.betColorNum == 2) {
this.colorChoice = "yellow";
this.colorOdd = "1:6";
_root.odds = 6;
} else if (_root.betColorNum == 3) {
this.colorChoice = "red";
this.colorOdd = "1:24";
_root.odds = 24;
}
if (_root.money < _root.betAmount) {
_root.betAmount = _root.money;
}
if (_root.betAmount < 0) {
_root.betAmount = 0;
}
}
Instance of Symbol 178 MovieClip in Frame 392
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 393
force = random(100) + 100;
_root.wheel._rotation = random(360);
Frame 394
_root.wheel._rotation = _root.wheel._rotation + force;
_root.wheel._rotation = Math.ceil(_root.wheel._rotation);
rot = _root.wheel._rotation;
if (360 < rot) {
_root.wheel._rotation = _root.wheel._rotation % 360;
}
force = force * 0.95;
if (force < 1) {
force = 0;
if ((rot % 15) == 0) {
_root.wheel._rotation = _root.wheel._rotation + 1;
rot = _root.wheel._rotation;
}
if (((((rot < -165) || ((rot < -75) && (-90 < rot))) || ((rot < -15) && (-30 < rot))) || ((30 < rot) && (rot < 45))) || ((90 < rot) && (rot < 105))) {
colorHit = "blue";
} else if (((((rot < -105) && (-120 < rot)) || ((rot < -45) && (-60 < rot))) || ((60 < rot) && (rot < 75))) || ((150 < rot) && (rot < 165))) {
colorHit = "yellow";
} else if (((rot < -135) && (-150 < rot)) || ((0 < rot) && (rot < 15))) {
colorHit = "black";
} else if ((120 < rot) && (rot < 135)) {
colorHit = "red";
} else {
colorHit = "green";
}
}
Frame 395
if (0 < force) {
gotoAndPlay (394);
}
Frame 396
winColorHit = colorHit;
winColorChose = colorBet;
if (colorBet == colorHit) {
colorWinText = "Money Won:$";
colorWinAmount = colorBetAmount * odds;
_root.money = _root.money + Math.ceil(Number(colorBetAmount * odds));
} else {
colorWinText = "You Lost:$";
colorWinAmount = colorBetAmount;
_root.money = _root.money - Math.ceil(Number(colorBetAmount));
}
stop();
Frame 397
stopped = true;
firstStop = false;
_root.pressYourLuckText = "";
Instance of Symbol 178 MovieClip in Frame 397
onClipEvent (load) {
if ((_root.fishHunger / _root.fishHungerMax) >= 1) {
_root.fishTank.gotoAndPlay("fishDead");
}
}
onClipEvent (enterFrame) {
_root.lastAte++;
_root.lastComp++;
_root.lastPhone++;
_root.fishHunger++;
myHunger = Math.floor((_root.lastAte / _root.eatTime) * 100);
myComp = Math.floor((_root.lastComp / _root.compTime) * 100);
hunger.hunger = myHunger + "%";
computerAngst.computerAngst = myComp + "%";
if (myHunger >= 90) {
hunger.play();
} else {
hunger.gotoAndStop(1);
}
if (myComp >= 90) {
computerAngst.play();
} else {
computerAngst.gotoAndStop(1);
}
money.money = _root.money;
}
Frame 398
if (!stopped) {
pulSound.stop();
pulSound = new Sound();
pulSound.attachSound("beep");
pulSound.start();
buttonText = "Stop!";
_root["shade" + myRand]._visible = true;
myRand = random(20) + 1;
_root["shade" + myRand]._visible = false;
} else {
buttonText = "Go!";
if (firstStop) {
firstStop = false;
gotoAndPlay (400);
}
}
Frame 399
gotoAndPlay (398);
Frame 400
pulWinText = _root["value" + myRand];
Frame 441
sub = _root["value" + myRand].substr(0, 1);
if (sub == "+") {
_root.money = _root.money + Number(_root["value" + myRand].substr(1, _root["value" + myRand].length + 1));
} else if (sub == "-") {
_root.money = _root.money - Number(_root["value" + myRand].substr(1, _root["value" + myRand].length + 1));
} else if (_root["value" + myRand].substring(4, 5) == "C") {
_root.CID = true;
} else if (_root["value" + myRand].substring(5, 6) == "T") {
_root.TV = true;
}
gotoAndPlay (398);
Symbol 26 MovieClip Frame 1
if (_root.TVOn) {
screen._visible = true;
screen._alpha = random(70);
} else {
screen._visible = false;
}
Symbol 26 MovieClip Frame 2
Symbol 42 MovieClip Frame 1
if (!blink) {
blink = true;
time = 0;
blinkTime = random(_root.fps * 5);
}
time++;
Symbol 42 MovieClip Frame 2
if (time >= blinkTime) {
blink = false;
play();
} else {
gotoAndPlay (1);
}
Symbol 48 Button
on (rollOver) {
_root.openingInstructions._visible = true;
_root.openingInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.openingInstructions._visible = false;
_root.openingInstructions.gotoAndStop(1);
}
Symbol 49 Button
on (press) {
gotoAndPlay (4);
}
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 20
stop();
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 42
gotoAndPlay (1);
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
Symbol 91 MovieClip Frame 10
_root.gotoAndPlay("fridge");
Symbol 99 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 2
stop();
Symbol 113 MovieClip Frame 117
gotoAndPlay (1);
Symbol 113 MovieClip Frame 135
gotoAndPlay (118);
Symbol 117 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 1
if ((((_root.money >= 2000) && (_root.CID)) && (_root.TV)) && (!_root.won)) {
_root.gotoAndPlay("main");
} else if (_root.lastAte >= _root.eatTime) {
_root.gotoAndPlay("main");
} else if (_root.lastComp >= _root.compTime) {
_root.gotoAndPlay("main");
} else if (-100 >= _root.money) {
_root.gotoAndPlay("main");
}
Symbol 122 MovieClip Frame 2
gotoAndPlay (1);
Symbol 127 Button
on (rollOver) {
_root.mainInstructions._visible = true;
_root.mainInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.mainInstructions._visible = false;
_root.mainInstructions.gotoAndStop(1);
}
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 16
stop();
Symbol 175 MovieClip Frame 1
if (!blink) {
blink = true;
time = 0;
blinkTime = random(_root.fps * 5);
}
time++;
Symbol 175 MovieClip Frame 2
if (time >= blinkTime) {
blink = false;
} else {
gotoAndPlay (1);
}
Symbol 177 MovieClip Frame 1
playedYes = false;
if (_root.mood == "good") {
this.mouth.attachMovie("smile", "smile", 1);
if (!playedYes) {
playedYes = true;
yes = new Sound();
yes.attachSound("yes");
yes.start();
}
}
if (_root.mood == "plain") {
this.mouth.attachMovie("plain", "plain", 1);
}
if (_root.mood == "bad") {
this.mouth.attachMovie("frown", "frown", 1);
}
if (_root.mood == "shocked") {
this.mouth.attachMovie("shocked", "shocked", 1);
}
Symbol 177 MovieClip Frame 2
if (_root.mood == "good") {
this.mouth.attachMovie("smile", "smile", 1);
if (!playedYes) {
playedYes = true;
yes = new Sound();
yes.attachSound("yes");
yes.start();
}
}
if (_root.mood == "plain") {
this.mouth.attachMovie("plain", "plain", 1);
}
if (_root.mood == "bad") {
this.mouth.attachMovie("frown", "frown", 1);
}
if (_root.mood == "shocked") {
this.mouth.attachMovie("shocked", "shocked", 1);
}
Symbol 177 MovieClip Frame 3
gotoAndPlay (2);
Symbol 178 MovieClip Frame 1
if ((((_root.money >= 2000) && (_root.CID)) && (_root.TV)) && (!_root.won)) {
_root.gotoAndPlay("main");
} else if (_root.lastAte >= _root.eatTime) {
_root.gotoAndPlay("main");
} else if (_root.lastComp >= _root.compTime) {
_root.gotoAndPlay("main");
} else if (-100 >= _root.money) {
_root.gotoAndPlay("main");
}
Symbol 178 MovieClip Frame 2
gotoAndPlay (1);
Symbol 181 Button
on (press) {
money = money - loseAmount;
gotoAndPlay (4);
}
Symbol 187 Button
on (press) {
money = money - loseAmount;
gotoAndPlay (4);
}
Symbol 191 MovieClip Frame 1
d = new Date();
hr = d.getHours();
mn = d.getMinutes();
if (hr == 0) {
time = "12:";
if (9 < mn) {
time = time + mn;
} else {
time = time + ("0" + mn);
}
time = time + "AM";
} else if (hr == 12) {
time = ("12:" + mn) + "PM";
if (9 < mn) {
time = time + mn;
} else {
time = time + ("0" + mn);
}
time = time + "PM";
} else {
time = (hr % 12) + ":";
if (9 < mn) {
time = time + mn;
} else {
time = time + ("0" + mn);
}
if (12 < hr) {
time = time + "PM";
} else {
time = time + "AM";
}
}
Symbol 191 MovieClip Frame 2
gotoAndPlay (1);
Symbol 196 Button
on (press) {
if (_root.money >= 300) {
_root.money = _root.money - 300;
gotoAndPlay (142);
_root.CID = true;
} else {
gotoAndPlay (141);
}
}
Symbol 197 Button
on (press) {
if (_root.money >= 1000) {
_root.money = _root.money - 1000;
_root.TV = true;
gotoAndPlay (142);
} else {
gotoAndPlay (141);
}
}
Symbol 200 MovieClip Frame 1
if ((((_root.money >= 2000) && (_root.CID)) && (_root.TV)) && (!_root.won)) {
_root.gotoAndPlay("main");
} else if (_root.lastAte >= _root.eatTime) {
_root.gotoAndPlay("main");
} else if (_root.lastComp >= _root.compTime) {
_root.gotoAndPlay("main");
} else if (-100 >= _root.money) {
_root.gotoAndPlay("main");
}
Symbol 200 MovieClip Frame 2
gotoAndPlay (1);
Symbol 201 Button
on (press) {
gotoAndPlay (4);
}
Symbol 202 Button
on (rollOver) {
_root.onlineShoppingInstructions._visible = true;
_root.onlineShoppingInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.onlineShoppingInstructions._visible = false;
_root.onlineShoppingInstructions.gotoAndStop(1);
}
Symbol 206 MovieClip Frame 1
stop();
Symbol 206 MovieClip Frame 23
stop();
Symbol 244 MovieClip Frame 1
jc = new Color(jack.jackface);
qc = new Color(queen.queenface);
kc = new Color(king.kingface);
jc1 = new Color(jack.jackface1);
qc1 = new Color(queen.queenface1);
kc1 = new Color(king.kingface1);
spade._visible = false;
heart._visible = false;
club._visible = false;
diamond._visible = false;
i = 1;
while (i < 16) {
this["tem" + i]._visible = false;
this["ctem" + i]._visible = false;
this["dtem" + i]._visible = false;
this["htem" + i]._visible = false;
i++;
}
this.jack._visible = false;
this.queen._visible = false;
this.king._visible = false;
Symbol 244 MovieClip Frame 2
if (mySuit == "S") {
this.spade._visible = true;
if (value == "A") {
tem8._visible = true;
} else if (value == 2) {
tem6._visible = true;
tem10._visible = true;
} else if (value == 3) {
tem6._visible = true;
tem8._visible = true;
tem10._visible = true;
} else if (value == 4) {
tem1._visible = true;
tem5._visible = true;
tem11._visible = true;
tem15._visible = true;
} else if (value == 5) {
tem1._visible = true;
tem5._visible = true;
tem11._visible = true;
tem15._visible = true;
tem8._visible = true;
} else if (value == 6) {
tem1._visible = true;
tem3._visible = true;
tem5._visible = true;
tem11._visible = true;
tem13._visible = true;
tem15._visible = true;
} else if (value == 7) {
tem1._visible = true;
tem3._visible = true;
tem5._visible = true;
tem11._visible = true;
tem13._visible = true;
tem15._visible = true;
tem7._visible = true;
} else if (value == 8) {
tem1._visible = true;
tem2._visible = true;
tem4._visible = true;
tem5._visible = true;
tem11._visible = true;
tem12._visible = true;
tem14._visible = true;
tem15._visible = true;
} else if (value == 9) {
tem1._visible = true;
tem2._visible = true;
tem4._visible = true;
tem5._visible = true;
tem11._visible = true;
tem12._visible = true;
tem14._visible = true;
tem15._visible = true;
tem8._visible = true;
} else if (value == 10) {
tem1._visible = true;
tem2._visible = true;
tem4._visible = true;
tem5._visible = true;
tem11._visible = true;
tem12._visible = true;
tem14._visible = true;
tem15._visible = true;
tem7._visible = true;
tem9._visible = true;
}
} else if (mySuit == "H") {
this.heart._visible = true;
if (value == "A") {
htem8._visible = true;
} else if (value == 2) {
htem6._visible = true;
htem10._visible = true;
} else if (value == 3) {
htem6._visible = true;
htem8._visible = true;
htem10._visible = true;
} else if (value == 4) {
htem1._visible = true;
htem5._visible = true;
htem11._visible = true;
htem15._visible = true;
} else if (value == 5) {
htem1._visible = true;
htem5._visible = true;
htem11._visible = true;
htem15._visible = true;
htem8._visible = true;
} else if (value == 6) {
htem1._visible = true;
htem3._visible = true;
htem5._visible = true;
htem11._visible = true;
htem13._visible = true;
htem15._visible = true;
} else if (value == 7) {
htem1._visible = true;
htem3._visible = true;
htem5._visible = true;
htem11._visible = true;
htem13._visible = true;
htem15._visible = true;
htem7._visible = true;
} else if (value == 8) {
htem1._visible = true;
htem2._visible = true;
htem4._visible = true;
htem5._visible = true;
htem11._visible = true;
htem12._visible = true;
htem14._visible = true;
htem15._visible = true;
} else if (value == 9) {
htem1._visible = true;
htem2._visible = true;
htem4._visible = true;
htem5._visible = true;
htem11._visible = true;
htem12._visible = true;
htem14._visible = true;
htem15._visible = true;
htem8._visible = true;
} else if (value == 10) {
htem1._visible = true;
htem2._visible = true;
htem4._visible = true;
htem5._visible = true;
htem11._visible = true;
htem12._visible = true;
htem14._visible = true;
htem15._visible = true;
htem7._visible = true;
htem9._visible = true;
}
} else if (mySuit == "C") {
this.club._visible = true;
if (value == "A") {
ctem8._visible = true;
} else if (value == 2) {
ctem6._visible = true;
ctem10._visible = true;
} else if (value == 3) {
ctem6._visible = true;
ctem8._visible = true;
ctem10._visible = true;
} else if (value == 4) {
ctem1._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem15._visible = true;
} else if (value == 5) {
ctem1._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem15._visible = true;
ctem8._visible = true;
} else if (value == 6) {
ctem1._visible = true;
ctem3._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem13._visible = true;
ctem15._visible = true;
} else if (value == 7) {
ctem1._visible = true;
ctem3._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem13._visible = true;
ctem15._visible = true;
ctem7._visible = true;
} else if (value == 8) {
ctem1._visible = true;
ctem2._visible = true;
ctem4._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem12._visible = true;
ctem14._visible = true;
ctem15._visible = true;
} else if (value == 9) {
ctem1._visible = true;
ctem2._visible = true;
ctem4._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem12._visible = true;
ctem14._visible = true;
ctem15._visible = true;
ctem8._visible = true;
} else if (value == 10) {
ctem1._visible = true;
ctem2._visible = true;
ctem4._visible = true;
ctem5._visible = true;
ctem11._visible = true;
ctem12._visible = true;
ctem14._visible = true;
ctem15._visible = true;
ctem7._visible = true;
ctem9._visible = true;
}
} else if (mySuit == "D") {
this.diamond._visible = true;
if (value == "A") {
dtem8._visible = true;
} else if (value == 2) {
dtem6._visible = true;
dtem10._visible = true;
} else if (value == 3) {
dtem6._visible = true;
dtem8._visible = true;
dtem10._visible = true;
} else if (value == 4) {
dtem1._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem15._visible = true;
} else if (value == 5) {
dtem1._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem15._visible = true;
dtem8._visible = true;
} else if (value == 6) {
dtem1._visible = true;
dtem3._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem13._visible = true;
dtem15._visible = true;
} else if (value == 7) {
dtem1._visible = true;
dtem3._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem13._visible = true;
dtem15._visible = true;
dtem7._visible = true;
} else if (value == 8) {
dtem1._visible = true;
dtem2._visible = true;
dtem4._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem12._visible = true;
dtem14._visible = true;
dtem15._visible = true;
} else if (value == 9) {
dtem1._visible = true;
dtem2._visible = true;
dtem4._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem12._visible = true;
dtem14._visible = true;
dtem15._visible = true;
dtem8._visible = true;
} else if (value == 10) {
dtem1._visible = true;
dtem2._visible = true;
dtem4._visible = true;
dtem5._visible = true;
dtem11._visible = true;
dtem12._visible = true;
dtem14._visible = true;
dtem15._visible = true;
dtem7._visible = true;
dtem9._visible = true;
}
}
if (value == "J") {
jack._visible = true;
if ((mySuit == "S") || (mySuit == "C")) {
jc.setRGB(0);
jc1.setRGB(0);
} else {
jc.setRGB(16711680);
jc1.setRGB(16711680);
}
}
if (value == "Q") {
queen._visible = true;
if ((mySuit == "S") || (mySuit == "C")) {
qc.setRGB(0);
qc1.setRGB(0);
} else {
qc.setRGB(16711680);
qc1.setRGB(16711680);
}
}
if (value == "K") {
if ((mySuit == "S") || (mySuit == "C")) {
kc.setRGB(0);
kc1.setRGB(0);
} else {
kc.setRGB(16711680);
kc1.setRGB(16711680);
}
king._visible = true;
}
Symbol 244 MovieClip Frame 3
gotoAndPlay (2);
Symbol 247 Button
on (press) {
if (firstDeal) {
if (money >= (bet * 2)) {
betText = "";
_root.bet = _root.bet * 2;
_root.hit = true;
_root.double = true;
_root.gotoAndPlay("player");
} else {
betText = "not enough money";
}
}
}
Symbol 249 Button
on (press) {
if (turn == true) {
betText = "";
_root.hit = true;
_root.gotoAndPlay("playerinit");
}
}
Symbol 251 Button
on (press) {
if (turn == true) {
betText = "";
_root.gotoAndPlay("dealer");
}
}
Symbol 253 Button
on (press) {
if (gameOver) {
if (money < bet) {
bet = money;
}
if ((money >= bet) && (0 < bet)) {
betText = "";
i = 0;
while (i < pCards) {
_root["pcard" + i].removeMovieClip();
i++;
}
i = 0;
while (i < dCards) {
_root["dcard" + i].removeMovieClip();
i++;
}
_root.gotoAndPlay("newHand");
} else if (0 >= bet) {
betText = "need to raise bet";
} else {
betText = "not enough money";
}
}
}
Symbol 255 Button
on (press) {
if (gameOver == true) {
_root.bet = _root.bet + 5;
}
}
Symbol 257 Button
on (press) {
if (gameOver == true) {
_root.bet = _root.bet - 5;
}
}
Symbol 263 Button
on (press) {
if (gameOver == true) {
_root.bet = money;
}
}
Symbol 270 Button
on (press) {
i = 0;
while (i < pCards) {
_root["pcard" + i].removeMovieClip();
i++;
}
i = 0;
while (i < dCards) {
_root["dcard" + i].removeMovieClip();
i++;
}
gotoAndPlay (4);
}
Symbol 271 Button
on (rollOver) {
_root.blackjackInstructions._visible = true;
_root.blackjackInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.blackjackInstructions._visible = false;
_root.blackjackInstructions.gotoAndStop(1);
}
Symbol 272 Button
on (press) {
i = 0;
while (i < pCards) {
_root["pcard" + i].removeMovieClip();
i++;
}
i = 0;
while (i < dCards) {
_root["dcard" + i].removeMovieClip();
i++;
}
gotoAndPlay (4);
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 22
stop();
Symbol 278 MovieClip Frame 1
if ((((_root.money >= 2000) && (_root.CID)) && (_root.TV)) && (!_root.won)) {
_root.gotoAndPlay("main");
} else if (_root.lastAte >= _root.eatTime) {
_root.gotoAndPlay("main");
} else if (_root.lastComp >= _root.compTime) {
_root.gotoAndPlay("main");
} else if (-100 >= _root.money) {
_root.gotoAndPlay("main");
}
Symbol 278 MovieClip Frame 2
gotoAndPlay (1);
Symbol 279 Button
on (rollOver) {
_root.blackjackInstructions._visible = true;
_root.blackjackInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.blackjackInstructions._visible = false;
_root.blackjackInstructions.gotoAndStop(1);
}
Symbol 286 Button
on (press) {
pickleTime = 0;
gotoAndPlay (103);
}
Symbol 287 Button
on (press) {
if (_root.money >= 3) {
_root.money = _root.money - 5;
_root.lastAte = _root.lastAte - (fps * 90);
if (_root.lastAte < -7200) {
_root.lastAte = -7200;
}
gotoAndPlay (6);
} else {
fridgeText = "You don't have enough money. You'll have to eat the pickle";
}
}
Symbol 289 Button
on (press) {
if (_root.money >= 5) {
_root.money = _root.money - 5;
_root.lastAte = _root.lastAte - ((fps * 60) * 2.5);
if (_root.lastAte < -7200) {
_root.lastAte = -7200;
}
gotoAndPlay (6);
} else {
fridgeText = "You don't have enough money. You'll have to eat the pickle";
}
}
Symbol 291 Button
on (press) {
if (_root.money >= 5) {
_root.money = _root.money - 10;
_root.lastAte = _root.lastAte - ((fps * 5) * 60);
if (_root.lastAte < -7200) {
_root.lastAte = -7200;
}
gotoAndPlay (6);
} else {
fridgeText = "You don't have enough money. You'll have to eat the pickle";
}
}
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 15
stop();
Symbol 299 Button
on (rollOver) {
_root.fridgeInstructions._visible = true;
_root.fridgeInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.fridgeInstructions._visible = false;
_root.fridgeInstructions.gotoAndStop(1);
}
Symbol 312 Button
on (press) {
_root.practice = true;
gotoAndPlay (218);
}
Symbol 314 Button
on (press) {
_root.practice = false;
gotoAndPlay (218);
}
Symbol 316 Button
on (rollOver) {
_root.tankGameBetInstructions._visible = true;
_root.tankGameBetInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.tankGameBetInstructions._visible = false;
_root.tankGameBetInstructions.gotoAndStop(1);
}
Symbol 321 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 22
stop();
Symbol 328 Button
on (press) {
if (90 < random(100)) {
play();
} else {
_root.lastComp = 0;
gotoAndPlay (160);
}
}
Symbol 333 Button
on (press) {
if (90 < random(100)) {
play();
} else {
_root.lastComp = 0;
gotoAndPlay (140);
}
}
Symbol 338 Button
on (press) {
if (50 < random(100)) {
play();
} else {
gotoAndPlay (217);
}
}
Symbol 342 Button
on (press) {
if (90 < random(100)) {
play();
} else {
_root.lastComp = 0;
gotoAndPlay (143);
}
}
Symbol 345 Button
on (press) {
if (90 < random(100)) {
play();
} else {
_root.lastComp = 0;
gotoAndPlay (397);
}
}
Symbol 348 Button
on (press) {
if (90 < random(100)) {
play();
} else {
_root.lastComp = 0;
gotoAndPlay (392);
}
}
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 14
stop();
Symbol 353 Button
on (rollOver) {
_root.computerScreenInstructions._visible = true;
_root.computerScreenInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.computerScreenInstructions._visible = false;
_root.computerScreenInstructions.gotoAndStop(1);
}
Symbol 369 MovieClip Frame 11
gotoAndPlay (1);
Symbol 379 MovieClip Frame 1
firing = false;
stop();
Symbol 384 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 1
if ((((_root.money >= 2000) && (_root.CID)) && (_root.TV)) && (!_root.won)) {
_root.gotoAndPlay("main");
} else if (_root.lastAte >= _root.eatTime) {
_root.gotoAndPlay("main");
} else if (_root.lastComp >= _root.compTime) {
_root.gotoAndPlay("main");
} else if (-100 >= _root.money) {
_root.gotoAndPlay("main");
}
Symbol 394 MovieClip Frame 2
gotoAndPlay (1);
Symbol 395 Button
on (rollOver) {
_root.tankGameInstructions._visible = true;
_root.tankGameInstructions.gotoAndPlay(2);
gotoAndStop (219);
}
on (rollOut) {
_root.tankGameInstructions._visible = false;
_root.tankGameInstructions.gotoAndStop(1);
gotoAndPlay (219);
}
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 22
stop();
Symbol 424 Button
on (press) {
gotoAndPlay (266);
}
Symbol 426 Button
on (press) {
if (_root.money >= 20) {
_root.lastAte = -7200;
_root.money = _root.money - 20;
gotoAndPlay (4);
} else {
phonetext = "You don't have enough money for a pizza";
}
}
Symbol 432 MovieClip Frame 25
_root.fingers.dropping = false;
Instance of Symbol 437 MovieClip in Symbol 439 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.pellet)) {
water = new Sound();
water.attachSound("waterdrop");
water.start();
_root.fingers.dropping = false;
_root.fishHunger = _root.fishHunger - (_root.fps * 60);
if (_root.fishHunger < -7200) {
_root.fishHunger = -7200;
}
}
}
Instance of Symbol 437 MovieClip in Symbol 443 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.pellet)) {
water = new Sound();
water.attachSound("waterdrop");
water.start();
_root.fingers.dropping = false;
_root.fishHunger = _root.fishHunger - (_root.fps * 60);
if (_root.fishHunger < -7200) {
_root.fishHunger = -7200;
}
}
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 452 MovieClip Frame 1
if ((((_root.money >= 2000) && (_root.CID)) && (_root.TV)) && (!_root.won)) {
_root.gotoAndPlay("main");
} else if (_root.lastAte >= _root.eatTime) {
_root.gotoAndPlay("main");
} else if (_root.lastComp >= _root.compTime) {
_root.gotoAndPlay("main");
} else if (-100 >= _root.money) {
_root.gotoAndPlay("main");
}
Symbol 452 MovieClip Frame 2
gotoAndPlay (1);
Symbol 453 Button
on (rollOver) {
_root.fishTankInstructions._visible = true;
_root.fishTankInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.fishTankInstructions._visible = false;
_root.fishTankInstructions.gotoAndStop(1);
}
Symbol 457 MovieClip Frame 1
stop();
Symbol 457 MovieClip Frame 22
stop();
Symbol 460 Button
on (press) {
if (_root.money >= 25) {
_root.money = _root.money - 25;
_root.fishHunger = 0;
gotoAndStop (224);
} else {
fishbuytext = "You don't have enough money for a new fish.";
}
}
Symbol 467 Button
on (press) {
gotoAndPlay (1);
}
Symbol 471 Button
on (rollOver) {
_root.phoneCallInstructions._visible = true;
_root.phoneCallInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.phoneCallInstructions._visible = false;
_root.phoneCallInstructions.gotoAndStop(1);
}
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 23
stop();
Symbol 476 Button
on (press) {
play();
}
Symbol 486 Button
on (press) {
_root.r2 = 1;
play();
}
Symbol 487 Button
on (press) {
_root.r2 = 2;
play();
}
Symbol 488 Button
on (press) {
_root.r2 = 3;
play();
}
Symbol 493 Button
on (press) {
gotoAndPlay (4);
if (_root.callerText.charAt(_root.callerText.length - 1) == "\t") {
money = money - loseAmount;
} else if (_root.callerText.charAt(_root.callerText.length - 1) == newline) {
money = money + winAmount;
}
}
Symbol 494 Button
on (press) {
gotoAndPlay (4);
if (_root.callerText.charAt(_root.callerText.length - 1) == "\t") {
money = money - loseAmount;
} else if (_root.callerText.charAt(_root.callerText.length - 1) == newline) {
money = money + winAmount;
}
}
Symbol 501 MovieClip Frame 1
stop();
Symbol 501 MovieClip Frame 2
stop();
Symbol 526 Button
on (press) {
if (0 < _root.betAmount) {
_root.colorBet = _root.colorBar.ColorChoice;
_root.colorBetAmount = betAmount;
play();
} else {
betText = "Not Enough Money";
}
}
Symbol 530 Button
on (press) {
if (_root.betColorNum < 3) {
_root.betColorNum++;
}
}
Symbol 531 Button
on (press) {
if (0 < _root.betColorNum) {
_root.betColorNum--;
}
}
Symbol 538 Button
on (press) {
gotoAndPlay (4);
}
Symbol 540 Button
on (rollOver) {
_root.wheelGameInstructions._visible = true;
_root.wheelGameInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.wheelGameInstructions._visible = false;
_root.wheelGameInstructions.gotoAndStop(1);
}
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 20
stop();
Symbol 553 Button
on (press) {
gotoAndPlay (392);
}
Symbol 567 Button
on (press) {
if (_root.money >= 50) {
if (!_root.stopped) {
_root.stopped = true;
_root.firstStop = true;
} else if (_root.stopped) {
_root.stopped = false;
}
} else {
_root.pressYourLuckText = "You need at least $50 to play this game";
}
}
Symbol 582 Button
on (rollOver) {
_root.pressYourLuckInstructions._visible = true;
_root.pressYourLuckInstructions.gotoAndPlay(2);
}
on (rollOut) {
_root.pressYourLuckInstructions._visible = false;
_root.pressYourLuckInstructions.gotoAndStop(1);
}
Symbol 586 MovieClip Frame 1
stop();
Symbol 586 MovieClip Frame 21
stop();