Frame 1
stop();
Instance of Symbol 36 MovieClip "player" in Frame 1
onClipEvent (load) {
_visible = false;
pl = 0;
}
on (release) {
_root.gotoAndPlay(2);
}
onClipEvent (enterFrame) {
if (pl == 1) {
_visible = true;
}
}
Instance of Symbol 38 MovieClip "vars" in Frame 1
onClipEvent (load) {
urls = "http://mjgames.servegame.org:8080/hi2/";
this.loadVariables((_root.vars.urls + "count.php?ran=") + random(3444), 0, "GET");
this.loadVariables((_root.vars.urls + "scorecount.php?ran=") + random(3444), 0, "GET");
this.loadVariables((_root.vars.urls + "durl.php?ran=") + random(3444), 0, "GET");
this.loadVariables((_root.vars.urls + "wurl.php?ran=") + random(3444), 0, "GET");
ll = 0;
}
onClipEvent (enterFrame) {
if ((durls != null) && (ll == 0)) {
ll = 1;
loadMovie ([_root.vars.durls], _root.lde);
}
}
Instance of Symbol 40 MovieClip "infobot" in Frame 1
onClipEvent (load) {
ttime = 0;
urls = _root._url;
pl = 0;
sub = 0;
}
onClipEvent (enterFrame) {
dat = new Date();
h = dat.getSeconds();
if (h != s) {
ttime++;
}
s = dat.getSeconds();
if ((pl == 1) && (sub == 0)) {
this.loadVariables((((_root.vars.urls + "receiveurl.php?ttime=") + ttime) + "&urls=") + urls, 0, "POST");
sub = 1;
}
}
Frame 2
Frame 3
stop();
_quality = "medium";
Instance of Symbol 44 MovieClip in Frame 3
onClipEvent (load) {
stopAllSounds();
}
Instance of Symbol 36 MovieClip in Frame 3
on (press) {
this.bu.gotoAndStop(2);
}
on (release) {
_root.pmode.pmode = 1;
stopAllSounds();
_root.varr.ply = 6;
if (_root.vars.stats == 1) {
this.loadVariables((_root.vars.urls + "pcount.php?ran=") + random(3444), 0, "GET");
}
}
Instance of Symbol 47 MovieClip in Frame 3
on (press) {
this.bu.gotoAndStop(2);
}
on (release) {
_root.pmode.pmode = 2;
stopAllSounds();
_root.varr.ply = 6;
if (_root.vars.stats == 1) {
this.loadVariables((_root.vars.urls + "scount.php?ran=") + random(3444), 0, "GET");
}
}
Instance of Symbol 49 MovieClip in Frame 3
on (press) {
this.bu.gotoAndStop(2);
}
on (release) {
_root.varr.ply = 4;
if (_root.vars.stats == 1) {
this.loadVariables((_root.vars.urls + "icount.php?ran=") + random(3444), 0, "GET");
}
}
Instance of Symbol 51 MovieClip in Frame 3
on (press) {
this.bu.gotoAndStop(2);
}
on (release) {
_root.varr.ply = 8;
if (_root.vars.stats == 1) {
this.loadVariables((_root.vars.urls + "hcount.php?ran=") + random(3444), 0, "GET");
}
}
Instance of Symbol 29 MovieClip "heli" in Frame 3
onClipEvent (enterFrame) {
_x = (_x - 2);
_alpha = 50;
if ((_x < 0) || (num == 1)) {
removeMovieClip(this);
}
}
Instance of Symbol 53 MovieClip "varr" in Frame 3
onClipEvent (load) {
t = 10;
fc = 1;
heliarray = new Array();
ply = 0;
this.loadVariables((_root.vars.urls + "test.php?ran=") + random(3444));
}
onClipEvent (enterFrame) {
if (ngo == 1) {
_root.stolen._visible = true;
}
if (ngo != 1) {
_root.stolen._visible = false;
t--;
if (t < 0) {
_root.heli.duplicateMovieClip("h" + fc, fc);
_root["h" + fc].id = fc;
_root["h" + fc]._x = 600;
_root["h" + fc]._y = (random(5) * 30) + 50;
heliarray[heliarray.length] = fc;
fc++;
t = 50;
}
if (ply > 0) {
i = 0;
while (i < heliarray.length) {
removeMovieClip(_root["h" + heliarray[i]]);
i++;
}
_root.gotoAndStop(ply);
}
}
}
Instance of Symbol 55 MovieClip "stolen" in Frame 3
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 59 MovieClip in Frame 3
onClipEvent (load) {
this.loadVariables((_root.vars.urls + "count.php?ran=") + random(3444), 0, "GET");
}
onClipEvent (enterFrame) {
txt = ("Played " + _root.vars.num) + " times";
txt2 = _root.vars.scores + " Score submitted";
}
Instance of Symbol 62 MovieClip in Frame 3
on (release) {
getURL (_root.vars.wurls, "_blank");
if (_root.vars.stats == 1) {
this.loadVariables((_root.vars.urls + "vcount.php?ran=") + random(3444), 0, "GET");
}
}
Instance of Symbol 44 MovieClip in Frame 3
onClipEvent (load) {
}
Instance of Symbol 104 MovieClip "bk" in Frame 4
on (release) {
_root.gotoAndStop(3);
}
Instance of Symbol 118 MovieClip "buy" in Frame 4
on (release) {
_root.buymenu.buy = 1;
_root.playerbuilding.buying = 1;
}
Frame 6
stop();
Instance of Symbol 89 MovieClip "playerbuilding" in Frame 6
onClipEvent (load) {
function pointtomouse() {
x = _root._xmouse;
y = _root._ymouse;
delta_x = x - maingunx;
delta_y = y - mainguny;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
if ((r > 60) && (r < 180)) {
r = 60;
}
if ((r > 179) && (r < 335)) {
r = 336;
}
this.guntop.gunpointer._rotation = r;
}
function findlinetoedge() {
if (ra < Math.PI) {
a = ((screenheight - mainguny) / Math.tan(ra - Math.PI)) + maingunx;
o = screenheight;
ground();
} else {
a = ((mainguny / Math.tan(ra - Math.PI)) * -1) + maingunx;
o = 0;
}
if (a > screenwidth) {
o = (Math.tan(ra) * (screenwidth - maingunx)) + mainguny;
a = screenwidth;
} else if (a < 0) {
a = 0;
o = ((Math.tan(ra) * maingunx) * -1) + mainguny;
}
bulletsize = _root.drawings.bulletstarty.length;
_root.drawings.bulletstartx[bulletsize] = maingunx + (Math.cos(ra) * 25);
_root.drawings.bulletstarty[bulletsize] = mainguny + (Math.sin(ra) * 25);
_root.drawings.bulletendx[bulletsize] = a;
_root.drawings.bulletendy[bulletsize] = o;
_root.drawings.bulletalpha[bulletsize] = 100;
_root.drawings.bulletposition[bulletsize] = 0;
}
function findlinetoedge2() {
if (manra < Math.PI) {
mana = ((screenheight - guny[gf]) / Math.tan(manra - Math.PI)) + gun1x;
mano = screenheight;
ground2();
} else {
mana = ((guny[gf] / Math.tan(manra - Math.PI)) * -1) + gun1x;
mano = 0;
}
if (mana > screenwidth) {
mano = (Math.tan(manra) * (screenwidth - gun1x)) + guny[gf];
mana = screenwidth;
} else if (mana < 0) {
mana = 0;
mano = ((Math.tan(manra) * gun1x) * -1) + guny[gf];
}
bulletsize = _root.drawings.bulletstarty.length;
_root.drawings.bulletstartx[bulletsize] = gun1x + (Math.cos(manra) * 25);
_root.drawings.bulletstarty[bulletsize] = guny[gf] + (Math.sin(manra) * 25);
_root.drawings.bulletendx[bulletsize] = mana;
_root.drawings.bulletendy[bulletsize] = mano;
_root.drawings.bulletalpha[bulletsize] = 100;
_root.drawings.bulletposition[bulletsize] = 0;
}
function helicorners() {
hx = _root["h" + heliarray[ii]]._x;
hy = _root["h" + heliarray[ii]]._y;
hw = _root["h" + heliarray[ii]]._width / 2;
hh = _root["h" + heliarray[ii]]._height / 2;
delta_x = hx - maingunx;
delta_y = hy - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
tl = (hra / Math.PI) * 180;
corner[0] = (hra / Math.PI) * 180;
delta_x = hx - maingunx;
delta_y = (hy + hh) - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
bl = (hra / Math.PI) * 180;
corner[1] = (hra / Math.PI) * 180;
delta_x = (hx + hw) - maingunx;
delta_y = hy - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
tr = (hra / Math.PI) * 180;
corner[2] = (hra / Math.PI) * 180;
delta_x = (hx + hw) - maingunx;
delta_y = (hy + hh) - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
br = (hra / Math.PI) * 180;
corner[3] = (hra / Math.PI) * 180;
changes = 1;
i = 0;
while (i < 4) {
if (corner[i] < 180) {
corner[i] = corner[i] + 360;
}
i++;
}
while (changes == 1) {
changes = 0;
i = 0;
while (i < 3) {
if (corner[i] > corner[i + 1]) {
temp = corner[i];
corner[i] = corner[i + 1];
corner[i + 1] = temp;
changes = 1;
}
i++;
}
}
c1 = corner[0];
c2 = corner[1];
c3 = corner[2];
c4 = corner[3];
i = Math.floor(corner[0]);
while (i < corner[3]) {
if (i >= 360) {
angles[i - 360] = 2;
anglesid[i - 360] = heliarray[ii];
} else {
angles[i] = 2;
anglesid[i] = heliarray[ii];
}
i++;
}
}
function cleararray() {
angles.clear();
anglesid.clear();
}
function drawtoheliandactions() {
hx = _root["h" + aaid]._x;
hy = _root["h" + aaid]._y;
hw = _root["h" + aaid]._width;
hh = _root["h" + aaid]._height;
dis = Math.sqrt((((hx - maingunx) + (hw / 3)) * ((hx - maingunx) + (hw / 3))) + (((hy - mainguny) + (hh / 3)) * ((hy - mainguny) + (hh / 3))));
rndadd = random(10) - 15;
bulletsize = _root.drawings.bulletstarty.length;
_root.drawings.bulletstartx[bulletsize] = maingunx + (Math.cos(ra) * 25);
_root.drawings.bulletstarty[bulletsize] = mainguny + (Math.sin(ra) * 25);
_root.drawings.bulletendx[bulletsize] = maingunx + (Math.cos(ra) * (dis + rndadd));
_root.drawings.bulletendy[bulletsize] = mainguny + (Math.sin(ra) * (dis + rndadd));
_root.drawings.bulletalpha[bulletsize] = 100;
_root.drawings.bulletposition[bulletsize] = 0;
_root.spark.duplicateMovieClip("spark" + _root.varr.ac, _root.varr.ac);
_root["spark" + _root.varr.ac]._x = maingunx + (Math.cos(ra) * (dis + rndadd));
_root["spark" + _root.varr.ac]._y = mainguny + (Math.sin(ra) * (dis + rndadd));
_root.varr.ac++;
_root["h" + aaid].armor = _root["h" + aaid].armor - attack;
}
function heliorderlist() {
u = 0;
while (u < heliarray.length) {
hx = _root["h" + heliarray[u]]._x;
hy = _root["h" + heliarray[u]]._y;
hw = _root["h" + heliarray[u]]._width;
hh = _root["h" + heliarray[u]]._height;
heliarraydis[u] = (((hx - maingunx) + (hw / 3)) * ((hx - maingunx) + (hw / 3))) + (((hy - mainguny) + (hh / 3)) * ((hy - mainguny) + (hh / 3)));
u++;
}
changes = 1;
while (changes == 1) {
changes = 0;
u = 0;
while (u < (heliarray.length - 1)) {
if (heliarraydis[u] > heliarraydis[u + 1]) {
temp = heliarray[u];
heliarray[u] = heliarray[u + 1];
heliarray[u + 1] = temp;
temp2 = heliarraydis[u];
heliarraydis[u] = heliarraydis[u + 1];
heliarraydis[u + 1] = temp2;
changes = 1;
}
u++;
}
}
h1 = heliarray[0];
h2 = heliarray[1];
h3 = heliarray[2];
h4 = heliarray[3];
d1 = heliarraydis[0];
d2 = heliarraydis[1];
d3 = heliarraydis[2];
d4 = heliarraydis[3];
}
function shells() {
fc = _root.varr.fc;
duplicateMovieClip (_root.shell, "shells" + fc, fc);
_root["shells" + fc]._x = maingunx - (Math.cos(ra) * 10);
_root["shells" + fc]._y = mainguny - (Math.sin(ra) * 10);
_root.varr.fc++;
}
function ground() {
jhj = 15;
aa = (((screenheight - jhj) - mainguny) / Math.tan(ra - Math.PI)) + maingunx;
oo = screenheight - jhj;
if (Math.floor(aa / 15) < 100) {
io = Math.floor(aa / 15);
while (io < Math.ceil(a / 15)) {
tops = Math.floor(aa / 15);
bts = Math.ceil(a / 15);
if (menpositions[io] != null) {
num = ((Math.floor(a / 15) - Math.floor(aa / 15)) / io) * 150;
a = io * 15;
o = (Math.tan(ra) * ((screenwidth - (screenwidth - _root["guy" + menpositions[io]]._x)) - maingunx)) + mainguny;
_root["guy" + menpositions[io]].armor = _root["guy" + menpositions[io]].armor - 10;
bnv = 99;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = a;
_root["blo" + _root.varr.fc]._y = o;
_root.varr.fc++;
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = a;
_root["blo" + _root.varr.fc]._y = o;
_root.varr.fc++;
dust = 2;
io = 1000;
} else if (dust != 2) {
dust = 1;
}
io++;
}
}
if (dust == 1) {
duplicateMovieClip (_root.dust, "d" + _root.varr.fc, _root.varr.fc);
_root["d" + _root.varr.fc]._x = a;
_root["d" + _root.varr.fc]._y = o;
_root.varr.fc++;
}
dust = 0;
}
function ground2() {
jhj = 15;
manaa = (((screenheight - jhj) - guny[gf]) / Math.tan(manra - Math.PI)) + gun1x;
manoo = screenheight - jhj;
if (Math.floor(manaa / 15) < 100) {
io = Math.floor(manaa / 15);
while (io < Math.ceil(mana / 15)) {
tops = Math.floor(manaa / 15);
bts = Math.ceil(mana / 15);
if (menpositions[io] != null) {
num = ((Math.floor(mana / 15) - Math.floor(manaa / 15)) / io) * 150;
mana = io * 15;
mano = (Math.tan(manra) * ((screenwidth - (screenwidth - _root["guy" + menpositions[io]]._x)) - gun1x)) + guny[gf];
_root["guy" + menpositions[io]].armor = _root["guy" + menpositions[io]].armor - towerattack;
bnv = 99;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = mana;
_root["blo" + _root.varr.fc]._y = mano;
_root.varr.fc++;
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = mana;
_root["blo" + _root.varr.fc]._y = mano;
_root.varr.fc++;
dust = 2;
io = 1000;
} else if (dust != 2) {
dust = 1;
}
io++;
}
}
if (dust == 1) {
duplicateMovieClip (_root.dust, "d" + _root.varr.fc, _root.varr.fc);
_root["d" + _root.varr.fc]._x = mana;
_root["d" + _root.varr.fc]._y = mano;
_root.varr.fc++;
}
dust = 0;
}
function buyings() {
if (money >= costs[buy]) {
pb = buy;
switch (buy) {
case 1 :
jk = 0;
while (jk < 5) {
if (autosg[jk] == null) {
autosg[jk] = 1;
duplicateMovieClip (_root.auto, "auto" + jk, _root.varr.fc);
_root["auto" + jk]._x = 130 + (jk * 50);
_root["auto" + jk]._y = 240;
_root["auto" + jk].ids = jk;
_root.varr.fc++;
jk = 10;
money = money - costs[buy];
buy = 0;
tr = 1;
}
jk++;
}
break;
case 2 :
jk = 0;
while (jk < 2) {
if (_root["ml" + jk] == null) {
duplicateMovieClip (_root.mlauncher, "ml" + jk, _root.varr.fc);
_root["ml" + jk]._x = 20 + (jk * 50);
_root["ml" + jk]._y = 266;
_root.varr.fc++;
money = money - costs[buy];
buy = 0;
tr = 1;
break;
}
jk++;
}
break;
case 3 :
jkk = 0;
while (jkk < 4) {
if (gunactive[jkk] == 0) {
gunactive[jkk] = 1;
jkk = 10;
money = money - costs[buy];
buy = 0;
tr = 1;
}
jkk++;
}
break;
case 4 :
if (rates < 22) {
rates = rates + 2;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 5 :
if (attack < 20) {
attack = attack + 3;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 6 :
if (autoattack < 16) {
autoattack = autoattack + 3;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 7 :
if (autorate < 5) {
autorate = autorate + 1;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 8 :
case 9 :
if (towerattack < 10) {
towerattack = towerattack + 2;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 10 :
if (towerrate < 4) {
towerrate = towerrate + 1;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 11 :
if (missileattack < 200) {
missileattack = missileattack + 50;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 12 :
if (missilerate < 1.5) {
missilerate = missilerate + 0.3;
money = money - costs[buy];
buy = 0;
tr = 1;
}
break;
case 13 :
if ((life < lifemax) && (life != lifemax)) {
life = life + 100;
money = money - costs[buy];
if (life > lifemax) {
life = lifemax;
}
}
buy = 0;
tr = 1;
break;
case 14 :
lifemax = lifemax + 200;
life = life + 200;
money = money - costs[buy];
buy = 0;
tr = 1;
}
if ((percentcosts[pb] != 0) && (tr == 1)) {
costs[pb] = costs[pb] + ((costs[pb] / 100) * percentcosts[pb]);
pb = 0;
tr = 0;
} else {
pb = 0;
tr = 0;
}
}
buy = 0;
}
var maingunx = 61;
var mainguny = 68;
gun1x = 72;
gun1y = 113;
gunx = new Array(72, 72, 72, 72);
guny = new Array(113, 156, 194, 232);
reload = new Array(10, 10, 10, 10);
reloads = new Array(30, 10, 10, 10);
gunactive = new Array(0, 0, 0, 0);
screenwidth = 640;
screenheight = 270;
heliarray = new Array();
heliarraydis = new Array();
angles = new Array();
anglesid = new Array();
corner = new Array();
men = new Array();
menpositions = new Array();
autosg = new Array();
costs = new Array(0, 8000, 25000, 6000, 4000, 4000, 3000, 3500, 1000, 2000, 2500, 5000, 5000, 500, 1000);
percentcosts = new Array(0, 0, 0, 0, 50, 50, 20, 20, 0, 20, 20, 30, 30, 0, 25);
money = 0;
if (_root.pmode.pmode == 2) {
money = 50000;
}
score = 0;
attack = 8;
tt = 3;
buy = 0;
rate = 3.3;
rates = 4;
advanced = 0;
lifemax = 1000;
life = 1000;
autoattack = 7;
autorate = 1;
towerattack = 4;
towerrate = 1;
missileattack = 100;
missilerate = 0.3;
buying = 0;
asing = 0;
}
onClipEvent (mouseDown) {
moused = 1;
}
onClipEvent (mouseUp) {
moused = 0;
}
onClipEvent (enterFrame) {
if (life < 1) {
if (asing == 0) {
ttd = 50;
asing = 1;
}
ttd--;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = (_x - (_width / 3)) + random(_width / 2);
_root["fire" + _root.varr.fc]._y = (_y - (_height / 3)) + random(_height / 2);
_root.varr.fc++;
if (ttd < 0) {
stopAllSounds();
i = 0;
while (i < heliarray.length) {
removeMovieClip(_root["h" + heliarray[i]]);
i++;
}
i = 0;
while (i < men.length) {
removeMovieClip(_root["guy" + men[i]]);
i++;
}
i = 0;
while (i < 6) {
removeMovieClip(_root["auto" + i]);
i++;
}
i = 0;
while (i < 2) {
removeMovieClip(_root["ml" + i]);
i++;
}
_root.scoreholder.level = _root.varr.level;
_root.scoreholder.scores = score;
avgfps = Math.round(_root.fpst.totalfps / _root.fpst.totaltime);
_root.scoreholder.avgfps = avgfps;
_root.gotoAndPlay(7);
}
}
if (buy > 0) {
buyings();
}
cx = _root._xmouse;
cy = _root._ymouse;
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
this.health.bar._xscale = (life / lifemax) * 100;
pointtomouse();
tt--;
jj = 0;
while (jj < 1) {
if (tt < 0) {
tt = 5;
cleararray();
angles.splice(0, 360);
anglesid.splice(0, 360);
menpositions.splice(0, 40);
anglesid.clear();
heliorderlist();
ii = heliarray.length;
while (ii > -1) {
_root["h" + heliarray[ii]].dis = heliarray.length - ii;
helicorners();
ii--;
}
ii = 0;
while (ii < men.length) {
_root["guy" + men[ii]].zone = Math.ceil(_root["guy" + men[ii]]._x / 15);
menpositions[Math.round(_root["guy" + men[ii]]._x / 15)] = _root["guy" + men[ii]].id;
ii++;
}
}
types = 0;
jj++;
}
if (buying == 0) {
jj = 0;
while (jj < 1) {
rate--;
if ((moused == 1) && (rate <= 0)) {
_root.s3.gotoAndPlay(2);
this.guntop.gunpointer.guns.gotoAndPlay(2);
rate = 30 / rates;
shells();
r = r + (((random(rates / 3) - (rates / 6)) + (random(10) / 10)) - 0.5);
if (r < 0) {
r = r + 360;
} else if (r > 360) {
r = r - 360;
}
this.guntop.gunpointer._rotation = r;
ra = (r / 180) * Math.PI;
types = angles[Math.floor(r)];
if (angles[Math.floor(r)] == null) {
findlinetoedge();
aaid = anglesid[Math.floor(r)];
} else if (types == 2) {
aaid = 0;
aaid = anglesid[Math.floor(r)];
drawtoheliandactions();
}
}
jj++;
}
}
if (men[0] != null) {
gf = 0;
while (gf < 4) {
reload[gf]--;
if ((reload[gf] < 0) && (gunactive[gf] == 1)) {
reload[gf] = ((30 / towerrate) + random(5)) - 2;
manx = _root["guy" + men[0]]._x;
many = _root["guy" + men[0]]._y;
mandelta_x = manx - gun1x;
mandelta_y = many - guny[gf];
manra = Math.atan2(mandelta_y, mandelta_x);
if (mandelta_y < 0) {
manra = manra + (Math.PI*2);
}
manr = (manra / Math.PI) * 180;
manr = manr + (((random(6) - 2) + (random(10) / 10)) - 0.5);
if (manr < 0) {
manr = manr + 360;
} else if (manr > 360) {
manr = manr - 360;
}
manra = (manr / 180) * Math.PI;
this["gun" + (gf + 1)].gunpointer._rotation = manr;
_root.s1.gotoAndPlay(2);
this["gun" + (gf + 1)].gunpointer.guns.gotoAndPlay(2);
findlinetoedge2();
}
gf++;
}
}
loop++;
}
}
Instance of Symbol 125 MovieClip "varr" in Frame 6
onClipEvent (load) {
function normal() {
if (levellength > 0) {
if (t < 0) {
t = total;
_root.heli.duplicateMovieClip("h" + fc, fc);
_root["h" + fc].id = fc;
_root["h" + fc]._x = 600;
_root["h" + fc]._y = (random(5) * 30) + 50;
if (level < (heliarmor.length - 1)) {
_root["h" + fc].armor = heliarmor[level - 1];
} else {
_root["h" + fc].armor = heliarmor[heliarmor.length - 1];
}
ok = 0;
i = 0;
while (i < 7) {
if (_root["auto" + i] != null) {
ok = 1;
}
i++;
}
_root["h" + fc].types = random(3) + 1;
if (level < 5) {
_root["h" + fc].types = random(2) + 1;
}
if (level < 3) {
_root["h" + fc].types = 1;
}
if ((_root["h" + fc].types == 2) && (ok == 0)) {
_root["h" + fc].types = 1;
}
_root.playerbuilding.heliarray[_root.playerbuilding.heliarray.length] = fc;
o = 0;
while (o < 7) {
_root["auto" + o].heliarray[_root["auto" + o].heliarray.length] = fc;
o++;
}
fc++;
}
if (level > 1) {
t2--;
if (t2 < 0) {
duplicateMovieClip (_root.guy, "guy" + _root.varr.fc, _root.varr.fc);
_root["guy" + _root.varr.fc]._x = 600;
_root["guy" + _root.varr.fc]._y = 250 + random(7);
_root["guy" + _root.varr.fc].id = fc;
_root.playerbuilding.men[_root.playerbuilding.men.length] = fc;
type = random(3) + 1;
if (level <= 4) {
type = 3;
}
if (level <= 2) {
type = 1;
}
_root["guy" + _root.varr.fc].types = type;
if (level < (heliarmor.length - 1)) {
_root["guy" + fc].armor = heliarmor[level - 1] / 2;
if (heliarmor[level] > 100) {
_root["guy" + fc].armor = 50;
}
} else {
_root["guy" + fc].armor = 50;
}
_root.varr.fc++;
t2 = total2;
}
}
} else if ((_root.playerbuilding.men[0] == null) && (_root.playerbuilding.heliarray[0] == null)) {
bl = 2;
_root.levelgap._visible = true;
}
if (breaktime < 0) {
_root.levelgap._visible = false;
bl = 1;
level++;
breaktime = 15;
if (level > 10) {
total = total - ((total / 100) * 20);
total2 = total2 - ((total2 / 100) * 20);
} else {
total = helirelease[level];
total2 = menrelease[level];
}
levellength = (level * 5) + 20;
}
}
function survival() {
if (levellength > 0) {
if (t < 0) {
t = total;
_root.heli.duplicateMovieClip("h" + fc, fc);
_root["h" + fc].id = fc;
_root["h" + fc]._x = 600;
_root["h" + fc]._y = (random(5) * 30) + 50;
if (level < (heliarmor.length - 1)) {
_root["h" + fc].armor = heliarmor[level - 1] * 3;
} else {
_root["h" + fc].armor = heliarmor[heliarmor.length - 1];
}
ok = 0;
i = 0;
while (i < 7) {
if (_root["auto" + i] != null) {
ok = 1;
}
i++;
}
_root["h" + fc].types = random(3) + 1;
_root.playerbuilding.heliarray[_root.playerbuilding.heliarray.length] = fc;
o = 0;
while (o < 7) {
_root["auto" + o].heliarray[_root["auto" + o].heliarray.length] = fc;
o++;
}
fc++;
}
if (level > 1) {
t2--;
if (t2 < 0) {
duplicateMovieClip (_root.guy, "guy" + _root.varr.fc, _root.varr.fc);
_root["guy" + _root.varr.fc]._x = 600;
_root["guy" + _root.varr.fc]._y = 250 + random(7);
_root["guy" + _root.varr.fc].id = fc;
_root.playerbuilding.men[_root.playerbuilding.men.length] = fc;
type = random(3) + 1;
_root["guy" + _root.varr.fc].types = type;
_root["guy" + fc].armor = 100;
_root.varr.fc++;
t2 = total2;
}
}
} else if ((_root.playerbuilding.men[0] == null) && (_root.playerbuilding.heliarray[0] == null)) {
bl = 2;
_root.levelgap._visible = true;
}
if (breaktime < 0) {
_root.levelgap._visible = false;
bl = 1;
level++;
breaktime = 5;
total = total - ((total / 100) * 25);
total2 = total2 - ((total2 / 100) * 25);
levellength = (level * 5) + 20;
}
}
fc = 10;
ac = 1000010 /* 0x0F424A */;
t = 20;
t2 = 20;
updates = 33;
firerand = 5;
levellength = 20;
breaktime = 15;
if (_root.pmode.pmode == 2) {
breaktime = 5;
}
level = 1;
bl = 1;
total = 100;
total2 = 100;
heliarmor = new Array(30, 40, 40, 50, 55, 65, 75, 80, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 200, 225, 250);
helirelease = new Array(0, 100, 150, 95, 80, 68, 62, 54, 44, 36, 29);
menrelease = new Array(0, 0, 150, 100, 98, 86, 78, 69, 60, 50, 45);
part = 0;
mpart = 30;
}
onClipEvent (enterFrame) {
dat = new Date();
kk++;
h = dat.getSeconds();
if (h != s) {
if (bl == 1) {
levellength = levellength - 1;
} else if (bl == 2) {
breaktime--;
}
kk = 0;
}
s = dat.getSeconds();
if (fc > 1000000) {
fc = 10;
}
times = new Date();
milli = times.getMilliseconds();
if (milli < lastmilli) {
millidif = (milli + 1000) - lastmilli;
} else {
millidif = milli - lastmilli;
if (millidif > 100) {
millidif = 99;
}
}
lastmilli = milli;
t--;
timeg = millidif / updates;
loop = 0;
while (loop < timeg) {
if (_root.pmode.pmode == 1) {
normal();
}
if (_root.pmode.pmode == 2) {
survival();
}
loop++;
}
}
Instance of Symbol 126 MovieClip "d" in Frame 6
onClipEvent (load) {
_visible = false;
if (_name != "d") {
_visible = true;
} else {
duplicateMovieClip (this, "drawings", 10000002);
}
bulletstartx = new Array();
bulletstarty = new Array();
bulletendx = new Array();
bulletendy = new Array();
bulletalpha = new Array();
bulletposition = new Array();
bulletthickness = new Array();
bulletcolour = new Array();
bulletstarty[1] = 1;
t = 3;
}
onClipEvent (enterFrame) {
if (name != "d") {
clear();
i = 0;
while (i < bulletstartx.length) {
if (bulletcolour[i] == 2) {
difx = bulletendx[i] - bulletstartx[i];
dify = bulletendy[i] - bulletstarty[i];
_root.drawings.moveTo(bulletstartx[i] + ((difx / t) * bulletposition[i]), bulletstarty[i] + ((dify / t) * bulletposition[i]));
_root.drawings.lineStyle(1, 0);
_root.drawings.lineTo(bulletstartx[i] + ((difx / t) * (bulletposition[i] + 1)), bulletstarty[i] + ((dify / t) * (bulletposition[i] + 1)));
bulletposition[i]++;
bulletalpha[i] = bulletalpha[i] - 20;
} else {
difx = bulletendx[i] - bulletstartx[i];
dify = bulletendy[i] - bulletstarty[i];
_root.drawings.moveTo(bulletstartx[i] + ((difx / t) * bulletposition[i]), bulletstarty[i] + ((dify / t) * bulletposition[i]));
_root.drawings.lineStyle(1, 16777215);
_root.drawings.lineTo(bulletstartx[i] + ((difx / t) * (bulletposition[i] + 1)), bulletstarty[i] + ((dify / t) * (bulletposition[i] + 1)));
bulletposition[i]++;
}
if (bulletposition[i] > (t - 1)) {
bulletstartx.splice(i, 1);
bulletstarty.splice(i, 1);
bulletendx.splice(i, 1);
bulletendy.splice(i, 1);
bulletalpha.splice(i, 1);
bulletposition.splice(i, 1);
bulletcolour.splice(i, 1);
}
i++;
}
}
}
Instance of Symbol 131 MovieClip "fpst" in Frame 6
onClipEvent (load) {
k = 0;
d = 0;
h = 3;
kk = 0;
totalfps = 0;
totaltime = 0;
}
onClipEvent (enterFrame) {
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
k++;
loop++;
}
dat = new Date();
kk++;
h = dat.getSeconds();
if (h != s) {
ups = k;
k = 0;
fps = kk;
kk = 0;
totalfps = totalfps + fps;
totaltime = totaltime + 1;
}
s = dat.getSeconds();
}
Instance of Symbol 29 MovieClip "heli" in Frame 6
onClipEvent (load) {
function death() {
if (assigned == 0) {
def = random(3);
if (_x < 80) {
_root.playerbuilding.life = _root.playerbuilding.life - 50;
def = 0;
}
removefromarrays();
wd = _width / 2;
hd = _height / 2;
_root.playerbuilding.score = _root.playerbuilding.score + money;
_root.playerbuilding.money = _root.playerbuilding.money + money;
duplicateMovieClip (_root.money, "mon" + _root.varr.fc, _root.varr.fc);
_root["mon" + _root.varr.fc].money = money;
_root["mon" + _root.varr.fc]._x = _x;
_root["mon" + _root.varr.fc]._y = _y;
_root.varr.fc++;
assigned = 1;
}
if (def == 0) {
_root.s9.gotoAndPlay(2);
duplicateMovieClip (_root.explos, "mon" + _root.varr.fc, _root.varr.fc);
_root["mon" + _root.varr.fc]._x = _x;
_root["mon" + _root.varr.fc]._y = _y;
_root.varr.fc++;
u = 0;
while (u < 7) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.shrap, "shr" + _root.varr.fc, _root.varr.fc);
_root["shr" + _root.varr.fc]._x = _x;
_root["shr" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root.varr.part++;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x + random(_width);
_root["fire" + _root.varr.fc]._y = _y + random(_height);
_root.varr.fc++;
}
u++;
}
removeMovieClip(this);
}
if (def == 1) {
_root.s9.gotoAndPlay(2);
duplicateMovieClip (_root.explos, "mon" + _root.varr.fc, _root.varr.fc);
_root["mon" + _root.varr.fc]._x = _x;
_root["mon" + _root.varr.fc]._y = _y;
_root.varr.fc++;
duplicateMovieClip (_root.helia, "helia" + _root.varr.fc, _root.varr.fc);
_root["helia" + _root.varr.fc]._x = _x + 20;
_root["helia" + _root.varr.fc]._y = _y + 20;
_root["helia" + _root.varr.fc].speed = speed;
_root["helia" + _root.varr.fc].gotoAndStop(types);
_root.varr.fc++;
duplicateMovieClip (_root.helib, "helib" + _root.varr.fc, _root.varr.fc);
_root["helib" + _root.varr.fc]._x = _x + 40;
_root["helib" + _root.varr.fc]._y = _y + 5;
_root["helib" + _root.varr.fc].speed = speed;
_root["helib" + _root.varr.fc].gotoAndStop(types);
_root.varr.fc++;
duplicateMovieClip (_root.helic, "helic" + _root.varr.fc, _root.varr.fc);
_root["helic" + _root.varr.fc]._x = _x + 10;
_root["helic" + _root.varr.fc]._y = _y + 5;
_root["helic" + _root.varr.fc].speed = speed;
_root["helic" + _root.varr.fc].gotoAndStop(types);
_root.varr.fc++;
duplicateMovieClip (_root.helid, "helid" + _root.varr.fc, _root.varr.fc);
_root["helid" + _root.varr.fc]._x = _x + 25;
_root["helid" + _root.varr.fc]._y = _y - 10;
_root["helid" + _root.varr.fc].speed = speed;
_root["helid" + _root.varr.fc].gotoAndStop(types);
_root.varr.fc++;
removeMovieClip(this);
}
if (def == 2) {
if (_root.varr == null) {
removeMovieClip(this);
}
if (_y > heights) {
if (hits == 0) {
u = 0;
while (u < 15) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.shrap2, "shr" + _root.varr.fc, _root.varr.fc);
_root["shr" + _root.varr.fc]._x = _x;
_root["shr" + _root.varr.fc]._y = _y;
_root.s10.gotoAndPlay(2);
_root.varr.fc++;
}
u++;
}
}
hits = 1;
_alpha = (_alpha - 10);
if (_alpha < 10) {
removeMovieClip(this);
}
this.blade.gotoAndStop(1);
} else {
_x = (_x - speed);
grav = grav + 0.2;
_y = (_y + grav);
_rotation = (_rotation - 1);
ran = random(3);
}
if (ran == 2) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x + random(wd);
_root["fire" + _root.varr.fc]._y = _y + random(hd);
_root.varr.fc++;
}
}
} else {
removefromarrays();
removeMovieClip(this);
}
}
function removefromarrays() {
i = 0;
while (i < _root.playerbuilding.heliarray.length) {
if (id == _root.playerbuilding.heliarray[i]) {
tt = _root.playerbuilding.heliarray[i];
_root.playerbuilding.heliarray.splice(i, 1);
_root.playerbuilding.heliarraydis.splice(i, 1);
_root.playerbuilding.tt = 0;
}
i++;
}
o = 0;
while (o < 7) {
i = 0;
while (i < _root["auto" + o].heliarray.length) {
if (id == _root["auto" + o].heliarray[i]) {
tt = _root["auto" + o].heliarray[i];
_root["auto" + o].heliarray.splice(i, 1);
_root["auto" + o].heliarraydis.splice(i, 1);
_root["auto" + o].tt = 0;
}
i++;
}
o++;
}
}
this.he.gotoAndStop(types);
speed = 2;
attack = 10;
assigned = 0;
grav = 0;
hits = 0;
timers = 5;
heights = _root.playerbuilding.screenheight;
money = 700;
test = true;
if (types == 2) {
i = 0;
while (i < 100) {
_xscale = 85;
_yscale = 85;
autonum = random(6);
if (_root["auto" + autonum] != null) {
i = 111;
}
i++;
}
}
}
onClipEvent (enterFrame) {
}
onClipEvent (enterFrame) {
if (_name != "heli") {
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
if ((armor < 1) || (_x < 80)) {
death();
} else {
if (((_x < 230) && (_x > 110)) && (asi != 1)) {
_root.s5.gotoAndPlay(2);
asi = 1;
}
if (((_x < 230) && (_x > 110)) && (types == 1)) {
timers--;
if (timers < 0) {
timers = 3;
x = _root.playerbuilding._x;
y = _root.playerbuilding._y + 100;
delta_x = x - _x;
delta_y = y - _y;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
x = _root.playerbuilding._x;
y = _root.playerbuilding._y - 100;
delta_x = x - _x;
delta_y = y - _y;
raa2 = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
raa2 = raa2 + (Math.PI*2);
}
rr2 = (raa2 / Math.PI) * 180;
abc = rr2 - r;
ang = random(rr2 - r) + r;
duplicateMovieClip (_root.helibullet, "bu" + _root.varr.fc, _root.varr.fc);
_root["bu" + _root.varr.fc]._x = _x;
_root["bu" + _root.varr.fc]._y = _y;
_root["bu" + _root.varr.fc]._rotation = ang;
_root["bu" + _root.varr.fc].angle = ang;
_root["bu" + _root.varr.fc]._visible = false;
_root.s7.gotoAndPlay(2);
_root.varr.fc++;
}
} else if (types == 2) {
if ((_x < (_root["auto" + autonum]._x + 100)) && (_x > (_root["auto" + autonum]._x + 30))) {
timers = timers - ((speed / 5) * 2);
if (timers < 0) {
duplicateMovieClip (_root.bombs, "bomb" + _root.varr.fc, _root.varr.fc);
_root["bomb" + _root.varr.fc]._x = _x + 15;
_root["bomb" + _root.varr.fc]._y = _y + 20;
_root.varr.fc++;
timers = 10;
}
}
} else if (((types == 3) && (_x < 270)) && (_x > 150)) {
timers = timers - ((speed / 5) * 2);
if (timers < 0) {
duplicateMovieClip (_root.missile2, "mis" + _root.varr.fc, _root.varr.fc);
_root["mis" + _root.varr.fc]._x = _x - 20;
_root["mis" + _root.varr.fc]._y = _y + 20;
_root["mis" + _root.varr.fc].r = random(10) + 160;
_root.varr.fc++;
_root.s8.gotoAndPlay(2);
timers = 30;
}
}
_x = (_x - speed);
if (money > 10) {
money = money - (speed * 1.3);
}
jj = _name;
}
loop++;
}
}
}
Instance of Symbol 134 MovieClip "spark" in Frame 6
onClipEvent (load) {
life = 3;
_rotation = random(360);
}
onClipEvent (enterFrame) {
_x = (_x - 5);
life--;
if (life < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 136 MovieClip "shell" in Frame 6
onClipEvent (load) {
grav = 0.2;
a = random(50) / 10;
xx = (random(30) - 20) / 10;
life = 20;
t = random(10);
_alpha = 100;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + t);
a = a - grav;
_y = (_y - a);
_x = (_x + xx);
life--;
if (life < 0) {
_alpha = (_alpha - 5);
removeMovieClip(this);
}
}
Instance of Symbol 139 MovieClip "auto" in Frame 6
onClipEvent (load) {
function pointtomouse() {
x = _root._xmouse;
y = _root._ymouse;
delta_x = x - maingunx;
delta_y = y - mainguny;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
this.gunpointer._rotation = r;
}
function pointtonearest() {
x = _root["h" + heliarray[0]]._x + (_root["h" + heliarray[0]]._width / 4);
y = _root["h" + heliarray[0]]._y + (_root["h" + heliarray[0]]._height / 4);
delta_x = x - maingunx;
delta_y = y - mainguny;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
this.gunpointer._rotation = r;
}
function findlinetoedge() {
if (ra < Math.PI) {
a = ((screenheight - mainguny) / Math.tan(ra - Math.PI)) + maingunx;
o = screenheight;
} else {
a = ((mainguny / Math.tan(ra - Math.PI)) * -1) + maingunx;
o = 0;
}
if (a > screenwidth) {
o = (Math.tan(ra) * (screenwidth - maingunx)) + mainguny;
a = screenwidth;
} else if (a < 0) {
a = 0;
o = ((Math.tan(ra) * maingunx) * -1) + mainguny;
}
bulletsize = _root.drawings.bulletstarty.length;
_root.drawings.bulletstartx[bulletsize] = maingunx + (Math.cos(ra) * 25);
_root.drawings.bulletstarty[bulletsize] = mainguny + (Math.sin(ra) * 25);
_root.drawings.bulletendx[bulletsize] = a;
_root.drawings.bulletendy[bulletsize] = o;
_root.drawings.bulletalpha[bulletsize] = 100;
_root.drawings.bulletposition[bulletsize] = 1;
}
function helicorners() {
hx = _root["h" + heliarray[ii]]._x;
hy = _root["h" + heliarray[ii]]._y;
hw = _root["h" + heliarray[ii]]._width / 2;
hh = _root["h" + heliarray[ii]]._height / 2;
delta_x = hx - maingunx;
delta_y = hy - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
tl = (hra / Math.PI) * 180;
corner[0] = (hra / Math.PI) * 180;
delta_x = hx - maingunx;
delta_y = (hy + hh) - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
bl = (hra / Math.PI) * 180;
corner[1] = (hra / Math.PI) * 180;
delta_x = (hx + hw) - maingunx;
delta_y = hy - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
tr = (hra / Math.PI) * 180;
corner[2] = (hra / Math.PI) * 180;
delta_x = (hx + hw) - maingunx;
delta_y = (hy + hh) - mainguny;
hra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
hra = hra + (Math.PI*2);
}
br = (hra / Math.PI) * 180;
corner[3] = (hra / Math.PI) * 180;
changes = 1;
i = 0;
while (i < 4) {
if (corner[i] < 180) {
corner[i] = corner[i] + 360;
}
i++;
}
while (changes == 1) {
changes = 0;
i = 0;
while (i < 3) {
if (corner[i] > corner[i + 1]) {
temp = corner[i];
corner[i] = corner[i + 1];
corner[i + 1] = temp;
changes = 1;
}
i++;
}
}
c1 = corner[0];
c2 = corner[1];
c3 = corner[2];
c4 = corner[3];
i = Math.floor(corner[0]);
while (i < corner[3]) {
if (i >= 360) {
angles[i - 360] = 2;
anglesid[i - 360] = heliarray[ii];
} else {
angles[i] = 2;
anglesid[i] = heliarray[ii];
}
i++;
}
}
function drawtoheliandactions() {
hx = _root["h" + aaid]._x;
hy = _root["h" + aaid]._y;
hw = _root["h" + aaid]._width;
hh = _root["h" + aaid]._height;
dis = Math.sqrt((((hx - maingunx) + (hw / 3)) * ((hx - maingunx) + (hw / 3))) + (((hy - mainguny) + (hh / 3)) * ((hy - mainguny) + (hh / 3))));
rndadd = random(10) - 15;
bulletsize = _root.drawings.bulletstarty.length;
_root.drawings.bulletstartx[bulletsize] = maingunx + (Math.cos(ra) * 25);
_root.drawings.bulletstarty[bulletsize] = mainguny + (Math.sin(ra) * 25);
_root.drawings.bulletendx[bulletsize] = maingunx + (Math.cos(ra) * (dis + rndadd));
_root.drawings.bulletendy[bulletsize] = mainguny + (Math.sin(ra) * (dis + rndadd));
_root.drawings.bulletalpha[bulletsize] = 100;
_root.drawings.bulletposition[bulletsize] = 1;
_root.spark.duplicateMovieClip("spark" + _root.varr.ac, _root.varr.ac);
_root["spark" + _root.varr.ac]._x = maingunx + (Math.cos(ra) * (dis + rndadd));
_root["spark" + _root.varr.ac]._y = mainguny + (Math.sin(ra) * (dis + rndadd));
_root.varr.ac++;
_root["h" + aaid].armor = _root["h" + aaid].armor - damage;
}
function heliorderlist() {
u = 0;
while (u < heliarray.length) {
hx = _root["h" + heliarray[u]]._x;
hy = _root["h" + heliarray[u]]._y;
hw = _root["h" + heliarray[u]]._width;
hh = _root["h" + heliarray[u]]._height;
heliarraydis[u] = (((hx - maingunx) + (hw / 3)) * ((hx - maingunx) + (hw / 3))) + (((hy - mainguny) + (hh / 3)) * ((hy - mainguny) + (hh / 3)));
u++;
}
changes = 1;
while (changes == 1) {
changes = 0;
u = 0;
while (u < (heliarray.length - 1)) {
if (heliarraydis[u] > heliarraydis[u + 1]) {
temp = heliarray[u];
heliarray[u] = heliarray[u + 1];
heliarray[u + 1] = temp;
temp2 = heliarraydis[u];
heliarraydis[u] = heliarraydis[u + 1];
heliarraydis[u + 1] = temp2;
changes = 1;
}
u++;
}
}
h1 = heliarray[0];
h2 = heliarray[1];
h3 = heliarray[2];
h4 = heliarray[3];
d1 = heliarraydis[0];
d2 = heliarraydis[1];
d3 = heliarraydis[2];
d4 = heliarraydis[3];
}
function shells() {
fc = _root.varr.fc;
duplicateMovieClip (_root.shell, "shells" + fc, fc);
_root["shells" + fc]._x = maingunx - (Math.cos(ra) * 10);
_root["shells" + fc]._y = mainguny - (Math.sin(ra) * 10);
_root.varr.fc++;
}
id = 1;
maingunx = _x;
mainguny = _y - 7;
screenwidth = 640;
screenheight = 300;
heliarray = new Array();
heliarraydis = new Array();
angles = new Array();
anglesid = new Array();
corner = new Array();
tt = 3;
rate = 5;
damage = 5;
timers = 1;
armor = 50;
}
onClipEvent (enterFrame) {
hgg = _name;
if (armor < 0) {
duplicateMovieClip (_root.exploss, "mon" + _root.varr.fc, _root.varr.fc);
_root["mon" + _root.varr.fc]._x = _x;
_root["mon" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root.playerbuilding.autosg[ids] = null;
removeMovieClip(this);
}
if (hgg != "auto") {
time = _root.varr.millidif / _root.varr.updates;
pointtonearest();
loop = 0;
while (loop < time) {
rate = _root.playerbuilding.autorate;
damage = _root.playerbuilding.autoattack;
tt--;
if (tt < 0) {
tt = 5;
cleararray();
angles.splice(180, 360);
anglesid.splice(180, 360);
heliorderlist();
ii = heliarray.length;
while (ii > -1) {
_root["h" + heliarray[ii]].dis = heliarray.length - ii;
helicorners();
ii--;
}
types = 0;
}
timers--;
if (timers < 0) {
if (heliarray[0] != null) {
timers = ((30 / rate) + random(4)) - 2;
_root.s2.gotoAndPlay(2);
r = r + (random(rate / 2) - (rate / 4));
if (r < 0) {
r = r + 360;
} else if (r > 360) {
r = r - 360;
}
this.gunpointer._rotation = r;
ra = (r / 180) * Math.PI;
types = angles[Math.floor(r)];
if (angles[Math.floor(r)] == null) {
findlinetoedge();
this.gunpointer.gotoAndPlay(3);
aaid = anglesid[Math.floor(r)];
} else if (types == 2) {
this.gunpointer.gotoAndPlay(3);
aaid = 0;
aaid = anglesid[Math.floor(r)];
drawtoheliandactions();
}
}
}
loop++;
}
}
}
Instance of Symbol 157 MovieClip "guy" in Frame 6
onClipEvent (load) {
function removefromarrays() {
i = 0;
while (i < _root.playerbuilding.men.length) {
if (id == _root.playerbuilding.men[i]) {
tt = _root.playerbuilding.men[i];
_root.playerbuilding.men.splice(i, 1);
_root.playerbuilding.tt = 0;
}
i++;
}
}
function type1actions() {
timer--;
timer2--;
if ((timer < 1) && (timer2 < 0)) {
_root.playerbuilding.life = _root.playerbuilding.life - attack;
timer = 5;
times++;
gotoAndStop (33);
a = 79;
angle = random(20) + 185;
bulletsize = _root.drawings.bulletstarty.length;
o = ((Math.tan((angle / 180) * Math.PI) * (_x - 79)) * -1) + _y;
_root.drawings.bulletstartx[bulletsize] = _x - 10;
_root.drawings.bulletstarty[bulletsize] = _y + 6;
_root.drawings.bulletendx[bulletsize] = 79;
_root.drawings.bulletendy[bulletsize] = o;
_root.drawings.bulletalpha[bulletsize] = 100;
_root.drawings.bulletposition[bulletsize] = 0;
_root.drawings.bulletcolour[bulletsize] = 2;
_root.s6.gotoAndPlay(2);
if (_root.varr.part < _root.varr.mpart) {
i = 0;
while (i < 2) {
_root.varr.part++;
duplicateMovieClip (_root.shr, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = 79;
_root["fire" + _root.varr.fc]._y = o;
_root.varr.fc++;
i++;
}
}
if (times > 2) {
times = 0;
timer2 = 40;
}
}
}
function type2actions() {
gotoAndStop (34);
timer--;
if (timer < 0) {
duplicateMovieClip (_root.missile2, "mis" + _root.varr.fc, _root.varr.fc);
_root["mis" + _root.varr.fc]._x = _x - 10;
_root["mis" + _root.varr.fc]._y = _y;
_root["mis" + _root.varr.fc].r = random(10) + 185;
_root.varr.fc++;
_root.s8.gotoAndPlay(2);
timer = 100;
}
}
function type3actions() {
gotoAndStop (35);
timer--;
if (timer < 0) {
if (_root.varr.part < _root.varr.mpart) {
i = 0;
while (i < 3) {
_root.varr.part++;
duplicateMovieClip (_root.shr, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = 87;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i++;
}
}
gotoAndStop (35);
_root.playerbuilding.life = _root.playerbuilding.life - attack;
timer = 10;
}
}
zone = 0;
armor = 25 + (_root.varr.level * 5);
timer = 10;
timer2 = 10;
times = 0;
if (types == 1) {
money = 75;
attack = 2;
splace = 150 + random(90);
this.launcher._visible = false;
this.saw._visible = false;
} else if (types == 2) {
attack = 20;
money = 100;
splace = 350 + random(120);
this.saw._visible = false;
} else if (types == 3) {
money = 50;
splace = 90;
attack = 5;
this.launcher._visible = false;
this.saw._visible = true;
}
if (_root.pmode.pmode == 2) {
armor = armor * 2;
}
}
onClipEvent (enterFrame) {
jjj = _name;
if (jjj != "guy") {
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
if (_x < splace) {
if (types == 1) {
type1actions();
} else if (types == 2) {
type2actions();
} else if (types == 3) {
type3actions();
}
} else {
_x = (_x - 1);
}
if (_x < 0) {
removefromarrays();
removeMovieClip(_root["guy" + tt]);
}
if (armor < 0) {
_root.s11.gotoAndPlay(2);
removefromarrays();
_root.playerbuilding.score = _root.playerbuilding.score + money;
_root.playerbuilding.money = _root.playerbuilding.money + money;
duplicateMovieClip (_root.money, "mon" + _root.varr.fc, _root.varr.fc);
_root["mon" + _root.varr.fc].money = money;
_root["mon" + _root.varr.fc]._x = _x;
_root["mon" + _root.varr.fc]._y = _y;
_root.varr.fc++;
removeMovieClip(_root["guy" + tt]);
}
loop++;
}
}
}
Instance of Symbol 159 MovieClip in Frame 6
onClipEvent (load) {
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
_rotation = (_rotation + 4);
}
Instance of Symbol 167 MovieClip "dust" in Frame 6
onClipEvent (load) {
timee = 5;
_alpha = 100;
}
onClipEvent (enterFrame) {
timee--;
gotoAndPlay(timee * 3);
if (_alpha > 0) {
_alpha = (_alpha - 15);
}
if (timee < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 177 MovieClip "blood" in Frame 6
onClipEvent (load) {
timee = 5;
}
onClipEvent (enterFrame) {
timee--;
gotoAndPlay(timee * -2);
if (timee < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 179 MovieClip "blood2" in Frame 6
onClipEvent (load) {
life = random(10) + 15;
angle = random(360);
yy = Math.sin((angle / 180) * Math.PI);
xx = Math.cos((angle / 180) * Math.PI) * 3;
yyy = _y;
xxx = _x;
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
life--;
yyy = yyy + yy;
yy = yy + 0.2;
xxx = xxx + xx;
_x = xxx;
_y = yyy;
if (life < 0) {
removeMovieClip(this);
}
if (yyy > heights) {
yy = yy * -0.8;
}
}
Instance of Symbol 183 MovieClip "helia" in Frame 6
onClipEvent (load) {
yy = 1;
hit = 0;
rot = random(10) + 5;
rand = _root.varr.firerand;
_alpha = 100;
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
if (_name != "helia") {
ran = random(rand);
if (ran == 2) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
}
if (_y < heights) {
_rotation = (_rotation + rot);
_x = (_x - speed);
yy = yy + 0.2;
_y = (_y + yy);
} else {
if (hit != 1) {
if (_root.playerbuilding.menpositions[Math.round(_x / 15)] != null) {
_root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor = -1;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i = 0;
while (i < 10) {
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i++;
}
}
}
hit = 1;
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 187 MovieClip "helic" in Frame 6
onClipEvent (load) {
yy = 0;
hit = 0;
rot = random(10) + 5;
rand = _root.varr.firerand;
_alpha = 100;
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
if (_name != "helic") {
ran = random(rand);
if (ran == 2) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
}
if (_y < heights) {
_rotation = (_rotation + rot);
_x = (_x - speed);
yy = yy + 0.2;
_y = (_y + yy);
} else {
if (hit != 1) {
if (_root.playerbuilding.menpositions[Math.round(_x / 15)] != null) {
_root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor = -1;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i = 0;
while (i < 10) {
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i++;
}
}
}
hit = 1;
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 191 MovieClip "helib" in Frame 6
onClipEvent (load) {
yy = 0;
hit = 0;
rot = random(10) + 5;
rand = _root.varr.firerand;
_alpha = 100;
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
if (_name != "helib") {
ran = random(rand);
if (ran == 2) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
}
if (_y < heights) {
_rotation = (_rotation + rot);
_x = (_x - (speed - 1));
yy = yy + 0.2;
_y = (_y + yy);
} else {
if (hit != 1) {
if (_root.playerbuilding.menpositions[Math.round(_x / 15)] != null) {
_root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor = -1;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i = 0;
while (i < 10) {
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i++;
}
}
}
hit = 1;
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 195 MovieClip "helid" in Frame 6
onClipEvent (load) {
yy = -2;
hit = 0;
rot = random(10) + 5;
rand = _root.varr.firerand;
_alpha = 100;
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
if (_name != "helid") {
ran = random(rand);
if (ran == 2) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.fire, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
}
if (_y < heights) {
_rotation = (_rotation + rot);
_x = (_x - speed);
yy = yy + 0.2;
_y = (_y + yy);
} else {
if (hit != 1) {
if (_root.playerbuilding.menpositions[Math.round(_x / 15)] != null) {
_root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor = -1;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i = 0;
while (i < 10) {
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
i++;
}
}
}
hit = 1;
_alpha = (_alpha - 5);
if (_alpha < 0) {
removeMovieClip(this);
}
}
}
}
Instance of Symbol 199 MovieClip "shrap" in Frame 6
onClipEvent (load) {
angle = random(360);
speed = random(40) / 10;
y = Math.cos((angle / 180) * Math.PI) * speed;
x = Math.sin((angle / 180) * Math.PI) * speed;
life = random(50) + 25;
_rotation = random(360);
heights = _root.playerbuilding.screenheight;
rp = random(5);
}
onClipEvent (enterFrame) {
if (_name != "shrap") {
_rotation = (_rotation + rp);
h = _name;
_y = (_y + y);
_x = (_x + x);
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
y = y + 0.3;
if (y > 0) {
if (_y > heights) {
y = y * -0.5;
x = x * 0.6;
if (_root.playerbuilding.menpositions[Math.round(_x / 15)] != null) {
_root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor = _root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor - 10;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
}
}
}
}
Instance of Symbol 202 MovieClip "fire" in Frame 6
onClipEvent (load) {
life = 12 + random(10);
y = 5;
}
onClipEvent (enterFrame) {
if (_name != "fire") {
_y = (_y - y);
if (y > 0) {
y = y - 0.2;
}
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
}
}
Instance of Symbol 199 MovieClip "shrap2" in Frame 6
onClipEvent (load) {
angle = random(90) + 225;
speed = (random(30) / 10) + 4;
y = Math.sin((angle / 180) * Math.PI) * speed;
x = Math.cos((angle / 180) * Math.PI) * speed;
life = random(25) + 30;
_rotation = random(360);
rp = random(5);
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
if (_name != "shrap2") {
_rotation = (_rotation + rp);
h = _name;
_y = (_y + y);
_x = (_x + x);
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
y = y + 0.3;
if (y > 0) {
if (_y > heights) {
y = y * -0.5;
x = x * 0.6;
if (_root.playerbuilding.menpositions[Math.round(_x / 15)] != null) {
_root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor = _root["guy" + _root.playerbuilding.menpositions[Math.round(_x / 15)]].armor - 10;
duplicateMovieClip (_root.blood, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
duplicateMovieClip (_root.blood2, "blo" + _root.varr.fc, _root.varr.fc);
_root["blo" + _root.varr.fc]._x = _x;
_root["blo" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
}
}
}
}
Instance of Symbol 118 MovieClip "buy" in Frame 6
on (release) {
_root.buymenu.buy = 1;
_root.playerbuilding.buying = 1;
}
Instance of Symbol 93 MovieClip "mlauncher" in Frame 6
onClipEvent (load) {
timer = 100;
}
onClipEvent (enterFrame) {
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
if (_name != "mlauncher") {
rate = _root.playerbuilding.missilerate;
damage = _root.playerbuilding.missileattack;
num = _root.playerbuilding.heliarray[0];
if (num != null) {
x = _root["h" + num]._x + (_root["h" + num]._width / 4);
y = _root["h" + num]._y + (_root["h" + num]._height / 4);
delta_x = x - _x;
delta_y = y - _y;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
this.gunpointer._rotation = r;
if (timer < 0) {
duplicateMovieClip (_root.missile, "mm" + _root.varr.fc, _root.varr.fc);
_root["mm" + _root.varr.fc]._x = _x;
_root["mm" + _root.varr.fc]._y = _y;
_root["mm" + _root.varr.fc].ra = ra;
_root["mm" + _root.varr.fc].damage = damage;
_root.s8.gotoAndPlay(2);
_root.varr.fc++;
timer = 30 / rate;
}
}
timer--;
}
loop++;
}
}
Instance of Symbol 204 MovieClip "missile" in Frame 6
onClipEvent (load) {
num = _root.playerbuilding.heliarray[0];
timer = 1;
}
onClipEvent (enterFrame) {
if (_root.varr == null) {
removeMovieClip(this);
}
if (_name != "missile") {
if (this.hitTest(_root["h" + num])) {
removeMovieClip(this);
}
if ((num != null) && (_root.playerbuilding.heliarray[0] == num)) {
x = _root["h" + num]._x + (_root["h" + num]._width / 4);
y = _root["h" + num]._y + (_root["h" + num]._height / 4);
delta_x = x - _x;
delta_y = y - _y;
ra = Math.atan2(delta_y, delta_x);
if (delta_y < 0) {
ra = ra + (Math.PI*2);
}
r = (ra / Math.PI) * 180;
_rotation = r;
}
time = _root.varr.millidif / _root.varr.updates;
timer--;
if (timer < 0) {
duplicateMovieClip (_root.smoke, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
timer = -1;
}
loop = 0;
while (loop < time) {
if ((_x > 600) || (_x < 0)) {
if ((_y < 0) || (_y > 300)) {
removeMovieClip(this);
}
}
i = 0;
while (i < 5) {
_x = (_x + (Math.cos(ra) * 5));
_y = (_y + (Math.sin(ra) * 5));
if (this.hitTest(_root["h" + num])) {
_root["h" + num].armor = _root["h" + num].armor - damage;
duplicateMovieClip (_root.crash, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root.s9.gotoAndPlay(2);
removeMovieClip(this);
}
i++;
}
loop++;
}
}
}
Instance of Symbol 202 MovieClip "fire2" in Frame 6
onClipEvent (load) {
life = 12 + random(10);
y = 2;
}
onClipEvent (enterFrame) {
if (_name != "fire2") {
_y = (_y - y);
if (y > 0) {
y = y - 0.2;
}
life--;
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
}
}
Instance of Symbol 208 MovieClip "crash" in Frame 6
onClipEvent (load) {
life = 13;
}
onClipEvent (enterFrame) {
life--;
if (life < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 210 MovieClip "smoke" in Frame 6
onClipEvent (load) {
life = 15;
_rotation = random(360);
angle = random(360);
xx = Math.cos(angle) / 2;
yy = Math.sin(angle) / 2;
}
onClipEvent (enterFrame) {
if (_name != "smoke") {
life--;
_x = (_x + xx);
_y = (_y + yy);
_alpha = (_alpha - 7);
if (life < 0) {
removeMovieClip(this);
}
}
}
Instance of Symbol 212 MovieClip "helibullet" in Frame 6
onClipEvent (load) {
xx = Math.cos((angle / 180) * Math.PI);
yy = Math.sin((angle / 180) * Math.PI);
}
onClipEvent (enterFrame) {
_visible = true;
o = 0;
while (o < 3) {
_x = (_x + (xx * 10));
_y = (_y + (yy * 10));
if (_x < 79) {
_root.playerbuilding.life = _root.playerbuilding.life - 6;
i = 0;
while (i < 3) {
if (_root.varr.part < _root.varr.mpart) {
_root.varr.part++;
duplicateMovieClip (_root.shr, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = 79;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
}
i++;
}
removeMovieClip(this);
}
o++;
}
}
Instance of Symbol 210 MovieClip "shr" in Frame 6
onClipEvent (load) {
_alpha = 100;
angle = random(180) + 270;
speed = 1.4;
y = Math.sin((angle / 180) * Math.PI) * speed;
x = Math.cos((angle / 180) * Math.PI) * speed;
life = random(10) + 10;
_rotation = (random(270) + 180);
heights = _root.playerbuilding.screenheight;
}
onClipEvent (enterFrame) {
h = _name;
if (h != "shr") {
_y = (_y + y);
_x = (_x + x);
life--;
_alpha = (_alpha - 7);
if (life < 0) {
_root.varr.part--;
removeMovieClip(this);
}
y = y + 0.3;
if (y > 0) {
if (_y > heights) {
y = y * -0.5;
x = x * 0.6;
}
}
}
}
Instance of Symbol 214 MovieClip "missile2" in Frame 6
onClipEvent (load) {
ra = (r / 180) * Math.PI;
_rotation = r;
timer = 1;
}
onClipEvent (enterFrame) {
if (_root.varr == null) {
removeMovieClip(this);
}
if (_name != "missile2") {
timer--;
if (timer < 0) {
duplicateMovieClip (_root.smoke, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
timer = 1;
}
time = _root.varr.millidif / _root.varr.updates;
loop = 0;
while (loop < time) {
if ((_x > 600) || (_x < 0)) {
removeMovieClip(this);
if ((_y < 0) || (_y > 300)) {
removeMovieClip(this);
}
}
i = 0;
while (i < 5) {
_x = (_x + (Math.cos(ra) * 5));
_y = (_y + (Math.sin(ra) * 5));
if (_x < 79) {
_root.playerbuilding.life = _root.playerbuilding.life - 50;
duplicateMovieClip (_root.crash, "fire" + _root.varr.fc, _root.varr.fc);
_root["fire" + _root.varr.fc]._x = _x;
_root["fire" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root.s9.gotoAndPlay(2);
removeMovieClip(this);
}
i++;
}
loop++;
}
}
}
Instance of Symbol 217 MovieClip "money" in Frame 6
onClipEvent (load) {
timers = 25;
}
onClipEvent (enterFrame) {
timers--;
money1 = "\u20A4" + Math.round(money);
_y = (_y-1);
if (timers < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 219 MovieClip "bombs" in Frame 6
onClipEvent (load) {
xspeed = -2;
yspeed = 0;
t = 5;
}
onClipEvent (enterFrame) {
yspeed = yspeed + 0.3;
_x = (_x + xspeed);
_y = (_y + yspeed);
t--;
if (t < 0) {
t = 5;
if (_x > 600) {
removeMovieClip(this);
}
i = 0;
while (i < 7) {
if (this.hitTest(_root["auto" + i])) {
duplicateMovieClip (_root.explos, "mon" + _root.varr.fc, _root.varr.fc);
_root["mon" + _root.varr.fc]._x = _x;
_root["mon" + _root.varr.fc]._y = _y;
_root.varr.fc++;
_root["auto" + i].armor = _root["auto" + i].armor - 20;
_root.s9.gotoAndPlay(2);
removeMovieClip(this);
}
i++;
}
}
}
Instance of Symbol 231 MovieClip "explos" in Frame 6
onClipEvent (load) {
life = 10;
}
onClipEvent (enterFrame) {
life--;
if (life < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 231 MovieClip "exploss" in Frame 6
onClipEvent (load) {
life = 10;
}
onClipEvent (enterFrame) {
life--;
if (life < 0) {
removeMovieClip(this);
}
}
Instance of Symbol 236 MovieClip "levelgap" in Frame 6
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_visible == true) {
num = _root.varr.breaktime;
texts = num;
}
}
Instance of Symbol 241 MovieClip in Frame 6
onClipEvent (enterFrame) {
stext = "Score: " + Math.round(_root.playerbuilding.score);
}
Instance of Symbol 241 MovieClip in Frame 6
onClipEvent (enterFrame) {
stext = "Money: $" + Math.round(_root.playerbuilding.money);
}
Instance of Symbol 241 MovieClip in Frame 6
onClipEvent (enterFrame) {
stext = "Level: " + _root.varr.level;
}
Instance of Symbol 243 MovieClip in Frame 6
on (press) {
i = 0;
while (i < _root.playerbuilding.heliarray.length) {
removeMovieClip(_root["h" + _root.playerbuilding.heliarray[i]]);
i++;
}
i = 0;
while (i < _root.playerbuilding.men.length) {
removeMovieClip(_root["guy" + _root.playerbuilding.men[i]]);
i++;
}
i = 0;
while (i < 6) {
removeMovieClip(_root["auto" + i]);
i++;
}
i = 0;
while (i < 2) {
removeMovieClip(_root["ml" + i]);
i++;
}
_root.scoreholder.level = _root.varr.level;
_root.scoreholder.scores = _root.playerbuilding.score;
avgfps = Math.round(_root.fpst.totalfps / _root.fpst.totaltime);
_root.scoreholder.avgfps = avgfps;
_root.gotoAndPlay(7);
}
Instance of Symbol 245 MovieClip in Frame 6
on (press) {
_quality = "high";
}
Instance of Symbol 247 MovieClip in Frame 6
on (press) {
_quality = "medium";
}
Instance of Symbol 249 MovieClip in Frame 6
on (press) {
_quality = "low";
}
Instance of Symbol 252 MovieClip "black" in Frame 6
onClipEvent (load) {
timer = 100;
timer2 = 101;
_alpha = 0;
go = 0;
_visible = false;
if (_name != "black") {
_visible = true;
} else {
duplicateMovieClip (this, "black1", 1000001);
}
}
Instance of Symbol 284 MovieClip "buymen" in Frame 6
onClipEvent (load) {
_visible = false;
max = new Array(0, 6, 2, 4, 23, 20, 16, 5, 0, 10, 4, 200, 1.5);
names = new Array("", "", "", "", "rates", "attack", "autoattack", "autorate", "", "towerattack", "towerrate", "missileattack", "missilerate", "life", "lifemax");
if (_name != "buymen") {
} else {
duplicateMovieClip (this, "buymenu", 1000009);
}
types = 1;
while (types < 16) {
this["t" + types].onRollOver = function () {
this._xscale = 130;
this.ex = 1;
};
this["t" + types].onRollOut = function () {
this.ex = 0;
};
this["t" + types].onEnterFrame = function () {
if (this._parent._visible == true) {
i = 0;
while (i < 5) {
if ((this.ex == 1) && (this._xscale < 150)) {
this.bg2._visible = true;
this.bg2._alpha = this.bg2._alpha + 4;
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
} else if ((this._xscale > 125) && (this.ex == 0)) {
this.bg2._alpha = this.bg2._alpha - 4;
this._xscale = this._xscale - 1;
this._yscale = this._yscale - 1;
}
if (this._xscale < 125) {
this._xscale = 125;
}
if (this.bg2._alpha < 0) {
this.bg2._alpha = 0;
}
if (this._yscale < 125) {
this._yscale = 125;
}
i++;
}
}
};
types++;
}
}
onClipEvent (enterFrame) {
if (_name != "buymen") {
if (buy == 1) {
_visible = true;
} else {
_visible = false;
}
}
if (_visible == true) {
types = 4;
while (types < 13) {
if ((_root.playerbuilding.money < _root.playerbuilding.costs[types]) || (_root.playerbuilding[names[types]] >= max[types])) {
this["t" + types].xx._visible = true;
} else {
this["t" + types].xx._visible = false;
}
this["t" + types].info2 = ("cost (" + _root.playerbuilding.costs[types]) + ")";
this["t" + types].info3 = ((("current:" + _root.playerbuilding[names[types]]) + "(max:") + max[types]) + ")";
types++;
}
types = 13;
while (types < 15) {
if (_root.playerbuilding.money < _root.playerbuilding.costs[types]) {
this["t" + types].xx._visible = true;
} else {
this["t" + types].xx._visible = false;
}
this["t" + types].info2 = ("cost (" + _root.playerbuilding.costs[types]) + ")";
this["t" + types].info3 = "current:" + _root.playerbuilding[names[types]];
types++;
}
ll = 0;
num = 0;
i = 0;
while (i < 4) {
if (_root.playerbuilding.gunactive[i] == 1) {
ll = 1;
num++;
}
i++;
}
if (ll == 1) {
this.t10.mk = 0;
this.t9.mk = 0;
} else {
this.t10.mk = 1;
this.t9.mk = 1;
this.t10.xx._visible = true;
this.t9.xx._visible = true;
}
if (num == 4) {
this.t3.xx._visible = true;
}
ll = 0;
num = 0;
i = 0;
while (i < 5) {
if (_root["auto" + i] != null) {
ll = 1;
num++;
}
i++;
}
if (ll == 1) {
this.t6.mk = 0;
this.t7.mk = 0;
} else {
this.t6.mk = 1;
this.t7.mk = 1;
this.t6.xx._visible = true;
this.t7.xx._visible = true;
}
if (num == 5) {
this.t1.xx._visible = true;
}
ll = 0;
num = 0;
i = 0;
while (i < 2) {
if (_root["ml" + i] != null) {
ll = 1;
num++;
}
i++;
}
if (num == 2) {
this.t2.xx._visible = true;
}
if (ll == 1) {
this.t11.mk = 0;
this.t12.mk = 0;
} else {
this.t11.mk = 1;
this.t12.mk = 1;
this.t11.xx._visible = true;
this.t12.xx._visible = true;
}
}
}
Instance of Symbol 294 MovieClip in Frame 6
onClipEvent (load) {
if (_root.pmode.pmode == 1) {
gotoAndPlay (2);
} else {
gotoAndPlay (13);
}
}
Frame 7
stop();
Instance of Symbol 44 MovieClip in Frame 7
onClipEvent (load) {
stopAllSounds();
}
Instance of Symbol 315 MovieClip in Frame 7
onClipEvent (load) {
score = _root.scoreholder.scores;
level = _root.scoreholder.level;
avgfps = _root.scoreholder.avgfps;
texts = "Score: " + Math.round(score);
done = 0;
submit = 0;
timer = 50;
t2 = 0;
loadVariablesNum (_root.vars.urls + "countfinish.php?", 0, "POST");
id = 493;
}
onClipEvent (enterFrame) {
if ((submit == 1) && (done == 0)) {
t2 = 1;
done = 1;
submit = 0;
if (_root.pmode.pmode == 1) {
loadVariablesNum ((((((((((_root.vars.urls + "heliinput.php?names=") + names) + "&level=") + level) + "&score=") + score) + "&avgfps=") + avgfps) + "&id=") + id, 0, "POST");
}
if (_root.pmode.pmode == 2) {
loadVariablesNum ((((((((((_root.vars.urls + "heliinput2.php?names=") + names) + "&level=") + level) + "&score=") + score) + "&avgfps=") + avgfps) + "&id=") + id, 0, "POST");
}
}
if (t2 == 1) {
timer--;
}
if (timer < 0) {
_root.gotoAndStop(8);
}
}
Instance of Symbol 321 MovieClip "sk" in Frame 8
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_alpha < 70) {
_alpha = (_alpha + 4);
}
}
Instance of Symbol 327 MovieClip "skh" in Frame 8
onClipEvent (load) {
fc = 1;
ti = 5;
types = 1;
if (_root.pmode.pmode == 2) {
this.loadVariables((_root.vars.urls + "helioutput2.php?ran=") + random(3444), 0, "GET");
this.norm._alpha = 50;
} else {
this.loadVariables((_root.vars.urls + "helioutput.php?ran=") + random(3444), 0, "GET");
sur._alpha = 50;
}
}
onClipEvent (enterFrame) {
ti--;
if ((fc < 11) & (ti < 0)) {
ti = 1;
duplicateMovieClip (_root.sk, "sk" + fc, fc);
_root["sk" + fc]._x = 120;
_root["sk" + fc]._y = 20 + (23 * fc);
if (this["score" + fc] == undefined) {
this["score" + fc] = "--";
}
if (this["level" + fc] == undefined) {
this["level" + fc] = "--";
}
if (this["name" + fc] == undefined) {
this["name" + fc] = "--";
}
_root["sk" + fc].score = this["score" + fc];
_root["sk" + fc].level = this["level" + fc];
_root["sk" + fc].names = this["name" + fc];
_root["sk" + fc].num = fc;
fc++;
}
if (fc > 10) {
if ((go == 1) && (types == 1)) {
i = 0;
while (i < 11) {
this["score" + i] = "--";
this["name" + i] = "--";
this["level" + i] = "--";
i++;
}
go = 0;
this.loadVariables((_root.vars.urls + "helioutput.php?ran=") + random(3444), 0, "GET");
} else if ((go == 1) && (types == 2)) {
i = 0;
while (i < 11) {
this["score" + i] = "--";
this["name" + i] = "--";
this["level" + i] = "--";
i++;
}
go = 0;
this.loadVariables((_root.vars.urls + "helioutput2.php?ran=") + random(3444), 0, "GET");
}
i = 0;
while (i < 11) {
_root["sk" + i].score = this["score" + i];
_root["sk" + i].level = this["level" + i];
_root["sk" + i].names = this["name" + i];
if (this["score" + i] == undefined) {
this["score" + i] = "--";
}
if (this["level" + i] == undefined) {
this["level" + i] = "--";
}
if (this["name" + i] == undefined) {
this["name" + i] = "--";
}
i++;
}
}
}
Instance of Symbol 329 MovieClip in Frame 8
on (release) {
_root.skh.go = 1;
}
Instance of Symbol 331 MovieClip in Frame 8
on (press) {
i = 0;
while (i < 11) {
removeMovieClip(_root["sk" + i]);
i++;
}
_root.gotoAndPlay(3);
}
Instance of Symbol 17 MovieClip in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._parent._parent.def == null) {
_rotation = (_rotation + 45);
}
}
Symbol 28 MovieClip Frame 1
stop();
Instance of Symbol 15 MovieClip "blade" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
frame = 1;
speed = 2;
}
onClipEvent (enterFrame) {
frame = frame + speed;
gotoAndPlay(frame);
if (frame > 9) {
frame = 1;
}
}
Symbol 31 MovieClip Frame 1
stop();
Instance of Symbol 33 MovieClip in Symbol 34 MovieClip Frame 1
onClipEvent (enterFrame) {
_xscale = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (_xscale == 100) {
_root.player.pl = 1;
_root.infobot.pl = 1;
}
}
Symbol 44 MovieClip Frame 7
stop();
Symbol 80 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 1
stop();
stop();
Symbol 108 MovieClip Frame 4
gotoAndStop (1);
Symbol 122 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 39
stop();
Symbol 157 MovieClip Frame 32
gotoAndPlay (1);
Instance of Symbol 15 MovieClip in Symbol 195 MovieClip Frame 1
onClipEvent (load) {
frame = 1;
speed = 2;
}
onClipEvent (enterFrame) {
frame = frame + speed;
gotoAndPlay(frame);
if (frame > 9) {
frame = 1;
}
}
Symbol 199 MovieClip Frame 1
stop();
Symbol 202 MovieClip Frame 24
stop();
Instance of Symbol 235 MovieClip in Symbol 236 MovieClip Frame 1
on (release) {
_root.varr.breaktime = 0;
}
Instance of Symbol 118 MovieClip "buy" in Symbol 236 MovieClip Frame 1
on (release) {
_root.buymenu.buy = 1;
_root.playerbuilding.buying = 1;
}
Symbol 239 MovieClip Frame 1
stop();
Instance of Symbol 260 MovieClip "bg2" in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_alpha = 0;
}
Instance of Symbol 262 MovieClip "bg" in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 269 MovieClip "xx" in Symbol 279 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 260 MovieClip "bg2" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
_alpha = 0;
}
Instance of Symbol 262 MovieClip "bg" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 269 MovieClip "xx" in Symbol 283 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 258 MovieClip in Symbol 284 MovieClip Frame 1
on (release) {
_root.playerbuilding.buying = 0;
this._parent.buy = 0;
}
Instance of Symbol 279 MovieClip "t7" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 7;
gotoAndStop(types - 3);
info = "increase rate of fire";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t6" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 6;
gotoAndStop(types - 3);
info = "increase bullet damage ";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.costs[types] <= _root.playerbuilding.money) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t12" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 12;
gotoAndStop(types - 3);
info = "increase rate of fire ";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t11" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 11;
gotoAndStop(types - 3);
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t4" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 4;
gotoAndStop(types - 3);
info = "increase rate of fire ";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t5" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 5;
gotoAndStop(types - 3);
info = "increase bullet damage ";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
info = "increase bullet damage ";
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t10" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 10;
gotoAndStop(types - 3);
info = "increase rate of fire ";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 279 MovieClip "t9" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 9;
gotoAndStop(types - 3);
info = "increase bullet damage ";
}
on (press) {
if (mk != 1) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
}
on (release) {
this.bg._visible = false;
}
Instance of Symbol 283 MovieClip "t1" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 1;
info = "buy an AA gun ";
info3 = "max 6";
switch (types) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
}
}
on (press) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
on (release) {
this.bg._visible = false;
}
onClipEvent (enterFrame) {
if (_root.playerbuilding.money < _root.playerbuilding.costs[types]) {
this.xx._visible = true;
} else {
this.xx._visible = false;
}
}
onClipEvent (enterFrame) {
info2 = ("cost (" + _root.playerbuilding.costs[types]) + ")";
}
Instance of Symbol 283 MovieClip "t3" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 3;
gotoAndStop(types);
info3 = "max 4";
info = "buy an extra gun";
}
on (press) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
on (release) {
this.bg._visible = false;
}
onClipEvent (enterFrame) {
info2 = ("cost (" + _root.playerbuilding.costs[types]) + ")";
if (_root.playerbuilding.money < _root.playerbuilding.costs[types]) {
this.xx._visible = true;
} else {
this.xx._visible = false;
}
}
onClipEvent (enterFrame) {
info2 = ("cost (" + _root.playerbuilding.costs[types]) + ")";
}
Instance of Symbol 283 MovieClip "t2" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 2;
info = "buy a missile launcher ";
info3 = "max 2";
switch (types) {
case 1 :
gotoAndStop (1);
break;
case 2 :
gotoAndStop (2);
break;
case 3 :
gotoAndStop (3);
}
}
on (press) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
on (release) {
this.bg._visible = false;
}
onClipEvent (enterFrame) {
if (_root.playerbuilding.money < _root.playerbuilding.costs[types]) {
this.xx._visible = true;
} else {
this.xx._visible = false;
}
}
onClipEvent (enterFrame) {
info2 = ("cost (" + _root.playerbuilding.costs[types]) + ")";
}
Instance of Symbol 279 MovieClip "t13" in Symbol 284 MovieClip Frame 1
onClipEvent (load) {
types = 13;
info = "repair building";
gotoAndStop(types - 3);
}
on (press) {
if (_root.playerbuilding.money > _root.playerbuilding.costs[types]) {
_root.playerbuilding.buy = types;
this.bg._visible = true;
}
}
on (release) {
this.bg._visible = false;
}
Symbol 287 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 1
stop();
Symbol 294 MovieClip Frame 10
stop();
Symbol 294 MovieClip Frame 12
stop();
Symbol 295 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 4
stop();
Symbol 299 MovieClip Frame 1
stop();
Symbol 301 MovieClip Frame 1
stop();
Symbol 303 MovieClip Frame 1
stop();
Symbol 305 MovieClip Frame 1
stop();
Instance of Symbol 309 MovieClip in Symbol 315 MovieClip Frame 1
on (release) {
this._parent.submit = 1;
}
Instance of Symbol 313 MovieClip in Symbol 315 MovieClip Frame 1
on (release) {
_root.gotoAndPlay(3);
}
Instance of Symbol 323 MovieClip "sur" in Symbol 327 MovieClip Frame 1
on (release) {
_alpha = 100;
this._parent.types = 2;
this._parent.norm._alpha = 50;
this._alpha = 100;
this._parent.go = 1;
}
Instance of Symbol 326 MovieClip "norm" in Symbol 327 MovieClip Frame 1
on (release) {
_alpha = 100;
this._parent.types = 1;
this._parent.sur._alpha = 50;
this._alpha = 100;
this._parent.go = 1;
}