Frame 1
var info1 = "Putonavegadorquenoadmitecomunicaciónyamíqué";
var info2 = "620";
var clave = 13245;
var calite = "HIGH";
clavetex = new Array("leche", "tichy", "neleb", "venus", "trurl");
var didactica = true;
var entrandoclave = false;
Frame 12
ifFrameLoaded (88) {
gotoAndPlay (24);
}
Frame 13
var precarguero = true;
ifFrameLoaded (16) {
gotoAndPlay (15);
}
Frame 14
gotoAndPlay (13);
Instance of Symbol 19 MovieClip "relojin" in Frame 15
onClipEvent (load) {
k = 6;
g = 1;
nv = 18;
re = 10;
var x = new Array();
var y = new Array();
var vy = new Array();
var vx = new Array();
n = 0;
while (n < nv) {
x[n] = parseInt(eval (("this.v" + n) + "._x"));
y[n] = parseInt(eval (("this.v" + n) + "._y"));
vy[n] = 0;
n++;
}
vini = 0;
}
onClipEvent (enterFrame) {
n = 1;
while (n < nv) {
vy[n] = vy[n] + g;
y[n] = y[n] + vy[n];
x[n] = x[n] + vx[n];
n++;
}
n = 1;
while (n < nv) {
vecx = x[n] - x[n - 1];
vecy = y[n] - y[n - 1];
angul = Math.atan2(vecy, vecx);
r = Math.sqrt((vecx * vecx) + (vecy * vecy));
vx[n] = vx[n] - (((r - re) * Math.cos(angul)) / k);
vy[n] = vy[n] - (((r - re) * Math.sin(angul)) / k);
x[n] = x[n - 1] + (re * Math.cos(angul));
y[n] = y[n - 1] + (re * Math.sin(angul));
setProperty("v" + n, _x , x[n]);
setProperty("v" + n, _y , y[n]);
if (n == 17) {
v17._rotation = ((angul / Math.PI) * 180) - 90;
}
n++;
}
if (!_root.precarguero) {
vini = vini - g;
y[0] = y[0] + vini;
v0._y = v0._y + vini;
x[0] = x[0] + (g * 3);
v0._x = v0._x + (g * 3);
}
}
Instance of Symbol 22 MovieClip in Frame 17
onClipEvent (load) {
this._alpha = 1;
parriba = true;
}
onClipEvent (enterFrame) {
if (parriba) {
this._alpha = this._alpha * 2;
if (63 < this._alpha) {
parriba = false;
this._alpha = 100;
}
}
if (!parriba) {
if (0 < this._alpha) {
this._alpha = this._alpha - 1;
}
}
}
Instance of Symbol 27 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (0 < this._alpha) {
this._alpha = this._alpha - 1;
}
}
Frame 19
ifFrameLoaded (88) {
gotoAndPlay (25);
}
Frame 20
gotoAndPlay (19);
Frame 24
relojin._visible = false;
Frame 25
stopAllSounds();
muellon = new Sound(this);
muellon.attachSound("muelle.wav");
sonidosalto = new Sound(this);
sonidosalto.attachSound("salto.wav");
sonidopared = new Sound(this);
sonidopared.attachSound("choqueparedes.wav");
sonidosuelo = new Sound(this);
sonidosuelo.attachSound("choquesuelo.wav");
pianodo = new Sound(this);
pianodo.attachSound("pianodo.wav");
pianomi = new Sound(this);
pianomi.attachSound("pianomi.wav");
pianosi = new Sound(this);
pianosi.attachSound("pianosi.wav");
sonidoagua = new Sound(this);
sonidoagua.attachSound("water.wav");
sintonia = new Sound(this);
sintonia.attachSound("saltacolsintonia.wav");
Instance of Symbol 39 MovieClip in Frame 25
onClipEvent (load) {
var fecha = new Date();
var enero = fecha.getTime();
musiquilla = new Sound(this);
musiquilla.attachSound("saltacolchispon.wav");
musiquilla.setVolume(50);
musiquilla.start();
}
onClipEvent (enterFrame) {
ahora = new Date();
puaf = ahora.getTime() - enero;
if (4892 < puaf) {
_root._currentframe = 27;
_root.play();
}
}
Frame 26
stop();
Frame 28
muellon.start();
sintonia.start(0, 1000);
function compruebaclave() {
fasefutura = 0;
calculaNavegador();
n = 1;
while (n < 6) {
nnnn = Math.round(clave + (((n * n) * 1247) * Math.abs(Math.sin(n))));
clavazo = (clavetex[n] + nnnn) + "";
if (contrase == clavazo) {
fasefutura = n + 1;
}
n++;
}
if (0 < fasefutura) {
faseactual = fasefutura;
salta(1);
} else {
entrandoclave = false;
}
}
function getrot(xx, yy) {
var resul;
resul = Math.atan2(yy, xx);
if (resul < 0) {
resul = resul + (Math.PI*2);
}
return(resul);
}
function salta(f) {
stopAllSounds();
gotoAndPlay(((faseactual * 10) - 10) + f +30);
}
function saltasincortar(f) {
gotoAndPlay(((faseactual * 10) - 10) + f +30);
}
function proximafase() {
textofase = faseactual;
calculaNavegador();
calculaCodigo();
salta(5);
}
function centra(xx, yy) {
var boniato = eval ("stage" + faseactual);
boniato._x = boniato._x + ((200 - xx) / 10);
boniato._y = boniato._y + ((200 - yy) / 10);
}
function suena(vx, vy) {
var v = Math.sqrt((vx * vx) + (vy * vy));
_root.sonidosuelo.setVolume(100);
_root.sonidosuelo.start(0.1 - (v / 400), 1);
}
function calculaNavegador() {
clave = 13245;
info = info1 + info2;
n = 0;
while (n < info.length) {
clave = clave + info1.charCodeAt(n);
n++;
}
}
function calculaCodigo() {
nnnn = Math.round(clave + (((faseactual * faseactual) * 1247) * Math.abs(Math.sin(faseactual))));
clavefase = (clavetex[faseactual] + nnnn) + "";
}
function dentri(x1, y1, x2, y2, x3, y3, xb, yb) {
det = (((((x1 * y2) + (x2 * y3)) + (y1 * x3)) - (y2 * x3)) - (y1 * x2)) - (x1 * y3);
if (det == 0) {
return(false);
}
prealfa = (((((xb * y2) + (x2 * y3)) + (yb * x3)) - (y2 * x3)) - (yb * x2)) - (xb * y3);
prebeta = (((((x1 * yb) + (xb * y3)) + (y1 * x3)) - (yb * x3)) - (y1 * xb)) - (x1 * y3);
pregamma = (((((x1 * y2) + (x2 * yb)) + (y1 * xb)) - (y2 * xb)) - (y1 * x2)) - (x1 * yb);
alfa = prealfa / det;
beta = prebeta / det;
gamma = pregamma / det;
if (((alfa >= 0) && (beta >= 0)) && (gamma >= 0)) {
return(true);
}
return(false);
}
var faseactual = 1;
var textofase = "1";
Instance of Symbol 45 MovieClip in Frame 28
onClipEvent (load) {
var posi = this._x;
}
onClipEvent (enterFrame) {
this._x = this._x - 2;
if ((this._x + (this._width / 2)) < 0) {
this._x = posi;
}
}
Instance of Symbol 49 MovieClip in Frame 28
onClipEvent (load) {
this._visible = false;
x = this._x;
y = this._y;
a = this._width;
vx = 0;
vy = 0;
rebx = (Math.random() * 14) + 8;
reby = (Math.random() * 5) + 7;
x2 = (Math.random() * 2000) - 1400;
if (Math.random() < 0.5) {
y2 = (Math.random() * 400) + 400;
} else {
y2 = (Math.random() * 400) - 800;
}
this._width = 1;
this._x = x2;
this._y = y2;
this._visible = true;
}
onClipEvent (enterFrame) {
if (_root.entrandoclave) {
vx = vx + ((x2 - this._x) / reby);
vy = vy + ((y2 - this._y) / rebx);
} else {
vx = vx + ((x - this._x) / reby);
vy = vy + ((y - this._y) / rebx);
}
vx = vx * 0.85;
vy = vy * 0.85;
this._x = this._x + vx;
this._y = this._y + vy;
this._width = this._width + ((a - this._width) / 20);
}
Instance of Symbol 53 MovieClip in Frame 28
onClipEvent (load) {
this._visible = false;
x = this._x;
y = this._y;
a = this._width;
vx = 0;
vy = 0;
rebx = (Math.random() * 14) + 8;
reby = (Math.random() * 5) + 7;
x2 = (Math.random() * 2000) - 1400;
if (Math.random() < 0.5) {
y2 = (Math.random() * 400) + 400;
} else {
y2 = (Math.random() * 400) - 800;
}
this._width = 1;
this._x = x2;
this._y = y2;
this._visible = true;
}
onClipEvent (enterFrame) {
if (_root.entrandoclave) {
vx = vx + ((x2 - this._x) / reby);
vy = vy + ((y2 - this._y) / rebx);
} else {
vx = vx + ((x - this._x) / reby);
vy = vy + ((y - this._y) / rebx);
}
vx = vx * 0.85;
vy = vy * 0.85;
this._x = this._x + vx;
this._y = this._y + vy;
this._width = this._width + ((a - this._width) / 20);
}
Instance of Symbol 57 MovieClip in Frame 28
onClipEvent (load) {
this._visible = false;
x = this._x;
y = this._y;
a = this._width;
vx = 0;
vy = 0;
rebx = (Math.random() * 14) + 8;
reby = (Math.random() * 5) + 7;
x2 = (Math.random() * 2000) - 1400;
if (Math.random() < 0.5) {
y2 = (Math.random() * 400) + 400;
} else {
y2 = (Math.random() * 400) - 800;
}
this._width = 1;
this._x = x2;
this._y = y2;
this._visible = true;
}
onClipEvent (enterFrame) {
if (_root.entrandoclave) {
vx = vx + ((x2 - this._x) / reby);
vy = vy + ((y2 - this._y) / rebx);
} else {
vx = vx + ((x - this._x) / reby);
vy = vy + ((y - this._y) / rebx);
}
vx = vx * 0.85;
vy = vy * 0.85;
this._x = this._x + vx;
this._y = this._y + vy;
this._width = this._width + ((a - this._width) / 20);
}
Instance of Symbol 59 MovieClip in Frame 28
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (_root.entrandoclave) {
if (this._alpha < 100) {
this._alpha = this._alpha + 3;
}
} else if (0 < this._alpha) {
this._alpha = this._alpha - 3;
}
}
Instance of Symbol 66 MovieClip in Frame 28
onClipEvent (load) {
this._visible = false;
x = this._x;
y = this._y;
a = this._width;
vx = 0;
vy = 0;
if (Math.random() < 0.5) {
x2 = (Math.random() * 200) + 400;
} else {
x2 = (Math.random() * 200) - 600;
}
if (Math.random() < 0.5) {
y2 = (Math.random() * 200) + 500;
} else {
y2 = (Math.random() * 200) - 700;
}
this._width = 1;
this._x = x2;
this._y = y2;
this._visible = true;
}
onClipEvent (enterFrame) {
if (!_root.entrandoclave) {
vx = vx + ((x2 - this._x) / 10);
vy = vy + ((y2 - this._y) / 18);
} else {
vx = vx + ((x - this._x) / 10);
vy = vy + ((y - this._y) / 18);
}
vx = vx * 0.85;
vy = vy * 0.85;
this._x = this._x + vx;
this._y = this._y + vy;
this._width = this._width + ((a - this._width) / 20);
}
Instance of Symbol 68 MovieClip in Frame 28
onClipEvent (load) {
y = this._y;
vr = 0;
vy = 0;
this._y = this._y - 200;
this._rotation = (Math.random() * 60) - 30;
}
onClipEvent (enterFrame) {
vy = vy + ((y - this._y) / 18);
rot = this._rotation;
if (180 < rot) {
rot = rot - 360;
}
vr = vr - (rot / 2);
vy = vy * 0.8;
vr = vr * 0.9;
this._y = this._y + vy;
this._rotation = this._rotation + vr;
}
Instance of Symbol 70 MovieClip in Frame 28
onClipEvent (load) {
y = this._y;
vr = 0;
vy = 0;
this._y = this._y - 300;
this._rotation = (Math.random() * 60) - 30;
}
onClipEvent (enterFrame) {
vy = vy + ((y - this._y) / 16);
rot = this._rotation;
if (180 < rot) {
rot = rot - 360;
}
vr = vr - (rot / 3);
vy = vy * 0.8;
vr = vr * 0.9;
this._y = this._y + vy;
this._rotation = this._rotation + vr;
}
Frame 29
stop();
Frame 30
gotoAndPlay (29);
Frame 31
function instruye(objeto, texto) {
_root.pizarra._alpha = 0;
if (_root.didactica) {
_root.pizarra.instruccion = texto;
}
}
faseactual = 1;
Instance of Symbol 86 MovieClip "pizarra" in Frame 31
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha < 100) {
this._alpha = this._alpha + 4;
}
}
Instance of Symbol 88 MovieClip in Frame 31
onClipEvent (load) {
timer = 120;
if (!_root.didactica) {
this._visible = false;
}
}
onClipEvent (enterFrame) {
if (this._visible) {
timer--;
}
if (timer < 0) {
this._visible = false;
}
}
Frame 32
stop();
Frame 33
stop();
Frame 34
salta(3);
Frame 35
stop();
Frame 41
faseactual = 2;
Frame 42
stop();
Frame 43
stop();
Frame 44
salta(3);
Frame 45
stop();
Frame 51
faseactual = 3;
Frame 52
stop();
Instance of Symbol 101 MovieClip "profu" in Frame 52
onClipEvent (load) {
this._visible = false;
}
Frame 53
stop();
Frame 54
salta(3);
Frame 55
stop();
Frame 61
faseactual = 4;
Frame 62
stop();
Instance of Symbol 211 MovieClip "stage4" in Frame 62
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
if (!_parent.bicho.agua) {
_root.sonidoagua.setVolume(_parent.bicho.vy * 3);
_root.sonidoagua.start(0.75 - (_parent.bicho.vy / 33));
}
_parent.bicho.vx = _parent.bicho.vx * 0.9;
_parent.bicho.vy = _parent.bicho.vy - 0.7;
_parent.bicho.vy = _parent.bicho.vy * 0.9;
_parent.bicho.agua = true;
canti = (_parent.profu._y - _parent.bicho._y) / 12;
_parent.bicho.reazula(canti);
var n = Math.ceil(Math.random() * 20);
var v = Math.sqrt((_parent.bicho.vx * _parent.bicho.vx) + (_parent.bicho.vy * _parent.bicho.vy));
if (n < v) {
_parent.attachMovie("burbujeo", n + "", n);
tellTarget ("_parent." + n) {
_x = ((_parent.bicho._x + (Math.random() * 20)) - 10);
_y = (_parent.bicho._y + (Math.random() * 10));
_width = (_width + n);
_height = (_height + n);
};
}
} else {
_parent.bicho.agua = false;
}
}
Frame 63
stop();
Frame 64
salta(3);
Frame 65
stop();
Frame 70
stop();
Frame 71
faseactual = 5;
Frame 72
stop();
Frame 73
stop();
Frame 74
salta(3);
Frame 75
stop();
Frame 81
faseactual = 6;
Frame 82
stop();
Frame 83
stop();
Frame 84
salta(3);
Frame 85
sonidoquebien = new Sound(this);
sonidoquebien.attachSound("saltacolfase.wav");
sonidoquebien.setVolume(100);
sonidoquebien.start();
stop();
stop();
Instance of Symbol 259 MovieClip in Frame 85
onClipEvent (load) {
calqueboton = false;
}
onClipEvent (enterFrame) {
this._width = this._width * 1.02;
this._height = this._height * 1.02;
if (!calqueboton) {
if (this._alpha < 100) {
this._alpha = this._alpha + 2;
}
if (900 < this._width) {
calqueboton = true;
}
} else {
this._alpha--;
if (this._alpha < 1) {
_root.currentframe = 25;
_root.play();
}
}
}
Instance of Symbol 5 MovieClip in Symbol 7 MovieClip [burbujeo] Frame 1
onClipEvent (enterFrame) {
this._y = this._y - 2;
this._x = this._x - ((Math.random() * 3) - 1);
this._alpha--;
this._alpha--;
this._width = this._width * 0.95;
this._height = this._height * 0.95;
}
Symbol 7 MovieClip [burbujeo] Frame 3
if (Math.random() < 0.05) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Symbol 7 MovieClip [burbujeo] Frame 5
removeMovieClip(this);
Instance of Symbol 14 MovieClip "indicador" in Symbol 16 MovieClip Frame 1
onClipEvent (enterFrame) {
angulete = (_root.getBytesLoaded() / _root.getBytesTotal()) * 360;
this._rotation = -angulete;
if (359 < angulete) {
_root.precarguero = false;
}
}
Symbol 44 Button
on (press) {
getURL ("javascript:window.open(\"http://voetcranf.vze.com\")");
}
Symbol 46 Button
on (rollOver) {
texto._x = texto._x + 5;
texto2._x = texto2._x - 5;
_root.pianodo.start();
}
on (press) {
_root.didactica = false;
_root.salta(1);
}
Instance of Symbol 48 MovieClip "texto" in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Instance of Symbol 48 MovieClip "texto2" in Symbol 49 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Symbol 50 Button
on (rollOver) {
texto._x = texto._x + 5;
texto2._x = texto2._x - 5;
_root.pianomi.start();
}
on (press) {
_root.didactica = true;
_root.salta(1);
}
Instance of Symbol 52 MovieClip "texto" in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Instance of Symbol 52 MovieClip "texto2" in Symbol 53 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Symbol 54 Button
on (rollOver) {
texto._x = texto._x + 5;
texto2._x = texto2._x - 5;
_root.pianosi.start();
}
on (press) {
_root.entrandoclave = true;
}
Instance of Symbol 56 MovieClip "texto" in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Instance of Symbol 56 MovieClip "texto2" in Symbol 57 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Symbol 61 Button
on (rollOver) {
texto._x = texto._x + 5;
texto2._x = texto2._x - 5;
_root.pianomi.start();
}
on (press) {
_root.compruebaclave();
}
Instance of Symbol 63 MovieClip "texto" in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Instance of Symbol 63 MovieClip "texto2" in Symbol 64 MovieClip Frame 1
onClipEvent (load) {
x = this._x;
v = 0;
}
onClipEvent (enterFrame) {
v = v + ((this._x - x) / 2);
this._x = this._x - v;
v = v * 0.8;
}
Symbol 66 MovieClip Frame 1
_root.contrase = _root.contrase.toLowerCase();
if (1 < _root.contrase.length) {
if (_root.contrase.charAt(0) == "*") {
_root.contrase = _root.contrase.charAt(1);
}
}
if (11 < _root.contrase.length) {
_root.contrase = "";
}
Symbol 74 Button
on (press) {
if (_root.calite == "HIGH") {
_root.calite = "MEDIUM";
alta._visible = false;
media._visible = true;
baja._visible = false;
} else if (_root.calite == "MEDIUM") {
_root.calite = "LOW";
alta._visible = false;
media._visible = false;
baja._visible = true;
} else if (_root.calite == "LOW") {
_root.calite = "HIGH";
alta._visible = true;
media._visible = false;
baja._visible = false;
}
alta._alpha = 100;
media._alpha = 100;
baja._alpha = 100;
_root._quality = _root.calite;
}
Instance of Symbol 76 MovieClip "alta" in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this._visible) {
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this._visible = false;
}
}
}
Instance of Symbol 78 MovieClip "media" in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this._visible) {
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this._visible = false;
}
}
}
Instance of Symbol 80 MovieClip "baja" in Symbol 81 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (this._visible) {
this._alpha = this._alpha - 2;
if (this._alpha < 0) {
this._visible = false;
}
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Instance of Symbol 83 MovieClip in Symbol 84 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 4) + 2);
}
onClipEvent (enterFrame) {
if (0 < this._alpha) {
if (this._x < 0) {
this._x = this._x - factor;
} else {
this._x = this._x + factor;
}
this._alpha--;
this._alpha--;
} else {
this._visibility = false;
}
}
Symbol 84 MovieClip Frame 50
_root.saltasincortar(3);
Symbol 103 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 103 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
var impul = 50;
var ro = ((_parent._rotation * Math.PI) / 180);
_parent._parent.bicho.vx = _parent._parent.bicho.vx + (Math.sin(ro) * impul);
_parent._parent.bicho.vy = _parent._parent.bicho.vy - (Math.cos(ro) * impul);
muelleson = new Sound();
muelleson.attachSound("muelle.wav");
muelleson.start();
_parent.gotoAndPlay(2);
}
}
Symbol 103 MovieClip Frame 2
sonidomuelle = new Sound(this);
sonidomuelle.attachSound("muelle.wav");
sonidomuelle.setVolume(50);
sonidomuelle.start();
Instance of Symbol 101 MovieClip in Symbol 103 MovieClip Frame 2
onClipEvent (enterFrame) {
aqui = new Object();
aqui.x = this._x;
aqui.y = this._y;
localToGlobal(aqui);
sx = aqui.x - 200;
sy = aqui.y - 200;
distancia = Math.sqrt((sx * sx) + (sy * sy));
_parent.sonidomuelle.setVolume(100 - (distancia / 6));
_parent.sonidomuelle.setPan(sx / 2);
}
Symbol 103 MovieClip Frame 20
stop();
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
sonidoporton = new Sound(this);
sonidoporton.attachSound("sonidopuerta.wav");
sonidoporton.setVolume(100);
sonidoporton.start();
Instance of Symbol 101 MovieClip "topcillo" in Symbol 109 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
if (!_parent._parent.bicho.adios) {
_root.proximafase();
}
_parent._parent.bicho.adios = true;
}
}
Instance of Symbol 108 MovieClip in Symbol 109 MovieClip Frame 3
onClipEvent (enterFrame) {
centror = new Object();
centror.x = _parent.topcillo._x;
centror.y = _parent.topcillo._y;
localToGlobal(centror);
this._x = ((-centror.x) + 200) / 2;
this._y = ((-centror.y) + 200) / 2;
this._rotation = (400 - centror.x) - centror.y;
_parent.sonidoporton.setVolume(100);
_parent.sonidoporton.setPan((centror.x - 200) / 3);
}
Symbol 109 MovieClip Frame 95
stop();
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 20
_parent.ejecuta();
stop();
Symbol 116 MovieClip Frame 1
stop();
Instance of Symbol 101 MovieClip in Symbol 116 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
_parent.palancu.gotoAndPlay(2);
_parent.gotoAndPlay(2);
}
}
Symbol 116 MovieClip Frame 12
stop();
Symbol 120 MovieClip Frame 1
function informa() {
punto1 = new Object();
punto2 = new Object();
punto1.x = esq1._x;
punto1.y = esq1._y;
punto2.x = esq2._x;
punto2.y = esq2._y;
localToGlobal(punto1);
localToGlobal(punto2);
punto3 = new Object();
punto4 = new Object();
punto3.x = esq4._x;
punto3.y = esq4._y;
punto4.x = esq3._x;
punto4.y = esq3._y;
localToGlobal(punto3);
localToGlobal(punto4);
_parent.tocasuelotecho(punto1.x, punto1.y, punto2.x, punto2.y, punto3.x, punto3.y, punto4.x, punto4.y);
}
Instance of Symbol 118 MovieClip in Symbol 120 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 124 MovieClip in Symbol 125 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = -_parent._rotation;
}
Symbol 134 MovieClip Frame 1
stop();
Symbol 134 MovieClip Frame 2
stop();
Symbol 136 Button
on (releaseOutside) {
salta();
}
on (release) {
flecha.visible = 0;
}
on (press) {
if (0 < _parent.muerto) {
Mouse.show();
_root.salta(1);
return(undefined);
}
Mouse.hide();
flecha.visible = 100;
flecha._visible = true;
}
Symbol 137 MovieClip Frame 1
function salta() {
flecha.visible = 0;
Mouse.show();
if ((!tocapie) && (!agua)) {
return(undefined);
}
if ((!tocaconcha) && (!agua)) {
return(undefined);
}
vx = (_xmouse - bicho._x) / 6;
vy = (_ymouse - bicho._y) / 6;
var v = Math.sqrt((vx * vx) + (vy * vy));
if (25 < v) {
vx = (vx / v) * 25;
vy = (vy / v) * 25;
}
if (agua) {
vx = vx * 0.5;
vy = vy * 0.5;
}
_root.sonidosalto.setVolume(50);
_root.sonidosalto.setPan(0);
_root.sonidosalto.start((25 - v) / 50, 1);
tocapie = false;
omega1 = vy / 10;
omega3 = vy / 3;
if (agua) {
phi0 = _root.getrot(vx, -vy) - 0.523598775598299;
omega1 = omega1 + 4;
omega2 = omega2 + 1;
}
agua = false;
_parent.suelo = _parent.azulejo._y;
}
var vx = 0;
var vy = 0;
var vxrot = 0;
var r0 = 17.5;
var r1 = 17.5;
var r2 = 20;
var r3 = 30;
var phi0 = 0;
var phi0i = -2.38761041672824;
var phi1 = 0;
var phi2 = 0;
var phi3 = 0;
var omega0 = 0;
var omega1 = 0;
var omega2 = 0;
var omega3 = 0;
var alfa0 = 0;
var alfa1 = 0;
var alfa2 = 0;
var alfa3 = 0;
var gr = 57.2957795130823;
var tocaconcha = false;
var tocapie = false;
var agua = false;
var adios = false;
Instance of Symbol 134 MovieClip "flecha" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
var visible = 0;
this._alpha = 0;
this._visible = false;
}
onClipEvent (enterFrame) {
if (0 < this._visible) {
if ((_parent.tocapie && (_parent.tocaconcha)) || (_parent.agua)) {
this.gotoAndPlay(2);
} else {
this.gotoAndPlay(1);
}
this._rotation = (_root.getrot(_parent._xmouse - _parent.concha._x, _parent._ymouse - _parent.concha._y) * 180) / Math.PI;
this._x = _parent._xmouse;
this._y = _parent._ymouse;
if (0 < visible) {
this._alpha = this._alpha + 10;
}
if (95 < this._alpha) {
if (!_parent.agua) {
_parent.parabola._alpha++;
} else {
_parent.parabola._alpha = 0;
}
pvx = (_parent._xmouse - _parent.concha._x) / 6;
pvy = (_parent._ymouse - _parent.concha._y) / 6;
if (0 < pvy) {
_parent.parabola._visible = false;
} else {
_parent.parabola._visible = true;
}
pvy = -Math.abs(pvy);
var v = Math.sqrt((pvx * pvx) + (pvy * pvy));
if (25 < v) {
v = 25;
}
altote = ((v * v) * Math.sin(((-this._rotation) * Math.PI) / 180)) * Math.sin(((-this._rotation) * Math.PI) / 180);
anchote = ((v * v) * Math.sin((((-this._rotation) * Math.PI) / 180) * 2)) / 0.5;
_parent.parabola._width = Math.abs(anchote);
_parent.parabola._height = altote;
_parent.parabola._x = _parent.bicho._x + (anchote / 2);
_parent.parabola._y = _parent.bicho._y - (altote / 2);
}
if (visible == 0) {
this._alpha = 0;
this._visible = 0;
_parent.parabola._alpha = 0;
Mouse.Show();
}
}
}
Instance of Symbol 9 MovieClip [puntito] "parabola" in Symbol 137 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 137 MovieClip Frame 2
suelo = _parent.suelo - this._y;
if (!tocaconcha) {
alfa0 = -0.001;
} else {
alfa0 = 0;
}
if (!agua) {
alfa0 = 0;
alfa1 = (-Math.cos(phi1 + phi0)) / 20;
}
if (tocapie) {
if (alfa1 < 0) {
alfa1 = 0;
}
}
alfa2 = (-Math.cos((phi2 + phi1) + phi0)) / 30;
alfa3 = (-Math.cos(((phi3 + phi2) + phi1) + phi0)) / 20;
if (20 < vy) {
alfa1 = 0.025;
}
omega0 = omega0 + alfa0;
omega1 = omega1 + alfa1;
omega2 = omega2 + alfa2;
omega3 = omega3 + alfa3;
if (tocaconcha || (agua)) {
omega0 = omega0 * 0.8;
}
omega1 = omega1 * 0.95;
omega2 = omega2 * 0.95;
omega3 = omega3 * 0.95;
if (agua) {
omega1 = omega1 * 0.9;
omega2 = omega2 * 0.9;
omega3 = omega3 * 0.9;
}
if (_parent.muerto != 1) {
phi0 = phi0 + omega0;
}
if (_parent.muerto < 2) {
phi1 = phi1 + omega1;
}
if (_parent.muerto < 2) {
phi2 = phi2 + omega2;
}
if (!tocapie) {
phi3 = phi3 + omega3;
}
if (1.0471975511966 < phi1) {
phi1 = 1.0471975511966;
omega1 = (-omega1) / 3;
}
if (phi1 < -2.35619449019234) {
phi1 = -2.35619449019234;
omega1 = (-omega1) / 10;
}
if (0 < phi2) {
phi2 = 0;
omega2 = (-omega2) / 3;
}
if (phi2 < -2.61799387799149) {
phi2 = -2.61799387799149;
omega2 = (-omega2) / 3;
}
if (2.0943951023932 < phi3) {
phi3 = 2.0943951023932;
omega3 = (-omega3) / 3;
}
if (phi3 < 0.523598775598299) {
phi3 = 0.523598775598299;
omega3 = (-omega3) / 3;
}
concha._rotation = (-phi0) * gr;
phi0 = phi0 - ((Math.floor((phi0 / 2) / Math.PI) * 2) * Math.PI);
if (Math.PI < phi0) {
phi0 = phi0 - (Math.PI*2);
}
if (tocaconcha) {
omega0 = omega0 - (Math.sin((phi0 + _parent.oang) / 4) / 10);
vxrot = (-omega0) * r0;
_parent.vx = _parent.vx / 4;
} else {
vx = vx + vxrot;
vxrot = 0;
}
ang = -phi0;
x1 = r0 * Math.cos(ang - phi0i);
y1 = r0 * Math.sin(ang - phi0i);
muslo._x = x1;
muslo._y = y1;
muslo._rotation = (-(phi1 + phi0)) * gr;
ang = ang - phi1;
x2 = (r1 * Math.cos(ang)) + x1;
y2 = (r1 * Math.sin(ang)) + y1;
pantorrilla._x = x2;
pantorrilla._y = y2;
pantorrilla._rotation = (-((phi0 + phi1) + phi2)) * gr;
ang = ang - phi2;
x3 = (r2 * Math.cos(ang)) + x2;
y3 = (r2 * Math.sin(ang)) + y2;
pie._x = x3;
pie._y = y3;
pie._rotation = (-(((phi0 + phi1) + phi2) + phi3)) * gr;
if (suelo < y3) {
omega1 = omega1 + 0.16;
omega2 = omega2 - (0.15 - (phi0 / 10));
phi3 = ((-phi0) - phi1) - phi2;
tocapie = true;
} else {
Set("tocapìe", false);
}
Symbol 137 MovieClip Frame 3
gotoAndPlay (2);
Symbol 138 MovieClip Frame 1
function tocasuelotecho(ax1, ay1, ax2, ay2, ax3, ay3, ax4, ay4) {
ref1 = new Object();
ref1.x = ax1;
ref1.y = ay1;
ref2 = new Object();
ref2.x = ax2;
ref2.y = ay2;
globalToLocal(ref1);
globalToLocal(ref2);
x1 = ref1.x;
y1 = ref1.y;
x2 = ref2.x;
y2 = ref2.y;
ref3 = new Object();
ref3.x = ax3;
ref3.y = ay3;
ref4 = new Object();
ref4.x = ax4;
ref4.y = ay4;
globalToLocal(ref3);
globalToLocal(ref4);
x3 = ref3.x;
y3 = ref3.y;
x4 = ref4.x;
y4 = ref4.y;
x1 = x1 - bor;
x2 = x2 + bor;
x3 = x3 - bor;
x4 = x4 + bor;
y1 = y1 - bor;
y2 = y2 - bor;
y3 = y3 + bor;
y4 = y4 + bor;
oang = Math.atan2(y2 - y1, x2 - x1);
oangv = -3.14159265358979 + Math.atan2(y4 - y2, x4 - x2);
linea1 = (((y2 - y1) / (x2 - x1)) * (bicho._x - x1)) + y1;
linea2 = (((y4 - y3) / (x4 - x3)) * (bicho._x - x3)) + y3;
linea3 = (((x4 - x2) / (y4 - y2)) * (bicho._y - y4)) + x4;
linea4 = (((x3 - x1) / (y3 - y1)) * (bicho._y - y3)) + x3;
xc = (x1 + x4) / 2;
yc = (y1 + y4) / 2;
piederecha._x = linea4;
piederecha._y = bicho._y;
pieizquierda._x = linea3;
pieizquierda._y = bicho._y;
piearriba._x = bicho._x;
piearriba._y = linea1;
pieabajo._x = bicho._x;
pieabajo._y = linea2;
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((((linea1 < bicho._y) && (bicho._y < linea2)) && (linea4 < bicho._x)) && (bicho._x < linea3)) {
if (_root.dentri(xc, yc, x1, y1, x2, y2, bicho._x, bicho._y)) {
tocasuelo();
} else if (_root.dentri(xc, yc, x1, y1, x3, y3, bicho._x, bicho._y)) {
tocader();
} else if (_root.dentri(xc, yc, x2, y2, x4, y4, bicho._x, bicho._y)) {
tocaizq();
} else if (_root.dentri(xc, yc, x3, y3, x4, y4, bicho._x, bicho._y)) {
tocatecho();
}
}
}
function tocaizq() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (venga < -1) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(-bicho.vy, -bicho.vx);
angulosalida = ((2 * oangv) + Math.PI) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (venga < 0) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (bicho._x < linea3) {
bicho._x = linea3;
}
bicho.vy = bicho.vy * 0.98;
if (((-bicho.vy) / 30) < bicho.omega0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 400);
}
}
function tocader() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (1 < venga) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(bicho.vy, bicho.vx);
angulosalida = (2 * oangv) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (0 < venga) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (linea4 < bicho._x) {
bicho._x = linea4;
}
bicho.vy = bicho.vy * 0.98;
if (bicho.omega0 < (bicho.vy / 30)) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 400);
}
}
function tocasuelo() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (venga < 0) {
return(undefined);
}
bicho._y = bicho._y - bicho.vy;
if (1 < bicho.vy) {
bicho.omega0 = bicho.omega0 - ((Math.sin(oang) * (bicho.vy - 2)) / 50);
bicho.omega0 = bicho.omega0 - (bicho.vx / 100);
bicho.vx = bicho.vx - bicho.omega0;
_root.suena(bicho.vx / 2, bicho.vy * 2);
}
if (0 < bicho.vy) {
bicho.vy = (-bicho.vy) / 2;
}
bicho.vx = bicho.vx / 2;
if (Math.abs(bicho.vx) < 0.5) {
bicho.vx = 0;
}
bicho._y = linea1;
if (Math.abs(vy) < max) {
bicho.tocaconcha = true;
suelo = linea1 + bor;
}
}
function tocatecho() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (0 < venga) {
return(undefined);
}
bicho_y = linea2;
_root.suena(bicho.vx / 2, bicho.vy * 2);
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((Math.PI/2) < anguloataque) {
anguloataque = anguloataque - (Math.PI*2);
}
angulosalida = (oang * 2) - anguloataque;
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
bicho.vx = (v * Math.cos(angulosalida)) * 0.6;
bicho.vy = (v * Math.sin(angulosalida)) * 0.5;
}
var oang = 0;
var max = 2;
var bor = 10;
var linea1 = 0;
var linea2 = 0;
var linea3 = 0;
var linea4 = 0;
var yatoqueuno = false;
var v = 0;
var muerto = 0;
Instance of Symbol 116 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
function ejecuta() {
_parent.puerta.gotoAndPlay(2);
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Esta fase es para aprender a jugar.\n\nPara mover el saltacol\nclica, arrastra y suelta.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Bien hecho.\n\nAhora debes encontrar la salida\nde esta cueva para pasar\na la siguiente fase.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Esta palanca sirve para abrir\nla puerta de salida.\n\nCuando no sepas dónde está,\nguíate por el sonido.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Cuanto más tiempo cliques\nsobre el saltacol más visible será\nsu trayectoria.\nAsí puedes saltar con precisión.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Encontrarás una sorpresa\nnueva en cada fase.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Esta es la salida.\nAl final de cada fase se te dará\nla clave para acceder a la siguiente,\npara que no las tengas que repetir.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Las caídas no matan.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "Encontrarás una sorpresa\nnueva en cada fase.\nAlgunas peligrosas, otras no.");
visto = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
visto = false;
}
onClipEvent (enterFrame) {
if (!visto) {
if (hitTest(_parent.bicho.tope)) {
_root.instruye(this, "En las zonas con pendiente\ndebes moverte de modo suave.");
visto = true;
}
}
}
Instance of Symbol 137 MovieClip "bicho" in Symbol 138 MovieClip Frame 1
onClipEvent (load) {
function ennegrece() {
if (30 < renegra.ra) {
renegra.ra = renegra.ra - 4;
renegra.ga = renegra.ga - 5;
renegra.ba = renegra.ba - 6;
colorin.setTransform(renegra);
}
}
function reazula(canti) {
renegra.ra = 100 + canti;
renegra.ga = 100 + canti;
renegra.ba = 100 + (canti / 2);
colorin.setTransform(renegra);
}
var colorin = new Color(this);
var renegra = new Object();
renegra = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
centro = new Object();
centro.x = concha._x;
centro.y = concha._y;
localToGlobal(centro);
_root.centra(centro.x, centro.y);
if (_parent.muerto == 1) {
return(undefined);
}
if (_parent.muerto == 2) {
ennegrece();
}
if (this.adios) {
this.omega0 = this.omega0 - 0.005;
this._width = this._width * 0.994;
this._height = this._height * 0.994;
this.tocaconcha = true;
this.tocapie = true;
this.vx = this.vx + (((-this._x) + _parent.puerta._x) / 10);
this.vy = this.vy + ((((-this._y) + _parent.puerta._y) - 5) / 10);
this.vx = this.vx * 0.8;
this.vy = this.vy * 0.8;
}
_parent.suelo = _parent.azulejo._y;
this.tocaconcha = false;
this.vy = this.vy + 0.5;
this._y = this._y + this.vy;
this._x = this._x + (this.vx + this.vxrot);
}
Symbol 138 MovieClip Frame 2
stop();
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Instance of Symbol 83 MovieClip in Symbol 139 MovieClip Frame 1
onClipEvent (load) {
var factor = (Math.floor(Math.random() * 3) + 1);
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._x < -100) {
this._x = this._x + factor;
}
if (100 < this._x) {
this._x = this._x - factor;
}
if (this._alpha < 100) {
this._alpha++;
}
}
Symbol 151 MovieClip Frame 1
numerillo.gotoAndStop(_root.textofase);
Instance of Symbol 142 MovieClip in Symbol 151 MovieClip Frame 1
onClipEvent (enterFrame) {
if (4 < _root.faseactual) {
this._visible = false;
}
}
Symbol 151 MovieClip Frame 2
stop();
Symbol 152 Button
on (press) {
_root.salta(11);
}
Symbol 153 MovieClip Frame 1
sonidoquebien = new Sound(this);
sonidoquebien.attachSound("saltacolfase.wav");
sonidoquebien.setVolume(100);
sonidoquebien.start();
stop();
Instance of Symbol 151 MovieClip in Symbol 153 MovieClip Frame 1
onClipEvent (load) {
var vcom = 0;
}
onClipEvent (enterFrame) {
var pe = (this._y + vcom);
if (0 < pe) {
pe = 0;
vcom = (-vcom) / 2;
}
if (this._y < 0) {
vcom++;
}
this._y = pe;
}
Instance of Symbol 101 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
if (_parent._parent.muerto < 1) {
estertor = new Sound();
estertor.attachSound("estertor.wav");
estertor.setVolume(100);
estertor.start();
_parent._parent.muerto = 1;
}
}
}
Instance of Symbol 101 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
if (_parent._parent.muerto < 1) {
estertor = new Sound();
estertor.attachSound("estertor.wav");
estertor.setVolume(100);
estertor.start();
_parent._parent.muerto = 1;
}
}
}
Instance of Symbol 101 MovieClip in Symbol 167 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
if (_parent._parent.muerto < 1) {
estertor = new Sound();
estertor.attachSound("estertor.wav");
estertor.setVolume(100);
estertor.start();
_parent._parent.muerto = 1;
}
}
}
Symbol 168 MovieClip Frame 1
function tocasuelotecho(ax1, ay1, ax2, ay2, ax3, ay3, ax4, ay4) {
ref1 = new Object();
ref1.x = ax1;
ref1.y = ay1;
ref2 = new Object();
ref2.x = ax2;
ref2.y = ay2;
globalToLocal(ref1);
globalToLocal(ref2);
x1 = ref1.x;
y1 = ref1.y;
x2 = ref2.x;
y2 = ref2.y;
ref3 = new Object();
ref3.x = ax3;
ref3.y = ay3;
ref4 = new Object();
ref4.x = ax4;
ref4.y = ay4;
globalToLocal(ref3);
globalToLocal(ref4);
x3 = ref3.x;
y3 = ref3.y;
x4 = ref4.x;
y4 = ref4.y;
x1 = x1 - bor;
x2 = x2 + bor;
x3 = x3 - bor;
x4 = x4 + bor;
y1 = y1 - bor;
y2 = y2 - bor;
y3 = y3 + bor;
y4 = y4 + bor;
oang = Math.atan2(y2 - y1, x2 - x1);
oangv = -3.14159265358979 + Math.atan2(y4 - y2, x4 - x2);
linea1 = (((y2 - y1) / (x2 - x1)) * (bicho._x - x1)) + y1;
linea2 = (((y4 - y3) / (x4 - x3)) * (bicho._x - x3)) + y3;
linea3 = (((x4 - x2) / (y4 - y2)) * (bicho._y - y4)) + x4;
linea4 = (((x3 - x1) / (y3 - y1)) * (bicho._y - y3)) + x3;
xc = (x1 + x4) / 2;
yc = (y1 + y4) / 2;
piederecha._x = linea4;
piederecha._y = bicho._y;
pieizquierda._x = linea3;
pieizquierda._y = bicho._y;
piearriba._x = bicho._x;
piearriba._y = linea1;
pieabajo._x = bicho._x;
pieabajo._y = linea2;
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((((linea1 < bicho._y) && (bicho._y < linea2)) && (linea4 < bicho._x)) && (bicho._x < linea3)) {
if (_root.dentri(xc, yc, x1, y1, x2, y2, bicho._x, bicho._y)) {
tocasuelo();
} else if (_root.dentri(xc, yc, x1, y1, x3, y3, bicho._x, bicho._y)) {
tocader();
} else if (_root.dentri(xc, yc, x2, y2, x4, y4, bicho._x, bicho._y)) {
tocaizq();
} else if (_root.dentri(xc, yc, x3, y3, x4, y4, bicho._x, bicho._y)) {
tocatecho();
}
}
}
function tocaizq() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (venga < -1) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(-bicho.vy, -bicho.vx);
angulosalida = ((2 * oangv) + Math.PI) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (venga < 0) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (bicho._x < linea3) {
bicho._x = linea3;
}
bicho.vy = bicho.vy * 0.98;
if (((-bicho.vy) / 30) < bicho.omega0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 400);
}
}
function tocader() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (1 < venga) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(bicho.vy, bicho.vx);
angulosalida = (2 * oangv) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (0 < venga) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (linea4 < bicho._x) {
bicho._x = linea4;
}
bicho.vy = bicho.vy * 0.98;
if (bicho.omega0 < (bicho.vy / 30)) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 400);
}
}
function tocasuelo() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (venga < 0) {
return(undefined);
}
bicho._y = bicho._y - bicho.vy;
if (1 < bicho.vy) {
bicho.omega0 = bicho.omega0 - ((Math.sin(oang) * (bicho.vy - 2)) / 50);
bicho.omega0 = bicho.omega0 - (bicho.vx / 100);
bicho.vx = bicho.vx - bicho.omega0;
_root.suena(bicho.vx / 2, bicho.vy * 2);
}
if (0 < bicho.vy) {
bicho.vy = (-bicho.vy) / 2;
}
bicho.vx = bicho.vx / 2;
if (Math.abs(bicho.vx) < 0.5) {
bicho.vx = 0;
}
bicho._y = linea1;
if (Math.abs(vy) < max) {
bicho.tocaconcha = true;
suelo = linea1 + bor;
}
}
function tocatecho() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (0 < venga) {
return(undefined);
}
bicho_y = linea2;
_root.suena(bicho.vx / 2, bicho.vy * 2);
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((Math.PI/2) < anguloataque) {
anguloataque = anguloataque - (Math.PI*2);
}
angulosalida = (oang * 2) - anguloataque;
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
bicho.vx = (v * Math.cos(angulosalida)) * 0.6;
bicho.vy = (v * Math.sin(angulosalida)) * 0.5;
}
var oang = 0;
var max = 2;
var bor = 10;
var linea1 = 0;
var linea2 = 0;
var linea3 = 0;
var linea4 = 0;
var yatoqueuno = false;
var v = 0;
var muerto = 0;
Instance of Symbol 116 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (load) {
function ejecuta() {
_parent.puerta.gotoAndPlay(2);
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 137 MovieClip "bicho" in Symbol 168 MovieClip Frame 1
onClipEvent (load) {
function ennegrece() {
if (30 < renegra.ra) {
renegra.ra = renegra.ra - 4;
renegra.ga = renegra.ga - 5;
renegra.ba = renegra.ba - 6;
colorin.setTransform(renegra);
}
}
function reazula(canti) {
renegra.ra = 100 + canti;
renegra.ga = 100 + canti;
renegra.ba = 100 + (canti / 2);
colorin.setTransform(renegra);
}
var colorin = new Color(this);
var renegra = new Object();
renegra = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
centro = new Object();
centro.x = concha._x;
centro.y = concha._y;
localToGlobal(centro);
_root.centra(centro.x, centro.y);
if (_parent.muerto == 1) {
return(undefined);
}
if (_parent.muerto == 2) {
ennegrece();
}
if (this.adios) {
this.omega0 = this.omega0 - 0.005;
this._width = this._width * 0.994;
this._height = this._height * 0.994;
this.tocaconcha = true;
this.tocapie = true;
this.vx = this.vx + (((-this._x) + _parent.puerta._x) / 10);
this.vy = this.vy + ((((-this._y) + _parent.puerta._y) - 5) / 10);
this.vx = this.vx * 0.8;
this.vy = this.vy * 0.8;
}
_parent.suelo = _parent.azulejo._y;
this.tocaconcha = false;
this.vy = this.vy + 0.5;
this._y = this._y + this.vy;
this._x = this._x + (this.vx + this.vxrot);
}
Symbol 168 MovieClip Frame 2
stop();
Instance of Symbol 118 MovieClip in Symbol 186 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 188 MovieClip Frame 1
function tocasuelotecho(ax1, ay1, ax2, ay2, ax3, ay3, ax4, ay4) {
ref1 = new Object();
ref1.x = ax1;
ref1.y = ay1;
ref2 = new Object();
ref2.x = ax2;
ref2.y = ay2;
globalToLocal(ref1);
globalToLocal(ref2);
x1 = ref1.x;
y1 = ref1.y;
x2 = ref2.x;
y2 = ref2.y;
ref3 = new Object();
ref3.x = ax3;
ref3.y = ay3;
ref4 = new Object();
ref4.x = ax4;
ref4.y = ay4;
globalToLocal(ref3);
globalToLocal(ref4);
x3 = ref3.x;
y3 = ref3.y;
x4 = ref4.x;
y4 = ref4.y;
x1 = x1 - bor;
x2 = x2 + bor;
x3 = x3 - bor;
x4 = x4 + bor;
y1 = y1 - bor;
y2 = y2 - bor;
y3 = y3 + bor;
y4 = y4 + bor;
oang = Math.atan2(y2 - y1, x2 - x1);
oangv = -3.14159265358979 + Math.atan2(y4 - y2, x4 - x2);
linea1 = (((y2 - y1) / (x2 - x1)) * (bicho._x - x1)) + y1;
linea2 = (((y4 - y3) / (x4 - x3)) * (bicho._x - x3)) + y3;
linea3 = (((x4 - x2) / (y4 - y2)) * (bicho._y - y4)) + x4;
linea4 = (((x3 - x1) / (y3 - y1)) * (bicho._y - y3)) + x3;
xc = (x1 + x4) / 2;
yc = (y1 + y4) / 2;
piederecha._x = linea4;
piederecha._y = bicho._y;
pieizquierda._x = linea3;
pieizquierda._y = bicho._y;
piearriba._x = bicho._x;
piearriba._y = linea1;
pieabajo._x = bicho._x;
pieabajo._y = linea2;
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((((linea1 < bicho._y) && (bicho._y < linea2)) && (linea4 < bicho._x)) && (bicho._x < linea3)) {
if (_root.dentri(xc, yc, x1, y1, x2, y2, bicho._x, bicho._y)) {
tocasuelo();
} else if (_root.dentri(xc, yc, x1, y1, x3, y3, bicho._x, bicho._y)) {
tocader();
} else if (_root.dentri(xc, yc, x2, y2, x4, y4, bicho._x, bicho._y)) {
tocaizq();
} else if (_root.dentri(xc, yc, x3, y3, x4, y4, bicho._x, bicho._y)) {
tocatecho();
}
}
}
function tocaizq() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (venga < -1) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(-bicho.vy, -bicho.vx);
angulosalida = ((2 * oangv) + Math.PI) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (venga < 0) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (bicho._x < linea3) {
bicho._x = linea3;
}
bicho.vy = bicho.vy * 0.98;
if (((-bicho.vy) / 30) < bicho.omega0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 400);
}
}
function tocader() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (1 < venga) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(bicho.vy, bicho.vx);
angulosalida = (2 * oangv) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (0 < venga) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (linea4 < bicho._x) {
bicho._x = linea4;
}
bicho.vy = bicho.vy * 0.98;
if (bicho.omega0 < (bicho.vy / 30)) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 400);
}
}
function tocasuelo() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (venga < 0) {
return(undefined);
}
bicho._y = bicho._y - bicho.vy;
if (1 < bicho.vy) {
bicho.omega0 = bicho.omega0 - ((Math.sin(oang) * (bicho.vy - 2)) / 50);
bicho.omega0 = bicho.omega0 - (bicho.vx / 100);
bicho.vx = bicho.vx - bicho.omega0;
_root.suena(bicho.vx / 2, bicho.vy * 2);
}
if (0 < bicho.vy) {
bicho.vy = (-bicho.vy) / 2;
}
bicho.vx = bicho.vx / 2;
if (Math.abs(bicho.vx) < 0.5) {
bicho.vx = 0;
}
bicho._y = linea1;
if (Math.abs(vy) < max) {
bicho.tocaconcha = true;
suelo = linea1 + bor;
}
}
function tocatecho() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (0 < venga) {
return(undefined);
}
bicho_y = linea2;
_root.suena(bicho.vx / 2, bicho.vy * 2);
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((Math.PI/2) < anguloataque) {
anguloataque = anguloataque - (Math.PI*2);
}
angulosalida = (oang * 2) - anguloataque;
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
bicho.vx = (v * Math.cos(angulosalida)) * 0.6;
bicho.vy = (v * Math.sin(angulosalida)) * 0.5;
}
var oang = 0;
var max = 2;
var bor = 10;
var linea1 = 0;
var linea2 = 0;
var linea3 = 0;
var linea4 = 0;
var yatoqueuno = false;
var v = 0;
var muerto = 0;
Instance of Symbol 186 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
if (!_parent.bicho.agua) {
_root.sonidoagua.setVolume(_parent.bicho.vy * 3);
_root.sonidoagua.start(0.75 - (_parent.bicho.vy / 33));
}
_parent.bicho.vx = _parent.bicho.vx * 0.9;
_parent.bicho.vy = _parent.bicho.vy - 0.7;
_parent.bicho.vy = _parent.bicho.vy * 0.9;
_parent.bicho.agua = true;
canti = (_parent.profu._y - _parent.bicho._y) / 12;
_parent.bicho.reazula(canti);
var n = Math.ceil(Math.random() * 20);
var v = Math.sqrt((_parent.bicho.vx * _parent.bicho.vx) + (_parent.bicho.vy * _parent.bicho.vy));
if (n < v) {
_parent.attachMovie("burbujeo", n + "", n);
tellTarget ("_parent." + n) {
_x = ((_parent.bicho._x + (Math.random() * 20)) - 10);
_y = (_parent.bicho._y + (Math.random() * 10));
_width = (_width + n);
_height = (_height + n);
};
}
} else {
_parent.bicho.agua = false;
}
}
Instance of Symbol 116 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
function ejecuta() {
_parent.puerta.gotoAndPlay(2);
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 188 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 137 MovieClip "bicho" in Symbol 188 MovieClip Frame 1
onClipEvent (load) {
function ennegrece() {
if (30 < renegra.ra) {
renegra.ra = renegra.ra - 4;
renegra.ga = renegra.ga - 5;
renegra.ba = renegra.ba - 6;
colorin.setTransform(renegra);
}
}
function reazula(canti) {
renegra.ra = 100 + canti;
renegra.ga = 100 + canti;
renegra.ba = 100 + (canti / 2);
colorin.setTransform(renegra);
}
var colorin = new Color(this);
var renegra = new Object();
renegra = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
centro = new Object();
centro.x = concha._x;
centro.y = concha._y;
localToGlobal(centro);
_root.centra(centro.x, centro.y);
if (_parent.muerto == 1) {
return(undefined);
}
if (_parent.muerto == 2) {
ennegrece();
}
if (this.adios) {
this.omega0 = this.omega0 - 0.005;
this._width = this._width * 0.994;
this._height = this._height * 0.994;
this.tocaconcha = true;
this.tocapie = true;
this.vx = this.vx + (((-this._x) + _parent.puerta._x) / 10);
this.vy = this.vy + ((((-this._y) + _parent.puerta._y) - 5) / 10);
this.vx = this.vx * 0.8;
this.vy = this.vy * 0.8;
}
_parent.suelo = _parent.azulejo._y;
this.tocaconcha = false;
this.vy = this.vy + 0.5;
this._y = this._y + this.vy;
this._x = this._x + (this.vx + this.vxrot);
}
Symbol 188 MovieClip Frame 2
stop();
Instance of Symbol 208 MovieClip in Symbol 209 MovieClip Frame 1
onClipEvent (load) {
sonidorayo = new Sound(this);
sonidorayo.attachSound("electricidad.wav");
}
onClipEvent (enterFrame) {
if (_parent.ciclo == 0) {
sonidorayo.start(Math.random() / 2, 20);
this._visible = true;
}
if (_parent.ciclo == _parent.periodo) {
sonidorayo.stop();
this._visible = false;
}
_parent.ciclo++;
if (_parent.total < _parent.ciclo) {
_parent.ciclo = 0;
}
if (this._visible) {
this._alpha = 90 + (Math.random() * 10);
if (hitTest(_parent._parent.bicho.tope)) {
if (_parent._parent.muerto < 1) {
estertor = new Sound();
estertor.attachSound("estertor.wav");
estertor.setVolume(100);
estertor.start();
_parent._parent.muerto = 2;
}
}
centror = new Object();
centror.x = this._x;
centror.y = this._y;
localToGlobal(centror);
var ox = (centror.x - 200);
var oy = (centror.y - 200);
var ooo = (Math.sqrt((ox * ox) + (oy * oy)) / 8);
if (100 < ooo) {
ooo = 100;
}
sonidorayo.setVolume(100 - ooo);
sonidorayo.setPan(ox / 3);
}
}
Symbol 211 MovieClip Frame 1
function tocasuelotecho(ax1, ay1, ax2, ay2, ax3, ay3, ax4, ay4) {
ref1 = new Object();
ref1.x = ax1;
ref1.y = ay1;
ref2 = new Object();
ref2.x = ax2;
ref2.y = ay2;
globalToLocal(ref1);
globalToLocal(ref2);
x1 = ref1.x;
y1 = ref1.y;
x2 = ref2.x;
y2 = ref2.y;
ref3 = new Object();
ref3.x = ax3;
ref3.y = ay3;
ref4 = new Object();
ref4.x = ax4;
ref4.y = ay4;
globalToLocal(ref3);
globalToLocal(ref4);
x3 = ref3.x;
y3 = ref3.y;
x4 = ref4.x;
y4 = ref4.y;
x1 = x1 - bor;
x2 = x2 + bor;
x3 = x3 - bor;
x4 = x4 + bor;
y1 = y1 - bor;
y2 = y2 - bor;
y3 = y3 + bor;
y4 = y4 + bor;
oang = Math.atan2(y2 - y1, x2 - x1);
oangv = -3.14159265358979 + Math.atan2(y4 - y2, x4 - x2);
linea1 = (((y2 - y1) / (x2 - x1)) * (bicho._x - x1)) + y1;
linea2 = (((y4 - y3) / (x4 - x3)) * (bicho._x - x3)) + y3;
linea3 = (((x4 - x2) / (y4 - y2)) * (bicho._y - y4)) + x4;
linea4 = (((x3 - x1) / (y3 - y1)) * (bicho._y - y3)) + x3;
xc = (x1 + x4) / 2;
yc = (y1 + y4) / 2;
piederecha._x = linea4;
piederecha._y = bicho._y;
pieizquierda._x = linea3;
pieizquierda._y = bicho._y;
piearriba._x = bicho._x;
piearriba._y = linea1;
pieabajo._x = bicho._x;
pieabajo._y = linea2;
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((((linea1 < bicho._y) && (bicho._y < linea2)) && (linea4 < bicho._x)) && (bicho._x < linea3)) {
if (_root.dentri(xc, yc, x1, y1, x2, y2, bicho._x, bicho._y)) {
tocasuelo();
} else if (_root.dentri(xc, yc, x1, y1, x3, y3, bicho._x, bicho._y)) {
tocader();
} else if (_root.dentri(xc, yc, x2, y2, x4, y4, bicho._x, bicho._y)) {
tocaizq();
} else if (_root.dentri(xc, yc, x3, y3, x4, y4, bicho._x, bicho._y)) {
tocatecho();
}
}
}
function tocaizq() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (venga < -1) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(-bicho.vy, -bicho.vx);
angulosalida = ((2 * oangv) + Math.PI) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (venga < 0) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (bicho._x < linea3) {
bicho._x = linea3;
}
bicho.vy = bicho.vy * 0.98;
if (((-bicho.vy) / 30) < bicho.omega0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 400);
}
}
function tocader() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (1 < venga) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(bicho.vy, bicho.vx);
angulosalida = (2 * oangv) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (0 < venga) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (linea4 < bicho._x) {
bicho._x = linea4;
}
bicho.vy = bicho.vy * 0.98;
if (bicho.omega0 < (bicho.vy / 30)) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 400);
}
}
function tocasuelo() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (venga < 0) {
return(undefined);
}
bicho._y = bicho._y - bicho.vy;
if (1 < bicho.vy) {
bicho.omega0 = bicho.omega0 - ((Math.sin(oang) * (bicho.vy - 2)) / 50);
bicho.omega0 = bicho.omega0 - (bicho.vx / 100);
bicho.vx = bicho.vx - bicho.omega0;
_root.suena(bicho.vx / 2, bicho.vy * 2);
}
if (0 < bicho.vy) {
bicho.vy = (-bicho.vy) / 2;
}
bicho.vx = bicho.vx / 2;
if (Math.abs(bicho.vx) < 0.5) {
bicho.vx = 0;
}
bicho._y = linea1;
if (Math.abs(vy) < max) {
bicho.tocaconcha = true;
suelo = linea1 + bor;
}
}
function tocatecho() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (0 < venga) {
return(undefined);
}
bicho_y = linea2;
_root.suena(bicho.vx / 2, bicho.vy * 2);
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((Math.PI/2) < anguloataque) {
anguloataque = anguloataque - (Math.PI*2);
}
angulosalida = (oang * 2) - anguloataque;
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
bicho.vx = (v * Math.cos(angulosalida)) * 0.6;
bicho.vy = (v * Math.sin(angulosalida)) * 0.5;
}
var oang = 0;
var max = 2;
var bor = 10;
var linea1 = 0;
var linea2 = 0;
var linea3 = 0;
var linea4 = 0;
var yatoqueuno = false;
var v = 0;
var muerto = 0;
Instance of Symbol 186 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
if (!_parent.bicho.agua) {
_root.sonidoagua.setVolume(_parent.bicho.vy * 3);
_root.sonidoagua.start(0.75 - (_parent.bicho.vy / 33));
}
_parent.bicho.vx = _parent.bicho.vx * 0.9;
_parent.bicho.vy = _parent.bicho.vy - 0.7;
_parent.bicho.vy = _parent.bicho.vy * 0.9;
_parent.bicho.agua = true;
canti = (_parent.profu._y - _parent.bicho._y) / 12;
_parent.bicho.reazula(canti);
var n = Math.ceil(Math.random() * 20);
var v = Math.sqrt((_parent.bicho.vx * _parent.bicho.vx) + (_parent.bicho.vy * _parent.bicho.vy));
if (n < v) {
_parent.attachMovie("burbujeo", n + "", n);
tellTarget ("_parent." + n) {
_x = ((_parent.bicho._x + (Math.random() * 20)) - 10);
_y = (_parent.bicho._y + (Math.random() * 10));
_width = (_width + n);
_height = (_height + n);
};
}
} else {
_parent.bicho.agua = false;
}
}
Instance of Symbol 116 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function ejecuta() {
_parent.puerta.gotoAndPlay(2);
}
}
Instance of Symbol 209 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
var periodo = 20;
var ciclo = 20;
var total = 40;
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 101 MovieClip "profu" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 137 MovieClip "bicho" in Symbol 211 MovieClip Frame 1
onClipEvent (load) {
function ennegrece() {
if (30 < renegra.ra) {
renegra.ra = renegra.ra - 4;
renegra.ga = renegra.ga - 5;
renegra.ba = renegra.ba - 6;
colorin.setTransform(renegra);
}
}
function reazula(canti) {
renegra.ra = 100 + canti;
renegra.ga = 100 + canti;
renegra.ba = 100 + (canti / 2);
colorin.setTransform(renegra);
}
var colorin = new Color(this);
var renegra = new Object();
renegra = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
centro = new Object();
centro.x = concha._x;
centro.y = concha._y;
localToGlobal(centro);
_root.centra(centro.x, centro.y);
if (_parent.muerto == 1) {
return(undefined);
}
if (_parent.muerto == 2) {
ennegrece();
}
if (this.adios) {
this.omega0 = this.omega0 - 0.005;
this._width = this._width * 0.994;
this._height = this._height * 0.994;
this.tocaconcha = true;
this.tocapie = true;
this.vx = this.vx + (((-this._x) + _parent.puerta._x) / 10);
this.vy = this.vy + ((((-this._y) + _parent.puerta._y) - 5) / 10);
this.vx = this.vx * 0.8;
this.vy = this.vy * 0.8;
}
_parent.suelo = _parent.azulejo._y;
this.tocaconcha = false;
this.vy = this.vy + 0.5;
this._y = this._y + this.vy;
this._x = this._x + (this.vx + this.vxrot);
}
Symbol 211 MovieClip Frame 2
stop();
Symbol 239 MovieClip Frame 1
fuego1.gotoAndStop(Math.floor((Math.random() * 9.8) + 1));
fuego1._height = 200;
fuego1._alpha = 100;
Instance of Symbol 238 MovieClip "fuego1" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
var ciclo = (Math.random() * 3);
}
onClipEvent (enterFrame) {
this._width = 100 + (Math.sin(ciclo) * 10);
this._height = this._height * 1.05;
this._alpha = this._alpha * 0.9;
ciclo = ciclo + 0.05;
}
Instance of Symbol 238 MovieClip "fuego2" in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
var ciclo = (Math.random() * 3);
}
onClipEvent (enterFrame) {
this._width = 100 + (Math.sin(ciclo) * 10);
this._height = this._height * 1.05;
this._alpha = this._alpha * 0.9;
ciclo = ciclo + 0.05;
}
Instance of Symbol 101 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hittest(_parent._parent.bicho.tope)) {
if (_parent._parent.muerto < 1) {
estertor = new Sound();
estertor.attachSound("estertor.wav");
estertor.setVolume(100);
estertor.start();
_parent._parent.muerto = 2;
}
}
}
Symbol 239 MovieClip Frame 3
fuego2.gotoAndStop(Math.floor((Math.random() * 9.8) + 1));
fuego2._height = 200;
fuego2._alpha = 100;
Symbol 240 MovieClip Frame 1
function tocasuelotecho(ax1, ay1, ax2, ay2, ax3, ay3, ax4, ay4) {
ref1 = new Object();
ref1.x = ax1;
ref1.y = ay1;
ref2 = new Object();
ref2.x = ax2;
ref2.y = ay2;
globalToLocal(ref1);
globalToLocal(ref2);
x1 = ref1.x;
y1 = ref1.y;
x2 = ref2.x;
y2 = ref2.y;
ref3 = new Object();
ref3.x = ax3;
ref3.y = ay3;
ref4 = new Object();
ref4.x = ax4;
ref4.y = ay4;
globalToLocal(ref3);
globalToLocal(ref4);
x3 = ref3.x;
y3 = ref3.y;
x4 = ref4.x;
y4 = ref4.y;
x1 = x1 - bor;
x2 = x2 + bor;
x3 = x3 - bor;
x4 = x4 + bor;
y1 = y1 - bor;
y2 = y2 - bor;
y3 = y3 + bor;
y4 = y4 + bor;
oang = Math.atan2(y2 - y1, x2 - x1);
oangv = -3.14159265358979 + Math.atan2(y4 - y2, x4 - x2);
linea1 = (((y2 - y1) / (x2 - x1)) * (bicho._x - x1)) + y1;
linea2 = (((y4 - y3) / (x4 - x3)) * (bicho._x - x3)) + y3;
linea3 = (((x4 - x2) / (y4 - y2)) * (bicho._y - y4)) + x4;
linea4 = (((x3 - x1) / (y3 - y1)) * (bicho._y - y3)) + x3;
xc = (x1 + x4) / 2;
yc = (y1 + y4) / 2;
piederecha._x = linea4;
piederecha._y = bicho._y;
pieizquierda._x = linea3;
pieizquierda._y = bicho._y;
piearriba._x = bicho._x;
piearriba._y = linea1;
pieabajo._x = bicho._x;
pieabajo._y = linea2;
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((((linea1 < bicho._y) && (bicho._y < linea2)) && (linea4 < bicho._x)) && (bicho._x < linea3)) {
if (_root.dentri(xc, yc, x1, y1, x2, y2, bicho._x, bicho._y)) {
tocasuelo();
} else if (_root.dentri(xc, yc, x1, y1, x3, y3, bicho._x, bicho._y)) {
tocader();
} else if (_root.dentri(xc, yc, x2, y2, x4, y4, bicho._x, bicho._y)) {
tocaizq();
} else if (_root.dentri(xc, yc, x3, y3, x4, y4, bicho._x, bicho._y)) {
tocatecho();
}
}
}
function tocaizq() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (venga < -1) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(-bicho.vy, -bicho.vx);
angulosalida = ((2 * oangv) + Math.PI) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (venga < 0) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (bicho._x < linea3) {
bicho._x = linea3;
}
bicho.vy = bicho.vy * 0.98;
if (((-bicho.vy) / 30) < bicho.omega0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 400);
}
}
function tocader() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (1 < venga) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(bicho.vy, bicho.vx);
angulosalida = (2 * oangv) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (0 < venga) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (linea4 < bicho._x) {
bicho._x = linea4;
}
bicho.vy = bicho.vy * 0.98;
if (bicho.omega0 < (bicho.vy / 30)) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 400);
}
}
function tocasuelo() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (venga < 0) {
return(undefined);
}
bicho._y = bicho._y - bicho.vy;
if (1 < bicho.vy) {
bicho.omega0 = bicho.omega0 - ((Math.sin(oang) * (bicho.vy - 2)) / 50);
bicho.omega0 = bicho.omega0 - (bicho.vx / 100);
bicho.vx = bicho.vx - bicho.omega0;
_root.suena(bicho.vx / 2, bicho.vy * 2);
}
if (0 < bicho.vy) {
bicho.vy = (-bicho.vy) / 2;
}
bicho.vx = bicho.vx / 2;
if (Math.abs(bicho.vx) < 0.5) {
bicho.vx = 0;
}
bicho._y = linea1;
if (Math.abs(vy) < max) {
bicho.tocaconcha = true;
suelo = linea1 + bor;
}
}
function tocatecho() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (0 < venga) {
return(undefined);
}
bicho_y = linea2;
_root.suena(bicho.vx / 2, bicho.vy * 2);
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((Math.PI/2) < anguloataque) {
anguloataque = anguloataque - (Math.PI*2);
}
angulosalida = (oang * 2) - anguloataque;
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
bicho.vx = (v * Math.cos(angulosalida)) * 0.6;
bicho.vy = (v * Math.sin(angulosalida)) * 0.5;
}
var oang = 0;
var max = 2;
var bor = 10;
var linea1 = 0;
var linea2 = 0;
var linea3 = 0;
var linea4 = 0;
var yatoqueuno = false;
var v = 0;
var muerto = 0;
Instance of Symbol 116 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
function ejecuta() {
_parent.puerta.gotoAndPlay(2);
}
}
Instance of Symbol 209 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
var periodo = 80;
var ciclo = 20;
var total = 110;
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 240 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 137 MovieClip "bicho" in Symbol 240 MovieClip Frame 1
onClipEvent (load) {
function ennegrece() {
if (30 < renegra.ra) {
renegra.ra = renegra.ra - 4;
renegra.ga = renegra.ga - 5;
renegra.ba = renegra.ba - 6;
colorin.setTransform(renegra);
}
}
function reazula(canti) {
renegra.ra = 100 + canti;
renegra.ga = 100 + canti;
renegra.ba = 100 + (canti / 2);
colorin.setTransform(renegra);
}
var colorin = new Color(this);
var renegra = new Object();
renegra = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
centro = new Object();
centro.x = concha._x;
centro.y = concha._y;
localToGlobal(centro);
_root.centra(centro.x, centro.y);
if (_parent.muerto == 1) {
return(undefined);
}
if (_parent.muerto == 2) {
ennegrece();
}
if (this.adios) {
this.omega0 = this.omega0 - 0.005;
this._width = this._width * 0.994;
this._height = this._height * 0.994;
this.tocaconcha = true;
this.tocapie = true;
this.vx = this.vx + (((-this._x) + _parent.puerta._x) / 10);
this.vy = this.vy + ((((-this._y) + _parent.puerta._y) - 5) / 10);
this.vx = this.vx * 0.8;
this.vy = this.vy * 0.8;
}
_parent.suelo = _parent.azulejo._y;
this.tocaconcha = false;
this.vy = this.vy + 0.5;
this._y = this._y + this.vy;
this._x = this._x + (this.vx + this.vxrot);
}
Symbol 240 MovieClip Frame 2
stop();
Symbol 251 MovieClip Frame 28
if (Math.random() < 0.8) {
gotoAndPlay (1);
}
Symbol 251 MovieClip Frame 53
gotoAndPlay(Math.ceil(Math.random() * 25));
Instance of Symbol 248 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
ciclo = 0;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + Math.sin(ciclo / 11);
ciclo++;
}
Instance of Symbol 248 MovieClip in Symbol 253 MovieClip Frame 1
onClipEvent (load) {
ciclo = 0;
}
onClipEvent (enterFrame) {
this._rotation = this._rotation + Math.sin(ciclo / 10);
ciclo++;
}
Symbol 256 MovieClip Frame 1
function tocasuelotecho(ax1, ay1, ax2, ay2, ax3, ay3, ax4, ay4) {
ref1 = new Object();
ref1.x = ax1;
ref1.y = ay1;
ref2 = new Object();
ref2.x = ax2;
ref2.y = ay2;
globalToLocal(ref1);
globalToLocal(ref2);
x1 = ref1.x;
y1 = ref1.y;
x2 = ref2.x;
y2 = ref2.y;
ref3 = new Object();
ref3.x = ax3;
ref3.y = ay3;
ref4 = new Object();
ref4.x = ax4;
ref4.y = ay4;
globalToLocal(ref3);
globalToLocal(ref4);
x3 = ref3.x;
y3 = ref3.y;
x4 = ref4.x;
y4 = ref4.y;
x1 = x1 - bor;
x2 = x2 + bor;
x3 = x3 - bor;
x4 = x4 + bor;
y1 = y1 - bor;
y2 = y2 - bor;
y3 = y3 + bor;
y4 = y4 + bor;
oang = Math.atan2(y2 - y1, x2 - x1);
oangv = -3.14159265358979 + Math.atan2(y4 - y2, x4 - x2);
linea1 = (((y2 - y1) / (x2 - x1)) * (bicho._x - x1)) + y1;
linea2 = (((y4 - y3) / (x4 - x3)) * (bicho._x - x3)) + y3;
linea3 = (((x4 - x2) / (y4 - y2)) * (bicho._y - y4)) + x4;
linea4 = (((x3 - x1) / (y3 - y1)) * (bicho._y - y3)) + x3;
xc = (x1 + x4) / 2;
yc = (y1 + y4) / 2;
piederecha._x = linea4;
piederecha._y = bicho._y;
pieizquierda._x = linea3;
pieizquierda._y = bicho._y;
piearriba._x = bicho._x;
piearriba._y = linea1;
pieabajo._x = bicho._x;
pieabajo._y = linea2;
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((((linea1 < bicho._y) && (bicho._y < linea2)) && (linea4 < bicho._x)) && (bicho._x < linea3)) {
if (_root.dentri(xc, yc, x1, y1, x2, y2, bicho._x, bicho._y)) {
tocasuelo();
} else if (_root.dentri(xc, yc, x1, y1, x3, y3, bicho._x, bicho._y)) {
tocader();
} else if (_root.dentri(xc, yc, x2, y2, x4, y4, bicho._x, bicho._y)) {
tocaizq();
} else if (_root.dentri(xc, yc, x3, y3, x4, y4, bicho._x, bicho._y)) {
tocatecho();
}
}
}
function tocaizq() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (venga < -1) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(-bicho.vy, -bicho.vx);
angulosalida = ((2 * oangv) + Math.PI) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (venga < 0) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (bicho._x < linea3) {
bicho._x = linea3;
}
bicho.vy = bicho.vy * 0.98;
if (((-bicho.vy) / 30) < bicho.omega0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 - (bicho.vy / 400);
}
}
function tocader() {
venga = (Math.cos(oangv) * bicho.vy) - (Math.sin(oangv) * bicho.vx);
if (1 < venga) {
_root.suena(bicho.vx * 2, bicho.vy / 2);
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
anguloataque = Math.atan2(bicho.vy, bicho.vx);
angulosalida = (2 * oangv) - anguloataque;
bicho.vx = (v * Math.cos(angulosalida)) * 0.5;
bicho.vy = (v * Math.sin(angulosalida)) * 0.8;
} else if (0 < venga) {
bicho.vx = bicho.vy / Math.tan(oangv);
}
if (linea4 < bicho._x) {
bicho._x = linea4;
}
bicho.vy = bicho.vy * 0.98;
if (bicho.omega0 < (bicho.vy / 30)) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 100);
}
if (bicho.vy < 0) {
bicho.omega0 = bicho.omega0 + (bicho.vy / 400);
}
}
function tocasuelo() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (venga < 0) {
return(undefined);
}
bicho._y = bicho._y - bicho.vy;
if (1 < bicho.vy) {
bicho.omega0 = bicho.omega0 - ((Math.sin(oang) * (bicho.vy - 2)) / 50);
bicho.omega0 = bicho.omega0 - (bicho.vx / 100);
bicho.vx = bicho.vx - bicho.omega0;
_root.suena(bicho.vx / 2, bicho.vy * 2);
}
if (0 < bicho.vy) {
bicho.vy = (-bicho.vy) / 2;
}
bicho.vx = bicho.vx / 2;
if (Math.abs(bicho.vx) < 0.5) {
bicho.vx = 0;
}
bicho._y = linea1;
if (Math.abs(vy) < max) {
bicho.tocaconcha = true;
suelo = linea1 + bor;
}
}
function tocatecho() {
venga = (Math.cos(oang) * bicho.vy) - (Math.sin(oang) * bicho.vx);
if (0 < venga) {
return(undefined);
}
bicho_y = linea2;
_root.suena(bicho.vx / 2, bicho.vy * 2);
anguloataque = Math.atan2(bicho.vy, bicho.vx);
if ((Math.PI/2) < anguloataque) {
anguloataque = anguloataque - (Math.PI*2);
}
angulosalida = (oang * 2) - anguloataque;
v = Math.sqrt((bicho.vx * bicho.vx) + (bicho.vy * bicho.vy));
bicho.vx = (v * Math.cos(angulosalida)) * 0.6;
bicho.vy = (v * Math.sin(angulosalida)) * 0.5;
}
var oang = 0;
var max = 2;
var bor = 10;
var linea1 = 0;
var linea2 = 0;
var linea3 = 0;
var linea4 = 0;
var yatoqueuno = false;
var v = 0;
var muerto = 0;
Instance of Symbol 253 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
touche = false;
}
onClipEvent (enterFrame) {
if (!touche) {
if (hittest(_parent.bicho.tope)) {
_root.salta(5);
touche = true;
}
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 120 MovieClip in Symbol 256 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hittest(_parent.bicho.tope)) {
this.informa();
}
}
Instance of Symbol 137 MovieClip "bicho" in Symbol 256 MovieClip Frame 1
onClipEvent (load) {
function ennegrece() {
if (30 < renegra.ra) {
renegra.ra = renegra.ra - 4;
renegra.ga = renegra.ga - 5;
renegra.ba = renegra.ba - 6;
colorin.setTransform(renegra);
}
}
function reazula(canti) {
renegra.ra = 100 + canti;
renegra.ga = 100 + canti;
renegra.ba = 100 + (canti / 2);
colorin.setTransform(renegra);
}
var colorin = new Color(this);
var renegra = new Object();
renegra = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
}
onClipEvent (enterFrame) {
centro = new Object();
centro.x = concha._x;
centro.y = concha._y;
localToGlobal(centro);
_root.centra(centro.x, centro.y);
if (_parent.muerto == 1) {
return(undefined);
}
if (_parent.muerto == 2) {
ennegrece();
}
if (this.adios) {
this.omega0 = this.omega0 - 0.005;
this._width = this._width * 0.994;
this._height = this._height * 0.994;
this.tocaconcha = true;
this.tocapie = true;
this.vx = this.vx + (((-this._x) + _parent.puerta._x) / 10);
this.vy = this.vy + ((((-this._y) + _parent.puerta._y) - 5) / 10);
this.vx = this.vx * 0.8;
this.vy = this.vy * 0.8;
}
_parent.suelo = _parent.azulejo._y;
this.tocaconcha = false;
this.vy = this.vy + 0.5;
this._y = this._y + this.vy;
this._x = this._x + (this.vx + this.vxrot);
}
Symbol 256 MovieClip Frame 2
stop();
Instance of Symbol 258 MovieClip in Symbol 259 MovieClip Frame 1
onClipEvent (load) {
ciclo = 0;
}
onClipEvent (enterFrame) {
this._width = this._width + (Math.sin(ciclo) * 5);
this._height = this._height - (Math.sin(ciclo) * 5);
ciclo++;
}