Frame 1
fscommand ("trapallkeys", "true");
fscommand ("allowscale", "false");
fscommand ("showmenu", "false");
Frame 2
function rembayi() {
_root.bgm.stop();
_root.bayi.gotoAndStop("tidur");
_root.babi.babibu.removeMovieClip();
_root.bayi.bendas.removeMovieClip();
_root.bayi.zeni.stop();
_root.badot.babibu.removeMovieClip();
_root.efek6.attachSound("win");
_root.efek6.setVolume(100);
_root.efek6.start();
_root.deff();
}
function deff() {
_root.efek.setVolume(0);
i = 1;
while (i <= 5) {
_root["efek" + i].setVolume(0);
i++;
}
}
function deff2() {
i = 1;
while (i <= 6) {
_root["efek" + i].setVolume(100);
i++;
}
}
_root.efek = new Sound();
_root.efek2 = new Sound();
_root.efek3 = new Sound();
_root.efek4 = new Sound();
_root.efek5 = new Sound();
_root.efek6 = new Sound();
i = 1;
while (i <= 5) {
_root["efek" + i].stop();
i++;
}
_root.bosi = 0;
_root.gameonz = 0;
_root.pauss = 0;
_root.bgm = new Sound();
_root.bgm.setVolume(100);
_root.bgm.onSoundComplete = function () {
tul = random(3) + 1;
_root.bgm.attachSound("mus" + tul);
_root.bgm.start();
};
_root.efek5.onSoundComplete = function () {
if (_root.pauss != 1) {
if (((_root.bayian == 1) or (_root.bayigangu1 == 1)) or (_root.bayigangu2 == 1)) {
tul = random(2) + 1;
_root.efek5.attachSound("babi" + tul);
_root.efek5.setVolume(100);
_root.efek5.start();
} else {
_root.isFxNangis = false;
}
} else {
tul = random(2) + 1;
_root.efek5.attachSound("babi" + tul);
trace("A");
_root.efek5.setVolume(0);
_root.efek5.start();
}
};
_root.bgm.stop();
_root.bgm.attachSound("mus1");
_root.bgm.start();
if (_root.manuals != 1) {
var keyListener = new Object();
keyListener.onKeyDown = function () {
if (_root.gameonz == 1) {
if ((Key.getCode() == 32) && (_root.isTut == false)) {
if ((_root.pauss != 1) and (_root.bosi != 1)) {
_root.deff();
_root.pauss = 1;
_root.efek.setVolume(0);
_root.efek2.setVolume(0);
_root.efek3.setVolume(0);
_root.efek4.setVolume(0);
_root.efek5.setVolume(0);
_root.bgm.setVolume(0);
_root.orang.ori.stop();
_root.bayi.ded.stop();
_root.babi.babibu.bao.stop();
_root.badot.babibu.bao.stop();
_root.bayi.zeni.stop();
_root.panto.pariz.stop();
if (_root.kotak._currentframe != 1) {
_root.kotak.stop();
}
if (_root.kursi.org._currentframe != 1) {
_root.kursi.org.stop();
}
if (_root.cuci.bar._currentframe != 1) {
_root.cuci.bar.stop();
_root.cuci.kuli.stop();
}
if (_root.telo._currentframe != 1) {
_root.telo.stop();
}
if (_root.panto._currentframe != 1) {
_root.panto.stop();
}
if (_root.panto.bar._currentframe != 1) {
_root.panto.bar.stop();
}
if (_root.telo.bar._currentframe != 1) {
_root.telo.bar.stop();
}
if (_root.popok.bar._currentframe != 1) {
_root.popok.bar.stop();
}
if (_root.masak._currentframe != 1) {
_root.masak.stop();
}
_root.blak._visible = 1;
_root.blak.gotoAndStop(1);
} else {
_root.paus.nopause();
}
}
}
};
Key.addListener(keyListener);
_root.manuals = 1;
}
_root.gameonz = 0;
_root.faxi = 0;
function getNextTut() {
clearInterval(_root.idT);
if (tutIndex == 1) {
setEnable4Tut("bayi");
} else if (tutIndex == 3) {
setEnable4Tut("popok");
} else if (tutIndex == 4) {
setEnable4Tut("kulkas");
} else if (tutIndex == 5) {
setEnable4Tut("masak");
} else if (tutIndex == 6) {
setEnable4Tut("makan");
} else if (tutIndex == 7) {
setEnable4Tut("kursi");
}
depdep = _root.getNextHighestDepth() + 1;
attachMovie("gtut", "gtut", depdep);
gtut._x = 0;
gtut._y = 0;
gtut.gotoAndStop(_root.tutIndex + 1);
_root.deff();
_root.pauss = 1;
_root.efek.setVolume(0);
_root.efek2.setVolume(0);
_root.efek3.setVolume(0);
_root.efek4.setVolume(0);
_root.efek5.setVolume(0);
_root.bgm.setVolume(0);
_root.orang.ori.stop();
_root.bayi.ded.stop();
_root.babi.babibu.bao.stop();
_root.badot.babibu.bao.stop();
_root.bayi.zeni.stop();
_root.panto.pariz.stop();
if (_root.kotak._currentframe != 1) {
_root.kotak.stop();
}
if (_root.kursi.org._currentframe != 1) {
_root.kursi.org.stop();
}
if (_root.cuci.bar._currentframe != 1) {
_root.cuci.bar.stop();
_root.cuci.kuli.stop();
}
if (_root.telo._currentframe != 1) {
_root.telo.stop();
}
if (_root.panto._currentframe != 1) {
_root.panto.stop();
}
if (_root.panto.bar._currentframe != 1) {
_root.panto.bar.stop();
}
if (_root.telo.bar._currentframe != 1) {
_root.telo.bar.stop();
}
if (_root.popok.bar._currentframe != 1) {
_root.popok.bar.stop();
}
if (_root.masak._currentframe != 1) {
_root.masak.stop();
}
gtut.onMouseDown = function () {
if (_root.tutIndex == 1) {
_root.bayi.badi.t = _root.wktbayi;
clearInterval(_root.idT);
_root.idT = setInterval(_root.getNextTut, 2000);
_root.paus.nopause();
removeMovieClip(this);
}
if (_root.tutIndex >= _root.maxTut) {
_root.setEnableAll(true);
_root.paus.nopause();
removeMovieClip(this);
_root.endgame();
}
};
tutIndex++;
}
function setEnableAll(tf) {
_root.pintu.hitbox.enabled = tf;
_root.kursi.hitbox.enabled = tf;
_root.bayi.badi.enabled = tf;
_root.kotak.hitbox.enabled = tf;
_root.masak.hitbox.enabled = tf;
_root.kulkas.hitbox.enabled = tf;
_root.kotor.hitbox.enabled = tf;
_root.cuci.hitbox.enabled = tf;
_root.telp.hitbox.enabled = tf;
_root.popok.hitbox.enabled = tf;
_root.toy.hitbox.enabled = tf;
_root.makan.hitbox.enabled = tf;
}
function setEnable4Tut(nn) {
_root.setEnableAll(false);
if (nn != "bayi") {
_root[nn].hitbox.enabled = true;
} else {
_root[nn].badi.enabled = true;
}
}
function generategame() {
if (_root.stages == 1) {
_root.isTut = true;
_root.setEnableAll(false);
_root.getNextTut();
_root.btnskip._visible = true;
} else {
_root.isTut = false;
_root.setEnableAll(true);
_root.btnskip._visible = false;
}
_root.isTimeOut = false;
_root.bgm.stop();
_root.bgm.attachSound("mus1");
_root.bgm.setVolume(100);
_root.bgm.start();
_root.bosi = 0;
_root.badot.babibu.removeMovieClip();
_root.bayi.popz.gotoAndStop(1);
_root.bayi.bendas.removeMovieClip();
_root.babi.babibu.removeMovieClip();
_root.pauss = 0;
_root.stunner = 0;
_root.bayigangu1 = 0;
_root.bayigangu2 = 0;
_root.wktbayi = random(50) + (100 - (_root.stages * 5));
_root.wkttelp = random(110) + (150 - (_root.stages * 5));
_root.wktpintu = random(170) + (200 - (_root.stages * 5));
_root.telpan = 0;
_root.pintuan = 0;
_root.readychange = 0;
_root.pintux = 0;
_root.telep = 0;
_root.bayinangis = 0;
_root.skor = 0;
_root.tog = 0;
_root.kitz = 0;
_root.bayian = 0;
_root.gerakan = 0;
_root.nowing = 12;
_root.nows = 12;
_root.bot = 0;
_root.job = 0;
_root.urut = [0, 0, 0, 0];
_root.point = 0;
_root.pencet = 0;
_root.gerak = 1;
_root.toyz = 0;
_root.mainanbawa = 0;
_root.point2 = 1;
_root.kit = 0;
_root.jumlahkue = 0;
_root.cook = 0;
_root.doing = 0;
_root.eat = 0;
_root.paz = 0;
_root.istirahat = 0;
_root.milih = 0;
_root.isienergi = 0;
_root.adasusu = 0;
_root.adamakan = 0;
_root.panas = 0;
_root.jpanas = 0;
_root.jmakan = 0;
_root.angkat = 0;
_root.milk = 0;
_root.menud = 0;
_root.popo = 0;
_root.jmlpopo = 3;
_root.popobawa = 0;
_root.jmltai = 0;
_root.ambilpopo = 0;
_root.kotorbawa = 0;
_root.cucian = 0;
_root.nyuci = 0;
_root.bisataro = 0;
_root.oo = 0;
}
function bersih() {
_root.nyuci = 0;
_root.jmlpopo = _root.jmlpopo + _root.jmltai;
_root.popok.gotoAndStop("p" + _root.jmlpopo);
_root.jmltai = 0;
}
function handfull() {
_root.menud = 1;
}
function nohand() {
_root.menud = 0;
}
function jadipanas() {
_root.angkat = 1;
}
function ambilmakan() {
_root.kulkas.gotoAndStop(1);
_root.kulkas.menuk.removeMovieClip();
_root.orang.gotoAndStop("masak");
_root.adamakan = 1;
}
function jadimakanan() {
_root.jumlahkue = 1;
_root.makan.gotoAndStop("m" + _root.jumlahkue);
_root.doing = 0;
_root.gerak = 1;
_root.adamakan = 0;
_root.cook = 0;
_root.cekurut();
if ((_root.stages == 1) && (_root.tutIndex == 6)) {
_root.getNextTut();
}
}
function ambilsusu() {
_root.kulkas.gotoAndStop(1);
_root.kulkas.menuk.removeMovieClip();
_root.orang.gotoAndStop("susu");
_root.adasusu = 1;
}
function updates() {
if (_root.fat.hp >= 50) {
_root.fat.hp = 50;
}
if (_root.hun.hp >= 50) {
_root.hun.hp = 50;
}
_root.fat.gotoAndStop(51 - _root.fat.hp);
_root.hun.gotoAndStop(51 - _root.hun.hp);
_root.gau.gotoAndStop(51 - _root.gau.hp);
}
function cekurut() {
_root.pencet = 0;
if (_root.urut[_root.point2] != 0) {
n = _root.urut[_root.point2];
_root.nows = _root.nowing;
_root.nowing = n;
_root.gerakan = n;
_root.gerak = 1;
_root.urut[_root.point2] = 0;
_root.point2++;
_root.kit--;
_root.tog = 0;
if (_root.point2 > 3) {
_root.point2 = 1;
}
trace("PPP" + _root.urut);
} else {
_root.gerak = 1;
}
}
function coker(n) {
ok = 1;
i = 1;
while (i <= 3) {
if (_root.urut[i] != 0) {
ok = 0;
}
i++;
}
if (((_root.pencet != 1) and (ok == 1)) and (_root.kitz == 0)) {
_root.kitz++;
_root.pencet = 1;
_root.nows = _root.nowing;
_root.nowing = n;
_root.gerakan = n;
_root.gerak = 1;
} else if (_root.kit < 3) {
_root.kitz++;
_root.kit++;
_root.point++;
if (_root.point > 3) {
_root.point = 1;
}
if ((_root.point >= 1) and (_root.point < 4)) {
_root.urut[_root.point] = n;
trace(_root.urut);
}
}
if (n == 6) {
} else {
_root.kulkas.menuk.removeMovieClip();
}
}
stop();
var isTut = false;
var tutIndex = 0;
var maxTut = 9;
var idT = 0;
_root.stages = 2;
_root.tutIndex = 55;
_root.timex = [0, 999, 120, 130, 140, 160, 180];
function cekUdahSemua() {
if (_root.isTimeOut == true) {
if (_root.bayian != 1) {
_root.endgame();
}
}
}
function udahantelp() {
_root.doing = 0;
_root.telo.gotoAndStop(1);
_root.bayigangu1 = 0;
_root.telpan = 0;
_root.orang.gotoAndStop("back");
}
function udahanpintu() {
_root.doing = 0;
_root.panto.gotoAndPlay("en");
_root.bayigangu2 = 0;
_root.pintuan = 0;
_root.orang.gotoAndStop("back");
}
function endgame() {
_root.pauss = 1;
_root.blak._visible = 1;
if (_root.stages >= 6) {
_root.blak.gotoAndStop(4);
} else {
_root.blak.gotoAndStop(3);
}
}
function deadly() {
_root.pauss = 1;
_root.blak._visible = 1;
_root.blak.gotoAndStop(2);
}
function udahanbayi() {
_root.doing = 0;
_root.badot.babibu.removeMovieClip();
_root.bayi.badi.enabled = 1;
_root.jmlpopo--;
_root.popok.gotoAndStop("p" + _root.jmlpopo);
_root.popobawa = 0;
_root.bayi.gotoAndStop("tidur");
_root.bayi.popz.gotoAndStop(1);
_root.jmltai++;
_root.kotor.gotoAndStop("k" + _root.jmltai);
_root.bayian = 0;
_root.skor = _root.skor + 50;
_root.gau.hp = _root.gau.hp + 5;
_root.nohand();
_root.orang.ben.removeMovieClip();
_root.bayi.bendas.removeMovieClip();
if ((_root.stages == 1) && (_root.tutIndex == 4)) {
_root.getNextTut();
}
}
function pilix() {
if (_root.adamakan == 1) {
_root.orang.gotoAndStop("masak");
_root.cekurut();
} else if (_root.adasusu == 1) {
_root.orang.gotoAndStop("susu");
_root.cekurut();
} else if (_root.milk == 1) {
_root.orang.gotoAndStop("susu");
_root.cekurut();
} else if (_root.mainanbawa == 1) {
_root.orang.gotoAndStop("maun");
_root.cekurut();
} else if (_root.kotorbawa == 1) {
_root.orang.gotoAndStop("taiz");
_root.cekurut();
} else {
_root.orang.gotoAndStop(1);
_root.cekurut();
}
}
function pilix2() {
if (_root.adamakan == 1) {
_root.orang.gotoAndStop("masak");
_root.cekurut();
} else if (_root.adasusu == 1) {
_root.orang.gotoAndStop("susu");
_root.cekurut();
} else if (_root.milk == 1) {
_root.orang.gotoAndStop("susu");
_root.cekurut();
} else if (_root.mainanbawa == 1) {
_root.orang.gotoAndStop("maun");
_root.cekurut();
} else if (_root.kotorbawa == 1) {
_root.orang.gotoAndStop("taiz");
_root.cekurut();
} else {
_root.orang.gotoAndStop("back");
_root.cekurut();
}
}
function dudul() {
_root.kursi.cents.removeMovieClip();
if (((_root.menud == 1) or (_root.bayigangu1 == 1)) or (_root.bayigangu2 == 1)) {
_root.pilix();
_root.nows = 2;
} else {
_root.efek3.attachSound("sitz");
_root.efek3.start();
_root.orang.gotoAndStop("sit");
_root.orang._visible = 0;
_root.kursi.org._visible = 1;
_root.kursi.org.gotoAndPlay(2);
_root.gerak = 0;
_root.nows = 2;
}
if (_root.istirahat == 1) {
_root.isienergi = 1;
}
}
function menut() {
_root.orang.gotoAndStop("stuf");
if (_root.adasusu == 1) {
_root.orang.milki.gotoAndStop(2);
} else {
_root.orang.milki.gotoAndStop(1);
if (_root.milk == 1) {
_root.orang.milki.gotoAndStop(2);
} else {
_root.orang.milki.gotoAndStop(1);
}
}
if (_root.adamakan == 1) {
_root.orang.mknn.gotoAndStop(2);
} else {
_root.orang.mknn.gotoAndStop(1);
}
if (_root.mainanbawa == 1) {
_root.orang.mai.gotoAndStop(2);
} else {
_root.orang.mai.gotoAndStop(1);
}
if (_root.kotorbawa == 1) {
_root.orang.tait.gotoAndStop(2);
} else {
_root.orang.tait.gotoAndStop(1);
}
}
function menut2() {
_root.orang.gotoAndStop("stuf2");
if (_root.adasusu == 1) {
_root.orang.milki.gotoAndStop(2);
} else {
_root.orang.milki.gotoAndStop(1);
if (_root.milk == 1) {
_root.orang.milki.gotoAndStop(2);
} else {
_root.orang.milki.gotoAndStop(1);
}
}
if (_root.adamakan == 1) {
_root.orang.mknn.gotoAndStop(2);
} else {
_root.orang.mknn.gotoAndStop(1);
}
if (_root.mainanbawa == 1) {
_root.orang.mai.gotoAndStop(2);
} else {
_root.orang.mai.gotoAndStop(1);
}
if (_root.kotorbawa == 1) {
_root.orang.tait.gotoAndStop(2);
} else {
_root.orang.tait.gotoAndStop(1);
}
}
function menut3() {
_root.orang.gotoAndStop("stuf3");
}
function menut4() {
_root.orang.gotoAndStop("back2");
}
function downny(b) {
b.cents.removeMovieClip();
if (b == _root.popok) {
_root.nows = 10;
_root.orang.gotoAndStop(1);
if (((_root.readychange == 1) and (_root.menud != 1)) and (_root.jmlpopo != 0)) {
_root.orang.gotoAndStop("popot");
_root.doing = 1;
_root.readychange = 0;
_root.popok.bar.gotoAndPlay(2);
} else {
_root.pilix();
_root.cekurut();
}
}
if (b == _root.toy) {
_root.nows = 1;
if ((_root.toyz == 1) and (_root.menud != 1)) {
_root.handfull();
_root.toy.gotoAndStop(2);
_root.mainanbawa = 1;
_root.efek3.attachSound("toy");
_root.efek3.setVolume(100);
_root.efek3.start();
_root.orang.gotoAndStop("maun");
_root.toyz = 0;
} else if (((_root.toyz == 1) and (_root.mainanbawa == 1)) and (_root.menud == 1)) {
_root.orang.ben.removeMovieClip();
_root.toy.gotoAndStop(1);
_root.orang.gotoAndStop(1);
_root.mainanbawa = 0;
_root.nohand();
_root.toyz = 0;
} else {
_root.pilix();
_root.cekurut();
}
}
if (b == _root.makan) {
_root.nows = 3;
if ((_root.eat == 1) and (_root.jumlahkue != 0)) {
_root.orang.gotoAndStop("eot");
_root.jumlahkue--;
_root.makan.gotoAndStop("m" + _root.jumlahkue);
_root.hun.hp = _root.hun.hp + 25;
_root.fat.hp = _root.fat.hp + 10;
_root.updates();
_root.gerak = 1;
_root.eat = 0;
_root.doing = 0;
if ((_root.stages == 1) && (_root.tutIndex == 7)) {
_root.getNextTut();
}
} else {
_root.pilix();
_root.cekurut();
}
}
}
Frame 11
function playFinis() {
_root.stopAllSounds();
var _local2 = new Sound();
_local2.attachSound("pinish");
_local2.start(0, 1);
_local2.setVolume(100);
}
_root.gameonz = 1;
_root.blak._visible = 0;
_root.isFxNangis = false;
_root.generategame();
stop();
Instance of Symbol 151 MovieClip "adar" in Frame 11
onClipEvent (load) {
normali = function () {
_root.istirahat = 0;
_root.isienergi = 0;
_root.oo = 0;
_root.kursi.org._visible = 0;
_root.orang._visible = 1;
};
}
onClipEvent (enterFrame) {
if (_root.pauss != 1) {
cekup5 = function (b) {
normali();
b.cents.removeMovieClip();
if (a.tar.hitTest(_root.telp.tar)) {
if (a.tar.hitTest(_root.telp.hh)) {
b.cents.removeMovieClip();
_root.nows = 11;
if (_root.telep == 1) {
_root.telep = 0;
if (_root.menud == 1) {
_root.menut4();
} else {
_root.orang._xscale = 100;
if (_root.telpan == 1) {
_root.doing = 1;
_root.orang.gotoAndStop("poni");
_root.telo.gotoAndPlay("bicara");
} else {
_root.orang.gotoAndStop("back");
}
}
} else {
_root.cekurut();
}
}
} else if (a._y > meter) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
} else if (a._x < b._x) {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
}
};
cekup6 = function (b) {
normali();
if (a.tar.hitTest(_root.pintu.tar)) {
if (a.tar.hitTest(_root.pintu.hh)) {
b.cents.removeMovieClip();
_root.nows = 12;
if (_root.pintux == 1) {
_root.pintux = 0;
if (_root.menud == 1) {
_root.menut4();
} else {
_root.orang._xscale = 100;
if (_root.pintuan == 1) {
_root.doing = 1;
_root.orang.gotoAndStop("chat");
_root.panto.gotoAndPlay("bicara");
} else {
_root.orang.gotoAndStop("back");
}
}
} else {
_root.cekurut();
}
}
} else if (a._y > meter) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
} else if (a._x > b._x) {
a._x = a._x - speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = 100;
}
};
cekup3 = function (b) {
_root.kursi.org._visible = 0;
_root.orang._visible = 1;
_root.istirahat = 0;
_root.isienergi = 0;
if (((_root.nows == 1) or (_root.nows == 3)) or (_root.nows == 10)) {
if (a.tar.hitTest(_root.tar) and (_root.oo != 1)) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
if (a.tar.hitTest(_root.hh)) {
_root.orang.gotoAndStop("babit");
b.cents.removeMovieClip();
_root.gerak = 0;
_root.nows = 9;
_root.oo = 1;
_root.cekurut();
}
} else if (a.tar.hitTest(_root.hh)) {
_root.orang.gotoAndStop("babit");
_root.gerak = 0;
_root.nows = 9;
b.cents.removeMovieClip();
_root.oo = 1;
_root.cekurut();
} else if (a._y > (metery2 - 20)) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
} else if (a._x < _root.hh._x) {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
}
} else if (_root.nows == 11) {
if (a._x > 627.3) {
a._x = a._x - speed;
_root.orang._xscale = 100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
} else if (a.tar.hitTest(_root.hh)) {
b.cents.removeMovieClip();
_root.orang.gotoAndStop("babit");
_root.orang._xscale = -100;
_root.gerak = 0;
_root.nows = 2;
if (_root.istirahat == 1) {
_root.isienergi = 1;
}
_root.cekurut();
} else {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
}
} else if (_root.nows == 12) {
if (a.tar.hitTest(_root.hh)) {
_root.orang.gotoAndStop("babit");
_root.gerak = 0;
_root.nows = 9;
b.cents.removeMovieClip();
_root.oo = 1;
_root.cekurut();
if ((_root.stages == 1) && (_root.tutIndex == 2)) {
_root.getNextTut();
}
} else if (a._x < (_root.hh._x - 10)) {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
} else if (a._y < metery2) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
}
} else if (_root.nows == 2) {
if (a._y > metery2) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
if (a.tar.hitTest(_root.hh)) {
_root.orang.gotoAndStop("babit");
_root.gerak = 0;
_root.nows = 9;
b.cents.removeMovieClip();
_root.oo = 1;
_root.cekurut();
}
} else if (a.tar.hitTest(_root.hh)) {
_root.orang.gotoAndStop("babit");
_root.gerak = 0;
_root.nows = 9;
b.cents.removeMovieClip();
_root.oo = 1;
_root.cekurut();
} else if (a._x < _root.hh._x) {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
}
} else if (a.tar.hitTest(_root.tar) and (_root.oo != 1)) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
if (a.tar.hitTest(_root.hh)) {
b.cents.removeMovieClip();
_root.orang.gotoAndStop("babit");
_root.gerak = 0;
_root.nows = 9;
_root.oo = 1;
_root.cekurut();
}
} else if (a.tar.hitTest(_root.hh)) {
_root.orang.gotoAndStop("babit");
_root.gerak = 0;
_root.nows = 9;
_root.oo = 1;
b.cents.removeMovieClip();
_root.cekurut();
} else if (a._y < metery2) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
} else if (a._x < _root.hh._x) {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
}
};
cekup2 = function (b) {
_root.oo = 0;
_root.istirahat = 1;
if (_root.nows == 2) {
if (a.tar.hitTest(b.hh)) {
_root.oo = 1;
_root.cekurut();
} else {
a._x = a._x - speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = 100;
}
} else if (_root.nows == 9) {
if (a.tar.hitTest(b.tar) and (_root.oo != 1)) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
if (a.tar.hitTest(b.hh)) {
_root.dudul();
_root.cekurut();
}
} else if (a.tar.hitTest(b.hh(_x, _y - 10))) {
_root.dudul();
_root.cekurut();
} else if (a._x > b._x) {
a._x = a._x - speed;
_root.orang._xscale = 100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
}
} else if (_root.nows == 12) {
if (a._x < 127.3) {
a._x = a._x + speed;
_root.orang._xscale = -100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
} else if (a.tar.hitTest(b.hh)) {
_root.dudul();
_root.cekurut();
} else {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
}
} else if (((_root.nows == 1) or (_root.nows == 3)) or (_root.nows == 10)) {
if (a.tar.hitTest(b.hh)) {
_root.dudul();
_root.cekurut();
} else if (a._x > b._x) {
a._x = a._x - speed;
_root.orang._xscale = 100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
}
} else if (a.tar.hitTest(b.tar) and (_root.oo != 1)) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
if (a.tar.hitTest(b.hh)) {
_root.dudul();
_root.cekurut();
}
} else if (a.tar.hitTest(b.hh)) {
_root.dudul();
_root.cekurut();
} else if (a._y > meter) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
} else if (a._x > b._x) {
a._x = a._x - speed;
_root.orang._xscale = 100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
}
};
cekup4 = function (b) {
normali();
if (_root.nows != 11) {
if (a._x < b._x) {
a._x = a._x + speed;
_root.orang._xscale = -100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
} else if (a._y < metery) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
} else if (a.tar.hitTest(b.tar)) {
_root.downny(b);
} else {
a._x = a._x - speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = 100;
}
} else if (a._x > b._x) {
a._x = a._x - speed;
_root.orang._xscale = 100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
} else if (a._y < metery) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
} else if (a.tar.hitTest(b.tar)) {
_root.downny(b);
} else {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
}
};
cekup7 = function (b) {
normali();
if (_root.nows != 11) {
if (a._x < (b._x - 50)) {
a._x = a._x + speed;
_root.orang._xscale = -100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
} else if (a._y < metery) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
} else if (a.tar.hitTest(b.tar)) {
_root.downny(b);
} else {
a._x = a._x - speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = 100;
}
} else if (a._x > (b._x - 50)) {
a._x = a._x - speed;
_root.orang._xscale = 100;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
} else if (a._y < metery) {
a._y = a._y + speed;
if (_root.menud == 1) {
_root.menut2();
} else {
_root.orang.gotoAndStop("down");
}
} else if (a.tar.hitTest(b.tar)) {
_root.downny(b);
} else {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
}
};
cekup = function (b) {
normali();
if (a._x < b._x) {
a._x = a._x + speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = -100;
} else if (a._y > meter) {
a._y = a._y - speed;
if (_root.menud == 1) {
_root.menut3();
} else {
_root.orang.gotoAndStop("up");
}
} else if (a.tar.hitTest(b.tar)) {
b.cents.removeMovieClip();
if (b == _root.cuci) {
if ((((_root.kotorbawa == 1) and (_root.menud == 1)) and (_root.cucian == 1)) and (_root.nyuci != 1)) {
_root.orang.ben.removeMovieClip();
_root.nohand();
_root.cucian = 0;
_root.kotorbawa = 0;
_root.nyuci = 1;
_root.efek3.attachSound("dry");
_root.efek3.setVolume(100);
_root.efek3.start();
_root.cuci.bar.gotoAndPlay(2);
}
}
if (b == _root.kotor) {
if (((_root.ambilpopo == 1) and (_root.menud != 1)) and (_root.jmltai > 0)) {
_root.handfull();
_root.orang.gotoAndStop("taiz");
_root.kotor.gotoAndStop("k0");
_root.kotorbawa = 1;
_root.ambilpopo = 0;
}
}
if ((b == _root.masak) and (_root.adamakan == 1)) {
if ((_root.masak._currentframe != 15) and (_root.cook == 1)) {
_root.orang.gotoAndStop("cok");
_root.efek3.attachSound("cook");
_root.efek3.setVolume(100);
_root.efek3.start();
_root.nohand();
_root.masak.nextFrame();
} else {
trace(_root.masak._currentframe);
_root.orang.gotoAndStop(1);
}
} else {
_root.pilix2();
}
if (b == _root.kotak) {
if ((_root.panas == 1) and (_root.adasusu == 1)) {
_root.nohand();
_root.efek3.attachSound("sus");
_root.efek3.setVolume(100);
_root.efek3.start();
_root.kotak.gotoAndPlay(2);
_root.panas = 0;
_root.jpanas = 1;
_root.adasusu = 0;
} else if (((_root.angkat == 1) and (_root.panas == 1)) and (_root.menud != 1)) {
_root.orang.gotoAndStop("susu");
_root.kotak.gotoAndStop(1);
_root.angkat = 0;
_root.menud = 1;
_root.milk = 1;
_root.panas = 0;
_root.bisataro = 1;
_root.handfull();
_root.pilix();
} else if ((((((_root.bisataro == 1) and (_root.panas == 1)) and (_root.menud == 1)) and (_root.adamakan != 1)) and (_root.mainanbawa != 1)) and (_root.kotorbawa != 1)) {
_root.angkat = 1;
_root.kotak.gotoAndStop("pns");
_root.nohand();
_root.milk = 0;
_root.bisataro = 0;
_root.panas = 0;
} else {
_root.panas = 0;
}
}
if (b == _root.kulkas) {
if (_root.milih == 1) {
_root.orang.gotoAndStop("refi");
_root.orang._xscale = 100;
_root.kulkas.gotoAndPlay(2);
_root.milih = 0;
}
}
} else {
a._x = a._x - speed;
if (_root.menud == 1) {
_root.menut();
} else {
_root.orang.gotoAndStop("left");
}
_root.orang._xscale = 100;
}
};
a = _root.orang;
speed = 20;
meter = 135;
meter2 = 450;
meterx = 166;
metery = 380;
metery2 = 350;
if ((_root.gerak == 1) and (_root.doing != 1)) {
if (_root.gerakan == 6) {
} else {
_root.kulkas.gotoAndStop(1);
_root.kulkas.menuk.removeMovieClip();
}
switch (_root.gerakan) {
case 1 :
b = _root.toy;
cekup4(b);
break;
case 2 :
b = _root.kursi;
cekup2(b);
break;
case 3 :
b = _root.makan;
cekup4(b);
break;
case 4 :
b = _root.kotak;
cekup(b);
break;
case 5 :
b = _root.masak;
cekup(b);
break;
case 6 :
b = _root.kulkas;
cekup(b);
break;
case 7 :
b = _root.kotor;
cekup(b);
break;
case 8 :
b = _root.cuci;
cekup(b);
break;
case 9 :
b = _root.bayi;
cekup3(b);
break;
case 10 :
b = _root.popok;
cekup7(b);
break;
case 11 :
b = _root.telp;
cekup5(b);
break;
case 12 :
b = _root.pintu;
cekup6(b);
}
}
}
}
Instance of Symbol 170 MovieClip "ft" in Frame 11
onClipEvent (enterFrame) {
if (_root.pauss != 1) {
if ((_root.istirahat != 1) or (_root.isienergi != 1)) {
f++;
}
h++;
if (((_root.bayian == 1) or (_root.bayigangu1 == 1)) or (_root.bayigangu2 == 1)) {
if (_root.bayi.ded._visible == 0) {
} else {
_root.bayi.gotoAndStop("nangis");
}
g++;
if (g == 24) {
_root.gau.hp = _root.gau.hp - 1;
g = 0;
if (_root.gau.hp <= 0) {
_root.deadly();
}
}
} else if (_root.bayi.ded._visible == 0) {
} else {
_root.bayi.gotoAndStop("tidur");
}
if (f == 24) {
_root.fat.hp = _root.fat.hp - 1;
f = 0;
if (_root.fat.hp <= 0) {
_root.deadly();
}
}
if ((h == 24) and (_root.stunner != 1)) {
_root.hun.hp = _root.hun.hp - 1;
h = 0;
if (_root.hun.hp <= 0) {
_root.orang.gotoAndStop("stun");
_root.stunner = 1;
_root.doing = 1;
}
}
if (_root.stunner == 1) {
s++;
if (s >= 60) {
s = 0;
h = 0;
_root.stunner = 0;
_root.orang.gotoAndStop(1);
_root.doing = 0;
_root.hun.hp = 12;
}
}
_root.updates();
if (_root.stages >= 4) {
if ((_root.telpan != 1) && (_root.isTimeOut == false)) {
t++;
}
if ((t >= _root.wkttelp) and (_root.telpan != 1)) {
_root.telo.gotoAndPlay(2);
_root.bayigangu1 = 1;
_root.wkttelp = random(110) + (150 - (_root.stages * 5));
_root.telpan = 1;
t = 0;
}
}
if (_root.stages >= 5) {
if ((_root.pintuan != 1) && (_root.isTimeOut == false)) {
p++;
}
if ((p >= _root.wktpintu) and (_root.pintuan != 1)) {
_root.panto.gotoAndPlay(2);
_root.bayigangu2 = 1;
_root.wktpintu = random(170) + (200 - (_root.stages * 5));
_root.pintuan = 1;
p = 0;
}
}
}
}
onClipEvent (load) {
s = 0;
f = 0;
h = 0;
g = 0;
t = 0;
p = 0;
_root.fat.hp = 50;
_root.hun.hp = 50;
_root.gau.hp = 50;
}
Instance of Symbol 179 MovieClip "panak" in Frame 11
onClipEvent (load) {
this._rotation = 1;
ratio = 140 / _root.timex[_root.stages];
trace(ratio);
t = 0;
}
onClipEvent (enterFrame) {
if (_root.pauss != 1) {
t++;
if (t >= 12) {
this._rotation = this._rotation + ratio;
t = 0;
}
if (this._rotation >= 140) {
this._rotation = 140;
_root.isTimeOut = true;
if (_root.bayian != 1) {
_root.endgame();
}
}
}
}
Instance of Symbol 333 MovieClip "orang" in Frame 11
onClipEvent (enterFrame) {
}
Instance of Symbol 356 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.pauss != 1) {
if ((_root.isienergi == 1) and (((_root.bayigangu1 != 1) and (_root.bayigangu2 != 1)) and (_root.bayinangis != 1))) {
_root.faxi++;
if (_root.faxi >= 6) {
_root.faxi = 0;
_root.fat.hp = _root.fat.hp + 3;
_root.updates();
if ((_root.stages == 1) && (_root.tutIndex == 8)) {
_root.getNextTut();
}
}
}
}
if ((((_root.bayigangu1 == 1) or (_root.bayigangu2 == 1)) or (_root.bayinangis == 1)) and (_root.orang._currentframe == 7)) {
_root.orang.gotoAndStop(1);
_root.adar.normali();
}
}
Instance of Symbol 357 MovieClip "paus" in Frame 11
onClipEvent (enterFrame) {
}
onClipEvent (load) {
nopause = function () {
_root.efek.setVolume(0);
_root.efek2.setVolume(100);
_root.efek3.setVolume(100);
_root.efek4.setVolume(100);
_root.efek5.setVolume(100);
_root.efek5.setVolume(0);
_root.bgm.setVolume(100);
_root.bayi.ded.play();
_root.bayi.zeni.play();
_root.babi.babibu.bao.play();
_root.badot.babibu.bao.play();
_root.orang.ori.play();
_root.panto.pariz.play();
if (_root.kotak._currentframe != 1) {
if (_root.kotak._currentframe != 15) {
_root.kotak.play();
}
}
if (_root.masak._currentframe != 1) {
_root.masak.play();
}
if (_root.cuci.bar._currentframe != 1) {
_root.cuci.bar.play();
_root.cuci.kuli.play();
}
if ((_root.panto._currentframe == 21) and (_root.panto.bar._currentframe != 1)) {
_root.panto.bar.play();
} else if (_root.panto._currentframe != 1) {
_root.panto.play();
}
if (_root.popok.bar._currentframe != 1) {
_root.popok.bar.play();
}
if (((_root.telo._currentframe == 29) or (_root.telo._currentframe == 30)) and (_root.telo.bar._currentframe != 1)) {
_root.telo.bar.play();
} else if (_root.telo._currentframe != 1) {
_root.telo.play();
}
if (_root.kursi.org._currentframe != 1) {
_root.kursi.org.play();
}
_root.pauss = 0;
_root.blak._visible = 0;
if (((_root.bayian == 1) or (_root.bayigangu1 == 1)) or (_root.bayigangu2 == 1)) {
_root.efek5.setVolume(100);
}
};
}
Instance of Symbol 360 MovieClip "btnskip" in Frame 11
on (press) {
removeMovieClip(_root.gtut);
_root.tutIndex = _root.maxTut - 1;
_root.getNextTut();
}
Symbol 27 Button
on (release) {
if (_root.stages != 1) {
trace(_root.jpanas);
if ((_root.jpanas != 1) and (_root.menud != 1)) {
_root.menud = 1;
_root.ambilsusu();
} else {
trace("ada");
}
}
}
Symbol 30 Button
on (release) {
if ((_root.jmakan != 1) and (_root.menud != 1)) {
if ((_root.stages == 1) && (_root.tutIndex == 5)) {
_root.getNextTut();
}
_root.menud = 1;
_root.ambilmakan();
} else {
trace("ada");
}
}
Instance of Symbol 39 MovieClip "bao" in Symbol 40 MovieClip [babibu] Frame 1
on (press) {
_root.bayi.popz.gotoAndStop(1);
_root.bayi.bendas.removeMovieClip();
startDrag (this);
_root.bosi = 1;
}
on (release) {
stopDrag();
_root.bosi = 0;
if (this.hitTest(_root.badot)) {
if (_root.stages == 1) {
if (_root.tutIndex == 3) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
_root.getNextTut();
}
}
_root.readychange = 1;
_root.badot.attachMovie("babibu", "babibu", 2);
_root.badot.babibu._yscale = -100;
_root.badot.babibu.bao.enabled = 0;
_parent.removeMovieClip();
} else {
_root.bayi.popz.gotoAndStop(2);
_root.bayi.attachMovie("benda3", "bendas", 2);
_root.bayi.bendas._y = _root.bayi.bendas._y - 50;
_root.bayi.bendas._x = _root.bayi.bendas._x + 60;
_root.babi.attachMovie("babibu", "babibu", 2);
_parent.removeMovieClip();
}
}
Symbol 67 MovieClip [gtut] Frame 1
stop();
Symbol 74 MovieClip [mainan] Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 74 MovieClip [mainan] Frame 1
on (release) {
_root.toy.attachMovie("cent", "cents", 100);
_root.toyz = 1;
_root.coker(1);
}
Symbol 74 MovieClip [mainan] Frame 2
stop();
Symbol 92 MovieClip Frame 35
stop();
Symbol 100 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/arcade-games/burger-queen.html", "_blank");
}
Symbol 101 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/action-games/mad-spaceship.html", "_blank");
}
Symbol 102 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/dress-up-games/angelina-jolie-dress-up.html", "_blank");
}
Symbol 103 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/dress-up-games/dragon-ball-dress-up.html", "_blank");
}
Symbol 104 Button
on (release) {
getURL ("http://www.dailyfreegames.com/games/adventure-games/prince-of-thomond.html", "_blank");
}
Symbol 107 Button
on (release) {
getURL ("http://dailyfreegames.com", "_blank");
}
Symbol 108 MovieClip Frame 1
stop();
MochiAd.showPreloaderAd({id:"84f93a5ba11d8d58", res:"800x600"});
Symbol 400 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.3");
}
static function showPreGameAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local27);
if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local26);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local25 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local25);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb_arg) {
var _local8 = parseInt(cb_arg);
var _local4 = this._callbacks[_local8];
if (!_local4) {
return(undefined);
}
delete this._callbacks[_local8];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
}
Symbol 118 Button
on (release) {
_root.gotoAndStop("games");
}
Symbol 123 Button
on (release) {
_root.gotoAndStop("tor");
}
Symbol 129 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 133 Button
on (release) {
_root.gotoAndStop("tor2");
}
Symbol 139 Button
on (release) {
_root.gotoAndStop("tor");
}
Symbol 149 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 149 MovieClip Frame 1
on (release) {
_root.kulkas.attachMovie("cent", "cents", 100);
_root.coker(6);
_root.milih = 1;
if ((_root.stages == 1) && (_root.tutIndex == 5)) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
}
}
Symbol 149 MovieClip Frame 3
this.attachMovie("menukulkas", "menuk", 2);
this.menuk._x = this.menuk._x + 15;
this.menuk._y = this.menuk._y - 100;
stop();
Symbol 161 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 161 MovieClip Frame 1
on (release) {
_root.panas = 1;
_root.kotak.attachMovie("cent", "cents", 100);
_root.coker(4);
}
Symbol 161 MovieClip Frame 15
_root.jadipanas();
stop();
Symbol 162 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 162 MovieClip Frame 1
on (release) {
_root.cook = 1;
_root.masak.attachMovie("cent", "cents", 100);
_root.coker(5);
if ((_root.stages == 1) && (_root.tutIndex == 6)) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
}
}
Symbol 162 MovieClip Frame 2
Symbol 162 MovieClip Frame 15
gotoAndStop (1);
_root.jadimakanan();
Symbol 165 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 9
gotoAndPlay (2);
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 2
_root.cuci.kuli.gotoAndPlay(2);
Symbol 166 MovieClip Frame 30
_root.bersih();
_root.cuci.kuli.gotoAndStop(1);
Instance of Symbol 73 MovieClip "hitbox" in Symbol 167 MovieClip Frame 1
on (release) {
_root.cuci.attachMovie("cent", "cents", 100);
_root.coker(8);
_root.cucian = 1;
}
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 168 MovieClip Frame 1
on (release) {
_root.kotor.attachMovie("cent", "cents", 100);
_root.coker(7);
_root.ambilpopo = 1;
}
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 30
_root.udahantelp();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
_root.efek.attachSound("ring");
_root.efek.setVolume(100);
_root.efek.start();
Symbol 189 MovieClip Frame 28
gotoAndPlay (2);
Symbol 189 MovieClip Frame 30
_root.telo.bar.gotoAndPlay(2);
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 190 MovieClip Frame 1
on (release) {
_root.telp.attachMovie("cent", "cents", 100);
_root.coker(11);
_root.telep = 1;
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 194 MovieClip Frame 30
_root.udahanpintu();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 17
gotoAndPlay (2);
Symbol 204 MovieClip Frame 21
_root.panto.bar.gotoAndPlay(2);
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 207 MovieClip Frame 1
on (release) {
_root.pintu.attachMovie("cent", "cents", 100);
_root.coker(12);
_root.pintux = 1;
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "badi" in Symbol 219 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pauss != 1) {
if (_root.hh.hitTest(_root.orang.tar)) {
if (_root.bayinangis != 1) {
if ((_root.mainanbawa == 1) and (_root.job == 3)) {
_root.job = 0;
_root.mainanbawa = 0;
_root.bayi.gotoAndStop("tidur");
_root.bayi.popz.gotoAndStop(1);
_root.bayian = 0;
_root.skor = _root.skor + 50;
_root.gau.hp = _root.gau.hp + 5;
_root.toy.gotoAndStop(1);
_root.nohand();
_root.orang.ben.removeMovieClip();
_root.bayi.bendas.removeMovieClip();
}
if ((_root.milk == 1) and (_root.job == 2)) {
_root.job = 0;
_root.milk = 0;
_root.adasusu = 0;
_root.bayi.gotoAndStop("tidur");
_root.bayi.popz.gotoAndStop(1);
_root.kotak.gotoAndStop(1);
_root.bayian = 0;
_root.skor = _root.skor + 50;
_root.gau.hp = _root.gau.hp + 5;
_root.jpanas = 0;
_root.panas = 0;
_root.nohand();
_root.bayi.bendas.removeMovieClip();
}
} else {
if ((_root.stages == 1) || (_root.stages == 2)) {
r = 1;
} else {
r = random(3) + 1;
}
_root.job = r;
switch (r) {
case 1 :
_root.bayi.attachMovie("benda3", "bendas", 10);
_root.bayi.badi.enabled = 0;
_root.babi.attachMovie("babibu", "babibu", 2);
_root.bayi.ded._visible = 0;
break;
case 2 :
_root.bayi.attachMovie("benda2", "bendas", 2);
break;
case 3 :
_root.bayi.attachMovie("benda1", "bendas", 2);
}
_root.bayi.popz.gotoAndStop(2);
_root.bayi.bendas._y = _root.bayi.bendas._y - 50;
_root.bayi.bendas._x = _root.bayi.bendas._x + 60;
_root.bayinangis = 0;
}
}
if (((_root.bayian != 1) && (_root.isTimeOut == false)) && (_root.tutIndex >= _root.maxTut)) {
t++;
}
if ((t >= _root.wktbayi) and (_root.bayian != 1)) {
_root.wktbayi = random(50) + (100 - (_root.stages * 5));
_root.bayinangis = 1;
_root.bayi.gotoAndStop("nangis");
ti = random(2) + 1;
if (_root.isFxNangis == false) {
_root.efek5.attachSound("babi" + ti);
_root.efek5.setVolume(100);
_root.efek5.start();
_root.isFxNangis = true;
}
_root.bayian = 1;
t = 0;
}
}
}
onClipEvent (load) {
t = 0;
}
on (release) {
_root.bayi.attachMovie("cent", "cents", 100);
_root.aktif = 1;
_root.coker(9);
if ((_root.stages == 1) && (_root.tutIndex == 2)) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
}
}
Symbol 262 MovieClip Frame 4
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 299 MovieClip Frame 5
_root.orang.gotoAndStop(1);
Symbol 320 MovieClip Frame 3
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 30
_root.efek3.attachSound("pop");
_root.efek3.setVolume(100);
_root.efek3.start();
_root.udahanbayi();
Symbol 339 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 339 MovieClip Frame 1
on (release) {
_root.popok.attachMovie("cent", "cents", 100);
_root.coker(10);
_root.popo = 1;
if ((_root.stages == 1) && (_root.tutIndex == 4)) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
}
}
Symbol 342 MovieClip Frame 1
stop();
Instance of Symbol 73 MovieClip "hitbox" in Symbol 342 MovieClip Frame 1
on (release) {
_root.makan.attachMovie("cent", "cents", 100);
_root.coker(3);
_root.eat = 1;
if ((_root.stages == 1) && (_root.tutIndex == 7)) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
}
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 14
gotoAndPlay (8);
Instance of Symbol 73 MovieClip "hitbox" in Symbol 352 MovieClip Frame 1
on (release) {
_root.kursi.attachMovie("cent", "cents", 100);
_root.coker(2);
_root.istirahat = 1;
if ((_root.stages == 1) && (_root.tutIndex == 8)) {
_root.paus.nopause();
removeMovieClip(_root.gtut);
}
}
Symbol 357 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 1
stop();
Symbol 385 Button
on (release) {
_root.paus.nopause();
}
Symbol 386 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 392 Button
on (release) {
_root.gotoAndPlay("gen");
}
Symbol 395 Button
on (release) {
if (_root.stages == 6) {
_root.gotoAndStop(2);
} else {
_root.stages++;
_root.gotoAndPlay("gen");
}
}
Symbol 398 Button
on (release) {
_root.stopAllSounds();
_root.gotoAndStop("mmenu");
}
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 2
_root.rembayi();
Symbol 399 MovieClip Frame 3
_root.rembayi();
_root.playFinis();
Symbol 399 MovieClip Frame 4
_root.rembayi();
_root.playFinis();