Frame 1
function backMusic() {
xmusic = new Sound(musik);
xmusic.attachSound("backMusic");
xmusic.start(0, 1);
xmusic.setVolume(volume1);
xmusic.onSoundComplete = function () {
backMusic();
};
}
function klik() {
xsound = new Sound(suara);
xsound.attachSound("klik");
xsound.start(0, 1);
xsound.setVolume(volume2);
}
function over() {
xsound = new Sound(suara);
xsound.attachSound("over");
xsound.start(0, 1);
xsound.setVolume(volume2);
}
function bonus() {
xsound = new Sound(suara);
xsound.attachSound("bonus");
xsound.start(0, 1);
xsound.setVolume(volume2);
}
function kubus() {
xsound.stop();
xsound = new Sound(suara);
xsound.attachSound("kubus");
xsound.start(0, 1);
xsound.setVolume(volume2);
}
function gagal() {
xsound = new Sound(suara);
xsound.attachSound("gagal");
xsound.start(0, 1);
xsound.setVolume(volume2);
}
stop();
petama = true;
volume1 = 50;
volume2 = 100;
this.onEnterFrame = function () {
sedang = _root.getBytesLoaded();
total = _root.getBytesTotal();
xpersen = Math.floor((sedang / total) * 100);
persen = xpersen + " %";
wpersen = Math.floor(xpersen);
bar_mc.gotoAndStop(wpersen);
if (sedang == total) {
delete this.onEnterFrame;
gotoAndStop ("logo");
}
};
Frame 5
stop();
Frame 10
play();
Frame 36
stop();
start_btn.onRelease = function () {
klik();
gotoAndStop ("main");
};
start_btn.onRollOver = function () {
over();
};
play_btn.onRelease = function () {
klik();
};
play_btn.onRollOver = function () {
over();
};
Frame 50
stop();
back_btn.onRelease = function () {
klik();
gotoAndStop ("main");
};
desert_btn.onRelease = function () {
klik();
jenisArea = 1;
level = 9;
gotoAndStop ("map2");
};
jungle_btn.onRelease = function () {
klik();
jenisArea = 2;
level = 10;
gotoAndStop ("map2");
};
sea_btn.onRelease = function () {
klik();
jenisArea = 3;
level = 11;
gotoAndStop ("map2");
};
town_btn.onRelease = function () {
klik();
jenisArea = 4;
level = 12;
gotoAndStop ("map2");
};
back_btn.onRollOver = function () {
over();
};
desert_btn.onRollOver = function () {
over();
};
jungle_btn.onRollOver = function () {
over();
};
sea_btn.onRollOver = function () {
over();
};
Frame 55
stop();
jenisMode = "RANDOM";
jenisMode2 = "RANDOM";
paused = true;
score = 0;
lifeAr = new Array(1, 1, 1, 1);
lifeKe = 0;
kali = 1;
jenisPindah = 1;
if (jenisArea == 1) {
xmap = "SELECTED MAP : DESERT";
} else if (jenisArea == 2) {
xmap = "SELECTED MAP : JUNGLE";
} else if (jenisArea == 3) {
xmap = "SELECTED MAP : UNDER THE SEA";
} else if (jenisArea == 4) {
xmap = "SELECTED MAP : DOWN TOWN";
}
back_btn.onRelease = function () {
klik();
gotoAndStop ("map");
};
warna3.onRelease = function () {
klik();
banyakWarna = 3;
xlevel = "EASY";
gotoAndStop ("map3");
};
warna4.onRelease = function () {
klik();
banyakWarna = 4;
xlevel = "EASY";
gotoAndStop ("map3");
};
warna5.onRelease = function () {
klik();
banyakWarna = 5;
xlevel = "NORMAL";
gotoAndStop ("map3");
};
warna6.onRelease = function () {
klik();
banyakWarna = 6;
xlevel = "NORMAL";
gotoAndStop ("map3");
};
warna7.onRelease = function () {
klik();
banyakWarna = 7;
xlevel = "HARD";
gotoAndStop ("map3");
};
warna8.onRelease = function () {
klik();
banyakWarna = 8;
xlevel = "HARD";
gotoAndStop ("map3");
};
back_btn.onRollOver = function () {
over();
};
warna3.onRollOver = function () {
over();
};
warna4.onRollOver = function () {
over();
};
warna5.onRollOver = function () {
over();
};
warna6.onRollOver = function () {
over();
};
warna7.onRollOver = function () {
over();
};
Frame 60
stop();
back_btn.onRollOver = (start_btn.onRollOver = (tema_mc.onRollOver = (klik_mc.onRollOver = (down_mc.onRollOver = (up_mc.onRollOver = (side1_mc.onRollOver = (side2_mc.onRollOver = (random_mc.onRollOver = function () {
over();
}))))))));
back_btn.onRelease = function () {
klik();
gotoAndStop ("map2");
};
start_btn.onRelease = function () {
klik();
gotoAndStop ("xgame");
};
if (jenisArea == 1) {
xmap = "SELECTED MAP : DESERT";
} else if (jenisArea == 2) {
xmap = "SELECTED MAP : JUNGLE";
} else if (jenisArea == 3) {
xmap = "SELECTED MAP : UNDER THE SEA";
} else if (jenisArea == 4) {
xmap = "SELECTED MAP : DOWN TOWN";
}
xtotal = "TOTAL OF COLORS : " + banyakWarna;
jenisMode = "RANDOM";
jenisMode2 = "RANDOM";
jenisPlay = "STRATEGY";
xjenisPlay = "STRATEGY";
wjenisPlay = "UNLIMITED";
jenisKu = "TEMA";
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(2);
up_mc.enabled = true;
down_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = false;
tema_mc.gotoAndStop(2);
klik_mc.gotoAndStop(1);
tema_mc.enabled = false;
klik_mc.enabled = true;
tema_mc.onRelease = function () {
klik();
jenisKu = "TEMA";
tema_mc.gotoAndStop(2);
klik_mc.gotoAndStop(1);
tema_mc.enabled = false;
klik_mc.enabled = true;
};
klik_mc.onRelease = function () {
klik();
jenisKu = "KLIK";
tema_mc.gotoAndStop(1);
klik_mc.gotoAndStop(2);
tema_mc.enabled = true;
klik_mc.enabled = false;
};
down_mc.onRelease = function () {
klik();
jenisMode = "DOWN";
jenisMode2 = "";
down_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
down_mc.enabled = false;
up_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = true;
};
up_mc.onRelease = function () {
klik();
jenisMode = "UP";
jenisMode2 = "";
up_mc.gotoAndStop(2);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
up_mc.enabled = false;
down_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = true;
};
side1_mc.onRelease = function () {
klik();
jenisMode = "SIDE1";
jenisMode2 = "";
side1_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
side1_mc.enabled = false;
up_mc.enabled = true;
down_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = true;
};
side2_mc.onRelease = function () {
klik();
jenisMode = "SIDE2";
jenisMode2 = "";
side2_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
side2_mc.enabled = false;
up_mc.enabled = true;
down_mc.enabled = true;
side1_mc.enabled = true;
random_mc.enabled = true;
};
random_mc.onRelease = function () {
klik();
jenisMode = "RANDOM";
jenisMode2 = "RANDOM";
random_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.enabled = false;
up_mc.enabled = true;
down_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
};
Frame 65
stop();
close_btn.onRelease = function () {
klik();
gotoAndStop(tandaBalik2);
};
config_btn.onRelease = function () {
klik();
gotoAndStop ("config");
};
how_btn.onRelease = function () {
klik();
gotoAndStop ("help");
};
close_btn.onRollOver = function () {
over();
};
config_btn.onRollOver = function () {
over();
};
how_btn.onRollOver = function () {
over();
};
Frame 70
stop();
back_btn.onRelease = function () {
klik();
gotoAndStop ("option");
};
back_btn.onRollOver = function () {
over();
};
bar1_mc.bar_mc._x = int((_root.volume1 / 0.434782608695652) - 115);
bar1_mc.bar_mc.onEnterFrame = function () {
_root.volume1 = int(0.434782608695652 * (this._x + 115));
i = 1;
while (i <= 12) {
_root.xmusic.setVolume(_root.volume1);
i++;
}
bar1_mc.persen1 = _root.volume1 + " %";
};
bar1_mc.bar_mc.onRollOver = function () {
_root.over();
};
bar1_mc.indi_mc.onPress = function () {
_root.klik();
startDrag (bar1_mc.bar_mc, true, -115, 0, 115, 0);
};
bar1_mc.indi_mc.onRelease = (bar1_mc.indi_mc.onReleaseOutside = function () {
_root.klik();
stopDrag();
});
bar2_mc.bar_mc._x = int((_root.volume2 / 0.434782608695652) - 115);
bar2_mc.bar_mc.onEnterFrame = function () {
_root.volume2 = int(0.434782608695652 * (this._x + 115));
i = 1;
while (i <= 12) {
_root.xsound.setVolume(_root.volume2);
i++;
}
bar2_mc.persen2 = _root.volume2 + " %";
};
bar2_mc.bar_mc.onRollOver = function () {
_root.over();
};
bar2_mc.indi_mc.onPress = function () {
_root.klik();
startDrag (bar2_mc.bar_mc, true, -115, 0, 115, 0);
};
bar2_mc.indi_mc.onRelease = (bar2_mc.indi_mc.onReleaseOutside = function () {
_root.klik();
stopDrag();
});
Frame 80
play();
trace(score);
Frame 81
function cekFrame() {
frame_mc.but1.gotoAndStop(1);
frame_mc.but2.gotoAndStop(1);
frame_mc.but3.gotoAndStop(1);
frame_mc.but4.gotoAndStop(1);
if (jenisPindah == 1) {
frame_mc.but1.gotoAndStop(2);
} else if (jenisPindah == 2) {
frame_mc.but2.gotoAndStop(2);
} else if (jenisPindah == 3) {
frame_mc.but3.gotoAndStop(2);
} else if (jenisPindah == 4) {
frame_mc.but4.gotoAndStop(2);
}
}
function kontrol() {
menu_mc.restart2_btn.onRollOver = (menu_mc.exit2_btn.onRollOver = (menu_mc.tema_mc.onRollOver = (menu_mc.pause2_btn.onRollOver = (menu_mc.top2_btn.onRollOver = (menu_mc.help2_btn.onRollOver = function () {
over();
})))));
menu_mc.restart2_btn.onRelease = function () {
klik();
hapusSemua();
delete _root.onEnterFrame;
gotoAndStop ("main");
};
menu_mc.exit2_btn.onRelease = function () {
klik();
fscommand ("quit");
};
menu_mc.tema_mc.onRelease = function () {
klik();
if (jenisPlay == "CLASSIC") {
if (menu_mc.line >= 1) {
if (this._currentframe == 1) {
score = score + (5 * level);
bisaTombol2(false, 25);
paused = false;
this.gotoAndPlay(2);
}
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
if (this._currentframe == 1) {
score = score + (5 * level);
bisaTombol2(false, 25);
paused = false;
this.gotoAndPlay(2);
}
} else if (jenisPlay == "PUZZLE") {
bisaTombol2(false, 25);
paused = false;
this.gotoAndPlay(2);
}
};
menu_mc.pause2_btn.onRelease = function () {
klik();
if (paused == true) {
saveCube();
hilangCube();
paused = false;
pause_mc.gotoAndStop(2);
bisaTombol(false, 25);
posisiLagu = Math.ceil(xmusic.position / 1000);
xmusic.stop();
} else {
loadCube();
paused = true;
pause_mc.gotoAndStop(1);
bisaTombol(true, 100);
xmusic.start(posisiLagu, 1);
xmusic.onSoundComplete = function () {
backMusic();
};
}
};
menu_mc.top2_btn.onRelease = function () {
klik();
backMenu();
saveCube();
hilangCube();
hapusSemua();
paused = false;
pause_mc.gotoAndStop(2);
tandaBalik = "game1";
delete _root.onEnterFrame;
gotoAndStop ("top2");
};
menu_mc.help2_btn.onRelease = function () {
klik();
backMenu();
saveCube();
hilangCube();
hapusSemua();
paused = false;
pause_mc.gotoAndStop(2);
delete _root.onEnterFrame;
tandaBalik2 = "xgame";
gotoAndStop ("option");
};
}
function hilangCube() {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
this["kubus" + volum].gotoAndStop(kubusHilang);
this["kubus" + volum].enabled = false;
k++;
}
j++;
}
i++;
}
}
function saveCube() {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
simpanCube[i][j][k] = this["kubus" + volum]._currentframe;
k++;
}
j++;
}
i++;
}
}
function loadCube() {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
this["kubus" + volum].gotoAndStop(simpanCube[i][j][k]);
this["kubus" + volum].jenis_mc.gotoAndStop(jenisKubus);
this["kubus" + volum].enabled = true;
k++;
}
j++;
}
i++;
}
}
function bisaTombol(enable, alpha) {
menu_mc.top2_btn.enabled = enable;
menu_mc.help2_btn.enabled = enable;
menu_mc.restart2_btn.enabled = enable;
menu_mc.exit2_btn.enabled = enable;
menu_mc.tema_mc.enabled = enable;
menu_mc.top2_btn._alpha = alpha;
menu_mc.help2_btn._alpha = alpha;
menu_mc.restart2_btn._alpha = alpha;
menu_mc.exit2_btn._alpha = alpha;
}
function bisaTombol2(enable, alpha) {
menu_mc.top2_btn.enabled = enable;
menu_mc.help2_btn.enabled = enable;
menu_mc.restart2_btn.enabled = enable;
menu_mc.exit2_btn.enabled = enable;
menu_mc.pause2_btn.enabled = enable;
menu_mc.tema_mc.enabled = enable;
menu_mc.top2_btn._alpha = alpha;
menu_mc.help2_btn._alpha = alpha;
menu_mc.restart2_btn._alpha = alpha;
menu_mc.exit2_btn._alpha = alpha;
menu_mc.pause2_btn._alpha = alpha;
}
function znaik() {
if (paused == true) {
xnaik();
}
}
function xnaik() {
if (((jenisPlay != "STRATEGY") && (jenisPlay != "PUZZLE")) || (jenisMenang == "bonus")) {
counterNaik--;
if (counterNaik <= 0) {
if (jenisPlay == "CLASSIC") {
bisaTombol2(false, 25);
paused = false;
menu_mc.tema_mc.gotoAndPlay(2);
} else if (jenisPlay == "TIME TRIAL") {
bisaTombol2(false, 25);
paused = false;
clearInterval(idNaik);
semuaLedak();
idLanjut = setInterval(lanjut, 2000);
paused = false;
}
}
}
}
function ubahNaik() {
bisaTombol2(true, 100);
adaAtas = false;
satuKaliAja = true;
if (jenisPlay == "CLASSIC") {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
ubahVolum("i", "j", "k", "volum");
if (this["kubus" + volum]._currentframe <= kotakBatas) {
adaAtas = true;
i = panjang;
j = lebar;
}
j++;
}
i++;
}
if (wjenisPlay != "UNLIMITED") {
if (adaAtas == true) {
if (lifeKe <= 3) {
lanjut_mc.gotoAndStop("xloading");
menu_mc["life" + lifeKe].gotoAndPlay("hilang");
lifeAr[lifeKe] = 0;
lifeKe++;
clearInterval(idNaik);
semuaLedak();
idLanjut3 = setInterval(lanjut3, 2000);
paused = false;
i = 0;
while (i <= lifeAr.length) {
if ((jenisPlay == "CLASSIC") || (jenisPlay == "PUZZLE")) {
if (lifeAr[i] == 1) {
menu_mc["life" + i]._visible = true;
} else {
menu_mc["life" + i]._visible = false;
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
menu_mc["life" + i]._visible = false;
}
i++;
}
} else {
clearInterval(idNaik);
semuaLedak();
idLanjut2 = setInterval(lanjut2, 2000);
paused = false;
}
} else {
line--;
if (line == 2) {
alarm();
}
if (line <= 0) {
clearInterval(idNaik);
semuaLedak();
idLanjut = setInterval(lanjut, 2000);
paused = false;
} else {
paused = true;
masihRandom = false;
counterNaik = batasCounter;
naikAtas();
}
}
}
} else if (jenisPlay == "TIME TRIAL") {
paused = true;
masihRandom = false;
if (jenisMode2 == "RANDOM") {
xrandMode = random(4);
if (xrandMode == 0) {
jenisMode = "UP";
} else if (xrandMode == 1) {
jenisMode = "DOWN";
} else if (xrandMode == 2) {
jenisMode = "SIDE1";
} else if (xrandMode == 3) {
jenisMode = "SIDE2";
}
}
if (jenisMode == "UP") {
naikAtas();
} else if (jenisMode == "DOWN") {
turunBawah();
} else if (jenisMode == "SIDE1") {
sampingKiri();
} else if (jenisMode == "SIDE2") {
sampingKanan();
}
if (tandaMode == "RANDOM") {
jenisMode = "RANDOM";
}
} else if (jenisPlay == "STRATEGY") {
kurangStrategy();
} else if (jenisPlay == "PUZZLE") {
cekPuzzle();
}
}
function cekPuzzle() {
adaSisa = false;
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
if (this["kubus" + volum]._currentframe != kubusHilang) {
adaSisa = true;
i = panjang;
j = lebar;
k = tinggi;
}
k++;
}
j++;
}
i++;
}
clearInterval(idNaik);
semuaLedak();
paused = false;
if (adaSisa == false) {
idLanjut = setInterval(lanjut, 2000);
} else if (lifeKe <= 3) {
lanjut_mc.gotoAndStop("xloading");
menu_mc["life" + lifeKe].gotoAndPlay("hilang");
lifeAr[lifeKe] = 0;
lifeKe++;
clearInterval(idNaik);
semuaLedak();
idUlangLagi = setInterval(ulangLagi, 4000);
paused = false;
i = 0;
while (i <= lifeAr.length) {
if ((jenisPlay == "CLASSIC") || (jenisPlay == "PUZZLE")) {
if (lifeAr[i] == 1) {
menu_mc["life" + i]._visible = true;
} else {
menu_mc["life" + i]._visible = false;
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
menu_mc["life" + i]._visible = false;
}
i++;
}
} else {
clearInterval(idNaik);
semuaLedak();
idLanjut2 = setInterval(lanjut2, 2000);
paused = false;
}
}
function ulangLagi() {
clearInterval(idUlangLagi);
lanjut_mc.gotoAndStop(1);
bisaTombol2(true, 100);
init();
reset();
buatKubus();
kontrol();
jenisMenang = "level";
}
function kurangStrategy() {
paused = true;
masihRandom = false;
if (jenisKu == "TEMA") {
if (jenisMode2 == "RANDOM") {
xrandMode = random(4);
if (xrandMode == 0) {
jenisMode = "UP";
} else if (xrandMode == 1) {
jenisMode = "DOWN";
} else if (xrandMode == 2) {
jenisMode = "SIDE1";
} else if (xrandMode == 3) {
jenisMode = "SIDE2";
}
}
tambahK = 5;
}
if (wjenisPlay != "UNLIMITED") {
line--;
if (line == 2) {
alarm();
}
if (line <= 0) {
clearInterval(idNaik);
semuaLedak();
idLanjut = setInterval(lanjut, 2000);
paused = false;
} else {
paused = true;
masihRandom = false;
counterNaik = batasCounter;
naikTurun();
}
} else {
paused = true;
masihRandom = false;
counterNaik = batasCounter;
naikTurun();
}
}
function naikTurun() {
if (jenisMode == "UP") {
i = panjang - tambahK;
while (i <= panjang) {
j = lebar - tambahK;
while (j <= lebar) {
k = 0;
while (k <= (tinggi - 1)) {
ubahVolum("i", "j", "k", "volum1");
k2 = k + 1;
ubahVolum("i", "j", "k2", "volum2");
randWarna = random(banyakWarna) + 1;
this["kubus" + volum1].gotoAndStop(this["kubus" + volum2]._currentframe);
this["kubus" + volum1].jenis_mc.gotoAndStop(jenisKubus);
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
k++;
}
j++;
}
i++;
}
} else if (jenisMode == "DOWN") {
i = panjang - tambahK;
while (i <= panjang) {
j = lebar - tambahK;
while (j <= lebar) {
k2 = akk - 2;
if (k2 <= 0) {
k2 = 0;
}
ubahVolum("i", "j", "k2", "volum2");
if (this["kubus" + volum2]._currentframe == kubusHilang) {
randWarna = random(banyakWarna) + 1;
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
}
j++;
}
i++;
}
} else if (jenisMode == "SIDE1") {
i = panjang - tambahK;
while (i <= panjang) {
k = tinggi - tambahK;
while (k <= tinggi) {
j = 0;
ubahVolum("i", "j", "k", "volum2");
if (this["kubus" + volum2]._currentframe == kubusHilang) {
randWarna = random(banyakWarna) + 1;
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
}
k++;
}
i++;
}
} else if (jenisMode == "SIDE2") {
j = lebar - tambahK;
while (j <= lebar) {
k = tinggi - tambahK;
while (k <= tinggi) {
i = 0;
ubahVolum("i", "j", "k", "volum2");
if (this["kubus" + volum2]._currentframe == kubusHilang) {
randWarna = random(banyakWarna) + 1;
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
}
k++;
}
j++;
}
}
}
function turunBawah() {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k2 = akk - 2;
if (k2 <= 0) {
k2 = 0;
}
ubahVolum("i", "j", "k2", "volum2");
randWarna = random(banyakWarna) + 1;
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
g = 0;
while (g <= acak2.length) {
if (line == acak2[i]) {
if (batasBonus > 0) {
if (masihRandom == false) {
randMuncul = random(4);
randomBom = random(100);
if (randomBom <= 30) {
if (randMuncul == 0) {
randWarna2 = random(banyakWarna) + 10;
this["kubus" + volum2].gotoAndStop(randWarna2);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 1) {
this["kubus" + volum2].gotoAndStop(18);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 2) {
this["kubus" + volum2].gotoAndStop(19);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 3) {
this["kubus" + volum2].gotoAndStop(20);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
}
}
}
}
}
g++;
}
j++;
}
i++;
}
}
function naikAtas() {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= (tinggi - 1)) {
ubahVolum("i", "j", "k", "volum1");
k2 = k + 1;
ubahVolum("i", "j", "k2", "volum2");
randWarna = random(banyakWarna) + 1;
this["kubus" + volum1].gotoAndStop(this["kubus" + volum2]._currentframe);
this["kubus" + volum1].jenis_mc.gotoAndStop(jenisKubus);
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
g = 0;
while (g <= acak2.length) {
if (line == acak2[i]) {
if (k == (tinggi - 1)) {
if (batasBonus > 0) {
if (masihRandom == false) {
randMuncul = random(4);
randomBom = random(100);
if (randomBom <= 30) {
if (randMuncul == 0) {
randWarna2 = random(banyakWarna) + 10;
this["kubus" + volum2].gotoAndStop(randWarna2);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 1) {
this["kubus" + volum2].gotoAndStop(18);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 2) {
this["kubus" + volum2].gotoAndStop(19);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 3) {
this["kubus" + volum2].gotoAndStop(20);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
}
}
}
}
}
}
g++;
}
k++;
}
j++;
}
i++;
}
}
function sampingKiri() {
i = 0;
while (i <= panjang) {
k = 0;
while (k <= tinggi) {
j = 0;
ubahVolum("i", "j", "k", "volum2");
randWarna = random(banyakWarna) + 1;
if (this["kubus" + volum2]._currentframe == kubusHilang) {
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
g = 0;
while (g <= acak2.length) {
if (line == acak2[i]) {
if (k == (tinggi - 1)) {
if (batasBonus > 0) {
if (masihRandom == false) {
randMuncul = random(4);
randomBom = random(100);
if (randomBom <= 30) {
if (randMuncul == 0) {
randWarna2 = random(banyakWarna) + 10;
this["kubus" + volum2].gotoAndStop(randWarna2);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 1) {
this["kubus" + volum2].gotoAndStop(18);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 2) {
this["kubus" + volum2].gotoAndStop(19);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 3) {
this["kubus" + volum2].gotoAndStop(20);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
}
}
}
}
}
}
g++;
}
}
k++;
}
i++;
}
}
function sampingKanan() {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
i = 0;
ubahVolum("i", "j", "k", "volum2");
randWarna = random(banyakWarna) + 1;
if (this["kubus" + volum2]._currentframe == kubusHilang) {
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
g = 0;
while (g <= acak2.length) {
if (line == acak2[i]) {
if (k == (tinggi - 1)) {
if (batasBonus > 0) {
if (masihRandom == false) {
randMuncul = random(4);
randomBom = random(100);
if (randomBom <= 30) {
if (randMuncul == 0) {
randWarna2 = random(banyakWarna) + 10;
this["kubus" + volum2].gotoAndStop(randWarna2);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 1) {
this["kubus" + volum2].gotoAndStop(18);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 2) {
this["kubus" + volum2].gotoAndStop(19);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
} else if (randMuncul == 3) {
this["kubus" + volum2].gotoAndStop(20);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
batasBonus--;
masihRandom = true;
}
}
}
}
}
}
g++;
}
}
k++;
}
j++;
}
}
function semuaLedak() {
missle();
bisaTombol2(false, 25);
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
if (this["kubus" + volum]._currentframe <= kotakBatas) {
myColor = new Color(this["kubus" + volum].ledak_mc);
myColor.setRGB(myWarna[this["kubus" + volum]._currentframe - 1]);
this["kubus" + volum].gotoAndPlay(kubusHilang);
this["kubus" + volum].ledak_mc.gotoAndPlay(2);
}
k++;
}
j++;
}
i++;
}
}
function lanjut() {
hapusSemua2();
paused = false;
bisaTombol2(false, 25);
lanjut_mc.gotoAndPlay("lanjut");
menu_mc.line = 0;
menu_mc.waktu = 0;
}
function lanjut2() {
hapusSemua();
gotoAndStop ("lose");
}
function lanjut3() {
lanjut_mc.gotoAndStop(1);
init();
hapusSemua2();
reset();
buatKubus();
kontrol();
bisaTombol2(true, 100);
jenisMenang = "level";
}
function levelKubus() {
if (((level == 1) || (level == 5)) || (level == 9)) {
jenisKubus = 1;
} else if (((level == 2) || (level == 6)) || (level == 10)) {
jenisKubus = 2;
} else if (((level == 3) || (level == 7)) || (level == 11)) {
jenisKubus = 3;
} else if (((level == 4) || (level == 8)) || (level == 12)) {
jenisKubus = 4;
}
}
function mulai() {
bisaTombol2(true, 100);
level++;
levelKubus();
if (level >= batasLevel) {
hapusSemua();
gotoAndStop ("win");
} else {
kali++;
if (jenisPlay == "CLASSIC") {
line = 5 * kali;
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "PUZZLE")) {
line = 0;
} else if (jenisPlay == "STRATEGY") {
if (wjenisPlay == "UNLIMITED") {
line = 0;
} else {
line = 10 * kali;
}
}
xbatasLine = line;
jenisArea++;
if (jenisArea > 4) {
jenisArea = 1;
}
if (level <= 4) {
xlevel = "EASY";
} else if (level <= 8) {
xlevel = "NORMAL";
} else {
xlevel = "HARD";
}
if (level == 5) {
kali = 2;
} else if (level == 9) {
kali = 3;
}
jenisMenang = "level";
gotoAndStop ("xgame");
}
}
function bonusLevel() {
xbonusLevel();
}
function xbonusLevel() {
clearInterval(idBonusLevel);
backLevelBonus();
jenisKubus = 5;
i = panjang - 3;
while (i <= panjang) {
j = lebar - 3;
while (j <= lebar) {
k = tinggi;
while (k >= (tinggi - 2)) {
ubahVolum("i", "j", "k", "volum0");
if (xlevel == "EASY") {
randx = random(2) + 1;
} else if (xlevel == "NORMAL") {
randx = random(3) + 3;
} else if (xlevel == "HARD") {
randx = random(3) + 6;
}
this["kubus" + volum0].gotoAndStop(randx);
this["kubus" + volum0].jenis_mc.gotoAndStop(jenisKubus);
k--;
}
j++;
}
i++;
}
tambahK = 3;
counterNaik = xpengali * 40;
paused = true;
idWaktuBonus = setInterval(countdown, 1000);
}
function countdown() {
if ((jenisPlay != "STRATEGY") || (jenisMenang == "bonus")) {
counterNaik--;
if (counterNaik <= 0) {
clearInterval(idWaktuBonus);
paused = false;
semuaLedak();
lanjut_mc.gotoAndPlay("lanjut");
menu_mc.line = 0;
menu_mc.waktu = 0;
levelKubus();
}
}
}
function mulai2() {
if (xlevel == "EASY") {
backEasy();
} else if (xlevel == "NORMAL") {
backNormal();
} else if (xlevel == "HARD") {
backHard();
}
bisaTombol2(true, 100);
kali++;
if (jenisPlay == "CLASSIC") {
line = 5 * kali;
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "PUZZLE")) {
line = 0;
} else if (jenisPlay == "STRATEGY") {
if (wjenisPlay == "UNLIMITED") {
line = 0;
} else {
line = 10 * kali;
}
}
xbatasLine = line;
level++;
jenisArea++;
if (jenisArea > 4) {
jenisArea = 1;
}
if (level <= 4) {
xlevel = "EASY";
} else if (level <= 8) {
xlevel = "NORMAL";
} else {
xlevel = "HARD";
}
if (level == 5) {
kali = 2;
} else if (level == 9) {
kali = 3;
}
jenisMenang = "level";
gotoAndStop ("xgame");
}
function initAwal() {
panjang = 5;
lebar = 5;
tinggi = 4;
kubusHilang = 40;
kotakBatas = 39;
xbatasLine = line;
tambahK = 3;
kali++;
if (jenisPlay == "CLASSIC") {
line = 5 * kali;
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "PUZZLE")) {
line = 0;
} else if (jenisPlay == "STRATEGY") {
if (wjenisPlay == "UNLIMITED") {
line = 0;
} else {
line = 10 * kali;
}
}
angka = [];
acak2 = [];
i = 0;
while (i <= line) {
angka[i] = i;
i++;
}
i = 0;
while (i <= int(line / 2)) {
acak = random(angka.length);
acak2[i] = angka[acak];
angka[acak] = null;
angka.sort();
angka.pop();
i++;
}
i = 0;
while (i <= lifeAr.length) {
if (jenisPlay == "CLASSIC") {
if (lifeAr[i] == 1) {
menu_mc["life" + i]._visible = true;
} else {
menu_mc["life" + i]._visible = false;
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
menu_mc["life" + i]._visible = false;
}
i++;
}
levelKubus();
jenisMenang = "level";
}
function init2() {
kedalaman = (panjang * lebar) * tinggi;
zluas = kedalaman;
}
function init() {
batasBonus = 15;
akk = tinggi;
kedalaman = (panjang * lebar) * tinggi;
zluas = kedalaman;
paused = true;
satuKaliAja = true;
if (jenisPlay == "CLASSIC") {
counterNaik = 40;
} else if (jenisPlay == "TIME TRIAL") {
counterNaik = level * 40;
} else if ((jenisPlay == "STRATEGY") || (jenisPlay == "PUZZLE")) {
counterNaik = 0;
}
batasCounter = counterNaik;
if (wjenisPlay != "UNLIMITED") {
if (level <= 2) {
banyakWarna = 3;
} else if (level <= 4) {
banyakWarna = 4;
} else if (level <= 6) {
banyakWarna = 5;
} else if (level <= 8) {
banyakWarna = 6;
} else if (level <= 10) {
banyakWarna = 7;
} else if (level <= 12) {
banyakWarna = 8;
}
}
if (jenisPlay == "STRATEGY") {
if (wjenisPlay != "UNLIMITED") {
if (level <= 4) {
banyakWarna = 2;
} else if (level <= 8) {
banyakWarna = 3;
} else {
banyakWarna = 4;
}
}
}
pause_mc.gotoAndStop(1);
lanjut_mc.gotoAndStop(1);
simpanCube = new Array();
i = 0;
while (i <= panjang) {
simpanCube[i] = new Array();
j = 0;
while (j <= lebar) {
simpanCube[i][j] = new Array();
k = 0;
while (k <= tinggi) {
simpanCube[i][j][k] = 0;
k++;
}
j++;
}
i++;
}
naik = new Array();
jmlHilang = 1;
acak = new Array();
ii = new Array();
jj = new Array();
kk = new Array();
iiMin = new Array();
iiPlus = new Array();
jjMin = new Array();
jjPlus = new Array();
kkMin = new Array();
kkPlus = new Array();
myWarna = new Array("0xFF0000", "0x00FF00", "0x0000FF", "0xCCCC00", "0x9900FF", "0x999999", "0xCC9900", "0x99FFFF", "0x000000");
}
function hapusSemua() {
clearInterval(idNaik);
clearInterval(idLanjut);
clearInterval(idLanjut2);
clearInterval(idLanjut3);
clearInterval(idDelay);
clearInterval(idBonusLevel);
clearInterval(idBonusLevel2);
clearInterval(idWaktuBonus);
clearInterval(idBuatKubus);
i = 0;
while (i <= (panjang + 5)) {
j = 0;
while (j <= (lebar + 5)) {
k = 0;
while (k <= (tinggi + 5)) {
ubahVolum("i", "j", "k", "volum");
namaBaru = "kubus" + volum;
removeMovieClip(this[namaBaru]);
this[namaBaru]._visible = false;
k++;
}
j++;
}
i++;
}
removeMovieClip(menu_mc);
removeMovieClip(garis_mc);
removeMovieClip(orang_mc);
removeMovieClip(lanjut_mc);
removeMovieClip(bonus_mc);
removeMovieClip(pause_mc);
removeMovieClip(frame_mc);
menu_mc._visible = false;
garis_mc._visible = false;
orang_mc._visible = false;
lanjut_mc._visible = false;
bonus_mc._visible = false;
pause_mc._visible = false;
frame_mc._visible = false;
}
function hapusSemua2() {
clearInterval(idNaik);
clearInterval(idLanjut);
clearInterval(idLanjut2);
clearInterval(idLanjut3);
clearInterval(idDelay);
clearInterval(idBonusLevel);
clearInterval(idBonusLevel2);
clearInterval(idWaktuBonus);
clearInterval(idBuatKubus);
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
namaBaru = "kubus" + volum;
removeMovieClip(this[namaBaru]);
k++;
}
j++;
}
i++;
}
}
function hapusSemua3() {
clearInterval(idNaik);
clearInterval(idLanjut);
clearInterval(idLanjut2);
clearInterval(idLanjut3);
clearInterval(idDelay);
clearInterval(idBonusLevel);
clearInterval(idBonusLevel2);
clearInterval(idWaktuBonus);
clearInterval(idBuatKubus);
}
function buatKubus() {
if (jenisPlay == "PUZZLE") {
ymapping0 = [[3, 1, 2, 1, 1, 1, 3], [2, 2, 1, 2, 2, 2, 2], [1, 2, 1, 3, 1, 3, 1], [2, 2, 2, 2, 2, 2, 2], [1, 3, 1, 3, 1, 3, 1], [2, 2, 1, 2, 2, 2, 2], [3, 1, 1, 2, 1, 1, 3]];
ymapping1 = [[1, 2, 2, 1, 1, 1, 1], [2, 3, 2, 1, 1, 3, 2], [2, 1, 1, 3, 2, 1, 2], [2, 3, 1, 1, 1, 2, 2], [2, 1, 2, 3, 1, 1, 2], [2, 3, 2, 1, 1, 3, 1], [1, 2, 2, 1, 2, 1, 1]];
ymapping2 = [[3, 1, 1, 1, 1, 1, 3], [2, 2, 1, 1, 2, 2, 2], [1, 3, 1, 3, 1, 1, 1], [2, 2, 2, 1, 2, 2, 2], [1, 1, 1, 3, 1, 3, 1], [2, 2, 2, 1, 2, 2, 2], [3, 1, 1, 1, 1, 1, 3]];
ymapping3 = [[1, 1, 2, 1, 2, 1, 1], [2, 3, 1, 1, 1, 3, 2], [2, 1, 1, 3, 2, 1, 1], [2, 3, 1, 1, 1, 3, 2], [2, 1, 1, 3, 2, 1, 1], [2, 3, 1, 1, 1, 1, 2], [1, 1, 2, 1, 2, 1, 1]];
ymapping4 = [[3, 1, 1, 1, 1, 1, 3], [2, 3, 1, 1, 1, 4, 4], [2, 1, 4, 3, 2, 1, 1], [2, 3, 1, 1, 4, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [1, 1, 2, 1, 2, 1, 1]];
ymapping5 = [[3, 1, 1, 4, 1, 1, 3], [3, 1, 1, 1, 1, 1, 3], [1, 3, 3, 3, 1, 3, 4], [2, 2, 2, 4, 2, 2, 2], [1, 1, 1, 3, 4, 3, 1], [3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 1, 1, 4, 3]];
ymapping6 = [[3, 1, 1, 1, 4, 1, 3], [3, 1, 1, 1, 1, 1, 3], [1, 3, 1, 1, 1, 3, 4], [3, 1, 1, 1, 1, 1, 3], [1, 1, 1, 3, 4, 3, 1], [3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 4, 1, 1, 3]];
xmapping0 = [[3, 1, 1, 1, 1, 1, 3], [2, 2, 2, 2, 2, 2, 2], [1, 3, 1, 3, 1, 3, 1], [2, 2, 2, 2, 2, 2, 2], [1, 3, 1, 3, 1, 3, 1], [2, 2, 2, 2, 2, 2, 2], [3, 1, 1, 1, 1, 1, 3]];
xmapping1 = [[1, 1, 2, 1, 2, 1, 1], [2, 3, 1, 1, 1, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [1, 1, 2, 1, 2, 1, 1]];
xmapping2 = [[3, 1, 1, 1, 1, 1, 3], [2, 2, 2, 2, 2, 2, 2], [1, 3, 1, 3, 1, 3, 1], [2, 2, 2, 2, 2, 2, 2], [1, 3, 1, 3, 1, 3, 1], [2, 2, 2, 2, 2, 2, 2], [3, 1, 1, 1, 1, 1, 3]];
xmapping3 = [[1, 1, 2, 1, 2, 1, 1], [2, 3, 1, 1, 1, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [1, 1, 2, 1, 2, 1, 1]];
xmapping4 = [[3, 1, 1, 1, 1, 1, 3], [2, 3, 1, 1, 1, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [1, 1, 2, 1, 2, 1, 1]];
xmapping5 = [[3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 1, 1, 1, 3], [1, 3, 1, 3, 1, 3, 1], [2, 2, 2, 2, 2, 2, 2], [1, 3, 1, 3, 1, 3, 1], [3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 1, 1, 1, 3]];
xmapping6 = [[3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 1, 1, 1, 3], [1, 3, 1, 3, 1, 3, 1], [3, 1, 1, 1, 1, 1, 3], [1, 3, 1, 3, 1, 3, 1], [3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 1, 1, 1, 3]];
zmapping0 = [[3, 1, 2, 1, 4, 1, 3], [2, 2, 1, 2, 4, 2, 2], [1, 2, 1, 4, 1, 3, 1], [2, 2, 4, 2, 2, 2, 2], [1, 3, 4, 3, 1, 3, 1], [2, 2, 1, 4, 2, 2, 2], [3, 1, 1, 2, 1, 1, 3]];
zmapping1 = [[1, 2, 2, 1, 4, 1, 1], [2, 3, 2, 1, 4, 3, 2], [2, 1, 4, 3, 2, 1, 2], [2, 3, 4, 1, 1, 2, 2], [2, 1, 2, 3, 4, 1, 2], [2, 3, 2, 4, 1, 3, 1], [1, 2, 2, 1, 2, 1, 1]];
zmapping2 = [[3, 1, 1, 4, 1, 1, 3], [2, 2, 1, 4, 2, 2, 2], [1, 3, 1, 3, 1, 4, 1], [2, 2, 4, 1, 2, 2, 2], [1, 1, 4, 3, 1, 3, 1], [2, 2, 4, 1, 2, 2, 2], [3, 1, 1, 1, 1, 1, 3]];
zmapping3 = [[1, 1, 2, 4, 2, 1, 1], [2, 3, 4, 1, 1, 3, 2], [2, 4, 1, 3, 2, 1, 1], [2, 3, 4, 1, 1, 3, 2], [2, 1, 4, 3, 2, 1, 1], [2, 3, 4, 1, 1, 1, 2], [1, 1, 2, 1, 2, 1, 1]];
zmapping4 = [[3, 1, 1, 1, 1, 1, 3], [2, 3, 1, 1, 1, 4, 4], [2, 1, 4, 3, 2, 1, 1], [2, 3, 1, 1, 4, 3, 2], [2, 1, 2, 3, 2, 1, 2], [2, 3, 1, 1, 1, 3, 2], [1, 1, 2, 1, 2, 1, 1]];
zmapping5 = [[3, 1, 1, 4, 1, 1, 3], [3, 1, 1, 1, 1, 1, 3], [1, 3, 3, 3, 1, 3, 4], [2, 2, 2, 4, 2, 2, 2], [1, 1, 1, 3, 4, 3, 1], [3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 1, 1, 4, 3]];
zmapping6 = [[3, 1, 1, 1, 4, 1, 3], [3, 1, 1, 1, 1, 1, 3], [1, 3, 1, 1, 1, 3, 4], [3, 1, 1, 1, 1, 1, 3], [1, 1, 1, 3, 4, 3, 1], [3, 1, 1, 1, 1, 1, 3], [3, 1, 1, 4, 1, 1, 3]];
}
if (jenisArea == 1) {
zkubusX = 262;
zkubusY = 122;
} else if (jenisArea == 2) {
zkubusX = 272;
zkubusY = 152;
} else if (jenisArea == 3) {
zkubusX = 275;
zkubusY = 155;
} else if (jenisArea == 4) {
zkubusX = 272;
zkubusY = 183;
}
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
namaBaru = "kubus" + volum;
randWarna = random(banyakWarna) + 1;
attachMovie("kubus_mc", namaBaru, kedalaman);
this[namaBaru].gotoAndStop(randWarna);
this[namaBaru]._x = 1.75 * ((zkubusX + (j * 18)) - (i * 18));
this[namaBaru]._y = 1.75 * (((zkubusY - (j * 10)) - (i * 10)) + (k * 18));
if (k <= 3) {
this[namaBaru].gotoAndStop(kubusHilang);
}
if (jenisPlay == "PUZZLE") {
if (level == 1) {
if (k == 4) {
this[namaBaru].gotoAndStop(ymapping0[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 2) {
if (k == 4) {
this[namaBaru].gotoAndStop(ymapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(ymapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 3) {
if (k == 4) {
this[namaBaru].gotoAndStop(ymapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(ymapping1[i][j]);
} else if (k == 2) {
this[namaBaru].gotoAndStop(ymapping2[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 4) {
if (k == 4) {
this[namaBaru].gotoAndStop(ymapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(ymapping1[i][j]);
} else if (k == 2) {
this[namaBaru].gotoAndStop(xmapping2[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 5) {
if (k == 4) {
this[namaBaru].gotoAndStop(xmapping0[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 6) {
if (k == 4) {
this[namaBaru].gotoAndStop(xmapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(xmapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 7) {
if (k == 4) {
this[namaBaru].gotoAndStop(xmapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(xmapping1[i][j]);
} else if (k == 2) {
this[namaBaru].gotoAndStop(xmapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 8) {
if (k == 4) {
this[namaBaru].gotoAndStop(xmapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(xmapping1[i][j]);
} else if (k == 2) {
this[namaBaru].gotoAndStop(zmapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 9) {
if (k == 4) {
this[namaBaru].gotoAndStop(zmapping0[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 10) {
if (k == 4) {
this[namaBaru].gotoAndStop(zmapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(zmapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 11) {
if (k == 4) {
this[namaBaru].gotoAndStop(zmapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(zmapping1[i][j]);
} else if (k == 2) {
this[namaBaru].gotoAndStop(zmapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
} else if (level == 12) {
if (k == 4) {
this[namaBaru].gotoAndStop(xmapping0[i][j]);
} else if (k == 3) {
this[namaBaru].gotoAndStop(ymapping1[i][j]);
} else if (k == 2) {
this[namaBaru].gotoAndStop(zmapping1[i][j]);
} else {
this[namaBaru].gotoAndStop(kubusHilang);
}
}
}
this[namaBaru].jenis_mc.gotoAndStop(jenisKubus);
kedalaman--;
k++;
}
j++;
}
i++;
}
kedalaman--;
_root.attachMovie("area_mc", "menu_mc", kedalaman);
if (jenisPlay == "CLASSIC") {
menu_mc.limit_mc._visible = true;
} else {
menu_mc.limit_mc._visible = false;
}
if (jenisArea == 1) {
menu_mc.gotoAndStop(1);
} else if (jenisArea == 2) {
menu_mc.gotoAndStop(10);
} else if (jenisArea == 3) {
menu_mc.gotoAndStop(20);
} else if (jenisArea == 4) {
menu_mc.gotoAndStop(30);
}
menu_mc._x = 400;
menu_mc._y = 300;
i = 0;
while (i <= lifeAr.length) {
if ((jenisPlay == "CLASSIC") || (jenisPlay == "PUZZLE")) {
if (lifeAr[i] == 1) {
menu_mc["life" + i]._visible = true;
} else {
menu_mc["life" + i]._visible = false;
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
menu_mc["life" + i]._visible = false;
}
i++;
}
idNaik = setInterval(znaik, 1000);
}
function ubahVolum(i, j, k, volum) {
if (((this[i] < 10) && (this[j] < 10)) && (this[k] < 10)) {
this[volum] = (((("0" + String(this[i])) + "0") + String(this[j])) + "0") + String(this[k]);
} else if (((this[i] > 10) && (this[j] < 10)) && (this[k] < 10)) {
this[volum] = (((String(this[i]) + "0") + String(this[j])) + "0") + String(this[k]);
} else if (((this[i] < 10) && (this[j] > 10)) && (this[k] < 10)) {
this[volum] = ((("0" + String(this[i])) + String(this[j])) + "0") + String(this[k]);
} else if (((this[i] < 10) && (this[j] < 10)) && (this[k] > 10)) {
this[volum] = ((("0" + String(this[i])) + "0") + String(this[j])) + String(this[k]);
} else if (((this[i] > 10) && (this[j] > 10)) && (this[k] < 10)) {
this[volum] = ((String(this[i]) + String(this[j])) + "0") + String(this[k]);
} else if (((this[i] > 10) && (this[j] < 10)) && (this[k] > 10)) {
this[volum] = ((String(this[i]) + "0") + String(this[j])) + String(this[k]);
} else if (((this[i] < 10) && (this[j] > 10)) && (this[k] > 10)) {
this[volum] = (("0" + String(this[i])) + String(this[j])) + String(this[k]);
} else if (((this[i] > 10) && (this[j] > 10)) && (this[k] > 10)) {
this[volum] = (String(this[i]) + String(this[j])) + String(this[k]);
}
}
function ledakDatar() {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = posisiK - 1;
while (k <= (posisiK + 1)) {
ubahVolum("i", "j", "k", "volum5");
myColor = new Color(this["kubus" + volum5].ledak_mc);
myColor.setRGB(int(myWarna[this["kubus" + volum5]._currentframe - 1]));
this["kubus" + volum5].gotoAndStop(kubusHilang);
this["kubus" + volum5].ledak_mc.gotoAndPlay(2);
k++;
}
j++;
}
i++;
}
}
function ledakBanyak() {
range = random(2) + 1;
i = posisiI - range;
while (i <= (posisiI + range)) {
j = posisiJ - range;
while (j <= (posisiJ + range)) {
k = posisiK - range;
while (k <= (posisiK + range)) {
ubahVolum("i", "j", "k", "volum5");
myColor = new Color(this["kubus" + volum5].ledak_mc);
myColor.setRGB(int(myWarna[this["kubus" + volum5]._currentframe - 1]));
this["kubus" + volum5].gotoAndStop(kubusHilang);
this["kubus" + volum5].ledak_mc.gotoAndPlay(2);
k++;
}
j++;
}
i++;
}
}
function bomBonus() {
if (lifeKe >= 1) {
randBonus = random(4);
} else if (line >= 3) {
randBonus = random(3);
} else {
randBonus = random(2);
}
if (randBonus == 0) {
xTotalBonus = level * (random(500) + 500);
bonus_mc.bonus = ("SCORE\nBONUS\n" + xTotalBonus) + " PTS";
score = score + xTotalBonus;
} else if (randBonus == 1) {
xTotalTime = level * (random(2) + 2);
bonus_mc.bonus = ("TIME\nBONUS\n" + xTotalTime) + " SECOND";
counterNaik = counterNaik + xTotalTime;
} else if (randBonus == 2) {
xTotalLine = Math.ceil((level / 2) * (random(2) + 2));
kurangan = line - xTotalLine;
if (kurangan <= 2) {
xTotalLine = 2;
line = line - xTotalLine;
} else {
line = line - xTotalLine;
}
bonus_mc.bonus = ("LINE\nMINUS\n" + xTotalLine) + " PTS";
if ((line == 1) || (line == 2)) {
alarm();
}
} else if (randBonus == 3) {
lifeKe--;
lifeAr[lifeKe] = 1;
menu_mc["life" + lifeKe].gotoAndStop(1);
bonus_mc.bonus = "LIFE\nPLUS\n1 PTS";
i = 0;
while (i <= lifeAr.length) {
if ((jenisPlay == "CLASSIC") || (jenisPlay == "PUZZLE")) {
if (lifeAr[i] == 1) {
menu_mc["life" + i]._visible = true;
} else {
menu_mc["life" + i]._visible = false;
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
menu_mc["life" + i]._visible = false;
}
i++;
}
}
}
function bomWarna() {
if (randWar == 0) {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
if (this["kubus" + volum]._currentframe == warnaHancur) {
myColor = new Color(this["kubus" + volum].ledak_mc);
myColor.setRGB(int(myWarna[this["kubus" + volum]._currentframe - 1]));
this["kubus" + volum].gotoAndStop(kubusHilang);
this["kubus" + volum].ledak_mc.gotoAndPlay(2);
}
k++;
}
j++;
}
i++;
}
} else {
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "tvolum");
if (this["kubus" + tvolum]._currentframe != kubusHilang) {
this["kubus" + tvolum].gotoAndStop(warnaHancur);
this["kubus" + tvolum].jenis_mc.gotoAndStop(jenisKubus);
warnaKotak[i][j][k] = this["kubus" + tvolum]._currentframe;
}
k++;
}
j++;
}
i++;
}
}
}
function cekStop() {
vol = (panjang * lebar) * tinggi;
ix = 0;
while (ix <= vol) {
if (pos >= 1) {
cekRangkaian();
} else {
ix = vol;
}
ix++;
}
}
function cekRangkaian() {
ii[pos] = x;
jj[pos] = y;
kk[pos] = z;
tanda[ii[pos]][jj[pos]][kk[pos]] = warna;
qi = ii[pos];
qj = jj[pos];
qk = kk[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
iiMin[pos] = ii[pos] - 1;
iiPlus[pos] = ii[pos] + 1;
jjMin[pos] = jj[pos] - 1;
jjPlus[pos] = jj[pos] + 1;
kkMin[pos] = kk[pos] - 1;
kkPlus[pos] = kk[pos] + 1;
if ((warnaKotak[iiMin[pos]][jj[pos]][kk[pos]] == warnaKotak[ii[pos]][jj[pos]][kk[pos]]) && (tanda[iiMin[pos]][jj[pos]][kk[pos]] == 0)) {
tanda[iiMin[pos]][jj[pos]][kk[pos]] = warna;
qi = iiMin[pos];
qj = jj[pos];
qk = kk[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
x = iiMin[pos];
y = jj[pos];
z = kk[pos];
pos++;
jmlHilang++;
} else if ((warnaKotak[iiPlus[pos]][jj[pos]][kk[pos]] == warnaKotak[ii[pos]][jj[pos]][kk[pos]]) && (tanda[iiPlus[pos]][jj[pos]][kk[pos]] == 0)) {
tanda[iiPlus[pos]][jj[pos]][kk[pos]] = warna;
qi = iiPlus[pos];
qj = jj[pos];
qk = kk[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
x = iiPlus[pos];
y = jj[pos];
z = kk[pos];
pos++;
jmlHilang++;
} else if ((warnaKotak[ii[pos]][jjMin[pos]][kk[pos]] == warnaKotak[ii[pos]][jj[pos]][kk[pos]]) && (tanda[ii[pos]][jjMin[pos]][kk[pos]] == 0)) {
tanda[ii[pos]][jjMin[pos]][kk[pos]] = warna;
qi = ii[pos];
qj = jjMin[pos];
qk = kk[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
x = ii[pos];
y = jjMin[pos];
z = kk[pos];
pos++;
jmlHilang++;
} else if ((warnaKotak[ii[pos]][jjPlus[pos]][kk[pos]] == warnaKotak[ii[pos]][jj[pos]][kk[pos]]) && (tanda[ii[pos]][jjPlus[pos]][kk[pos]] == 0)) {
tanda[ii[pos]][jjPlus[pos]][kk[pos]] = warna;
qi = ii[pos];
qj = jjPlus[pos];
qk = kk[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
x = ii[pos];
y = jjPlus[pos];
z = kk[pos];
pos++;
jmlHilang++;
} else if ((warnaKotak[ii[pos]][jj[pos]][kkMin[pos]] == warnaKotak[ii[pos]][jj[pos]][kk[pos]]) && (tanda[ii[pos]][jj[pos]][kkMin[pos]] == 0)) {
tanda[ii[pos]][jj[pos]][kkMin[pos]] = warna;
qi = ii[pos];
qj = jj[pos];
qk = kkMin[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
x = ii[pos];
y = jj[pos];
z = kkMin[pos];
pos++;
jmlHilang++;
} else if ((warnaKotak[ii[pos]][jj[pos]][kkPlus[pos]] == warnaKotak[ii[pos]][jj[pos]][kk[pos]]) && (tanda[ii[pos]][jj[pos]][kkPlus[pos]] == 0)) {
tanda[ii[pos]][jj[pos]][kkPlus[pos]] = warna;
qi = ii[pos];
qj = jj[pos];
qk = kkPlus[pos];
ubahVolum("qi", "qj", "qk", "yydalam");
xxdalam[jmlHilang] = yydalam;
x = ii[pos];
y = jj[pos];
z = kkPlus[pos];
pos++;
jmlHilang++;
} else {
pos--;
x = ii[pos];
y = jj[pos];
z = kk[pos];
}
}
function reset() {
pos = 1;
jmlHilang = 1;
warnaKotak = new Array();
i = 0;
while (i <= panjang) {
warnaKotak[i] = new Array();
j = 0;
while (j <= lebar) {
warnaKotak[i][j] = new Array();
k = 0;
while (k <= tinggi) {
warnaKotak[i][j][k] = 0;
k++;
}
j++;
}
i++;
}
x = 99;
y = 99;
z = 99;
tanda = new Array();
xxdalam = new Array();
i = 0;
while (i <= 350) {
ii[i] = 350;
jj[i] = 350;
kk[i] = 350;
iiMin[i] = 350;
iiPlus[i] = 350;
jjMin[i] = 350;
jjPlus[i] = 350;
kkMin[i] = 350;
kkPlus[i] = 350;
i++;
}
i = 0;
while (i <= panjang) {
tanda[i] = new Array();
j = 0;
while (j <= lebar) {
tanda[i][j] = new Array();
k = 0;
while (k <= tinggi) {
tanda[i][j][k] = 0;
k++;
}
j++;
}
i++;
}
}
stop();
attachMovie("lanjut_mc", "lanjut_mc", 999999999, {_x:400, _y:300});
attachMovie("bonus_mc", "bonus_mc", 999999998, {_x:0, _y:0});
attachMovie("pause_mc", "pause_mc", 999999997, {_x:400, _y:300});
if (wjenisPlay == "UNLIMITED") {
attachMovie("frame_mc", "frame_mc", 999999996, {_x:720, _y:60});
}
cekFrame();
frame_mc.but1.onRelease = function () {
jenisPindah = 1;
cekFrame();
};
frame_mc.but2.onRelease = function () {
jenisPindah = 2;
cekFrame();
};
frame_mc.but3.onRelease = function () {
jenisPindah = 3;
cekFrame();
};
frame_mc.but4.onRelease = function () {
jenisPindah = 4;
cekFrame();
};
if (xlevel == "EASY") {
xpengali = 1;
backEasy();
} else if (xlevel == "NORMAL") {
xpengali = 2;
backNormal();
} else if (xlevel == "HARD") {
xpengali = 3;
backHard();
}
batasBonus = 15;
if (wjenisPlay != "UNLIMITED") {
if (level <= 2) {
banyakWarna = 3;
} else if (level <= 4) {
banyakWarna = 4;
} else if (level <= 6) {
banyakWarna = 5;
} else if (level <= 8) {
banyakWarna = 6;
} else if (level <= 10) {
banyakWarna = 7;
} else if (level <= 12) {
banyakWarna = 8;
}
if (jenisPlay == "STRATEGY") {
if (level <= 4) {
banyakWarna = 2;
} else if (level <= 8) {
banyakWarna = 3;
} else {
banyakWarna = 4;
}
}
}
if (paused == false) {
init2();
reset();
buatKubus();
kontrol();
loadCube();
jenisMenang = "level";
paused = true;
pause_mc.gotoAndStop(1);
bisaTombol(true, 100);
} else {
initAwal();
init();
reset();
buatKubus();
kontrol();
}
i = 0;
while (i <= lifeAr.length) {
if ((jenisPlay == "CLASSIC") || (jenisPlay == "PUZZLE")) {
if (lifeAr[i] == 1) {
menu_mc["life" + i]._visible = true;
} else {
menu_mc["life" + i]._visible = false;
}
} else if ((jenisPlay == "TIME TRIAL") || (jenisPlay == "STRATEGY")) {
menu_mc["life" + i]._visible = false;
}
i++;
}
this.onEnterFrame = function () {
if (paused == true) {
menu_mc.xlevel = xlevel;
menu_mc.score = score;
if (wjenisPlay != "UNLIMITED") {
if (jenisMenang == "level") {
menu_mc.ylevel = level;
} else {
menu_mc.ylevel = "BONUS";
}
menu_mc.typeGame = jenisPlay;
} else {
menu_mc.ylevel = 0;
menu_mc.typeGame = "UNLIMITED";
}
menu_mc.line = line;
menu_mc.waktu = counterNaik;
wxk = 0;
while (wxk <= tinggi) {
wxi = 0;
while (wxi <= panjang) {
wxj = 0;
while (wxj <= lebar) {
ubahVolum("wxi", "wxj", "wxk", "wxvolum3");
if (this["kubus" + wxvolum3]._currentframe <= kotakBatas) {
akk = wxk;
wxi = panjang;
wxj = lebar;
wxk = tinggi;
} else {
akk = 5;
}
wxj++;
}
wxi++;
}
wxk++;
}
if (jenisPlay == "CLASSIC") {
if (akk == 1) {
menu_mc.limit_mc.limit = akk + " LEVEL REMAIN";
} else {
menu_mc.limit_mc.limit = akk + " LEVELS REMAIN";
}
if (akk == 0) {
menu_mc.limit_mc.gotoAndStop(3);
} else if (akk <= 1) {
menu_mc.limit_mc.gotoAndStop(2);
} else {
menu_mc.limit_mc.gotoAndStop(1);
}
}
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
warnaKotak[i][j][k] = this["kubus" + volum]._currentframe;
k++;
}
j++;
}
i++;
}
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = tinggi;
while (k >= akk) {
ubahVolum("i", "j", "k", "volum1");
if (this["kubus" + volum1]._currentframe == kubusHilang) {
k2 = k - 1;
ubahVolum("i", "j", "k2", "volum2");
if (this["kubus" + volum1].ledak_mc._currentframe == 1) {
this["kubus" + volum1].gotoAndStop(this["kubus" + volum2]._currentframe);
this["kubus" + volum1].jenis_mc.gotoAndStop(jenisKubus);
this["kubus" + volum2].gotoAndStop(kubusHilang);
}
}
k--;
}
j++;
}
i++;
}
k = tinggi;
while (k >= akk) {
i = 0;
while (i <= panjang) {
j = lebar;
while (j >= 0) {
ubahVolum("i", "j", "k", "volum1");
if (this["kubus" + volum1]._currentframe == kubusHilang) {
if ((jenisPindah == 1) || (jenisPindah == 2)) {
j2 = j - 1;
} else if ((jenisPindah == 3) || (jenisPindah == 4)) {
j2 = j + 1;
}
ubahVolum("i", "j2", "k", "volum2");
if (this["kubus" + volum1].ledak_mc._currentframe == 1) {
this["kubus" + volum1].gotoAndStop(this["kubus" + volum2]._currentframe);
this["kubus" + volum1].jenis_mc.gotoAndStop(jenisKubus);
this["kubus" + volum2].gotoAndStop(kubusHilang);
}
}
j--;
}
i++;
}
j = 0;
while (j <= lebar) {
i = panjang;
while (i >= 0) {
ubahVolum("i", "j", "k", "volum1");
if (this["kubus" + volum1]._currentframe == kubusHilang) {
if ((jenisPindah == 1) || (jenisPindah == 4)) {
i2 = i - 1;
} else if ((jenisPindah == 3) || (jenisPindah == 2)) {
i2 = i + 1;
}
ubahVolum("i2", "j", "k", "volum2");
if (this["kubus" + volum1].ledak_mc._currentframe == 1) {
this["kubus" + volum1].gotoAndStop(this["kubus" + volum2]._currentframe);
this["kubus" + volum1].jenis_mc.gotoAndStop(jenisKubus);
this["kubus" + volum2].gotoAndStop(kubusHilang);
}
}
i--;
}
j++;
}
k--;
}
if (jenisPlay == "CLASSIC") {
papan_mc._visible = true;
} else {
papan_mc._visible = false;
}
}
};
this.onMouseDown = function () {
if (paused == true) {
bisaAdaKlik = false;
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volum");
if (!menu_mc.tema_mc.hitTest(_root._xmouse, _root._ymouse, true)) {
if (this["kubus" + volum]._currentframe <= kotakBatas) {
if (this["kubus" + volum]._visible == true) {
if (this["kubus" + volum].hitTest(this._xmouse, this._ymouse, true)) {
if (this["kubus" + volum]._currentframe == 18) {
bonus_mc._visible = true;
kuStr = new String(this["kubus" + volum]);
indiStr = int(kuStr.substr(kuStr.length - 2, 2));
if (indiStr > 1) {
bonus_mc.gotoAndPlay("naik");
} else {
bonus_mc.gotoAndPlay("turun");
}
bonus_mc._x = this["kubus" + volum]._x;
bonus_mc._y = this["kubus" + volum]._y;
myColor = new Color(this["kubus" + volum].ledak_mc);
myColor.setRGB(myWarna[8]);
this["kubus" + volum].gotoAndStop(kubusHilang);
this["kubus" + volum].ledak_mc.gotoAndPlay(2);
bomBonus();
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
bonus();
} else if (this["kubus" + volum]._currentframe == 19) {
myColor = new Color(this["kubus" + volum].ledak_mc);
myColor.setRGB(myWarna[8]);
this["kubus" + volum].gotoAndStop(kubusHilang);
this["kubus" + volum].ledak_mc.gotoAndPlay(2);
myKata = new String(this["kubus" + volum]);
posisiI = int(myKata.substr(myKata.length - 6, 2));
posisiJ = int(myKata.substr(myKata.length - 4, 2));
posisiK = int(myKata.substr(myKata.length - 2, 2));
ledakBanyak();
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
bonus();
} else if (this["kubus" + volum]._currentframe == 20) {
myColor = new Color(this["kubus" + volum].ledak_mc);
myColor.setRGB(myWarna[8]);
this["kubus" + volum].gotoAndStop(kubusHilang);
this["kubus" + volum].ledak_mc.gotoAndPlay(2);
myKata = new String(this["kubus" + volum]);
posisiI = int(myKata.substr(myKata.length - 6, 2));
posisiJ = int(myKata.substr(myKata.length - 4, 2));
posisiK = int(myKata.substr(myKata.length - 2, 2));
ledakDatar();
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
bonus();
} else if (this["kubus" + volum]._currentframe >= 10) {
warnaHancur = this["kubus" + volum]._currentframe - 9;
myColor = new Color(this["kubus" + volum].ledak_mc);
myColor.setRGB(int(myWarna[warnaHancur - 1]));
if (level < 7) {
randWar = random(2);
} else {
randWar = 0;
}
if (randWar == 0) {
this["kubus" + volum].gotoAndStop(kubusHilang);
this["kubus" + volum].ledak_mc.gotoAndPlay(2);
}
bomWarna();
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
bonus();
} else {
myKata = new String(this["kubus" + volum]);
x = int(myKata.substr(myKata.length - 6, 2));
y = int(myKata.substr(myKata.length - 4, 2));
z = int(myKata.substr(myKata.length - 2, 2));
warna = this["kubus" + volum]._currentframe;
if (warna <= kotakBatas) {
iz = 0;
while (iz <= panjang) {
jz = 0;
while (jz <= lebar) {
kz = 0;
while (kz <= tinggi) {
ubahVolum("iz", "jz", "kz", "zvolum");
warnaKotak[iz][jz][kz] = this["kubus" + zvolum]._currentframe;
kz++;
}
jz++;
}
iz++;
}
jmlHilang = 1;
cekStop();
if (jmlHilang >= 2) {
bisaAdaKlik = true;
zz = 1;
while (zz <= jmlHilang) {
if (this["kubus" + xxdalam[zz]]._currentframe <= kotakBatas) {
myColor = new Color(this["kubus" + xxdalam[zz]].ledak_mc);
myColor.setRGB(int(myWarna[this["kubus" + xxdalam[zz]]._currentframe - 1]));
this["kubus" + xxdalam[zz]].gotoAndStop(kubusHilang);
this["kubus" + xxdalam[zz]].ledak_mc.gotoAndPlay(2);
}
zz++;
}
score = score + ((jmlHilang * level) * xpengali);
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
kubus();
}
if (jmlHilang >= 20) {
bonus();
bonus_mc._visible = true;
kuStr = new String(this["kubus" + volum]);
indiStr = int(kuStr.substr(kuStr.length - 2, 2));
if (indiStr > 1) {
bonus_mc.gotoAndPlay("naik");
} else {
bonus_mc.gotoAndPlay("turun");
}
bonus_mc._x = this["kubus" + volum]._x;
bonus_mc._y = this["kubus" + volum]._y;
xTotalBonus = (jmlHilang * level) * (random(5) + 5);
bonus_mc.bonus = ("REMOVE\nSCORE\nBONUS\n" + xTotalBonus) + " PTS";
score = score + xTotalBonus;
}
reset();
}
if (bisaAdaKlik == false) {
gagal();
adaHabis = false;
} else if (jenisMenang == "bonus") {
if (jenisMode2 == "RANDOM") {
xrandMode = random(4);
if (xrandMode == 0) {
jenisMode = "UP";
} else if (xrandMode == 1) {
jenisMode = "DOWN";
} else if (xrandMode == 2) {
jenisMode = "SIDE1";
} else if (xrandMode == 3) {
jenisMode = "SIDE2";
}
}
if (jenisMode == "UP") {
i = panjang - tambahK;
while (i <= panjang) {
j = lebar - tambahK;
while (j <= lebar) {
k = 0;
while (k <= (tinggi - 1)) {
ubahVolum("i", "j", "k", "volum1");
k2 = k + 1;
ubahVolum("i", "j", "k2", "volum2");
this["kubus" + volum1].gotoAndStop(this["kubus" + volum2]._currentframe);
this["kubus" + volum1].jenis_mc.gotoAndStop(jenisKubus);
if (xlevel == "EASY") {
randWarna = random(2) + 1;
} else if (xlevel == "NORMAL") {
randWarna = random(3) + 3;
} else if (xlevel == "HARD") {
randWarna = random(3) + 6;
}
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
k++;
}
j++;
}
i++;
}
} else if (jenisMode == "DOWN") {
i = panjang - tambahK;
while (i <= panjang) {
j = lebar - tambahK;
while (j <= lebar) {
k2 = akk - 2;
if (k2 <= 0) {
k2 = 0;
}
ubahVolum("i", "j", "k2", "volum2");
if (this["kubus" + volum2]._currentframe == kubusHilang) {
k = 0;
if (xlevel == "EASY") {
randWarna = random(2) + 1;
} else if (xlevel == "NORMAL") {
randWarna = random(3) + 3;
} else if (xlevel == "HARD") {
randWarna = random(3) + 6;
}
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
}
j++;
}
i++;
}
} else if (jenisMode == "SIDE1") {
i = panjang - tambahK;
while (i <= panjang) {
k = tinggi - tambahK;
while (k <= tinggi) {
j = 0;
ubahVolum("i", "j", "k", "volum2");
if (this["kubus" + volum2]._currentframe == kubusHilang) {
if (xlevel == "EASY") {
randWarna = random(2) + 1;
} else if (xlevel == "NORMAL") {
randWarna = random(3) + 3;
} else if (xlevel == "HARD") {
randWarna = random(3) + 6;
}
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
}
k++;
}
i++;
}
} else if (jenisMode == "SIDE2") {
j = lebar - tambahK;
while (j <= lebar) {
k = tinggi - tambahK;
while (k <= tinggi) {
i = 0;
ubahVolum("i", "j", "k", "volum2");
if (this["kubus" + volum2]._currentframe == kubusHilang) {
if (xlevel == "EASY") {
randWarna = random(2) + 1;
} else if (xlevel == "NORMAL") {
randWarna = random(3) + 3;
} else if (xlevel == "HARD") {
randWarna = random(3) + 6;
}
this["kubus" + volum2].gotoAndStop(randWarna);
this["kubus" + volum2].jenis_mc.gotoAndStop(jenisKubus);
}
k++;
}
j++;
}
}
if (tambahK < 6) {
tambahK++;
} else {
tambahK = 0;
}
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
} else if (jenisPlay == "STRATEGY") {
if (tambahK < 6) {
tambahK++;
} else {
tambahK = 0;
}
if (jenisMode2 == "RANDOM") {
xrandMode = random(4);
if (xrandMode == 0) {
jenisMode = "UP";
} else if (xrandMode == 1) {
jenisMode = "DOWN";
} else if (xrandMode == 2) {
jenisMode = "SIDE1";
} else if (xrandMode == 3) {
jenisMode = "SIDE2";
}
}
if (jenisKu == "KLIK") {
kurangStrategy();
}
bisaAdaKlik = false;
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
}
}
}
}
}
}
k++;
}
j++;
}
i++;
}
adaHabis = true;
i = 0;
while (i <= panjang) {
j = 0;
while (j <= lebar) {
k = 0;
while (k <= tinggi) {
ubahVolum("i", "j", "k", "volumx");
if (this["kubus" + volumx]._currentframe <= 19) {
adaHabis = false;
i = panjang + 1;
j = lebar + 1;
k = tinggi + 1;
}
k++;
}
j++;
}
i++;
}
if (adaHabis == true) {
if (satuKaliAja == true) {
satuKaliAja = false;
bonus();
bonus_mc._visible = true;
i = panjang;
j = lebar;
k = tinggi;
ubahVolum("i", "j", "k", "volum2");
kuStr = new String(this["kubus" + volum2]);
indiStr = int(kuStr.substr(kuStr.length - 2, 2));
bonus_mc.gotoAndPlay("turun");
bonus_mc._x = _root["kubus" + volum2]._x;
bonus_mc._y = _root["kubus" + volum2]._y;
xTotalBonus = level * (random(50) + 100);
bonus_mc.bonus = ("CLEAR\nSCORE\nBONUS\n" + xTotalBonus) + " PTS";
score = score + xTotalBonus;
}
}
}
};
Frame 90
play();
Frame 93
stop();
backSelect();
xlevel = "EASY";
level = 1;
jenisArea = 1;
batasLevel = 13;
jenisLevel = "LEVEL : " + xlevel;
jenisMode = "RANDOM";
jenisMode2 = "RANDOM";
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(2);
up_mc.enabled = true;
down_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = false;
paused = true;
score = 0;
lifeAr = new Array(1, 1, 1, 1, 1);
lifeKe = 0;
kali = 1;
jenisPindah = 1;
random_mc.onRollOver = (back_btn.onRollOver = (down_mc.onRollOver = (up_mc.onRollOver = (side1_mc.onRollOver = (side2_mc.onRollOver = (play1.onRollOver = (play2.onRollOver = (play3.onRollOver = (play4.onRollOver = (high1.onRollOver = (high2.onRollOver = (high3.onRollOver = (high4.onRollOver = function () {
over();
})))))))))))));
back_btn.onRelease = function () {
klik();
gotoAndStop ("main");
};
down_mc.onRelease = function () {
klik();
jenisMode = "DOWN";
jenisMode2 = "";
down_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
down_mc.enabled = false;
up_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = true;
};
up_mc.onRelease = function () {
klik();
jenisMode = "UP";
jenisMode2 = "";
up_mc.gotoAndStop(2);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
up_mc.enabled = false;
down_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = true;
};
side1_mc.onRelease = function () {
klik();
jenisMode = "SIDE1";
jenisMode2 = "";
side1_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
side1_mc.enabled = false;
up_mc.enabled = true;
down_mc.enabled = true;
side2_mc.enabled = true;
random_mc.enabled = true;
};
side2_mc.onRelease = function () {
klik();
jenisMode = "SIDE2";
jenisMode2 = "";
side2_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
random_mc.gotoAndStop(1);
side2_mc.enabled = false;
up_mc.enabled = true;
down_mc.enabled = true;
side1_mc.enabled = true;
random_mc.enabled = true;
};
random_mc.onRelease = function () {
klik();
jenisMode = "RANDOM";
jenisMode2 = "RANDOM";
random_mc.gotoAndStop(2);
up_mc.gotoAndStop(1);
down_mc.gotoAndStop(1);
side1_mc.gotoAndStop(1);
side2_mc.gotoAndStop(1);
random_mc.enabled = false;
up_mc.enabled = true;
down_mc.enabled = true;
side1_mc.enabled = true;
side2_mc.enabled = true;
};
play1.onRelease = function () {
klik();
jenisPlay = "CLASSIC";
xjenisPlay = "CLASSIC";
posisiHelp = 0;
gotoAndStop ("xgame");
};
play2.onRelease = function () {
klik();
jenisPlay = "TIME TRIAL";
xjenisPlay = "TIME TRIAL";
posisiHelp = 1;
gotoAndStop ("xgame");
};
play3.onRelease = function () {
klik();
jenisPlay = "STRATEGY";
xjenisPlay = "STRATEGY";
posisiHelp = 2;
jenisKu = "KLIK";
gotoAndStop ("xgame");
};
play4.onRelease = function () {
klik();
jenisPlay = "PUZZLE";
xjenisPlay = "PUZZLE";
posisiHelp = 3;
gotoAndStop ("xgame");
};
high1.onRelease = function () {
};
high2.onRelease = function () {
};
high3.onRelease = function () {
};
high4.onRelease = function () {
};
Frame 100
stop();
delete _root.onEnterFrame;
sudahMenang = true;
Selection.setFocus("nama_mc");
nama = "";
submit_btn.onRollOver = (high_btn.onRollOver = (restart_btn.onRollOver = function () {
over();
}));
submit_btn.onRelease = function () {
klik();
playerName = nama;
playerScore = score;
if ((((((((((playerName == "") || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) {
playerName = "No Name";
}
if (jenisPlay == "CLASSIC") {
} else if (jenisPlay == "TIME TRIAL") {
} else if (jenisPlay == "STRATEGY") {
} else if (jenisPlay == "PUZZLE") {
}
removeListener(myListener);
};
high_btn.onRelease = function () {
klik();
if (jenisPlay == "CLASSIC") {
} else if (jenisPlay == "TIME TRIAL") {
} else if (jenisPlay == "STRATEGY") {
} else if (jenisPlay == "PUZZLE") {
}
};
restart_btn.onRelease = function () {
klik();
gotoAndStop ("main");
removeListener(myListener);
};
myListener = new Object();
myListener.onKeyDown = function () {
if (Key.getCode() >= 0) {
xkey();
}
if (Key.getCode() == 13) {
klik();
playerName = nama;
playerScore = score;
if ((((((((((playerName == "") || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) {
playerName = "No Name";
}
if (jenisPlay == "CLASSIC") {
} else if (jenisPlay == "TIME TRIAL") {
} else if (jenisPlay == "STRATEGY") {
} else if (jenisPlay == "PUZZLE") {
}
removeListener(myListener);
}
};
Key.addListener(myListener);
Frame 110
stop();
delete _root.onEnterFrame;
sudahMenang = true;
Selection.setFocus("nama_mc");
nama = "";
submit_btn.onRollOver = (high_btn.onRollOver = (restart_btn.onRollOver = function () {
over();
}));
submit_btn.onRelease = function () {
klik();
playerName = nama;
playerScore = score;
if ((((((((((playerName == "") || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) {
playerName = "No Name";
}
if (jenisPlay == "CLASSIC") {
} else if (jenisPlay == "TIME TRIAL") {
} else if (jenisPlay == "STRATEGY") {
} else if (jenisPlay == "PUZZLE") {
}
removeListener(myListener);
};
high_btn.onRelease = function () {
klik();
if (jenisPlay == "CLASSIC") {
} else if (jenisPlay == "TIME TRIAL") {
} else if (jenisPlay == "STRATEGY") {
} else if (jenisPlay == "PUZZLE") {
}
};
restart_btn.onRelease = function () {
klik();
gotoAndStop ("main");
removeListener(myListener);
};
myListener = new Object();
myListener.onKeyDown = function () {
if (Key.getCode() >= 0) {
xkey();
}
if (Key.getCode() == 13) {
klik();
playerName = nama;
playerScore = score;
if ((((((((((playerName == "") || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) || (playerName == " ")) {
playerName = "No Name";
}
if (jenisPlay == "CLASSIC") {
} else if (jenisPlay == "TIME TRIAL") {
} else if (jenisPlay == "STRATEGY") {
} else if (jenisPlay == "PUZZLE") {
}
removeListener(myListener);
}
};
Key.addListener(myListener);
Frame 120
stop();
back_btn.onRelease = function () {
klik();
gotoAndStop ("option");
};
back_btn.onRollOver = (xprev.onRollOver = (xnext.onRollOver = function () {
over();
}));
xjenisHelp = new Array("CLASSIC", "TIME TRIAL", "STRATEGY", "PUZZLE", "UNLIMITED");
xinfoHelp = new Array();
xinfoHelp[0] = "\nTo clear blocks, two like colored blocks must be touching either above or below, to the left or right or to the front or back. Click one of the two like colored blocks to clear them. Diagonals are not allowed. The level is completed when the line indicates Zero. Click Tema Tempa to create a new level of cubes and to decrease the number of levels left to complete. The game is over when the game life equals Zero.";
xinfoHelp[1] = "\n\nTo clear blocks, two like colored blocks must be touching either above or below, to the left or right or to the front or back. Click one of the two like colored blocks to clear them. Diagonals are not allowed. A level is completed once the time runs out. Click Tema Tempe to create a new level of cubes.";
xinfoHelp[2] = "\n\nTo clear blocks, two like colored blocks must be touching either above or below, to the left or right or to the front or back. Click one of the two like colored blocks to clear them. Diagonals are not allowed. A level is complete if the line indicates Zero. Click Tema Tempe to create a new level of cubes. There is no time limit in the strategy mode.";
xinfoHelp[3] = "\n\nTo clear blocks, two like colored blocks must be touching either above or below, to the left or right or to the front or back. Click one of the two like colored blocks to clear them. Diagonals are not allowed. A level is complete when no cubes remain. Click Tema Tempe to continue the game. There is no time limit or line limit in the puzzle mode. The game is over when the Game Life equals zero.";
xinfoHelp[4] = "\n\nTo clear blocks, two like colored blocks must be touching either above or below, to the left or right or to the front or back. Click one of the two like colored blocks to clear them. Diagonals are not allowed. Click Tema Tempe to create a new level of cubes. There is no time limit, no line limit, no level and no game over in the unlimited mode.";
infoHelp = xinfoHelp[posisiHelp];
jenisHelp = xjenisHelp[posisiHelp];
xposisiHelp = posisiHelp;
xprev.onRelease = function () {
klik();
xposisiHelp--;
if (xposisiHelp < 0) {
xposisiHelp = 4;
}
infoHelp = xinfoHelp[xposisiHelp];
jenisHelp = xjenisHelp[xposisiHelp];
};
xnext.onRelease = function () {
klik();
xposisiHelp++;
if (xposisiHelp > 4) {
xposisiHelp = 0;
}
infoHelp = xinfoHelp[xposisiHelp];
jenisHelp = xjenisHelp[xposisiHelp];
};
Frame 130
play();
if (petama) {
petama = false;
backMusic();
}
Frame 144
stop();
level_btn.onRelease = function () {
klik();
gotoAndStop ("menu");
wjenisPlay = "BLANK";
};
unlimited_btn.onRelease = function () {
klik();
posisiHelp = 4;
gotoAndStop ("map");
};
help_btn.onRelease = function () {
klik();
posisiHelp = 0;
tandaBalik2 = "main";
gotoAndStop ("option");
};
back_btn.onRelease = function () {
klik();
gotoAndStop ("intro");
};
level_btn.onRollOver = function () {
over();
};
unlimited_btn.onRollOver = function () {
over();
};
help_btn.onRollOver = function () {
over();
};
back_btn.onRollOver = function () {
over();
};
Symbol 11 MovieClip [pause_mc] Frame 1
stop();
Symbol 11 MovieClip [pause_mc] Frame 2
stop();
Symbol 14 MovieClip [bonus_mc] Frame 1
stop();
this._visible = false;
Symbol 14 MovieClip [bonus_mc] Frame 2
play();
this._visible = true;
Symbol 14 MovieClip [bonus_mc] Frame 15
gotoAndStop (1);
Symbol 14 MovieClip [bonus_mc] Frame 28
play();
this._visible = true;
Symbol 14 MovieClip [bonus_mc] Frame 41
gotoAndStop (1);
Symbol 26 MovieClip [lanjut_mc] Frame 1
stop();
Symbol 26 MovieClip [lanjut_mc] Frame 2
if (_parent.jenisMenang == "bonus") {
level = "LEVEL BONUS COMPLETED";
} else if (_parent.jenisMenang == "level") {
level = ("STAGE " + _parent.level) + " COMPLETED";
}
_root.menu_mc.score = _root.score;
Symbol 26 MovieClip [lanjut_mc] Frame 14
function xover() {
xmyLagu3 = new Sound();
xmyLagu3.attachSound("over");
xmyLagu3.start(0, 1);
}
function xklik() {
xmyLagu3 = new Sound();
xmyLagu3.attachSound("klik");
xmyLagu3.start(0, 1);
}
stop();
next_btn.onRollOver = function () {
xover();
};
next_btn.onRelease = function () {
xklik();
gotoAndPlay ("hilang");
};
Symbol 26 MovieClip [lanjut_mc] Frame 25
play();
Symbol 26 MovieClip [lanjut_mc] Frame 40
if (((_parent.level + 1) == _parent.batasLevel) || ((_parent.level + 1) == (_parent.batasLevel - 2))) {
xtext_mc._visible = false;
} else {
xtext_mc._visible = true;
}
Symbol 26 MovieClip [lanjut_mc] Frame 41
_root.paused = true;
if (_parent.jenisMenang == "bonus") {
_parent.mulai2();
} else if (_parent.jenisMenang == "level") {
_parent.mulai();
}
Symbol 26 MovieClip [lanjut_mc] Frame 50
stop();
Symbol 37 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 1
stop();
Symbol 66 MovieClip Frame 2
if (_root.jenisArea == 1) {
gotoAndPlay ("gurun");
} else if (_root.jenisArea == 2) {
gotoAndPlay ("hutan");
} else if (_root.jenisArea == 3) {
gotoAndPlay ("laut");
} else if (_root.jenisArea == 4) {
gotoAndPlay ("kota");
}
Symbol 66 MovieClip Frame 5
play();
Symbol 66 MovieClip Frame 6
play();
Symbol 66 MovieClip Frame 7
play();
Symbol 66 MovieClip Frame 8
gotoAndStop (1);
Symbol 66 MovieClip Frame 13
play();
Symbol 66 MovieClip Frame 14
play();
Symbol 66 MovieClip Frame 15
play();
Symbol 66 MovieClip Frame 16
play();
Symbol 66 MovieClip Frame 17
gotoAndStop (1);
Symbol 66 MovieClip Frame 23
play();
Symbol 66 MovieClip Frame 24
play();
Symbol 66 MovieClip Frame 25
play();
Symbol 66 MovieClip Frame 26
play();
Symbol 66 MovieClip Frame 27
gotoAndStop (1);
Symbol 66 MovieClip Frame 33
play();
Symbol 66 MovieClip Frame 34
play();
Symbol 66 MovieClip Frame 35
play();
Symbol 66 MovieClip Frame 36
gotoAndStop (1);
Symbol 77 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 1
stop();
Symbol 99 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 121 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
stop();
Symbol 165 MovieClip [kubus_mc] Frame 1
stop();
Symbol 165 MovieClip [kubus_mc] Frame 40
stop();
Symbol 171 Button
on (release) {
gotoAndPlay (2);
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 175 MovieClip Frame 13
_root.ubahNaik();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 10
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 18
_root.ubahNaik();
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 15
_root.ubahNaik();
Symbol 298 Button
on (release) {
gotoAndPlay (2);
}
Symbol 305 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 10
_root.ubahNaik();
Symbol 322 MovieClip [area_mc] Frame 1
stop();
Symbol 322 MovieClip [area_mc] Frame 10
stop();
Symbol 322 MovieClip [area_mc] Frame 20
stop();
Symbol 322 MovieClip [area_mc] Frame 30
stop();
Symbol 328 MovieClip Frame 1
stop();
Symbol 331 MovieClip Frame 11
gotoAndPlay(random(30) + 11);
Symbol 333 MovieClip Frame 11
gotoAndPlay(random(30) + 11);
Symbol 337 MovieClip Frame 10
gotoAndPlay(random(30) + 10);
Symbol 339 MovieClip Frame 10
gotoAndPlay(random(30) + 10);
Symbol 341 MovieClip Frame 10
gotoAndPlay(random(30) + 10);
Symbol 343 MovieClip Frame 10
gotoAndPlay(random(30) + 10);
Symbol 345 MovieClip Frame 10
gotoAndPlay(random(30) + 10);
Symbol 346 MovieClip Frame 15
stop();
Symbol 348 MovieClip Frame 1
play();
this.onRelease = function () {
_root.klik();
getURL ("http://www.belugerin.com", "_blank");
};
this.onRollOver = function () {
_root.over();
};
Symbol 349 MovieClip [preloader_mc] Frame 1
play();
Symbol 349 MovieClip [preloader_mc] Frame 75
removeMovieClip(this);
_root.gotoAndStop("intro");
Symbol 417 Button
on (press) {
startDrag (this, false, left, top, right, bottom);
dragging = true;
}
on (release, releaseOutside) {
stopDrag();
dragging = false;
}
Symbol 440 MovieClip Frame 1
stop();
Symbol 449 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 466 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 490 MovieClip Frame 1
stop();
Symbol 643 Button
on (press) {
startDrag (this, false, left, top, right, bottom);
dragging = true;
}
on (release, releaseOutside) {
stopDrag();
dragging = false;
}