Frame 2
var menu_song = new Sound();
menu_song.attachSound("menu.mp3");
var game_song = new Sound();
game_song.attachSound("game.mp3");
var game2_song = new Sound();
game2_song.attachSound("game2.mp3");
var gameover_song = new Sound();
gameover_song.attachSound("gameover.mp3");
var monkey_song = new Sound();
monkey_song.attachSound("monkey.mp3");
var level_song = new Sound();
level_song.attachSound("level.mp3");
var bom = new Sound();
bom.attachSound("bom.mp3");
var jatuh = new Sound();
jatuh.attachSound("fall.mp3");
var hit = new Sound();
hit.attachSound("hit.mp3");
var win_song = new Sound();
win_song.attachSound("win.mp3");
var win2_song = new Sound();
win2_song.attachSound("win2.mp3");
var gling = new Sound();
gling.attachSound("GLING.mp3");
var suara = "play";
gotoAndStop ("menu");
Frame 7
menu_song.stop();
game_song.stop();
gameover_song.stop();
game2_song.stop();
monkey_song.stop();
level_song.stop();
bom.stop();
jatuh.stop();
hit.stop();
gling.stop();
win_song.stop();
win2_song.stop();
menu_song.start(0, 100);
startbtn.onRelease = function () {
menu_song.stop();
game_song.start(0, 100);
gotoAndStop ("game");
};
morebtn.onRelease = function () {
getURL ("http://www.dailyfreegames.com", "_blank");
};
addbtn.onRelease = function () {
getURL ("http://www.dailyfreegames.com/free-games.html", "_blank");
};
Symbol 21 MovieClip Frame 20
stop();
Symbol 30 Button
on (release) {
getURL ("http://jarkey.net", "_blank");
}
Symbol 31 Button
on (release) {
getURL ("http://jarkey.net/playgames/enigmatica_game.htm", "_blank");
}
Symbol 32 Button
on (release) {
getURL ("http://jarkey.net/playgames/bloons-player-pack-1_game.htm", "_blank");
}
Symbol 33 Button
on (release) {
getURL ("http://jarkey.net/playgames/hover-tanks-2_game.htm", "_blank");
}
Symbol 34 Button
on (release) {
getURL ("http://jarkey.net/playgames/super-doggy_game.htm", "_blank");
}
Symbol 35 Button
on (release) {
getURL ("http://jarkey.net/playgames/death-point_game.htm", "_blank");
}
Symbol 36 Button
on (release) {
getURL ("http://jarkey.net/playgames/goal-shoot_game.htm", "_blank");
}
Symbol 37 MovieClip Frame 1
stop();
MochiAd.showPreloaderAd({id:"530d92eff132b8c6", res:"640x480"});
Symbol 37 MovieClip Frame 2
Symbol 461 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("1.5");
}
static function showPreloaderAd(options) {
var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local27);
var clip = options.clip;
var _local23 = 11000;
var _local26 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4);
_local7._x = 10;
_local7._y = _local13 - 20;
var _local22 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local24 = options.outline;
delete options.outline;
var _local5 = _local7.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local7.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local22);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local6 = _local7.createEmptyMovieClip("_outline", 3);
_local6.lineStyle(0, _local24, 100);
_local6.moveTo(0, 0);
_local6.lineTo(_local4 - 20, 0);
_local6.lineTo(_local4 - 20, 10);
_local6.lineTo(0, 10);
_local6.lineTo(0, 0);
chk.ad_msec = _local23;
chk.ad_timeout = _local26;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = function (width, height) {
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local12 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local10 = (100 * _local8) / _local4;
var _local11 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local2 = Math.min(100, Math.min(_local10 || 0, _local11));
_local2 = Math.max(this.last_pcnt, _local2);
this.last_pcnt = _local2;
_local9._xscale = _local2;
if (!chk.showing) {
var _local7 = _local12.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local5 > chk.ad_timeout) {
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showTimedAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function _loadCommunicator(options) {
var _local25 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"};
options = _parseOptions(options, _local25);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local18 = options.clip;
var _local20 = "_mochiad_com_" + options.id;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local18[_local20]) {
return(_local18[_local20].lc);
}
var _local21 = options.com_server + options.id;
_allowDomains(_local21);
delete options.id;
delete options.com_server;
var _local24 = options.depth;
delete options.depth;
var _local17 = _local18.createEmptyMovieClip(_local20, _local24);
var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1);
for (var _local15 in options) {
_local11[_local15] = options[_local15];
}
var _local6 = new LocalConnection();
var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local6.mc = _local17;
_local6.name = _local16;
_local6.allowDomain = function (d) {
return(true);
};
_local6.allowInsecureDomain = _local6.allowDomain;
_local6.connect(_local16);
_local17.lc = _local6;
_local11.lc = _local16;
_local6._id = 0;
_local6._queue = [];
_local6.rpcResult = function (cb) {
cb = parseInt(cb);
var _local4 = this._callbacks[cb];
if (!_local4) {
return(undefined);
}
delete this._callbacks[cb];
var _local5 = [];
var _local3 = 2;
while (_local3 < _local4.length) {
_local5.push(_local4[_local3]);
_local3++;
}
_local3 = 1;
while (_local3 < arguments.length) {
_local5.push(arguments[_local3]);
_local3++;
}
var _local6 = _local4[1];
var _local7 = _local4[0];
if (_local7 && (typeof(_local6) == "string")) {
_local6 = _local7[_local6];
}
if (_local6) {
_local6.apply(_local7, _local5);
}
};
_local6._didConnect = function (endpoint) {
this._endpoint = endpoint;
var _local4 = this._queue;
delete this._queue;
var _local5 = this.doSend;
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2];
_local5.apply(this, _local3);
_local2++;
}
};
_local6.doSend = function (args, cbobj, cbfn) {
if (this._endpoint == null) {
var _local4 = [];
var _local3 = 0;
while (_local3 < arguments.length) {
_local4.push(arguments[_local3]);
_local3++;
}
this._queue.push(_local4);
return(undefined);
}
this._id = this._id + 1;
var _local5 = this._id;
if ((cbfn === undefined) || (cbfn === null)) {
cbfn = cbobj;
}
this._callbacks[_local5] = [cbobj, cbfn];
var _local7 = new LocalConnection();
var _local9 = _local7.send(this._endpoint, "rpc", _local5, args);
};
_local6._callbacks = {};
_local6._callbacks[0] = [_local6, "_didConnect"];
_local11.st = getTimer();
_local11.loadMovie(_local21 + ".swf", "POST");
return(_local6);
}
static function fetchHighScores(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["fetchHighScores", options];
_local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod);
return(true);
}
static function sendHighScore(options, callbackObj, callbackMethod) {
var _local1 = _loadCommunicator({id:options.id});
if (!_local1) {
return(false);
}
var _local4 = ["sendHighScore", options];
_local1.doSend(["sendHighScore", options], callbackObj, callbackMethod);
return(true);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local7 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local7._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local7.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local7._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
if (_local7._url.indexOf("http") != 0) {
options.no_page = true;
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local9 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local9;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local9);
_local6.lc = _local5;
_local4.lc = _local9;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local4);
}
}
Symbol 107 MovieClip [awan] Frame 16
this.removeMovieClip();
Symbol 112 MovieClip [double] Frame 15
this.removeMovieClip();
Symbol 116 MovieClip [triple] Frame 17
this.removeMovieClip();
Symbol 119 MovieClip [awe] Frame 24
this.removeMovieClip();
Symbol 124 MovieClip [super] Frame 21
this.removeMovieClip();
Symbol 153 MovieClip [timemc] Frame 50
_parent.kalah();
this.removeMovieClip();
Symbol 168 MovieClip Frame 1
stop();
Symbol 259 MovieClip Frame 8
_root.game.balik(this._parent);
Symbol 287 MovieClip Frame 45
_root.game.balik(this._parent);
Symbol 306 MovieClip Frame 18
_root.game.balik(this._parent);
Symbol 315 MovieClip Frame 24
_root.game.balik(this._parent);
Symbol 316 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 1
stop();
Symbol 379 MovieClip Frame 2
this._poin = teksmc.poin.text;
this._akurasi = teksmc.akurasi.text;
this._combo = teksmc.combo.text;
Symbol 379 MovieClip Frame 41
teksmc.poin.text = this._poin;
teksmc.akurasi.text = this._akurasi;
teksmc.combo.text = this._combo;
stop();
Symbol 394 MovieClip Frame 30
stop();
Symbol 400 MovieClip Frame 1
function get_sudut(xx, yy) {
var _local2;
var _local1;
_local2 = Math.sqrt((xx * xx) + (yy * yy));
_local1 = Math.asin(yy / _local2);
_local1 = (_local1 * 180) / Math.PI;
if (xx < 0) {
_local1 = 180 - _local1;
}
return(_local1);
}
function cek_posisi(movie, pos) {
var _local4;
var _local6 = {x:movie.Poros._x, y:movie.Poros._y};
movie.localToGlobal(_local6);
dx = _root._xmouse - _local6.x;
dy = _root._ymouse - _local6.y;
sudut = get_sudut(dx, -dy);
angleMod = 200;
if (pos == 1) {
if (sudut > 70) {
sudut = 70;
}
if (sudut < 20) {
sudut = 20;
}
_local4 = (-sudut) + angleMod;
movie.sudut = 90 - sudut;
}
if (pos == 2) {
if (sudut > 180) {
sudut = 180;
}
if (sudut < 120) {
sudut = 120;
}
_local4 = sudut;
movie.sudut = 120 - sudut;
}
if (pos == 3) {
if (sudut < 20) {
sudut = 20;
}
if (sudut > 160) {
sudut = 160;
}
if (sudut < 90) {
movie._xscale = 60;
movie.sudut = 90 - sudut;
if (ket_tembak == "belum") {
this.bulet._rotation = (-sudut) + 90;
}
movie._x = m3._x;
} else {
sudut = 180 - sudut;
movie.sudut = sudut - 90;
if (ket_tembak == "belum") {
this.bulet._rotation = sudut - 90;
}
movie._xscale = -60;
movie._x = m3._x + 70;
}
_local4 = (-sudut) + angleMod;
}
movie.diem._rotation = _local4;
movie.tembak._rotation = _local4;
movie.standby._rotation = _local4;
movie.standby2._rotation = _local4;
if (ket_tembak == "belum") {
if (pos == 1) {
this.bulet._rotation = (-sudut) + 90;
}
if (pos == 2) {
this.bulet._rotation = 110 - sudut;
}
}
if (ket_tembak == "belum") {
if (movie._currentframe == 1) {
_local6 = {x:movie.diem.Bullet._x, y:movie.diem.Bullet._y};
movie.diem.localToGlobal(_local6);
} else if (movie._currentframe == 3) {
_local6 = {x:movie.standby.Bullet._x, y:movie.standby.Bullet._y};
movie.standby.localToGlobal(_local6);
} else if (movie._currentframe == 4) {
_local6 = {x:movie.standby2.Bullet._x, y:movie.standby2.Bullet._y};
movie.standby2.localToGlobal(_local6);
} else if (movie._currentframe == 5) {
_local6 = {x:movie.salah.Bullet._x, y:movie.salah.Bullet._y};
movie.salah.localToGlobal(_local6);
}
this.bulet._x = _local6.x;
this.bulet._y = _local6.y;
}
}
function salah_tembak(movie) {
poin = poin - cnt_poin;
qwe = movie.diem._rotation;
movie.gotoAndStop(5);
movie.salah._rotation = qwe;
}
function monkey_tembak(movie) {
qwe = movie.diem._rotation;
movie.gotoAndStop(2);
movie.tembak._rotation = qwe;
}
function balik(movie) {
if (movie._currentframe == 2) {
qwe = movie.tembak._rotation;
}
if (movie._currentframe == 3) {
qwe = movie.standby._rotation;
}
if (movie._currentframe == 4) {
qwe = movie.standby2._rotation;
}
if (movie._currentframe == 5) {
qwe = movie.salah._rotation;
}
movie.gotoAndStop(1);
movie.diem._rotation = qwe;
ket_monkey = "play";
}
function gambar_musuh() {
var _local3;
_local3 = Math.random();
if (_local3 < muncul) {
rnd = Math.floor(Math.random() * 3);
if (rnd == 0) {
var _local2 = this.attachMovie("monkterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 6;
}
if (rnd == 1) {
var _local2 = this.attachMovie("pigterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 7;
}
if (rnd == 2) {
var _local2 = this.attachMovie("mbohterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 8;
}
} else {
rnd = Math.floor(Math.random() * jum_musuh);
if (rnd_musuh[rnd] == 0) {
var _local2 = this.attachMovie("badakterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 0;
}
if (rnd_musuh[rnd] == 1) {
var _local2 = this.attachMovie("bullterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 1;
}
if (rnd_musuh[rnd] == 2) {
var _local2 = this.attachMovie("bantengterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 2;
}
if (rnd_musuh[rnd] == 3) {
var _local2 = this.attachMovie("singaterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 3;
}
if (rnd_musuh[rnd] == 4) {
var _local2 = this.attachMovie("skullterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 4;
}
if (rnd_musuh[rnd] == 5) {
var _local2 = this.attachMovie("whiteterjun", "musuh" + cnt_musuh, cnt_musuh);
_local2.nama = 5;
}
}
_local2._x = Math.floor(Math.random() * 400) + 50;
_local2._y = (-Math.floor(Math.random() * 30)) - 100;
_local2.dy = Math.random() + 0.7;
_local2._xscale = _local2._xscale * 0.8;
_local2._yscale = _local2._yscale * 0.8;
arr_musuh.push(_local2);
cnt_musuh++;
if (cnt_musuh >= 20) {
cnt_musuh = 0;
}
}
function gerak_musuh() {
var _local1;
_local1 = arr_musuh.length - 1;
while (_local1 >= 0) {
arr_musuh[_local1]._y = arr_musuh[_local1]._y + arr_musuh[_local1].dy;
if (arr_musuh[_local1]._y > 400) {
if (int(arr_musuh[_local1].nama) <= 5) {
life--;
}
arr_musuh[_local1].removeMovieClip();
arr_musuh.splice(_local1, 1);
}
_local1--;
}
}
function random_musuh() {
i = 0;
while (i < jum_musuh) {
rnd = Math.floor(Math.random() * jenis);
if (i > 0) {
j = 0;
while (j < i) {
if (rnd_musuh[j] == rnd) {
rnd = Math.floor(Math.random() * jenis);
j = 0;
} else {
j++;
}
}
}
rnd_musuh[i] = rnd;
i++;
}
}
function buat_tembak() {
combo = 0;
ket_tembak = "belum";
rnd = Math.floor(Math.random() * jum_musuh);
i = 0;
while (i < arr_musuh.length) {
if ((int(arr_musuh[i].nama) <= 5) && (arr_musuh[i]._y < 350)) {
var _local2 = 0;
while (_local2 < jum_musuh) {
if (rnd_musuh[_local2] == arr_musuh[i].nama) {
rnd = _local2;
}
_local2++;
}
break;
}
i++;
}
if (rnd_musuh[rnd] == 0) {
var _local3 = this.attachMovie("badak", "bulet", 41);
_local3.nama = 0;
}
if (rnd_musuh[rnd] == 1) {
var _local3 = this.attachMovie("bull", "bulet", 41);
_local3.nama = 1;
}
if (rnd_musuh[rnd] == 2) {
var _local3 = this.attachMovie("banteng", "bulet", 41);
_local3.nama = 2;
}
if (rnd_musuh[rnd] == 3) {
var _local3 = this.attachMovie("singa", "bulet", 41);
_local3.nama = 3;
}
if (rnd_musuh[rnd] == 4) {
var _local3 = this.attachMovie("skull", "bulet", 41);
_local3.nama = 4;
}
if (rnd_musuh[rnd] == 5) {
var _local3 = this.attachMovie("white", "bulet", 41);
_local3.nama = 5;
}
_local3._xscale = _local3._xscale * 0.8;
_local3._yscale = _local3._yscale * 0.8;
if (posisi == 1) {
cek_posisi(monkey, posisi);
}
if (posisi == 2) {
cek_posisi(monkey2, posisi);
}
if (posisi == 3) {
cek_posisi(monkey3, posisi);
}
if (posisi == 4) {
if (giliran == 1) {
cek_posisi(monkey, giliran);
}
if (giliran == 2) {
cek_posisi(monkey2, giliran);
}
}
if (posisi == 5) {
if (giliran == 1) {
cek_posisi(monkey3, 3);
}
if (giliran == 2) {
cek_posisi(monkey2, giliran);
}
}
if (posisi == 6) {
if (giliran == 1) {
cek_posisi(monkey, giliran);
}
if (giliran == 2) {
cek_posisi(monkey3, 3);
}
}
}
function next_level() {
_root.game_song.stop();
_root.game2_song.stop();
if (_root.suara == "play") {
_root.level_song.start(0, 10);
}
buttonmc._visible = false;
monkey._visible = false;
monkey2._visible = false;
monkey3._visible = false;
bulet.removeMovieClip();
i = arr_musuh.length - 1;
while (i >= 0) {
arr_musuh[i].removeMovieClip();
arr_musuh[i].splice(i, 1);
i--;
}
arr_musuh.length = 0;
paused = true;
levelmc.teksmc.poin.text = poin;
temp_poin = poin;
var _local2 = String((target / jum_bulet) * 100);
levelmc.teksmc.akurasi.text = _local2.substr(0, 5) + " %";
if (temp_combo == 1) {
levelmc.teksmc.combo.text = "None";
}
if (temp_combo == 2) {
levelmc.teksmc.combo.text = "Double";
}
if (temp_combo == 3) {
levelmc.teksmc.combo.text = "Triple";
}
if (temp_combo == 4) {
levelmc.teksmc.combo.text = "Awesome";
}
if (temp_combo >= 5) {
levelmc.teksmc.combo.text = "Super";
}
levelmc.swapDepths(47);
levelmc._visible = true;
levelmc.gotoAndPlay(2);
}
function muncul_monkey() {
giliran = 1;
balonmc._visible = false;
posisi = Math.floor(Math.random() * 3) + 1;
if (level == 1) {
balonmc._visible = true;
}
if (level > 5) {
posisi = Math.floor(Math.random() * 6) + 1;
}
monkey._visible = false;
monkey2._visible = false;
monkey3._visible = false;
if (posisi == 1) {
monkey._visible = true;
balonmc._x = 5;
balonmc._y = 150;
}
if (posisi == 2) {
monkey2._visible = true;
balonmc._x = 475;
balonmc._y = 150;
}
if (posisi == 3) {
monkey3._visible = true;
balonmc._x = 230;
balonmc._y = 150;
}
if (posisi == 4) {
monkey._visible = true;
monkey2._visible = true;
}
if (posisi == 5) {
monkey3._visible = true;
monkey2._visible = true;
}
if (posisi == 6) {
monkey3._visible = true;
monkey._visible = true;
}
}
function menang(str) {
_root.game_song.stop();
_root.game2_song.stop();
i = arr_musuh.length - 1;
while (i >= 0) {
arr_musuh[i].removeMovieClip();
arr_musuh.splice(i, 1);
i--;
}
payung.removeMovieClip();
if (level < 10) {
if (str == "next") {
cnt_time = cnt_time - 5;
level++;
if ((level % 2) == 0) {
if (jum_musuh < jenis) {
jum_musuh++;
}
}
target = target + 3;
dx_waktu = dx_waktu - 10;
muncul = muncul + 0.01;
} else {
waktu = 20;
poin = temp_poin;
if (level == 1) {
mulai = "belum";
waktu = 1300;
}
}
levelmc._visible = false;
buttonmc._visible = true;
init();
} else {
_root.gotoAndStop("win");
}
}
function init() {
isMouseDown = false;
paused = false;
pausemc._visible = false;
buttonmc.playbtn._visible = false;
gameover._visible = false;
buttonmc.soundbtn._visible = false;
buttonmc.mutebtn._visible = false;
if (_root.suara == "play") {
buttonmc.mutebtn._visible = true;
} else {
buttonmc.soundbtn._visible = true;
}
klik = false;
levelmc._visible = false;
life = 5;
game_time = 24 * cnt_time;
monkey.bar._xscale = 0;
monkey2.bar._xscale = 0;
monkey3.bar._xscale = 0;
jum_bulet = 0;
random_musuh();
cnt_target = target;
temp_combo = 0;
monkey_time = 0;
ket_monkey = "play";
awanbg.swapDepths(42);
monkey.swapDepths(43);
monkey2.swapDepths(44);
monkey3.swapDepths(45);
buttonmc.swapDepths(46);
muncul_monkey();
buat_tembak();
}
function monkey_pause(movie) {
power = 0;
monkey.bar._xscale = 0;
monkey2.bar._xscale = 0;
monkey3.bar._xscale = 0;
qwe = movie.diem._rotation;
rnd = Math.floor(Math.random() * 2);
if (rnd == 0) {
movie.gotoAndStop(3);
} else if (rnd == 1) {
movie.gotoAndStop(4);
}
movie.standby._rotation = qwe;
movie.standby2._rotation = qwe;
}
function kalah() {
paused = true;
gameover._visible = true;
gameover.swapDepths(51);
_root.game_song.stop();
_root.game2_song.stop();
if (_root.suara == "play") {
_root.gameover_song.start(0, 100);
}
}
function onEnterFrame() {
if (paused == false) {
if ((level == 1) && (balonmc._visible == true)) {
ket_monkey = "pause";
balonmc.delay = 0;
balonmc.friendmc._visible = false;
if (cnt_teks == 0) {
teks("Help me protect my kingdom from attacking forces");
}
if (cnt_teks == 1) {
teks("I need to knock each attacker out of the air before they land");
}
if (cnt_teks == 2) {
teks("Point my cannon to the attacker and then click and hold the left mouse button");
}
if (cnt_teks == 3) {
teks("To increase power, hold the button down longer. Release the button to fire");
}
if (cnt_teks == 4) {
teks("Keep an eye on the ammo loaded in the cannon");
}
if (cnt_teks == 5) {
teks("You can only destroy an attacker with ammo that looks like the attacker");
}
if (cnt_teks == 6) {
teks("Be careful not to shoot these fellows... they are your friends");
balonmc.friendmc._visible = true;
}
if (cnt_teks == 7) {
teks("Good luck!");
}
if (cnt_teks == 8) {
balonmc._visible = false;
ket_monkey = "play";
mulai = "sudah";
}
}
buttonmc.menittxt.text = Math.floor((game_time / 24) / 60);
buttonmc.detiktxt.text = Math.floor((game_time / 24) % 60);
if (mulai == "sudah") {
game_time--;
}
if ((life <= 0) || (poin < 0)) {
kalah();
}
if (game_time == 0) {
paused = true;
var _local5 = this.attachMovie("timemc", "timemc", 100);
_local5._x = 50;
_local5._y = 150;
_local5.gotoAndPlay(1);
}
buttonmc.leveltxt.text = level;
buttonmc.lifetxt.text = life;
buttonmc.pointxt.text = poin;
if (cnt_target >= 0) {
buttonmc.targettxt.text = cnt_target;
}
if (level_delay) {
level_delay--;
if (!level_delay) {
next_level();
}
}
if (((posisi == 3) || (posisi == 5)) || (posisi == 6)) {
m3._x = m3._x + m3.dx;
var _local3 = 0;
var _local4 = 0;
if (posisi == 3) {
_local4 = 50;
_local3 = 600;
}
if (posisi == 5) {
_local3 = 500;
_local4 = 50;
}
if (posisi == 6) {
_local4 = 250;
_local3 = 600;
}
if ((((m3._x + m3.dx) + monkey3._width) > _local3) || (m3._x < _local4)) {
m3.dx = -m3.dx;
}
if (monkey3._xscale < 0) {
monkey3._x = m3._x + 70;
} else {
monkey3._x = m3._x;
}
balonmc._x = balonmc._x + m3.dx;
if (posisi == 3) {
cek_posisi(monkey3, 3);
}
if (posisi == 5) {
if (giliran == 1) {
cek_posisi(monkey3, 3);
}
}
if (posisi == 6) {
if (giliran == 2) {
cek_posisi(monkey3, 3);
}
}
}
if (isMouseDown) {
if (ket_tembak == "belum") {
if (power < 40) {
power = power + 2;
}
if (posisi == 1) {
monkey.bar._xscale = power * 20;
}
if (posisi == 2) {
monkey2.bar._xscale = power * 20;
}
if (posisi == 3) {
monkey3.bar._xscale = power * 20;
}
if (posisi == 4) {
if (giliran == 1) {
monkey.bar._xscale = power * 20;
}
if (giliran == 2) {
monkey2.bar._xscale = power * 20;
}
}
if (posisi == 5) {
if (giliran == 1) {
monkey3.bar._xscale = power * 20;
}
if (giliran == 2) {
monkey2.bar._xscale = power * 20;
}
}
if (posisi == 6) {
if (giliran == 1) {
monkey.bar._xscale = power * 20;
}
if (giliran == 2) {
monkey3.bar._xscale = power * 20;
}
}
}
}
monkey_time++;
if (monkey_time > 150) {
ket_monkey = "pause";
if (_root.suara == "play") {
_root.monkey_song.start(0, 1);
}
monkey.bar._xscale = 0;
monkey2.bar._xscale = 0;
monkey3.bar._xscale = 0;
if (posisi == 1) {
monkey_pause(monkey);
}
if (posisi == 2) {
monkey_pause(monkey2);
}
if (posisi == 3) {
monkey_pause(monkey3);
}
if (posisi == 4) {
if (giliran == 1) {
monkey_pause(monkey);
} else {
monkey_pause(monkey2);
}
}
if (posisi == 5) {
if (giliran == 1) {
monkey_pause(monkey3);
} else {
monkey_pause(monkey2);
}
}
if (posisi == 6) {
if (giliran == 1) {
monkey_pause(monkey);
} else {
monkey_pause(monkey3);
}
}
monkey_time = 0;
}
waktu--;
gerak_musuh();
if (waktu == 0) {
waktu = Math.floor(Math.random() * dx_waktu) + 40;
gambar_musuh();
}
}
}
function teks(str) {
if ((tabIndex > balonmc.delay) and (str.length > balonmc.Animated.text.length)) {
balonmc.Animated.text = balonmc.Animated.text + str.charAt(balonmc.Animated.text.length);
tabIndex = 0;
} else {
tabIndex++;
}
if (tabIndex > str.length) {
balonmc.Animated.text = "";
cnt_teks++;
}
}
var arr_musuh = new Array();
var rnd_musuh = new Array();
var cnt_musuh = 0;
var cnt_orang = 21;
var cnt_awan = 0;
var power = 0;
var jum_musuh = 3;
var jenis = 6;
var target = 10;
var cnt_target = 0;
var level = 1;
var giliran = 1;
var temp_combo = 1;
var temp_poin = 0;
var jum_bulet = 0;
var mulai = "belum";
var muncul = 0.01;
var cnt_teks = 0;
var m3 = new Object();
m3._x = monkey3._x;
m3._y = monkey3._y;
m3.dx = 1;
var poin = 0;
var cnt_poin = 100;
var combo = 0;
var life;
var posisi;
var qwe;
var game_time;
var cnt_time = 120;
var waktu = 1300;
var dx_waktu = 100;
var monkey_time;
var klik;
var mouseH = new Object();
Mouse.addListener(mouseH);
mouseH.onMouseMove = function () {
if ((paused == false) and (klik == false)) {
if (posisi == 1) {
cek_posisi(monkey, posisi);
}
if (posisi == 2) {
cek_posisi(monkey2, posisi);
}
if (posisi == 3) {
cek_posisi(monkey3, posisi);
}
if (posisi == 4) {
if (giliran == 1) {
cek_posisi(monkey, giliran);
}
if (giliran == 2) {
cek_posisi(monkey2, giliran);
}
}
if (posisi == 5) {
if (giliran == 1) {
cek_posisi(monkey3, 3);
}
if (giliran == 2) {
cek_posisi(monkey2, giliran);
}
}
if (posisi == 6) {
if (giliran == 1) {
cek_posisi(monkey, giliran);
}
if (giliran == 2) {
cek_posisi(monkey3, 3);
}
}
}
};
mouseH.onMouseDown = function () {
if ((paused == false) and (klik == false)) {
if (ket_monkey == "play") {
isMouseDown = true;
}
if (power <= 0) {
power = 2;
}
}
};
mouseH.onMouseUp = function () {
if ((paused == false) and (klik == false)) {
if ((ket_tembak == "belum") && (ket_monkey == "play")) {
if (_root.suara == "play") {
_root.bom.start(0, 1);
}
jum_bulet++;
monkey_time = 0;
ket_tembak = "sudah";
isMouseDown = false;
var _local11;
if (posisi == 1) {
monkey_tembak(monkey);
_local11 = monkey.sudut;
}
if (posisi == 2) {
monkey_tembak(monkey2);
_local11 = monkey2.sudut;
}
if (posisi == 3) {
monkey_tembak(monkey3);
_local11 = monkey3.sudut;
}
if (posisi == 4) {
if (giliran == 1) {
monkey_tembak(monkey);
_local11 = monkey.sudut;
}
if (giliran == 2) {
monkey_tembak(monkey2);
_local11 = monkey2.sudut;
}
}
if (posisi == 5) {
if (giliran == 1) {
monkey_tembak(monkey3);
_local11 = monkey3.sudut;
}
if (giliran == 2) {
monkey_tembak(monkey2);
_local11 = monkey2.sudut;
}
}
if (posisi == 6) {
if (giliran == 1) {
monkey_tembak(monkey);
_local11 = monkey.sudut;
}
if (giliran == 2) {
monkey_tembak(monkey3);
_local11 = monkey3.sudut;
}
}
var _local14 = Math.sin((_local11 * Math.PI) / 180);
var _local13 = Math.cos((_local11 * Math.PI) / 180);
if (isNaN(_local14)) {
_local14 = 1;
}
if (isNaN(_local13)) {
_local13 = 1;
}
bulet._dx = _local14;
bulet._dy = -_local13;
bulet.power = power;
power = 0;
monkey.bar._xscale = power;
monkey2.bar._xscale = power;
monkey3.bar._xscale = power;
bulet.onEnterFrame = function () {
this._dy = this._dy + 0.05;
this._rotation = 90 - get_sudut(this._dx, -this._dy);
this._x = this._x + (this._dx * this.power);
this._y = this._y + (this._dy * this.power);
var _local3;
_local3 = arr_musuh.length;
while (_local3 >= 0) {
_local3--;
if ((arr_musuh[_local3]._y > -50) && (arr_musuh[_local3]._y < 300)) {
if (this.hitTest(arr_musuh[_local3].orang.musuh.peri)) {
if (arr_musuh[_local3].nama >= 6) {
if (_root.suara == "play") {
_root.hit.start(0, 1);
}
if (posisi == 1) {
salah_tembak(monkey);
}
if (posisi == 2) {
salah_tembak(monkey2);
}
if (posisi == 3) {
salah_tembak(monkey3);
}
if (posisi == 4) {
if (giliran == 1) {
salah_tembak(monkey);
} else {
salah_tembak(monkey2);
}
}
if (posisi == 5) {
if (giliran == 1) {
salah_tembak(monkey3);
} else {
salah_tembak(monkey2);
}
}
if (posisi == 6) {
if (giliran == 1) {
salah_tembak(monkey);
} else {
salah_tembak(monkey3);
}
}
if (arr_musuh[_local3].nama == 6) {
var _local4 = _level0.game.attachMovie("monkmc", "orang", cnt_orang);
}
if (arr_musuh[_local3].nama == 7) {
var _local4 = _level0.game.attachMovie("pigmc", "orang", cnt_orang);
}
if (arr_musuh[_local3].nama == 8) {
var _local4 = _level0.game.attachMovie("mbohmc", "orang", cnt_orang);
}
_local4._xscale = _local4._xscale * 0.8;
_local4._yscale = _local4._yscale * 0.8;
_local4.gotoAndPlay(arr_musuh[_local3].orang._currentframe);
var _local11;
_local11 = new Object();
_local11.x = arr_musuh[_local3].orang._x;
_local11.y = arr_musuh[_local3].orang._y;
arr_musuh[_local3].localToGlobal(_local11);
_local4._x = _local11.x;
_local4._y = _local11.y;
cnt_orang++;
if (cnt_orang >= 40) {
cnt_orang = 21;
}
if (int(arr_musuh[_local3].nama) == 6) {
var _local5 = _level0.game.attachMovie("payung", "payung", cnt_orang);
}
if (int(arr_musuh[_local3].nama) == 7) {
var _local5 = _level0.game.attachMovie("payungblue", "payung", cnt_orang);
}
if (int(arr_musuh[_local3].nama) == 8) {
var _local5 = _level0.game.attachMovie("payunggreen", "payung", cnt_orang);
}
_local5._xscale = _local5._xscale * 0.8;
_local5._yscale = _local5._yscale * 0.8;
_local11 = new Object();
_local11.x = arr_musuh[_local3].payung._x;
_local11.y = arr_musuh[_local3].payung._y;
arr_musuh[_local3].localToGlobal(_local11);
_local5._x = _local11.x;
_local5._y = _local11.y;
_local5.gotoAndPlay(arr_musuh[_local3].payung._currentframe);
cnt_orang++;
if (cnt_orang >= 40) {
cnt_orang = 21;
}
arr_musuh[_local3].removeMovieClip();
arr_musuh.splice(_local3, 1);
_local5.onEnterFrame = function () {
this._y = this._y - 4;
if (this._y < 0) {
this.removeMovieClip();
}
};
_local4.onEnterFrame = function () {
this._y = this._y + 7;
if (this._y > 400) {
if (_root.suara == "play") {
_root.jatuh.start(0, 1);
}
var _local3 = _root.attachMovie("awan", "awans" + cnt_awan, cnt_awan);
_local3._x = this._x;
_local3._y = 370;
this.removeMovieClip();
}
};
cnt_awan++;
if (cnt_awan >= 20) {
cnt_awan = 0;
}
} else if (this.nama == arr_musuh[_local3].nama) {
if (_root.suara == "play") {
_root.hit.start(0, 1);
}
cnt_target--;
poin = poin + cnt_poin;
combo++;
if (cnt_target == 0) {
if (!level_delay) {
level_delay = 40;
}
}
if (this.nama == 0) {
var _local4 = _level0.game.attachMovie("badakmc", "orang", cnt_orang);
}
if (this.nama == 1) {
var _local4 = _level0.game.attachMovie("bullmc", "orang", cnt_orang);
}
if (this.nama == 2) {
var _local4 = _level0.game.attachMovie("bantengmc", "orang", cnt_orang);
}
if (this.nama == 3) {
var _local4 = _level0.game.attachMovie("singamc", "orang", cnt_orang);
}
if (this.nama == 4) {
var _local4 = _level0.game.attachMovie("skullmc", "orang", cnt_orang);
}
if (this.nama == 5) {
var _local4 = _level0.game.attachMovie("whitemc", "orang", cnt_orang);
}
_local4._xscale = _local4._xscale * 0.8;
_local4._yscale = _local4._yscale * 0.8;
_local4.gotoAndPlay(arr_musuh[_local3].orang._currentframe);
var _local11 = new Object();
_local11.x = arr_musuh[_local3].orang._x;
_local11.y = arr_musuh[_local3].orang._y;
arr_musuh[_local3].localToGlobal(_local11);
_local4._x = _local11.x;
_local4._y = _local11.y;
cnt_orang++;
if (cnt_orang >= 40) {
cnt_orang = 21;
}
if (combo == 2) {
var _local7 = _root.attachMovie("double", "double11", 21);
_local7._x = _local4._x - 30;
_local7._y = _local4._y;
_local7._xscale = _local7._xscale * 0.6;
_local7._yscale = _local7._yscale * 0.6;
}
if (combo == 3) {
var _local8 = _root.attachMovie("triple", "triple11", 21);
_local8._x = _local4._x - 30;
_local8._y = _local4._y;
_local8._xscale = _local8._xscale * 0.6;
_local8._yscale = _local8._yscale * 0.6;
}
if (combo == 4) {
var _local6 = _root.attachMovie("awe", "awe11", 21);
_local6._x = _local4._x - 30;
_local6._y = _local4._y;
_local6._xscale = _local6._xscale * 0.6;
_local6._yscale = _local6._yscale * 0.6;
}
if (combo >= 5) {
var _local9 = _root.attachMovie("super", "super11", 21);
_local9._x = _local4._x - 30;
_local9._y = _local4._y;
_local9._xscale = _local9._xscale * 0.6;
_local9._yscale = _local9._yscale * 0.6;
}
if ((this.nama == 1) || (this.nama == 3)) {
var _local5 = _level0.game.attachMovie("payungblue", "payung", cnt_orang);
}
if ((this.nama == 0) || (this.nama == 2)) {
var _local5 = _level0.game.attachMovie("payung", "payung", cnt_orang);
}
if ((this.nama == 4) || (this.nama == 5)) {
var _local5 = _level0.game.attachMovie("payunggreen", "payung", cnt_orang);
}
_local5._xscale = _local5._xscale * 0.8;
_local5._yscale = _local5._yscale * 0.8;
_local11 = new Object();
_local11.x = arr_musuh[_local3].payung._x;
_local11.y = arr_musuh[_local3].payung._y;
arr_musuh[_local3].localToGlobal(_local11);
_local5._x = _local11.x;
_local5._y = _local11.y;
_local5.gotoAndPlay(arr_musuh[_local3].payung._currentframe);
cnt_orang++;
if (cnt_orang >= 40) {
cnt_orang = 21;
}
arr_musuh[_local3].removeMovieClip();
arr_musuh.splice(_local3, 1);
_local5.onEnterFrame = function () {
this._y = this._y - 4;
if (this._y < 0) {
this.removeMovieClip();
}
};
_local4.onEnterFrame = function () {
this._y = this._y + 7;
if (this._y > 400) {
if (_root.suara == "play") {
_root.jatuh.start(0, 1);
}
var _local3 = _root.attachMovie("awan", "awans" + cnt_awan, cnt_awan);
_local3._x = this._x;
_local3._y = 370;
this.removeMovieClip();
}
};
cnt_awan++;
if (cnt_awan >= 20) {
cnt_awan = 0;
}
}
}
}
}
if ((this._x < 10) or (this._x > 630)) {
this._dx = this._dx * -1;
this.power = this.power / 2;
if (this._x < 10) {
this._x = 10;
} else {
this._x = 628;
}
this._dy = this._dy;
this._dx = this._dx * ((Math.random() * 0.3) + 0.7);
this._rotation = 90 - get_sudut(this._dx, -this._dy);
}
var _local11 = new Object();
_local11.x = this._x;
_local11.y = this._y;
this._parent.localToGlobal(_local11);
if (_local11.y > 450) {
if (combo > temp_combo) {
temp_combo = combo;
}
if (combo > 1) {
poin = poin + (cnt_poin * combo);
}
if (posisi >= 4) {
if (giliran == 1) {
giliran = 2;
} else {
giliran = 1;
}
}
this.removeMovieClip();
buat_tembak();
}
};
}
}
};
buttonmc.backbtn.onRollOver = function () {
klik = true;
};
buttonmc.backbtn.onRollOut = function () {
klik = false;
};
buttonmc.pausebtn.onRollOver = function () {
klik = true;
};
buttonmc.pausebtn.onRollOut = function () {
klik = false;
};
buttonmc.playbtn.onRollOver = function () {
klik = true;
};
buttonmc.playbtn.onRollOut = function () {
klik = false;
};
buttonmc.soundbtn.onRollOver = function () {
klik = true;
};
buttonmc.soundbtn.onRollOut = function () {
klik = false;
};
buttonmc.mutebtn.onRollOver = function () {
klik = true;
};
buttonmc.mutebtn.onRollOut = function () {
klik = false;
};
buttonmc.playbtn.onRelease = function () {
pausemc._visible = false;
buttonmc.playbtn._visible = false;
buttonmc.pausebtn._visible = true;
paused = false;
};
buttonmc.pausebtn.onRelease = function () {
pausemc._visible = true;
pausemc.swapDepths(50);
buttonmc.playbtn._visible = true;
buttonmc.pausebtn._visible = false;
paused = true;
};
buttonmc.mutebtn.onRelease = function () {
_root.game_song.stop();
_root.game2_song.stop();
_root.suara = "stop";
buttonmc.soundbtn._visible = true;
buttonmc.mutebtn._visible = false;
};
buttonmc.soundbtn.onRelease = function () {
_root.suara = "play";
if ((level % 2) == 0) {
_root.game2_song.start(0, 100);
} else {
_root.game_song.start(0, 100);
}
buttonmc.mutebtn._visible = true;
buttonmc.soundbtn._visible = false;
};
buttonmc.backbtn.onRelease = function () {
paused = true;
_root.gotoAndStop("menu");
};
gameover.retrybtn.onRelease = function () {
menang("retry");
if (_root.suara == "play") {
if ((level % 2) == 0) {
_root.game2_song.start(0, 100);
} else {
_root.game_song.start(0, 100);
}
}
};
gameover.backbtn.onRelease = function () {
_root.gotoAndStop("menu");
};
levelmc.teksmc.okbtn.onRelease = function () {
menang("next");
_root.level_song.stop();
if (_root.suara == "play") {
if ((level % 2) == 0) {
_root.game2_song.start(0, 100);
} else {
_root.game_song.start(0, 100);
}
}
};
init();
balonmc.playbtn.onRollOver = function () {
klik = true;
};
balonmc.playbtn.onRollOut = function () {
klik = false;
};
balonmc.playbtn.onRelease = function () {
balonmc._visible = false;
ket_monkey = "play";
mulai = "sudah";
waktu = 10;
};
Symbol 459 MovieClip Frame 1
backbtn.onRelease = function () {
_root.gotoAndStop("menu");
};
Symbol 460 MovieClip Frame 1
if (_root.suara == "play") {
_root.win_song.start(0, 2);
}
Symbol 460 MovieClip Frame 50
if (_root.suara == "play") {
_root.bom.start(0, 1);
}
Symbol 460 MovieClip Frame 114
if (_root.suara == "play") {
_root.jatuh.start(0, 1);
}
Symbol 460 MovieClip Frame 213
if (_root.suara == "play") {
_root.gling.start(0, 2);
}
Symbol 460 MovieClip Frame 283
if (_root.suara == "play") {
_root.jatuh.start(0, 5);
}
Symbol 460 MovieClip Frame 330
if (_root.suara == "play") {
_root.jatuh.start(0, 1);
}
Symbol 460 MovieClip Frame 363
stop();
if (_root.suara == "play") {
_root.win2_song.start(0, 5);
}