Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (35 >= Math.round(b1 / 1024)) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (9 >= tg) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (100 >= Math.round(b1 / 1024)) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgPrel - 2;
if (9 >= tgPrel) {
procent = "0" + tg;
trace(procent);
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 141
fscommand ("allowscale", false);
fscommand ("showmenu", false);
stop();
Frame 142
sc = 0;
sunet = true;
Ok = 1;
sc = 0;
w.t = getTimer();
pre.f = 0;
s = "";
w.gotoAndStop(2);
lev = 0;
lT = new Array(10);
lT[0] = " <u>Mission 1: <b>Enter Proxyma</b></u><br><br>You have found a portal into the enemy world. Go there<br>and destroy the portal guards. Be careful, the spies<br>have reported the presence of many tanks. Try to destroy <br><b>6</b> simple tanks.<br>Good luck!<br><br><br>";
lT[1] = " <u>Mission 2: <b>Get Ready</b></u><br><br>Congratulations!!!<br>You passed the level and now you are about to enter<br>into the maze. You need to hunt <b>5 advanced</b> tanks.<br>Try to find out as many objects possibile.<br>Good luck!<br><br><br>";
lT[2] = " <u>Mission 3: <b>The Maze</b></u><br><br>Congratulations!!!<br>You have entered into the maze, here is a small base of <br>the enemies. Try to collect <b>5 pick ups</b> to make your tank <br>more powerful. Watch out for the enemy tanks!<br>Good luck!";
lT[3] = " <u>Mission 4: <b>The Bridge</b></u><br><br>Congratulations!!!<br>You will encounter special troops of the enemies in <br>this level.There are some phantom tanks, waiting for <br>you. Try to eliminate <b>5 phantom</b> tanks.<br>Good luck!";
lT[4] = " <u>Mission 5: <b>Proxyma's Fall</b></u><br><br>Congratulations!!!<br>You have entered into the center of the maze and <br>activated the auto-destruction program. There are only <br>5 minutes left before the final explosion. But, you need <br><b>3 minutes</b> to activate the <b>teleport</b>and get back to <br>your home. <br>Good luck!";
lE = new Array(10);
lF = new Array(10);
lE[0] = "<u>Mission 1:</u> Enter Proxyma<br>Destroy ";
lF[0] = "</b> enemy tanks";
lE[1] = "<u>Mission 2:</u> Get Ready<br>Destroy <b>";
lF[1] = "</b> advanced tanks";
lE[2] = "<u>Mission 3:</u> The maze<br>Collect <b>";
lF[2] = "</b> pick ups";
lE[3] = "<u>Mission 4:</u> The Bridge<br>Destroy <b>";
lF[3] = "</b> phantom tanks";
lE[4] = "<u>Mission 5:</u> Proxyma's Fall<br>Survive <b>";
lF[4] = "</b> in the center";
stop();
Instance of Symbol 85 MovieClip "w" in Frame 142
onClipEvent (enterFrame) {
if (Key.isDown(83)) {
if (_parent.sunet) {
_parent.sunet = false;
} else {
_parent.sunet = true;
}
}
if (_parent.Ok == 1) {
_parent.Ok = 2;
_parent.rec = _parent.tr;
}
if (Key.isDown(32) && (_parent.Ok == 2)) {
_parent.gotoAndStop("Start");
}
if (c < l) {
c++;
_parent.ss = _parent.ss add s.charAt(c);
_parent.s = _parent.ss;
if (c < l) {
_parent.s = _parent.s add "|";
}
}
}
Instance of Symbol 265 MovieClip "pre" in Frame 142
onClipEvent (enterFrame) {
f++;
if (36 < f) {
f = 1;
r++;
}
if (5 < r) {
if (_currentframe == _totalframes) {
gotoAndStop (141);
} else {
nextFrame();
}
}
o.gotoAndStop(f);
}
Frame 143
if (sunet) {
w2.gotoAndStop("show");
}
ss = "";
w.c = -1;
s = "";
w.s = Lt[lev];
w.l = w.s.length;
w.t2 = getTimer();
dt = 1;
if (lev == 0) {
dt = 6;
}
if (lev == 1) {
dt = 5;
}
if (lev == 2) {
dt = 5;
}
if (lev == 3) {
dt = 5;
}
stop();
Instance of Symbol 85 MovieClip "w" in Frame 143
onClipEvent (enterFrame) {
if (Key.isDown(83) && (500 < (getTimer() - t2))) {
if (_parent.sunet) {
_parent.sunet = false;
} else {
_parent.sunet = true;
}
if (_parent.sunet) {
t2 = getTimer();
_parent.w2.gotoAndStop("show");
} else {
t2 = getTimer();
_parent.w2.gotoAndStop(1);
stopAllsunets();
}
}
if (_currentframe == 1) {
c++;
_parent.ss = _parent.ss add s.charAt(c);
_parent.s = _parent.ss;
if (c < s.length) {
_parent.s = _parent.s add "|";
} else {
gotoAndStop (142);
}
if (Key.isDown(32) && (500 < (getTimer() - t))) {
_parent.s = s;
t = getTimer();
gotoAndStop (142);
}
}
if (_currentframe == 2) {
if (Key.isDown(32) && (500 < (getTimer() - t))) {
_parent.time = getTimer();
_parent.gotoAndStop("Game");
}
}
}
Frame 144
stopAllSounds();
pause = false;
small.level = 0;
tmsg = "";
w0.s = "Game started";
shl = 0;
lsr = 0;
gen = 0;
flw = 0;
ls = 0;
la = 0;
lp = 0;
lo = 0;
li = 0;
ma = 0;
mx = 0;
my = 0;
arm = 100;
can.bg.gotoAndStop(100);
armor.st = -1;
small.sc = 1;
small.old = 0;
small.T2 = getTimer();
small.T1 = getTimer();
small.tt = 0;
small.old = 0;
tmax = lev + 3;
te = 0;
msg = (lE[lev] add dt) add LF[lev];
generate_map();
small.move = true;
small.change = true;
Ox = new Array(82);
Oy = new Array(82);
Ot = new Array(82);
Oa = new Array(82);
tn = 0;
Tx = new Array(10);
Ty = new Array(10);
Ta = new Array(10);
Ta2 = new Array(10);
Ts = new Array(10);
Tst = new Array(10);
Tt = new Array(10);
Tp = new Array(10);
T_t = new Array(10);
Gn = 0;
Gx = new Array(10);
Gy = new Array(10);
Ga = new Array(10);
Gt = new Array(10);
Gp = new Array(10);
Ps = new Array(3);
Pp = new Array(3);
Pr = new Array(3);
Ps[0] = 0.025;
Ps[1] = 0.05;
Ps[2] = 0.075;
Pp[0] = 1;
Pp[1] = 2;
Pp[2] = 3;
Pr[0] = 2.5;
Pr[1] = 5;
Pr[2] = 10;
Pg[0] = 10;
Pg[1] = 15;
Pg[2] = 20;
en = 0;
Ex = new Array(10);
Ey = new Array(10);
Et = new Array(10);
Ea = new Array(10);
small.Ox = new Array(110);
small.Oy = new Array(110);
small.Oa = new Array(110);
small.Ot = new Array(110);
small.Op = new Array(110);
i = 0;
while (i < 9) {
j = 0;
while (j < 9) {
k = (i * 9) + j;
Ox[k] = (i - 4) * 2;
Oy[k] = (j - 4) * 2;
Ot[k] = int(random(2)) + 1;
Oa[k] = int(random(360) / 10);
if (Ot[k] == 1) {
Ox[k] = Ox[k] + (int(random(1)) - 1);
Oy[k] = Oy[k] + (int(random(1)) - 1);
}
if ((Ox[k] == 0) && (Oy[k] == 0)) {
Ox[k] = int(random(4)) * 0.25;
}
j++;
}
i++;
}
stop();
Instance of Symbol 282 MovieClip "bg" in Frame 144
/* no clip actions */
Instance of Symbol 327 MovieClip "small" in Frame 144
onClipEvent (enterFrame) {
function control() {
time = getTimer() - _parent.t;
if (Key.isDown(32) && (500 < dt)) {
if (_parent.can.bg._currentFrame == 50) {
_parent.Gx[_parent.Gn] = _parent.mx;
_parent.Gy[_parent.Gn] = _parent.my;
_parent.Ga[_parent.Gn] = _parent.ma;
_parent.Gt[_parent.Gn] = 0;
_parent.Gp[_parent.Gn] = 0;
_parent.Gn++;
_parent.can.bg.gotoAndStop(1);
if (_parent.sunet) {
if (_parent.lsr) {
_parent.w2.gotoAndPlay("Laser");
} else {
_parent.w2.gotoAndPlay("Cannon");
}
}
}
}
if (Key.isDown(90)) {
sc = sc + 0.5;
if (2.5 < sc) {
sc = 2.5;
}
change = true;
}
if (Key.isDown(88)) {
sc = sc - 0.5;
if (sc < 0.5) {
sc = 0.5;
}
change = true;
}
if (Key.isDown(37)) {
ma = _parent.ma - 10;
if (ma < 0) {
ma = 350;
}
_parent.ma = ma;
_parent.bg._x = (-_parent.ma) * 4;
change = true;
}
if (Key.isDown(39)) {
ma = _parent.ma + 10;
if (350 < ma) {
ma = 0;
}
_parent.ma = ma;
_parent.bg._x = (-_parent.ma) * 4;
change = true;
}
if (Key.isDown(38)) {
ma = ((_parent.ma + 90) * Math.PI) / 180;
my = _parent.my + (0.25 * Math.sin(ma));
mx = _parent.mx - (0.25 * Math.cos(ma));
if (free(mx, my) && (Tfree(mx, my, -1))) {
_parent.my = my;
_parent.mx = mx;
change = true;
}
}
if (Key.isDown(40)) {
ma = ((_parent.ma + 90) * Math.PI) / 180;
my = _parent.my - (0.25 * Math.sin(ma));
mx = _parent.mx + (0.25 * Math.cos(ma));
if (free(mx, my) && (TFree(mx, my, -1))) {
_parent.my = my;
_parent.mx = mx;
change = true;
}
}
}
function generate_tank() {
tt++;
if (((tt % 24) == 0) && (_parent.tn < _parent.tmax)) {
do {
A = ((_parent.tn + int(random(10))) * 360) / _parent.tmax;
x = _parent.mx + (2.5 * Math.cos((A * Math.PI) / 180));
y = _parent.my + (2.5 * Math.sin((A * Math.PI) / 180));
} while ((!free(x, y)) && (!Tfree(x, y, _parent.tn)));
_parent.Tx[_parent.tn] = x;
_parent.Ty[_parent.tn] = y;
_parent.Ta[_parent.tn] = int(random(36)) * 10;
if (_parent.lev == 0) {
l = 1;
}
if ((0 < _parent.lev) && (_parent.lev < 3)) {
l = 2;
}
if (2 < _parent.lev) {
l = 3;
}
_parent.Tt[_parent.tn] = int(random(l));
_parent.Ts[_parent.tn] = 0;
_parent.Tst[_parent.tn] = 0;
_parent.Tp[_parent.tn] = _parent.Pp[_parent.Tt[_parent.tn]];
_parent.Tt[_parent.tn] = _parent.Tt[_parent.tn] + 5;
_parent.T_t[_parent.tn] = 0;
_parent.tn++;
move = true;
}
}
function show_map() {
i = 0;
while (i < 81) {
tellTarget ("p" add i) {
_x = 300;
};
i++;
}
ma = (_parent.ma * Math.PI) / 180;
i = 0;
while (i < 81) {
t = _parent.Ot[i];
x = _parent.Ox[i] - _parent.mx;
y = _parent.Oy[i] - _parent.my;
if (y < -9) {
_parent.Oy[i] = _parent.Oy[i] + 18;
}
if (9 < y) {
_parent.Oy[i] = _parent.Oy[i] - 18;
}
if (x < -9) {
_parent.Ox[i] = _parent.Ox[i] + 18;
}
if (9 < x) {
_parent.Ox[i] = _parent.Ox[i] - 18;
}
r = Math.sqrt((x * x) + (y * y));
a = Math.atan(y / x) + ma;
s = 1;
sa = Math.sin(a);
ca = Math.cos(a);
ra = _parent.Oa[i] - _parent.ma;
ra = ra % 360;
s = 1;
if (x < 0) {
s = -1;
}
x = (r * s) * ca;
y = (r * s) * sa;
x = x * 10;
y = y * 10;
j = i + 1;
tellTarget ("p" add j) {
_x = (_parent.x * _parent.sc);
_y = ((-_parent.y) * _parent.sc);
_xscale = (_parent.sc * 100);
_yscale = _xscale;
_rotation = _parent.ra;
gotoAndStop(_parent.t);
};
i++;
}
change = false;
}
function show_tank() {
i = 0;
while (i < 10) {
tellTarget ("p" add (i + 82)) {
_x = 300;
};
i++;
}
ma = (_parent.ma * Math.PI) / 180;
i = 0;
while (i < _parent.tn) {
t = _parent.Tt[i];
x = _parent.Tx[i] - _parent.mx;
y = _parent.Ty[i] - _parent.my;
r = Math.sqrt((x * x) + (y * y));
a = Math.atan(y / x) + ma;
s = 1;
sa = Math.sin(a);
ca = Math.cos(a);
ra = _parent.Ta[i] - _parent.ma;
ra = ra % 360;
s = 1;
if (x < 0) {
s = -1;
}
x = (r * s) * ca;
y = (r * s) * sa;
x = x * 10;
y = y * 10;
j = i + 81;
tellTarget ("p" add j) {
_x = (_parent.x * _parent.sc);
_y = ((-_parent.y) * _parent.sc);
_xscale = (_parent.sc * 100);
_yscale = _xscale;
_rotation = _parent.ra;
gotoAndStop(_parent.t);
};
i++;
}
i = _parent.Tn;
while (i < 10) {
tellTarget ("p" add (i + 82)) {
_x = 300;
};
i++;
}
change = false;
move = false;
}
function tanks() {
if (0 < tt) {
l = "";
ll = 1;
i = 0;
while (i < _parent.tn) {
x = _parent.Tx[i] - _parent.mx;
y = _parent.Ty[i] - _parent.my;
tt2 = _parent.Tt[i] - 5;
Ps = _parent.Ps[tt2];
Pr = _parent.Pr[tt2];
Pg = _parent.Pg[tt2];
if (((-0.5 < x) && (x < 0.5)) && (y < 0)) {
ll = 2;
}
d = Math.sqrt((x * x) + (y * y));
a2 = (Math.atan(y / x) * 180) / Math.PI;
if (x < 0) {
a2 = 180 + a2;
} else if (y < 0) {
a2 = 360 + a2;
}
a2 = (270 - a2) % 360;
a = _parent.Ta[i];
if (((a2 - Pr) < a) && (a < (a2 + Pr))) {
l = "traced";
}
if (0 < _parent.Tst[i]) {
_parent.Tst[i]--;
}
if ((_parent.Tst[i] == 0) && (l != "")) {
_parent.Ts[i] = 5;
}
if ((_parent.Ts[i] == 0) && (3 < d)) {
_parent.Ts[i] = 1;
}
if (_parent.Ts[i] == 0) {
a = (_parent.Ta[i] * Math.PI) / 180;
ca = Math.cos(a);
sa = Math.sin(a);
y = _parent.Ty[i] + (Ps * Math.cos(a));
x = _parent.Tx[i] + (Ps * Math.sin(a));
if (free(x, y) && (Tfree(x, y, i))) {
_parent.Tx[i] = x;
_parent.Ty[i] = y;
} else {
_parent.Ts[i] = 3;
}
}
if (_parent.Ts[i] == 1) {
a = _parent.Ta[i];
if (a < a2) {
a = a + Pr;
}
if (a2 < a) {
a = a - Pr;
}
if (((a2 - Pr) < a) && (a < (a2 + Pr))) {
_parent.Ts[i] = 2;
}
_parent.Ta[i] = a % 360;
}
if (_parent.Ts[i] == 2) {
a = (_parent.Ta[i] * Math.PI) / 180;
ca = Math.cos(a);
sa = Math.sin(a);
y = _parent.Ty[i] + (Ps * Math.cos(a));
x = _parent.Tx[i] + (Ps * Math.sin(a));
if (free(x, y) && (Tfree(x, y, i))) {
_parent.Tx[i] = x;
_parent.Ty[i] = y;
} else {
_parent.Ts[i] = 3;
}
}
if (_parent.Ts[i] == 3) {
if (_parent.T_t[i] < 5) {
_parent.T_t[i]++;
a = (_parent.Ta[i] * Math.PI) / 180;
ca = Math.cos(a);
sa = Math.sin(a);
y = _parent.Ty[i] - (Ps * Math.cos(a));
x = _parent.Tx[i] - (Ps * Math.sin(a));
if (free(x, y) && (Tfree(x, y, i))) {
_parent.Tx[i] = x;
_parent.Ty[i] = y;
} else {
_parent.Ts[i] = 4;
_parent.Ta2[i] = int(random(36)) * 10;
_parent.T_t[i] = 0;
}
} else {
_parent.Ts[i] = 4;
_parent.Ta2[i] = int(random(36) * 10);
_parent.T_t[i] = 0;
}
}
if (_parent.Ts[i] == 4) {
a = _parent.Ta[i];
a2 = _parent.Ta2[i];
if (a < a2) {
a = a + Pr;
}
if (a2 < a) {
a = a - Pr;
}
if (((a2 - (Pr + 5)) < a) && (a < (a2 + (Pr + 5)))) {
_parent.Ts[i] = 0;
}
_parent.Ta[i] = a % 360;
}
if ((_parent.Ts[i] == 5) && (level == 0)) {
_parent.Gx[_parent.Gn] = _parent.Tx[i];
_parent.Gy[_parent.Gn] = _parent.Ty[i];
_parent.Ga[_parent.Gn] = _parent.Ta[i];
_parent.Gt[_parent.Gn] = 1;
_parent.Gp[_parent.Gn] = 0;
_parent.Gn++;
_parent.Ts[i] = 0;
_parent.Tst[i] = 12;
}
i++;
}
move = true;
_parent.x.txt = l;
_parent.x.gotoAndStop(ll);
}
}
function guns() {
ma = (_parent.ma * Math.PI) / 180;
j = 0;
while (j < 10) {
tellTarget ("p" add (j + 92)) {
_x = 300;
};
j++;
}
i = 0;
while (i < _parent.Gn) {
if (_parent.Gp[i] < 12) {
score = 0;
_parent.Gp[i]++;
t = _parent.Gt[i];
a = (_parent.Ga[i] * Math.PI) / 180;
x = _parent.Gx[i] - _parent.mx;
y = _parent.Gy[i] - _parent.my;
r = Math.sqrt((x * x) + (y * y));
if ((r < 0.2) && (_parent.Gt[i] == 1)) {
_parent.Gp[i] = 13;
if (_parent.shl == 0) {
_parent.arm = _parent.arm - 10;
}
_parent.armor.st++;
if (_parent.arm < 0) {
_parent.armor.gotoAndStop(51);
}
}
y = _parent.Gy[i] + (0.5 * Math.cos(a));
x = _parent.Gx[i] + (0.5 * Math.sin(a));
if (!free(x, y, 1)) {
_parent.Gp[i] = 13;
}
if (!Tfree(x, y, -1)) {
_parent.Tp[tg]--;
if ((0 < _parent.gen) && (_parent.Gt[i] == 0)) {
GS = 0;
GA = 0;
GP = 0;
j = 0;
while (j < _parent.tn) {
_parent.Tp[j] = 0;
if (_parent.Tt[i] == 5) {
GS++;
}
if (_parent.Tt[i] == 6) {
GA++;
}
if (_parent.Tt[i] == 7) {
GP++;
}
j++;
}
if (0 < GS) {
Gs--;
}
if (0 < Gp) {
Gp--;
}
if (0 < Ga) {
Ga--;
}
_parent.LS = _parent.LS + Gs;
_parent.LA = _parent.LA + Ga;
_parent.LP = _parent.LP + Gp;
_parent.tn = 1;
_parent.gen = 0;
score = score + (((GS * 1000) + (GA * 2000)) + (GP * 3000));
}
if (_parent.Tp[tg] < 1) {
if (((int(random(10)) % 3) == 0) && (_parent.GT[i] == 0)) {
_parent.w0.s = "Pick up avaiable";
if (_parent.sunet) {
_parent.w1.gotoAndPlay("effect");
}
_parent.Ex[_parent.en] = _parent.Tx[tg];
_parent.Ey[_parent.en] = _parent.Ty[tg];
_parent.Et[_parent.en] = int(random(4));
_parent.Ea[_parent.en] = _parent.Ta[tg];
if (_parent.en < 4) {
_parent.en++;
}
}
s12 = _parent.Tt[tg] - 4;
if (s12 == 1) {
_parent.LS++;
}
if (s12 == 2) {
_parent.LA++;
}
if (s12 == 3) {
_parent.LP++;
}
score = score + (s12 * 1000);
if (_parent.Gt[i] == 0) {
_parent.sc = _parent.sc + score;
}
j = tg;
while (j < _parent.tn) {
_parent.Tx[j] = _parent.Tx[j + 1];
_parent.Ty[j] = _parent.Ty[j + 1];
_parent.Ta[j] = _parent.Ta[j + 1];
_parent.Tt[j] = _parent.Tt[j + 1];
_parent.Tst[j] = _parent.Tst[j + 1];
_parent.Tp[j] = _parent.Tp[j + 1];
_parent.T_t[j] = _parent.T_t[j + 1];
_parent.Ts[j] = _parent.Ts[j + 1];
j++;
}
_parent.tn--;
if (_parent.Gt[i] == 0) {
if (_parent.lev == 0) {
_parent.dt = 6 - _parent.LS;
}
if (_parent.lev == 1) {
_parent.dt = 5 - _parent.LA;
}
if (_parent.lev == 3) {
_parent.dt = 6 - _parent.LP;
}
_parent.msg = (_parent.LE[_parent.lev] add _parent.dt) add _parent.LF[_parent.lev];
}
}
_parent.Gp[i] = 13;
}
_parent.Gx[i] = x;
_parent.Gy[i] = y;
t = _parent.Gt[i];
x = _parent.Gx[i] - _parent.mx;
y = _parent.Gy[i] - _parent.my;
r = Math.sqrt((x * x) + (y * y));
a = Math.atan(y / x) + ma;
s = 1;
sa = Math.sin(a);
ca = Math.cos(a);
ra = _parent.Ga[i] - _parent.ma;
ra = (ra + 90) % 360;
s = 1;
if (x < 0) {
s = -1;
}
x = (r * s) * ca;
y = (r * s) * sa;
x = x * 10;
y = y * 10;
j = i + 92;
tellTarget ("p" add j) {
_x = (_parent.x * _parent.sc);
_y = ((-_parent.y) * _parent.sc);
_xscale = (_parent.sc * 100);
_yscale = _xscale;
_rotation = _parent.ra;
gotoAndStop(_parent.t + 3);
};
}
i++;
}
i = 0;
while (i < _parent.Gn) {
if (12 < _parent.Gp[i]) {
_parent.Gp[i]++;
_parent.Ga[i] = 400 + _parent.Gp[i];
if (22 < _parent.Gp[i]) {
_parent.Gp[i] = 12;
}
}
if (_parent.Gp[i] == 12) {
j = i;
while (j < _parent.Gn) {
_parent.Gp[j] = _parent.Gp[j + 1];
_parent.Gx[j] = _parent.Gx[j + 1];
_parent.Gy[j] = _parent.Gy[j + 1];
_parent.Ga[j] = _parent.Ga[j + 1];
_parent.Gt[j] = _parent.Gt[j + 1];
j++;
}
_parent.Gn--;
}
i++;
}
j = _parent.Gn;
while (j < 10) {
tellTarget ("p" add (j + 92)) {
_x = 300;
};
j++;
}
}
function effects() {
i = 101;
while (i < 106) {
tellTarget ("p" add i) {
_x = 300;
};
i++;
}
ma = (_parent.ma * Math.PI) / 180;
i = 0;
while (i < _parent.en) {
t = _parent.Et[i];
_parent.Ea[i] = (_parent.Ea[i] + 10) % 360;
x = _parent.Ex[i] - _parent.mx;
y = _parent.Ey[i] - _parent.my;
r = Math.sqrt((x * x) + (y * y));
if (r < 0.4) {
_parent.te++;
if (_parent.lev == 2) {
_parent.dt = 5 - _parent.te;
_parent.msg = (_parent.LE[_parent.lev] add _parent.dt) add _parent.LF[_parent.lev];
}
_parent.sc = _parent.sc + 1500;
_parent.Et[i] = 10;
if (t == 0) {
_parent.w0.s = "Armor picked up";
if (_parent.sunet) {
_parent.w3.gotoAndPlay("take");
}
_parent.arm = (_parent.arm + 50) % 360;
}
if (t == 1) {
_parent.w0.s = "Laser picked up";
if (_parent.sunet) {
_parent.w3.gotoAndPlay("take");
}
_parent.lsr = _parent.lsr + 120;
}
if (t == 2) {
_parent.w0.s = "Shield picked up";
if (_parent.sunet) {
_parent.w3.gotoAndPlay("shield");
}
_parent.shl = _parent.shl + 120;
}
if (t == 3) {
_parent.w0.s = "Genocide mode";
if (_parent.sunet) {
_parent.w3.gotoAndPlay("genocide");
}
_parent.gen = _parent.gen + 120;
}
} else {
a = Math.atan(y / x) + ma;
s = 1;
sa = Math.sin(a);
ca = Math.cos(a);
ra = _parent.Ea[i] - _parent.ma;
ra = ra % 360;
s = 1;
if (x < 0) {
s = -1;
}
x = (r * s) * ca;
y = (r * s) * sa;
x = x * 10;
y = y * 10;
j = i + 101;
tellTarget ("p" add j) {
_x = (_parent.x * _parent.sc);
_y = ((-_parent.y) * _parent.sc);
_xscale = (_parent.sc * 100);
_yscale = _xscale;
_rotation = _parent.ra;
gotoAndStop(_parent.t + 9);
};
}
i++;
}
i = 0;
while (i < _parent.en) {
if (_parent.Et[i] == 10) {
j = i;
while (j < _parent.en) {
_parent.Et[j] = _parent.Et[j + 1];
_parent.Ex[j] = _parent.Ex[j + 1];
_parent.Ey[j] = _parent.Ey[j + 1];
_parent.Ea[j] = _parent.Ea[j + 1];
j++;
}
_parent.en--;
}
i++;
}
}
function free(x, y, z) {
f = true;
fi = 0;
while (fi < 81) {
if (_parent.Ot[fi] != 9) {
xd = _parent.Ox[fi] - x;
yd = _parent.Oy[fi] - y;
d = Math.sqrt((xd * xd) + (yd * yd));
d1 = 0.35;
if (z == 1) {
if (_parent.Ot[fi] == 2) {
d1 = 0.14;
} else {
d1 = 0.25;
}
}
if (d < d1) {
f = false;
fj = fi;
fi = 81;
}
}
fi++;
}
return(f);
}
function Tfree(x, y, tank) {
f = true;
if (tank != -1) {
xd = x - _parent.mx;
yd = y - _parent.my;
d = Math.sqrt((xd * xd) + (yd * yd));
if (d < 0.45) {
f = false;
}
}
fi = 0;
while (fi < _parent.tn) {
if (f && (fi != tank)) {
xd = x - _parent.Tx[fi];
yd = y - _parent.Ty[fi];
d = Math.sqrt((xd * xd) + (yd * yd));
if (d < 0.25) {
f = false;
tg = fi;
}
}
fi++;
}
return(f);
}
function Show_3D() {
i = 0;
j = 0;
while (j < 81) {
Ox[i] = _parent.Ox[j];
Oy[i] = _parent.Oy[j];
Oa[i] = _parent.Oa[j];
Ot[i] = _parent.Ot[j];
i++;
j++;
}
j = 0;
while (j < _parent.tn) {
Ox[i] = _parent.Tx[j];
Oy[i] = _parent.Ty[j];
Oa[i] = _parent.Ta[j];
Op[i] = _parent.Tp[j];
Ot[i] = _parent.Tt[j];
i++;
j++;
}
j = 0;
while (j < _parent.gn) {
Ox[i] = _parent.Gx[j];
Oy[i] = _parent.Gy[j];
Oa[i] = _parent.Ga[j];
Ot[i] = _parent.Gt[j] + 3;
i++;
j++;
}
j = 0;
while (j < _parent.en) {
Ox[i] = _parent.Ex[j];
Oy[i] = _parent.Ey[j];
Oa[i] = _parent.Ea[j];
Ot[i] = _parent.Et[j] + 9;
i++;
j++;
}
n = i;
k = 0;
mx = _parent.mx;
my = _parent.my;
ma = (_parent.ma * Math.PI) / 180;
i = 0;
while (i < n) {
x = Ox[i] - mx;
y = Oy[i] - my;
r = Math.sqrt((x * x) + (y * y));
a = Math.atan(y / x) + ma;
s = 1;
sa = Math.sin(a);
ca = Math.cos(a);
s = 1;
if (x < 0) {
s = -1;
}
x = (r * s) * ca;
y = (r * s) * sa;
y = 350 - (y * 40);
if ((r < 4.2) && (y < 350)) {
k++;
t = Ot[i];
s1 = 33.33 * r;
s2 = 0.2 + ((3.6 - r) * 83.33);
s = s1 + ((3.8 - r) * s2);
x = (x * s) + 200;
osc = (3.8 - r) * 80;
alpha = (3.8 - r) * 40;
a = (Oa[i] + _parent.ma) % 360;
a = a / 10;
if (t < 3) {
f = Math.floor((a % 10) + 1);
}
if ((t == 3) || (t == 4)) {
a = Oa[i];
if (400 < a) {
f = a - 405;
if (!_parent.sunet) {
f = f + 10;
}
} else {
f = Math.floor((((a + _parent.ma) % 360) % 10) + 1);
}
}
if ((4 < t) && (t < 9)) {
a = (540 + Oa[i]) - _parent.ma;
a = (a % 360) / 10;
f = Math.round(a) + 1;
pf = Op[i];
}
if (8 < t) {
}
tellTarget ("_parent.o" add k) {
t = _parent.small.t;
f = _parent.small.f;
p = _parent.small.pf;
_x = _parent.small.x;
_y = _parent.small.y;
_alpha = _parent.small.alpha;
_quality = _parent.small.pf;
_xscale = _parent.small.osc;
_yscale = _xscale;
gotoAndStop(t + 1);
if ((t < 5) || (8 < t)) {
o.gotoAndStop(f);
} else {
o1._alpha = 0;
o2._alpha = 0;
o3._alpha = 0;
if (p == 1) {
o1._alpha = 100;
o1.gotoAndStop(f);
}
if (p == 2) {
o2._alpha = 100;
o2.gotoAndStop(f);
}
if (p == 3) {
o3._alpha = 100;
o3.gotoAndStop(f);
}
}
};
}
i++;
}
i = k + 1;
while (i < (old + 1)) {
tellTarget ("_parent.o" add i) {
gotoAndStop (1);
};
i++;
}
old = k;
}
if (Key.isDown(80) && (500 < (getTimer() - t2))) {
if (_parent.pause) {
_parent.w0.s = "Game restarted";
_parent.pause = false;
} else {
_parent.pause = true;
_parent.w0.s = "Game paused";
}
t2 = getTimer();
}
if (0 < level) {
level--;
}
if (level == 1) {
_parent.lev++;
_parent.gotoAndStop("Start");
}
if (Key.isDown(83) && (500 < (getTimer() - t2))) {
if (_parent.sunet) {
_parent.w0.s = "Sound off";
_parent.sunet = false;
} else {
_parent.w0.s = "Sound on";
_parent.sunet = true;
}
t2 = getTimer();
}
if (!_parent.pause) {
if ((0 >= _parent.dt) && (level == 0)) {
level = 12;
}
l = 1;
dt = getTimer() - _parent.time;
if (_parent.lev == 4) {
time = 180 - int(dt / 1000);
if (time < 10) {
_parent.gotoAndStop("Win");
}
m = int(time / 60);
s = time - (m * 60);
if (s < 10) {
s = "0" add s;
}
_parent.msg = ((((_parent.LE[4] add "0") add m) add ":") add s) add _parent.LF[4];
}
if ((_parent.armor._currentframe < 51) && (level == 0)) {
control();
}
me._xscale = sc * 100;
me._yscale = me._xscale;
move = change;
generate_tank();
tanks();
if (0 < _parent.Gn) {
guns();
}
if (change) {
show_map();
}
if (move) {
show_tank();
}
if (0 < _parent.en) {
effects();
}
show_3D();
}
}
Instance of Symbol 279 MovieClip "w0" in Frame 144
onClipEvent (enterFrame) {
if (_parent.tmsg != s) {
_parent.tmsg = s;
t = getTimer();
ok = true;
}
if (ok) {
t1 = getTimer() - t;
if (1500 < t1) {
ok = false;
_parent.tmsg = "";
s = "";
}
}
}
Instance of Symbol 342 MovieClip "armor" in Frame 144
onClipEvent (enterFrame) {
if (!_parent.pause) {
if (_parent.arm < 0) {
_parent.gotoAndStop("Loose");
}
if (0 < _parent.shl) {
gotoAndStop (142);
txt = "Shield " add int(_parent.shl / 10);
_parent.shl--;
} else {
gotoAndStop (141);
txt = "Armor";
}
bg.gotoAndStop(_parent.arm / 2);
if (5 < _parent.td) {
_parent.gotoAndStop("Start");
}
if (-1 < st) {
st++;
if ((st % 2) == 1) {
_parent.small._y = 310;
_parent.bg._y = 175;
} else {
_parent.small._y = 300;
_parent.bg._y = 165;
}
if (4 < st) {
st = -1;
}
}
}
}
Instance of Symbol 342 MovieClip "can" in Frame 144
onClipEvent (enterFrame) {
if (!_parent.pause) {
f = bg._currentframe;
st = 3;
if (0 < _parent.gen) {
_parent.gen--;
_parent.txt2 = "Genocide";
} else {
_parent.txt2 = "";
}
if (0 < _parent.lsr) {
st = 25;
gotoAndStop (142);
_parent.lsr--;
txt = "Laser " add int(_parent.lsr / 12);
} else {
txt = "Cannon";
gotoAndStop (141);
}
if (f < 50) {
bg.gotoAndStop(f + st);
}
}
}
Frame 145
if (sunet) {
w2.gotoAndStop("show");
}
s = "";
ss = "";
w.s = (" Game Over!<br><br>You have lost the battle. <br>Your score is <b>" add sc) add "</b>.<br>";
if (rec < sc) {
w.s = w.s add "<br>You made a new highscore!<br>";
rec = sc;
}
w.s = ((w.s add "The highscore is <b>") add rec) add "</b>.<br>You can try the tank hunting again.";
w.l = w.s.length();
w.c = -1;
stop();
Instance of Symbol 85 MovieClip "w" in Frame 145
onClipEvent (enterFrame) {
if (_currentframe == 1) {
c++;
_parent.ss = _parent.ss add s.charAt(c);
_parent.s = _parent.ss;
if (c < s.length) {
_parent.s = _parent.s add "|";
} else {
gotoAndStop (142);
}
if (Key.isDown(32) && (500 < (getTimer() - t))) {
_parent.s = s;
t = getTimer();
gotoAndStop (142);
}
}
if (_currentframe == 2) {
if (Key.isDown(32) && (500 < (getTimer() - t))) {
_parent.time = getTimer();
_parent.gotoAndStop("Begin");
}
}
}
Frame 146
if (sunet) {
w2.gotoAndStop("show");
}
s = "";
ss = "";
w.s = (" You made it !<br><br>You have destroyed our enemies! Our people are free!<br>Your score is <b>" add sc) add "</b>.<br>";
if (rec < sc) {
w.s = w.s add "You made a new highscore too!<br>";
rec = sc;
this.loadVariables("newrecord.php?r=" add rec);
}
w.s = ((w.s add "The highscore is <b>") add rec) add "</b>.<br><br>Thanks for playing and come back in future to check out<br>for new levels, weapons and highscore!";
w.l = w.s.length();
w.c = -1;
stop();
Symbol 2 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?BattleTanks", "_blank");
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 50
stop();
_parent.play();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 58 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?BattleTanks", "_blank");
}
Symbol 61 Button
on (release) {
getURL ("http://www.freeonlinegames.com/downloads/BattleTanks.exe", "_blank");
}
Symbol 64 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?BattleTanks", "_blank");
}
Symbol 67 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite/?BattleTanks", "_blank");
}
Symbol 70 Button
on (release) {
_root.play();
}
Symbol 79 Button
on (release) {
_root.play();
}
Symbol 85 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 2
stop();
Symbol 126 MovieClip Frame 3
stop();
Symbol 126 MovieClip Frame 4
stop();
Symbol 126 MovieClip Frame 5
stop();
Symbol 126 MovieClip Frame 6
stop();
Symbol 126 MovieClip Frame 7
stop();
Symbol 126 MovieClip Frame 8
stop();
Symbol 126 MovieClip Frame 9
stop();
Symbol 126 MovieClip Frame 10
stop();
Symbol 126 MovieClip Frame 11
stop();
Symbol 126 MovieClip Frame 12
stop();
Symbol 126 MovieClip Frame 13
stop();
Symbol 126 MovieClip Frame 14
stop();
Symbol 126 MovieClip Frame 15
stop();
Symbol 126 MovieClip Frame 16
stop();
Symbol 126 MovieClip Frame 17
stop();
Symbol 126 MovieClip Frame 18
stop();
Symbol 126 MovieClip Frame 19
stop();
Symbol 126 MovieClip Frame 20
stop();
Symbol 126 MovieClip Frame 21
stop();
Symbol 126 MovieClip Frame 22
stop();
Symbol 126 MovieClip Frame 23
stop();
Symbol 126 MovieClip Frame 24
stop();
Symbol 126 MovieClip Frame 25
stop();
Symbol 126 MovieClip Frame 26
stop();
Symbol 126 MovieClip Frame 27
stop();
Symbol 126 MovieClip Frame 28
stop();
Symbol 126 MovieClip Frame 29
stop();
Symbol 126 MovieClip Frame 30
stop();
Symbol 126 MovieClip Frame 31
stop();
Symbol 126 MovieClip Frame 32
stop();
Symbol 126 MovieClip Frame 33
stop();
Symbol 126 MovieClip Frame 34
stop();
Symbol 126 MovieClip Frame 35
stop();
Symbol 126 MovieClip Frame 36
stop();
Symbol 126 MovieClip Frame 37
stop();
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
stop();
Symbol 169 MovieClip Frame 3
stop();
Symbol 169 MovieClip Frame 4
stop();
Symbol 169 MovieClip Frame 5
stop();
Symbol 169 MovieClip Frame 6
stop();
Symbol 169 MovieClip Frame 7
stop();
Symbol 169 MovieClip Frame 8
stop();
Symbol 169 MovieClip Frame 9
stop();
Symbol 169 MovieClip Frame 10
stop();
Symbol 169 MovieClip Frame 11
stop();
Symbol 169 MovieClip Frame 12
stop();
Symbol 169 MovieClip Frame 13
stop();
Symbol 169 MovieClip Frame 14
stop();
Symbol 169 MovieClip Frame 15
stop();
Symbol 169 MovieClip Frame 16
stop();
Symbol 169 MovieClip Frame 17
stop();
Symbol 169 MovieClip Frame 18
stop();
Symbol 169 MovieClip Frame 19
stop();
Symbol 169 MovieClip Frame 20
stop();
Symbol 169 MovieClip Frame 21
stop();
Symbol 169 MovieClip Frame 22
stop();
Symbol 169 MovieClip Frame 23
stop();
Symbol 169 MovieClip Frame 24
stop();
Symbol 169 MovieClip Frame 25
stop();
Symbol 169 MovieClip Frame 26
stop();
Symbol 169 MovieClip Frame 27
stop();
Symbol 169 MovieClip Frame 28
stop();
Symbol 169 MovieClip Frame 29
stop();
Symbol 169 MovieClip Frame 30
stop();
Symbol 169 MovieClip Frame 31
stop();
Symbol 169 MovieClip Frame 32
stop();
Symbol 169 MovieClip Frame 33
stop();
Symbol 169 MovieClip Frame 34
stop();
Symbol 169 MovieClip Frame 35
stop();
Symbol 169 MovieClip Frame 36
stop();
Symbol 169 MovieClip Frame 37
stop();
Symbol 265 MovieClip Frame 1
r = 0;
_parent.w.s = "<br> Welcome to Battle Tanks. Please stand by for detailed <br> instructions...";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 3
r = 0;
_parent.w.s = "Armament: 80mm Cannon Standard battle tank of enemy forces<br>Armor: 12cm BPC Light armor, hard maneuverability<br>Top speed: 50kph Point value: 1000";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 4
r = 0;
_parent.w.s = "Armament: 120mm Smoothbore Heavy duty elite battle tank<br>Armor: 30cm BPC Strong armor and fast rotation<br>Top speed: 100kph Point value: 2000";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 5
r = 0;
_parent.w.s = "Armament: 75mm Cannon Advanced stealth technology tank<br>Armor: 15cm BPC Strong armor and maneuverability<br>Top speed: 150kph Point value: 3000";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 6
r = 0;
_parent.w.s = "Adds a 10 second laser gun to your tank with the capability<br>to fire more rapidly.<br>It can appear after destroying any enemy tank.";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 7
r = 0;
_parent.w.s = "Increases your armor by 10 units.<br>If you have 100% armor, it will make no changes at all.<br>It can appear after destroying any enemy tank.";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 8
r = 0;
_parent.w.s = "Gives a 10 second absolute shield to your tank.<br>You will not suffer any damage until the shield is active<br>It can appear after destroying any enemy tank.";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 265 MovieClip Frame 9
r = 0;
_parent.w.s = "Gives a 10 second genocide gun to your tank.<br>If you shoot a tank, all enemy tanks will be destroyed.<br>It can appear after destroying any enemy tank.";
_parent.ss = "";
_parent.w.c = -1;
_parent.w.l = _parent.w.s.length;
stop();
Symbol 279 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 2
play();
Symbol 279 MovieClip Frame 13
gotoAndStop (1);
Symbol 279 MovieClip Frame 14
play();
Symbol 279 MovieClip Frame 19
gotoAndStop (1);
Symbol 279 MovieClip Frame 20
play();
Symbol 279 MovieClip Frame 21
gotoAndStop (1);
Symbol 279 MovieClip Frame 22
play();
Symbol 279 MovieClip Frame 23
gotoAndStop (1);
Symbol 279 MovieClip Frame 24
play();
Symbol 279 MovieClip Frame 29
gotoAndStop (1);
Symbol 279 MovieClip Frame 30
play();
Symbol 279 MovieClip Frame 43
gotoAndStop (1);
Symbol 279 MovieClip Frame 44
stop();
Symbol 302 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 1
stop();
Symbol 315 MovieClip Frame 2
stop();
Symbol 315 MovieClip Frame 3
stop();
Symbol 315 MovieClip Frame 4
stop();
Symbol 315 MovieClip Frame 5
stop();
Symbol 315 MovieClip Frame 6
stop();
Symbol 315 MovieClip Frame 7
stop();
Symbol 315 MovieClip Frame 8
stop();
Symbol 315 MovieClip Frame 9
play();
Symbol 315 MovieClip Frame 18
stop();
Symbol 315 MovieClip Frame 19
play();
Symbol 315 MovieClip Frame 28
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 2
stop();
Symbol 316 MovieClip Frame 3
stop();
Symbol 316 MovieClip Frame 4
stop();
Symbol 316 MovieClip Frame 5
stop();
Symbol 316 MovieClip Frame 6
stop();
Symbol 316 MovieClip Frame 7
stop();
Symbol 316 MovieClip Frame 8
stop();
Symbol 316 MovieClip Frame 9
stop();
Symbol 316 MovieClip Frame 10
stop();
Symbol 316 MovieClip Frame 11
stop();
Symbol 316 MovieClip Frame 12
stop();
Symbol 316 MovieClip Frame 13
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
Symbol 325 MovieClip Frame 3
stop();
Symbol 325 MovieClip Frame 4
stop();
Symbol 325 MovieClip Frame 5
stop();
Symbol 325 MovieClip Frame 6
stop();
Symbol 325 MovieClip Frame 7
stop();
Symbol 325 MovieClip Frame 8
stop();
Symbol 325 MovieClip Frame 9
stop();
Symbol 327 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 2
stop();
Symbol 340 MovieClip Frame 3
stop();
Symbol 340 MovieClip Frame 4
stop();
Symbol 340 MovieClip Frame 5
stop();
Symbol 340 MovieClip Frame 6
stop();
Symbol 340 MovieClip Frame 7
stop();
Symbol 340 MovieClip Frame 8
stop();
Symbol 340 MovieClip Frame 9
stop();
Symbol 340 MovieClip Frame 10
stop();
Symbol 340 MovieClip Frame 11
stop();
Symbol 340 MovieClip Frame 12
stop();
Symbol 340 MovieClip Frame 13
stop();
Symbol 340 MovieClip Frame 14
stop();
Symbol 340 MovieClip Frame 15
stop();
Symbol 340 MovieClip Frame 16
stop();
Symbol 340 MovieClip Frame 17
stop();
Symbol 340 MovieClip Frame 18
stop();
Symbol 340 MovieClip Frame 19
stop();
Symbol 340 MovieClip Frame 20
stop();
Symbol 340 MovieClip Frame 21
stop();
Symbol 340 MovieClip Frame 22
stop();
Symbol 340 MovieClip Frame 23
stop();
Symbol 340 MovieClip Frame 24
stop();
Symbol 340 MovieClip Frame 25
stop();
Symbol 340 MovieClip Frame 26
stop();
Symbol 340 MovieClip Frame 27
stop();
Symbol 340 MovieClip Frame 28
stop();
Symbol 340 MovieClip Frame 29
stop();
Symbol 340 MovieClip Frame 30
stop();
Symbol 340 MovieClip Frame 31
stop();
Symbol 340 MovieClip Frame 32
stop();
Symbol 340 MovieClip Frame 33
stop();
Symbol 340 MovieClip Frame 34
stop();
Symbol 340 MovieClip Frame 35
stop();
Symbol 340 MovieClip Frame 36
stop();
Symbol 340 MovieClip Frame 37
stop();
Symbol 340 MovieClip Frame 38
stop();
Symbol 340 MovieClip Frame 39
stop();
Symbol 340 MovieClip Frame 40
stop();
Symbol 340 MovieClip Frame 41
stop();
Symbol 340 MovieClip Frame 42
stop();
Symbol 340 MovieClip Frame 43
stop();
Symbol 340 MovieClip Frame 44
stop();
Symbol 340 MovieClip Frame 45
stop();
Symbol 340 MovieClip Frame 46
stop();
Symbol 340 MovieClip Frame 47
stop();
Symbol 340 MovieClip Frame 48
stop();
Symbol 340 MovieClip Frame 49
stop();
Symbol 340 MovieClip Frame 50
stop();
Symbol 342 MovieClip Frame 1
stop();
Symbol 342 MovieClip Frame 2
stop();
Symbol 346 Button
on (press) {
_parent.play();
}
Symbol 353 Button
on (release) {
getURL ("http://www.freegamesforyourwebsite.com/?BattleTanks", "_blank");
}
Symbol 354 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?BattleTanks", "_blank");
}
Symbol 355 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 356 Button
on (release) {
getURL ("http://www.freeonlinegames.com/downloads/BattleTanks.exe", "_blank");
}
Symbol 357 Button
on (release, keyPress "p") {
if (_root.pause) {
_root.w0.s = "Game restarted";
_root.pause = false;
} else {
_root.pause = true;
_root.w0.s = "Game paused";
}
t2 = getTimer();
}
Symbol 358 Button
on (release, keyPress "s") {
if (_root.sunet) {
_root.w0.s = "Sound off";
_root.sunet = false;
} else {
_root.w0.s = "Sound on";
_root.sunet = true;
}
t2 = getTimer();
}
Symbol 373 Button
on (rollOver) {
_parent.play();
}
Symbol 375 MovieClip Frame 1
stop();
Symbol 375 MovieClip Frame 10
stop();