Section 1
//eucerin (cl.bekhoteam.eucerin)
package cl.bekhoteam {
import flash.events.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
public class eucerin {
private const gateway:String = "http://www.bekhoteam.net/eucerin/score/amfphp/gateway.php";
private var chanel:SoundChannel;
private var ldr:Loader;
private var currentStage:int;// = 0
private var tribiaRq:MovieClip;
private var loggin:MovieClip;
private var highscoress:MovieClip;
private var stageSWF:Array;
private var bordes:MovieClip;
private var comoJugar:MovieClip;
private var netC:NetConnection;
private var OldScore:Number;// = 0
private var GAMEOVER:MovieClip;
private var resp:Responder;
private var _GAME:MovieClip;
private var rot:MovieClip;
private var shObj:SharedObject;
private var scoretemp:Number;// = 0
private var wav:Sound;
private var pg:MovieClip;
private var Score:Number;// = 0
private var fingame:MovieClip;
public function eucerin(_arg1){
shObj = SharedObject.getLocal("eucerin");
stageSWF = new Array("http://www.bekhoteam.net/eucerin/final/stage1.swf", "http://www.bekhoteam.net/eucerin/final/stage2.swf", "http://www.bekhoteam.net/eucerin/final/stage3.swf");
netC = new NetConnection();
loggin = new loginMC();
highscoress = new highscoresMC();
comoJugar = new comojugar();
tribiaRq = new tribiaMC();
GAMEOVER = new gameoverMC();
fingame = new fingameMC();
chanel = new SoundChannel();
wav = new sonidomenu();
bordes = new bordesRQ();
super();
rot = _arg1;
rot.btn_jugar.addEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.addEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.addEventListener(MouseEvent.CLICK, press_comoJugar);
netC.connect(gateway);
resp = new Responder(alResultado, alFallar);
chanel = wav.play(0, 9999);
}
private function alResultado(_arg1):void{
trace("SE UPDATEO CORRECTAMENTE EL SCORE DE LA BD");
OldScore = Score;
shObj.data.oldScore = Score;
}
private function alFallar(_arg1):void{
trace("ERRORR CTM!!");
}
private function enProgreso(_arg1:ProgressEvent):void{
var _local2:Number = Math.round(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal));
pg.porcentaje.text = (String(_local2) + "%");
}
private function alCargar(_arg1:Event){
_GAME = (rot.mcGAME.addChild(_arg1.target.content) as MovieClip);
ldr = null;
rot.mcGAME.removeChild(pg);
_GAME.addEventListener(Event.ENTER_FRAME, chekeaFin);
_GAME.setScore(Score);
_GAME.startLevel();
chanel.stop();
rot.stage.focus = rot.root.stage;
var _local2:int = (currentStage + 1);
}
private function chekeaFin_tribia(_arg1:Event):void{
rot.stage.setChildIndex(rot, (rot.stage.numChildren - 1));
if (tribiaRq.visible == false){
rot.mcGAME.removeChild(tribiaRq);
tribiaRq.removeEventListener(Event.ENTER_FRAME, chekeaFin_tribia);
if (currentStage < 3){
load_stage();
} else {
rot.mcGAME.addChild(fingame);
fingame.gotoAndStop(1);
fingame.visible = true;
Score = (Score + 3000);
fingame.score.text = (Score + "");
if (Score > OldScore){
fingame.bestScore.text = (Score + "");
submitScore();
} else {
fingame.bestScore.text = (OldScore + "");
};
fingame.addEventListener(Event.ENTER_FRAME, chekafingame);
};
tribiaRq.visible = true;
};
rot.setChildIndex(rot.mcGAME, (rot.numChildren - 1));
}
private function cheka_highscores(_arg1:Event):void{
if (shObj.data.hscores != undefined){
shObj.data.hscores = undefined;
rot.mcGAME.removeChild(highscoress);
highscoress.visible = false;
highscoress.removeEventListener(Event.ENTER_FRAME, cheka_highscores);
rot.btn_jugar.addEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.addEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.addEventListener(MouseEvent.CLICK, press_comoJugar);
};
}
private function cheka_comoJugar(_arg1:Event):void{
if (comoJugar.visible == false){
rot.mcGAME.removeChild(comoJugar);
comoJugar.removeEventListener(Event.ENTER_FRAME, cheka_comoJugar);
rot.btn_jugar.addEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.addEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.addEventListener(MouseEvent.CLICK, press_comoJugar);
};
}
private function chekagameover(_arg1:Event):void{
rot.setChildIndex(rot.mcGAME, (rot.numChildren - 1));
if (GAMEOVER.visible == false){
rot.mcGAME.removeChild(GAMEOVER);
GAMEOVER.removeEventListener(Event.ENTER_FRAME, chekagameover);
rot.btn_jugar.addEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.addEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.addEventListener(MouseEvent.CLICK, press_comoJugar);
Score = 0;
OldScore = 0;
shObj.data.user = undefined;
shObj.data.oldScore = undefined;
shObj.flush();
currentStage = 0;
GAMEOVER.visible = true;
GAMEOVER.alpha = 1;
} else {
if (GAMEOVER.alpha == 0){
rot.mcGAME.removeChild(GAMEOVER);
GAMEOVER.removeEventListener(Event.ENTER_FRAME, chekagameover);
load_stage();
GAMEOVER.visible = true;
GAMEOVER.alpha = 1;
};
};
}
private function press_comoJugar(_arg1:MouseEvent):void{
rot.mcGAME.addChild(comoJugar);
comoJugar.gotoAndPlay(1);
comoJugar.visible = true;
comoJugar.addEventListener(Event.ENTER_FRAME, cheka_comoJugar);
rot.btn_jugar.removeEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.removeEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.removeEventListener(MouseEvent.CLICK, press_comoJugar);
}
private function chekafingame(_arg1:Event):void{
if (fingame.visible == false){
rot.mcGAME.removeChild(fingame);
fingame.removeEventListener(Event.ENTER_FRAME, chekafingame);
Score = 0;
OldScore = 0;
shObj.data.user = undefined;
shObj.data.oldScore = undefined;
shObj.flush();
fingame.visible = true;
fingame.alpha = 1;
currentStage = 0;
rot.btn_jugar.addEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.addEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.addEventListener(MouseEvent.CLICK, press_comoJugar);
} else {
if (fingame.alpha == 0){
rot.mcGAME.removeChild(fingame);
fingame.removeEventListener(Event.ENTER_FRAME, chekafingame);
Score = 0;
fingame.visible = true;
fingame.alpha = 1;
currentStage = 0;
load_stage();
};
};
}
private function GAMEover():void{
rot.mcGAME.addChild(GAMEOVER);
GAMEOVER.score.text = (scoretemp + "");
if (scoretemp > OldScore){
GAMEOVER.bestScore.text = (scoretemp + "");
submitScore(2);
} else {
GAMEOVER.bestScore.text = (OldScore + "");
};
GAMEOVER.addEventListener(Event.ENTER_FRAME, chekagameover);
}
private function BOTON_highscores(_arg1:MouseEvent=null):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
private function chekea_login(_arg1:Event):void{
if (loggin.visible == false){
loggin.visible = true;
loggin.removeEventListener(Event.ENTER_FRAME, chekea_login);
rot.mcGAME.removeChild(loggin);
if (shObj.data.user != undefined){
rot.stage.focus = rot.root.stage;
OldScore = shObj.data.oldScore;
load_stage();
} else {
rot.btn_jugar.addEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.addEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.addEventListener(MouseEvent.CLICK, press_comoJugar);
};
};
}
private function submitScore(_arg1:int=1):void{
if (_arg1 == 2){
netC.call("eucerin.updatescore", resp, shObj.data.user, scoretemp);
} else {
netC.call("eucerin.updatescore", resp, shObj.data.user, Score);
};
}
private function load_stage():void{
ldr = new Loader();
pg = new PreloaderGame();
ldr.load(new URLRequest(stageSWF[currentStage]));
ldr.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS, enProgreso);
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, alCargar);
rot.mcGAME.addChild(pg);
}
private function chekeaFin(_arg1:Event):void{
var _local2:int;
if (_GAME.getLoose() == true){
chanel = wav.play(0, 9999);
scoretemp = (Score + _GAME.getScore());
rot.mcGAME.removeChild(_GAME);
_GAME.removeEventListener(Event.ENTER_FRAME, chekeaFin);
_GAME = null;
GAMEover();
} else {
if (_GAME.getEndStage() == true){
_local2 = (currentStage + 1);
chanel = wav.play(0, 9999);
Score = (Score + _GAME.getScore());
rot.mcGAME.removeChild(_GAME);
_GAME.removeEventListener(Event.ENTER_FRAME, chekeaFin);
_GAME = null;
rot.mcGAME.addChild(tribiaRq);
rot.mcGAME.setChildIndex(tribiaRq, (rot.mcGAME.numChildren - 1));
tribiaRq.visible = true;
tribiaRq.addEventListener(Event.ENTER_FRAME, chekeaFin_tribia);
currentStage = (currentStage + 1);
tribiaRq.initTribia(currentStage);
trace(("SE ACABO EL STAGE: " + currentStage));
tribiaRq.score.text = (Score + "");
if (Score > OldScore){
tribiaRq.bestScore.text = (Score + "");
submitScore();
} else {
tribiaRq.bestScore.text = (OldScore + "");
};
};
};
rot.setChildIndex(rot.mcGAME, (rot.numChildren - 1));
}
private function BOTON_jugar(_arg1:MouseEvent):void{
shObj.data.user = "test";
rot.stage.focus = rot.root.stage;
OldScore = 0;
shObj.data.oldScore = 0;
load_stage();
rot.btn_jugar.removeEventListener(MouseEvent.CLICK, BOTON_jugar);
rot.btn_ranking.removeEventListener(MouseEvent.CLICK, BOTON_highscores);
rot.btn_comoJugar.removeEventListener(MouseEvent.CLICK, press_comoJugar);
}
}
}//package cl.bekhoteam
Section 2
//highscores (cl.bekhoteam.highscores)
package cl.bekhoteam {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class highscores extends MovieClip {
private const gateway:String = "http://www.eucerinkids.com/scripts/gateway.php";
private var netC:NetConnection;
public var btn_back:SimpleButton;
private var resp:Responder;
private var tipo:int;// = 0
public var ranking:MovieClip;
private var so:SharedObject;
public function highscores(){
netC = new NetConnection();
so = SharedObject.getLocal("eucerin");
super();
netC.connect(gateway);
resp = new Responder(alResultado, alFallar);
}
private function BOTON_back(_arg1:MouseEvent):void{
play();
btn_back.removeEventListener(MouseEvent.CLICK, BOTON_back);
this.addEventListener(Event.ENTER_FRAME, finlawea);
}
public function loadscores():void{
var _local1:* = 1;
while (_local1 < 11) {
this.ranking[("user" + _local1)].text = "";
this.ranking[("score" + _local1)].text = "";
_local1++;
};
this.ranking["user6"].text = "CARGANDO...";
netC.call("eucerin.getscore", resp);
btn_back.addEventListener(MouseEvent.CLICK, BOTON_back);
}
private function alResultado(_arg1):void{
this.ranking["user6"].text = "";
var _local2:Array = _arg1;
var _local3:* = 1;
while (_local3 < (_local2.length + 1)) {
if (_local3 < 11){
this.ranking[("user" + _local3)].text = _local2[(_local3 - 1)][0];
this.ranking[("score" + _local3)].text = _local2[(_local3 - 1)][1];
} else {
break;
};
_local3++;
};
}
private function finlawea(_arg1:Event):void{
if (this.currentFrame == 40){
this.removeEventListener(Event.ENTER_FRAME, finlawea);
so.data.hscores = 1;
};
}
private function alFallar(_arg1:Object):void{
trace(_arg1);
trace("fallo la wea");
}
}
}//package cl.bekhoteam
Section 3
//login (cl.bekhoteam.login)
package cl.bekhoteam {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class login extends MovieClip {
private const gateway:String = "http://www.eucerinkids.com/scripts/gateway.php";
public var btn_login:SimpleButton;
private var netC:NetConnection;
private var resp:Responder;
public var btn_cerrar:SimpleButton;
private var so:SharedObject;
public var btn_register:SimpleButton;
public var loginads:MovieClip;
private var registerr:MovieClip;
private var tipo:int;// = 0
public function login(){
netC = new NetConnection();
so = SharedObject.getLocal("eucerin");
registerr = new registerMC();
super();
netC.connect(gateway);
resp = new Responder(alResultado, alFallar);
btn_login.addEventListener(MouseEvent.CLICK, logear);
btn_register.addEventListener(MouseEvent.CLICK, registrar);
btn_cerrar.addEventListener(MouseEvent.CLICK, CERRAR);
loginads.pass_txt.displayAsPassword = true;
}
private function alResultado(_arg1:Object):void{
if (_arg1 == "UPmalos"){
loginads.error_msg.text = "Datos Incorrectos";
} else {
this.visible = false;
so.data.user = loginads.user_txt.text;
so.data.oldScore = _arg1;
so.flush();
loginads.user_txt.text = "";
loginads.pass_txt.text = "";
loginads.error_msg.text = "";
};
}
private function logear(_arg1:MouseEvent):void{
if ((((loginads.user_txt.text == "")) || ((loginads.pass_txt.text == "")))){
loginads.error_msg.text = "Por favor llene todos los datos";
} else {
netC.call("eucerin.login", resp, loginads.user_txt.text.toLowerCase(), loginads.pass_txt.text.toLowerCase());
};
}
private function CERRAR(_arg1:MouseEvent){
this.play();
this.addEventListener(Event.ENTER_FRAME, CIERRALAWEA);
}
private function CIERRALAWEA(_arg1:Event):void{
if (this.currentFrame == 20){
so.data.user = undefined;
so.data.oldScore = undefined;
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, CIERRALAWEA);
};
}
private function chekeavisible(_arg1:Event):void{
if (registerr.visible == false){
this.removeChild(registerr);
registerr.visible = true;
registerr.removeEventListener(Event.ENTER_FRAME, chekeavisible);
} else {
if (registerr.alpha == 0){
this.removeChild(registerr);
registerr.alpha = 1;
registerr.removeEventListener(Event.ENTER_FRAME, chekeavisible);
loginads.error_msg.text = "Cuenta creada por favor identifiquese";
};
};
}
private function registrar(_arg1:MouseEvent):void{
this.addChild(registerr);
registerr.visible = true;
registerr.gotoAndPlay(1);
registerr.addEventListener(Event.ENTER_FRAME, chekeavisible);
}
private function alFallar(_arg1:Object):void{
if (_arg1 == "UPmalos"){
loginads.error_msg.text = "Datos Incorrectos";
} else {
loginads.error_msg.text = "Ocurrio un error - Por favor Refresca la Página";
};
}
}
}//package cl.bekhoteam
Section 4
//register (cl.bekhoteam.register)
package cl.bekhoteam {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public class register extends MovieClip {
private const gateway:String = "http://www.eucerinkids.com/scripts/gateway.php";
public var mcmcmc:MovieClip;
public var btn_register:SimpleButton;
public var btn_back:SimpleButton;
private var netC:NetConnection;
private var resp:Responder;
private var tipo:int;// = 0
private var so:SharedObject;
public function register(){
netC = new NetConnection();
so = SharedObject.getLocal("eucerin");
super();
netC.connect(gateway);
resp = new Responder(alResultado, alFallar);
btn_register.addEventListener(MouseEvent.CLICK, registrar);
btn_back.addEventListener(MouseEvent.CLICK, volver);
mcmcmc.pass_txt.displayAsPassword = true;
}
private function registrar(_arg1:MouseEvent):void{
if ((((((((((((mcmcmc.user_txt.text == "")) || ((mcmcmc.pass_txt.text == "")))) || ((mcmcmc.mail_txt.text == "")))) || ((mcmcmc.name_txt.text == "")))) || ((mcmcmc.apellido_txt.text == "")))) || ((mcmcmc.edad_txt.text == "")))){
mcmcmc.error_msg.text = "Por favor llene todos los datos";
} else {
if (validarEmail(mcmcmc.mail_txt.text) == false){
mcmcmc.error_msg.text = "Ingresa un e-mail valido";
} else {
netC.call("eucerin.register", resp, mcmcmc.user_txt.text.toLowerCase(), mcmcmc.pass_txt.text.toLowerCase(), mcmcmc.name_txt.text.toLowerCase(), mcmcmc.apellido_txt.text.toLowerCase(), mcmcmc.edad_txt.text.toLowerCase(), mcmcmc.mail_txt.text.toLowerCase());
};
};
}
private function presione_volver(_arg1:Event):void{
if (this.currentFrame == 40){
this.visible = false;
this.removeEventListener(Event.ENTER_FRAME, presione_volver);
};
}
private function alResultado(_arg1:Object):void{
if (_arg1 == "user"){
mcmcmc.error_msg.text = "El nombre de usuario ya existe";
};
if (_arg1 == "email"){
mcmcmc.error_msg.text = "El email ya esta registrado";
} else {
if (_arg1 == true){
this.alpha = 0;
mcmcmc.user_txt.text = "";
mcmcmc.name_txt.text = "";
mcmcmc.mail_txt.text = "";
mcmcmc.pass_txt.text = "";
mcmcmc.apellido_txt.text = "";
mcmcmc.edad_txt.text = "";
mcmcmc.error_msg.text = "";
} else {
alFallar(_arg1);
};
};
}
private function validarEmail(_arg1:String):Boolean{
var _local2:Array;
var _local3:String;
var _local4:String;
if ((((_arg1.indexOf("@") == -1)) || (!((_arg1.indexOf("@") == _arg1.lastIndexOf("@")))))){
return (false);
};
_local2 = _arg1.split("@");
_local3 = _local2[0];
_local4 = _local2[1];
if ((((_local4.indexOf(".") == -1)) || ((_local4.length < 1)))){
return (false);
};
if (_local3.length < 1){
return (false);
};
return (true);
}
private function volver(_arg1:Event):void{
this.play();
this.addEventListener(Event.ENTER_FRAME, presione_volver);
}
private function alFallar(_arg1:Object):void{
if (_arg1 == "user"){
mcmcmc.error_msg.text = "El nombre de usuario ya existe";
} else {
if (_arg1 == "email"){
mcmcmc.error_msg.text = "El email ya esta registrado";
} else {
mcmcmc.error_msg.text = "Ocurrio un error - Por favor Refresca la Página";
};
};
}
}
}//package cl.bekhoteam
Section 5
//tribia (cl.bekhoteam.tribia)
package cl.bekhoteam {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public class tribia extends MovieClip {
public var fin:MovieClip;
public var bestScore:TextField;
public var subTribia:MovieClip;
public var btn_continue:SimpleButton;
public var score:TextField;
private var numtribia:int;
private var respuestaCorrecta:String;
private function incorrecta(_arg1:Event):void{
subTribia.error_txt.text = "Respuesta incorrecta, intentalo denuevo";
}
private function correcta(_arg1:MouseEvent):void{
subTribia.error_txt.text = "";
subTribia.correcto_txt.text = "¡Muy bien! Has puesto atención a nuestros consejos.";
this.play();
subTribia.btnA.removeEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnB.removeEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnC.removeEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnD.removeEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnA.removeEventListener(MouseEvent.CLICK, correcta);
subTribia.btnB.removeEventListener(MouseEvent.CLICK, correcta);
subTribia.btnC.removeEventListener(MouseEvent.CLICK, correcta);
subTribia.btnD.removeEventListener(MouseEvent.CLICK, correcta);
this.addEventListener(Event.ENTER_FRAME, finTrivia);
}
private function finTrivia(_arg1:Event):void{
if (this.currentFrame == 60){
subTribia.error_txt.text = "";
subTribia.correcto_txt.text = "";
this.visible = false;
fin.gotoAndStop(1);
this.removeEventListener(Event.ENTER_FRAME, finTrivia);
};
}
public function initTribia(_arg1:int):void{
trace(("entro a initTribia: " + _arg1));
switch (_arg1){
case 1:
numtribia = 1;
respuestaCorrecta = "D";
subTribia.gotoAndStop(1);
subTribia.btnA.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnB.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnC.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnD.addEventListener(MouseEvent.CLICK, correcta);
trace("entro a 1");
break;
case 2:
numtribia = 2;
respuestaCorrecta = "B";
subTribia.gotoAndStop(2);
subTribia.btnA.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnB.addEventListener(MouseEvent.CLICK, correcta);
subTribia.btnC.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnD.addEventListener(MouseEvent.CLICK, incorrecta);
trace("entro a 2");
break;
case 3:
numtribia = 3;
respuestaCorrecta = "C";
this.gotoAndStop(10);
fin.gotoAndStop(2);
subTribia.gotoAndStop(3);
subTribia.btnA.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnB.addEventListener(MouseEvent.CLICK, incorrecta);
subTribia.btnC.addEventListener(MouseEvent.CLICK, correcta);
subTribia.btnD.addEventListener(MouseEvent.CLICK, incorrecta);
trace("entro a 3");
break;
default:
trace("no entro a nada");
break;
};
}
}
}//package cl.bekhoteam
Section 6
//alt_intro_holder_1 (defythesunARCADEBOMB_fla.alt_intro_holder_1)
package defythesunARCADEBOMB_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class alt_intro_holder_1 extends MovieClip {
public var botonarcadebobm:SimpleButton;
public function alt_intro_holder_1(){
addFrameScript(0, frame1, 188, frame189);
}
function frame1(){
botonarcadebobm.addEventListener(MouseEvent.CLICK, gogogo);
}
function frame189(){
stop();
MovieClip(this.parent).play();
}
public function gogogo(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
}
}//package defythesunARCADEBOMB_fla
Section 7
//Animar3_29 (defythesunARCADEBOMB_fla.Animar3_29)
package defythesunARCADEBOMB_fla {
import flash.display.*;
import flash.text.*;
public dynamic class Animar3_29 extends MovieClip {
public var btnA:SimpleButton;
public var btnB:SimpleButton;
public var btnC:SimpleButton;
public var btnD:SimpleButton;
public var correcto_txt:TextField;
public var error_txt:TextField;
public function Animar3_29(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame1(){
stop();
}
function frame3(){
stop();
}
function frame2(){
stop();
}
}
}//package defythesunARCADEBOMB_fla
Section 8
//bekhoLogo_6 (defythesunARCADEBOMB_fla.bekhoLogo_6)
package defythesunARCADEBOMB_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class bekhoLogo_6 extends MovieClip {
public var gourl:SimpleButton;
public function bekhoLogo_6(){
addFrameScript(0, frame1);
}
public function irweb(_arg1:Event):void{
var ev = _arg1;
var request:URLRequest = new URLRequest("http://www.bekhoteam.net/");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function frame1(){
this.gourl.addEventListener(MouseEvent.CLICK, irweb);
}
}
}//package defythesunARCADEBOMB_fla
Section 9
//fin_27 (defythesunARCADEBOMB_fla.fin_27)
package defythesunARCADEBOMB_fla {
import flash.display.*;
public dynamic class fin_27 extends MovieClip {
public function fin_27(){
addFrameScript(0, frame1, 1, frame2);
}
function frame1(){
stop();
}
function frame2(){
stop();
}
}
}//package defythesunARCADEBOMB_fla
Section 10
//Logointro_5 (defythesunARCADEBOMB_fla.Logointro_5)
package defythesunARCADEBOMB_fla {
import flash.display.*;
public dynamic class Logointro_5 extends MovieClip {
public function Logointro_5(){
addFrameScript(149, frame150);
}
function frame150(){
stop();
MovieClip(this.parent).play();
}
}
}//package defythesunARCADEBOMB_fla
Section 11
//Logomenu_10 (defythesunARCADEBOMB_fla.Logomenu_10)
package defythesunARCADEBOMB_fla {
import flash.events.*;
import flash.display.*;
import flash.net.*;
public dynamic class Logomenu_10 extends MovieClip {
public var gourl:SimpleButton;
public function Logomenu_10(){
addFrameScript(0, frame1);
}
public function irweb(_arg1:Event):void{
var ev = _arg1;
var request:URLRequest = new URLRequest("http://www.bekhoteam.net/");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
function frame1(){
this.gourl.addEventListener(MouseEvent.CLICK, irweb);
}
}
}//package defythesunARCADEBOMB_fla
Section 12
//MainTimeline (defythesunARCADEBOMB_fla.MainTimeline)
package defythesunARCADEBOMB_fla {
import flash.events.*;
import cl.bekhoteam.*;
import flash.media.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
import flash.ui.*;
import adobe.utils.*;
import flash.accessibility.*;
import flash.errors.*;
import flash.external.*;
import flash.filters.*;
import flash.geom.*;
import flash.printing.*;
import flash.profiler.*;
import flash.sampler.*;
import flash.system.*;
import flash.utils.*;
import flash.xml.*;
public dynamic class MainTimeline extends MovieClip {
public var mCont;
public var mcGAME:MovieClip;
public var btn_jugar:SimpleButton;
public var btn_ranking:SimpleButton;
public var link_btn:SimpleButton;
public var btn_comoJugar:SimpleButton;
public var bekhoteam:ContextMenuItem;
public var info:LoaderInfo;
public var mcWeas:MovieClip;
public var load_porcentaje:TextField;
public function MainTimeline(){
addFrameScript(0, frame1, 2, frame3, 3, frame4, 4, frame5);
}
public function onProgress(_arg1:ProgressEvent):void{
var _local2:int = Math.round(((_arg1.bytesLoaded * 100) / _arg1.bytesTotal));
load_porcentaje.text = (String(_local2) + " %");
}
function frame1(){
mCont = new ContextMenu();
mCont.hideBuiltInItems();
bekhoteam = new ContextMenuItem("Bekhoteam Game Development", true);
bekhoteam.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, cMenuBT);
mCont.customItems.push(bekhoteam);
this.contextMenu = mCont;
Security.allowDomain("*");
Security.loadPolicyFile("http://www.bekhoteam.net/crossdomain.xml");
stop();
info = this.loaderInfo;
info.addEventListener(ProgressEvent.PROGRESS, onProgress);
info.addEventListener(Event.COMPLETE, onComplete);
}
function frame4(){
stop();
}
function frame5(){
stop();
new eucerin(this);
link_btn.addEventListener(MouseEvent.CLICK, gourlarcadebomb);
}
function frame3(){
stop();
}
public function cMenuBT(_arg1:ContextMenuEvent):void{
var ev = _arg1;
var request:URLRequest = new URLRequest("http://www.bekhoteam.net/");
try {
navigateToURL(request, "_blank");
} catch(e:Error) {
};
}
public function onComplete(_arg1:Event):void{
load_porcentaje.text = "100 %";
info.removeEventListener(ProgressEvent.PROGRESS, onProgress);
info.removeEventListener(Event.COMPLETE, onComplete);
play();
}
public function gourlarcadebomb(_arg1:Event):void{
navigateToURL(new URLRequest("http://www.arcadebomb.com"), "_blank");
}
}
}//package defythesunARCADEBOMB_fla
Section 13
//S_35 (defythesunARCADEBOMB_fla.S_35)
package defythesunARCADEBOMB_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
public dynamic class S_35 extends MovieClip {
public var pass_txt:TextField;
public var name_txt:TextField;
public var apellido_txt:TextField;
public var error_msg:TextField;
public var fondo1:MovieClip;
public var fondo2:MovieClip;
public var fondo3:MovieClip;
public var fondo4:MovieClip;
public var fondo5:MovieClip;
public var fondo6:MovieClip;
public var mail_txt:TextField;
public var edad_txt:TextField;
public var user_txt:TextField;
public function S_35(){
addFrameScript(0, frame1);
__setTab_name_txt_S();
__setTab_apellido_txt_S();
__setTab_edad_txt_S();
__setTab_mail_txt_S();
__setTab_user_txt_S();
__setTab_pass_txt_S();
__setAcc_error_msg_S();
}
function __setTab_edad_txt_S(){
edad_txt.tabIndex = 5;
}
function __setTab_mail_txt_S(){
mail_txt.tabIndex = 6;
}
function __setTab_name_txt_S(){
name_txt.tabIndex = 3;
}
function frame1(){
fondo1.visible = false;
fondo2.visible = false;
fondo3.visible = false;
fondo4.visible = false;
fondo5.visible = false;
fondo6.visible = false;
name_txt.addEventListener(FocusEvent.FOCUS_IN, fondo1rq);
apellido_txt.addEventListener(FocusEvent.FOCUS_IN, fondo2rq);
edad_txt.addEventListener(FocusEvent.FOCUS_IN, fondo3rq);
mail_txt.addEventListener(FocusEvent.FOCUS_IN, fondo4rq);
user_txt.addEventListener(FocusEvent.FOCUS_IN, fondo5rq);
pass_txt.addEventListener(FocusEvent.FOCUS_IN, fondo6rq);
}
public function fondo1rq(_arg1:Event):void{
fondo1.visible = true;
fondo2.visible = false;
fondo3.visible = false;
fondo4.visible = false;
fondo5.visible = false;
fondo6.visible = false;
}
public function fondo3rq(_arg1:Event):void{
fondo1.visible = false;
fondo2.visible = false;
fondo3.visible = true;
fondo4.visible = false;
fondo5.visible = false;
fondo6.visible = false;
}
public function fondo4rq(_arg1:Event):void{
fondo1.visible = false;
fondo2.visible = false;
fondo3.visible = false;
fondo4.visible = true;
fondo5.visible = false;
fondo6.visible = false;
}
public function fondo5rq(_arg1:Event):void{
fondo1.visible = false;
fondo2.visible = false;
fondo3.visible = false;
fondo4.visible = false;
fondo5.visible = true;
fondo6.visible = false;
}
public function fondo6rq(_arg1:Event):void{
fondo1.visible = false;
fondo2.visible = false;
fondo3.visible = false;
fondo4.visible = false;
fondo5.visible = false;
fondo6.visible = true;
}
function __setTab_apellido_txt_S(){
apellido_txt.tabIndex = 4;
}
public function fondo2rq(_arg1:Event):void{
fondo1.visible = false;
fondo2.visible = true;
fondo3.visible = false;
fondo4.visible = false;
fondo5.visible = false;
fondo6.visible = false;
}
function __setTab_pass_txt_S(){
pass_txt.tabIndex = 6;
}
function __setTab_user_txt_S(){
user_txt.tabIndex = 6;
}
function __setAcc_error_msg_S(){
error_msg.accessibilityProperties = new AccessibilityProperties();
error_msg.accessibilityProperties.silent = true;
}
}
}//package defythesunARCADEBOMB_fla
Section 14
//S_38 (defythesunARCADEBOMB_fla.S_38)
package defythesunARCADEBOMB_fla {
import flash.events.*;
import flash.display.*;
import flash.text.*;
import flash.accessibility.*;
public dynamic class S_38 extends MovieClip {
public var fondo1:MovieClip;
public var pass_txt:TextField;
public var error_msg:TextField;
public var fondo2:MovieClip;
public var user_txt:TextField;
public function S_38(){
addFrameScript(0, frame1);
__setTab_user_txt_S();
__setTab_pass_txt_S();
__setAcc_error_msg_S();
}
public function fondo1rq(_arg1:Event):void{
fondo1.visible = true;
fondo2.visible = false;
}
function __setTab_user_txt_S(){
user_txt.tabIndex = 1;
}
public function fondo2rq(_arg1:Event):void{
fondo1.visible = false;
fondo2.visible = true;
}
function frame1(){
fondo1.visible = false;
fondo2.visible = false;
user_txt.addEventListener(FocusEvent.FOCUS_IN, fondo1rq);
pass_txt.addEventListener(FocusEvent.FOCUS_IN, fondo2rq);
}
function __setTab_pass_txt_S(){
pass_txt.tabIndex = 2;
}
function __setAcc_error_msg_S(){
error_msg.accessibilityProperties = new AccessibilityProperties();
error_msg.accessibilityProperties.silent = true;
}
}
}//package defythesunARCADEBOMB_fla
Section 15
//bordesRQ (bordesRQ)
package {
import flash.display.*;
public dynamic class bordesRQ extends MovieClip {
}
}//package
Section 16
//comojugar (comojugar)
package {
import flash.events.*;
import flash.display.*;
public dynamic class comojugar extends MovieClip {
public var btn_continuar:SimpleButton;
public function comojugar(){
addFrameScript(0, frame1, 19, frame20, 29, frame30, 39, frame40, 58, frame59);
}
function frame59(){
stop();
this.visible = false;
}
function frame1(){
this.visible = true;
}
public function continue_btn(_arg1:MouseEvent):void{
play();
}
function frame40(){
stop();
}
function frame30(){
stop();
}
function frame20(){
stop();
btn_continuar.addEventListener(MouseEvent.CLICK, continue_btn);
}
}
}//package
Section 17
//cuadrogameMC (cuadrogameMC)
package {
import flash.display.*;
public dynamic class cuadrogameMC extends MovieClip {
}
}//package
Section 18
//fingameMC (fingameMC)
package {
import flash.events.*;
import flash.display.*;
import flash.net.*;
import flash.text.*;
public dynamic class fingameMC extends MovieClip {
public var btn_highscores:SimpleButton;
public var btn_facebook:SimpleButton;
public var btn_jugar:SimpleButton;
public var bestScore:TextField;
public var btn_twitter:SimpleButton;
public var score:TextField;
public function fingameMC(){
addFrameScript(0, frame1);
}
public function highscores(_arg1:MouseEvent):void{
this.visible = false;
}
function frame1(){
stop();
btn_highscores.addEventListener(MouseEvent.CLICK, highscores);
btn_jugar.addEventListener(MouseEvent.CLICK, jugar);
btn_facebook.addEventListener(MouseEvent.CLICK, facebook);
btn_twitter.addEventListener(MouseEvent.CLICK, twitter);
}
public function jugar(_arg1:MouseEvent):void{
this.alpha = 0;
}
public function twitter(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://twitter.com/?status=¿Quieres desafiar el poder del sol? juega ahora en www.eucerinkids.cl y gana una increÃble bicicleta.");
navigateToURL(_local2, "_blank");
}
public function facebook(_arg1:MouseEvent):void{
var _local2:URLRequest = new URLRequest("http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.eucerinkids.cl%2Fjuego.html");
navigateToURL(_local2, "_blank");
}
}
}//package
Section 19
//gameoverMC (gameoverMC)
package {
import flash.events.*;
import flash.display.*;
import flash.text.*;
public dynamic class gameoverMC extends MovieClip {
public var btn_backMain:SimpleButton;
public var bestScore:TextField;
public var score:TextField;
public var btn_try:SimpleButton;
public function gameoverMC(){
addFrameScript(0, frame1);
}
public function backMain(_arg1:MouseEvent):void{
this.visible = false;
}
function frame1(){
btn_try.addEventListener(MouseEvent.CLICK, tryGame);
btn_backMain.addEventListener(MouseEvent.CLICK, backMain);
}
public function tryGame(_arg1:MouseEvent):void{
this.alpha = 0;
}
}
}//package
Section 20
//highscoresMC (highscoresMC)
package {
import cl.bekhoteam.*;
public dynamic class highscoresMC extends highscores {
public function highscoresMC(){
addFrameScript(19, frame20, 39, frame40);
}
function frame40(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 21
//loginMC (loginMC)
package {
import cl.bekhoteam.*;
public dynamic class loginMC extends login {
public function loginMC(){
addFrameScript(9, frame10, 19, frame20);
}
function frame20(){
stop();
}
function frame10(){
stop();
}
}
}//package
Section 22
//PreloaderGame (PreloaderGame)
package {
import flash.display.*;
import flash.text.*;
public dynamic class PreloaderGame extends MovieClip {
public var porcentaje:TextField;
}
}//package
Section 23
//registerMC (registerMC)
package {
import cl.bekhoteam.*;
public dynamic class registerMC extends register {
public function registerMC(){
addFrameScript(19, frame20, 39, frame40);
}
function frame40(){
stop();
}
function frame20(){
stop();
}
}
}//package
Section 24
//sonidomenu (sonidomenu)
package {
import flash.media.*;
public dynamic class sonidomenu extends Sound {
}
}//package
Section 25
//tribiaMC (tribiaMC)
package {
import flash.events.*;
import cl.bekhoteam.*;
public dynamic class tribiaMC extends tribia {
public function tribiaMC(){
addFrameScript(0, frame1, 9, frame10);
}
function frame10(){
stop();
}
function frame1(){
stop();
btn_continue.addEventListener(MouseEvent.CLICK, continuarrr);
}
public function continuarrr(_arg1:MouseEvent):void{
btn_continue.removeEventListener(MouseEvent.CLICK, continuarrr);
this.visible = false;
}
}
}//package