Frame 1
mochi.MochiServices.connect("1f00bf7ae707797e");
stop();
MochiAd.showPreGameAd({id:"1f00bf7ae707797e", res:"640x480"});
Frame 2
ambience = new Sound();
ambience.attachSound("ambience");
Frame 141
stop();
Frame 277
clang = new Sound();
clang.attachSound("clang");
bonus = new Sound();
bonus.attachSound("bonus");
small = new Sound();
small.attachSound("small");
large = new Sound();
large.attachSound("large");
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();
_root.opening.food = _root.case1.food;
} 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();
_root.opening.food = _root.case2.food;
} 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();
_root.opening.food = _root.case3.food;
} 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();
_root.opening.food = _root.case4.food;
} 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();
_root.opening.food = _root.case5.food;
} 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();
_root.opening.food = _root.case6.food;
} 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();
_root.opening.food = _root.case7.food;
} 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();
_root.opening.food = _root.case8.food;
} 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();
_root.opening.food = _root.case9.food;
} 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();
_root.opening.food = _root.case10.food;
} 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();
_root.opening.food = _root.case11.food;
} 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();
_root.opening.food = _root.case12.food;
} 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();
_root.opening.food = _root.case13.food;
} 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();
_root.opening.food = _root.case14.food;
} 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();
_root.opening.food = _root.case15.food;
} 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();
_root.opening.food = _root.case16.food;
} 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();
_root.opening.food = _root.case17.food;
} 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();
_root.opening.food = _root.case18.food;
} 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();
_root.opening.food = _root.case19.food;
} 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();
_root.opening.food = _root.case20.food;
} 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();
_root.opening.food = _root.case21.food;
} 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();
_root.opening.food = _root.case22.food;
} 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();
_root.opening.food = _root.case23.food;
} 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();
_root.opening.food = _root.case24.food;
} 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();
_root.opening.food = _root.case25.food;
} 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();
_root.opening.food = _root.case26.food;
}
}
function flipAmount() {
_root.opening.gotoAndStop(1);
if (pickedcase == luckycase) {
clang.start();
}
if (_root.tempvalue == 0.01) {
_root.cent.play();
} else if (_root.tempvalue == 1) {
_root.one.play();
} else if (_root.tempvalue == 5) {
_root.five.play();
} else if (_root.tempvalue == 10) {
_root.ten.play();
} else if (_root.tempvalue == 25) {
_root.twentyfive.play();
} else if (_root.tempvalue == 50) {
_root.fifty.play();
} else if (_root.tempvalue == 75) {
_root.seventyfive.play();
} else if (_root.tempvalue == 100) {
_root.oneg.play();
} else if (_root.tempvalue == 200) {
_root.twog.play();
} else if (_root.tempvalue == 300) {
_root.threeg.play();
} else if (_root.tempvalue == 400) {
_root.fourg.play();
} else if (_root.tempvalue == 500) {
_root.fiveg.play();
} else if (_root.tempvalue == 750) {
_root.sevenfifty.play();
} else if (_root.tempvalue == 1000) {
_root.onek.play();
} else if (_root.tempvalue == 5000) {
_root.fivek.play();
} else if (_root.tempvalue == 10000) {
_root.tenk.play();
} else if (_root.tempvalue == 25000) {
_root.twentyfivek.play();
} else if (_root.tempvalue == 50000) {
_root.fiftyk.play();
} else if (_root.tempvalue == 75000) {
_root.seventyfivek.play();
} else if (_root.tempvalue == 100000) {
_root.hundredk.play();
} else if (_root.tempvalue == 200000) {
_root.twohundredk.play();
} else if (_root.tempvalue == 300000) {
_root.threehundredk.play();
} else if (_root.tempvalue == 400000) {
_root.fourhundredk.play();
} else if (_root.tempvalue == 500000) {
_root.fivehundredk.play();
} else if (_root.tempvalue == 750000) {
_root.sevenfiftyk.play();
} else if (_root.tempvalue == 1000000) {
_root.million.play();
}
}
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;
} else {
_root.total = _root.total;
}
trace("ADJUSTED: " + _root.total);
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;
}
_root.total = _root.total * _root.multiplier;
_root.total = _root.total + _root.added;
if (_root.total > 650000) {
_root.bankFood = "Diamond Tacos";
} else if (_root.total > 450000) {
_root.bankFood = "Golden Lobster";
} else if (_root.total > 200000) {
_root.bankFood = "Golden Peaches";
} else if (_root.total > 100000) {
_root.bankFood = "Napoleon Dyn-o-mite!";
} else if (_root.total > 65000) {
_root.bankFood = "Honey Semifreddo";
} else if (_root.total > 45000) {
_root.bankFood = "Delicious Caponata";
} else if (_root.total > 25000) {
_root.bankFood = "Custardy\rBun";
} else if (_root.total > 20000) {
_root.bankFood = "Creamy Tagiatelli";
} else if (_root.total > 15000) {
_root.bankFood = "Bubble\rTea";
} else if (_root.total > 10000) {
_root.bankFood = "Discount Lasagna";
} else if (_root.total > 5000) {
_root.bankFood = "Raw\rGinger";
} else if (_root.total > 2000) {
_root.bankFood = "Prickly Pear Cactus";
} else {
_root.bankFood = "Free Smackies!";
}
trace("OFFER: " + _root.total);
_root.submittedscore = _root.total;
_root.bankeroffer = "$" + _root.total;
_root.multiplier = 1;
_root.added = 0;
}
function takeTheCase() {
dondtrigger = "case";
gotoAndPlay (325);
}
var prevoffer = new Array("", "", "", "", "", "");
theme = new Sound();
theme.attachSound("theme");
theme.start();
Frame 322
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);
food = new Array("Cigarette Butts", "Red Onions", "Chicken Foot", "Daikon", "Fresh Dead Chicken", "Fried Rice", "Intestines!", "Mushrooms", "Eyeless Fish", "Fresh Garlic", "Unpuffed Puffy Fish", "Salty Oysters", "Super Cinnamon Bun\u2122", "Wing Stew", "Banana Surprise", "Happy Bunny Cake!", "Hot Dog Vomit Bun", "Spicy Meatballs", "Zucchini Salad", "Philly Cheesesteak", "Juicy Peaches", "Roast Lamb", "Tomato Pizza", "Eggs and Toast", "Crusty Apple Desert", "Erect Strawberry Cake");
total = 0;
countit = 0;
stop();
Instance of Symbol 55 MovieClip in Frame 322
on (release) {
getURL ("http://www.addictinggames.com", "_blank");
}
Frame 323
function bankCheck() {
bonus.stop("bonus");
if (luckycase == pickedcase) {
bonus.start(0, 1000);
pick = Number(random(2) + 1);
if (pick == 1) {
trace("We're playing Lucky Platter!");
minigame._visible = true;
minigame.gotoAndStop(1);
} else if (pick == 2) {
trace("We're playing Plus/Minus!");
minigame2._visible = true;
minigame2.gotoAndStop(1);
}
} else if ((luckycase != pickedcase) and (removeamount == 0)) {
bankmovie._visible = true;
bankmovie.play();
}
}
ambience.start(0, 10000);
status = "Welcome to Chez Andre! Place an order by selecting a tray.";
opening._visible = false;
checkamount = 0;
multiplier = 1;
added = 0;
luckycase = Number(random(26) + 1);
trace("LUCKY CASE: " + luckycase);
x = 1;
while (x < 27) {
caselength = caseamount.length;
casepick = random(caselength);
tellTarget ("case" + x) {
blocknumber = _root.x;
dollaramount = _root.caseamount[_root.casepick];
food = _root.food[_root.casepick];
checkamount = dollaramount;
trace((("DOLLAR: " + _root.x) + ": ") + dollaramount);
trace((("FOOD: " + _root.x) + ": ") + food);
};
caseamount.splice(casepick, 1);
food.splice(casepick, 1);
x++;
}
your_briefcase.blocknumber = "?";
lastamount = 7;
stop();
Frame 324
your_case = your_briefcase.blocknumber;
buttonDisabled();
removeamount = lastamount - 1;
lastamount = removeamount;
trace(lastamount);
trace(removeamount);
status = ("Please select " + removeamount) + " trays to be removed.";
opening._visible = false;
bankmovie._visible = false;
minigame._visible = false;
minigame2._visible = false;
stop();
Frame 325
if (dondtrigger == "case") {
gotoAndPlay ("checkcase");
}
Frame 369
if (dondtrigger != "case") {
gotoAndPlay ("revealcase");
}
Frame 385
if (dondtrigger == "case") {
submittedscore = your_value;
finalscore = your_value;
bankoffer = "Your Tray";
trace("submitted score:" + submittedscore);
} else {
finalscore = bankoffer;
trace("submitted score:" + submittedscore);
}
your_briefcase.blocknumber = your_case;
Frame 395
your_value = "$" + your_value;
if (your_foot == "Cigarette Butts") {
foodshow.gotoAndStop(1);
}
if (your_foot == "Red Onions") {
foodshow.gotoAndStop(2);
}
if (your_foot == "Chicken Foot") {
foodshow.gotoAndStop(3);
}
if (your_foot == "Daikon") {
foodshow.gotoAndStop(4);
}
if (your_foot == "Fresh Dead Chicken") {
foodshow.gotoAndStop(5);
}
if (your_foot == "Fried Rice") {
foodshow.gotoAndStop(6);
}
if (your_foot == "Intestines!") {
foodshow.gotoAndStop(7);
}
if (your_foot == "Mushrooms") {
foodshow.gotoAndStop(8);
}
if (your_foot == "Eyeless Fish") {
foodshow.gotoAndStop(9);
}
if (your_foot == "Fresh Garlic") {
foodshow.gotoAndStop(10);
}
if (your_foot == "Unpuffed Puffy Fish") {
foodshow.gotoAndStop(11);
}
if (your_foot == "Salty Oysters") {
foodshow.gotoAndStop(12);
}
if (your_foot == "Super Cinnamon Bun\u2122") {
foodshow.gotoAndStop(13);
}
if (your_foot == "Wing Stew") {
foodshow.gotoAndStop(14);
}
if (your_foot == "Banana Surprise") {
foodshow.gotoAndStop(15);
}
if (your_foot == "Happy Bunny Cake!") {
foodshow.gotoAndStop(16);
}
if (your_foot == "Hot Dog Vomit Bun") {
foodshow.gotoAndStop(17);
}
if (your_foot == "Spicy Meatballs") {
foodshow.gotoAndStop(18);
}
if (your_foot == "Zucchini Salad") {
foodshow.gotoAndStop(19);
}
if (your_foot == "Philly Cheesesteak") {
foodshow.gotoAndStop(20);
}
if (your_foot == "Juicy Peaches") {
foodshow.gotoAndStop(21);
}
if (your_foot == "Roast Lamb") {
foodshow.gotoAndStop(22);
}
if (your_foot == "Tomato Pizza") {
foodshow.gotoAndStop(23);
}
if (your_foot == "Eggs and Toast") {
foodshow.gotoAndStop(24);
}
if (your_foot == "Crusty Apple Desert") {
foodshow.gotoAndStop(25);
}
if (your_foot == "Erect Strawberry Cake") {
foodshow.gotoAndStop(26);
}
Frame 417
theme = new Sound();
theme.attachSound("theme");
theme.start();
Frame 444
stop();
Frame 445
mochi.MochiScores.showLeaderboard({boardID:"fba0e88f83e31057", score:submittedscore});
Frame 446
theme.stop();
ambience.stop();
gotoAndPlay (277);
Frame 447
theme.start();
stop();
Symbol 375 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.43");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 376 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.7");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 377 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.MochiServices.clip;
}
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 378 MovieClip [__Packages.mochi.MochiDigits] Frame 0
class mochi.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 26 Button
on (release) {
getURL ("http://www.addictinggames.com", _blank);
}
Symbol 27 MovieClip Frame 74
_root.play();
Symbol 34 Button
on (release) {
gotoAndPlay (277);
}
Symbol 63 Button
on (release) {
theme.stop();
play();
}
Symbol 68 Button
on (release) {
theme.stop();
gotoAndPlay (447);
}
Symbol 73 Button
on (release) {
rules._visible = true;
rules_button._visible = true;
}
Symbol 78 Button
on (release) {
rules._visible = false;
rules_button._visible = false;
}
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
_root.bankCheck();
Symbol 82 MovieClip Frame 10
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
_root.bankCheck();
Symbol 85 MovieClip Frame 10
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
_root.bankCheck();
Symbol 88 MovieClip Frame 10
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 2
_root.bankCheck();
Symbol 91 MovieClip Frame 10
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
_root.bankCheck();
Symbol 94 MovieClip Frame 10
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 2
_root.bankCheck();
Symbol 97 MovieClip Frame 10
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 2
_root.bankCheck();
Symbol 100 MovieClip Frame 10
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 2
_root.bankCheck();
Symbol 103 MovieClip Frame 10
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
_root.bankCheck();
Symbol 106 MovieClip Frame 10
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
_root.bankCheck();
Symbol 109 MovieClip Frame 10
stop();
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 2
_root.bankCheck();
Symbol 112 MovieClip Frame 10
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
_root.bankCheck();
Symbol 115 MovieClip Frame 10
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
_root.bankCheck();
Symbol 118 MovieClip Frame 10
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 2
_root.bankCheck();
Symbol 121 MovieClip Frame 10
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
_root.bankCheck();
Symbol 124 MovieClip Frame 10
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
_root.bankCheck();
Symbol 127 MovieClip Frame 10
stop();
Symbol 130 MovieClip Frame 1
stop();
Symbol 130 MovieClip Frame 2
_root.bankCheck();
Symbol 130 MovieClip Frame 10
stop();
Symbol 133 MovieClip Frame 1
stop();
Symbol 133 MovieClip Frame 2
_root.bankCheck();
Symbol 133 MovieClip Frame 10
stop();
Symbol 136 MovieClip Frame 1
stop();
Symbol 136 MovieClip Frame 2
_root.bankCheck();
Symbol 136 MovieClip Frame 10
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 2
_root.bankCheck();
Symbol 139 MovieClip Frame 10
stop();
Symbol 142 MovieClip Frame 1
stop();
Symbol 142 MovieClip Frame 2
_root.bankCheck();
Symbol 142 MovieClip Frame 10
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 2
_root.bankCheck();
Symbol 145 MovieClip Frame 10
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 2
_root.bankCheck();
Symbol 148 MovieClip Frame 10
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 2
_root.bankCheck();
Symbol 151 MovieClip Frame 10
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 2
_root.bankCheck();
Symbol 154 MovieClip Frame 10
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
_root.bankCheck();
Symbol 157 MovieClip Frame 10
stop();
Symbol 162 Button
on (release) {
your_briefcase.blocknumber = 1;
your_case = your_briefcase.blocknumber;
your_value = case1.dollaramount;
your_foot = case1.food;
case1._visible = false;
button1.enabled = false;
play();
}
Symbol 163 Button
on (release) {
your_briefcase.blocknumber = 2;
your_value = case2.dollaramount;
case2._visible = false;
button2.enabled = false;
your_foot = case2.food;
play();
}
Symbol 164 Button
on (release) {
your_briefcase.blocknumber = 3;
your_value = case3.dollaramount;
case3._visible = false;
button3.enabled = false;
your_foot = case3.food;
play();
}
Symbol 165 Button
on (release) {
your_briefcase.blocknumber = 4;
your_value = case4.dollaramount;
case4._visible = false;
button4.enabled = false;
your_foot = case4.food;
play();
}
Symbol 166 Button
on (release) {
your_briefcase.blocknumber = 5;
your_value = case5.dollaramount;
case5._visible = false;
button5.enabled = false;
your_foot = case5.food;
play();
}
Symbol 167 Button
on (release) {
your_briefcase.blocknumber = 6;
your_value = case6.dollaramount;
case6._visible = false;
button6.enabled = false;
your_foot = case6.food;
play();
}
Symbol 168 Button
on (release) {
your_briefcase.blocknumber = 7;
your_value = case7.dollaramount;
case7._visible = false;
button7.enabled = false;
your_foot = case7.food;
play();
}
Symbol 169 Button
on (release) {
your_briefcase.blocknumber = 8;
your_value = case8.dollaramount;
case8._visible = false;
button8.enabled = false;
your_foot = case8.food;
play();
}
Symbol 170 Button
on (release) {
your_briefcase.blocknumber = 9;
your_value = case9.dollaramount;
case9._visible = false;
button9.enabled = false;
your_foot = case9.food;
play();
}
Symbol 171 Button
on (release) {
your_briefcase.blocknumber = 10;
your_value = case10.dollaramount;
case10._visible = false;
button10.enabled = false;
your_foot = case10.food;
play();
}
Symbol 172 Button
on (release) {
your_briefcase.blocknumber = 11;
your_value = case11.dollaramount;
case11._visible = false;
button11.enabled = false;
your_foot = case11.food;
play();
}
Symbol 173 Button
on (release) {
your_briefcase.blocknumber = 12;
your_value = case12.dollaramount;
case12._visible = false;
button12.enabled = false;
your_foot = case12.food;
play();
}
Symbol 174 Button
on (release) {
your_briefcase.blocknumber = 13;
your_value = case13.dollaramount;
case13._visible = false;
button13.enabled = false;
your_foot = case13.food;
play();
}
Symbol 175 Button
on (release) {
your_briefcase.blocknumber = 14;
your_value = case14.dollaramount;
case14._visible = false;
button14.enabled = false;
your_foot = case14.food;
play();
}
Symbol 176 Button
on (release) {
your_briefcase.blocknumber = 15;
your_value = case15.dollaramount;
case15._visible = false;
button15.enabled = false;
your_foot = case15.food;
play();
}
Symbol 177 Button
on (release) {
your_briefcase.blocknumber = 16;
your_value = case16.dollaramount;
case16._visible = false;
button16.enabled = false;
your_foot = case16.food;
play();
}
Symbol 178 Button
on (release) {
your_briefcase.blocknumber = 17;
your_value = case17.dollaramount;
case17._visible = false;
button17.enabled = false;
your_foot = case17.food;
play();
}
Symbol 179 Button
on (release) {
your_briefcase.blocknumber = 18;
your_value = case18.dollaramount;
case18._visible = false;
button18.enabled = false;
your_foot = case18.food;
play();
}
Symbol 180 Button
on (release) {
your_briefcase.blocknumber = 19;
your_value = case19.dollaramount;
case19._visible = false;
button19.enabled = false;
your_foot = case19.food;
play();
}
Symbol 181 Button
on (release) {
your_briefcase.blocknumber = 20;
your_value = case20.dollaramount;
case20._visible = false;
button20.enabled = false;
your_foot = case20.food;
play();
}
Symbol 182 Button
on (release) {
your_briefcase.blocknumber = 21;
your_value = case21.dollaramount;
case21._visible = false;
button21.enabled = false;
your_foot = case21.food;
play();
}
Symbol 183 Button
on (release) {
your_briefcase.blocknumber = 22;
your_value = case22.dollaramount;
case22._visible = false;
button22.enabled = false;
your_foot = case22.food;
play();
}
Symbol 184 Button
on (release) {
your_briefcase.blocknumber = 23;
your_value = case23.dollaramount;
case23._visible = false;
button23.enabled = false;
your_foot = case23.food;
play();
}
Symbol 185 Button
on (release) {
your_briefcase.blocknumber = 24;
your_value = case24.dollaramount;
case24._visible = false;
button24.enabled = false;
your_foot = case24.food;
play();
}
Symbol 186 Button
on (release) {
your_briefcase.blocknumber = 25;
your_value = case25.dollaramount;
case25._visible = false;
button25.enabled = false;
your_foot = case25.food;
play();
}
Symbol 187 Button
on (release) {
your_briefcase.blocknumber = 26;
your_value = case26.dollaramount;
case26._visible = false;
button26.enabled = false;
your_foot = case26.food;
play();
}
Symbol 193 Button
on (release) {
opening._visible = true;
pickedcase = 6;
openCase();
case6._visible = false;
button6.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 194 Button
on (release) {
opening._visible = true;
pickedcase = 8;
openCase();
case8._visible = false;
button8.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 195 Button
on (release) {
opening._visible = true;
pickedcase = 11;
openCase();
case11._visible = false;
button11.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 196 Button
on (release) {
opening._visible = true;
pickedcase = 12;
openCase();
case12._visible = false;
button12.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 197 Button
on (release) {
opening._visible = true;
pickedcase = 13;
openCase();
case13._visible = false;
button13.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 198 Button
on (release) {
opening._visible = true;
pickedcase = 14;
openCase();
case14._visible = false;
button14.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 199 Button
on (release) {
opening._visible = true;
pickedcase = 15;
openCase();
case15._visible = false;
button15.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 200 Button
on (release) {
opening._visible = true;
pickedcase = 16;
openCase();
case16._visible = false;
button16.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 201 Button
on (release) {
opening._visible = true;
pickedcase = 17;
openCase();
case17._visible = false;
button17.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 202 Button
on (release) {
opening._visible = true;
pickedcase = 18;
openCase();
case18._visible = false;
button18.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 203 Button
on (release) {
opening._visible = true;
pickedcase = 19;
openCase();
case19._visible = false;
button19.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 204 Button
on (release) {
opening._visible = true;
pickedcase = 20;
openCase();
case20._visible = false;
button20.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 205 Button
on (release) {
opening._visible = true;
pickedcase = 21;
openCase();
case21._visible = false;
button21.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 206 Button
on (release) {
opening._visible = true;
pickedcase = 22;
openCase();
case22._visible = false;
button22.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 207 Button
on (release) {
opening._visible = true;
pickedcase = 23;
openCase();
case23._visible = false;
button23.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 208 Button
on (release) {
opening._visible = true;
pickedcase = 24;
openCase();
case24._visible = false;
button24.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 209 Button
on (release) {
opening._visible = true;
pickedcase = 25;
openCase();
case25._visible = false;
button25.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 210 Button
on (release) {
opening._visible = true;
pickedcase = 26;
openCase();
case26._visible = false;
button26.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 211 Button
on (release) {
opening._visible = true;
pickedcase = 1;
openCase();
case1._visible = false;
button1.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 212 Button
on (release) {
opening._visible = true;
pickedcase = 2;
openCase();
case2._visible = false;
button2.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 213 Button
on (release) {
opening._visible = true;
pickedcase = 3;
openCase();
case3._visible = false;
button3.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 214 Button
on (release) {
opening._visible = true;
pickedcase = 4;
openCase();
case4._visible = false;
button4.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 215 Button
on (release) {
opening._visible = true;
pickedcase = 5;
openCase();
case5._visible = false;
button5.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 216 Button
on (release) {
opening._visible = true;
pickedcase = 10;
openCase();
case10._visible = false;
button10.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 217 Button
on (release) {
opening._visible = true;
pickedcase = 9;
openCase();
case9._visible = false;
button9.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 218 Button
on (release) {
opening._visible = true;
pickedcase = 7;
openCase();
case7._visible = false;
button7.enabled = false;
briefcasecount = briefcasecount - 1;
}
Symbol 223 Button
on (release) {
trace("CASE 1 ADD OR SUBTRACT = " + case1.dollaramount);
_root.addorsubtract = case1.dollaramount;
play();
}
Symbol 224 Button
on (release) {
trace("CASE 2 ADD OR SUBTRACT = " + case2.dollaramount);
_root.addorsubtract = case2.dollaramount;
play();
}
Symbol 225 Button
on (release) {
trace("CASE 3 ADD OR SUBTRACT = " + case3.dollaramount);
_root.addorsubtract = case3.dollaramount;
play();
}
Symbol 226 Button
on (release) {
trace("CASE 4 ADD OR SUBTRACT = " + case4.dollaramount);
_root.addorsubtract = case4.dollaramount;
play();
}
Symbol 228 Button
on (release) {
trace("CASE 1 DOLLAR AMOUNT = " + case1.dollaramount);
_root.added = case1.dollaramount;
play();
}
Symbol 229 Button
on (release) {
trace("CASE 2 DOLLAR AMOUNT = " + case2.dollaramount);
_root.added = case2.dollaramount;
play();
}
Symbol 230 Button
on (release) {
trace("CASE 3 DOLLAR AMOUNT = " + case3.dollaramount);
_root.added = case3.dollaramount;
play();
}
Symbol 231 Button
on (release) {
trace("CASE 4 DOLLAR AMOUNT = " + case4.dollaramount);
_root.added = case4.dollaramount;
play();
}
Symbol 232 Button
on (release) {
trace("CASE 7 DOLLAR AMOUNT = " + case7.dollaramount);
_root.added = case7.dollaramount;
play();
}
Symbol 233 Button
on (release) {
trace("CASE 8 DOLLAR AMOUNT = " + case8.dollaramount);
_root.added = case8.dollaramount;
play();
}
Symbol 234 Button
on (release) {
trace("CASE 9 DOLLAR AMOUNT = " + case9.dollaramount);
_root.added = case9.dollaramount;
play();
}
Symbol 235 Button
on (release) {
trace("CASE 10 DOLLAR AMOUNT = " + case10.dollaramount);
_root.added = case10.dollaramount;
play();
}
Symbol 236 Button
on (release) {
trace("CASE 5 DOLLAR AMOUNT = " + case5.dollaramount);
_root.added = case5.dollaramount;
play();
}
Symbol 237 Button
on (release) {
trace("CASE 6 DOLLAR AMOUNT = " + case6.dollaramount);
_root.added = case6.dollaramount;
play();
}
Symbol 246 MovieClip Frame 1
minigamecaseamount = new Array("+", "+", "-", "-");
x = 1;
while (x < 5) {
caselength = minigamecaseamount.length;
casepick = random(caselength);
tellTarget ("case" + x) {
blocknumber = _root.minigame2.x;
dollaramount = _root.minigame2.minigamecaseamount[_root.minigame2.casepick];
checkamount = dollaramount;
trace((("DOLLAR: " + _root.minigame2.x) + ": ") + dollaramount);
};
minigamecaseamount.splice(casepick, 1);
x++;
}
stop();
Symbol 246 MovieClip Frame 2
minigamecaseamount = new Array(10000, 20000, 30000, 40000, 50000, 60000, 70000, 80000, 90000, 10000);
x = 1;
while (x < 11) {
caselength = minigamecaseamount.length;
casepick = random(caselength);
tellTarget ("case" + x) {
blocknumber = _root.minigame2.x;
dollaramount = _root.minigame2.minigamecaseamount[_root.minigame2.casepick];
checkamount = dollaramount;
trace((("DOLLAR: " + _root.minigame2.x) + ": ") + dollaramount);
};
minigamecaseamount.splice(casepick, 1);
x++;
}
stop();
Symbol 246 MovieClip Frame 3
trace("_root.addorsubtract = " + _root.addorsubtract);
trace("_root.added = " + _root.added);
Symbol 246 MovieClip Frame 24
if (_root.addorsubtract == "-") {
_root.large.start();
} else {
_root.small.start();
}
Symbol 246 MovieClip Frame 70
if (_root.addorsubtract == "-") {
_root.large.start();
} else {
_root.small.start();
}
if (_root.addorsubtract == "-") {
_root.added = -_root.added;
}
trace("_root.added = " + _root.added);
_root.pickedcase = 0;
_root.minigame2._visible = false;
_root.bankCheck();
stop();
Symbol 249 Button
on (release) {
openedblock = 1;
trace("CASE 1 DOLLAR AMOUNT = " + case1.dollaramount);
_root.multiplier = case1.dollaramount;
play();
}
Symbol 250 Button
on (release) {
openedblock = 2;
trace("CASE 2 DOLLAR AMOUNT = " + case2.dollaramount);
_root.multiplier = case2.dollaramount;
play();
}
Symbol 251 Button
on (release) {
openedblock = 4;
trace("CASE 4 DOLLAR AMOUNT = " + case4.dollaramount);
_root.multiplier = case4.dollaramount;
play();
}
Symbol 252 Button
on (release) {
openedblock = 5;
trace("CASE 5 DOLLAR AMOUNT = " + case5.dollaramount);
_root.multiplier = case5.dollaramount;
play();
}
Symbol 253 Button
on (release) {
openedblock = 3;
trace("CASE 3 DOLLAR AMOUNT = " + case3.dollaramount);
_root.multiplier = case3.dollaramount;
play();
}
Symbol 257 MovieClip Frame 1
minigamecaseamount = new Array(1, 1.5, 2, 5, 1);
x = 1;
while (x < 6) {
caselength = minigamecaseamount.length;
casepick = random(caselength);
tellTarget ("case" + x) {
blocknumber = _root.minigame.x;
dollaramount = _root.minigame.minigamecaseamount[_root.minigame.casepick];
checkamount = dollaramount;
trace((("DOLLAR: " + _root.minigame.x) + ": ") + dollaramount);
};
minigamecaseamount.splice(casepick, 1);
x++;
}
stop();
Symbol 257 MovieClip Frame 2
trace("_root.multiplier = " + _root.multiplier);
multiplierdisplay = "x" + _root.multiplier;
Symbol 257 MovieClip Frame 23
if (_root.multiplier < 1) {
_root.large.start();
} else {
_root.small.start();
}
Symbol 257 MovieClip Frame 70
if (_root.multiplier < 1) {
_root.large.start();
} else {
_root.small.start();
}
_root.bonus.stop("bonus");
_root.pickedcase = 0;
_root.minigame._visible = false;
_root.bankCheck();
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 3
stop();
Symbol 315 MovieClip Frame 4
stop();
Symbol 315 MovieClip Frame 5
stop();
Symbol 315 MovieClip Frame 6
stop();
Symbol 315 MovieClip Frame 7
stop();
Symbol 315 MovieClip Frame 8
stop();
Symbol 315 MovieClip Frame 9
stop();
Symbol 315 MovieClip Frame 10
stop();
Symbol 315 MovieClip Frame 11
stop();
Symbol 315 MovieClip Frame 12
stop();
Symbol 315 MovieClip Frame 13
stop();
Symbol 315 MovieClip Frame 14
stop();
Symbol 315 MovieClip Frame 15
stop();
Symbol 315 MovieClip Frame 16
stop();
Symbol 315 MovieClip Frame 17
stop();
Symbol 315 MovieClip Frame 18
stop();
Symbol 315 MovieClip Frame 19
stop();
Symbol 315 MovieClip Frame 20
stop();
Symbol 315 MovieClip Frame 21
stop();
Symbol 315 MovieClip Frame 22
stop();
Symbol 315 MovieClip Frame 23
stop();
Symbol 315 MovieClip Frame 24
stop();
Symbol 315 MovieClip Frame 25
stop();
Symbol 315 MovieClip Frame 26
stop();
Symbol 320 MovieClip Frame 1
stop();
trace(dollaramount);
trace(_root.checkamount);
Symbol 320 MovieClip Frame 11
if (food == "Cigarette Butts") {
foodshow.gotoAndStop(1);
}
if (food == "Red Onions") {
foodshow.gotoAndStop(2);
}
if (food == "Chicken Foot") {
foodshow.gotoAndStop(3);
}
if (food == "Daikon") {
foodshow.gotoAndStop(4);
}
if (food == "Fresh Dead Chicken") {
foodshow.gotoAndStop(5);
}
if (food == "Fried Rice") {
foodshow.gotoAndStop(6);
}
if (food == "Intestines!") {
foodshow.gotoAndStop(7);
}
if (food == "Mushrooms") {
foodshow.gotoAndStop(8);
}
if (food == "Eyeless Fish") {
foodshow.gotoAndStop(9);
}
if (food == "Fresh Garlic") {
foodshow.gotoAndStop(10);
}
if (food == "Unpuffed Puffy Fish") {
foodshow.gotoAndStop(11);
}
if (food == "Salty Oysters") {
foodshow.gotoAndStop(12);
}
if (food == "Super Cinnamon Bun\u2122") {
foodshow.gotoAndStop(13);
}
if (food == "Wing Stew") {
foodshow.gotoAndStop(14);
}
if (food == "Banana Surprise") {
foodshow.gotoAndStop(15);
}
if (food == "Happy Bunny Cake!") {
foodshow.gotoAndStop(16);
}
if (food == "Hot Dog Vomit Bun") {
foodshow.gotoAndStop(17);
}
if (food == "Spicy Meatballs") {
foodshow.gotoAndStop(18);
}
if (food == "Zucchini Salad") {
foodshow.gotoAndStop(19);
}
if (food == "Philly Cheesesteak") {
foodshow.gotoAndStop(20);
}
if (food == "Juicy Peaches") {
foodshow.gotoAndStop(21);
}
if (food == "Roast Lamb") {
foodshow.gotoAndStop(22);
}
if (food == "Tomato Pizza") {
foodshow.gotoAndStop(23);
}
if (food == "Eggs and Toast") {
foodshow.gotoAndStop(24);
}
if (food == "Crusty Apple Desert") {
foodshow.gotoAndStop(25);
}
if (food == "Erect Strawberry Cake") {
foodshow.gotoAndStop(26);
}
Symbol 320 MovieClip Frame 33
if (_root.checkamount > 50000) {
_root.large.start();
_root.largecount = _root.largecount + 1;
} else {
_root.small.start();
_root.smallcount = _root.smallcount + 1;
}
Symbol 320 MovieClip Frame 60
_root.removeamount = _root.removeamount - 1;
_root.flipAmount();
_root.opening._visible = false;
if (_root.removeamount == 1) {
_root.status = "Please select the last tray of the round.";
} else if (_root.removeamount == 0) {
_root.status = "";
} else {
_root.status = ("Please select " + _root.removeamount) + " trays to be removed.";
}
stop();
Symbol 352 MovieClip Frame 1
stop();
Symbol 352 MovieClip Frame 2
stop();
Symbol 352 MovieClip Frame 3
stop();
Symbol 352 MovieClip Frame 4
stop();
Symbol 352 MovieClip Frame 5
stop();
Symbol 352 MovieClip Frame 6
stop();
Symbol 352 MovieClip Frame 7
stop();
Symbol 352 MovieClip Frame 8
stop();
Symbol 352 MovieClip Frame 9
stop();
Symbol 352 MovieClip Frame 10
stop();
Symbol 352 MovieClip Frame 11
stop();
Symbol 352 MovieClip Frame 12
stop();
Symbol 352 MovieClip Frame 13
stop();
Symbol 353 Button
on (release) {
_root.play();
}
Symbol 355 Button
on (release) {
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 " + _root.removeamount) + " trays to be removed.";
} else {
_root.status = "Please select 1 tray to be removed.";
}
_root.bankmovie.gotoAndPlay(1);
_root.opening._visible = false;
_root.bankmovie._visible = false;
stop();
}
}
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
_root.status = "";
Symbol 357 MovieClip Frame 141
_root.banker();
bankeroffer = "$" + _root.total;
bankerfood = _root.bankFood;
Symbol 357 MovieClip Frame 175
if (_root.countit == 2) {
_root.status = "If you don't take this deal, you will be taking your meal.";
}
if (bankerfood == "Free Smackies!") {
bankfoodpic.gotoAndStop(1);
} else if (bankerfood == "Prickly Pear Cactus") {
bankfoodpic.gotoAndStop(2);
} else if (bankerfood == "Raw\rGinger") {
bankfoodpic.gotoAndStop(3);
} else if (bankerfood == "Discount Lasagna") {
bankfoodpic.gotoAndStop(4);
} else if (bankerfood == "Bubble\rTea") {
bankfoodpic.gotoAndStop(5);
} else if (bankerfood == "Creamy Tagiatelli") {
bankfoodpic.gotoAndStop(6);
} else if (bankerfood == "Custardy\rBun") {
bankfoodpic.gotoAndStop(7);
} else if (bankerfood == "Delicious Caponata") {
bankfoodpic.gotoAndStop(8);
} else if (bankerfood == "Honey Semifreddo") {
bankfoodpic.gotoAndStop(9);
} else if (bankerfood == "Napoleon Dyn-o-mite!") {
bankfoodpic.gotoAndStop(10);
} else if (bankerfood == "Golden Peaches") {
bankfoodpic.gotoAndStop(11);
} else if (bankerfood == "Golden Lobster") {
bankfoodpic.gotoAndStop(12);
} else if (bankerfood == "Diamond Tacos") {
bankfoodpic.gotoAndStop(13);
}
_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 370 Button
on (release) {
ambience.stop();
theme.stop();
gotoAndPlay (277);
}
Symbol 372 Button
on (release) {
play();
}
Symbol 374 Button
on (release) {
theme.stop();
gotoAndPlay (277);
}