Frame 1
System.security.allowDomain("http://www.hostv2.com");
Frame 7
System.security.allowDomain("http://www.hostv2.com/");
System.security.loadPolicyFile("http://www.hostv2.com/dragonjet/policy.xml");
stop();
Instance of Symbol 235 MovieClip in Frame 7
onClipEvent (load) {
_root.validar = 0;
_root.TuScoreKM = 120;
_root.TuScoreM = 0;
}
Frame 8
ln_array = new Array();
ln_array[0] = new Array();
ln_array[1] = new Array();
ln_array[2] = new Array();
ln_array[0].id = 0;
ln_aray[0].nombre = "Espa\u00F1ol mexicano";
ln_array[0].continuar = "cont_ESP";
ln_array[0].titulo1 = "title1_ESP";
ln_array[0].titulo2 = "title2_ESP";
ln_array[0].titulo3 = "title3_ESP";
ln_array[0].regreso = "return_ESP";
ln_array[0].boton = "button_ESP";
ln_array[0].play = "play_ESP";
ln_array[0].letrro = "sign_ESP";
ln_array[0].texto1 = "Haz rebotar al Dragon d\u00E1ndole click y agarra todos los Turbos que puedas para lograr que llegue lo m\u00E1s alto posible!!!";
ln_array[0].texto2 = "Cuidado! Debes hacer rebotar al Dragon d\u00E1ndole click para que suba lo m\u00E1s alto posible!";
ln_array[0].texto3 = "Debes llegar a m para que tu record sea guardado";
ln_array[0].texto4 = "Llegaste a";
ln_array[1].id = 1;
ln_aray[1].nombre = "Ingles";
ln_array[1].continuar = "cont_ING";
ln_array[1].titulo1 = "title1_ING";
ln_array[1].titulo2 = "title2_ING";
ln_array[1].titulo3 = "title3_ING";
ln_array[1].regreso = "return_ING";
ln_array[1].boton = "button_ING";
ln_array[1].play = "play_ING";
ln_array[1].letrro = "sign_ING";
ln_array[1].texto1 = "Keep the Dragon bouncing by clicking on him and catch as many Turbos as you can to make him go higher!!!";
ln_array[1].texto2 = "Beware! Make sure to keep clicking on the dragon!";
ln_array[1].texto3 = "You must reach m to get your record saved";
ln_array[1].texto4 = "You reached";
ln_array[2].id = 2;
ln_aray[2].nombre = "Frances";
ln_array[2].continuar = "cont_FCH";
ln_array[2].titulo1 = "title1_FCH";
ln_array[2].titulo2 = "title2_FCH";
ln_array[2].titulo3 = "title3_FCH";
ln_array[2].regreso = "return_FCH";
ln_array[2].boton = "button_FCH";
ln_array[2].play = "play_FCH";
ln_array[2].letrro = "sign_FCH";
ln_array[2].texto1 = "Faites rebondir le dragon en lui cliquant dessus et prenez un maximum de bonus Turbo pour le faire monter le plus possible!!!";
ln_array[2].texto2 = "Attention! Tu dois faire rebondir le dragon en lui cliquant dessus pour le faire monter plus haut!";
ln_array[2].texto3 = "Tu dois atteindre m pour que ton record soit enregistr\u00E9!";
ln_array[2].texto4 = "Tu as atteints";
trace(ln_array[0].Bienvenida);
_root.sound1 = new Sound();
_root.sound1.attachSound("sound1");
_root.sound1.start(0, 999999999);
Instance of Symbol 261 MovieClip "P1" in Frame 8
onClipEvent (enterFrame) {
if (this._y >= 550) {
this._y = (-903 + (550 - this._y)) + 13;
} else {
this._y = this._y + 13;
}
_parent.P2._y = this._y;
}
Frame 9
ln_array = new Array();
ln_array[0] = new Array();
ln_array[1] = new Array();
ln_array[2] = new Array();
ln_array[0].id = 0;
ln_aray[0].nombre = "Espa\u00F1ol mexicano";
ln_array[0].continuar = "cont_ESP";
ln_array[0].titulo1 = "title1_ESP";
ln_array[0].titulo2 = "title2_ESP";
ln_array[0].titulo3 = "title3_ESP";
ln_array[0].regreso = "return_ESP";
ln_array[0].boton = "button_ESP";
ln_array[0].play = "play_ESP";
ln_array[0].letrro = "sign_ESP";
ln_array[0].texto1 = "Haz rebotar al Dragon d\u00E1ndole click y agarra todos los Turbos que puedas para lograr que llegue lo m\u00E1s alto posible!!!";
ln_array[0].texto2 = "Cuidado! Debes hacer rebotar al Dragon d\u00E1ndole click para que suba lo m\u00E1s alto posible!";
ln_array[0].texto3 = "Debes llegar a m para que tu record sea guardado";
ln_array[0].texto4 = "Llegaste a";
ln_array[0].btn1 = "btn1_ESP";
ln_array[0].btn2 = "btn2_ESP";
ln_array[0].btn3 = "btn3_ESP";
ln_array[1].id = 1;
ln_aray[1].nombre = "Ingles";
ln_array[1].continuar = "cont_ING";
ln_array[1].titulo1 = "title1_ING";
ln_array[1].titulo2 = "title2_ING";
ln_array[1].titulo3 = "title3_ING";
ln_array[1].regreso = "return_ING";
ln_array[1].boton = "button_ING";
ln_array[1].play = "play_ING";
ln_array[1].letrro = "sign_ING";
ln_array[1].texto1 = "Keep the Dragon bouncing by clicking on him and catch as many Turbos as you can to make him go higher!!!";
ln_array[1].texto2 = "Beware! Make sure to keep clicking on the dragon!";
ln_array[1].texto3 = "You must reach m to get your record saved";
ln_array[1].texto4 = "You reached";
ln_array[1].btn1 = "btn1_ING";
ln_array[1].btn2 = "btn2_ING";
ln_array[1].btn3 = "btn3_ING";
ln_array[2].id = 2;
ln_aray[2].nombre = "Frances";
ln_array[2].continuar = "cont_FCH";
ln_array[2].titulo1 = "title1_FCH";
ln_array[2].titulo2 = "title2_FCH";
ln_array[2].titulo3 = "title3_FCH";
ln_array[2].regreso = "return_FCH";
ln_array[2].boton = "button_FCH";
ln_array[2].play = "play_FCH";
ln_array[2].letrro = "sign_FCH";
ln_array[2].texto1 = "Faites rebondir le dragon en lui cliquant dessus et prenez un maximum de bonus Turbo pour le faire monter le plus possible!!!";
ln_array[2].texto2 = "Attention! Tu dois faire rebondir le dragon en lui cliquant dessus pour le faire monter plus haut!";
ln_array[2].texto3 = "Tu dois atteindre m pour que ton record soit enregistr\u00E9!";
ln_array[2].texto4 = "Tu as atteints";
ln_array[2].btn1 = "btn1_FCH";
ln_array[2].btn2 = "btn2_FCH";
ln_array[2].btn3 = "btn3_FCH";
trace(ln_array[0].Bienvenida);
_root.megafono.gotoAndStop(3);
trace(_root.musicon);
if (_root.off == 1) {
_root.megafono.gotoAndStop(2);
} else {
_root.megafono.gotoAndStop(1);
}
_root.musicon = 1;
stop();
_root.sound1.stop();
sas = _root.createEmptyMovieClip("dragon", 99);
sas.attachMovie("personaje", "personaje", 110);
sas.personaje._y = 520;
sas.personaje.gotoAndStop(2);
_root.sound_ouch = new Sound();
_root.sound_ouch.attachSound("ouch");
_root.sound_huh = new Sound();
_root.sound_huh.attachSound("huh");
_root.sound_boing = new Sound();
_root.sound_boing.attachSound("boing");
_root.sound_goo = new Sound();
_root.sound_goo.attachSound("goo");
_root.sound_flame = new Sound();
_root.sound_flame.attachSound("flame");
_root.sound_turbo1 = new Sound();
_root.sound_turbo1.attachSound("turbo1");
_root.sound_turbo2 = new Sound();
_root.sound_turbo2.attachSound("turbo2");
_root.sound_music = new Sound();
_root.sound_music.attachSound("music");
if (_root.off != 1) {
_root.sound_music.start(0, 99999999999999);
}
Instance of Symbol 275 MovieClip "pared4" in Frame 9
onClipEvent (enterFrame) {
_root.dragon.personaje.gravitar();
}
onClipEvent (load) {
_root.Turbo = 0;
}
Instance of Symbol 261 MovieClip "P1" in Frame 9
onClipEvent (enterFrame) {
if (this._y >= 550) {
if (_root.dragon.personaje.STOP == false) {
_root.dragon.personaje.levels++;
_root.dragon.personaje.CalculateLevel();
}
this._y = (-903 + (550 - this._y)) + _root.dragon.personaje.sube;
} else {
this._y = this._y + _root.dragon.personaje.sube;
}
if ((_root.dragon.personaje.alturaKM > 115) and (this._x > -500)) {
this._x = this._x - 0.5;
_parent.P2._x = _parent.P2._x + 0.5;
}
_parent.P2._y = this._y;
}
onClipEvent (load) {
_root.Save = 0;
}
Instance of Symbol 287 MovieClip "nube2" in Frame 9
onClipEvent (enterFrame) {
if (this._y >= 869) {
this._y = -325;
this._x = (Math.random() * 540) + 90;
} else {
this._y = this._y + (_root.dragon.personaje.sube * 1.3);
}
}
Instance of Symbol 290 MovieClip "star" in Frame 9
onClipEvent (enterFrame) {
if (this._y >= -567) {
this._y = -1031;
} else {
this._y = this._y + (_root.dragon.personaje.sube * 1.1);
}
}
Instance of Symbol 292 MovieClip "nube1" in Frame 9
onClipEvent (enterFrame) {
if (this._y >= 1084.6) {
this._y = -89;
this._x = (Math.random() * 540) + 90;
} else {
this._y = this._y + _root.dragon.personaje.sube;
}
}
Instance of Symbol 294 MovieClip "nube3" in Frame 9
onClipEvent (enterFrame) {
if (this._y >= 552) {
this._y = -872.8;
this._x = (Math.random() * 540) + 90;
} else {
this._y = this._y + (_root.dragon.personaje.sube * 0.7);
}
}
Instance of Symbol 300 MovieClip "Score" in Frame 9
onClipEvent (load) {
this.swapDepths(20);
}
Instance of Symbol 309 MovieClip in Frame 9
onClipEvent (enterFrame) {
this.trackTurbo = _root.Turbo;
if (_root.Turbo < 1) {
this._xscale = 1;
this._yscale = 1;
this._alpha = 0;
} else {
this._xscale = 100;
this._yscale = 100;
this._alpha = 100;
}
}
onClipEvent (load) {
onPress = function () {
trace(_root.dragon.personaje.flotar3);
if (_root.dragon.personaje.flotar3 != true) {
_root.dragon.personaje.turbo();
}
};
}
Instance of Symbol 313 MovieClip "limitePared" in Frame 9
onClipEvent (enterFrame) {
if ((_root.dragon.personaje.alturaKM >= 115) and (this._alpha >= 0)) {
this._alpha = this._alpha - 1;
}
}
Frame 10
gotoAndStop (9);
Frame 11
System.security.loadPolicyFile("http://www.hostv2.com/dragonjet/policy.xml");
_root.Score.removeMovieClip();
var traer_Score = new LoadVars();
var rank_Score2 = new LoadVars();
trace("voy a cargar para mostrar");
traer_Score.act = "show";
traer_Score.km = "1";
traer_Score.sendAndLoad("http://www.hostv2.com/dragonjet/score.php", rank_Score2, "GET");
rank_Score2.onLoad = function (completo) {
trace("ya cargo para mostrar: " + completo);
if (completo) {
i = 1;
while (i <= 10) {
rank_Score2["player" + i] = ((rank_Score2["player" + i] == undefined) ? " " : (rank_Score2["player" + i]));
rank_Score2["score" + i] = ((rank_Score2["score" + i] == undefined) ? " " : (rank_Score2["score" + i]));
_root["pl" + i] = rank_Score2["player" + i];
_root["sc" + i] = rank_Score2["score" + i];
i++;
}
}
};
stop();
btn1.attachMovie(_root.ln_array[_root.vlanguage].play, "play", 21);
btn1.onPress = function () {
_root.gotoAndPlay(8);
};
Symbol 59 MovieClip Frame 36
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 73 MovieClip [personaje] Frame 1
#initclip 4
Object.registerClass("personaje", Dragon);
#endinitclip
Symbol 82 MovieClip Frame 1
stop();
Symbol 83 MovieClip [bonus] Frame 1
#initclip 3
Object.registerClass("bonus", BonusClip);
#endinitclip
Symbol 112 MovieClip Frame 14
stop();
Symbol 113 MovieClip [humo] Frame 19
_parent.eliminar = true;
stop();
Symbol 119 Button
on (release) {
getURL ("http://www.vinci-media.com", "_blank");
}
Symbol 121 Button
on (release) {
getURL ("http://www.2001jeux.com", "_blank");
}
Symbol 133 Button
on (release) {
_root.gotoAndStop(11);
_root.pleca.removeMovieClip();
}
Symbol 134 MovieClip Frame 1
loadVariables ("urls.txt", target_urls);
Symbol 134 MovieClip Frame 8
textDOWN = _root.ln_array[_root.vlanguage].texto2;
textUP = _root.ln_array[_root.vlanguage].texto2;
btn1.attachMovie(_root.ln_array[_root.vlanguage].continuar, "cont", 21);
btn2.attachMovie(_root.ln_array[_root.vlanguage].btn1, "b1", 21);
btn3.attachMovie(_root.ln_array[_root.vlanguage].btn2, "b2", 22);
btn4.attachMovie(_root.ln_array[_root.vlanguage].btn3, "b3", 23);
btn1.onPress = function () {
_root.gotoAndPlay(8);
_root.pleca.removeMovieClip();
};
trace("sip: " + _root.ln_array[_root.vlanguage].continuar);
btn2.onPress = function () {
getURL ("http://www.2001jeux.com", "_BLANK");
};
btn3.onPress = function () {
getURL ("http://gamezone.2001jeux.com/dragonjet.exe", "_BLANK");
};
btn4.onPress = function () {
getURL ("http://gamezone.2001jeux.com/webmasters.php", "_BLANK");
};
stop();
Symbol 137 Button
on (release) {
getURL ("http://www.vinci-media.com", "_blank");
}
Symbol 138 Button
on (release) {
getURL ("http://www.2001jeux.com", "_blank");
}
Symbol 142 MovieClip Frame 1
loadVariables ("urls.txt", target_urls);
Symbol 142 MovieClip Frame 8
titulo.attachMovie(_root.ln_array[_root.vlanguage].titulo2, "title", 12);
textDOWN = _root.ln_array[_root.vlanguage].texto1;
textUP = _root.ln_array[_root.vlanguage].texto1;
btn1.attachMovie(_root.ln_array[_root.vlanguage].continuar, "cont", 21);
btn2.attachMovie(_root.ln_array[_root.vlanguage].btn1, "b1", 21);
btn3.attachMovie(_root.ln_array[_root.vlanguage].btn2, "b2", 22);
btn4.attachMovie(_root.ln_array[_root.vlanguage].btn3, "b3", 23);
btn1.onPress = function () {
_root.gotoAndPlay(8);
_root.pleca.removeMovieClip();
};
trace("sip: " + _root.ln_array[_root.vlanguage].continuar);
btn2.onPress = function () {
getURL (target_urls.url1, "_BLANK");
};
btn3.onPress = function () {
getURL (target_urls.url2, "_BLANK");
};
btn4.onPress = function () {
getURL (target_urls.url3, "_BLANK");
};
meta = ((_root.validar == 1) ? (_root.TuScoreKM) : 120);
stop();
Symbol 143 Button
on (release) {
getURL ("http://www.vinci-media.com", "_blank");
}
Symbol 144 Button
on (release) {
getURL ("http://www.2001jeux.com", "_blank");
}
Symbol 154 Button
on (press) {
if ((pseudo != undefined) and (mail != undefined)) {
var load_Score = new LoadVars();
var show_Score2 = new LoadVars();
if (_root.dragon.personaje.SumAltura < 10) {
load_Score.m = "0" + _root.dragon.personaje.SumAltura;
} else {
load_Score.m = _root.dragon.personaje.SumAltura;
}
load_Score.km = _root.dragon.personaje.alturaKM;
load_Score.pseudo = pseudo;
load_Score.email = mail;
load_Score.act = "registrando";
validar = _global.Validar(load_Score.km, load_Score.m);
load_Score.validar = validar;
trace("Registrando: ");
for (t_nom in load_Score) {
trace((t_nom + ": ") + load_Score[t_nom]);
}
load_Score.sendAndLoad("http://www.hostv2.com/dragonjet/score.php", show_Score2, "GET");
show_Score2.onLoad = function (completo) {
trace("Completo el grabado: " + completo);
if (completo) {
}
};
_root.gotoAndPlay(11);
_root.pleca.removeMovieClip();
}
}
Symbol 155 MovieClip Frame 8
_global.Validar = function (km, m) {
val = km + m;
val = val + 1000;
val = val / 2;
val = (val * 20) / (val * 0.5);
return(val);
};
titulo.attachMovie(_root.ln_array[_root.vlanguage].titulo3, "title", 12);
btn2.attachMovie(_root.ln_array[_root.vlanguage].btn1, "b1", 21);
btn3.attachMovie(_root.ln_array[_root.vlanguage].btn2, "b2", 22);
btn4.attachMovie(_root.ln_array[_root.vlanguage].btn3, "b3", 23);
btn2.onPress = function () {
getURL ("http://www.2001jeux.com", "_BLANK");
};
btn3.onPress = function () {
getURL ("http://gamezone.2001jeux.com/dragonjet.exe", "_BLANK");
};
btn4.onPress = function () {
getURL ("http://gamezone.2001jeux.com/webmasters.php", "_BLANK");
};
stop();
Symbol 164 MovieClip Frame 8
titulo.attachMovie(_root.ln_array[_root.vlanguage].titulo3, "title", 12);
textDOWN = _root.ln_array[_root.vlanguage].texto4;
textUP = _root.ln_array[_root.vlanguage].texto4;
btn1.attachMovie(_root.ln_array[_root.vlanguage].continuar, "cont", 21);
btn2.attachMovie(_root.ln_array[_root.vlanguage].btn1, "b1", 21);
btn3.attachMovie(_root.ln_array[_root.vlanguage].btn2, "b2", 22);
btn4.attachMovie(_root.ln_array[_root.vlanguage].btn3, "b3", 23);
btn1.onPress = function () {
_root.gotoAndPlay(8);
_root.pleca.removeMovieClip();
};
trace("sip: " + _root.ln_array[_root.vlanguage].continuar);
btn2.onPress = function () {
getURL ("http://www.2001jeux.com", "_BLANK");
};
btn3.onPress = function () {
getURL ("http://gamezone.2001jeux.com/dragonjet.exe", "_BLANK");
};
btn4.onPress = function () {
getURL ("http://gamezone.2001jeux.com/webmasters.php", "_BLANK");
};
Score.Mscore = _root.dragon.personaje.alturaKM;
if (_root.dragon.personaje.SumAltura < 10) {
Score.mscore = "0" + _root.dragon.personaje.SumAltura;
} else {
Score.mscore = _root.dragon.personaje.SumAltura;
}
stop();
Instance of Symbol 163 MovieClip "Score" in Symbol 164 MovieClip Frame 8
onClipEvent (load) {
this.swapDepths(20);
}
Symbol 165 MovieClip Frame 1
if (_root.Save <= 1) {
var load_Score = new LoadVars();
var show_Score = new LoadVars();
var show_Score2 = new LoadVars();
if (_root.dragon.personaje.SumAltura < 10) {
load_Score.m = "0" + _root.dragon.personaje.SumAltura;
} else {
load_Score.m = _root.dragon.personaje.SumAltura;
}
load_Score.km = _root.dragon.personaje.alturaKM;
load_Score.act = "cargando";
trace((("Voy a Guardar: m: " + load_Score.m) + " km: ") + load_Score.km);
load_Score.sendAndLoad("http://www.hostv2.com/dragonjet/score.php", show_Score, "GET");
show_Score.onLoad = function (completo) {
trace("Obtuve de regreso: " + completo);
trace("flag: " + this.flag);
if (completo) {
flag = this.flag;
if (flag == "Y") {
gotoAndStop (2);
} else if (flag == "N") {
gotoAndStop (3);
}
asa = flag;
}
};
_root.Save++;
}
stop();
Symbol 166 MovieClip [pleca1] Frame 1
stop();
Symbol 229 MovieClip Frame 1
bytesloaded = int(((_root.getBytesLoaded() / _root.getBytesTotal()) * 100) * 1.4);
if (bytesloaded > 100) {
bytesloaded = 100;
}
Symbol 351 MovieClip [__Packages.BonusClip] Frame 0
class BonusClip extends MovieClip
{
var actual, _y, _x, BonusRand, multiplier, Bimg, removeMovieClip, attachMovie, hitTest;
function BonusClip () {
super();
actual = _root.dragon.personaje.i;
Ypos = int(Math.random() * 540);
_y = -Ypos;
_x = int((Math.random() * 510) + 90);
BonusRand = int(Math.random() * 30);
if (BonusRand == 7) {
multiplier = int(Math.random() * 5);
multiplier++;
Bimg.gotoAndStop(multiplier);
} else {
multiplier = 1;
}
}
function onEnterFrame() {
if (_root.dragon.personaje.STOP) {
removeMovieClip();
} else {
if (eliminar) {
removeMovieClip();
}
_y = _y + (_root.dragon.personaje.sube + 10);
if (_root["bonus" + actual]["bonusImg" + actual].hitA.hitTest(_root.dragon.personaje.hitDragon) and (Humohecho == false)) {
Humohecho = true;
if (_root.off != 1) {
_root.sound_flame.start();
}
if (multiplier == 1) {
_root.Turbo++;
} else if (_root.Turbo == 0) {
_root.Turbo = multiplier;
} else {
_root.Turbo = _root.Turbo * multiplier;
}
trace("Turbo: " + _root.Turbo);
attachMovie("humo", "humo", 60);
Bimg._alpha = 0;
}
if (hitTest(_root.bonus1.bonusImg1.hitB) and (actual != 1)) {
removeMovieClip();
}
if (hitTest(_root.bonus2.bonusImg2.hitB) and (actual != 2)) {
removeMovieClip();
}
if (hitTest(_root.bonus3.bonusImg3.hitB) and (actual != 3)) {
removeMovieClip();
}
}
}
function onPress() {
if (Humohecho == false) {
if (_root.off != 1) {
_root.sound_flame.start();
}
Humohecho = true;
if (multiplier == 1) {
_root.Turbo++;
} else {
_root.Turbo = _root.Turbo * multiplier;
}
trace("Turbo: " + _root.Turbo);
attachMovie("humo", "humo", 60);
Bimg._alpha = 0;
}
}
var gravedad = 20;
var Ypos = 0;
var Humohecho = false;
var eliminar = false;
}
Symbol 352 MovieClip [__Packages.Dragon] Frame 0
class Dragon extends MovieClip
{
var _y, _x, fall, j, elementos, probaElement, i, _rotation, TurboClass, TTurbo, Sflotar, flotar3, gotoAndStop, Rpose;
function Dragon () {
super();
_y = 5;
_x = int((Math.random() * 521) + 80);
fall = true;
CalculateLevel();
_root.dragon.personaje.animacion.gotoAndStop(3);
_root.sound_turbo2 = new Sound();
_root.sound_turbo2.attachSound("turbo2");
_root.sound_turbo2.start();
_root.Turbo = 2;
turbo();
}
function CalculateLevel() {
if ((alturaKM >= 115) and (_root.paraLetrero != 1)) {
_root.limitePared._alpha = 100;
if (_root.paraLetrero != 1) {
_root.limitePared.gotoAndPlay(2);
}
}
if (alturaKM >= 120) {
_root.pared4._x = -170;
_root.pared2._x = 1000;
}
j = 0;
while (j <= 5) {
_root["bonus" + j].removeMovieClip();
j++;
}
elementos = int(Math.random() * 30);
if (elementos < 10) {
j = 0;
while (j <= 3) {
probaElement = elementos % j;
if (probaElement == 0) {
RealElement = j;
}
j++;
}
} else {
RealElement = 0;
}
i = 1;
while (i <= RealElement) {
_root.createEmptyMovieClip("bonus" + i, 30 + i);
_root["bonus" + i].attachMovie("bonus", "bonusImg" + i, 80 + (i * 10));
i++;
}
}
function lanzar() {
}
function pleca(action) {
STOP = true;
_root.pasto.stop();
_root.fondo.stop();
_root.nube1.stop();
_root.nube2.stop();
_root.nube3.stop();
_root.attachMovie("pleca1", "pleca", 70);
switch (action) {
case "perdu" :
_root.pleca.gotoAndStop(1);
break;
case "ressayez" :
_root.pleca.gotoAndStop(2);
break;
case "gagne" :
_root.pleca.gotoAndStop(3);
_root.Save = 1;
}
_root.pleca._x = 364;
_root.pleca._y = 200;
}
function Score() {
SumAltura = SumAltura + 16;
sube = ((Tflotar == true) ? 60 : 20);
if (SumAltura > 99) {
alturaKM++;
SumAltura = 0;
}
if (SumAltura < 10) {
_root.Score.mscore = "0" + SumAltura;
} else {
_root.Score.mscore = SumAltura;
}
_root.Score.Mscore = alturaKM;
}
function gravitar() {
if (STOP == false) {
if ((levels > 120) and (_root.Fondo.Tarde._alpha <= 100)) {
_root.Fondo.Tarde._alpha = _root.Fondo.Tarde._alpha + 1;
_root.star._alpha = 0;
if (_root.Fondo.Tarde._alpha >= 100) {
_root.Fondo.Noche._alpha = 100;
levels = 0;
}
} else if ((levels > 80) and (_root.Fondo.Noche._alpha > 1)) {
_root.Fondo.Noche._alpha = _root.Fondo.Noche._alpha - 1;
_root.nube1._alpha = 100;
_root.nube2._alpha = 100;
_root.nube3._alpha = 100;
_root.star._alpha = 0;
} else if ((levels > 40) and (_root.Fondo.Tarde._alpha > 1)) {
_root.Fondo.Tarde._alpha = _root.Fondo.Tarde._alpha - 1;
_root.star._alpha = 100;
_root.nube1._alpha = 0;
_root.nube2._alpha = 0;
_root.nube3._alpha = 0;
}
_y = _y + yvel;
_root.TuScoreKM = ((_root.TuScoreKM < alturaKM) ? (alturaKM) : (_root.TuScoreKM));
if (_root.TuScoreKM > alturaKM) {
_root.validar = 1;
_root.TuScoreM = SumAltura;
} else {
_root.validar = 0;
}
if (((((_y + yvel) - 200) >= _root.pared1._y) or (_x < _root.Sp1._x)) or (_x > _root.Sp2._x)) {
_root.sound_music.stop();
_root.Turbo = 0;
if (alturaKM < 20) {
pleca("perdu");
} else if ((alturaKM < 120) and (_root.validar == 0)) {
pleca("ressayez");
} else {
pleca("gagne");
}
trace(_root.TuScoreKM);
} else {
_y = _y + yvel;
}
if (yvel > 0) {
yvel = yvel + flota;
sube = 13;
} else {
yvel = yvel + gravedad;
Score();
}
yvel = yvel * friccion;
if (((_x + xvel) + anchoPer) >= _root.pared2._x) {
_x = _root.pared2._x - anchoPer;
xvel = -xvel;
if ((_root.off != 1) and (Tflotar == false)) {
_root.sound_ouch.start();
}
} else if (((_x + xvel) - anchoPer) <= _root.pared4._x) {
_x = _root.pared4._x + anchoPer;
xvel = -xvel;
if ((_root.off != 1) and (Tflotar == false)) {
_root.sound_ouch.start();
}
} else {
_x = _x + xvel;
}
xvel = xvel * friccion;
_rotation = _rotation + ((xvel * 2) * bonusR);
if (_y < (_root.pared5._y - altoPer)) {
_root.flecha._alpha = 100;
_root.flecha._x = _x;
_root.flecha._y = 15;
} else {
_root.flecha._alpha = 0;
}
if (TurboActivated) {
if (TurboClass == 1) {
if (TempTurbo) {
yvel = yvel - 5;
}
if (_y <= _root.pared3._y) {
_y = _root.pared3._y;
TempTurbo = false;
if (Launch) {
yvel = yvel - (60 * TTurbo);
Launch = false;
}
}
}
if (TurboClass == 2) {
_root.dragon.personaje.animacion.gotoAndStop(3);
_rotation = 0;
if (TempTurbo) {
yvel = yvel - 5;
}
if (_y <= _root.pared3._y) {
Tflotar = true;
TempTurbo = false;
if (Launch) {
yvel = yvel - (60 * TTurbo);
Launch = false;
}
}
if (Tflotar) {
flotar();
}
trace(Sflotar);
Sflotar = Sflotar - 8;
if (Sflotar <= 1) {
Tflotar = false;
if (flotar3) {
TurboClass = 1;
TTurbo = 1;
TempTurbo = true;
Launch = true;
_rotation = 0;
xvel = 0;
}
flotar3 = false;
}
}
}
}
}
function turbo() {
TurboActivated = true;
if (_root.Turbo <= 3) {
TurboClass = 1;
TTurbo = _root.Turbo;
if (_root.off != 1) {
_root.sound_turbo1.start();
}
TempTurbo = true;
Launch = true;
} else {
TurboClass = 2;
_root.dragon.personaje.animacion.gotoAndStop(1);
if (_root.off != 1) {
_root.sound_turbo2.start();
}
TTurbo = _root.Turbo;
TempTurbo = true;
Launch = true;
Sflotar = 140 * _root.Turbo;
flotar3 = true;
}
xvel = xvel * 0.3;
_root.Turbo = 0;
}
function flotar() {
Score();
if (_y < _root.T1._y) {
yvel = 20;
}
if (_y > _root.T2._y) {
_y = _root.T2._y;
}
if ((_root._xmouse > (_x + 1)) and (_root._xmouse < (_x + 10))) {
xvel = 0;
} else if ((_root._xmouse < (_x - 1)) and (_root._xmouse > (_x - 10))) {
xvel = 0;
} else if (_root._xmouse > _x) {
xvel = 10;
} else {
xvel = -10;
}
}
function onPress() {
if (!Tflotar) {
gotoAndStop(2);
alturaM = alturaM + SumAltura;
SumAltura = 0;
boost = int(Math.random() * 15);
yvel = yvel - (25 + boost);
dd = _x - _root._xmouse;
xvel = xvel + (dd * 0.5);
if ((xvel >= 16) or (xvel <= -16)) {
_root.dragon.personaje.animacion.gotoAndStop(2);
if (_root.off != 1) {
_root.sound_boing.start();
}
bonusR = 5;
} else if ((xvel >= 8) or (xvel <= -8)) {
_root.dragon.personaje.animacion.gotoAndStop(4);
trace("sssssssssssssssssss" + _root.off);
if (_root.off != 1) {
_root.sound_huh.start();
}
bonusR = 0.95;
} else {
Rpose = Math.random() * 10;
if (Rpose <= 5) {
_root.dragon.personaje.animacion.gotoAndStop(1);
if (_root.off != 1) {
_root.sound_goo.start();
}
} else {
_root.dragon.personaje.animacion.gotoAndStop(5);
if (_root.off != 1) {
_root.sound_goo.start();
}
}
bonusR = 1;
}
if (xvel > 20) {
xvel = 7;
}
if (xvel < -20) {
xvel = -7;
}
}
}
var gravedad = 2;
var flota = 0.8;
var friccion = 0.97;
var anchoPer = 27.5;
var altoPer = 52;
var yvel = 0;
var xvel = 0;
var dd = 0;
var alturaM = 0;
var alturaKM = 0;
var SumAltura = 0;
var boost = 0;
var bonusR = 1;
var levels = 0;
var RealElement = 0;
var TurboActivated = false;
var STOP = false;
var TempTurbo = false;
var Launch = false;
var Tflotar = false;
var sube = 0;
}
Symbol 244 Button
on (release) {
_root.vlanguage = 2;
play();
}
Symbol 245 Button
on (release) {
_root.vlanguage = 1;
play();
}
Symbol 246 Button
on (release) {
_root.vlanguage = 0;
play();
}
Symbol 252 MovieClip Frame 1
stop();
Symbol 252 MovieClip Frame 91
_root.gotoAndStop(8);
Symbol 259 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 14
stop();
Symbol 267 MovieClip Frame 14
stop();
Symbol 268 MovieClip Frame 14
stop();
Symbol 272 MovieClip Frame 8
textDOWN = _root.ln_array[_root.vlanguage].texto1;
textUP = _root.ln_array[_root.vlanguage].texto1;
btn1.attachMovie(_root.ln_array[_root.vlanguage].continuar, "cont", 21);
btn1.onPress = function () {
_root.gotoAndStop(9);
};
trace("sip: " + _root.ln_array[_root.vlanguage].texto1);
stop();
Symbol 273 MovieClip Frame 1
trace("CARGAAAAAAAa");
Symbol 273 MovieClip Frame 124
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 1
stop();
Symbol 313 MovieClip Frame 1
let.attachMovie(_root.ln_array[_root.vlanguage].letrro, "letrro", 12);
stop();
Symbol 313 MovieClip Frame 15
stop();
_root.paraLetrero = 1;
Symbol 316 MovieClip Frame 1
stop();
Symbol 318 Button
on (release) {
_root.musicon++;
if ((_root.musicon % 2) == 0) {
_root.sound_music.stop();
_root.off = 1;
_root.megafono.gotoAndStop(2);
} else {
_root.off = 0;
_root.sound_music.start(0, 99999999999999);
_root.megafono.gotoAndStop(1);
}
}