Frame 1
_quality = "HIGH";
_root.sound_on = true;
Stage.scaleMode = "noScale";
fscommand ("trapallkeys", true);
fscommand ("showmenu", "false");
_root.main_link = "http://www.2DPlay.com/index.php?gameid=1334";
_root.download_link = "http://www.2DPlay.com/downloadgame.php?gameid=1334";
_root.get_game_link = "http://www.2DPlay.com/freecontent.htm";
_root.scores_link = "http://www.2Dplay.com/highscores.php?gameid=1334&hiscore=";
_root.viewscores_link = "http://www.2Dplay.com/showscores.php?gameid=1334";
Frame 2
stop();
Frame 5
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_vm_test() {
return(hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72");
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var a = 1732584193;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var i = 0;
while (i < x.length) {
var olda = a;
var oldb = _local3;
var oldc = _local2;
var oldd = _local1;
a = md5_ff(a, _local3, _local2, _local1, x[i + 0], 7, -680876936);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 3], 22, -1044525330);
a = md5_ff(a, _local3, _local2, _local1, x[i + 4], 7, -176418897);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 7], 22, -45705983);
a = md5_ff(a, _local3, _local2, _local1, x[i + 8], 7, 1770035416);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 11], 22, -1990404162);
a = md5_ff(a, _local3, _local2, _local1, x[i + 12], 7, 1804603682);
_local1 = md5_ff(_local1, a, _local3, _local2, x[i + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, a, _local3, x[i + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, a, x[i + 15], 22, 1236535329);
a = md5_gg(a, _local3, _local2, _local1, x[i + 1], 5, -165796510);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 0], 20, -373897302);
a = md5_gg(a, _local3, _local2, _local1, x[i + 5], 5, -701558691);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 4], 20, -405537848);
a = md5_gg(a, _local3, _local2, _local1, x[i + 9], 5, 568446438);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 8], 20, 1163531501);
a = md5_gg(a, _local3, _local2, _local1, x[i + 13], 5, -1444681467);
_local1 = md5_gg(_local1, a, _local3, _local2, x[i + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, a, _local3, x[i + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, a, x[i + 12], 20, -1926607734);
a = md5_hh(a, _local3, _local2, _local1, x[i + 5], 4, -378558);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 14], 23, -35309556);
a = md5_hh(a, _local3, _local2, _local1, x[i + 1], 4, -1530992060);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 10], 23, -1094730640);
a = md5_hh(a, _local3, _local2, _local1, x[i + 13], 4, 681279174);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 6], 23, 76029189);
a = md5_hh(a, _local3, _local2, _local1, x[i + 9], 4, -640364487);
_local1 = md5_hh(_local1, a, _local3, _local2, x[i + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, a, _local3, x[i + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, a, x[i + 2], 23, -995338651);
a = md5_ii(a, _local3, _local2, _local1, x[i + 0], 6, -198630844);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 5], 21, -57434055);
a = md5_ii(a, _local3, _local2, _local1, x[i + 12], 6, 1700485571);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 1], 21, -2054922799);
a = md5_ii(a, _local3, _local2, _local1, x[i + 8], 6, 1873313359);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 13], 21, 1309151649);
a = md5_ii(a, _local3, _local2, _local1, x[i + 4], 6, -145523070);
_local1 = md5_ii(_local1, a, _local3, _local2, x[i + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, a, _local3, x[i + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, a, x[i + 9], 21, -343485551);
a = safe_add(a, olda);
_local3 = safe_add(_local3, oldb);
_local2 = safe_add(_local2, oldc);
_local1 = safe_add(_local1, oldd);
i = i + 16;
}
return(Array(a, _local3, _local2, _local1));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
var _local1 = b;
return(md5_cmn((_local1 & c) | ((~_local1) & d), a, _local1, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_hmac_md5(key, data) {
var _local2 = str2binl(key);
if (_local2.length > 16) {
_local2 = core_md5(_local2, key.length * chrsz);
}
var _local3 = Array(16);
var opad = Array(16);
var _local1 = 0;
while (_local1 < 16) {
_local3[_local1] = _local2[_local1] ^ 909522486;
opad[_local1] = _local2[_local1] ^ 1549556828;
_local1++;
}
var hash = core_md5(_local3.concat(str2binl(data)), 512 + (data.length * chrsz));
return(core_md5(opad.concat(hash), 640));
}
function safe_add(x, y) {
var _local1 = (x & 65535) + (y & 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local2 = str;
var _local3 = Array();
var mask = ((1 << chrsz) - 1);
var _local1 = 0;
while (_local1 < (_local2.length * chrsz)) {
_local3[_local1 >> 5] = _local3[_local1 >> 5] | ((_local2.charCodeAt(_local1 / chrsz) & mask) << (_local1 % 32));
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2str(bin) {
var _local2 = bin;
var _local3 = "";
var mask = ((1 << chrsz) - 1);
var _local1 = 0;
while (_local1 < (_local2.length * 32)) {
_local3 = _local3 + String.fromCharCode((_local2[_local1 >> 5] >>> (_local1 % 32)) & mask);
_local1 = _local1 + chrsz;
}
return(_local3);
}
function binl2hex(binarray) {
var _local2 = binarray;
var _local3 = (hexcase ? "0123456789ABCDEF" : "0123456789abcdef");
var str = "";
var _local1 = 0;
while (_local1 < (_local2.length * 4)) {
str = str + (_local3.charAt((_local2[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((_local2[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(str);
}
function binl2b64(binarray) {
var _local3 = binarray;
var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var str = "";
var _local2 = 0;
while (_local2 < (_local3.length * 4)) {
var triplet = (((((_local3[_local2 >> 2] >> (8 * (_local2 % 4))) & 255) << 16) | (((_local3[(_local2 + 1) >> 2] >> (8 * ((_local2 + 1) % 4))) & 255) << 8)) | ((_local3[(_local2 + 2) >> 2] >> (8 * ((_local2 + 2) % 4))) & 255));
var _local1 = 0;
while (_local1 < 4) {
if (((_local2 * 8) + (_local1 * 6)) > (_local3.length * 32)) {
str = str + b64pad;
} else {
str = str + tab.charAt((triplet >> (6 * (3 - _local1))) & 63);
}
_local1++;
}
_local2 = _local2 + 3;
}
return(str);
}
_root.back_width = 525;
_root.scr_width = 425;
_root.pause_clip_depth = 10000;
_root.cursor_depth = 10010;
_root.level_time = 40;
_root.miss_snd = new Sound();
_root.miss_snd.attachSound("miss.wav");
_root.timer_snd = new Sound();
_root.timer_snd.attachSound("TimeOut.wav");
_root.shot_snd = new Sound();
_root.shot_snd.attachSound("pistol_shot.wav");
_root.balloon_snd = new Sound();
_root.balloon_snd.attachSound("balloon_pop.wav");
_root.rollover_snd = new Sound();
_root.rollover_snd.attachSound("button_rollover.wav");
_root.rollout_snd = new Sound();
_root.rollout_snd.attachSound("button_rollout.wav");
_root.bulls_eye_snd = new Sound();
_root.bulls_eye_snd.attachSound("bulls_eye.wav");
_root.got_goal_snd = new Sound();
_root.got_goal_snd.attachSound("got_goal.wav");
_root.voc_excellent = new Sound();
_root.voc_excellent.attachSound("voc_excellent.wav");
_root.voc_game_over = new Sound();
_root.voc_game_over.attachSound("voc_game_over.wav");
_root.voc_rapid_fire = new Sound();
_root.voc_rapid_fire.attachSound("voc_rapid_fire.wav");
_root.voc_ready = new Sound();
_root.voc_ready.attachSound("voc_ready.wav");
_root.voc_go = new Sound();
_root.voc_go.attachSound("voc_go.wav");
_root.track_snd = new Sound();
_root.track_snd.attachSound("track.wav");
_root.track_snd.start(0, 9999999);
_root.InitGame = function () {
var _local1 = _root;
_local1.score = 0;
_local1.level_num = 1;
_local1.miss = 5;
};
var hexcase = 0;
var b64pad = "";
var chrsz = 8;
Frame 6
_root.got_goal_mc.removeMovieClip();
_root.attachMovie("cursor_mc", "cursor_mc", _root.cursor_depth, {_x:_root._xmouse, _y:_root._ymouse});
_root.cursor_mc.startDrag(true, 0, 0, 550, 400);
Mouse.hide();
stop();
Instance of Symbol 240 MovieClip in Frame 6
onClipEvent (load) {
_root.voc_rapid_fire.start(0, 1);
this.y = this._y;
this.sinus = 0;
}
onClipEvent (enterFrame) {
this._y = this.y + (Math.sin(this.sinus) * 8);
this.sinus = this.sinus + 0.04;
}
Instance of Symbol 83 MovieClip [2dplay button] in Frame 6
on (press) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 131 MovieClip [button_start] "flashing" in Frame 6
on (press) {
_root.InitGame();
_root.attachMovie("start_level_title", "start_level_title", _root.pause_clip_depth);
_root.gotoAndPlay("start_level");
}
Instance of Symbol 110 MovieClip [button_options] in Frame 6
on (press) {
_root.gotoAndPlay("options");
}
Instance of Symbol 95 MovieClip [button_help] in Frame 6
on (press) {
_root.gotoAndPlay("help");
}
Instance of Symbol 104 MovieClip [button_more_games] "play_btn_1" in Frame 6
on (press) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 137 MovieClip [button_view_scores] in Frame 6
on (press) {
getURL (_root.viewscores_link, "_blank");
}
Instance of Symbol 89 MovieClip [button_download] "download_btn_1" in Frame 6
on (press) {
getURL (_root.download_link, "_blank");
}
Frame 7
stop();
Instance of Symbol 116 MovieClip [button_quality] in Frame 7
onClipEvent (load) {
if (_quality != "HIGH") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
if (_quality != "HIGH") {
_quality = "HIGH";
gotoAndStop (1);
} else {
_quality = "LOW";
gotoAndStop (2);
}
}
Instance of Symbol 128 MovieClip [button_sound] in Frame 7
onClipEvent (load) {
if (!_root.sound_on) {
gotoAndStop (2);
}
}
on (press) {
if (_root.sound_on) {
_root.sound_on = false;
_root.track_snd.setVolume(0);
gotoAndStop (2);
} else {
_root.sound_on = true;
_root.track_snd.setVolume(100);
gotoAndStop (1);
}
}
Instance of Symbol 104 MovieClip [button_more_games] "play_btn_2" in Frame 7
on (press) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 92 MovieClip [button_get_game] in Frame 7
on (press) {
getURL (_root.get_game_link, "_blank");
}
Instance of Symbol 89 MovieClip [button_download] "download_btn_2" in Frame 7
on (press) {
getURL (_root.download_link, "_blank");
}
Instance of Symbol 98 MovieClip [button_main_menu] "flashing" in Frame 7
on (press) {
_root.gotoAndPlay("main_menu");
}
Frame 8
stop();
Frame 9
_root.miss_mc.gotoAndStop(6);
_root.InitLevel = function () {
var _local2 = _root;
_local2.mc_counter = 6000;
_local2.attachMovie("sight_mc", "sight_mc", _local2.cursor_depth, {_x:_local2._xmouse, _y:_local2._ymouse});
_local2.sight_mc.startDrag(true, 0, 0, 550, 400);
Mouse.hide();
_local2.sight_mc.cursor._visible = false;
_local2.sight_mc.onMouseDown = function () {
if (this.sight._visible) {
_root.shot_snd.start(0, 1);
}
};
_local2.timer_mc.gotoAndStop(1);
var _local3 = String(_local2.level_num).split("");
if (_local3.length == 1) {
_local3.unshift(0, 0);
} else if (_local3.length == 2) {
_local3.unshift(0);
}
var _local1 = 0;
while (_local1 < 3) {
_local2["level_num_" + _local1].gotoAndStop(Number(_local3[_local1]) + 1);
_local1++;
}
_local2.goal = (_local2.level_num * 100) + 200;
_local2.level_win = false;
_local1 = 0;
while (_local1 < 6) {
_local2["goal_num_" + _local1]._visible = true;
_local1++;
}
_local2.got_goal_mc.removeMovieClip();
_local2.ShowScore();
};
_root.ShowScore = function () {
var _local3 = String(_root.goal).split("");
var counter = (6 - _local3.length);
var _local1 = 0;
while (_local1 < counter) {
_local3.unshift(0);
_local1++;
}
_local1 = 0;
while (_local1 < 6) {
_root["goal_num_" + _local1].gotoAndStop(Number(_local3[_local1]) + 1);
_local1++;
}
var _local2 = String(_root.score).split("");
var counter = (6 - _local2.length);
_local1 = 0;
while (_local1 < counter) {
_local2.unshift(0);
_local1++;
}
_local1 = 0;
while (_local1 < 6) {
_root["score_num_" + _local1].gotoAndStop(Number(_local2[_local1]) + 1);
_local1++;
}
};
_root.InitPlaying = function () {
var _local1 = _root;
_local1.targets_counter = 0;
_local1.perfect_combo = 0;
_local1.Timer = new TimerControl();
_local1.paused = false;
_local1.onEnterFrame = function () {
var _local1 = _root;
if (!_local1.paused) {
if (_local1.targets_counter == 0) {
var type = ((_local1.level_num > 4) ? (Math.floor(Math.random() * 5) + 1) : (Math.floor(Math.random() * _local1.level_num) + 1));
_local1.targets_holder_mc.attachMovie("target_mc", "target_" + _local1.mc_counter, _local1.mc_counter, {type:type});
_local1.mc_counter = _local1.mc_counter + 1;
_local1.targets_counter = 25;
} else {
_local1.targets_counter = _local1.targets_counter - 1;
}
if (_local1._xmouse > 430) {
_local1.sight_mc.cursor._visible = true;
_local1.sight_mc.sight._visible = false;
} else {
_local1.sight_mc.cursor._visible = false;
_local1.sight_mc.sight._visible = true;
}
var _local3 = ((((-_local1.sight_mc._x) * (_local1.back_width - _local1.scr_width)) / _local1.scr_width) + 60) - _local1.targets_holder_mc._x;
_local1.targets_holder_mc._x = _local1.targets_holder_mc._x + (_local3 / 4);
if (_local1.targets_holder_mc._x < -40) {
_local1.targets_holder_mc._x = -40;
}
for (var _local2 in _local1.targets_holder_mc) {
_local1.targets_holder_mc[_local2].Update();
}
_local1.Timer.Update();
}
updateAfterEvent();
};
};
_root.InitLevel();
stop();
Instance of Symbol 101 MovieClip [button_menu] in Frame 9
on (press) {
_root.paused = true;
this.MouseOut();
_root.attachMovie("pause_clip", "pause_clip", _root.pause_clip_depth);
}
Symbol 292 MovieClip [__Packages.MCButton] Frame 0
class MCButton extends MovieClip
{
function MCButton () {
super();
Init();
}
function Init() {
var _local1 = this;
_local1.ColorObject = new Color(_local1);
if (_local1._name != "flashing") {
_local1.onRollOver = _local1.MouseOver;
_local1.onRollOut = (_local1.onDragOut = _local1.MouseOut);
} else {
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.color_t = (Math.sin(_local1.sinus) * 128) + 127;
_local1.sinus = _local1.sinus + 0.15;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
};
}
}
function MouseOver() {
var _local1 = this;
_root.rollover_snd.start(0, 1);
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.color_t < 255) {
_local1.color_t = _local1.color_t + 30;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
} else {
delete _local1.onEnterFrame;
}
};
}
function MouseOut() {
var _local1 = this;
_root.rollout_snd.start(0, 1);
_local1.onEnterFrame = function () {
var _local1 = this;
if (_local1.color_t > 0) {
_local1.color_t = _local1.color_t - 30;
var _local2 = {ra:100, rb:_local1.color_t, ga:100, gb:Math.floor(_local1.color_t / 2), ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
} else {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
_local1.ColorObject.setTransform(_local2);
delete _local1.onEnterFrame;
}
};
}
var color_t = 0;
var sinus = 0;
}
Symbol 293 MovieClip [__Packages.Balloon] Frame 0
class Balloon extends MovieClip
{
function Balloon () {
var _local1 = this;
var _local2 = _root;
super();
_local1.hotspot.onPress = function () {
var _local1 = this;
var _local2 = _root;
_local1._parent._parent.attachMovie("balloon_pop_mc", "b_pop_" + _local2.mc_counter, _local2.mc_counter, {color_index:_local1._parent._currentframe, _x:_local1._parent._x, _y:_local1._parent._y});
_local2.mc_counter = _local2.mc_counter + 1;
_local1._parent.removeMovieClip();
};
}
function Update() {
var _local1 = this;
_local1._x = _local1._x + (Math.sin(_local1.sinus) * _local1.dx);
_local1.sinus = _local1.sinus + 0.05;
_local1._y = _local1._y + _local1.dy;
_local1.dy = _local1.dy - 0.1;
}
}
Symbol 294 MovieClip [__Packages.Debris] Frame 0
class Debris extends MovieClip
{
function Debris () {
super();
Init();
}
function Update() {
var _local1 = this;
_local1._x = _local1._x + _local1.dx;
_local1._y = _local1._y + _local1.dy;
_local1._rotation = _local1._rotation - (_local1.dx * _local1.dr);
_local1.dy = _local1.dy + 0.3;
_local1.dr = _local1.dr + 0.3;
if (_local1._y > 420) {
_local1.removeMovieClip();
}
}
function Init() {
var _local1 = this;
_local1.dx = (Math.random() * 4) - 2;
_local1.dy = -3;
_local1.dr = 0;
switch (_local1.type) {
case 1 :
_local1._x = _local1.x;
_local1._y = _local1.y - 37;
return;
case 3 :
(_local1.gotoAndStop(2));// not popped
_local1._x = _local1.x;
_local1._y = _local1.y + 36;
_local1._rotation = _local1.r;
return;
case 5 :
(_local1.gotoAndStop(3));// not popped
_local1._x = _local1.x + 25;
_local1._y = _local1.y;
return;
case 6 :
_local1._x = _local1.x - 25;
_local1._y = _local1.y;
}
_local1 = _local1.gotoAndStop(4);
}
}
Symbol 295 MovieClip [__Packages.Target] Frame 0
class Target extends MovieClip
{
function Target () {
super();
Init();
}
function Init() {
var _local1 = this;
var _local2 = _root;
switch (_local1.type) {
case 1 :
_local1.attachMovie("copter_mc", "part", 1, {_x:0, _y:-47});
_local1.dy = ((Math.random() < 0.5) ? ((Math.random() * 1.5) + 1) : (-((Math.random() * 1.5) + 1)));
_local1.dx = ((Math.random() < 0.5) ? ((Math.random() * 0.5) + 0.5) : (-((Math.random() * 0.5) + 0.5)));
_local1._x = Math.random() * 425;
_local1._y = ((_local1.dy > 0) ? -32 : 442);
break;
case 2 :
_local1.part = _local1.attachMovie("balloon_mc", "part", 1, {_x:-16, _y:-78});
_local1.part.hotspot.onPress = function () {
var _local1 = this;
var _local2 = _root;
_local1._parent._parent._parent.attachMovie("balloon_pop_mc", "b_pop_" + _local2.mc_counter, _local2.mc_counter, {color_index:_local1._parent._currentframe, _x:_local1._parent._parent._x - 16, _y:_local1._parent._parent._y - 78});
_local2.mc_counter = _local2.mc_counter + 1;
_local1._parent._parent.Fall();
};
_local1.sinus = 0;
_local1.dy = -((Math.random() * 1.5) + 1);
_local1.dx = (Math.random() * 0.5) + 0.7;
_local1._x = Math.random() * 425;
_local1._y = 462;
break;
case 3 :
_local1.part = _local1.attachMovie("spring_mc", "part", 1);
_local1.sinus = 0;
_local1.dx = ((Math.random() < 0.5) ? (Math.random() + 1) : (-(Math.random() + 1)));
_local1.dy = -((Math.random() * 1.5) + 1);
_local1.ay = 100 + (Math.random() * 250);
_local1._x = ((_local1.dx > 0) ? -80 : 505);
_local1._y = 442;
break;
case 4 :
_local1.attachMovie("rubber_mc", "part", 1);
_local1._x = Math.random() * 425;
_local1._y = -40;
_local1.ay = (Math.random() * 300) + 45;
break;
case 5 :
_local1.part = _local1.attachMovie("wings_mc", "part", 1);
_local1.dx = ((Math.random() < 0.5) ? (Math.random() + 2) : (-(Math.random() + 2)));
_local1._x = ((_local1.dx > 0) ? -90 : 515);
_local1.dy = (Math.random() * 2) - 1;
_local1._y = (Math.random() * 200) + 100;
}
_local1.hot_spot.onPress = function () {
var _local1 = this;
var _local2 = _root;
_local1._parent.dx_shot = (_local2._xmouse - _local1._parent._x) - _local2.targets_holder_mc._x;
_local1._parent.dy_shot = _local2._ymouse - _local1._parent._y;
_local1._parent.Die();
};
}
function Update() {
var _local1 = this;
switch (_local1.type) {
case 1 :
_local1._x = _local1._x + _local1.dx;
_local1._y = _local1._y + _local1.dy;
break;
case 2 :
_local1._x = _local1._x + (Math.sin(_local1.sinus) * _local1.dx);
_local1.sinus = _local1.sinus + 0.05;
_local1._y = _local1._y + _local1.dy;
break;
case 3 :
_local1._x = _local1._x + _local1.dx;
_local1._y = 380 - Math.abs(Math.sin(_local1.sinus) * _local1.ay);
_local1.part._rotation = (Math.sin(_local1.sinus * 2) * _local1.dx) * 7;
_local1.sinus = _local1.sinus + 0.03;
if ((_local1._x > 510) || (_local1._x < -85)) {
_local1.removeMovieClip();
}
break;
case 4 :
_local1.dy = _local1.ay - _local1._y;
_local1._y = _local1._y + (_local1.dy / 10);
if (Math.abs(_local1._y - _local1.ay) < 0.5) {
_local1.ay = -50;
}
break;
case 5 :
_local1._x = _local1._x + _local1.dx;
_local1._y = _local1._y + _local1.dy;
_local1._y = _local1._y - ((_local1.part._currentframe - 11) / 10);
if ((_local1._x > 520) || (_local1._x < -95)) {
_local1.removeMovieClip();
}
break;
case 6 :
_local1._y = _local1._y + _local1.dy;
_local1.dy = _local1.dy + 0.3;
}
if (_local1.dy > 0) {
if (_local1._y > 442) {
_local1.removeMovieClip();
}
} else if (_local1._y < -43) {
_local1.removeMovieClip();
}
}
function Fall() {
var _local1 = this;
_local1.part.removeMovieClip();
_local1.dy = 0;
_local1.type = 6;
}
function Die() {
var _local1 = _root;
var _local2 = this;
if (_local2.type == 2) {
_local2._parent.attachMovie("balloon_fly_mc", "b_fly_" + _local1.mc_counter, _local1.mc_counter, {dx:_local2.dx, dy:_local2.dy, sinus:_local2.sinus, color_index:_local2.part._currentframe, _x:_local2._x - 16, _y:_local2._y - 78});
_local1.mc_counter = _local1.mc_counter + 1;
}
var shot_radius = Math.sqrt((_local2.dx_shot * _local2.dx_shot) + (_local2.dy_shot * _local2.dy_shot));
if (shot_radius <= 3) {
_local1.bulls_eye_snd.start(0, 1);
_local1.perfect_combo = _local1.perfect_combo + 1;
var points = (20 * _local1.perfect_combo);
} else {
_local1.perfect_combo = 0;
var points = (Math.floor((1 - ((shot_radius - 3) / 23)) * 19) + 1);
}
_local1.score = _local1.score + points;
_local1.goal = _local1.goal - points;
_local1.goal = ((_local1.goal < 0) ? 0 : (_local1.goal));
if ((_local1.goal == 0) && (!_local1.level_win)) {
_local1.got_goal_snd.start(0, 1);
var _local3 = 0;
while (_local3 < 6) {
_local1["goal_num_" + _local3]._visible = false;
_local3++;
}
_local1.attachMovie("got_goal_mc", "got_goal_mc", _local1.mc_counter, {_x:491, _y:304});
_local1.mc_counter = _local1.mc_counter + 1;
_local1.level_win = true;
}
_local1.ShowScore();
var t_shot = _local2._parent.attachMovie("target_shot_mc", "t_shot_" + _local1.mc_counter, _local1.mc_counter - 5000, {_x:_local2._x, _y:_local2._y});
_local1.mc_counter = _local1.mc_counter + 1;
switch (_local2.type) {
case 1 :
case 3 :
_local2._parent.attachMovie("debris_mc", "debris_" + _local1.mc_counter, _local1.mc_counter, {type:_local2.type, x:_local2._x, y:_local2._y, r:_local2.part._rotation});
_local1.mc_counter = _local1.mc_counter + 1;
break;
case 4 :
_local2._parent.attachMovie("rubber_band", "r_band_" + _local1.mc_counter, _local1.mc_counter, {_x:_local2._x, _y:_local2._y});
_local1.mc_counter = _local1.mc_counter + 1;
break;
case 5 :
_local2._parent.attachMovie("debris_mc", "debris_" + _local1.mc_counter, _local1.mc_counter, {type:5, x:_local2._x, y:_local2._y});
_local1.mc_counter = _local1.mc_counter + 1;
_local2._parent.attachMovie("debris_mc", "debris_" + _local1.mc_counter, _local1.mc_counter, {type:6, x:_local2._x, y:_local2._y});
_local1.mc_counter = _local1.mc_counter + 1;
}
t_shot.shot_dot._x = _local2.dx_shot;
t_shot.shot_dot._y = _local2.dy_shot;
_local2._parent.attachMovie("points_mc", "pts_" + _local1.mc_counter, _local1.mc_counter, {_x:_local2._x, _y:_local2._y - 36, points:points});
_local1.mc_counter = _local1.mc_counter + 1;
_local2.removeMovieClip();
}
}
Symbol 296 MovieClip [__Packages.TargetPoints] Frame 0
class TargetPoints extends MovieClip
{
var points, points_field;
function TargetPoints () {
super();
if (points >= 20) {
points_field.textColor = 16711680 /* 0xFF0000 */;
}
}
function Update() {
var _local1 = this;
_local1._y = _local1._y + _local1.dy;
_local1.dy = _local1.dy + 0.2;
if (_local1.dy > 0) {
_local1.removeMovieClip();
}
}
var dy = -3;
}
Symbol 297 MovieClip [__Packages.TargetShot] Frame 0
class TargetShot extends MovieClip
{
function TargetShot () {
super();
}
function Update() {
var _local1 = this;
_local1._y = _local1._y + _local1.dy;
_local1.dy = _local1.dy + 1;
_local1._alpha = _local1._alpha - 5;
_local1._xscale = _local1._xscale - 3;
_local1._yscale = _local1._yscale - 3;
if (_local1._alpha <= 0) {
_local1.removeMovieClip();
}
}
var dy = -5;
}
Symbol 298 MovieClip [__Packages.TimerControl] Frame 0
class TimerControl
{
var timer_init, timer_offset, time_disp;
function TimerControl () {
timer_init = _root.level_time * 1000;
timer_offset = getTimer();
}
function Update() {
var _local1 = this;
var _local2 = _root;
_local1.time_disp = getTimer() - _local1.timer_offset;
_local1.level_time = (_local1.timer_init - (getTimer() - _local1.timer_offset)) / 1000;
_local2.timer_mc.gotoAndStop(Math.floor((1 - (_local1.level_time / _local2.level_time)) * 400));
if (_local1.level_time < 0) {
_local2.paused = true;
_local2.attachMovie("level_end", "level_end", _local2.pause_clip_depth);
}
}
function PauseOFF() {
timer_offset = getTimer() - time_disp;
}
}
Symbol 6 MovieClip Frame 1
var gameBytesTotal = 0;
var gameBytesLoaded = 0;
var percent = 0;
Symbol 6 MovieClip Frame 3
gameBytesTotal = _root.getBytesTotal();
gameBytesLoaded = _root.getBytesLoaded();
percent = Math.round((gameBytesLoaded / gameBytesTotal) * 100);
bar.loadbar._xscale = percent;
if (((gameBytesLoaded >= gameBytesTotal) && (gameBytesTotal > 0)) && (_root.logo._currentframe >= _root.logo._totalframes)) {
_root.gotoAndPlay("game_init");
stop();
} else {
gotoAndPlay ("preload");
}
Symbol 9 Button
on (press) {
getURL (_root.main_link, "_blank");
}
Symbol 79 MovieClip Frame 1
_root.loading._visible = false;
Symbol 79 MovieClip Frame 207
_root.loading._visible = true;
stop();
Symbol 83 MovieClip [2dplay button] Frame 1
#initclip 30
Object.registerClass("2dplay button", MCButton);
#endinitclip
Symbol 86 MovieClip [button_continue] Frame 1
#initclip 8
Object.registerClass("button_continue", MCButton);
#endinitclip
Symbol 89 MovieClip [button_download] Frame 1
#initclip 9
Object.registerClass("button_download", MCButton);
#endinitclip
Symbol 92 MovieClip [button_get_game] Frame 1
#initclip 10
Object.registerClass("button_get_game", MCButton);
#endinitclip
Symbol 95 MovieClip [button_help] Frame 1
#initclip 11
Object.registerClass("button_help", MCButton);
#endinitclip
Symbol 98 MovieClip [button_main_menu] Frame 1
#initclip 12
Object.registerClass("button_main_menu", MCButton);
#endinitclip
Symbol 101 MovieClip [button_menu] Frame 1
#initclip 13
Object.registerClass("button_menu", MCButton);
#endinitclip
Symbol 104 MovieClip [button_more_games] Frame 1
#initclip 14
Object.registerClass("button_more_games", MCButton);
#endinitclip
Symbol 107 MovieClip [button_no] Frame 1
#initclip 15
Object.registerClass("button_no", MCButton);
#endinitclip
Symbol 110 MovieClip [button_options] Frame 1
#initclip 16
Object.registerClass("button_options", MCButton);
#endinitclip
Symbol 116 MovieClip [button_quality] Frame 1
#initclip 17
Object.registerClass("button_quality", MCButton);
#endinitclip
stop();
Symbol 116 MovieClip [button_quality] Frame 2
stop();
Symbol 119 MovieClip [button_quit] Frame 1
#initclip 18
Object.registerClass("button_quit", MCButton);
#endinitclip
Symbol 122 MovieClip [button_resume] Frame 1
#initclip 19
Object.registerClass("button_resume", MCButton);
#endinitclip
Symbol 128 MovieClip [button_sound] Frame 1
#initclip 20
Object.registerClass("button_sound", MCButton);
#endinitclip
stop();
Symbol 128 MovieClip [button_sound] Frame 2
stop();
Symbol 131 MovieClip [button_start] Frame 1
#initclip 21
Object.registerClass("button_start", MCButton);
#endinitclip
Symbol 134 MovieClip [button_submit_score] Frame 1
#initclip 22
Object.registerClass("button_submit_score", MCButton);
#endinitclip
Symbol 137 MovieClip [button_view_scores] Frame 1
#initclip 23
Object.registerClass("button_view_scores", MCButton);
#endinitclip
Symbol 140 MovieClip [button_yes] Frame 1
#initclip 24
Object.registerClass("button_yes", MCButton);
#endinitclip
Symbol 149 MovieClip [balloon_fly_mc] Frame 1
#initclip 25
Object.registerClass("balloon_fly_mc", Balloon);
#endinitclip
gotoAndStop(color_index);
Symbol 149 MovieClip [balloon_fly_mc] Frame 2
stop();
Symbol 149 MovieClip [balloon_fly_mc] Frame 3
stop();
Symbol 149 MovieClip [balloon_fly_mc] Frame 4
stop();
Symbol 150 MovieClip [balloon_mc] Frame 1
gotoAndStop(Math.floor(Math.random() * 3) + 2);
Symbol 150 MovieClip [balloon_mc] Frame 2
stop();
Symbol 150 MovieClip [balloon_mc] Frame 3
stop();
Symbol 150 MovieClip [balloon_mc] Frame 4
stop();
Symbol 160 MovieClip [balloon_pop_mc] Frame 1
gotoAndPlay(((color_index - 2) * 6) + 2);
Symbol 160 MovieClip [balloon_pop_mc] Frame 4
_root.balloon_snd.start(0, 1);
Symbol 160 MovieClip [balloon_pop_mc] Frame 7
this.removeMovieClip();
Symbol 160 MovieClip [balloon_pop_mc] Frame 10
_root.balloon_snd.start(0, 1);
Symbol 160 MovieClip [balloon_pop_mc] Frame 13
this.removeMovieClip();
Symbol 160 MovieClip [balloon_pop_mc] Frame 16
_root.balloon_snd.start(0, 1);
Symbol 160 MovieClip [balloon_pop_mc] Frame 19
this.removeMovieClip();
Symbol 176 MovieClip [debris_mc] Frame 1
#initclip 26
Object.registerClass("debris_mc", Debris);
#endinitclip
stop();
Symbol 176 MovieClip [debris_mc] Frame 2
stop();
Symbol 176 MovieClip [debris_mc] Frame 3
stop();
Symbol 176 MovieClip [debris_mc] Frame 4
stop();
Symbol 182 MovieClip [target_mc] Frame 1
#initclip 27
Object.registerClass("target_mc", Target);
#endinitclip
Symbol 186 MovieClip [points_mc] Frame 1
#initclip 28
Object.registerClass("points_mc", TargetPoints);
#endinitclip
Symbol 189 MovieClip [target_shot_mc] Frame 1
#initclip 29
Object.registerClass("target_shot_mc", TargetShot);
#endinitclip
Symbol 197 MovieClip [level_end] Frame 1
_root.attachMovie("cursor_mc", "cursor_mc", _root.cursor_depth, {_x:_root._xmouse, _y:_root._ymouse});
_root.cursor_mc.startDrag(true, 0, 0, 550, 400);
Mouse.hide();
if ((_root.goal > 0) || (_root.miss == 0)) {
gotoAndPlay (3);
}
Symbol 197 MovieClip [level_end] Frame 2
_root.voc_excellent.start(0, 1);
stop();
Instance of Symbol 86 MovieClip [button_continue] "flashing" in Symbol 197 MovieClip [level_end] Frame 2
on (press) {
_root.level_num = _root.level_num + 1;
_root.InitLevel();
_root.attachMovie("start_level_title", "start_level_title", _root.pause_clip_depth);
}
Symbol 197 MovieClip [level_end] Frame 3
_root.voc_game_over.start(0, 1);
stop();
Instance of Symbol 137 MovieClip [button_view_scores] in Symbol 197 MovieClip [level_end] Frame 3
on (press) {
getURL (_root.viewscores_link, "_blank");
}
Instance of Symbol 104 MovieClip [button_more_games] in Symbol 197 MovieClip [level_end] Frame 3
on (press) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 92 MovieClip [button_get_game] in Symbol 197 MovieClip [level_end] Frame 3
on (press) {
getURL (_root.get_game_link, "_blank");
}
Instance of Symbol 89 MovieClip [button_download] in Symbol 197 MovieClip [level_end] Frame 3
on (press) {
getURL (_root.download_link, "_blank");
}
Instance of Symbol 98 MovieClip [button_main_menu] in Symbol 197 MovieClip [level_end] Frame 3
on (press) {
_root.gotoAndPlay("main_menu");
_parent.removeMovieClip();
}
Instance of Symbol 134 MovieClip [button_submit_score] "flashing" in Symbol 197 MovieClip [level_end] Frame 3
on (press) {
var hashkey = _root.hex_md5(("gameid=1334&hiscore=" + _root.score) + "2DPlay.com/");
getURL (String(((_root.scores_link + _root.score) + "&hash=") + hashkey), "_blank");
}
Symbol 200 MovieClip [pause_clip] Frame 1
stop();
Instance of Symbol 122 MovieClip [button_resume] "flashing" in Symbol 200 MovieClip [pause_clip] Frame 1
on (press) {
_root.paused = false;
_root.Timer.PauseOFF();
_parent.removeMovieClip();
}
Instance of Symbol 119 MovieClip [button_quit] in Symbol 200 MovieClip [pause_clip] Frame 1
on (press) {
_parent.nextFrame();
}
Instance of Symbol 116 MovieClip [button_quality] in Symbol 200 MovieClip [pause_clip] Frame 1
onClipEvent (load) {
if (_quality != "HIGH") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (press) {
if (_quality != "HIGH") {
_quality = "HIGH";
gotoAndStop (1);
} else {
_quality = "LOW";
gotoAndStop (2);
}
}
Instance of Symbol 128 MovieClip [button_sound] in Symbol 200 MovieClip [pause_clip] Frame 1
onClipEvent (load) {
if (!_root.sound_on) {
gotoAndStop (2);
}
}
on (press) {
if (_root.sound_on) {
_root.sound_on = false;
_root.track_snd.setVolume(0);
gotoAndStop (2);
} else {
_root.sound_on = true;
_root.track_snd.setVolume(100);
gotoAndStop (1);
}
}
Instance of Symbol 137 MovieClip [button_view_scores] in Symbol 200 MovieClip [pause_clip] Frame 1
on (press) {
getURL (_root.viewscores_link, "_blank");
}
Instance of Symbol 104 MovieClip [button_more_games] in Symbol 200 MovieClip [pause_clip] Frame 1
on (press) {
getURL (_root.main_link, "_blank");
}
Instance of Symbol 92 MovieClip [button_get_game] in Symbol 200 MovieClip [pause_clip] Frame 1
on (press) {
getURL (_root.get_game_link, "_blank");
}
Instance of Symbol 89 MovieClip [button_download] in Symbol 200 MovieClip [pause_clip] Frame 1
on (press) {
getURL (_root.download_link, "_blank");
}
Symbol 200 MovieClip [pause_clip] Frame 2
stop();
Instance of Symbol 140 MovieClip [button_yes] in Symbol 200 MovieClip [pause_clip] Frame 2
on (press) {
var hashkey = _root.hex_md5(("gameid=1334&hiscore=" + _root.score) + "2DPlay.com/");
getURL (String(((_root.scores_link + _root.score) + "&hash=") + hashkey), "_blank");
_root.gotoAndPlay("main_menu");
_parent.removeMovieClip();
}
Instance of Symbol 107 MovieClip [button_no] in Symbol 200 MovieClip [pause_clip] Frame 2
on (press) {
_root.gotoAndPlay("main_menu");
_parent.removeMovieClip();
}
Symbol 207 MovieClip [start_level_title] Frame 10
_root.voc_ready.start(0, 1);
Symbol 207 MovieClip [start_level_title] Frame 45
_root.voc_go.start(0, 1);
Symbol 207 MovieClip [start_level_title] Frame 70
_root.InitPlaying();
this.removeMovieClip();
Symbol 216 MovieClip [rubber_band] Frame 20
this.removeMovieClip();
Symbol 220 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 244 Button
on (press) {
_root.miss_snd.start(0, 1);
_root.perfect_combo = 0;
_root.miss = _root.miss - 1;
_root.miss_mc.gotoAndStop(_root.miss + 1);
if (_root.miss == 0) {
_root.paused = true;
_root.attachMovie("level_end", "level_end", _root.pause_clip_depth);
}
}
Symbol 254 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 355
_root.timer_snd.start(0, 1);
Symbol 254 MovieClip Frame 370
_root.timer_snd.start(0, 1);
Symbol 254 MovieClip Frame 385
_root.timer_snd.start(0, 1);
Symbol 276 MovieClip Frame 1
stop();
Symbol 276 MovieClip Frame 2
stop();
Symbol 276 MovieClip Frame 3
stop();
Symbol 276 MovieClip Frame 4
stop();
Symbol 276 MovieClip Frame 5
stop();
Symbol 276 MovieClip Frame 6
stop();
Symbol 276 MovieClip Frame 7
stop();
Symbol 276 MovieClip Frame 8
stop();
Symbol 276 MovieClip Frame 9
stop();
Symbol 276 MovieClip Frame 10
stop();
Symbol 283 MovieClip Frame 1
stop();
Symbol 283 MovieClip Frame 2
stop();
Symbol 283 MovieClip Frame 3
stop();
Symbol 283 MovieClip Frame 4
stop();
Symbol 283 MovieClip Frame 5
stop();
Symbol 283 MovieClip Frame 6
stop();
Symbol 289 Button
on (press) {
getURL (_root.main_link, "_blank");
}