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 (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.tg: " + _root.tg);
if (_root.tg <= 9) {
_root.procent = "0" + _root.tg;
} else {
_root.procent = _root.tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
_root.b1 = _root.getBytesLoaded();
_root.b2 = _root.getBytesTotal();
_root.tgPrel = 1 + Math.round((b1 * 100) / b2);
_root.tg = _root.tgPrel - 2;
trace("_root.TG: " + tgPrel);
if (_root.tgPrel <= 9) {
_root.procent = "0" + tg;
trace(_root.procent);
} else {
_root.procent = tg;
}
_root.prel.gotoAndStop(_root.tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
_root.procent = "--";
prel.gotoAndStop(100);
Frame 166
_root.locatie = _url;
if (_root.locatie.indexOf("freeonlinegames", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 174
_root.locatie = _url;
if (_root.locatie.indexOf("freeonlinegames", 0) != -1) {
_root.play();
} else {
_root.gotoAndPlay("loop1");
}
Frame 175
fscommand ("showmenu", "false");
fscommand ("trapallkeys", "true");
fscommand ("allowscale", "false");
stop();
_root.SCANLINES = false;
_root.RENDERGFX = false;
_root.MUSIC = true;
_root.SOUNDFX = true;
_root.CHEAT = false;
_root.P1_UP = 38;
_root.P1_DOWN = 40;
_root.P1_RIGHT = 39;
_root.P1_LEFT = 37;
_root.P1_JUMP = 88;
_root.P1_FIRE = 90;
_root.P2_UP = 87;
_root.P2_DOWN = 83;
_root.P2_RIGHT = 68;
_root.P2_LEFT = 65;
_root.P2_JUMP = 70;
_root.P2_FIRE = 71;
LEVEL = 1;
cheattext.swapDepths(12500);
function CreateScanlines(nomClip, espacio, grosor, nivel) {
_root.createEmptyMovieClip(nomClip, nivel);
with (eval (nomClip)) {
beginFill(16711680, 30);
lineStyle(grosor, 0, 50);
n = 0;
while (n < Stage.height) {
moveTo(0, n);
lineTo(Stage.width, n);
n = n + espacio;
}
endFill();
}
}
_quality = "BEST";
CreateScanlines("scan100", 1.5, 0.1, 99999);
_level0.scan100.blendMode = "overlay";
_level0.scan100._visible = false;
_root.pause = false;
Instance of Symbol 693 MovieClip in Frame 175
onClipEvent (enterFrame) {
if (Key.isDown(13)) {
_parent.nextFrame();
}
}
Frame 176
stop();
stop();
stopAllSounds();
trace("am ajuns la coperta..!");
_root.textos.removeMovieClip();
_root.Lance_torso2.removeMovieClip();
_root.Lance_torso.removeMovieClip();
_root.Lance_piernas2.removeMovieClip();
_root.Lance_piernas.removeMovieClip();
_root.terreno.removeMovieClip();
_root.cheattext.removeMovieClip();
_root.fondo.removeMovieClip();
_root.mascara1.removeMovieClip();
_root.mascara2.removeMovieClip();
_root.mascara3.removeMovieClip();
_root.meniuJoc.removeMovieClip();
Frame 177
stopAllSounds();
var nombrenivel;
switch (_root.LEVEL) {
case 1 :
nombrenivel = "Mapa1";
break;
case 2 :
nombrenivel = "Mapa2";
break;
case 3 :
nombrenivel = "Mapa3";
break;
case 4 :
nombrenivel = "Mapa4";
break;
case 5 :
nombrenivel = "Mapa5";
break;
case 6 :
nombrenivel = "Mapa6";
break;
case 7 :
nombrenivel = "Mapa7";
break;
case 8 :
nombrenivel = "Mapa8";
break;
case 9 :
nombrenivel = "Mapa9";
}
juego = new Juego(nombrenivel);
_root.onEnterFrame = function () {
juego.paso(1);
};
stop();
Instance of Symbol 956 MovieClip "meniuJoc" in Frame 177
//component parameters
onClipEvent (construct) {
wxnume = "TheLastFight";
wxaliniere = "Stanga-Jos";
wxculoare = 13158;
wxdownload = true;
wxpause = false;
wxsound = false;
}
onClipEvent (load) {
this.swapDepths(1000);
}
Frame 178
stopAllSounds();
var nombrenivel;
switch (_root.LEVEL) {
case 1 :
nombrenivel = "Mapa1";
break;
case 2 :
nombrenivel = "Mapa2";
break;
case 3 :
nombrenivel = "Mapa3";
break;
case 4 :
nombrenivel = "Mapa4";
break;
case 5 :
nombrenivel = "Mapa5";
break;
case 6 :
nombrenivel = "Mapa6";
break;
case 7 :
nombrenivel = "Mapa7";
break;
case 8 :
nombrenivel = "Mapa8";
break;
case 9 :
nombrenivel = "Mapa9";
}
juego = new Juego2p(nombrenivel);
_root.onEnterFrame = function () {
juego.paso(1);
};
stop();
Frame 179
stop();
Frame 180
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
stopAllSounds();
trace("am ajuns la scor..!");
_root.textos.removeMovieClip();
_root.Lance_torso2.removeMovieClip();
_root.Lance_torso.removeMovieClip();
_root.Lance_piernas2.removeMovieClip();
_root.Lance_piernas.removeMovieClip();
_root.terreno.removeMovieClip();
_root.cheattext.removeMovieClip();
_root.fondo.removeMovieClip();
_root.mascara1.removeMovieClip();
_root.mascara2.removeMovieClip();
_root.mascara3.removeMovieClip();
_root.meniuJoc.removeMovieClip();
_root.gameover.removeMovieClip();
Frame 181
_root.menu.removeMovieClip();
_root.gameid = "TheLastFight";
_root.best = _root.scor;
_root.scor = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 183
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 191
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 195
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 196
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 2 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?TheLastFight", "_blank");
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 1322 MovieClip [__Packages.Disparo] Frame 0
class Disparo extends MovieClip
{
var estado, contador, dequien, tipo, gotoAndStop, _x, _y, fy, fx, _rotation;
function Disparo () {
super();
var _local4 = new Sound();
_local4.attachSound("shot");
if (_root.SOUNDFX) {
_local4.start();
}
estado = 1;
contador = 10;
dequien = 0;
tipo = 0;
}
function setTipo(i) {
tipo = i;
if (tipo == 1) {
(gotoAndStop(2));// not popped
}
if (tipo == 2) {
(gotoAndStop(5));// not popped
}
if (tipo == 3) {
(gotoAndStop(8));// not popped
}
}
function mover(_colisiones) {
switch (tipo) {
case 1 :
if (estado == 1) {
if ((Math.abs(_x - _root.terreno.mapa.tio._x) > 400) || (Math.abs(_y - _root.terreno.mapa.tio._y) > 300)) {
return(-1);
}
if ((_colisiones == 1) && (fy >= 0)) {
estado = 2;
if (Math.random() > 0.5) {
(gotoAndStop(3));// not popped
} else {
(gotoAndStop(4));// not popped
}
return(8);
}
_x = _x + fx;
_y = _y + fy;
return(8);
}
if (estado == 2) {
contador--;
if (contador == 0) {
return(-1);
}
return(8);
}
break;
case 3 :
if (estado == 1) {
if ((Math.abs(_x - _root.terreno.mapa.tio._x) > 400) || (Math.abs(_y - _root.terreno.mapa.tio._y) > 300)) {
return(-1);
}
if (_colisiones == 1) {
estado = 2;
if (Math.random() > 0.5) {
(gotoAndStop(3));// not popped
} else {
(gotoAndStop(4));// not popped
}
return(8);
}
_x = _x + fx;
_y = _y + fy;
return(8);
}
if (estado == 2) {
contador--;
if (contador == 0) {
return(-1);
}
return(8);
}
break;
case 2 :
if (estado == 1) {
if ((Math.abs(_x - _root.terreno.mapa.tio._x) > 500) || (Math.abs(_y - _root.terreno.mapa.tio._y) > 500)) {
return(-1);
}
if (_colisiones == 1) {
estado = 2;
if (Math.random() > 0.5) {
(gotoAndStop(6));// not popped
} else {
(gotoAndStop(7));// not popped
}
return(8);
}
_x = _x + fx;
fy++;
_rotation = _rotation + fx;
_y = _y + fy;
return(8);
}
if (estado != 2) {
break;
}
contador--;
if (contador == 0) {
return(-1);
}
return(8);
}
}
}
Symbol 1323 MovieClip [__Packages.Tio] Frame 0
class Tio extends MovieClip
{
var impulso, descenso, fy, saltando, muerto, direccion, gotoAndStop, sentido, torso, apunta, id, _x, _y;
function Tio () {
super();
sprite("parado", "derecha");
apuntar("frente");
impulso = 0;
descenso = 0;
fy = 1;
saltando = false;
muerto = false;
}
function sprite(cual, donde) {
var _local3 = false;
if (cual != direccion) {
direccion = cual;
(gotoAndStop((direccion + "_") + sentido));// not popped
torso.gotoAndStop((direccion + "_") + sentido);
apunta = "frente";
_local3 = true;
}
if ((donde != sentido) && (donde != "*")) {
sentido = donde;
(gotoAndStop((direccion + "_") + sentido));// not popped
torso.gotoAndStop((direccion + "_") + sentido);
apunta = "frente";
_local3 = true;
}
if (_root.RENDERGFX && (_local3)) {
if (id == 1) {
_root.terreno2.mapa.tio.gotoAndStop((direccion + "_") + sentido);
_root.terreno2.mapa.tio.torso.gotoAndStop((direccion + "_") + sentido);
} else if (id == 2) {
_root.terreno2.mapa.tio2.gotoAndStop((direccion + "_") + sentido);
_root.terreno2.mapa.tio2.torso.gotoAndStop((direccion + "_") + sentido);
}
}
}
function apuntar(donde) {
if (apunta != donde) {
apunta = donde;
if (direccion == "camina") {
torso.apunta.gotoAndStop(donde);
} else {
torso.apuntadispara.gotoAndStop(donde);
}
}
}
function mover(_teclas, _colisiones) {
keymap = _teclas;
colisiones = _colisiones;
if (((((keymap & 8) && (!((keymap & 2) || (keymap & 1)))) && (!saltando)) && (!descenso)) && (fy == 1)) {
sprite("agacha", "*");
} else if ((keymap & 1) && (!(colisiones & 32))) {
_x = _x + 6;
if (!saltando) {
if (keymap & 32) {
sprite("dispara_camina", "derecha");
} else {
sprite("camina", "derecha");
}
} else {
sprite("*", "derecha");
}
} else if ((keymap & 2) && (!(colisiones & 64))) {
_x = _x - 6;
if (!saltando) {
if (keymap & 32) {
sprite("dispara_camina", "izquierda");
} else {
sprite("camina", "izquierda");
}
} else {
sprite("*", "izquierda");
}
} else if ((((keymap & 3) == 0) || (colisiones & 32)) || (colisiones & 64)) {
if (!saltando) {
sprite("parado", "*");
}
}
if (keymap & 16) {
apuntar("arriba");
} else if (keymap & 8) {
apuntar("abajo");
} else {
apuntar("frente");
}
if (((colisiones & 1) && (keymap & 4)) && (!(keymap & 8))) {
impulso = 12;
sprite("salta", "*");
saltando = true;
fy = 1;
}
if ((((colisiones & 1) && (keymap & 4)) && (keymap & 8)) && (!(colisiones & 256))) {
descenso = 6;
sprite("salta", "*");
fy = 1;
}
_y = _y + descenso;
if (descenso > 0) {
descenso--;
}
if (colisiones & 128) {
impulso = 0;
saltando = false;
}
if (impulso > 0) {
_y = _y - impulso;
impulso--;
} else if (!(colisiones & 1)) {
_y = _y + fy;
fy++;
if (fy > 13) {
sprite("cae", "*");
}
if (fy > 18) {
fy == 18;
}
} else {
fy = 1;
saltando = false;
}
if (!descenso) {
if (colisiones & 4) {
_y = _y - 8;
} else if (colisiones & 2) {
_y = _y - 4;
} else if (colisiones & 8) {
_y = _y - 2;
} else if (colisiones & 16) {
_y = _y - 1;
}
}
if (keymap & 32) {
if (direccion == "parado") {
if (sentido == "derecha") {
switch (apunta) {
case "arriba" :
_root.juego.gestor_disparos.dispara(_x + 36, _y - 12, 0, -16, id, 1);
sprite("dispara_parado_arriba", "derecha");
break;
case "frente" :
_root.juego.gestor_disparos.dispara(_x + 58, _y + 17, 16, 0, id, 1);
sprite("dispara", "derecha");
}
} else {
switch (apunta) {
case "arriba" :
_root.juego.gestor_disparos.dispara(_x + 32, _y - 12, 0, -16, id, 1);
sprite("dispara_parado_arriba", "izquierda");
break;
case "frente" :
_root.juego.gestor_disparos.dispara(_x + 10, _y + 17, -16, 0, id, 1);
sprite("dispara", "izquierda");
}
}
} else if (direccion == "agacha") {
if (!(apunta === "abajo")) {
} else if (sentido == "derecha") {
_root.juego.gestor_disparos.dispara(_x + 56, _y + 54, 16, 0, id, 1);
sprite("dispara_parado", "derecha");
} else {
_root.juego.gestor_disparos.dispara(_x + 14, _y + 54, -16, 0, id, 1);
sprite("dispara_parado", "izquierda");
}
} else if ((direccion == "dispara_camina") && (sentido == "derecha")) {
switch (apunta) {
case "arriba" :
_root.juego.gestor_disparos.dispara(_x + 51, _y + 6, 16, -7, id, 1);
break;
case "abajo" :
_root.juego.gestor_disparos.dispara(_x + 49, _y + 32, 16, 7, id, 1);
break;
case "frente" :
_root.juego.gestor_disparos.dispara(_x + 56, _y + 17, 16, 0, id, 1);
}
} else if ((direccion == "dispara_camina") && (sentido == "izquierda")) {
switch (apunta) {
case "arriba" :
_root.juego.gestor_disparos.dispara(_x + 17, _y + 6, -16, -7, id, 1);
break;
case "abajo" :
_root.juego.gestor_disparos.dispara(_x + 19, _y + 32, -16, 7, id, 1);
break;
case "frente" :
_root.juego.gestor_disparos.dispara(_x + 10, _y + 17, -16, 0, id, 1);
}
} else if (saltando) {
if ((keymap & 1) && (keymap & 8)) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, 20, 16, id, 1);
} else if ((keymap & 1) && (keymap & 16)) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, 20, -16, id, 1);
} else if ((keymap & 2) && (keymap & 8)) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, -20, 16, id, 1);
} else if ((keymap & 2) && (keymap & 16)) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, -20, -16, id, 1);
} else if (keymap & 8) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, 0, 16, id, 1);
} else if (keymap & 16) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, 0, -16, id, 1);
} else if ((keymap & 1) || (sentido == "derecha")) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, 16, 0, id, 1);
} else if ((keymap & 2) || (sentido == "izquierda")) {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, -16, 0, id, 1);
}
}
}
if (_root.RENDERGFX) {
if (id == 1) {
_root.terreno2.mapa.tio._x = _x;
_root.terreno2.mapa.tio._y = _y;
} else if (id == 2) {
_root.terreno2.mapa.tio2._x = _x;
_root.terreno2.mapa.tio2._y = _y;
}
}
}
var keymap = 0;
var colisiones = 0;
}
Symbol 1324 MovieClip [__Packages.Malo] Frame 0
class Malo extends MovieClip
{
var estado, fy, direccion, gotoAndStop, sentido, id, tipo, vida, _x, contador, _y, fx, _rotation, _visible;
function Malo () {
super();
sprite("parado", "derecha");
estado = 0;
fy = 1;
}
function sprite(cual, donde) {
var cambiaGFX = false;
if (cual != direccion) {
direccion = cual;
gotoAndStop((direccion + "_") + sentido);
cambiaGFX = true;
}
if ((donde != sentido) && (donde != "*")) {
sentido = donde;
gotoAndStop((direccion + "_") + sentido);
cambiaGFX = true;
}
if (_root.RENDERGFX && (cambiaGFX)) {
eval ("_root.terreno2.mapa.malo" + id).gotoAndStop((direccion + "_") + sentido);
}
}
function impacta() {
if (tipo == 2) {
if (vida > 0) {
sprite("impacto", "*");
_x = _x - 0.2;
estado = 1;
vida--;
if (vida == 0) {
sprite("muerto", "*");
estado = 2;
contador = 12;
}
}
} else if ((tipo == 0) || (tipo == 3)) {
if (vida > 0) {
vida--;
if (vida == 0) {
sprite("explota", "*");
estado = 2;
contador = 12;
}
}
} else if (tipo == 1) {
if (vida > 0) {
vida--;
if (vida == 0) {
sprite("explota", "*");
estado = 3;
contador = 12;
}
}
}
}
function alturaAparece(xdesp) {
var _local3;
var _local4;
if (tipo == 0) {
xdesp = xdesp + ((_root.terreno.mapa.tio._x + _root.terreno._x) + 32);
_local4 = _root.terreno.mapa.tio._y + _root.terreno._y;
_local3 = 0;
while (_local3 < 64) {
if ((((!_root.terreno.mapa.mascara.hitTest(xdesp, _local4 + _local3, true)) && (!_root.terreno.mapa.mascara.hitTest(xdesp, (_local4 + _local3) + 16, true))) && (!_root.terreno.mapa.mascara.hitTest(xdesp, (_local4 + _local3) + 32, true))) && (!_root.terreno.mapa.mascara.hitTest(xdesp, (_local4 + _local3) + 48, true))) {
return(_root.terreno.mapa.tio._y + _local3);
}
_local3 = _local3 + 8;
}
_local3 = -16;
while (_local3 > -128) {
if ((((!_root.terreno.mapa.mascara.hitTest(xdesp, _local4 + _local3, true)) && (!_root.terreno.mapa.mascara.hitTest(xdesp, (_local4 + _local3) + 16, true))) && (!_root.terreno.mapa.mascara.hitTest(xdesp, (_local4 + _local3) + 32, true))) && (!_root.terreno.mapa.mascara.hitTest(xdesp, (_local4 + _local3) + 48, true))) {
return(_root.terreno.mapa.tio._y + _local3);
}
_local3 = _local3 - 8;
}
}
if (tipo == 3) {
return(_root.terreno.mapa.tio._y - (Math.random() * 126));
}
return(0);
}
function mover(colisiones, angulo) {
if (tipo == 2) {
switch (estado) {
case 0 :
if (Math.abs(_root.terreno.mapa.tio._y - _y) < 200) {
if (Math.abs(_root.terreno.mapa.tio._x - _x) < 200) {
estado = 1;
if (fx > 0) {
sprite("camina", "derecha");
} else {
sprite("camina", "izquierda");
}
}
}
break;
case 1 :
if ((colisiones & 4) && (sentido == "derecha")) {
fx = -fx;
sprite("camina", "izquierda");
} else if ((colisiones & 8) && (sentido == "izquierda")) {
fx = -fx;
sprite("camina", "derecha");
}
sprite("camina", "*");
_x = _x + fx;
_rotation = angulo;
eval ("_root.terreno2.mapa.malo" + id)._rotation = angulo;
if ((!colisiones) & 1) {
_y = _y + fy;
fy++;
}
if (colisiones & 2) {
_y = _y - 4;
fy = 1;
}
break;
case 2 :
}
}
if (tipo == 1) {
switch (estado) {
case 0 :
if (_root.terreno.mapa.tio._x < _x) {
sprite("mira", "izquierda");
} else {
sprite("mira", "derecha");
}
if (Math.abs(_root.terreno.mapa.tio._y - _y) < 400) {
if (Math.abs(_root.terreno.mapa.tio._x - _x) < 400) {
estado = 1;
}
}
break;
case 1 :
if (_root.terreno.mapa.tio._x < _x) {
sprite("mira", "izquierda");
} else {
sprite("mira", "derecha");
}
if (Math.random() > 0.95) {
estado = 2;
sprite("ataca", "*");
contador = 9;
}
break;
case 2 :
if (contador == 0) {
if (sentido == "derecha") {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, 10, -12, 3, 2);
} else {
_root.juego.gestor_disparos.dispara(_x + 32, _y + 32, -10, -12, 3, 2);
}
estado = 1;
}
contador--;
break;
case 3 :
if (contador == 0) {
_visible = false;
}
contador--;
}
}
if ((tipo == 0) || (tipo == 3)) {
switch (estado) {
case 0 :
if ((((Math.random() < _root.juego.gestor_enemigos.cadencia_robots) && (tipo == 0)) || ((Math.random() < _root.juego.gestor_enemigos.cadencia_robojets) && (tipo == 3))) && (!_root.juego.gestor_enemigos.sale_enemigo)) {
_root.juego.gestor_enemigos.sale_enemigo = true;
if ((Math.random() > 0.5) && (_root.terreno.mapa.tio._x > 400)) {
if ((_y = alturaAparece(-350))) {
fx = 5;
_x = _root.terreno.mapa.tio._x - 400;
estado = 1;
vida = 1;
sprite("camina", "derecha");
}
} else if (_root.terreno.mapa.tio._x < (_root.terreno.mapa.decorado._width - 400)) {
if ((_y = alturaAparece(350))) {
fx = -5;
_x = _root.terreno.mapa.tio._x + 350;
estado = 1;
vida = 1;
sprite("camina", "izquierda");
}
}
}
break;
case 1 :
_x = _x + fx;
if (((!colisiones) & 1) && (tipo == 0)) {
_y = _y + fy;
fy++;
}
if (colisiones & 2) {
_y = _y - 4;
fy = 1;
}
if (next_shot_count > 0) {
next_shot_count--;
}
if ((Math.random() > 0.95) && (next_shot_count == 0)) {
var y_desp;
next_shot_count = next_shot;
y_desp = Math.abs(_x - (_root.terreno.mapa.tio._x + 32)) / 6;
y_desp = ((_root.terreno.mapa.tio._y + 32) - _y) / y_desp;
if (sentido == "derecha") {
_root.juego.gestor_disparos.dispara(_x + 56, _y + 17, 6, y_desp, 3, 3);
} else {
_root.juego.gestor_disparos.dispara(_x + 10, _y + 17, -6, y_desp, 3, 3);
}
}
if (colisiones & 4) {
fx = -5;
sprite("camina", "izquierda");
} else if (colisiones & 8) {
fx = 5;
sprite("camina", "derecha");
}
if (Math.abs(_root.terreno.mapa.tio._x - _x) > 500) {
estado = 2;
_x = -200;
_y = -200;
contador = 0;
vida = 0;
}
break;
case 2 :
if (contador == 0) {
_x = -200;
_y = -200;
vida = 0;
estado = 0;
}
contador--;
}
}
if (_root.RENDERGFX) {
eval ("_root.terreno2.mapa.malo" + id)._x = _x;
eval ("_root.terreno2.mapa.malo" + id)._y = _y;
}
}
var colisiones = 0;
var next_shot = 25;
var next_shot_count = 0;
}
Symbol 1325 MovieClip [__Packages.Item] Frame 0
class Item extends MovieClip
{
var estado, fx, fy, _x, _y, gotoAndStop;
function Item () {
super();
estado = 0;
fx = 0;
fy = 0;
}
function esCogido() {
var _local4 = _x + _root.terreno._x;
var _local3 = _y + _root.terreno._y;
if (_root.terreno.mapa.tio.hitTest(_local4, _local3, true)) {
return(1);
}
if (_root.terreno.mapa.tio2.hitTest(_local4, _local3, true)) {
return(2);
}
return(0);
}
function mover() {
var _local3;
switch (estado) {
case 0 :
_local3 = esCogido();
if (_local3) {
(gotoAndStop(2));// not popped
fx = 0;
fy = -2;
_root.juego.restoreLife(_local3);
estado = 1;
}
break;
case 1 :
_x = _x + fx;
_y = _y + fy;
}
}
}
Symbol 1326 MovieClip [__Packages.Juego] Frame 0
class Juego
{
var nombre_mapa, terreno, fondo, musica, creditos, vidas1, life2, vidas2, puntos1, puntos2, estado, pon_pausa, quita_pausa, life1, tio, tio2, contador, terreno2, finish_by_time, time_remaining, mascara, gestor_disparos, gestor_enemigos, gestor_items, contador_sonido, volumen;
function Juego (cadena) {
nombre_mapa = cadena;
terreno = new MovieClip();
fondo = new MovieClip();
musica = new Sound();
musica.attachSound("getsoul");
creditos = 3;
vidas1 = 3;
life2 = 0;
vidas2 = 0;
puntos1 = 0;
puntos2 = 0;
estado = 0;
pon_pausa = false;
quita_pausa = false;
}
function leeTeclas() {
var _local2 = 0;
if (Key.isDown(_root.P1_RIGHT)) {
_local2 = _local2 | 1;
}
if (Key.isDown(_root.P1_LEFT)) {
_local2 = _local2 | 2;
}
if (Key.isDown(_root.P1_JUMP)) {
_local2 = _local2 | 4;
}
if (Key.isDown(_root.P1_DOWN)) {
_local2 = _local2 | 8;
}
if (Key.isDown(_root.P1_UP)) {
_local2 = _local2 | 16;
}
if (Key.isDown(_root.P1_FIRE)) {
_local2 = _local2 | 32;
}
return(_local2);
}
function leeTeclas2() {
var _local2 = 0;
if (Key.isDown(_root.P2_RIGHT)) {
_local2 = _local2 | 1;
}
if (Key.isDown(_root.P2_LEFT)) {
_local2 = _local2 | 2;
}
if (Key.isDown(_root.P2_JUMP)) {
_local2 = _local2 | 4;
}
if (Key.isDown(_root.P2_DOWN)) {
_local2 = _local2 | 8;
}
if (Key.isDown(_root.P2_UP)) {
_local2 = _local2 | 16;
}
if (Key.isDown(_root.P2_FIRE)) {
_local2 = _local2 | 32;
}
return(_local2);
}
function chequeaColisiones(clip) {
var i;
var colisiones = 0;
var rx = (clip._x + terreno._x);
var ry = (clip._y + terreno._y);
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 64, true)) {
colisiones = colisiones | 1;
}
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 60, true)) {
colisiones = colisiones | 2;
}
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 56, true)) {
colisiones = colisiones | 4;
}
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 62, true)) {
colisiones = colisiones | 8;
}
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 61, true)) {
colisiones = colisiones | 16;
}
if (terreno.mapa.mascara.hitTest(rx + 58, ry + 32, true)) {
colisiones = colisiones | 32;
}
if (terreno.mapa.mascara.hitTest(rx + 6, ry + 32, true)) {
colisiones = colisiones | 64;
}
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 6, true) && (terreno.mapa.mascara.hitTest(rx + 32, ry - 16, true))) {
colisiones = colisiones | 128;
}
if (terreno.mapa.mascara.hitTest(rx + 32, ry + 80, true)) {
colisiones = colisiones | 256;
}
i = 0;
while (i < _root.juego.gestor_enemigos.total_enemigos) {
if (eval ("terreno.mapa.malo" + i).vida > 0) {
if (!_root.CHEAT) {
if (eval ("terreno.mapa.malo" + i).hitTest(rx + 32, ry + 32, true)) {
colisiones = colisiones | 512;
if (clip.id == 1) {
life1--;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
if (life1 == 0) {
vidas1--;
_root.textos.vidas1 = vidas1;
tio.muerto = true;
estado = 4;
}
} else {
life2--;
_root.textos.life_bar2.gotoAndStop(life2 + 1);
if (life2 == 0) {
vidas2--;
_root.textos.vidas2 = vidas2;
tio2.muerto = true;
estado = 4;
}
}
if ((vidas1 == 0) && (vidas2 == 0)) {
estado = 99;
}
contador = 100;
}
}
}
i++;
}
return(colisiones);
}
function impactado(quien) {
if (!_root.CHEAT) {
if (quien == 1) {
life1--;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
if (life1 == 0) {
vidas1--;
_root.textos.vidas1 = vidas1;
tio.muerto = true;
estado = 4;
}
} else {
life2--;
_root.textos.life_bar2.gotoAndStop(life2 + 1);
if (life2 == 0) {
vidas2--;
_root.textos.vidas2 = vidas2;
tio2.muerto = true;
estado = 4;
}
}
if ((vidas1 == 0) && (vidas2 == 0)) {
estado = 99;
}
contador = 100;
}
}
function puntua(quien) {
if (quien == 1) {
puntos1 = puntos1 + 10;
_root.textos.puntos1 = puntos1;
} else if (quien == 2) {
puntos2 = puntos2 + 10;
_root.textos.puntos2 = puntos2;
}
}
function mueveScroll() {
var _local4 = tio._x + terreno._x;
var _local3 = tio._y + terreno._y;
if ((_local4 > 180) && (terreno._x > (-(terreno.mapa.decorado._width - 400)))) {
terreno._x = terreno._x - 6;
fondo._x = fondo._x - 1;
}
if ((_local4 < 140) && (terreno._x < 0)) {
terreno._x = terreno._x + 6;
fondo._x = fondo._x + 1;
}
if ((_local3 > 126) && (terreno._y > (-(terreno.mapa.decorado._height - 300)))) {
terreno._y = terreno._y - 6;
fondo._y = fondo._y - 1;
}
if ((_local3 < 96) && (terreno._y < 0)) {
terreno._y = terreno._y + 6;
fondo._y = fondo._y + 1;
}
if ((_local3 > 186) && (terreno._y > -900)) {
terreno._y = terreno._y - 6;
fondo._y = fondo._y - 1;
}
if ((_local3 < 32) && (terreno._y < 0)) {
terreno._y = terreno._y + 6;
fondo._y = fondo._y + 1;
}
if (_root.RENDERGFX) {
terreno2.fondo._x = fondo._x - terreno._x;
terreno2.fondo._y = fondo._y - terreno._y;
terreno2._x = terreno._x;
terreno2._y = terreno._y;
}
}
function controlaFinal() {
if ((((tio._x > terreno.mapa.xdesde) && (tio._x < terreno.mapa.xhasta)) && (tio._y > terreno.mapa.ydesde)) && (tio._y < terreno.mapa.yhasta)) {
contador = 100;
estado = 6;
_root.LEVEL++;
}
if (!tio.muerto) {
if (((tio._x < -64) || (tio._x > terreno.mapa.decorado._width)) || (tio._y > terreno.mapa.decorado._height)) {
vidas1--;
_root.textos.vidas1 = vidas1;
tio.muerto = true;
estado = 4;
contador = 100;
}
}
}
function gestionaEventos() {
if (terreno.mapa.gestion_eventos) {
if ((((tio._x > terreno.mapa.eventxdesde) && (tio._x < terreno.mapa.eventxhasta)) && (tio._y > terreno.mapa.eventydesde)) && (tio._y < terreno.mapa.eventyhasta)) {
terreno.mapa.evento();
if (_root.RENDERGFX) {
terreno2.mapa.evento();
}
contador = 100;
estado = 10;
}
if (terreno.mapa.evento_contador > 0) {
if (!finish_by_time) {
finish_by_time = true;
if (_root.timeremain) {
_root.timeremain.removeMovieClip();
}
_root.attachMovie("time_remaining_clip", "timeremain", 4000);
_root.timeremain._x = 200;
_root.timeremain._y = 30;
time_remaining = terreno.mapa.evento_contador;
}
time_remaining--;
_root.timeremain.time_remaining = time_remaining;
if ((time_remaining == 0) || (terreno.mapa.malo15.vida == 0)) {
_root.timeremain.removeMovieClip();
contador = 100;
estado = 200;
_root.gotoAndStop("cinci");
_root.LEVEL++;
}
}
}
}
function paso(cual) {
if (estado == 0) {
_root.attachMovie("Message", "mensaje", 5997);
if (_root.fondo) {
removeMovieClip(_root.fondo);
}
_root.attachMovie("Horizonte", "fondo", 1);
if (_root.terreno) {
removeMovieClip(_root.terreno);
}
_root.createEmptyMovieClip("terreno", 2);
terreno = _root.terreno;
fondo = _root.fondo;
finish_by_time = false;
terreno.attachMovie(nombre_mapa, "mapa", 2);
terreno.mapa.attachMovie("Lance_piernas", "tio", 4);
terreno.mapa.tio.attachMovie("Lance_torso", "torso", 5);
terreno.mapa.efectos.swapDepths(5000);
if (_root.RENDERGFX) {
if (_root.terreno2) {
removeMovieClip(_root.terreno2);
}
_root.createEmptyMovieClip("terreno2", 2999);
terreno2 = _root.terreno2;
terreno2.attachMovie("Horizonte", "fondo", 2999);
terreno2.attachMovie(nombre_mapa, "mapa", 3000);
terreno2.mapa.attachMovie("Lance_piernas", "tio", 3001);
terreno2.mapa.tio.attachMovie("Lance_torso", "torso", 3002);
var _local4 = new flash.filters.BlurFilter(blurX, blurY, quality);
var _local3 = new Array();
_local3.push(_local4);
terreno2.filters = _local3;
terreno2.blendMode = "screen";
_root.attachMovie("mascara", "mascara0", 5999);
terreno2.fondo.setMask(_root.mascara0);
_root.attachMovie("mascara", "mascara1", 6000);
terreno2.setMask(_root.mascara1);
}
if (_root.textos) {
removeMovieClip(_root.textos);
}
_root.attachMovie("textos", "textos", 5998);
_root.attachMovie("mascara", "mascara2", 6001);
_root.attachMovie("mascara", "mascara3", 6002);
fondo.setMask(_root.mascara2);
terreno.setMask(_root.mascara3);
_root.textos.vidas1 = vidas1;
_root.textos.vidas2 = vidas2;
_root.textos.puntos1 = puntos1;
_root.textos.puntos2 = puntos2;
life1 = 6;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
_root.textos.life_bar2.gotoAndStop(life2 + 1);
tio = terreno.mapa.tio;
tio.id = 1;
mascara = terreno.mapa.mascara;
if (gestor_disparos) {
delete gestor_disparos;
}
if (gestor_enemigos) {
delete gestor_enemigos;
}
if (gestor_items) {
delete gestor_items;
}
gestor_disparos = new GestorDisparos(terreno);
gestor_enemigos = new GestorEnemigos(terreno);
gestor_items = new GestorItems(terreno);
estado = 1;
contador_sonido = 0;
} else if (estado == 1) {
tio._x = terreno.mapa.x1_ini;
tio._y = terreno.mapa.y1_ini;
terreno._x = -tio._x;
terreno._y = -tio._y;
fondo._x = -(tio._x / 6);
fondo._y = -(tio._y / 6);
tio.muerto = false;
tio2._x = terreno.mapa.x2_ini;
tio2._y = terreno.mapa.y2_ini;
tio2.muerto = false;
gestor_enemigos.leeVariables();
gestor_items.leeVariables();
_root.mensaje._x = 80;
_root.mensaje._y = 100;
_root.mensaje.pasword = terreno.mapa.pasword;
_root.mensaje.nivel = terreno.mapa.nivel;
estado = 5;
} else if (estado == 5) {
if (Key.isDown(32)) {
estado = 2;
musica.setVolume(80);
stopAllSounds();
if (_root.MUSIC) {
musica.start(2);
}
removeMovieClip(_root.mensaje);
}
} else if (estado == 2) {
tio.mover(leeTeclas(), chequeaColisiones(tio));
controlaFinal();
gestor_enemigos.mover();
gestor_disparos.mover();
gestor_items.mover();
mueveScroll();
if (contador > 0) {
contador--;
} else if (Key.isDown(80) || (pon_pausa)) {
pon_pausa = false;
quita_pausa = false;
_root.attachMovie("mensaje_2", "mensaje2", 5997);
_root.mensaje2._x = 25;
_root.mensaje2._y = 125;
_root.textos.boton_pausa.gotoAndStop(2);
estado = 22;
contador = 14;
}
if (contador_sonido > 0) {
contador_sonido--;
}
if (Key.isDown(83) && (contador_sonido == 0)) {
contador_sonido = 14;
if (_root.SOUNDFX) {
quitar_sonido();
} else {
poner_sonido();
}
}
gestionaEventos();
} else if (estado == 22) {
if (contador > 0) {
contador--;
} else if (Key.isDown(80) || (quita_pausa)) {
pon_pausa = false;
quita_pausa = false;
removeMovieClip(_root.mensaje2);
_root.textos.boton_pausa.gotoAndStop(1);
estado = 2;
contador = 14;
}
} else if (estado == 10) {
tio.mover(leeTeclas(), chequeaColisiones(tio));
controlaFinal();
gestor_enemigos.mover();
gestor_disparos.mover();
mueveScroll();
contador--;
if (contador == 99) {
_root.attachMovie("mensaje_1", "mensaje1", 5997);
_root.mensaje1._x = 25;
_root.mensaje1._y = 125;
}
if (contador == 0) {
removeMovieClip(_root.mensaje1);
estado = 2;
}
} else if (estado == 3) {
var _local4 = new flash.filters.BlurFilter(blurX, blurY, quality);
var _local3 = new Array();
_local3.push(_local4);
terreno.filters = _local3;
estado = 1;
} else if (estado == 4) {
terreno.mapa.decorado._alpha--;
fondo._alpha--;
volumen = musica.getVolume() - 2;
if (volumen < 0) {
volumen = 0;
}
musica.setVolume(volumen);
terreno.mapa.tio.sprite("muere", "*");
gestor_enemigos.desaparecen();
gestor_enemigos.mover();
gestor_disparos.mover();
mueveScroll();
contador--;
if (contador == 0) {
estado = 0;
}
} else if (estado == 99) {
terreno.mapa.decorado._alpha--;
fondo._alpha--;
volumen = musica.getVolume() - 2;
if (volumen < 0) {
volumen = 0;
}
musica.setVolume(volumen);
terreno.mapa.tio.sprite("muere", "*");
gestor_enemigos.desaparecen();
gestor_enemigos.mover();
gestor_disparos.mover();
mueveScroll();
contador--;
if (contador == 50) {
_root.attachMovie("game_over", "gameover", 5997);
_root.gameover._x = 125;
_root.gameover._y = 125;
}
if (contador < 0) {
if (Key.isDown(32)) {
estado = 100;
}
}
} else if (estado == 6) {
terreno.mapa.decorado._alpha--;
fondo._alpha--;
volumen = musica.getVolume() - 2;
if (volumen < 0) {
volumen = 0;
}
musica.setVolume(volumen);
gestor_enemigos.desaparecen();
contador--;
if (contador == 50) {
_root.attachMovie("fin_nivel", "finnivel", 5997);
_root.finnivel._x = 140;
_root.finnivel._y = 140;
}
if (contador < 0) {
if (Key.isDown(32)) {
estado = 7;
}
}
} else if (estado == 7) {
terreno = null;
fondo = null;
removeMovieClip(_root.fondo);
removeMovieClip(_root.terreno);
removeMovieClip(_root.finnivel);
removeMovieClip(_root.textos);
removeMovieClip(_root.timeremain);
if (_root.RENDERGFX) {
removeMovieClip(_root.fondo2);
removeMovieClip(_root.terreno2);
removeMovieClip(_root.mascara0);
removeMovieClip(_root.mascara1);
}
removeMovieClip(_root.mascara2);
removeMovieClip(_root.mascara3);
switch (_root.LEVEL) {
case 1 :
nombre_mapa = "Mapa1";
break;
case 2 :
nombre_mapa = "Mapa2";
break;
case 3 :
nombre_mapa = "Mapa3";
break;
case 4 :
nombre_mapa = "Mapa4";
break;
case 5 :
nombre_mapa = "Mapa5";
break;
case 6 :
nombre_mapa = "Mapa6";
break;
case 7 :
nombre_mapa = "Mapa7";
break;
case 8 :
nombre_mapa = "Mapa8";
break;
case 9 :
nombre_mapa = "Mapa9";
break;
case 10 :
_root.gotoAndStop("patru");
}
estado = 0;
} else if (estado == 100) {
terreno = null;
fondo = null;
removeMovieClip(_root.fondo);
removeMovieClip(_root.terreno);
removeMovieClip(_root.gameover);
removeMovieClip(_root.textos);
removeMovieClip(_root.timeremain);
if (_root.RENDERGFX) {
removeMovieClip(_root.fondo2);
removeMovieClip(_root.terreno2);
removeMovieClip(_root.mascara0);
removeMovieClip(_root.mascara1);
}
removeMovieClip(_root.mascara2);
removeMovieClip(_root.mascara3);
_root.gotoAndStop("doi");
} else if (estado == 200) {
terreno = null;
fondo = null;
removeMovieClip(_root.fondo);
removeMovieClip(_root.terreno);
removeMovieClip(_root.finnivel);
removeMovieClip(_root.textos);
if (_root.RENDERGFX) {
removeMovieClip(_root.fondo2);
removeMovieClip(_root.terreno2);
removeMovieClip(_root.mascara0);
removeMovieClip(_root.mascara1);
}
removeMovieClip(_root.mascara2);
removeMovieClip(_root.mascara3);
_root.gotoAndStop("cinci");
}
}
function poner_pausa() {
if (estado == 2) {
pon_pausa = true;
}
}
function quitar_pausa() {
if (estado == 22) {
quita_pausa = true;
}
}
function poner_sonido() {
_root.SOUNDFX = true;
musica.setVolume(80);
_root.textos.boton_sonido.gotoAndStop(1);
}
function quitar_sonido() {
_root.SOUNDFX = false;
musica.setVolume(0);
_root.textos.boton_sonido.gotoAndStop(2);
}
function restoreLife(quien) {
if (quien == 1) {
life1 = 6;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
} else {
life2 = 6;
_root.textos.life_bar2.gotoAndStop(life2 + 1);
}
}
var blurX = 4;
var blurY = 4;
var quality = 1;
}
Symbol 1327 MovieClip [__Packages.GestorDisparos] Frame 0
class GestorDisparos
{
var total_disparos, max_disparos, disparos, terreno;
function GestorDisparos (_terreno) {
total_disparos = 0;
max_disparos = 200;
disparos = new Array();
disparos[0] = new Array();
disparos[1] = new Array();
_terreno.mapa.attachMovie("clip_disparos", "disparo", 8);
_terreno.mapa.disparo._x = -200;
_terreno.mapa.disparo._y = -200;
terreno = _terreno;
}
function chequeaColisiones(clip) {
var i;
var colisiones = 0;
var x = (clip._x + terreno._x);
var y = (clip._y + terreno._y);
if (terreno.mapa.mascara.hitTest(x, y, true)) {
colisiones = colisiones | 1;
}
if (clip.estado == 1) {
if (clip.dequien == 3) {
if (_root.terreno.mapa.tio.body.hitTest(x, y, true) && (!_root.terreno.mapa.tio.muerto)) {
_root.juego.impactado(1);
colisiones = colisiones | 1;
}
if (_root.terreno.mapa.tio2.body.hitTest(x, y, true) && (!_root.terreno.mapa.tio2.muerto)) {
_root.juego.impactado(2);
colisiones = colisiones | 1;
}
} else {
i = 0;
while (i < _root.juego.gestor_enemigos.total_enemigos) {
if (((eval ("terreno.mapa.malo" + i).vida > 0) && (clip.estado == 1)) && (clip.dequien != 3)) {
if (eval ("terreno.mapa.malo" + i).hitTest(x, y, true)) {
_root.juego.gestor_enemigos.impactado(i);
_root.juego.puntua(clip.dequien);
colisiones = colisiones | 1;
i = _root.juego.gestor_enemigos.total_enemigos;
}
}
i++;
}
}
}
return(colisiones);
}
function obtenElementoLibre() {
var _local2 = 0;
var _local3 = false;
while ((!_local3) && (_local2 < total_disparos)) {
if (disparos[0][_local2] == 0) {
_local3 = true;
} else {
_local2++;
}
}
return(_local2);
}
function dispara(xini, yini, fxini, fyini, id, tipo) {
var siguiente_disparo;
if (total_disparos < max_disparos) {
siguiente_disparo = obtenElementoLibre();
terreno.mapa.disparo.duplicateMovieClip("disparo" + siguiente_disparo, 9 + siguiente_disparo);
disparos[0][siguiente_disparo] = 1;
disparos[1][siguiente_disparo] = "terreno.mapa.disparo" + siguiente_disparo;
eval ("terreno.mapa.disparo" + siguiente_disparo)._x = xini;
eval ("terreno.mapa.disparo" + siguiente_disparo)._y = yini;
eval ("terreno.mapa.disparo" + siguiente_disparo).fx = fxini;
eval ("terreno.mapa.disparo" + siguiente_disparo).fy = fyini;
eval ("terreno.mapa.disparo" + siguiente_disparo).dequien = id;
eval ("terreno.mapa.disparo" + siguiente_disparo).setTipo(tipo);
total_disparos++;
}
}
function muestra_array() {
var _local2;
var _local3;
_local3 = "- ";
_local2 = 0;
while (_local2 < total_disparos) {
if (disparos[0][_local2] == 1) {
_local3 = _local3 + (disparos[1][_local2] + " - ");
} else {
_local3 = _local3 + " vacio - ";
}
_local2++;
}
trace(_local3);
}
function mover() {
var valor;
var i;
var total_actual;
total_actual = total_disparos;
i = 0;
while (total_actual > 0) {
if (disparos[0][i] == 1) {
valor = eval (String(disparos[1][i])).mover(chequeaColisiones(eval (String(disparos[1][i]))));
if (valor == -1) {
eval (String(disparos[1][i])).removeMovieClip();
disparos[0][i] = 0;
total_disparos--;
}
total_actual--;
}
i++;
}
}
}
Symbol 1328 MovieClip [__Packages.GestorEnemigos] Frame 0
class GestorEnemigos
{
var total_enemigos, maximo_robots, cadencia_robots, tipo, activo, terreno, maximo_robojets, cadencia_robojets, sale_enemigo;
function GestorEnemigos (_terreno) {
total_enemigos = 0;
maximo_robots = 0;
cadencia_robots = 0;
tipo = new Array();
activo = new Array();
terreno = _terreno;
_terreno.mapa.attachMovie("malo0", "malo", 1000);
_terreno.mapa.attachMovie("malo3", "malojet", 999);
_terreno.mapa.malo._x = -200;
_terreno.mapa.malo._y = -200;
_terreno.mapa.malojet._x = -200;
_terreno.mapa.malojet._y = -200;
if (_root.RENDERGFX) {
_root.terreno2.mapa.attachMovie("malo0", "malo", 4000);
_root.terreno2.mapa.attachMovie("malo3", "malojet", 3999);
_root.terreno2.mapa.malo._x = -200;
_root.terreno2.mapa.malo._y = -200;
_root.terreno2.mapa.malojet._x = -200;
_root.terreno2.mapa.malojet._y = -200;
}
}
function chequeaColisiones(clip, i) {
var _local2 = 0;
var _local4 = clip._x + terreno._x;
var _local3 = clip._y + terreno._y;
switch (tipo[i]) {
case 0 :
if (terreno.mapa.mascara.hitTest(_local4 + 32, _local3 + 64, true)) {
_local2 = _local2 | 1;
}
if (terreno.mapa.mascara.hitTest(_local4 + 32, _local3 + 60, true)) {
_local2 = _local2 | 2;
}
if (terreno.mapa.mascara.hitTest(_local4 + 58, _local3 + 32, true)) {
_local2 = _local2 | 4;
}
if (terreno.mapa.mascara.hitTest(_local4 + 6, _local3 + 32, true)) {
_local2 = _local2 | 8;
}
break;
case 2 :
if (terreno.mapa.mascara.hitTest(_local4, _local3 + clip._height, true)) {
_local2 = _local2 | 1;
}
if (terreno.mapa.mascara.hitTest(_local4, (_local3 + clip._height) - 4, true)) {
_local2 = _local2 | 2;
}
if (terreno.mapa.mascara.hitTest(_local4 + 50, _local3 + (clip._height - 45), true)) {
_local2 = _local2 | 4;
}
if (terreno.mapa.mascara.hitTest(_local4 - 50, _local3 + (clip._height - 45), true)) {
_local2 = _local2 | 8;
}
break;
case 4 :
if (terreno.mapa.mascara.hitTest(_local4, _local3 + 90, true)) {
_local2 = _local2 | 1;
}
if (terreno.mapa.mascara.hitTest(_local4, _local3 + 86, true)) {
_local2 = _local2 | 2;
}
if (terreno.mapa.mascara.hitTest(_local4 + 50, _local3 + 45, true)) {
_local2 = _local2 | 4;
}
if (!terreno.mapa.mascara.hitTest(_local4 - 50, _local3 + 45, true)) {
break;
}
_local2 = _local2 | 8;
}
return(_local2);
}
function determinaAngulo(clip) {
var _local2;
var _local7;
var _local6;
var _local5 = 0;
var _local4 = clip._x + terreno._x;
var _local3 = clip._y + terreno._y;
_local2 = 0;
while ((!terreno.mapa.mascara.hitTest(_local4 - 50, (_local3 + 90) + _local2, true)) && (_local2 < 180)) {
_local2++;
}
_local7 = _local2;
_local2 = 0;
while ((!terreno.mapa.mascara.hitTest(_local4 + 50, (_local3 + 90) + _local2, true)) && (_local2 < 180)) {
_local2++;
}
_local6 = _local2;
_local5 = _local6 - _local7;
if ((_local5 > 30) || (_local5 < -30)) {
_local5 = 0;
}
return(_local5);
}
function leeVariables() {
var i;
total_enemigos = terreno.mapa.total_enemigos;
maximo_robots = terreno.mapa.maximo_robots;
cadencia_robots = terreno.mapa.cadencia_robots;
maximo_robojets = terreno.mapa.maximo_robojets;
cadencia_robojets = terreno.mapa.cadencia_robojets;
i = 0;
while (i < total_enemigos) {
tipo[i] = eval ("terreno.mapa.enemigo_tipo_" + i);
activo[i] = true;
switch (tipo[i]) {
case 0 :
break;
case 1 :
eval ("terreno.mapa.malo" + i).id = i;
eval ("terreno.mapa.malo" + i).tipo = 1;
eval ("terreno.mapa.malo" + i).vida = eval ("terreno.mapa.enemigo_vida_" + i);
eval ("terreno.mapa.malo" + i).sprite("mira", "derecha");
break;
case 4 :
case 2 :
eval ("terreno.mapa.malo" + i).id = i;
eval ("terreno.mapa.malo" + i).tipo = 2;
eval ("terreno.mapa.malo" + i).fx = eval ("terreno.mapa.enemigo_fx_" + i);
if (eval ("terreno.mapa.malo" + i).fx > 0) {
eval ("terreno.mapa.malo" + i).sprite("parado", "derecha");
} else {
eval ("terreno.mapa.malo" + i).sprite("parado", "izquierda");
}
eval ("terreno.mapa.malo" + i).vida = eval ("terreno.mapa.enemigo_vida_" + i);
break;
case 3 :
}
i++;
}
i = total_enemigos;
while (i < (total_enemigos + maximo_robots)) {
tipo[i] = 0;
activo[i] = true;
terreno.mapa.malo.duplicateMovieClip("malo" + i, 1000 + i);
eval ("terreno.mapa.malo" + i).tipo = 0;
eval ("terreno.mapa.malo" + i).vida = 0;
eval ("terreno.mapa.malo" + i)._x = -200;
eval ("terreno.mapa.malo" + i)._y = -200;
eval ("terreno.mapa.malo" + i).id = i;
eval ("terreno.mapa.malo" + i).sprite("camina", "derecha");
if (_root.RENDERGFX) {
_root.terreno2.mapa.malo.duplicateMovieClip("malo" + i, 4000 + i);
}
i++;
}
total_enemigos = total_enemigos + maximo_robots;
i = total_enemigos;
while (i < (total_enemigos + maximo_robojets)) {
tipo[i] = 3;
activo[i] = true;
terreno.mapa.malojet.duplicateMovieClip("malo" + i, 1000 + i);
eval ("terreno.mapa.malo" + i).tipo = 3;
eval ("terreno.mapa.malo" + i).vida = 0;
eval ("terreno.mapa.malo" + i)._x = -200;
eval ("terreno.mapa.malo" + i)._y = -200;
eval ("terreno.mapa.malo" + i).id = i;
eval ("terreno.mapa.malo" + i).sprite("camina", "derecha");
if (_root.RENDERGFX) {
_root.terreno2.mapa.malo.duplicateMovieClip("malo" + i, 4000 + i);
}
i++;
}
total_enemigos = total_enemigos + maximo_robojets;
}
function impactado(i) {
eval ("terreno.mapa.malo" + i).impacta();
}
function mover() {
var i;
sale_enemigo = false;
i = 0;
while (i < total_enemigos) {
switch (tipo[i]) {
case 0 :
eval ("terreno.mapa.malo" + i).mover(chequeaColisiones(eval ("terreno.mapa.malo" + i), i), 0);
break;
case 1 :
eval ("terreno.mapa.malo" + i).mover(chequeaColisiones(eval ("terreno.mapa.malo" + i), i), 0);
break;
case 4 :
case 2 :
eval ("terreno.mapa.malo" + i).mover(chequeaColisiones(eval ("terreno.mapa.malo" + i), i), determinaAngulo(eval ("terreno.mapa.malo" + i)));
break;
case 3 :
eval ("terreno.mapa.malo" + i).mover(0, 0);
}
i++;
}
}
function desaparecen() {
var i;
i = 0;
while (i < total_enemigos) {
eval ("terreno.mapa.malo" + i)._alpha--;
i++;
}
}
}
Symbol 1329 MovieClip [__Packages.GestorItems] Frame 0
class GestorItems
{
var total_items, terreno;
function GestorItems (_terreno) {
total_items = 0;
terreno = _terreno;
}
function leeVariables() {
var _local2;
total_items = terreno.mapa.total_lifekits;
}
function mover() {
var i;
i = 0;
while (i < total_items) {
eval ("terreno.mapa.life_kit" + i).mover();
i++;
}
}
}
Symbol 1330 MovieClip [__Packages.Juego2p] Frame 0
class Juego2p
{
var nombre_mapa, terreno, fondo, musica, creditos, vidas1, vidas2, puntos1, puntos2, estado, pon_pausa, quita_pausa, life1, tio, life2, tio2, contador, terreno2, finish_by_time, time_remaining, mascara, gestor_disparos, gestor_enemigos, gestor_items, contador_sonido, volumen;
function Juego2p (cadena) {
nombre_mapa = cadena;
terreno = new MovieClip();
fondo = new MovieClip();
musica = new Sound();
musica.attachSound("getsoul");
creditos = 3;
vidas1 = 3;
vidas2 = 3;
puntos1 = 0;
puntos2 = 0;
estado = 0;
pon_pausa = false;
quita_pausa = false;
}
function leeTeclas() {
var _local2 = 0;
if (Key.isDown(_root.P1_RIGHT)) {
_local2 = _local2 | 1;
}
if (Key.isDown(_root.P1_LEFT)) {
_local2 = _local2 | 2;
}
if (Key.isDown(_root.P1_JUMP)) {
_local2 = _local2 | 4;
}
if (Key.isDown(_root.P1_DOWN)) {
_local2 = _local2 | 8;
}
if (Key.isDown(_root.P1_UP)) {
_local2 = _local2 | 16;
}
if (Key.isDown(_root.P1_FIRE)) {
_local2 = _local2 | 32;
}
return(_local2);
}
function leeTeclas2() {
var _local2 = 0;
if (Key.isDown(_root.P2_RIGHT)) {
_local2 = _local2 | 1;
}
if (Key.isDown(_root.P2_LEFT)) {
_local2 = _local2 | 2;
}
if (Key.isDown(_root.P2_JUMP)) {
_local2 = _local2 | 4;
}
if (Key.isDown(_root.P2_DOWN)) {
_local2 = _local2 | 8;
}
if (Key.isDown(_root.P2_UP)) {
_local2 = _local2 | 16;
}
if (Key.isDown(_root.P2_FIRE)) {
_local2 = _local2 | 32;
}
return(_local2);
}
function chequeaColisiones(clip) {
var i;
var colisiones = 0;
var x = (clip._x + terreno._x);
var y = (clip._y + terreno._y);
if (terreno.mapa.mascara.hitTest(x + 32, y + 64, true)) {
colisiones = colisiones | 1;
}
if (terreno.mapa.mascara.hitTest(x + 32, y + 60, true)) {
colisiones = colisiones | 2;
}
if (terreno.mapa.mascara.hitTest(x + 32, y + 56, true)) {
colisiones = colisiones | 4;
}
if (terreno.mapa.mascara.hitTest(x + 32, y + 62, true)) {
colisiones = colisiones | 8;
}
if (terreno.mapa.mascara.hitTest(x + 32, y + 61, true)) {
colisiones = colisiones | 16;
}
if (terreno.mapa.mascara.hitTest(x + 58, y + 32, true)) {
colisiones = colisiones | 32;
}
if (terreno.mapa.mascara.hitTest(x + 6, y + 32, true)) {
colisiones = colisiones | 64;
}
if (terreno.mapa.mascara.hitTest(x + 32, y + 6, true) && (terreno.mapa.mascara.hitTest(x + 32, y - 16, true))) {
colisiones = colisiones | 128;
}
if (terreno.mapa.mascara.hitTest(x + 32, y + 80, true)) {
colisiones = colisiones | 256;
}
i = 0;
while (i < _root.juego.gestor_enemigos.total_enemigos) {
if (eval ("terreno.mapa.malo" + i).vida > 0) {
if (!_root.CHEAT) {
if (eval ("terreno.mapa.malo" + i).hitTest(x + 32, y + 32, true)) {
colisiones = colisiones | 512;
if (clip.id == 1) {
life1--;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
if (life1 == 0) {
vidas1--;
_root.textos.vidas1 = vidas1;
_root.textos.vidas2 = vidas2;
tio.muerto = true;
estado = 4;
}
} else {
life2--;
_root.textos.life_bar2.gotoAndStop(life2 + 1);
if (life2 == 0) {
vidas2--;
_root.textos.vidas2 = vidas2;
_root.textos.vidas1 = vidas1;
tio2.muerto = true;
estado = 4;
}
}
if ((vidas1 == 0) && (vidas2 == 0)) {
estado = 99;
}
contador = 100;
}
}
}
i++;
}
return(colisiones);
}
function impactado(quien) {
if (!_root.CHEAT) {
if (quien == 1) {
life1--;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
if (life1 == 0) {
vidas1--;
_root.textos.vidas1 = vidas1;
tio.muerto = true;
estado = 4;
}
} else {
life2--;
_root.textos.life_bar2.gotoAndStop(life2 + 1);
if (life2 == 0) {
vidas2--;
_root.textos.vidas2 = vidas2;
tio2.muerto = true;
estado = 4;
}
}
if ((vidas1 == 0) && (vidas2 == 0)) {
estado = 99;
}
contador = 100;
}
}
function puntua(quien) {
if (quien == 1) {
puntos1 = puntos1 + 10;
_root.textos.puntos1 = puntos1;
} else if (quien == 2) {
puntos2 = puntos2 + 10;
_root.textos.puntos2 = puntos2;
}
}
function mueveScroll() {
var _local4 = tio._x + terreno._x;
var _local3 = tio._y + terreno._y;
if ((_local4 > 180) && (terreno._x > (-(terreno.mapa.decorado._width - 400)))) {
terreno._x = terreno._x - 6;
fondo._x = fondo._x - 1;
}
if ((_local4 < 140) && (terreno._x < 0)) {
terreno._x = terreno._x + 6;
fondo._x = fondo._x + 1;
}
if ((_local3 > 126) && (terreno._y > (-(terreno.mapa.decorado._height - 300)))) {
terreno._y = terreno._y - 6;
fondo._y = fondo._y - 1;
}
if ((_local3 < 96) && (terreno._y < 0)) {
terreno._y = terreno._y + 6;
fondo._y = fondo._y + 1;
}
if ((_local3 > 186) && (terreno._y > -900)) {
terreno._y = terreno._y - 6;
fondo._y = fondo._y - 1;
}
if ((_local3 < 32) && (terreno._y < 0)) {
terreno._y = terreno._y + 6;
fondo._y = fondo._y + 1;
}
if (_root.RENDERGFX) {
terreno2.fondo._x = fondo._x - terreno._x;
terreno2.fondo._y = fondo._y - terreno._y;
terreno2._x = terreno._x;
terreno2._y = terreno._y;
}
}
function controlaFinal() {
if ((((tio._x > terreno.mapa.xdesde) && (tio._x < terreno.mapa.xhasta)) && (tio._y > terreno.mapa.ydesde)) && (tio._y < terreno.mapa.yhasta)) {
contador = 100;
estado = 6;
_root.LEVEL++;
}
if (!tio.muerto) {
if (((tio._x < -64) || (tio._x > terreno.mapa.decorado._width)) || (tio._y > terreno.mapa.decorado._height)) {
vidas1--;
_root.textos.vidas1 = vidas1;
tio.muerto = true;
estado = 4;
contador = 100;
}
}
}
function gestionaEventos() {
if (terreno.mapa.gestion_eventos) {
if ((((tio._x > terreno.mapa.eventxdesde) && (tio._x < terreno.mapa.eventxhasta)) && (tio._y > terreno.mapa.eventydesde)) && (tio._y < terreno.mapa.eventyhasta)) {
terreno.mapa.evento();
if (_root.RENDERGFX) {
terreno2.mapa.evento();
}
contador = 100;
estado = 10;
}
if (terreno.mapa.evento_contador > 0) {
if (!finish_by_time) {
finish_by_time = true;
if (_root.timeremain) {
_root.timeremain.removeMovieClip();
}
_root.attachMovie("time_remaining_clip", "timeremain", 4000);
_root.timeremain._x = 200;
_root.timeremain._y = 30;
time_remaining = terreno.mapa.evento_contador;
}
time_remaining--;
_root.timeremain.time_remaining = time_remaining;
if (time_remaining == 0) {
_root.timeremain.removeMovieClip();
contador = 100;
estado = 200;
_root.LEVEL++;
}
}
}
}
function paso(cual) {
if (estado == 0) {
_root.attachMovie("Message", "mensaje", 5997);
if (_root.fondo) {
removeMovieClip(_root.fondo);
}
_root.attachMovie("Horizonte", "fondo", 1);
if (_root.terreno) {
removeMovieClip(_root.terreno);
}
_root.createEmptyMovieClip("terreno", 2);
terreno = _root.terreno;
fondo = _root.fondo;
finish_by_time = false;
terreno.attachMovie(nombre_mapa, "mapa", 2);
terreno.mapa.attachMovie("Lance_piernas", "tio", 4);
terreno.mapa.tio.attachMovie("Lance_torso", "torso", 5);
terreno.mapa.attachMovie("Lance_piernas2", "tio2", 6);
terreno.mapa.tio2.attachMovie("Lance_torso2", "torso", 7);
terreno.mapa.efectos.swapDepths(5000);
if (_root.RENDERGFX) {
if (_root.terreno2) {
removeMovieClip(_root.terreno2);
}
_root.createEmptyMovieClip("terreno2", 2999);
terreno2 = _root.terreno2;
terreno2.attachMovie("Horizonte", "fondo", 2999);
terreno2.attachMovie(nombre_mapa, "mapa", 3000);
terreno2.mapa.attachMovie("Lance_piernas", "tio", 3001);
terreno2.mapa.tio.attachMovie("Lance_torso", "torso", 3002);
terreno2.mapa.attachMovie("Lance_piernas", "tio2", 3003);
terreno2.mapa.tio2.attachMovie("Lance_torso", "torso", 3004);
terreno2.mapa.efectos.swapDepths(3999);
var _local4 = new flash.filters.BlurFilter(blurX, blurY, quality);
var _local3 = new Array();
_local3.push(_local4);
terreno2.filters = _local3;
terreno2.blendMode = "screen";
_root.attachMovie("mascara", "mascara0", 5999);
terreno2.fondo.setMask(_root.mascara0);
_root.attachMovie("mascara", "mascara1", 6000);
terreno2.setMask(_root.mascara1);
}
if (_root.textos) {
removeMovieClip(_root.textos);
}
_root.attachMovie("textos", "textos", 5998);
_root.attachMovie("mascara", "mascara2", 6001);
_root.attachMovie("mascara", "mascara3", 6002);
fondo.setMask(_root.mascara2);
terreno.setMask(_root.mascara3);
_root.textos.vidas1 = vidas1;
_root.textos.vidas2 = vidas2;
_root.textos.puntos1 = puntos1;
_root.textos.puntos2 = puntos2;
life1 = 6;
life2 = 6;
_root.textos.life_bar1.gotoAndStop(life1 + 1);
_root.textos.life_bar2.gotoAndStop(life2 + 1);
tio = terreno.mapa.tio;
tio.id = 1;
tio2 = terreno.mapa.tio2;
tio2.id = 2;
mascara = terreno.mapa.mascara;
if (gestor_disparos) {
delete gestor_disparos;
}
if (gestor_enemigos) {
delete gestor_enemigos;
}
if (gestor_items) {
delete gestor_items;
}
gestor_disparos = new GestorDisparos(terreno);
gestor_enemigos = new GestorEnemigos(terreno);
gestor_items = new GestorItems(terreno);
estado = 1;
} else if (estado == 1) {
tio._x = terreno.mapa.x1_ini;
tio._y = terreno.mapa.y1_ini;
terreno._x = -tio._x;
terreno._y = -tio._y;
fondo._x = -(tio._x / 6);
fondo._y = -(tio._y / 6);
tio.muerto = false;
tio2._x = terreno.mapa.x2_ini;
tio2._y = terreno.mapa.y2_ini;
tio2.muerto = false;
gestor_enemigos.leeVariables();
gestor_items.leeVariables();
_root.mensaje._x = 80;
_root.mensaje._y = 100;
_root.mensaje.pasword = terreno.mapa.pasword;
_root.mensaje.nivel = terreno.mapa.nivel;
estado = 5;
} else if (estado == 5) {
if (Key.isDown(32)) {
estado = 2;
musica.setVolume(80);
stopAllSounds();
if (_root.MUSIC) {
musica.start(2);
}
removeMovieClip(_root.mensaje);
}
} else if (estado == 2) {
tio.mover(leeTeclas(), chequeaColisiones(tio));
tio2.mover(leeTeclas2(), chequeaColisiones(tio2));
controlaFinal();
gestor_enemigos.mover();
gestor_disparos.mover();
gestor_items.mover();
mueveScroll();
if (contador > 0) {
contador--;
} else if (Key.isDown(80) || (pon_pausa)) {
pon_pausa = false;
quita_pausa = false;
_root.attachMovie("mensaje_2", "mensaje2", 4000);
_root.mensaje2._x = 25;
_root.mensaje2._y = 125;
_root.textos.boton_pausa.gotoAndStop(2);
estado = 22;
contador = 25;
}
if (contador_sonido > 0) {
contador_sonido--;
}
if (Key.isDown(83) && (contador_sonido == 0)) {
contador_sonido = 14;
if (_root.SOUNDFX) {
quitar_sonido();
} else {
poner_sonido();
}
}
gestionaEventos();
} else if (estado == 22) {
if (contador > 0) {
contador--;
} else if (Key.isDown(80) || (quita_pausa)) {
pon_pausa = false;
quita_pausa = false;
pon_pausa = false;
quita_pausa = false;
removeMovieClip(_root.mensaje2);
_root.textos.boton_pausa.gotoAndStop(1);
estado = 2;
contador = 14;
}
} else if (estado == 10) {
tio.mover(leeTeclas(), chequeaColisiones(tio));
tio2.mover(leeTeclas2(), chequeaColisiones(tio2));
controlaFinal();
gestor_enemigos.mover();
gestor_disparos.mover();
mueveScroll();
contador--;
if (contador == 99) {
_root.attachMovie("mensaje_1", "mensaje1", 5997);
_root.mensaje1._x = 25;
_root.mensaje1._y = 125;
}
if (contador == 0) {
removeMovieClip(_root.mensaje1);
estado = 2;
}
} else if (estado == 3) {
var _local4 = new flash.filters.BlurFilter(blurX, blurY, quality);
var _local3 = new Array();
_local3.push(_local4);
terreno.filters = _local3;
estado = 1;
} else if (estado == 4) {
terreno.mapa.decorado._alpha--;
fondo._alpha--;
volumen = musica.getVolume() - 2;
if (volumen < 0) {
volumen = 0;
}
musica.setVolume(volumen);
terreno.mapa.tio.sprite("muere", "*");
terreno.mapa.tio2.sprite("muere", "*");
gestor_enemigos.desaparecen();
gestor_enemigos.mover();
gestor_disparos.mover();
mueveScroll();
contador--;
if (contador == 0) {
estado = 0;
}
} else if (estado == 99) {
terreno.mapa.decorado._alpha--;
fondo._alpha--;
volumen = musica.getVolume() - 2;
if (volumen < 0) {
volumen = 0;
}
musica.setVolume(volumen);
terreno.mapa.tio.sprite("muere", "*");
terreno.mapa.tio2.sprite("muere", "*");
gestor_enemigos.desaparecen();
gestor_enemigos.mover();
gestor_disparos.mover();
mueveScroll();
contador--;
if (contador == 50) {
_root.attachMovie("game_over", "gameover", 5997);
_root.gameover._x = 125;
_root.gameover._y = 125;
}
if (contador < 0) {
if (Key.isDown(32)) {
estado = 100;
}
}
} else if (estado == 6) {
terreno.mapa.decorado._alpha--;
fondo._alpha--;
volumen = musica.getVolume() - 2;
if (volumen < 0) {
volumen = 0;
}
musica.setVolume(volumen);
gestor_enemigos.desaparecen();
gestor_disparos.mover();
contador--;
if (contador == 50) {
_root.attachMovie("fin_nivel", "finnivel", 4000);
_root.finnivel._x = 150;
_root.finnivel._y = 150;
}
if (contador < 0) {
if (Key.isDown(32)) {
estado = 7;
}
}
} else if (estado == 7) {
terreno = null;
fondo = null;
removeMovieClip(_root.fondo);
removeMovieClip(_root.terreno);
removeMovieClip(_root.finnivel);
removeMovieClip(_root.textos);
removeMovieClip(_root.timeremain);
if (_root.RENDERGFX) {
removeMovieClip(_root.fondo2);
removeMovieClip(_root.terreno2);
removeMovieClip(_root.mascara0);
removeMovieClip(_root.mascara1);
}
removeMovieClip(_root.mascara2);
removeMovieClip(_root.mascara3);
switch (_root.LEVEL) {
case 1 :
nombre_mapa = "Mapa1";
break;
case 2 :
nombre_mapa = "Mapa2";
break;
case 3 :
nombre_mapa = "Mapa3";
break;
case 4 :
nombre_mapa = "Mapa4";
break;
case 5 :
nombre_mapa = "Mapa5";
break;
case 6 :
nombre_mapa = "Mapa6";
break;
case 7 :
nombre_mapa = "Mapa7";
break;
case 8 :
nombre_mapa = "Mapa8";
break;
case 9 :
nombre_mapa = "Mapa9";
}
estado = 0;
} else if (estado == 100) {
terreno = null;
fondo = null;
removeMovieClip(_root.fondo);
removeMovieClip(_root.terreno);
removeMovieClip(_root.gameover);
removeMovieClip(_root.textos);
removeMovieClip(_root.timeremain);
if (_root.RENDERGFX) {
removeMovieClip(_root.fondo2);
removeMovieClip(_root.terreno2);
removeMovieClip(_root.mascara0);
removeMovieClip(_root.mascara1);
}
removeMovieClip(_root.mascara2);
removeMovieClip(_root.mascara3);
_root.gotoAndStop("doi");
} else if (estado == 200) {
terreno = null;
fondo = null;
removeMovieClip(_root.fondo);
removeMovieClip(_root.terreno);
removeMovieClip(_root.finnivel);
removeMovieClip(_root.textos);
if (_root.RENDERGFX) {
removeMovieClip(_root.fondo2);
removeMovieClip(_root.terreno2);
removeMovieClip(_root.mascara0);
removeMovieClip(_root.mascara1);
}
removeMovieClip(_root.mascara2);
removeMovieClip(_root.mascara3);
_root.gotoAndStop("cinci");
}
}
function poner_pausa() {
if (estado == 2) {
pon_pausa = true;
}
}
function quitar_pausa() {
if (estado == 22) {
quita_pausa = true;
}
}
function poner_sonido() {
_root.SOUNDFX = true;
musica.setVolume(80);
_root.textos.boton_sonido.gotoAndStop(1);
}
function quitar_sonido() {
_root.SOUNDFX = false;
musica.setVolume(0);
_root.textos.boton_sonido.gotoAndStop(2);
}
var blurX = 4;
var blurY = 4;
var quality = 1;
}
Symbol 16 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 50
stop();
_parent.play();
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 52 MovieClip [FUIComponentSymbol] Frame 1
#initclip 20
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 79 MovieClip [clip_disparos] Frame 1
#initclip 10
Object.registerClass("clip_disparos", Disparo);
#endinitclip
stop();
Symbol 79 MovieClip [clip_disparos] Frame 2
stop();
Symbol 79 MovieClip [clip_disparos] Frame 3
var snd_blast = new Sound();
snd_blast.attachSound("blast");
if (_root.SOUNDFX) {
snd_blast.start();
}
Symbol 79 MovieClip [clip_disparos] Frame 6
var snd_boom = new Sound();
snd_boom.attachSound("sboom.wav");
if (_root.SOUNDFX) {
snd_boom.start();
}
Symbol 79 MovieClip [clip_disparos] Frame 7
var snd_boom = new Sound();
snd_boom.attachSound("sboom.wav");
if (_root.SOUNDFX) {
snd_boom.start();
}
Symbol 112 MovieClip Frame 77
stop();
Symbol 121 MovieClip Frame 1
if (Math.random() > 0.5) {
gotoAndPlay (3);
}
Symbol 122 MovieClip [Lance_piernas] Frame 1
#initclip 11
Object.registerClass("Lance_piernas", Tio);
#endinitclip
Symbol 123 MovieClip [Lance_piernas2] Frame 1
#initclip 12
Object.registerClass("Lance_piernas2", Tio);
#endinitclip
Symbol 139 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
if (Math.random() > 0.5) {
gotoAndPlay (3);
}
Symbol 148 MovieClip Frame 1
if (Math.random() > 0.5) {
gotoAndPlay (3);
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
if (Math.random() > 0.5) {
gotoAndPlay (3);
}
Symbol 174 MovieClip Frame 1
if (Math.random() > 0.5) {
gotoAndPlay (3);
}
Symbol 175 MovieClip Frame 1
stop();
Symbol 176 MovieClip [Lance_torso] Frame 1
stop();
Symbol 177 MovieClip [Lance_torso2] Frame 1
#initclip 13
Object.registerClass("Lance_torso2", Tio);
#endinitclip
stop();
Symbol 189 MovieClip [malo0] Frame 1
#initclip 14
Object.registerClass("malo0", Malo);
#endinitclip
stop();
Symbol 194 MovieClip Frame 14
stop();
Symbol 201 MovieClip [malo1] Frame 1
#initclip 15
Object.registerClass("malo1", Malo);
#endinitclip
stop();
Symbol 216 MovieClip Frame 1
var snd_bb = new Sound();
snd_bb.attachSound("cavemonster");
if (_root.SOUNDFX) {
snd_bb.start();
}
Symbol 216 MovieClip Frame 65
stop();
Symbol 217 MovieClip [malo2] Frame 1
#initclip 16
Object.registerClass("malo2", Malo);
#endinitclip
stop();
Symbol 229 MovieClip [malo3] Frame 1
#initclip 17
Object.registerClass("malo3", Malo);
#endinitclip
stop();
Symbol 246 MovieClip Frame 16
stop();
Symbol 247 MovieClip [malo4] Frame 1
#initclip 18
Object.registerClass("malo4", Malo);
#endinitclip
stop();
Symbol 247 MovieClip [malo4] Frame 48
stop();
Symbol 275 MovieClip Frame 26
stop();
Symbol 276 MovieClip [life_kit] Frame 1
#initclip 19
Object.registerClass("life_kit", Item);
#endinitclip
stop();
Symbol 289 MovieClip [Mapa1] Frame 1
function evento() {
mascara.mascara_campo._y = -500;
this.campofuerza._y = -500;
}
pasword = "19091";
nivel = "01";
x1_ini = 120;
y1_ini = 80;
x2_ini = 180;
y2_ini = 80;
total_enemigos = 4;
enemigo_tipo_0 = 4;
enemigo_vida_0 = 40;
enemigo_fx_0 = 5;
enemigo_tipo_1 = 4;
enemigo_vida_1 = 60;
enemigo_fx_1 = 5;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 10;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 10;
maximo_robots = 10;
cadencia_robots = 0.001;
robots_vida = 1;
maximo_robojets = 3;
cadencia_robojets = 0.006;
robojets_vida = 1;
total_lifekits = 2;
xdesde = 1520;
xhasta = 1608;
ydesde = 250;
yhasta = 350;
gestion_eventos = true;
eventxdesde = 870;
eventxhasta = 1000;
eventydesde = 1100;
eventyhasta = 1200;
Symbol 295 MovieClip Frame 305
gotoAndPlay (1);
Symbol 296 MovieClip Frame 445
gotoAndPlay (1);
Symbol 302 MovieClip Frame 305
gotoAndPlay (1);
Symbol 308 MovieClip [Mapa2] Frame 1
pasword = "88912";
nivel = "02";
x1_ini = 120;
y1_ini = 900;
x2_ini = 180;
y2_ini = 900;
total_enemigos = 9;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 20;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 20;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 20;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 20;
enemigo_tipo_4 = 1;
enemigo_vida_4 = 20;
enemigo_tipo_5 = 1;
enemigo_vida_5 = 20;
enemigo_tipo_6 = 1;
enemigo_vida_6 = 20;
enemigo_tipo_7 = 1;
enemigo_vida_7 = 20;
enemigo_tipo_8 = 1;
enemigo_vida_8 = 20;
maximo_robots = 3;
cadencia_robots = 0.006;
robots_vida = 1;
maximo_robojets = 3;
cadencia_robojets = 0.006;
robojets_vida = 1;
total_lifekits = 2;
xdesde = 1520;
xhasta = 1608;
ydesde = 580;
yhasta = 670;
Symbol 315 MovieClip [Mapa3] Frame 1
pasword = "32323";
nivel = "03";
x1_ini = 50;
y1_ini = 500;
x2_ini = 100;
y2_ini = 500;
total_enemigos = 5;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 20;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 20;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 20;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 20;
enemigo_tipo_4 = 2;
enemigo_vida_4 = 200;
enemigo_fx_4 = -5;
maximo_robots = 10;
cadencia_robots = 0.005;
robots_vida = 1;
maximo_robojets = 5;
cadencia_robojets = 0.01;
robojets_vida = 1;
total_lifekits = 1;
xdesde = 1520;
xhasta = 1608;
ydesde = 850;
yhasta = 1100;
Symbol 322 MovieClip [Mapa4] Frame 1
pasword = "57443";
nivel = "04";
x1_ini = 80;
y1_ini = 350;
x2_ini = 60;
y2_ini = 350;
total_enemigos = 2;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 1;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 1;
maximo_robots = 15;
cadencia_robots = 0.006;
robots_vida = 1;
maximo_robojets = 10;
cadencia_robojets = 0.006;
robojets_vida = 1;
total_lifekits = 1;
xdesde = 1580;
xhasta = 1630;
ydesde = 250;
yhasta = 360;
Symbol 329 MovieClip [Mapa5] Frame 1
pasword = "15255";
nivel = "05";
x1_ini = 100;
y1_ini = 300;
x2_ini = 70;
y2_ini = 300;
total_enemigos = 6;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 20;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 20;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 20;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 20;
enemigo_tipo_4 = 1;
enemigo_vida_4 = 20;
enemigo_tipo_5 = 1;
enemigo_vida_5 = 20;
maximo_robots = 9;
cadencia_robots = 0.01;
robots_vida = 1;
maximo_robojets = 5;
cadencia_robojets = 0.02;
robojets_vida = 1;
total_lifekits = 2;
xdesde = 1540;
xhasta = 1600;
ydesde = 0;
yhasta = 230;
Symbol 336 MovieClip [Mapa6] Frame 1
pasword = "67611";
nivel = "06";
x1_ini = 10;
y1_ini = 150;
x2_ini = 15;
y2_ini = 150;
total_enemigos = 9;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 20;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 20;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 20;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 20;
enemigo_tipo_4 = 1;
enemigo_vida_4 = 20;
enemigo_tipo_5 = 1;
enemigo_vida_5 = 20;
enemigo_tipo_6 = 1;
enemigo_vida_6 = 20;
enemigo_tipo_7 = 1;
enemigo_vida_7 = 20;
enemigo_tipo_8 = 1;
enemigo_vida_8 = 20;
maximo_robots = 8;
cadencia_robots = 0.004;
robots_vida = 1;
maximo_robojets = 10;
cadencia_robojets = 0.004;
robots_vida = 1;
total_lifekits = 4;
xdesde = 1550;
xhasta = 1620;
ydesde = 50;
yhasta = 300;
Symbol 346 MovieClip [Mapa7] Frame 1
pasword = "99054";
nivel = "07";
x1_ini = 50;
y1_ini = 260;
x2_ini = 20;
y2_ini = 260;
total_enemigos = 7;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 90;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 40;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 40;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 40;
enemigo_tipo_4 = 1;
enemigo_vida_4 = 40;
enemigo_tipo_5 = 2;
enemigo_fx_5 = -8;
enemigo_vida_5 = 80;
enemigo_tipo_6 = 2;
enemigo_fx_6 = 2;
enemigo_vida_6 = 80;
maximo_robots = 6;
cadencia_robots = 0.008;
robots_vida = 1;
maximo_robojets = 12;
cadencia_robojets = 0.008;
robojets_vida = 1;
total_lifekits = 2;
xdesde = 1550;
xhasta = 1620;
ydesde = 900;
yhasta = 1060;
Symbol 353 MovieClip Frame 1195
stop();
Symbol 360 MovieClip [Mapa8] Frame 1
pasword = "71347";
nivel = "08";
x1_ini = 50;
y1_ini = 150;
x2_ini = 30;
y2_ini = 150;
total_enemigos = 7;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 20;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 20;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 20;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 20;
enemigo_tipo_4 = 1;
enemigo_vida_4 = 20;
enemigo_tipo_5 = 1;
enemigo_vida_5 = 20;
enemigo_tipo_6 = 1;
enemigo_vida_6 = 20;
maximo_robots = 7;
cadencia_robots = 0.004;
robots_vida = 1;
maximo_robojets = 14;
cadencia_robojets = 0.004;
robojets_vida = 1;
total_lifekits = 0;
xdesde = 1550;
xhasta = 1620;
ydesde = 950;
yhasta = 1100;
Symbol 371 MovieClip [Mapa9] Frame 1
pasword = "21336";
nivel = "09";
gestion_eventos = true;
evento_contador = 22500;
x1_ini = 10;
y1_ini = 1100;
x2_ini = 20;
y2_ini = 1100;
total_enemigos = 16;
enemigo_tipo_0 = 1;
enemigo_vida_0 = 20;
enemigo_tipo_1 = 1;
enemigo_vida_1 = 20;
enemigo_tipo_2 = 1;
enemigo_vida_2 = 20;
enemigo_tipo_3 = 1;
enemigo_vida_3 = 20;
enemigo_tipo_4 = 1;
enemigo_vida_4 = 20;
enemigo_tipo_5 = 1;
enemigo_vida_5 = 70;
enemigo_tipo_6 = 1;
enemigo_vida_6 = 70;
enemigo_tipo_7 = 1;
enemigo_vida_7 = 70;
enemigo_tipo_8 = 1;
enemigo_vida_8 = 70;
enemigo_tipo_9 = 1;
enemigo_vida_9 = 70;
enemigo_tipo_10 = 1;
enemigo_vida_10 = 70;
enemigo_tipo_11 = 1;
enemigo_vida_11 = 70;
enemigo_tipo_12 = 1;
enemigo_vida_12 = 70;
enemigo_tipo_13 = 1;
enemigo_vida_13 = 70;
enemigo_tipo_14 = 1;
enemigo_vida_14 = 70;
enemigo_tipo_15 = 2;
enemigo_fx_15 = -2;
enemigo_vida_15 = 1000;
maximo_robots = 20;
cadencia_robots = 0.001;
robots_vida = 1;
maximo_robojets = 20;
cadencia_robojets = 0.001;
robojets_vida = 1;
total_lifekits = 2;
Symbol 378 MovieClip [fin_nivel] Frame 1
var snd_explode = new Sound();
snd_explode.attachSound("EXPLODE.WAV");
if (_root.SOUNDFX) {
snd_explode.start();
}
Symbol 378 MovieClip [fin_nivel] Frame 60
stop();
Symbol 382 Button
on (release) {
if (_root.textos.puntos2 >= _root.textos.puntos1) {
_root.scor = _root.textos.puntos2;
} else {
_root.scor = _root.textos.puntos1;
}
trace("scor: " + _root.scor);
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
}
Symbol 386 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 393 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 393 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 393 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 394 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 401 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 401 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 401 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 402 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 409 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 409 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 409 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 414 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 421 MovieClip Frame 1
stop();
Symbol 424 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 431 MovieClip Frame 1
stop();
Symbol 432 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 439 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 439 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 439 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 440 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 448 MovieClip Frame 1
function instructionsFunction() {
_parent.butoane._visible = false;
_parent.MM._visible = false;
_parent.instructions._visible = true;
}
stop();
Symbol 448 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 448 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 448 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 448 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 448 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 453 MovieClip [game_over] Frame 1
var snd_explode = new Sound();
snd_explode.attachSound("EXPLODE.WAV");
if (_root.SOUNDFX) {
snd_explode.start();
}
Instance of Symbol 448 MovieClip "g_o" in Symbol 453 MovieClip [game_over] Frame 49
//component parameters
onClipEvent (construct) {
wynume = "TheLastFight";
wyculoare = 3243430 /* 0x317DA6 */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Sus";
wyinstructions = false;
}
Symbol 453 MovieClip [game_over] Frame 60
_root.meniuJoc.removeMovieClip();
stop();
Symbol 458 MovieClip [mensaje_1] Frame 1
var snd_bb = new Sound();
snd_bb.attachSound("Light");
if (_root.SOUNDFX) {
snd_bb.start();
}
Instance of Symbol 452 MovieClip in Symbol 465 MovieClip [Message] Frame 1
on (release) {
}
Symbol 486 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 2
stop();
Symbol 486 MovieClip Frame 3
stop();
Symbol 486 MovieClip Frame 4
stop();
Symbol 486 MovieClip Frame 5
stop();
Symbol 486 MovieClip Frame 6
stop();
Symbol 486 MovieClip Frame 7
stop();
Symbol 489 Button
on (release) {
_root.juego.poner_pausa();
}
Symbol 492 Button
on (release) {
_root.juego.quitar_pausa();
}
Symbol 493 MovieClip Frame 1
stop();
Symbol 496 Button
on (release) {
_root.juego.quitar_sonido();
}
Symbol 499 Button
on (release) {
_root.juego.poner_sonido();
}
Symbol 500 MovieClip Frame 1
stop();
Symbol 501 MovieClip [textos] Frame 1
trace("caleScor: " + this);
Symbol 514 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 523 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 532 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 533 MovieClip [DownArrow] Frame 1
stop();
Symbol 533 MovieClip [DownArrow] Frame 2
stop();
Symbol 533 MovieClip [DownArrow] Frame 3
stop();
Symbol 539 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 548 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 553 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 554 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 562 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 570 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 578 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 579 MovieClip [UpArrow] Frame 1
stop();
Symbol 579 MovieClip [UpArrow] Frame 2
stop();
Symbol 579 MovieClip [UpArrow] Frame 3
stop();
Symbol 581 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 582 MovieClip [FScrollBarSymbol] Frame 1
#initclip 21
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 587 MovieClip Frame 1
stop();
Instance of Symbol 52 MovieClip [FUIComponentSymbol] in Symbol 587 MovieClip Frame 2
//component parameters
onClipEvent (construct) {
}
Instance of Symbol 582 MovieClip [FScrollBarSymbol] in Symbol 587 MovieClip Frame 46
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 613 Button
on (press) {
_root.gotoAndStop("doi");
}
Symbol 615 MovieClip Frame 5
Symbol 690 MovieClip Frame 37
stop();
Symbol 692 MovieClip Frame 1
_root.gotoAndPlay("doi");
Symbol 692 MovieClip Frame 120
_root.gotoAndPlay("doi");
Symbol 693 MovieClip Frame 1
this.gotoAndPlay(187);
Symbol 693 MovieClip Frame 1109
stop();
Symbol 697 MovieClip Frame 11
stop();
Symbol 698 MovieClip Frame 1
stop();
Symbol 703 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?TheLastFight", "_blank");
}
Symbol 705 MovieClip Frame 37
stop();
Symbol 710 MovieClip Frame 25
stop();
Symbol 711 MovieClip Frame 17
var snd_explode = new Sound();
snd_explode.attachSound("EXPLODE.WAV");
if (_root.SOUNDFX) {
snd_explode.start();
}
Symbol 711 MovieClip Frame 19
var snd_EOF = new Sound();
snd_EOF.attachSound("eof.wav");
if (_root.SOUNDFX) {
snd_EOF.start();
}
Symbol 711 MovieClip Frame 85
stop();
Symbol 713 MovieClip Frame 51
stop();
Symbol 718 Button
on (press) {
_parent.gotoAndStop(6);
}
Symbol 719 MovieClip Frame 1
Selection.setFocus("ZPass");
stop();
Symbol 720 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 723 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 724 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 727 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 728 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 731 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 733 Button
on (release) {
_parent.gotoAndStop(6);
}
Symbol 735 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?TheLastFight";
getURL (targetul3, "_blank");
}
Symbol 743 MovieClip Frame 1
function instructionsFunction() {
_parent.butoane._visible = false;
_parent.MM._visible = false;
_parent.instructions._visible = true;
}
stop();
Symbol 745 Button
on (release) {
_parent.butoane._visible = true;
_parent.MM._visible = true;
_parent.instructions._visible = false;
}
Symbol 750 MovieClip Frame 1
stop();
Symbol 750 MovieClip Frame 10
gotoAndPlay (2);
Symbol 753 MovieClip Frame 1
stop();
Symbol 753 MovieClip Frame 10
gotoAndPlay (2);
Symbol 756 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 10
gotoAndPlay (2);
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 10
gotoAndPlay (2);
Symbol 762 MovieClip Frame 1
stop();
Symbol 762 MovieClip Frame 10
gotoAndPlay (2);
Symbol 766 MovieClip Frame 1
stop();
Symbol 766 MovieClip Frame 10
gotoAndPlay (2);
Symbol 769 MovieClip Frame 1
stop();
Symbol 769 MovieClip Frame 10
gotoAndPlay (2);
Symbol 776 MovieClip Frame 1
stop();
Symbol 776 MovieClip Frame 10
gotoAndPlay (2);
Symbol 777 MovieClip Frame 1
stop();
Symbol 778 MovieClip Frame 10
stop();
Instance of Symbol 777 MovieClip "OPTMenu" in Symbol 778 MovieClip Frame 10
onClipEvent (load) {
var C_items = 1;
var N_items = 6;
var Mcontrol = false;
var IDSelect;
var keyListener = new Object();
if (!_root.SCANLINES) {
_parent.OPTMenu.OF1.on_s.gotoAndStop(1);
_parent.OPTMenu.OF1.off_s.gotoAndPlay(2);
} else {
_parent.OPTMenu.OF1.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF1.off_s.gotoAndStop(1);
}
if (!_root.RENDERGFX) {
_parent.OPTMenu.OF2.on_s.gotoAndStop(1);
_parent.OPTMenu.OF2.off_s.gotoAndPlay(2);
} else {
_parent.OPTMenu.OF2.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF2.off_s.gotoAndStop(1);
}
if (!_root.MUSIC) {
_parent.OPTMenu.OF3.on_s.gotoAndStop(1);
_parent.OPTMenu.OF3.off_s.gotoAndPlay(2);
} else {
_parent.OPTMenu.OF3.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF3.off_s.gotoAndStop(1);
}
if (!_root.SOUNDFX) {
_parent.OPTMenu.OF4.on_s.gotoAndStop(1);
_parent.OPTMenu.OF4.off_s.gotoAndPlay(2);
} else {
_parent.OPTMenu.OF4.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF4.off_s.gotoAndStop(1);
}
var snd_select = new Sound();
snd_select.attachSound("select1.wav");
var snd_confirm = new Sound();
snd_confirm.attachSound("sboom.wav");
}
onClipEvent (enterFrame) {
keyListener.onKeyDown = function () {
if (Key.isDown(40)) {
if (_root.SOUNDFX) {
snd_select.start();
}
C_items++;
Mcontrol = false;
} else if (Key.isDown(38)) {
if (_root.SOUNDFX) {
snd_select.start();
}
C_items--;
Mcontrol = false;
} else if (Key.isDown(32) || (Key.isDown(13))) {
if (_root.SOUNDFX) {
snd_confirm.start();
}
switch (C_items) {
case 1 :
if (_root.SCANLINES) {
_root.SCANLINES = false;
_parent.OPTMenu.OF1.on_s.gotoAndStop(1);
_parent.OPTMenu.OF1.off_s.gotoAndPlay(2);
_level0.scan100._visible = false;
} else {
_root.SCANLINES = true;
_parent.OPTMenu.OF1.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF1.off_s.gotoAndStop(1);
_level0.scan100._visible = true;
}
break;
case 2 :
if (_root.RENDERGFX) {
_root.RENDERGFX = false;
_parent.OPTMenu.OF2.on_s.gotoAndStop(1);
_parent.OPTMenu.OF2.off_s.gotoAndPlay(2);
} else {
_root.RENDERGFX = true;
_parent.OPTMenu.OF2.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF2.off_s.gotoAndStop(1);
}
break;
case 3 :
if (_root.MUSIC) {
_root.MUSIC = false;
_parent.OPTMenu.OF3.on_s.gotoAndStop(1);
_parent.OPTMenu.OF3.off_s.gotoAndPlay(2);
stopAllSounds();
} else {
_root.MUSIC = true;
_parent.OPTMenu.OF3.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF3.off_s.gotoAndStop(1);
var _local3 = new Sound();
_local3.attachSound("battleHymn.wav");
if (_root.MUSIC) {
_local3.start();
}
}
break;
case 4 :
if (_root.SOUNDFX) {
_root.SOUNDFX = false;
_parent.OPTMenu.OF4.on_s.gotoAndStop(1);
_parent.OPTMenu.OF4.off_s.gotoAndPlay(2);
} else {
_root.SOUNDFX = true;
_parent.OPTMenu.OF4.on_s.gotoAndPlay(2);
_parent.OPTMenu.OF4.off_s.gotoAndStop(1);
}
break;
case 5 :
Key.removeListener(keyListener);
_parent._parent.nextFrame();
break;
case 6 :
Key.removeListener(keyListener);
_parent._parent.prevFrame();
}
}
};
Key.addListener(keyListener);
if (C_items < 1) {
C_items = 6;
}
if (C_items > 6) {
C_items = 1;
}
switch (C_items) {
case 1 :
if (!Mcontrol) {
this.VI.gotoAndPlay(2);
Mcontrol = true;
}
this.VI2.gotoAndStop(1);
this.AU.gotoAndStop(1);
this.AU2.gotoAndStop(1);
this.KEY.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 2 :
if (!Mcontrol) {
this.VI2.gotoAndPlay(2);
Mcontrol = true;
}
this.VI.gotoAndStop(1);
this.AU.gotoAndStop(1);
this.AU2.gotoAndStop(1);
this.KEY.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 3 :
if (!Mcontrol) {
this.AU.gotoAndPlay(2);
Mcontrol = true;
}
this.VI.gotoAndStop(1);
this.VI2.gotoAndStop(1);
this.AU2.gotoAndStop(1);
this.KEY.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 4 :
if (!Mcontrol) {
this.AU2.gotoAndPlay(2);
Mcontrol = true;
}
this.VI.gotoAndStop(1);
this.VI2.gotoAndStop(1);
this.AU.gotoAndStop(1);
this.KEY.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 5 :
if (!Mcontrol) {
this.KEY.gotoAndPlay(2);
Mcontrol = true;
}
this.VI.gotoAndStop(1);
this.VI2.gotoAndStop(1);
this.AU2.gotoAndStop(1);
this.AU.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 6 :
if (!Mcontrol) {
this.BACK.gotoAndPlay(2);
Mcontrol = true;
}
this.VI.gotoAndStop(1);
this.VI2.gotoAndStop(1);
this.AU2.gotoAndStop(1);
this.KEY.gotoAndStop(1);
this.AU.gotoAndStop(1);
}
}
Symbol 787 MovieClip Frame 1
stop();
Symbol 787 MovieClip Frame 10
gotoAndPlay (2);
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 10
gotoAndPlay (2);
Symbol 793 MovieClip Frame 1
stop();
Symbol 793 MovieClip Frame 10
gotoAndPlay (2);
Symbol 796 MovieClip Frame 1
stop();
Symbol 796 MovieClip Frame 10
gotoAndPlay (2);
Symbol 799 MovieClip Frame 1
stop();
Symbol 799 MovieClip Frame 10
gotoAndPlay (2);
Symbol 802 MovieClip Frame 1
stop();
Symbol 802 MovieClip Frame 10
gotoAndPlay (2);
Symbol 818 MovieClip Frame 10
stop();
Instance of Symbol 816 MovieClip in Symbol 818 MovieClip Frame 10
onClipEvent (load) {
function nombreTecla(tecla_pulsada) {
switch (tecla_pulsada) {
case 39 :
return("RIGHT");
case 38 :
return("UP");
case 40 :
return("DOWN");
case 37 :
return("LEFT");
case 13 :
return("ENTER");
case 8 :
return("BACK SPACE");
case 17 :
return("CONTROL");
case 18 :
return("ALT GR");
case 16 :
return("SHIFT");
case 20 :
return("CAPS SHIFT");
case 9 :
return("TAB");
case 36 :
return("START");
case 32 :
return("SPACE");
case 33 :
return("PAGE UP");
case 34 :
return("PAGE DOWN");
case 35 :
return("END");
case 45 :
return("INSERT");
case 46 :
return("DEL");
case 65 :
return("A");
case 66 :
return("B");
case 67 :
return("C");
case 68 :
return("D");
case 69 :
return("E");
case 70 :
return("F");
case 71 :
return("G");
case 72 :
return("H");
case 73 :
return("I");
case 74 :
return("J");
case 75 :
return("K");
case 76 :
return("L");
case 77 :
return("M");
case 78 :
return("N");
case 79 :
return("O");
case 80 :
return("P");
case 81 :
return("Q");
case 82 :
return("R");
case 83 :
return("S");
case 84 :
return("T");
case 85 :
return("U");
case 86 :
return("V");
case 87 :
return("W");
case 88 :
return("X");
case 89 :
return("Y");
case 90 :
return("Z");
case 48 :
return("0");
case 49 :
return("1");
case 50 :
return("2");
case 51 :
return("3");
case 52 :
return("4");
case 53 :
return("5");
case 54 :
return("6");
case 55 :
return("7");
case 56 :
return("8");
case 57 :
return("9");
}
return(chr(tecla_pulsada));
}
var C_items = 1;
var N_items = 14;
var Mcontrol = false;
var GETKEY = false;
var IDSelect;
var keyListener = new Object();
var inputlisten = new Object();
var snd_select = new Sound();
snd_select.attachSound("select1.wav");
var snd_confirm = new Sound();
snd_confirm.attachSound("sboom.wav");
P1_UPV = nombreTecla(_root.P1_UP);
P1_DOWNV = nombreTecla(_root.P1_DOWN);
P1_RIGHTV = nombreTecla(_root.P1_RIGHT);
P1_LEFTV = nombreTecla(_root.P1_LEFT);
P1_JUMPV = nombreTecla(_root.P1_JUMP);
P1_FIREV = nombreTecla(_root.P1_FIRE);
P2_UPV = nombreTecla(_root.P2_UP);
P2_DOWNV = nombreTecla(_root.P2_DOWN);
P2_RIGHTV = nombreTecla(_root.P2_RIGHT);
P2_LEFTV = nombreTecla(_root.P2_LEFT);
P2_JUMPV = nombreTecla(_root.P2_JUMP);
P2_FIREV = nombreTecla(_root.P2_FIRE);
}
onClipEvent (enterFrame) {
keyListener.onKeyDown = function () {
if (Key.isDown(40)) {
if (_root.SOUNDFX) {
snd_select.start();
}
C_items++;
Mcontrol = false;
} else if (Key.isDown(38)) {
if (_root.SOUNDFX) {
snd_select.start();
}
C_items--;
Mcontrol = false;
} else if (Key.isDown(32) || (Key.isDown(13))) {
if (_root.SOUNDFX) {
snd_confirm.start();
}
switch (C_items) {
case 1 :
_root.P1_UP = 0;
P1_UPV = "";
GETKEY = true;
break;
case 2 :
_root.P1_DOWN = 0;
P1_DOWNV = "";
GETKEY = true;
break;
case 3 :
_root.P1_RIGHT = 0;
P1_RIGHTV = "";
GETKEY = true;
break;
case 4 :
_root.P1_LEFT = 0;
P1_LEFTV = "";
GETKEY = true;
break;
case 5 :
_root.P1_JUMP = 0;
P1_JUMPV = "";
GETKEY = true;
break;
case 6 :
_root.P1_FIRE = 0;
P1_FIREV = "";
GETKEY = true;
break;
case 7 :
_root.P2_UP = 0;
P2_UPV = "";
GETKEY = true;
break;
case 8 :
_root.P2_DOWN = 0;
P2_DOWNV = "";
GETKEY = true;
break;
case 9 :
_root.P2_RIGHT = 0;
P2_RIGHTV = "";
GETKEY = true;
break;
case 10 :
_root.P2_LEFT = 0;
P2_LEFTV = "";
GETKEY = true;
break;
case 11 :
_root.P2_JUMP = 0;
P2_JUMPV = "";
GETKEY = true;
break;
case 12 :
_root.P2_FIRE = 0;
P2_FIREV = "";
GETKEY = true;
break;
case 13 :
Key.removeListener(keyListener);
_parent._parent.gotoAndStop(1);
break;
case 14 :
Key.removeListener(keyListener);
_parent._parent.gotoAndStop(4);
}
}
};
if (GETKEY) {
Key.removeListener(keyListener);
Key.addListener(inputlisten);
inputlisten.onKeyDown = function () {
GETKEY = false;
};
inputlisten.onKeyUp = function () {
if (C_items == 1) {
_root.P1_UP = Key.getCode();
P1_UPV = nombreTecla(_root.P1_UP);
}
if (C_items == 2) {
_root.P1_DOWN = Key.getCode();
P1_DOWNV = nombreTecla(_root.P1_DOWN);
}
if (C_items == 3) {
_root.P1_RIGHT = Key.getCode();
P1_RIGHTV = nombreTecla(_root.P1_RIGHT);
}
if (C_items == 4) {
_root.P1_LEFT = Key.getCode();
P1_LEFTV = nombreTecla(_root.P1_LEFT);
}
if (C_items == 5) {
_root.P1_JUMP = Key.getCode();
P1_JUMPV = nombreTecla(_root.P1_JUMP);
}
if (C_items == 6) {
_root.P1_FIRE = Key.getCode();
P1_FIREV = nombreTecla(_root.P1_FIRE);
}
if (C_items == 7) {
_root.P2_UP = Key.getCode();
P2_UPV = nombreTecla(_root.P2_UP);
}
if (C_items == 8) {
_root.P2_DOWN = Key.getCode();
P2_DOWNV = nombreTecla(_root.P2_DOWN);
}
if (C_items == 9) {
_root.P2_RIGHT = Key.getCode();
P2_RIGHTV = nombreTecla(_root.P2_RIGHT);
}
if (C_items == 10) {
_root.P2_LEFT = Key.getCode();
P2_LEFTV = nombreTecla(_root.P2_LEFT);
}
if (C_items == 11) {
_root.P2_JUMP = Key.getCode();
P2_JUMPV = nombreTecla(_root.P2_JUMP);
}
if (C_items == 12) {
_root.P2_FIRE = Key.getCode();
P2_FIREV = nombreTecla(_root.P2_FIRE);
}
Key.removeListener(inputlisten);
Key.addListener(keyListener);
};
} else {
Key.addListener(keyListener);
}
if (C_items < 1) {
C_items = 14;
}
if (C_items > 14) {
C_items = 1;
}
switch (C_items) {
case 1 :
if (!Mcontrol) {
this.KEY1.gotoAndPlay(2);
Mcontrol = true;
}
this.BACK.gotoAndStop(1);
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 2 :
if (!Mcontrol) {
this.KEY2.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY1.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 3 :
if (!Mcontrol) {
this.KEY3.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 4 :
if (!Mcontrol) {
this.KEY4.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 5 :
if (!Mcontrol) {
this.KEY5.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 6 :
if (!Mcontrol) {
this.KEY6.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 7 :
if (!Mcontrol) {
this.KEY7.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 8 :
if (!Mcontrol) {
this.KEY8.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 9 :
if (!Mcontrol) {
this.KEY9.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 10 :
if (!Mcontrol) {
this.KEY10.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 11 :
if (!Mcontrol) {
this.KEY11.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.BACKY.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 12 :
if (!Mcontrol) {
this.KEY12.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 13 :
if (!Mcontrol) {
this.KEY13.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY1.gotoAndStop(1);
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
this.KEY14.gotoAndStop(1);
break;
case 14 :
if (!Mcontrol) {
this.KEY14.gotoAndPlay(2);
Mcontrol = true;
}
this.KEY1.gotoAndStop(1);
this.KEY2.gotoAndStop(1);
this.KEY3.gotoAndStop(1);
this.KEY1.gotoAndStop(1);
this.KEY5.gotoAndStop(1);
this.KEY6.gotoAndStop(1);
this.KEY7.gotoAndStop(1);
this.KEY8.gotoAndStop(1);
this.KEY9.gotoAndStop(1);
this.KEY10.gotoAndStop(1);
this.KEY11.gotoAndStop(1);
this.KEY12.gotoAndStop(1);
this.KEY13.gotoAndStop(1);
this.KEY4.gotoAndStop(1);
}
}
Symbol 821 MovieClip Frame 1
stop();
Symbol 821 MovieClip Frame 10
gotoAndPlay (2);
Symbol 825 MovieClip Frame 1
stop();
Symbol 825 MovieClip Frame 10
gotoAndPlay (2);
Symbol 828 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 10
gotoAndPlay (2);
Symbol 831 MovieClip Frame 1
stop();
Symbol 831 MovieClip Frame 10
gotoAndPlay (2);
Symbol 833 Button
on (press) {
_parent.gotoAndStop(3);
}
Symbol 834 MovieClip Frame 1
gotoAndStop (3);
Symbol 834 MovieClip Frame 2
stop();
Instance of Symbol 719 MovieClip "Passwd" in Symbol 834 MovieClip Frame 2
onClipEvent (load) {
var keyListener = new Object();
var snd_select = new Sound();
snd_select.attachSound("select1.wav");
var snd_confirm = new Sound();
snd_confirm.attachSound("sboom.wav");
}
onClipEvent (enterFrame) {
Key.addListener(keyListener);
keyListener.onKeyDown = function () {
if (Key.isDown(32) || (Key.isDown(13))) {
if (clave == "19091") {
_root.LEVEL = 1;
} else if (clave == "88912") {
_root.LEVEL = 2;
} else if (clave == "32323") {
_root.LEVEL = 3;
} else if (clave == "57443") {
_root.LEVEL = 4;
} else if (clave == "15255") {
_root.LEVEL = 5;
} else if (clave == "67611") {
_root.LEVEL = 6;
} else if (clave == "99054") {
_root.LEVEL = 7;
} else if (clave == "71347") {
_root.LEVEL = 8;
} else if (clave == "21336") {
_root.LEVEL = 9;
} else if (clave == "54321") {
_root.CHEAT = true;
_root.cheattext._alpha = 60;
} else if (clave == "12345") {
_root.CHEAT = false;
_root.cheattext._alpha = 0;
} else {
_root.LEVEL = 1;
}
if (_root.SOUNDFX) {
snd_confirm.start();
}
Key.removeListener(keyListener);
_parent.nextFrame();
} else if (_root.SOUNDFX) {
snd_select.start();
}
};
}
Symbol 834 MovieClip Frame 3
stop();
Instance of Symbol 743 MovieClip "butoane" in Symbol 834 MovieClip Frame 3
//component parameters
onClipEvent (construct) {
wynume = "TheLastFight";
wyculoare = 13158;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Jos";
wyinstructions = true;
}
Instance of Symbol 747 MovieClip "instructions" in Symbol 834 MovieClip Frame 3
onClipEvent (load) {
this._visible = false;
}
Symbol 834 MovieClip Frame 4
stop();
Instance of Symbol 832 MovieClip "MM" in Symbol 834 MovieClip Frame 6
onClipEvent (load) {
stopAllSounds();
var C_items = 1;
var N_items = 5;
var Mcontrol = false;
var IDSelect;
var keyListener = new Object();
var snd_select = new Sound();
snd_select.attachSound("select1.wav");
var snd_confirm = new Sound();
snd_confirm.attachSound("sboom.wav");
var snd_music = new Sound();
snd_music.attachSound("battleHymn.wav");
snd_music.setVolume(80);
if (_root.MUSIC) {
snd_music.start();
}
}
onClipEvent (enterFrame) {
keyListener.onKeyDown = function () {
if (Key.isDown(40)) {
if (_root.SOUNDFX) {
snd_select.start();
}
C_items++;
Mcontrol = false;
} else if (Key.isDown(38)) {
if (_root.SOUNDFX) {
snd_select.start();
}
C_items--;
Mcontrol = false;
} else if (Key.isDown(32) || (Key.isDown(13))) {
if (_root.SOUNDFX) {
snd_confirm.start();
}
switch (C_items) {
case 1 :
_root.gotoAndStop("trei");
break;
case 2 :
_root.gotoAndStop("patru");
break;
case 3 :
Key.removeListener(keyListener);
_parent.gotoAndStop();
_parent.gotoAndStop(5);
case 4 :
Key.removeListener(keyListener);
_parent.gotoAndStop(2);
break;
case 5 :
Key.removeListener(keyListener);
_parent.gotoAndStop(1);
}
}
};
Key.addListener(keyListener);
if (C_items < 1) {
C_items = 5;
}
if (C_items > 5) {
C_items = 1;
}
switch (C_items) {
case 1 :
if (!Mcontrol) {
this.P1.gotoAndPlay(2);
Mcontrol = true;
}
this.BACK.gotoAndStop(1);
this.P2.gotoAndStop(1);
this.PASS.gotoAndStop(1);
this.OPT.gotoAndStop(1);
break;
case 2 :
if (!Mcontrol) {
this.P2.gotoAndPlay(2);
Mcontrol = true;
}
this.P1.gotoAndStop(1);
this.PASS.gotoAndStop(1);
this.OPT.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 3 :
if (!Mcontrol) {
this.PASS.gotoAndPlay(2);
Mcontrol = true;
}
this.P1.gotoAndStop(1);
this.P2.gotoAndStop(1);
this.OPT.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 4 :
if (!Mcontrol) {
this.OPT.gotoAndPlay(2);
Mcontrol = true;
}
this.P1.gotoAndStop(1);
this.P2.gotoAndStop(1);
this.PASS.gotoAndStop(1);
this.BACK.gotoAndStop(1);
break;
case 5 :
if (!Mcontrol) {
this.BACK.gotoAndPlay(2);
Mcontrol = true;
}
this.P1.gotoAndStop(1);
this.P2.gotoAndStop(1);
this.PASS.gotoAndStop(1);
this.OPT.gotoAndStop(1);
}
}
Symbol 839 Button
on (keyPress "p") {
if (_root.pause == false) {
_parent.gotoAndPlay(2);
_root.pause = true;
} else {
_parent.gotoAndStop(1);
_root.pause = false;
}
}
Symbol 842 Button
on (press) {
_parent.play();
}
Symbol 861 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 861 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 861 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 861 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 861 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 861 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 861 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 861 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 861 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 861 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 874 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 875 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 876 Button
on (release) {
_root.gotoAndPlay(1);
}
Symbol 877 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 878 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 879 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 892 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 939 Button
on (release) {
_parent.MAIN.removeMovieClip("mensaje2");
_parent.mainMenuFunction();
}
Symbol 954 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 954 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 954 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 954 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 954 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 954 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 954 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 954 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 956 MovieClip Frame 1
function pauseFunction() {
}
function soundFunction() {
}
function mainMenuFunction() {
_root.gotoAndStop("coperta");
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 956 MovieClip Frame 10
stop();
Symbol 972 MovieClip Frame 536
stop();
Symbol 977 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 984 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 1289 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 582 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 1289 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 1295 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 1311 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 1317 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 1321 MovieClip Frame 1
stop();
Symbol 1321 MovieClip Frame 9
stop();
Symbol 1321 MovieClip Frame 22
stop();
Symbol 1321 MovieClip Frame 34
var my_date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 1321 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}