Frame 1
stop();
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "false");
Instance of Symbol 384 MovieClip in Frame 1
onClipEvent (load) {
_root.stop();
}
Frame 2
prevFrame();
Frame 3
function fx_sound(code) {
fx.attachSound(code);
fx.setVolume(100);
fx.start(0, 1);
}
function bg_music(code) {
bgm.stop();
bgm.attachSound(code);
bgm.setVolume(80);
bgm.start(0, 9999999);
}
function open_bg(trg, code) {
this[trg]._visible = true;
this[trg].gotoAndStop(code);
this[trg].lev.text = "Level " + gm_level;
bgm.stop();
fx_sound("SLICE");
this.onEnterFrame = function () {
var _local2 = Math.abs(this[trg]._xscale - 100) * 0.7;
this[trg]._alpha = this[trg]._alpha + (Math.abs(this[trg]._alpha - 100) * 0.7);
this[trg]._yscale = (this[trg]._xscale = this[trg]._xscale - _local2);
if (_local2 < 1) {
this[trg]._yscale = (this[trg]._xscale = 100);
this[trg]._alpha = 100;
if (trg eq "levelinfo") {
switch (code) {
case 1 :
this[trg].set_ready();
break;
case 2 :
this[trg].hitung_point();
}
}
delete this.onEnterFrame;
}
};
}
function close_bg(trg) {
this[trg]._xscale = (this[trg]._yscale = 150);
this[trg]._alpha = 0;
this[trg]._visible = false;
}
this.attachMovie("levelinfo", "levelinfo", 778888, {_x:212, _y:201});
attachMovie("robot", "robot", 2, {_x:-10, _y:400});
d_tank.swapDepths(99999999);
levelinfo._xscale = (levelinfo._yscale = (bg._xscale = (bg._yscale = 150)));
levelinfo._alpha = (bg._alpha = 0);
levelinfo._visible = (bg._visible = false);
interval_lev = 2;
maxlev = 15;
en_power = new Array(0, 1, 1, 2, 2, 3, 1);
en_speed = new Array(0, 2, 2.5, 2, 2, 2.5, 2);
en_tshot = new Array(0, 3500, 4000, 4000, 3000, 3000, 2);
en_point = new Array(0, 10, 20, 30, 40, 50, 5);
dta_tank = new Array(0, 1, 1, 2, 2, 3, 3, 3, 4, 4, 5);
this.createEmptyMovieClip("music_bg", this.getNextHighestDepth());
this.createEmptyMovieClip("sound_fx", this.getNextHighestDepth());
fx = new Sound("sound_fx");
bgm = new Sound("music_bg");
lev_auto1 = new Array(0, 1, 4);
lev_auto2 = new Array(0, 1, 4, 5);
lev_auto3 = new Array(0, 1, 4, 5, 6);
lev_auto4 = new Array(0, 1, 2, 3, 4, 5, 6);
posbx = new Array(200, 175, 200, 225, 150, 175, 225, 250);
posby = new Array(325, 350, 350, 350, 375, 375, 375, 375);
key_u = 0;
key_r = 0;
key_l = 1;
key_b = 4;
key_k = 7;
key_t = 11;
key_x1 = 8;
key_x2 = 9;
key_x3 = 10;
key_adv_lev = new Array(0, "Rt34gH", "Zx43kj", "rrY9oU", "Tr54eK", "khT54e", "Tr4E3f", "772rq", "bgTY6", "Ki056g", "zxweR4", "Pter45", "FasEr8", "33Deq3", "lHtrf4", "88Te34", "dFgR56", "253GTz");
masterMap = new Array(["l", "l", "l", "x", "x", "x", "x", "l", "l", "l", 0, 0, 0, 0, "l", "l", "l"], [0, "l", 0, 0, 0, 0, 0, 0, "l", 0, 0, 0, 0, 0, 0, "l", 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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0, 0, 0, 4, 4, 4, 0, 0, 0], [0, 4, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0], [0, 4, 0, 0, 4, 4, 4, 4, 4, 0, 0, 4, 0, 0, 4, 4, 0], [4, 4, 4, 0, 0, 0, 0, 0, 4, 0, 0, 4, 0, 0, 0, 4, 0], [0, 0, 4, 4, 4, 0, 0, 0, 1, 0, 0, 4, 0, 4, 0, 0, 0], [0, 0, 4, 0, 0, 0, 0, 1, 11, 1, 0, 0, 0, 0, 4, 4, 4], [0, 0, 0, 4, 0, 0, 1, 5, 9, 5, 1, 0, 0, 4, 0, 0, 0], [0, 4, 0, 0, 0, 0, 5, 8, 7, 10, 5, 0, 4, 4, 0, 0, 0]);
nextFrame();
Frame 4
stop();
Frame 5
totsc = 0;
totlive = 3;
lev_auto = 1;
gm_level = 1;
Frame 6
function rec_blok() {
_root.createEmptyMovieClip("map", 777777);
blokaktif.splice(0, blokaktif.length);
allblok.splice(0, allblok.length);
cod_win = false;
frezz = false;
posy = 0;
level = 0;
j_tot_mu = 0;
tot_shot_en = 0;
totrudalen = 800;
mshaktif = 0;
var i = 0;
while (i < 16) {
posx = 0;
var j = 0;
while (j < 17) {
level++;
map.attachMovie("blok", level, level, {_x:posx, _y:posy});
allblok.push(level);
var blok = eval (map[level]);
if (masterMap[i][j] eq "b") {
lst_benteng.push(level);
}
if (randommap) {
if (masterMap[i][j] != 0) {
blok.gotoAndStop(this["key_" + masterMap[i][j]] + 1);
if (masterMap[i][j] eq "k") {
centre = level;
}
} else {
var tmp_blok = random(this["lev_auto" + lev_auto].length + 2);
if (tmp_blok < this["lev_auto" + lev_auto].length) {
blok.gotoAndStop(this["lev_auto" + lev_auto][tmp_blok] + 1);
blok.cacheAsBitmap = !blok.cacheAsBitmap;
} else {
blok.gotoAndStop(1);
}
}
} else {
blok.gotoAndStop(this["bloks" + gm_level][i][j] + 1);
blok.cacheAsBitmap = !blok.cacheAsBitmap;
if (blok._currentframe == 8) {
centre = level;
}
}
posx = blok._x + sizeblok;
if (blok._currentframe > 3) {
blokaktif.push(level);
}
j++;
}
posy = posy + sizeblok;
i++;
}
posfact1_x = map["1"]._x;
posfact1_y = map["1"]._y;
posfact2_x = map["8"]._x;
posfact2_y = map["8"]._y;
posfact3_x = map["15"]._x;
posfact3_y = map["15"]._y;
pos_t_x = map["4"]._x;
pos_t_y = map["4"]._y;
attachMovie("animtank", "animtank", 3, {_x:150, _y:350});
attachMovie("landasan", "landasan", 1, {_x:150, _y:350});
var n = 1;
while (n <= 3) {
duplicateMovieClip ("factmaster", "f" + n, -n);
this["f" + n]._x = this[("posfact" + n) + "_x"] + (this["f" + n]._width / 2);
this["f" + n]._y = this[("posfact" + n) + "_y"];
n++;
}
lev_rdl = 5000;
boomlev = 888667 /* 0x0D8F5B */;
tot_rdl = lev_rdl + 1000;
lev_en = 600;
shot = true;
keyshot = true;
open_bg("levelinfo", 1);
exbt.enabled = false;
a = setInterval(oo, 1000);
d_tank.runs();
}
function set_posrobot() {
attachMovie("robot", "robot", 2, {_x:posu_x, _y:posu_y});
robot.tank.tank.gotoAndStop("n");
robot.gotoAndStop("n");
robot.tank.gotoAndStop(cod_pow_rob);
if (speed_bust) {
_root.robot.cek_speedup();
}
}
function oo() {
clearInterval(a);
map.cacheAsBitmap = !map.cacheAsBitmap;
robot.cacheAsBitmap = !robot.cacheAsBitmap;
}
function reset_blokaktif(code) {
for (var _local2 in blokaktif) {
if (blokaktif[_local2] == code) {
blokaktif.splice(_local2, 1);
}
}
}
function reset_listmusuh(code) {
for (var _local2 in lst_msh) {
if (lst_msh[_local2] == code) {
lst_msh.splice(_local2, 1);
}
}
}
function buatrudal() {
if (shot) {
shot = false;
if (lev_rdl >= tot_rdl) {
lev_rdl = 5000;
}
attachMovie("rudal", "rudal" + _root.lev_rdl, _root.lev_rdl++, {_x:_root.robot._x, _y:_root.robot._y});
_root["rudal" + _root.lev_rdl].gotoAndStop(_root.robot._currentframe);
_root["rudal" + _root.lev_rdl].type_rdl = codgun;
_root["rudal" + _root.lev_rdl].cek_tipe_pos();
_root["rudal" + _root.lev_rdl].cacheAsBitmap = !_root["rudal" + _root.lev_rdl].cacheAsBitmap;
if (codgun eq "normal") {
robot.shots.play();
fx_sound("CANNON");
} else {
fx_sound("sonic");
}
}
}
function set_hit_rob_pos() {
switch (robot._currentframe) {
case 2 :
robot._y = robot._y + speed;
return;
case 3 :
robot._y = robot._y - speed;
return;
case 4 :
robot._x = robot._x + speed;
return;
case 5 :
robot._x = robot._x - speed;
}
}
function set_hit_rob_pos_hit_m() {
switch (robot._currentframe) {
case 2 :
robot._y = robot._y + (speed + 3);
break;
case 3 :
robot._y = robot._y - (speed + 3);
break;
case 4 :
robot._x = robot._x + (speed + 3);
break;
case 5 :
robot._x = robot._x - (speed + 3);
}
if ((((robot._y <= (yminarea - speed)) || (robot._y >= (ymaxarea + speed))) || (robot._x <= (xminarea - speed))) || (robot._x >= (xmaxarea + speed))) {
set_hit_rob_pos();
}
}
function moverobot() {
robot.cekblok();
this.onEnterFrame = function () {
robot.update();
if (Key.isDown(32)) {
t_shotx.gotoAndPlay(2);
buatrudal();
}
};
}
function cekbloksx() {
for (var _local2 in blok_onposisi_tank) {
if (robot.hitTest(map[blok_onposisi_tank[_local2]])) {
switch (robot._currentframe) {
case 2 :
robot._y = (map[blok_onposisi_tank[_local2]]._y + sizeblok) + (robot._height / 2);
break;
case 3 :
robot._y = map[blok_onposisi_tank[_local2]]._y - (robot._height / 2);
break;
case 4 :
robot._x = (map[blok_onposisi_tank[_local2]]._x + sizeblok) + (robot._width / 2);
break;
case 5 :
robot._x = map[blok_onposisi_tank[_local2]]._x - (robot._width / 2);
}
}
}
if (robot.hitTest(this[m_hit])) {
speed = 0;
set_hit_rob_pos_hit_m();
} else if (speed_bust) {
speed = 3;
} else {
speed = robot.tank.speed;
}
if ((((robot._y <= (yminarea - speed)) || (robot._y >= (ymaxarea + speed))) || (robot._x <= (xminarea - speed))) || (robot._x >= (xmaxarea + speed))) {
set_hit_rob_pos();
}
}
function cek_totlive() {
if (totsc >= p_live) {
p_live = p_live + p_live;
live.text = (totlive = totlive + 1);
}
}
function cek_win(scr) {
function win() {
cod_win = true;
gm_level++;
if ((gm_level % 5) == 0) {
max_musuh = max_musuh + 1;
}
clearInterval(delay);
clearInterval(intervalIDen);
delete this.onEnterFrame;
robot._alpha = 0;
map.removeMovieClip();
if ((gm_level % 2) == 0) {
if (lev_auto < 4) {
lev_auto++;
}
}
if (!randommap) {
if (gm_level > maxlev) {
cod_win = "win";
open_bg("levelinfo", 4);
clearInterval(intervalIDen);
attachMovie("robot", "robot", 2, {_x:-10, _y:400});
robot.tank.tank.gotoAndStop("n");
robot.gotoAndStop("n");
codexit = true;
} else {
open_bg("levelinfo", 2);
}
} else if (gm_level > maxlev) {
gog();
} else {
open_bg("levelinfo", 2);
}
}
tot_shot_en++;
totsc = totsc + scr;
scn.text = totsc;
cek_totlive();
if (tot_shot_en >= max_musuh) {
clearInterval(intervalIDen);
delay = setInterval(win, 2000);
clearInterval(t_game.waktu);
clearInterval(bonustime);
}
}
function cek_live() {
delete this.onEnterFrame;
robot.removeMovieClip();
codgun = "normal";
if (totlive > 0) {
totlive--;
live.text = totlive;
animtank.gotoAndPlay(2);
speed = robot.tank.speed;
speed_bust = false;
robot.cek_speedup();
} else {
gog();
}
}
function gog() {
function loses() {
clearInterval(delay);
open_bg("levelinfo", 3);
codexit = true;
}
clearInterval(intervalIDen);
delete this.onEnterFrame;
delay = setInterval(loses, 500);
cod_win = "loses";
fx_sound("gog");
}
function exit(code) {
switch (code) {
case 1 :
codexit = true;
delete this.onEnterFrame;
attachMovie("exitinfo", "exitinfo", 991888);
exitinfo._x = 0;
exitinfo._y = 0;
clearInterval(intervalIDen);
clearInterval(bonustime);
exitinfo.gotoAndStop(1);
break;
case 2 :
codexit = false;
moverobot();
timer_on();
exitinfo.removeMovieClip();
timer_bonus();
break;
case 3 :
clearInterval(intervalIDen);
codexit = "okexit";
for (var _local3 in lst_msh) {
this[lst_msh[_local3]].removeMovieClip();
}
var _local2 = 1;
while (_local2 <= 3) {
this["f" + _local2].removeMovieClip();
_local2++;
}
landasan.removeMovieClip();
infbonustext.removeMovieClip();
map.removeMovieClip();
exitinfo.removeMovieClip();
robot._alpha = 0;
bgm.stop();
fx.stop();
gotoAndStop ("stgms");
break;
case 4 :
clearInterval(intervalIDen);
close_bg("levelinfo");
codexit = "okexit";
for (var _local3 in lst_msh) {
this[lst_msh[_local3]].removeMovieClip();
}
_local2 = 1;
while (_local2 <= 3) {
this["f" + _local2].removeMovieClip();
_local2++;
}
landasan.removeMovieClip();
infbonustext.removeMovieClip();
map.removeMovieClip();
exitinfo.removeMovieClip();
robot._alpha = 0;
fx.stop();
bgm.stop();
gotoAndStop ("sel_map");
}
}
function buatmusuh() {
j_tot_mu++;
if (j_tot_mu <= max_musuh) {
_root.attachMovie("en_master", "en" + lev_en, lev_en++);
mshaktif++;
var en = eval (_root["en" + lev_en]);
en._x = _root["f" + (random(3) + 1)]._x;
en._y = 0 + (en._height / 2);
var j_tank = (random(dta_tank[gm_level]) + 1);
en.tank.gotoAndStop(j_tank);
en.tank.speed = en_speed[j_tank];
en.point = en_point[j_tank];
en.power = en_power[j_tank];
en.t_shotx = en_tshot[j_tank];
en.cek.gotoAndPlay(2);
en.cacheAsBitmap = !en.cacheAsBitmap;
} else {
clearInterval(intervalIDen);
clearInterval(bonustime);
}
}
function booms(c, code, posx, posy) {
if (c eq "t") {
duplicateMovieClip ("boom", "b" + code, boomlev);
} else if (c eq "k") {
duplicateMovieClip ("boomkebal", "b" + code, boomlev);
} else {
duplicateMovieClip ("boomblok", "b" + code, boomlev);
}
this["b" + code]._x = posx;
this["b" + code]._y = posy;
this["b" + code].gotoAndPlay(2);
this["b" + code].cacheAsBitmap = !this["b" + code].cacheAsBitmap;
fx_sound("BOMB");
boomlev++;
}
function show_bonus() {
if ((!cod_win) || (cod_win ne "loses")) {
var _local3 = random(16);
var _local4 = random(17);
if (masterMap[_local3][_local4] == 0) {
var _local5 = sizeblok * _local3;
var _local2 = sizeblok * _local4;
if (_local2 >= 375) {
_local2 = 375;
}
attachMovie("bonus", "bonus" + st_lev_bonus, st_lev_bonus, {_x:_local5, _y:_local2});
this["bonus" + st_lev_bonus].cacheAsBitmap = !this["bonus" + st_lev_bonus].cacheAsBitmap;
this["bonus" + st_lev_bonus].bonusx();
} else {
show_bonus();
}
}
}
function updateTimeren() {
if (mshaktif < 10) {
buatmusuh();
}
}
function timer_on() {
intervalIDen = setInterval(updateTimeren, 5000);
}
function updatebonus() {
show_bonus();
clearInterval(bonustime);
}
function timer_bonus() {
var _local1 = (random(4000) + 2000) + 3000;
bonustime = setInterval(updatebonus, _local1);
}
function frezz_off() {
frezz = false;
clearInterval(f_t);
timer_on();
}
function timer_frezz() {
if (!frezz) {
frezz = true;
f_t = setInterval(frezz_off, 10000);
clearInterval(intervalIDen);
}
}
function shot_turet(t, en_trg, posen_x, posen_y) {
r++;
duplicateMovieClip ("panah", "t" + r, r);
pnh = eval (this["t" + r]);
pnh.speed = 0.3;
pnh.en_hit = en_trg;
pnh._x = map[t]._x + c_blok;
pnh._y = map[t]._y + c_blok;
pnh.en_x = posen_x;
pnh.en_y = posen_y;
var dir = ((Math.atan2(posen_y - pnh._y, posen_x - pnh._x) * 180) / 3.141593);
pnh._rotation = dir + 90;
if (pnh._x > posen_x) {
pnh.indx_x = -1;
} else {
pnh.indx_x = 1;
}
if (pnh._y > posen_y) {
pnh.indx_y = -1;
} else {
pnh.indx_y = 1;
}
pnh.myTween = new mx.transitions.Tween(pnh, "_x", mx.transitions.easing.None.easeNone, pnh._x, posen_x, 4, false);
pnh.myTween = new mx.transitions.Tween(pnh, "_y", mx.transitions.easing.None.easeNone, pnh._y, posen_y, 4, false);
pnh.onEnterFrame = function () {
if (_root[this._name].hitTest(_root[this.en_hit])) {
_root[this.en_hit].power = _root[this.en_hit].power - 1;
if (_root[this.en_hit].power == 0) {
_root.booms("t", this.en_hit, _root[this.en_hit]._x, _root[this.en_hit]._y);
_root.cek_win(_root[this.en_hit].point);
_root[this.en_hit].removeMovieClip();
_root.mshaktif--;
_root.reset_listmusuh(this.en_hit);
} else {
_root.booms("k", this.en_hit, _root[this.en_hit]._x, _root[this.en_hit]._y);
}
this.removeMovieClip();
}
if ((this._x == this.en_x) && (this._y == this.en_y)) {
_root.booms("k", this.en_hit, _root[this.en_hit]._x, _root[this.en_hit]._y);
this.removeMovieClip();
}
};
}
_root.createEmptyMovieClip("c_shots", 4025);
attachMovie("infbonustext", "infbonustext", 787777, {_x:217.4, _y:391.45});
lst_msh = new Array();
lst_benteng = new Array();
max_musuh = 15;
sizeblok = 25;
c_blok = sizeblok / 2;
posu_x = 150 + c_blok;
posu_y = 350 + c_blok;
xminarea = 0 + (robot._height / 2);
xmaxarea = 425 - (robot._height / 2);
yminarea = 0 + (robot._height / 2);
ymaxarea = 400 - (robot._height / 2);
maxtotrudalen = 1000;
scn.text = totsc;
live.text = totlive;
blokaktif = new Array();
allblok = new Array();
codgun = "normal";
cod_pow_rob = 1;
speed_bust = false;
rec_blok();
p_live = 1000;
codexit = false;
st_lev_bonus = 200;
r = 777999 /* 0x0BDF0F */;
Frame 7
function new_map() {
posy = 0;
sizeblok = 25;
level = 0;
mapselaktif = 1;
var i = 0;
while (i < 16) {
posx = 0;
var j = 0;
while (j < 17) {
_root.attachMovie("mapguide", level, level++, {_x:posx, _y:posy});
var blok = eval (_root[level]);
if ((((((((masterMap[i][j] eq "k") || (masterMap[i][j] eq "l")) || (masterMap[i][j] eq "tx")) || (masterMap[i][j] eq "r")) || (masterMap[i][j] eq "u")) || (masterMap[i][j] eq "xx1")) || (masterMap[i][j] eq "xx2")) || (masterMap[i][j] eq "xx3")) {
blok.gotoAndStop("nomap");
} else {
blok.gotoAndStop(1);
}
posx = blok._x + sizeblok;
j++;
}
posy = posy + sizeblok;
i++;
}
totmap = level;
}
function buat_map() {
var _local4 = 1;
var _local6 = 0;
while (_local6 < 16) {
var _local2 = "";
var _local3 = 0;
while (_local3 < 17) {
if (_root[_local4]._currentframe == _root[_local4]._totalframes) {
var _local5 = 1;
} else {
var _local5 = _root[_local4]._currentframe - 1;
}
if (_local3 == 16) {
_local2 = _local2 + _local5;
} else {
_local2 = (_local2 + _local5) + ",";
}
_local4++;
_local3++;
}
trace(("[" + _local2) + "]");
_local6++;
}
trace("-----------------------");
}
function clear_map() {
var _local2 = 0;
while (_local2 <= totmap) {
this[_local2].removeMovieClip();
_local2++;
}
new_map();
}
new_map();
Symbol 17 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 22 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 26 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 27 MovieClip Frame 1
stop();
Symbol 28 MovieClip [rudalx] Frame 1
function cek_pos_rdl() {
switch (_currentframe) {
case 2 :
move_ver(-1);
return;
case 3 :
move_ver(1);
return;
case 4 :
move_hor(-1);
return;
case 5 :
move_hor(1);
}
}
function cek_blokx() {
cek_blok.onEnterFrame = function () {
for (var _local2 in blok_onposisi) {
if (_root[_name].hitTest(_root.map[blok_onposisi[_local2]]) && (_root.map[blok_onposisi[_local2]]._currentframe != 4)) {
_root.booms("b", blok_onposisi[_local2], _root.map[blok_onposisi[_local2]]._x + _root.c_blok, _root.map[blok_onposisi[_local2]]._y + _root.c_blok);
_root.map[blok_onposisi[_local2]].cek_blok(blok_onposisi[_local2], pwr_rdl);
clear_rd();
}
}
};
}
function cek_msh() {
rudal.gotoAndStop(pwr_rdl);
cek_lstmshx.onEnterFrame = function () {
if (_root[_name].hitTest(_root.robot)) {
if (_root.robot.tank._currentframe == 1) {
_root.booms("t", "robot", _root.robot._x, _root.robot._y);
_root.cek_live();
} else {
_root.booms("k", "robot", _root.robot._x, _root.robot._y);
_root.robot.tank.prevFrame();
_root.cod_pow_rob--;
}
clear_rd();
}
};
}
function cek_exit() {
this.onEnterFrame = function () {
if (!_root.codexit) {
delete this.onEnterFrame;
cek_pos_rdl();
}
if (_root.codexit eq "okexit") {
clear_rd();
}
};
}
function move_ver(arah) {
cek_msh();
cek_blokx();
this.onEnterFrame = function () {
if (_root.codexit) {
delete this.onEnterFrame;
cek_exit();
} else {
_y = (_y + (speed * arah));
}
if ((((_y < -10) || (_y > 390)) || (_root.cod_win)) || (_root.codexit eq "okexit")) {
clear_rd();
}
};
}
function move_hor(arah) {
cek_msh();
cek_blokx();
this.onEnterFrame = function () {
if (_root.codexit) {
delete this.onEnterFrame;
cek_exit();
} else {
_x = (_x + (speed * arah));
}
if (((_x < -10) || (_x > 420)) || (_root.cod_win)) {
clear_rd();
}
};
}
function clear_rd() {
this.removeMovieClip();
}
stop();
speed = 5;
this.createEmptyMovieClip("cek_lstmshx", this.getNextHighestDepth());
this.createEmptyMovieClip("cek_blok", this.getNextHighestDepth());
Symbol 28 MovieClip [rudalx] Frame 2
cek_pos_rdl();
Symbol 28 MovieClip [rudalx] Frame 3
cek_pos_rdl();
Symbol 28 MovieClip [rudalx] Frame 4
cek_pos_rdl();
Symbol 28 MovieClip [rudalx] Frame 5
cek_pos_rdl();
Symbol 39 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 1
stop();
Symbol 45 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 1
stop();
Symbol 51 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
Symbol 55 MovieClip Frame 3
Symbol 60 MovieClip Frame 1
stop();
Symbol 64 MovieClip [en_master] Frame 1
function cekarah() {
if ((!_root.codexit) || (!_root.frezz)) {
var _local2 = random(4) + 2;
if (arah != _local2) {
arah = _local2;
gotoAndStop(arah);
} else {
cekarah();
}
}
}
function cek_exit() {
this.onEnterFrame = function () {
if (!_root.codexit) {
delete this.onEnterFrame;
tank.tank.t.ban1.play();
tank.tank.t.ban2.play();
moves();
timer_on();
}
};
}
function cek_temansx() {
cek_teman.onEnterFrame = function () {
for (var _local3 in _root.lst_msh) {
if (_root.lst_msh[_local3] eq _name) {
continue;
}
if (_root[_name].hitTest(_root[_root.lst_msh[_local3]])) {
var _local2 = Math.abs(_root[_name]._x - _root[_root.lst_msh[_local3]]._x);
if (_local2 < 10) {
reset_move(10);
} else {
reset_move(4);
}
}
}
};
}
function cek_frezz() {
delete this.onEnterFrame;
tank.tank.t.ban1.stop();
tank.tank.t.ban2.stop();
frezes.gotoAndStop(tank.tank._currentframe + 1);
this.onEnterFrame = function () {
clearInterval(ac_arah);
if (this.hitTest(_root.robot)) {
_root.set_hit_rob_pos();
}
if (!_root.frezz) {
delete this.onEnterFrame;
tank.tank.t.ban1.play();
tank.tank.t.ban2.play();
frezes.gotoAndStop(1);
moves();
}
};
}
function moves() {
speed = tank.speed;
acakarah();
delete cek_hit_rob.onEnterFrame;
if (_root.lst_msh.length > 1) {
cek_temans();
}
this.onEnterFrame = function () {
if (_root.codexit) {
delete this.onEnterFrame;
clearInterval(intervalID);
clearInterval(ac_arah);
tank.tank.t.ban1.stop();
tank.tank.t.ban2.stop();
cek_exit();
}
if (_root.frezz) {
delete this.onEnterFrame;
clearInterval(intervalID);
clearInterval(ac_arah);
cek_frezz();
}
switch (arah) {
case 2 :
_y = (_y - speed);
break;
case 3 :
_y = (_y + speed);
break;
case 4 :
_x = (_x - speed);
break;
case 5 :
_x = (_x + speed);
}
if (_root.cod_win eq "loses") {
clearInterval(intervalID);
clearInterval(ac_arah);
delete this.onEnterFrame;
tank.tank.t.ban1.stop();
tank.tank.t.ban2.stop();
}
for (var _local3 in blok_onposisi_tank) {
if (_root[_name].hitTest(_root.map[blok_onposisi_tank[_local3]])) {
reset_move(2);
}
}
if ((((_y <= _root.yminarea) || (_y >= _root.ymaxarea)) || (_x <= _root.xminarea)) || (_x >= _root.xmaxarea)) {
reset_move(2);
}
if (_root[_name].hitTest(_root.robot)) {
_root.m_hit = _name;
delete this.onEnterFrame;
switch (_root.robot._currentframe) {
case 2 :
gotoAndStop (3);
break;
case 3 :
gotoAndStop (2);
break;
case 4 :
gotoAndStop (5);
break;
case 5 :
gotoAndStop (4);
}
arah = _currentframe;
cek_hit_robs();
}
};
}
function cek_hit_robs() {
clearInterval(intervalID);
cek_hit_rob.onEnterFrame = function () {
var _local2 = random(5);
if (_local2 == 0) {
robshot();
}
if (!_root[_name].hitTest(_root.robot)) {
delete cek_hit_rob.onEnterFrame;
speed = tank.speed;
moves();
reset_move(0);
}
};
}
function gti_arah() {
speed = 0;
clearInterval(ac_arah);
reset_move(0);
}
function robshot() {
clearInterval(sh_rb);
delete cek_hit_rob.onEnterFrame;
updateTimer();
code_rb = false;
reset_move(0);
}
function acakarah() {
var _local1 = (random(50000) + 10000) + 10000;
ac_arah = setInterval(gti_arah, _local1);
}
function reset_move(code) {
delete this.onEnterFrame;
delete cek_teman.onEnterFrame;
clearInterval(sh_rb);
speed = 0;
if (_y < 9) {
_y = 18;
}
if (_y > 390) {
_y = 378;
}
if (_x > 417) {
_x = 410;
}
if (_x < 9) {
_x = 12;
}
var _local2 = 2 + code;
switch (_currentframe) {
case 2 :
_y = (_y + _local2);
_y = (_y + _local2);
break;
case 3 :
_y = (_y - _local2);
_y = (_y - _local2);
break;
case 4 :
_x = (_x + _local2);
_x = (_x + _local2);
break;
case 5 :
_x = (_x - _local2);
_x = (_x - _local2);
}
cekarah();
}
function cekblok() {
blok_onposisi = new Array();
blok_onposisi_tank = new Array();
switch (_currentframe) {
case 2 :
tmp = -10;
var _local2 = 0;
while (_local2 < _root.blokaktif.length) {
if (((_x >= _root.map[_root.blokaktif[_local2]]._x) && (_x <= (_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._y < _y)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_x > (_root.map[_root.blokaktif[_local2]]._x - (_width / 2))) && (_x < ((_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok) + (_width / 2)))) && (_root.map[_root.blokaktif[_local2]]._y > tmp)) && (_root.map[_root.blokaktif[_local2]]._y < _y)) {
blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2++;
}
break;
case 3 :
tmp = 450;
_local2 = _root.blokaktif.length;
while (_local2 >= 0) {
if (((_x >= _root.map[_root.blokaktif[_local2]]._x) && (_x <= (_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._y > _y)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_x > (_root.map[_root.blokaktif[_local2]]._x - (_width / 2))) && (_x < ((_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok) + (_width / 2)))) && (_root.map[_root.blokaktif[_local2]]._y < tmp)) && (_root.map[_root.blokaktif[_local2]]._y > _y)) {
blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2--;
}
break;
case 4 :
tmp = -10;
_local2 = 0;
while (_local2 < _root.blokaktif.length) {
if (((_y >= _root.map[_root.blokaktif[_local2]]._y) && (_y <= (_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._x < _x)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_y > ((_root.map[_root.blokaktif[_local2]]._y - (_height / 4)) - 5)) && (_y < (((_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok) + (_height / 4)) + 5))) && (_root.map[_root.blokaktif[_local2]]._x > tmp)) && (_root.map[_root.blokaktif[_local2]]._x < _x)) {
blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2++;
}
break;
case 5 :
tmp = 420;
_local2 = _root.blokaktif.length;
for(;;){
if (_local2 < 0) {
break;
}
if (((_y >= _root.map[_root.blokaktif[_local2]]._y) && (_y <= (_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._x > _x)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_y > ((_root.map[_root.blokaktif[_local2]]._y - (_height / 4)) - 5)) && (_y < (((_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok) + (_height / 4)) + 5))) && (_root.map[_root.blokaktif[_local2]]._x < tmp)) && (_root.map[_root.blokaktif[_local2]]._x > _x)) {
blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2--;
};
}
moves();
}
function buatrudalx() {
if (_root.totrudalen > _root.maxtotrudalen) {
_root.totrudalen = 800;
}
_root.attachMovie("rudalx", ("rudalx" + _name) + _root.totrudalen, _root.totrudalen++, {_x:_x, _y:_y});
_root[("rudalx" + _name) + _root.totrudalen].blok_onposisi = new Array();
_root[("rudalx" + _name) + _root.totrudalen].blok_onposisi = blok_onposisi;
_root[("rudalx" + _name) + _root.totrudalen].pwr_rdl = power;
_root[("rudalx" + _name) + _root.totrudalen].gotoAndStop(_currentframe);
_root[("rudalx" + _name) + _root.totrudalen].cacheAsBitmap = !_root[("rudalx" + _name) + _root.totrudalen].cacheAsBitmap;
_root.fx_sound("shot");
timer_on();
}
function updateTimer() {
if (!_root.codexit) {
buatrudalx();
clearInterval(intervalID);
clearInterval(sh_rb);
}
}
function timer_on() {
var _local1 = (random(3000) + 1500) + t_shotx;
intervalID = setInterval(updateTimer, _local1);
}
stop();
this.createEmptyMovieClip("cek_teman", this.getNextHighestDepth());
this.createEmptyMovieClip("cek_hit_rob", this.getNextHighestDepth());
tank.tank.gotoAndStop("t");
_root.lst_msh.push(_name);
arah = 3;
gotoAndStop(arah);
timer_on();
Symbol 64 MovieClip [en_master] Frame 2
tank.tank.gotoAndStop("n");
cekblok();
Symbol 64 MovieClip [en_master] Frame 3
tank.tank.gotoAndStop("t");
cekblok();
Symbol 64 MovieClip [en_master] Frame 4
tank.tank.gotoAndStop("ki");
cekblok();
Symbol 64 MovieClip [en_master] Frame 5
tank.tank.gotoAndStop("ka");
cekblok();
Symbol 66 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 22
gotoAndStop (1);
Symbol 75 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 78 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 80 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 1
stop();
gotoAndStop(_parent._parent._currentframe - 1);
Symbol 85 MovieClip Frame 1
stop();
speed = 2;
_root.speed = speed;
_parent.power = 1;
_parent.speed_bust = false;
_parent.cek_speedup();
Symbol 85 MovieClip Frame 2
stop();
_root.infbonus = "Upgrade Tank : Speed Up";
speed = 2.5;
_root.speed = speed;
_parent.power = 1;
_parent.speed_bust = false;
_parent.cek_speedup();
Symbol 85 MovieClip Frame 3
_root.infbonus = "Upgrade Tank : Medium Missile";
speed = 2.5;
_root.speed = speed;
_parent.power = 2;
_parent.speed_bust = false;
_parent.cek_speedup();
Symbol 85 MovieClip Frame 4
stop();
_root.infbonus = "Upgrade Tank : Super Tank";
speed = 3;
_root.speed = speed;
_parent.power = 2;
_parent.speed_bust = true;
_parent.cek_speedup();
Symbol 90 MovieClip Frame 1
stop();
Symbol 92 MovieClip [robot] Frame 1
#initclip 6
Object.registerClass("robot", Player);
#endinitclip
function cek_speedup() {
if (_root.speed_bust) {
speedup.gotoAndStop(_currentframe);
} else {
speedup.gotoAndStop(1);
}
}
function cekblok() {
blok_onposisi = new Array();
_root.blok_onposisi_tank = new Array();
tank.tank.gotoAndStop(_currentframe - 1);
cek_speedup();
switch (_currentframe) {
case 2 :
tmp = -10;
var _local2 = 0;
while (_local2 < _root.blokaktif.length) {
if (((_root.robot._x >= _root.map[_root.blokaktif[_local2]]._x) && (_root.robot._x <= (_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._y < _root.robot._y)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_root.robot._x > (_root.map[_root.blokaktif[_local2]]._x - (_root.robot._width / 2))) && (_root.robot._x < ((_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok) + (_root.robot._width / 2)))) && (_root.map[_root.blokaktif[_local2]]._y > tmp)) && (_root.map[_root.blokaktif[_local2]]._y < _root.robot._y)) {
_root.blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2++;
}
_root.mov_stop = _root.speed;
break;
case 3 :
tmp = 450;
_local2 = _root.blokaktif.length;
while (_local2 >= 0) {
if (((_root.robot._x >= _root.map[_root.blokaktif[_local2]]._x) && (_root.robot._x <= (_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._y > _root.robot._y)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_root.robot._x > (_root.map[_root.blokaktif[_local2]]._x - (_root.robot._width / 2))) && (_root.robot._x < ((_root.map[_root.blokaktif[_local2]]._x + _root.sizeblok) + (_root.robot._width / 2)))) && (_root.map[_root.blokaktif[_local2]]._y < tmp)) && (_root.map[_root.blokaktif[_local2]]._y > _root.robot._y)) {
_root.blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2--;
}
_root.mov_stop = -_root.speed;
break;
case 4 :
tmp = -10;
_local2 = 0;
while (_local2 < _root.blokaktif.length) {
if (((_root.robot._y >= _root.map[_root.blokaktif[_local2]]._y) && (_root.robot._y <= (_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._x < _root.robot._x)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_root.robot._y > ((_root.map[_root.blokaktif[_local2]]._y - (_root.robot._height / 4)) - 5)) && (_root.robot._y < (((_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok) + (_root.robot._height / 4)) + 5))) && (_root.map[_root.blokaktif[_local2]]._x > tmp)) && (_root.map[_root.blokaktif[_local2]]._x < _root.robot._x)) {
_root.blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2++;
}
_root.mov_stop = _root.speed;
break;
case 5 :
tmp = 420;
_local2 = _root.blokaktif.length;
while (_local2 >= 0) {
if (((_root.robot._y >= _root.map[_root.blokaktif[_local2]]._y) && (_root.robot._y <= (_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok))) && (_root.map[_root.blokaktif[_local2]]._x > _root.robot._x)) {
blok_onposisi.push(_root.blokaktif[_local2]);
}
if ((((_root.robot._y > ((_root.map[_root.blokaktif[_local2]]._y - (_root.robot._height / 4)) - 5)) && (_root.robot._y < (((_root.map[_root.blokaktif[_local2]]._y + _root.sizeblok) + (_root.robot._height / 4)) + 5))) && (_root.map[_root.blokaktif[_local2]]._x < tmp)) && (_root.map[_root.blokaktif[_local2]]._x > _root.robot._x)) {
_root.blok_onposisi_tank.push(_root.blokaktif[_local2]);
}
_local2--;
}
_root.mov_stop = -_root.speed;
}
}
function scrollban() {
tank.tank.t.ban1.nextFrame();
tank.tank.t.ban2.nextFrame();
tank.tank.t.ban3.nextFrame();
tank.tank.t.ban4.nextFrame();
speedup.speedup1.nextFrame();
speedup.speedup2.nextFrame();
}
stop();
cekblok();
Symbol 92 MovieClip [robot] Frame 2
cekblok();
Symbol 92 MovieClip [robot] Frame 3
cekblok();
Symbol 92 MovieClip [robot] Frame 4
cekblok();
Symbol 92 MovieClip [robot] Frame 5
cekblok();
Symbol 101 Button
on (release) {
_root.fx_sound("klikbutton");
_root.exit(3);
}
Symbol 105 Button
on (release) {
_root.fx_sound("klikbutton");
_root.exit(2);
}
Symbol 106 MovieClip [exitinfo] Frame 1
stop();
btx.enabled = false;
Symbol 126 Button
on (release) {
getURL ("http://www.turbogames.com", "_blank");
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 131 MovieClip [levelinfo] Frame 1
function Timer() {
clearInterval(intervalID);
_root.close_bg("levelinfo");
_root.buatmusuh();
_root.timer_on();
_root.timer_bonus();
_root.t_game.hit_waktu();
_root.animtank.gotoAndPlay(2);
_root.bg_music("bgmus");
_root.exbt.enabled = true;
}
function set_ready() {
intervalID = setInterval(Timer, 3000);
}
function hitung_point() {
intervalID = setInterval(point, 5000);
}
function point() {
clearInterval(intervalID);
_root.rec_blok();
}
stop();
_root.exbt.enabled = false;
Symbol 131 MovieClip [levelinfo] Frame 2
_root.exbt.enabled = false;
if (!_root.randommap) {
var levx = (_root.gm_level - 1);
if ((levx % _root.interval_lev) == 0) {
levx = levx / _root.interval_lev;
kys._alpha = 100;
kys.keys.text = _root.key_adv_lev[levx];
}
}
Symbol 135 MovieClip [t_game] Frame 1
function updateTimer() {
sc++;
if ((sc % 5) == 0) {
en.nextFrame();
}
if (sc > 60) {
sc = 0;
mt++;
}
if (mt > 60) {
mt = 0;
jm++;
}
((sc < 10) ? ((sct = "0" + sc)) : ((sct = sc)));
((mt < 10) ? ((mtt = "0" + mt)) : ((mtt = mt)));
((jm < 10) ? ((jmt = "0" + jm)) : ((jmt = jm)));
t_g.text = (((jmt + ":") + mtt) + ":") + sct;
}
function hit_waktu() {
waktu = setInterval(updateTimer, 1000);
}
t_g.text = "00:00:00";
jm = (mt = (sc = 0));
Symbol 137 MovieClip Frame 1
var glow = (new flash.filters.GlowFilter(16777215, 100, 5, 5, 5, 5));
this.onEnterFrame = function () {
glow.blurY = (glow.blurX = random(3) + 3);
bonus.filters = [glow];
};
Symbol 144 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 164 MovieClip [bonus] Frame 1
function bonusx() {
bonus.gotoAndStop(random(bonus._totalframes) + 1);
}
function cekposisi() {
var _local2 = 0;
while (_local2 < _root.blokaktif.length) {
if (_root[_name].hitTest(_root.map[_root.blokaktif[_local2]])) {
_root.show_bonus();
break;
}
if (_local2 == (_root.blokaktif.length - 1)) {
_root.st_lev_bonus++;
_root.timer_bonus();
select_bonus();
setwaktu();
}
_local2++;
}
}
function cek_exit() {
this.onEnterFrame = function () {
if (!_root.codexit) {
delete this.onEnterFrame;
setwaktu();
select_bonus();
}
if (_root.codexit eq "okexit") {
remove();
}
};
}
function select_bonus() {
var _local3 = false;
this.onEnterFrame = function () {
if (_root.codexit) {
delete this.onEnterFrame;
clearInterval(delay);
cek_exit();
}
if ((!_root.cod_win) || (_root.codexit eq "okexit")) {
if (bonusxt.hitTest(_root.robot)) {
switch (bonus._currentframe) {
case 1 :
_root.totsc = _root.totsc + 50;
_root.scn.text = _root.totsc;
_root.cek_totlive();
_root.fx_sound("point");
remove();
break;
case 2 :
_root.robot.tank.nextFrame();
_root.codgun = "normal";
_root.cod_pow_rob = _root.robot.tank._currentframe;
_root.robot.tank.tank.gotoAndStop(_root.robot._currentframe - 1);
_root.fx_sound("benteng");
_root.infbonustext.gotoAndPlay(2);
remove();
break;
case 3 :
ganti_benteng(6);
break;
case 4 :
_root.totsc = _root.totsc + 25;
_root.scn.text = _root.totsc;
_root.cek_totlive();
_root.fx_sound("point");
remove();
break;
case 5 :
ganti_benteng(7);
break;
case 6 :
_root.totsc = _root.totsc + 10;
_root.scn.text = _root.totsc;
_root.cek_totlive();
_root.fx_sound("point");
remove();
break;
case 7 :
_root.live.text = (_root.totlive = _root.totlive + 1);
_root.fx_sound("live");
_root.infbonus = "Exstra Live";
_root.infbonustext.gotoAndPlay(2);
remove();
break;
case 8 :
_root.timer_frezz();
_root.fx_sound("freeze");
remove();
break;
case 9 :
_root.totsc = _root.totsc + 50;
_root.scn.text = _root.totsc;
_root.cek_totlive();
_root.fx_sound("point");
remove();
break;
case 10 :
_root.totsc = _root.totsc + 25;
_root.scn.text = _root.totsc;
_root.cek_totlive();
_root.fx_sound("point");
remove();
break;
case 11 :
_root.totsc = _root.totsc + 10;
_root.scn.text = _root.totsc;
_root.cek_totlive();
_root.fx_sound("point");
remove();
break;
case 12 :
_root.codgun = "sonic";
_root.fx_sound("benteng");
_root.infbonus = "Sonic Weapon";
_root.infbonustext.gotoAndPlay(2);
remove();
break;
case 13 :
_root.speed = 3;
_root.speed_bust = true;
_root.robot.cek_speedup();
_root.fx_sound("benteng");
_root.infbonus = "Turbo Engin";
_root.infbonustext.gotoAndPlay(2);
remove();
}
}
} else {
remove();
}
};
}
function ganti_benteng(code) {
_root.fx_sound("benteng");
_root.key_b = code - 1;
for (var _local5 in _root.lst_benteng) {
if (_root.map[_root.lst_benteng[_local5]]._x ne undefined) {
_root.map[_root.lst_benteng[_local5]].gotoAndStop(code);
_root.map[_root.lst_benteng[_local5]].blok.gotoAndStop(1);
} else {
_root.map.attachMovie("blok", _root.level, _root.level++, {_x:_root.posbx[_local5], _y:_root.posby[_local5]});
_root.map[_root.level].gotoAndStop(code);
_root.blokaktif.push(_root.level);
}
}
remove();
}
function remove() {
clearInterval(delay);
_root[_name].removeMovieClip();
}
function setwaktu() {
delay = setInterval(remove, 8000);
}
stop();
bonusx();
cekposisi();
Symbol 169 MovieClip [infbonustext] Frame 1
stop();
Symbol 169 MovieClip [infbonustext] Frame 2
clearInterval(a);
inf.text = _root.infbonus;
play();
Symbol 169 MovieClip [infbonustext] Frame 3
function off() {
gotoAndStop (1);
}
a = setInterval(off, 3000);
stop();
Symbol 172 Button
on (release) {
gotoAndStop(_root.mapselaktif);
}
Symbol 177 MovieClip Frame 1
stop();
Symbol 190 MovieClip Frame 1
stop();
Instance of Symbol 189 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation + 3);
}
Symbol 194 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 3
_parent.radar.clears();
Symbol 201 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
function shot_en() {
for (var _local4 in _root.lst_msh) {
var _local3 = Math.sqrt(Math.pow(_root.map[_parent._name]._x - _root[_root.lst_msh[_local4]]._x, 2) + Math.pow(_root.map[_parent._name]._y - _root[_root.lst_msh[_local4]]._y, 2));
if (_local3 <= range) {
_root.shot_turet(_parent._name, _root.lst_msh[_local4], _root[_root.lst_msh[_local4]]._x, _root[_root.lst_msh[_local4]]._y);
api.gotoAndPlay(2);
break;
}
}
}
function clears() {
clearInterval(radar_en);
delete this.onEnterFrame;
trace("clear");
}
range = 134;
this.onEnterFrame = function () {
_rotation = (_rotation + 5);
if ((_root.tot_shot_en >= _root.max_musuh) || (_root.cod_win eq "loses")) {
clears();
}
};
radar_en = setInterval(shot_en, 500);
Symbol 204 MovieClip [mapguide] Frame 1
function cek_blok(code, power) {
var _local3 = blok._currentframe + power;
if (_local3 > blok._totalframes) {
blok.gotoAndStop(blok._totalframes);
} else {
blok.gotoAndStop(_local3);
}
if (blok._currentframe == blok._totalframes) {
if (_currentframe != 8) {
_root.reset_blokaktif(code);
} else {
_root.gog();
}
this.removeMovieClip();
}
}
stop();
Symbol 204 MovieClip [mapguide] Frame 5
no.text = _name;
Instance of Symbol 203 MovieClip "radar" in Symbol 204 MovieClip [mapguide] Frame 12
/* no clip actions */
Symbol 213 MovieClip [animtank] Frame 1
stop();
Symbol 213 MovieClip [animtank] Frame 25
_root.set_posrobot();
Symbol 213 MovieClip [animtank] Frame 45
_root.moverobot();
Symbol 215 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
Symbol 229 MovieClip Frame 24
gotoAndPlay ("a");
Symbol 230 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
_parent.speed = 5;
Symbol 231 MovieClip Frame 3
stop();
_parent.speed = 6;
Symbol 231 MovieClip Frame 4
_parent.speed = 7;
Symbol 231 MovieClip Frame 5
_parent.speed = 7;
Symbol 232 MovieClip [rudal] Frame 1
function cek_tipe_pos() {
if (!posakhir) {
if (type_rdl eq "normal") {
rudal.gotoAndStop(_root.robot.tank._currentframe);
} else {
rudal.gotoAndStop(type_rdl);
}
rudal.rudal.gotoAndStop(_root.robot.tank.tank._currentframe);
pwr_rdl = _root.robot.power;
}
switch (_currentframe) {
case 2 :
move_ver(-1);
break;
case 3 :
move_ver(1);
break;
case 4 :
move_hor(-1);
break;
case 5 :
move_hor(1);
}
posakhir = true;
}
function cek_blokx() {
cek_blok.onEnterFrame = function () {
for (var _local2 in blok_onposisi) {
if (_root[_name].hitTest(_root.map[blok_onposisi[_local2]]) && (_root.map[blok_onposisi[_local2]]._currentframe != 4)) {
_root.booms("b", blok_onposisi[_local2], _root.map[blok_onposisi[_local2]]._x + _root.c_blok, _root.map[blok_onposisi[_local2]]._y + _root.c_blok);
_root.map[blok_onposisi[_local2]].cek_blok(blok_onposisi[_local2], pwr_rdl);
delete posakhir;
delete blok_onposisi;
clear_rd();
}
}
};
}
function cek_msh() {
cek_lstmshx.onEnterFrame = function () {
for (var _local2 in _root.lst_msh) {
if (_root[_name].hitTest(_root[_root.lst_msh[_local2]])) {
_root[_root.lst_msh[_local2]].power = _root[_root.lst_msh[_local2]].power - 1;
if (_root[_root.lst_msh[_local2]].power == 0) {
_root.booms("t", _root.lst_msh[_local2], _root[_root.lst_msh[_local2]]._x, _root[_root.lst_msh[_local2]]._y);
_root.cek_win(_root[_root.lst_msh[_local2]].point);
_root[_root.lst_msh[_local2]].removeMovieClip();
_root.mshaktif--;
_root.reset_listmusuh(_root.lst_msh[_local2]);
} else {
_root.booms("k", _root.lst_msh[_local2], _root[_root.lst_msh[_local2]]._x, _root[_root.lst_msh[_local2]]._y);
}
clear_rd();
}
}
};
}
function cek_exit() {
this.onEnterFrame = function () {
if (!_root.codexit) {
delete this.onEnterFrame;
cek_tipe_pos();
}
if (_root.codexit eq "okexit") {
clear_rd();
}
};
}
function move_ver(arah) {
if (type_rdl eq "normal") {
blok_onposisi = _root.robot.blok_onposisi;
} else {
blok_onposisi.push(_root.centre);
}
cek_msh();
cek_blokx();
this.onEnterFrame = function () {
if (_root.codexit) {
delete this.onEnterFrame;
cek_exit();
} else {
_y = (_y + (speed * arah));
}
if ((((_y < -10) || (_y > 390)) || (_root.cod_win)) || (_root.codexit eq "okexit")) {
clear_rd();
}
};
}
function move_hor(arah) {
if (type_rdl eq "normal") {
blok_onposisi = _root.robot.blok_onposisi;
} else {
blok_onposisi.push(_root.centre);
}
cek_msh();
cek_blokx();
this.onEnterFrame = function () {
if (_root.codexit) {
delete this.onEnterFrame;
cek_exit();
} else {
_x = (_x + (speed * arah));
}
if ((((_x < -10) || (_x > 420)) || (_root.cod_win)) || (_root.codexit eq "okexit")) {
clear_rd();
}
};
}
function clear_rd() {
_root[rdl_trsfer].cek_blokx();
this.removeMovieClip();
}
stop();
blok_onposisi = new Array();
this.createEmptyMovieClip("cek_lstmshx", this.getNextHighestDepth());
this.createEmptyMovieClip("cek_blok", this.getNextHighestDepth());
posakhir = false;
Symbol 232 MovieClip [rudal] Frame 2
cek_tipe_pos();
Symbol 232 MovieClip [rudal] Frame 3
cek_tipe_pos();
Symbol 232 MovieClip [rudal] Frame 4
cek_tipe_pos();
Symbol 232 MovieClip [rudal] Frame 5
cek_tipe_pos();
Symbol 236 Button
on (release) {
trace((_x + " ; ") + _y);
}
Symbol 238 MovieClip [blok] Frame 1
function cek_blok(code, power) {
var _local3 = blok._currentframe + power;
if (_local3 > blok._totalframes) {
blok.gotoAndStop(blok._totalframes);
} else {
blok.gotoAndStop(_local3);
}
if (blok._currentframe == blok._totalframes) {
if (_currentframe != 8) {
_root.reset_blokaktif(code);
} else {
_root.gog();
}
if (_currentframe == 12) {
radar.clears();
}
this.removeMovieClip();
}
}
stop();
Instance of Symbol 203 MovieClip "radar" in Symbol 238 MovieClip [blok] Frame 12
/* no clip actions */
Symbol 266 Button
on (release) {
getURL ("http://www.turbogames.com", _blank);
}
Symbol 287 Button
on (release) {
_parent.play();
}
Instance of Symbol 273 MovieClip in Symbol 288 MovieClip Frame 1
onClipEvent (enterFrame) {
bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (bar._xscale == 100) {
_parent.gotoAndStop(113);
}
}
Symbol 288 MovieClip Frame 112
gotoAndPlay (1);
Symbol 326 MovieClip Frame 62
stop();
Symbol 366 MovieClip Frame 40
stop();
Instance of Symbol 368 MovieClip in Symbol 369 MovieClip Frame 1
onClipEvent (load) {
_rotation = -45;
speed = 3;
}
onClipEvent (enterFrame) {
_rotation = (_rotation - speed);
}
Symbol 378 MovieClip Frame 1
stop();
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 1
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 377 MovieClip in Symbol 378 MovieClip Frame 2
onClipEvent (load) {
speed = random(10) + 1;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + speed);
_xscale = (random(50) + 50);
_yscale = _xscale;
_alpha = (random(50) + 50);
}
Instance of Symbol 378 MovieClip in Symbol 379 MovieClip Frame 1
onClipEvent (load) {
_xscale = 10;
_yscale = 10;
x = 0;
y = 0;
speed = 1;
i = 0;
}
onClipEvent (enterFrame) {
if (_xscale < 120) {
_xscale = (_xscale + 1);
_yscale = (_yscale + 1);
speed = speed + 0.5;
}
}
Symbol 384 MovieClip Frame 1
stop();
Instance of Symbol 326 MovieClip in Symbol 384 MovieClip Frame 120
onClipEvent (load) {
stop();
}
Symbol 384 MovieClip Frame 145
_root.gotoAndStop(3);
Symbol 533 MovieClip [__Packages.Player] Frame 0
class Player extends MovieClip
{
var action, pos, gotoAndStop, _x, _y;
function Player () {
super();
action = stand;
pos = 2;
}
function update() {
action = action();
(gotoAndStop(pos));// not popped
}
function stand() {
(gotoAndStop(pos));// not popped
_root.robot.speedup.speedup1.gotoAndStop(1);
_root.robot.speedup.speedup2.gotoAndStop(1);
_root.robot.posmove = false;
if (_root.robot._x == -30) {
pos = 2;
}
if (Key.isDown(39)) {
pos = 5;
run();
} else if (Key.isDown(37)) {
pos = 4;
run();
} else if (Key.isDown(38)) {
pos = 2;
run();
} else if (Key.isDown(40)) {
pos = 3;
run();
}
return(stand);
}
function run() {
_root.cekbloksx();
(gotoAndStop(pos));// not popped
if (Key.isDown(39)) {
_root.robot.scrollban();
pos = 5;
_x = _x + _root.speed;
return(run);
}
if (Key.isDown(37)) {
_root.robot.scrollban();
pos = 4;
_x = _x - _root.speed;
return(run);
}
if (Key.isDown(38)) {
_root.robot.scrollban();
pos = 2;
_y = _y - _root.speed;
return(run);
}
if (Key.isDown(40)) {
_root.robot.scrollban();
pos = 3;
_y = _y + _root.speed;
return(run);
}
return(stand);
}
}
Symbol 534 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 535 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 536 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 537 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 397 Button
on (release) {
nextFrame();
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 400 Button
on (release) {
open_bg("bg", 1);
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 403 Button
on (release) {
getURL ("http://www.turbogames.com", "_blank");
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 407 Button
on (release) {
open_bg("bg", 3);
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 408 Button
on (release) {
gotoAndStop (5);
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 2
gotoAndPlay (3);
Symbol 409 MovieClip Frame 7
_root.shot = true;
gotoAndStop (1);
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 2
play();
Symbol 425 MovieClip Frame 12
stop();
this.removeMovieClip();
Symbol 429 MovieClip Frame 1
stop();
Symbol 429 MovieClip Frame 2
play();
Symbol 429 MovieClip Frame 12
stop();
this.removeMovieClip();
Symbol 432 MovieClip Frame 1
stop();
Symbol 432 MovieClip Frame 2
play();
Symbol 432 MovieClip Frame 5
stop();
this.removeMovieClip();
Symbol 434 Button
on (keyPress "n") {
codgun = "normal";
}
Symbol 444 Button
on (release) {
_root.fx_sound("klikbutton");
_root.close_bg("bg");
}
Symbol 464 Button
on (release) {
getURL ("http://www.turbogames.com", "_blank");
}
on (rollOver) {
fx_sound("klikbutton");
}
Symbol 467 MovieClip Frame 1
stop();
btx.enabled = false;
Symbol 478 Button
on (release) {
_root.fx_sound("klikbutton");
_root.randommap = true;
_root.gotoAndStop("main");
}
Symbol 481 Button
on (release) {
_root.fx_sound("klikbutton");
_root.randommap = false;
_root.gotoAndStop("main");
}
Symbol 483 Button
on (release) {
nextFrame();
}
Symbol 490 Button
on (release) {
_root.fx_sound("klikbutton");
_root.gotoAndStop("stgms");
}
Symbol 495 Button
on (release) {
_root.fx_sound("klikbutton");
cek();
}
Symbol 496 Button
on (release) {
_root.fx_sound("klikbutton");
prevFrame();
}
Symbol 502 MovieClip Frame 11
stop();
Symbol 502 MovieClip Frame 12
function cek() {
var _local2 = 1;
while (_local2 < _root.key_adv_lev.length) {
if (_root.key_adv_lev[_local2] eq keys.text) {
_root.gm_level = _local2 * _root.interval_lev;
_root.randommap = false;
_root.gotoAndStop("main");
break;
}
if (_local2 == (_root.key_adv_lev.length - 1)) {
keys.text = "error key";
}
_local2++;
}
}
Symbol 509 Button
on (release) {
fx_sound("klikbutton");
if ((cod_win eq "loses") || (cod_win eq "win")) {
exit(4);
} else {
exit(1);
}
}
Symbol 516 Button
on (release) {
mapselaktif = 3;
}
Symbol 517 Button
on (release) {
mapselaktif = 4;
}
Symbol 518 Button
on (release) {
mapselaktif = 5;
}
Symbol 519 Button
on (release) {
mapselaktif = 6;
}
Symbol 520 Button
on (release) {
mapselaktif = 7;
}
Symbol 522 Button
on (release) {
mapselaktif = 1;
}
Symbol 523 Button
on (release) {
mapselaktif = 9;
}
Symbol 524 Button
on (release) {
mapselaktif = 10;
}
Symbol 525 Button
on (release) {
mapselaktif = 11;
}
Symbol 526 Button
on (release) {
mapselaktif = 12;
}
Symbol 529 Button
on (release) {
clear_map();
}
Symbol 532 Button
on (release) {
buat_map();
}