Frame 1
function func_defender() {
if (_root.attime >= _root.atrate) {
_root.lor = Math.round(Math.random() * 10);
if (_root.lor < 5) {
_root.atx = 700;
} else if (_root.lor >= 5) {
_root.atx = -300;
}
if (badarray[0] == 0) {
badarray[0] = 1;
bid = 1;
} else if (badarray[1] == 0) {
badarray[1] = 1;
bid = 2;
} else if (badarray[2] == 0) {
badarray[2] = 1;
bid = 3;
} else if (badarray[3] == 0) {
badarray[3] = 1;
bid = 4;
} else if (badarray[4] == 0) {
badarray[4] = 1;
bid = 5;
} else if (badarray[5] == 0) {
badarray[5] = 1;
bid = 6;
} else if (badarray[6] == 0) {
badarray[6] = 1;
bid = 7;
} else if (badarray[7] == 0) {
badarray[7] = 1;
bid = 8;
} else if (badarray[8] == 0) {
badarray[8] = 1;
bid = 9;
} else if (badarray[9] == 0) {
badarray[9] = 1;
bid = 10;
} else if (badarray[10] == 0) {
badarray[10] = 1;
bid = 11;
} else if (badarray[11] == 0) {
badarray[11] = 1;
bid = 12;
} else if (badarray[12] == 0) {
badarray[12] = 1;
bid = 13;
} else if (badarray[13] == 0) {
badarray[13] = 1;
bid = 14;
} else if (badarray[14] == 0) {
badarray[14] = 1;
bid = 15;
} else if (badarray[15] == 0) {
badarray[15] = 1;
bid = 16;
} else if (badarray[16] == 0) {
badarray[16] = 1;
bid = 17;
} else if (badarray[17] == 0) {
badarray[17] = 1;
bid = 18;
} else if (badarray[18] == 0) {
badarray[18] = 1;
bid = 19;
} else if (badarray[19] == 0) {
badarray[19] = 1;
bid = 20;
} else if (badarray[20] == 0) {
badarray[20] = 1;
bid = 21;
}
badrand = (Math.random() * 7) + _root.level;
if (badrand <= 10) {
badno = 1;
}
if ((badrand > 10) && (badrand <= 15)) {
badno = 2;
}
if (badrand > 15) {
badno = 3;
}
if (badno == 1) {
_root.attachMovie("bad", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:100, ttatime:30});
_root.badon++;
badno = 0;
_root.attime = 0;
}
if (badno == 2) {
_root.attachMovie("bad2", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:200, ttatime:30});
_root.badon++;
badno = 0;
_root.attime = 0;
}
if (badno == 3) {
_root.attachMovie("bad3", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:500, ttatime:30});
_root.badon++;
badno = 0;
_root.attime = 0;
}
}
if (_root.attime2 >= _root.atrate2) {
_root.lor = Math.round(Math.random() * 10);
if (_root.lor < 5) {
_root.atx = 700;
} else if (_root.lor >= 5) {
_root.atx = -300;
}
if (badarray[0] == 0) {
badarray[0] = 1;
bid = 1;
} else if (badarray[1] == 0) {
badarray[1] = 1;
bid = 2;
} else if (badarray[2] == 0) {
badarray[2] = 1;
bid = 3;
} else if (badarray[3] == 0) {
badarray[3] = 1;
bid = 4;
} else if (badarray[4] == 0) {
badarray[4] = 1;
bid = 5;
} else if (badarray[5] == 0) {
badarray[5] = 1;
bid = 6;
} else if (badarray[6] == 0) {
badarray[6] = 1;
bid = 7;
} else if (badarray[7] == 0) {
badarray[7] = 1;
bid = 8;
} else if (badarray[8] == 0) {
badarray[8] = 1;
bid = 9;
} else if (badarray[9] == 0) {
badarray[9] = 1;
bid = 10;
} else if (badarray[10] == 0) {
badarray[10] = 1;
bid = 11;
} else if (badarray[11] == 0) {
badarray[11] = 1;
bid = 12;
} else if (badarray[12] == 0) {
badarray[12] = 1;
bid = 13;
} else if (badarray[13] == 0) {
badarray[13] = 1;
bid = 14;
} else if (badarray[14] == 0) {
badarray[14] = 1;
bid = 15;
} else if (badarray[15] == 0) {
badarray[15] = 1;
bid = 16;
} else if (badarray[16] == 0) {
badarray[16] = 1;
bid = 17;
} else if (badarray[17] == 0) {
badarray[17] = 1;
bid = 18;
} else if (badarray[18] == 0) {
badarray[18] = 1;
bid = 19;
} else if (badarray[19] == 0) {
badarray[19] = 1;
bid = 20;
} else if (badarray[20] == 0) {
badarray[20] = 1;
bid = 21;
}
badrand = (Math.random() * 7) + _root.level;
if (badrand <= 9) {
badno = 1;
}
if ((badrand > 9) && (badrand <= 12)) {
badno = 2;
}
if (badrand > 12) {
badno = 3;
}
if (badno == 1) {
_root.attachMovie("bad", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:100, ttatime:30});
_root.badon++;
badno = 0;
_root.attime2 = 0;
}
if (badno == 2) {
_root.attachMovie("bad2", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:200, ttatime:30});
_root.badon++;
badno = 0;
_root.attime2 = 0;
}
if (badno == 3) {
_root.attachMovie("bad3", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:500, ttatime:30});
_root.badon++;
badno = 0;
_root.attime2 = 0;
}
atrate2 = (100 + (Math.random() * 100)) - (_root.level * 3);
}
if ((_root.attime3 >= _root.atrate3) && (_root.level > 3)) {
_root.lor = Math.round(Math.random() * 10);
if (_root.lor < 5) {
_root.atx = 700;
} else if (_root.lor >= 5) {
_root.atx = -300;
}
if (badarray[0] == 0) {
badarray[0] = 1;
bid = 1;
} else if (badarray[1] == 0) {
badarray[1] = 1;
bid = 2;
} else if (badarray[2] == 0) {
badarray[2] = 1;
bid = 3;
} else if (badarray[3] == 0) {
badarray[3] = 1;
bid = 4;
} else if (badarray[4] == 0) {
badarray[4] = 1;
bid = 5;
} else if (badarray[5] == 0) {
badarray[5] = 1;
bid = 6;
} else if (badarray[6] == 0) {
badarray[6] = 1;
bid = 7;
} else if (badarray[7] == 0) {
badarray[7] = 1;
bid = 8;
} else if (badarray[8] == 0) {
badarray[8] = 1;
bid = 9;
} else if (badarray[9] == 0) {
badarray[9] = 1;
bid = 10;
} else if (badarray[10] == 0) {
badarray[10] = 1;
bid = 11;
} else if (badarray[11] == 0) {
badarray[11] = 1;
bid = 12;
} else if (badarray[12] == 0) {
badarray[12] = 1;
bid = 13;
} else if (badarray[13] == 0) {
badarray[13] = 1;
bid = 14;
} else if (badarray[14] == 0) {
badarray[14] = 1;
bid = 15;
} else if (badarray[15] == 0) {
badarray[15] = 1;
bid = 16;
} else if (badarray[16] == 0) {
badarray[16] = 1;
bid = 17;
} else if (badarray[17] == 0) {
badarray[17] = 1;
bid = 18;
} else if (badarray[18] == 0) {
badarray[18] = 1;
bid = 19;
} else if (badarray[19] == 0) {
badarray[19] = 1;
bid = 20;
} else if (badarray[20] == 0) {
badarray[20] = 1;
bid = 21;
}
badrand = Math.random() * 10;
if (badrand <= 6) {
badno = 1;
}
if ((badrand > 6) && (badrand <= 9)) {
badno = 2;
}
if (badrand > 9) {
badno = 3;
}
if (badno == 1) {
_root.attachMovie("bad", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:100, ttatime:30});
_root.badon++;
badno = 0;
_root.attime3 = 0;
}
if (badno == 2) {
_root.attachMovie("bad5", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:1, ttatime:50});
_root.badon++;
badno = 0;
_root.attime3 = 0;
}
if (badno == 3) {
_root.attachMovie("bad6", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:100, ttatime:50});
_root.badon++;
badno = 0;
_root.attime3 = 0;
}
_root.attime3 = 0;
atrate3 = (100 + (Math.random() * 100)) - (_root.level * 3);
}
if ((_root.attime4 >= _root.atrate4) && (_root.level > 5)) {
_root.lor = Math.round(Math.random() * 10);
if (_root.lor < 5) {
_root.atx = 700;
} else if (_root.lor >= 5) {
_root.atx = -300;
}
if (badarray[0] == 0) {
badarray[0] = 1;
bid = 1;
} else if (badarray[1] == 0) {
badarray[1] = 1;
bid = 2;
} else if (badarray[2] == 0) {
badarray[2] = 1;
bid = 3;
} else if (badarray[3] == 0) {
badarray[3] = 1;
bid = 4;
} else if (badarray[4] == 0) {
badarray[4] = 1;
bid = 5;
} else if (badarray[5] == 0) {
badarray[5] = 1;
bid = 6;
} else if (badarray[6] == 0) {
badarray[6] = 1;
bid = 7;
} else if (badarray[7] == 0) {
badarray[7] = 1;
bid = 8;
} else if (badarray[8] == 0) {
badarray[8] = 1;
bid = 9;
} else if (badarray[9] == 0) {
badarray[9] = 1;
bid = 10;
} else if (badarray[10] == 0) {
badarray[10] = 1;
bid = 11;
} else if (badarray[11] == 0) {
badarray[11] = 1;
bid = 12;
} else if (badarray[12] == 0) {
badarray[12] = 1;
bid = 13;
} else if (badarray[13] == 0) {
badarray[13] = 1;
bid = 14;
} else if (badarray[14] == 0) {
badarray[14] = 1;
bid = 15;
} else if (badarray[15] == 0) {
badarray[15] = 1;
bid = 16;
} else if (badarray[16] == 0) {
badarray[16] = 1;
bid = 17;
} else if (badarray[17] == 0) {
badarray[17] = 1;
bid = 18;
} else if (badarray[18] == 0) {
badarray[18] = 1;
bid = 19;
} else if (badarray[19] == 0) {
badarray[19] = 1;
bid = 20;
} else if (badarray[20] == 0) {
badarray[20] = 1;
bid = 21;
}
_root.attachMovie("bad", "bad" + _root.bid, _root.getNextHighestDepth(), {_x:_root.atx, _y:250, HP:100, ttatime:30});
_root.badon++;
badno = 0;
_root.attime4 = 0;
atrate4 = (200 + (Math.random() * 100)) - (_root.level * 3);
}
if (_root.atter == 1) {
_root.attime++;
}
if (_root.atter2 == 1) {
_root.attime2++;
}
if (_root.atter3 == 1) {
_root.attime3++;
}
if (_root.atter4 == 1) {
_root.attime4++;
}
if (_root.badon >= 20) {
_root.atter = 0;
} else {
_root.atter = 1;
}
if (_root.badon >= 20) {
_root.atter2 = 0;
} else {
_root.atter2 = 1;
}
if (_root.badon >= 20) {
_root.atter3 = 0;
} else {
_root.atter3 = 1;
}
if (_root.badon >= 20) {
_root.atter4 = 0;
} else {
_root.atter4 = 1;
}
if (_root.kills >= _root.defgoal) {
_root.endlevel = 1;
_root.atter = 0;
_root.tarender.play();
}
}
function func_arrows() {
if (_root.hitoatari2.hitTest(_root.explo)) {
_root.hero2.gotoAndStop("hit");
_root.hito2HP = _root.hito2HP - 2;
}
if (_root.hitoatari.hitTest(_root.explo)) {
_root.hero.gotoAndStop("hit");
_root.hitoHP = _root.hitoHP - 2;
}
_root.bg3._x = _root.cam._x / 1.03;
_root.bg3._y = _root.cam._y / 1.03;
_root.bg4._x = _root.cam._x / 1.01;
_root.bg4._y = _root.cam._y / 1.01;
_root.bg1._x = _root.cam._x / 2;
_root.bg1._y = _root.cam._y / 1.5;
_root.bg2._x = _root.cam._x / 4;
_root.bg2._y = _root.cam._y / 2;
if (_root.hitoHP <= 0) {
_root.hero.gotoAndStop("die");
}
if (_root.hito2HP <= 0) {
_root.hero2.gotoAndStop("die");
}
if ((_root.turnchange == 1) && (_root.turn == 1)) {
_root.turn = 2;
_root.turnchange = 0;
}
if ((_root.turnchange == 1) && (_root.turn == 2)) {
_root.turn = 1;
_root.turnchange = 0;
}
if ((_root.turnchange == 1) && (_root.turn == 0)) {
_root.turn = 1;
_root.turnchange = 0;
}
if (_root.hito2HP <= 0) {
_root.turn = 1;
_root.shoot = 0;
}
if (_root.hitoHP <= 0) {
_root.turn = 2;
_root.shoot = 0;
}
a = 0;
while (a < 30) {
if (_root["ar" + a].hitTest("_root.wtget")) {
_root.wtget.gotoAndPlay(2);
_root.mato._yscale = 0;
}
if ((_root["ar" + a].follow == 1) && (_root.defender != 1)) {
_root.cam._x = _root["ar" + a]._x;
_root.cam._y = _root["ar" + a]._y;
}
if (_root.removeall == 1) {
removeMovieClip(_root["ya" + a]);
}
if (_root["ya" + a].follow == 1) {
_root.cam._x = _root["ya" + a]._x;
_root.cam._y = _root["ya" + a]._y;
}
if (_root.defender == 1) {
b = 0;
while (b < 21) {
if (_root.removeall == 1) {
removeMovieClip(_root["bad" + b]);
}
if (_root["bad" + b].HP <= 0) {
_root["bad" + b].gotoAndStop("die");
}
if (_root["bad" + b].ccv != 1) {
_root["bad" + b].id = _root.bid;
_root["bad" + b].ccv = 1;
}
if ((_root["bad" + b].onscreen == 1) || (_root["bad" + b].fft != 4)) {
if (_root.explo.hitTest(_root["bad" + b])) {
_root["bad" + b].gotoAndStop("die2");
}
if (_root["ar" + a].hit.hitTest(_root["bad" + b].hit)) {
_root["bad" + b].HP = _root["bad" + b].HP - 100;
_root["bad" + b].gotoAndStop("hit");
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:_root["ar" + a]._x, _y:_root["ar" + a]._y});
if (_root["ar" + a].id == 1) {
_root.arrowarray[0] = 0;
} else if (_root["ar" + a].id == 2) {
_root.arrowarray[1] = 0;
} else if (_root["ar" + a].id == 3) {
_root.arrowarray[2] = 0;
} else if (_root["ar" + a].id == 4) {
_root.arrowarray[3] = 0;
} else if (_root["ar" + a].id == 5) {
_root.arrowarray[4] = 0;
} else if (_root["ar" + a].id == 6) {
_root.arrowarray[5] = 0;
} else if (_root["ar" + a].id == 7) {
_root.arrowarray[6] = 0;
} else if (_root["ar" + a].id == 8) {
_root.arrowarray[7] = 0;
} else if (_root["ar" + a].id == 9) {
_root.arrowarray[8] = 0;
} else if (_root["ar" + a].id == 10) {
_root.arrowarray[9] = 0;
} else if (_root["ar" + a].id == 11) {
_root.arrowarray[10] = 0;
} else if (_root["ar" + a].id == 12) {
_root.arrowarray[11] = 0;
} else if (_root["ar" + a].id == 13) {
_root.arrowarray[12] = 0;
} else if (_root["ar" + a].id == 14) {
_root.arrowarray[13] = 0;
} else if (_root["ar" + a].id == 15) {
_root.arrowarray[14] = 0;
} else if (_root["ar" + a].id == 16) {
_root.arrowarray[15] = 0;
} else if (_root["ar" + a].id == 17) {
_root.arrowarray[16] = 0;
} else if (_root["ar" + a].id == 18) {
_root.arrowarray[17] = 0;
} else if (_root["ar" + a].id == 19) {
_root.arrowarray[18] = 0;
} else if (_root["ar" + a].id == 20) {
_root.arrowarray[19] = 0;
} else if (_root["ar" + a].id == 21) {
_root.arrowarray[20] = 0;
} else if (_root["ar" + a].id == 22) {
_root.arrowarray[21] = 0;
} else if (_root["ar" + a].id == 23) {
_root.arrowarray[22] = 0;
} else if (_root["ar" + a].id == 24) {
_root.arrowarray[23] = 0;
} else if (_root["ar" + a].id == 25) {
_root.arrowarray[24] = 0;
} else if (_root["ar" + a].id == 26) {
_root.arrowarray[25] = 0;
} else if (_root["ar" + a].id == 27) {
_root.arrowarray[26] = 0;
} else if (_root["ar" + a].id == 28) {
_root.arrowarray[27] = 0;
} else if (_root["ar" + a].id == 29) {
_root.arrowarray[28] = 0;
} else if (_root["ar" + a].id == 30) {
_root.arrowarray[29] = 0;
} else if (_root["ar" + a].id == 31) {
_root.arrowarray[30] = 0;
} else if (_root["ar" + a].id == 32) {
_root.arrowarray[31] = 0;
} else if (_root["ar" + a].id == 33) {
_root.arrowarray[32] = 0;
} else if (_root["ar" + a].id == 34) {
_root.arrowarray[33] = 0;
} else if (_root["ar" + a].id == 35) {
_root.arrowarray[34] = 0;
} else if (_root["ar" + a].id == 36) {
_root.arrowarray[35] = 0;
} else if (_root["ar" + a].id == 37) {
_root.arrowarray[36] = 0;
} else if (_root["ar" + a].id == 38) {
_root.arrowarray[37] = 0;
} else if (_root["ar" + a].id == 39) {
_root.arrowarray[38] = 0;
} else if (_root["ar" + a].id == 40) {
_root.arrowarray[39] = 0;
}
if (_root["ar" + a].fir == 1) {
_root.attachMovie("firemain", "fire" + _root.frid, _root.getNextHighestDepth(), {_x:_root["ar" + a]._x, _y:_root["ar" + a]._y});
}
removeMovieClip(_root["ar" + a]);
}
}
b++;
}
}
if (_root.aid > 100) {
_root.aid = 0;
_root.removeall = 1;
_root.removeall = 0;
}
if (targetmode == 1) {
if ((taron == 0) && (_root.tarender.thison == 1)) {
_root.tarend = 1;
_root.tarender.play();
}
}
a++;
}
}
stopAllSounds();
defscore = 0;
upcost = 550;
archcost = 300;
gameHP = 2;
archer = 0;
multiammo = 0;
fireammo = 0;
bombammo = 0;
goldammo = 0;
_root.upgrade = 1;
money = 0;
multirate = 40;
arrowrate = 20;
bombrate = 60;
bombs = 0;
vs = 0;
wind = 0;
towerMAXHP = 50;
towerHP = towerMAXHP;
arrowarray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
badarray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
levx = new Array(500, 1000, 1000, 1200, 1500, 1700, 1800, 2000, 2000);
walltarget = new Array(100000, 100000, -300, 100000, 1800, 2000, -300, 10000, -2000);
wallhight = new Array(0, 0, -100, 0, -150, -150, -200, 0, -400);
shots = 0;
stage = 1;
aid = 0;
shoot = 0;
defender = 0;
hadep = 0;
removeall = 1;
cpumode = 0;
targetmode = 0;
_root.targetscore = 0;
gameover = 0;
cpuscore = 0;
level = 1;
levelscore = 0;
hitoHP = 2;
hito2HP = 2;
attime = 150;
atrate = 100;
_root.defgoal = 10;
bid = 0;
badon = 0;
kills = 0;
atter = 1;
attime2 = 0;
attime3 = 0;
attime4 = 0;
atrate2 = 100 + (Math.random() * 100);
atrate3 = 100 + (Math.random() * 100);
atrate4 = 200 + (Math.random() * 100);
lineStyle(1, 6710886);
moveTo(-5000, 265);
lineTo(0, 265);
lineTo(5000, 265);
if (index == undefined) {
index = true;
}
if (wall == undefined) {
wall = false;
}
if (wind == undefined) {
wind = 0;
}
if (_root.wind != 0) {
_root.wind = Math.random() - 0.5;
}
if (_root.syokiHP == undefined) {
_root.syokiHP = 2;
}
_root.index == true;
hitoHP = _root.syokiHP;
hito2HP = _root.syokiHP;
_quality = "medium";
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
} else {
gotoAndPlay (1);
}
Frame 3
if (_root.skiper == 1) {
gotoAndStop ("title");
}
stop();
Frame 4
stopAllSounds();
Frame 5
removeall = 0;
stop();
Frame 6
if (vs != 1) {
gotoAndPlay ("title");
}
_root.hero.onEnterFrame = function () {
func_arrows();
};
removeall = 1;
removeall = 0;
Instance of Symbol 366 MovieClip "bg4" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.stage);
}
Instance of Symbol 374 MovieClip "bg3" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.stage);
}
Instance of Symbol 382 MovieClip "bg1" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.stage);
}
Instance of Symbol 246 MovieClip "hero" in Frame 6
onClipEvent (load) {
MAXHP = _root.hitoHP;
}
onClipEvent (mouseDown) {
if (((((_root.turn == 1) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) && (thison == 1)) && (_root.shoot == 0)) {
drag = true;
this.yumi.gotoAndStop(2);
this.aa.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
percentHP = Math.round(100 * (_root.hitoHP / MAXHP));
this.bar.gotoAndStop(percentHP);
if (percentHP <= 0) {
this.bar.gotoAndStop(1);
}
if (((kakudo > -180) && (kakudo < -90)) || ((kakudo < 180) && (kakudo > 90))) {
this.m._xscale = -100;
} else {
this.m._xscale = 100;
}
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
this.aa._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
this.aa.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 10) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.attachMovie("happa", "ha" + _root.hadep, _root.getNextHighestDepth());
_root["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
if (drag) {
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop("shoot");
this.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.shoot = 1;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.badarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.badarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 29;
}
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x + (Math.cos(radian) * 32), _y:this._x + (Math.cos(radian) * 32)});
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
if (_root.multi) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.badarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.badarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx + 1;
_root["ar" + _root.aid].addy = addy + 1;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.badarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.badarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx - 1;
_root["ar" + _root.aid].addy = addy - 1;
}
}
}
Instance of Symbol 246 MovieClip "hero2" in Frame 6
onClipEvent (load) {
MAXHP = _root.hito2HP;
this.nextFrame();
this.m._xscale = -100;
if (_root.wind == 0) {
this._x = 800 + (Math.random() * 2000);
} else {
this._x = 800 + (Math.random() * 1000);
}
_root.hitoatari2._x = this._x;
_root.haikei._x = this._x;
if (_root.wall) {
if (_root.wind == 0) {
_root.mato._yscale = ((Math.random() * 400) + 200) * -1;
} else {
_root.mato._yscale = ((Math.random() * 150) + 150) * -1;
}
} else {
_root.mato._yscale = 0;
}
_root.mato._x = (this._x + 200) / 2;
_root.taiyou._x = (this._x + 200) / 2;
}
onClipEvent (mouseDown) {
if (((((_root.turn == 2) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) && (thison == 1)) && (_root.shoot == 0)) {
drag = true;
this.m.yumi.gotoAndStop(2);
this.m.aa.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
percentHP = Math.round(100 * (_root.hito2HP / MAXHP));
this.bar.gotoAndStop(percentHP);
if (percentHP <= 0) {
this.bar.gotoAndStop(1);
}
if (((kakudo > -180) && (kakudo < -90)) || ((kakudo < 180) && (kakudo > 90))) {
this.m._xscale = -100;
} else {
this.m._xscale = 100;
}
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
this.aa._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
this.aa.gotoAndStop(nagasa);
}
}
onClipEvent (mouseUp) {
if (drag) {
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop("shoot");
this.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.shoot = 1;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.badarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.badarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 29;
}
_root.attachMovie("ya", "ya" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ya" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ya" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ya" + _root.aid].addx = addx;
_root["ya" + _root.aid].addy = addy;
_root["ya" + _root.aid].mydepth = _root.depth;
if (_root.multi) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.badarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.badarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx + 1;
_root["ar" + _root.aid].addy = addy + 1;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.badarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.badarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx - 1;
_root["ar" + _root.aid].addy = addy - 1;
}
}
}
Instance of Symbol 410 MovieClip "sign" in Frame 6
onClipEvent (load) {
this._visible = false;
if (_root.index == false) {
this._xscale = 0;
this._yscale = 0;
}
}
Instance of Symbol 425 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (thi == 1) {
if (this.hitTest("_root.cam")) {
play();
}
}
if (_root.hero.dead == 1) {
_root.skiper = 1;
this._x = _root.hero2._x;
thi = 1;
this.pp.gotoAndStop(2);
} else if (_root.hero2.dead == 1) {
_root.skiper = 1;
thi = 1;
}
}
Instance of Symbol 427 MovieClip "cam" in Frame 6
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
onClipEvent (enterFrame) {
if ((_root.shoot != 1) && (control != 1)) {
if (_root.turn == 1) {
if (this._x < _root.hero._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero._y) {
this._y = this._y - 20;
}
}
if (_root.turn == 2) {
if (this._x < _root.hero2._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero2._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero2._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero2._y) {
this._y = this._y - 20;
}
}
}
}
Instance of Symbol 470 MovieClip "dip" in Frame 6
onClipEvent (enterFrame) {
if (_root.shoot != 1) {
this._x = _root.cam._x;
this._y = _root.cam._y;
}
}
Frame 7
turn = 1;
stop();
Frame 8
prevFrame();
Frame 9
_root.hero.onEnterFrame = function () {
func_arrows();
};
if ((level == 2) || (level > 3)) {
_root.wind = Math.random() - 0.5;
}
if (level == 3) {
_root.wind = 0;
}
if ((level == 3) || (level > 4)) {
_root.wall = true;
}
removeall = 1;
removeall = 0;
Instance of Symbol 246 MovieClip "hero" in Frame 9
onClipEvent (load) {
_root.levelscore = 0;
MAXHP = _root.hitoHP;
}
onClipEvent (mouseDown) {
if (((((_root.turn == 1) && (_root.hitoHP > 0)) && (_root.hito2HP > 0)) && (thison == 1)) && (_root.shoot == 0)) {
drag = true;
this.yumi.gotoAndStop(2);
this.aa.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
percentHP = Math.round(100 * (_root.hitoHP / MAXHP));
this.bar.gotoAndStop(percentHP);
if (percentHP <= 0) {
this.bar.gotoAndStop(1);
}
if (((kakudo > -180) && (kakudo < -90)) || ((kakudo < 180) && (kakudo > 90))) {
this.m._xscale = -100;
} else {
this.m._xscale = 100;
}
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
this.aa._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
this.aa.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 10) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.attachMovie("happa", "ha" + _root.hadep, _root.getNextHighestDepth());
_root["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
if (drag) {
_root.cam.control = 0;
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop("shoot");
this.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.shoot = 1;
_root.aid++;
_root.shots++;
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x + (Math.cos(radian) * 32), _y:this._x + (Math.cos(radian) * 32)});
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
if (_root.multi) {
_root.aid++;
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx + 1;
_root["ar" + _root.aid].addy = addy + 1;
_root.aid++;
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx - 1;
_root["ar" + _root.aid].addy = addy - 1;
}
}
}
Instance of Symbol 246 MovieClip "hero2" in Frame 9
onClipEvent (load) {
MAXHP = _root.hitoHP;
xxc = 1;
_root.hitresult = 0;
okure = 0;
power = 0;
comx = 0;
comy = 0;
addcomy = 0;
addcomx = 0;
yakakudo = 0;
maxpow = 0;
this.nextFrame();
this._x = _root.levx[_root.level - 1];
_root.hitoatari2._x = this._x;
_root.haikei._x = this._x;
_root.hitresult2 = _root.hero2._x - _root.hero._x;
maxpow = _root.hitresult2 / 45;
if (_root.wall) {
_root.mato._yscale = _root.wallhight[_root.level - 1];
} else {
_root.mato._yscale = 0;
}
_root.mato._x = (this._x + 200) / 2;
_root.taiyou._x = (this._x + 200) / 2;
drag = 0;
}
onClipEvent (enterFrame) {
this.m.h.gotoAndStop(2);
percentHP = Math.round(100 * (_root.hito2HP / MAXHP));
this.bar.gotoAndStop(percentHP);
if (percentHP <= 0) {
this.bar.gotoAndStop(1);
}
if (((kakudo > -180) && (kakudo < -90)) || ((kakudo < 180) && (kakudo > 90))) {
this.m._xscale = -100;
} else {
this.m._xscale = 100;
}
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
if (((((_root.turn == 2) && (drag == 0)) && (thison == 1)) && (_root.hito2HP > 0)) && (_root.hitoHP > 0)) {
drag = 1;
this.m.yumi.gotoAndStop(2);
this.m.aa.gotoAndStop(2);
xzero = -100;
yzero = -100;
comx = xzero;
comy = yzero;
if ((_root.hitresult2 == "wall") || ((maxpow == 25) && (_root.hitresult2 > 10))) {
yakakudo = yakakudo + (Math.random() - (_root.mato._yscale / 300));
}
addcomx = ((9 - yakakudo) + Math.random()) - 0.5;
addcomy = ((3 + yakakudo) + Math.random()) - 0.5;
yakakudo = yakakudo / 1.2;
if (_root.hitresult2 != "wall") {
if (maxpow > 25) {
maxpow = 25;
}
}
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = this._x;
_root.sign._y = this._y;
nagasa = 3;
radian = 0;
muki = true;
}
if (drag == 1) {
comx = comx + addcomx;
comy = comy + addcomy;
ymo = comy - yzero;
xmo = comx - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
this.aa._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
this.aa.gotoAndStop(nagasa);
if (power >= maxpow) {
addcomx = addcomx / 2;
addcomy = addcomy / 2;
okure++;
if (drag && (okure > 20)) {
drag = 0;
_root.sign._visible = false;
this.yumi.gotoAndStop("shoot");
this.aa.gotoAndPlay("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.shoot = 1;
_root.aid++;
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
okure = 0;
power = 0;
_root.turn = 0;
}
}
}
}
Instance of Symbol 473 MovieClip "syouri" in Frame 9
onClipEvent (enterFrame) {
if (thi > 0) {
thi++;
if (thi == 150) {
this.play();
}
if (thi == 250) {
_root._x = 0;
_root._y = 0;
_root._xscale = 100;
_root._yscale = 100;
_root.removeall = 1;
_root.gotoAndPlay("nexter");
}
} else if (_root.hitoHP == 0) {
thi = 1;
this._x = _root.hito2._x;
_root.gameover = 1;
this.gotoAndStop(21);
} else if (_root.hito2HP == 0) {
thi = 1;
}
}
Instance of Symbol 476 MovieClip in Frame 9
onClipEvent (load) {
hero2x = _root.hero2._x;
}
Instance of Symbol 301 MovieClip "wtget" in Frame 9
onClipEvent (load) {
this._x = _root.walltarget[_root.level - 1];
}
Instance of Symbol 482 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (dd != 1) {
this._x = _root.cam._x;
this._y = _root.cam._y;
}
}
Instance of Symbol 425 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (thi == 1) {
if (this.hitTest("_root.cam")) {
play();
}
}
if (_root.hero.dead == 1) {
this._x = _root.hero2._x;
thi = 1;
this.pp.gotoAndStop(2);
} else if (_root.hero2.dead == 1) {
thi = 1;
}
}
Instance of Symbol 427 MovieClip "cam" in Frame 9
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
onClipEvent (enterFrame) {
if (((control != 1) && (_root.hero.thison == 1)) && (_root.turn == 1)) {
if (Key.isDown(13)) {
_root.dip.ct.gotoAndStop(2);
cct = 0;
control = 1;
}
}
if (control == 1) {
cct++;
if (Key.isDown(13) && (cct >= 5)) {
_root.dip.ct.gotoAndStop(1);
control = 0;
}
if (Key.isDown(38) && (this._y > -200)) {
this._y = this._y - 10;
}
if (Key.isDown(40) && (this._y < 200)) {
this._y = this._y + 10;
}
if (Key.isDown(37) && (this._x > -3000)) {
this._x = this._x - 10;
}
if (Key.isDown(39) && (this._x < 3000)) {
this._x = this._x + 10;
}
}
if ((_root.shoot != 1) && (control != 1)) {
if (_root.turn == 1) {
if (this._x < _root.hero._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero._y) {
this._y = this._y - 20;
}
}
if (_root.turn == 2) {
if (this._x < _root.hero2._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero2._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero2._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero2._y) {
this._y = this._y - 20;
}
}
}
}
Frame 10
turn = 1;
stop();
Frame 11
prevFrame();
Frame 12
_root.hero.onEnterFrame = function () {
func_arrows();
};
removeall = 1;
removeall = 0;
Instance of Symbol 246 MovieClip "hero" in Frame 12
onClipEvent (load) {
MAXHP = _root.hitoHP;
}
onClipEvent (mouseDown) {
if (((thison == 1) && (_root.shoot == 0)) && (_root.tarend != 1)) {
drag = true;
this.yumi.gotoAndStop(2);
this.aa.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
percentHP = Math.round(100 * (_root.hitoHP / MAXHP));
this.bar.gotoAndStop(percentHP);
if (percentHP <= 0) {
this.bar.gotoAndStop(1);
_root.gameover = 1;
_root.gotoAndStop("nexter");
}
if (((kakudo > -180) && (kakudo < -90)) || ((kakudo < 180) && (kakudo > 90))) {
this.m._xscale = -100;
} else {
this.m._xscale = 100;
}
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
this.aa._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
this.aa.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 10) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.attachMovie("happa", "ha" + _root.hadep, _root.getNextHighestDepth());
_root["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
if (drag) {
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop("shoot");
this.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
_root.shoot = 1;
_root.aid++;
_root.shots++;
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
if (_root.multi) {
_root.aid++;
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx + 1;
_root["ar" + _root.aid].addy = addy + 1;
_root.aid++;
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth());
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx - 1;
_root["ar" + _root.aid].addy = addy - 1;
}
}
}
Instance of Symbol 483 MovieClip "targets" in Frame 12
onClipEvent (load) {
gotoAndStop(_root.level);
}
Instance of Symbol 491 MovieClip "tarender" in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
}
Instance of Symbol 427 MovieClip "cam" in Frame 12
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
onClipEvent (enterFrame) {
_root.turn = 1;
if (((control != 1) && (_root.hero.thison == 1)) && (_root.turn == 1)) {
if (Key.isDown(13)) {
_root.dip.ct.gotoAndStop(2);
cct = 0;
control = 1;
}
}
if (control == 1) {
cct++;
if (Key.isDown(13) && (cct >= 5)) {
_root.dip.ct.gotoAndStop(1);
control = 0;
}
if (Key.isDown(38) && (this._y > -500)) {
this._y = this._y - 20;
}
if (Key.isDown(40) && (this._y < 200)) {
this._y = this._y + 20;
}
if (Key.isDown(37) && (this._x > -2000)) {
this._x = this._x - 20;
}
if (Key.isDown(39) && (this._x < 2000)) {
this._x = this._x + 20;
}
}
if ((_root.shoot != 1) && (control != 1)) {
if (_root.turn == 1) {
if (this._x < _root.hero._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero._y) {
this._y = this._y - 20;
}
}
if (_root.turn == 2) {
if (this._x < _root.hero2._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero2._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero2._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero2._y) {
this._y = this._y - 20;
}
}
}
}
Instance of Symbol 470 MovieClip "dip" in Frame 12
onClipEvent (enterFrame) {
if (_root.shoot != 1) {
this._x = _root.cam._x;
this._y = _root.cam._y;
this._visible = true;
} else {
this._visible = false;
}
}
Frame 13
turn = 1;
stop();
Frame 14
prevFrame();
Frame 15
_root.hero.onEnterFrame = function () {
func_arrows();
func_defender();
};
_root.index == false;
_root.turn == 1;
defender = 1;
stage = 6;
removeall = 1;
removeall = 0;
Instance of Symbol 396 MovieClip in Frame 15
onClipEvent (load) {
gotoAndStop(_root.stage);
}
Instance of Symbol 246 MovieClip "hero" in Frame 15
onClipEvent (load) {
shoottime = 0;
MAXHP = _root.hitoHP;
}
onClipEvent (mouseDown) {
if (((thison == 1) && (shoottime == 0)) && (_root.tarend != 1)) {
drag = true;
this.yumi.gotoAndStop(2);
this.aa.gotoAndStop(2);
xzero = _xmouse;
yzero = _ymouse;
_root.gravity = 0.5;
_root.sign._visible = true;
_root.sign._x = _root._xmouse;
_root.sign._y = _root._ymouse;
nagasa = 3;
radian = 0;
muki = true;
}
}
onClipEvent (enterFrame) {
if (shoottime > 0) {
shoottime--;
}
if (((kakudo > -180) && (kakudo < -90)) || ((kakudo < 180) && (kakudo > 90))) {
this.m._xscale = -100;
} else {
this.m._xscale = 100;
}
if (this.hitTest("_root.cam")) {
thison = 1;
_visible = true;
} else {
thison = 0;
_visible = false;
}
if (drag) {
ymo = _ymouse - yzero;
xmo = _xmouse - xzero;
radian = Math.atan2(-ymo, -xmo);
kakudo = (radian * 180) / 3.141593;
this.yumi._rotation = kakudo;
this.aa._rotation = kakudo;
_root.ac1.yumi._rotation = kakudo;
_root.ac2.yumi._rotation = kakudo;
_root.ac3.yumi._rotation = kakudo;
_root.ac4.yumi._rotation = kakudo;
_root.ac5.yumi._rotation = kakudo;
_root.ac6.yumi._rotation = kakudo;
_root.ac1.aa._rotation = kakudo;
_root.ac2.aa._rotation = kakudo;
_root.ac3.aa._rotation = kakudo;
_root.ac4.aa._rotation = kakudo;
_root.ac5.aa._rotation = kakudo;
_root.ac6.aa._rotation = kakudo;
power = Math.sqrt((ymo * ymo) + (xmo * xmo)) / 10;
if (power > 25) {
power = 25;
}
nagasa = Math.floor(power) + 2;
this.yumi.gotoAndStop(nagasa);
this.aa.gotoAndStop(nagasa);
}
if ((Math.round(Math.random() * 10) == 1) && (_root.wind != 0)) {
_root.hadep++;
_root.attachMovie("happa", "ha" + _root.hadep, _root.getNextHighestDepth());
_root["ha" + _root.hadep]._x = (-_root._x) + (Math.random() * 400);
_root["ha" + _root.hadep]._y = 265;
}
}
onClipEvent (mouseUp) {
if (drag && (shoottime == 0)) {
drag = false;
_root.sign._visible = false;
this.yumi.gotoAndStop("shoot");
this.aa.gotoAndStop("shoot");
_root.ac1.yumi.gotoAndStop("shoot");
_root.ac2.yumi.gotoAndStop("shoot");
_root.ac3.yumi.gotoAndStop("shoot");
_root.ac4.yumi.gotoAndStop("shoot");
_root.ac5.yumi.gotoAndStop("shoot");
_root.ac6.yumi.gotoAndStop("shoot");
_root.ac1.aa.gotoAndStop("shoot");
_root.ac2.aa.gotoAndStop("shoot");
_root.ac3.aa.gotoAndStop("shoot");
_root.ac4.aa.gotoAndStop("shoot");
_root.ac5.aa.gotoAndStop("shoot");
_root.ac6.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
_root.shoot = 1;
_root.aid++;
_root.shots++;
if (_root.arsel == 2) {
_root.multi = 1;
} else {
_root.multi = 0;
}
if ((_root.arsel == 1) || (_root.arsel == 2)) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
if (_root.arsel == 3) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("firea", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
_root.fireammo--;
}
if (_root.arsel == 4) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("boar", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
_root.bombammo--;
}
if (_root.arsel == 5) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("golda", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
_root.goldammo--;
}
if (_root.multi) {
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx + 2;
_root["ar" + _root.aid].addy = addy + 2;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = this._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = this._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx - 2;
_root["ar" + _root.aid].addy = addy - 2;
_root.multiammo--;
}
if (_root.ac1.onscreen == 1) {
_root.ac1.yumi.gotoAndStop("shoot");
_root.ac1.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = _root.ac1._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = _root.ac1._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
if (_root.ac2.onscreen == 1) {
_root.ac2.yumi.gotoAndStop("shoot");
_root.ac2.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = _root.ac2._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = _root.ac2._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
if (_root.ac3.onscreen == 1) {
_root.ac3.yumi.gotoAndStop("shoot");
_root.ac3.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = _root.ac3._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = _root.ac3._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
if (_root.ac4.onscreen == 1) {
_root.ac4.yumi.gotoAndStop("shoot");
_root.ac4.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = _root.ac4._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = _root.ac4._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
if (_root.ac5.onscreen == 1) {
_root.ac5.yumi.gotoAndStop("shoot");
_root.ac5.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = _root.ac5._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = _root.ac5._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
if (_root.ac6.onscreen == 1) {
_root.ac6.yumi.gotoAndStop("shoot");
_root.ac6.aa.gotoAndStop("shoot");
addx = (Math.cos(radian) * power) * 1.5;
addy = (Math.sin(radian) * power) * 1.5;
shoottime = _root.arrowrate;
if (_root.arrowarray[0] == 0) {
_root.arrowarray[0] = 1;
_root.aid = 1;
} else if (_root.arrowarray[1] == 0) {
_root.arrowarray[1] = 1;
_root.aid = 2;
} else if (_root.arrowarray[2] == 0) {
_root.arrowarray[2] = 1;
_root.aid = 3;
} else if (_root.arrowarray[3] == 0) {
_root.arrowarray[3] = 1;
_root.aid = 4;
} else if (_root.arrowarray[4] == 0) {
_root.arrowarray[4] = 1;
_root.aid = 5;
} else if (_root.arrowarray[5] == 0) {
_root.arrowarray[5] = 1;
_root.aid = 6;
} else if (_root.arrowarray[6] == 0) {
_root.arrowarray[6] = 1;
_root.aid = 7;
} else if (_root.arrowarray[7] == 0) {
_root.arrowarray[7] = 1;
_root.aid = 8;
} else if (_root.arrowarray[8] == 0) {
_root.arrowarray[8] = 1;
_root.aid = 9;
} else if (_root.arrowarray[9] == 0) {
_root.arrowarray[9] = 1;
_root.aid = 10;
} else if (_root.arrowarray[10] == 0) {
_root.arrowarray[10] = 1;
_root.aid = 11;
} else if (_root.arrowarray[11] == 0) {
_root.arrowarray[11] = 1;
_root.aid = 12;
} else if (_root.arrowarray[12] == 0) {
_root.arrowarray[12] = 1;
_root.aid = 13;
} else if (_root.arrowarray[13] == 0) {
_root.arrowarray[13] = 1;
_root.aid = 14;
} else if (_root.arrowarray[14] == 0) {
_root.arrowarray[14] = 1;
_root.aid = 15;
} else if (_root.arrowarray[15] == 0) {
_root.arrowarray[15] = 1;
_root.aid = 16;
} else if (_root.arrowarray[16] == 0) {
_root.arrowarray[16] = 1;
_root.aid = 17;
} else if (_root.arrowarray[17] == 0) {
_root.arrowarray[17] = 1;
_root.aid = 18;
} else if (_root.arrowarray[18] == 0) {
_root.arrowarray[18] = 1;
_root.aid = 19;
} else if (_root.arrowarray[19] == 0) {
_root.arrowarray[19] = 1;
_root.aid = 20;
} else if (_root.arrowarray[20] == 0) {
_root.arrowarray[20] = 1;
_root.aid = 21;
} else if (_root.arrowarray[21] == 0) {
_root.arrowarray[21] = 1;
_root.aid = 22;
} else if (_root.arrowarray[22] == 0) {
_root.arrowarray[22] = 1;
_root.aid = 23;
} else if (_root.arrowarray[23] == 0) {
_root.arrowarray[23] = 1;
_root.aid = 24;
} else if (_root.arrowarray[24] == 0) {
_root.arrowarray[24] = 1;
_root.aid = 25;
} else if (_root.arrowarray[25] == 0) {
_root.arrowarray[25] = 1;
_root.aid = 26;
} else if (_root.arrowarray[26] == 0) {
_root.arrowarray[26] = 1;
_root.aid = 27;
} else if (_root.arrowarray[27] == 0) {
_root.arrowarray[27] = 1;
_root.aid = 28;
} else if (_root.arrowarray[28] == 0) {
_root.arrowarray[28] = 1;
_root.aid = 29;
}
_root.attachMovie("ya2", "ar" + _root.aid, _root.getNextHighestDepth(), {id:_root.aid});
_root["ar" + _root.aid]._x = _root.ac6._x + (Math.cos(radian) * 32);
_root["ar" + _root.aid]._y = _root.ac6._y + (Math.sin(radian) * 32);
_root["ar" + _root.aid].addx = addx;
_root["ar" + _root.aid].addy = addy;
}
}
}
Instance of Symbol 502 MovieClip "tower" in Frame 15
onClipEvent (enterFrame) {
percentHP = Math.round(100 * (_root.towerHP / _root.towerMAXHP));
this.bar.gotoAndStop(percentHP);
if (percentHP <= 0) {
this.bar.gotoAndStop(1);
_root.gameover = 1;
_root.gotoAndStop("nexter");
}
}
Instance of Symbol 503 MovieClip "ac5" in Frame 15
onClipEvent (load) {
if ((_root.upgrade == 3) && (_root.archer >= 1)) {
onscreen = 1;
gotoAndStop (2);
}
}
Instance of Symbol 503 MovieClip "ac3" in Frame 15
onClipEvent (load) {
if ((_root.upgrade == 3) && (_root.archer >= 3)) {
onscreen = 1;
gotoAndStop (2);
}
}
Instance of Symbol 503 MovieClip "ac4" in Frame 15
onClipEvent (load) {
if ((_root.upgrade == 3) && (_root.archer == 4)) {
onscreen = 1;
gotoAndStop (2);
}
}
Instance of Symbol 503 MovieClip "ac6" in Frame 15
onClipEvent (load) {
if ((_root.upgrade == 3) && (_root.archer >= 2)) {
onscreen = 1;
gotoAndStop (2);
}
}
Instance of Symbol 503 MovieClip "ac1" in Frame 15
onClipEvent (load) {
if ((_root.upgrade == 2) && (_root.archer >= 1)) {
onscreen = 1;
gotoAndStop (2);
}
}
Instance of Symbol 503 MovieClip "ac2" in Frame 15
onClipEvent (load) {
if ((_root.upgrade == 2) && (_root.archer == 2)) {
onscreen = 1;
gotoAndStop (2);
}
}
Instance of Symbol 427 MovieClip "cam" in Frame 15
//component parameters
onClipEvent (construct) {
varName = "defaultValue";
}
onClipEvent (enterFrame) {
_root.turn = 1;
if (((control != 1) && (_root.hero.thison == 1)) && (_root.turn == 1)) {
if (Key.isDown(13)) {
_root.dip.ct.gotoAndStop(2);
cct = 0;
control = 1;
}
}
if (this._x < _root.hero._x) {
this._x = this._x + 20;
}
if (this._x > _root.hero._x) {
this._x = this._x - 20;
}
if (this._y < _root.hero._y) {
this._y = this._y + 20;
}
if (this._y > _root.hero._y) {
this._y = this._y - 20;
}
}
Instance of Symbol 470 MovieClip "dip" in Frame 15
onClipEvent (enterFrame) {
this.a2.ammo = _root.multiammo;
this.a3.ammo = _root.fireammo;
this.a4.ammo = _root.bombammo;
this.a5.ammo = _root.goldammo;
this._x = _root.cam._x;
this._y = _root.cam._y;
arrowz = _root.arrowarray;
}
Frame 16
turn = 1;
stop();
Frame 17
prevFrame();
Frame 18
arrowarray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
badarray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
removeall = 1;
aid = 0;
bid = 0;
stop();
Frame 19
prevFrame();
Frame 20
_root.wind = 10000;
Frame 21
stop();
Symbol 9 MovieClip [happa] Frame 1
this.gotoAndStop(Math.ceil(Math.random() * _totalframes));
kieru = 0;
this._alpha = 0;
randro = (Math.random() * 40) + 80;
this.onEnterFrame = function () {
this._x = this._x + (_root.wind * 20);
this._rotation = this._rotation + (_root.wind * randro);
this._alpha = 8 * (50 - Math.abs(kieru - 50));
kieru++;
if (kieru > 100) {
this.removeMovieClip();
}
};
Symbol 11 MovieClip [ti] Frame 1
zimen = Math.random() * 20;
this._visible = false;
this.onEnterFrame = function () {
okure--;
if (okure < 0) {
this._visible = true;
if (this._y < (zimen + 270)) {
addy = addy + _root.gravity;
addx = addx + _root.wind;
this._x = this._x + addx;
this._y = this._y + addy;
} else {
teisu = this._xscale / 20;
_root.tinuri.beginFill(16711680, 100);
_root.tinuri.lineStyle(undefined);
_root.tinuri.moveTo(this._x, this._y - (teisu / 2));
_root.tinuri.curveTo(this._x + teisu, this._y - (teisu / 2), this._x + teisu, this._y);
_root.tinuri.curveTo(this._x + teisu, this._y + (teisu / 2), this._x, this._y + (teisu / 2));
_root.tinuri.curveTo(this._x - teisu, this._y + (teisu / 2), this._x - teisu, this._y);
_root.tinuri.curveTo(this._x - teisu, this._y - (teisu / 2), this._x, this._y - (teisu / 2));
_root.tinuri.endFill();
this.removeMovieClip();
}
}
};
Symbol 17 MovieClip [shotfx2] Frame 8
removeMovieClip(this);
Symbol 22 MovieClip [shotfx] Frame 8
removeMovieClip(this);
Symbol 25 MovieClip [trail] Frame 11
removeMovieClip(this);
Symbol 37 MovieClip [lightring] Frame 18
removeMovieClip(this);
Symbol 44 MovieClip Frame 11
stop();
Symbol 47 MovieClip [arrowhit3] Frame 1
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
_root.hitresult3 = this._x;
if (_root.turn == 1) {
_root.hitresult = "wall";
}
if (_root.turn == 0) {
_root.hitresult2 = "wall";
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
this.onEnterFrame = function () {
syori();
if (Key.isDown(38)) {
this.removeMovieClip();
}
if (_root.removeall == 1) {
removeMovieClip(this);
}
};
Instance of Symbol 45 MovieClip in Symbol 47 MovieClip [arrowhit3] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 50 MovieClip [arrowhit2a] Frame 1
_root.attachMovie("shotfx2", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
frag = 50;
fft = 0;
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
syori();
};
Instance of Symbol 45 MovieClip in Symbol 50 MovieClip [arrowhit2a] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 51 MovieClip [arrowhit2] Frame 1
_root.attachMovie("shotfx2", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
frag = 50;
follow = 0;
_root.shoot = 0;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
syori();
};
Instance of Symbol 45 MovieClip in Symbol 51 MovieClip [arrowhit2] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 54 MovieClip [arrowhita] Frame 1
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
frag = 50;
fft = 0;
this.onEnterFrame = function () {
syori();
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (Key.isDown(38) && (_root.camera != mydepth)) {
this.removeMovieClip();
}
};
Instance of Symbol 45 MovieClip in Symbol 54 MovieClip [arrowhita] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Instance of Symbol 45 MovieClip in Symbol 56 MovieClip [mball] Frame 1
onClipEvent (enterFrame) {
fid++;
if (_parent.di == "r") {
_parent._x = _parent._x - 10;
}
if (_parent.di == "l") {
_parent._x = _parent._x + 10;
}
_root.attachMovie("fire", "fia" + fid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * 4), _y:_parent._y, _rotation:_parent._rotation});
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
if (this.hitTest("_root.tower")) {
_root.towerHP = _root.towerHP - 1;
removeMovieClip(_parent);
}
}
Symbol 74 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 1
this._visible = false;
Symbol 78 MovieClip [bad5] Frame 1
fft = 1;
speed = 6;
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (this.hitTest("_root.cam")) {
_parent.visible = true;
_parent.onscreen = 1;
} else {
_parent.visible = false;
_parent.onscreen = 1;
}
if (fft == 1) {
if (this._x > _root.tower._x) {
this._xscale = 100;
this._x = this._x - speed;
}
if (this._x < _root.tower._x) {
this._xscale = -100;
this._x = this._x + speed;
}
if (this.hitTest("_root.tower.door")) {
_root.towerHP = _root.towerHP - 5;
gotoAndStop ("die");
}
}
};
stop();
Instance of Symbol 75 MovieClip in Symbol 78 MovieClip [bad5] Frame 1
onClipEvent (enterFrame) {
this.h.gotoAndStop(2);
}
Symbol 78 MovieClip [bad5] Frame 2
fft = 10;
_root.attachMovie("expr", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
Instance of Symbol 58 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 60 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 62 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 60 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 62 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 64 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 68 MovieClip in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 74 MovieClip "h" in Symbol 78 MovieClip [bad5] Frame 2
onClipEvent (load) {
tt = 0;
gotoAndStop (4);
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
tt++;
sp++;
if (sp > 20) {
sp = 20;
}
if (tt > 20) {
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 20) {
_root.badarray[19] = 0;
} else if (_parent.id == 21) {
_root.badarray[20] = 0;
}
_root.badon--;
removeMovieClip(_parent);
tt = 0;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Symbol 89 MovieClip Frame 5
_root.attachMovie("mball", "fia" + fid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * 4), _y:_parent._y, _rotation:_parent._rotation, di:_parent.di});
Symbol 89 MovieClip Frame 10
_parent.ready = 1;
Symbol 90 MovieClip Frame 25
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 29) {
_root.badarray[19] = 0;
}
_root.kills++;
_root.badon--;
_root.money = _root.money + 30;
_root.defscore = _root.defscore + 120;
removeMovieClip(_parent);
Symbol 91 MovieClip [bad6] Frame 1
fft = 1;
speed = 2;
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (this.hitTest("_root.cam")) {
_parent.visible = true;
_parent.onscreen = 1;
} else {
_parent.visible = false;
_parent.onscreen = 1;
}
if (fft == 1) {
if (this._x > _root.tower._x) {
this._xscale = 100;
this._x = this._x - speed;
di = "r";
}
if (this._x < _root.tower._x) {
this._xscale = -100;
this._x = this._x + speed;
di = "l";
}
if ((di == "l") && (this._x > -150)) {
gotoAndStop ("att");
}
if ((di == "r") && (this._x < 450)) {
gotoAndStop ("att");
}
}
if (fft == 2) {
tta++;
if (tta >= ttatime) {
tta = 0;
gotoAndStop ("att");
}
}
if (fft == 3) {
if (ready == 1) {
ready = 0;
gotoAndStop ("stand");
}
}
};
stop();
Symbol 91 MovieClip [bad6] Frame 2
fft = 2;
Symbol 91 MovieClip [bad6] Frame 3
fft = 3;
Symbol 91 MovieClip [bad6] Frame 4
fft = 4;
Symbol 91 MovieClip [bad6] Frame 5
_root.kills++;
_root.money = _root.money + 30;
_root.defscore = _root.defscore + 120;
fft = 4;
Instance of Symbol 80 MovieClip in Symbol 91 MovieClip [bad6] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 82 MovieClip in Symbol 91 MovieClip [bad6] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 84 MovieClip in Symbol 91 MovieClip [bad6] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 86 MovieClip in Symbol 91 MovieClip [bad6] Frame 5
onClipEvent (load) {
tt = 0;
gotoAndStop (2);
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
tt++;
sp++;
if (sp > 20) {
sp = 20;
}
if (tt > 20) {
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 20) {
_root.badarray[19] = 0;
} else if (_parent.id == 21) {
_root.badarray[20] = 0;
}
_root.badon--;
removeMovieClip(_parent);
tt = 0;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 80 MovieClip in Symbol 91 MovieClip [bad6] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip [firemain] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
_parent._x = _parent._x + (_root.wind / 4);
if (_parent._y < 260) {
_parent._y = _parent._y + 10;
}
b = 0;
while (b < 20) {
if (this.hitTest(_root["bad" + b].hit)) {
_root["bad" + b].HP = _root["bad" + b].HP - 20;
}
b++;
}
_root.attachMovie("fire", "fi" + fid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * -20), _y:_parent._y, _rotation:_parent._rotation});
_root.attachMovie("fire", "fi" + fid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * 20), _y:_parent._y, _rotation:_parent._rotation});
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip [firemain] Frame 60
onClipEvent (enterFrame) {
this._visible = false;
_parent._x = _parent._x + (_root.wind / 4);
b = 0;
while (b < 20) {
if (this.hitTest(_root["bad" + b].hit)) {
_root["bad" + b].HP = _root["bad" + b].HP - 10;
}
b++;
}
_root.attachMovie("fire", "fi" + fid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * 20), _y:_parent._y, _rotation:_parent._rotation});
}
Symbol 94 MovieClip [firemain] Frame 100
removeMovieClip(this);
stop();
Symbol 105 MovieClip [fxl] Frame 16
removeMovieClip(this);
Symbol 111 MovieClip [ya2] Frame 1
fft = 1;
stop();
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
if (_root.targetmode == 1) {
t = 0;
while (t < 9) {
if (this.hitTest(_root.targets["ta" + t])) {
_root.targets["ta" + t].gotoAndStop(2);
_root.dip.ray["ta" + t].gotoAndStop(2);
_root.aid--;
_root.taron--;
follow = 0;
_root.shoot = 0;
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
w = 0;
while (w < 9) {
if (this.hitTest(_root.targets["wall" + w])) {
_root.attachMovie("arrowhit3a", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
w++;
}
t++;
}
}
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
this._x = maziaddx;
this._y = maziaddy;
if (_root.mato.hitTest(this._x, this._y, false)) {
_root.attachMovie("arrowhit3a", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
if (_root.hitoatari.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero.gotoAndStop("hit");
_root.hitoHP--;
sibuki = 11;
}
_root.attachMovie("arrowhit2a", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
removeMovieClip(this);
}
if (_root.hitoatari2.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero2.gotoAndStop("hit");
_root.hito2HP--;
sibuki = 11;
}
_root.attachMovie("arrowhit2a", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
if (this._y > 265) {
_root.attachMovie("arrowhita", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
i++;
}
};
Instance of Symbol 45 MovieClip in Symbol 111 MovieClip [ya2] Frame 1
onClipEvent (enterFrame) {
_root.attachMovie("trail", "tra", _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y, _rotation:_parent._rotation});
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 114 MovieClip [ya] Frame 1
follow = 1;
fft = 1;
stop();
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
if (_root.targetmode == 1) {
t = 0;
while (t < 9) {
if (this.hitTest(_root.targets["ta" + t])) {
_root.targets["ta" + t].gotoAndStop(2);
_root.dip.ray["ta" + t].gotoAndStop(2);
_root.aid--;
_root.taron--;
follow = 0;
_root.shoot = 0;
_root.turnchange = 1;
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
w = 0;
while (w < 9) {
if (this.hitTest(_root.targets["wall" + w])) {
_root.attachMovie("arrowhit3", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
w++;
}
t++;
}
}
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
this._x = maziaddx;
this._y = maziaddy;
if (_root.mato.hitTest(this._x, this._y, false)) {
_root.attachMovie("arrowhit3", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
if (_root.hitoatari.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero.gotoAndStop("hit");
_root.hitoHP--;
sibuki = 11;
}
_root.attachMovie("arrowhit2", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
removeMovieClip(this);
}
if (_root.hitoatari2.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero2.gotoAndStop("hit");
_root.hito2HP--;
sibuki = 11;
}
_root.attachMovie("arrowhit2", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
if (this._y > 265) {
_root.attachMovie("arrowhit", "ah", _root.getNextHighestDepth(), {_x:this._x, _y:this._y, _rotation:this._rotation});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
i++;
}
};
Instance of Symbol 45 MovieClip in Symbol 114 MovieClip [ya] Frame 1
onClipEvent (enterFrame) {
_root.attachMovie("trail", "tra", _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y, _rotation:_parent._rotation});
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 115 MovieClip [arrowhit] Frame 1
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hero._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
_root.turnchange = 1;
this.onEnterFrame = function () {
syori();
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (Key.isDown(38) && (_root.camera != mydepth)) {
this.removeMovieClip();
}
};
Instance of Symbol 45 MovieClip in Symbol 115 MovieClip [arrowhit] Frame 1
onClipEvent (enterFrame) {
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 133 MovieClip Frame 8
_parent.ready = 1;
Symbol 134 MovieClip Frame 45
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 29) {
_root.badarray[19] = 0;
}
_root.kills++;
_root.badon--;
_root.money = _root.money + 100;
_root.defscore = _root.defscore + 1000;
removeMovieClip(_parent);
Symbol 135 MovieClip [bad3] Frame 1
fft = 1;
speed = 2;
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (this.hitTest("_root.cam")) {
_parent.visible = true;
_parent.onscreen = 1;
} else {
_parent.visible = false;
_parent.onscreen = 1;
}
if (fft == 1) {
if (this._x > _root.tower._x) {
this._xscale = 100;
this._x = this._x - speed;
}
if (this._x < _root.tower._x) {
this._xscale = -100;
this._x = this._x + speed;
}
if (this.hitTest("_root.tower.door")) {
gotoAndStop ("att");
}
}
if (fft == 2) {
tta++;
if (tta >= ttatime) {
tta = 0;
gotoAndStop ("att");
}
}
if (fft == 3) {
if (ready == 1) {
ready = 0;
gotoAndStop ("stand");
}
}
if (fft == 5) {
if (ready == 1) {
ready = 0;
gotoAndStop ("walk");
}
}
};
stop();
Instance of Symbol 130 MovieClip in Symbol 135 MovieClip [bad3] Frame 1
onClipEvent (enterFrame) {
this.h.gotoAndStop(4);
}
Symbol 135 MovieClip [bad3] Frame 2
fft = 2;
Instance of Symbol 131 MovieClip in Symbol 135 MovieClip [bad3] Frame 2
onClipEvent (enterFrame) {
this.h.gotoAndStop(4);
}
Symbol 135 MovieClip [bad3] Frame 3
fft = 3;
Instance of Symbol 132 MovieClip in Symbol 135 MovieClip [bad3] Frame 3
onClipEvent (enterFrame) {
this.h.gotoAndStop(4);
}
Symbol 135 MovieClip [bad3] Frame 4
fft = 5;
Instance of Symbol 133 MovieClip in Symbol 135 MovieClip [bad3] Frame 4
onClipEvent (enterFrame) {
this.h.gotoAndStop(4);
}
Symbol 135 MovieClip [bad3] Frame 5
fft = 4;
Instance of Symbol 134 MovieClip in Symbol 135 MovieClip [bad3] Frame 5
onClipEvent (enterFrame) {
this.h.gotoAndStop(4);
}
Symbol 135 MovieClip [bad3] Frame 6
_root.kills++;
_root.money = _root.money + 100;
_root.defscore = _root.defscore + 100;
fft = 4;
Instance of Symbol 117 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 119 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 117 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 119 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 121 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 123 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 125 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 74 MovieClip "h" in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
tt = 0;
gotoAndStop (4);
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
tt++;
sp++;
if (sp > 20) {
sp = 20;
}
if (tt > 20) {
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 20) {
_root.badarray[19] = 0;
} else if (_parent.id == 21) {
_root.badarray[20] = 0;
}
_root.badon--;
removeMovieClip(_parent);
tt = 0;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 127 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 121 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 123 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 129 MovieClip in Symbol 135 MovieClip [bad3] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Symbol 144 MovieClip Frame 7
_root.towerHP = _root.towerHP - 2;
Symbol 144 MovieClip Frame 16
_parent.ready = 1;
Symbol 145 MovieClip Frame 12
_parent.ready = 1;
Symbol 146 MovieClip Frame 25
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 29) {
_root.badarray[19] = 0;
}
_root.kills++;
_root.badon--;
_root.money = _root.money + 50;
_root.defscore = _root.defscore + 200;
removeMovieClip(_parent);
Symbol 147 MovieClip [bad2] Frame 1
fft = 1;
speed = 3;
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (this.hitTest("_root.cam")) {
_parent.visible = true;
_parent.onscreen = 1;
} else {
_parent.visible = false;
_parent.onscreen = 1;
}
if (fft == 1) {
if (this._x > _root.tower._x) {
this._xscale = 100;
this._x = this._x - speed;
}
if (this._x < _root.tower._x) {
this._xscale = -100;
this._x = this._x + speed;
}
if (this.hitTest("_root.tower.door")) {
gotoAndStop ("att");
}
}
if (fft == 2) {
tta++;
if (tta >= ttatime) {
tta = 0;
gotoAndStop ("att");
}
}
if (fft == 3) {
if (ready == 1) {
ready = 0;
gotoAndStop ("stand");
}
}
if (fft == 5) {
if (ready == 1) {
ready = 0;
gotoAndStop ("walk");
}
}
};
stop();
Instance of Symbol 142 MovieClip in Symbol 147 MovieClip [bad2] Frame 1
onClipEvent (enterFrame) {
this.h.gotoAndStop(3);
}
Symbol 147 MovieClip [bad2] Frame 2
fft = 2;
Instance of Symbol 143 MovieClip in Symbol 147 MovieClip [bad2] Frame 2
onClipEvent (enterFrame) {
this.h.gotoAndStop(3);
}
Symbol 147 MovieClip [bad2] Frame 3
fft = 3;
Instance of Symbol 144 MovieClip in Symbol 147 MovieClip [bad2] Frame 3
onClipEvent (enterFrame) {
this.h.gotoAndStop(3);
}
Symbol 147 MovieClip [bad2] Frame 4
fft = 5;
Instance of Symbol 145 MovieClip in Symbol 147 MovieClip [bad2] Frame 4
onClipEvent (enterFrame) {
this.h.gotoAndStop(3);
}
Symbol 147 MovieClip [bad2] Frame 5
fft = 4;
Instance of Symbol 146 MovieClip in Symbol 147 MovieClip [bad2] Frame 5
onClipEvent (enterFrame) {
this.h.gotoAndStop(3);
}
Symbol 147 MovieClip [bad2] Frame 6
_root.kills++;
_root.money = _root.money + 50;
_root.defscore = _root.defscore + 100;
fft = 4;
Instance of Symbol 137 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 60 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 62 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 60 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 62 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 139 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 74 MovieClip "h" in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
tt = 0;
gotoAndStop (3);
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
tt++;
sp++;
if (sp > 20) {
sp = 20;
}
if (tt > 20) {
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 20) {
_root.badarray[19] = 0;
} else if (_parent.id == 21) {
_root.badarray[20] = 0;
}
_root.badon--;
removeMovieClip(_parent);
tt = 0;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 137 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 137 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 141 MovieClip in Symbol 147 MovieClip [bad2] Frame 6
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Symbol 151 MovieClip [goldtrail] Frame 13
removeMovieClip(this);
Symbol 155 MovieClip [golda] Frame 1
follow = 1;
fft = 1;
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
if (_root.targetmode == 1) {
t = 0;
while (t < 9) {
if (this.hitTest(_root.targets["ta" + t])) {
_root.targets["ta" + t].gotoAndStop(2);
_root.aid--;
_root.taron--;
follow = 0;
_root.shoot = 0;
_root.turnchange = 1;
removeMovieClip(this);
}
w = 0;
while (w < 9) {
if (this.hitTest(_root.targets["wall" + w])) {
gotoAndStop (2);
}
w++;
}
t++;
}
}
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
this._x = maziaddx;
this._y = maziaddy;
if (_root.mato.hitTest(this._x, this._y, false)) {
this.gotoAndStop(4);
break;
}
if (_root.hitoatari.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero.gotoAndStop("hit");
sibuki = 11;
}
this.gotoAndStop(2);
break;
}
if (_root.hitoatari2.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero2.gotoAndStop("hit");
sibuki = 11;
}
this.gotoAndStop(2);
break;
}
if (this._y > 265) {
this.gotoAndStop(2);
break;
}
i++;
}
};
stop();
Instance of Symbol 45 MovieClip in Symbol 155 MovieClip [golda] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + 3;
fid++;
_root.attachMovie("goldtrail", "tra", _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y, _rotation:_parent._rotation});
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 155 MovieClip [golda] Frame 2
_root.attachMovie("fxl", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hero._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
_root.turnchange = 1;
_root.attachMovie("lightring", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
Symbol 155 MovieClip [golda] Frame 3
_root.attachMovie("fxl", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
frag = 50;
follow = 0;
_root.shoot = 0;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
_root.attachMovie("lightring", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
Symbol 155 MovieClip [golda] Frame 4
_root.attachMovie("fxl", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
_root.hitresult3 = this._x;
if (_root.turn == 1) {
_root.hitresult = "wall";
}
if (_root.turn == 0) {
_root.hitresult2 = "wall";
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
_root.attachMovie("lightring", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
Symbol 157 MovieClip [proj] Frame 1
if (_root.removeall == 1) {
removeMovieClip(this);
}
Instance of Symbol 160 MovieClip in Symbol 164 MovieClip [fire] Frame 1
onClipEvent (enterFrame) {
zz = Math.random() * 5;
zz = zz + 1;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - zz;
_parent._x = _parent._x + _root.wind;
_parent._rotation = _parent._rotation + 6;
}
Symbol 164 MovieClip [fire] Frame 25
removeMovieClip(this);
Symbol 165 MovieClip [firea] Frame 1
fir = 1;
follow = 1;
fft = 1;
stop();
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
if (_root.targetmode == 1) {
t = 0;
while (t < 9) {
if (this.hitTest(_root.targets["ta" + t])) {
_root.targets["ta" + t].gotoAndStop(2);
_root.aid--;
_root.taron--;
follow = 0;
_root.shoot = 0;
_root.turnchange = 1;
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
removeMovieClip(this);
}
w = 0;
while (w < 9) {
if (this.hitTest(_root.targets["wall" + w])) {
gotoAndStop (4);
}
w++;
}
t++;
}
}
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
this._x = maziaddx;
this._y = maziaddy;
if (_root.mato.hitTest(this._x, this._y, false)) {
this.gotoAndStop(4);
break;
}
if (_root.hitoatari.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero.gotoAndStop("hit");
_root.hitoHP--;
sibuki = 11;
}
this.gotoAndStop(3);
break;
}
if (_root.hitoatari2.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero2.gotoAndStop("hit");
_root.hito2HP--;
sibuki = 11;
}
this.gotoAndStop(3);
break;
}
if (this._y > 265) {
this.gotoAndStop(2);
break;
}
i++;
}
};
Instance of Symbol 45 MovieClip in Symbol 165 MovieClip [firea] Frame 1
onClipEvent (enterFrame) {
_parent._x = _parent._x + 3;
fid++;
_root.attachMovie("fire", "fi" + fid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * 4), _y:_parent._y, _rotation:_parent._rotation});
_root.attachMovie("trail", "tra", _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y, _rotation:_parent._rotation});
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 165 MovieClip [firea] Frame 2
_root.frid++;
_root.attachMovie("firemain", "fire" + _root.frid, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hero._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
_root.turnchange = 1;
this.onEnterFrame = function () {
syori();
if (_root.removeall == 1) {
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
if (Key.isDown(38) && (_root.camera != mydepth)) {
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
this.removeMovieClip();
}
};
Instance of Symbol 45 MovieClip in Symbol 165 MovieClip [firea] Frame 2
onClipEvent (enterFrame) {
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 165 MovieClip [firea] Frame 3
_root.frid++;
_root.attachMovie("firemain", "fire" + _root.frid, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.attachMovie("shotfx2", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
frag = 50;
follow = 0;
_root.shoot = 0;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
this.onEnterFrame = function () {
if (_root.removeall == 1) {
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
syori();
};
Symbol 165 MovieClip [firea] Frame 4
_root.frid++;
_root.attachMovie("firemain", "fire" + _root.frid, _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
_root.hitresult3 = this._x;
if (_root.turn == 1) {
_root.hitresult = "wall";
}
if (_root.turn == 0) {
_root.hitresult2 = "wall";
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
this.onEnterFrame = function () {
syori();
if (Key.isDown(38)) {
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
this.removeMovieClip();
}
if (_root.removeall == 1) {
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
}
};
Symbol 170 MovieClip [expr] Frame 1
exid = 0;
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * 20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * 20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * 20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * 20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * 20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * -20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * -20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * -20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * -20), _y:this._y});
exid++;
_root.attachMovie("smo", "esfx" + exid, _root.getNextHighestDepth(), {_x:this._x + (Math.random() * -20), _y:this._y});
exid = 0;
Symbol 170 MovieClip [expr] Frame 10
removeMovieClip(this);
stop();
Instance of Symbol 160 MovieClip in Symbol 172 MovieClip [smo] Frame 1
onClipEvent (enterFrame) {
zz = Math.random() * 5;
zz = zz + 1;
}
onClipEvent (enterFrame) {
_parent._y = _parent._y - zz;
_parent._x = _parent._x + _root.wind;
_parent._rotation = _parent._rotation + 6;
}
Symbol 172 MovieClip [smo] Frame 24
removeMovieClip(this);
Symbol 174 MovieClip [boar] Frame 1
follow = 1;
fft = 1;
frag = 5;
_root.camera++;
divide = 8;
addx = addx / divide;
addy = addy / divide;
maziaddx = this._x;
maziaddy = this._y;
this.onEnterFrame = function () {
if (_root.targetmode == 1) {
t = 0;
while (t < 9) {
if (this.hitTest(_root.targets["ta" + t])) {
_root.targets["ta" + t].gotoAndStop(2);
_root.aid--;
_root.taron--;
follow = 0;
_root.shoot = 0;
_root.turnchange = 1;
removeMovieClip(this);
}
w = 0;
while (w < 9) {
if (this.hitTest(_root.targets["wall" + w])) {
gotoAndStop (2);
}
w++;
}
t++;
}
}
if (_root.camera == mydepth) {
frag--;
if (frag < 0) {
rootaddx = ((((-this._x) * (_root._xscale / 100)) - _root._x) + 200) / (3 / (_root._xscale / 100));
rootaddy = ((((-this._y) * (_root._xscale / 100)) - _root._y) + 150) / (3 / (_root._xscale / 100));
_root._x = _root._x + rootaddx;
_root._y = _root._y + rootaddy;
}
}
addy = addy + (_root.gravity / divide);
addx = addx + (_root.wind / divide);
this._rotation = (Math.atan2(addy, addx) * 180) / 3.141593;
i = 0;
while (i < divide) {
maziaddx = maziaddx + addx;
maziaddy = maziaddy + addy;
this._x = maziaddx;
this._y = maziaddy;
if (_root.mato.hitTest(this._x, this._y, false)) {
this.gotoAndStop(4);
break;
}
if (_root.hitoatari.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero.gotoAndStop("hit");
sibuki = 11;
}
this.gotoAndStop(2);
break;
}
if (_root.hitoatari2.hitTest(this._x, this._y, false)) {
sibuki = 5;
if (this._y < 250) {
_root.hero2.gotoAndStop("hit");
sibuki = 11;
}
this.gotoAndStop(2);
break;
}
if (this._y > 265) {
this.gotoAndStop(2);
break;
}
i++;
}
};
stop();
Instance of Symbol 45 MovieClip in Symbol 174 MovieClip [boar] Frame 1
onClipEvent (load) {
_parent.sid = 0;
att = 0;
}
onClipEvent (enterFrame) {
att++;
_parent.sid++;
if (att > 6) {
_root.attachMovie("smo", "sfx" + _parent.sid, _root.getNextHighestDepth(), {_x:_parent._x + (Math.random() * 3), _y:_parent._y});
att = 0;
}
_root.attachMovie("trail", "tra", _root.getNextHighestDepth(), {_x:_parent._x, _y:_parent._y, _rotation:_parent._rotation});
this._visible = false;
if (_root.removeall == 1) {
removeMovieClip(_parent);
}
}
Symbol 174 MovieClip [boar] Frame 2
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hero._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
_root.turnchange = 1;
_root.attachMovie("expr", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
Symbol 174 MovieClip [boar] Frame 3
_root.attachMovie("shotfx2", "fx2", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
frag = 50;
follow = 0;
_root.shoot = 0;
fft = 0;
if (_root.turn == 1) {
_root.hitresult = this._x - _root.hito._x;
}
if (_root.turn == 0) {
_root.hitresult2 = this._x;
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
tikazu = 0;
if ((_root.hitoHP == 0) || (_root.hito2HP == 0)) {
tikazu = 40;
frag = frag + 50;
}
i = 1;
while (i < (sibuki + tikazu)) {
_root.tidep = _root.tidep + 1000;
_root.attachMovie("ti", "ti" + _root.tidep, _root.tidep);
_root["ti" + _root.tidep]._x = this._x;
_root["ti" + _root.tidep]._y = this._y;
_root["ti" + _root.tidep].addx = ((addx * 4) / i) + (((-addx) * tikazu) / 25);
_root["ti" + _root.tidep].addy = (((addy * 3) * Math.random()) - 0.5) - ((tikazu * 2) / (i + 10));
min = Math.random() * 80;
_root["ti" + _root.tidep]._xscale = _xscale - min;
_root["ti" + _root.tidep]._yscale = _yscale - min;
_root["ti" + _root.tidep].okure = i;
i++;
}
_root.attachMovie("expr", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
Symbol 174 MovieClip [boar] Frame 4
_root.attachMovie("shotfx", "fx", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
follow = 0;
_root.shoot = 0;
frag = 50;
fft = 0;
_root.hitresult3 = this._x;
if (_root.turn == 1) {
_root.hitresult = "wall";
}
if (_root.turn == 0) {
_root.hitresult2 = "wall";
}
_root.turnchange = 1;
if (_root.wind != 0) {
_root.wind = _root.wind + ((Math.random() * 0.2) - 0.1);
if (Math.abs(_root.wind) > 0.5) {
_root.wind = (_root.wind / Math.abs(_root.wind)) * 0.5;
}
}
_root.attachMovie("expr", "explo", _root.getNextHighestDepth(), {_x:this._x, _y:this._y});
if (id == 1) {
_root.arrowarray[0] = 0;
} else if (id == 2) {
_root.arrowarray[1] = 0;
} else if (id == 3) {
_root.arrowarray[2] = 0;
} else if (id == 4) {
_root.arrowarray[3] = 0;
} else if (id == 5) {
_root.arrowarray[4] = 0;
} else if (id == 6) {
_root.arrowarray[5] = 0;
} else if (id == 7) {
_root.arrowarray[6] = 0;
} else if (id == 8) {
_root.arrowarray[7] = 0;
} else if (id == 9) {
_root.arrowarray[8] = 0;
} else if (id == 10) {
_root.arrowarray[9] = 0;
} else if (id == 11) {
_root.arrowarray[10] = 0;
} else if (id == 12) {
_root.arrowarray[11] = 0;
} else if (id == 13) {
_root.arrowarray[12] = 0;
} else if (id == 14) {
_root.arrowarray[13] = 0;
} else if (id == 15) {
_root.arrowarray[14] = 0;
} else if (id == 16) {
_root.arrowarray[15] = 0;
} else if (id == 17) {
_root.arrowarray[16] = 0;
} else if (id == 18) {
_root.arrowarray[17] = 0;
} else if (id == 19) {
_root.arrowarray[18] = 0;
} else if (id == 20) {
_root.arrowarray[19] = 0;
} else if (id == 21) {
_root.arrowarray[20] = 0;
} else if (id == 22) {
_root.arrowarray[21] = 0;
} else if (id == 23) {
_root.arrowarray[22] = 0;
} else if (id == 24) {
_root.arrowarray[23] = 0;
} else if (id == 25) {
_root.arrowarray[24] = 0;
} else if (id == 26) {
_root.arrowarray[25] = 0;
} else if (id == 27) {
_root.arrowarray[26] = 0;
} else if (id == 28) {
_root.arrowarray[27] = 0;
} else if (id == 29) {
_root.arrowarray[28] = 0;
} else if (id == 30) {
_root.arrowarray[29] = 0;
} else if (id == 31) {
_root.arrowarray[30] = 0;
} else if (id == 32) {
_root.arrowarray[31] = 0;
} else if (id == 33) {
_root.arrowarray[32] = 0;
} else if (id == 34) {
_root.arrowarray[33] = 0;
} else if (id == 35) {
_root.arrowarray[34] = 0;
} else if (id == 36) {
_root.arrowarray[35] = 0;
} else if (id == 37) {
_root.arrowarray[36] = 0;
} else if (id == 38) {
_root.arrowarray[37] = 0;
} else if (id == 39) {
_root.arrowarray[38] = 0;
} else if (id == 40) {
_root.arrowarray[39] = 0;
}
removeMovieClip(this);
Symbol 179 MovieClip Frame 4
_root.towerHP--;
Symbol 179 MovieClip Frame 10
_parent.ready = 1;
Symbol 180 MovieClip Frame 17
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 29) {
_root.badarray[19] = 0;
}
_root.kills++;
_root.badon--;
_root.money = _root.money + 20;
_root.defscore = _root.defscore + 100;
removeMovieClip(_parent);
Symbol 181 MovieClip [bad] Frame 1
fft = 1;
speed = 3;
this.onEnterFrame = function () {
if (_root.removeall == 1) {
removeMovieClip(this);
}
if (this.hitTest("_root.cam")) {
_parent.visible = true;
_parent.onscreen = 1;
} else {
_parent.visible = false;
_parent.onscreen = 1;
}
if (fft == 1) {
if (this._x > _root.tower._x) {
this._xscale = 100;
this._x = this._x - speed;
}
if (this._x < _root.tower._x) {
this._xscale = -100;
this._x = this._x + speed;
}
if (this.hitTest("_root.tower.door")) {
gotoAndStop ("att");
}
}
if (fft == 2) {
tta++;
if (tta >= ttatime) {
tta = 0;
gotoAndStop ("att");
}
}
if (fft == 3) {
if (ready == 1) {
ready = 0;
gotoAndStop ("stand");
}
}
};
stop();
Instance of Symbol 177 MovieClip in Symbol 181 MovieClip [bad] Frame 1
onClipEvent (enterFrame) {
this.h.gotoAndStop(2);
}
Symbol 181 MovieClip [bad] Frame 2
fft = 2;
Instance of Symbol 178 MovieClip in Symbol 181 MovieClip [bad] Frame 2
onClipEvent (load) {
_parent.tta = 0;
_parent.ttatime = 20;
}
onClipEvent (enterFrame) {
this.h.gotoAndStop(2);
}
Symbol 181 MovieClip [bad] Frame 3
fft = 3;
Instance of Symbol 179 MovieClip in Symbol 181 MovieClip [bad] Frame 3
onClipEvent (enterFrame) {
this.h.gotoAndStop(2);
}
Symbol 181 MovieClip [bad] Frame 4
fft = 4;
Instance of Symbol 180 MovieClip in Symbol 181 MovieClip [bad] Frame 4
onClipEvent (enterFrame) {
this.h.gotoAndStop(2);
}
Symbol 181 MovieClip [bad] Frame 5
_root.kills++;
_root.money = _root.money + 20;
_root.defscore = _root.defscore + 100;
fft = 4;
Instance of Symbol 58 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 60 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 60 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 62 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 62 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 64 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 176 MovieClip in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
sp++;
if (sp > 20) {
sp = 20;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 74 MovieClip "h" in Symbol 181 MovieClip [bad] Frame 5
onClipEvent (load) {
tt = 0;
gotoAndStop (2);
sp = -10;
lr = Math.random() * 10;
}
onClipEvent (enterFrame) {
tt++;
sp++;
if (sp > 20) {
sp = 20;
}
if (tt > 20) {
if (_parent.id == 1) {
_root.badarray[0] = 0;
} else if (_parent.id == 2) {
_root.badarray[1] = 0;
} else if (_parent.id == 3) {
_root.badarray[2] = 0;
} else if (_parent.id == 4) {
_root.badarray[3] = 0;
} else if (_parent.id == 5) {
_root.badarray[4] = 0;
} else if (_parent.id == 6) {
_root.badarray[5] = 0;
} else if (_parent.id == 7) {
_root.badarray[6] = 0;
} else if (_parent.id == 8) {
_root.badarray[7] = 0;
} else if (_parent.id == 9) {
_root.badarray[8] = 0;
} else if (_parent.id == 10) {
_root.badarray[9] = 0;
} else if (_parent.id == 11) {
_root.badarray[10] = 0;
} else if (_parent.id == 12) {
_root.badarray[11] = 0;
} else if (_parent.id == 13) {
_root.badarray[12] = 0;
} else if (_parent.id == 14) {
_root.badarray[13] = 0;
} else if (_parent.id == 15) {
_root.badarray[14] = 0;
} else if (_parent.id == 16) {
_root.badarray[15] = 0;
} else if (_parent.id == 17) {
_root.badarray[16] = 0;
} else if (_parent.id == 18) {
_root.badarray[17] = 0;
} else if (_parent.id == 19) {
_root.badarray[18] = 0;
} else if (_parent.id == 20) {
_root.badarray[19] = 0;
} else if (_parent.id == 21) {
_root.badarray[20] = 0;
}
_root.badon--;
removeMovieClip(_parent);
tt = 0;
}
this._y = this._y + sp;
this._x = this._x + (5 - lr);
this._rotation = this._rotation + lr;
}
Instance of Symbol 183 MovieClip in Symbol 184 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 2;
}
Symbol 637 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 215 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 218 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 218 MovieClip Frame 201
_root.nextFrame();
Symbol 235 MovieClip Frame 1
stop();
Symbol 235 MovieClip Frame 2
stop();
Symbol 237 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 1
stop();
Symbol 243 MovieClip Frame 2
stop();
Instance of Symbol 235 MovieClip "yumi" in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.xxc == 1) {
this._xscale = -100;
}
}
Instance of Symbol 243 MovieClip "aa" in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.xxc == 1) {
this._xscale = -100;
}
}
Symbol 244 MovieClip Frame 15
ready = 1;
Instance of Symbol 235 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.xxc == 1) {
this._xscale = -100;
}
}
Instance of Symbol 243 MovieClip in Symbol 245 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.xxc == 1) {
this._xscale = -100;
}
}
Symbol 245 MovieClip Frame 9
stop();
Instance of Symbol 225 MovieClip "bar" in Symbol 246 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.defender == 1) {
this._visible = false;
}
}
Instance of Symbol 235 MovieClip "yumi" in Symbol 246 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.xxc == 1) {
this._xscale = -100;
}
}
Instance of Symbol 243 MovieClip "aa" in Symbol 246 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent._parent.xxc == 1) {
this._xscale = -100;
}
}
Symbol 246 MovieClip Frame 60
gotoAndStop (1);
Instance of Symbol 244 MovieClip "m" in Symbol 246 MovieClip Frame 61
onClipEvent (enterFrame) {
if (ready == 1) {
_parent.gotoAndPlay(1);
}
}
Symbol 246 MovieClip Frame 62
dead = 1;
Symbol 273 Button
on (release) {
gotoAndPlay ("vs");
}
Symbol 277 Button
on (release) {
getURL ("http://www.armorgames.com", "blank");
}
Symbol 278 Button
on (release) {
gotoAndPlay ("vv");
}
Symbol 279 Button
on (release) {
play();
}
Symbol 286 Button
on (release) {
getURL ("http://armorgames.com/news", "blank");
}
Symbol 301 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 2
_root.levelscore = _root.levelscore + 1000;
play();
Symbol 301 MovieClip Frame 11
stop();
Symbol 309 Button
on (release) {
_root.cpumode = 1;
_root.levellevel = 1;
_root.gotoAndPlay("cpu2");
_root.hitoHP = 2;
_root.hito2HP = 2;
}
Symbol 315 Button
on (release) {
_root.level = 1;
_root.targetmode = 1;
_root.gotoAndPlay("targets");
_root.hitoHP = 2;
}
Symbol 320 Button
on (release) {
_root.level = 1;
_root.deftmode = 1;
_root.gotoAndPlay("def");
}
Symbol 324 Button
on (release) {
gotoAndPlay (1);
}
Symbol 325 Button
on (release) {
play();
}
Symbol 330 Button
on (release) {
getURL ("http://rankz.armorbot.com/kingdombow/", "blank");
}
Symbol 331 Button
on (release) {
getURL ("http://rankz.armorbot.com/kingdombowtar/", "blank");
}
Symbol 332 Button
on (release) {
getURL ("http://rankz.armorbot.com/kingbowdeff/", "blank");
}
Symbol 336 MovieClip Frame 1
stop();
Symbol 343 Button
on (release) {
_root.vs = 1;
_root.hitoHP = _root.gameHP;
_root.hito2HP = _root.gameHP;
_root.gotoAndPlay("game");
}
Symbol 353 Button
on (release) {
_root.gameHP = _root.gameHP - 1;
if (_root.gameHP < 1) {
_root.gameHP = 9;
}
}
Symbol 354 Button
on (release) {
_root.gameHP = _root.gameHP + 1;
if (_root.gameHP > 9) {
_root.gameHP = 1;
}
}
Symbol 355 Button
on (release) {
_root.stage = _root.stage - 1;
if (_root.stage < 1) {
_root.stage = 9;
}
}
Symbol 356 Button
on (release) {
_root.stage = _root.stage + 1;
if (_root.stage > 9) {
_root.stage = 1;
}
}
Symbol 357 MovieClip Frame 1
if (_root.skiper == 1) {
_root.skiper = 0;
gotoAndStop ("vs");
}
Symbol 357 MovieClip Frame 66
stop();
Symbol 357 MovieClip Frame 67
ta1.play();
Symbol 357 MovieClip Frame 94
gotoAndPlay ("1p");
Symbol 357 MovieClip Frame 95
Symbol 357 MovieClip Frame 96
ta2.play();
Symbol 357 MovieClip Frame 122
gotoAndPlay ("vs");
Symbol 357 MovieClip Frame 138
stop();
Symbol 357 MovieClip Frame 152
gotoAndPlay (1);
Symbol 357 MovieClip Frame 153
stop();
Instance of Symbol 336 MovieClip in Symbol 357 MovieClip Frame 153
onClipEvent (load) {
if (_root.multi != 1) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.multi == 1) {
_root.multi = 0;
this.gotoAndStop(2);
} else {
_root.multi = 1;
this.gotoAndStop(1);
}
}
Instance of Symbol 336 MovieClip in Symbol 357 MovieClip Frame 153
onClipEvent (load) {
if (!_root.wall) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.wall) {
_root.wall = false;
this.gotoAndStop(2);
} else {
_root.wall = true;
this.gotoAndStop(1);
}
}
Instance of Symbol 336 MovieClip in Symbol 357 MovieClip Frame 153
onClipEvent (load) {
if (_root.wind == 0) {
this.gotoAndStop(2);
}
}
on (release) {
if (_root.wind == 0) {
_root.wind = Math.random() - 0.5;
this.gotoAndStop(1);
} else {
_root.wind = 0;
this.gotoAndStop(2);
}
}
Symbol 366 MovieClip Frame 1
gotoAndStop(_root.stage);
Symbol 366 MovieClip Frame 3
stop();
Symbol 374 MovieClip Frame 1
gotoAndStop(_root.stage);
Symbol 374 MovieClip Frame 2
stop();
Symbol 382 MovieClip Frame 1
gotoAndStop(_root.stage);
stop();
Symbol 382 MovieClip Frame 3
stop();
Symbol 389 MovieClip Frame 1
gotoAndStop(_root.stage);
stop();
Symbol 396 MovieClip Frame 1
gotoAndStop(_root.stage);
Symbol 401 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.turn == 1) {
this.kaku.text = (-Math.round(_root.hero.kakudo * 1000)) / 1000;
this.powe.text = (Math.round(_root.hero.power * 1000) / 1000) * 4;
this.sen._rotation = _root.hero.kakudo + 180;
this.sen._xscale = this.powe.text;
pradian = (this.sen._rotation * 3.141593) / 180;
px = (Math.cos(pradian) * this.powe.text) * 2.5;
py = (Math.sin(pradian) * this.powe.text) * 2.5;
this.powe._x = px - 55;
this.powe._y = py;
} else if (_root.turn == 2) {
this.kaku.text = (Math.round(_root.hero2.kakudo * 1000) / 1000) + 180;
this.powe.text = (Math.round(_root.hero2.power * 1000) / 1000) * 4;
this.sen._rotation = _root.hero2.kakudo + 180;
this.sen._xscale = this.powe.text;
pradian = (this.sen._rotation * 3.141593) / 180;
px = (Math.cos(pradian) * this.powe.text) * 2.5;
py = (Math.sin(pradian) * this.powe.text) * 2.5;
this.powe._x = px - 55;
this.powe._y = py;
}
};
Symbol 419 MovieClip Frame 1
stop();
Symbol 423 MovieClip Frame 11
stop();
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 74
_root.removeall = 1;
if (_root.cpumode == 1) {
_root.gotoAndPlay("nexter");
} else {
_root.gotoAndPlay(1);
}
Symbol 427 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
var _local2 = {ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0};
parentColor.setTransform(_local2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
Symbol 431 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 435 Button
on (release) {
_root.gameover = 1;
_root.gotoAndStop("nexter");
}
Symbol 438 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 1
stop();
Instance of Symbol 301 MovieClip "ta2" in Symbol 442 MovieClip Frame 1
onClipEvent (load) {
_root.taron = 8;
}
Symbol 448 MovieClip Frame 1
stop();
Symbol 464 MovieClip Frame 1
stop();
Symbol 470 MovieClip Frame 1
if (_root.cpumode == 1) {
gotoAndStop (2);
}
if (_root.targetmode == 1) {
gotoAndStop (3);
}
if (_root.defender == 1) {
gotoAndStop (4);
}
stop();
Instance of Symbol 433 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (load) {
ff = 1;
tt = 0;
qq = "m";
}
onClipEvent (enterFrame) {
if ((Key.isDown(81) && (qq == "m")) && (tt == 0)) {
tt = 10;
qq = "l";
_quality = "low";
}
if ((Key.isDown(81) && (qq == "h")) && (tt == 0)) {
tt = 10;
qq = "m";
_quality = "medium";
}
if ((Key.isDown(81) && (qq == "l")) && (tt == 0)) {
tt = 10;
qq = "h";
_quality = "high";
}
if ((Key.isDown(72) && (ff == 1)) && (tt == 0)) {
tt = 10;
ff = 2;
nextFrame();
}
tt--;
if (tt < 0) {
tt = 0;
}
if ((Key.isDown(72) && (ff == 2)) && (tt == 0)) {
ff = 1;
tt = 10;
prevFrame();
}
}
Instance of Symbol 434 MovieClip in Symbol 470 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.power != 1) {
this._visible = false;
} else {
this._visible = true;
}
}
Instance of Symbol 442 MovieClip "ray" in Symbol 470 MovieClip Frame 3
onClipEvent (load) {
gotoAndStop(_root.level);
}
Instance of Symbol 464 MovieClip "a1" in Symbol 470 MovieClip Frame 4
onClipEvent (load) {
_root.arsel = 1;
}
onClipEvent (enterFrame) {
if (_root.arsel == 1) {
this.box.gotoAndStop(2);
} else if (_root.arsel != 1) {
this.box.gotoAndStop(1);
}
if (_root.arsel == 2) {
if (_parent.a2.ammo == 0) {
_root.arsel = 1;
}
_parent.a2.box.gotoAndStop(2);
} else if (_root.arsel != 2) {
_parent.a2.box.gotoAndStop(1);
}
if (_root.arsel == 3) {
if (_parent.a3.ammo == 0) {
_root.arsel = 1;
}
_parent.a3.box.gotoAndStop(2);
} else if (_root.arsel != 3) {
_parent.a3.box.gotoAndStop(1);
}
if (_root.arsel == 4) {
if (_parent.a4.ammo == 0) {
_root.arsel = 1;
}
_parent.a4.box.gotoAndStop(2);
} else if (_root.arsel != 4) {
_parent.a4.box.gotoAndStop(1);
}
if (_root.arsel == 5) {
if (_parent.a5.ammo == 0) {
_root.arsel = 1;
}
_parent.a5.box.gotoAndStop(2);
} else if (_root.arsel != 5) {
_parent.a5.box.gotoAndStop(1);
}
if (Key.isDown(49)) {
_root.arsel = 1;
}
if (Key.isDown(50) && (_parent.a2.ammo > 0)) {
_root.arsel = 2;
}
if (Key.isDown(51) && (_parent.a3.ammo > 0)) {
_root.arsel = 3;
}
if (Key.isDown(52) && (_parent.a4.ammo > 0)) {
_root.arsel = 4;
}
if (Key.isDown(53) && (_parent.a5.ammo > 0)) {
_root.arsel = 5;
}
}
Instance of Symbol 464 MovieClip "a2" in Symbol 470 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 464 MovieClip "a3" in Symbol 470 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 464 MovieClip "a4" in Symbol 470 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 464 MovieClip "a5" in Symbol 470 MovieClip Frame 4
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 197 MovieClip "bar" in Symbol 470 MovieClip Frame 4
onClipEvent (load) {
per = 0;
}
onClipEvent (enterFrame) {
per = Math.round(100 * (_root.kills / _root.defgoal));
gotoAndStop(per);
}
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 20
stop();
Symbol 473 MovieClip Frame 40
stop();
Symbol 482 MovieClip Frame 82
dd = 1;
stop();
Symbol 483 MovieClip Frame 1
_root.wind = 0;
stop();
Instance of Symbol 301 MovieClip "ta2" in Symbol 483 MovieClip Frame 1
onClipEvent (load) {
_root.taron = 8;
}
Symbol 483 MovieClip Frame 2
_root.wind = 0;
Symbol 483 MovieClip Frame 3
_root.wind = 0;
Symbol 483 MovieClip Frame 4
_root.wind = Math.random() - 0.5;
stop();
Instance of Symbol 301 MovieClip "ta2" in Symbol 483 MovieClip Frame 4
onClipEvent (load) {
_root.taron = 8;
}
Symbol 483 MovieClip Frame 5
_root.wind = 0;
stop();
Symbol 483 MovieClip Frame 6
_root.wind = 0;
Symbol 491 MovieClip Frame 1
stop();
Symbol 491 MovieClip Frame 38
_root.gotoAndStop("nexter");
Symbol 495 MovieClip Frame 1
stop();
Symbol 497 MovieClip Frame 1
this._visible = false;
Symbol 502 MovieClip Frame 1
gotoAndStop(_root.upgrade);
Symbol 503 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 2
stop();
Symbol 522 Button
on (release) {
_root.shots = 0;
_root.tarend = 0;
_root.level = _root.level + 1;
_root.stage = _root.stage + 1;
if (_root.stage > 5) {
_root.stage = 1;
}
_root.levelscore = 0;
_root.gotoAndPlay("targets");
}
Symbol 523 MovieClip Frame 58
stop();
Symbol 527 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.tname;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.targetscore;
__rankz_send__("MjQ5NWolZSVhJW4lcw==", "aEZ5eExPRG0=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/kingdombowtar/", "blank");
_root.gotoAndPlay(1);
}
Symbol 531 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 540 Button
on (release) {
if (_root.stage > 5) {
_root.stage = 1;
}
_root.levelscore = 0;
_root.stage = _root.stage + 1;
_root.level = _root.level + 1;
_root.hitoHP = 2;
_root.hito2HP = 2;
_root.gotoAndPlay("cpu2");
}
Symbol 541 MovieClip Frame 56
_root.cpuscore = _root.cpuscore + _root.levelscore;
stop();
Symbol 551 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = par3;
par227.c2NvcmUx = par4 + "Z";
par227.c2NvcmUx = par227.c2NvcmUx.split("0").join("U");
par227.c2NvcmUx = par227.c2NvcmUx.split("").join("A");
par227.c2NvcmUx = par227.c2NvcmUx.split("AU").join("Y");
par227.c2NvcmUx = par227.c2NvcmUx.split("A1").join("B");
par227.c2NvcmUx = par227.c2NvcmUx.split(".").join("N");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/as3_v0.php", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.tname;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.cpuscore;
__rankz_send__("MjQ5N2olZSVhJW4lcw==", "bGZQc1hsdWg=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/kingdombow/", "blank");
_root.gotoAndPlay(1);
}
Symbol 565 Button
on (release) {
_root.upgrade = _root.upgrade + 1;
_root.money = _root.money - _root.upcost;
_root.towerHP = _root.towerHP + 25;
nextFrame();
}
Symbol 567 MovieClip Frame 1
stop();
Symbol 570 Button
on (release) {
_root.archer = _root.archer + 1;
_root.money = _root.money - _root.archcost;
_root.archcost = _root.archcost * 2;
}
Symbol 572 MovieClip Frame 1
stop();
Symbol 575 Button
on (release) {
_root.towerHP = _root.towerHP + 10;
_root.money = _root.money - 100;
}
Symbol 577 MovieClip Frame 1
stop();
Symbol 588 Button
on (release) {
_root.multiammo = _root.multiammo + 10;
_root.money = _root.money - 100;
}
Symbol 590 MovieClip Frame 1
stop();
Symbol 593 Button
on (release) {
_root.fireammo = _root.fireammo + 10;
_root.money = _root.money - 200;
}
Symbol 595 MovieClip Frame 1
stop();
Symbol 598 Button
on (release) {
_root.bombammo = _root.bombammo + 5;
_root.money = _root.money - 500;
}
Symbol 600 MovieClip Frame 1
stop();
Symbol 603 Button
on (release) {
_root.goldammo = _root.goldammo + 1;
_root.money = _root.money - 1000;
}
Symbol 605 MovieClip Frame 1
stop();
Instance of Symbol 567 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < _root.upcost) {
gotoAndStop (2);
}
if (_root.upgrade == 3) {
gotoAndStop (2);
}
}
Instance of Symbol 572 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < _root.archcost) {
gotoAndStop (2);
} else {
if (_root.upgrade == 1) {
gotoAndStop (2);
}
if (_root.upgrade == 2) {
if (_root.archer == 2) {
gotoAndStop (2);
}
if (_root.archer <= 1) {
gotoAndStop (1);
}
}
if (_root.upgrade == 3) {
if (_root.archer == 4) {
gotoAndStop (2);
}
if (_root.archer < 4) {
gotoAndStop (1);
}
}
}
}
Instance of Symbol 577 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < 100) {
gotoAndStop (2);
}
if (_root.towerHP >= _root.towerMAXHP) {
gotoAndStop (2);
}
}
Instance of Symbol 590 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < 100) {
gotoAndStop (2);
}
}
Instance of Symbol 595 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < 200) {
gotoAndStop (2);
}
}
Instance of Symbol 600 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < 500) {
gotoAndStop (2);
}
}
Instance of Symbol 605 MovieClip in Symbol 606 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.money < 1000) {
gotoAndStop (2);
}
}
Symbol 622 Button
on (release) {
if (_root.stage > 5) {
_root.stage = 1;
}
_root.stage = _root.stage + 1;
_root.level = _root.level + 1;
_root.bid = 0;
_root.badon = 0;
_root.kills = 0;
_root.atter = 1;
_root.atrate = _root.atrate - (_root.atrate / 9);
_root.atrate2 = _root.atrate2 - (_root.atrate / 9);
_root.atrate3 = _root.atrate3 - (_root.atrate / 9);
_root.attime = _root.atrate - 5;
_root.defgoal = _root.defgoal + (Math.ceil(_root.defgoal) / 2);
_root.removeall = 0;
_root.gotoAndPlay("def");
}
Symbol 624 MovieClip Frame 1
if (_root.upgrade == 2) {
_root.upcost = 2000;
}
Symbol 624 MovieClip Frame 75
stop();
Instance of Symbol 620 MovieClip in Symbol 624 MovieClip Frame 75
onClipEvent (enterFrame) {
if (_root.upgrade == 1) {
_root.towerMAXHP = 50;
}
if (_root.upgrade == 2) {
_root.towerMAXHP = 75;
}
if (_root.upgrade == 3) {
_root.towerMAXHP = 100;
}
if (_root.towerHP > _root.towerMAXHP) {
_root.towerHP = _root.towerMAXHP;
}
}
Symbol 627 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.tname;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.defscore;
__rankz_send__("MjY3NGolZSVhJW4lcw==", "bEtBZ0tPVmo=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/kingbowdeff/", "blank");
_root.gotoAndPlay(1);
}
Symbol 633 MovieClip Frame 1
if (((_root.level == 6) && (_root.targetmode == 1)) || ((_root.gameover == 1) && (_root.targetmode == 1))) {
gotoAndStop (2);
}
if ((_root.gameover != 1) && (_root.cpumode == 1)) {
_root.levelscore = _root.levelscore + 1000;
_root.levelscore = _root.levelscore - (_root.shots * 10);
gotoAndPlay (3);
}
if ((_root.gameover == 1) && (_root.cpumode == 1)) {
gotoAndStop (4);
}
if ((_root.gameover != 1) && (_root.defender == 1)) {
gotoAndStop (5);
}
if ((_root.gameover == 1) && (_root.defender == 1)) {
gotoAndStop (6);
}
if ((_root.targetmode == 1) && (_root.gameover != 1)) {
_root.levelscore = _root.levelscore - (_root.shots * 100);
_root.targetscore = _root.targetscore + _root.levelscore;
stop();
}
Symbol 633 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 5
_root.removeall = 1;