Frame 1
if (_framesloaded >= _totalframes) {
gotoAndPlay (3);
}
Frame 2
gotoAndPlay (1);
Frame 3
_root.fuel = 100;
_root.explosio = 0;
_root.score = 0;
_root.fi = 0;
_root.foc = 0;
_root.activa = 1;
_root.activat = 1;
_root.scoring = 0;
_root.inici = 1;
Frame 4
g = 10;
elastic = 0.5;
BallRadius = getProperty("Naul", _height) / 2;
if (_root.inici == 1) {
setProperty(Nau, _y , 400);
setProperty(Nau, _rotation , 0);
nau_activada = 0;
_root.inici = 0;
vy = 0;
vx = 0;
}
if ((Key.isDown(Key.UP) and (0 < _root.fuel)) and (_root.fi == 0)) {
_root.foc = 1;
fuel_mascara._x = fuel_mascara._x - 1;
_root.fuel = _root.fuel - 0.25;
if (3000 < score) {
_root.fuel = _root.fuel - 0.05;
}
if ((90 >= nau._rotation) and (nau._rotation >= -90)) {
vy = vy - (1 + int(nau._rotation / 90));
} else {
vy = vy + (1 - int(nau._rotation / 90));
}
vx = vx + (nau._rotation / 90);
} else {
_root.foc = 0;
}
if (350 < nau._Y) {
_root.activa = 1;
} else {
_root.activa = 0;
nau_activada = 1;
}
if (295 < nau._Y) {
_root.activat = 1;
} else {
_root.activat = 0;
}
if ((Key.isDown(Key.LEFT) and (395 >= nau._y)) and (0 < _root.fuel)) {
setProperty(Nau, _rotation , nau._rotation - 2);
_root.fuel = _root.fuel - 0.05;
_root.fumdreta = 1;
} else {
_root.fumdreta = 0;
}
if ((Key.isDown(Key.RIGHT) and (395 >= nau._y)) and (0 < _root.fuel)) {
setProperty(Nau, _rotation , nau._rotation + 2);
_root.fuel = _root.fuel - 0.05;
_root.fumesquerra = 1;
} else {
_root.fumesquerra = 0;
}
setProperty(smoke, _x , (nau._x + 40) - nau._rotation);
if (nau._rotation >= 50) {
setProperty(nau, _rotation , nau._rotation - 1);
}
if (-50 >= nau._rotation) {
setProperty(nau, _rotation , nau._rotation + 1);
}
if ((nau._y >= 395) and (((5 < nau._rotation) or (nau._rotation < -5)) or (20 < vy))) {
ferralla._x = nau._x;
_root.explosio = 1;
_root.fuel = 0;
_root.score = 0;
if (nau._rotation < 0) {
setProperty(nau, _rotation , nau._rotation + 1);
}
if (0 < nau._rotation) {
setProperty(nau, _rotation , nau._rotation - 1);
}
}
if (((((nau._x - 10) < fueloil._x) and (fueloil._x < (nau._x + 10))) and ((nau._y - 10) < fueloil._y)) and (fueloil._y < (nau._y + 10))) {
_root.fuel = _root.fuel + 25;
_root.textA = 1;
setProperty(Text1, _x , nau._x);
setProperty(Text1, _y , nau._y + 10);
if (100 < _root.fuel) {
_root.fuel = 100;
}
_root.fuelup = 0;
setProperty(fueloil, _visible , false);
fueloil._x = 50 + random(450);
fueloil._y = 50 + random(300);
setProperty(fum_fuel, _x , fueloil._x);
}
if (((nau._x - 30) < fueloil._x) and (fueloil._x < (nau._x + 30))) {
if (((nau._y - 30) < fueloil._y) and (fueloil._y < (nau._y + 30))) {
_root.fuelaprop = 1;
}
}
if ((fueloil._x < (nau._x - 30)) or ((nau._x + 30) < fueloil._x)) {
if ((fueloil._y < (nau._y - 30)) or ((nau._y + 30) < fueloil._y)) {
_root.fuelaprop = 0;
}
}
if (230 >= nau._y) {
_root.scoring = 1;
_root.score = _root.score + 1;
} else {
_root.scoring = 0;
}
if ((nau._y == 400) and (nau_activada == 1)) {
if ((((nau._x < 350) and (250 < nau._x)) and (_root.explosio != 1)) and (_root.fi == 0)) {
_root.score = _root.score + 200;
_root.textB = 1;
setProperty(Text2, _x , nau._x);
setProperty(Text2, _y , nau._y + 10);
}
_root.fi = 1;
}
Frame 5
t = Number(t) + 0.1;
oldx = x;
oldy = y;
x = getProperty("Nau", _x);
y = getProperty("Nau", _y);
if ((Key.isDown(Key.UP) and (0 < _root.fuel)) and (_root.fi == 0)) {
x = Number(x) + Number(vx / 10);
y = Number(y) + Number(vy / 10);
if (Number(y) < Number(BallRadius)) {
y = BallRadius;
vx = vx * elastic;
vy = -(vy * elastic);
}
if (Number(400 - BallRadius) < Number(y)) {
y = 400 - BallRadius;
vx = vx * elastic;
vy = -(vy * elastic);
}
if (Number(x) < Number(BallRadius)) {
x = BallRadius;
vx = -(vx * elastic);
vy = vy * elastic;
}
if (Number(600 - BallRadius) < Number(x)) {
x = 600 - BallRadius;
vx = -(vx * elastic);
vy = vy * elastic;
}
setProperty("Nau", _x , x);
setProperty("Nau", _y , y);
} else {
vy = Number(vy) + Number(g / 10);
x = Number(x) + Number(vx / 10);
y = Number(y) + Number(vy / 10);
if (Number(y) < Number(BallRadius)) {
y = BallRadius;
vx = vx * elastic;
vy = -(vy * elastic);
}
if (Number(400 - BallRadius) < Number(y)) {
y = 400 - BallRadius;
vx = vx * elastic;
vy = -(vy * elastic);
}
if (Number(x) < Number(BallRadius)) {
x = BallRadius;
vx = -(vx * elastic);
vy = vy * elastic;
}
if (Number(600 - BallRadius) < Number(x)) {
x = 600 - BallRadius;
vx = -(vx * elastic);
vy = vy * elastic;
}
setProperty("Nau", _x , x);
setProperty("Nau", _y , y);
}
YYY = int(_root.fuel) + " %";
ZZZ = _root.score;
setProperty(compass, _rotation , nau._rotation * 1.5);
gotoAndPlay (4);
Symbol 24 MovieClip Frame 1
if (_root.fuel < 20) {
gotoAndPlay (3);
}
Symbol 24 MovieClip Frame 2
gotoAndPlay (1);
Symbol 24 MovieClip Frame 4
if (_root.fuel >= 20) {
gotoAndPlay (1);
}
Symbol 24 MovieClip Frame 6
gotoAndPlay (4);
Symbol 36 MovieClip Frame 1
if (_root.foc == 1) {
gotoAndPlay (3);
}
Symbol 36 MovieClip Frame 2
gotoAndPlay (1);
if (_root.foc == 1) {
gotoAndPlay (3);
}
Symbol 36 MovieClip Frame 9
if (_root.foc == 0) {
gotoAndPlay (13);
}
Symbol 36 MovieClip Frame 12
gotoAndPlay (9);
Symbol 36 MovieClip Frame 17
gotoAndPlay (1);
Symbol 38 MovieClip Frame 1
if (_root.fumesquerra == 1) {
gotoAndPlay (3);
}
Symbol 38 MovieClip Frame 2
gotoAndPlay (1);
Symbol 38 MovieClip Frame 3
if (_root.fumesquerra == 0) {
gotoAndPlay (1);
}
Symbol 38 MovieClip Frame 4
gotoAndPlay (3);
Symbol 40 MovieClip Frame 1
if (_root.fumdreta == 1) {
gotoAndPlay (3);
}
Symbol 40 MovieClip Frame 2
gotoAndPlay (1);
Symbol 40 MovieClip Frame 3
if (_root.fumdreta == 0) {
gotoAndPlay (1);
}
Symbol 40 MovieClip Frame 4
gotoAndPlay (3);
Symbol 69 MovieClip Frame 1
if (_root.activat == 0) {
gotoAndPlay (3);
}
Symbol 69 MovieClip Frame 2
gotoAndPlay (1);
Symbol 69 MovieClip Frame 50
if (_root.activat == 1) {
gotoAndPlay (52);
}
Symbol 69 MovieClip Frame 51
gotoAndPlay (50);
Symbol 70 MovieClip Frame 1
if (_root.activat == 0) {
gotoAndPlay (3);
}
Symbol 70 MovieClip Frame 2
gotoAndPlay (1);
Symbol 70 MovieClip Frame 50
if (_root.activat == 1) {
gotoAndPlay (52);
}
Symbol 70 MovieClip Frame 51
gotoAndPlay (50);
Symbol 78 MovieClip Frame 1
if (_root.activat == 0) {
gotoAndPlay (3);
}
Symbol 78 MovieClip Frame 2
gotoAndPlay (1);
Symbol 78 MovieClip Frame 70
if (_root.activat == 1) {
gotoAndPlay (72);
}
Symbol 78 MovieClip Frame 71
gotoAndPlay (70);
Symbol 90 MovieClip Frame 1
if (_root.activa == 1) {
gotoAndPlay (3);
}
Symbol 90 MovieClip Frame 2
gotoAndPlay (1);
Symbol 90 MovieClip Frame 3
if (_root.activa == 0) {
gotoAndPlay (1);
}
Symbol 90 MovieClip Frame 22
gotoAndPlay (3);
Symbol 91 MovieClip Frame 1
if (_root.activa == 1) {
gotoAndPlay (3);
}
Symbol 91 MovieClip Frame 2
gotoAndPlay (1);
Symbol 91 MovieClip Frame 3
if (_root.activa == 0) {
gotoAndPlay (1);
}
Symbol 91 MovieClip Frame 22
gotoAndPlay (3);
Symbol 101 MovieClip Frame 1
if (_root.explosio == 1) {
gotoAndPlay (3);
}
Symbol 101 MovieClip Frame 2
gotoAndPlay (1);
Symbol 101 MovieClip Frame 4
if (_root.explosio == 0) {
gotoAndPlay (1);
}
Symbol 101 MovieClip Frame 14
if (_root.explosio == 0) {
gotoAndPlay (1);
}
Symbol 101 MovieClip Frame 26
if (_root.explosio == 0) {
gotoAndPlay (1);
}
Symbol 101 MovieClip Frame 39
if (_root.explosio == 0) {
gotoAndPlay (1);
}
Symbol 101 MovieClip Frame 51
if (_root.explosio == 0) {
gotoAndPlay (1);
} else {
gotoAndPlay (4);
}
Symbol 108 MovieClip Frame 1
if ((_root.fuelaprop == 1) or (_root.fi == 1)) {
gotoAndPlay (3);
}
Symbol 108 MovieClip Frame 2
gotoAndPlay (1);
Symbol 108 MovieClip Frame 12
if ((_root.fuelaprop == 0) and (_root.fi == 0)) {
gotoAndPlay (14);
}
Symbol 108 MovieClip Frame 13
gotoAndPlay (12);
Symbol 123 MovieClip Frame 1
if ((_root.activat == 1) and (_root.foc == 1)) {
gotoAndPlay (3);
}
Symbol 123 MovieClip Frame 2
gotoAndPlay (1);
Symbol 123 MovieClip Frame 10
if ((_root.activat == 0) or (_root.foc == 0)) {
gotoAndPlay (12);
}
Symbol 123 MovieClip Frame 11
gotoAndPlay (10);
Symbol 135 MovieClip Frame 1
if (_root.explosio == 1) {
gotoAndPlay (3);
}
Symbol 135 MovieClip Frame 2
gotoAndPlay (1);
Symbol 135 MovieClip Frame 27
if (_root.explosio == 0) {
gotoAndPlay (1);
}
Symbol 135 MovieClip Frame 28
gotoAndPlay (27);
Symbol 141 MovieClip Frame 2
setProperty(fueloil, _visible , true);
Symbol 141 MovieClip Frame 49
_root.fuelup = 1;
setProperty(fueloil, _visible , true);
Symbol 141 MovieClip Frame 50
if (_root.fuelup == 0) {
gotoAndPlay (1);
}
Symbol 141 MovieClip Frame 51
if (_root.fuelup == 0) {
gotoAndPlay (51);
} else {
gotoAndPlay (50);
}
Symbol 145 MovieClip Frame 1
if (_root.fuelup == 0) {
gotoAndPlay (3);
}
Symbol 145 MovieClip Frame 2
gotoAndPlay (1);
Symbol 152 MovieClip Frame 50
stop();
Symbol 155 MovieClip Frame 1
if (_root.scoring == 1) {
gotoAndPlay (3);
}
Symbol 155 MovieClip Frame 2
gotoAndPlay (1);
Symbol 155 MovieClip Frame 3
if (_root.scoring == 0) {
gotoAndPlay (1);
}
Symbol 155 MovieClip Frame 13
gotoAndPlay (3);
Symbol 168 Button
on (release) {
loadVariablesNum ("score.asp", 0, "POST");
gotoAndPlay (16);
}
Symbol 174 MovieClip Frame 1
if ((_root.explosio == 1) or (_root.fi == 1)) {
gotoAndPlay (3);
}
Symbol 174 MovieClip Frame 2
gotoAndPlay (1);
Symbol 174 MovieClip Frame 14
if (_root.explosio == 1) {
_root.score = 0;
}
ZZZ = _root.score;
Symbol 174 MovieClip Frame 15
stop();
Symbol 174 MovieClip Frame 17
_root.fuel = 100;
_root.explosio = 0;
_root.fi = 0;
_root.foc = 0;
_root.activa = 1;
_root.activat = 1;
_root.scoring = 0;
_root.inici = 1;
_root.score = 0;
Symbol 174 MovieClip Frame 18
gotoAndPlay (1);
Symbol 177 MovieClip Frame 1
if (_root.textA == 1) {
gotoAndPlay (3);
}
Symbol 177 MovieClip Frame 2
gotoAndPlay (1);
Symbol 177 MovieClip Frame 30
_root.textA = 0;
Symbol 180 MovieClip Frame 1
if (_root.textB == 1) {
gotoAndPlay (3);
}
Symbol 180 MovieClip Frame 2
gotoAndPlay (1);
Symbol 180 MovieClip Frame 30
_root.textB = 0;
Symbol 188 MovieClip Frame 1
if (_root.foc == 1) {
gotoAndPlay (3);
}
Symbol 188 MovieClip Frame 2
gotoAndPlay (1);
Symbol 188 MovieClip Frame 8
if (_root.foc == 0) {
gotoAndPlay (10);
}
Symbol 188 MovieClip Frame 9
gotoAndPlay (8);
Symbol 190 MovieClip Frame 1
if ((_root.fi == 1) and (_root.explosio == 0)) {
gotoAndPlay (3);
}
Symbol 190 MovieClip Frame 2
gotoAndPlay (1);
Symbol 190 MovieClip Frame 63
stop();