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);
}
var oneStartDrg = true;
var oneDepth = true;
__com_mochibot__("b3e6092a", this, 10301, true);
stop();
var loadedBytes = 0;
var totalBytes = 0;
var percentage = 0;
this.onEnterFrame = function () {
loadedBytes = getBytesLoaded();
totalBytes = getBytesTotal();
percentage = int((loadedBytes / totalBytes) * 100);
progressClip.loadingbar.gotoAndStop(percentage);
if (percentage >= 100) {
delete onEnterFrame;
}
};
Instance of Symbol 32 MovieClip "MC_cursor" in Frame 1
onClipEvent (load) {
this.swapDepths(5000);
}
Frame 2
Mouse.hide();
startDrag (MC_cursor, true);
stop();
var gameMode = 0;
nextLevelMc._visible = false;
Instance of Symbol 222 MovieClip "nextLevelMc" in Frame 2
onClipEvent (load) {
this.swapDepths(3000);
}
Instance of Symbol 224 MovieClip "bg" in Frame 2
onClipEvent (load) {
var sndObj = new Sound(this);
sndObj.attachSound("xmas");
sndObj.setVolume(100);
sndObj.start(0, 10000);
}
Frame 3
stop();
nextLevelMc._visible = false;
Frame 4
stop();
nextLevelMc._visible = false;
Frame 5
function alphaFun() {
var _local2 = 7;
while (_local2 <= 12) {
this["btn" + _local2]._alpha = 50;
_local2++;
}
}
function btnDesable() {
var _local2 = 1;
while (_local2 <= 12) {
this["btn" + _local2].enabled = false;
_local2++;
}
}
function ingrediantChange(noOfBtn) {
var _local2 = 1;
while (_local2 <= noOfBtn) {
this["btn" + _local2]._alpha = 100;
this["btn" + _local2].onPress = function () {
if (nextCame) {
ingrediantId = Number(this._name.substr(3)) + 1;
MC_cursor.gotoAndStop(Number(ingrediantId));
}
};
_local2++;
}
}
function level_1_Fun() {
ingrediantChange(6);
gameMc.topBar.topings = level_1_Array.length - 1;
panRight.gotoAndStop(1);
var _local1 = 1;
while (_local1 <= 4) {
statusArray.push("miss");
var _local2 = star.duplicateMovieClip("starItem" + _local1, _local1);
thisLevelIngrArray.push(_local2);
currentFrameArray.push(2);
_local2._x = level_1_Array[_local1].x + (_local2._width / 2);
_local2._y = level_1_Array[_local1].y + (_local2._height / 2);
_local1++;
}
}
function level_2_Fun() {
ingrediantChange(6);
gameMc.topBar.topings = level_2_Array.length - 1;
panRight.gotoAndStop(2);
var _local1 = 1;
while (_local1 <= 4) {
statusArray.push("miss");
var _local2 = hat.duplicateMovieClip("hatItem" + _local1, _local1);
thisLevelIngrArray.push(_local2);
currentFrameArray.push(5);
_local2._x = level_2_Array[_local1].x + (_local2._width / 2);
_local2._y = level_2_Array[_local1].y + (_local2._height / 2);
_local1++;
}
statusArray.push("miss");
var _local3 = gems.duplicateMovieClip("gemItem5", 5);
thisLevelIngrArray.push(_local3);
currentFrameArray.push(3);
_local3._x = level_2_Array[5].x + (_local3._width / 2);
_local3._y = level_2_Array[5].y + (_local3._height / 2);
}
function level_3_Fun() {
ingrediantChange(7);
gameMc.topBar.topings = level_3_Array.length - 1;
panRight.gotoAndStop(3);
var _local2 = 1;
while (_local2 <= 3) {
statusArray.push("miss");
var _local3 = ice.duplicateMovieClip("iceItem" + _local2, _local2);
thisLevelIngrArray.push(_local3);
currentFrameArray.push(4);
_local3._x = level_3_Array[_local2].x + (_local3._width / 2);
_local3._y = level_3_Array[_local2].y + (_local3._height / 2);
_local2++;
}
var _local1 = 4;
while (_local1 <= 6) {
statusArray.push("miss");
var _local3 = nuts.duplicateMovieClip("nutsItem" + _local1, _local1);
thisLevelIngrArray.push(_local3);
currentFrameArray.push(1);
_local3._x = level_3_Array[_local1].x + (_local3._width / 2);
_local3._y = level_3_Array[_local1].y + (_local3._height / 2);
_local1++;
}
}
function level_4_Fun() {
ingrediantChange(7);
gameMc.topBar.topings = level_4_Array.length - 1;
panRight.gotoAndStop(4);
var _local2 = 1;
while (_local2 <= 4) {
statusArray.push("miss");
var _local3 = jam.duplicateMovieClip("jamItem" + _local2, _local2);
thisLevelIngrArray.push(_local3);
currentFrameArray.push(7);
_local3._x = level_4_Array[_local2].x + (_local3._width / 2);
_local3._y = level_4_Array[_local2].y + (_local3._height / 2);
_local2++;
}
var _local1 = 5;
while (_local1 <= 7) {
statusArray.push("miss");
var _local3 = whip.duplicateMovieClip("whipItem" + _local1, _local1);
thisLevelIngrArray.push(_local3);
currentFrameArray.push(6);
_local3._x = level_4_Array[_local1].x + (_local3._width / 2);
_local3._y = level_4_Array[_local1].y + (_local3._height / 2);
_local1++;
}
}
function level_5_Fun() {
ingrediantChange(8);
gameMc.topBar.topings = level_5_Array.length - 1;
panRight.gotoAndStop(5);
var _local3 = 1;
while (_local3 <= 3) {
statusArray.push("miss");
var _local4 = gems.duplicateMovieClip("gemsItem" + _local3, _local3);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(3);
_local4._x = level_5_Array[_local3].x + (_local4._width / 2);
_local4._y = level_5_Array[_local3].y + (_local4._height / 2);
_local3++;
}
var _local2 = 4;
while (_local2 <= 6) {
statusArray.push("miss");
var _local4 = stick.duplicateMovieClip("stickItem" + _local2, _local2);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(8);
_local4._x = level_5_Array[_local2].x + (_local4._width / 2);
_local4._y = level_5_Array[_local2].y + (_local4._height / 2);
_local2++;
}
var _local1 = 7;
while (_local1 <= 9) {
statusArray.push("miss");
var _local4 = star.duplicateMovieClip("starItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(2);
_local4._x = level_5_Array[_local1].x + (_local4._width / 2);
_local4._y = level_5_Array[_local1].y + (_local4._height / 2);
_local1++;
}
}
function level_6_Fun() {
ingrediantChange(8);
gameMc.topBar.topings = level_6_Array.length - 1;
panRight.gotoAndStop(6);
var _local3 = 1;
while (_local3 <= 2) {
statusArray.push("miss");
var _local4 = hat.duplicateMovieClip("hatItem" + _local3, _local3);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(5);
_local4._x = level_6_Array[_local3].x + (_local4._width / 2);
_local4._y = level_6_Array[_local3].y + (_local4._height / 2);
_local3++;
}
var _local2 = 3;
while (_local2 <= 4) {
statusArray.push("miss");
var _local4 = ice.duplicateMovieClip("iceItem" + _local2, _local2);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(4);
_local4._x = level_6_Array[_local2].x + (_local4._width / 2);
_local4._y = level_6_Array[_local2].y + (_local4._height / 2);
_local2++;
}
statusArray.push("miss");
var _local4 = star.duplicateMovieClip("starItem5", 5);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(2);
_local4._x = level_6_Array[5].x + (_local4._width / 2);
_local4._y = level_6_Array[5].y + (_local4._height / 2);
var _local1 = 6;
while (_local1 <= 10) {
statusArray.push("miss");
_local4 = nuts.duplicateMovieClip("nutsItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(1);
_local4._x = level_6_Array[_local1].x + (_local4._width / 2);
_local4._y = level_6_Array[_local1].y + (_local4._height / 2);
_local1++;
}
}
function level_7_Fun() {
ingrediantChange(9);
gameMc.topBar.topings = level_7_Array.length - 1;
panRight.gotoAndStop(7);
var _local5 = 1;
while (_local5 <= 2) {
statusArray.push("miss");
var _local6 = stick.duplicateMovieClip("stickItem" + _local5, _local5);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(8);
_local6._x = level_7_Array[_local5].x + (_local6._width / 2);
_local6._y = level_7_Array[_local5].y + (_local6._height / 2);
_local5++;
}
var _local4 = 3;
while (_local4 <= 4) {
statusArray.push("miss");
var _local6 = hat.duplicateMovieClip("hatItem" + _local4, _local4);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(5);
_local6._x = level_7_Array[_local4].x + (_local6._width / 2);
_local6._y = level_7_Array[_local4].y + (_local6._height / 2);
_local4++;
}
var _local3 = 5;
while (_local3 <= 6) {
statusArray.push("miss");
var _local6 = jam.duplicateMovieClip("jamItem" + _local3, _local3);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(7);
_local6._x = level_7_Array[_local3].x + (_local6._width / 2);
_local6._y = level_7_Array[_local3].y + (_local6._height / 2);
_local3++;
}
var _local2 = 7;
while (_local2 <= 8) {
statusArray.push("miss");
var _local6 = star.duplicateMovieClip("starItem" + _local2, _local2);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(2);
_local6._x = level_7_Array[_local2].x + (_local6._width / 2);
_local6._y = level_7_Array[_local2].y + (_local6._height / 2);
_local2++;
}
var _local1 = 9;
while (_local1 <= 11) {
statusArray.push("miss");
var _local6 = whipsmile.duplicateMovieClip("whipsmileItem" + _local1, _local1);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(9);
_local6._x = level_7_Array[_local1].x + (_local6._width / 2);
_local6._y = level_7_Array[_local1].y + (_local6._height / 2);
_local1++;
}
}
function level_8_Fun() {
ingrediantChange(9);
gameMc.topBar.topings = level_8_Array.length - 1;
panRight.gotoAndStop(8);
var _local4 = 1;
while (_local4 <= 4) {
statusArray.push("miss");
var _local5 = stick.duplicateMovieClip("stickItem" + _local4, _local4);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(8);
_local5._x = level_8_Array[_local4].x + (_local5._width / 2);
_local5._y = level_8_Array[_local4].y + (_local5._height / 2);
_local4++;
}
var _local3 = 5;
while (_local3 <= 12) {
statusArray.push("miss");
var _local5 = star.duplicateMovieClip("starItem" + _local3, _local3);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(2);
_local5._x = level_8_Array[_local3].x + (_local5._width / 2);
_local5._y = level_8_Array[_local3].y + (_local5._height / 2);
_local3++;
}
var _local2 = 13;
while (_local2 <= 18) {
statusArray.push("miss");
var _local5 = nuts.duplicateMovieClip("nutsItem" + _local2, _local2);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(1);
_local5._x = level_8_Array[_local2].x + (_local5._width / 2);
_local5._y = level_8_Array[_local2].y + (_local5._height / 2);
_local2++;
}
statusArray.push("miss");
var _local5 = ice.duplicateMovieClip("iceItem19", 19);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(4);
_local5._x = level_8_Array[19].x + (_local5._width / 2);
_local5._y = level_8_Array[19].y + (_local5._height / 2);
var _local1 = 20;
while (_local1 <= 21) {
statusArray.push("miss");
_local5 = gems.duplicateMovieClip("gemsItem" + _local1, _local1);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(3);
_local5._x = level_8_Array[_local1].x + (_local5._width / 2);
_local5._y = level_8_Array[_local1].y + (_local5._height / 2);
_local1++;
}
}
function level_9_Fun() {
ingrediantChange(10);
gameMc.topBar.topings = level_9_Array.length - 1;
panRight.gotoAndStop(9);
var _local3 = 1;
while (_local3 <= 9) {
statusArray.push("miss");
var _local4 = jam.duplicateMovieClip("jamItem" + _local3, _local3);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(7);
_local4._x = level_9_Array[_local3].x + (_local4._width / 2);
_local4._y = level_9_Array[_local3].y + (_local4._height / 2);
_local3++;
}
var _local2 = 10;
while (_local2 <= 11) {
statusArray.push("miss");
var _local4 = stick.duplicateMovieClip("stickItem" + _local2, _local2);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(8);
_local4._x = level_9_Array[_local2].x + (_local4._width / 2);
_local4._y = level_9_Array[_local2].y + (_local4._height / 2);
_local2++;
}
var _local1 = 12;
while (_local1 <= 13) {
statusArray.push("miss");
var _local4 = star.duplicateMovieClip("starItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(2);
_local4._x = level_9_Array[_local1].x + (_local4._width / 2);
_local4._y = level_9_Array[_local1].y + (_local4._height / 2);
_local1++;
}
statusArray.push("miss");
var _local4 = whip.duplicateMovieClip("whipItem14", 14);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(6);
_local4._x = level_9_Array[14].x + (_local4._width / 2);
_local4._y = level_9_Array[14].y + (_local4._height / 2);
}
function level_10_Fun() {
ingrediantChange(10);
gameMc.topBar.topings = level_10_Array.length - 1;
panRight.gotoAndStop(10);
var _local3 = 1;
while (_local3 <= 5) {
statusArray.push("miss");
var _local4 = hat.duplicateMovieClip("hatItem" + _local3, _local3);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(5);
_local4._x = level_10_Array[_local3].x + (_local4._width / 2);
_local4._y = level_10_Array[_local3].y + (_local4._height / 2);
_local3++;
}
var _local2 = 6;
while (_local2 <= 7) {
statusArray.push("miss");
var _local4 = ice.duplicateMovieClip("iceItem" + _local2, _local2);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(4);
_local4._x = level_10_Array[_local2].x + (_local4._width / 2);
_local4._y = level_10_Array[_local2].y + (_local4._height / 2);
_local2++;
}
var _local1 = 8;
while (_local1 <= 9) {
statusArray.push("miss");
var _local4 = star.duplicateMovieClip("starItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(2);
_local4._x = level_10_Array[_local1].x + (_local4._width / 2);
_local4._y = level_10_Array[_local1].y + (_local4._height / 2);
_local1++;
}
_local1 = 10;
while (_local1 <= 11) {
statusArray.push("miss");
var _local4 = gems.duplicateMovieClip("gemsItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(3);
_local4._x = level_10_Array[_local1].x + (_local4._width / 2);
_local4._y = level_10_Array[_local1].y + (_local4._height / 2);
_local1++;
}
_local1 = 12;
while (_local1 <= 13) {
statusArray.push("miss");
var _local4 = nuts.duplicateMovieClip("nutsItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(1);
_local4._x = level_10_Array[_local1].x + (_local4._width / 2);
_local4._y = level_10_Array[_local1].y + (_local4._height / 2);
_local1++;
}
}
function level_11_Fun() {
ingrediantChange(11);
gameMc.topBar.topings = level_11_Array.length - 1;
panRight.gotoAndStop(11);
var _local3 = 1;
while (_local3 <= 4) {
statusArray.push("miss");
var _local4 = whip.duplicateMovieClip("whipItem" + _local3, _local3);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(6);
_local4._x = level_11_Array[_local3].x + (_local4._width / 2);
_local4._y = level_11_Array[_local3].y + (_local4._height / 2);
_local3++;
}
var _local2 = 5;
while (_local2 <= 8) {
statusArray.push("miss");
var _local4 = jam.duplicateMovieClip("jamItem" + _local2, _local2);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(7);
_local4._x = level_11_Array[_local2].x + (_local4._width / 2);
_local4._y = level_11_Array[_local2].y + (_local4._height / 2);
_local2++;
}
statusArray.push("miss");
var _local4 = ice.duplicateMovieClip("iceItem9", 9);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(4);
_local4._x = level_11_Array[9].x + (_local4._width / 2);
_local4._y = level_11_Array[9].y + (_local4._height / 2);
statusArray.push("miss");
_local4 = gems.duplicateMovieClip("gemsItem10", 10);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(3);
_local4._x = level_11_Array[10].x + (_local4._width / 2);
_local4._y = level_11_Array[10].y + (_local4._height / 2);
var _local1 = 11;
while (_local1 <= 12) {
statusArray.push("miss");
_local4 = pea.duplicateMovieClip("peaItem" + _local1, _local1);
thisLevelIngrArray.push(_local4);
currentFrameArray.push(10);
_local4._x = level_11_Array[_local1].x + (_local4._width / 2);
_local4._y = level_11_Array[_local1].y + (_local4._height / 2);
_local1++;
}
}
function level_12_Fun() {
ingrediantChange(11);
gameMc.topBar.topings = level_12_Array.length - 1;
panRight.gotoAndStop(12);
var _local4 = 1;
while (_local4 <= 3) {
statusArray.push("miss");
var _local5 = jam.duplicateMovieClip("jamItem" + _local4, _local4);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(7);
_local5._x = level_12_Array[_local4].x + (_local5._width / 2);
_local5._y = level_12_Array[_local4].y + (_local5._height / 2);
_local4++;
}
statusArray.push("miss");
var _local5 = stick.duplicateMovieClip("stickItem4", 4);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(8);
_local5._x = level_12_Array[4].x + (_local5._width / 2);
_local5._y = level_12_Array[4].y + (_local5._height / 2);
var _local3 = 5;
while (_local3 <= 6) {
statusArray.push("miss");
_local5 = whipsmile.duplicateMovieClip("whipsmileItem" + _local3, _local3);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(9);
_local5._x = level_12_Array[_local3].x + (_local5._width / 2);
_local5._y = level_12_Array[_local3].y + (_local5._height / 2);
_local3++;
}
var _local2 = 7;
while (_local2 <= 8) {
statusArray.push("miss");
_local5 = hat.duplicateMovieClip("hatItem" + _local2, _local2);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(5);
_local5._x = level_12_Array[_local2].x + (_local5._width / 2);
_local5._y = level_12_Array[_local2].y + (_local5._height / 2);
_local2++;
}
statusArray.push("miss");
_local5 = whip.duplicateMovieClip("whipItem9", 9);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(6);
_local5._x = level_12_Array[9].x + (_local5._width / 2);
_local5._y = level_12_Array[9].y + (_local5._height / 2);
var _local1 = 10;
while (_local1 <= 12) {
statusArray.push("miss");
_local5 = pea.duplicateMovieClip("peaItem" + _local1, _local1);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(10);
_local5._x = level_12_Array[_local1].x + (_local5._width / 2);
_local5._y = level_12_Array[_local1].y + (_local5._height / 2);
_local1++;
}
statusArray.push("miss");
_local5 = ice.duplicateMovieClip("iceItem13", 13);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(4);
_local5._x = level_12_Array[13].x + (_local5._width / 2);
_local5._y = level_12_Array[13].y + (_local5._height / 2);
statusArray.push("miss");
_local5 = honey.duplicateMovieClip("honeyItem14", 14);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(11);
_local5._x = level_12_Array[14].x + (_local5._width / 2);
_local5._y = level_12_Array[14].y + (_local5._height / 2);
statusArray.push("miss");
_local5 = gems.duplicateMovieClip("gemsItem15", 15);
thisLevelIngrArray.push(_local5);
currentFrameArray.push(3);
_local5._x = level_12_Array[15].x + (_local5._width / 2);
_local5._y = level_12_Array[15].y + (_local5._height / 2);
}
function level_13_Fun() {
ingrediantChange(12);
gameMc.topBar.topings = level_13_Array.length - 1;
panRight.gotoAndStop(13);
var _local5 = 1;
while (_local5 <= 4) {
statusArray.push("miss");
var _local6 = leaf.duplicateMovieClip("leafItem" + _local5, _local5);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(12);
_local6._x = level_13_Array[_local5].x + (_local6._width / 2);
_local6._y = level_13_Array[_local5].y + (_local6._height / 2);
_local5++;
}
statusArray.push("miss");
var _local6 = ice.duplicateMovieClip("iceItem5", 5);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(4);
_local6._x = level_13_Array[5].x + (_local6._width / 2);
_local6._y = level_13_Array[5].y + (_local6._height / 2);
var _local4 = 6;
while (_local4 <= 8) {
statusArray.push("miss");
_local6 = jam.duplicateMovieClip("jamItem" + _local4, _local4);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(7);
_local6._x = level_13_Array[_local4].x + (_local6._width / 2);
_local6._y = level_13_Array[_local4].y + (_local6._height / 2);
_local4++;
}
var _local3 = 9;
while (_local3 <= 11) {
statusArray.push("miss");
_local6 = hat.duplicateMovieClip("hatItem" + _local3, _local3);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(5);
_local6._x = level_13_Array[_local3].x + (_local6._width / 2);
_local6._y = level_13_Array[_local3].y + (_local6._height / 2);
_local3++;
}
statusArray.push("miss");
_local6 = honey.duplicateMovieClip("honeyItem12", 12);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(11);
_local6._x = level_13_Array[12].x + (_local6._width / 2);
_local6._y = level_13_Array[12].y + (_local6._height / 2);
statusArray.push("miss");
_local6 = gems.duplicateMovieClip("gemsItem13", 13);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(3);
_local6._x = level_13_Array[13].x + (_local6._width / 2);
_local6._y = level_13_Array[13].y + (_local6._height / 2);
var _local2 = 14;
while (_local2 <= 15) {
statusArray.push("miss");
_local6 = nuts.duplicateMovieClip("nutsItem" + _local2, _local2);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(1);
_local6._x = level_13_Array[_local2].x + (_local6._width / 2);
_local6._y = level_13_Array[_local2].y + (_local6._height / 2);
_local2++;
}
var _local1 = 16;
while (_local1 <= 17) {
statusArray.push("miss");
_local6 = pea.duplicateMovieClip("peaItem" + _local1, _local1);
thisLevelIngrArray.push(_local6);
currentFrameArray.push(10);
_local6._x = level_13_Array[_local1].x + (_local6._width / 2);
_local6._y = level_13_Array[_local1].y + (_local6._height / 2);
_local1++;
}
}
function deleteMouseDwn() {
delete onMouseDown;
}
function mouseDownFun() {
onMouseDown = function () {
if (panLeft.hitTest(MC_cursor) && (MC_cursor._currentframe != 1)) {
depth++;
gameMc.topBar.topings = statusArray.length - depth;
var _local2 = ingrediantMc.duplicateMovieClip("ingrediant" + depth, depth + 100);
_local2.gotoAndStop(ingrediantId - 1);
ingrediantStatusArray.push(_local2);
_local2._x = _xmouse;
_local2._y = _ymouse;
var _local1 = 1;
while (_local1 <= statusArray.length) {
if (_local2.hitTest(thisLevelIngrArray[_local1]) && (_local2._currentframe == currentFrameArray[_local1])) {
var _local3 = Number(_local2._name.substr(10));
if ((((thisLevelIngrArray[_local1]._x - 5) < _local2._x) && ((thisLevelIngrArray[_local1]._x + 5) > _local2._x)) && (((thisLevelIngrArray[_local1]._y - 5) < _local2._y) && ((thisLevelIngrArray[_local1]._y + 5) > _local2._y))) {
scoreVal = scoreVal + 100;
statusArray[_local3 - 1] = "perfect";
} else if (((((thisLevelIngrArray[_local1]._x - 5) > _local2._x) && ((thisLevelIngrArray[_local1]._x - 15) < _local2._x)) || (((thisLevelIngrArray[_local1]._x + 5) < _local2._x) && ((thisLevelIngrArray[_local1]._x + 15) > _local2._x))) || ((((thisLevelIngrArray[_local1]._y - 5) > _local2._y) && ((thisLevelIngrArray[_local1]._y - 15) < _local2._y)) || (((thisLevelIngrArray[_local1]._y + 5) < _local2._y) && ((thisLevelIngrArray[_local1]._y + 15) > _local2._y)))) {
scoreVal = scoreVal + 75;
statusArray[_local3 - 1] = "good";
} else {
scoreVal = scoreVal + 50;
statusArray[_local3 - 1] = "bad";
}
}
_local1++;
}
if (statusArray.length == depth) {
allowNextLevel = false;
MC_cursor.gotoAndStop(1);
statusPlay();
gameMc.topBar.scores = scoreVal;
}
}
};
}
function nextLevelFun() {
nextCame = false;
nextLevelMc._x = 400;
nextLevelMc._y = 300;
}
function statusPlay() {
var _local1 = 0;
while (_local1 < ingrediantStatusArray.length) {
ingrediantStatusArray[_local1].statusMc.gotoAndStop(statusArray[_local1]);
_local1++;
}
if (levelNumber == 13) {
nextCame = false;
nextLevelMc.gotoAndStop(2);
nextLevelMc.scoreTxt = scoreVal;
}
}
function enterFrmDelete() {
delete onEnterFrame;
}
function resetFun() {
var _local2 = 0;
while (_local2 < ingrediantStatusArray.length) {
ingrediantStatusArray[_local2].removeMovieClip();
_local2++;
}
var _local1 = 0;
while (_local1 < thisLevelIngrArray.length) {
thisLevelIngrArray[_local1].removeMovieClip();
_local1++;
}
thisLevelIngrArray = [];
currentFrameArray = [];
thisLevelIngrArray.push("");
currentFrameArray.push("");
ingrediantStatusArray = [];
statusArray = [];
depth = 0;
frm = 1;
frmCount = 0;
}
stop();
nextLevelMc.gotoAndStop(1);
nextLevelMc._x = 1017.9;
nextLevelMc._visible = true;
var nextCame = true;
var ingrediantId = 0;
var scoreVal = 0;
var statusArray = new Array();
var level_1_Array = new Array("", {x:193.5, y:319.9}, {x:108, y:382.6}, {x:293.9, y:380.6}, {x:199.3, y:430.9});
var level_2_Array = new Array("", {x:120.3, y:327.9}, {x:242.6, y:327.9}, {x:119.5, y:408.3}, {x:243.4, y:408.3}, {x:203.4, y:391.6});
var level_3_Array = new Array("", {x:108.6, y:335.9}, {x:249.9, y:335.9}, {x:180.8, y:416.7}, {x:205.5, y:336.6}, {x:143.8, y:432.4}, {x:276.9, y:432.4});
var level_4_Array = new Array("", {x:121.8, y:323.9}, {x:258.4, y:323.9}, {x:114.8, y:440.5}, {x:272.9, y:440.5}, {x:102.5, y:373.1}, {x:204.9, y:373.1}, {x:311.6, y:373.1});
var level_5_Array = new Array("", {x:164.6, y:322.9}, {x:201.3, y:388.1}, {x:186.3, y:469.1}, {x:121.5, y:354.1}, {x:248.9, y:388.1}, {x:121.5, y:426.6}, {x:105.2, y:378.9}, {x:248.9, y:330.6}, {x:263.5, y:416.6});
var level_6_Array = new Array("", {x:120.3, y:308.1}, {x:253.5, y:416.1}, {x:249.9, y:322.4}, {x:114.5, y:408.9}, {x:198.4, y:385.3}, {x:213, y:325.8}, {x:120.3, y:385.3}, {x:210.1, y:396.1}, {x:312.9, y:397.2}, {x:207.2, y:476.3});
var level_7_Array = new Array("", {x:164.8, y:389.6}, {x:164.8, y:418.3}, {x:118.8, y:325.3}, {x:240.7, y:325.3}, {x:101.5, y:433.4}, {x:273.4, y:423.6}, {x:192.8, y:325.3}, {x:194.8, y:432.4}, {x:110.1, y:379.5}, {x:198.6, y:382.4}, {x:276.8, y:379.5});
var level_8_Array = new Array("", {x:161.8, y:337.6}, {x:86, y:413.4}, {x:264.4, y:405.2}, {x:171.9, y:479.6}, {x:191.9, y:319.9}, {x:109.6, y:348.9}, {x:267.7, y:337.6}, {x:143.6, y:398.2}, {x:257.6, y:389.9}, {x:118.2, y:442}, {x:283.1, y:434.8}, {x:204.7, y:470.9}, {x:204.7, y:357.6}, {x:153.2, y:386.5}, {x:257.6, y:379.1}, {x:153.2, y:434.8}, {x:264.4, y:427.4}, {x:216.8, y:459.3}, {x:187.2, y:379.1}, {x:204.7, y:379.1}, {x:204.7, y:427.4});
var level_9_Array = new Array("", {x:151.3, y:325.7}, {x:224.3, y:327.9}, {x:276.8, y:358.7}, {x:287.6, y:395.4}, {x:262.1, y:436.1}, {x:196.8, y:455.3}, {x:132.2, y:448.6}, {x:98.7, y:409.1}, {x:111.4, y:364.6}, {x:175.3, y:372.9}, {x:175.3, y:421.9}, {x:171, y:386.9}, {x:224.3, y:382.1}, {x:198.7, y:375.9});
var level_10_Array = new Array("", {x:136.1, y:317.1}, {x:232.5, y:322.3}, {x:180.9, y:372.8}, {x:120.3, y:403.4}, {x:242.2, y:403.4}, {x:118.3, y:358.9}, {x:232.5, y:361.1}, {x:132.2, y:374.7}, {x:243.9, y:374.7}, {x:90, y:384.2}, {x:300.6, y:393.1}, {x:214.2, y:324.8}, {x:209.4, y:467.1});
var level_11_Array = new Array("", {x:205.6, y:316.1}, {x:111.1, y:376.5}, {x:286.5, y:376.5}, {x:205.6, y:444.4}, {x:126.4, y:336.4}, {x:256.9, y:338.1}, {x:126.4, y:426.6}, {x:256.9, y:433.1}, {x:189.8, y:365.7}, {x:209.4, y:387.1}, {x:157.7, y:385.8}, {x:261.8, y:386.9});
var level_12_Array = new Array("", {x:145.2, y:360.3}, {x:218.2, y:358.1}, {x:182.7, y:408.4}, {x:170.2, y:443.6}, {x:140.7, y:317.1}, {x:236.1, y:314.1}, {x:99.1, y:366.8}, {x:260.1, y:358.7}, {x:197, y:437.9}, {x:197.9, y:331.1}, {x:147.3, y:425.3}, {x:256.4, y:420.9}, {x:177.8, y:358.1}, {x:182.7, y:374.6}, {x:197, y:382.6});
var level_13_Array = new Array("", {x:186.8, y:328.4}, {x:274.7, y:376.8}, {x:188.8, y:433.1}, {x:113.1, y:373.3}, {x:186.8, y:365.7}, {x:185, y:340.1}, {x:239.7, y:396.4}, {x:146.1, y:399.7}, {x:136.1, y:345.4}, {x:224.9, y:339.6}, {x:188.8, y:399.8}, {x:191, y:376.8}, {x:204.9, y:384.8}, {x:141.2, y:354}, {x:266.8, y:436.4}, {x:279.3, y:340.1}, {x:148.8, y:445.4});
var ingrediantStatusArray = new Array();
var thisLevelIngrArray = new Array("");
var currentFrameArray = new Array("");
var frm = 1;
var frmCount = 0;
var depth = 0;
var allowNextLevel = true;
var levelNumber = 1;
alphaFun();
levelNumber = 1;
level_1_Fun();
mouseDownFun();
onEnterFrame = function () {
frmCount++;
if ((frmCount > gameMode) && (allowNextLevel)) {
frmCount = 0;
frm++;
gameMc.topBar.seekBarMc.barMc.gotoAndStop(frm);
gameMc.topBar.seekBarMc.dotMc.gotoAndStop(frm);
if (frm >= 60) {
btnDesable();
enterFrmDelete();
deleteMouseDwn();
MC_cursor.gotoAndStop(1);
gameMc.topBar.scores = scoreVal;
nextCame = false;
gameoverlMc._x = 400;
gameoverlMc._y = 300;
gameoverlMc.scoreTxt = scoreVal;
resetFun();
frm = 1;
frmCount = 0;
allowNextLevel = false;
if (levelNumber == 12) {
}
}
}
};
nextLevelMc.nextLevelIn.onPress = function () {
nextLevelMc.gotoAndStop(1);
nextCame = true;
nextLevelMc._x = -200;
resetFun();
levelNumber++;
gameMc.topBar.stages = levelNumber;
if (levelNumber == 2) {
level_2_Fun();
} else if (levelNumber == 3) {
level_3_Fun();
} else if (levelNumber == 4) {
level_4_Fun();
} else if (levelNumber == 5) {
level_5_Fun();
} else if (levelNumber == 6) {
level_6_Fun();
} else if (levelNumber == 7) {
level_7_Fun();
} else if (levelNumber == 8) {
level_8_Fun();
} else if (levelNumber == 9) {
level_9_Fun();
} else if (levelNumber == 10) {
level_10_Fun();
} else if (levelNumber == 11) {
level_11_Fun();
} else if (levelNumber == 12) {
level_12_Fun();
} else if (levelNumber == 13) {
level_13_Fun();
}
if (levelNumber != 14) {
allowNextLevel = true;
gameMc.topBar.seekBarMc.barMc.gotoAndStop(1);
gameMc.topBar.seekBarMc.dotMc.gotoAndStop(1);
} else {
resetFun();
enterFrmDelete();
deleteMouseDwn();
gotoAndStop ("splashscreen");
}
};
Symbol 32 MovieClip Frame 1
stop();
Symbol 36 MovieClip Frame 20
_parent._parent._parent.nextLevelFun();
_parent.gotoAndStop(1);
Symbol 39 MovieClip Frame 20
_parent._parent._parent.nextLevelFun();
_parent.gotoAndStop(1);
Symbol 42 MovieClip Frame 20
_parent._parent._parent.nextLevelFun();
_parent.gotoAndStop(1);
Symbol 45 MovieClip Frame 20
_parent._parent._parent.nextLevelFun();
_parent.gotoAndStop(1);
Symbol 46 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 20
Symbol 63 MovieClip Frame 1
Symbol 87 MovieClip Frame 30
stop();
Symbol 99 MovieClip Frame 21
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 104 MovieClip Frame 100
stop();
_parent.gotoAndPlay("start");
Symbol 117 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 2
stop();
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 20
stop();
Instance of Symbol 117 MovieClip "playGame" in Symbol 118 MovieClip Frame 20
on (rollOver) {
this.gotoAndStop(2);
}
on (rollOut) {
this.gotoAndStop(1);
}
on (release) {
_parent._parent.gotoAndStop("splashscreen");
}
Symbol 129 Button
on (release) {
_parent.gotoAndStop("tutorial");
}
Symbol 134 Button
on (release) {
_parent.gotoAndStop("levels");
}
Instance of Symbol 200 MovieClip "btn" in Symbol 201 MovieClip Frame 1
on (release) {
getURL ("http://www.rainbowdressup.com", "_blank");
}
Symbol 210 Button
on (release) {
_parent.getURL("http://www.rainbowdressup.com", "_blank");
}
Symbol 221 Button
on (release) {
this.swapDepths(-450);
_parent.MC_cursor.stopDrag();
_parent.MC_cursor.swapDepths(-200);
_parent.resetFun();
_parent.gotoAndPlay("splashscreen");
}
Symbol 222 MovieClip Frame 1
stop();
Symbol 232 Button
on (release) {
_parent.gameMode = 6;
_parent.gotoAndStop("gamescreen");
}
Symbol 235 Button
on (release) {
_parent.gameMode = 12;
_parent.gotoAndStop("gamescreen");
}
Symbol 238 Button
on (release) {
_parent.gameMode = 24;
_parent.gotoAndPlay("gamescreen");
}
Symbol 242 Button
on (release) {
_parent.gotoAndPlay("splashscreen");
}
Symbol 243 MovieClip Frame 20
stop();
Symbol 248 MovieClip Frame 20
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 1
stop();
Symbol 264 Button
on (release) {
_parent._parent._parent.bg.sndObj.setVolume(0);
gotoAndStop (2);
}
Symbol 266 Button
on (release) {
_parent._parent._parent.bg.sndObj.setVolume(100);
gotoAndStop (1);
}
Symbol 267 MovieClip Frame 1
stop();
Symbol 321 MovieClip Frame 1
stop();