Frame 1
function Banner_Go() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + "/?r=stank";
getURL (sd, "blank");
}
function AbsLink() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + (("/?r=" + GetPrefix()) + "tank");
getURL (sd, "blank");
}
function SendResult() {
var stSend = ((((((((_root.score + "\t") + 0) + "\t") + stName) + "\t") + "tank") + "\t") + "web");
getURL ("http://absolutist.com/cgi-bin/gameres.pl?g=boa&e=" + _root.Crypto(stSend), "blank");
_root.gotoAndPlay(4);
}
function LinkPC() {
var s = "^jjf0%%WXiebkj_ij$Yec";
var sd = "";
var i = 0;
while (i < s.length) {
sd = sd + String.fromCharCode(s.charCodeAt(i) + 10);
i++;
}
sd = sd + (("/boa/?r=" + GetPrefix()) + "tank");
getURL (sd, "blank");
}
function GetPrefix() {
return(_root._url.charAt(_root._url.length - 3));
}
if (Dif != 0) {
Strelka.gotoAndStop(Dif);
}
stop();
Instance of Symbol 63 MovieClip in Frame 1
onClipEvent (mouseDown) {
mx = _parent._xmouse;
my = _parent._ymouse;
if ((my > 12) && (my < 186)) {
i = 0;
while (i < 5) {
if ((mx > (157 + (55 * i))) && (mx < (157 + (55 * (i + 1))))) {
if (((_parent.credit + _parent.inmachine) > i) && (_parent.inmachine < (i + 1))) {
j = 0;
while (j < 5) {
curcardschange[j] = true;
j++;
}
_parent.DrawCards(true);
_parent.credit = _parent.credit + _parent.inmachine;
_parent.credit = _parent.credit - (i + 1);
_parent.inmachine = i + 1;
if (_parent.sound_flag) {
_parent.Sound1.start();
}
_parent.credits = "$" + _parent.credit;
_parent.Table(0, _parent.inmachine);
_parent.cur_inmachine = _parent.inmachine;
if ((_parent.inmachine >= 5) || (_parent.credit <= 0)) {
_parent.gotoAndPlay(7);
}
}
}
i++;
}
}
}
Frame 2
function Veter_Set() {
New_vet = (Math.random() * 2) - 1;
if (New_Vet > Veter) {
d_vet = Skok;
} else {
d_vet = -Skok;
}
}
function Oblaka() {
i = 1;
while (i <= 5) {
Name = "Obl" + i;
Obl.duplicateMovieClip(Name, 10 + i);
eval (Name)._x = eval (Name)._x + ((125 * (i - 1)) + random(50));
eval (Name)._y = eval (Name)._y + random(50);
eval (Name).gotoAndStop(random(10) + 1);
eval (Name)._alpha = 30 + random(50);
i++;
}
}
function Auto_Go(n) {
var dx;
var zn;
var nx;
var sc;
if (eval ("Move" + n)) {
if (eval ("Bit" + n)) {
nx = Math.round(eval (Name)._x / 5);
if (y[nx] > 350) {
if (eval (Name)._x < 250) {
dx = 3;
} else {
dx = -3;
}
if (y[nx + dx] == 400) {
dx = 0;
}
} else {
dx = 3;
if (((nx * 5) + (dx * 5)) > 395) {
dx = dx * -1;
}
if (((nx * 5) - (dx * 5)) > 5) {
zn = random(2) - 1;
}
if ((dx > 0) && (zn < 0)) {
dx = dx * zn;
}
sc = Math.abs(dx) / dx;
i = 1;
while (i <= Math.abs(dx)) {
if (y[nx + (sc * (i - 1))] > 350) {
dx = 0;
}
i++;
}
}
eval (Name)._x = x[nx + dx];
eval (Name)._y = y[nx + dx];
if (n == 1) {
Bit1 = false;
if (Math.abs(dx) != 0) {
Move1--;
if (Demo) {
Move.gotoAndStop(Move1 + 1);
}
}
} else {
Bit2 = false;
if (Math.abs(dx) != 0) {
Move2--;
}
}
}
}
}
function Weapon_Reset() {
w1[1] = 5;
w1[2] = 3;
w1[3] = 2;
w1[4] = 4;
Pointt._visible = false;
i = 1;
while (i <= 4) {
w2[i] = w1[i];
name = "Point" + i;
Pointt.duplicateMovieClip(name, 2 + i);
eval (name)._x = eval (name)._x + ((i - 1) * 30);
i++;
}
}
function Weapon_Set(n) {
i = 1;
while (i <= 4) {
name = "Point" + i;
eval (name).gotoAndStop(eval ("w" + n)[i] + 1);
i++;
}
}
function Main_Go(restart) {
Click._visible = false;
Fly = false;
Fly_Moment.removeMovieClip();
Pole.removeMovieClip();
Tank1.removeMovieClip();
Tank2.removeMovieClip();
i = 1;
while (i <= 5) {
name = "Point" + i;
if (i != 5) {
eval (name).removeMovieClip();
}
name = "Obl" + i;
eval (name).removeMovieClip();
i++;
}
if (Restart) {
gotoAndPlay (2);
} else {
gotoAndStop (1);
}
}
function Dead_Try() {
if ((Tank1._y == 400) || (Tank2._y == 400)) {
Dead = true;
Click._visible = true;
if (!Demo) {
Win_Lose._visible = true;
}
if (Tank1._y == 400) {
Tank1._visible = false;
Fly_Moment.removeMovieClip();
Win_Lose.gotoAndStop(2);
} else {
Tank2._visible = false;
Win_Lose.gotoAndStop(1);
}
}
}
function Test_kind_of_shoot() {
var Frst;
var Next;
var nn;
if (First) {
Next = "Tank2";
Frst = "Tank1";
} else {
Next = "Tank1";
Frst = "Tank2";
}
if (Kind_of_shoot == 3) {
if (Math.abs(eval (Next)._x - x_pul[k]) < 10) {
ShootN3();
}
}
if (Kind_of_shoot == 4) {
nn = Math.floor(x_pul[k] / 5);
if ((Math.abs(y_pul[k] - y[nn]) < 50) && (Math.abs(x_pul[k] - eval (Frst)._x) > 30)) {
Kind_of_shoot = 10;
x_pul[k] = x[nn];
}
}
if (Kind_of_shoot == 5) {
nn = Math.floor(x_pul[k] / 5);
if (Math.abs(y_pul[k] - y[nn]) < 20) {
ShootN5(Next);
}
if (Math.abs(eval (Next)._x - x_pul[k]) < 30) {
Kind_of_shoot = 1;
}
}
if (Kind_of_shoot == 10) {
ShootN4(Next);
}
}
function Weapon_Down(n) {
if (!Demo) {
w1[n]--;
}
eval ("Point" + n).gotoAndStop(w1[n] + 1);
if (w1[n] == 0) {
Weap.gotoAndStop(1);
eval ("Weap.But" + n).enabled = false;
}
}
function Shoot_Button(xt, yt, ang, str, Kind) {
Veter_Set();
if (First) {
Weapon_Down(Kind - 1);
}
Kind_of_shoot = Kind;
str = str * (Vmax / 100);
if (Kind != 2) {
ShootN1(xt, yt, ang, str);
}
if (Kind == 2) {
ShootN2(xt, yt, ang, str);
}
Live_p = n_pul;
All_Fly = true;
}
function ShootN1(xt, yt, ang, str) {
n_pul = 1;
Pula_Shoot(xt, yt, ang, str, 1);
}
function ShootN2(xt, yt, ang, str) {
n_pul = 3;
ang = ang - 2;
i = 1;
while (i <= 3) {
Pula_Shoot(xt, yt, ang, str, i);
ang = ang + 2;
i++;
}
}
function ShootN3() {
var al;
var x0;
var y0;
n_pul = 8;
Live_p = n_pul;
al = 22.5;
x0 = x_pul[k];
y0 = y_pul[k];
i = 1;
while (i <= n_pul) {
Pula_Shoot(x0, y0, al, 5, i);
al = al + (360 / n_pul);
i++;
}
All_Fly = true;
Kind_of_shoot = 1;
}
function ShootN4(Next) {
var zn;
var nox;
zn = vx[k] / Math.abs(vx[k]);
vx[k] = 5 * zn;
nox = Math.round((x_pul[k] + vx[k]) / 5);
vy[k] = (y[nox] - y_pul[k]) - 30;
if (Math.abs(eval (Next)._x - x_pul[k]) < 10) {
vx[k] = zn;
vy[k] = 3;
}
}
function ShootN5(Next) {
var zn;
var nn;
zn = vx[k] / Math.abs(vx[k]);
vx[k] = 5 * zn;
nn = Math.round((x_pul[k] + vx[k]) / 5);
vy[k] = (y[nn] - y_pul[k]) - 30;
}
function Pula_Shoot(xt, yt, ang, str, numb) {
x_pul[numb] = xt;
y_pul[numb] = yt;
vx[numb] = str * Math.cos((ang / 180) * Math.PI);
vy[numb] = (-str) * Math.sin((ang / 180) * Math.PI);
Fly[numb] = true;
}
function Zaryad() {
var x1;
var x2;
var y1;
var y2;
var clr;
dx = vx[k] + Veter;
dy = vy[k] + g;
x2 = x_pul[k];
y2 = y_pul[k];
x1 = x2 - dx;
y1 = y2 - dy;
if ((Kind_of_shoot == 1) || 2) {
clr = 16711680 /* 0xFF0000 */;
}
if (Kind_of_shoot == 3) {
clr = 10027008 /* 0x990000 */;
}
if (Kind_of_shoot == 4) {
clr = 16763955 /* 0xFFCC33 */;
}
if (Kind_of_shoot == 5) {
clr = 16711935 /* 0xFF00FF */;
}
if (Kind_of_shoot == 10) {
clr = 16776960 /* 0xFFFF00 */;
}
Fly_Moment.lineStyle(1, clr, 80);
Fly_Moment.moveTo(x1, y1);
Fly_Moment.lineTo(x2, y2);
i = 1;
while (i <= 3) {
xn = x1 + ((dx * i) / 4);
yn = y1 + ((dy * i) / 4);
Fly_Moment.lineStyle(i + 1, clr, 80);
Fly_Moment.moveTo(xn, yn);
Fly_Moment.lineTo(x2, y2);
i++;
}
}
function t3p(p1, p2, p3) {
if ((((p1 <= p2) && (p1 <= p3)) && (p3 <= p2)) || (((p1 >= p2) && (p1 >= p3)) && (p3 >= p2))) {
return(true);
}
}
function Find_Max(x1, x2) {
var mx;
var xa;
var xb;
xa = Math.floor(Math.min(x1, x2) / 5);
xb = Math.floor(Math.max(x1, x2) / 5);
mx = xa;
i = xa + 1;
while (i <= xb) {
if (y[i] < y[mx]) {
mx = i;
}
i++;
}
return(mx);
}
function Speed(sx, sy, alf) {
var cs;
var tg;
var ss;
cs = Math.cos((alf / 180) * Math.PI);
tg = Math.tan((alf / 180) * Math.PI);
ss = ((3.35 * sx) / cs) * Math.sqrt(g / (2 * ((sx * tg) - sy)));
return(ss);
}
function Set_Weapon1() {
var n_war;
var j;
if (maxW1 > 0) {
n_war = random(maxW1) + 1;
i = 1;
while (i <= n_war) {
j++;
while (w1[j] == 0) {
j++;
}
i++;
}
w1[j]--;
if (w1[j] == 0) {
maxW1--;
}
return(j);
}
return(0);
}
function Set_Weapon2() {
var n_war;
var j;
if (maxW2 > 0) {
n_war = random(maxW2) + 1;
i = 1;
while (i <= n_war) {
j++;
while (w2[j] == 0) {
j++;
}
i++;
}
w2[j]--;
if (w2[j] == 0) {
maxW2--;
}
return(j);
}
return(0);
}
function Auto(n) {
var rotate;
var p;
var Next;
var nn;
var dx1;
var dy1;
var dx2;
var dy2;
var vv;
var xx;
var kk = 0;
var Cur_weap;
if (!All_Fly) {
Name = "Tank" + n;
if (n == 1) {
nn = 2;
Cur_weap = Set_Weapon1() + 1;
Weap.gotoAndStop(Cur_weap);
} else {
nn = 1;
Cur_weap = Set_Weapon2() + 1;
}
Next = "Tank" + nn;
xx = Find_Max(eval (Next)._x, eval (Name)._x);
dx1 = Math.abs(eval (Name)._x - eval (Next)._x);
dy1 = eval (Name)._y - eval (Next)._y;
dx2 = Math.abs(eval (Name)._x - x[xx]);
dy2 = (eval (Name)._y - y[xx]) + 10;
p = 90;
while (p == 90) {
kk++;
p = 1;
while (p <= 89) {
if (Math.abs(Speed(dx1, dy1, p) - Speed(dx2, dy2, p)) < kk) {
break;
}
p++;
}
}
p = p + (random((Dif * 2) + 1) - Dif);
vv = Speed(dx1, dy1, p);
p = p + (random((Dif * 2) + 1) - Dif);
if (eval (Next)._x > eval (Name)._x) {
rotate = -p;
} else {
rotate = -180 + p;
}
eval (Name).Pushka._rotation = rotate;
Shoot_Button(eval (Name)._x, eval (Name)._y - 13, -eval (Name).Pushka._rotation, vv, Cur_weap);
if (n == 2) {
eval (Name).Pushka._rotation = -p;
}
}
}
function Lagr(xt) {
var s;
var p;
var j;
s = 0;
i = -2;
while (i <= 7) {
p = 1;
j = -2;
while (j <= 7) {
if (i != j) {
p = p * ((xt - xn[j]) / (xn[i] - xn[j]));
}
j++;
}
s = s + (yn[i] * p);
i++;
}
return(s);
}
function Set_Points() {
i = 0;
while (i <= 5) {
xn[i] = i * 100;
if ((i == 0) || (i == 5)) {
yn[i] = 200 + random(100);
}
if ((i == 1) || (i == 4)) {
yn[i] = 200 + random(150);
}
if ((i == 2) || (i == 3)) {
yn[i] = 100 + random(100);
}
i++;
}
Convert_Points();
}
function Convert_Points() {
var n;
n = 0;
while (n <= 100) {
x[n] = n * 5;
y[n] = Lagr(x[n]);
if (y[n] > 400) {
y[n] = 400;
}
n++;
}
}
function Draw_Pole() {
createEmptyMovieClip("Pole", 0);
with (Pole) {
clear();
lineStyle(0, 0, 0);
beginFill(65280, 100);
moveTo(0, 400);
i = 0;
while (i <= 100) {
lineTo(_root.x[i], _root.y[i]);
i++;
}
lineTo(500, 400);
endFill();
}
}
function Point(x1, y1, x2, y2, x3, y3, x4, y4) {
var A1;
var A2;
var B1;
var B2;
var C1;
var C2;
var t;
A1 = y2 - y1;
B1 = x1 - x2;
C1 = ((-x1) * A1) - (y1 * B1);
A2 = y4 - y3;
B2 = x3 - x4;
C2 = ((-x3) * A2) - (y3 * B2);
t = (A1 * B2) - (B1 * A2);
if (t != 0) {
tx0 = ((B1 * C2) - (C1 * B2)) / t;
ty0 = ((C1 * A2) - (A1 * C2)) / t;
}
}
function Lien_test(n1, n2, x1, y1, x2, y2) {
var n;
if (n1 > n2) {
n = n1;
n1 = n2;
n2 = n;
}
if (n1 < 0) {
n1 = 0;
}
if (n2 > 100) {
n2 = 100;
}
i = n1;
while (i <= (n2 - 1)) {
Point(x1, y1, x2, y2, x[i], y[i], x[i + 1], y[i + 1]);
if (t3p(x[i], x[i + 1], tx0) && (t3p(y[i], y[i + 1], ty0))) {
return(true);
}
i++;
}
}
function Boom_Test() {
var xa;
var xb;
var ya;
var yb;
var n1;
var n2;
if (First) {
Name = "Tank2";
} else {
Name = "Tank1";
}
xa = x_pul[k];
xb = (x_pul[k] + vx[k]) + Veter;
ya = y_pul[k];
yb = (y_pul[k] + vy[k]) + g;
n1 = Math.floor(xa / 5);
n2 = Math.floor(xb / 5);
if (n2 == n1) {
n2++;
}
if (Lien_test(n1, n2, xa, ya, xb, yb)) {
Earth_Die();
Boom._x = tx0;
Boom._y = ty0;
Boom._visible = true;
Boom.play();
return(true);
}
}
function Earth_Die() {
var bx;
var dy;
var a;
var b;
bx = Math.round(tx0 / 5);
i = bx - bn;
while (i <= (bx + bn)) {
a = bn * 5;
b = Math.abs(x[bx] - x[i]);
dy = Math.sqrt((a * a) - (b * b));
if (y[i] < (ty0 + dy)) {
y[i] = ty0 + dy;
}
if (y[i] > 400) {
y[i] = 400;
}
i++;
}
Draw_Pole();
Tank_Down(1);
Tank_Down(2);
Dead_Try();
}
function Tank_Down(n) {
var tx;
var ty;
var px;
Name = "Tank" + n;
tx = eval (Name)._x;
ty = eval (Name)._y;
px = Math.round(tx0 / 5);
if (t3p((tx0 - (bn * 3)) - 10, (tx0 + (bn * 3)) + 10, tx) && (ty < (ty0 + (bn * 3)))) {
eval (Name)._x = x[px];
eval (Name)._y = y[px];
if (n == 1) {
Bit1 = true;
} else {
Bit2 = true;
}
}
}
function Tank_Stand() {
if (Bad1 != 0) {
i = 5;
while (i <= 45) {
if (Math.abs(y[i] - y[i - 1]) < Bad1) {
Tank1._x = x[i];
Tank1._y = y[i];
Bad1 = 0;
break;
}
i++;
}
}
if (Bad2 != 0) {
i = 95;
while (i >= 55) {
if (Math.abs(y[i] - y[i - 1]) < Bad2) {
Tank2._x = x[i];
Tank2._y = y[i];
Bad2 = 0;
break;
}
i--;
}
}
if (Bad1 != 0) {
Bad1++;
}
if (Bad2 != 0) {
Bad2++;
}
}
function Game_Start() {
Bad1 = 1;
Bad2 = 1;
while ((Bad1 != 0) || (Bad2 != 0)) {
Tank_Stand();
}
Draw_Pole();
}
xn = new Array();
yn = new Array();
x = new Array();
y = new Array();
vx = new Array();
vy = new Array();
x_pul = new Array();
y_pul = new Array();
Fly = new Array();
w1 = new Array();
w2 = new Array();
Vmax = 30;
g = 1;
bn = 3;
Jump = 1;
Skok = 0.01;
xn[-1] = -100;
yn[-1] = 200;
xn[-2] = -200;
yn[-2] = 500;
xn[6] = 600;
yn[6] = 200;
xn[7] = 700;
yn[7] = 500;
Tank._visible = false;
Obl._visible = false;
Tank.duplicateMovieClip("Tank1", 1);
Tank.duplicateMovieClip("Tank2", 2);
Tank1._visible = false;
Tank2._visible = false;
Tank2._xscale = Tank2._xscale * -1;
Instance of Symbol 107 MovieClip "Tank" in Frame 2
on (keyPress "<Left>") {
if (!_root.Demo) {
if (Pushka._rotation > -180) {
Pushka._rotation = Pushka._rotation - _root.Jump;
}
if (Pushka._rotation == -90) {
Pushka._rotation = -90 - _root.Jump;
}
}
}
on (keyPress "<Right>") {
if (!_root.Demo) {
if (Pushka._rotation < 0) {
Pushka._rotation = Pushka._rotation + _root.Jump;
}
if (Pushka._rotation == -90) {
Pushka._rotation = -90 + _root.Jump;
}
}
}
on (keyPress "<Up>") {
if (!_root.Demo) {
if (_root.Power.Num._xscale > 0) {
_root.Power.Num._xscale = _root.Power.Num._xscale - _root.Jump;
}
}
}
on (keyPress "<Down>") {
if (!_root.Demo) {
if (_root.Power.Num._xscale < 90) {
_root.Power.Num._xscale = _root.Power.Num._xscale + _root.Jump;
}
}
}
on (keyPress "<Space>") {
if ((!_root.All_Fly) && (!_root.Demo)) {
_root.Shoot_Button(_x, _y - 5, -Pushka._rotation, 100 - _root.Power.Num._xscale, _root.Weap._currentframe);
}
}
Frame 3
Clck.duplicateMovieClip("Click", 20);
Clck._visible = false;
if (!Demo) {
Click._visible = false;
}
Boom._visible = false;
Tank1.Pushka._rotation = -60;
Tank2.Pushka._rotation = -60;
Tank1.enabled = false;
Tank2.enabled = false;
Power.Num._xscale = 0;
Demo_cl._visible = Demo;
Win_Lose._visible = false;
All_Fly = false;
Dead = false;
Set_Points();
Game_Start();
Weapon_Reset();
First = true;
Weapon_Set(1);
maxW1 = 4;
maxW2 = 4;
Move1 = 10;
Move.gotoAndStop(Move1 + 1);
Move2 = 10;
Bit1 = false;
Bit2 = false;
Oblaka();
Veter = (Math.random() * 2) - 1;
d_vet = 0;
Tank1._visible = true;
Tank2._visible = true;
Frame 5
if (d_vet != 0) {
Veter = Veter + d_vet;
if (Math.abs(Veter - New_Vet) < Skok) {
d_vet = 0;
}
}
i = 1;
while (i <= 5) {
Name = "Obl" + i;
eval (Name)._x = eval (Name)._x + Veter;
if ((eval (Name)._x - eval (Name)._width) > 500) {
eval (Name)._x = (-eval (Name)._width) - random(10);
eval (Name)._y = Obl._y + random(50);
eval (Name).gotoAndStop(random(10) + 1);
}
if ((eval (Name)._x + eval (Name)._width) < 0) {
eval (Name)._x = (500 + eval (Name)._width) + random(10);
eval (Name)._y = Obl._y + random(50);
eval (Name).gotoAndStop(random(10) + 1);
}
i++;
}
if (!All_Fly) {
if (First) {
if (Demo) {
Auto(1);
Auto_Go(1);
}
} else {
Auto(2);
Auto_Go(2);
}
}
if (All_Fly) {
createEmptyMovieClip("Fly_Moment", 10);
k = 1;
while (k <= n_pul) {
if (Fly[k]) {
if (((Boom_Test() || (y_pul[k] > 400)) || (x_pul[k] < 0)) || (x_pul[k] > 500)) {
Fly[k] = false;
Live_p--;
if (Live_p == 0) {
All_Fly = false;
Fly_Moment.clear();
}
}
x_pul[k] = x_pul[k] + (vx[k] + Veter);
vy[k] = vy[k] + g;
y_pul[k] = y_pul[k] + vy[k];
if (All_Fly) {
Zaryad();
Test_kind_of_shoot();
} else {
First = !First;
}
}
k++;
}
}
if (!Dead) {
gotoAndPlay (4);
} else if (!Demo) {
gotoAndStop (4);
} else {
Main_Go(true);
}
Symbol 8 Button
on (release) {
Strelka.gotoAndStop(2);
}
Symbol 13 Button
on (release) {
Strelka.gotoAndStop(1);
}
Symbol 18 MovieClip Frame 2
stop();
Symbol 22 Button
on (release) {
Strelka.gotoAndStop(3);
}
Symbol 42 MovieClip Frame 1
stop();
Symbol 42 MovieClip Frame 5
stop();
Symbol 42 MovieClip Frame 8
gotoAndStop (1);
Symbol 42 MovieClip Frame 12
gotoAndStop (1);
Symbol 44 Button
on (rollOver) {
_root.knop1.gotoAndPlay(2);
}
on (rollOut) {
_root.knop1.gotoAndPlay(6);
}
on (release) {
Dif = Strelka._currentframe;
Demo = false;
gotoAndPlay (2);
}
Symbol 51 Button
on (release) {
_root.AbsLink();
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 5
stop();
Symbol 57 Button
on (rollOver) {
_root.knop2.gotoAndPlay(2);
}
on (rollOut) {
_root.knop2.gotoAndPlay(6);
}
on (release) {
_root.AbsLink();
}
Symbol 60 Button
on (release) {
gotoAndStop (6);
}
Symbol 66 Button
on (release) {
Dif = Strelka._currentframe;
Demo = true;
gotoAndPlay (2);
}
Symbol 79 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 7
_visible = false;
gotoAndStop (1);
Symbol 94 Button
on (release) {
_root.Main_Go(false);
}
Symbol 96 Button
on (release) {
gotoAndStop (1);
}
Symbol 97 Button
on (release) {
gotoAndStop (2);
}
Symbol 98 Button
on (release) {
gotoAndStop (3);
}
Symbol 99 Button
on (release) {
gotoAndStop (4);
}
Symbol 100 Button
on (release) {
gotoAndStop (5);
}
Symbol 103 MovieClip Frame 1
stop();
Symbol 119 Button
on (release) {
if ((Move1 > 0) && (Tank1._x > 10)) {
Move1--;
if (Move1 == 0) {
Btn_l.enabled = false;
Btn_r.enabled = false;
}
nx = Math.round(Tank1._x / 5);
nx--;
Tank1._x = x[nx];
Tank1._y = y[nx];
Move.gotoAndStop(Move1 + 1);
Dead_Try();
}
}
Symbol 120 Button
on (release) {
if ((Move1 > 0) && (Tank1._x < 490)) {
Move1--;
if (Move1 == 0) {
Btn_l.enabled = false;
Btn_r.enabled = false;
}
nx = Math.round(Tank1._x / 5);
nx++;
Tank1._x = x[nx];
Tank1._y = y[nx];
Move.gotoAndStop(Move1 + 1);
Dead_Try();
}
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 131 Button
on (release) {
_root.Main_Go(false);
}
Symbol 140 Button
on (release) {
gotoAndStop (1);
}