Frame 1
Stage.showMenu = false;
Frame 137
function openCase() {
if (pickedcase == 1) {
_root.opening.openedcase.blocknumber = _root.case1.blocknumber;
_root.checkamount = _root.case1.checkamount;
_root.tempvalue = _root.case1.dollaramount;
_root.opening.dollaramount = "$" + _root.case1.dollaramount;
_root.opening.play();
} else if (pickedcase == 2) {
_root.opening.openedcase.blocknumber = _root.case2.blocknumber;
_root.checkamount = _root.case2.checkamount;
_root.tempvalue = _root.case2.dollaramount;
_root.opening.dollaramount = "$" + _root.case2.dollaramount;
_root.opening.play();
} else if (pickedcase == 3) {
_root.opening.openedcase.blocknumber = _root.case3.blocknumber;
_root.checkamount = _root.case3.checkamount;
_root.tempvalue = _root.case3.dollaramount;
_root.opening.dollaramount = "$" + _root.case3.dollaramount;
_root.opening.play();
} else if (pickedcase == 4) {
_root.opening.openedcase.blocknumber = _root.case4.blocknumber;
_root.checkamount = _root.case4.checkamount;
_root.tempvalue = _root.case4.dollaramount;
_root.opening.dollaramount = "$" + _root.case4.dollaramount;
_root.opening.play();
} else if (pickedcase == 5) {
_root.opening.openedcase.blocknumber = _root.case5.blocknumber;
_root.checkamount = _root.case5.checkamount;
_root.tempvalue = _root.case5.dollaramount;
_root.opening.dollaramount = "$" + _root.case5.dollaramount;
_root.opening.play();
} else if (pickedcase == 6) {
_root.opening.openedcase.blocknumber = _root.case6.blocknumber;
_root.checkamount = _root.case6.checkamount;
_root.tempvalue = _root.case6.dollaramount;
_root.opening.dollaramount = "$" + _root.case6.dollaramount;
_root.opening.play();
} else if (pickedcase == 7) {
_root.opening.openedcase.blocknumber = _root.case7.blocknumber;
_root.checkamount = _root.case7.checkamount;
_root.tempvalue = _root.case7.dollaramount;
_root.opening.dollaramount = "$" + _root.case7.dollaramount;
_root.opening.play();
} else if (pickedcase == 8) {
_root.opening.openedcase.blocknumber = _root.case8.blocknumber;
_root.checkamount = _root.case8.checkamount;
_root.tempvalue = _root.case8.dollaramount;
_root.opening.dollaramount = "$" + _root.case8.dollaramount;
_root.opening.play();
} else if (pickedcase == 9) {
_root.opening.openedcase.blocknumber = _root.case9.blocknumber;
_root.checkamount = _root.case9.checkamount;
_root.tempvalue = _root.case9.dollaramount;
_root.opening.dollaramount = "$" + _root.case9.dollaramount;
_root.opening.play();
} else if (pickedcase == 10) {
_root.opening.openedcase.blocknumber = _root.case10.blocknumber;
_root.checkamount = _root.case10.checkamount;
_root.tempvalue = _root.case10.dollaramount;
_root.opening.dollaramount = "$" + _root.case10.dollaramount;
_root.opening.play();
} else if (pickedcase == 11) {
_root.opening.openedcase.blocknumber = _root.case11.blocknumber;
_root.checkamount = _root.case11.checkamount;
_root.tempvalue = _root.case11.dollaramount;
_root.opening.dollaramount = "$" + _root.case11.dollaramount;
_root.opening.play();
} else if (pickedcase == 12) {
_root.opening.openedcase.blocknumber = _root.case12.blocknumber;
_root.checkamount = _root.case12.checkamount;
_root.tempvalue = _root.case12.dollaramount;
_root.opening.dollaramount = "$" + _root.case12.dollaramount;
_root.opening.play();
} else if (pickedcase == 13) {
_root.opening.openedcase.blocknumber = _root.case13.blocknumber;
_root.checkamount = _root.case13.checkamount;
_root.tempvalue = _root.case13.dollaramount;
_root.opening.dollaramount = "$" + _root.case13.dollaramount;
_root.opening.play();
} else if (pickedcase == 14) {
_root.opening.openedcase.blocknumber = _root.case14.blocknumber;
_root.checkamount = _root.case14.checkamount;
_root.tempvalue = _root.case14.dollaramount;
_root.opening.dollaramount = "$" + _root.case14.dollaramount;
_root.opening.play();
} else if (pickedcase == 15) {
_root.opening.openedcase.blocknumber = _root.case15.blocknumber;
_root.checkamount = _root.case15.checkamount;
_root.tempvalue = _root.case15.dollaramount;
_root.opening.dollaramount = "$" + _root.case15.dollaramount;
_root.opening.play();
} else if (pickedcase == 16) {
_root.opening.openedcase.blocknumber = _root.case16.blocknumber;
_root.checkamount = _root.case16.checkamount;
_root.tempvalue = _root.case16.dollaramount;
_root.opening.dollaramount = "$" + _root.case16.dollaramount;
_root.opening.play();
} else if (pickedcase == 17) {
_root.opening.openedcase.blocknumber = _root.case17.blocknumber;
_root.checkamount = _root.case17.checkamount;
_root.tempvalue = _root.case17.dollaramount;
_root.opening.dollaramount = "$" + _root.case17.dollaramount;
_root.opening.play();
} else if (pickedcase == 18) {
_root.opening.openedcase.blocknumber = _root.case18.blocknumber;
_root.checkamount = _root.case18.checkamount;
_root.tempvalue = _root.case18.dollaramount;
_root.opening.dollaramount = "$" + _root.case18.dollaramount;
_root.opening.play();
} else if (pickedcase == 19) {
_root.opening.openedcase.blocknumber = _root.case19.blocknumber;
_root.checkamount = _root.case19.checkamount;
_root.tempvalue = _root.case19.dollaramount;
_root.opening.dollaramount = "$" + _root.case19.dollaramount;
_root.opening.play();
} else if (pickedcase == 20) {
_root.opening.openedcase.blocknumber = _root.case20.blocknumber;
_root.checkamount = _root.case20.checkamount;
_root.tempvalue = _root.case20.dollaramount;
_root.opening.dollaramount = "$" + _root.case20.dollaramount;
_root.opening.play();
} else if (pickedcase == 21) {
_root.opening.openedcase.blocknumber = _root.case21.blocknumber;
_root.checkamount = _root.case21.checkamount;
_root.tempvalue = _root.case21.dollaramount;
_root.opening.dollaramount = "$" + _root.case21.dollaramount;
_root.opening.play();
} else if (pickedcase == 22) {
_root.opening.openedcase.blocknumber = _root.case22.blocknumber;
_root.checkamount = _root.case22.checkamount;
_root.tempvalue = _root.case22.dollaramount;
_root.opening.dollaramount = "$" + _root.case22.dollaramount;
_root.opening.play();
} else if (pickedcase == 23) {
_root.opening.openedcase.blocknumber = _root.case23.blocknumber;
_root.checkamount = _root.case23.checkamount;
_root.tempvalue = _root.case23.dollaramount;
_root.opening.dollaramount = "$" + _root.case23.dollaramount;
_root.opening.play();
} else if (pickedcase == 24) {
_root.opening.openedcase.blocknumber = _root.case24.blocknumber;
_root.checkamount = _root.case24.checkamount;
_root.tempvalue = _root.case24.dollaramount;
_root.opening.dollaramount = "$" + _root.case24.dollaramount;
_root.opening.play();
} else if (pickedcase == 25) {
_root.opening.openedcase.blocknumber = _root.case25.blocknumber;
_root.checkamount = _root.case25.checkamount;
_root.tempvalue = _root.case25.dollaramount;
_root.opening.dollaramount = "$" + _root.case25.dollaramount;
_root.opening.play();
} else if (pickedcase == 26) {
_root.opening.openedcase.blocknumber = _root.case26.blocknumber;
_root.checkamount = _root.case26.checkamount;
_root.tempvalue = _root.case26.dollaramount;
_root.opening.dollaramount = "$" + _root.case26.dollaramount;
_root.opening.play();
}
}
function flipAmount() {
_root.opening.gotoAndStop(1);
if (_root.tempvalue == 0.01) {
_root.cent.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 1) {
_root.one.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 5) {
_root.five.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 10) {
_root.ten.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 25) {
_root.twentyfive.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 50) {
_root.fifty.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 75) {
_root.seventyfive.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 100) {
_root.oneg.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 200) {
_root.twog.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 300) {
_root.threeg.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 400) {
_root.fourg.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 500) {
_root.fiveg.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 750) {
_root.sevenfifty.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 1000) {
_root.onek.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 5000) {
_root.fivek.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 10000) {
_root.tenk.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 25000) {
_root.twentyfivek.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 50000) {
_root.fiftyk.play();
_root.smallvalueremoved = _root.smallvalueremoved + 1;
} else if (_root.tempvalue == 75000) {
_root.seventyfivek.play();
_root.largevalueremoved = _root.largevalueremoved + 1;
} else if (_root.tempvalue == 100000) {
_root.hundredk.play();
_root.largevalueremoved = _root.largevalueremoved + 1;
} else if (_root.tempvalue == 200000) {
_root.twohundredk.play();
_root.largevalueremoved = _root.largevalueremoved + 1;
} else if (_root.tempvalue == 300000) {
_root.threehundredk.play();
_root.largevalueremoved = _root.largevalueremoved + 1;
} else if (_root.tempvalue == 400000) {
_root.fourhundredk.play();
_root.largevalueremoved = _root.largevalueremoved + 2;
} else if (_root.tempvalue == 500000) {
_root.fivehundredk.play();
_root.largevalueremoved = _root.largevalueremoved + 3;
} else if (_root.tempvalue == 750000) {
_root.sevenfiftyk.play();
_root.largevalueremoved = _root.largevalueremoved + 4;
} else if (_root.tempvalue == 1000000) {
_root.million.play();
_root.largevalueremoved = _root.largevalueremoved + 5;
}
trace(largevalueremoved);
trace(smallvalueremoved);
}
function buttonDisabled() {
if (your_briefcase.blocknumber == 1) {
button1._visible = false;
} else if (your_briefcase.blocknumber == 2) {
button2._visible = false;
} else if (your_briefcase.blocknumber == 3) {
button3._visible = false;
} else if (your_briefcase.blocknumber == 4) {
button4._visible = false;
} else if (your_briefcase.blocknumber == 5) {
button5._visible = false;
} else if (your_briefcase.blocknumber == 6) {
button6._visible = false;
} else if (your_briefcase.blocknumber == 7) {
button7._visible = false;
} else if (your_briefcase.blocknumber == 8) {
button8._visible = false;
} else if (your_briefcase.blocknumber == 9) {
button9._visible = false;
} else if (your_briefcase.blocknumber == 10) {
button10._visible = false;
} else if (your_briefcase.blocknumber == 11) {
button11._visible = false;
} else if (your_briefcase.blocknumber == 12) {
button12._visible = false;
} else if (your_briefcase.blocknumber == 13) {
button13._visible = false;
} else if (your_briefcase.blocknumber == 14) {
button14._visible = false;
} else if (your_briefcase.blocknumber == 15) {
button15._visible = false;
} else if (your_briefcase.blocknumber == 16) {
button16._visible = false;
} else if (your_briefcase.blocknumber == 17) {
button17._visible = false;
} else if (your_briefcase.blocknumber == 18) {
button18._visible = false;
} else if (your_briefcase.blocknumber == 19) {
button19._visible = false;
} else if (your_briefcase.blocknumber == 20) {
button20._visible = false;
} else if (your_briefcase.blocknumber == 21) {
button21._visible = false;
} else if (your_briefcase.blocknumber == 22) {
button22._visible = false;
} else if (your_briefcase.blocknumber == 23) {
button23._visible = false;
} else if (your_briefcase.blocknumber == 24) {
button24._visible = false;
} else if (your_briefcase.blocknumber == 25) {
button25._visible = false;
} else if (your_briefcase.blocknumber == 26) {
button26._visible = false;
}
}
function banker() {
_root.total = _root.your_value;
_root.countit = 1;
y = 1;
while (y < 27) {
tellTarget ("case" + y) {
if (_visible == true) {
_root.countit = _root.countit + 1;
trace("Case Count: " + _root.countit);
trace("Visibility: " + _visible);
_root.total = _root.total + dollaramount;
trace(dollaramount);
} else {
_root.total = _root.total;
}
trace(_root.total);
};
y++;
}
trace("BANKER DEAL");
_root.total = _root.total / _root.countit;
trace("AVERAGE: " + _root.total);
if (_root.countit == 20) {
_root.total = _root.total * 0.1;
} else if (_root.countit == 15) {
_root.total = _root.total * 0.3;
} else if (_root.countit == 11) {
_root.total = _root.total * 0.75;
} else if (_root.countit == 8) {
_root.total = _root.total * 0.83;
} else if (_root.countit == 6) {
_root.total = _root.total * 0.95;
} else if (_root.countit == 5) {
_root.total = _root.total * 1.01;
} else if (_root.countit == 4) {
_root.total = _root.total;
} else if (_root.countit == 2) {
_root.total = _root.total * 1.02;
} else {
_root.total = _root.total * 1.05;
}
trace("ADJUSTED: " + _root.total);
if (_root.total < 50) {
_root.total = int(_root.total * 100) / 100;
} else if (_root.total < 100) {
_root.total = Math.round(_root.total / 10) * 10;
} else if (_root.total < 1000) {
_root.total = Math.round(_root.total / 100) * 100;
} else {
_root.total = Math.round(_root.total / 1000) * 1000;
}
if (_root.largevalueremoved > _root.smallvalueremoved) {
_root.bankerskew = _root.largevalueremoved * 4000;
if (_root.total > _root.bankerskew) {
_root.total = _root.total - _root.bankerskew;
}
} else if (_root.smallvalueremoved > _root.largevalueremoved) {
_root.bankerskew = _root.smallvalueremoved * 2000;
if (_root.total > _root.bankerskew) {
_root.total = _root.total + _root.bankerskew;
}
}
trace("BANKER SKEW: $" + _root.bankerskew);
trace("OFFER: " + _root.total);
_root.bankeroffer = "$" + _root.total;
_root.bankerskew = 0;
_root.largevalueremoved = 0;
_root.smallvalueremoved = 0;
}
function takeTheCase() {
dondtrigger = "case";
gotoAndPlay (185);
}
prevoffer = new Array("", "", "", "", "", "");
small = new Sound();
small.attachSound("small");
large = new Sound();
large.attachSound("large");
bankloop = new Sound();
bankloop.attachSound("bankloop");
nodeal = new Sound();
nodeal.attachSound("nodeal");
_root.bankerskew = 0;
_root.largevalueremoved = 0;
_root.smallvalueremoved = 0;
Frame 182
rules._visible = false;
rules_button._visible = false;
caseamount = new Array(0.01, 1, 5, 10, 25, 50, 75, 100, 200, 300, 400, 500, 750, 1000, 5000, 10000, 25000, 50000, 75000, 100000, 200000, 300000, 400000, 500000, 750000, 1000000);
total = 0;
countit = 0;
stop();
Frame 183
function bankCheck() {
if (removeamount == 0) {
bankmovie._visible = true;
bankmovie.play();
}
}
status = "Welcome to Deal or No Deal! Select the case you think has the million.";
opening._visible = false;
checkamount = 0;
x = 1;
while (x < 27) {
caselength = caseamount.length;
casepick = random(caselength);
tellTarget ("case" + x) {
blocknumber = _root.x;
dollaramount = _root.caseamount[_root.casepick];
checkamount = dollaramount;
trace((("DOLLAR: " + _root.x) + ": ") + dollaramount);
trace((("CHECK: " + _root.x) + ": ") + checkamount);
};
caseamount.splice(casepick, 1);
x++;
}
milliongone = false;
sevenfiftygone = false;
fivegone = false;
your_briefcase.blocknumber = "?";
lastamount = 7;
casequantity = 26;
stop();
function statusWriter() {
statusdisplay = Number(random(50) + 1);
if (_root.removeamount == 1) {
_root.casestogo = "CASE\rTO\rGO";
} else if (_root.removeamount == 0) {
_root.casestogo = "CASES\rTO\rGO";
} else {
_root.casestogo = "CASES\rTO\rGO";
}
trace(statusdisplay);
if (statusdisplay > 44) {
if (_root.largevalueremoved > _root.smallvalueremoved) {
_root.status = "You need to be more careful! You've knocked big amounts off.";
} else {
_root.status = "You're not doing too bad right now. Keep it up.";
}
} else if (statusdisplay > 39) {
if (_root.largevalueremoved > _root.smallvalueremoved) {
_root.status = "The banker's pretty relaxed right now. Step it up!";
} else if (_root.smallvalueremoved > _root.largevalueremoved) {
_root.status = "You've got the banker on edge, so keep it up!";
} else {
_root.status = "I don't think anyone can read the banker's mind right now.";
}
} else if (statusdisplay > 34) {
_root.casepercent = int((1 / _root.casequantity) * 100);
if (_root.casequantity > 10) {
if (_root.milliongone == false) {
_root.status = ("You have a 1 in " + _root.casequantity) + " chance of winning $1,000,000!";
} else if (_root.sevenfiftygone == false) {
_root.status = ("You have a 1 in " + _root.casequantity) + " chance of winning $750,000!";
} else if (_root.fivegone == false) {
_root.status = ("You have a 1 in " + _root.casequantity) + " chance of winning $500,000!";
} else {
_root.status = "This game isn't over yet. Keep going!";
}
} else if (_root.milliongone == false) {
_root.status = ("You have a " + _root.casepercent) + "% chance of winning $1,000,000!";
} else if (_root.sevenfiftygone == false) {
_root.status = ("You have a " + _root.casepercent) + "% chance of winning $750,000!";
} else if (_root.fivegone == false) {
_root.status = ("You have a " + _root.casepercent) + "% chance of winning $500,000!";
} else {
_root.status = "This game isn't over yet. Keep going!";
}
} else {
trace("AMOUNT TO BE REMOVED: " + _root.removeamount);
if (_root.removeamount == 1) {
_root.status = "Please select 1 case to be removed.";
} else if (_root.removeamount == 0) {
_root.status = "Stand by...";
} else {
_root.status = ("Please select " + _root.removeamount) + " cases to be removed.";
}
}
}
Frame 184
trace(your_briefcase.blocknumber);
buttonDisabled();
trace(your_briefcase.blocknumber);
removeamount = lastamount - 1;
lastamount = removeamount;
trace(lastamount);
trace(removeamount);
status = "Let's get this game started. Select a briefcase.";
opening._visible = false;
bankmovie._visible = false;
stop();
Frame 185
bankloop.stop();
if (dondtrigger == "case") {
gotoAndPlay ("checkcase");
}
Frame 229
if (dondtrigger != "case") {
gotoAndPlay ("revealcase");
}
Frame 245
if (dondtrigger == "case") {
bankoffer = "Your Case";
}
your_briefcase.blocknumber = your_case;
Frame 255
your_value = "$" + your_value;
Frame 304
stop();
Frame 963
gotoAndPlay (137);
Symbol 12 Button
on (release) {
_root.play();
}
Symbol 13 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 13 MovieClip Frame 2
gotoAndPlay (1);
Symbol 68 Button
on (release) {
stopAllSounds();
play();
}
Symbol 74 Button
on (release) {
stopAllSounds();
gotoAndPlay (305);
}
Symbol 79 Button
on (release) {
rules._visible = true;
}
Symbol 83 Button
on (release) {
rules._visible = false;
rules_button._visible = false;
}
Symbol 90 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 90 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 93 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 93 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 96 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 96 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 99 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 99 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 102 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 102 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 105 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 105 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 108 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 108 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 111 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 111 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 114 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 114 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 117 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 117 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 120 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 120 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 123 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 123 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 126 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 126 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 129 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 129 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 132 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 132 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 135 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 135 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 138 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 138 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 141 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 141 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 144 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 144 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 147 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 147 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 150 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 150 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 153 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 153 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 156 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 156 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 159 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 159 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 162 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 162 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 165 MovieClip Frame 1
_root.bankCheck();
stop();
Symbol 165 MovieClip Frame 15
_root.bankCheck();
stop();
Symbol 168 Button
on (release) {
your_briefcase.blocknumber = 1;
your_case = your_briefcase.blocknumber;
your_value = case1.dollaramount;
case1._visible = false;
button1.enabled = false;
play();
}
Symbol 169 Button
on (release) {
your_briefcase.blocknumber = 2;
your_value = case2.dollaramount;
case2._visible = false;
button2.enabled = false;
play();
}
Symbol 170 Button
on (release) {
your_briefcase.blocknumber = 3;
your_value = case3.dollaramount;
case3._visible = false;
button3.enabled = false;
play();
}
Symbol 171 Button
on (release) {
your_briefcase.blocknumber = 4;
your_value = case4.dollaramount;
case4._visible = false;
button4.enabled = false;
play();
}
Symbol 172 Button
on (release) {
your_briefcase.blocknumber = 5;
your_value = case5.dollaramount;
case5._visible = false;
button5.enabled = false;
play();
}
Symbol 173 Button
on (release) {
your_briefcase.blocknumber = 6;
your_value = case6.dollaramount;
case6._visible = false;
button6.enabled = false;
play();
}
Symbol 174 Button
on (release) {
your_briefcase.blocknumber = 7;
your_value = case7.dollaramount;
case7._visible = false;
button7.enabled = false;
play();
}
Symbol 175 Button
on (release) {
your_briefcase.blocknumber = 8;
your_value = case8.dollaramount;
case8._visible = false;
button8.enabled = false;
play();
}
Symbol 176 Button
on (release) {
your_briefcase.blocknumber = 9;
your_value = case9.dollaramount;
case9._visible = false;
button9.enabled = false;
play();
}
Symbol 177 Button
on (release) {
your_briefcase.blocknumber = 10;
your_value = case10.dollaramount;
case10._visible = false;
button10.enabled = false;
play();
}
Symbol 178 Button
on (release) {
your_briefcase.blocknumber = 11;
your_value = case11.dollaramount;
case11._visible = false;
button11.enabled = false;
play();
}
Symbol 179 Button
on (release) {
your_briefcase.blocknumber = 12;
your_value = case12.dollaramount;
case12._visible = false;
button12.enabled = false;
play();
}
Symbol 180 Button
on (release) {
your_briefcase.blocknumber = 13;
your_value = case13.dollaramount;
case13._visible = false;
button13.enabled = false;
play();
}
Symbol 181 Button
on (release) {
your_briefcase.blocknumber = 14;
your_value = case14.dollaramount;
case14._visible = false;
button14.enabled = false;
play();
}
Symbol 182 Button
on (release) {
your_briefcase.blocknumber = 15;
your_value = case15.dollaramount;
case15._visible = false;
button15.enabled = false;
play();
}
Symbol 183 Button
on (release) {
your_briefcase.blocknumber = 16;
your_value = case16.dollaramount;
case16._visible = false;
button16.enabled = false;
play();
}
Symbol 184 Button
on (release) {
your_briefcase.blocknumber = 17;
your_value = case17.dollaramount;
case17._visible = false;
button17.enabled = false;
play();
}
Symbol 185 Button
on (release) {
your_briefcase.blocknumber = 18;
your_value = case18.dollaramount;
case18._visible = false;
button18.enabled = false;
play();
}
Symbol 186 Button
on (release) {
your_briefcase.blocknumber = 19;
your_value = case19.dollaramount;
case19._visible = false;
button19.enabled = false;
play();
}
Symbol 187 Button
on (release) {
your_briefcase.blocknumber = 20;
your_value = case20.dollaramount;
case20._visible = false;
button20.enabled = false;
play();
}
Symbol 188 Button
on (release) {
your_briefcase.blocknumber = 21;
your_value = case21.dollaramount;
case21._visible = false;
button21.enabled = false;
play();
}
Symbol 189 Button
on (release) {
your_briefcase.blocknumber = 22;
your_value = case22.dollaramount;
case22._visible = false;
button22.enabled = false;
play();
}
Symbol 190 Button
on (release) {
your_briefcase.blocknumber = 23;
your_value = case23.dollaramount;
case23._visible = false;
button23.enabled = false;
play();
}
Symbol 191 Button
on (release) {
your_briefcase.blocknumber = 24;
your_value = case24.dollaramount;
case24._visible = false;
button24.enabled = false;
play();
}
Symbol 192 Button
on (release) {
your_briefcase.blocknumber = 25;
your_value = case25.dollaramount;
case25._visible = false;
button25.enabled = false;
play();
}
Symbol 193 Button
on (release) {
your_briefcase.blocknumber = 26;
your_value = case26.dollaramount;
case26._visible = false;
button26.enabled = false;
play();
}
Symbol 202 Button
on (release) {
opening._visible = true;
pickedcase = 1;
openCase();
case1._visible = false;
button1.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 203 Button
on (release) {
opening._visible = true;
pickedcase = 2;
openCase();
case2._visible = false;
button2.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 204 Button
on (release) {
opening._visible = true;
pickedcase = 3;
openCase();
case3._visible = false;
button3.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 205 Button
on (release) {
opening._visible = true;
pickedcase = 4;
openCase();
case4._visible = false;
button4.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 206 Button
on (release) {
opening._visible = true;
pickedcase = 5;
openCase();
case5._visible = false;
button5.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 207 Button
on (release) {
opening._visible = true;
pickedcase = 6;
openCase();
case6._visible = false;
button6.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 208 Button
on (release) {
opening._visible = true;
pickedcase = 7;
openCase();
case7._visible = false;
button7.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 209 Button
on (release) {
opening._visible = true;
pickedcase = 8;
openCase();
case8._visible = false;
button8.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 210 Button
on (release) {
opening._visible = true;
pickedcase = 9;
openCase();
case9._visible = false;
button9.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 211 Button
on (release) {
opening._visible = true;
pickedcase = 10;
openCase();
case10._visible = false;
button10.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 212 Button
on (release) {
opening._visible = true;
pickedcase = 11;
openCase();
case11._visible = false;
button11.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 213 Button
on (release) {
opening._visible = true;
pickedcase = 12;
openCase();
case12._visible = false;
button12.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 214 Button
on (release) {
opening._visible = true;
pickedcase = 13;
openCase();
case13._visible = false;
button13.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 215 Button
on (release) {
opening._visible = true;
pickedcase = 14;
openCase();
case14._visible = false;
button14.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 216 Button
on (release) {
opening._visible = true;
pickedcase = 15;
openCase();
case15._visible = false;
button15.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 217 Button
on (release) {
opening._visible = true;
pickedcase = 16;
openCase();
case16._visible = false;
button16.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 218 Button
on (release) {
opening._visible = true;
pickedcase = 17;
openCase();
case17._visible = false;
button17.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 219 Button
on (release) {
opening._visible = true;
pickedcase = 18;
openCase();
case18._visible = false;
button18.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 220 Button
on (release) {
opening._visible = true;
pickedcase = 19;
openCase();
case19._visible = false;
button19.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 221 Button
on (release) {
opening._visible = true;
pickedcase = 20;
openCase();
case20._visible = false;
button20.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 222 Button
on (release) {
opening._visible = true;
pickedcase = 21;
openCase();
case21._visible = false;
button21.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 223 Button
on (release) {
opening._visible = true;
pickedcase = 22;
openCase();
case22._visible = false;
button22.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 224 Button
on (release) {
opening._visible = true;
pickedcase = 23;
openCase();
case23._visible = false;
button23.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 225 Button
on (release) {
opening._visible = true;
pickedcase = 24;
openCase();
case24._visible = false;
button24.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 226 Button
on (release) {
opening._visible = true;
pickedcase = 25;
openCase();
case25._visible = false;
button25.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 227 Button
on (release) {
opening._visible = true;
pickedcase = 26;
openCase();
case26._visible = false;
button26.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 33
if (_root.checkamount > 50000) {
_root.large.start();
} else {
_root.small.start();
}
if (_root.checkamount == 1000000) {
_root.milliongone = true;
}
if (_root.checkamount == 750000) {
_root.sevenfiftygone = true;
}
if (_root.checkamount == 500000) {
_root.fivegone = true;
}
Symbol 240 MovieClip Frame 60
_root.removeamount = _root.removeamount - 1;
_root.flipAmount();
_root.opening._visible = false;
_root.casequantity = _root.casequantity - 1;
trace("CHECK AMOUNT: " + _root.checkamount);
trace("MILLION GONE? " + _root.milliongone);
trace("$750,000 GONE? " + _root.sevenfiftygone);
trace("$500,000 GONE? " + _root.fivegone);
_root.statusWriter();
stop();
Symbol 252 Button
on (release) {
_root.play();
}
Symbol 254 Button
on (release) {
_root.bankloop.stop();
_root.nodeal.start();
if (_root.countit == 2) {
_root.takeTheCase();
} else {
_root.bankeroffer = bankeroffer;
_root.prevoffer.splice(0, 0, _root.bankeroffer);
trace(_root.prevoffer);
_root.buttonDisabled();
if (_root.lastamount == 1) {
_root.removeamount = 1;
_root.lastamount = 1;
} else {
_root.removeamount = _root.lastamount - 1;
_root.lastamount = _root.removeamount;
}
trace(_root.lastamount);
trace(_root.removeamount);
if (_root.removeamount == 1) {
_root.status = "Please select 1 case to be removed.";
} else {
_root.status = ("Please select " + _root.removeamount) + " cases to be removed.";
}
_root.bankmovie.gotoAndPlay(1);
_root.opening._visible = false;
_root.bankmovie._visible = false;
stop();
}
}
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
_root.bankloop.start(0, 1000);
Symbol 261 MovieClip Frame 141
_root.banker();
bankeroffer = "$" + _root.total;
Symbol 261 MovieClip Frame 175
if (_root.countit == 2) {
_root.status = "If you don't take this deal, you will be taking whatever's in your case.";
} else if (_root.lastamount > 1) {
_root.status = ("If you don't take this deal, you'll be removing " + (_root.lastamount - 1)) + " cases.";
} else if (_root.lastamount == 1) {
_root.status = "If you don't take this deal, you'll be removing 1 case.";
}
_root.bankoffer = bankeroffer;
stop();
prevoffer1 = _root.prevoffer[0];
prevoffer2 = _root.prevoffer[1];
prevoffer3 = _root.prevoffer[2];
prevoffer4 = _root.prevoffer[3];
prevoffer5 = _root.prevoffer[4];
prevoffer6 = _root.prevoffer[5];
prevoffer7 = _root.prevoffer[6];
Symbol 278 Button
on (release) {
stopAllSounds();
gotoAndPlay (137);
}