Frame 1
function backSound() {
music2 = new Sound();
music2.attachSound("backSound");
music2.start(0, 999);
}
function backLompat() {
music = new Sound();
music.attachSound("backLompat");
music.start(0, 1);
}
function backLari() {
music = new Sound();
music.attachSound("backLari");
music.start(0, 1);
}
stop();
pertamaKali = true;
MochiAd.showPreloaderAd({id:"425b869b873343ab", res:"800x600"});
Frame 76
function doku() {
mySound = new Sound();
mySound.attachSound("doku");
mySound.start(0, 1);
}
stop();
if (pertamaKali == true) {
backSound();
pertamaKali = false;
}
enter_btn.onRelease = function () {
gotoAndStop ("game");
};
level = 1;
gold = 0;
waktu = 35;
zwaktu = 35;
banyakItem = new Array(25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
hargaItem = new Array(250, 2000, 1000, 500, 1000, 500, 2000, 3000, 5000, 25000, 50000);
namaItem = new Array("arrow", "wing arrow", "fire arrow", "triple arrow", "arrow bag", "shoes", "wing shoes", "fruit manual", "knight net", "cupid", "jet pack");
jenisItem = new Array("Unit", "mph", "Unit", "Unit", "Unit", "mph", "mph", "G", "Unit", "Unit", "Unit");
Frame 77
stop();
start_btn.onRelease = function () {
gotoAndStop ("loading");
};
Frame 78
function xawal() {
i = 0;
while (i <= 10) {
_root["info" + i] = hargaItem[i] + " G";
_root["option" + i]._visible = true;
_root["option" + i].gotoAndStop(2);
_root["option" + i].onRelease = function () {
kata = new String(this);
if (kata.length == 15) {
qi = int(kata.substr(kata.length - 1, 1));
} else {
qi = int(kata.substr(kata.length - 2, 2));
}
if ((banyakItem[qi] < batasx[qi]) || (batasx[qi] == 0)) {
msg_mc._visible = false;
if (_root.hargaItem[qi] > _root.gold) {
informasi = "Ups! Your gold is not enough";
} else if ((qi == 0) && (_root.banyakItem[qi] == ((_root.banyakItem[4] + 1) * 25))) {
informasi = "Ups! Your arrows are at maximum capacity";
} else if ((qi == 2) && (_root.banyakItem[qi] == ((_root.banyakItem[4] + 1) * 5))) {
informasi = "Ups! Your arrows are at maximum capacity";
} else if ((qi == 3) && (_root.banyakItem[qi] == ((_root.banyakItem[4] + 1) * 10))) {
informasi = "Ups! Your arrows are at maximum capacity";
} else {
informasi = "Thanks for buy..";
_root.gold = _root.gold - _root.hargaItem[qi];
banyakItem[qi]++;
doku();
}
}
_root.xawal();
};
_root["sold" + i]._visible = false;
if (banyakItem[5] >= 2) {
_root.sold5._visible = true;
_root.option5._visible = false;
}
if (banyakItem[6] >= 3) {
_root.sold6._visible = true;
_root.option6._visible = false;
}
if (banyakItem[7] >= 3) {
_root.sold7._visible = true;
_root.option7._visible = false;
}
if (banyakItem[9] >= 1) {
_root.sold9._visible = true;
_root.option9._visible = false;
}
if (banyakItem[10] >= 1) {
_root.sold10._visible = true;
_root.option10._visible = false;
}
i++;
}
}
function releaseOption() {
informasi = "";
i = 0;
while (i <= 10) {
_root["option" + i].gotoAndStop(2);
i++;
}
this.gotoAndStop(1);
kata = new String(this);
if (kata.length == 15) {
kal = int(kata.substr(kata.length - 1, 1));
} else {
kal = int(kata.substr(kata.length - 2, 2));
}
with (msg_mc) {
_visible = true;
nama = namaItem[_root.kal];
senjata_mc.gotoAndStop(_root.kal + 1);
nama = namaItem[_root.kal];
troli = 0;
komen = "input number of buy";
cancel_btn.onRelease = function () {
_root.informasi = "Hello Knight. Welcome to the shopping center. Here you can buy new tools to upgrade your abilities. Just click the tools to buy and click the button located to the right of the item. Click the items button below to view your items or click continue to go to the next level.";
i = 0;
while (i <= 10) {
_root["option" + i].gotoAndStop(2);
i++;
}
_root.msg_mc._visible = false;
};
buy_btn.onRelease = function () {
xharga = troli * _root.hargaItem[_root.kal];
if (troli == "mon") {
komen = "one million of gold";
_root.gold = 1000000 /* 0x0F4240 */;
} else if (troli <= 0) {
komen = "please input more than 0";
} else if (isNaN(troli)) {
komen = "please input number";
} else if (xharga > _root.gold) {
komen = "Ups! Your gold is not enough";
} else {
_root.doku();
_root.gold = _root.gold - xharga;
_root.banyakItem[_root.kal] = Number(_root.banyakItem[_root.kal]) + Number(troli);
troli = 0;
komen = "Thanks..";
}
};
}
}
stop();
waktu = zwaktu;
if (banyakItem[7] > 0) {
banyakItem[7]--;
}
if (banyakItem[8] > 0) {
banyakItem[8]--;
}
batasx = new Array(0, 0, 0, 0, 0, 2, 3, 3, 0, 1, 1);
jenisKe = "shop";
jenisInfo = "Shoping Center";
kata3 = "Items";
informasi = "Hello Knight. Welcome to the shopping center. Here you can buy new tools to upgrade your abilities. Just click the tools to buy and click the button located to the right of the item. Click the items button below to view your items or click continue to go to the next level.";
msg_mc._visible = false;
xawal();
change_btn.onRelease = function () {
if (jenisKe == "shop") {
kata3 = "Shop";
jenisKe = "Items";
jenisInfo = "Your items";
informasi = "This is a list of all of our items. You can view what is currently in your inventory here. Click the shop button below to buy new items or click continue to go to the next level.";
msg_mc._visible = false;
i = 0;
while (i <= 10) {
tambahan = "";
xtambahan = 0;
if (i == 1) {
xtambahan = 1;
tambahan = 30;
} else if (i == 4) {
tambahan = 5;
xtambahan = 1;
} else if (i == 5) {
tambahan = 30;
xtambahan = 1;
} else if (i == 6) {
tambahan = 3;
xtambahan = 1;
} else if (i == 7) {
tambahan = 20;
xtambahan = 1;
}
_root["info" + i] = ((((banyakItem[i] + xtambahan) + " x ") + tambahan) + " ") + jenisItem[i];
if (i == 0) {
_root["info" + i] = (banyakItem[i] + " / ") + ((banyakItem[4] + 1) * 25);
} else if (i == 2) {
_root["info" + i] = (banyakItem[i] + " / ") + ((banyakItem[4] + 1) * 5);
} else if (i == 3) {
_root["info" + i] = (banyakItem[i] + " / ") + ((banyakItem[4] + 1) * 10);
}
_root["option" + i]._visible = false;
_root["sold" + i]._visible = false;
i++;
}
} else {
kata3 = "Items";
jenisKe = "shop";
jenisInfo = "Shoping Center";
informasi = "Hello Knight. Welcome to the shopping center. Here you can buy new tools to upgrade your abilities. Just click the tools to buy and click the button located to the right of the item. Click the items button below to view your items or click continue to go to the next level.";
msg_mc._visible = false;
xawal();
}
};
exit_btn.onRelease = function () {
gotoAndStop ("game");
};
Frame 79
function initAwal() {
xspeedDaun = 7.5;
speedArea = 1;
speedBuah = 2.5;
speedJatuh = 5;
jumlahBuah = 2.5;
banyakBuah = 1;
speedArea = 2.5;
this.attachMovie("area_mc", "area_mc", this.getNextHighestDepth(), {_x:0, _y:0});
this.attachMovie("pohon_mc", "pohon_mc", this.getNextHighestDepth(), {_x:1000, _y:600});
this.attachMovie("mon_mc", "mon_mc", this.getNextHighestDepth(), {_x:200, _y:580});
this.attachMovie("aksi_mc", "aksi_mc", this.getNextHighestDepth(), {_x:200, _y:580});
this.attachMovie("peluru_mc", "peluru_mc", this.getNextHighestDepth(), {_x:200, _y:580});
this.attachMovie("peluru_mc", "peluru2_mc", this.getNextHighestDepth(), {_x:200, _y:580});
this.attachMovie("daun_mc", "daun_mc", this.getNextHighestDepth(), {_x:0, _y:550});
this.attachMovie("info_mc", "info_mc", this.getNextHighestDepth(), {_x:0, _y:550});
this.attachMovie("life_mc", "life_mc", this.getNextHighestDepth(), {_x:10, _y:10});
this.attachMovie("go_mc", "go_mc", this.getNextHighestDepth(), {_x:400, _y:400});
aksi_mc._visible = false;
}
function initInfo() {
zcollect = 0;
ztarget = level * 5;
waktu = waktu + 10;
zwaktu = waktu;
kapasitas1 = (banyakItem[4] + 1) * 25;
kapasitas2 = (banyakItem[4] + 1) * 5;
kapasitas3 = (banyakItem[4] + 1) * 10;
if (banyakItem[0] > ((banyakItem[4] + 1) * 25)) {
biasa = (banyakItem[4] + 1) * 25;
} else {
biasa = banyakItem[0];
}
if (banyakItem[2] > ((banyakItem[4] + 1) * 5)) {
api = (banyakItem[4] + 1) * 5;
} else {
api = banyakItem[2];
}
if (banyakItem[3] > ((banyakItem[4] + 1) * 10)) {
banyak = (banyakItem[4] + 1) * 10;
} else {
banyak = banyakItem[3];
}
if (banyakItem[8] > 0) {
jumlahNet = 15;
}
kondisiPanah = new Array();
keKondisi = 0;
kondisiPanah[keKondisi] = 1;
xpaused = false;
xpaused2 = false;
lifeKe = 0;
penambah = 5;
i = 1;
while (i <= 3) {
life_mc["life" + i].gotoAndStop(1);
i++;
}
peluru_mc.gotoAndStop(1);
peluru2_mc.gotoAndStop(1);
idMundur = setInterval(mundur, 1000);
info_mc.onEnterFrame = enterInfo;
info_mc.pause_btn._visible = true;
info_mc.pause_btn.onRelease = function () {
pauseGame();
};
}
function mundur() {
if (xpaused2 == false) {
waktu--;
if (waktu <= 0) {
info_mc.pause_btn._visible = false;
winLevel();
}
}
}
function pauseGame() {
if (xpaused2 == false) {
xpaused2 = true;
xpaused = true;
info_mc.xpause = "continue";
mon_mc.stop();
xposisi = Math.floor(music2.position / 1000);
music2.stop();
} else {
xpaused2 = false;
xpaused = false;
info_mc.xpause = "pause";
mon_mc.play();
trace(xposisi);
music2.start(xposisi, 1);
music2.onSoundComplete = function () {
backSound();
};
}
}
function winLevel() {
mon_mc.stop();
go_mc.gotoAndPlay(2);
xpaused = true;
xpaused2 = true;
}
function nextLevel() {
trace(zcollect);
trace(ztarget);
if (zcollect >= ztarget) {
level++;
if (level <= 30) {
trace("aaa");
cekSelesai("shop");
} else {
trace("bbb");
cekSelesai("win");
}
} else {
trace("ccc");
cekSelesai("lose");
}
clearInterval(idMundur);
}
function cekSelesai(indi) {
delete aksi_mc.onEnterFrame;
delete info_mc.onEnterFrame;
delete pohon_mc.onEnterFrame;
delete peluru_mc.onEnterFrame;
delete peluru2_mc.onEnterFrame;
clearInterval(idJalanArea);
clearInterval(idJalanDaun);
clearInterval(idJalanBuah);
clearInterval(idMundur);
removeMovieClip("area_mc");
removeMovieClip("pohon_mc");
removeMovieClip("mon_mc");
removeMovieClip("aksi_mc");
removeMovieClip("peluru_mc");
removeMovieClip("peluru2_mc");
removeMovieClip("daun_mc");
removeMovieClip("info_mc");
removeMovieClip("life_mc");
removeMovieClip("go_mc");
removeMovieClip("wbonus_mc");
trace("indi = " + indi);
_root.gotoAndStop(indi);
}
function initPohon() {
speedPohon = 7.5;
pohon_mc._x = 1000;
pohon_mc._y = random(100) + 750;
if (level < 6) {
randBuah = 1;
pohon_mc.gotoAndStop(1);
} else if (level < 12) {
randBuah = random(2) + 1;
pohon_mc.gotoAndStop(2);
} else if (level < 18) {
randBuah = random(3) + 1;
pohon_mc.gotoAndStop(3);
} else if (level < 24) {
randBuah = random(4) + 1;
pohon_mc.gotoAndStop(4);
} else if (level <= 30) {
randBuah = random(5) + 1;
pohon_mc.gotoAndStop(5);
}
pohon_mc.onEnterFrame = jalanPohon;
drand = random(100);
if (drand < 50) {
pohon_mc.uler_mc._visible = true;
pohon_mc.uler_mc.bonus_mc._visible = true;
} else {
pohon_mc.uler_mc._visible = false;
pohon_mc.uler_mc.bonus_mc._visible = false;
}
pohon_mc.uler_mc.bom_mc._visible = true;
pohon_mc.onyet_mc.gotoAndStop(1);
pohon_mc.onyet_mc.durian_mc.gotoAndStop(1);
banyakBuah = 8;
i = 1;
while (i <= banyakBuah) {
pohon_mc["buah" + i].gotoAndStop(1);
pohon_mc["buah" + i].buah.gotoAndStop(randBuah);
i++;
}
}
function initPeluru(komen) {
sedangPanah = false;
speedYPeluru = 1.5;
speedXPeluru = 30 + ((banyakItem[1] + 1) * 2.5);
if ((komen == _level0.peluru_mc) || (komen == undefined)) {
sedangTembak1 = false;
peluru_mc._x = aksi_mc._x - 10;
peluru_mc._y = aksi_mc._y - 45;
peluru_mc._visible = false;
} else {
sedangTembak2 = false;
peluru2_mc._x = aksi_mc._x - 10;
peluru2_mc._y = aksi_mc._y - 120;
peluru2_mc._visible = false;
}
peluru_mc.onEnterFrame = (peluru2_mc.onEnterFrame = enterPeluru);
}
function jalanPohon() {
if (!xpaused2) {
this._x = this._x - speedPohon;
randJarak = random(200);
if (this._x <= (randJarak - 800)) {
initPohon();
}
if (!xpaused) {
if (this._x <= (aksi_mc._x + 250)) {
if (this.onyet_mc._currentframe == 1) {
this.onyet_mc.gotoAndStop(2);
}
}
if (this.onyet_mc.durian_mc.hitTest(mon_mc.orang_mc) && (mon_mc.orang_mc._visible == true)) {
cekSelesai("lose");
}
if ((this.uler_mc.bom_mc.hitTest(mon_mc.orang_mc) && (mon_mc.orang_mc._visible == true)) || (this.uler_mc.bom_mc.hitTest(aksi_mc))) {
if (this.uler_mc.bom_mc._visible == true) {
this.uler_mc.bom_mc._visible = false;
lifeKe++;
life_mc["life" + lifeKe].gotoAndPlay(2);
if (lifeKe >= 3) {
cekSelesai("lose");
}
}
}
if ((this.uler_mc.bonus_mc.hitTest(mon_mc.orang_mc) && (mon_mc.orang_mc._visible == true)) || (this.uler_mc.bonus_mc.hitTest(aksi_mc))) {
if (this.uler_mc.bonus_mc._visible == true) {
this.uler_mc.bonus_mc._visible = false;
attachMovie("wbonus_mc", "wbonus_mc", 99999);
wbonus_mc._visible = true;
wbonus_mc.gotoAndPlay(2);
wbonus_mc._x = mon_mc._x;
wbonus_mc._y = mon_mc._y;
trace(wbonus_mc._x);
trace(wbonus_mc._y);
randomBonus();
}
}
}
}
}
function randomBonus() {
if (!xpaused2) {
frand = random(2);
if (frand == 0) {
randPoin = level * 500;
gold = gold + randPoin;
wbonus_mc.bonus = "GOLD BONUS " + randPoin;
} else {
randTime = random(10) + 1;
waktu = waktu + randTime;
wbonus_mc.bonus = "TIME BONUS " + randTime;
}
trace(wbonus_mc.bonus);
}
}
function jalanPeluru() {
if (!xpaused2) {
if ((!sedangTembak1) || (!sedangTembak2)) {
speedXPeluru = 30 + ((banyakItem[1] + 1) * 2.5);
sedangTembak1 = true;
sedangTembak2 = true;
peluru_mc._visible = true;
j = 1;
while (j <= 3) {
peluru_mc["panah" + j]._visible = true;
peluru_mc["panah" + j].gotoAndPlay(1);
j++;
}
peluru_mc._x = aksi_mc._x - 10;
peluru_mc._y = aksi_mc._y - 45;
if (banyakItem[9] > 0) {
peluru2_mc._visible = true;
j = 1;
while (j <= 3) {
peluru2_mc["panah" + j]._visible = true;
peluru2_mc["panah" + j].gotoAndPlay(1);
j++;
}
peluru2_mc._x = aksi_mc._x - 10;
peluru2_mc._y = aksi_mc._y - 120;
}
}
}
}
function initMon() {
powerJump = ((banyakItem[5] + 1) * 2) + 30;
speedDaun = 3 - (banyakItem[6] / 2);
if (speedDaun <= 0.1) {
speedDaun = 0.1;
}
sedangLoncat = false;
klikTurun = false;
sedangPanah = false;
aksi_mc._y = 550;
aksi_mc.onEnterFrame = enterMon;
}
function enterPeluru() {
if (!xpaused2) {
if (sedangTembak1) {
if (this == _level0.peluru_mc) {
this._x = this._x + speedXPeluru;
speedXPeluru++;
if (this._x > 800) {
if (this._visible == true) {
this._visible = false;
initPeluru(this);
}
}
}
}
if (sedangTembak2) {
if (this == _level0.peluru2_mc) {
this._x = this._x + speedXPeluru;
speedXPeluru++;
if (this._x > 800) {
if (this._visible == true) {
this._visible = false;
initPeluru(this);
}
}
}
}
i = 0;
while (i <= banyakBuah) {
if (this.hitTest(pohon_mc.onyet_mc)) {
if (this._visible == true) {
pohon_mc.onyet_mc.gotoAndStop(4);
this._visible = false;
}
}
if (aksi_mc.net_mc.hitTest(pohon_mc["buah" + i])) {
if (aksi_mc.net_mc._visible == true) {
if (pohon_mc["buah" + i]._currentframe == 1) {
jumlahNet--;
if (jumlahNet <= 0) {
_root.banyakItem[8]--;
_root.aksi_mc.net_mc._visible = false;
}
kenaBuah2();
}
}
}
if (kondisiPanah[keKondisi] == 1) {
if (this.hitTest(pohon_mc["buah" + i])) {
if (this._visible == true) {
kenaBuah();
initPeluru(this);
}
}
} else if (kondisiPanah[keKondisi] == 2) {
j = 1;
while (j <= 3) {
if (this["panah" + j]._visible == true) {
if (this["panah" + j].hitTest(pohon_mc["buah" + i])) {
kenaBuah();
this["panah" + j]._visible = false;
}
}
j++;
}
} else if (kondisiPanah[keKondisi] == 3) {
if (this.hitTest(pohon_mc["buah" + i])) {
if (this._visible == true) {
kenaBuah2();
}
}
}
i++;
}
}
}
function kenaBuah() {
gold = gold + Math.floor((level / 2) * ((i + banyakItem[7]) * 20));
zcollect++;
posisiBuah = pohon_mc["buah" + i].buah._currentframe;
pohon_mc["buah" + i].gotoAndStop(2);
pohon_mc["buah" + i].buah_jatuh.buah.gotoAndStop(posisiBuah);
}
function kenaBuah2() {
gold = gold + Math.floor((level / 2) * ((i + banyakItem[7]) * 20));
zcollect++;
posisiBuah = pohon_mc["buah" + i].buah._currentframe;
pohon_mc["buah" + i].gotoAndStop(3);
pohon_mc["buah" + i].buah_jatuh.buah.gotoAndStop(posisiBuah);
}
function enterMon() {
if (!xpaused2) {
if (sedangLoncat) {
this._y = this._y - powerJump;
powerJump = powerJump - speedDaun;
if ((this._y > 500) && (powerJump <= 0)) {
mon_mc.orang_mc._visible = true;
mon_mc.kaki_mc._visible = true;
aksi_mc._visible = false;
initMon();
}
}
i = 0;
while (i <= banyakBuah) {
if (this.net_mc.hitTest(pohon_mc["buah" + i])) {
if (this.net_mc._visible == true) {
if (pohon_mc["buah" + i]._currentframe == 1) {
kenaBuah2();
}
}
}
i++;
}
}
}
function enterBuah() {
if (!xpaused2) {
this._x = this._x - speedBuah;
if (this._x <= -100) {
removeMovieClip(this);
this._visible = false;
}
}
}
function jalanArea() {
if (!xpaused2) {
area_mc._x = area_mc._x - speedArea;
if (area_mc._x <= -800) {
area_mc._x = 0;
}
}
}
function jalanDaun() {
if (!xpaused2) {
daun_mc._x = daun_mc._x - xspeedDaun;
if (daun_mc._x <= -800) {
daun_mc._x = 0;
}
}
}
function delay() {
if (!sedangLoncat) {
if (_root.banyakItem[10] <= 0) {
mon_mc.orang_mc._visible = true;
mon_mc.kaki_mc._visible = true;
aksi_mc._visible = false;
aksi_mc.gotoAndStop("normal");
}
}
jalanPeluru();
}
function enterInfo() {
info_mc.gold = "Gold : " + gold;
info_mc.waktu = "Time : " + waktu;
info_mc.level = "Level : " + level;
info_mc.ztarget = "Target : " + ztarget;
info_mc.zcollect = "Collected : " + zcollect;
info_mc.api = (api + " / ") + kapasitas2;
info_mc.banyak = (banyak + " / ") + kapasitas3;
info_mc.biasa = (biasa + " / ") + kapasitas1;
if (kondisiPanah[keKondisi] == 1) {
info_mc.tanda1._visible = true;
info_mc.tanda2._visible = false;
info_mc.tanda3._visible = false;
} else if (kondisiPanah[keKondisi] == 2) {
info_mc.tanda1._visible = false;
info_mc.tanda2._visible = true;
info_mc.tanda3._visible = false;
} else if (kondisiPanah[keKondisi] == 3) {
info_mc.tanda1._visible = false;
info_mc.tanda2._visible = false;
info_mc.tanda3._visible = true;
}
}
function input() {
myListener = new Object();
myListener.onKeyDown = function () {
if (!xpaused) {
if (Key.getCode() == 38) {
if (_root.banyakItem[10] <= 0) {
mon_mc.orang_mc._visible = false;
mon_mc.kaki_mc._visible = false;
aksi_mc._visible = true;
aksi_mc.gotoAndStop("lompat");
sedangLoncat = true;
} else {
sedangLoncat = false;
terbang = true;
}
}
if (Key.getCode() == 32) {
if (!sedangPanah) {
fadaPanah = false;
if (kondisiPanah[keKondisi] == 3) {
if (api > 0) {
fadaPanah = true;
api--;
peluru_mc.gotoAndStop(3);
peluru2_mc.gotoAndStop(1);
}
} else if (kondisiPanah[keKondisi] == 2) {
if (banyak > 0) {
fadaPanah = true;
banyak--;
peluru_mc.gotoAndStop(2);
peluru2_mc.gotoAndStop(1);
}
} else if (kondisiPanah[keKondisi] == 1) {
if (biasa > 0) {
fadaPanah = true;
biasa--;
peluru_mc.gotoAndStop(1);
peluru2_mc.gotoAndStop(1);
}
}
if (fadaPanah == true) {
sedangPanah = true;
mon_mc.orang_mc._visible = false;
mon_mc.kaki_mc._visible = false;
aksi_mc._visible = true;
aksi_mc.gotoAndStop("manah");
aksi_mc.manah_mc.gotoAndPlay(1);
if (banyakItem[9] > 0) {
aksi_mc.cupid_mc.gotoAndPlay("manah");
}
}
}
}
if (Key.getCode() == 40) {
if (_root.banyakItem[10] <= 0) {
if (sedangLoncat) {
aksi_mc.gotoAndStop("turun");
speedDaun = speedDaun + 2;
klikTurun = true;
}
} else {
sedangLoncat = false;
terbang2 = true;
}
}
if (Key.getCode() == 90) {
if (biasa > 0) {
if (sedangPanah == false) {
kondisiPanah[keKondisi] = 1;
peluru_mc.gotoAndStop(1);
peluru2_mc.gotoAndStop(1);
}
}
}
if (Key.getCode() == 88) {
if (banyak > 0) {
if (sedangPanah == false) {
kondisiPanah[keKondisi] = 2;
peluru_mc.gotoAndStop(2);
peluru2_mc.gotoAndStop(1);
}
}
}
if (Key.getCode() == 67) {
if (api > 0) {
if (sedangPanah == false) {
kondisiPanah[keKondisi] = 3;
peluru_mc.gotoAndStop(3);
peluru2_mc.gotoAndStop(1);
}
}
}
}
};
myListener.onKeyUp = function () {
if (!xpaused) {
if (Key.getCode() == 40) {
if (sedangLoncat) {
speedDaun = 3 - (banyakItem[6] / 2);
if (speedDaun <= 0.1) {
speedDaun = 0.1;
}
klikTurun = false;
aksi_mc.gotoAndStop("lompat");
}
terbang2 = false;
}
if (Key.getCode() == 38) {
terbang = false;
}
}
};
Key.addListener(myListener);
}
stop();
initAwal();
initMon();
initBuah();
initPeluru();
initPohon();
initInfo();
input();
idJalanArea = setInterval(jalanArea, 1);
idJalanDaun = setInterval(jalanDaun, 1);
idJalanBuah = setInterval(jalanBuah, 5000);
_root.onEnterFrame = function () {
if (terbang == true) {
if (aksi_mc._y > 100) {
mon_mc.orang_mc._visible = false;
mon_mc.kaki_mc._visible = false;
aksi_mc._visible = true;
if (!sedangPanah) {
aksi_mc.gotoAndStop("lompat");
}
aksi_mc._y = aksi_mc._y - 20;
}
}
if (terbang2 == true) {
if (aksi_mc._y < mon_mc._y) {
mon_mc.orang_mc._visible = false;
mon_mc.kaki_mc._visible = false;
aksi_mc._visible = true;
if (!sedangPanah) {
aksi_mc.gotoAndStop("lompat");
}
aksi_mc._y = aksi_mc._y + 20;
}
}
};
Frame 80
stop();
restart_btn.onRelease = function () {
gotoAndStop ("instruksi");
};
Frame 81
stop();
restart_btn.onRelease = function () {
gotoAndStop ("instruksi");
};
Symbol 8 MovieClip [wbonus_mc] Frame 1
stop();
this._visible = false;
Symbol 8 MovieClip [wbonus_mc] Frame 2
play();
this._visible = true;
Symbol 8 MovieClip [wbonus_mc] Frame 5
trace("lewat");
Symbol 17 MovieClip Frame 15
stop();
Symbol 22 MovieClip [peluru_mc] Frame 1
stop();
Symbol 37 MovieClip [mon_mc] Frame 1
rand = random(100);
if (rand < 10) {
_root.backLari();
}
Symbol 37 MovieClip [mon_mc] Frame 12
gotoAndPlay ("normal");
Symbol 49 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 10
stop();
_root.delay();
Symbol 75 MovieClip [aksi_mc] Frame 1
stop();
if (_root.banyakItem[10] <= 0) {
_root.mon_mc.roket_mc._visible = false;
_root.aksi_mc.roket_mc._visible = false;
} else {
_root.mon_mc.roket_mc._visible = true;
_root.aksi_mc.roket_mc._visible = true;
}
if (_root.banyakItem[8] <= 0) {
_root.mon_mc.net_mc._visible = false;
_root.aksi_mc.net_mc._visible = false;
} else {
_root.mon_mc.net_mc._visible = true;
_root.aksi_mc.net_mc._visible = true;
}
if (_root.banyakItem[9] <= 0) {
_root.mon_mc.cupid_mc._visible = false;
_root.aksi_mc.cupid_mc._visible = false;
} else {
_root.mon_mc.cupid_mc._visible = true;
_root.aksi_mc.cupid_mc._visible = true;
}
if (_root.banyakItem[5] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(1);
_root.aksi_mc.sepatu2.gotoAndStop(1);
}
if (_root.banyakItem[6] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(2);
_root.aksi_mc.sepatu2.gotoAndStop(2);
}
Symbol 75 MovieClip [aksi_mc] Frame 5
stop();
if (_root.banyakItem[10] <= 0) {
_root.mon_mc.roket_mc._visible = false;
_root.aksi_mc.roket_mc._visible = false;
} else {
_root.mon_mc.roket_mc._visible = true;
_root.aksi_mc.roket_mc._visible = true;
}
if (_root.banyakItem[8] <= 0) {
_root.mon_mc.net_mc._visible = false;
_root.aksi_mc.net_mc._visible = false;
} else {
_root.mon_mc.net_mc._visible = true;
_root.aksi_mc.net_mc._visible = true;
}
if (_root.banyakItem[9] <= 0) {
_root.mon_mc.cupid_mc._visible = false;
_root.aksi_mc.cupid_mc._visible = false;
} else {
_root.mon_mc.cupid_mc._visible = true;
_root.aksi_mc.cupid_mc._visible = true;
}
if (_root.banyakItem[5] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(1);
_root.aksi_mc.sepatu2.gotoAndStop(1);
}
if (_root.banyakItem[6] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(2);
_root.aksi_mc.sepatu2.gotoAndStop(2);
}
Symbol 75 MovieClip [aksi_mc] Frame 10
stop();
if (_root.banyakItem[10] <= 0) {
_root.mon_mc.roket_mc._visible = false;
_root.aksi_mc.roket_mc._visible = false;
} else {
_root.mon_mc.roket_mc._visible = true;
_root.aksi_mc.roket_mc._visible = true;
}
if (_root.banyakItem[8] <= 0) {
_root.mon_mc.net_mc._visible = false;
_root.aksi_mc.net_mc._visible = false;
} else {
_root.mon_mc.net_mc._visible = true;
_root.aksi_mc.net_mc._visible = true;
}
if (_root.banyakItem[9] <= 0) {
_root.mon_mc.cupid_mc._visible = false;
_root.aksi_mc.cupid_mc._visible = false;
} else {
_root.mon_mc.cupid_mc._visible = true;
_root.aksi_mc.cupid_mc._visible = true;
}
if (_root.banyakItem[5] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(1);
_root.aksi_mc.sepatu2.gotoAndStop(1);
}
if (_root.banyakItem[6] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(2);
_root.aksi_mc.sepatu2.gotoAndStop(2);
}
Symbol 75 MovieClip [aksi_mc] Frame 15
stop();
if (_root.banyakItem[10] <= 0) {
_root.mon_mc.roket_mc._visible = false;
_root.aksi_mc.roket_mc._visible = false;
} else {
_root.mon_mc.roket_mc._visible = true;
_root.aksi_mc.roket_mc._visible = true;
}
if (_root.banyakItem[8] <= 0) {
_root.mon_mc.net_mc._visible = false;
_root.aksi_mc.net_mc._visible = false;
} else {
_root.mon_mc.net_mc._visible = true;
_root.aksi_mc.net_mc._visible = true;
}
if (_root.banyakItem[9] <= 0) {
_root.mon_mc.cupid_mc._visible = false;
_root.aksi_mc.cupid_mc._visible = false;
} else {
_root.mon_mc.cupid_mc._visible = true;
_root.aksi_mc.cupid_mc._visible = true;
}
if (_root.banyakItem[5] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(1);
_root.aksi_mc.sepatu2.gotoAndStop(1);
}
if (_root.banyakItem[6] <= 0) {
_root.mon_mc.sepatu1._visible = false;
_root.aksi_mc.sepatu1._visible = false;
_root.mon_mc.sepatu2._visible = false;
_root.aksi_mc.sepatu2._visible = false;
} else {
_root.mon_mc.sepatu1._visible = true;
_root.aksi_mc.sepatu1._visible = true;
_root.mon_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu2._visible = true;
_root.aksi_mc.sepatu1.gotoAndStop(2);
_root.aksi_mc.sepatu2.gotoAndStop(2);
}
Symbol 86 MovieClip [buah_mc] Frame 1
stop();
Symbol 90 MovieClip Frame 20
stop();
Symbol 92 MovieClip Frame 20
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 102 MovieClip [pohon_mc] Frame 1
stop();
Symbol 102 MovieClip [pohon_mc] Frame 2
stop();
Symbol 102 MovieClip [pohon_mc] Frame 3
stop();
Symbol 102 MovieClip [pohon_mc] Frame 4
stop();
Symbol 102 MovieClip [pohon_mc] Frame 5
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 2
play();
Symbol 128 MovieClip Frame 10
stop();
Symbol 131 MovieClip [go_mc] Frame 1
stop();
Symbol 131 MovieClip [go_mc] Frame 2
play();
_parent.winLevel();
Symbol 131 MovieClip [go_mc] Frame 55
stop();
_root.nextLevel();
Symbol 140 Button
on (release) {
getURL ("http://myactiongames.com/");
}
Symbol 317 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(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();
}};
options = _parseOptions(options, _local27);
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_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 = function (width, height) {
};
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) {
_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 showTimedAd(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();
}};
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_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.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) {
_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 _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 _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
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 _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
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) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
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 _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
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 _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_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++;
}
}
return(_local4);
}
}
Symbol 159 Button
on (press) {
_root.gotoAndStop("instruksi");
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();