Frame 1
_root.attachMovie("mascara", "mascara", 133);
_root.setMask(_root.mascara);
idi = id_instalacion;
idu = id_usuario;
idp = id_partido;
idc = id_contenido;
url_ret = url_retorno;
url_jug = url_juegos;
puntos1 = 0;
mejorPuntaje = 0;
var xml = new XML();
xml.ignoreWhite = true;
xml.parseXML("<file><cargandoParametros varName=\"cargarParametros_txt\" texto=\"[Cargando Parametros]\"></cargandoParametros><jugar varName=\"jugar_txt\" texto=\"Jugar\"></jugar><instrucciones varName=\"instrucciones_txt\" texto=\"Instrucciones\"></instrucciones><volver varName=\"volver_txt\" texto=\"Volver\"></volver><salir varName=\"salir_txt\" texto=\"Salir\"></salir><volverAJugar varName=\"volver_a_jugar_txt\" texto=\"Volver a jugar\"></volverAJugar><suMejorPuntuacion varName=\"su_mejor_puntuacion_txt\" texto=\"Su mejor puntuacion hasta ahora\"></suMejorPuntuacion><calidad varName=\"calidad_txt\" texto=\"Calidad\"></calidad><baja varName=\"baja_txt\" texto=\"Baja\"></baja><alta varName=\"alta_txt\" texto=\"Alta\"></alta><media varName=\"media_txt\" texto=\"Media\"></media><musica varName=\"musica_txt\" texto=\"Musica\"></musica><volverAlJuego varName=\"volver_al_juego_txt\" texto=\"Volver al juego\"></volverAlJuego><opciones varName=\"opciones_txt\" texto=\"Opciones\"></opciones><pausa varName=\"pausa_txt\" texto=\"Pausa\"></pausa><nivel varName=\"nivel_txt\" texto=\"Nivel\"></nivel><un_jugador varName=\"un_jugador_txt\" texto=\"1 JUGADOR\"></un_jugador><dos_jugadores varName=\"un_jugadores_txt\" texto=\"2 JUGADORES\"></dos_jugadores><destruye varName=\"destruye_txt\" texto=\"Destruye los reinos enemigos\"></destruye><comenzar0 varName=\"comenzar_txt\" texto=\"Comenzar\"></comenzar0><generando varName=\"generando_txt\" texto=\"Generando escenario\"></generando><puntos_2_p varName=\"puntos_2_p_txt\" texto=\"Puntos:\"></puntos_2_p><ayuda1 varName=\"ayuda1_txt\" texto=\"Tu objetivo es destruir los reinos enemigos , mientras mantienes a salvo tu comandante y tu reino. De esta forma sumar\u00E1s puntos.\"></ayuda1><ayuda2 varName=\"ayuda2_txt\" texto=\"Puedes seleccionar tus unidades individualmente clickeando sobre ellas, o hacerlo de forma m\u00FAltiple arrastrando el \u00E1rea de selecci\u00F3n al clickear.\"></ayuda2><ayuda3 varName=\"ayuda3_txt\" texto=\"Ya con una o m\u00E1s unidades seleccionanas, puedes darles \u00F3rdenes, como moverse o atacar, clickeando sobre el lugar u objetivo. \"></ayuda3><ayuda4 varName=\"ayuda4_txt\" texto=\"Tambi\u00E9n cuentas con una unidad especial, el comandante, que se mueve con las teclas de direcci\u00F3n y ataca con barra espaciadora.\"></ayuda4><ayuda5 varName=\"ayuda5_txt\" texto=\"Cuando tengas una unidad da\u00F1ada puedes curarla coloc\u00E1ndola frente a tu enfermer\u00EDa para que recobre su energ\u00EDa.\"></ayuda5><estado varName=\"estado_txt\" texto=\"Estado\"></estado><ayuda6 varName=\"ayuda6_txt\" texto=\"Si destrulles la mayor parte de un reino. Sus unidades pasar\u00E1n a formar parte de tu ej\u00E9rcito.\"></ayuda6></file>");
descargarVar = function (xml) {
file = xml.firstChild;
vars = file.childNodes;
var _local2 = 0;
while (_local2 < vars.length) {
_root[vars[_local2].attributes.varName] = vars[_local2].attributes.texto;
_local2++;
}
trace(_root.ayuda1_txt);
};
descargarVar(xml);
stop();
Frame 12
stop();
Instance of Symbol 1010 MovieClip in Frame 12
onClipEvent (load) {
_root.partido = false;
intervalo = setInterval(function () {
_root.id_partido = "";
clearInterval(this);
}, 5000);
}
onClipEvent (enterFrame) {
if (_root.id_partido > 0) {
_root.partido = true;
}
if ((typeof(_root.id_partido) != "undefined") || (_root.id_partido > 0)) {
clearInterval(intervalo);
_root.play();
}
}
Frame 17
function segundos() {
clearInterval(aux);
nextFrame();
play();
}
stop();
var win = false;
aux = setInterval(segundos, 2000);
stop();
Frame 22
function showMenu() {
menu._visible = true;
menu._alpha = menu._alpha + 10;
if (menu._alpha == 100) {
clearInterval(intShowMenu);
}
updateAfterEvent();
}
stop();
menu._alpha = 0;
menu._visible = false;
intShowMenu = setInterval(showMenu, 10);
Key.addListener(_root);
_root._focusrect = false;
_root.boton_index = 0;
_root.boton_name = new Array();
_root.boton_name.splice(0);
_root.boton_cant = 2;
_root.boton_name.push("_root.menu.game_btn");
_root.boton_name.push("_root.menu.instrucciones_btn");
_root.onKeyUp = function () {
if ((Key.getCode() == 38) || (Key.getCode() == 37)) {
aux = _root.boton_index;
_root.boton_index++;
if (_root.boton_index >= _root.boton_cant) {
_root.boton_index = 0;
}
Selection.setFocus(_root.boton_name[_root.boton_index]);
aux_btn = eval (Selection.getFocus());
if (!aux_btn.enabled) {
Selection.setFocus(_root.boton_name[aux]);
_root.boton_index = aux;
}
}
if ((Key.getCode() == 40) || (Key.getCode() == 39)) {
aux = _root.boton_index;
_root.boton_index--;
if (_root.boton_index < 0) {
_root.boton_index = _root.boton_cant - 1;
}
Selection.setFocus(_root.boton_name[_root.boton_index]);
aux_btn = eval (Selection.getFocus());
if (!aux_btn.enabled) {
Selection.setFocus(_root.boton_name[aux]);
_root.boton_index = aux;
}
}
if (Key.getCode() == 13) {
aux = eval (Selection.getFocus());
aux.onRelease();
}
};
_root.menu.game_btn.onRelease = function () {
_root.gotoAndStop("pregame");
};
_root.menu.instrucciones_btn.onRelease = function () {
_root.gotoAndStop("ayuda");
};
Frame 28
stop();
_root.boton_name.splice(0);
_root.boton_cant = 3;
_root.boton_name.push("_root.ayuda.volver_btn");
_root.boton_name.push("_root.ayuda.prev_btn");
_root.boton_name.push("_root.ayuda.next_btn");
_root.ayuda.volver_btn.onRelease = function () {
_root.gotoAndStop("menu");
};
_root.ayuda.next_btn.onRelease = function () {
_root.ayuda.nextFrame();
};
_root.ayuda.prev_btn.onRelease = function () {
_root.ayuda.prevFrame();
};
Selection.setFocus(_root.boton_name[0]);
stop();
Frame 37
stop();
Frame 45
function clearScreen() {
clearInterval(inter0);
Consola.m_stop();
_root.puntos = general.game.puntos;
_root.general.removeMovieClip();
_root.gotoAndStop("endOp");
}
stop();
_root.attachMovie("General", "general", 30);
go = function () {
if (!general.game.isEnd()) {
general.game.actualizar();
} else {
_root.win = general.game.playerWin();
clearScreen();
}
updateAfterEvent();
};
inter0 = setInterval(go, 15);
Frame 49
if (_root.partido) {
_root.gotoAndStop("gameOver2");
} else {
_root.gotoAndStop("gameOver1");
}
stop();
Frame 55
stop();
if (_root.win) {
_root.resultado.text = "You win";
} else {
_root.resultado.text = "You lost";
}
_root.boton_name.splice(0);
_root.boton_cant = 1;
_root.boton_name.push("_root.menu.salir_btn");
_root.menu.salir_btn.onRelease = function () {
id_instalacion = _root.idi;
id_usuario = _root.idu;
id_partido = _root.idp;
id_contenido = _root.idc;
puntos1 = _root.mejorPuntaje;
url_retorno = _root.url_ret;
getURL (url_retorno, "_self", "POST");
};
Frame 63
stop();
_root.boton_name.splice(0);
_root.boton_cant = 2;
_root.boton_name.push("_root.menu.salir_btn");
_root.boton_name.push("_root.menu.volver_btn");
_root.menu.salir_btn.onRelease = function () {
id_instalacion = _root.idi;
id_usuario = _root.idu;
id_partido = _root.idp;
id_contenido = _root.idc;
puntos1 = _root.mejorPuntaje;
url_retorno = _root.url_ret;
getURL (url_retorno, "_self", "POST");
};
_root.menu.volver_btn.onRelease = function () {
gotoAndStop ("menu");
_root.puntos = 0;
_root.puntos1 = 0;
};
trace(_root.puntos);
trace(_root.mejorPuntaje);
if (_root.mejorPuntaje < _root.puntos) {
_root.mejorPuntaje = _root.puntos;
}
Symbol 6 MovieClip Frame 1
aux = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
aux = Math.round(aux);
por.text = aux;
Symbol 6 MovieClip Frame 2
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_root.gotoAndPlay("param");
} else {
gotoAndPlay (1);
}
Symbol 1072 MovieClip [__Packages.Game] Frame 0
class Game extends MovieClip
{
var com, cureZone, isoM, shot, selects, flechaC, fondo, limL, limR, limU, limD, tile, prof, tileW, tileH, map, estructura, zonas, _y, _x, caballoBig1, localToGlobal, attachMovie, select, globalToLocal, selector, mouse1, _xmouse, _ymouse, _parent;
function Game () {
super();
}
function refleshSoldados() {
com[0].cleanArray();
com[1].cleanArray();
com[3].cleanArray();
com[2].cleanArray();
trace(("Yo tengo " + com[0].soldados.length) + " soldados.");
}
function getIntervals() {
if (timeToReflesh == 0) {
timeToReflesh = timeToRefleshD;
refleshSoldados();
} else {
timeToReflesh--;
}
}
function deleteCure(team0) {
this[(("tile_" + cureZone[team0 - 1].x) + "_") + cureZone[team0 - 1].y].bandera.removeMovieClip();
cureZone[team0 - 1] = null;
}
function onLoad() {
puntos = 0;
getIntervals();
cureZone = new Array();
com = new Array();
var _local3 = 0;
while (_local3 < 4) {
var _local5 = new Commander(this, _local3);
com.push(_local5);
_local3++;
}
isoM = new Array();
shot = new Array();
selects = new Array();
flechaC = new Array();
fondo._x = fondo._x - 690;
fondo._y = fondo._y + 330;
limL = 680;
limR = 110;
limU = -800;
limD = -330;
tile = new Array();
prof = 30;
tileW = 30;
tileH = 30;
var _local4 = new Mapa();
map = _local4.tile;
estructura = new Array();
zonas = new Array();
_local3 = 0;
while (_local3 < 4) {
_local4 = new Object();
_local4.x = 0;
_local4.y = 0;
zonas.push(_local4);
_local4 = new Object();
_local4.x = 0;
_local4.y = 0;
cureZone.push(_local4);
_local3++;
}
buildMap();
_local3 = 0;
while (_local3 < 4) {
var _local2 = 0;
while (_local2 < com[_local3].torretas.length) {
if (com[_local3].torretas[_local2]._name != null) {
} else {
com[_local3].torretas.splice(_local2, 1);
_local2--;
}
_local2++;
}
_local3++;
}
_y = -330;
_x = 110;
Consola.m_play("music0");
}
function foundHero() {
if (isFoundHero) {
var _local2 = new Object();
_local2.x = caballoBig1._x;
_local2.y = caballoBig1._y;
localToGlobal(_local2);
if (_local2.x < 270) {
if (Math.abs(_local2.x - 270) > 80) {
_x = _x + 15;
} else {
_x = _x + 5;
}
} else if (_local2.x > 310) {
if (Math.abs(_local2.x - 270) > 80) {
_x = _x - 15;
} else {
_x = _x - 5;
}
}
if (_local2.y < 220) {
if (Math.abs(_local2.y - 220) > 80) {
_y = _y + 15;
} else {
_y = _y + 2.5;
}
} else if (_local2.y > 260) {
if (Math.abs(_local2.y - 220) > 80) {
_y = _y - 15;
} else {
_y = _y - 2.5;
}
}
}
}
function buildMap() {
var _local5 = 0;
while (_local5 < map.length) {
tile[_local5] = new Array();
var _local4 = 0;
while (_local4 < map[_local5].length) {
if (map[_local5][_local4] != 1) {
if ((map[_local5][_local4] != 2) && (map[_local5][_local4] != 3)) {
attachMovie("tile", (("tile_" + _local5) + "_") + _local4, prof);
} else {
this[(("tile_" + _local5) + "_") + _local4] = new TileEmpty((("tile_" + _local5) + "_") + _local4);
}
var _local2 = this[(("tile_" + _local5) + "_") + _local4];
_local2.x = _local5;
_local2.y = _local4;
_local2.xIso = _local5 - _local4;
_local2.yIso = _local4 + _local5;
_local2._x = _local2.xIso * tileW;
_local2._y = (_local2.yIso * tileW) / 2;
if ((map[_local5][_local4] % 100) == 99) {
_local2.sprite.gotoAndStop(2);
zonas[Math.round(map[_local5][_local4] / 100) - 2].x = _local2.x;
zonas[Math.round(map[_local5][_local4] / 100) - 2].y = _local2.y;
} else if ((map[_local5][_local4] % 100) == 88) {
_local2.sprite.gotoAndStop(33);
_local2.sprite.bandera.gotoAndStop(Math.floor(map[_local5][_local4] / 100));
cureZone[Math.round(map[_local5][_local4] / 100) - 2].x = _local2.x;
cureZone[Math.round(map[_local5][_local4] / 100) - 2].y = _local2.y;
} else {
_local2.tipo = map[_local5][_local4] % 100;
_local2.sprite.gotoAndStop(map[_local5][_local4] % 100);
}
_local2.equipo = Math.floor(map[_local5][_local4] / 100);
_local2.sprite.obj.team = _local2.equipo;
_local2.sprite.obj.barraGeneral.gotoAndStop(_local2.equipo);
if (((_local2.sprite._currentframe > 22) || (_local2.sprite._currentframe < 8)) && ((_local2.sprite._currentframe > 3) && (_local2.sprite._currentframe != 32))) {
com[_local2.sprite.obj.team - 1].torretas.push(_local2.sprite.obj);
}
if (_local2._height < (tileW + 4)) {
_local2.prof = (_local2._y * 300) + _local2._x;
} else {
_local2.prof = ((_local2._y + tileW) * 300) + (_local2._x + 15);
}
_local2.swapDepths(_local2.prof);
var _local7 = map[_local5][_local4] % 100;
if ((_local7 > 22) || ((_local7 < 8) && (_local7 > 3))) {
estructura.push(_local2);
}
prof++;
}
_local4++;
}
_local5++;
}
var _local8 = new MapaMovil();
var _local6 = _local8.tile;
_local5 = 0;
while (_local5 < _local6.length) {
var _local4 = 0;
while (_local4 < _local6[_local5].length) {
if (_local6[_local5][_local4] > 10) {
if ((_local6[_local5][_local4] % 10) == 2) {
var _local3 = "catapulta" + prof;
attachMovie("Catapulta" + Math.round(_local6[_local5][_local4] / 10), _local3, prof);
} else if ((_local6[_local5][_local4] % 10) == 1) {
var _local3 = "soldado" + prof;
attachMovie("Soldado" + Math.round(_local6[_local5][_local4] / 10), _local3, prof);
} else if ((_local6[_local5][_local4] % 10) == 3) {
var _local3 = "caballo" + prof;
attachMovie("caballo", _local3, prof);
} else {
var _local3 = "caballoBig" + Math.round(_local6[_local5][_local4] / 10);
attachMovie("caballoBig", _local3, prof);
this[_local3].diamante.gotoAndStop(Math.round(_local6[_local5][_local4] / 10));
if (Math.round(_local6[_local5][_local4] / 10) != 1) {
this[_local3].timeOriginal = 32;
this[_local3].timeToShot = 32;
} else {
this[_local3].isNew = false;
}
}
this[_local3].x = _local5 * tileW;
this[_local3].y = _local4 * tileW;
this[_local3].render();
this[_local3].team = Math.round(_local6[_local5][_local4] / 10);
this[_local3].dist.gotoAndStop(this[_local3].team);
this[_local3].barraGeneral.gotoAndStop(this[_local3].team);
com[this[_local3].team - 1].soldados.push(this[_local3]);
isoM.push(this[_local3]);
prof++;
}
_local4++;
}
_local5++;
}
attachMovie("mouse", "mouse1", 10);
select = isoM[0];
}
function chauTiles(left) {
var _local5 = new Object();
_local5.x = -(2 * tileW);
_local5.y = 600;
globalToLocal(_local5);
var _local3 = Math.round(-(_local5.x / tileW));
var _local2 = -5;
while (_local2 < 35) {
this[(("tile_" + _local2) + "_") + (_local2 + _local3)].sprite._visible = !left;
this[(("tile_" + (_local2 + 5)) + "_") + ((_local2 + _local3) - 28)].sprite._visible = left;
_local2++;
}
}
function getColum(y, x) {
var _local2 = new Object();
_local2.xtile = ((2 * y) - x) / 2;
_local2.ytile = x + _local2.ytile;
_local2.ytile = Math.round(_local2.ytile / tileW);
_local2.xtile = Math.round(_local2.xtile / tileW);
return(_local2);
}
function getTile(x, y) {
var _local2 = Math.round(y / tileW);
var _local3 = Math.round(x / tileW);
return(this[(("tile_" + _local3) + "_") + _local2]);
}
function gets() {
if (Key.isDown(32)) {
caballoBig1.manualHit(this);
} else {
var _local2 = new Object();
_local2.x = caballoBig1._x;
_local2.y = caballoBig1._y;
localToGlobal(_local2);
if (Key.isDown(39)) {
isFoundHero = true;
caballoBig1.movRight(this);
} else if (Key.isDown(37)) {
isFoundHero = true;
caballoBig1.movLeft(this);
}
if (Key.isDown(38)) {
isFoundHero = true;
caballoBig1.movUp(this);
} else if (Key.isDown(40)) {
isFoundHero = true;
caballoBig1.movDown(this);
}
}
if (_x > limL) {
_x = limL;
}
if (_y > limD) {
_y = limD;
}
if (_y < limU) {
_y = limU;
}
if (_x < limR) {
_x = limR;
}
}
function moverEscenario() {
if (!isFoundHero) {
if (_root._xmouse > 535) {
_x = _x - 20;
if (_x < limR) {
_x = limR;
}
}
if (_root._xmouse < 45) {
_x = _x + 20;
if (_x > limL) {
_x = limL;
}
}
if (_root._ymouse > 395) {
_y = _y - 20;
if (_y < limU) {
_y = limU;
}
}
if (_root._ymouse < 25) {
_y = _y + 20;
if (_y > limD) {
_y = limD;
}
}
}
}
function onMouseUp() {
if (selector._width < 20) {
var _local3 = this[(("tile_" + mouse1.xTile) + "_") + mouse1.yTile];
if (_local3.char.team == 1) {
if (selects[0] == _local3.char) {
selects.splice(0);
selector.clear();
return(undefined);
}
selects.splice(0);
selects.push(_local3.char);
selector.clear();
return(undefined);
}
if (_local3.isWalk(select)) {
var _local2 = 0;
while (_local2 < selects.length) {
selects[_local2].targetFije = null;
selects[_local2].moverHacia(this, mouse1.xTile, mouse1.yTile);
_local2++;
}
} else if (_local3.equipo != 1) {
var _local2 = 0;
while (_local2 < selects.length) {
selects[_local2].atacar(this, mouse1.xTile, mouse1.yTile);
selects[_local2].targetFijo = _local3.char;
trace("Target FIjo");
_local2++;
}
}
selector.clear();
return(undefined);
}
selects.splice(0);
var _local2 = 0;
while (_local2 < isoM.length) {
if (isoM[_local2].team == 1) {
if (isoM[_local2].hitTest(selector)) {
selects.push(isoM[_local2]);
}
}
_local2++;
}
selector.clear();
}
function showMousePos() {
var _local4 = ((2 * _ymouse) - _xmouse) / 2;
var _local5 = _xmouse + _local4;
var _local2 = Math.round(_local4 / tileW);
var _local3 = Math.round(_local5 / tileW) - 1;
mouse1._x = (_local3 - _local2) * tileW;
mouse1._y = (((_local3 + _local2) * tileW) / 2) + 4;
mouse1.getTile(_local3, _local2);
}
function actualizar() {
var _local3 = 0;
while (_local3 < 4) {
com[_local3].actualizar(this);
_local3++;
}
var _local4 = 0;
while (_local4 < estructura.length) {
estructura[_local4].sprite.obj.actualizar(this);
_local4++;
}
var _local2 = 0;
while (_local2 < isoM.length) {
if (isoM[_local2]._name != null) {
isoM[_local2].actualizar(this);
} else {
isoM.splice(_local2, 1);
_local2--;
}
_local2++;
}
var _local5 = 0;
while (_local5 < shot.length) {
if (!shot[_local5].actualizar(this)) {
shot.splice(_local5, 1);
_local5--;
}
_local5++;
}
_local5 = 0;
while (_local5 < selects.length) {
selects[_local5].icono.gotoAndStop(2);
_local5++;
}
foundHero();
actCureZone();
showMousePos();
moverEscenario();
gets();
actText();
getIntervals();
}
function actText() {
_root.cantSol1 = com[0].soldados.length;
_root.cantSol2 = com[1].soldados.length;
_root.cantSol3 = com[2].soldados.length;
_root.cantSol4 = com[3].soldados.length;
_parent.energiaBig.text = Math.round((caballoBig1.energia / 450) * 100);
}
function actCureZone() {
var _local2 = 0;
while (_local2 < 4) {
var _local3 = this[(("tile_" + cureZone[_local2].x) + "_") + cureZone[_local2].y].char;
if ((_local3.team - 1) == _local2) {
com[_local2].curar(_local3);
}
_local2++;
}
}
function isEnd() {
if (caballoBig1._name == null) {
return(true);
}
if ((com[0].soldados.length == 0) || (toDestroy == 0)) {
return(true);
}
var _local2 = 1;
while (_local2 < 4) {
if (com[_local2].soldados.length != 0) {
return(false);
}
_local2++;
}
return(true);
}
function playerWin() {
if (com[0].soldados.length == 0) {
return(false);
}
if (caballoBig1._name == null) {
return(false);
}
if (toDef == 0) {
return(false);
}
return(true);
}
var toStruc = 5;
var maxCantFlechasC = 15;
var timeToRefleshD = 150;
var timeToReflesh = Game.prototype.timeToRefleshD;
var puntos = 0;
var toDestroy = 51;
var toDef = 17;
var isFoundHero = false;
}
Symbol 1073 MovieClip [__Packages.IsoBasic] Frame 0
class IsoBasic extends MovieClip
{
var safe, timeToSafe, energiaTotal, energia, _parent, gotoAndStop, _totalframes, barra;
function IsoBasic () {
super();
}
function isSafe() {
if (!safe) {
timeToSafe--;
if (timeToSafe == 0) {
safe = true;
}
}
}
function estado() {
var _local2 = energia / energiaTotal;
if (_parent._parent._name.substr(0, 2) == "ti") {
(gotoAndStop((_totalframes - Math.round(_totalframes * _local2)) + 1));// not popped
}
barra.barraVerde._xscale = _local2 * 100;
if (energia <= 0) {
return(false);
}
barra._visible = true;
return(true);
}
function actualizar(game) {
}
var timeToSafeDef = 80;
var altura = 5;
var team = 2;
var tileW = 30;
}
Symbol 1074 MovieClip [__Packages.IsoMovie] Frame 0
class IsoMovie extends IsoBasic
{
var x, y, enemigo, hitL, timeToShot, timeOriginal, pos, hitSound, power, team, timeToFound, target, timeToFoundOriginal, foundRango;
function IsoMovie () {
super();
}
function myTile(game) {
return(game[(("tile_" + myXT) + "_") + myYT]);
}
function get myXT() {
return(Math.round((x / 30) - 1));
}
function get myYT() {
return(Math.round(y / 30));
}
function get movH() {
return(20);
}
function get _xIso() {
return(x - y);
}
function get _yIso() {
return((x + y) / 2);
}
function inRango() {
var _local2 = Math.sqrt(((enemigo.x - myXT) * (enemigo.x - myXT)) + ((enemigo.y - myYT) * (enemigo.y - myYT)));
if (_local2 <= (hitL * 1.6)) {
return(true);
}
return(false);
}
function golpear(game) {
if ((enemigo != null) && (timeToShot == 0)) {
if (inRango()) {
hit(game);
timeToShot = timeOriginal;
}
} else if (timeToShot > 0) {
timeToShot--;
}
}
function hit(game) {
pos.gotoAndStop(6);
Consola.s_play(hitSound);
if (!enemigo.recibirGolpe(power, game, team)) {
power = power * 1.2;
power = Math.min(power, 20);
delete enemigo;
have = false;
}
}
function atacar(game, xpos, ypos) {
enemigo = game[(("tile_" + xpos) + "_") + ypos];
}
function foundEnemi(game) {
if ((timeToFound <= 0) && (target._name == null)) {
var _local7 = myTile(game);
timeToFound = timeToFoundOriginal;
var _local4 = 0;
while (_local4 != foundRango) {
_local4++;
var _local5 = -_local4;
while (_local5 <= _local4) {
var _local3 = -_local4;
while (_local3 <= _local4) {
var _local2 = game[(("tile_" + (_local3 + myXT)) + "_") + (_local5 + myYT)];
if (!_local2._isEmpty) {
if (((_local2.sprite._currentframe < 33) && (_local2.team != team)) && (((_local2.sprite._currentframe != 2) && (_local2.sprite._currentframe != 3)) || (_local2.char._name != null))) {
atacar(game, _local2.x, _local2.y);
if (_local2.char._name != null) {
trace("Nombre del target" + _local2.char._name);
return(undefined);
}
}
} else if ((_local2.team != team) && (_local2.char._name != null)) {
atacar(game, _local2.x, _local2.y);
return(undefined);
}
_local3++;
}
_local5++;
}
}
} else {
timeToFound--;
}
}
function actualizar(game) {
golpear(game);
}
var have = false;
var targetFijo = null;
}
Symbol 1075 MovieClip [__Packages.Sound2] Frame 0
class Sound2 extends Sound
{
function Sound2 () {
super();
}
}
Symbol 1076 MovieClip [__Packages.Consola] Frame 0
class Consola
{
static var global_sound_movie, global_music_movie;
function Consola () {
}
static function s_turnOff() {
var _local1 = 0;
while (_local1 < sounds.length) {
sounds[_local1].stop(sounds[_local1]._name);
delete sounds[_local1];
sounds.splice(_local1, 1);
_local1++;
}
s_IsOn = false;
}
static function vol(num) {
global_sound.setVolume(num);
}
static function s_turnOn() {
s_IsOn = true;
}
static function s_play(nombre, loop) {
if (s_IsOn) {
_root["sound" + sounds.length] = new Sound2(global_sound_movie);
_root["sound" + sounds.length].setVolume(100);
_root["sound" + sounds.length].attachSound(nombre);
_root["sound" + sounds.length].start(0, loop);
_root["sound" + sounds.length]._name = nombre;
sounds.push(_root["sound" + sounds.length]);
}
}
static function m_turnOff() {
m_IsOn = false;
music.stop(music._name);
}
static function m_stop() {
music.stop(music._name);
}
static function m_turnOn() {
m_IsOn = true;
music.start(0, 999999999);
}
static function m_play(nombre) {
_root.music = new Sound2(global_music_movie);
_root.music.attachSound(nombre);
_root.music._name = nombre;
music = _root.music;
if (m_IsOn) {
music.start(0, 999999999);
}
}
static var sounds = new Array();
static var music = new Sound2();
static var global_sound = new Sound();
static var s_IsOn = new Boolean(true);
static var m_IsOn = new Boolean(true);
}
Symbol 1077 MovieClip [__Packages.IsoMovieMovil] Frame 0
class IsoMovieMovil extends IsoMovie
{
var pos, _x, _xAnt, _y, _yAnt, myTile, enemigo, gotoAndStop, target, tileW, x, speed, y, camino, centrar, puntoCentro, __get__movH, profCamino, __get__myXT, __get__myYT, toGoX, toGoY, inRango, timeToShot, hit, timeOriginal, tileAnt, _xIso, _yIso, prof, swapDepths, deadName, _currentframe, removeMovieClip, safe, timeToSafe, timeToSafeDef, team, energia, estado, timeToFound, targetFijo, timeToFoundOriginal, foundRango, power, hitSound, icono, isSafe, _visible;
function IsoMovieMovil () {
super();
}
function animar(game) {
if (pos._currentframe < 6) {
moverDir();
if (canWalk == 0) {
canWalk = canWalkOri;
if ((_xAnt == _x) && (_yAnt == _y)) {
pos.gotoAndStop(1);
pos.stop();
return(undefined);
}
if (pos._currentframe < 5) {
pos.nextFrame();
pos.stop();
return(undefined);
}
pos.gotoAndStop(2);
pos.stop();
return(undefined);
}
canWalk--;
} else if (canHit <= 0) {
var _local2 = myTile();
if (enemigo._x < (_x - 15)) {
_xAnt = _x + 5;
} else if (enemigo._x > (_x + 15)) {
_xAnt = _x - 5;
} else {
_xAnt = _x;
}
if (enemigo._y < (_y - 15)) {
_yAnt = _y + 5;
} else if (enemigo._y > (_y + 15)) {
_yAnt = _y - 5;
} else {
_yAnt = _y;
}
moverDir();
canHit = canHitOri;
if (pos._currentframe == 9) {
pos.gotoAndStop(1);
pos.stop();
return(undefined);
}
if (pos._currentframe > 5) {
pos.nextFrame();
pos.stop();
return(undefined);
}
} else {
canHit--;
}
}
function moverDir() {
var _local3 = false;
var _local2 = false;
var _local5 = false;
var _local4 = false;
if (_x < _xAnt) {
_local3 = true;
} else if (_x > _xAnt) {
_local2 = true;
}
if (_y < _yAnt) {
_local5 = true;
} else if (_y > _yAnt) {
_local4 = true;
}
if (_local4) {
if (_local3) {
gotoAndStop(2);
pos.stop();
return(undefined);
}
if (_local2) {
gotoAndStop(8);
pos.stop();
return(undefined);
}
gotoAndStop(1);
pos.stop();
return(undefined);
}
if (_local5) {
if (_local3) {
gotoAndStop(4);
pos.stop();
return(undefined);
}
if (_local2) {
gotoAndStop(6);
pos.stop();
return(undefined);
}
gotoAndStop(5);
pos.stop();
return(undefined);
}
if (_local3) {
gotoAndStop(3);
pos.stop();
return(undefined);
}
if (_local2) {
gotoAndStop(7);
pos.stop();
return(undefined);
}
pos.stop();
}
function recorrerRuta(game) {
if (target != null) {
var _local4 = game.getTile(((target.x + 1) * tileW) - 30, (target.y * tileW) - 15);
if (_local4.isWalk(this)) {
var _local3 = (((target.x + 1) * tileW) * 2) - 30;
var _local2 = (target.y * tileW) + 15;
if (_local3 > (x * 2)) {
x = x + speed;
} else if (_local3 < (x * 2)) {
x = x - speed;
}
if (_local2 > (y + 15)) {
y = y + speed;
} else if (_local2 < (y + 15)) {
y = y - speed;
}
if ((_local2 == (y + 15)) && (_local3 == (x * 2))) {
target = camino.shift();
}
} else if (camino.length < 4) {
camino.splice(0);
target = null;
} else {
_local4 = camino.pop();
camino.splice(0);
moverHacia(game, _local4.x, _local4.y);
}
}
}
function ifCentrar(game) {
if (centrar) {
if (puntoCentro.x > (x * 2)) {
x = x + speed;
} else if (puntoCentro.x < (x * 2)) {
x = x - speed;
}
if (puntoCentro.y > (y + 15)) {
y = y + speed;
} else if (puntoCentro.y < (y + 15)) {
y = y - speed;
}
if ((puntoCentro.x == (x * 2)) && (puntoCentro.y == (y + 15))) {
centrar = false;
buscarCamino(game);
target = new Object();
target = camino.shift();
}
}
}
function movUp(game) {
var _local2 = game.getTile(x - 4, (y - (__get__movH() / 2)) - 4);
var _local3 = game.getTile((x - __get__movH()) + 4, (y - (__get__movH() / 2)) - 4);
if (_local2.isWalk(this) && (_local3.isWalk(this))) {
y = y - speed;
} else {
y = Math.round((((_local2.y * game.tileW) + (game.tileW / 2)) + (__get__movH() / 3)) + 4);
y = y - (y % speed);
}
}
function movDown(game) {
var _local2 = game.getTile(x - 2, y + (__get__movH() / 2));
var _local3 = game.getTile((x - __get__movH()) + 2, y + (__get__movH() / 2));
if (_local2.isWalk(this) && (_local3.isWalk(this))) {
y = y + speed;
} else {
y = Math.round(((_local2.y * game.tileW) - (game.tileW / 2)) - (__get__movH() / 2));
y = y - (y % speed);
}
}
function movLeft(game) {
var _local3 = game.getTile(((x + (__get__movH() / 4)) - game.tileW) - 4, (y + (__get__movH() / 2)) - 4);
var _local4 = game.getTile(((x + (__get__movH() / 4)) - game.tileW) - 4, (y - (__get__movH() / 2)) + 4);
if (_local3.isWalk(this) && (_local4.isWalk(this))) {
x = x - speed;
} else {
x = Math.round((((_local3.x * game.tileW) + (game.tileW / 2)) + __get__movH()) + 4);
x = x - (x % speed);
}
}
function movRight(game) {
var _local2 = game.getTile(x + 4, (y + (__get__movH() / 2)) - 4);
var _local3 = game.getTile(x + 4, (y - (__get__movH() / 2)) + 4);
if (_local2.isWalk(this) && (_local3.isWalk(this))) {
x = x + speed;
} else {
x = Math.round(((_local2.x * game.tileW) - (game.tileW / 3)) - 4);
x = x - (x % speed);
}
}
function getNodos(x, y, game, visited) {
var _local5 = new Array();
if (((game[(("tile_" + (x - 1)) + "_") + (y - 1)].isWalk(this) && (game[(("tile_" + (x - 1)) + "_") + y].isWalk(this))) && (game[(("tile_" + x) + "_") + (y - 1)].isWalk(this))) && (!visited[((x - 1) + "_") + (y - 1)])) {
var _local7 = new Object();
_local7.x = x - 1;
_local7.y = y - 1;
_local5.push(_local7);
}
if (game[(("tile_" + x) + "_") + (y - 1)].isWalk(this) && (!visited[(x + "_") + (y - 1)])) {
var _local7 = new Object();
_local7.x = x;
_local7.y = y - 1;
_local5.push(_local7);
}
if (((game[(("tile_" + (x + 1)) + "_") + (y - 1)].isWalk(this) && (game[(("tile_" + (x + 1)) + "_") + y].isWalk(this))) && (game[(("tile_" + x) + "_") + (y - 1)].isWalk(this))) && (!visited[((x + 1) + "_") + (y - 1)])) {
var _local7 = new Object();
_local7.x = x + 1;
_local7.y = y - 1;
_local5.push(_local7);
}
if (game[(("tile_" + (x - 1)) + "_") + y].isWalk(this) && (!visited[((x - 1) + "_") + y])) {
var _local7 = new Object();
_local7.x = x - 1;
_local7.y = y;
_local5.push(_local7);
}
if (game[(("tile_" + (x + 1)) + "_") + y].isWalk(this) && (!visited[((x + 1) + "_") + y])) {
var _local7 = new Object();
_local7.x = x + 1;
_local7.y = y;
_local5.push(_local7);
}
if (((game[(("tile_" + (x - 1)) + "_") + (y + 1)].isWalk(this) && (game[(("tile_" + (x - 1)) + "_") + y].isWalk(this))) && (game[(("tile_" + x) + "_") + (y + 1)].isWalk(this))) && (!visited[((x - 1) + "_") + (y + 1)])) {
var _local7 = new Object();
_local7.x = x - 1;
_local7.y = y + 1;
_local5.push(_local7);
}
if (game[(("tile_" + x) + "_") + (y + 1)].isWalk(this) && (!visited[(x + "_") + (y + 1)])) {
var _local7 = new Object();
_local7.x = x;
_local7.y = y + 1;
_local5.push(_local7);
}
if (((game[(("tile_" + (x + 1)) + "_") + (y + 1)].isWalk(this) && (game[(("tile_" + x) + "_") + (y + 1)].isWalk(this))) && (game[(("tile_" + (x + 1)) + "_") + y].isWalk(this))) && (!visited[((x + 1) + "_") + (y + 1)])) {
var _local7 = new Object();
_local7.x = x + 1;
_local7.y = y + 1;
_local5.push(_local7);
}
return(_local5);
}
function menorCosto(nodo, toX, toY) {
if (nodo.length == 0) {
return(null);
}
var _local3 = new Object();
_local3.x = nodo[0].x;
_local3.y = nodo[0].y;
_local3.cost = Math.abs(toX - _local3.x) + Math.abs(toY - _local3.y);
var _local1 = 1;
while (_local1 < nodo.length) {
var _local4 = Math.abs(toX - nodo[_local1].x) + Math.abs(toY - nodo[_local1].y);
if (_local4 < _local3.cost) {
_local3.cost = _local4;
_local3.x = nodo[_local1].x;
_local3.y = nodo[_local1].y;
}
_local1++;
}
return(_local3);
}
function isGood(myX, myY, toX, toY, game, visited) {
profCamino++;
if (profCamino > 40) {
return(true);
}
if ((myX == toX) && (myY == toY)) {
return(true);
}
visited[(myX + "_") + myY] = true;
var _local6 = getNodos(myX, myY, game, visited);
var _local2 = menorCosto(_local6, toX, toY);
if (_local2 == null) {
return(false);
}
camino.push(_local2);
return(isGood(_local2.x, _local2.y, toX, toY, game, visited));
}
function buscarCamino(game) {
profCamino = 0;
var _local2 = new Array();
camino.splice(1);
camino = new Array();
isGood(__get__myXT(), __get__myYT(), toGoX, toGoY, game, _local2);
}
function centrarMovie(game, tileX, tileY) {
toGoX = tileX;
toGoY = tileY;
puntoCentro = new Object();
var _local2 = game.getTile(x + __get__movH(), y + (__get__movH() / 2));
puntoCentro.x = ((_local2.x * tileW) * 2) - 30;
puntoCentro.y = (_local2.y * tileW) + 15;
reOrder();
centrar = true;
}
function atacar(game, xpos, ypos) {
var _local3 = getNodos(xpos, ypos, game, []);
var _local2 = menorCosto(_local3, __get__myXT(), __get__myYT());
if (_local2 != null) {
enemigo = game[(("tile_" + xpos) + "_") + ypos];
if (!inRango()) {
centrarMovie(game, _local2.x, _local2.y);
}
}
}
function moverHacia(game, tileX, tileY) {
enemigo = null;
reOrder();
centrarMovie(game, tileX, tileY);
}
function perseguir(x, y, game) {
}
function reOrder() {
camino.splice(0);
delete target;
target = null;
}
function golpear(game) {
if ((enemigo != null) && (timeToShot == 0)) {
if (inRango()) {
reOrder();
var _local2 = myTile();
if (enemigo._x < (_x - 15)) {
_xAnt = _x + 5;
} else if (enemigo._x > (_x + 15)) {
_xAnt = _x - 5;
} else {
_xAnt = _x;
}
if (enemigo._y < (_y - 15)) {
_yAnt = _y + 5;
} else if (enemigo._y > (_y + 15)) {
_yAnt = _y - 5;
} else {
_yAnt = _y;
}
moverDir();
hit(game);
timeToShot = timeOriginal;
}
} else if (timeToShot > 0) {
timeToShot--;
}
}
function estoyEn(game) {
var _local2 = myTile(game);
if (_local2.char != this) {
game[tileAnt].char = null;
game[tileAnt].vacio = true;
game[tileAnt].sprite.texto.text = null;
tileAnt = _local2._name;
_local2.vacio = false;
_local2.char = this;
}
}
function render() {
_x = _xIso;
_y = _yIso;
animar();
_xAnt = _x;
_yAnt = _y;
prof = ((_y + 15) * 300) + _x;
if ((prof % 10) == 0) {
prof++;
}
swapDepths(prof);
}
function destroy(game) {
var _local3 = myTile(game);
_local3.vacio = true;
_local3.char = null;
prof = ((_y + 15) * 300) + _x;
if ((prof % 10) == 0) {
prof++;
}
trace("NOmbre del muerto " + deadName);
game.attachMovie(deadName, deadName + prof, Math.round(prof / 100));
game[deadName + prof]._x = _x;
game[deadName + prof]._y = _y;
game[deadName + prof]._alpha = 100;
game[deadName + prof].gotoAndPlay(((_currentframe - 1) * 6) + 2);
removeMovieClip();
}
function recibirGolpe(num, game, agrTeam) {
safe = false;
timeToSafe = timeToSafeDef;
if (team != agrTeam) {
energia = energia - num;
}
if (!estado()) {
if (agrTeam == 1) {
game.puntos = game.puntos + 15;
}
destroy(game);
return(false);
}
return(true);
}
function foundEnemi(game) {
if ((timeToFound <= 0) && (targetFijo._name != null)) {
timeToFound = timeToFoundOriginal;
aux = targetFijo.myTile(game);
atacar(game, aux.x, aux.y);
trace("Target fijo");
return(undefined);
}
if ((timeToFound <= 0) && (target._name == null)) {
var _local6 = myTile(game);
timeToFound = timeToFoundOriginal;
var _local3 = 0;
while (_local3 != foundRango) {
_local3++;
var _local4 = -_local3;
while (_local4 <= _local3) {
var _local2 = -_local3;
while (_local2 <= _local3) {
var aux = game[(("tile_" + (_local2 + __get__myXT())) + "_") + (_local4 + __get__myYT())];
if (!aux._isEmpty) {
if (((aux.sprite._currentframe < 33) && (aux.team != team)) && (((aux.sprite._currentframe != 2) && (aux.sprite._currentframe != 3)) || (aux.char._name != null))) {
atacar(game, aux.x, aux.y);
if (aux.char._name != null) {
trace("Nombre del target" + aux.char._name);
return(undefined);
}
}
} else if ((aux.team != team) && (aux.char._name != null)) {
atacar(game, aux.x, aux.y);
return(undefined);
}
_local2++;
}
_local4++;
}
}
} else {
timeToFound--;
}
}
function manualHit(game) {
if (timeToShot < 1) {
var _local2 = myTile(game);
var _local4 = 0;
var _local3 = 0;
pos.gotoAndPlay(6);
timeToShot = timeOriginal;
if (((_currentframe == 5) || (_currentframe == 3)) || (_currentframe == 4)) {
_local4 = -1;
}
if (((_currentframe == 1) || (_currentframe == 7)) || (_currentframe == 8)) {
_local4 = 1;
}
if (((_currentframe == 1) || (_currentframe == 2)) || (_currentframe == 3)) {
_local3 = 1;
}
if (((_currentframe == 6) || (_currentframe == 7)) || (_currentframe == 5)) {
_local3 = -1;
}
game[(("tile_" + (_local2.x + _local4)) + "_") + (_local2.y + _local3)].recibirGolpe(power, game, team);
if ((game[(("tile_" + (_local2.x + _local4)) + "_") + (_local2.y + _local3)].char != null) || (game[(("tile_" + (_local2.x + _local4)) + "_") + (_local2.y + _local3)].sprite.obj != null)) {
Consola.s_play(hitSound);
}
}
}
function actualizar(game) {
icono.gotoAndStop(1);
isSafe();
foundEnemi(game);
ifCentrar(game);
recorrerRuta(game);
golpear(game);
estoyEn(game);
render(game);
_visible = true;
}
var canWalkOri = 2;
var canWalk = IsoMovieMovil.prototype.canWalkOri;
var canHitOri = 2;
var canHit = IsoMovieMovil.prototype.canHitOri;
}
Symbol 1078 MovieClip [__Packages.MouseTile] Frame 0
class MouseTile extends MovieClip
{
var xTile, yTile;
function MouseTile () {
super();
}
function getTile(x0, y0) {
xTile = x0;
yTile = y0;
}
}
Symbol 1079 MovieClip [__Packages.Commander] Frame 0
class Commander
{
var timeToCureD, timeToCure, torretas, soldados, target, myZone, timeToGo, ofen, minCantDef;
function Commander (game, nro) {
timeToCureD = 10;
timeToCure = timeToCureD;
torretas = new Array();
soldados = new Array();
target = nro;
myZone = nro;
while (target == myZone) {
target = random(4);
}
timeToGo = random(400);
ofen = random(5) + 2;
minCantDef = random(5) + 2;
if (myZone == 0) {
_root.cSolAta = ofen;
}
}
function cantWait() {
return((soldados.length - ofen) <= minCantDef);
}
function cleanArray() {
var _local2 = 0;
while (_local2 < soldados.length) {
if (soldados[_local2]._name == null) {
soldados.splice(_local2, 1);
_local2--;
}
_local2++;
}
}
function actualizar(game) {
if (myZone != 0) {
if (timeToGo == 0) {
if (groupSafe() && (soldados.length > 2)) {
timeToGo = random(400);
if (game.com[target].soldados.length <= 0) {
target = 0;
}
var _local4 = 0;
while (_local4 < ofen) {
soldados[_local4].moverHacia(game, game.zonas[target].x, game.zonas[target].y);
_local4++;
}
}
} else {
timeToGo--;
if (myZone == 0) {
_root.timeToAta = timeToGo;
}
}
if (timeToSafe == 0) {
timeToSafe = 100;
if (myZone == 0) {
_root.safe = defSafe();
}
if ((!groupSafe()) || (soldados.length < 3)) {
if (cantWait() || (soldados.length < 3)) {
var _local4 = 0;
while (_local4 < ofen) {
soldados[_local4].moverHacia(game, game.zonas[myZone].x, game.zonas[myZone].y);
_local4++;
}
}
}
} else {
timeToSafe--;
}
}
}
function curar(soldado) {
if (timeToCure == 0) {
timeToCure = timeToCureD;
soldado.energia = soldado.energia + 10;
soldado.energia = Math.min(soldado.energia, soldado.energiaTotal);
if (soldado.energia != soldado.energiaTotal) {
soldado._visible = false;
} else {
soldado._visible = true;
}
soldado.estado();
} else {
timeToCure--;
}
}
function castleSafe() {
var _local2 = 0;
while (_local2 < torretas.length) {
if (!torretas[_local2].safe) {
return(false);
}
_local2++;
}
return(true);
}
function defSafe() {
var _local2 = ofen;
while (_local2 < soldados.length) {
if (soldados[_local2].enemigo._name != null) {
if (soldados[_local2].enemigo.team != null) {
target = soldados[_local2].enemigo.team - 1;
}
}
if (!soldados[_local2].safe) {
return(false);
}
_local2++;
}
return(true);
}
function groupSafe() {
return(defSafe() && (castleSafe()));
}
var timeToSafe = 150;
var cantTile = 12;
}
Symbol 1080 MovieClip [__Packages.Mapa] Frame 0
class Mapa
{
var tile;
function Mapa () {
tile = new Array();
tile = [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 2, 2, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 2, 2, 2, 2, 2, 2, 2, 2, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 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, 2, 2, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 3, 2, 2, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 2, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1][1][1]];
}
}
Symbol 1081 MovieClip [__Packages.TileEmpty] Frame 0
class TileEmpty
{
var _name, char, x, y, tipo;
function TileEmpty (name) {
_name = name;
char = null;
}
function get myXT() {
return(x);
}
function get myYT() {
return(y);
}
function isWalk(act) {
if ((tipo == 2) && (vacio || (char == act))) {
return(true);
}
return(false);
}
function get team() {
return(char.team);
}
function recibirGolpe(num, game, agre) {
return(char.recibirGolpe(num, game, agre));
}
function get altura() {
if (char == null) {
return(0);
}
return(char.altura);
}
var vacio = true;
var _isEmpty = true;
}
Symbol 1082 MovieClip [__Packages.MapaMovil] Frame 0
class MapaMovil
{
var tile;
function MapaMovil () {
t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 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1][1][1]];
}
}
Symbol 1083 MovieClip [__Packages.Tile] Frame 0
class Tile extends MovieClip
{
var char, sprite, x, y, equipo;
function Tile () {
super();
}
function onLoad() {
char = null;
sprite.obj.barra._visible = false;
}
function get myXT() {
return(x);
}
function get myYT() {
return(y);
}
function isWalk(act) {
if (((((((sprite._currentframe == 2) || (sprite._currentframe == 12)) || (sprite._currentframe == 14)) || (sprite._currentframe == 33)) || (sprite._currentframe == 20)) || (sprite._currentframe == 18)) && (vacio || (char == act))) {
return(true);
}
return(false);
}
function get team() {
if (sprite._currentframe != 2) {
return(equipo);
}
return(char.team);
}
function set energia(num) {
sprite.obj.energia = num;
//return(energia);
}
function get energia() {
return(sprite.obj.energia);
}
function recibirGolpe(num, game, agre) {
if (sprite._currentframe != 2) {
return(sprite.obj.recibirGolpe(num, game, agre));
}
return(char.recibirGolpe(num, game, agre));
}
function get altura() {
if (char == null) {
if (sprite._currentframe != 2) {
return(sprite.obj.altura);
}
return(0);
}
return(char.altura);
}
var vacio = true;
}
Symbol 1084 MovieClip [__Packages.Shot] Frame 0
class Shot extends MovieClip
{
var _z, power, x, y, angle, ori, removeMovieClip, _x, _y, yAce, prof, swapDepths;
function Shot () {
super();
}
function onLoad() {
_z = 5;
power = 30;
}
function get myXT() {
return(Math.round((x / 30) - 1));
}
function get myYT() {
return(Math.round(y / 30));
}
function get movH() {
return(20);
}
function get _xIso() {
return(x - y);
}
function get _yIso() {
return((x + y) / 2);
}
function pos(game) {
var _local3 = (Math.PI/180);
x = x + (Math.cos(angle * _local3) * 7);
y = y + (Math.sin(angle * _local3) * 7);
var _local2 = game[(("tile_" + myXT) + "_") + myYT];
if (_z < _local2.altura) {
if (_local2.sprite._currentframe != 2) {
if (!_local2.recibirGolpe(power, game, ori.team)) {
ori.enemigo = null;
ori.have = false;
}
} else if (_local2.char.team != ori.team) {
if (!_local2.char.recibirGolpe(power, game, ori.team)) {
ori.enemigo = null;
ori.have = false;
}
}
Consola.s_play("crash0");
removeMovieClip();
return(false);
}
if (_z < 2) {
Consola.s_play("clash0");
removeMovieClip();
return(false);
}
return(true);
}
function render(game) {
_x = _xIso;
_y = _yIso - _z;
if (_z > 0) {
_z = _z + yAce;
yAce = yAce - 1;
}
prof = (((_y + _z) + 15) * 300) + _x;
if ((prof % 10) == 0) {
prof++;
}
swapDepths(prof);
}
function actualizar(game) {
var _local2 = pos(game);
render(game);
return(_local2);
}
}
Symbol 1085 MovieClip [__Packages.Catapulta] Frame 0
class Catapulta extends IsoMovieMovil
{
var shotName, speed, hitL, power, timeOriginal, timeToShot, energiaTotal, energia, foundRango, timeToFoundOriginal, timeToFound, safe, timeToSafe, hitSound, barra, barraGeneral, deadName, pos, enemigo, y, x;
function Catapulta () {
super();
}
function onLoad() {
shotName = "Shot";
speed = 1.25;
hitL = 4.5;
power = 25;
timeOriginal = 90;
timeToShot = timeOriginal;
energiaTotal = 100;
energia = energiaTotal;
foundRango = 5;
timeToFoundOriginal = 100;
timeToFound = random(100);
safe = true;
timeToSafe = 0;
hitSound = "catapultaShot0";
barra = barraGeneral.barra;
deadName = "catapultaMuerto";
}
static function distance(x1, x2, y1, y2) {
return(Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))));
}
function hit(game) {
Consola.s_play(hitSound);
pos.gotoAndStop(6);
game.attachMovie(shotName, shotName + game.prof, game.prof);
var _local2 = game[shotName + game.prof];
game.prof++;
game.shot.push(_local2);
var _local5 = 57.2957795130823;
var _local6 = y - (enemigo.myYT * game.tileW);
var _local4 = x - ((enemigo.myXT + 1) * game.tileW);
var _local7 = distance((enemigo.myXT + 1) * game.tileW, x, enemigo.myYT * game.tileW, y);
_local2.yAce = _local7 / 17;
_local2.yAce = Math.max(_local2.yAce, 5);
_local2.x = x;
_local2.y = y;
_local2.ori = this;
_local2.angle = Math.atan(_local6 / _local4) * _local5;
if (_local4 > 0) {
_local2.angle = _local2.angle + 180;
}
}
}
Symbol 1086 MovieClip [__Packages.Flecha] Frame 0
class Flecha extends Shot
{
var _z, power, _xAnt, _x, _yAnt, _y, gotoAndStop, _xIso, __get___yIso, yAce, prof, swapDepths, x, angle, y, __get__myYT, __get__myXT, ori, removeMovieClip, punta;
function Flecha () {
super();
}
function onLoad() {
_z = 80;
power = 5;
}
function moverDir() {
var _local3 = false;
var _local2 = false;
var _local5 = false;
var _local4 = false;
if (_x < _xAnt) {
_local3 = true;
} else if (_x > _xAnt) {
_local2 = true;
}
if (_y < _yAnt) {
_local5 = true;
} else if (_y > _yAnt) {
_local4 = true;
}
if (_local4) {
if (_local3) {
gotoAndStop(2);
pos.stop();
return(undefined);
}
if (_local2) {
gotoAndStop(8);
pos.stop();
return(undefined);
}
gotoAndStop(1);
pos.stop();
return(undefined);
}
if (_local5) {
if (_local3) {
gotoAndStop(4);
pos.stop();
return(undefined);
}
if (_local2) {
gotoAndStop(6);
pos.stop();
return(undefined);
}
gotoAndStop(5);
pos.stop();
return(undefined);
}
if (_local3) {
gotoAndStop(3);
pos.stop();
return(undefined);
}
if (_local2) {
gotoAndStop(7);
pos.stop();
return(undefined);
}
pos.stop();
}
function render(game) {
_xAnt = _x;
_yAnt = _y;
_x = _xIso;
_y = __get___yIso() - _z;
if (_z > 0) {
_z = _z + yAce;
yAce = yAce - 1;
}
moverDir();
prof = (((_y + _z) + 15) * 300) + _x;
if ((prof % 10) == 0) {
prof++;
}
swapDepths(prof);
}
function pos(game) {
var _local4 = (Math.PI/180);
x = x + (Math.cos(angle * _local4) * 7);
y = y + (Math.sin(angle * _local4) * 7);
var _local2 = game[(("tile_" + __get__myXT()) + "_") + __get__myYT()];
if (_z < _local2.altura) {
if ((_local2.sprite._currentframe != 2) && (!_local2._isEmpty)) {
if (!_local2.recibirGolpe(power, game, ori.team)) {
ori.enemigo = null;
ori.have = false;
}
removeMovieClip();
return(false);
}
if ((_local2.char.team != ori.team) && (_local2.char._name != null)) {
if (!_local2.char.recibirGolpe(power, game, ori.team)) {
ori.enemigo = null;
ori.have = false;
}
removeMovieClip();
return(false);
}
if (_local2.char == null) {
ori.enemigo = null;
ori.have = false;
}
}
if (_z < 2) {
game.flechaC.push(this);
if (game.flechaC.length > game.maxCantFlechasC) {
game.flechaC[0].removeMovieClip();
game.flechaC.splice(0, 1);
}
punta._visible = false;
return(false);
}
return(true);
}
}
Symbol 1087 MovieClip [__Packages.Torreta] Frame 0
class Torreta extends IsoMovie
{
var barra, barraGeneral, shotName, energiaTotal, energia, altura, timeOriginal, timeToShot, foundRango, timeToFoundOriginal, timeToFound, safe, timeToSafe, hitSound, arquera, stop, removeMovieClip, _parent, timeToSafeDef, estado, team, isSafe, foundEnemi, golpear, _currentframe, enemigo;
function Torreta () {
super();
}
function onLoad() {
barra = barraGeneral.barra;
barra._visible = false;
shotName = "Flecha";
energiaTotal = 100;
energia = energiaTotal;
altura = 7;
timeOriginal = 40;
timeToShot = timeOriginal;
foundRango = 5;
timeToFoundOriginal = 100;
timeToFound = random(100);
safe = true;
timeToSafe = 0;
hitSound = "flecha0";
arquera.gotoAndStop(random(55) + 1);
(stop());// not popped
}
function destroy() {
removeMovieClip();
_parent.gotoAndStop(2);
}
function recibirGolpe(num, game, agrTeam) {
safe = false;
timeToSafe = timeToSafeDef;
energia = energia - num;
estado();
if (energia <= 0) {
if (team != 1) {
game.toDestroy--;
} else {
game.toDef--;
}
if (agrTeam == 1) {
game.puntos = game.puntos + 12;
}
game.com[team - 1].cantTile--;
if (game.com[team - 1].cantTile <= 0) {
entregarSoldados(agrTeam, game);
}
destroy();
return(false);
}
return(true);
}
function entregarSoldados(to, game) {
var _local2 = 0;
while (_local2 < game.com[team - 1].soldados.length) {
game.com[team - 1].soldados[_local2].team = to;
game.com[team - 1].soldados[_local2].dist.gotoAndStop(to);
game.com[team - 1].soldados[_local2].diamante._visible = false;
game.com[team - 1].soldados[_local2].barraGeneral.gotoAndStop(to);
game.com[to - 1].soldados.push(game.com[team - 1].soldados[_local2]);
_local2++;
}
game.com[team - 1].soldados.splice(0);
}
function actualizar(game) {
isSafe();
foundEnemi(game);
golpear(game);
}
function myTile(game) {
return(_parent._parent);
}
function get myXT() {
return(_parent._parent.x);
}
function get myYT() {
return(_parent._parent.y);
}
static function distance(x1, x2, y1, y2) {
return(Math.sqrt(((x1 - x2) * (x1 - x2)) + ((y1 - y2) * (y1 - y2))));
}
function takeDir(x, y) {
if (x == myXT) {
if (y < myYT) {
return(36);
}
return(8);
}
if (y == myYT) {
if (x < myXT) {
return(22);
}
return(50);
}
if (x < myXT) {
if (y < myYT) {
return(29);
}
return(15);
}
if (y < myYT) {
return(43);
}
return(1);
}
function hit(game) {
if (_currentframe < 3) {
Consola.s_play(hitSound, 1);
game.attachMovie(shotName, "tShot" + game.prof, game.prof);
var _local3 = game["tShot" + game.prof];
game.prof++;
game.shot.push(_local3);
var _local5 = 57.2957795130823;
var _local6 = myYT - enemigo.myYT;
var _local4 = myXT - (enemigo.myXT + 1);
var _local7 = distance((enemigo.myXT + 1) * game.tileW, myXT * game.tileW, enemigo.myYT * game.tileW, myYT * game.tileW);
_local3.yAce = (((((_local7 + random(60)) - 28) / 17) - 8.5) + random(4)) - 1.5;
_local3.x = myXT * game.tileW;
_local3.y = myYT * game.tileW;
_local3.ori = this;
_local3.angle = Math.atan(_local6 / _local4) * _local5;
if (_local4 >= 0) {
_local3.angle = _local3.angle + 180;
}
arquera.gotoAndPlay(takeDir(enemigo.myXT, enemigo.myYT));
}
}
}
Symbol 1088 MovieClip [__Packages.TorretaDe] Frame 0
class TorretaDe extends Torreta
{
var isSafe, safe, timeToSafe, timeToSafeDef, energia, estado, team, _parent, entregarSoldados, destroy;
function TorretaDe () {
super();
}
function actualizar(game) {
isSafe();
}
function recibirGolpe(num, game, agrTeam) {
safe = false;
timeToSafe = timeToSafeDef;
energia = energia - num;
estado();
if (energia <= 0) {
if (team != 1) {
game.toDestroy--;
} else {
game.toDef--;
}
if (agrTeam == 1) {
game.puntos = game.puntos + 5;
}
if (_parent._currentframe == 32) {
trace(team);
game.deleteCure(team);
}
game.com[team - 1].cantTile--;
if (game.com[team - 1].cantTile == 0) {
entregarSoldados(agrTeam, game);
}
destroy();
return(false);
}
return(true);
}
}
Symbol 1089 MovieClip [__Packages.Soldado] Frame 0
class Soldado extends IsoMovieMovil
{
var speed, hitL, power, energiaTotal, energia, timeOriginal, timeToShot, foundRango, timeToFoundOriginal, timeToFound, entro, safe, timeToSafe, hitSound, barra, barraGeneral, deadName;
function Soldado () {
super();
}
function onLoad() {
speed = 2.5;
hitL = 1;
power = 5;
energiaTotal = 80;
energia = energiaTotal;
timeOriginal = 32;
timeToShot = timeOriginal;
foundRango = 4;
timeToFoundOriginal = 100;
timeToFound = random(100);
entro = 0;
safe = true;
timeToSafe = 0;
hitSound = "sword" + random(2);
barra = barraGeneral.barra;
deadName = "soldadoMuerto";
}
}
Symbol 1090 MovieClip [__Packages.Caballo] Frame 0
class Caballo extends IsoMovieMovil
{
var speed, hitL, power, energiaTotal, energia, timeOriginal, timeToShot, foundRango, timeToFoundOriginal, timeToFound, entro, safe, timeToSafe, hitSound, barra, barraGeneral, deadName;
function Caballo () {
super();
}
function onLoad() {
speed = 2.5;
hitL = 1;
power = 10;
energiaTotal = 100;
energia = energiaTotal;
timeOriginal = 32;
timeToShot = timeOriginal;
foundRango = 4;
timeToFoundOriginal = 100;
timeToFound = random(100);
entro = 0;
safe = true;
timeToSafe = 0;
hitSound = "sword" + random(2);
barra = barraGeneral.barra;
deadName = "caballoMuerto";
}
}
Symbol 1091 MovieClip [__Packages.CaballoBig] Frame 0
class CaballoBig extends IsoMovieMovil
{
var speed, hitL, power, energiaTotal, energia, timeOriginal, timeToShot, foundRango, timeToFoundOriginal, timeToFound, entro, safe, timeToSafe, hitSound, barra, barraGeneral, deadName, team, icono, isSafe, golpear, estoyEn, render, _visible, pos, moverDir, canWalk, canWalkOri, _x, _xAnt, _y, _yAnt, canHit, myTile, enemigo, canHitOri;
function CaballoBig () {
super();
}
function onLoad() {
speed = 5;
hitL = 1;
power = 10;
energiaTotal = 450;
energia = energiaTotal;
timeOriginal = 10;
timeToShot = timeOriginal;
foundRango = 4;
timeToFoundOriginal = 100;
timeToFound = random(100);
entro = 0;
safe = true;
timeToSafe = 0;
hitSound = "sword2";
barra = barraGeneral.barra;
deadName = "caballoMuerto";
}
function actualizar(game) {
if ((team != 1) || (isNew)) {
super.actualizar(game);
} else {
icono.gotoAndStop(1);
isSafe();
golpear(game);
estoyEn(game);
render(game);
_visible = true;
}
}
function animar(game) {
if (pos._currentframe < 6) {
moverDir();
if (canWalk == 0) {
canWalk = canWalkOri;
if ((_xAnt == _x) && (_yAnt == _y)) {
pos.gotoAndStop(1);
pos.stop();
return(undefined);
}
if (pos._currentframe < 5) {
pos.nextFrame();
pos.stop();
return(undefined);
}
pos.gotoAndStop(2);
pos.stop();
return(undefined);
}
canWalk--;
} else if (canHit <= 0) {
var _local2 = myTile();
if (enemigo._x < (_x - 15)) {
_xAnt = _x + 5;
} else if (enemigo._x > (_x + 15)) {
_xAnt = _x - 5;
} else {
_xAnt = _x;
}
if (enemigo._y < (_y - 15)) {
_yAnt = _y + 5;
} else if (enemigo._y > (_y + 15)) {
_yAnt = _y - 5;
} else {
_yAnt = _y;
}
moverDir();
canHit = canHitOri;
if (pos._currentframe == 11) {
pos.gotoAndStop(1);
pos.stop();
return(undefined);
}
if (pos._currentframe > 5) {
pos.nextFrame();
pos.stop();
return(undefined);
}
} else {
canHit--;
}
}
var isNew = true;
}
Symbol 1092 MovieClip [__Packages.Selector] Frame 0
class Selector extends MovieClip
{
var startPaint, pS, pF, _xmouse, _ymouse, clear, lineStyle, moveTo, lineTo;
function Selector () {
super();
}
function onLoad() {
Mouse.addListener(this);
startPaint = false;
pS = new MovieClip();
pF = new MovieClip();
}
function onMouseDown() {
pS._x = _xmouse;
pS._y = _ymouse;
startPaint = true;
}
function onMouseUp() {
startPaint = false;
}
function onMouseMove() {
_root.general.game.isFoundHero = false;
if (startPaint) {
clear();
pF._x = _xmouse;
pF._y = _ymouse;
lineStyle(1, 1048560, 100);
moveTo(pS._x, pS._y);
lineTo(pF._x, pS._y);
moveTo(pS._x, pS._y);
lineTo(pS._x, pF._y);
moveTo(pF._x, pS._y);
lineTo(pF._x, pF._y);
moveTo(pS._x, pF._y);
lineTo(pF._x, pF._y);
}
}
}
Symbol 10 MovieClip Frame 1
stop();
Symbol 11 MovieClip [selector] Frame 1
#initclip 66
Object.registerClass("selector", Selector);
#endinitclip
Symbol 12 MovieClip [Game] Frame 1
#initclip 22
Object.registerClass("Game", Game);
#endinitclip
Symbol 32 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 2
stop();
Symbol 32 MovieClip Frame 3
stop();
Symbol 32 MovieClip Frame 4
stop();
Symbol 40 Button
on (release) {
_root.win = false;
_root.clearScreen();
}
Instance of Symbol 32 MovieClip in Symbol 41 MovieClip [General] Frame 1
onClipEvent (keyUp) {
if (Key.getCode() == 77) {
if (Consola.m_IsOn) {
Consola.m_turnOff();
Consola.s_turnOff();
gotoAndStop (3);
} else {
Consola.m_turnOn();
Consola.s_turnOn();
gotoAndStop (1);
}
}
}
onClipEvent (enterFrame) {
if (Consola.m_IsOn) {
gotoAndStop (1);
} else {
gotoAndStop (3);
}
}
on (release) {
trace("release");
if (Consola.m_IsOn) {
Consola.m_turnOff();
Consola.s_turnOff();
gotoAndStop (3);
} else {
Consola.m_turnOn();
Consola.s_turnOn();
gotoAndStop (1);
}
}
Symbol 43 MovieClip [Shot] Frame 1
#initclip 23
Object.registerClass("Shot", Shot);
#endinitclip
Symbol 65 MovieClip Frame 1
stop();
Symbol 97 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 131 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 165 MovieClip Frame 1
stop();
Symbol 182 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 200 MovieClip [catapulta4] Frame 1
#initclip 24
Object.registerClass("catapulta4", Catapulta);
#endinitclip
stop();
Symbol 201 MovieClip [catapulta3] Frame 1
#initclip 25
Object.registerClass("catapulta3", Catapulta);
#endinitclip
stop();
Symbol 202 MovieClip [catapulta2] Frame 1
#initclip 26
Object.registerClass("catapulta2", Catapulta);
#endinitclip
stop();
Symbol 205 MovieClip [Catapulta1] Frame 1
#initclip 27
Object.registerClass("Catapulta1", Catapulta);
#endinitclip
stop();
Symbol 216 MovieClip [Flecha] Frame 1
#initclip 28
Object.registerClass("Flecha", Flecha);
#endinitclip
Symbol 218 MovieClip [mouse] Frame 1
#initclip 29
Object.registerClass("mouse", MouseTile);
#endinitclip
stop();
Symbol 227 MovieClip [pared_ab_is] Frame 1
#initclip 30
Object.registerClass("pared_ab_is", TorretaDe);
#endinitclip
Symbol 230 MovieClip [pared_ab_iscPuerta ] Frame 1
#initclip 31
Object.registerClass("pared_ab_iscPuerta ", TorretaDe);
#endinitclip
stop();
Symbol 241 MovieClip [pared_ar_DerCon] Frame 1
#initclip 32
Object.registerClass("pared_ar_DerCon", TorretaDe);
#endinitclip
stop();
Symbol 245 MovieClip [pared2] Frame 1
#initclip 33
Object.registerClass("pared2", TorretaDe);
#endinitclip
stop();
Symbol 253 MovieClip [paredAbDe] Frame 1
#initclip 34
Object.registerClass("paredAbDe", TorretaDe);
#endinitclip
stop();
Symbol 256 MovieClip [paredAbDeConPuerta] Frame 1
#initclip 35
Object.registerClass("paredAbDeConPuerta", TorretaDe);
#endinitclip
stop();
Symbol 257 MovieClip [paredArDer] Frame 1
#initclip 36
Object.registerClass("paredArDer", TorretaDe);
#endinitclip
Symbol 266 MovieClip [paredArIsq] Frame 1
#initclip 37
Object.registerClass("paredArIsq", TorretaDe);
#endinitclip
Symbol 269 MovieClip [paredArISqConPuerta] Frame 1
#initclip 38
Object.registerClass("paredArISqConPuerta", TorretaDe);
#endinitclip
Symbol 272 MovieClip [puertaAb] Frame 1
#initclip 39
Object.registerClass("puertaAb", Torreta);
#endinitclip
Symbol 275 MovieClip [puertaAbDer] Frame 1
#initclip 40
Object.registerClass("puertaAbDer", Torreta);
#endinitclip
Symbol 278 MovieClip [puertaAbIsq] Frame 1
#initclip 41
Object.registerClass("puertaAbIsq", Torreta);
#endinitclip
Symbol 281 MovieClip [puertaArDer] Frame 1
#initclip 42
Object.registerClass("puertaArDer", Torreta);
#endinitclip
Symbol 282 MovieClip [puertaArIsq] Frame 1
#initclip 43
Object.registerClass("puertaArIsq", Torreta);
#endinitclip
Symbol 301 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 434 MovieClip Frame 1
stop();
Symbol 435 MovieClip [Soldado1] Frame 1
#initclip 44
Object.registerClass("Soldado1", Soldado);
#endinitclip
stop();
Symbol 436 MovieClip [soldado2] Frame 1
#initclip 45
Object.registerClass("soldado2", Soldado);
#endinitclip
stop();
Symbol 437 MovieClip [soldado3] Frame 1
#initclip 46
Object.registerClass("soldado3", Soldado);
#endinitclip
stop();
Symbol 438 MovieClip [soldado4] Frame 1
#initclip 47
Object.registerClass("soldado4", Soldado);
#endinitclip
stop();
Symbol 537 MovieClip Frame 7
this.gotoAndStop(1);
Symbol 537 MovieClip Frame 14
this.gotoAndStop(8);
Symbol 537 MovieClip Frame 21
this.gotoAndStop(15);
Symbol 537 MovieClip Frame 28
this.gotoAndStop(22);
Symbol 537 MovieClip Frame 35
this.gotoAndStop(29);
Symbol 537 MovieClip Frame 42
this.gotoAndStop(36);
Symbol 537 MovieClip Frame 49
this.gotoAndStop(43);
Symbol 537 MovieClip Frame 56
this.gotoAndStop(50);
Symbol 548 MovieClip [torretaAbDer] Frame 1
#initclip 48
Object.registerClass("torretaAbDer", Torreta);
#endinitclip
Symbol 551 MovieClip [torretaAbIsq] Frame 1
#initclip 49
Object.registerClass("torretaAbIsq", Torreta);
#endinitclip
Symbol 554 MovieClip [torretaAb] Frame 1
#initclip 50
Object.registerClass("torretaAb", Torreta);
#endinitclip
Symbol 555 MovieClip [torretaAr] Frame 1
#initclip 51
Object.registerClass("torretaAr", Torreta);
#endinitclip
Symbol 566 MovieClip [TorreCentro] Frame 1
#initclip 52
Object.registerClass("TorreCentro", Torreta);
#endinitclip
Symbol 569 MovieClip [torretaAbDer_ama ] Frame 1
#initclip 53
Object.registerClass("torretaAbDer_ama ", Torreta);
#endinitclip
Symbol 572 MovieClip [torretaAbIsq_ama] Frame 1
#initclip 54
Object.registerClass("torretaAbIsq_ama", Torreta);
#endinitclip
Symbol 575 MovieClip [torretaAb_ama] Frame 1
#initclip 55
Object.registerClass("torretaAb_ama", Torreta);
#endinitclip
Symbol 578 MovieClip [torretaAbDer_azu] Frame 1
#initclip 56
Object.registerClass("torretaAbDer_azu", Torreta);
#endinitclip
Symbol 581 MovieClip [torretaAbIsq_azu] Frame 1
#initclip 57
Object.registerClass("torretaAbIsq_azu", Torreta);
#endinitclip
Symbol 584 MovieClip [torretaAb_azu] Frame 1
#initclip 58
Object.registerClass("torretaAb_azu", Torreta);
#endinitclip
Symbol 587 MovieClip [torretaAbDer_vi] Frame 1
#initclip 59
Object.registerClass("torretaAbDer_vi", Torreta);
#endinitclip
Symbol 590 MovieClip [torretaAbIsq_vio] Frame 1
#initclip 60
Object.registerClass("torretaAbIsq_vio", Torreta);
#endinitclip
Symbol 593 MovieClip [torretaAb_vio] Frame 1
#initclip 61
Object.registerClass("torretaAb_vio", Torreta);
#endinitclip
Symbol 600 MovieClip [enfermeria] Frame 1
#initclip 62
Object.registerClass("enfermeria", TorretaDe);
#endinitclip
Symbol 612 MovieClip Frame 1
stop();
Symbol 613 MovieClip [tile] Frame 1
#initclip 63
Object.registerClass("tile", Tile);
#endinitclip
stop();
Symbol 632 MovieClip Frame 1
stop();
Symbol 651 MovieClip Frame 1
stop();
Symbol 766 MovieClip [caballo] Frame 1
#initclip 64
Object.registerClass("caballo", Caballo);
#endinitclip
stop();
Symbol 796 MovieClip [caballoBig] Frame 1
#initclip 65
Object.registerClass("caballoBig", CaballoBig);
#endinitclip
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 7
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 13
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 19
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 25
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 31
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 37
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 43
stop();
Symbol 889 MovieClip [caballoMuerto] Frame 49
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 6
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 12
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 18
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 24
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 30
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 36
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 42
stop();
Symbol 935 MovieClip [soldadoMuerto] Frame 48
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 6
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 12
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 18
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 24
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 30
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 36
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 42
stop();
Symbol 1000 MovieClip [catapultaMuerto] Frame 48
stop();
Symbol 1021 Button
on (rollOver) {
gotoAndStop (1);
}
on (release) {
_parent.gotoAndStop("pregame");
}
Symbol 1022 Button
on (rollOver) {
gotoAndStop (2);
}
on (release) {
_parent.gotoAndStop("ayuda");
}
Symbol 1023 MovieClip Frame 1
stop();
Symbol 1052 MovieClip Frame 1
prev_btn._visible = false;
prev_btn.enabled = false;
stop();
Symbol 1052 MovieClip Frame 2
prev_btn._visible = true;
prev_btn.enabled = true;
Symbol 1052 MovieClip Frame 3
next_btn._visible = true;
next_btn.enabled = true;
Symbol 1052 MovieClip Frame 4
next_btn._visible = true;
next_btn.enabled = true;
Symbol 1052 MovieClip Frame 5
next_btn._visible = true;
next_btn.enabled = true;
Symbol 1052 MovieClip Frame 6
next_btn._visible = false;
next_btn.enabled = false;
Instance of Symbol 605 MovieClip in Symbol 1052 MovieClip Frame 6
onClipEvent (load) {
this.stop();
}
Symbol 1055 MovieClip Frame 15
function segundos() {
clearInterval(aux);
nextFrame();
play();
}
aux = setInterval(segundos, 2000);
stop();
Symbol 1055 MovieClip Frame 40
_parent.gotoAndPlay("game");
Symbol 1061 Button
on (rollOver) {
gotoAndStop (2);
}
Symbol 1062 MovieClip Frame 1
stop();
Symbol 1068 Button
on (rollOver) {
gotoAndStop (1);
}
Symbol 1069 Button
on (rollOver) {
gotoAndStop (2);
}
Symbol 1070 MovieClip Frame 1
stop();