Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("87ea3c16", this, 10301, true);
stop();
Frame 2
stop();
Frame 5
function initGame() {
disableToppings();
disableItems();
burgerCount = 0;
drink = "";
game_mc.callout_mc._visible = false;
game_mc.callout_toppings_mc._visible = false;
game_mc.callout_mc.item1.gotoAndStop(1);
game_mc.callout_mc.p1.gotoAndStop(1);
game_mc.callout_mc.item2.gotoAndStop(1);
game_mc.callout_mc.p2.gotoAndStop(1);
game_mc.callout_mc.item3.gotoAndStop(1);
game_mc.callout_mc.p3.gotoAndStop(1);
game_mc.callout_mc.item4.gotoAndStop(1);
game_mc.callout_mc.p4.gotoAndStop(1);
game_mc.callout_mc.item5.gotoAndStop(1);
game_mc.callout_mc.p5.gotoAndStop(1);
game_mc.callout_mc.item6.gotoAndStop(1);
game_mc.callout_mc.p6.gotoAndStop(1);
game_mc.callout_mc.item1.done_mc._visible = false;
game_mc.callout_mc.item2.done_mc._visible = false;
game_mc.callout_mc.item3.done_mc._visible = false;
game_mc.callout_mc.item4.done_mc._visible = false;
game_mc.callout_mc.item5.done_mc._visible = false;
game_mc.callout_mc.item6.done_mc._visible = false;
game_mc.callout_toppings_mc.item1.gotoAndStop(1);
game_mc.callout_toppings_mc.p1.gotoAndStop(1);
game_mc.callout_toppings_mc.item2.gotoAndStop(1);
game_mc.callout_toppings_mc.p2.gotoAndStop(1);
game_mc.callout_toppings_mc.item3.gotoAndStop(1);
game_mc.callout_toppings_mc.p3.gotoAndStop(1);
game_mc.callout_toppings_mc.item4.gotoAndStop(1);
game_mc.callout_toppings_mc.p4.gotoAndStop(1);
game_mc.callout_toppings_mc.item5.gotoAndStop(1);
game_mc.callout_toppings_mc.p5.gotoAndStop(1);
game_mc.callout_toppings_mc.item6.gotoAndStop(1);
game_mc.callout_toppings_mc.p6.gotoAndStop(1);
tmrIdx = 0;
orderArray = [];
toppingsArray = [];
itemsArray = [];
prepareOrder();
resetToppings();
game_mc.kidliftinganim_mc.kidlifting_mc.gotoAndStop(_global.lvl);
game_mc.kidanim_mc.kidstanding_mc.gotoAndStop(_global.lvl);
game_mc.kidanim_mc.play();
game_mc.kidliftinganim_mc._visible = false;
game_mc.kidliftinganim_mc.kidlifting_mc.kid.gotoAndStop(1);
game_mc.kidliftinganim_mc.kidlifting_mc.kid.burger_mc.gotoAndStop(1);
game_mc.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop(1);
_global.slevel_mc = eval ("game_mc.sl" + attempts);
slevel_mc.gotoAndStop(_global.lvl);
slevel_mc.sublevel.gotoAndStop(2);
}
function startGame() {
setI = setInterval(startTimer, 1000, initTime);
game_mc.callout_mc._visible = true;
enableItems();
}
function prepareOrder() {
switch (_global.lvl) {
case 1 :
initTime = 60000;
burgerCount = 1;
game_mc.callout_mc.item1.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p1.gotoAndStop(2);
game_mc.callout_mc.item2.gotoAndStop(randomBetween(4, 5));
var _local4 = randomBetween(2, 10);
var _local3 = randomBetween(2, 10);
var _local2 = randomBetween(2, 10);
toppingsArray.push(toppingsArray1[_local4]);
toppingsArray.push(toppingsArray1[_local3]);
toppingsArray.push(toppingsArray1[_local2]);
game_mc.callout_toppings_mc.item1.gotoAndStop(_local4);
game_mc.callout_toppings_mc.p1.gotoAndStop(2);
game_mc.callout_toppings_mc.item2.gotoAndStop(_local3);
game_mc.callout_toppings_mc.p2.gotoAndStop(2);
game_mc.callout_toppings_mc.item3.gotoAndStop(_local2);
game_mc.callout_toppings_mc.p3.gotoAndStop(1);
game_mc.callout_toppings_mc.item4.gotoAndStop(1);
game_mc.callout_toppings_mc.p4.gotoAndStop(1);
game_mc.callout_toppings_mc.item5.gotoAndStop(1);
game_mc.callout_toppings_mc.p5.gotoAndStop(1);
game_mc.callout_toppings_mc.item6.gotoAndStop(1);
break;
case 2 :
initTime = 55000;
burgerCount = 1;
game_mc.callout_mc.item1.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p1.gotoAndStop(2);
game_mc.callout_mc.item2.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p2.gotoAndStop(2);
game_mc.callout_mc.item3.gotoAndStop(randomBetween(4, 5));
break;
case 3 :
initTime = 50000;
burgerCount = 1;
game_mc.callout_mc.item1.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p1.gotoAndStop(2);
game_mc.callout_mc.item2.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p2.gotoAndStop(2);
game_mc.callout_mc.item3.gotoAndStop(randomBetween(4, 5));
game_mc.callout_mc.p3.gotoAndStop(2);
game_mc.callout_mc.item4.gotoAndStop(randomBetween(4, 5));
break;
case 4 :
initTime = 45000;
burgerCount = 1;
game_mc.callout_mc.item1.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p1.gotoAndStop(2);
game_mc.callout_mc.item2.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p2.gotoAndStop(2);
game_mc.callout_mc.item3.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p3.gotoAndStop(2);
game_mc.callout_mc.item4.gotoAndStop(randomBetween(4, 5));
game_mc.callout_mc.p4.gotoAndStop(2);
game_mc.callout_mc.item5.gotoAndStop(randomBetween(4, 5));
break;
case 5 :
initTime = 40000;
burgerCount = 1;
game_mc.callout_mc.item1.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p1.gotoAndStop(2);
game_mc.callout_mc.item2.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p2.gotoAndStop(2);
game_mc.callout_mc.item3.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p3.gotoAndStop(2);
game_mc.callout_mc.item4.gotoAndStop(randomBetween(2, 3));
game_mc.callout_mc.p4.gotoAndStop(2);
game_mc.callout_mc.item5.gotoAndStop(randomBetween(4, 5));
game_mc.callout_mc.p5.gotoAndStop(2);
game_mc.callout_mc.item6.gotoAndStop(randomBetween(4, 5));
}
}
function randomBetween(a, b) {
return(a + Math.floor(Math.random() * ((b - a) + 1)));
}
function uniqueRandomBetween(a, b) {
var _local1 = [];
var _local2 = (b - a) + 1;
_local1.push(a + Math.floor(Math.random() * _local2));
while (_local1.length < _local2) {
nextNumber = a + Math.floor(Math.random() * _local2);
k = 0;
while (k < _local1.length) {
while (_local1[k] == nextNumber) {
nextNumber = a + Math.floor(Math.random() * _local2);
k = 0;
}
k++;
}
_local1.push(nextNumber);
}
return(_local1);
}
function getNewArr(str, arr) {
var _local1 = [];
_local1 = arr;
i = 0;
while (i < _local1.length) {
if (str == _local1[i]) {
_local1.splice(i, 1);
return(_local1);
}
i++;
}
}
function itemOrdered(item) {
j = 0;
while (j < itemsArray.length) {
if (item == itemsArray[j].foodType) {
_global.currMc = itemsArray[j];
return(true);
}
j++;
}
return(false);
}
function topingExists(topping) {
k = 0;
while (k < toppingsArray.length) {
if (topping == toppingsArray[k]) {
return(true);
}
k++;
}
return(false);
}
function showWrongActions() {
if (game_mc.callout_mc._visible) {
game_mc.callout_mc.gotoAndPlay(2);
} else if (game_mc.callout_toppings_mc._visible) {
game_mc.callout_toppings_mc.gotoAndPlay(2);
}
game_mc.kidliftinganim_mc.kidlifting_mc.kid.gotoAndStop(2);
if (_global.timeUp) {
game_mc.kidliftinganim_mc.kidlifting_mc.kid.gotoAndStop(2);
_global.timeUp = false;
setK = setInterval(mvKid, 1600);
}
}
function mvKid() {
clearInterval(setK);
clearInterval(setI);
game_mc.kidliftinganim_mc.kidlifting_mc.kid.gotoAndStop(2);
resetToppings();
resetItems();
game_mc.kidliftinganim_mc.play();
}
function digitcheck(num) {
if (num < 10) {
return("0" + num);
}
return(num);
}
function startTimer(tmr) {
tmr = tmr - tmrIdx;
if (tmr >= 0) {
tmrIdx = tmrIdx + 1000;
sec = Math.floor(tmr / 1000);
msec = tmr - (sec * 1000);
min = Math.floor(sec / 60);
sec1 = sec - (min * 60);
hrs = Math.floor(min / 60);
min1 = min - (hrs * 60);
game_mc.timer_mc.min_txt.text = digitcheck(min1);
game_mc.timer_mc.sec_txt.text = digitcheck(sec1);
if (tmr == 0) {
_global.missed++;
_global.timeUp = true;
disableToppings();
showWrongActions();
_global.slevel_mc.sublevel.gotoAndStop(4);
clearInterval(setI);
}
}
}
function resetToppings() {
game_mc.toppings_mc.cheeseburger_mc._visible = false;
game_mc.toppings_mc.hamburger_mc._visible = false;
game_mc.toppings_mc.olives_mc._visible = false;
game_mc.toppings_mc.lettuce_mc._visible = false;
game_mc.toppings_mc.tomato_mc._visible = false;
game_mc.toppings_mc.onion_mc._visible = false;
game_mc.toppings_mc.wedgepotatoes_mc._visible = false;
game_mc.toppings_mc.tomatosauce_mc._visible = false;
game_mc.toppings_mc.chillysauce_mc._visible = false;
game_mc.toppings_mc.soyasauce_mc._visible = false;
game_mc.toppings_mc.pepper_mc._visible = false;
game_mc.toppings_mc.top_mc._visible = false;
}
function updateOrder() {
game_mc.kidliftinganim_mc.kidlifting_mc.kid.burger_mc.gotoAndStop(burgerCount);
}
function resetTimer() {
clearInterval(setI);
game_mc.timer_mc.min_txt.text = "00";
game_mc.timer_mc.sec_txt.text = "00";
}
function disableToppings() {
game_mc.olives_mc.btn.enabled = false;
game_mc.lettuce_mc.btn.enabled = false;
game_mc.tomato_mc.btn.enabled = false;
game_mc.onion_mc.btn.enabled = false;
game_mc.wedgepotatoes_mc.btn.enabled = false;
game_mc.tomatosauce_mc.btn.enabled = false;
game_mc.chillysauce_mc.btn.enabled = false;
game_mc.soyasauce_mc.btn.enabled = false;
game_mc.pepper_mc.btn.enabled = false;
}
function enableToppings() {
game_mc.olives_mc.btn.enabled = true;
game_mc.lettuce_mc.btn.enabled = true;
game_mc.tomato_mc.btn.enabled = true;
game_mc.onion_mc.btn.enabled = true;
game_mc.wedgepotatoes_mc.btn.enabled = true;
game_mc.tomatosauce_mc.btn.enabled = true;
game_mc.chillysauce_mc.btn.enabled = true;
game_mc.soyasauce_mc.btn.enabled = true;
game_mc.pepper_mc.btn.enabled = true;
}
function disableItems() {
game_mc.bbox_mc.cheeseburger_mc.btn.enabled = false;
game_mc.bbox_mc.hamburger_mc.btn.enabled = false;
game_mc.juice_btn.enabled = false;
game_mc.soda_btn.enabled = false;
}
function enableItems() {
game_mc.bbox_mc.cheeseburger_mc.btn.enabled = true;
game_mc.bbox_mc.hamburger_mc.btn.enabled = true;
game_mc.juice_btn.enabled = true;
game_mc.soda_btn.enabled = true;
}
function prepareToppingsFor2() {
toppingsArray = [];
var _local4 = randomBetween(2, 10);
var _local3 = randomBetween(2, 10);
var _local2 = randomBetween(2, 10);
var _local1 = randomBetween(2, 10);
toppingsArray.push(toppingsArray1[_local4]);
toppingsArray.push(toppingsArray1[_local3]);
toppingsArray.push(toppingsArray1[_local2]);
toppingsArray.push(toppingsArray1[_local1]);
game_mc.callout_toppings_mc.item1.gotoAndStop(_local4);
game_mc.callout_toppings_mc.p1.gotoAndStop(2);
game_mc.callout_toppings_mc.item2.gotoAndStop(_local3);
game_mc.callout_toppings_mc.p2.gotoAndStop(2);
game_mc.callout_toppings_mc.item3.gotoAndStop(_local2);
game_mc.callout_toppings_mc.p3.gotoAndStop(2);
game_mc.callout_toppings_mc.item4.gotoAndStop(_local1);
game_mc.callout_toppings_mc.p4.gotoAndStop(1);
game_mc.callout_toppings_mc.item5.gotoAndStop(1);
game_mc.callout_toppings_mc.p5.gotoAndStop(1);
game_mc.callout_toppings_mc.item6.gotoAndStop(1);
}
function prepareToppingsFor3() {
toppingsArray = [];
var _local5 = randomBetween(2, 10);
var _local4 = randomBetween(2, 10);
var _local3 = randomBetween(2, 10);
var _local2 = randomBetween(2, 10);
var _local1 = randomBetween(2, 10);
toppingsArray.push(toppingsArray1[_local5]);
toppingsArray.push(toppingsArray1[_local4]);
toppingsArray.push(toppingsArray1[_local3]);
toppingsArray.push(toppingsArray1[_local2]);
toppingsArray.push(toppingsArray1[_local1]);
game_mc.callout_toppings_mc.item1.gotoAndStop(_local5);
game_mc.callout_toppings_mc.p1.gotoAndStop(2);
game_mc.callout_toppings_mc.item2.gotoAndStop(_local4);
game_mc.callout_toppings_mc.p2.gotoAndStop(2);
game_mc.callout_toppings_mc.item3.gotoAndStop(_local3);
game_mc.callout_toppings_mc.p3.gotoAndStop(2);
game_mc.callout_toppings_mc.item4.gotoAndStop(_local2);
game_mc.callout_toppings_mc.p4.gotoAndStop(2);
game_mc.callout_toppings_mc.item5.gotoAndStop(_local1);
game_mc.callout_toppings_mc.p5.gotoAndStop(1);
game_mc.callout_toppings_mc.item6.gotoAndStop(1);
}
function prepareToppingsFor4() {
toppingsArray = [];
var _local6 = randomBetween(2, 10);
var _local5 = randomBetween(2, 10);
var _local4 = randomBetween(2, 10);
var _local3 = randomBetween(2, 10);
var _local2 = randomBetween(2, 10);
var _local1 = randomBetween(2, 10);
toppingsArray.push(toppingsArray1[_local6]);
toppingsArray.push(toppingsArray1[_local5]);
toppingsArray.push(toppingsArray1[_local4]);
toppingsArray.push(toppingsArray1[_local3]);
toppingsArray.push(toppingsArray1[_local2]);
toppingsArray.push(toppingsArray1[_local1]);
game_mc.callout_toppings_mc.item1.gotoAndStop(_local6);
game_mc.callout_toppings_mc.p1.gotoAndStop(2);
game_mc.callout_toppings_mc.item2.gotoAndStop(_local5);
game_mc.callout_toppings_mc.p2.gotoAndStop(2);
game_mc.callout_toppings_mc.item3.gotoAndStop(_local4);
game_mc.callout_toppings_mc.p3.gotoAndStop(2);
game_mc.callout_toppings_mc.item4.gotoAndStop(_local3);
game_mc.callout_toppings_mc.p4.gotoAndStop(2);
game_mc.callout_toppings_mc.item5.gotoAndStop(_local2);
game_mc.callout_toppings_mc.p5.gotoAndStop(2);
game_mc.callout_toppings_mc.item6.gotoAndStop(_local1);
}
function prepareToppingsFor5() {
toppingsArray = [];
var _local6 = randomBetween(2, 10);
var _local5 = randomBetween(2, 10);
var _local4 = randomBetween(2, 10);
var _local3 = randomBetween(2, 10);
var _local2 = randomBetween(2, 10);
var _local1 = randomBetween(2, 10);
toppingsArray.push(toppingsArray1[_local6]);
toppingsArray.push(toppingsArray1[_local5]);
toppingsArray.push(toppingsArray1[_local4]);
toppingsArray.push(toppingsArray1[_local3]);
toppingsArray.push(toppingsArray1[_local2]);
toppingsArray.push(toppingsArray1[_local1]);
game_mc.callout_toppings_mc.item1.gotoAndStop(_local6);
game_mc.callout_toppings_mc.p1.gotoAndStop(2);
game_mc.callout_toppings_mc.item2.gotoAndStop(_local5);
game_mc.callout_toppings_mc.p2.gotoAndStop(2);
game_mc.callout_toppings_mc.item3.gotoAndStop(_local4);
game_mc.callout_toppings_mc.p3.gotoAndStop(2);
game_mc.callout_toppings_mc.item4.gotoAndStop(_local3);
game_mc.callout_toppings_mc.p4.gotoAndStop(2);
game_mc.callout_toppings_mc.item5.gotoAndStop(_local2);
game_mc.callout_toppings_mc.p5.gotoAndStop(2);
game_mc.callout_toppings_mc.item6.gotoAndStop(_local1);
}
function resetItems() {
game_mc.callout_toppings_mc.item1.gotoAndStop(1);
game_mc.callout_toppings_mc.item2.gotoAndStop(2);
game_mc.callout_toppings_mc.item3.gotoAndStop(3);
game_mc.callout_toppings_mc.item4.gotoAndStop(4);
game_mc.callout_toppings_mc.item5.gotoAndStop(5);
game_mc.callout_toppings_mc.item6.gotoAndStop(6);
}
_global.attempts = 1;
var orderArray = [];
var itemsArray;
var toppingsArray1 = new Array(null, null, "olives", "onion", "tomatosauce", "chillysauce", "soyasauce", "wedgepotatoes", "tomato", "lettuce", "pepper");
var toppingsArray = [];
var initTime = 60000;
var tmrIdx;
var setI;
var setK;
var burgerCount;
var drink;
_global.mistakes = 0;
_global.missed = 0;
_global.timeUp = false;
initGame();
Symbol 15 MovieClip Frame 20
this.removeMovieClip();
Symbol 16 MovieClip Frame 1
Frame_num = 1;
angle = 360;
plus_angle = 0;
scene_width = 400;
scene_height = 45;
bar_mc.i = 0;
bar_mc._visible = 0;
bar_mc.onEnterFrame = function () {
var _local2 = this;
if ((_local2.i % Frame_num) == 0) {
mc = _local2.duplicateMovieClip("bar_mc" + _local2.i, _local2.i);
mc._x = random(scene_width);
mc._y = random(scene_height);
mc._rotation = random(angle) + plus_angle;
}
_local2.i++;
};
Symbol 40 MovieClip Frame 30
stop();
Symbol 52 MovieClip Frame 21
stop();
Symbol 57 MovieClip Frame 100
stop();
_parent.gotoAndPlay("start");
Symbol 68 Button
on (press) {
_root.gotoAndStop(2);
}
Symbol 69 MovieClip Frame 1
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
pre = int((loaded / total) * 40);
loadingbar.gotoAndPlay(pre);
stop();
loadingbar.onRelease = function () {
getURL ("http://www.rainbowdressup.com", "_blank");
};
Instance of Symbol 53 MovieClip in Symbol 69 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 69 MovieClip Frame 20
stop();
Symbol 144 Button
on (release) {
getURL ("http://www.facebook.com/pages/RainbowDressup/155461877832177", "_blank");
}
Symbol 154 MovieClip Frame 1
ins_btn.onRelease = function () {
_parent.gotoAndStop("instructions");
};
play_btn.onRelease = function () {
_parent.gotoAndStop("selectlevel");
};
moregames_btn.onRelease = function () {
getURL ("http://www.rainbowdressup.com/", "_blank");
};
Instance of Symbol 141 MovieClip "_logo" in Symbol 154 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 154 MovieClip Frame 23
stop();
Symbol 174 MovieClip Frame 1
l1_btn.onRelease = function () {
_global.lvl = 1;
_parent.gotoAndStop("game");
};
l2_btn.onRelease = function () {
_global.lvl = 2;
_parent.gotoAndStop("game");
};
l3_btn.onRelease = function () {
_global.lvl = 3;
_parent.gotoAndStop("game");
};
l4_btn.onRelease = function () {
_global.lvl = 4;
_parent.gotoAndStop("game");
};
l5_btn.onRelease = function () {
_global.lvl = 5;
_parent.gotoAndStop("game");
};
moregames_btn.onRelease = function () {
getURL ("http://www.rainbowdressup.com/", "_blank");
};
Instance of Symbol 141 MovieClip "_logo" in Symbol 174 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 213 MovieClip Frame 1
stop();
play_btn.onRelease = function () {
_parent.gotoAndStop("selectlevel");
};
next_btn.onRelease = function () {
gotoAndStop (2);
};
Symbol 213 MovieClip Frame 2
back_btn.onRelease = function () {
gotoAndStop (1);
};
next_btn.onRelease = function () {
gotoAndStop (3);
};
Symbol 213 MovieClip Frame 3
back_btn.onRelease = function () {
gotoAndStop (2);
};
next_btn.onRelease = function () {
gotoAndStop (4);
};
Symbol 213 MovieClip Frame 4
back_btn.onRelease = function () {
gotoAndStop (3);
};
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 2
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 1
stop();
Symbol 248 MovieClip Frame 2
stop();
Symbol 252 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 260 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 1
stop();
Symbol 264 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 26
_global.attempts++;
if (_global.attempts > 5) {
_parent._parent.gotoAndStop("score");
} else {
_parent._parent.initGame();
}
Symbol 271 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 1
Symbol 272 MovieClip Frame 25
gotoAndStop (1);
_parent.kidliftinganim_mc._visible = true;
_parent._parent.startGame();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 2
stop();
Symbol 289 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 289 MovieClip Frame 2
stop();
Symbol 292 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 292 MovieClip Frame 2
stop();
Symbol 293 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 293 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 297 MovieClip Frame 2
stop();
Symbol 300 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 300 MovieClip Frame 2
stop();
Symbol 302 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 302 MovieClip Frame 2
stop();
Symbol 305 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 305 MovieClip Frame 2
stop();
Symbol 311 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 311 MovieClip Frame 2
stop();
Symbol 314 MovieClip Frame 1
stop();
btn.onRollOver = function () {
gotoAndStop (2);
};
btn.onRollOut = function () {
gotoAndStop (1);
};
Symbol 314 MovieClip Frame 2
stop();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
_parent._parent.disableItems();
Symbol 330 MovieClip Frame 75
if (_parent._parent.drink == "") {
_parent.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop("juice1");
_parent._parent.drink = "juice";
} else if (_parent._parent.drink == "juice") {
_parent.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop("juice2");
} else if (_parent._parent.drink == "soda") {
_parent.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop("juicesoda");
}
_global.currMc.done_mc._visible = true;
_parent._parent.enableItems();
_parent.checkItemsCompleted();
Symbol 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
_parent._parent.disableItems();
Symbol 335 MovieClip Frame 76
if (_parent._parent.drink == "") {
_parent.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop("soda1");
_parent._parent.drink = "soda";
} else if (_parent._parent.drink == "soda") {
_parent.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop("soda2");
} else if (_parent._parent.drink == "juice") {
_parent.kidliftinganim_mc.kidlifting_mc.kid.drinks_mc.gotoAndStop("juicesoda");
}
_global.currMc.done_mc._visible = true;
_parent._parent.enableItems();
_parent.checkItemsCompleted();
Symbol 370 MovieClip Frame 1
stop();
_parent._parent.resetToppings();
Symbol 370 MovieClip Frame 2
_parent._parent.toppingsArray = [];
Symbol 370 MovieClip Frame 16
top_mc._visible = true;
Symbol 370 MovieClip Frame 42
_parent._parent.resetItems();
_parent._parent.enableItems();
_parent._parent.callout_toppings_mc._visible = false;
_parent._parent.updateOrder();
Symbol 373 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
_parent._parent._parent.orderArray.push("cheese");
this.foodType = "cheese";
_parent._parent._parent.itemsArray.push(this);
Symbol 380 MovieClip Frame 3
_parent._parent._parent.orderArray.push("ham");
this.foodType = "ham";
_parent._parent._parent.itemsArray.push(this);
Symbol 380 MovieClip Frame 4
_parent._parent._parent.orderArray.push("juice");
this.foodType = "juice";
_parent._parent._parent.itemsArray.push(this);
Symbol 380 MovieClip Frame 5
_parent._parent._parent.orderArray.push("soda");
this.foodType = "soda";
_parent._parent._parent.itemsArray.push(this);
Symbol 382 MovieClip Frame 1
stop();
item1._visible = true;
item2._visible = true;
item3._visible = true;
item4._visible = true;
item5._visible = true;
item6._visible = true;
p1._visible = true;
p2._visible = true;
p3._visible = true;
p4._visible = true;
p5._visible = true;
Symbol 382 MovieClip Frame 2
item1._visible = false;
item2._visible = false;
item3._visible = false;
item4._visible = false;
item5._visible = false;
item6._visible = false;
p1._visible = false;
p2._visible = false;
p3._visible = false;
p4._visible = false;
p5._visible = false;
_parent._parent.disableItems();
Symbol 382 MovieClip Frame 40
_parent.kidliftinganim_mc.kidlifting_mc.kid.gotoAndStop(1);
_parent._parent.enableItems();
Symbol 392 MovieClip Frame 1
stop();
Symbol 392 MovieClip Frame 2
Symbol 392 MovieClip Frame 3
Symbol 392 MovieClip Frame 4
Symbol 392 MovieClip Frame 5
Symbol 392 MovieClip Frame 6
Symbol 392 MovieClip Frame 7
Symbol 392 MovieClip Frame 8
Symbol 392 MovieClip Frame 9
Symbol 392 MovieClip Frame 10
Symbol 393 MovieClip Frame 1
stop();
item1._visible = true;
item2._visible = true;
item3._visible = true;
item4._visible = true;
item5._visible = true;
item6._visible = true;
p1._visible = true;
p2._visible = true;
p3._visible = true;
p4._visible = true;
p5._visible = true;
Symbol 393 MovieClip Frame 2
item1._visible = false;
item2._visible = false;
item3._visible = false;
item4._visible = false;
item5._visible = false;
item6._visible = false;
item7._visible = false;
p1._visible = false;
p2._visible = false;
p3._visible = false;
p4._visible = false;
p5._visible = false;
p6._visible = false;
_parent._parent.disableItems();
Symbol 393 MovieClip Frame 40
_parent.kidliftinganim_mc.kidlifting_mc.kid.gotoAndStop(1);
_parent._parent.enableItems();
Symbol 398 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 406 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 1
stop();
gotoAndStop(_global.lvl);
Symbol 417 MovieClip Frame 1
function checkToppingsCompleted() {
if (_parent.toppingsArray.length == 0) {
_parent.disableItems();
_parent.disableToppings();
_global.currMc.done_mc._visible = true;
_global.currMc.foodType = "";
callout_toppings_mc._visible = false;
callout_mc._visible = true;
if (_parent.orderArray.length == 0) {
_global.slevel_mc.sublevel.gotoAndStop(3);
_parent.resetTimer();
toppings_mc.play();
setJ = setInterval(moveKid, 2500);
} else {
toppings_mc.play();
}
}
}
function checkItemsCompleted() {
_global.currMc.done_mc._visible = true;
_global.currMc.foodType = "";
if (_parent.orderArray.length == 0) {
_global.slevel_mc.sublevel.gotoAndStop(3);
_parent.resetTimer();
callout_toppings_mc._visible = false;
setJ = setInterval(moveKid, 2500);
}
}
function moveKid() {
_parent.resetItems();
clearInterval(setJ);
clearInterval(_parent.setI);
clearInterval(_parent.setK);
kidliftinganim_mc.play();
}
var setJ;
juice_btn.onRelease = function () {
if (_parent.itemOrdered("juice")) {
_parent.disableToppings();
fruitpouring_mc.play();
_parent.orderArray = _parent.getNewArr("juice", _parent.orderArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
};
soda_btn.onRelease = function () {
if (_parent.itemOrdered("soda")) {
_parent.disableToppings();
sodapouring_mc.play();
_parent.orderArray = _parent.getNewArr("soda", _parent.orderArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
};
bbox_mc.hamburger_mc.btn.onRollOver = function () {
bbox_mc.hamburger_mc.gotoAndStop(2);
};
bbox_mc.hamburger_mc.btn.onRollOut = function () {
bbox_mc.hamburger_mc.gotoAndStop(1);
};
bbox_mc.hamburger_mc.btn.onRelease = function () {
if (_parent.itemOrdered("ham")) {
_parent.burgerCount++;
if (_global.lvl == 2) {
_parent.prepareToppingsFor2();
} else if (_global.lvl == 3) {
_parent.prepareToppingsFor3();
} else if (_global.lvl == 4) {
_parent.prepareToppingsFor4();
} else if (_global.lvl == 5) {
_parent.prepareToppingsFor5();
}
_parent.disableItems();
_parent.enableToppings();
callout_mc._visible = false;
callout_toppings_mc._visible = true;
toppings_mc.hamburger_mc._visible = true;
_parent.orderArray = _parent.getNewArr("ham", _parent.orderArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
};
bbox_mc.cheeseburger_mc.btn.onRollOver = function () {
bbox_mc.cheeseburger_mc.gotoAndStop(2);
};
bbox_mc.cheeseburger_mc.btn.onRollOut = function () {
bbox_mc.cheeseburger_mc.gotoAndStop(1);
};
bbox_mc.cheeseburger_mc.btn.onRelease = function () {
if (_parent.itemOrdered("cheese")) {
_parent.burgerCount++;
if (_global.lvl == 2) {
_parent.prepareToppingsFor2();
} else if (_global.lvl == 3) {
_parent.prepareToppingsFor3();
} else if (_global.lvl == 4) {
_parent.prepareToppingsFor4();
} else if (_global.lvl == 5) {
_parent.prepareToppingsFor5();
}
_parent.disableItems();
_parent.enableToppings();
callout_mc._visible = false;
callout_toppings_mc._visible = true;
toppings_mc.cheeseburger_mc._visible = true;
_parent.orderArray = _parent.getNewArr("cheese", _parent.orderArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
};
olives_mc.btn.onRelease = function () {
if (_parent.topingExists("olives")) {
toppings_mc.olives_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("olives", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
lettuce_mc.btn.onRelease = function () {
if (_parent.topingExists("lettuce")) {
toppings_mc.lettuce_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("lettuce", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
tomato_mc.btn.onRelease = function () {
if (_parent.topingExists("tomato")) {
toppings_mc.tomato_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("tomato", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
onion_mc.btn.onRelease = function () {
if (_parent.topingExists("onion")) {
toppings_mc.onion_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("onion", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
wedgepotatoes_mc.btn.onRelease = function () {
if (_parent.topingExists("wedgepotatoes")) {
toppings_mc.wedgepotatoes_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("wedgepotatoes", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
tomatosauce_mc.btn.onRelease = function () {
if (_parent.topingExists("tomatosauce")) {
toppings_mc.tomatosauce_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("tomatosauce", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
chillysauce_mc.btn.onRelease = function () {
if (_parent.topingExists("chillysauce")) {
toppings_mc.chillysauce_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("chillysauce", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
soyasauce_mc.btn.onRelease = function () {
if (_parent.topingExists("soyasauce")) {
toppings_mc.soyasauce_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("soyasauce", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
pepper_mc.btn.onRelease = function () {
if (_parent.topingExists("pepper")) {
toppings_mc.pepper_mc._visible = true;
_parent.toppingsArray = _parent.getNewArr("pepper", _parent.toppingsArray);
} else {
_global.mistakes++;
_parent.showWrongActions();
}
checkToppingsCompleted();
};
menu_btn.onRelease = function () {
clearInterval(_parent.setI);
clearInterval(_parent.setK);
_parent.gotoAndStop("selectlevel");
};
moregames_btn.onRelease = function () {
trace(_parent.toppingsArray);
getURL ("http://www.rainbowdressup.com/", "_blank");
};
Instance of Symbol 141 MovieClip "_logo" in Symbol 417 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 436 Button
on (press) {
newsWindow._visible = true;
}
Symbol 450 Button
on (press) {
_parent.newsWindow._visible = false;
}
Symbol 452 MovieClip Frame 1
level_txt.text = _global.lvl;
mistakes_txt.text = _global.mistakes;
missed_txt.text = _global.missed;
patch_mc._visible = false;
newsWindow._visible = false;
rainbowNews._visible = false;
_logo._visible = false;
if (_global.lvl == 5) {
nextlvl_btn._visible = false;
patch_mc._visible = true;
rainbowNews._visible = true;
_logo._visible = true;
}
nextlvl_btn.onRelease = function () {
_global.lvl++;
if (_global.lvl <= 5) {
_parent.gotoAndStop("game");
}
};
playagain_btn.onRelease = function () {
_parent.gotoAndStop("selectlevel");
};
if ((_global.missed > 0) || (_global.mistakes > 5)) {
customerrating_txt.text = "Poor";
} else if ((_global.mistakes == 4) || (_global.mistakes == 5)) {
customerrating_txt.text = "Not bad";
} else if ((_global.mistakes == 2) || (_global.mistakes == 3)) {
customerrating_txt.text = "Good";
} else if ((_global.mistakes == 0) || (_global.mistakes == 1)) {
customerrating_txt.text = "Awesome";
}
moregames_btn.onRelease = function () {
getURL ("http://www.rainbowdressup.com/", "_blank");
};
Instance of Symbol 141 MovieClip "_logo" in Symbol 452 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}