Combined Code
movieClip 24 {
}
movieClip 25 kapow {
frame 1 {
stop();
}
instance of movieClip 24 {
onClipEvent (load) {
this._rotation = random(360);
}
}
frame 7 {
stop();
this.removeMovieClip();
}
}
movieClip 32 {
frame 7 {
stop();
}
}
movieClip 34 {
}
movieClip 35 {
}
movieClip 37 {
}
movieClip 38 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 43 {
frame 1 {
stop();
}
}
movieClip 45 {
}
movieClip 46 {
}
movieClip 48 {
}
movieClip 49 {
}
movieClip 51 {
}
movieClip 56 {
}
movieClip 57 {
instance brazofalso of movieClip 56 {
onClipEvent (load) {
this._visible = false;
}
}
}
movieClip 59 {
}
movieClip 61 {
}
movieClip 63 {
}
movieClip 65 {
}
movieClip 68 {
}
movieClip 70 {
}
movieClip 83 {
frame 1 {
stop();
}
}
movieClip 84 {
instance pelo of movieClip 83 {
onClipEvent (enterFrame) {
_parent.gotoAndStop(this._currentframe);
}
}
}
movieClip 85 {
}
movieClip 87 {
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 95 {
}
movieClip 97 {
}
movieClip 98 {
}
movieClip 100 {
frame 1 {
stop();
}
}
movieClip 101 {
}
movieClip 105 {
frame 1 {
stop();
}
}
movieClip 106 {
frame 1 {
stop();
}
instance brazofalso of movieClip 57 {
onClipEvent (load) {
this._visible = false;
}
}
frame 210 {
breathsound = new Sound(this);
breathsound.attachSound('breath');
}
frame 215 {
if (contado == 1) {
breathsound.start();
contado = 0;
} else {
++contado;
}
}
frame 230 {
if (_root.todo.fuerza < 75) {
gotoAndPlay(215);
}
}
instance of movieClip 101 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._x = _parent.codo._x;
this._y = _parent.codo._y;
difx = this._x - _parent.mano._x;
dify = this._y - _parent.mano._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 5;
this.zona.gotoAndStop(Math.ceil(Math.sqrt(difx * difx + dify * dify)));
_parent.codo.gotoAndStop(Math.ceil(Math.sqrt(difx * difx + dify * dify)));
}
}
frame 240 {
cabeza.cap.pelo.gotoAndPlay(1);
}
frame 278 {
stop();
}
}
movieClip 112 {
}
button 114 {
on (keyPress '<Escape>') {
if (_root.tutorial != true and _root.cinematic != true and _root.menu_pausa._currentframe != 4 and _root.menu_pausa._currentframe != 6) {
if (_root.pausa == true) {
_root.pausa = false;
_root.escala = 120;
_root.menu_pausa.gotoAndStop(2);
} else {
_root.pausa = true;
_root.escala = 100;
_root.menu_pausa.gotoAndStop(1);
}
} else {
if (_root.tutorial == true) {
_root.obj_musica.gotoAndPlay(2);
_root.max_zombies2 = 1;
_root.escala = 100;
_root.menu_pausa.gotoAndStop(1);
_root.mouse._visible = false;
_root.todo.tio.mouse.stop();
_root.mano_target = 'mano';
_root.todo.patada = false;
_root.ayuda.gotoAndPlay(227);
if (_root.pausa == true) {
_root.pausa = false;
_root.escala = 120;
_root.menu_pausa.gotoAndStop(2);
} else {
_root.pausa = true;
_root.escala = 100;
_root.menu_pausa.gotoAndStop(1);
}
}
}
}
on (press) {
_root.contador_patada = 0;
if (_root.todo.tio.agarrao == 0 and _root.todo.patada != true and _root.cinematic != true) {
if (_root.todo.fuerza > _root.todo.vida + 2) {
_root.todo.patada = true;
}
if (_root.todo.corriendo == true and _root.todo.jump != true) {
if (_root.todo.jump2 != true) {
if (_xmouse > cuerpo._x) {
if (_root.todo.tio._xscale == -_root.todo.inixscale) {
_root.todo.tio._xscale = _root.todo.inixscale;
} else {
_root.todo.tio._xscale = -_root.todo.inixscale;
}
}
_parent.mano._x = 0;
_parent.brazo._x = 0;
_parent.antebrazo._x = 0;
_parent.codo._x = 0;
_parent.hombro._x = 0;
_parent.corbata._x = 0;
this._rotation = 0;
_parent.piernas.gotoAndPlay(1);
_root.todo.jump2 = true;
_root.todo.jump = true;
_root.todo.tio.piernas.gotoAndPlay(100);
if (Key.isDown(38) || Key.isDown(87)) {
_root.todo.jdiry = 'up';
} else {
if (Key.isDown(40) || Key.isDown(83)) {
_root.todo.jdiry = 'down';
}
}
if (Key.isDown(39) || Key.isDown(68)) {
_root.todo.jdirx = 'right';
} else {
if (Key.isDown(37) || Key.isDown(65)) {
_root.todo.jdirx = 'left';
}
}
}
} else {
_root.cambio = 5;
}
}
_root.todo.apretado = true;
}
on (release, releaseOutside) {
_root.todo.apretado = false;
}
on (rollOut) {
_root._xmouse = 0;
_root._ymouse = 0;
}
}
movieClip 116 {
}
movieClip 118 {
}
movieClip 120 {
}
movieClip 122 {
frame 1 {
stop();
}
}
movieClip 123 {
}
movieClip 125 {
}
movieClip 126 {
frame 4 {
_root.todo.tio.humo2.gotoAndPlay(2);
}
frame 8 {
}
frame 13 {
}
frame 18 {
gotoAndPlay(5);
}
frame 37 {
gotoAndStop(1);
}
frame 90 {
stop();
}
frame 145 {
stop();
}
frame 170 {
stop();
}
frame 177 {
stop();
}
frame 185 {
gotoAndStop(1);
}
}
movieClip 128 {
}
movieClip 129 {
frame 169 {
gotoAndPlay(1);
}
frame 203 {
_root.mouse.gotoAndStop(2);
}
frame 324 {
_root.mouse.gotoAndStop(1);
}
frame 407 {
_root.mouse.gotoAndStop(2);
}
frame 547 {
_root.mouse.gotoAndStop(1);
gotoAndPlay(170);
}
}
movieClip 130 {
instance of movieClip 101 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._x = _parent.codo._x;
this._y = _parent.codo._y;
difx = this._x - _parent.mano._x;
dify = this._y - _parent.mano._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 5;
this.zona.gotoAndStop(Math.ceil(Math.sqrt(difx * difx + dify * dify)));
_parent.codo.gotoAndStop(Math.ceil(Math.sqrt(difx * difx + dify * dify)));
}
}
frame 3 {
if (_root.floornum == 1) {
_root.menu_pausa.gotoAndStop(7);
} else {
_root.menu_pausa.gotoAndStop(3);
}
}
frame 4 {
_root.escala = 130;
}
frame 25 {
_root.pausa = false;
}
frame 33 {
stop();
}
}
movieClip 132 tio_simbolo {
frame 1 {
stop();
}
instance humo1 of movieClip 32 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance of movieClip 35 {
onClipEvent (enterFrame) {
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_ingle2._x;
y2 = _parent.cuerpo.tag_ingle2._y;
this._x = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
this._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
difx = this._x - _parent.espinilla2._x;
dify = this._y - _parent.espinilla2._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 4;
}
}
instance espinilla2 of movieClip 38 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
difx = this._x - _parent.pie2._x;
dify = this._y - _parent.pie2._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify);
}
}
instance cuerpo of movieClip 106 {
onClipEvent (load) {
if (_parent._name == 'tio') {
_root.cinematic = true;
_root.todo.veltio_x = 1;
_root.todo.maxveltio_x = 15;
_root.todo.inixscale = _root.todo.tio._xscale;
_root.todo.corriendo = false;
_root.todo.tio.posy = _root.todo.tio._y;
_root.todo.tio.altura = 0;
_root.todo.jump = false;
_root.todo.patada = false;
_root.todo.tiodir = 'left';
_root.qual = 'medium';
_root.patada = false;
_root.todo.patada = false;
_root.todo.jump2 = false;
_root.todo.tio.agarrao_i_1 = false;
_root.todo.tio.agarrao_i_2 = false;
_root.todo.tio.agarrao_i_3 = false;
_root.todo.tio.agarrao_d_1 = false;
_root.todo.tio.agarrao_d_2 = false;
_root.todo.tio.agarrao_d_3 = false;
}
tiempo_sep = 0;
alto = this._y;
}
onClipEvent (enterFrame) {
_root.tioy3 = _root.tioy2;
_root.tiox3 = _root.tiox2;
_root.tioy2 = _root.tioy1;
_root.tiox2 = _root.tiox1;
_root.tioy1 = _root.todo.tio._y;
_root.tiox1 = _root.todo.tio._x;
if (_parent._name == 'tio') {
tiempo_anterior = tiempo_ahora;
tiempo_ahora = getTimer();
_root.frames = Math.floor(1000 / (tiempo_ahora - tiempo_anterior));
++tiempo_sep;
if (_root.frames <= 18) {
if (_root.qual == 'medium') {
_root._quality = 'low';
_root.qual = 'low';
tiempo_sep = 0;
}
} else {
if (_root.qual == 'low' and _root.frames >= 28 and tiempo_sep >= 20) {
_root._quality = 'medium';
_root.qual = 'medium';
}
}
if (_root.pausa == true and _root.mano_target != 'tutorial') {
_root.todo.tio.swapDepths(Math.ceil(_root.todo.tio.posy) * 10000 + Math.ceil(Math.abs(_root.todo.tio._x)) + 2000000);
_root.todo.tio._y = _root.todo.tio.posy + _root.todo.tio.altura;
this._y = alto + _root.todo.agachado;
if (Key.isDown(32) and _root.cinematic != true) {
if (_root.todo.tio.agarrao == 0) {
if (_root.todo.jump != true) {
if (_root.todo.jump2 != true) {
if (_xmouse > cuerpo._x) {
if (_root.todo.tio._xscale == -_root.todo.inixscale) {
_root.todo.tio._xscale = _root.todo.inixscale;
} else {
_root.todo.tio._xscale = -_root.todo.inixscale;
}
}
_root.todo.corriendo = true;
_parent.piernas.gotoAndPlay(1);
_root.todo.jump2 = true;
_root.todo.jump = true;
_root.todo.tio.piernas.gotoAndPlay(100);
if (Key.isDown(38) || Key.isDown(87)) {
_root.todo.jdiry = 'up';
} else {
if (Key.isDown(40) || Key.isDown(83)) {
_root.todo.jdiry = 'down';
}
}
if (Key.isDown(39) || Key.isDown(68)) {
_root.todo.jdirx = 'right';
} else {
if (Key.isDown(37) || Key.isDown(65)) {
_root.todo.jdirx = 'left';
}
}
}
}
}
}
if (_root.cinematic == false) {
if (_root.todo.tio.agarrao < 1) {
if (_root.todo.jump == false) {
if (Key.isDown(38) || Key.isDown(87) and _root.todo.patada != true and _root.todo.tio.agarrao < 1) {
if (_root.todo.corriendo == false) {
_parent.piernas.gotoAndPlay(1);
_root.todo.corriendo = true;
}
_root.todo.tio.posy -= 6;
tecla = true;
} else {
if (Key.isDown(40) || Key.isDown(83) and _root.todo.patada != true and _root.todo.tio.agarrao < 1) {
if (_root.todo.corriendo == false) {
_parent.piernas.gotoAndPlay(1);
_root.todo.corriendo = true;
}
_root.todo.tio.posy += 6;
tecla = true;
} else {
tecla = false;
}
}
if (Key.isDown(39) || Key.isDown(68) and _root.todo.patada != true and _root.todo.tio.agarrao < 1) {
_root.todo.tiodir = 'right';
if (_root.todo.corriendo == false) {
_parent.piernas.gotoAndPlay(1);
_root.todo.corriendo = true;
}
if (_root.todo.tio._xscale == -_root.todo.inixscale) {
_root.cambio2 = 5;
_root.todo.tio._xscale = _root.todo.inixscale;
_parent.mano._x = 0;
_parent.brazo._x = 0;
_parent.antebrazo._x = 0;
_parent.codo._x = 0;
_parent.hombro._x = 0;
_parent.corbata._x = 0;
this._rotation = 0;
this.gotoAndStop(50);
_parent.piernas.gotoAndPlay(1);
}
if (_root.todo.veltio_x < 0) {
_root.todo.veltio_x = 0;
}
_root.todo.tio._x += _root.todo.veltio_x;
if (_root.todo.maxveltio_x >= _root.todo.veltio_x) {
_root.todo.veltio_x += 3;
}
} else {
if (Key.isDown(37) || Key.isDown(65) and _root.todo.patada != true and _root.todo.tio.agarrao < 1) {
_root.todo.tiodir = 'left';
if (_root.todo.corriendo == false) {
_parent.piernas.gotoAndPlay(1);
_root.todo.corriendo = true;
}
if (_root.todo.tio._xscale == _root.todo.inixscale) {
_root.cambio2 = 5;
_root.todo.tio._xscale = -_root.todo.inixscale;
_parent.mano._x = 0;
_parent.brazo._x = 0;
_parent.antebrazo._x = 0;
_parent.codo._x = 0;
_parent.hombro._x = 0;
_parent.corbata._x = 0;
this._rotation = 0;
this.gotoAndStop(50);
}
if (_root.todo.veltio_x > 0) {
_root.todo.veltio_x = 0;
}
_root.todo.tio._x += _root.todo.veltio_x;
if (_root.todo.maxveltio_x >= -_root.todo.veltio_x) {
_root.todo.veltio_x -= 3;
}
} else {
if (_root.todo.corriendo == true and tecla == false) {
_parent.piernas.gotoAndPlay(30);
_root.todo.corriendo = false;
}
_root.todo.veltio_x /= 1.3;
_root.todo.tio._x += _root.todo.veltio_x;
}
}
}
}
if (_root.todo.tio._x >= 680 - _root.todo.tio.posy) {
_root.todo.tio._x = 680 - _root.todo.tio.posy;
}
if (_root.todo.tio._x <= -720 - _root.todo.tio.posy) {
_root.todo.tio._x = -720 - _root.todo.tio.posy;
}
if (_root.todo.tio.posy <= -195) {
_root.todo.tio.posy = -195;
}
if (_root.todo.tio.posy >= -10) {
_root.todo.tio.posy = -10;
}
if (_root.todo.tio.agarrao < 1) {
if (_root.todo.jump != false) {
if (Key.isDown(38) || Key.isDown(87) and _root.todo.patada != true) {
if (_root.velj_y > -3) {
_root.velj_y -= 0.5;
}
} else {
if (Key.isDown(40) || Key.isDown(83) and _root.todo.patada != true) {
if (_root.velj_y < 3) {
_root.velj_y += 0.5;
}
}
}
if (Key.isDown(39) || Key.isDown(68) and _root.todo.patada != true) {
_root.todo.tiodir = 'right';
if (_root.velj_2x < 8) {
_root.velj_2x += 1;
}
} else {
if (Key.isDown(37) || Key.isDown(65) and _root.todo.patada != true) {
_root.todo.tiodir = 'left';
if (_root.velj_2x > -8) {
_root.velj_2x -= 1;
}
}
}
}
}
} else {
--_root.cinematic_count;
if (_root.cinematic_count <= -12) {
_parent._visible = true;
_root.todo.sombra_tio._visible = true;
} else {
_parent._visible = false;
_root.todo.sombra_tio._visible = false;
}
if (_root.cinematic_count <= 0) {
if (_root.todo.tio.posy < -180) {
_root.todo.tiodir = 'left';
_root.todo.tio.swapDepths(2000000);
_root.todo.tio._xscale = -_root.todo.inixscale;
_root.todo.tio._x -= 7;
_root.todo.tio.posy += 7;
} else {
_root.cinematic = false;
_root.todo.pared_falsa._visible = false;
_root.todo.tio._xscale = _root.todo.inixscale;
_root.cambio2 = 10;
}
}
}
}
}
}
}
instance corbata of movieClip 112 {
onClipEvent (load) {
cont = 0;
anteriorx = this._x;
anteriory = this._y;
rotacion = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_corbata._x;
y2 = _parent.cuerpo.tag_corbata._y;
this._x = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
this._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
if (Math.abs(anteriorx - this._x) > 2) {
this.gotoAndStop(this._currentframe + Math.ceil(anteriorx - this._x));
this._rotation += (Math.ceil(this._x - anteriorx) * 5 - this._rotation) / 3;
} else {
this._rotation += -this._rotation / 10;
if (this._currentframe > 30) {
this.gotoAndStop(this._currentframe - 2);
}
if (this._currentframe < 30) {
this.gotoAndStop(this._currentframe + 2);
}
}
if (_parent.cuerpo._currentframe < 236) {
_parent.cuerpo.cabeza.cap.pelo.gotoAndStop(this._currentframe);
}
anteriorx = this._x;
++cont;
}
}
}
instance humo2 of movieClip 32 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance brazo of movieClip 98 {
onClipEvent (enterFrame) {
this._x = _parent.hombro._x;
this._y = _parent.hombro._y;
difx = this._x - _parent.codo._x;
dify = this._y - _parent.codo._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify * 2);
alfa = 10 * Math.sqrt(difx * difx + dify * dify) - 50;
if (alfa > 100) {
alfa = 100;
} else {
if (alfa < 0) {
alfa = 0;
}
}
this.zona._alpha = alfa;
_parent.codo.manga._alpha = 100 - alfa;
}
}
instance muslo of movieClip 35 {
onClipEvent (enterFrame) {
this._x = _parent.ingle._x;
this._y = _parent.ingle._y;
difx = this._x - _parent.rodilla._x;
dify = this._y - _parent.rodilla._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 4;
}
}
instance antebrazo of movieClip 101 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._x = _parent.codo._x;
this._y = _parent.codo._y;
difx = this._x - _parent.mano._x;
dify = this._y - _parent.mano._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 5;
this.zona.gotoAndStop(Math.ceil(Math.sqrt(difx * difx + dify * dify)));
_parent.codo.gotoAndStop(Math.ceil(Math.sqrt(difx * difx + dify * dify)));
}
}
instance mano of movieClip 123 {
onClipEvent (load) {
if (_parent._name == 'tio') {
stop();
_parent.retrasomousex = _parent._xmouse;
_parent.retrasomousey = _parent._ymouse;
_root.cansancio_hit = 4;
_root.todo.tio.agarrao_i_1 = false;
_root.todo.tio.agarrao_i_2 = false;
_root.todo.tio.agarrao_i_3 = false;
_root.todo.tio.agarrao_d_1 = false;
_root.todo.tio.agarrao_d_2 = false;
_root.todo.tio.agarrao_d_3 = false;
_root.descansando = false;
_root.cambio = 0;
_root.cambio2 = 0;
_root.contador_patada = 0;
_root.contador_agarre = 0;
}
cogsound = new Sound(this);
cogsound.attachSound('pillado');
alcance_brazo = 115;
aga_lado = 'd';
aga_balanceo_d = 0;
aga_balanceo_i = 0;
}
onClipEvent (enterFrame) {
if (_parent._name == 'tio') {
if (_root.num_zombies <= 0 and _root.tutorial == false) {
if (_root.floornum == 2) {
_root.menu_pausa.gotoAndStop(6);
} else {
_root.cleared = true;
_root.menu_pausa.gotoAndStop(4);
if (_root.todo.techo._currentframe < 15) {
_root.todo.techo.gotoAndPlay(15);
}
}
}
if (_root.contador_patada > 20 and _root.contador_agarre > 50 and _root.todo.fuerza < 100 and _root.pausa != false) {
_root.todo.fuerza += 0.08;
if (_root.todo.vida <= 35 and _root.todo.fuerza <= 35) {
_root.todo.vida = _root.todo.fuerza;
} else {
_root.todo.vida = 35;
}
}
++_root.contador_patada;
if (_root.todo.patada == true and _root.pausa == true) {
if (_root.contador_patada > 11 and _root.todo.apretado == false) {
_root.todo.patada = false;
if (_root.todo.fuerza > _root.todo.vida + 2) {
_root.todo.tio.mano._x = 0;
_root.todo.tio.mano._y = 0;
_root.todo.tio.retrasomousex = 0;
_root.todo.tio.retrasomousey = 0;
_root.cambio2 = 8;
}
}
}
if (_root.todo.tio.agarrao < 1) {
++_root.contador_agarre;
} else {
_root.contador_agarre = 0;
}
if (_root.cambio < 1) {
if (_root.todo.fuerza < 70) {
_root.cansancio_hit = 4;
} else {
_root.cansancio_hit = 4;
}
} else {
--_root.cambio;
_root.cansancio_hit = 20;
}
if (_root.cambio2 < 1) {
if (_root.todo.fuerza < 70) {
_root.cansancio_hit = 4;
} else {
_root.cansancio_hit = 4;
}
} else {
--_root.cambio2;
_root.cansancio_hit = 10;
}
_root.mano3x = _root.mano2x;
_root.mano3y = _root.mano2y;
_root.mano2x = _root.mano1x;
_root.mano2y = _root.mano1y;
_root.mano1x = this._x * 0.67 * Math.round(_parent._xscale / 100) + _parent._x;
_root.mano1y = this._y * 0.67 + _parent._y;
_root.pie3x = _root.pie2x;
_root.pie3y = _root.pie2y;
_root.pie2x = _root.pie1x;
_root.pie2y = _root.pie1y;
_root.pie1x = _parent.pie._x * 0.67 * Math.round(_parent._xscale / 100) + _parent._x;
_root.pie1y = _parent.pie._y * 0.67 + _parent._y;
if (_root.pausa == true) {
agarrao = _root.todo.tio.agarrao1 + _root.todo.tio.agarrao2;
if (_root.todo.tio.agarrao < 1) {
_root.todo.tio.agarrao_i_1 = false;
_root.todo.tio.agarrao_i_2 = false;
_root.todo.tio.agarrao_i_3 = false;
_root.todo.tio.agarrao_d_1 = false;
_root.todo.tio.agarrao_d_2 = false;
_root.todo.tio.agarrao_d_3 = false;
_root.escala = 100;
if (this._visible != true) {
this._visible = true;
_root.todo.corriendo = true;
_parent.hombro._visible = true;
_parent.antebrazo._visible = true;
_parent.brazo._visible = true;
_parent.codo._visible = true;
}
}
if (_root.todo.tio.agarrao > 0) {
_root.cansancio_hit = 2;
if (_root.floornum == 1) {
_root.todo.fuerza -= 0.25 * _root.todo.tio.agarrao * (1 + _root.num_deads / 250);
} else {
_root.todo.fuerza -= 0.25 * _root.todo.tio.agarrao;
}
_root.rage -= 0.25 * _root.todo.tio.agarrao;
if (this._visible != false) {
this._visible = false;
cogsound.start();
_parent.piernas.gotoAndStop(37);
_root.todo.corriendo = false;
_parent.hombro._visible = false;
_parent.antebrazo._visible = false;
_parent.brazo._visible = false;
_parent.codo._visible = false;
_parent.brazofalso._visible = true;
}
_parent.brazofalso._x = _parent.cuerpo.brazofalso._x + _parent.cuerpo._x;
_parent.brazofalso._y = _parent.cuerpo.brazofalso._y + _parent.cuerpo._y;
_parent.brazofalso._rotation = _parent.cuerpo.brazofalso._rotation + _parent.cuerpo._rotation;
if (_root.todo.tio.cuerpo._currentframe < 20 and aga_lado1 == 'd') {
aga_lado1 = 'i';
aga_balanceo_i += 0.5;
} else {
if (_root.todo.tio.cuerpo._currentframe > 70 and aga_lado1 != 'd') {
aga_lado1 = 'd';
aga_balanceo_d += 0.5;
}
}
if (_root.todo.tio.cuerpo._currentframe + 1 < frameanterior and aga_lado == 'd') {
aga_lado = 'i';
aga_balanceo_i += 0.5;
} else {
if (_root.todo.tio.cuerpo._currentframe > frameanterior + 1 and aga_lado != 'd') {
aga_lado = 'd';
aga_balanceo_d += 0.5;
}
}
frameanterior = _root.todo.tio.cuerpo._currentframe;
if (aga_balanceo_d > -2 + 3 * _root.todo.tio.agarrao or aga_balanceo_d > 8) {
if (_root.todo.tio.agarrao_i_2 != false) {
_root.todo[_root.todo.tio.agarrao_i_2].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_i_2].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_i_2]._x -= 60;
_root.todo.tio.agarrao_i_2 = false;
--_root.todo.tio.agarrao;
}
}
if (aga_balanceo_i > -2 + 3 * _root.todo.tio.agarrao or aga_balanceo_i > 8) {
if (_root.todo.tio.agarrao_d_2 != false) {
_root.todo[_root.todo.tio.agarrao_d_2].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_d_2].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_d_2]._x += 60;
_root.todo.tio.agarrao_d_2 = false;
--_root.todo.tio.agarrao;
}
}
if (aga_balanceo_d > 2 + 3 * _root.todo.tio.agarrao) {
_root.todo[_root.todo.tio.agarrao_i_1].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_i_2].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_i_3].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_i_1].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_i_2].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_i_3].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_i_1].aga = false;
_root.todo[_root.todo.tio.agarrao_i_2].aga = false;
_root.todo[_root.todo.tio.agarrao_i_3].aga = false;
_root.todo[_root.todo.tio.agarrao_i_1]._x -= 60;
_root.todo[_root.todo.tio.agarrao_i_2]._x -= 60;
_root.todo[_root.todo.tio.agarrao_i_3]._x -= 60;
_root.todo.tio.agarrao_i_1 = false;
_root.todo.tio.agarrao_i_2 = false;
_root.todo.tio.agarrao_i_3 = false;
if (_root.todo.tio.agarrao_d_1 == false and _root.todo.tio.agarrao_d_2 == false and _root.todo.tio.agarrao_d_3 == false) {
this._visible = true;
_parent.hombro._visible = true;
_parent.antebrazo._visible = true;
_parent.brazo._visible = true;
_parent.codo._visible = true;
_parent.brazofalso._visible = false;
aga_balanceo_i = 0;
aga_balanceo_d = 0;
_root.todo.tio.agarrao = 0;
_root.todo.corriendo = false;
}
}
if (aga_balanceo_i > 2 + 3 * _root.todo.tio.agarrao) {
_root.todo[_root.todo.tio.agarrao_d_1].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_d_2].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_d_3].gotoAndPlay('soltarse');
_root.todo[_root.todo.tio.agarrao_d_1].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_d_2].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_d_3].estado = 'retro';
_root.todo[_root.todo.tio.agarrao_d_1].aga = false;
_root.todo[_root.todo.tio.agarrao_d_2].aga = false;
_root.todo[_root.todo.tio.agarrao_d_3].aga = false;
_root.todo[_root.todo.tio.agarrao_d_1]._x += 60;
_root.todo[_root.todo.tio.agarrao_d_2]._x += 60;
_root.todo[_root.todo.tio.agarrao_d_3]._x += 60;
_root.todo.tio.agarrao_d_1 = false;
_root.todo.tio.agarrao_d_2 = false;
_root.todo.tio.agarrao_d_3 = false;
if (_root.todo.tio.agarrao_i_1 == false and _root.todo.tio.agarrao_i_2 == false and _root.todo.tio.agarrao_i_3 == false) {
this._visible = true;
_root.todo.corriendo = true;
_parent.hombro._visible = true;
_parent.antebrazo._visible = true;
_parent.brazo._visible = true;
_parent.codo._visible = true;
_parent.brazofalso._visible = false;
aga_balanceo_i = 0;
aga_balanceo_d = 0;
_root.todo.tio.agarrao = 0;
}
}
_root.todo.corriendo = false;
}
if (_root.mano_target == 'tutorial') {
mouse_x = _parent.mouse.mouse._x - 120;
mouse_y = _parent.mouse.mouse._y - 200;
} else {
mouse_x = _parent._xmouse;
mouse_y = _parent._ymouse;
}
_parent.tag._x = mouse_x;
_parent.tag._y = mouse_y;
_parent.retrasomousex += (mouse_x - this._x) / _root.cansancio_hit;
_parent.retrasomousey += (mouse_y - this._y) / _root.cansancio_hit;
if (_parent.retrasomousex > alcance_brazo) {
_parent.retrasomousex = alcance_brazo;
} else {
if (_parent.retrasomousex < -alcance_brazo) {
_parent.retrasomousex = -alcance_brazo;
}
}
if (_parent.retrasomousey > alcance_brazo) {
_parent.retrasomousey = alcance_brazo;
} else {
if (_parent.retrasomousey < -alcance_brazo) {
_parent.retrasomousey = -alcance_brazo;
}
}
if (_root.todo.tio._x >= 680 - _root.todo.tio.posy and _parent.retrasomousex > 70) {
_parent.retrasomousex = 70;
}
if (_root.todo.tio._x <= -720 - _root.todo.tio.posy and _parent.retrasomousex > 70) {
_parent.retrasomousex = 70;
}
if (_root.todo.patada != true) {
if (_parent.cuerpo._rotation < -3) {
_parent.cuerpo._rotation += 2;
}
if (_parent.cuerpo._rotation > 3) {
_parent.cuerpo._rotation -= 2;
}
max_hyp = 45;
max_hyp_codo = 22;
goto = Math.floor((_parent.retrasomousex - _parent.cuerpo._x + 100) / 2);
if (goto > 90) {
goto = 90;
}
if (goto < 1) {
goto = 1;
}
_parent.cuerpo.cabeza.cap._rotation = -(_parent.cuerpo.tag_hombro._y - this._y) / 3;
_parent.cuerpo.gotoAndStop(goto);
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_hombro._x;
y2 = _parent.cuerpo.tag_hombro._y;
supuesto_hombro_x = (-_parent.hombro._x + _parent.mano._x) / 6 + x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
supuesto_hombro_y = (-_parent.hombro._y + _parent.mano._y) / 6 - 8 + y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
_parent.hombro._x = supuesto_hombro_x - (-_parent.hombro._x + _parent.mano._x) / 7;
_parent.hombro._y = supuesto_hombro_y - (-_parent.hombro._y + _parent.mano._y) / 10 + 6;
if (_root.descansando != true) {
this._x = _parent.retrasomousex;
this._y = _parent.retrasomousey;
} else {
_parent.retrasomousex = 0;
_parent.retrasomousey = 0;
this._x = 0;
this._y = 0;
}
difx = supuesto_hombro_x - _parent.mano._x;
dify = supuesto_hombro_y - _parent.mano._y;
if (Math.sqrt(difx * difx + dify * dify) > max_hyp + 1) {
this._y = supuesto_hombro_y - Math.sin(Math.atan2(dify, difx)) * max_hyp;
this._x = supuesto_hombro_x - Math.cos(Math.atan2(dify, difx)) * max_hyp;
_parent.retrasomousex = this._x;
_parent.retrasomousey = this._y;
}
difx = supuesto_hombro_x - _parent.mano._x;
dify = supuesto_hombro_y - _parent.mano._y;
if (_root.descansando != true) {
_parent.cuerpo._rotation = -(Math.ceil(difx) / 3);
}
altura = Math.abs(Math.abs(dify) - max_hyp) / max_hyp;
codotargety = altura * 0.2 * (10 - 10 * Math.abs((_parent.cuerpo._currentframe - 42) / 43)) + (this._y + 10 + supuesto_hombro_y) / 2;
codotargetx = altura * 2 * (-14 + 14 * Math.abs((_parent.cuerpo._currentframe - 42) / 43)) + (supuesto_hombro_x + this._x) / 2;
_parent.codo._x += (codotargetx - _parent.codo._x) / 1;
_parent.codo._y += (codotargety - _parent.codo._y) / 1;
_parent.mano._rotation = (-(dify * Math.abs(dify)) / 1600) * 90;
this.gotoAndStop(Math.ceil(difx) + 40);
difx = supuesto_hombro_x - _parent.codo._x;
dify = supuesto_hombro_y - _parent.codo._y;
if (Math.sqrt(difx * difx + dify * dify) > max_hyp_codo) {
_parent.codo._y = supuesto_hombro_y - Math.sin(Math.atan2(dify, difx)) * max_hyp_codo;
_parent.codo._x = supuesto_hombro_x - Math.cos(Math.atan2(dify, difx)) * max_hyp_codo;
}
_parent.corbata._yscale = 100;
vel = 2;
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_ingle._x;
y2 = _parent.cuerpo.tag_ingle._y;
_parent.ingle._x += x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2 - _parent.ingle._x;
_parent.ingle._y += y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2 - _parent.ingle._y;
if (_root.todo._ymouse > _root.todo.tio.posy + 16 and _root.todo.corriendo == false and _root.todo.tio.agarrao < 1 and _root.mano_target != 'tutorial') {
if (_parent.piernas._currentframe < 175) {
_parent.piernas.gotoAndPlay(175);
_root.todo.agachado = 0;
_root.todo.agacharse = true;
}
animacion = 'piernas';
} else {
_root.todo.agacharse = false;
if (_parent.piernas._currentframe < 175) {
animacion = 'cuerpo';
} else {
if (_parent.piernas._currentframe < 180) {
_parent.piernas.gotoAndPlay(180);
}
}
}
if (_root.todo.corriendo == true || _root.todo.jump == true) {
_parent.rodilla._x += goto / 7 - 6 + (_parent.piernas._x + _parent.piernas.tag_rodilla._x - _parent.rodilla._x) / vel;
_parent.rodilla._y += goto / 12 - 3 + (_parent.piernas._y + _parent.piernas.tag_rodilla._y - _parent.rodilla._y) / vel;
_parent.pie._x += goto / 9 - 5 + (_parent.piernas._x + _parent.piernas.tag_pie._x - _parent.pie._x) / vel;
_parent.pie._y += goto / 20 - 3 + (_parent.piernas._y + _parent.piernas.tag_pie._y - _parent.pie._y) / vel;
_parent.pie._rotation = _parent.piernas._y + 80 + _parent.piernas.tag_pie._rotation;
if (_parent.pie._currentframe > 15) {
_parent.pie.gotoAndStop(_parent.pie._currentframe - 14);
} else {
_parent.pie.gotoAndStop(1);
}
_parent.espinilla2._x += (_parent.piernas._x + _parent.piernas.tag_rodilla2._x - _parent.espinilla2._x) / vel;
_parent.espinilla2._y += (_parent.piernas._y + _parent.piernas.tag_rodilla2._y - _parent.espinilla2._y) / vel;
_parent.pie2._x += (_parent.piernas._x + _parent.piernas.tag_pie2._x - _parent.pie2._x) / vel;
_parent.pie2._y += (_parent.piernas._y + _parent.piernas.tag_pie2._y - _parent.pie2._y) / vel;
_parent.pie2._rotation = _parent.piernas._y + 80 + _parent.piernas.tag_pie2._rotation;
if (_parent.pie2._currentframe > 15) {
_parent.pie2.gotoAndStop(_parent.pie2._currentframe - 14);
} else {
_parent.pie2.gotoAndStop(1);
}
} else {
_parent.rodilla._x += (_parent[animacion]._x + _parent[animacion].tag_rodilla._x - _parent.rodilla._x) / vel;
_parent.rodilla._y += (_parent[animacion]._y + _parent[animacion].tag_rodilla._y - _parent.rodilla._y) / vel;
_parent.pie._x += (_parent[animacion]._x + _parent[animacion].tag_pie._x - _parent.pie._x) / vel;
_parent.pie._y += (_parent[animacion]._y + _parent[animacion].tag_pie._y - _parent.pie._y) / vel;
_parent.pie._rotation = _parent[animacion]._y + 80 + _parent[animacion].tag_pie._rotation;
if (_parent.pie._currentframe > 15) {
_parent.pie.gotoAndStop(_parent.pie._currentframe - 14);
} else {
_parent.pie.gotoAndStop(1);
}
_parent.espinilla2._x += (_parent.piernas._x + _parent.piernas.tag_rodilla2._x - _parent.espinilla2._x) / vel;
_parent.espinilla2._y += (_parent.piernas._y + _parent.piernas.tag_rodilla2._y - _parent.espinilla2._y) / vel;
_parent.pie2._x += (_parent.piernas._x + _parent.piernas.tag_pie2._x - _parent.pie2._x) / vel;
_parent.pie2._y += (_parent.piernas._y + _parent.piernas.tag_pie2._y - _parent.pie2._y) / vel;
_parent.pie2._rotation = _parent.piernas._y + 80 + _parent.piernas.tag_pie2._rotation;
if (_parent.pie2._currentframe > 15) {
_parent.pie2.gotoAndStop(_parent.pie2._currentframe - 15);
} else {
if (_parent.pie2._currentframe > 4) {
_parent.pie2.gotoAndStop(this._currentframe - 3);
}
}
}
} else {
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_hombro._x;
y2 = _parent.cuerpo.tag_hombro._y;
_parent.hombro._x = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
_parent.hombro._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
}
_root.manox = this._x;
_root.manoy = this._y;
_root.antx2 = _root.antx1;
_root.antx1 = _root.manox;
_root.anty2 = _root.anty1;
_root.anty1 = _root.manoy;
}
_root._xmouse = 300;
_root._ymouse = -300;
}
}
}
instance of movieClip 38 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._x = _parent.rodilla._x;
this._y = _parent.rodilla._y;
difx = this._x - _parent.pie._x;
dify = this._y - _parent.pie._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 8;
}
}
instance pie of movieClip 43 {
onClipEvent (load) {
cuerpoini = _parent.cuerpo._x;
fotogramas_talon = 0;
max_hyp = 55;
max_hyp_rodilla = 27;
fotogramas_talon = 0;
if (_parent._name == 'tio') {
_root.cansancio_hit = 20;
}
}
onClipEvent (enterFrame) {
if (_parent._name == 'tio') {
if (_root.pausa == true) {
if (_root.todo.patada == true) {
if (_root.cambio < 1) {
if (_root.todo.fuerza < 70) {
_root.cansancio_hit = 3 + (70 - _root.todo.fuerza) / 5;
} else {
_root.cansancio_hit = 3;
}
} else {
--_root.cambio;
_root.cansancio_hit = 14;
}
if (_root.mano_target == 'tutorial') {
mouse_x = _parent.mouse.mouse._x - 120;
mouse_y = _parent.mouse.mouse._y - 200;
} else {
mouse_x = _parent._xmouse;
mouse_y = _parent._ymouse;
}
_root.todo.agachado = false;
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_ingle._x;
y2 = _parent.cuerpo.tag_ingle._y;
inglesitiox = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
_parent.ingle._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
this._x += (mouse_x - this._x) / _root.cansancio_hit;
this._y += (mouse_y - this._y) / _root.cansancio_hit;
difx = _parent.ingle._x - _parent.pie._x;
dify = _parent.ingle._y - _parent.pie._y;
hyp = Math.sqrt(difx * difx + dify * dify);
if (hyp > max_hyp + 2) {
hyp = max_hyp + 2;
this._y = _parent.ingle._y - Math.sin(Math.atan2(dify, difx)) * max_hyp;
this._x = _parent.ingle._x - Math.cos(Math.atan2(dify, difx)) * max_hyp;
}
difx = _parent.ingle._x - _parent.pie._x;
dify = _parent.ingle._y - _parent.pie._y;
goto = 100 + Math.floor(_parent.cuerpo._y - _parent.pie._y + 55);
if (goto > 190) {
goto = 190;
}
if (goto < 100) {
goto = 100;
}
_parent.cuerpo.gotoAndStop(goto);
_parent.corbata._yscale = 200 - (goto + 110) / 2;
if (difx < 0 and dify < 0) {
this._rotation = -(hyp - Math.abs(difx - dify)) / 1.5;
fotogramas_talon = -Math.ceil(Math.abs(hyp - Math.abs(difx - dify)));
} else {
fotogramas_talon = 0;
this._rotation = 0;
}
goto = Math.ceil(dify) + 55 + fotogramas_talon;
if (goto < 1) {
goto = 1;
}
this.gotoAndStop(goto);
_root.fotogramas_t = goto;
_parent.cuerpo._rotation = Math.ceil(difx) / 1.5;
_parent.ingle._x = inglesitiox - Math.ceil(difx) / 6 + 3;
altura = Math.abs(Math.abs(dify) - 55) / 55;
rodillatargety = (-55 + difx) / 7 + altura * 0.2 * -(30 * Math.abs((_parent.cuerpo._rotation + 30) / 43)) + (this._y + 10 + _parent.ingle._y) / 2;
rodillatargetx = altura * 2 * (24 - 14 * Math.abs((_parent.cuerpo._rotation + 40) / 43)) + (_parent.ingle._x + this._x) / 2;
_parent.rodilla._x += (rodillatargetx - _parent.rodilla._x) / 1;
_parent.rodilla._y += (rodillatargety - _parent.rodilla._y) / 1;
difx = _parent.ingle._x - _parent.rodilla._x;
dify = _parent.ingle._y - _parent.rodilla._y;
if (Math.sqrt(difx * difx + dify * dify) > max_hyp_rodilla) {
_parent.rodilla._y = _parent.ingle._y - Math.sin(Math.atan2(dify, difx)) * max_hyp_rodilla;
_parent.rodilla._x = _parent.ingle._x - Math.cos(Math.atan2(dify, difx)) * max_hyp_rodilla;
}
vel = 2;
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_codo._x;
y2 = _parent.cuerpo.tag_codo._y;
_parent.codo._x += (x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2 - _parent.codo._x) / vel;
_parent.codo._y += (y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2 - _parent.codo._y) / vel;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_mano._x;
y2 = _parent.cuerpo.tag_mano._y;
_parent.mano._x += (x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2 - _parent.mano._x) / vel;
_parent.mano._y += (y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2 - _parent.mano._y) / vel;
difx = _parent.hombro._x - _parent.mano._x;
dify = _parent.hombro._y - _parent.mano._y;
_parent.mano._rotation = (-(dify * Math.abs(dify)) / 1600) * 90;
_parent.mano.gotoAndStop(Math.ceil(difx) + 40);
_parent.espinilla2._x += (_parent.piernas._x + _parent.piernas.tag_rodilla2._x - _parent.espinilla2._x) / vel;
_parent.espinilla2._y += (_parent.piernas._y + _parent.piernas.tag_rodilla2._y - _parent.espinilla2._y) / vel;
_parent.pie2._x += (_parent.piernas._x + _parent.piernas.tag_pie2._x - _parent.pie2._x) / vel;
_parent.pie2._y += (_parent.piernas._y + _parent.piernas.tag_pie2._y - _parent.pie2._y) / vel;
_parent.pie2._rotation = _parent.piernas._y + 80 + _parent.piernas.tag_pie2._rotation;
if (_parent.pie2._currentframe > 15) {
_parent.pie2.gotoAndStop(_parent.pie2._currentframe - 15);
} else {
if (_parent.pie2._currentframe > 4) {
_parent.pie2.gotoAndStop(this._currentframe - 3);
}
}
}
}
}
}
}
instance piernas of movieClip 126 {
onClipEvent (load) {
this._visible = false;
stop();
}
}
instance brazofalso of movieClip 56 {
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.todo.tio.agarrao < 1) {
this._visible = false;
}
}
}
instance mouse of movieClip 129 {
onClipEvent (load) {
this._visible = false;
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
instance humo1 of movieClip 32 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance of movieClip 35 {
onClipEvent (enterFrame) {
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_ingle2._x;
y2 = _parent.cuerpo.tag_ingle2._y;
this._x = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
this._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
difx = this._x - _parent.espinilla2._x;
dify = this._y - _parent.espinilla2._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 4;
}
}
instance espinilla2 of movieClip 38 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
difx = this._x - _parent.pie2._x;
dify = this._y - _parent.pie2._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify);
}
}
instance cuerpo of movieClip 106 {
onClipEvent (load) {
_root.cinematic = true;
_root.todo.veltio_x = 1;
_root.todo.maxveltio_x = 15;
_root.todo.inixscale = _root.todo.tio._xscale;
_root.todo.corriendo = false;
_root.todo.tio.posy = _root.todo.tio._y;
_root.todo.tio.altura = 0;
_root.todo.jump = false;
alto = this._y;
_root.todo.patada = false;
_root.todo.tiodir = 'left';
_root.qual = 'medium';
tiempo_sep = 0;
_root.patada = false;
_root.todo.patada = false;
_root.todo.jump2 = false;
_root.todo.tio.agarrao_i_1 = false;
_root.todo.tio.agarrao_i_2 = false;
_root.todo.tio.agarrao_i_3 = false;
_root.todo.tio.agarrao_d_1 = false;
_root.todo.tio.agarrao_d_2 = false;
_root.todo.tio.agarrao_d_3 = false;
_root.todo.vida = 70;
this.gotoAndPlay(211);
}
}
instance corbata of movieClip 112 {
onClipEvent (load) {
cont = 0;
anteriorx = this._x;
anteriory = this._y;
rotacion = 0;
stop();
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_corbata._x;
y2 = _parent.cuerpo.tag_corbata._y;
this._x = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
this._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
if (Math.abs(anteriorx - this._x) > 2) {
this.gotoAndStop(this._currentframe + Math.ceil(anteriorx - this._x));
this._rotation += (Math.ceil(this._x - anteriorx) * 5 - this._rotation) / 3;
} else {
this._rotation += -this._rotation / 10;
if (this._currentframe > 30) {
this.gotoAndStop(this._currentframe - 2);
}
if (this._currentframe < 30) {
this.gotoAndStop(this._currentframe + 2);
}
}
if (_parent.cuerpo._currentframe < 236) {
_parent.cuerpo.cabeza.cap.pelo.gotoAndStop(this._currentframe);
}
anteriorx = this._x;
++cont;
}
}
}
instance humo2 of movieClip 32 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance muslo of movieClip 35 {
onClipEvent (enterFrame) {
this._x = _parent.ingle._x;
this._y = _parent.ingle._y;
difx = this._x - _parent.rodilla._x;
dify = this._y - _parent.rodilla._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 4;
}
}
instance of movieClip 38 {
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
this._x = _parent.rodilla._x;
this._y = _parent.rodilla._y;
difx = this._x - _parent.pie._x;
dify = this._y - _parent.pie._y;
this._rotation = Math.atan2(dify, difx) * 180 / Math.PI;
this.zona._width = Math.sqrt(difx * difx + dify * dify) + 8;
}
}
instance pie of movieClip 43 {
onClipEvent (load) {
cuerpoini = _parent.cuerpo._x;
fotogramas_talon = 0;
max_hyp = 55;
max_hyp_rodilla = 27;
fotogramas_talon = 0;
_root.cansancio_hit = 20;
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (_root.todo.patada == true) {
if (_root.cambio < 1) {
if (_root.todo.fuerza < 70) {
_root.cansancio_hit = 3 + (70 - _root.todo.fuerza) / 5;
} else {
_root.cansancio_hit = 3;
}
} else {
--_root.cambio;
_root.cansancio_hit = 14;
}
_root.todo.agachado = false;
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_ingle._x;
y2 = _parent.cuerpo.tag_ingle._y;
inglesitiox = x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2;
_parent.ingle._y = y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2;
this._x += (_parent._xmouse - this._x) / _root.cansancio_hit;
this._y += (_parent._ymouse - this._y) / _root.cansancio_hit;
difx = _parent.ingle._x - _parent.pie._x;
dify = _parent.ingle._y - _parent.pie._y;
hyp = Math.sqrt(difx * difx + dify * dify);
if (hyp > max_hyp + 2) {
hyp = max_hyp + 2;
this._y = _parent.ingle._y - Math.sin(Math.atan2(dify, difx)) * max_hyp;
this._x = _parent.ingle._x - Math.cos(Math.atan2(dify, difx)) * max_hyp;
}
difx = _parent.ingle._x - _parent.pie._x;
dify = _parent.ingle._y - _parent.pie._y;
goto = 100 + Math.floor(_parent.cuerpo._y - _parent.pie._y + 55);
if (goto > 190) {
goto = 190;
}
if (goto < 100) {
goto = 100;
}
_parent.cuerpo.gotoAndStop(goto);
_parent.corbata._yscale = 200 - (goto + 110) / 2;
if (difx < 0 and dify < 0) {
this._rotation = -(hyp - Math.abs(difx - dify)) / 1.5;
fotogramas_talon = -Math.ceil(Math.abs(hyp - Math.abs(difx - dify)));
} else {
fotogramas_talon = 0;
this._rotation = 0;
}
goto = Math.ceil(dify) + 55 + fotogramas_talon;
if (goto < 1) {
goto = 1;
}
this.gotoAndStop(goto);
_root.fotogramas_t = goto;
_parent.cuerpo._rotation = Math.ceil(difx) / 1.5;
_parent.ingle._x = inglesitiox - Math.ceil(difx) / 6 + 3;
altura = Math.abs(Math.abs(dify) - 55) / 55;
rodillatargety = (-55 + difx) / 7 + altura * 0.2 * -(30 * Math.abs((_parent.cuerpo._rotation + 30) / 43)) + (this._y + 10 + _parent.ingle._y) / 2;
rodillatargetx = altura * 2 * (24 - 14 * Math.abs((_parent.cuerpo._rotation + 40) / 43)) + (_parent.ingle._x + this._x) / 2;
_parent.rodilla._x += (rodillatargetx - _parent.rodilla._x) / 1;
_parent.rodilla._y += (rodillatargety - _parent.rodilla._y) / 1;
difx = _parent.ingle._x - _parent.rodilla._x;
dify = _parent.ingle._y - _parent.rodilla._y;
if (Math.sqrt(difx * difx + dify * dify) > max_hyp_rodilla) {
_parent.rodilla._y = _parent.ingle._y - Math.sin(Math.atan2(dify, difx)) * max_hyp_rodilla;
_parent.rodilla._x = _parent.ingle._x - Math.cos(Math.atan2(dify, difx)) * max_hyp_rodilla;
}
vel = 2;
angulo = _parent.cuerpo._rotation * Math.PI / 180;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_codo._x;
y2 = _parent.cuerpo.tag_codo._y;
_parent.codo._x += (x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2 - _parent.codo._x) / vel;
_parent.codo._y += (y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2 - _parent.codo._y) / vel;
x1 = _parent.cuerpo._x;
y1 = _parent.cuerpo._y;
x2 = _parent.cuerpo.tag_mano._x;
y2 = _parent.cuerpo.tag_mano._y;
_parent.mano._x += (x1 + Math.cos(angulo) * x2 - Math.sin(angulo) * y2 - _parent.mano._x) / vel;
_parent.mano._y += (y1 + Math.sin(angulo) * x2 + Math.cos(angulo) * y2 - _parent.mano._y) / vel;
difx = _parent.hombro._x - _parent.mano._x;
dify = _parent.hombro._y - _parent.mano._y;
_parent.mano._rotation = (-(dify * Math.abs(dify)) / 1600) * 90;
_parent.mano.gotoAndStop(Math.ceil(difx) + 40);
_parent.espinilla2._x += (_parent.piernas._x + _parent.piernas.tag_rodilla2._x - _parent.espinilla2._x) / vel;
_parent.espinilla2._y += (_parent.piernas._y + _parent.piernas.tag_rodilla2._y - _parent.espinilla2._y) / vel;
_parent.pie2._x += (_parent.piernas._x + _parent.piernas.tag_pie2._x - _parent.pie2._x) / vel;
_parent.pie2._y += (_parent.piernas._y + _parent.piernas.tag_pie2._y - _parent.pie2._y) / vel;
_parent.pie2._rotation = _parent.piernas._y + 80 + _parent.piernas.tag_pie2._rotation;
if (_parent.pie2._currentframe > 15) {
_parent.pie2.gotoAndStop(_parent.pie2._currentframe - 15);
} else {
if (_parent.pie2._currentframe > 4) {
_parent.pie2.gotoAndStop(this._currentframe - 3);
}
}
}
}
}
}
instance piernas of movieClip 126 {
onClipEvent (load) {
this._visible = false;
stop();
}
}
}
frame 1 {
function time_to_string(time_to_convert) {
elapsed_hours = Math.floor(time_to_convert / 3600000);
remaining = time_to_convert - elapsed_hours * 3600000;
elapsed_minutes = Math.floor(remaining / 60000);
remaining -= elapsed_minutes * 60000;
elapsed_seconds = Math.floor(remaining / 1000);
remaining -= elapsed_seconds * 1000;
elapsed_fs = Math.floor(remaining / 10);
if (elapsed_hours < 10) {
hours = '0' + elapsed_hours.toString();
} else {
hours = elapsed_hours.toString();
}
if (elapsed_minutes < 10) {
minutes = '0' + elapsed_minutes.toString();
} else {
minutes = elapsed_minutes.toString();
}
if (elapsed_seconds < 10) {
seconds = '0' + elapsed_seconds.toString();
} else {
seconds = elapsed_seconds.toString();
}
if (elapsed_fs < 10) {
hundredths = '0' + elapsed_fs.toString();
return hours + ':' + minutes + ':' + seconds + ':' + hundredths;
}
hundredths = elapsed_fs.toString();
return hours + ':' + minutes + ':' + seconds + ':' + hundredths;
}
var disco_so;
disco_so = SharedObject.getLocal('data_zombie_exploder');
if (disco_so.data.floornum != undefined) {
if (disco_so.data.floornum < 20) {
_root.floornum = disco_so.data.floornum;
} else {
_root.floornum = 20;
}
} else {
_root.floornum = 20;
}
if (disco_so.data.floorsinlge != undefined) {
if (disco_so.data.floorsinlge < 20) {
_root.floorsinlge = disco_so.data.floorsinlge;
} else {
_root.floorsinlge = 20;
}
} else {
_root.floorsinlge = 20;
}
if (disco_so.data.floornum != undefined) {
_root.firstfloor = disco_so.data.firstfloor;
}
if (disco_so.data.music != undefined) {
_root.music = disco_so.data.music;
}
_root.gore = true;
stop();
}
movieClip 138 {
}
movieClip 139 {
instance rueda of movieClip 138 {
onClipEvent (enterFrame) {
this._rotation = _root.rueda_rotacion;
}
}
}
movieClip 142 {
}
movieClip 143 {
instance of movieClip 142 {
onClipEvent (enterFrame) {
this._rotation = _root.rueda_rotacion;
}
}
}
movieClip 145 {
}
movieClip 147 {
}
movieClip 148 {
instance of movieClip 147 {
onClipEvent (enterFrame) {
this._rotation = _root.rueda_rotacion;
}
}
}
movieClip 149 {
instance rueda of movieClip 139 {
onClipEvent (enterFrame) {
if (_root.rueda_rotacion < 360) {
_root.rueda_rotacion += 2;
} else {
_root.rueda_rotacion = 0;
}
}
}
}
movieClip 151 {
}
movieClip 152 {
}
button 154 {
on (release) {
getURL('http://www.thestylemachine.com/', '_blank');
}
}
// unknown tag 88 length 66
movieClip 159 {
}
movieClip 161 {
}
movieClip 167 {
frame 1 {
_root.rueda_rotacion = 0;
}
frame 84 {
mochi.as2.MochiAd.showPreGameAd({'id': '994d3d775af08f30', 'res': '700x400', 'background': 4915457, 'color': 10485760, 'outline': 3801088, 'no_bg': true});
}
frame 142 {
stop();
}
frame 145 {
_root.gotoAndStop(2);
}
}
movieClip 706 __Packages.mochi.as2.MochiAd {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiAd) {
var v1 = function () {};
mochi.as2.MochiAd = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showPreGameAd = function (options) {
var v26 = {'clip': _root, 'ad_timeout': 3000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showPreloaderAd', 'color': 16747008, 'background': 16777161, 'outline': 13994812, 'no_progress_bar': false, 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}, 'ad_progress': function (percent) {}};
options = mochi.as2.MochiAd._parseOptions(options, v26);
if ('c862232051e0a94e1c3609b3916ddb17'.substr(0) == 'dfeada81ac97cde83665f81c12da7def') {
options.ad_started();
options.ad_finished();
return undefined;
}
var clip = options.clip;
var v22 = 11000;
var v25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v14 = mochi.as2.MochiAd._getRes(options);
var v4 = v14[0];
var v13 = v14[1];
mc._x = v4 * 0.5;
mc._y = v13 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk._x = v4 * -0.5;
chk._y = v13 * -0.5;
var v6 = chk.createEmptyMovieClip('_mochiad_bar', 4);
if (options.no_progress_bar) {
v6._visible = false;
delete options.no_progress_bar;
} else {
v6._x = 10;
v6._y = v13 - 20;
}
var v21 = options.color;
delete options.color;
var v19 = options.background;
delete options.background;
var v23 = options.outline;
delete options.outline;
var v5 = v6.createEmptyMovieClip('_outline', 1);
v5.beginFill(v19);
v5.moveTo(0, 0);
v5.lineTo(v4 - 20, 0);
v5.lineTo(v4 - 20, 10);
v5.lineTo(0, 10);
v5.lineTo(0, 0);
v5.endFill();
var v3 = v6.createEmptyMovieClip('_inside', 2);
v3.beginFill(v21);
v3.moveTo(0, 0);
v3.lineTo(v4 - 20, 0);
v3.lineTo(v4 - 20, 10);
v3.lineTo(0, 10);
v3.lineTo(0, 0);
v3.endFill();
v3._xscale = 0;
var v7 = v6.createEmptyMovieClip('_outline', 3);
v7.lineStyle(0, v23, 100);
v7.moveTo(0, 0);
v7.lineTo(v4 - 20, 0);
v7.lineTo(v4 - 20, 10);
v7.lineTo(0, 10);
v7.lineTo(0, 0);
chk.ad_msec = v22;
chk.ad_timeout = v25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (v2 > 0) {
this._parent._alpha = v2;
} else {
var v3 = this._parent._parent;
mochi.as2.MochiAd.unload(v3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var v2 = this.mc._mochiad_wait;
v2.server_control = true;
v2.started = getTimer();
v2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
chk.onEnterFrame = function () {
var v6 = this._parent._parent;
var v11 = this._parent._mochiad_ctr;
var v5 = getTimer() - this.started;
var v3 = false;
var v4 = v6.getBytesTotal();
var v8 = v6.getBytesLoaded();
var v2 = 100 * v8 / v4;
var v10 = 100 * v5 / chk.ad_msec;
var v9 = this._mochiad_bar._inside;
var v13 = Math.min(100, Math.min(v2 || 0, v10));
v13 = Math.max(this.last_pcnt, v13);
this.last_pcnt = v13;
v9._xscale = v13;
options.ad_progress(v13);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {'id': 'hostLoadPcnt', 'pcnt': v2}, clip._mochiad._containerLCName);
if (v2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var v7 = v11.getBytesTotal();
if (v7 > 0 || typeof v7 == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (v5 > chk.ad_timeout && v2 == 100) {
options.ad_failed();
v3 = true;
}
}
}
if (v5 > chk.ad_msec) {
v3 = true;
}
if (v4 > 0 && v8 >= v4 && v3) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
};
v1.showClickAwayAd = function (options) {
var v9 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showClickAwayAd', 'res': '300x250', 'no_bg': true, 'ad_started': function () {}, 'ad_finished': function () {}, 'ad_loaded': function (width, height) {}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_skipped': function () {}};
options = mochi.as2.MochiAd._parseOptions(options, v9);
var clip = options.clip;
var v8 = options.ad_timeout;
delete options.ad_timeout;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v4 = mochi.as2.MochiAd._getRes(options);
var v10 = v4[0];
var v7 = v4[1];
mc._x = v10 * 0.5;
mc._y = v7 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_timeout = v8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
var v20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var v5 = this._parent._mochiad_ctr;
var v4 = getTimer() - this.started;
var v2 = false;
if (!chk.showing) {
var v3 = v5.getBytesTotal();
if (v3 > 0 || typeof v3 == 'undefined') {
v2 = true;
chk.showing = true;
chk.started = getTimer();
} else {
if (v4 > chk.ad_timeout) {
options.ad_failed();
v2 = true;
}
}
}
if (v2) {
delete this.onEnterFrame;
}
};
};
v1.showInterLevelAd = function (options) {
var v13 = {'clip': _root, 'ad_timeout': 2000, 'fadeout_time': 250, 'regpt': 'o', 'method': 'showTimedAd', 'ad_started': function () {
this.clip.stop();
}, 'ad_finished': function () {
this.clip.play();
}, 'ad_failed': function () {
trace('[MochiAd] Couldn\'t load an ad, make sure that your game\'s local security sandbox is configured for Access Network Only and that you are not using ad blocking software');
}, 'ad_loaded': function (width, height) {}, 'ad_skipped': function () {}};
options = mochi.as2.MochiAd._parseOptions(options, v13);
var clip = options.clip;
var v10 = 11000;
var v12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!mochi.as2.MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
return undefined;
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var v5 = mochi.as2.MochiAd._getRes(options);
var v14 = v5[0];
var v11 = v5[1];
mc._x = v14 * 0.5;
mc._y = v11 * 0.5;
var chk = mc.createEmptyMovieClip('_mochiad_wait', 3);
chk.ad_msec = v10;
chk.ad_timeout = v12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var v2 = 100 * (1 - (getTimer() - this.fadeout_start) / this.fadeout_time);
if (v2 > 0) {
this._parent._alpha = v2;
} else {
var v3 = this._parent._parent;
mochi.as2.MochiAd.unload(v3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var v2 = this.mc._mochiad_wait;
v2.server_control = true;
v2.started = getTimer();
v2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace('[MOCHIAD rpcTestFn] ' + s);
return s;
};
chk.onEnterFrame = function () {
var v5 = this._parent._mochiad_ctr;
var v4 = getTimer() - this.started;
var v2 = false;
if (!chk.showing) {
var v3 = v5.getBytesTotal();
if (v3 > 0 || typeof v3 == 'undefined') {
chk.showing = true;
chk.started = getTimer();
} else {
if (v4 > chk.ad_timeout) {
options.ad_failed();
v2 = true;
}
}
}
if (v4 > chk.ad_msec) {
v2 = true;
}
if (v2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
};
v1.showPreloaderAd = function (options) {
trace('[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0');
mochi.as2.MochiAd.showPreGameAd(options);
};
v1.showTimedAd = function (options) {
trace('[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0');
mochi.as2.MochiAd.showInterLevelAd(options);
};
v1._allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.load = function (options) {
var v13 = {'clip': _root, 'server': 'http://x.mochiads.com/srv/1/', 'method': 'load', 'depth': 10333, 'id': '_UNKNOWN_'};
options = mochi.as2.MochiAd._parseOptions(options, v13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = mochi.as2.MochiAd.getVersion();
var v7 = options.clip;
if (!mochi.as2.MochiAd._isNetworkAvailable()) {
return null;
}
if (v7._mochiad_loaded) {
return null;
}
var v12 = options.depth;
delete options.depth;
var v6 = v7.createEmptyMovieClip('_mochiad', v12);
var v11 = mochi.as2.MochiAd._getRes(options);
options.res = v11[0] + 'x' + v11[1];
options.server += options.id;
delete options.id;
v7._mochiad_loaded = true;
if (v7._url.indexOf('http') != 0) {
trace('[MochiAd] NOTE: Security Sandbox Violation errors below are normal');
}
var v4 = v6.createEmptyMovieClip('_mochiad_ctr', 1);
for (var v8 in options) {
v4[v8] = options[v8];
}
var v10 = v4.server;
delete v4.server;
var v14 = mochi.as2.MochiAd._allowDomains(v10);
v6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
mochi.as2.MochiAd.unload(this._parent);
}
};
}
};
var v5 = new Object();
var v9 = ['', Math.floor((new Date()).getTime()), random(999999)].join('_');
v5.mc = v6;
v5.name = v9;
v5.hostname = v14;
v5.allowDomain = function (d) {
return true;
};
v5.allowInsecureDomain = v5.allowDomain;
v5.connect(v9);
v6.lc = v5;
v4.lc = v9;
v4.st = getTimer();
v4.loadMovie(v10 + '.swf', 'POST');
return v6;
};
v1.unload = function (clip) {
if (typeof clip == 'undefined') {
clip = _root;
}
if (clip.clip && clip.clip._mochiad) {
clip = clip.clip;
}
if (!clip._mochiad) {
return false;
}
mochi.as2.MochiAd.containerNotify(clip, {'id': 'unload'}, clip._mochiad._containerLCName);
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return true;
};
v1._isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1._getRes = function (options) {
var v3 = options.clip.getBounds();
var v2 = 0;
var v1 = 0;
if (typeof options.res != 'undefined') {
var v4 = options.res.split('x');
v2 = parseFloat(v4[0]);
v1 = parseFloat(v4[1]);
} else {
v2 = v3.xMax - v3.xMin;
v1 = v3.yMax - v3.yMin;
}
if (v2 == 0 || v1 == 0) {
v2 = Stage.width;
v1 = Stage.height;
}
return [v2, v1];
};
v1._parseOptions = function (options, defaults) {
var v4 = {};
for (var v8 in defaults) {
v4[v8] = defaults[v8];
}
if (options) {
for (v8 in options) {
v4[v8] = options[v8];
}
}
if (_root.mochiad_options) {
var v5 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v5.length) {
var v3 = v5[v2].split('=');
v4[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
if (v4.id == 'test') {
trace('[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!');
}
return v4;
};
v1.rpc = function (clip, callbackID, arg) {
switch (arg.id) {
case 'setValue':
mochi.as2.MochiAd.setValue(clip, arg.objectName, arg.value);
break;
case 'getValue':
var v4 = mochi.as2.MochiAd.getValue(clip, arg.objectName);
mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v4, clip._mochiad._containerLCName);
break;
case 'runMethod':
var v3 = mochi.as2.MochiAd.runMethod(clip, arg.method, arg.args);
mochi.as2.MochiAd.containerRpcResult(clip, callbackID, v3, clip._mochiad._containerLCName);
break;
default:
trace('[mochiads rpc] unknown rpc id: ' + arg.id);
}
};
v1.setValue = function (base, objectName, value) {
var v2 = objectName.split('.');
var v1;
v1 = 0;
while (v1 < v2.length - 1) {
if (base[v2[v1]] == undefined || base[v2[v1]] == null) {
return undefined;
}
base = base[v2[v1]];
++v1;
}
base[v2[v1]] = value;
};
v1.getValue = function (base, objectName) {
var v2 = objectName.split('.');
var v1;
v1 = 0;
while (v1 < v2.length - 1) {
if (base[v2[v1]] == undefined || base[v2[v1]] == null) {
return undefined;
}
base = base[v2[v1]];
++v1;
}
return base[v2[v1]];
};
v1.runMethod = function (base, methodName, argsArray) {
var v2 = methodName.split('.');
var v1;
v1 = 0;
while (v1 < v2.length - 1) {
if (base[v2[v1]] == undefined || base[v2[v1]] == null) {
return undefined;
}
base = base[v2[v1]];
++v1;
}
if (typeof base[v2[v1]] == 'function') {
return base[v2[v1]].apply(base, argsArray);
} else {
return undefined;
}
};
v1.containerNotify = function (clip, args, lcName) {
var v1 = clip._mochiad._mochiad_ctr.ad.app;
if (v1.notify) {
v1.notify(args);
} else {
(new LocalConnection()).send(lcName, 'notify', args);
}
};
v1.containerRpcResult = function (clip, callbackID, val, lcName) {
var v1 = clip._mochiad._mochiad_ctr.ad.app;
if (v1.rpcResult) {
v1.rpcResult(callbackID, val);
} else {
(new LocalConnection()).send(lcName, 'rpcResult', callbackID, val);
}
};
ASSetPropFlags(mochi.as2.MochiAd.prototype, null, 1);
}
#endinitclip
}
movieClip 707 __Packages.mochi.as2.MochiSync {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiSync) {
var v1 = function () {
this._syncContainer = {};
};
mochi.as2.MochiSync = v1;
var v2 = v1.prototype;
v2.getProp = function (name) {
return this._syncContainer[name];
};
v2.setProp = function (name, value) {
if (this._syncContainer[name] == value) {
return undefined;
}
this._syncContainer[name] = value;
mochi.as2.MochiServices.send('sync_propUpdate', {'name': name, 'value': value});
};
v2.triggerEvent = function (eventType, args) {
switch (eventType) {
case mochi.as2.MochiSync.SYNC_REQUEST:
mochi.as2.MochiServices.send('sync_syncronize', this._syncContainer);
break;
case mochi.as2.MochiSync.SYNC_PROPERTY:
this._syncContainer[args.name] = args.value;
}
};
v1.SYNC_REQUEST = 'SyncRequest';
v1.SYNC_PROPERTY = 'UpdateProperty';
ASSetPropFlags(mochi.as2.MochiSync.prototype, null, 1);
}
#endinitclip
}
movieClip 708 __Packages.mochi.as2.MochiServices {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiServices) {
var v1 = function () {};
mochi.as2.MochiServices = v1;
var v2 = v1.prototype;
v1.__get__id = function () {
return mochi.as2.MochiServices._id;
};
v1.__get__clip = function () {
return mochi.as2.MochiServices._container;
};
v1.__get__childClip = function () {
return mochi.as2.MochiServices._clip;
};
v1.getVersion = function () {
return '3.3 as2';
};
v1.allowDomains = function (server) {
var v1 = ((server.split('/'))[2].split(':'))[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain('*');
System.security.allowDomain(v1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain('*');
System.security.allowInsecureDomain(v1);
}
}
return v1;
};
v1.__get__isNetworkAvailable = function () {
if (System.security) {
var v1 = System.security;
if (v1.sandboxType == 'localWithFile') {
return false;
}
}
return true;
};
v1.__set__comChannelName = function (val) {
if (val != undefined) {
if (val.length > 3) {
mochi.as2.MochiServices._sendChannelName = val + '_fromgame';
mochi.as2.MochiServices.initComChannels();
}
}
return mochi.as2.MochiServices.__get__comChannelName();
};
v1.__get__connected = function () {
return mochi.as2.MochiServices._connected;
};
v1.connect = function (id, clip, onError) {
mochi.as2.MochiServices.warnID(id, false);
if (!mochi.as2.MochiServices._connected && mochi.as2.MochiServices._clip == undefined) {
trace('MochiServices Connecting...');
mochi.as2.MochiServices._connecting = true;
mochi.as2.MochiServices.init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else {
if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
};
v1.disconnect = function () {
if (mochi.as2.MochiServices._connected || mochi.as2.MochiServices._connecting) {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._connecting = mochi.as2.MochiServices._connected;
mochi.as2.MochiServices.flush(true);
if (mochi.as2.MochiServices._clip != undefined) {
mochi.as2.MochiServices._clip.removeMovieClip();
delete mochi.as2.MochiServices._clip;
}
mochi.as2.MochiServices._listenChannel.close();
}
};
v1.init = function (id, clip) {
mochi.as2.MochiServices._id = id;
if (clip != undefined) {
mochi.as2.MochiServices._container = clip;
} else {
mochi.as2.MochiServices._container = _root;
}
mochi.as2.MochiServices.loadCommunicator(id, mochi.as2.MochiServices._container);
};
v1.loadCommunicator = function (id, clip) {
var v6 = '_mochiservices_com_' + id;
var v5 = new MovieClipLoader();
var v3 = {};
if (mochi.as2.MochiServices._clip != null) {
return mochi.as2.MochiServices._clip;
}
if (!mochi.as2.MochiServices.__get__isNetworkAvailable()) {
return null;
}
if ((mochi.as2.MochiServices.urlOptions()).servURL) {
mochi.as2.MochiServices._servURL = (mochi.as2.MochiServices.urlOptions()).servURL;
}
var v4 = mochi.as2.MochiServices._servURL + mochi.as2.MochiServices._services;
if ((mochi.as2.MochiServices.urlOptions()).servicesURL) {
v4 = (mochi.as2.MochiServices.urlOptions()).servicesURL;
}
mochi.as2.MochiServices.allowDomains(v4);
mochi.as2.MochiServices._clip = clip.createEmptyMovieClip(v6, 10336, false);
mochi.as2.MochiServices._listenChannelName += Math.floor((new Date()).getTime()) + '_' + Math.floor(Math.random() * 99999);
mochi.as2.MochiServices.listen();
if (v3.waitInterval != null) {
clearInterval(v3.waitInterval);
}
v3.onLoadError = mochi.as2.MochiServices.loadError;
v3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
v3.startTime = getTimer();
v3.wait = function () {
if (getTimer() - this.startTime > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
}
clearInterval(this.waitInterval);
}
};
v3.waitInterval = setInterval(v3, 'wait', 1000);
v5.addListener(v3);
v5.loadClip(v4 + '?listenLC=' + mochi.as2.MochiServices._listenChannelName + '&mochiad_options=' + escape(_root.mochiad_options) + '&api_version=' + /:$version, mochi.as2.MochiServices._clip);
mochi.as2.MochiServices._sendChannel = new LocalConnection();
mochi.as2.MochiServices._sendChannel._queue = [];
return mochi.as2.MochiServices._clip;
};
v1.loadError = function (target_mc, errorCode, httpStatus) {
trace('MochiServices could not load.');
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
v1.onStatus = function (infoObject) {
if (infoObject.level !== 'error') {
} else {
mochi.as2.MochiServices._connected = false;
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
}
};
v1.listen = function () {
mochi.as2.MochiServices._listenChannel = new LocalConnection();
mochi.as2.MochiServices._listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
mochi.as2.MochiServices._listenChannel.allowDomain = function (d) {
return true;
};
mochi.as2.MochiServices._listenChannel.allowInsecureDomain = mochi.as2.MochiServices._listenChannel.allowDomain;
mochi.as2.MochiServices._listenChannel._nextcallbackID = 0;
mochi.as2.MochiServices._listenChannel._callbacks = {};
mochi.as2.MochiServices._listenChannel.connect(mochi.as2.MochiServices._listenChannelName);
trace('Waiting for MochiAds services to connect...');
};
v1.initComChannels = function () {
if (!mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'handshakeDone'});
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': 'registerGame', 'id': mochi.as2.MochiServices._id, 'clip': mochi.as2.MochiServices._clip, 'version': mochi.as2.MochiServices.getVersion()});
mochi.as2.MochiServices._listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
mochi.as2.MochiServices._listenChannel.onReceive = function (pkg) {
var v5 = pkg.callbackID;
var v4 = this._callbacks[v5];
if (!v4) {
return undefined;
}
var v2 = v4.callbackMethod;
var v3 = v4.callbackObject;
if (v3 && typeof v2 == 'string') {
v2 = v3[v2];
}
if (v2 != undefined) {
v2.apply(v3, pkg.args);
}
delete this._callbacks[v5];
};
mochi.as2.MochiServices._listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case 'events':
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case 'coins':
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case 'sync':
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
mochi.as2.MochiServices._listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ['IOError']);
};
trace('[SERVICES_API] connected!');
mochi.as2.MochiServices._connecting = false;
mochi.as2.MochiServices._connected = true;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', mochi.as2.MochiServices._sendChannel._queue.shift());
}
}
};
v1.flush = function (error) {
var v1;
var v2;
while (mochi.as2.MochiServices._sendChannel._queue.length > 0) {
v1 = mochi.as2.MochiServices._sendChannel._queue.shift();
false;
if (v1.callbackID != null) {
v2 = mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
}
delete mochi.as2.MochiServices._listenChannel._callbacks[v1.callbackID];
if (error) {
mochi.as2.MochiServices.handleError(v1.args, v2.callbackObject, v2.callbackMethod);
}
}
};
v1.handleError = function (args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ['NotConnected']);
}
if (args.options != null && args.options.onError != null) {
args.options.onError.apply(null, ['NotConnected']);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = 'NotConnected';
if (callbackObject != null && typeof callbackMethod == 'string') {
callbackObject[callbackMethod](args);
} else {
if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
};
v1.send = function (methodName, args, callbackObject, callbackMethod) {
if (mochi.as2.MochiServices._connected) {
mochi.as2.MochiServices._sendChannel.send(mochi.as2.MochiServices._sendChannelName, 'onReceive', {'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
} else {
if (mochi.as2.MochiServices._clip == undefined || !mochi.as2.MochiServices._connecting) {
trace('Error: MochiServices not connected. Please call MochiServices.connect(). Function: ' + methodName);
mochi.as2.MochiServices.handleError(args, callbackObject, callbackMethod);
mochi.as2.MochiServices.flush(true);
return undefined;
} else {
mochi.as2.MochiServices._sendChannel._queue.push({'methodName': methodName, 'args': args, 'callbackID': mochi.as2.MochiServices._listenChannel._nextcallbackID});
}
}
mochi.as2.MochiServices._listenChannel._callbacks[mochi.as2.MochiServices._listenChannel._nextcallbackID] = {'callbackObject': callbackObject, 'callbackMethod': callbackMethod};
++mochi.as2.MochiServices._listenChannel._nextcallbackID;
};
v1.urlOptions = function () {
var v5 = {};
var v6;
if (_root._url.indexOf('mochiad_options') != -1) {
var v2 = _root._url.indexOf('mochiad_options') + 'mochiad_options'.length + 1;
v6 = _root._url.substr(v2, _root._url.length);
} else {
if (_root.mochiad_options) {
v6 = _root.mochiad_options;
}
}
if (v6) {
var v4 = _root.mochiad_options.split('&');
var v2 = 0;
while (v2 < v4.length) {
var v3 = v4[v2].split('=');
v5[unescape(v3[0])] = unescape(v3[1]);
++v2;
}
}
return v5;
};
v1.warnID = function (bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace('WARNING: ' + (leaderboard ? 'board' : 'game') + ' ID is not the appropriate length');
return undefined;
} else {
if (bid == '1e113c7239048b3f') {
if (leaderboard) {
trace('WARNING: Using testing board ID');
} else {
trace('WARNING: Using testing board ID as game ID');
}
return undefined;
} else {
if (bid == '84993a1de4031cd8') {
if (leaderboard) {
trace('WARNING: Using testing game ID as board ID');
} else {
trace('WARNING: Using testing game ID');
}
return undefined;
}
}
}
var v1 = 0;
while (v1 < bid.length) {
switch (bid.charAt(v1)) {
if (bid.charAt(v1) !== 'f') {
} else {
case '0':
case '1':
case '2':
case '3':
break;
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case 'a':
case 'b':
case 'c':
case 'd':
case 'e':
}
default:
trace('WARNING: Board ID contains illegal characters: ' + bid);
return undefined;
}
++v1;
}
};
v1.addLinkEvent = function (url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var v2 = new Object();
v2.mav = mochi.as2.MochiServices.getVersion();
v2.swfv = btn.getSWFVersion() || 6;
v2.swfurl = btn._url;
v2.fv = System.capabilities.version;
v2.os = System.capabilities.os;
v2.lang = System.capabilities.language;
v2.scres = System.capabilities.screenResolutionX + 'x' + System.capabilities.screenResolutionY;
var s = '?';
var v3 = 0;
for (var v6 in v2) {
if (v3 != 0) {
s += '&';
}
++v3;
s = s + v6 + '=' + escape(v2[v6]);
}
if (!(mochi.as2.MochiServices.netupAttempted || mochi.as2.MochiServices._connected)) {
var ping = btn.createEmptyMovieClip('ping', 777);
var v7 = btn.createEmptyMovieClip('nettest', 778);
mochi.as2.MochiServices.netupAttempted = true;
ping.loadMovie('http://x.mochiads.com/linkping.swf?t=' + getTimer());
v7.onEnterFrame = function () {
if (ping._totalframes > 0 && ping._totalframes == ping._framesloaded) {
delete this.onEnterFrame;
} else {
if (getTimer() - t0 > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
}
};
}
var v4 = btn.createEmptyMovieClip('clk', 1001);
v4._alpha = 0;
v4.beginFill(1044735);
v4.moveTo(0, 0);
v4.lineTo(0, btn._height);
v4.lineTo(btn._width, btn._height);
v4.lineTo(btn._width, 0);
v4.lineTo(0, 0);
v4.endFill();
v4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL(url + s, '_blank');
} else {
getURL(burl, '_blank');
}
if (onClick != undefined) {
onClick();
}
};
};
v1.setContainer = function (clip) {};
v1.stayOnTop = function (clip) {};
v1._servURL = 'http://www.mochiads.com/static/lib/services/';
v1._services = 'services.swf';
v1._mochiLC = 'MochiLC.swf';
v1._listenChannelName = '__ms_';
v1._connecting = false;
v1._connected = false;
v1.netup = true;
v1.netupAttempted = false;
v1.servicesSync = new mochi.as2.MochiSync();
v1.addProperty('childClip', v1.__get__childClip, function () {});
v1.addProperty('clip', v1.__get__clip, function () {});
v1.addProperty('comChannelName', function () {}, v1.__set__comChannelName);
v1.addProperty('connected', v1.__get__connected, function () {});
v1.addProperty('id', v1.__get__id, function () {});
v1.addProperty('isNetworkAvailable', v1.__get__isNetworkAvailable, function () {});
ASSetPropFlags(mochi.as2.MochiServices.prototype, null, 1);
}
#endinitclip
}
movieClip 709 __Packages.mochi.as2.MochiEventDispatcher {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEventDispatcher) {
var v1 = function () {
this.eventTable = {};
};
mochi.as2.MochiEventDispatcher = v1;
var v2 = v1.prototype;
v2.buildDelegate = function (thisObject, thatObject) {
var v2 = {'thisObject': thisObject, 'thatObject': thatObject};
if (thatObject != undefined) {
var funct = (typeof thatObject == 'string') ? thisObject[thatObject] : thatObject;
v2.delegate = function (args) {
funct.call(thisObject, args);
};
return v2;
}
v2.delegate = thisObject;
return v2;
};
v2.compareDelegate = function (d_A, d_B) {
if (d_A.thisObject != d_B.thisObject || d_A.thatObject != d_B.thatObject) {
return false;
}
return true;
};
v2.addEventListener = function (event, thisObject, thatObject) {
this.removeEventListener(event, thisObject, thatObject);
this.eventTable[event].push(this.buildDelegate(thisObject, thatObject));
};
v2.removeEventListener = function (event, thisObject, thatObject) {
var v3 = this.buildDelegate(thisObject, thatObject);
if (this.eventTable[event] == undefined) {
this.eventTable[event] = [];
return undefined;
}
for (var v4 in this.eventTable[event]) {
if (!this.compareDelegate(this.eventTable[event][v4], v3)) {
continue;
}
this.eventTable[event].splice(Number(v4), 1);
}
};
v2.triggerEvent = function (event, args) {
if (this.eventTable[event] == undefined) {
return undefined;
}
for (var v4 in this.eventTable[event]) {
this.eventTable[event][v4].delegate(args);
}
};
ASSetPropFlags(mochi.as2.MochiEventDispatcher.prototype, null, 1);
}
#endinitclip
}
movieClip 710 __Packages.mochi.as2.MochiEvents {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiEvents) {
var v1 = function () {};
mochi.as2.MochiEvents = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.startSession = function (achievementID) {
mochi.as2.MochiServices.send('events_beginSession', {'achievementID': achievementID}, null, null);
};
v1.trigger = function (kind, obj) {
if (obj == undefined) {
obj = {};
} else {
if (obj.kind != undefined) {
trace('WARNING: optional arguements package contains key \'id\', it will be overwritten');
obj.kind = kind;
}
}
mochi.as2.MochiServices.send('events_triggerEvent', {'eventObject': obj}, null, null);
};
v1.setNotifications = function (clip, style) {
var v2 = {};
for (var v3 in style) {
v2[v3] = style[v3];
}
v2.clip = clip;
mochi.as2.MochiServices.send('events_setNotifications', v2, null, null);
};
v1.addEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.addEventListener(eventType, thisObject, thatObject);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiEvents._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, thisObject, thatObject) {
mochi.as2.MochiEvents._dispatcher.removeEventListener(eventType, thisObject, thatObject);
};
v1.startGame = function () {
mochi.as2.MochiEvents.gameStart = (new Date()).getTime();
mochi.as2.MochiEvents.trigger('start_game');
};
v1.endGame = function () {
var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.gameStart;
mochi.as2.MochiEvents.trigger('end_game', {'time': v1});
};
v1.startLevel = function () {
mochi.as2.MochiEvents.levelStart = (new Date()).getTime();
mochi.as2.MochiEvents.trigger('start_level');
};
v1.endLevel = function () {
var v1 = (new Date()).getTime() - mochi.as2.MochiEvents.levelStart;
mochi.as2.MochiEvents.trigger('end_level', {'time': v1});
};
v1.ACHIEVEMENT_RECEIVED = 'AchievementReceived';
v1.ALIGN_TOP_LEFT = 'ALIGN_TL';
v1.ALIGN_TOP = 'ALIGN_T';
v1.ALIGN_TOP_RIGHT = 'ALIGN_TR';
v1.ALIGN_LEFT = 'ALIGN_L';
v1.ALIGN_CENTER = 'ALIGN_C';
v1.ALIGN_RIGHT = 'ALIGN_R';
v1.ALIGN_BOTTOM_LEFT = 'ALIGN_BL';
v1.ALIGN_BOTTOM = 'ALIGN_B';
v1.ALIGN_BOTTOM_RIGHT = 'ALIGN_BR';
v1.FORMAT_SHORT = 'ShortForm';
v1.FORMAT_LONG = 'LongForm';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiEvents.prototype, null, 1);
}
#endinitclip
}
movieClip 711 __Packages.mochi.as2.MochiCoins {
#initclip
if (!_global.mochi) {
_global.mochi = new Object();
}
if (!_global.mochi.as2) {
_global.mochi.as2 = new Object();
}
if (!_global.mochi.as2.MochiCoins) {
var v1 = function () {};
mochi.as2.MochiCoins = v1;
var v2 = v1.prototype;
v1.getVersion = function () {
return mochi.as2.MochiServices.getVersion();
};
v1.showStore = function (options) {
mochi.as2.MochiServices.send('coins_showStore', {'options': options}, null, null);
};
v1.showItem = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showItem call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showItem', {'options': options}, null, null);
};
v1.showVideo = function (options) {
if (options == undefined || typeof options.item != 'string') {
trace('ERROR: showVideo call must pass an Object with an item key');
return undefined;
}
mochi.as2.MochiServices.send('coins_showVideo', {'options': options}, null, null);
};
v1.showLoginWidget = function (options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send('coins_showLoginWidget', {'options': options});
};
v1.hideLoginWidget = function () {
mochi.as2.MochiServices.send('coins_hideLoginWidget');
};
v1.getStoreItems = function () {
mochi.as2.MochiServices.send('coins_getStoreItems');
};
v1.getUserInfo = function () {
mochi.as2.MochiServices.send('coins_getUserInfo');
};
v1.saveUserProperties = function (properties) {
mochi.as2.MochiServices.send('coins_saveUserProperties', properties);
};
v1.addEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.addEventListener(eventType, delegate);
};
v1.triggerEvent = function (eventType, args) {
mochi.as2.MochiCoins._dispatcher.triggerEvent(eventType, args);
};
v1.removeEventListener = function (eventType, delegate) {
mochi.as2.MochiCoins._dispatcher.removeEventListener(eventType, delegate);
};
v1.LOGGED_IN = 'LoggedIn';
v1.LOGGED_OUT = 'LoggedOut';
v1.LOGIN_SHOW = 'LoginShow';
v1.LOGIN_HIDE = 'LoginHide';
v1.STORE_SHOW = 'StoreShow';
v1.STORE_HIDE = 'StoreHide';
v1.PROFILE_SHOW = 'ProfileShow';
v1.PROFILE_HIDE = 'ProfileHide';
v1.PROPERTIES_SAVED = 'PropertySaved';
v1.WIDGET_LOADED = 'WidgetLoaded';
v1.ITEM_OWNED = 'ItemOwned';
v1.ITEM_NEW = 'ItemNew';
v1.STORE_ITEMS = 'StoreItems';
v1.USER_INFO = 'UserInfo';
v1.ERROR = 'Error';
v1.IO_ERROR = 'IOError';
v1.NO_USER = 'NoUser';
v1.PROPERTIES_SIZE = 'PropertiesSize';
v1._dispatcher = new mochi.as2.MochiEventDispatcher();
ASSetPropFlags(mochi.as2.MochiCoins.prototype, null, 1);
}
#endinitclip
}
frame 2 {
loadMovie('http://www.thestylemachine.com/zombie/lz.swf', load_);
_root.pausa = true;
_root.menu_music = new Sound(_root.snd_menu);
_root.menu_music.attachSound('menu_musica.wav');
if (_root.music != false) {
_root.menu_music.stop();
_root.menu_music.start(0, 9999);
}
_root.musica = new Sound(_root.snd_musica);
_root.musica.attachSound('musica.wav');
stop();
}
movieClip 169 {
frame 1 {
stop();
}
frame 2 {
if (_root.music == false) {
_root.musica.setVolume(0);
gotoAndPlay(55);
}
_root.menu_music.setVolume(90);
}
frame 10 {
_root.menu_music.setVolume(90);
}
frame 14 {
_root.menu_music.setVolume(80);
}
frame 18 {
_root.menu_music.setVolume(70);
}
frame 25 {
_root.menu_music.setVolume(50);
}
frame 29 {
_root.menu_music.setVolume(40);
}
frame 37 {
_root.menu_music.setVolume(20);
}
frame 45 {
_root.menu_music.setVolume(10);
}
frame 57 {
_root.menu_music.stop();
_root.musica.stop();
_root.musica.start(0, 9999);
_root.musica.setVolume(0);
if (_root.music == false) {
stop();
}
}
frame 60 {
_root.musica.setVolume(15);
}
frame 63 {
_root.musica.setVolume(30);
}
frame 68 {
_root.musica.setVolume(40);
}
frame 72 {
_root.musica.setVolume(60);
}
frame 77 {
_root.musica.setVolume(80);
}
frame 84 {
_root.musica.setVolume(100);
}
frame 90 {
this._visible = false;
stop();
}
}
instance obj_musica of movieClip 169 {
onClipEvent (load) {
_root.menu_music_volume = 100;
_root.musica_volume = 100;
}
onClipEvent (enterFrame) {
if (_root.menu_pausa._currentframe == 7 or _root.menu_pausa._currentframe == 3 or _root.menu_pausa._currentframe == 6) {
if (_root.musica_volume > 0) {
_root.musica_volume -= 1;
_root.musica.setVolume(_root.musica_volume);
}
} else {
if (_root.music != false) {
if (_root._currentframe > 20) {
if (_root.musica_volume < 100) {
_root.musica_volume += 10;
_root.musica.setVolume(_root.musica_volume);
}
} else {
if (_root.menu_music_volume < 100) {
_root.menu_music_volume += 10;
_root.menu_music.setVolume(_root.menu_music_volume);
}
}
} else {
if (_root._currentframe > 20) {
if (_root.musica_volume > 0) {
_root.musica_volume -= 10;
_root.musica.setVolume(_root.musica_volume);
}
} else {
if (_root.menu_music_volume > 0) {
_root.menu_music_volume -= 10;
_root.menu_music.setVolume(_root.menu_music_volume);
}
}
}
}
}
}
movieClip 170 {
frame 1 {
stop();
}
frame 2 {
_root.menu_music.setVolume(90);
}
frame 3 {
_root.menu_music.setVolume(90);
}
frame 4 {
_root.menu_music.setVolume(80);
}
frame 5 {
_root.menu_music.setVolume(70);
}
frame 6 {
_root.menu_music.setVolume(50);
}
frame 7 {
_root.menu_music.setVolume(40);
}
frame 8 {
_root.menu_music.setVolume(20);
}
frame 9 {
_root.menu_music.setVolume(10);
}
frame 20 {
_root.menu_music.stop();
_root.menu_music.setVolume(100);
if (_root.music != false) {
_root.musica.stop();
_root.musica.start(0, 9999);
}
_root.musica.setVolume(10);
}
frame 23 {
_root.musica.setVolume(20);
}
frame 26 {
_root.musica.setVolume(30);
}
frame 31 {
_root.musica.setVolume(40);
}
frame 35 {
_root.musica.setVolume(60);
}
frame 40 {
_root.musica.setVolume(80);
}
frame 47 {
_root.musica.setVolume(100);
}
frame 53 {
this._visible = false;
stop();
}
}
movieClip 172 {
}
movieClip 174 {
}
movieClip 180 {
frame 1 {
stop();
}
}
movieClip 185 {
}
// unknown tag 88 length 68
// unknown tag 88 length 68
movieClip 195 {
}
movieClip 197 {
}
movieClip 200 {
}
movieClip 202 {
}
movieClip 205 {
frame 1 {
stop();
}
}
movieClip 208 {
frame 1 {
stop();
}
}
movieClip 211 {
frame 1 {
stop();
}
}
movieClip 214 {
frame 1 {
stop();
}
}
movieClip 216 {
}
movieClip 219 {
frame 1 {
stop();
}
}
movieClip 224 {
frame 1 {
stop();
}
}
movieClip 227 {
frame 1 {
stop();
}
}
movieClip 228 {
frame 1 {
stop();
}
frame 15 {
stop();
}
frame 75 {
gotoAndPlay(24);
}
}
movieClip 230 {
}
movieClip 235 {
instance of movieClip 230 {
onClipEvent (enterFrame) {
if (_root.pausa == true) {
_parent.play();
} else {
_parent.stop();
}
}
}
}
movieClip 238 {
frame 1 {
stop();
}
}
movieClip 241 {
frame 1 {
stop();
}
}
movieClip 243 {
}
movieClip 245 {
}
movieClip 246 {
}
movieClip 248 {
}
movieClip 254 {
frame 1 {
stop();
}
}
movieClip 255 {
frame 1 {
this.jeto.gotoAndStop(1);
aga = false;
}
frame 21 {
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 20 and Math.abs(_root.todo.tio._y - this._y - 22) < cercaniay_tio_start_to_hit) {
if (Math.round(this._xscale / 100) == 1 and _root.todo.tio._x > this._x or Math.round(this._xscale / 100) == -1 and _root.todo.tio._x < this._x) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
}
} else {
if (_root.floornum >= 20) {
difi = 1000000;
} else {
difi = Math.round(_root.floornum / 2);
rdifi = Math.ceil(difi / 4);
}
if (random(rdifi + 1) == 0) {
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_y) {
if (Math.abs(_root.todo.tio._y - posy - 21) < arrimarse_al_tio_y) {
arriba = -1;
} else {
if (_root.todo.tio.posy > this._y + 21) {
arriba = 1;
} else {
arriba = 0;
}
}
}
if (_root.todo.tio._x < this._x) {
this._x -= vel;
if (this._xscale > 0) {
} else {
if (random(difi) == 0 and (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 160 - difi * 14 and Math.abs(_root.todo.tio._y - this._y - 60 - difi * 3) < cercaniay_tio_start_to_hit)) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
} else {}
}
} else {
this._x += vel;
if (this._xscale < 0) {
} else {
if (random(difi) == 0 and (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 160 - difi * 14 and Math.abs(_root.todo.tio._y - this._y - 60 - difi * 3) < cercaniay_tio_start_to_hit)) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
} else {}
}
}
}
}
}
frame 36 {
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit and Math.abs(_root.todo.tio._y - this._y - 22) < cercaniay_tio_start_to_hit) {
if (Math.round(this._xscale / 100) == 1 and _root.todo.tio._x > this._x or Math.round(this._xscale / 100) == -1 and _root.todo.tio._x < this._x) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
}
}
}
frame 43 {
if (_root.floornum >= 20) {
difi = 1000000;
} else {
difi = Math.round(_root.floornum / 2);
rdifi = Math.ceil(difi / 4);
}
if (random(rdifi + 1) == 0) {
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_y) {
if (Math.abs(_root.todo.tio._y - posy - 21) < arrimarse_al_tio_y) {
arriba = -1;
} else {
if (_root.todo.tio.posy > this._y + 21) {
arriba = 1;
} else {
arriba = 0;
}
}
}
if (_root.todo.tio._x < this._x) {
this._x -= vel;
if (this._xscale > 0) {
} else {
if (random(difi) == 0 and (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 160 - difi * 14 and Math.abs(_root.todo.tio._y - this._y - 60 - difi * 3) < cercaniay_tio_start_to_hit)) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
} else {}
}
} else {
this._x += vel;
if (this._xscale < 0) {
} else {
if (random(difi) == 0 and (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 160 - difi * 14 and Math.abs(_root.todo.tio._y - this._y - 60 - difi * 3) < cercaniay_tio_start_to_hit)) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
} else {}
}
}
}
}
frame 73 {
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 60 and Math.abs(_root.todo.tio._y - this._y - 22) < cercaniay_tio_start_to_hit) {
if (Math.round(this._xscale / 100) == 1 and _root.todo.tio._x > this._x or Math.round(this._xscale / 100) == -1 and _root.todo.tio._x < this._x) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
}
}
}
frame 74 {
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_y) {
if (Math.abs(_root.todo.tio._y - posy - 21) < arrimarse_al_tio_y) {
arriba = -1;
} else {
if (_root.todo.tio.posy > this._y + 21) {
arriba = 1;
} else {
arriba = 0;
}
}
}
if (_root.todo.tio._x < this._x) {
this._x -= vel;
if (this._xscale > 0) {
dir = 'd';
this.gotoAndPlay(80);
this.jeto.gotoAndPlay(2);
} else {
if (_root.floornum >= 20) {
difi = 1000000;
} else {
difi = Math.round(_root.floornum / 2);
rdifi = Math.ceil(difi / 4);
}
if (random(rdifi + 1) == 0 and (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 160 - difi * 14 and Math.abs(_root.todo.tio._y - this._y - 70 - difi * 3) < cercaniay_tio_start_to_hit)) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
} else {
gotoAndPlay(1);
}
}
} else {
this._x += vel;
if (this._xscale < 0) {
dir = 'i';
this.gotoAndPlay(80);
this.jeto.gotoAndPlay(2);
} else {
if (_root.floornum >= 20) {
difi = 1000000;
} else {
difi = _root.floornum;
}
if (random(difi) == 0 and (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit + 160 - difi * 14 and Math.abs(_root.todo.tio._y - this._y - 70 - difi * 3) < cercaniay_tio_start_to_hit)) {
this.gotoAndPlay('tirarse');
arriba = -1;
estado = 'tirarse1';
x_tirarse = (-this._x + _root.todo.tio._x) / 20;
y_tirarse = (posy - _root.todo.tio._y + zombietio_dif_y) / 25;
} else {
gotoAndPlay(1);
}
}
}
}
frame 91 {
this._xscale = -this._xscale;
this.jeto.gotoAndStop(1);
gotoAndPlay(1);
}
frame 91 {
if (estado == 'pillando' or estado == 'tirado') {
gotoAndPlay(200);
}
}
frame 92 {
estado = 'ahostiado1';
}
frame 100 {
if (random(2) == 0) {
this.jeto.gotoAndPlay(5);
} else {
this.jeto.gotoAndStop(1);
}
}
frame 100 {
if (estado == 'pillando' or estado == 'tirado') {
gotoAndPlay(200);
}
}
frame 155 {
stop();
}
frame 200 {
nom_z = 1;
while (nom_z < 25) {
if (Math.abs(_parent['zombie' + nom_z]._x - this._x) < 50 and Math.abs(_parent['zombie' + nom_z]._y - this._y - 22) < 20) {
if (_parent['zombie' + nom_z]._name != this.name) {
if (_parent['zombie' + nom_z].estado == 'andando' or _parent['zombie' + nom_z].estado == 'tirarse1' or _parent['zombie' + nom_z].estado == 'tirarse2' or _parent['zombie' + nom_z].estado == 'tirarse') {
if (Math.abs(hostiay) + Math.abs(hostiax) > 50) {
if (_root.award != '') {
_root.award += ' + ';
}
++_root.aw_crushed;
++_root.num_deads;
reward = 20;
_root.rage += 5;
_root.barra_brillo.gotoAndPlay(2);
if (_root.todo.fuerza + reward > 100) {
_root.todo.fuerza = 100;
} else {
_root.todo.fuerza += reward;
}
_root.awards.gotoAndPlay(2);
_parent['zombie' + nom_z].gotoAndPlay('explo2');
_parent['zombie' + nom_z].estado = 'dead';
_parent['zombie' + nom_z].arriba = -1;
pam = new Sound(this);
pam.attachSound('despedace');
pam.start();
cont = 0;
while (cont < 3) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho1.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(40);
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(14) - 7;
++cont;
}
cont = 0;
while (cont < 2) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho2.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20) + 20;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(8) - 4;
++cont;
}
++_parent.i;
_parent.kapow.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20);
_parent['cacho' + _parent.i]._rotation = random(360);
} else {
_parent['zombie' + nom_z].gotoAndPlay(201);
_parent['zombie' + nom_z].estado = 'tirado';
_parent['zombie' + nom_z].arriba = -1;
}
}
}
}
++nom_z;
}
this.jeto.gotoAndStop(1);
pam = new Sound(this);
pam.attachSound('splat');
pam.start();
estado = 'tirado';
}
frame 202 {
estado = 'tirado';
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
if (this._x >= 660 - this._y or this._x <= -700 - this._y) {
_root.todo.cacho2.duplicateMovieClip('sangre_suelo' + _parent.i, j);
_root.todo['sangre_suelo' + _parent.i]._x = this._x;
_root.todo['sangre_suelo' + _parent.i]._y = this._y + 80;
_root.todo['sangre_suelo' + _parent.i].swapDepths(this.getDepth() - 10000);
++_parent.i;
} else {
_root.todo.sangre_suelo.duplicateMovieClip('sangre_suelo' + _parent.i, j);
_root.todo['sangre_suelo' + _parent.i]._x = this._x;
_root.todo['sangre_suelo' + _parent.i]._y = this._y;
_root.todo['sangre_suelo' + _parent.i].swapDepths(this.getDepth() - 10000);
++_parent.i;
}
}
frame 222 {
this.jeto.gotoAndPlay(5);
}
frame 222 {
accion = 0;
}
frame 233 {
estado = 'andando';
this.jeto.gotoAndPlay(15);
gotoAndPlay(40);
}
frame 234 {
estado = 'andando';
gotoAndPlay(40);
}
frame 235 {
}
frame 241 {
estado = 'pillando';
}
frame 245 {
gotoAndPlay(72);
estado = 'andando';
}
frame 247 {
this.jeto.gotoAndPlay(15);
}
frame 254 {
estado = 'pillando';
}
frame 258 {
gotoAndPlay(72);
estado = 'andando';
}
frame 268 {
if (precipicio != true) {
estado = 'tirado2';
} else {
stop();
}
}
frame 276 {
if (random(2) == 0) {
estado = 'andando';
this.jeto.gotoAndPlay(5);
} else {
gotoAndPlay(209);
}
}
frame 276 {
accion = 0;
}
frame 289 {
estado = 'andando';
this.jeto.gotoAndPlay(15);
gotoAndPlay(73);
}
frame 300 {
this.jeto.gotoAndStop(1);
}
frame 304 {
estado = 'tirarse';
}
frame 321 {
if (estado != 'agarrao') {
estado = 'tirarse2';
}
}
frame 326 {
estado = 'tirado';
accion = 0;
}
frame 332 {
gotoAndPlay(220);
}
frame 454 {
this.jeto.gotoAndStop(1);
}
frame 465 {
estado = 'retro2';
}
frame 493 {
estado = 'andando';
gotoAndPlay(1);
}
frame 494 {
z_cuerpo.gotoAndStop(4);
pam = new Sound(this);
pam.attachSound('despedace');
pam.start();
}
frame 495 {
cont = 0;
while (cont < 3) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho1.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(40);
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(14) - 7;
++cont;
}
cont = 0;
while (cont < 2) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho2.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20) + 20;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(8) - 4;
++cont;
}
++_parent.i;
_parent.kapow.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20);
_parent['cacho' + _parent.i]._rotation = random(360);
_root.rage += 1.5;
}
frame 495 {
estado = 'muerto';
++_root.num_deads;
}
frame 541 {
estado = 'tirado';
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
if (this._x >= 660 - this._y or this._x <= -700 - this._y) {
_root.todo.cacho2.duplicateMovieClip('sangre_suelo' + _parent.i, j);
_root.todo['sangre_suelo' + _parent.i]._x = this._x - 60 * Math.round(this._xscale / 100);
_root.todo['sangre_suelo' + _parent.i]._y = this._y;
_root.todo['sangre_suelo' + _parent.i].swapDepths(this.getDepth() - 10000);
++_parent.i;
} else {
_root.todo.sangre_suelo.duplicateMovieClip('sangre_suelo' + _parent.i, j);
_root.todo['sangre_suelo' + _parent.i]._x = this._x - 60 * Math.round(this._xscale / 100);
_root.todo['sangre_suelo' + _parent.i]._y = this._y;
_root.todo['sangre_suelo' + _parent.i].swapDepths(this.getDepth() - 10000);
++_parent.i;
}
}
frame 544 {
cont = 0;
while (cont < 1) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho2.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x - 70 * Math.round(this._xscale / 100);
_parent['cacho' + _parent.i]._y = this._y + 60;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(2) - 1;
++cont;
}
}
frame 654 {
--_root.num_zombies;
this.removeMovieClip();
}
instance cacho1 of movieClip 254 {
onClipEvent (load) {
rotacion = 10;
cont = 0;
max = 5;
gravedad = 0.5;
vely = 7;
cont_veces = 0;
max_veces = 10;
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (this._x >= 790 - this._y) {
this.removeMovieClip();
}
if (this._x <= -860 - this._y) {
this.removeMovieClip();
}
if (tar_y >= this._y) {
this._rotation += rotacion;
this._y -= vely;
vely -= gravedad;
++cont;
this._x += tar_velx;
} else {
if (this._x >= 660 - this._y) {
this.removeMovieClip();
}
if (this._x <= -700 - this._y) {
this.removeMovieClip();
}
if (this._currentframe < 3) {
this.gotoAndPlay(3);
this._rotation = 0;
}
}
if (cont > max) {
if (cont_veces < max_veces) {
++cont_veces;
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_parent.sangre_miembro.duplicateMovieClip('sangre' + _parent.i, 1000000 + _parent.i);
_parent['sangre' + _parent.i]._x = this._x;
_parent['sangre' + _parent.i]._y = this._y;
_parent['sangre' + _parent.i]._rotation = this._rotation;
cont = 0;
}
}
}
}
}
frame 655 {
z_cuerpo.gotoAndStop(4);
pam = new Sound(this);
pam.attachSound('despedace');
pam.start();
++_root.num_deads;
}
frame 656 {
cont = 0;
while (cont < 3) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho1.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(40);
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(14) - 7;
++cont;
}
cont = 0;
while (cont < 2) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho2.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20) + 20;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60) + 40;
_parent['cacho' + _parent.i].tar_velx = random(8) - 4;
++cont;
}
++_parent.i;
_parent.kapow.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20);
_parent['cacho' + _parent.i]._rotation = random(360);
_root.rage += 1.5;
}
frame 694 {
stop();
}
frame 696 {
z_cuerpo.gotoAndStop(4);
cont = 0;
while (cont < 3) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho1.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(40) + 40;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60);
_parent['cacho' + _parent.i].tar_velx = random(14) - 7;
++cont;
}
cont = 0;
while (cont < 2) {
++_parent.i;
trozo = random(2) + 1;
_parent.cacho2.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20) + 60;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + random(60);
_parent['cacho' + _parent.i].tar_velx = random(8) - 4;
++cont;
}
++_parent.i;
_parent.kapow.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = this._x;
_parent['cacho' + _parent.i]._y = this._y + random(20) + 40;
_parent['cacho' + _parent.i]._rotation = random(360);
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
if (this._x >= 660 - this._y or this._x <= -700 - this._y) {
_root.todo.cacho2.duplicateMovieClip('sangre_suelo' + _parent.i, j);
_root.todo['sangre_suelo' + _parent.i]._x = this._x - 60 * Math.round(this._xscale / 100);
_root.todo['sangre_suelo' + _parent.i]._y = this._y;
_root.todo['sangre_suelo' + _parent.i].swapDepths(this.getDepth() - 10000);
++_parent.i;
} else {
_root.todo.sangre_suelo.duplicateMovieClip('sangre_suelo' + _parent.i, j);
_root.todo['sangre_suelo' + _parent.i]._x = this._x - 60 * Math.round(this._xscale / 100);
_root.todo['sangre_suelo' + _parent.i]._y = this._y;
_root.todo['sangre_suelo' + _parent.i].swapDepths(this.getDepth() - 10000);
++_parent.i;
}
_root.rage += 1.5;
}
frame 784 {
--_root.num_zombies;
this.removeMovieClip();
}
}
movieClip 256 {
}
movieClip 257 {
frame 1 {
zombie2.jeto.gotoAndPlay(25);
}
instance zombie1 of movieClip 255 {
}
instance zombie2 of movieClip 256 {
onClipEvent (load) {
nombre = this._name;
vel = random(10) / 10 + 0.5;
ran1 = random(30) - 15;
ran2 = random(20) - 10;
dir = 'i';
accion = 0;
alto = 0;
posy = this._y;
vel_grav = 1;
arrimarse_al_tio_y = 10;
cercaniax_tio_start_to_y = 150;
cercaniax_tio_start_to_hit = 115;
cercaniay_tio_start_to_hit = 30;
velocidad_impacto = 6;
velocidad_impacto2 = 13;
size_area = 40;
cercaniax_tio_asegurar_impacto = 80;
estado = 'andando';
distancia_minima = 5;
lejos = 6;
gravedad = 1;
this.jeto.cara.gotoAndStop(random(2) + 1);
zombietio_dif_y = 17;
reventada = false;
cogidasound = new Sound(this);
cogidasound.attachSound('cogida');
grunt1 = new Sound(this);
grunt1.attachSound('grunt1');
grunt2 = new Sound(this);
grunt2.attachSound('grunt2');
grunt3 = new Sound(this);
grunt3.attachSound('grunt3');
posibilidad_aire = 5;
}
}
frame 70 {
zombie1.gotoAndPlay(75);
}
}
movieClip 260 {
}
movieClip 263 {
}
movieClip 266 {
}
movieClip 269 {
}
movieClip 272 {
}
movieClip 275 {
}
movieClip 278 {
}
movieClip 281 {
}
movieClip 282 {
}
movieClip 285 {
}
movieClip 288 {
}
movieClip 290 {
frame 1 {
stop();
}
frame 3 {
dep = this.getDepth();
this.swapDepths(200);
}
frame 20 {
stop();
}
}
movieClip 291 {
frame 1 {
stop();
}
frame 3 {
dep = this.getDepth();
this.swapDepths(dep - 620000);
}
frame 20 {
stop();
}
}
movieClip 296 {
}
movieClip 299 {
}
movieClip 300 {
}
movieClip 301 {
}
movieClip 302 {
}
movieClip 304 {
instance of movieClip 257 {
onClipEvent (load) {
this.gotoAndPlay(200);
this.zombie2._xscale = -36.6;
this.zombie2._x -= 70;
this.zombie2._y -= 10;
}
}
instance of movieClip 257 {
onClipEvent (load) {
this.zombie2.jeto.cara.gotoAndStop(2);
}
}
}
movieClip 306 {
frame 5 {
stop();
}
}
// unknown tag 88 length 73
movieClip 312 {
}
movieClip 313 {
frame 40 {
stop();
}
}
movieClip 314 {
frame 1 {
stop();
}
}
instance of movieClip 314 {
}
movieClip 316 {
}
movieClip 318 {
}
movieClip 319 {
}
movieClip 320 {
}
// unknown tag 88 length 99
movieClip 324 {
frame 1 {
stop();
}
}
instance of movieClip 324 {
onClipEvent (enterFrame) {
if (_root.todo.tio.agarrao > 0) {
this.gotoAndPlay(5);
}
}
}
movieClip 327 {
frame 1 {
stop();
}
}
// unknown tag 88 length 63
movieClip 335 {
}
movieClip 336 {
frame 83 {
this.removeMovieClip();
}
}
movieClip 337 {
frame 83 {
this.removeMovieClip();
}
}
movieClip 339 {
}
movieClip 340 {
frame 113 {
}
frame 114 {
this.removeMovieClip();
}
}
movieClip 342 {
}
movieClip 343 {
frame 83 {
}
frame 84 {
this.removeMovieClip();
}
}
movieClip 344 {
}
movieClip 355 {
frame 1 {
if (_root.gore != true) {
gotoAndStop(random(3) + 8);
} else {
gotoAndStop(random(6) + 2);
}
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
}
movieClip 356 {
}
movieClip 357 {
frame 30 {
this.removeMovieClip();
stop();
}
}
movieClip 359 {
}
button 363 {
on (release) {
_root.floornum = 20;
_root.tutorial = true;
_root.rage = 3;
_root.gotoAndPlay(3);
}
}
button 367 {
on (release) {
gotoAndStop(14);
}
}
button 371 {
on (release) {
_root.rage = 3;
_root.floornum = 1;
_root.tutorial = false;
_root.obj_musica.gotoAndPlay(2);
_root.gotoAndPlay(3);
}
}
movieClip 372 {
frame 1 {
stop();
}
}
button 377 {
on (release) {
if (_root.floorsingle == undefined) {
_root.floorsingle = _root.floornum;
}
_root.floornum = _root.floorsingle;
_root.rage = 3;
_root.tutorial = false;
_root.obj_musica.gotoAndPlay(2);
_root.gotoAndPlay(3);
}
}
movieClip 378 {
frame 1 {
stop();
}
}
button 381 {
on (release) {
gotoAndStop(13);
}
}
movieClip 383 {
}
movieClip 386 {
}
movieClip 388 {
frame 12 {
this.removeMovieClip();
}
}
movieClip 389 {
}
movieClip 391 {
}
movieClip 393 {
}
movieClip 394 {
frame 12 {
stop();
this.removeMovieClip();
}
frame 32 {
stop();
this.removeMovieClip();
}
}
movieClip 395 {
}
movieClip 396 {
instance of movieClip 395 {
onClipEvent (load) {
this._rotation = random(360);
}
}
}
movieClip 400 {
frame 101 {
stop();
this.removeMovieClip();
}
frame 206 {
stop();
this.removeMovieClip();
}
}
// unknown tag 88 length 69
movieClip 405 {
}
// unknown tag 88 length 61
movieClip 415 {
}
movieClip 417 {
}
movieClip 419 {
}
movieClip 420 {
}
movieClip 421 {
}
movieClip 423 {
}
movieClip 425 {
}
movieClip 448 {
frame 2 {
stop();
}
}
button 452 {
on (release) {
gotoAndStop(2);
_root.music = false;
var disco_so;
disco_so = SharedObject.getLocal('data_zombie_exploder');
disco_so.data.music = _root.music;
disco_so.flush();
}
}
button 455 {
on (release) {
gotoAndStop(1);
_root.music = true;
var disco_so;
disco_so = SharedObject.getLocal('data_zombie_exploder');
disco_so.data.music = _root.music;
disco_so.flush();
}
}
movieClip 456 {
frame 1 {
if (_root.music == false) {
gotoAndStop(2);
} else {
stop();
}
}
}
button 460 {
on (release) {
gotoAndStop(2);
_root.gore = false;
}
}
button 464 {
on (release) {
gotoAndStop(1);
_root.gore = true;
}
}
movieClip 465 {
frame 1 {
if (_root.gore == false) {
gotoAndStop(2);
} else {
stop();
}
}
}
button 469 {
on (release) {
help.gotoAndStop(1);
}
}
button 472 {
on (release) {
gotoAndStop(12);
}
}
button 473 {
on (release) {
getURL('http://www.thestylemachine.com/games.html', '_blank');
}
}
button 474 {
on (release) {
gotoAndStop(12);
}
}
button 479 {
on (release) {
getURL('http://www.thestylemachine.com/', '_blank');
}
}
button 485 {
on (release) {
getURL('http://nx177.newgrounds.com/', '_blank');
}
}
button 489 {
on (release) {
getURL('http://www.thestylemachine.com/games.html', '_blank');
}
}
button 490 {
on (release) {
getURL('http://www.thestylemachine.com/zombie', '_blank');
}
}
movieClip 491 {
instance sangres of movieClip 344 {
onClipEvent (load) {
this.swapDepths(110);
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance boton_first of movieClip 372 {
onClipEvent (load) {
if (_root.firstfloor == true) {
gotoAndStop(2);
}
}
}
instance boton_resume of movieClip 378 {
onClipEvent (load) {
if (_root.floorsingle >= 20 or _root.floornum >= 20) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
}
frame 12 {
stop();
}
instance of movieClip 386 {
onClipEvent (load) {
velj = -13;
ini = velj;
velj2 = -5;
ini2 = velj2;
caida = 20;
_root.velj_y = 3;
_root.velj_1x = 12;
_root.velj_2x = 8;
normal = _root.todo.tio.cuerpo._y;
_parent.i = 0;
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (_root.todo.agacharse == true) {
if (_root.todo.agachado < 20) {
_root.todo.agachado += 13;
} else {
_root.todo.agachado = 27;
}
} else {
if (_root.todo.agachado > 10) {
_root.todo.agachado -= 10;
} else {
_root.todo.agachado = 0;
}
}
if (_root.todo.jump2 == true) {
_root.todo.tio.cuerpo._y = normal;
_root.todo.tio.altura += velj2;
if (velj2 < -ini2) {
velj2 += 0.4;
if (_root.todo.jdirx == 'right') {
_root.todo.tio._x += _root.velj_1x;
}
if (_root.todo.jdirx == 'left') {
_root.todo.tio._x -= _root.velj_1x;
}
} else {
_root.todo.jump2 = false;
_root.todo.jump = false;
_root.escala = 100;
velj2 = ini2;
if (_root.todo.corriendo == true) {
_root.todo.tio.piernas.gotoAndPlay(1);
} else {
_root.todo.tio.piernas.gotoAndStop(1);
}
_root.todo.tio.altura = 0;
_root.todo.jdiry = '0';
_root.todo.jdirx = '0';
caida = 20;
caidapata = true;
_root.todo.tio.cuerpo._y += caida;
}
} else {
if (_root.todo.jump == true) {
_root.todo.tio.cuerpo._y = normal;
_root.todo.tio.altura += velj;
if (velj < -ini) {
velj += 0.8;
_root.todo.tio.posy += _root.velj_y;
_root.todo.tio._x += _root.velj_2x;
} else {
_root.escala = 100;
_root.todo.jump = false;
_root.todo.jump2 = false;
velj = ini;
if (_root.todo.corriendo == true) {
_root.todo.tio.piernas.gotoAndPlay(1);
} else {
_root.todo.tio.piernas.gotoAndStop(1);
}
_root.todo.tio.altura = 0;
_root.todo.jdiry = '0';
_root.todo.jdirx = '0';
caida = 20;
_root.todo.tio.cuerpo._y += caida;
}
} else {
if (caidapata == true and _root.todo.apretado == false) {
_root.todo.patada = false;
caidapata = false;
}
if (_root.todo.tio.cuerpo._y > normal) {
_root.todo.tio.cuerpo._y -= caida / 5;
} else {}
}
}
}
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance cacho2 of movieClip 388 {
onClipEvent (load) {
rotacion = 1;
cont = 0;
max = 3;
gravedad = 0.6;
vely = 7;
cont_veces = 0;
max_veces = 12;
this._rotation = 0;
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (tar_y >= this._y) {
this._rotation += rotacion;
this._y -= vely;
vely -= gravedad;
this._x += tar_velx;
++cont;
}
if (cont > max and cont_veces < max_veces) {
++cont_veces;
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_parent.sangre_miembro.duplicateMovieClip('sangre' + _parent.i, 1000000 + _parent.i);
_parent['sangre' + _parent.i]._xscale = random(50) + 10 * max_veces / cont_veces;
_parent['sangre' + _parent.i]._yscale = _parent['sangre' + _parent.i]._xscale;
_parent['sangre' + _parent.i]._x = this._x;
_parent['sangre' + _parent.i]._y = this._y;
_parent['sangre' + _parent.i]._rotation = this._rotation;
cont = 0;
}
}
}
}
instance help of movieClip 448 {
onClipEvent (load) {
this.gotoAndStop(3);
}
}
}
movieClip 495 {
}
frame 3 {
_root.rage = 3;
}
movieClip 496 {
frame 1 {
stop();
}
frame 5 {
if (_root.rampage == true) {
_root.rampage = false;
_root.rage /= 1.5;
}
}
}
instance of movieClip 496 {
onClipEvent (enterFrame) {
if (_root.todo.tio.agarrao > 0) {
this.gotoAndPlay(5);
}
}
}
movieClip 499 {
}
movieClip 500 {
frame 10 {
stop();
}
}
button 506 {
on (release) {
_root.menu_music.stop();
_root.musica.stop();
_root.gotoAndStop(2);
}
}
button 510 {
on (release) {
help.gotoAndStop(2);
}
}
button 514 {
on (release) {
if (_root.pausa == true) {
_root.pausa = false;
_root.escala = 120;
_root.menu_pausa.gotoAndStop(2);
} else {
_root.pausa = true;
_root.escala = 100;
_root.menu_pausa.gotoAndStop(1);
}
}
}
movieClip 517 {
frame 53 {
stop();
}
}
movieClip 519 {
frame 16 {
stop();
}
}
movieClip 521 {
}
button 525 {
on (release) {
_root.obj_musica.gotoAndPlay(55);
_root.pausa = true;
if (_root.floornum == 20) {
_root.floornum = 20;
_root.tutorial = true;
}
_root.gotoAndPlay(20);
}
}
movieClip 526 {
frame 21 {
stop();
}
}
// unknown tag 88 length 153
movieClip 529 {
frame 44 {
stop();
}
}
movieClip 532 {
}
button 535 {
on (release) {
_root.floorsingle = 20;
_root.firstfloor = true;
_root.pausa = true;
_root.cleared = true;
gotoAndPlay(41);
}
}
movieClip 537 {
frame 40 {
stop();
}
frame 56 {
stop();
}
}
// unknown tag 88 length 99
button 540 {
on (release) {
_root.pausa = true;
_root.floornum = 1;
_root.tutorial = false;
_root.obj_musica.gotoAndPlay(55);
_root.gotoAndPlay(20);
}
}
movieClip 541 {
frame 1 {
stop();
}
instance help of movieClip 448 {
onClipEvent (load) {
this.gotoAndStop(3);
}
}
frame 3 {
_root.rampage = false;
_root.rage = 3;
}
frame 3 {
_parent.ui_kick._x = 100000;
}
frame 4 {
_root.rampage = false;
}
frame 5 {
_root.rampage = false;
}
frame 6 {
_root.rampage = false;
}
frame 6 {
_root.pausa = false;
_root.firstfloor == true;
}
frame 7 {
_root.rampage = false;
_root.rage = 3;
}
frame 7 {
_root.frase_deads = 'You killed ' + _root.num_deads + ' zombies before dying';
}
}
frame 22 {
}
frame 23 {
if (_root.floornum != 1) {
_root.floorsingle = _root.floornum;
}
var disco_so;
disco_so = SharedObject.getLocal('data_zombie_exploder');
disco_so.data.floornum = _root.floornum;
disco_so.data.firstfloor = _root.firstfloor;
disco_so.flush();
nivel = Math.round(_root.floornum * 30 / 20);
dificult = 30 - nivel;
_root.i = 0;
_root.rampage = false;
_root.start_par_level = getTimer();
_root.pausa = true;
if (nivel == 30) {
_root.zombi_tiempo_2a = 30;
_root.zombi_tiempo_2b = 10;
_root.zombi_aleatorio_2 = 1;
_root.zombi_tiempo_1a = 30;
_root.zombi_tiempo_1b = 10;
_root.zombi_aleatorio_1 = 6;
_root.contzombie1 = -10;
_root.activar_minimo1 = 5;
_root.activar_desde1 = 3;
_root.contzombie2 = -10;
_root.activar_minimo2 = 8;
_root.activar_desde2 = 5;
_root.max_zombies1 = 0;
_root.max_zombies2 = 0;
_root.num_zombies_principio = 0;
} else {
if (nivel > 28) {
puerta_rand = random(4);
_root.num_zombies_principio = 3 + dificult + random(3) - 1;
_root.zombi_tiempo_2a = 25;
_root.zombi_tiempo_2b = 10;
_root.zombi_aleatorio_2 = 5;
_root.contzombie2 = -10;
_root.activar_minimo2 = _root.num_zombies_principio;
_root.activar_desde2 = _root.num_zombies_principio;
_root.zombi_tiempo_1a = 25;
_root.zombi_tiempo_1b = 10;
_root.zombi_aleatorio_1 = 5;
_root.contzombie1 = -10;
_root.activar_minimo1 = _root.num_zombies_principio;
_root.activar_desde1 = _root.num_zombies_principio;
switch (puerta_rand) {
case 0:
_root.max_zombies1 = 2;
_root.max_zombies2 = 0;
break;
case 1:
_root.max_zombies1 = 0;
_root.max_zombies2 = 2;
break;
case 2:
_root.max_zombies1 = 1;
_root.max_zombies2 = 1;
_root.contzombie2 = -50;
break;
case 3:
_root.max_zombies1 = 1;
_root.max_zombies2 = 1;
_root.contzombie1 = -50;
}
} else {
if (nivel > 20) {
puerta_rand = random(4);
_root.num_zombies_principio = 3 + dificult + random(3) - 1;
_root.zombi_tiempo_2a = 25;
_root.zombi_tiempo_2b = 10;
_root.zombi_aleatorio_2 = 5;
_root.contzombie2 = -10;
_root.activar_minimo2 = _root.num_zombies_principio;
_root.activar_desde2 = _root.num_zombies_principio;
_root.zombi_tiempo_1a = 25;
_root.zombi_tiempo_1b = 10;
_root.zombi_aleatorio_1 = 5;
_root.contzombie1 = -10;
_root.activar_minimo1 = _root.num_zombies_principio;
_root.activar_desde1 = _root.num_zombies_principio;
switch (puerta_rand) {
case 0:
_root.max_zombies1 = _root.num_zombies_principio;
_root.max_zombies2 = 0;
break;
case 1:
_root.max_zombies1 = 0;
_root.max_zombies2 = _root.num_zombies_principio;
break;
case 2:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 2);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 2);
_root.contzombie2 = -100;
break;
case 3:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 2);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 2);
_root.contzombie1 = -100;
}
} else {
if (nivel > 10) {
puerta_rand = random(6);
_root.num_zombies_principio = dificult + random(3) - 1;
_root.zombi_tiempo_2a = 20;
_root.zombi_tiempo_2b = 10;
_root.zombi_aleatorio_2 = 4;
_root.contzombie2 = -10;
_root.activar_minimo2 = _root.num_zombies_principio + 2;
_root.activar_desde2 = _root.num_zombies_principio + 2;
_root.zombi_tiempo_1a = 20;
_root.zombi_tiempo_1b = 10;
_root.zombi_aleatorio_1 = 4;
_root.contzombie1 = -10;
_root.activar_minimo1 = _root.num_zombies_principio + 2;
_root.activar_desde1 = _root.num_zombies_principio + 2;
switch (puerta_rand) {
case 0:
_root.max_zombies1 = _root.num_zombies_principio;
_root.zombi_aleatorio_1 = 3;
_root.max_zombies2 = 0;
break;
case 1:
_root.max_zombies1 = 0;
_root.max_zombies2 = _root.num_zombies_principio;
_root.zombi_aleatorio_2 = 3;
break;
case 2:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 2);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 2);
_root.contzombie2 = -100;
break;
case 3:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 2);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 2);
_root.contzombie1 = -100;
break;
case 4:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 4);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 1.5);
_root.contzombie2 = -200;
break;
case 5:
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 4);
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 1.5);
_root.contzombie1 = -200;
}
} else {
if (nivel > 2) {
puerta_rand = random(6);
_root.num_zombies_principio = 22;
_root.zombi_tiempo_2a = 20;
_root.zombi_tiempo_2b = 10;
_root.zombi_aleatorio_2 = 3;
_root.contzombie2 = -10;
_root.activar_minimo2 = _root.num_zombies_principio + 2;
_root.activar_desde2 = _root.num_zombies_principio + 2;
_root.zombi_tiempo_1a = 20;
_root.zombi_tiempo_1b = 10;
_root.zombi_aleatorio_1 = 3;
_root.contzombie1 = -10;
_root.activar_minimo1 = _root.num_zombies_principio + 2;
_root.activar_desde1 = _root.num_zombies_principio + 2;
switch (puerta_rand) {
case 0:
_root.max_zombies1 = _root.num_zombies_principio;
_root.zombi_aleatorio_1 = 2;
_root.max_zombies2 = 0;
break;
case 1:
_root.max_zombies1 = 0;
_root.zombi_aleatorio_2 = 2;
_root.max_zombies2 = _root.num_zombies_principio;
break;
case 2:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 2);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 2);
_root.contzombie2 = -100;
break;
case 3:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 2);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 2);
_root.contzombie1 = -100;
break;
case 4:
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 4);
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 1.5);
_root.contzombie2 = -200;
break;
case 5:
_root.max_zombies2 = Math.round(_root.num_zombies_principio / 4);
_root.max_zombies1 = Math.round(_root.num_zombies_principio / 1.5);
_root.contzombie1 = -200;
}
} else {
if (nivel <= 2) {
nivel = 1;
_root.num_zombies_principio = 22;
_root.zombi_tiempo_2a = 5;
_root.zombi_tiempo_2b = 10;
_root.zombi_aleatorio_2 = 3;
_root.contzombie2 = -10;
_root.activar_minimo2 = _root.num_zombies_principio + 2;
_root.activar_desde2 = _root.num_zombies_principio + 2;
_root.zombi_tiempo_1a = 5;
_root.zombi_tiempo_1b = 10;
_root.zombi_aleatorio_1 = 3;
_root.contzombie1 = -10;
_root.activar_minimo1 = _root.num_zombies_principio + 2;
_root.activar_desde1 = _root.num_zombies_principio + 2;
_root.max_zombies1 = 999999999999.0;
_root.max_zombies2 = 999999999999.0;
}
}
}
}
}
}
stop();
}
instance of movieClip 180 {
onClipEvent (load) {
if (_root.floornum == 1) {
gotoAndStop(2);
}
}
onClipEvent (enterFrame) {
this._x = _parent.todo._x / 5;
this._y = _parent.todo._y / 7;
}
}
movieClip 543 {
frame 32 {
_root.calc_zombies = 0;
nom_z = 1;
while (nom_z < 25) {
if (this.hitTest(_parent['zombie' + nom_z]._x + _root.todo._x, _parent['zombie' + nom_z]._y + _root.todo._y, false)) {
++_root.calc_zombies;
}
++nom_z;
}
anterior3 = anterior2;
anterior2 = anterior1;
anterior1 = _root.calc_zombies;
if (anterior1 == 0 and anterior2 == 0 and anterior3 == 0) {
_root.num_zombies = 0;
}
}
}
movieClip 548 {
}
movieClip 562 {
frame 12 {
stop();
}
frame 53 {
gotoAndStop(2);
}
}
movieClip 566 {
}
movieClip 570 {
}
movieClip 572 {
}
movieClip 573 {
}
movieClip 574 {
instance of movieClip 548 {
onClipEvent (load) {
this.swapDepths(103);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance of movieClip 548 {
onClipEvent (load) {
this.swapDepths(105);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance puerta2 of movieClip 562 {
onClipEvent (load) {
gotoAndStop(2);
}
}
instance puerta1 of movieClip 562 {
onClipEvent (load) {
gotoAndStop(13);
}
}
instance of movieClip 573 {
onClipEvent (load) {
if (_root.floornum != 1) {
this._visible = false;
}
}
}
}
movieClip 577 {
}
movieClip 578 {
frame 1 {
stop();
}
frame 20 {
stop();
}
}
movieClip 581 {
}
movieClip 583 {
}
movieClip 585 {
}
movieClip 587 {
}
movieClip 590 {
frame 1 {
stop();
}
}
movieClip 592 {
}
movieClip 598 {
}
movieClip 600 {
}
movieClip 603 {
}
movieClip 604 {
}
movieClip 605 {
frame 14 {
stop();
}
frame 28 {
stop();
}
}
movieClip 606 {
instance fase_cuadro of movieClip 543 {
onClipEvent (load) {
this._visible = false;
}
}
instance paredes of movieClip 574 {
onClipEvent (load) {
this.swapDepths(-1000);
}
}
instance of movieClip 195 {
onClipEvent (load) {
this.swapDepths(102);
}
}
instance suelo_sangre of movieClip 195 {
onClipEvent (load) {
this.swapDepths(101);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance ventana2 of movieClip 578 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 40) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
posy = this._y - 53;
}
onClipEvent (enterFrame) {
dep = this.getDepth();
}
}
instance ventana1 of movieClip 578 {
onClipEvent (load) {
this.swapDepths(100);
posy = this._y - 53;
}
onClipEvent (enterFrame) {
dep = this.getDepth();
}
}
instance of movieClip 581 {
onClipEvent (load) {
this.swapDepths(9000000);
}
}
instance of movieClip 200 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance ventana3 of movieClip 578 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 40) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
posy = this._y - 53;
}
onClipEvent (enterFrame) {
dep = this.getDepth();
}
}
instance of movieClip 583 {
onClipEvent (load) {
num_zombies = 0;
knocks = 0;
cont = _root.contzombie2;
_parent.j_zombi = 1;
activo = false;
_root.enemigos = true;
fin = random(_root.zombi_tiempo_2a) + _root.zombi_tiempo_2b;
_root.num_zombies = 0;
cont_z = 1;
while (cont_z <= _root.num_zombies_principio) {
++_root.num_zombies;
_parent.zombie_.duplicateMovieClip('zombie' + cont_z, 100000 + _parent.j_zombi);
_parent['zombie' + cont_z]._x = this._x + random(1000) - 600;
_parent['zombie' + cont_z]._y = this._y + random(150) + 20;
_parent['zombie' + cont_z].arriba = 1;
if (random(2) == 1) {
_parent['zombie' + cont_z]._xscale = -_parent['zombie' + cont_z]._xscale;
}
++_parent.j_zombi;
++cont_z;
}
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
++cont;
if ((_root.activar_desde2 >= _root.num_zombies or activo == true) and (_root.num_zombies > 0 or _root.tutorial == true)) {
activo = true;
if ((cont >= fin or _root.num_zombies == 1) and _root.enemigos == true and num_zombies < _root.max_zombies2 and _root.activar_minimo2 >= _root.num_zombies and _root.num_zombies < 24) {
cont_z = 1;
while (cont_z < 25) {
if (_parent['zombie' + cont_z]._visible == undefined) {
nom_z = cont_z;
cont_z = 100;
}
++cont_z;
}
fin = random(_root.zombi_tiempo_2a) + _root.zombi_tiempo_2b;
cont = 0;
if (random(_root.zombi_aleatorio_2) == 0 and knocks > 3 or _root.num_zombies == 1) {
++num_zombies;
_root.tutorial = false;
++_root.num_zombies;
_parent.zombie_.duplicateMovieClip('zombie' + nom_z, 100000 + _parent.j_zombi);
_parent['zombie' + nom_z]._x = this._x;
_parent['zombie' + nom_z]._y = this._y;
_parent['zombie' + nom_z].arriba = 1;
++_parent.j_zombi;
if (random(2)) {
_parent['zombie' + nom_z]._xscale = -_parent['zombie' + nom_z]._xscale;
}
_parent.paredes.puerta2.gotoAndPlay(25);
if (_root.floornum >= 20) {
difi = 1000000;
} else {
difi = _root.floornum;
}
if (random(difi + 1) == 0) {
_parent['zombie' + nom_z].gotoAndPlay('tirarse');
_parent['zombie' + nom_z].arriba = -1;
_parent['zombie' + nom_z].estado = 'tirarse1';
_parent['zombie' + nom_z].x_tirarse = (random(5) + 3) * Math.round(_parent['zombie' + nom_z]._xscale / 100);
_parent['zombie' + nom_z].y_tirarse = -(random(3) + 3);
}
} else {
_parent.paredes.puerta2.gotoAndPlay(10);
++knocks;
}
}
}
}
}
}
instance sangres of movieClip 344 {
onClipEvent (load) {
this.swapDepths(110);
}
}
instance of movieClip 583 {
onClipEvent (load) {
cont = _root.contzombie1;
knocks = 0;
fin = random(_root.zombi_tiempo_1a) + _root.zombi_tiempo_1b;
num_zombies = 0;
activo = false;
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
++cont;
if ((_root.activar_desde1 >= _root.num_zombies or activo == true) and _root.num_zombies > 0) {
activo = true;
if ((cont >= fin or _root.num_zombies == 1) and _root.enemigos == true and num_zombies < _root.max_zombies1 and _root.activar_minimo1 >= _root.num_zombies and _root.num_zombies < 24) {
cont_z = 1;
while (cont_z < 25) {
if (_parent['zombie' + cont_z]._visible == undefined) {
nom_z = cont_z;
cont_z = 100;
}
++cont_z;
}
fin = random(_root.zombi_tiempo_1a) + _root.zombi_tiempo_1b;
cont = 0;
if (random(_root.zombi_aleatorio_1) == 0 and knocks > 3 or _root.num_zombies == 1) {
++num_zombies;
++_root.num_zombies;
_parent.zombie_.duplicateMovieClip('zombie' + nom_z, 100000 + _parent.j_zombi);
_parent['zombie' + nom_z]._x = this._x;
_parent['zombie' + nom_z]._y = this._y;
_parent['zombie' + nom_z].arriba = 1;
++_parent.j_zombi;
if (random(2)) {
_parent['zombie' + nom_z]._xscale = -_parent['zombie' + nom_z]._xscale;
}
_parent.paredes.puerta1.gotoAndPlay(25);
if (_root.floornum >= 20) {
difi = 1000000;
} else {
difi = _root.floornum;
}
if (random(difi + 1) == 0) {
_parent['zombie' + nom_z].gotoAndPlay('tirarse');
_parent['zombie' + nom_z].arriba = -1;
_parent['zombie' + nom_z].estado = 'tirarse1';
_parent['zombie' + nom_z].x_tirarse = (random(5) + 3) * Math.round(_parent['zombie' + nom_z]._xscale / 100);
_parent['zombie' + nom_z].y_tirarse = -(random(3) + 3);
}
} else {
_parent.paredes.puerta1.gotoAndPlay(10);
++knocks;
}
}
}
}
}
}
instance of movieClip 585 {
onClipEvent (load) {
if (_root.floornum != 1) {
this._visible = false;
}
}
}
instance ventana4 of movieClip 290 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance ventana5 of movieClip 291 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance ventana6 of movieClip 291 {
onClipEvent (load) {
this.swapDepths(Math.ceil(this._y - 46) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
}
}
instance zombie_sombra of movieClip 202 {
onClipEvent (enterFrame) {
this._x = _root.todo[obje]._x;
this._y = _root.todo[obje].posy;
this.swapDepths(_root.todo[obje].getDepth() - 2);
}
}
instance of movieClip 386 {
onClipEvent (load) {
velj = -13;
ini = velj;
velj2 = -5;
ini2 = velj2;
caida = 20;
_root.velj_y = 3;
_root.velj_1x = 12;
_root.velj_2x = 8;
normal = _root.todo.tio.cuerpo._y;
_parent.i = 0;
}
onClipEvent (enterFrame) {
_root.lolz = _parent.tio._visible;
_root.tiox = _parent.tio._x;
_root.tioy = _parent.tio._y;
if (_root.pausa == true) {
if (_root.todo.agacharse == true) {
if (_root.todo.agachado < 20) {
_root.todo.agachado += 13;
} else {
_root.todo.agachado = 27;
}
} else {
if (_root.todo.agachado > 10) {
_root.todo.agachado -= 10;
} else {
_root.todo.agachado = 0;
}
}
if (_root.todo.jump2 == true) {
_root.todo.tio.cuerpo._y = normal;
_root.todo.tio.altura += velj2;
if (velj2 < -ini2) {
velj2 += 0.4;
if (_root.todo.jdirx == 'right') {
_root.todo.tio._x += _root.velj_1x;
}
if (_root.todo.jdirx == 'left') {
_root.todo.tio._x -= _root.velj_1x;
}
} else {
_root.todo.jump2 = false;
_root.todo.jump = false;
_root.escala = 100;
velj2 = ini2;
if (_root.todo.corriendo == true) {
_root.todo.tio.piernas.gotoAndPlay(1);
} else {
_root.todo.tio.piernas.gotoAndStop(1);
}
_root.todo.tio.altura = 0;
_root.todo.jdiry = '0';
_root.todo.jdirx = '0';
caida = 20;
caidapata = true;
_root.todo.tio.cuerpo._y += caida;
}
} else {
if (_root.todo.jump == true) {
_root.todo.tio.cuerpo._y = normal;
_root.todo.tio.altura += velj;
if (velj < -ini) {
velj += 1;
_root.todo.tio.posy += _root.velj_y;
_root.todo.tio._x += _root.velj_2x;
} else {
_root.escala = 100;
_root.todo.jump = false;
_root.todo.jump2 = false;
velj = ini;
if (_root.todo.corriendo == true) {
_root.todo.tio.piernas.gotoAndPlay(1);
} else {
_root.todo.tio.piernas.gotoAndStop(1);
}
_root.todo.tio.altura = 0;
_root.todo.jdiry = '0';
_root.todo.jdirx = '0';
caida = 20;
_root.todo.tio.cuerpo._y += caida;
}
} else {
if (caidapata == true and _root.todo.apretado == false) {
_root.todo.patada = false;
caidapata = false;
}
if (_root.todo.tio.cuerpo._y > normal) {
_root.todo.tio.cuerpo._y -= caida / 5;
} else {}
}
}
}
}
}
instance cachobrazo of movieClip 590 {
onClipEvent (load) {
rotacion = 10;
cont = 0;
max = 5;
gravedad = 0.5;
vely = 7;
cont_veces = 0;
max_veces = 10;
if (_root.gore != true) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (_currentframe > 49) {
this.getDepth(this.getNextHighestDepth());
}
if (this._x >= 790 - this._y) {
this.removeMovieClip();
}
if (this._x <= -860 - this._y) {
this.removeMovieClip();
}
if (tar_y >= this._y) {
this._rotation += rotacion;
this._y -= vely;
vely -= gravedad;
++cont;
this._x += tar_velx;
} else {
if (this._x >= 660 - this._y) {
this.removeMovieClip();
}
if (this._x <= -700 - this._y) {
this.removeMovieClip();
}
if (this._currentframe < 3) {
if (_root.gore != true) {
_parent.sangres.sugus.duplicateMovieClip('sangre' + _parent.i, _parent.i);
} else {
_parent.sangres.sangre1.duplicateMovieClip('sangre' + _parent.i, _parent.i);
}
_parent.sangres['sangre' + _parent.i]._x = this._x;
_parent.sangres['sangre' + _parent.i]._y = this._y;
this.removeMovieClip();
}
}
if (cont > max) {
if (cont_veces < max_veces) {
++cont_veces;
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_parent.sangre_miembro.duplicateMovieClip('sangre' + _parent.i, 1000000 + _parent.i);
_parent['sangre' + _parent.i]._x = this._x;
_parent['sangre' + _parent.i]._y = this._y;
_parent['sangre' + _parent.i]._rotation = this._rotation;
cont = 0;
}
}
}
}
}
instance sangre_miembro of movieClip 357 {
onClipEvent (load) {
aumento = 0;
grav = 0.3;
}
onClipEvent (enterFrame) {
this._y += aumento;
aumento += grav;
}
}
instance cacho1 of movieClip 254 {
onClipEvent (load) {
rotacion = 10;
cont = 0;
max = 5;
gravedad = 0.5;
vely = 7;
cont_veces = 0;
max_veces = 10;
if (_root.gore != true) {
this.gotoAndStop(random(6) + 2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (this._x >= 790 - this._y) {
this.removeMovieClip();
}
if (this._x <= -860 - this._y) {
this.removeMovieClip();
}
if (tar_y >= this._y) {
this._rotation += rotacion;
this._y -= vely;
vely -= gravedad;
++cont;
this._x += tar_velx;
} else {
if (this._x >= 660 - this._y) {
this.removeMovieClip();
}
if (this._x <= -700 - this._y) {
this.removeMovieClip();
}
if (this._currentframe < 5) {
if (_root.gore != true) {
_parent.sangres.piruleta.duplicateMovieClip('sangre' + _parent.i, _parent.i);
} else {
_parent.sangres.sangre2.duplicateMovieClip('sangre' + _parent.i, _parent.i);
}
_parent.sangres['sangre' + _parent.i]._x = this._x;
_parent.sangres['sangre' + _parent.i]._y = this._y;
}
this.removeMovieClip();
}
if (cont > max) {
if (cont_veces < max_veces) {
++cont_veces;
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_parent.sangre_miembro.duplicateMovieClip('sangre' + _parent.i, 1000000 + _parent.i);
_parent['sangre' + _parent.i]._x = this._x;
_parent['sangre' + _parent.i]._y = this._y;
_parent['sangre' + _parent.i]._rotation = this._rotation;
cont = 0;
}
}
}
if (_currentframe > 10) {
this.getDepth(10000);
this.removeMovieClip();
}
}
}
instance cacho2 of movieClip 388 {
onClipEvent (load) {
rotacion = 1;
cont = 0;
max = 3;
gravedad = 0.6;
vely = 7;
cont_veces = 0;
max_veces = 12;
this._rotation = 0;
}
onClipEvent (enterFrame) {
if (_root.pausa == true) {
if (tar_y >= this._y) {
this._rotation += rotacion;
this._y -= vely;
vely -= gravedad;
this._x += tar_velx;
++cont;
}
if (cont > max and cont_veces < max_veces) {
++cont_veces;
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_parent.sangre_miembro.duplicateMovieClip('sangre' + _parent.i, 1000000 + _parent.i);
_parent['sangre' + _parent.i]._xscale = random(50) + 10 * max_veces / cont_veces;
_parent['sangre' + _parent.i]._yscale = _parent['sangre' + _parent.i]._xscale;
_parent['sangre' + _parent.i]._x = this._x;
_parent['sangre' + _parent.i]._y = this._y;
_parent['sangre' + _parent.i]._rotation = this._rotation;
cont = 0;
}
}
}
}
instance zombie_ of movieClip 255 {
onClipEvent (load) {
nombre = this._name;
velini = random(10) / 10 + 0.5;
vel = velini;
ran1 = random(30) - 15;
ran2 = random(20) - 10;
dir = 'i';
accion = 0;
alto = 0;
posy = this._y;
vel_grav = 1;
arrimarse_al_tio_y = 10;
cercaniax_tio_start_to_y = 150;
cercaniax_tio_start_to_hit = 115;
cercaniay_tio_start_to_hit = 30;
velocidad_impacto = 6;
velocidad_impacto2 = 13;
size_area = 40;
cercaniax_tio_asegurar_impacto = 80;
estado = 'andando';
distancia_minima = 5;
lejos = 6;
gravedad = 1;
this.jeto.cara.gotoAndStop(random(2) + 1);
zombietio_dif_y = 17;
reventada = false;
cogidasound = new Sound(this);
cogidasound.attachSound('cogida');
grunt1 = new Sound(this);
grunt1.attachSound('grunt1');
grunt2 = new Sound(this);
grunt2.attachSound('grunt2');
grunt3 = new Sound(this);
grunt3.attachSound('grunt3');
posibilidad_aire = 5;
}
onClipEvent (enterFrame) {
if (this._y >= 120) {
if (this._name != 'zombie_') {
this.swapDepths(0);
--_root.num_zombies;
this.removeMovieClip();
}
gotoAndStop(500);
} else {
posy2 = this.getDepth();
if (Math.abs(hostiay) >= 40 and this._currentframe > 130 and this._currentframe < 205) {
brincazo = true;
} else {
brincazo = false;
}
if (_root.pausa == true) {
play();
if (Math.abs(_root.todo.tio._x - this._x) < cercaniax_tio_start_to_hit and Math.abs(_root.todo.tio._y - this._y - 22) < cercaniay_tio_start_to_hit) {
_root.descansando = false;
_root.puede_descansar = false;
if (estado != 'tirarse' and estado != 'agarrao' and estado != 'tirarse2' and estado != 'tirarse1') {
if (_root.todo.corriendo == true and _root.todo.jump2 == false and Math.abs(-this._x + _root.todo.tio._x) < 7 and Math.abs(-this.posy + _root.todo.tio._y - 25) < 15 and (estado == 'andando' or estado == 'pillando') and Math.round(_root.todo.tio._xscale / 100) != Math.round(this._xscale / 100)) {
arriba = -1;
aga = true;
if (Math.abs(this._x - _root.todo.tio._x) > 20 or Math.abs(this._y - _root.todo.tio._y) > 20) {
aga = false;
}
if (Math.round(this._xscale / 100) == 1) {
if (_root.todo.tio.agarrao_i_1 == false) {
_root.todo.tio.agarrao_i_1 = this._name;
aga_x = _root.todo.tio._x;
aga_y = _root.todo.tio.posy - zombietio_dif_y;
pose = 0;
} else {
if (_root.todo.tio.agarrao_i_2 == false) {
_root.todo.tio.agarrao_i_2 = this._name;
aga_x = _root.todo.tio._x - 10;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 10;
pose = 1;
} else {
if (_root.todo.tio.agarrao_i_3 == false) {
_root.todo.tio.agarrao_i_3 = this._name;
aga_x = _root.todo.tio._x - 20;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 5;
pose = 1;
} else {
aga = false;
}
}
}
} else {
if (_root.todo.tio.agarrao_d_1 == false) {
_root.todo.tio.agarrao_d_1 = this._name;
aga_x = _root.todo.tio._x + 7;
aga_y = _root.todo.tio.posy - zombietio_dif_y + 2;
pose = 1;
} else {
if (_root.todo.tio.agarrao_d_2 == false) {
_root.todo.tio.agarrao_d_2 = this._name;
aga_x = _root.todo.tio._x + 10;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 13;
pose = 0;
} else {
if (_root.todo.tio.agarrao_d_3 == false) {
_root.todo.tio.agarrao_d_3 = this._name;
aga_x = _root.todo.tio._x - 2;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 10;
pose = 0;
} else {
aga = false;
}
}
}
}
if (aga == true) {
_root.todo.patada = false;
_root.todo.corriendo = false;
estado = 'agarrao';
++_parent.tio.agarrao;
this.jeto.gotoAndPlay(18);
pem = new Sound(this);
pem.attachSound('cogida');
pem.start();
this._x = aga_x;
this.posy = aga_y;
this._y = aga_y;
if (pose == 0) {
pose = 333;
} else {
pose = 393;
}
}
}
} else {
if (Math.abs(-this._x + _root.todo.tio._x) < 5 and Math.abs(-this.posy + _root.todo.tio._y - 25) < 15) {
if (estado != 'agarrao' and estado != 'tirarse2' and estado != 'tirarse1') {
aga = true;
if (Math.round(this._xscale / 100) == 1) {
if (_root.todo.tio.agarrao_i_1 == false) {
_root.todo.tio.agarrao_i_1 = this._name;
aga_x = _root.todo.tio._x;
aga_y = _root.todo.tio.posy - zombietio_dif_y;
pose = 0;
} else {
if (_root.todo.tio.agarrao_i_2 == false) {
_root.todo.tio.agarrao_i_2 = this._name;
aga_x = _root.todo.tio._x - 10;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 10;
pose = 1;
} else {
if (_root.todo.tio.agarrao_i_3 == false) {
_root.todo.tio.agarrao_i_3 = this._name;
aga_x = _root.todo.tio._x - 20;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 5;
pose = 1;
} else {
aga = false;
if (random(4) == 0) {
gotoAndPlay('soltarse');
estado = 'retro';
}
}
}
}
} else {
if (_root.todo.tio.agarrao_d_1 == false) {
_root.todo.tio.agarrao_d_1 = this._name;
aga_x = _root.todo.tio._x + 7;
aga_y = _root.todo.tio.posy - zombietio_dif_y + 2;
pose = 1;
} else {
if (_root.todo.tio.agarrao_d_2 == false) {
_root.todo.tio.agarrao_d_2 = this._name;
aga_x = _root.todo.tio._x + 10;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 13;
pose = 0;
} else {
if (_root.todo.tio.agarrao_d_3 == false) {
_root.todo.tio.agarrao_d_3 = this._name;
aga_x = _root.todo.tio._x - 2;
aga_y = _root.todo.tio.posy - zombietio_dif_y - 10;
pose = 0;
} else {
aga = false;
if (random(4) == 0) {
gotoAndPlay('soltarse');
estado = 'retro';
}
}
}
}
}
if (aga == true and _root.todo.jump2 == false) {
estado = 'agarrao';
_root.todo.corriendo = false;
_root.todo.patada = false;
++_parent.tio.agarrao;
this.jeto.gotoAndPlay(18);
cogidasound.start();
this._x = aga_x;
this.posy = aga_y;
if (pose == 0) {
pose = 333;
} else {
pose = 393;
}
} else {
this._x += x_tirarse;
posy -= y_tirarse;
}
}
} else {}
if (estado == 'agarrao') {
zframe = Math.ceil(_root.todo.tio.cuerpo._currentframe * 60 / 90);
if (zframe > 60) {
zframe = 60;
}
if (Math.ceil(_root.todo.tio._xscale / 100) == Math.ceil(this._xscale / 100)) {
zframe = 61 - zframe;
}
if (random(70) == 0) {
randomsw = random(5);
if (randomsw > 2) {
randomsw = 0;
}
switch (randomsw) {
case 0:
grunt1.start();
break;
case 1:
grunt2.start();
break;
case 2:
grunt3.start();
}
}
this.gotoAndStop(zframe + pose);
}
}
if (_parent.tio.agarrao < 1) {
if (_root.todo.patada != true) {
velocidady = Math.round(_root.mano1y - _root.mano2y);
velocidadx = Math.round(_root.mano1x - _root.mano2x);
tar1x = (_root.mano1x + _root.mano2x) / 2 + _root.todo._x;
tar1y = (_root.mano1y + _root.mano2y) / 2 + _root.todo._y;
tar2x = _root.mano1x + _root.todo._x;
tar2y = _root.mano1y + _root.todo._y;
obj1x = _root.mano1x;
obj1y = _root.mano1y;
obj2x = _root.mano2x;
obj2y = _root.mano2y;
} else {
velocidady = Math.round((_root.pie1y - _root.pie2y) * 2);
velocidadx = Math.round((_root.pie1x - _root.pie2x) * 2);
tar1x = (_root.pie1x + _root.pie2x) / 2 + _root.todo._x;
tar1y = (_root.pie1y + _root.pie2y) / 2 + _root.todo._y;
tar2x = _root.pie1x + _root.todo._x;
tar2y = _root.pie1y + _root.todo._y;
obj1x = _root.pie1x;
obj1y = _root.pie1y;
obj2x = _root.pie2x;
obj2y = _root.pie2y;
}
vecesx = 0;
dado = false;
if (lejos >= 5) {
if (_root.cambio2 < 1 and (Math.abs(velocidadx) > velocidad_impacto or Math.abs(velocidady) > velocidad_impacto)) {
if (Math.abs(velocidadx) - Math.abs(_root.tiox1 - _root.tiox2) > velocidad_impacto or random(4) == 1) {
distanciax = (obj1x - obj2x) / 3;
distanciay = (obj1y - obj2y) / 3;
vx = obj1x;
vy = obj1y;
if (this.area_total.hitTest(tar1x, tar1y, false)) {
this.gotoAndPlay(100);
conta = 3;
dado = true;
hostiax = obj1x - obj2x;
hostiay = obj1y - obj2y - 20;
if (_root.rampage == true) {
hostiay *= 1.3;
hostiax *= 2;
if (hostiax > 0) {
if (hostiax >= 20) {
hostiax = 20;
}
} else {
if (hostiax >= -20) {
hostiax = -20;
}
}
if (hostiay > 0) {
if (hostiay >= 10) {
hostiay = 10;
}
} else {
if (hostiay >= -10) {
hostiay = -10;
}
}
}
lejos = 0;
if (_root.todo.fuerza > 35) {
if (_root.todo.patada == true) {
if (_root.contador_patada > 10) {
_root.todo.fuerza -= 4;
} else {
_root.todo.fuerza -= 2;
}
_root.contador_patada = 0;
} else {}
}
if (estado == 'tirado') {
if (this._currentframe >= 200 and this._currentframe < 206) {
gotoAndPlay('explo_voladora');
}
if (_root.rampage == true) {
gotoAndPlay('explo2');
++_root.num_deads;
estado = 'muerto';
} else {
if (hostiay >= -5 or z_cuerpo._currentframe >= 3) {
gotoAndPlay('explo2');
++_root.num_deads;
estado = 'muerto';
} else {
gotoAndPlay(209);
estado = 'pillando';
}
}
} else {
if (estado == 'tirarse' or estado == 'tirarse1') {
gotoAndPlay('soltarse');
estado = 'retro';
} else {
if (estado == 'ahostiado1' and vel_grav > 6) {
if (hostiax < 20 and hostiax > 0) {
hostiax = 20;
} else {
if (hostiax > -20 and hostiax < 0) {
hostiax = -20;
}
}
gotoAndPlay('explo_voladora');
if (_root.award != '') {
_root.award += ' + ';
}
if (brincazo == false) {
_root.aw_death += 1;
reward = 10;
_root.rage += 5;
} else {
_root.aw_aerial += 1;
reward = 30;
_root.rage += 15;
}
_root.barra_brillo.gotoAndPlay(2);
if (_root.todo.fuerza + reward > 100) {
_root.todo.fuerza = 100;
} else {
_root.todo.fuerza += reward;
}
_root.awards.gotoAndPlay(2);
} else {
if (hostiay >= -1) {
hostiay = -5;
}
if (hostiay > -40 and _root.todo.patada != true) {
hostiay = 0;
if (tar2y > 235) {
estado = 'ahostiado2';
gotoAndPlay(259);
} else {
if (_root.rampage == true) {
posibilidad_aire = 1;
} else {
posibilidad_aire = 5;
}
if (random(posibilidad_aire) == 0) {
estado = 'ahostiado1';
if (_root.rampage == true) {
hostiay = -random(30) - 30;
hostiax = hostiax;
} else {
hostiay = -random(20) - 20;
hostiax /= 2;
}
} else {
if (tar2y > 190) {
estado = 'ahostiado0';
gotoAndPlay(235);
} else {
estado = 'ahostiado0';
gotoAndPlay(246);
}
}
}
} else {
estado = 'ahostiado1';
}
}
}
}
cont = 0;
}
distanciax = (obj1x - obj2x) / 3;
distanciay = (obj1y - obj2y) / 3;
vx = obj1x;
vy = obj1y;
} else {}
}
}
if (this.area_total.hitTest(obj1x, obj1x, true)) {
} else {
if (lejos < 7) {
++lejos;
}
}
if (dado == true) {
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
trozo = random(2) + 1;
_parent['cacho' + trozo].duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = vx;
_parent['cacho' + _parent.i]._y = vy;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + 80;
_parent['cacho' + _parent.i].tar_velx = hostiax / (random(4) + 7);
arriba = -1;
lejos = 0;
gibs = random(13);
if (gibs > 8) {
gibs = 2;
} else {
if (gibs == 0) {
gibs = 3;
}
}
if (_root.rampage == true and random(3) != 1) {
if (estado == 'ahostiado0') {
this.gotoAndPlay('explo');
} else {
if (estado == 'ahostiado1') {
this.gotoAndPlay('explo_voladora');
}
}
} else {
switch (gibs) {
case 1:
z_muslo1.gotoAndStop(2);
++_parent.i;
break;
case 2:
if (z_cuerpo._currentframe < 3) {
z_cuerpo.gotoAndStop(z_cuerpo._currentframe + 1);
} else {
if (estado == 'ahostiado0') {
this.gotoAndPlay('explo');
} else {
if (estado == 'ahostiado1') {
this.gotoAndPlay('explo_voladora');
}
}
}
if (z_cuerpo._currentframe != 3) {
} else {
case 3:
if (z_brazo1._currentframe <= 2) {
z_hombro1.gotoAndStop(2);
z_brazo1.gotoAndStop(3);
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_root.par = _parent.i;
_parent.cachobrazo.duplicateMovieClip('cacho' + _parent.i, 1000000 + _parent.i);
_parent['cacho' + _parent.i]._x = vx;
_parent['cacho' + _parent.i]._y = vy;
_parent['cacho' + _parent.i]._rotation = random(360);
_parent['cacho' + _parent.i].gotoAndPlay(2);
_parent['cacho' + _parent.i].tar_y = this._y + 80;
_parent['cacho' + _parent.i].tar_velx = hostiax / (random(4) + 7);
arriba = -1;
++_parent.i;
}
break;
case 4:
if (z_brazo2._currentframe >= 2) {
z_hombro2.gotoAndStop(2);
z_brazo2.gotoAndStop(3);
} else {
z_brazo2.gotoAndStop(2);
}
break;
case 5:
z_pierna2.gotoAndStop(2);
break;
case 6:
z_pierna1.gotoAndStop(2);
break;
case 7:
z_muslo2.gotoAndStop(2);
}
}
}
pam = new Sound(this);
if (_root.todo.patada != true) {
numrand = random(3);
switch (numrand) {
case 0:
pam.attachSound('pam_mini');
break;
case 1:
pam.attachSound('hit_blood');
break;
case 2:
pam.attachSound('pum2');
}
} else {
pam.attachSound('punch');
_root.todo.agachado = false;
}
pam.start();
alto = 0;
vel_grav = -0.01;
++_parent.i;
if (_parent.i % 2 == 0) {
++_parent.i;
}
_root.par = _parent.i;
_parent.kapow.duplicateMovieClip('kapow' + _parent.i, 1000000 + _parent.i);
_parent['kapow' + _parent.i]._x = vx;
_parent['kapow' + _parent.i]._y = vy;
_parent['kapow' + _parent.i]._rotation = random(360);
_parent['kapow' + _parent.i].gotoAndPlay(2);
arriba = -1;
}
}
}
if (estado == 'tirarse' or estado == 'tirarse1' or estado == 'tirarse2') {
this._x += x_tirarse;
posy -= y_tirarse;
}
direc = Math.round(_root.todo.tio._xscale / 100);
posy2 = Math.ceil(posy + 22) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000;
if (estado == 'retro') {
if (this._x < _root.todo.tio._x) {
this._x -= vel * 4 * Math.round(this._xscale / 100);
} else {
this._x -= vel * 4 * Math.round(this._xscale / 100);
}
} else {
if (estado == 'retro2') {
if (this._x < _root.todo.tio._x) {
this._x -= vel * Math.round(this._xscale / 100);
} else {
this._x -= vel * Math.round(this._xscale / 100);
}
}
}
if (posy2 % 2 != 0) {
++posy2;
}
if (aga != true) {
if (this._x >= -800 - this.posy) {
this.swapDepths(Math.ceil(posy + 22) * 10000 + Math.ceil(Math.abs(this._x)) + 2000000);
} else {
++_parent.i;
this.swapDepths(-1000 - _parent.i);
}
if (this.posy < -220) {
arriba = 1;
} else {
if (this.posy > -35) {
arriba = 0;
}
}
if (arriba == 1) {
posy += vel / 3;
} else {
if (arriba == 0) {
posy -= vel / 3;
}
}
if (this._currentframe < 75) {
if (alto > 2) {
this.gotoAndPlay(94);
} else {
estado = 'andando';
vel = velini;
thisx3 = thisx2;
thisx2 = thisx1;
thisx1 = Math.round(this._x * 10);
if (thisx3 == thisx1) {
estado = 'ahostiado2';
gotoAndPlay(259);
} else {
if (this._xscale < 0) {
this._x -= vel;
} else {
this._x += vel;
}
}
}
} else {}
}
if (precipicio != true or this._currentframe > 200) {
if (this._x >= 680 - this.posy) {
if (this._x >= 730 - this.posy and this._currentframe < 495) {
estado = 'ahostiado1';
alto = 1;
hostiax = 20;
hostiay = -10;
if ((this._currentframe < 100 or this._currentframe >= 200) and this._currentframe < 495) {
gotoAndPlay(100);
++_root.num_deads;
}
precipicio = true;
}
}
if (this._x <= -720 - this.posy) {
if (this._x <= -800 - this.posy and this._currentframe < 495) {
estado = 'ahostiado1';
hostiax = -20;
hostiay = -10;
deep = -1000 - _root.i;
do {
--deep;
trace('i ' + _root.i);
trace('deep ' + deep);
} while (_root.todo.getInstanceAtDepth(deep) != undefined);
this.swapDepths(deep);
if ((this._currentframe < 100 or this._currentframe > 200) and this._currentframe < 495) {
gotoAndPlay(100);
++_root.num_deads;
}
precipicio = true;
}
}
}
this._y = alto + posy;
switch (estado) {
break;
case 'andando':
case 'ahostiado1':
if (alto < 1 or precipicio == true) {
lejos = 10;
this._x += hostiax / 4;
alto_ante = alto;
alto += hostiay / 3 + vel_grav;
if (Math.abs(Math.abs(alto) - Math.abs(alto_ante)) < 0.001) {
alto = 0;
}
vel_grav += gravedad;
++cont;
if (precipicio == true and (this._currentframe < 100 or this._currentframe > 200)) {
}
this.z_sombra._visible = false;
diferencia_ventanas = 45;
if (this._x >= 680 - this.posy) {
if (reventada == false) {
if (posy + 53 < _root.todo.ventana4._y) {
if (_root.todo.ventana4._currentframe == 1) {
_root.todo.ventana4.gotoAndPlay(2);
reventada = true;
}
} else {
if (posy + 53 < _root.todo.ventana5._y) {
if (_root.todo.ventana5._currentframe == 1) {
_root.todo.ventana5.gotoAndPlay(2);
reventada = true;
}
} else {
if (_root.todo.ventana6._currentframe == 1) {
_root.todo.ventana6.gotoAndPlay(2);
reventada = true;
}
}
}
}
if (this._x >= 730 - this.posy and precipicio != true) {
precipicio = true;
if (_root.award != '') {
_root.award += ' + ';
}
if (this._currentframe > 650) {
_root.aw_bhome += 1;
reward = 15;
_root.rage += 7;
} else {
_root.aw_home += 1;
reward = 10;
_root.rage += 5;
}
++_root.num_deads;
_root.barra_brillo.gotoAndPlay(2);
if (_root.todo.fuerza + reward > 100) {
_root.todo.fuerza = 100;
} else {
_root.todo.fuerza += reward;
}
_root.awards.gotoAndPlay(2);
estado = 'ahostiado1';
}
}
if (this._x <= -720 - this.posy) {
if (this._x <= -800 - this.posy and precipicio != true) {
precipicio = true;
if (_root.award != '') {
_root.award += ' + ';
}
++_root.num_deads;
if (this._currentframe > 650) {
_root.aw_bhome += 1;
reward = 15;
_root.rage += 7;
} else {
_root.aw_home += 1;
reward = 10;
_root.rage += 5;
}
_root.barra_brillo.gotoAndPlay(2);
if (_root.todo.fuerza + reward > 100) {
_root.todo.fuerza = 100;
} else {
_root.todo.fuerza += reward;
}
_root.awards.gotoAndPlay(2);
estado = 'ahostiado1';
}
if (reventada == false) {
if (posy + 53 < _root.todo.ventana2._y) {
if (_root.todo.ventana1._currentframe == 1) {
_root.todo.ventana1.gotoAndPlay(2);
reventada = true;
}
} else {
if (posy + 53 < _root.todo.ventana3._y) {
if (_root.todo.ventana2._currentframe == 1) {
_root.todo.ventana2.gotoAndPlay(2);
reventada = true;
}
} else {
if (_root.todo.ventana3._currentframe == 1) {
_root.todo.ventana3.gotoAndPlay(2);
reventada = true;
}
}
}
}
}
} else {
vel_grav = 1;
if (this.z_cuerpo._currentframe != 4) {
gotoAndPlay(200);
} else {
gotoAndPlay('explo2');
}
alto = 1;
estado = 'tirado';
}
break;
case 'ahostiado0':
if (this._x < _root.todo.tio._x) {
this._x -= Math.abs(hostiax / 10);
} else {
this._x += Math.abs(hostiax / 10);
}
break;
case 'ahostiado2':
if (this._xscale > 0) {
this._x += 2;
} else {
this._x -= 2;
}
}
this._y = alto + posy;
} else {
stop();
jeto.stop();
}
dept = this.getDepth();
}
}
}
instance tio2 of movieClip 132 tio_simbolo {
onClipEvent (load) {
agarrao = 0;
}
onClipEvent (enterFrame) {
if (this._name == 'tio') {
_parent.posy2 = this.getDepth();
}
}
}
instance tio of movieClip 132 tio_simbolo {
onClipEvent (load) {
agarrao = 0;
}
onClipEvent (enterFrame) {
if (this._name == 'tio') {
_parent.posy2 = this.getDepth();
}
}
}
instance sombra_tio of movieClip 592 {
onClipEvent (enterFrame) {
this._x = _root.todo.tio._x;
this._y = _root.todo.tio.posy;
this.swapDepths(_root.todo.tio.getDepth() - 4);
}
}
instance pared_falsa of movieClip 598 {
onClipEvent (load) {
this.swapDepths(2000001);
_root.todo.tio._root.todo.tio.piernas.gotoAndPlay(1);
_root.todo.corriendo = true;
_root.descansando = false;
}
}
instance kapow of movieClip 394 {
onClipEvent (load) {
if (_root.gore != true) {
this.gotoAndPlay(20);
}
}
}
instance sangre_suelo of movieClip 400 {
onClipEvent (load) {
if (_root.gore != true) {
this.gotoAndPlay(105);
}
}
}
instance of movieClip 600 {
onClipEvent (load) {
this.swapDepths(99999999);
}
}
instance techo of movieClip 605 {
onClipEvent (load) {
this.swapDepths(20000000);
}
}
}
instance todo of movieClip 606 {
onClipEvent (load) {
enfrente = 0;
contador_escala = 70;
diferencia = 0;
xreal = this._x - 100;
_root.escala_f = 100;
empezar = false;
_root.stage_x = this._x;
_root.cinematic_count = 0;
if (_root.cleared == true) {
this._y += 400;
_root.cinematic_count = 50;
empezar = true;
}
_root.cleared = false;
contador_y = 0;
}
onClipEvent (enterFrame) {
_root.mierdote = this._x;
_parent.ratonx = _xmouse;
this._xscale += Math.floor((_root.escala_f - this._xscale) / 7);
this._yscale = this._xscale;
enfrente += Math.floor((this.tio._xscale - enfrente) / 4);
objetivo_x = 340 - this.tio._x - enfrente;
objetivo_y = 220 - this.tio.posy + Math.floor((this.tio.posy - this.tio._y) / 3);
diferencia = Math.floor(this.tio._x * this._xscale / 100) - this.tio._x;
_root.todo.lol = diferencia;
_root.todo.lol2 = this.tio._x;
xreal = objetivo_x - diferencia;
if (_root.cinematic == true) {
if (contador_escala < 100) {
_root.escala_f = contador_escala;
++contador_escala;
}
if (_root.cleared != true) {
this._x += Math.floor(((xreal - this._x) / 6) * 5) / 5;
this._y += Math.floor(((350 - this._y) / 4) * 5) / 6;
} else {
this._x += Math.floor(((xreal - this._x) / 6) * 5) / 5;
this._y += Math.floor(((400 - this._y) / 4) * 5) / 10;
}
} else {
_root.escala_f = 100;
if (_root.cleared != true) {
this._x += Math.floor(((xreal - this._x) / 6) * 5) / 5;
this._y += Math.floor(((objetivo_y - this._y) / 4) * 5) / 5;
} else {
_root.escala_f = 80;
if (empezar == true) {
contador_y += 0.2;
} else {
contador_y += 0.2;
}
_root.contador_y = contador_y;
if (contador_y <= 0) {
this._x += Math.floor(((xreal - this._x) / 6) * 5) / 5;
this._y += Math.floor(((objetivo_y - this._y) / 4) * 5) / 5;
} else {
if (this._y <= 0) {
_root.stage_x = this._x;
contador_escala = 70;
_root.escala_f = 70;
_parent.gotoAndPlay(26);
}
this._x += Math.floor(((_root.stage_x - this._x) / 6) * 5) / 20;
this._y += Math.floor(((objetivo_y - contador_y * contador_y * contador_y - this._y) / 4) * 5) / 20;
}
}
}
}
}
instance of movieClip 314 {
}
movieClip 613 {
}
instance ui_kick of movieClip 613 {
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_root.todo.fuerza > _root.todo.vida + 2) {
if (this._visible == true) {
this._visible = false;
}
} else {
if (this._visible == false) {
this._visible = true;
}
}
}
}
movieClip 619 {
frame 1 {
if (_root.floornum == 1) {
_root.num_deads = 0;
gotoAndStop(55);
}
}
frame 50 {
stop();
}
}
movieClip 622 {
}
movieClip 624 {
}
movieClip 626 {
frame 16 {
stop();
}
}
movieClip 627 {
}
movieClip 629 {
}
button 633 {
on (release) {
if (_root.pausa == true) {
_root.pausa = false;
_root.escala = 120;
_root.menu_pausa.gotoAndStop(2);
} else {
_root.pausa = true;
_root.escala = 100;
_root.menu_pausa.gotoAndStop(1);
}
}
}
movieClip 635 {
}
movieClip 641 {
}
movieClip 643 {
frame 1 {
stop();
}
}
movieClip 645 {
}
movieClip 647 {
frame 1 {
stop();
}
}
instance barra2 of movieClip 647 {
onClipEvent (load) {
_root.todo.fuerza = 100;
}
onClipEvent (enterFrame) {
if (_root.todo.tio._x != undefined and _root.todo.tio._x != 'undefined' and _root.todo.tio._x != NaN and _root.todo.tio._x != 'NaN') {
_root.bug_x = _root.todo.tio._x;
_root.bug_y = _root.todo.tio._y;
_root.bugposy = _root.todo.tio.posy;
} else {
this._y += 20;
_root.todo.apretado = false;
_root.todo.tio._name = 'tio3';
_root.todo.tio2._name = 'tio';
_root.todo.tio._x = _root.bug_x;
_root.todo.tio._y = _root.bug_y;
_root.todo.tio.posy = _root.bugposy;
_root.todo.tio3._x = -300;
_root.todo.tio3._y = -300;
_root.todo.patada = true;
_root.todo.corriendo = false;
_root.todo.tio.altura = 0;
_root.bug_x = _root.todo.tio._x;
_root.bug_y = _root.todo.tio._y;
_root.bugposy = _root.todo.tio.posy;
}
if (_root.todo.fuerza <= _root.todo.vida + 1) {
_root.todo.patada = false;
}
if (_root.todo.fuerza <= 0) {
this._visible = false;
} else {
this._xscale = _root.todo.fuerza;
}
}
}
movieClip 649 {
frame 1 {
stop();
}
}
instance barra of movieClip 649 {
onClipEvent (load) {
_root.todo.vida = 35;
}
onClipEvent (enterFrame) {
if (_root.todo.fuerza <= 0) {
_visible = false;
_parent.barra2._visible = false;
_root.todo.tio.gotoAndStop(2);
_root.todo.tio.agarrao = 0;
_root.todo[_root.todo.tio.agarrao_d_1].gotoAndPlay(300 + random(14));
_root.todo[_root.todo.tio.agarrao_d_1].estado = 'tirado';
_root.todo[_root.todo.tio.agarrao_d_2].gotoAndPlay(300 + random(14));
_root.todo[_root.todo.tio.agarrao_d_2].estado = 'tirado';
_root.todo[_root.todo.tio.agarrao_d_3].gotoAndPlay(300 + random(14));
_root.todo[_root.todo.tio.agarrao_d_3].estado = 'tirado';
_root.todo[_root.todo.tio.agarrao_i_1].gotoAndPlay(300 + random(14));
_root.todo[_root.todo.tio.agarrao_i_1].estado = 'tirado';
_root.todo[_root.todo.tio.agarrao_i_2].gotoAndPlay(300 + random(14));
_root.todo[_root.todo.tio.agarrao_i_2].estado = 'tirado';
_root.todo[_root.todo.tio.agarrao_i_3].gotoAndPlay(300 + random(14));
_root.todo[_root.todo.tio.agarrao_i_3].estado = 'tirado';
_root.todo.tio.agarrao_i_1 = false;
_root.todo.tio.agarrao_i_2 = false;
_root.todo.tio.agarrao_i_3 = false;
_root.todo.tio.agarrao_d_1 = false;
_root.todo.tio.agarrao_d_2 = false;
_root.todo.tio.agarrao_d_3 = false;
}
if (_root.todo.fuerza < this._xscale) {
_root.todo.vida = _root.todo.fuerza;
}
this._xscale = _root.todo.vida;
}
}
// unknown tag 88 length 144
button 655 {
on (release) {
--_root.floornum;
}
}
movieClip 657 {
}
movieClip 659 {
}
movieClip 660 {
frame 1 {
stop();
}
frame 2 {
play();
}
}
movieClip 662 {
}
movieClip 664 {
}
movieClip 667 {
}
movieClip 668 {
frame 49 {
stop();
}
}
movieClip 673 {
}
movieClip 674 {
frame 1 {
_root.aw_bhome = 0;
_root.aw_home = 0;
_root.aw_aerial = 0;
_root.aw_death = 0;
_root.aw_crushed = 0;
stop();
}
frame 2 {
_root.award = '';
if (_root.aw_aerial > 0) {
if (_root.award != '') {
_root.award += ' + ';
}
_root.award += 'AERIAL EXPLODER';
if (_root.aw_aerial > 1) {
_root.award += ' x';
_root.award += _root.aw_aerial;
}
}
if (_root.aw_death > 0) {
if (_root.award != '') {
_root.award += ' + ';
}
_root.award += 'DEATH COMBO';
if (_root.aw_death > 1) {
_root.award += ' x';
_root.award += _root.aw_death;
}
}
if (_root.aw_bhome > 0) {
if (_root.award != '') {
_root.award += ' + ';
}
_root.award += 'BLOODY HOME RUN';
if (_root.aw_bhome > 1) {
_root.award += ' x';
_root.award += _root.aw_bhome;
}
}
if (_root.aw_home > 0) {
if (_root.award != '') {
_root.award += ' + ';
}
_root.award += 'HOME RUN';
if (_root.aw_home > 1) {
_root.award += ' x';
_root.award += _root.aw_home;
}
}
if (_root.aw_crushed > 0) {
if (_root.award != '') {
_root.award += ' + ';
}
_root.award += 'CRUSHED';
if (_root.aw_crushed > 1) {
_root.award += ' x';
_root.award += _root.aw_crushed;
}
}
play();
}
frame 76 {
_root.aw_bhome = 0;
_root.aw_home = 0;
_root.aw_aerial = 0;
_root.aw_death = 0;
_root.aw_crushed = 0;
_root.award = '';
}
}
instance awards of movieClip 674 {
onClipEvent (load) {
_root.award = '';
}
}
movieClip 677 {
frame 1 {
stop();
}
}
instance barra_rage of movieClip 677 {
onClipEvent (load) {
}
onClipEvent (enterFrame) {
if (_root.pausa != false) {
_root.num100 = 60 + Math.ceil((20 - _root.floornum) / 1.5) * 10;
if (_root.rage <= 0) {
_visible = false;
_root.rage = 0;
_root.rampage = false;
} else {
_visible = true;
if (_root.rage >= _root.num100) {
_root.rage = _root.num100;
_root.rampage = true;
}
}
if (_root.rampage == true) {
aumento += 0.002;
_root.rage -= aumento;
this.gotoAndStop(2);
_root.barra_rampage.gotoAndStop(2);
} else {
aumento = 0;
cont = 300;
this.gotoAndStop(1);
_root.barra_rampage.gotoAndStop(1);
}
this._xscale = _root.rage / (_root.num100 / 100);
}
}
}
movieClip 679 {
}
button 687 {
on (release) {
gotoAndPlay(2);
_root.menu_pausa.gotoAndStop(1);
_root.menu_pausa.gotoAndStop(5);
}
}
movieClip 690 {
}
movieClip 691 {
frame 118 {
stop();
}
}
button 692 {
on (release) {
_root.menu_pausa.gotoAndStop(1);
_root.mouse._visible = false;
_root.todo.tio.mouse.stop();
_root.mano_target = 'mano';
_root.todo.patada = false;
_root.ayuda.gotoAndPlay(90);
_root;
}
}
movieClip 693 {
frame 1 {
_root.menu_pausa.gotoAndStop(5);
stop();
}
frame 2 {
_root.todo.tio.mouse.gotoAndStop(170);
}
frame 16 {
_root.todo.tio.mouse.gotoAndPlay(170);
stop();
}
}
movieClip 695 {
}
movieClip 697 {
}
movieClip 700 {
}
movieClip 701 {
frame 67 {
_root.todo.tio.altura = 0;
_root.todo.jump = false;
_root.todo.jump2 = false;
_root.todo.patada = false;
}
frame 68 {
_root.todo.tio.altura = 0;
_root.todo.jump = false;
_root.todo.jump2 = false;
_root.todo.patada = false;
_root.mano_target = 'tutorial';
_root.todo.corriendo = false;
_root.todo.tio.piernas.gotoAndPlay(30);
_root.todo.tio.mouse.gotoAndStop(155);
}
frame 87 {
_root.todo.tio.mouse.gotoAndPlay(155);
stop();
}
frame 88 {
stop();
}
frame 103 {
if (_root.todo.corriendo == true) {
gotoAndPlay(104);
} else {
gotoAndPlay(101);
}
}
frame 139 {
_root.obj_musica.gotoAndPlay(2);
}
frame 140 {
_root.max_zombies2 = 1;
}
frame 334 {
stop();
}
}
instance ayuda of movieClip 701 {
onClipEvent (load) {
if (_root.floornum != 20) {
this.stop();
this._visible = false;
}
}
}
movieClip 703 {
frame 1 {
_root.todo.patada = false;
stop();
}
frame 2 {
_root.todo.patada = true;
stop();
}
}
instance mouse of movieClip 703 {
onClipEvent (enterFrame) {
if (_root.mano_target == 'tutorial') {
this._x = (_root.todo._x + _root.todo.tio._x + Math.round(_root.todo.tio._xscale / 100) * (_root.todo.tio.mouse.mouse._x - 100)) * _root.todo._xscale / 100;
this._y = (_root.todo._y + _root.todo.tio._y + _root.todo.tio.mouse.mouse._y - 150) * _root.todo._xscale / 100;
}
}
}
frame 24 {
stop();
}
frame 25 {
gotoAndStop(2);
}
instance of movieClip 314 {
}
frame 30 {
--_root.floornum;
gotoAndPlay(23);
}