Frame 1
_root.bgm = new Sound();
_root.efek1 = new Sound();
_root.efek2 = new Sound();
_root.efek3 = new Sound();
_root.efek4 = new Sound();
_root.efek5 = new Sound();
_root.efek6 = new Sound();
_root.bgm.setVolume(80);
_root.bgm.onSoundComplete = function () {
_root.bgm.start();
};
Instance of Symbol 358 MovieClip in Frame 1
onClipEvent (load) {
_visible = false;
}
Frame 2
this.createEmptyMovieClip("mcMiniclipTracker3", this.getNextHighestDepth());
this.mcMiniclipTracker3.createEmptyMovieClip("m", this.getNextHighestDepth());
this.mcMiniclipTracker3.m.loadMovie("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/leancusine_clicks/242444@x01?cacheBuster=" + (getTimer() + random(100000000)), 1);
this.mcMiniclipTracker3.onEnterFrame = function () {
if ((this.m.getBytesTotal() == this.m.getBytesTotal()) && (this.m.getBytesTotal() != 0)) {
trace("[Miniclip tracker activated] Game load");
this.removeMovieClip();
}
};
Frame 4
stop();
var sins = 1;
_root.bgm.stop();
_root.bgm.attachSound("mus1");
_root.bgm.start();
var totalgp = 0;
_root.pauss = 1;
_root.restup = 0;
_root.jumlahorang = 0;
_root.meja = [0, 0, 0, 0, 0, 0];
_root.ran = 0;
_root.pesanan = 0;
_root.stages = 1;
_root.bir1 = [0, 1, 5];
_root.bir2 = [0, 1, 5, 2];
_root.bir3 = [0, 1, 5, 2, 6];
_root.bir4 = [0, 1, 5, 2, 6, 3];
_root.bir5 = [0, 1, 5, 2, 6, 3, 7];
_root.bir6 = [0, 1, 5, 2, 6, 3, 7];
_root.bir7 = [0, 1, 5, 2, 6, 3, 7, 4];
_root.bir8 = [0, 1, 5, 2, 6, 3, 7, 4];
_root.bir9 = [0, 1, 5, 2, 6, 3, 7, 4, 8];
_root.bir10 = [0, 1, 5, 2, 6, 3, 7, 4, 8];
_root.drinkup = 0;
_root.ovenup1 = 0;
_root.ovenup2 = 0;
Instance of Symbol 253 MovieClip "snx" in Frame 4
on (release) {
if (_root.sins == 1) {
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(0);
i++;
}
_root.bgm.setVolume(0);
this.gotoAndStop(2);
_root.sins = 0;
} else {
this.gotoAndStop(1);
_root.sins = 1;
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(100);
i++;
}
_root.bgm.setVolume(80);
}
}
Frame 6
Instance of Symbol 409 MovieClip "comHighscores" in Frame 6
//component parameters
onClipEvent (construct) {
scoreLocation = "_root.totalgp";
gamename = "flatbread";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Instance of Symbol 409 MovieClip "comHighscores" in Frame 7
//component parameters
onClipEvent (construct) {
scoreLocation = "0";
gamename = "flatbread";
saveScore = true;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
onClipEvent (load) {
scoreLocation = "_root.totalgp";
gamename = "lean";
saveScore = false;
scoreIsTime = false;
scoreReversed = false;
negativeScoreAllowed = false;
}
Frame 10
_root.attachMovie("kis", "kis", 2);
Frame 11
_root.bgm.stop();
_root.bgm.attachSound("mus2");
_root.bgm.start();
Instance of Symbol 143 MovieClip in Frame 11
onClipEvent (enterFrame) {
t++;
if (t >= 24) {
t = 0;
_root.gotoAndStop("subm");
}
}
onClipEvent (load) {
t = 0;
}
Symbol 4 MovieClip [bre] Frame 1
stop();
Symbol 14 MovieClip [sau] Frame 1
stop();
Symbol 31 MovieClip [ing] Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 103 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 117 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 138 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
_root.efek4.attachSound("mas");
_root.efek4.start();
Symbol 166 MovieClip Frame 37
_parent.okay = 1;
stop();
Symbol 179 MovieClip Frame 1
stop();
Symbol 179 MovieClip Frame 2
_root.efek4.attachSound("mas");
_root.efek4.start();
Symbol 179 MovieClip Frame 25
_parent.okay = 1;
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 191 Button
on (release) {
_root.kis.tutup._visible = 1;
_root.pauss = 1;
_root.kis.psx._visible = 1;
if (_root.sins == 1) {
_root.kis.psx.snx.gotoAndStop(1);
} else {
_root.kis.psx.snx.gotoAndStop(2);
}
_root.kis.br.swapDepths(90);
j = 1;
while (j <= 8) {
_root.kis["e" + j].swapDepths(30 + j);
j++;
}
j = 1;
while (j <= 4) {
_root.kis["s" + j].swapDepths(40 + j);
j++;
}
_root.kis.psx.swapDepths(999);
_root.kis.tutup.swapDepths(98);
_root.kis.ov1.ovv.stop();
_root.kis.ov2.ovv.stop();
o = 1;
while (o <= 5) {
_root.kis["org" + o].uang.stop();
o++;
}
}
Symbol 200 Button
on (release) {
_root.kis.tutup._visible = 0;
_root.kis.buy1._visible = 0;
_root.kis.buy2._visible = 0;
_root.kis.up1._visible = 0;
_root.kis.up2._visible = 0;
_root.kis.up3._visible = 0;
_root.pauss = 0;
_root.kis.nex._visible = 0;
_root.kis.scr._visible = 0;
_root.restup = 0;
_root.kis.timeend = 0;
_root.kis.closs = 0;
_root.kis.cserv = 0;
_root.kis.br.enabled = 1;
_root.kis.minum1.t = 100;
_root.kis.ttm1.tm = 0;
_root.kis.ttm1.gotoAndStop(1);
_root.kis.ttm1.jar._rotation = 0;
_root.bgm.stop();
_root.bgm.attachSound("gm");
_root.bgm.start();
_root.kis.gp = 0;
}
Symbol 206 Button
on (release) {
gotoAndStop (1);
}
Symbol 213 Button
on (release) {
upcode = 1;
gotoAndStop (4);
}
Symbol 219 Button
on (release) {
buycode = 1;
gotoAndStop (3);
}
Symbol 221 Button
on (release) {
upcode = 2;
gotoAndStop (4);
}
Symbol 223 Button
on (release) {
buycode = 2;
gotoAndStop (3);
}
Symbol 231 Button
on (release) {
gotoAndStop (2);
}
Symbol 236 Button
on (release) {
if ((buycode == 2) and (_root.totalgp >= 75)) {
_root.totalgp = _root.totalgp - 75;
_root.kis.minum1._visible = 1;
_root.drinkup = 0;
gotoAndStop (2);
}
if ((buycode == 1) and (_root.totalgp >= 50)) {
_root.totalgp = _root.totalgp - 50;
_root.kis.ov2._visible = 1;
gotoAndStop (2);
}
}
Symbol 238 Button
on (release) {
if ((upcode == 2) and (_root.totalgp >= 150)) {
_root.totalgp = _root.totalgp - 150;
_root.drinkup = 1;
_root.kis.minum1.gotoAndStop(2);
gotoAndStop (2);
}
if ((upcode == 1) and (_root.totalgp >= 100)) {
_root.totalgp = _root.totalgp - 100;
_root.ovenup1 = 1;
_root.ovenup2 = 1;
_root.kis.ov1.gotoAndStop(2);
_root.kis.ov2.gotoAndStop(2);
gotoAndStop (2);
}
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
gp = _root.totalgp;
buycode = 0;
upcode = 0;
if (_root.kis.minum1._visible == 1) {
buy2._visible = 0;
}
if (_root.drinkup == 1) {
up2._visible = 0;
}
if (_root.kis.ov2._visible == 1) {
buy1._visible = 0;
}
if (_root.ovenup1 == 1) {
up1._visible = 0;
}
Symbol 241 MovieClip Frame 3
gp = _root.totalgp;
Symbol 241 MovieClip Frame 4
gp = _root.totalgp;
Symbol 247 Button
on (release) {
_root.totalgp = _root.totalgp + _root.kis.gp;
if (_root.stages >= 10) {
_parent._parent.gotoAndStop("winz");
_root.kis.removeMovieClip();
}
this._visible = 0;
_root.stages++;
trace("current level = " + _root.stages);
_root.kis.scr.goali = _root.goals[_root.stages];
_root.kis.scr._visible = 1;
_root.kis.scr.swapDepths(_root.kis.getNextHighestDepth());
_root.kis.scr.shp._visible = 1;
_root.kis.scr.gotoAndStop(2);
_root.winc.con = 0;
_root.winc.phase = 0;
}
Symbol 253 MovieClip Frame 1
stop();
Symbol 258 Button
on (release) {
_root.kis.psx._visible = 0;
_root.kis.tutup._visible = 0;
_root.pauss = 0;
if ((_root.kis.ov1.has == 1) and (_root.kis.ov1.jadi == 0)) {
_root.kis.ov1.ovv.play();
}
if ((_root.kis.ov2.has == 1) and (_root.kis.ov2.jadi == 0)) {
_root.kis.ov2.ovv.play();
}
o = 1;
while (o <= 5) {
_root.kis["org" + o].uang.play();
o++;
}
}
Symbol 263 Button
on (release) {
_root.gotoAndStop("start");
_root.kis.removeMovieClip();
}
Instance of Symbol 253 MovieClip "snx" in Symbol 264 MovieClip Frame 1
on (release) {
if (_root.sins == 1) {
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(0);
i++;
}
_root.bgm.setVolume(0);
this.gotoAndStop(2);
_root.sins = 0;
} else {
this.gotoAndStop(1);
_root.sins = 1;
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(100);
i++;
}
_root.bgm.setVolume(80);
}
}
Symbol 265 MovieClip [kis] Frame 1
function mixing(codes, num, saus) {
h = 1;
while (h <= num) {
_root["isi" + codes][h] = _root.kis["bre" + codes].box[h];
h++;
}
_root["isi" + codes].sort();
_root["ggg" + codes] = 0;
switch (num) {
case 2 :
if (_root["isi" + codes][1] == 2) {
if (_root["isi" + codes][2] == 4) {
if (saus == 2) {
_root["ggg" + codes] = 2;
}
}
}
break;
case 3 :
if (_root["isi" + codes][1] == 1) {
if (_root["isi" + codes][2] == 4) {
if (_root["isi" + codes][3] == 6) {
if (saus == 0) {
_root["ggg" + codes] = 1;
}
}
}
if (_root["isi" + codes][2] == 2) {
if (_root["isi" + codes][3] == 7) {
if (saus == 4) {
_root["ggg" + codes] = 4;
}
}
}
if (_root["isi" + codes][2] == 3) {
if (_root["isi" + codes][3] == 4) {
if (saus == 3) {
_root["ggg" + codes] = 7;
}
}
}
if (_root["isi" + codes][2] == 4) {
if (_root["isi" + codes][3] == 5) {
if (saus == 1) {
_root["ggg" + codes] = 5;
}
}
}
if (_root["isi" + codes][2] == 5) {
if (_root["isi" + codes][3] == 8) {
if (saus == 4) {
_root["ggg" + codes] = 8;
}
}
}
}
if (_root["isi" + codes][1] == 3) {
if (_root["isi" + codes][2] == 5) {
if (_root["isi" + codes][3] == 7) {
if (saus == 1) {
_root["ggg" + codes] = 3;
}
}
}
}
break;
case 4 :
if (_root["isi" + codes][1] != 2) {
break;
}
if (_root["isi" + codes][2] != 5) {
break;
}
if (_root["isi" + codes][3] != 6) {
break;
}
if (_root["isi" + codes][4] != 7) {
break;
}
if (saus != 2) {
break;
}
_root["ggg" + codes] = 6;
}
_root["isi" + codes] = [0, 9, 9, 9, 9, 9, 9];
_root.kis["bre" + codes].box = [0, 9, 9, 9, 9, 9, 9];
_root.kis["bre" + codes].formul = "";
_root.kis["bre" + codes].num = 0;
_root.kis["bre" + codes].saus = 0;
}
ov2._visible = 0;
minum1._visible = 0;
gp = 0;
i = 1;
while (i <= 5) {
this["org" + i]._visible = 0;
i++;
}
_root.totalgp = 0;
cserv = 0;
closs = 0;
_root.goals = [0, 10, 15, 25, 40, 50, 60, 80, 95, 120, 140];
_root.timm = [0, 2, 3, 4, 4, 4, 5, 5, 5, 6, 6];
_root.fod1 = [0, 1, 4, 6];
_root.fod2 = [0, 2, 4];
_root.fod3 = [0, 3, 5, 7];
_root.fod4 = [0, 1, 2, 7];
_root.fod5 = [0, 1, 4, 5];
_root.fod6 = [0, 2, 5, 6, 7];
_root.fod7 = [0, 1, 3, 4];
_root.fod8 = [0, 1, 5, 8];
_root.saucing = [0, 0, 2, 1, 4, 1, 2, 3, 4];
_root.harga = [0, 1.5, 2, 2.5, 3, 4, 4.5, 4, 4];
_root.ggg1 = 0;
_root.ggg2 = 0;
_root.panjang1 = 0;
_root.panjang2 = 0;
_root.isi1 = [0, 9, 9, 9, 9, 9, 9];
_root.isi2 = [0, 9, 9, 9, 9, 9, 9];
_root.kis.scr.goali = _root.goals[_root.stages];
trace("current stage = " + _root.stages);
i = 1;
while (i <= 8) {
this["e" + i].xx = this["e" + i]._x;
this["e" + i].yy = this["e" + i]._y;
this["e" + i].codes = i;
this["e" + i].onPress = function () {
if (_root.pauss != 1) {
this.gotoAndStop(this.codes + 1);
this.startDrag();
this.swapDepths(99);
}
};
this["e" + i].onRelease = function () {
this.stopDrag();
this.gotoAndStop(1);
j = 1;
while (j <= 2) {
if (this.hitTest(_root.kis["bre" + j]) and (_root.kis["bre" + j].num < 6)) {
_root.kis["bre" + j].num++;
this.nos = _root.kis["bre" + j].num + 1;
_root.kis["bre" + j].formul = _root.kis["bre" + j].formul + (this.codes + "");
_root.kis["bre" + j].box[this.nos - 1] = this.codes;
_root.kis["bre" + j].attachMovie("ing", "ing" + this.nos, this.nos);
_root.kis["bre" + j]["ing" + this.nos].gotoAndStop(this.codes + 1);
_root.kis["bre" + j]["ing" + this.nos]._xscale = 50;
_root.kis["bre" + j]["ing" + this.nos]._yscale = 50;
if (this.nos < 5) {
_root.kis["bre" + j]["ing" + this.nos]._x = -30 + ((this.nos - 2) * 30);
_root.kis["bre" + j]["ing" + this.nos]._y = -15;
} else {
_root.kis["bre" + j]["ing" + this.nos]._x = -30 + ((this.nos - 5) * 30);
_root.kis["bre" + j]["ing" + this.nos]._y = 15;
}
break;
}
j++;
}
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 30);
};
this["e" + i].onReleaseOutside = function () {
this.stopDrag();
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 30);
};
i++;
}
i = 1;
while (i <= 4) {
this["s" + i].gotoAndStop(i);
this["s" + i].xx = this["s" + i]._x;
this["s" + i].yy = this["s" + i]._y;
this["s" + i].codes = i;
this["s" + i].onPress = function () {
if (_root.pauss != 1) {
this.startDrag();
this._rotation = -125;
this.swapDepths(99);
}
};
this["s" + i].onRelease = function () {
this.stopDrag();
j = 1;
while (j <= 2) {
if (this.tar.hitTest(_root.kis["bre" + j])) {
_root.kis["bre" + j].attachMovie("saux", "saux", 10);
_root.kis["bre" + j].saus = this.codes;
_root.kis["bre" + j].saux.gotoAndStop(this.codes);
break;
}
j++;
}
this._x = this.xx;
this._y = this.yy;
this._rotation = 0;
this.swapDepths(this.codes + 40);
};
this["s" + i].onReleaseOutside = function () {
this.stopDrag();
this._x = this.xx;
this._y = this.yy;
this._rotation = 0;
this.swapDepths(this.codes + 40);
};
i++;
}
function makeorang(ip) {
_root.meja[ip] = 1;
koma = 0;
_root.kis["org" + ip]._visible = 1;
_root.kis["org" + ip].harga = 0;
_root.kis["org" + ip].spesial = 0;
i = 1;
while (i <= 4) {
_root.kis["org" + ip].mm["e" + i]._visible = 0;
i++;
}
_root.kis["org" + ip].aa = _root["bir" + _root.stages].length - 1;
_root.kis["org" + ip].ran = _root["bir" + _root.stages][random(_root.kis["org" + ip].aa) + 1];
_root.kis["org" + ip].mth.ho = 0;
_root.kis["org" + ip].hp = 5;
_root.kis["org" + ip].mth.gotoAndStop(5);
_root.kis["org" + ip].mth.codes = ip;
_root.kis["org" + ip].mth._visible = 0;
bnp = random(10) + 1;
if (bnp == 6) {
if (_root.stages >= 6) {
_root.kis["org" + ip].harga = 5;
_root.kis["org" + ip].spesial = 1;
} else {
bnp = random(5) + 1;
}
}
if (bnp == 10) {
if (_root.stages >= 8) {
_root.kis["org" + ip].harga = 5;
_root.kis["org" + ip].spesial = 1;
} else {
bnp = random(7) + 1;
}
}
_root.kis["org" + ip].gotoAndStop(bnp);
_root.kis["org" + ip].og.gotoAndStop(1);
_root.kis["org" + ip].pesanan = _root.kis["org" + ip].ran;
_root.kis["org" + ip].mm.gotoAndStop(_root.kis["org" + ip].pesanan);
_root.kis["org" + ip].mth.phase = 1;
_root.kis["org" + ip].mth.onEnterFrame = function () {
if (_root.pauss != 1) {
if (this._parent.hp <= 2) {
if (this.phase == 1) {
this._parent.og._x++;
this.phase = 2;
} else {
this._parent.og._x--;
this.phase = 1;
}
} else {
this._parent.og._x = 0;
}
this.ho++;
if (this.ho >= (96 - (this._parent.spesial * 36))) {
this.ho = 0;
this._parent.hp--;
this.gotoAndStop(this._parent.hp);
if ((this._parent.hp <= 2) and (this._parent.makan != 1)) {
this._parent.og.gotoAndStop(2);
} else if (this._parent.hp >= 3) {
this._parent.og.gotoAndStop(1);
}
if (this._parent.hp <= 0) {
this._parent._visible = 0;
_root.meja[this.codes] = 0;
_root.kis["et" + this.codes].drink.removeMovieClip();
_root.kis["et" + this.codes].food.removeMovieClip();
_root.jumlahorang--;
_root.kis.closs++;
delete this.onEnterFrame;
}
}
}
};
}
function newcostumer() {
if (_root.pauss != 1) {
if (_root.restup != 1) {
if (_root.jumlahorang < 5) {
ok = 0;
do {
neo = random(5) + 1;
if (_root.meja[neo] != 1) {
if (_root.restup != 1) {
_root.jumlahorang++;
makeorang(neo);
}
ok = 1;
}
} while (ok != 1);
}
}
}
}
Instance of Symbol 36 MovieClip in Symbol 265 MovieClip [kis] Frame 1
/* no clip actions */
Instance of Symbol 42 MovieClip "ttm1" in Symbol 265 MovieClip [kis] Frame 1
onClipEvent (enterFrame) {
timen = 60 * _root.timm[_root.stages];
jarum = 360 / timen;
if (_root.pauss != 1) {
tm++;
if (tm >= 12) {
if (_root.restup != 1) {
_parent.timeend++;
this.jar._rotation = this.jar._rotation + jarum;
}
tm = 0;
}
if (_parent.timeend >= timen) {
this.gotoAndStop(2);
_parent.timeend = timen;
this.jar._rotation = 0;
if (_root.jumlahorang > 0) {
_root.restup = 1;
_root.timeend = timen;
} else {
this.jar._rotation = 0;
_parent.timeend = timen;
_root.pauss = 1;
_root.restup = 1;
_root.jumlahorang = 0;
_root.kis.br.gotoAndStop(1);
_root.kis.br.stopDrag();
_root.kis.br._x = _root.kis.br.xx;
_root.kis.br._y = _root.kis.br.yy;
_root.kis.br.swapDepths(90);
j = 1;
while (j <= 8) {
_root.kis["e" + j].gotoAndStop(1);
_root.kis["e" + j].stopDrag();
_root.kis["e" + j]._x = _root.kis["e" + j].xx;
_root.kis["e" + j]._y = _root.kis["e" + j].yy;
_root.kis["e" + j].swapDepths(30 + j);
j++;
}
j = 1;
while (j <= 4) {
_root.kis["s" + j].stopDrag();
_root.kis["s" + j]._x = _root.kis["s" + j].xx;
_root.kis["s" + j]._y = _root.kis["s" + j].yy;
_root.kis["s" + j]._rotation = 0;
_root.kis["s" + j].swapDepths(40 + j);
j++;
}
j = 1;
while (j <= 2) {
_root.kis["bre" + j].removeMovieClip();
_root.kis["food" + j].removeMovieClip();
_root.kis["drink" + j].removeMovieClip();
_root.kis["ov" + j].ovv.gotoAndStop(1);
_root.kis["fld" + j].has = 0;
_root.kis["ov" + j].has = 0;
j++;
}
if (_parent.gp >= _root.goals[_root.stages]) {
_root.bgm.stop();
_root.bgm.attachSound("wino");
_root.bgm.start();
_root.kis.tutup._visible = 1;
_root.kis.winc._visible = 1;
_root.kis.winc.gp = 0;
_root.kis.winc.cs = 0;
_root.kis.winc.cl = 0;
_root.kis.winc.phase = 1;
_root.kis.winc.con = 1;
_root.kis.winc.swapDepths(999);
_root.kis.tutup.swapDepths(98);
} else {
_root.gotoAndStop("loz");
_root.totalgp = _root.totalgp + _root.kis.gp;
_root.kis.removeMovieClip();
}
}
}
t++;
_parent.topi = t;
if (t >= tx) {
t = 0;
tx = (12 + random(24)) + (120 - (_root.stages * 12));
p = random(2) + 1;
if (_root.stages <= 6) {
p = 1;
}
if (p == 1) {
_parent.newcostumer();
}
}
}
}
onClipEvent (load) {
t = 0;
tx = 12;
tm = 0;
timen = 60 * _root.timm[_root.stages];
jarum = 360 / timen;
dimo = [0, 20, 26, 32, 39, 39, 39, 39];
rat = 113 / timen;
}
Instance of Symbol 151 MovieClip "minum1" in Symbol 265 MovieClip [kis] Frame 1
onClipEvent (enterFrame) {
_parent.stagex = _root.stages;
if ((this._visible == 1) and (_root.pauss != 1)) {
if (ada == 0) {
t = t + 1;
}
if (t >= 60) {
t = 0;
if (_root.drinkup == 1) {
ada = 2;
} else {
ada = 1;
}
pl = 1;
while (pl <= (_root.drinkup + 1)) {
_root.kis.attachMovie("drink", "drink" + pl, 45 + pl);
drinkcd = pl;
if (_root.drinkup == 1) {
_root.kis["drink" + drinkcd]._x = (45 * pl) - 19;
} else {
_root.kis["drink" + drinkcd]._x = 49;
}
_root.kis["drink" + drinkcd]._y = 270;
_root.kis["drink" + drinkcd].xx = _root.kis["drink" + drinkcd]._x;
_root.kis["drink" + drinkcd].yy = _root.kis["drink" + drinkcd]._y;
_root.kis["drink" + drinkcd].onPress = function () {
if (_root.pauss != 1) {
this.startDrag();
this.swapDepths(99);
}
};
_root.kis["drink" + drinkcd].onRelease = function () {
this.stopDrag();
if (this.hitTest(_root.kis.gar)) {
_root.kis.minum1.ada--;
this.removeMovieClip();
}
k = 1;
while (k <= 5) {
if ((this.hitTest(_root.kis["org" + k].tar) and (_root.kis["org" + k].minum != 1)) and (_root.meja[k] != 0)) {
_root.kis["et" + k].attachMovie("drink", "drink", 3);
_root.kis["et" + k].drink._x = _root.kis["et" + k].drink._x - 47;
_root.kis["et" + k].drink._y = _root.kis["et" + k].drink._y - 15;
_root.kis["org" + k].minum = 1;
_root.kis["org" + k].harga = _root.kis["org" + k].harga + 2;
_root.kis["org" + k].hp = _root.kis["org" + k].hp + 2;
if (_root.kis["org" + k].hp >= 5) {
_root.kis["org" + k].hp = 5;
}
_root.kis["org" + k].mth.gotoAndStop(_root.kis["org" + k].hp);
if (_root.kis["org" + k].hp >= 3) {
_root.kis["org" + k].og.gotoAndStop(1);
}
_root.kis.minum1.ada--;
this.removeMovieClip();
}
k++;
}
this._x = this.xx;
this._y = this.yy;
this.swapDepths(45);
};
_root.kis["drink" + drinkcd].onReleaseOutside = function () {
this.stopDrag();
this._x = this.xx;
this._y = this.yy;
this.swapDepths(45);
};
pl++;
}
}
}
}
onClipEvent (load) {
t = 0;
ada = 0;
}
Instance of Symbol 4 MovieClip [bre] "br" in Symbol 265 MovieClip [kis] Frame 1
on (press) {
if (_root.pauss != 1) {
this.gotoAndStop(2);
this.startDrag();
this.swapDepths(99);
}
}
on (releaseOutside) {
this.stopDrag();
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 80);
}
on (release) {
this.gotoAndStop(1);
this.stopDrag();
j = 1;
while (j <= 2) {
if (this.hitTest(_root.kis["fld" + j]) and (_root.kis["fld" + j].has != 1)) {
_root.kis["fld" + j].has = 1;
_root.kis.attachMovie("bre", "bre" + j, 20 + j);
_root.kis["bre" + j].gotoAndStop(2);
_root.kis["bre" + j]._x = _root.kis["fld" + j]._x;
_root.kis["bre" + j]._y = _root.kis["fld" + j]._y;
_root.kis["bre" + j].xx = _root.kis["bre" + j]._x;
_root.kis["bre" + j].yy = _root.kis["bre" + j]._y;
_root.kis["bre" + j].codes = j;
_root.kis["bre" + j].num = 0;
_root.kis["bre" + j].formul = "";
_root.kis["bre" + j].box = [0, 9, 9, 9, 9, 9, 9];
_root.kis["bre" + j].saus = 0;
_root.kis["bre" + j].onPress = function () {
if (_root.pauss != 1) {
this.startDrag();
this.swapDepths(99);
}
};
_root.kis["bre" + j].onRelease = function () {
this.stopDrag();
if (this.hitTest(_root.kis.gar)) {
_root.kis["fld" + this.codes].has = 0;
this.removeMovieClip();
}
i = 1;
while (i <= 2) {
if ((this.hitTest(_root.kis["ov" + i]) and (_root.kis["ov" + i].has != 1)) and (_root.kis["ov" + i]._visible == 1)) {
_parent.mixing(this.codes, this.num, this.saus);
_root.kis["ov" + i].has = 1;
_root.kis["ov" + i].codes = i;
_root.kis["ov" + i].jadi = 0;
_root.kis["fld" + this.codes].has = 0;
_root.kis["ov" + i].foodar = _root["ggg" + this.codes];
absx = _root["ovenup" + this.codes] + 1;
_root.kis["ov" + i].gotoAndStop(absx);
_root.kis["ov" + i].ovv.gotoAndPlay(2);
_root.kis["ov" + i].onEnterFrame = function () {
if (this.okay == 1) {
this.jadi = 1;
_root.kis.attachMovie("food", "food" + this.codes, 90 + this.codes);
if (_root.ovenup1 == 1) {
_root.kis["food" + this.codes]._x = _root.kis["ov" + this.codes]._x;
} else {
_root.kis["food" + this.codes]._x = _root.kis["ov" + this.codes]._x - 10;
}
_root.kis["food" + this.codes]._y = _root.kis["ov" + this.codes]._y + 8;
_root.kis["food" + this.codes].xx = _root.kis["food" + this.codes]._x;
_root.kis["food" + this.codes].yy = _root.kis["food" + this.codes]._y;
_root.kis["food" + this.codes].gotoAndStop(this.foodar + 1);
_root.kis["food" + this.codes].pesanan = this.foodar;
this.okay = 0;
delete this.onEnterFrame;
_root.kis["food" + this.codes].codes = this.codes;
_root.kis["food" + this.codes].onPress = function () {
if (_root.pauss != 1) {
this.startDrag();
this.swapDepths(99);
}
};
_root.kis["food" + this.codes].onRelease = function () {
this.stopDrag();
if (this.hitTest(_root.kis.gar)) {
_root.kis["ov" + this.codes].has = 0;
_root.kis["ov" + this.codes].ovv.gotoAndStop(1);
this.removeMovieClip();
}
k = 1;
while (k <= 5) {
if ((this.hitTest(_root.kis["org" + k].tar) and (_root.kis["org" + k].makan != 1)) and (_root.meja[k] != 0)) {
if (_root.kis["org" + k].pesanan == this.pesanan) {
_root.kis["et" + k].attachMovie("food", "food", 2);
_root.kis["et" + k].food.gotoAndStop(this.pesanan + 1);
_root.kis["et" + k].food._y = _root.kis["et" + k].food._y - 11;
_root.kis["org" + k].makan = 1;
_root.kis["org" + k].harga = _root.kis["org" + k].harga + _root.harga[this.pesanan];
_root.kis["org" + k].t = 0;
_root.kis["org" + k].codes = k;
_root.kis["org" + k].og.gotoAndStop(3);
_root.kis["org" + k].hp = _root.kis["org" + k].hp + 5;
if (_root.kis["org" + k].hp >= 5) {
_root.kis["org" + k].hp = 5;
}
_root.kis["org" + k].mth.gotoAndStop(_root.kis["org" + k].hp);
if (_root.kis["org" + k].hp >= 3) {
_root.kis["org" + k].og.gotoAndStop(1);
}
delete _root.kis["org" + k].mth.onEnterFrame;
_root.kis["org" + k].onEnterFrame = function () {
if (_root.pauss != 1) {
if (this.makan == 1) {
this.og.gotoAndStop(3);
}
this.t++;
if (this.t >= 24) {
this.t = 0;
_root.kis["org" + this.codes].attachMovie("uang", "uang", 5);
_parent.gp = _parent.gp + this.harga;
_root.kis.cserv++;
parseFloat(_parent.gp);
_root.kis["et" + this.codes].food.removeMovieClip();
_root.kis["et" + this.codes].drink.removeMovieClip();
this.makan = 0;
this.minum = 0;
delete this.onEnterFrame;
}
}
};
} else {
_root.kis["org" + k].mth.ho = 100;
}
_root.kis["ov" + this.codes].has = 0;
_root.kis["ov" + this.codes].ovv.gotoAndStop(1);
this.removeMovieClip();
}
k++;
}
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 90);
};
this.food.onReleaseOutside = function () {
this.stopDrag();
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 90);
};
}
};
this.removeMovieClip();
break;
}
i++;
}
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 50);
};
_root.kis["bre" + j].onReleaseOutside = function () {
this.stopDrag();
this._x = this.xx;
this._y = this.yy;
this.swapDepths(this.codes + 50);
};
break;
}
j++;
}
_x = xx;
_y = yy;
this.swapDepths(this.codes + 80);
}
onClipEvent (load) {
xx = this._x;
yy = this._y;
codes = 1;
}
Instance of Symbol 193 MovieClip "tutup" in Symbol 265 MovieClip [kis] Frame 1
on (release) {
}
Instance of Symbol 241 MovieClip "scr" in Symbol 265 MovieClip [kis] Frame 1
onClipEvent (load) {
this.shp._visible = 0;
}
Instance of Symbol 248 MovieClip "winc" in Symbol 265 MovieClip [kis] Frame 1
onClipEvent (load) {
this._visible = 0;
con = 0;
phase = 0;
}
onClipEvent (enterFrame) {
if (con == 1) {
_root.efek3.attachSound("itu");
_root.efek3.start();
if (phase == 1) {
this.gp = this.gp + 5;
if (this.gp >= _parent.gp) {
this.gp = _parent.gp;
parseFloat(this.gp);
phase++;
}
}
if (phase == 2) {
this.cs++;
if (this.cs >= _parent.cserv) {
this.cs = _parent.cserv;
phase++;
}
}
if (phase == 3) {
this.cl = this.cl + 5;
if (this.cl >= _parent.closs) {
this.cl = _parent.closs;
phase++;
}
}
if (phase == 4) {
con = 0;
phase = 0;
}
}
}
Instance of Symbol 264 MovieClip "psx" in Symbol 265 MovieClip [kis] Frame 1
onClipEvent (load) {
this._visible = 0;
}
Symbol 269 MovieClip [tim] Frame 1
stop();
Symbol 269 MovieClip [tim] Frame 2
_parent.okay = 1;
removeMovieClip(this);
Symbol 288 MovieClip [food] Frame 1
stop();
Symbol 299 MovieClip [uang] Frame 12
_parent._visible = 0;
_root.meja[_parent.codes] = 0;
_root.jumlahorang--;
_parent.makan = 0;
removeMovieClip(this);
Symbol 311 MovieClip [saux] Frame 1
stop();
Symbol 315 Button
on (release) {
getURL ("http://www.miniclip.com/", "_blank");
}
Symbol 316 MovieClip Frame 2
_parent.mcAnimation.play();
stop();
Symbol 316 MovieClip Frame 13
_parent.gotoAndPlay("preload");
stop();
Symbol 331 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 60
Symbol 331 MovieClip Frame 121
_parent.mcBackground.play();
stop();
Symbol 333 MovieClip Frame 1
this._visible = false;
Symbol 339 Button
on (release) {
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 344 MovieClip Frame 2
if (_url.indexOf("http") > -1) {
if (_parent._parent._parent.loadAdNow) {
cacheBuster = getTimer() + random(999999);
showAd = "http://www.miniclip.com/swfcontent/push/didyouknow.swf?cacheBuster" + cacheBuster;
trace("Loading ad: " + showAd);
mcAd.loadMovie(showAd);
} else {
gotoAndPlay(_currentframe - 1);
}
}
Symbol 344 MovieClip Frame 4
if ((mcAd.getBytesTotal() != 0) && (mcAd.getBytesLoaded() == mcAd.getBytesTotal())) {
gotoAndStop ("showAd");
} else {
gotoAndPlay(_currentframe - 1);
}
Symbol 344 MovieClip Frame 12
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 100
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 12
_root.play();
_root.isFinished = true;
_parent.stop();
stop();
Symbol 358 MovieClip Frame 1
loadAdNow = false;
_root.stop();
play();
Instance of Symbol 333 MovieClip "mcIntro" in Symbol 358 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 358 MovieClip Frame 2
_visible = true;
xPos = _x;
yPos = _y;
mcBackground._x = mcBackground._x - xPos;
mcBackground._y = mcBackground._y - yPos;
mcAnimation._x = mcAnimation._x - xPos;
mcAnimation._y = mcAnimation._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
mcBackground._width = stageWidth;
mcBackground._height = stageHeight;
mcAnimation._x = mcAnimation._x + centerStageX;
mcAnimation._y = mcAnimation._y + (centerStageY - (stageHeight / 10));
stop();
Instance of Symbol 357 MovieClip "mcLoadingAnimated" in Symbol 358 MovieClip Frame 2
onClipEvent (load) {
_visible = false;
}
Symbol 358 MovieClip Frame 3
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent == 100) {
_root.play();
stop();
} else {
loadAdNow = true;
mcLoadingAnimated._visible = true;
}
Symbol 358 MovieClip Frame 5
var loadedPercent = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (loadedPercent < 100) {
mcLoadingAnimated.mcLoading.gotoAndStop(loadedPercent);
mcLoadingAnimated.mcLoading.txtPercentLoaded1 = ("The game is loading (" + loadedPercent) + "%)";
mcLoadingAnimated.mcLoading.txtPercentLoaded2 = ("The game is loading (" + loadedPercent) + "%)";
_root.gotoAndStop(2);
gotoAndPlay(_currentframe - 1);
} else {
mcLoadingAnimated.play();
stop();
}
Symbol 367 Button
on (release) {
_root.gotoAndStop("game");
this.createEmptyMovieClip("mcMiniclipTracker3", this.getNextHighestDepth());
this.mcMiniclipTracker3.createEmptyMovieClip("m", this.getNextHighestDepth());
this.mcMiniclipTracker3.m.loadMovie("http://ads.miniclip.com/RealMedia/ads/adstream_sx.ads/miniclip.com/leancusine_plays/142444@x01?cacheBuster=" + (getTimer() + random(100000000)), 1);
this.mcMiniclipTracker3.onEnterFrame = function () {
if ((this.m.getBytesTotal() == this.m.getBytesTotal()) && (this.m.getBytesTotal() != 0)) {
trace("[Miniclip tracker activated] Game play");
this.removeMovieClip();
}
};
}
Symbol 372 Button
on (release) {
_root.gotoAndStop("ins1");
}
Symbol 377 Button
on (release) {
_root.gotoAndStop("his");
}
Symbol 388 MovieClip Frame 1
stop();
Symbol 395 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 398 MovieClip Frame 1
this._visible = false;
Symbol 407 Button
on (release) {
gameURL = ("http://www.miniclip.com/games/" + gamename) + "/en/";
trace("Going to game: " + gameURL);
getURL ("http://www.miniclip.com", "_blank");
}
Symbol 409 MovieClip Frame 1
System.security.allowDomain("www.miniclip.com");
Instance of Symbol 398 MovieClip "mcHighscores" in Symbol 409 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 409 MovieClip Frame 2
if (scoreLocation == undefined) {
trace(("*** Miniclip Highscore Component: scoreLocation (" + scoreLocation) + ") is undefined.");
}
if ((((_url.indexOf("miniclip.com") == -1) && (_url.indexOf("miniclip.net") == -1)) && (_url.indexOf("miniclip.co.uk") == -1)) && (_url.indexOf("miniclips.com"))) {
gotoAndStop(_currentframe + 1);
} else {
var noCache = (getTimer() + random(100000));
mcTarget.loadMovie("http://www.miniclip.com/swfcontent/highscore.swf?noCache=" + noCache);
stop();
}
Symbol 409 MovieClip Frame 3
stop();
Symbol 412 Button
on (release) {
_root.gotoAndStop("ins2");
}
Symbol 417 Button
on (release) {
_root.gotoAndStop("ins1");
}
Symbol 418 Button
on (release) {
_root.gotoAndStop("start");
}
Symbol 425 Button
on (release) {
trace("totalScore = " + _root.totalgp);
_root.totalgp = Math.ceil(_root.totalgp);
_root.gotoAndStop("subm");
}