Frame 1
gamename = "fairshooter";
url = "www.gamesonly.com.cn";
onEnterFrame = function () {
totalsize = getBytesTotal();
loadsize = getBytesLoaded();
loadper = Math.round((loadsize / totalsize) * 100) + "%";
if (((loadsize >= 1) && (totalsize >= 1)) && (loadsize == totalsize)) {
load_Mc.nextFrame();
delete onEnterFrame;
}
};
stop();
Frame 2
stop();
level = 1;
score = 0;
help._visible = false;
Frame 3
function setGame() {
Pause = false;
shoots = 0;
combos = 1;
hits = 0;
dep = 1;
time = 180;
point = 50000;
st = "3:00";
zidan = 6;
backSound = new Sound();
backSound.attachSound("19.mp3");
backSound.start(0, 99);
shootSound = new Sound();
shootSound.attachSound("shoot.mp3");
aimSound = new Sound();
aimSound.attachSound("sound9.mp3");
enemyArray = new Array();
setDepths();
enemytimer = setInterval(setEnemy, 2000);
timer = setInterval(setTimer, 1000);
}
function setTimer() {
if (!Pause) {
time--;
if ((time % 60) < 10) {
second = "0" + (time % 60);
} else {
second = time % 60;
}
st = (Math.floor(time / 60) + ":") + second;
if (time <= 0) {
removeMovieClip(reloadtext);
backSound.stop();
i = 0;
while (i < enemyArray.length) {
removeMovieClip(enemyArray[i]);
i++;
}
delete target.onEnterFrame;
delete onMouseDown;
clearInterval(enemytimer);
clearInterval(timer);
checkLevel();
}
}
}
function backMenu() {
clearMc();
removeMovieClip(reloadtext);
backSound.stop();
i = 0;
while (i < enemyArray.length) {
removeMovieClip(enemyArray[i]);
i++;
}
delete target.onEnterFrame;
delete onMouseDown;
clearInterval(enemytimer);
clearInterval(timer);
removeMovieClip(target);
removeMovieClip(lc);
removeMovieClip(GameOverMc);
gotoAndStop ("start");
removeMovieClip(board);
}
function checkLevel() {
if (score > point) {
nextLevel();
} else {
GameOver();
}
}
function clearMc() {
removeMovieClip(l1);
removeMovieClip(l2);
removeMovieClip(l3);
removeMovieClip(l4);
removeMovieClip(l5);
}
function nextLevel() {
lc._x = 116;
lc.gotoAndPlay(2);
}
function GameOver() {
GameOverMc._x = 135;
}
function setDepths() {
lc.swapDepths(115000);
GameOverMc.swapDepths(115001);
target.swapDepths(110000);
board.swapDepths(100000);
l1.swapDepths(60000);
l2.swapDepths(50000);
l3.swapDepths(40000);
l4.swapDepths(30000);
l5.swapDepths(20000);
i = 1;
while (i < 6) {
_root["l" + i].useHandCursor = false;
_root["l" + i].onPress = function () {
};
i++;
}
}
function setEnemy() {
if (!Pause) {
clearInterval(enemytimer);
i = random(7) + 1;
attachMovie((("s" + level) + "-") + i, "enemy" + dep, dep);
eval ("enemy" + dep).va = i;
enemyArray.push(eval ("enemy" + dep));
if (eval ("enemy" + dep).va == 1) {
eval ("enemy" + dep)._y = 410;
eval ("enemy" + dep).swapDepths(50000 + dep);
} else if (eval ("enemy" + dep).va == 2) {
eval ("enemy" + dep)._y = 390;
eval ("enemy" + dep).swapDepths(40000 + dep);
} else if (eval ("enemy" + dep).va == 3) {
eval ("enemy" + dep)._y = 315;
eval ("enemy" + dep).swapDepths(30000 + dep);
} else if (eval ("enemy" + dep).va == 4) {
eval ("enemy" + dep)._y = 260;
eval ("enemy" + dep).swapDepths(20000 + dep);
} else if (eval ("enemy" + dep).va == 5) {
eval ("enemy" + dep)._y = 270;
eval ("enemy" + dep).swapDepths(10000 + dep);
} else if (eval ("enemy" + dep).va == 6) {
eval ("enemy" + dep)._y = (-random(40)) - 40;
eval ("enemy" + dep).swapDepths(60000 + dep);
} else if (eval ("enemy" + dep).va == 7) {
eval ("enemy" + dep)._y = (-random(40)) - 80;
eval ("enemy" + dep).swapDepths(70000 + dep);
}
eval ("enemy" + dep)._x = (random(2) ? -50 : 700);
if (eval ("enemy" + dep)._x == -50) {
eval ("enemy" + dep)._xscale = 100;
eval ("enemy" + dep).xspeed = random(4) + 4;
} else {
eval ("enemy" + dep)._xscale = -100;
eval ("enemy" + dep).xspeed = -(random(4) + 4);
}
eval ("enemy" + dep).useHandCursor = false;
eval ("enemy" + dep).vb = random(5);
if (eval ("enemy" + dep).vb == 1) {
eval ("enemy" + dep).mc.mc.flag.gotoAndStop(2);
}
eval ("enemy" + dep).onEnterFrame = function () {
if (!Pause) {
this._x = this._x + this.xspeed;
if ((this._x < -100) || (this._x > 750)) {
if (this.vb != 1) {
combos = 0;
}
removeMovieClip(this);
}
}
};
eval ("enemy" + dep).onPress = function () {
if (!Pause) {
if ((this._currentframe == 1) && (zidan != 6)) {
delete this.onEnterFrame;
if (this.mc.mc.aim.hitTest(_xmouse, _ymouse, true)) {
if (this.vb != 1) {
_root["cc" + shoots] = 1;
if (_root["cc" + (shoots - 1)] == 1) {
combos++;
} else {
combos = 1;
}
nscore = this.score * 2;
if (combos >= 2) {
nscore = nscore * combos;
attachMovie("combo", "combo", 150000);
combo._x = 320;
combo._y = 240;
}
} else {
nscore = this.score * 2;
}
hits++;
aimSound.start(0, 1);
} else {
hits++;
nscore = this.score;
}
if (this.vb == 1) {
nscore = -nscore;
}
this.gotoAndPlay("die");
setScore();
}
}
};
dep++;
enemytimer = setInterval(setEnemy, 1500 + random(1000));
}
}
function setScore() {
score = score + nscore;
attachMovie("showScore", "ss" + dep, 120000 + dep);
if (nscore < 0) {
eval ("ss" + dep).tt.textColor = 16711680 /* 0xFF0000 */;
}
eval ("ss" + dep)._x = _xmouse;
eval ("ss" + dep)._y = _ymouse;
eval ("ss" + dep).onEnterFrame = function () {
this._y = this._y - 3;
this._alpha = this._alpha - 4;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
dep++;
}
target.onEnterFrame = function () {
if (!Pause) {
target._x = _xmouse;
target._y = _ymouse;
}
};
onMouseDown = function () {
if (((!board.pausebtn.hitTest(_xmouse, _ymouse, true)) && (!board.menubtn.hitTest(_xmouse, _ymouse, true))) && (!board.SoundBtn.hitTest(_xmouse, _ymouse, true))) {
if (!Pause) {
if (zidan > 0) {
shoots++;
zidan--;
if (zidan == 5) {
board.bullet.gotoAndPlay("zd1");
} else if (zidan == 4) {
board.bullet.gotoAndPlay("zd2");
} else if (zidan == 3) {
board.bullet.gotoAndPlay("zd3");
} else if (zidan == 2) {
board.bullet.gotoAndPlay("zd4");
} else if (zidan == 1) {
board.bullet.gotoAndPlay("zd5");
} else if (zidan == 0) {
attachMovie("reloadtext", "reloadtext", 130000);
reloadtext.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse + 30;
};
board.bullet.gotoAndPlay("zd6");
}
target.gotoAndPlay(2);
shootSound.start(0, 1);
nscore = 0;
} else {
removeMovieClip(reloadtext);
board.bullet.gotoAndPlay("zd7");
zidan = 6;
}
}
}
};
setGame();
function md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * strsize)));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local4 = 1732584193 /* 0x67452301 */;
var _local3 = -271733879;
var _local2 = -1732584194;
var _local1 = 271733878 /* 0x10325476 */;
var _local5 = 0;
while (_local5 < x.length) {
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
var _local7 = _local1;
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 0], 7, -680876936);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 1], 12, -389564586);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 2], 17, 606105819);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 3], 22, -1044525330);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 4], 7, -176418897);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 5], 12, 1200080426);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 6], 17, -1473231341);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 7], 22, -45705983);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 8], 7, 1770035416);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 9], 12, -1958414417);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 10], 17, -42063);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 11], 22, -1990404162);
_local4 = md5_ff(_local4, _local3, _local2, _local1, x[_local5 + 12], 7, 1804603682);
_local1 = md5_ff(_local1, _local4, _local3, _local2, x[_local5 + 13], 12, -40341101);
_local2 = md5_ff(_local2, _local1, _local4, _local3, x[_local5 + 14], 17, -1502002290);
_local3 = md5_ff(_local3, _local2, _local1, _local4, x[_local5 + 15], 22, 1236535329);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 1], 5, -165796510);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 6], 9, -1069501632);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 11], 14, 643717713);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 0], 20, -373897302);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 5], 5, -701558691);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 10], 9, 38016083);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 15], 14, -660478335);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 4], 20, -405537848);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 9], 5, 568446438);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 14], 9, -1019803690);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 3], 14, -187363961);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 8], 20, 1163531501);
_local4 = md5_gg(_local4, _local3, _local2, _local1, x[_local5 + 13], 5, -1444681467);
_local1 = md5_gg(_local1, _local4, _local3, _local2, x[_local5 + 2], 9, -51403784);
_local2 = md5_gg(_local2, _local1, _local4, _local3, x[_local5 + 7], 14, 1735328473);
_local3 = md5_gg(_local3, _local2, _local1, _local4, x[_local5 + 12], 20, -1926607734);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 5], 4, -378558);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 8], 11, -2022574463);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 11], 16, 1839030562);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 14], 23, -35309556);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 1], 4, -1530992060);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 4], 11, 1272893353);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 7], 16, -155497632);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 10], 23, -1094730640);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 13], 4, 681279174);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 0], 11, -358537222);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 3], 16, -722521979);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 6], 23, 76029189);
_local4 = md5_hh(_local4, _local3, _local2, _local1, x[_local5 + 9], 4, -640364487);
_local1 = md5_hh(_local1, _local4, _local3, _local2, x[_local5 + 12], 11, -421815835);
_local2 = md5_hh(_local2, _local1, _local4, _local3, x[_local5 + 15], 16, 530742520);
_local3 = md5_hh(_local3, _local2, _local1, _local4, x[_local5 + 2], 23, -995338651);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 0], 6, -198630844);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 7], 10, 1126891415);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 14], 15, -1416354905);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 5], 21, -57434055);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 12], 6, 1700485571);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 3], 10, -1894986606);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 10], 15, -1051523);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 1], 21, -2054922799);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 8], 6, 1873313359);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 15], 10, -30611744);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 6], 15, -1560198380);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 13], 21, 1309151649);
_local4 = md5_ii(_local4, _local3, _local2, _local1, x[_local5 + 4], 6, -145523070);
_local1 = md5_ii(_local1, _local4, _local3, _local2, x[_local5 + 11], 10, -1120210379);
_local2 = md5_ii(_local2, _local1, _local4, _local3, x[_local5 + 2], 15, 718787259);
_local3 = md5_ii(_local3, _local2, _local1, _local4, x[_local5 + 9], 21, -343485551);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local1 = safe_add(_local1, _local7);
_local5 = _local5 + 16;
}
return(Array(_local4, _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) {
return(md5_cmn((b & c) | ((~b) & d), a, b, 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 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 = Array();
var _local4 = (1 << strsize) - 1;
var _local1 = 0;
while (_local1 < (str.length * strsize)) {
_local2[_local1 >> 5] = _local2[_local1 >> 5] | ((str.charCodeAt(_local1 / strsize) & _local4) << (_local1 % 32));
_local1 = _local1 + strsize;
}
return(_local2);
}
function binl2hex(binarray) {
if (hexcase) {
}
var _local4 = "0123456789abcdef";
var _local3 = "";
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local3 = _local3 + (_local4.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local4.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local3);
}
function submitScore() {
hash = md5(((url + gamename) + score) + "zygomaticgames");
getURL (((((("http://www.gamesonly.com.cn/highscore.php?game=" + gamename) + "&score=") + score) + "&otherparam=") + hash) + "", "_blank");
}
var hexcase = 0;
var strsize = 8;
Frame 4
function setGame() {
Pause = false;
shoots = 0;
combos = 1;
hits = 0;
dep = 1;
time = 180;
point = 120000 /* 0x01D4C0 */;
st = "3:00";
zidan = 6;
backSound = new Sound();
backSound.attachSound("19.mp3");
backSound.start(0, 99);
shootSound = new Sound();
shootSound.attachSound("shoot.mp3");
aimSound = new Sound();
aimSound.attachSound("sound9.mp3");
enemyArray = new Array();
setDepths();
enemytimer = setInterval(setEnemy, 2000);
timer = setInterval(setTimer, 1000);
}
function setTimer() {
if (!Pause) {
time--;
if ((time % 60) < 10) {
second = "0" + (time % 60);
} else {
second = time % 60;
}
st = (Math.floor(time / 60) + ":") + second;
if (time <= 0) {
removeMovieClip(reloadtext);
backSound.stop();
i = 0;
while (i < enemyArray.length) {
removeMovieClip(enemyArray[i]);
i++;
}
delete target.onEnterFrame;
delete onMouseDown;
clearInterval(enemytimer);
clearInterval(timer);
checkLevel();
}
}
}
function checkLevel() {
if (score > point) {
nextLevel();
} else {
GameOver();
}
}
function clearMc() {
removeMovieClip(l1);
removeMovieClip(l2);
removeMovieClip(l3);
removeMovieClip(l4);
removeMovieClip(l5);
}
function nextLevel() {
lc._x = 116;
lc.gotoAndPlay(2);
}
function GameOver() {
GameOverMc._x = 135;
}
function setDepths() {
lc.swapDepths(115000);
GameOverMc.swapDepths(115001);
target.swapDepths(110000);
board.swapDepths(100000);
l1.swapDepths(60000);
l2.swapDepths(50000);
l3.swapDepths(40000);
l4.swapDepths(30000);
l5.swapDepths(20000);
i = 1;
while (i < 6) {
_root["l" + i].useHandCursor = false;
_root["l" + i].onPress = function () {
};
i++;
}
}
function setEnemy() {
if (!Pause) {
clearInterval(enemytimer);
i = random(7) + 1;
attachMovie((("s" + level) + "-") + i, "enemy" + dep, dep);
eval ("enemy" + dep).va = i;
enemyArray.push(eval ("enemy" + dep));
if (eval ("enemy" + dep).va == 1) {
eval ("enemy" + dep)._y = -(random(40) + 40);
eval ("enemy" + dep).swapDepths(70000 + dep);
} else if (eval ("enemy" + dep).va == 2) {
eval ("enemy" + dep)._y = 430;
eval ("enemy" + dep).swapDepths(40000 + dep);
} else if (eval ("enemy" + dep).va == 3) {
eval ("enemy" + dep)._y = 400;
eval ("enemy" + dep).swapDepths(50000 + dep);
} else if (eval ("enemy" + dep).va == 4) {
eval ("enemy" + dep)._y = 210;
eval ("enemy" + dep).swapDepths(20000 + dep);
} else if (eval ("enemy" + dep).va == 5) {
eval ("enemy" + dep)._y = 260;
eval ("enemy" + dep).swapDepths(20000 + dep);
} else if (eval ("enemy" + dep).va == 6) {
eval ("enemy" + dep)._y = 210;
eval ("enemy" + dep).swapDepths(30000 + dep);
} else if (eval ("enemy" + dep).va == 7) {
eval ("enemy" + dep)._y = 360;
eval ("enemy" + dep).swapDepths(40000 + dep);
}
eval ("enemy" + dep)._x = (random(2) ? -50 : 700);
if (eval ("enemy" + dep)._x == -50) {
eval ("enemy" + dep)._xscale = 100;
eval ("enemy" + dep).xspeed = random(5) + 5;
} else {
eval ("enemy" + dep)._xscale = -100;
eval ("enemy" + dep).xspeed = -(random(5) + 5);
}
eval ("enemy" + dep).useHandCursor = false;
eval ("enemy" + dep).vb = random(5);
if (eval ("enemy" + dep).vb == 1) {
eval ("enemy" + dep).mc.mc.flag.gotoAndStop(2);
}
eval ("enemy" + dep).onEnterFrame = function () {
if (!Pause) {
this._x = this._x + this.xspeed;
if ((this._x < -100) || (this._x > 750)) {
if (this.vb != 1) {
combos = 0;
}
removeMovieClip(this);
}
}
};
eval ("enemy" + dep).onPress = function () {
if (!Pause) {
if ((this._currentframe == 1) && (zidan != 6)) {
delete this.onEnterFrame;
if (this.mc.mc.aim.hitTest(_xmouse, _ymouse, true)) {
if (this.vb != 1) {
_root["cc" + shoots] = 1;
if (_root["cc" + (shoots - 1)] == 1) {
combos++;
} else {
combos = 1;
}
nscore = this.score * 2;
if (combos >= 2) {
nscore = nscore * combos;
attachMovie("combo", "combo", 150000);
combo._x = 320;
combo._y = 240;
}
} else {
nscore = this.score * 2;
}
hits++;
aimSound.start(0, 1);
} else {
hits++;
nscore = this.score;
}
if (this.vb == 1) {
nscore = -nscore;
}
this.gotoAndPlay("die");
setScore();
}
}
};
dep++;
enemytimer = setInterval(setEnemy, 1500 + random(1000));
}
}
function setScore() {
score = score + nscore;
attachMovie("showScore", "ss" + dep, 120000 + dep);
if (nscore < 0) {
eval ("ss" + dep).tt.textColor = 16711680 /* 0xFF0000 */;
}
eval ("ss" + dep)._x = _xmouse;
eval ("ss" + dep)._y = _ymouse;
eval ("ss" + dep).onEnterFrame = function () {
this._y = this._y - 3;
this._alpha = this._alpha - 4;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
dep++;
}
target.onEnterFrame = function () {
if (!Pause) {
target._x = _xmouse;
target._y = _ymouse;
}
};
onMouseDown = function () {
if (((!board.pausebtn.hitTest(_xmouse, _ymouse, true)) && (!board.menubtn.hitTest(_xmouse, _ymouse, true))) && (!board.SoundBtn.hitTest(_xmouse, _ymouse, true))) {
if (!Pause) {
if (zidan > 0) {
shoots++;
zidan--;
if (zidan == 5) {
board.bullet.gotoAndPlay("zd1");
} else if (zidan == 4) {
board.bullet.gotoAndPlay("zd2");
} else if (zidan == 3) {
board.bullet.gotoAndPlay("zd3");
} else if (zidan == 2) {
board.bullet.gotoAndPlay("zd4");
} else if (zidan == 1) {
board.bullet.gotoAndPlay("zd5");
} else if (zidan == 0) {
attachMovie("reloadtext", "reloadtext", 130000);
reloadtext.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse + 30;
};
board.bullet.gotoAndPlay("zd6");
}
target.gotoAndPlay(2);
shootSound.start(0, 1);
nscore = 0;
} else {
removeMovieClip(reloadtext);
board.bullet.gotoAndPlay("zd7");
zidan = 6;
}
}
}
};
setGame();
Frame 5
function setGame() {
Pause = false;
shoots = 0;
combos = 1;
hits = 0;
dep = 1;
time = 180;
point = 200000 /* 0x030D40 */;
st = "3:00";
zidan = 6;
backSound = new Sound();
backSound.attachSound("19.mp3");
backSound.start(0, 99);
shootSound = new Sound();
shootSound.attachSound("shoot.mp3");
aimSound = new Sound();
aimSound.attachSound("sound9.mp3");
enemyArray = new Array();
setDepths();
enemytimer = setInterval(setEnemy, 2000);
timer = setInterval(setTimer, 1000);
}
function setTimer() {
if (!Pause) {
time--;
if ((time % 60) < 10) {
second = "0" + (time % 60);
} else {
second = time % 60;
}
st = (Math.floor(time / 60) + ":") + second;
if (time <= 0) {
removeMovieClip(reloadtext);
backSound.stop();
i = 0;
while (i < enemyArray.length) {
removeMovieClip(enemyArray[i]);
i++;
}
delete target.onEnterFrame;
delete onMouseDown;
clearInterval(enemytimer);
clearInterval(timer);
checkLevel();
}
}
}
function checkLevel() {
if (score > point) {
GameOver();
} else {
GameOver();
}
}
function clearMc() {
removeMovieClip(l1);
removeMovieClip(l2);
removeMovieClip(l3);
removeMovieClip(l4);
removeMovieClip(l5);
}
function nextLevel() {
lc._x = 116;
lc.gotoAndPlay(2);
}
function GameOver() {
GameOverMc._x = 135;
}
function setDepths() {
lc.swapDepths(115000);
GameOverMc.swapDepths(115001);
target.swapDepths(110000);
board.swapDepths(100000);
l1.swapDepths(60000);
l2.swapDepths(50000);
l3.swapDepths(30000);
l4.swapDepths(40000);
l5.swapDepths(20000);
i = 1;
while (i < 6) {
_root["l" + i].useHandCursor = false;
_root["l" + i].onPress = function () {
};
i++;
}
}
function setEnemy() {
if (!Pause) {
clearInterval(enemytimer);
i = random(6) + 1;
attachMovie((("s" + level) + "-") + i, "enemy" + dep, dep);
eval ("enemy" + dep).va = i;
enemyArray.push(eval ("enemy" + dep));
if (eval ("enemy" + dep).va == 1) {
eval ("enemy" + dep)._y = 400;
eval ("enemy" + dep).swapDepths(50000 + dep);
} else if (eval ("enemy" + dep).va == 2) {
eval ("enemy" + dep)._y = 230;
eval ("enemy" + dep).swapDepths(40000 + dep);
} else if (eval ("enemy" + dep).va == 3) {
eval ("enemy" + dep)._y = 200;
eval ("enemy" + dep).swapDepths(20000 + dep);
} else if (eval ("enemy" + dep).va == 4) {
eval ("enemy" + dep)._y = 250;
eval ("enemy" + dep).swapDepths(20000 + dep);
} else if (eval ("enemy" + dep).va == 5) {
eval ("enemy" + dep)._y = 10;
eval ("enemy" + dep).swapDepths(30000 + dep);
} else if (eval ("enemy" + dep).va == 6) {
eval ("enemy" + dep)._y = 40 + random(20);
eval ("enemy" + dep).swapDepths(20000 + dep);
}
eval ("enemy" + dep)._x = (random(2) ? -50 : 700);
if (eval ("enemy" + dep)._x == -50) {
eval ("enemy" + dep)._xscale = 100;
eval ("enemy" + dep).xspeed = random(6) + 6;
} else {
eval ("enemy" + dep)._xscale = -100;
eval ("enemy" + dep).xspeed = -(random(6) + 6);
}
eval ("enemy" + dep).useHandCursor = false;
eval ("enemy" + dep).vb = random(5);
if (eval ("enemy" + dep).vb == 1) {
eval ("enemy" + dep).mc.mc.flag.gotoAndStop(2);
}
eval ("enemy" + dep).onEnterFrame = function () {
if (!Pause) {
this._x = this._x + this.xspeed;
if ((this._x < -100) || (this._x > 750)) {
if (this.vb != 1) {
combos = 0;
}
removeMovieClip(this);
}
}
};
eval ("enemy" + dep).onPress = function () {
if (!Pause) {
if ((this._currentframe == 1) && (zidan != 6)) {
delete this.onEnterFrame;
if (this.mc.mc.aim.hitTest(_xmouse, _ymouse, true)) {
if (this.vb != 1) {
_root["cc" + shoots] = 1;
if (_root["cc" + (shoots - 1)] == 1) {
combos++;
} else {
combos = 1;
}
nscore = this.score * 2;
if (combos >= 2) {
nscore = nscore * combos;
attachMovie("combo", "combo", 150000);
combo._x = 320;
combo._y = 240;
}
} else {
nscore = this.score * 2;
}
hits++;
aimSound.start(0, 1);
} else {
hits++;
nscore = this.score;
}
if (this.vb == 1) {
nscore = -nscore;
}
this.gotoAndPlay("die");
setScore();
}
}
};
dep++;
enemytimer = setInterval(setEnemy, 1500 + random(1000));
}
}
function setScore() {
score = score + nscore;
attachMovie("showScore", "ss" + dep, 120000 + dep);
if (nscore < 0) {
eval ("ss" + dep).tt.textColor = 16711680 /* 0xFF0000 */;
}
eval ("ss" + dep)._x = _xmouse;
eval ("ss" + dep)._y = _ymouse;
eval ("ss" + dep).onEnterFrame = function () {
this._y = this._y - 3;
this._alpha = this._alpha - 4;
if (this._alpha <= 0) {
removeMovieClip(this);
}
};
dep++;
}
target.onEnterFrame = function () {
if (!Pause) {
target._x = _xmouse;
target._y = _ymouse;
}
};
onMouseDown = function () {
if (((!board.pausebtn.hitTest(_xmouse, _ymouse, true)) && (!board.menubtn.hitTest(_xmouse, _ymouse, true))) && (!board.SoundBtn.hitTest(_xmouse, _ymouse, true))) {
if (!Pause) {
if (zidan > 0) {
shoots++;
zidan--;
if (zidan == 5) {
board.bullet.gotoAndPlay("zd1");
} else if (zidan == 4) {
board.bullet.gotoAndPlay("zd2");
} else if (zidan == 3) {
board.bullet.gotoAndPlay("zd3");
} else if (zidan == 2) {
board.bullet.gotoAndPlay("zd4");
} else if (zidan == 1) {
board.bullet.gotoAndPlay("zd5");
} else if (zidan == 0) {
attachMovie("reloadtext", "reloadtext", 130000);
reloadtext.onEnterFrame = function () {
this._x = _xmouse;
this._y = _ymouse + 30;
};
board.bullet.gotoAndPlay("zd6");
}
target.gotoAndPlay(2);
shootSound.start(0, 1);
nscore = 0;
} else {
removeMovieClip(reloadtext);
board.bullet.gotoAndPlay("zd7");
zidan = 6;
}
}
}
};
setGame();
Symbol 8 MovieClip Frame 1
stop();
Symbol 14 MovieClip [s1-1] Frame 1
stop();
score = 200;
Symbol 14 MovieClip [s1-1] Frame 12
removeMovieClip(this);
Symbol 18 MovieClip [s1-2] Frame 1
stop();
score = 150;
Symbol 18 MovieClip [s1-2] Frame 12
removeMovieClip(this);
Symbol 22 MovieClip [s1-3] Frame 1
stop();
score = 200;
Symbol 22 MovieClip [s1-3] Frame 12
removeMovieClip(this);
Symbol 26 MovieClip [s1-4] Frame 1
stop();
score = 250;
Symbol 26 MovieClip [s1-4] Frame 12
removeMovieClip(this);
Symbol 30 MovieClip [s1-5] Frame 1
stop();
score = 150;
Symbol 30 MovieClip [s1-5] Frame 12
removeMovieClip(this);
Symbol 32 MovieClip Frame 1
stop();
Symbol 33 MovieClip Frame 24
gotoAndPlay (1);
Symbol 36 MovieClip [s1-6] Frame 1
stop();
score = 150;
Symbol 36 MovieClip [s1-6] Frame 11
removeMovieClip(this);
Symbol 40 MovieClip [s1-7] Frame 1
stop();
score = 200;
Symbol 40 MovieClip [s1-7] Frame 2
Symbol 40 MovieClip [s1-7] Frame 11
removeMovieClip(this);
Symbol 44 MovieClip [s2-1] Frame 1
stop();
score = 300;
Symbol 44 MovieClip [s2-1] Frame 12
removeMovieClip(this);
Symbol 48 MovieClip [s2-2] Frame 1
stop();
score = 350;
Symbol 48 MovieClip [s2-2] Frame 11
removeMovieClip(this);
Symbol 52 MovieClip [s2-3] Frame 1
stop();
score = 400;
Symbol 52 MovieClip [s2-3] Frame 11
removeMovieClip(this);
Symbol 56 MovieClip [s2-4] Frame 1
stop();
score = 250;
Symbol 56 MovieClip [s2-4] Frame 12
removeMovieClip(this);
Symbol 60 MovieClip [s2-5] Frame 1
stop();
score = 300;
Symbol 60 MovieClip [s2-5] Frame 11
removeMovieClip(this);
Symbol 64 MovieClip [s2-6] Frame 1
stop();
score = 250;
Symbol 64 MovieClip [s2-6] Frame 11
removeMovieClip(this);
Symbol 68 MovieClip [s2-7] Frame 1
stop();
score = 300;
Symbol 68 MovieClip [s2-7] Frame 11
removeMovieClip(this);
Symbol 72 MovieClip [s3-1] Frame 1
stop();
score = 350;
Symbol 72 MovieClip [s3-1] Frame 11
removeMovieClip(this);
Symbol 76 MovieClip [s3-2] Frame 1
stop();
score = 350;
Symbol 76 MovieClip [s3-2] Frame 11
removeMovieClip(this);
Symbol 80 MovieClip [s3-3] Frame 1
stop();
score = 400;
Symbol 80 MovieClip [s3-3] Frame 11
removeMovieClip(this);
Symbol 84 MovieClip [s3-4] Frame 1
stop();
score = 450;
Symbol 84 MovieClip [s3-4] Frame 11
removeMovieClip(this);
Symbol 88 MovieClip [s3-5] Frame 1
stop();
score = 400;
Symbol 88 MovieClip [s3-5] Frame 11
removeMovieClip(this);
Symbol 92 MovieClip [s3-6] Frame 1
stop();
score = 500;
Symbol 92 MovieClip [s3-6] Frame 11
removeMovieClip(this);
Symbol 100 MovieClip [combo] Frame 1
tt.text = _root.combos + " x Combo";
Symbol 100 MovieClip [combo] Frame 22
removeMovieClip(this);
Symbol 120 MovieClip Frame 80
stop();
Symbol 124 MovieClip Frame 107
stop();
Symbol 147 Button
on (release) {
msound.stop();
_root.nextFrame();
}
Symbol 160 MovieClip Frame 1
msound = new Sound();
msound.attachSound("f8i815.MP3");
msound.start(0, 99);
Symbol 160 MovieClip Frame 174
msound.stop();
_root.nextFrame();
Symbol 161 MovieClip Frame 1
stop();
Symbol 161 MovieClip Frame 2
stop();
Symbol 175 Button
on (release) {
_root.gotoAndStop("level1");
}
Symbol 176 Button
on (release) {
_root.help._visible = true;
_root.mv.b1.enabled = false;
_root.mv.b2.enabled = false;
_root.mv.b3.enabled = false;
_root.mv.b4.enabled = false;
}
Symbol 178 Button
on (release) {
getURL ("http://" + _root.url, "_blank");
}
Symbol 180 Button
on (release) {
getURL (("http://" + _root.url) + "/highscore.php", "_blank");
}
Symbol 184 MovieClip Frame 104
stop();
Symbol 186 Button
on (release) {
_root.mv.b1.enabled = true;
_root.mv.b2.enabled = true;
_root.mv.b3.enabled = true;
_root.mv.b4.enabled = true;
_root.help._visible = false;
}
Symbol 228 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 7
stop();
Symbol 228 MovieClip Frame 11
stop();
Symbol 228 MovieClip Frame 15
stop();
Symbol 228 MovieClip Frame 19
stop();
Symbol 228 MovieClip Frame 23
stop();
Symbol 228 MovieClip Frame 27
stop();
Symbol 242 MovieClip Frame 1
stop();
Symbol 246 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 1
var _sound = new Sound(_root);
if (_sound.getVolume() == 100) {
SoundBtn.gotoAndStop(1);
} else {
SoundBtn.gotoAndStop(2);
}
SoundBtn.onRelease = function () {
if (this._currentframe == 1) {
_sound.setVolume(0);
this.gotoAndStop(2);
} else {
_sound.setVolume(100);
this.gotoAndStop(1);
}
};
pausebtn.onRelease = function () {
if (!_root.Pause) {
_root.Pause = true;
} else {
_root.Pause = false;
}
};
menubtn.onRelease = function () {
_root.backMenu();
};
Symbol 255 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 60
_root.level++;
this._x = -1000;
_root.clearMc();
_root.gotoAndStop("level" + _root.level);
Symbol 266 Button
on (release) {
_root.submitScore();
}
Symbol 267 Button
on (release) {
_root.clearMc();
removeMovieClip(_root.board);
removeMovieClip(_root.target);
_root.gotoAndStop("start");
removeMovieClip(_root.GameOverMc);
}