Frame 1
function goNext() {
_root.prevLoader.play();
}
var my_cm = new ContextMenu();
my_cm.hideBuiltInItems();
_root.menu = my_cm;
fscommand ("showmenu", "fasle");
MochiAd.showPreGameAd({ad_finished:goNext, id:"07e4e4baf840356d", res:"860x450", background:6845841, color:788068, outline:12695210, no_bg:false});
Frame 2
stop();
bgSound_mc.gotoAndPlay(1);
help_mc._visible = false;
music_mc._visible = false;
var GAMENAME = "primal_defence";
Help_btn.onRelease = function () {
help_mc._visible = true;
};
Start_btn.onRelease = function () {
_root.gotoAndStop(3);
};
download_btn.onRelease = function () {
getURL ("http://www.ifungames.com/", "_blank");
};
moreGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
addGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
logo_mc.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
copyring_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com", "_blank");
};
Credits_btn.onRelease = function () {
music_mc._visible = true;
};
music_mc.back_btn.onRelease = function () {
music_mc._visible = false;
};
viewHighScores_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=" + GAMENAME, "_blank");
};
var rePlaylevelNum;
Frame 3
function initFace() {
if (rePlaylevelNum != undefined) {
levelNum = rePlaylevelNum;
}
music_btn._visible = (unSound_btn._visible = false);
sound_btn._visible = (unmusic_btn._visible = true);
peoInfo_mc.score_txt.text = scoreNum;
gameBg_mc.gotoAndStop(levelNum);
earth_mc.gotoAndStop(levelNum);
plane_mc._visible = true;
event_mc._visible = true;
toMenu_mc._visible = false;
qPanel_mc._visible = false;
music_mc._visible = false;
level_txt.text = levelNum;
plane_mc._visible = true;
level_mc._visible = false;
lose_mc._visible = false;
peo_mc._x = playerStarts[levelNum - 1][0] - 30;
peo_mc._y = playerStarts[levelNum - 1][1] - 32;
m = 1;
while (m <= 5) {
_root[("w" + m) + "_btn"].loading_mc._visible = true;
_root[("w" + m) + "_btn"].loading1_mc._visible = false;
m++;
}
initWeap();
}
function getSpeed(startX, startY, endX, endY) {
speedArray = [];
var _local3 = endX - startX;
var _local2 = endY - startY;
var _local5 = (0.25 * g) * g;
var _local4 = ((-_local2) * g) - (v0 * v0);
var _local7 = (_local3 * _local3) + (_local2 * _local2);
var _local6 = (_local4 * _local4) - ((4 * _local5) * _local7);
if (_local6 < 0) {
trace("\u56E0\u4E3A\u76EE\u6807\u592A\u9AD8\u6216\u592A\u8FDC\u65E0\u6CD5\u6253\u5230.");
return(false);
}
var _local1 = Math.sqrt((-_local4) - Math.sqrt(_local6)) / (2 * _local5);
wea_mc.vx = _local3 / _local1;
wea_mc.vy = (_local2 - (((0.5 * g) * _local1) * _local1)) / _local1;
speedArray.push(_local3 / _local1);
speedArray.push((_local2 - (((0.5 * g) * _local1) * _local1)) / _local1);
return(speedArray);
}
function fireFun() {
if (fireFlag) {
fire_sound.playSound();
peo_mc.peo_mc.shang_mc.gotoAndPlay(25);
fireFlag = false;
if (!medicineFlag) {
weaponChoose.loading_mc.gotoAndPlay(1);
} else {
weaponChoose.loading1_mc.gotoAndPlay(1);
}
speeds = getSpeed(playerStarts[levelNum - 1][0], playerStarts[levelNum - 1][1], _root._xmouse, _root._ymouse);
duplicateMovieClip (weapon_mc, ("weap" + nameNum) + "_mc", this.getNextHighestDepth());
_root[("weap" + nameNum) + "_mc"]._x = playerStarts[levelNum - 1][0];
_root[("weap" + nameNum) + "_mc"]._y = playerStarts[levelNum - 1][1];
_root[("weap" + nameNum) + "_mc"].vx = speeds[0];
_root[("weap" + nameNum) + "_mc"].vy = speeds[1];
_root[("weap" + nameNum) + "_mc"].ids = nameNum;
_root[("weap" + nameNum) + "_mc"].onEnterFrame = function () {
this._x = this._x + this.vx;
this._y = this._y + (((this.vy * 2) + _root.g) / 2);
this._rotation = (Math.atan2(this._y - this.myPoint.y, this._x - this.myPoint.x) * 180) / Math.PI;
this.myPoint.x = this._x;
this.myPoint.y = this._y;
this.vy = this.vy + g;
this.nowH = weaHittest(this._x, this._y);
if ((this._y > 450) || (this.nowH >= 0)) {
delete this.onEnterFrame;
if (this.nowH > 0) {
if ((this.id == 5) || (this.id == 2)) {
this.vx = this._x - _root[("enemy" + this.nowH) + "_mc"]._x;
this.vy = this._y - _root[("enemy" + this.nowH) + "_mc"]._y;
if ((Math.abs(this.vy) / _root[("enemy" + this.nowH) + "_mc"]._height) < 0.65) {
randscore = Math.round(-this.vy);
score_mc._x = _root[("enemy" + this.nowH) + "_mc"]._x;
score_mc._y = _root[("enemy" + this.nowH) + "_mc"]._y - _root[("enemy" + this.nowH) + "_mc"]._height;
score_mc.score_mc.score_txt.text = weaFitNum + randscore;
score_mc.gotoAndPlay(2);
setScore(weaFitNum + randscore);
_root[("enemy" + this.nowH) + "_mc"].weapers.push(this.ids);
_root[("enemy" + this.nowH) + "_mc"].disBlood(weaFitNum + randscore);
} else {
randscore = Math.round((-this.vy) + (_root[("enemy" + this.nowH) + "_mc"].bloodNum * 0.75));
score_mc._x = _root[("enemy" + this.nowH) + "_mc"]._x;
score_mc._y = _root[("enemy" + this.nowH) + "_mc"]._y - _root[("enemy" + this.nowH) + "_mc"]._height;
score_mc.score_mc.score_txt.text = randscore;
score_mc.gotoAndPlay(2);
setScore(randscore);
_root[("enemy" + this.nowH) + "_mc"].weapers.push(this.ids);
_root[("enemy" + this.nowH) + "_mc"].disBlood(randscore);
}
this.gotoAndStop(2);
} else {
this.vx = this._x - _root[("enemy" + this.nowH) + "_mc"]._x;
this.vy = this._y - _root[("enemy" + this.nowH) + "_mc"]._y;
if ((Math.abs(this.vy) / _root[("enemy" + this.nowH) + "_mc"]._height) < 0.65) {
randscore = Math.round(-this.vy);
score_mc._x = _root[("enemy" + this.nowH) + "_mc"]._x;
score_mc._y = _root[("enemy" + this.nowH) + "_mc"]._y - _root[("enemy" + this.nowH) + "_mc"]._height;
score_mc.score_mc.score_txt.text = weaFitNum + randscore;
score_mc.gotoAndPlay(2);
setScore(weaFitNum + randscore);
_root[("enemy" + this.nowH) + "_mc"].weapers.push(this.ids);
_root[("enemy" + this.nowH) + "_mc"].disBlood(weaFitNum + randscore);
} else {
randscore = Math.round((-this.vy) + (_root[("enemy" + this.nowH) + "_mc"].bloodNum * 0.75));
score_mc._x = _root[("enemy" + this.nowH) + "_mc"]._x;
score_mc._y = _root[("enemy" + this.nowH) + "_mc"]._y - _root[("enemy" + this.nowH) + "_mc"]._height;
score_mc.score_mc.score_txt.text = randscore;
score_mc.gotoAndPlay(2);
setScore(randscore);
_root[("enemy" + this.nowH) + "_mc"].weapers.push(this.ids);
_root[("enemy" + this.nowH) + "_mc"].disBlood(randscore);
}
this.onEnterFrame = function () {
this._x = _root[("enemy" + this.nowH) + "_mc"]._x + this.vx;
this._y = _root[("enemy" + this.nowH) + "_mc"]._y + this.vy;
};
this.hitFun();
}
} else {
removeMovieClip(this);
}
}
};
nameNum++;
}
}
function weaHittest(xNum, yNum) {
var _local2 = -1;
if (earth_mc.hitTest(xNum, yNum, true)) {
_local2 = 0;
return(_local2);
}
i = 1;
while (i < enemyNum) {
if (_root[("enemy" + i) + "_mc"].enemy_mc.hitTest(xNum, yNum, true)) {
_local2 = i;
return(_local2);
}
i++;
}
if (blood_mc != undefined) {
if (blood_mc.hitTest(xNum, yNum, true)) {
addBlood();
_local2 = 0;
return(_local2);
}
}
if (medicine_mc != undefined) {
if (medicine_mc.hitTest(xNum, yNum, true)) {
medicineFlag = true;
addSpeed();
_local2 = 0;
return(_local2);
}
}
return(_local2);
}
function addSpeed() {
score_mc._x = medicine_mc._x;
score_mc._y = medicine_mc._y;
score_mc.score_mc.score_txt.text = 100;
score_mc.gotoAndPlay(2);
medicine_mc.gotoAndPlay(110);
medicineFlag = true;
m = 1;
while (m <= 5) {
_root[("w" + m) + "_btn"].loading_mc._visible = false;
_root[("w" + m) + "_btn"].loading1_mc._visible = true;
m++;
}
}
function addBlood() {
score_mc._x = blood_mc._x;
score_mc._y = blood_mc._y;
score_mc.score_mc.score_txt.text = 100;
score_mc.gotoAndPlay(2);
blood_mc.gotoAndPlay(100);
setScore(100);
peoBlood = peoBlood + 150;
if (peoBlood > 1500) {
peoBlood = 1500;
}
peoInfo_mc.peoBlood_mc._width = (peoBlood / 1500) * 106;
}
function chooseWea() {
i = 1;
while (i <= 5) {
this[("w" + i) + "_btn"].id = i;
this[("w" + i) + "_btn"].onRelease = function () {
seletedFun(this);
};
i++;
}
}
function seletedFun(weaId_mc) {
weaFitNum = weaFits[weaId_mc.id - 1];
weaponChoose = weaId_mc;
weapon_mc = _root[("weapon" + weaId_mc.id) + "_mc"];
j = 1;
while (j <= 5) {
this[("w" + j) + "_btn"].sele_mc._visible = false;
j++;
}
this[("w" + weaId_mc.id) + "_btn"].sele_mc._visible = true;
}
function enemyMove() {
xNum = (_root._xmouse - playerStarts[levelNum][0]) - 10;
yNum = (_root._ymouse - playerStarts[levelNum][1]) + 10;
rotationNum = (Math.atan2(yNum, xNum) * 180) / Math.PI;
if ((rotationNum > -50) && (rotationNum < 20)) {
peo_mc.peo_mc.shang_mc._rotation = rotationNum;
}
if (judgeSuc()) {
toNextLevel();
}
if ((stepNum % (enemySpeed * 5)) == 0) {
if (dupFlag) {
dupFlag = false;
typeNum = levelEnemys[levelNum - 1][nowEnemylabel];
groupNum = levelEnemys[levelNum - 1][nowEnemylabel + 1];
nowEnemylabel = nowEnemylabel + 2;
nowGroupNum = 0;
}
if (typeNum < 10) {
en_mc = this["enemy" + typeNum];
duplicateMovieClip (en_mc, ("enemy" + enemyNum) + "_mc", this.getNextHighestDepth());
plane_mc.swapDepths(this.getNextHighestDepth());
this[("enemy" + enemyNum) + "_mc"].id = enemyNum;
this[("enemy" + enemyNum) + "_mc"].typeNum = typeNum;
if (typeNum < 8) {
this[("enemy" + enemyNum) + "_mc"].nowStep = 0;
this[("enemy" + enemyNum) + "_mc"].stepNum = 1;
this[("enemy" + enemyNum) + "_mc"].downLabel = 0;
} else {
this[("enemy" + enemyNum) + "_mc"].angle = 0;
this[("enemy" + enemyNum) + "_mc"].centerY = randRange(125, 200);
this[("enemy" + enemyNum) + "_mc"].range = randRange(30, 60);
this[("enemy" + enemyNum) + "_mc"].endX = randRange(180, 300);
}
enemyNum++;
}
nowGroupNum++;
if (nowGroupNum == groupNum) {
dupFlag = true;
}
}
i = 1;
while (i < enemyNum) {
if (i != nowFit) {
enemy_mc = _root[("enemy" + i) + "_mc"];
if (enemy_mc.typeNum < 8) {
if (enemy_mc.stepNum == 1) {
enemy_mc._x = MapData[levelNum - 1][0][enemy_mc.downLabel];
enemy_mc._y = MapData[levelNum - 1][1][enemy_mc.downLabel] + enemyStarts[levelNum - 1];
enemy_mc.vy = (MapData[levelNum - 1][1][enemy_mc.downLabel + 1] - MapData[levelNum - 1][1][enemy_mc.downLabel]) / 10;
if (enemy_mc.downLabel < MapData[levelNum - 1][0].length) {
enemy_mc.downLabel++;
enemy_mc.stepNum++;
} else {
enemy_mc.stepNum = 1;
enemy_mc.gotoAndStop(2);
}
} else {
enemy_mc._x = enemy_mc._x - (5 / ((10 - enemy_mc.typeNum) + ((10 - enemy_mc.typeNum) / 8)));
enemy_mc._y = enemy_mc._y + enemy_mc.vy;
enemy_mc.stepNum++;
if (enemy_mc.stepNum == ((10 - enemy_mc.typeNum) + 1)) {
enemy_mc.stepNum = 1;
}
}
} else if (enemy_mc._x < enemy_mc.endX) {
if ((((enemy_mc._x - 60) / 20) > 1) && (((enemy_mc._y + enemy_mc.vy) / 20) > 1)) {
enemy_mc._x = enemy_mc._x - (((enemy_mc._x - peo_mc._x) + 30) / 20);
enemy_mc._y = enemy_mc._y + (((peo_mc._y - enemy_mc.vy) - enemy_mc._y) / 20);
} else {
enemy_mc.gotoAndStop(2);
}
} else {
enemy_mc._x = enemy_mc._x - 2.5;
enemy_mc._y = enemy_mc.centerY + ((Math.sin(enemy_mc.angle) * enemy_mc.range) / 2);
enemy_mc.angle = enemy_mc.angle + 0.1;
}
}
i++;
}
stepNum++;
if ((stepNum % 30) == 0) {
timeNum++;
if (randRange(1, 60) == 20) {
if (randRange(1, 2) == 2) {
duplicateMovieClip (blood, "blood_mc", this.getNextHighestDepth());
blood_mc._x = randRange(200, 600);
blood_mc._y = randRange(70, 220);
blood_mc.gotoAndPlay(3);
} else {
duplicateMovieClip (medicine, "medicine_mc", this.getNextHighestDepth());
medicine_mc._x = randRange(200, 600);
medicine_mc._y = randRange(70, 220);
medicine_mc.gotoAndPlay(3);
}
}
if (medicineFlag) {
medTimer++;
if (medTimer > 20) {
medicineFlag = false;
m = 1;
while (m <= 5) {
_root[("w" + m) + "_btn"].loading_mc._visible = true;
_root[("w" + m) + "_btn"].loading1_mc._visible = false;
m++;
}
}
}
}
mouseStatus();
}
function sewpIndex() {
plane_mc.swapDepths(9999);
gameUp_mc.swapDepths(9992);
peoInfo_mc.swapDepths(9995);
w1_btn.swapDepths(9996);
w2_btn.swapDepths(9997);
w3_btn.swapDepths(9998);
w4_btn.swapDepths(9993);
w5_btn.swapDepths(9994);
}
function judgeSuc() {
if (typeNum != 11) {
return(false);
}
m = 1;
while (m < enemyNum) {
if (_root[("enemy" + m) + "_mc"] != undefined) {
return(false);
}
m++;
}
return(true);
}
function setScore(sNum) {
scoreNum = scoreNum + sNum;
peoInfo_mc.score_txt.text = scoreNum;
}
function fitghFun(fNum) {
if (dieFlag) {
peoBlood = peoBlood - fNum;
peoInfo_mc.peoBlood_mc._width = (peoBlood / 1500) * 106;
peo_mc.gotoAndStop(2);
if (peoBlood <= 0) {
dieFlag = false;
peoInfo_mc.peoBlood_mc._width = 0;
peo_mc.gotoAndStop(4);
}
}
}
function loseFun() {
removeMovieClip(blood_mc);
removeMovieClip(medicine_mc);
delete this.onEnterFrame;
Mouse.show();
plane_mc._visible = false;
event_mc._visible = false;
lose_mc.sco_txt.text = scoreNum;
lose_mc.kill_txt.text = killNum;
j = 1;
while (j < enemyNum) {
removeMovieClip(_root[("enemy" + j) + "_mc"]);
j++;
}
j = 0;
while (j < nameNum) {
removeMovieClip(_root[("weap" + j) + "_mc"]);
j++;
}
}
function toNextLevel() {
delete this.onEnterFrame;
Mouse.show();
removeMovieClip(blood_mc);
removeMovieClip(medicine_mc);
if (levelNum == 10) {
sucOver();
return(undefined);
}
plane_mc._visible = false;
event_mc._visible = false;
level_mc._visible = true;
level_mc.sco_txt.text = scoreNum;
level_mc.kill_txt.text = killNum;
j = 0;
while (j < nameNum) {
removeMovieClip(_root[("weap" + j) + "_mc"]);
j++;
}
}
function initValue(flag) {
killAllNum = killAllNum + killNum;
if (flag) {
level_mc._visible = false;
levelNum++;
if (levelNum == 11) {
sucOver();
return(undefined);
}
level_txt.text = levelNum;
gameBg_mc.gotoAndStop(levelNum);
initWeap();
} else {
lifeNum--;
life_mc.gotoAndStop(4 - lifeNum);
lose_mc._visible = false;
peo_mc.gotoAndStop(1);
}
nameNum = 0;
weapon_mc = weapon1_mc;
stepNum = 0;
nowEnemylabel = 0;
nowGroupNum = 0;
typeNum = 0;
groupNum = 0;
dupFlag = true;
enemyNum = 1;
timeNum = 0;
fireFlag = true;
nowFit = -1;
weaponChoose = w1_btn;
weaFitNum = weaFitNum1;
killNum = 0;
dieFlag = true;
peoBlood = 1500;
peoInfo_mc.peoBlood_mc._width = 106;
bloodFlag = true;
bloodTime = 75 + randRange(1, 45);
event_mc._visible = true;
Mouse.hide();
plane_mc._visible = true;
medicineFlag = false;
medTimer = 0;
initFace();
earth_mc.gotoAndStop(levelNum);
soundFlag = true;
if (lifeNum > 0) {
_root.onEnterFrame = function () {
if (pauseFlag) {
enemyMove();
}
};
} else {
_root.gotoAndStop(4);
}
}
function mouseStatus() {
plane_mc._x = _root._xmouse;
plane_mc._y = _root._ymouse;
}
function randRange(min, max) {
var _local1 = Math.floor(Math.random() * ((max - min) + 1)) + min;
return(_local1);
}
function initWeap() {
i = 1;
while (i <= 5) {
this[("w" + i) + "_btn"]._visible = false;
this[("w" + i) + "_btn"].sele_mc._visible = false;
i++;
}
i = 1;
while (i <= levelNum) {
this[("w" + i) + "_btn"]._visible = true;
i++;
}
w1_btn.sele_mc._visible = true;
}
function sucOver() {
overFlag = true;
_root.gotoAndStop(4);
}
function g_t_l(_array, _mc) {
var _local1 = {};
_local1.x = _array[0];
_local1.y = _array[1];
if (_mc == undefined) {
var _local3 = map_mc;
} else {
var _local3 = _mc;
}
_local3.globalToLocal(_local1);
var _local2 = [];
_local2[0] = _local1.x;
_local2[1] = _local1.y;
return(_local2);
}
function stopPlay() {
Mouse.show();
pauseFlag = false;
event_mc._visible = false;
i = 1;
while (i < enemyNum) {
_root[("enemy" + i) + "_mc"].peo_mc.stop();
i++;
}
}
function continuePlay() {
Mouse.hide();
pauseFlag = true;
event_mc._visible = true;
i = 1;
while (i < enemyNum) {
_root[("enemy" + i) + "_mc"].peo_mc.play();
i++;
}
}
stop();
var playerStarts = [[93, 298], [93, 245], [93, 305], [93, 295], [93, 300], [93, 260], [93, 310], [93, 270], [93, 290], [93, 270]];
var enemyStarts = [311, 247, 246, 250, 216, 200, 244, 212, 238, 228];
var leaveEnemys = [[9, 9, 10, 3, 9, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100], [1, 1, 11, 100]];
var levelEnemys = [[1, 2, 2, 2, 10, 2, 3, 2, 2, 2, 1, 3, 10, 8, 3, 2, 2, 1, 1, 2, 10, 10, 1, 3, 2, 2, 11, 100], [2, 2, 3, 3, 10, 2, 2, 2, 3, 2, 1, 2, 8, 1, 10, 8, 2, 3, 1, 3, 4, 2, 10, 2, 2, 4, 10, 4, 2, 2, 5, 1, 11, 100], [3, 3, 4, 2, 10, 8, 1, 2, 3, 2, 2, 2, 1, 1, 10, 8, 1, 3, 3, 2, 2, 3, 5, 1, 6, 1, 10, 5, 4, 2, 3, 3, 2, 2, 1, 1, 11, 100], [5, 1, 4, 3, 3, 1, 10, 4, 4, 2, 3, 2, 9, 3, 7, 1, 10, 7, 4, 3, 7, 1, 3, 3, 1, 3, 1, 1, 10, 8, 5, 1, 4, 2, 1, 2, 6, 1, 11, 100], [4, 3, 6, 1, 2, 2, 10, 8, 5, 2, 4, 2, 3, 2, 1, 2, 10, 10, 6, 2, 2, 2, 8, 2, 9, 2, 10, 5, 5, 3, 3, 2, 6, 2, 11, 100], [5, 2, 4, 3, 10, 5, 1, 2, 5, 1, 2, 4, 6, 2, 4, 2, 7, 1, 10, 15, 4, 3, 7, 1, 10, 12, 7, 1, 6, 2, 5, 3, 11, 100], [3, 4, 5, 3, 10, 8, 8, 2, 7, 1, 5, 2, 2, 4, 6, 1, 9, 4, 10, 20, 8, 2, 4, 3, 7, 2, 10, 15, 1, 5, 2, 4, 5, 2, 7, 1, 11, 100], [1, 3, 2, 2, 4, 1, 5, 1, 6, 1, 8, 1, 10, 8, 8, 3, 9, 3, 5, 2, 6, 2, 10, 20, 8, 5, 4, 3, 3, 3, 5, 1, 9, 5, 11, 100], [8, 3, 9, 3, 5, 2, 7, 1, 10, 12, 2, 5, 3, 5, 5, 1, 7, 2, 10, 15, 4, 5, 3, 2, 7, 2, 10, 20, 8, 10, 9, 10, 11, 100], [1, 5, 5, 1, 2, 5, 6, 2, 4, 3, 7, 2, 10, 20, 8, 5, 5, 1, 9, 5, 7, 1, 10, 15, 1, 5, 2, 5, 3, 5, 4, 5, 10, 20, 1, 1, 2, 1, 3, 1, 4, 1, 5, 1, 6, 1, 7, 2, 8, 2, 9, 2, 11, 100]];
var timeArray = [180];
var MapData = [[[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110], [0, 0, 0, 0, 0, 1, 1, 1, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 5, 5, 5, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 9, 9, 9, 9, 9, 10, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12, 12, 13, 13, 13, 13, 13, 13, 13, 13, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 14, 13, 13, 13, 13, 13, 13, 13, 13, 13, 12, 12, 12, 12, 12, 12, 12, 11, 11, 11, 11, 11, 11, 10, 10, 10, 10, 10, 9, 9, 9, 9, 9, 8, 8, 8, 8, 7, 7, 7, 7, 6, 6, 6, 6]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [94, 93, 92, 91, 90, 89, 89, 88, 87, 86, 85, 84, 84, 83, 82, 82, 81, 80, 79, 79, 78, 77, 77, 76, 76, 75, 74, 74, 73, 73, 72, 71, 71, 70, 70, 69, 69, 68, 68, 68, 67, 67, 66, 66, 66, 66, 65, 65, 65, 65, 64, 63, 62, 61, 59, 58, 57, 55, 54, 53, 52, 50, 49, 48, 47, 46, 45, 44, 43, 43, 42, 42, 41, 41, 41, 41, 41, 41, 42, 43, 43, 44, 45, 46, 48, 49, 50, 50, 51, 51, 51, 50, 50, 50, 49, 49, 48, 48, 48, 47, 47, 47, 46, 46, 45, 45, 45, 44, 44, 43, 43, 42, 42, 41, 41, 40, 40, 39, 39, 38, 38, 37, 37, 36, 36, 35, 34, 34, 33, 33, 32, 31, 31, 30, 30, 29, 28, 27, 27, 26, 25, 25, 24, 23, 23, 22, 21, 20, 20, 19, 18, 17]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [79, 79, 78, 78, 77, 77, 76, 76, 75, 75, 74, 74, 73, 73, 72, 72, 71, 71, 70, 70, 69, 68, 68, 67, 67, 66, 66, 65, 65, 64, 63, 63, 62, 62, 61, 60, 60, 59, 58, 57, 57, 56, 55, 54, 53, 52, 51, 50, 50, 49, 48, 47, 46, 44, 44, 42, 41, 40, 38, 37, 35, 33, 31, 30, 28, 26, 24, 22, 20, 18, 16, 15, 13, 11, 9, 7, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 6, 8, 9, 12, 14, 16, 19, 22, 24, 27, 30, 32, 35, 38, 40, 42, 44, 45, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 63, 64, 65, 65, 66, 66, 67, 67, 68, 69, 69, 70, 70, 71, 71, 72, 73, 73, 74, 74, 75, 75, 76, 77, 77]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [69, 69, 70, 70, 70, 70, 70, 70, 70, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 71, 70, 70, 70, 70, 70, 70, 70, 69, 69, 69, 69, 69, 68, 68, 68, 68, 67, 67, 67, 67, 67, 66, 66, 66, 66, 65, 64, 63, 62, 60, 58, 55, 52, 49, 45, 41, 36, 30, 23, 19, 16, 14, 12, 12, 12, 12, 13, 14, 15, 17, 19, 20, 22, 23, 24, 25, 26, 26, 26, 26, 26, 26, 26, 25, 24, 23, 22, 21, 19, 18, 16, 14, 12, 10, 7, 5, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 9, 11, 13, 16, 18, 20, 23, 26, 29, 32, 35, 38, 41, 43, 45, 47, 49, 50, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [57, 56, 54, 53, 51, 50, 49, 48, 46, 45, 44, 42, 41, 40, 38, 37, 36, 34, 33, 32, 30, 29, 28, 27, 25, 24, 23, 21, 20, 19, 18, 16, 15, 14, 13, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 3, 4, 5, 6, 8, 9, 11, 14, 16, 19, 22, 25, 27, 30, 33, 35, 38, 41, 43, 46, 48, 51, 53, 55, 58, 60, 62, 64, 66, 68, 69, 71, 73, 74, 76, 77, 79, 80, 82, 83, 84, 85, 86, 87, 89, 89, 90, 91, 92, 93, 93, 94, 94, 95, 95, 96, 96, 96, 97, 97, 97, 98, 98, 99, 99, 99, 100, 100, 100, 101, 101, 101, 102, 102, 102, 103, 103, 103, 103, 104, 104, 104, 104, 105, 105, 105, 105, 106, 106, 106, 106, 107]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [63, 63, 63, 63, 62, 62, 62, 61, 61, 61, 60, 60, 59, 59, 59, 58, 58, 58, 57, 57, 56, 56, 55, 55, 54, 53, 51, 50, 48, 46, 44, 43, 41, 39, 37, 34, 32, 30, 28, 25, 23, 20, 18, 15, 12, 9, 7, 5, 3, 1, 0, 0, 0, 0, 0, 0, 2, 5, 9, 13, 16, 20, 24, 27, 30, 33, 35, 37, 39, 40, 42, 43, 45, 47, 48, 50, 51, 52, 53, 53, 53, 53, 53, 53, 52, 51, 51, 52, 52, 53, 53, 54, 56, 57, 60, 62, 66, 70, 73, 76, 79, 81, 83, 84, 86, 88, 89, 90, 91, 92, 92, 93, 93, 93, 93, 93, 92, 92, 91, 91, 90, 89, 89, 89, 89, 89, 89, 89, 89, 89, 89, 90, 90, 90, 90, 90, 90, 91, 91, 91, 91, 91, 91, 92, 92, 92, 92, 92, 92, 93, 93, 93]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [4, 7, 11, 15, 18, 21, 24, 26, 28, 30, 32, 33, 34, 35, 36, 36, 36, 36, 37, 37, 37, 37, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 38, 37, 37, 35, 32, 30, 27, 24, 22, 20, 18, 17, 16, 16, 16, 16, 16, 16, 17, 17, 18, 19, 20, 21, 22, 24, 25, 26, 27, 27, 27, 27, 26, 24, 22, 20, 17, 14, 11, 8, 5, 3, 2, 1, 0, 0, 0, 0, 0, 0, 1, 3, 4, 6, 7, 9, 11, 12, 14, 16, 18, 21, 23, 25, 28, 30, 31, 32, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 52, 54, 56, 58, 59, 61, 62, 64, 65, 67, 68, 70, 71, 72, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 86, 87, 87, 88, 88, 89]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [105, 105, 104, 104, 104, 104, 104, 104, 103, 103, 103, 102, 102, 101, 100, 100, 99, 98, 97, 97, 96, 95, 94, 93, 92, 91, 89, 88, 87, 86, 84, 83, 81, 80, 79, 77, 75, 72, 70, 67, 64, 62, 60, 57, 56, 54, 53, 53, 52, 52, 52, 52, 53, 53, 54, 55, 55, 56, 57, 57, 58, 58, 59, 59, 59, 58, 56, 54, 51, 49, 46, 44, 42, 40, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 14, 12, 11, 9, 8, 6, 5, 4, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 5, 7, 11, 14, 17, 20, 24, 27, 30, 32, 35, 38, 40, 43, 45, 47, 50, 52, 54, 55, 57, 59, 61, 62, 64, 65, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 77, 78, 79, 79, 80, 81, 81]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [74, 74, 74, 75, 75, 75, 76, 76, 76, 76, 77, 77, 77, 78, 78, 78, 78, 79, 79, 79, 79, 80, 80, 80, 81, 81, 81, 81, 81, 81, 81, 79, 77, 74, 70, 66, 61, 55, 49, 42, 34, 25, 15, 9, 5, 2, 0, 0, 0, 1, 5, 11, 19, 30, 40, 49, 57, 63, 68, 71, 75, 77, 79, 81, 82, 82, 82, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 69, 68, 67, 65, 64, 63, 61, 59, 58, 56, 55, 53, 52, 50, 48, 46, 44, 41, 39, 36, 34, 32, 29, 27, 26, 24, 23, 21, 20, 19, 18, 17, 16, 15, 15, 15, 15, 15, 15, 15, 15, 15, 16, 16, 17, 18, 19, 20, 22, 23, 25, 26, 28, 30, 32, 34, 36, 38, 40, 43, 45, 48, 50, 53, 56, 59, 62, 65, 67, 69, 71, 72, 73]], [[860, 855, 850, 845, 840, 835, 830, 825, 820, 815, 810, 805, 800, 795, 790, 785, 780, 775, 770, 765, 760, 755, 750, 745, 740, 735, 730, 725, 720, 715, 710, 705, 700, 695, 690, 685, 680, 675, 670, 665, 660, 655, 650, 645, 640, 635, 630, 625, 620, 615, 610, 605, 600, 595, 590, 585, 580, 575, 570, 565, 560, 555, 550, 545, 540, 535, 530, 525, 520, 515, 510, 505, 500, 495, 490, 485, 480, 475, 470, 465, 460, 455, 450, 445, 440, 435, 430, 425, 420, 415, 410, 405, 400, 395, 390, 385, 380, 375, 370, 365, 360, 355, 350, 345, 340, 335, 330, 325, 320, 315, 310, 305, 300, 295, 290, 285, 280, 275, 270, 265, 260, 255, 250, 245, 240, 235, 230, 225, 220, 215, 210, 205, 200, 195, 190, 185, 180, 175, 170, 165, 160, 155, 150, 145, 140, 135, 130, 125, 120, 115, 110, 105], [5, 3, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 5, 6, 8, 10, 12, 15, 17, 20, 23, 27, 31, 35, 39, 43, 48, 53, 58, 63, 69, 75, 81, 87, 93, 96, 99, 101, 102, 102, 102, 100, 98, 95, 92, 88, 82, 76, 69, 63, 57, 52, 48, 43, 39, 36, 33, 30, 27, 25, 23, 22, 20, 19, 18, 18, 18, 18, 18, 19, 20, 22, 24, 26, 29, 31, 34, 37, 40, 43, 47, 51, 54, 58, 61, 64, 67, 70, 73, 75, 77, 79, 81, 82, 84, 85, 87, 88, 89, 90, 90, 89, 88, 87, 85, 83, 80, 76, 71, 65, 58, 50, 43, 35, 27, 21, 16, 12, 9, 7, 5, 4, 4, 5, 6, 8, 11, 14, 18, 23, 28, 32, 35, 39, 42, 45, 48, 50, 53, 55, 56, 58, 59, 60, 61, 62, 63, 63]]];
var weaFits = [50, 100, 150, 200, 300];
var weaFitNum1 = 50;
var weaFitNum2 = 100;
var peoBlood = 1500;
var enemySpeed = 10;
var killAllNum = 0;
var nameNum = 0;
var v0 = 40;
var g = 0.5;
var levelNum = 1;
var weapon_mc = weapon1_mc;
var stepNum = 0;
var nowEnemylabel = 0;
var nowGroupNum = 0;
var typeNum = 0;
var groupNum = 0;
var dupFlag = true;
var enemyNum = 1;
var timeNum = 0;
var fireFlag = true;
var nowFit = -1;
var weaponChoose = w1_btn;
var weaFitNum = weaFitNum1;
var scoreNum = 0;
var killNum = 0;
var dieFlag = true;
var enemyArray = [];
var lifeNum = 3;
var overFlag = false;
var bloodFlag = true;
var bloodTime = (75 + randRange(1, 45));
var medicineFlag = false;
var medTimer = 0;
var pauseFlag = true;
var soundFlag = true;
initFace();
event_mc.onRelease = function () {
fireFun();
};
chooseWea();
this.onEnterFrame = function () {
if (pauseFlag) {
enemyMove();
}
};
Mouse.hide();
var key_mc = {};
Key.addListener(key_mc);
key_mc.onKeyDown = function () {
keyId = Key.getCode() - 48;
nowMax = ((levelNum >= 5) ? 5 : (levelNum));
if ((keyId >= 1) && (keyId <= nowMax)) {
seletedFun(_root[("w" + keyId) + "_btn"]);
}
};
unmusic_btn.onRelease = function () {
stopAllSounds();
this._visible = false;
music_btn._visible = true;
};
music_btn.onRelease = function () {
bgSound_mc.gotoAndPlay(1);
this._visible = false;
unmusic_btn._visible = true;
};
qBtn_btn.onRelease = function () {
qPanel_mc._visible = true;
qPanel_mc.swapDepths(9998);
};
qPanel_mc.low_btn.onRelease = function () {
_quality = "LOW";
qPanel_mc.choose_mc._y = this._y;
qPanel_mc._visible = false;
};
qPanel_mc.med_btn.onRelease = function () {
_quality = "MEDIUM";
qPanel_mc.choose_mc._y = this._y;
qPanel_mc._visible = false;
};
qPanel_mc.high_btn.onRelease = function () {
_quality = "HIGH";
qPanel_mc.choose_mc._y = this._y;
qPanel_mc._visible = false;
};
qPanel_mc.best_btn.onRelease = function () {
_quality = "BEST";
qPanel_mc.choose_mc._y = this._y;
qPanel_mc._visible = false;
};
menu_btn.onRelease = function () {
stopPlay();
toMenu_mc._visible = true;
};
toMenu_mc.yes_btn.onRelease = function () {
delete this.onEnterFrame;
Mouse.show();
plane_mc._visible = false;
removeMovieClip(plane_mc);
stopAllSounds();
event_mc._visible = false;
j = 1;
while (j < enemyNum) {
removeMovieClip(_root[("enemy" + j) + "_mc"]);
j++;
}
_root.gotoAndStop(2);
};
toMenu_mc.no_btn.onRelease = function () {
toMenu_mc._visible = false;
continuePlay();
};
unSound_btn.onRelease = function () {
soundFlag = true;
sound_btn._visible = true;
this._visible = false;
};
sound_btn.onRelease = function () {
soundFlag = false;
unSound_btn._visible = true;
this._visible = false;
};
Frame 4
function rePlayFun() {
stopAllSounds();
_root.gotoAndStop(2);
}
function showsubmit(id) {
submit_mc.color2_mc._visible = (submit_mc.color1_mc._visible = false);
submit_mc._visible = true;
submit_mc.score_txt.text = scoreNum;
submit_mc[("color" + id) + "_mc"]._visible = true;
sucFlag = id;
}
Mouse.show();
removeMovieClip(plane_mc);
plane_mc._visible = false;
submit_mc._visible = false;
sucFlag = false;
if (overFlag) {
loseOver_mc._visible = false;
sucOver_mc.sco_txt.text = scoreNum;
sucOver_mc.kill_txt.text = killAllNum;
} else {
sucOver_mc._visible = false;
loseOver_mc.sco_txt.text = scoreNum;
loseOver_mc.kill_txt.text = killAllNum;
}
sucOver_mc.rePlay_mc.onRelease = function () {
rePlaylevelNum = undefined;
rePlayFun();
};
loseOver_mc.rePlay_mc.onRelease = function () {
rePlaylevelNum = levelNum;
stopAllSounds();
_root.gotoAndStop(3);
};
loseOver_mc.menu_btn.onRelease = function () {
rePlayFun();
};
sucOver_mc.menu_btn.onRelease = function () {
rePlayFun();
};
loseOver_mc.submit_btn.onRelease = function () {
showsubmit(2);
};
sucOver_mc.submit_btn.onRelease = function () {
showsubmit(1);
};
submit_mc.close_btn.onRelease = function () {
submit_mc._visible = false;
};
send_var = new LoadVars();
load_var = new LoadVars();
submit_mc.submit_btn.onRelease = function () {
send_var.game = "primal_defence";
send_var.score = scoreNum;
send_var.name = submit_mc.name_txt.text;
if (send_var.name == "") {
submit_mc.noname_mc.gotoAndPlay(2);
return(undefined);
}
send_var.sendAndLoad("http://www.freeworldgroup.com/score/score.asp", load_var, "POST");
submit_mc.xiang_mc._visible = true;
submit_mc.xiang_mc.initFace(sucFlag);
};
load_var.onLoad = function () {
submit_mc.xiang_mc.gotoAndStop(2);
};
Symbol 2 MovieClip [weapon2_mc] Frame 1
var myPoint = (new flash.geom.Point(this._x, this._y));
Symbol 4 MovieClip [weapon1_mc] Frame 1
var myPoint = (new flash.geom.Point(this._x, this._y));
Symbol 18 MovieClip Frame 16
stop();
removeMovieClip(this);
Symbol 19 MovieClip [wea4] Frame 1
function hitFun() {
blood_mc._visible = true;
blood_mc.gotoAndPlay(2);
}
var id = 4;
var myPoint = (new flash.geom.Point(this._x, this._y));
blood_mc._visible = false;
Symbol 30 MovieClip Frame 1
stop();
Symbol 30 MovieClip Frame 11
stop();
Symbol 31 MovieClip [wea3] Frame 1
function hitFun() {
blood_mc._visible = true;
fire_mc._visible = true;
blood_mc.gotoAndPlay(2);
fire_mc.gotoAndPlay(2);
}
stop();
var id = 3;
var myPoint = (new flash.geom.Point(this._x, this._y));
blood_mc._visible = false;
fire_mc._visible = false;
Symbol 33 MovieClip [wea1] Frame 1
function hitFun() {
blood_mc._visible = true;
blood_mc.gotoAndPlay(2);
}
var id = 1;
var myPoint = (new flash.geom.Point(this._x, this._y));
blood_mc._visible = false;
Symbol 35 MovieClip Frame 1
onPress = function () {
getURL ("http://www.freeworldgroup.com");
};
Symbol 38 MovieClip Frame 1
function Replace() {
if (sVariable.length == 0) {
tTxt.text = sTxt;
} else {
tTxt.variable = sVariable;
}
tTxt.autoSize = autoSize;
if (autoSize == "right") {
tTxt._x = -Math.floor(tTxt._width);
} else if (autoSize == "center") {
tTxt._x = -Math.floor(tTxt._width / 2);
} else {
tTxt._x = 0;
}
}
var sTxt;
var bBmp;
var bMultiline;
var autoSize;
var sVariable;
Replace();
this.cacheAsBitmap = bBmp;
Symbol 62 MovieClip Frame 1
_x = (Stage.width / 2);
_y = ((Stage.height / 2) - 30);
Symbol 62 MovieClip Frame 25
function flash_loading(x, T, r) {
var _local1 = T / 2;
var _local2 = (-r) / (_local1 * _local1);
return((_local2 * Math.pow((x % T) - _local1, 2)) + r);
}
stop();
var rate;
var all = _root.getBytesTotal();
onEnterFrame = function () {
var _local3 = _root.getBytesLoaded();
rate = int((_local3 / all) * 100) + "%";
mLoading._alpha = flash_loading(getTimer(), 800, 100);
if (_local3 == all) {
delete this.onEnterFrame;
if ((_root._mochiad instanceof MovieClip) != true) {
_root.play();
}
}
};
Instance of Symbol 38 MovieClip in Symbol 62 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "TXT";
sVariable = "_parent.rate";
autoSize = "center";
bBmp = false;
}
Instance of Symbol 38 MovieClip "mLoading" in Symbol 62 MovieClip Frame 25
//component parameters
onClipEvent (construct) {
sTxt = "Loading...";
sVariable = "";
autoSize = "center";
bBmp = false;
}
Symbol 62 MovieClip Frame 26
_x = (Stage.width / 2);
_y = (Stage.height / 2);
_root.stop();
onPress = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
Symbol 62 MovieClip Frame 171
stop();
_root.play();
Symbol 825 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
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 _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.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 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_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 _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
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.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_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 showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
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")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(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();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
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_failed();
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.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
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) {
options.ad_failed();
_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 showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
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 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 _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
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 _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_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);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
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++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 122 MovieClip Frame 1
return_btn.onRelease = function () {
_parent.help_mc._visible = false;
};
play_mc.onRelease = function () {
_root.gotoAndStop(3);
};
Symbol 135 MovieClip Frame 1
onPress = function () {
Global.FWGURL();
};
this.cacheAsBitmap = true;
Symbol 137 MovieClip Frame 2
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 200 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 33
_root.fitghFun(_parent.fitghNum);
Symbol 242 MovieClip Frame 27
removeMovieClip(_root[("enemy" + _parent.id) + "_mc"]);
Symbol 243 MovieClip Frame 1
function disBlood(disNum) {
_root.nowFit = this.id;
deleWea();
this.gotoAndStop(3);
}
function deleWea() {
i = 0;
while (i < weapers.length) {
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 50;
var fitghNum = 250;
var vy = -30;
var weapers = [];
Symbol 263 MovieClip Frame 1
stop();
Symbol 263 MovieClip Frame 2
play();
Symbol 263 MovieClip Frame 29
stop();
Symbol 291 MovieClip Frame 7
_root.fitghFun(_parent.fitghNum);
Symbol 304 MovieClip Frame 28
removeMovieClip(_root[("enemy" + _parent.id) + "_mc"]);
Symbol 305 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 150) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
loadWea_mc.loadWea_mc.attachMovie("wea" + _root[("weap" + weapers[i]) + "_mc"].id, "wea" + i, loadWea_mc.loadWea_mc.getNextHighestDepth());
loadWea_mc.loadWea_mc["wea" + i]._x = _root[("weap" + weapers[i]) + "_mc"].vx + 11;
loadWea_mc.loadWea_mc["wea" + i]._y = this._height + _root[("weap" + weapers[i]) + "_mc"].vy;
loadWea_mc.loadWea_mc["wea" + i]._xscale = (loadWea_mc.loadWea_mc["wea" + i]._yscale = 40);
loadWea_mc.loadWea_mc["wea" + i]._rotation = _root[("weap" + weapers[i]) + "_mc"]._rotation;
loadWea_mc.gotoAndPlay(1);
peo_mc.gotoAndPlay(1);
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 150;
var fitghNum = 75;
var typeNum = 2;
var weapers = [];
Symbol 342 MovieClip Frame 5
_root.fitghFun(_parent.fitghNum);
Symbol 351 MovieClip Frame 18
removeMovieClip(_root[("enemy" + _parent.id) + "_mc"]);
Symbol 352 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 200) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 200;
var fitghNum = 100;
var typeNum = 3;
var weapers = [];
Symbol 380 MovieClip Frame 13
_root.fitghFun(_parent.fitghNum);
Symbol 399 MovieClip Frame 27
removeMovieClip(_root[("enemy" + _parent.id) + "_mc"]);
Symbol 400 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 250) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 250;
var fitghNum = 150;
var typeNum = 4;
var weapers = [];
Symbol 422 MovieClip Frame 1
stop();
Symbol 422 MovieClip Frame 29
stop();
Symbol 437 MovieClip Frame 30
_root.fitghFun(_parent.fitghNum);
Symbol 457 MovieClip Frame 27
removeMovieClip(_root[("enemy" + _parent.id) + "_mc"]);
Symbol 458 MovieClip Frame 1
function disBlood(disNum) {
_root.nowFit = this.id;
deleWea();
this.gotoAndStop(3);
}
function deleWea() {
i = 0;
while (i < weapers.length) {
loadWea_mc.loadWea_mc.attachMovie("wea" + _root[("weap" + weapers[i]) + "_mc"].id, "wea" + i, loadWea_mc.loadWea_mc.getNextHighestDepth());
loadWea_mc.loadWea_mc["wea" + i]._x = _root[("weap" + weapers[i]) + "_mc"].vx + 11;
loadWea_mc.loadWea_mc["wea" + i]._y = this._height - _root[("weap" + weapers[i]) + "_mc"].vy;
loadWea_mc.loadWea_mc["wea" + i]._xscale = (loadWea_mc.loadWea_mc["wea" + i]._yscale = 30);
loadWea_mc.loadWea_mc["wea" + i]._rotation = _root[("weap" + weapers[i]) + "_mc"]._rotation;
loadWea_mc.gotoAndPlay(1);
peo_mc.gotoAndPlay(1);
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 50;
var fitghNum = 275;
var vy = 30;
var weapers = [];
Symbol 492 MovieClip Frame 24
stop();
Symbol 508 MovieClip Frame 27
_parent.gotoAndStop(1);
Symbol 550 MovieClip Frame 10
_root.loseFun();
Symbol 550 MovieClip Frame 135
stop();
_root.initValue(false);
Symbol 551 MovieClip Frame 1
stop();
Symbol 558 MovieClip Frame 38
_root.fireFlag = true;
stop();
Symbol 562 MovieClip Frame 26
_root.fireFlag = true;
stop();
Symbol 566 MovieClip Frame 30
_root.fireFlag = true;
stop();
Symbol 568 MovieClip Frame 17
_root.fireFlag = true;
stop();
Symbol 573 MovieClip Frame 51
_root.fireFlag = true;
stop();
Symbol 575 MovieClip Frame 34
_root.fireFlag = true;
stop();
Symbol 579 MovieClip Frame 65
_root.fireFlag = true;
stop();
Symbol 582 MovieClip Frame 42
_root.fireFlag = true;
stop();
Symbol 587 MovieClip Frame 86
_root.fireFlag = true;
stop();
Symbol 589 MovieClip Frame 52
_root.fireFlag = true;
stop();
Symbol 617 MovieClip Frame 13
removeMovieClip(_parent);
stop();
Symbol 618 MovieClip Frame 1
function hitFun() {
blood_mc._visible = true;
fire_mc._visible = true;
blood_mc.gotoAndPlay(2);
fire_mc.gotoAndPlay(2);
}
stop();
var id = 2;
var myPoint = (new flash.geom.Point(this._x, this._y));
blood_mc._visible = false;
fire_mc._visible = false;
Symbol 638 MovieClip Frame 29
stop();
Symbol 645 MovieClip Frame 9
_root.fitghFun(_parent.fitghNum);
Symbol 650 MovieClip Frame 29
removeMovieClip(_root[("enemy" + _parent.id) + "_mc"]);
Symbol 651 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 100) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
loadWea_mc.loadWea_mc.attachMovie("wea" + _root[("weap" + weapers[i]) + "_mc"].id, "wea" + i, loadWea_mc.loadWea_mc.getNextHighestDepth());
loadWea_mc.loadWea_mc["wea" + i]._x = _root[("weap" + weapers[i]) + "_mc"].vx + 11;
loadWea_mc.loadWea_mc["wea" + i]._y = this._height + _root[("weap" + weapers[i]) + "_mc"].vy;
loadWea_mc.loadWea_mc["wea" + i]._xscale = (loadWea_mc.loadWea_mc["wea" + i]._yscale = 40);
loadWea_mc.loadWea_mc["wea" + i]._rotation = _root[("weap" + weapers[i]) + "_mc"]._rotation;
loadWea_mc.gotoAndPlay(1);
peo_mc.gotoAndPlay(1);
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 100;
var fitghNum = 50;
var typeNum = 1;
var weaNum = 1;
var weapers = [];
Symbol 652 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 275) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
loadWea_mc.loadWea_mc.attachMovie("wea" + _root[("weap" + weapers[i]) + "_mc"].id, "wea" + i, loadWea_mc.loadWea_mc.getNextHighestDepth());
loadWea_mc.loadWea_mc["wea" + i]._x = _root[("weap" + weapers[i]) + "_mc"].vx + 11;
loadWea_mc.loadWea_mc["wea" + i]._y = this._height + _root[("weap" + weapers[i]) + "_mc"].vy;
loadWea_mc.loadWea_mc["wea" + i]._xscale = (loadWea_mc.loadWea_mc["wea" + i]._yscale = 30);
loadWea_mc.loadWea_mc["wea" + i]._rotation = _root[("weap" + weapers[i]) + "_mc"]._rotation;
loadWea_mc.gotoAndPlay(1);
peo_mc.gotoAndPlay(1);
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 300;
var fitghNum = 175;
var typeNum = 5;
var weapers = [];
Symbol 653 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 300) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
loadWea_mc.loadWea_mc.attachMovie("wea" + _root[("weap" + weapers[i]) + "_mc"].id, "wea" + i, loadWea_mc.loadWea_mc.getNextHighestDepth());
loadWea_mc.loadWea_mc["wea" + i]._x = _root[("weap" + weapers[i]) + "_mc"].vx + 11;
loadWea_mc.loadWea_mc["wea" + i]._y = this._height + _root[("weap" + weapers[i]) + "_mc"].vy;
loadWea_mc.loadWea_mc["wea" + i]._xscale = (loadWea_mc.loadWea_mc["wea" + i]._yscale = 30);
loadWea_mc.loadWea_mc["wea" + i]._rotation = _root[("weap" + weapers[i]) + "_mc"]._rotation;
loadWea_mc.gotoAndPlay(2);
peo_mc.gotoAndPlay(1);
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 350;
var fitghNum = 200;
var typeNum = 6;
var weapers = [];
Symbol 654 MovieClip Frame 1
function disBlood(disNum) {
bloodNum = bloodNum - disNum;
blood_mc._width = (bloodNum / 325) * 30;
if (bloodNum <= 0) {
_root.fireOver_mc.playSound();
blood_mc._width = 0;
_root.nowFit = this.id;
this.gotoAndStop(3);
_root.killNum++;
deleWea();
} else {
_root.fireHit_mc.playSound();
}
}
function deleWea() {
i = 0;
while (i < weapers.length) {
removeMovieClip(_root[("weap" + weapers[i]) + "_mc"]);
i++;
}
}
stop();
var bloodNum = 400;
var fitghNum = 225;
var typeNum = 7;
var weapers = [];
Symbol 665 MovieClip Frame 28
removeMovieClip(_parent);
Symbol 666 MovieClip Frame 1
stop();
var id = 5;
var myPoint = (new flash.geom.Point(this._x, this._y));
Symbol 680 MovieClip Frame 1
next_btn.onRelease = function () {
_root.initValue(true);
};
download_btn.onRelease = function () {
getURL ("http://www.ifungames.com/", "_blank");
};
moreGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
addGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
Symbol 682 MovieClip Frame 1
stop();
Symbol 685 MovieClip Frame 1
function playSound() {
if (_root.soundFlag) {
gotoAndPlay (2);
}
}
stop();
Symbol 687 MovieClip Frame 1
function playSound() {
if (_root.soundFlag) {
gotoAndPlay (2);
}
}
stop();
Symbol 689 MovieClip Frame 1
function playSound() {
if (_root.soundFlag) {
gotoAndPlay (2);
}
}
stop();
Symbol 694 MovieClip Frame 1
stop();
Symbol 694 MovieClip Frame 114
removeMovieClip(this);
Symbol 698 MovieClip Frame 1
stop();
Symbol 698 MovieClip Frame 116
removeMovieClip(this);
Symbol 754 MovieClip Frame 1
stop();
Symbol 754 MovieClip Frame 25
_root.score_mc._x = -100;
Symbol 786 MovieClip Frame 1
download_btn.onRelease = function () {
getURL ("http://www.ifungames.com/", "_blank");
};
moreGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
addGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
Symbol 794 MovieClip Frame 1
download_btn.onRelease = function () {
getURL ("http://www.ifungames.com/", "_blank");
};
moreGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/", "_blank");
};
addGame_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/koalafiles.htm", "_blank");
};
Symbol 814 MovieClip Frame 1
stop();
Symbol 814 MovieClip Frame 79
gotoAndStop (1);
Symbol 823 MovieClip Frame 1
function initFace(sucFlag) {
if (sucFlag == 1) {
suc_mc._visible = true;
} else {
suc_mc._visible = false;
}
}
stop();
suc_mc._visible = false;
close_btn.onRelease = function () {
_parent.xiang_mc._visible = false;
_root.submit_mc._visible = false;
};
Symbol 823 MovieClip Frame 2
stop();
viewHigh_btn.onRelease = function () {
getURL ("http://www.freeworldgroup.com/score/index.asp?game=primal_defence", "_blank");
};
Symbol 824 MovieClip Frame 1
xiang_mc._visible = false;
Symbol 824 MovieClip Frame 50
stop();