Frame 1
var savefile = SharedObject.getLocal("FactoryEscape");
_root.currentlevel = savefile.data.currentlevel;
if (savefile.data.currentlevel == undefined) {
_root.currentlevel = 1;
} else {
var currentlevel = savefile.data.currentlevel;
}
stop();
Frame 2
stop();
var myMenu = new ContextMenu();
myMenu.customItems.push(copyright);
myMenu.hideBuiltInItems();
_root.menu = myMenu;
if (newgame == undefined) {
bgSound = new Sound(this);
bgSound.attachSound("sound1");
bgSound.start(0, 99);
bgSound.setVolume(50);
var newgame = 1;
}
savefile.data.currentlevel = currentlevel;
savefile.flush();
var keys = 0;
if (language == 1) {
Space.text = "Press Space to go to the current Level.";
} else {
Space.text = "Pulsa espacio para ir a nivel corriente.";
}
Instance of Symbol 17 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndStop(_root.currentlevel + 2);
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 2) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 3) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 4) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 5) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 6) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 7) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 8) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 9) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 10) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 11) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 12) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 13) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 14) {
this.nextFrame();
}
}
Instance of Symbol 55 MovieClip in Frame 2
onClipEvent (enterFrame) {
if (_root.currentlevel >= 15) {
this.nextFrame();
}
}
Frame 3
if (language == 1) {
ins.text = "Instructions";
} else {
ins.text = "Instrucciones";
ctxt.text = "Teclas de direcci\u00F3n para moverse. Corre en un caj\u00F3n para mover ello y Corre en una llave para conseguirlo. Consiga a a la puerta ir al siguiente Nivel. Prensa M para ir al men\u00FA.";
intxt.text = "Mueva a su Obrero Industrial alrededor y coleccione llaves. Empujar cajas simplemente entran corriendo en ellos en la direcci\u00F3n le gustar\u00EDa golpearlos. Una vez que usted se re\u00FAne las Llaves vuelven a la puerta.";
}
Instance of Symbol 17 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (Key.isDown(77)) {
_root.gotoAndStop("menu");
}
}
Instance of Symbol 73 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (_root.keys == 3) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 1) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 96 MovieClip in Frame 3
onClipEvent (load) {
go = 1;
}
onClipEvent (enterFrame) {
if (go == 1) {
this._x = _root.hero._x;
this._y = _root.hero._y;
}
if (((Key.isDown(37) or Key.isDown(39)) or Key.isDown(38)) or Key.isDown(40)) {
this._x = 1000;
go = 0;
}
}
Frame 4
if (language == 1) {
tr.text = "Tricks";
ba.text = "Barriers";
} else {
tr.text = "Enganos";
ba.text = "Barreras";
trtxt.text = "Este Juego es Lleno de Bromas, mostradas abajo es uno simple. Los Dont bloquean la entrada en el vest\u00EDbulo para conseguir las llaves. Acu\u00E9rdese de presionar el M si usted se atasca.";
brtxt.text = "Las L\u00EDneas que cambian colores son barreras. Usted puede andar por ellos, pero la parada de cajas sobre el contacto. Ellos no pueden da\u00F1arle, pero pueden atraparle f\u00E1cilmente.";
}
Instance of Symbol 76 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 73 MovieClip in Frame 4
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 2) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 5
stop();
Instance of Symbol 76 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 73 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 3) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 6
stop();
Instance of Symbol 73 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 4) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 6
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Frame 7
Instance of Symbol 76 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 73 MovieClip in Frame 7
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 5) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 8
Instance of Symbol 73 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 6) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 9
Instance of Symbol 73 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.keys == 7) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 7) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Frame 10
Instance of Symbol 73 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (_root.keys == 7) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 8) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 10
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 71 MovieClip "box" in Frame 10
onClipEvent (load) {
var moving = true;
var direction;
}
onClipEvent (enterFrame) {
if (_root.hero.hitTest(_x + (_width / 2), _y, true)) {
if (!_root.level.hitTest(_x - (_width / 2), _y, true)) {
moving = true;
direction = 1;
}
}
if (_root.level.hitTest(_x - (_width / 2), _y, true)) {
moving = false;
}
if (_root.hero.hitTest(_x - (_width / 2), _y, true)) {
if (!_root.level.hitTest(_x + (_width / 2), _y, true)) {
moving = true;
direction = 2;
}
}
if (_root.level.hitTest(_x + (_width / 2), _y, true)) {
moving = false;
}
if (_root.hero.hitTest(_x, _y - (_height / 2), true)) {
if (!_root.level.hitTest(_x, _y + (_height / 2), true)) {
moving = true;
direction = 3;
}
}
if (_root.level.hitTest(_x, _y + (_height / 2), true)) {
moving = false;
}
if (_root.hero.hitTest(_x, _y + (_height / 2), true)) {
if (!_root.level.hitTest(_x, _y - (_height / 2), true)) {
moving = true;
direction = 4;
}
}
if (_root.level.hitTest(_x, _y - (_height / 2), true)) {
moving = false;
}
i = 0;
while (i < 5) {
if (_root["redbar" + i].hitTest(this)) {
moving = false;
}
i++;
}
if (moving == true) {
if (direction == 1) {
_x = (_x - 3);
}
if (direction == 2) {
_x = (_x + 3);
}
if (direction == 3) {
_y = (_y + 3);
}
if (direction == 4) {
_y = (_y - 3);
}
} else {
if (_root.hero.hitTest(_x, _y + (_height / 2), true)) {
_root.hero._y = _root.hero._y + 3;
}
if (_root.hero.hitTest(_x, _y - (_height / 2), true)) {
_root.hero._y = _root.hero._y - 3;
}
if (_root.hero.hitTest(_x - (_width / 2), _y, true)) {
_root.hero._x = _root.hero._x - 3;
}
if (_root.hero.hitTest(_x + (_width / 2), _y, true)) {
_root.hero._x = _root.hero._x + 3;
}
}
}
Frame 11
Instance of Symbol 73 MovieClip in Frame 11
onClipEvent (enterFrame) {
if (_root.keys == 3) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 9) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 12
Instance of Symbol 73 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 10) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 12
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Frame 13
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 73 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (_root.keys == 7) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 11) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 13
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Frame 14
Instance of Symbol 73 MovieClip in Frame 14
onClipEvent (enterFrame) {
if (_root.keys == 7) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 12) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 15
Instance of Symbol 73 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (_root.keys == 6) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 13) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Frame 16
Instance of Symbol 73 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (_root.keys == 8) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 14) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(2);
}
} else {
_alpha = 50;
}
}
Instance of Symbol 76 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 16
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Frame 17
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 76 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (this.hitTest(_root.hero)) {
_root.keys++;
this.swapDepths(1);
removeMovieClip(this);
}
}
Instance of Symbol 73 MovieClip in Frame 17
onClipEvent (enterFrame) {
if (_root.keys == 7) {
_alpha = 100;
if (_root.hero.hitTest(this)) {
if (_root.currentlevel == 15) {
_root.currentlevel = _root.currentlevel + 1;
}
_root.gotoAndStop(18);
}
} else {
_alpha = 50;
}
}
Frame 18
if (language == 1) {
} else {
con.text = "Felicitaciones";
txt1.text = "\u00A1Usted ha golpeado 15 Fuga de F\u00E1brica de niveles!";
txt2.text = "\u00A1Compruebe areaglegames.com Para Juegos m\u00E1s Grandes como \u00E9ste!";
}
Symbol 8 Button
on (release) {
_root.language = 1;
_root.nextFrame();
}
Symbol 11 Button
on (release) {
_root.language = 0;
_root.nextFrame();
}
Symbol 12 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 12 MovieClip Frame 3
play();
Symbol 12 MovieClip Frame 13
stop();
Symbol 20 Button
on (release) {
if (currentlevel >= 1) {
_root.gotoAndStop(3);
}
}
Symbol 23 Button
on (release) {
if (currentlevel >= 2) {
_root.gotoAndStop(4);
}
}
Symbol 25 Button
on (release) {
if (currentlevel >= 5) {
_root.gotoAndStop(7);
}
}
Symbol 27 Button
on (release) {
if (currentlevel >= 3) {
_root.gotoAndStop(5);
}
}
Symbol 29 Button
on (release) {
if (currentlevel >= 4) {
_root.gotoAndStop(6);
}
}
Symbol 31 Button
on (release) {
if (currentlevel >= 6) {
_root.gotoAndStop(8);
}
}
Symbol 33 Button
on (release) {
if (currentlevel >= 7) {
_root.gotoAndStop(9);
}
}
Symbol 35 Button
on (release) {
if (currentlevel >= 10) {
_root.gotoAndStop(12);
}
}
Symbol 37 Button
on (release) {
if (currentlevel >= 8) {
_root.gotoAndStop(10);
}
}
Symbol 39 Button
on (release) {
if (currentlevel >= 9) {
_root.gotoAndStop(11);
}
}
Symbol 41 Button
on (release) {
if (currentlevel >= 11) {
_root.gotoAndStop(13);
}
}
Symbol 43 Button
on (release) {
if (currentlevel >= 12) {
_root.gotoAndStop(14);
}
}
Symbol 45 Button
on (release) {
if (currentlevel >= 15) {
_root.gotoAndStop(17);
}
}
Symbol 47 Button
on (release) {
if (currentlevel >= 13) {
_root.gotoAndStop(15);
}
}
Symbol 49 Button
on (release) {
if (currentlevel >= 14) {
_root.gotoAndStop(16);
}
}
Symbol 52 MovieClip Frame 1
if (_root.language == 1) {
mg.text = "More Games";
} else {
mg.text = "Mas Juegos";
}
Symbol 53 Button
on (release) {
getURL ("http://areaglegames.com", _blank);
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 1
if (_root.language == 1) {
cd.text = "Clear Data";
} else {
cd.text = "Libra Datos";
}
Symbol 58 Button
on (release) {
savefile.clear();
if (savefile.data.currentlevel == undefined) {
_root.currentlevel = 1;
} else {
var currentlevel = savefile.data.currentlevel;
}
_root.gotoAndStop(1);
_root.newgame = 0;
}
Symbol 64 Button
on (release) {
if (bgSound.getVolume() != 0) {
bgSound.setVolume(0);
} else {
bgSound.setVolume(50);
}
}
Instance of Symbol 70 MovieClip in Symbol 71 MovieClip Frame 1
onClipEvent (load) {
var moving = true;
var direction;
}
onClipEvent (enterFrame) {
if (_root.level.hitTest(this)) {
}
if (_root.hero.hitTest(_parent._x + (_parent._width / 2), _parent._y, true)) {
if (!_root.level.hitTest(_parent._x - (_parent._width / 2), _parent._y, true)) {
moving = true;
direction = 1;
}
}
if (_root.level.hitTest(_parent._x - (_parent._width / 2), _parent._y, true)) {
moving = false;
}
if (_root.hero.hitTest(_parent._x - (_parent._width / 2), _parent._y, true)) {
if (!_root.level.hitTest(_parent._x + (_parent._width / 2), _parent._y, true)) {
moving = true;
direction = 2;
}
}
if (_root.level.hitTest(_parent._x + (_parent._width / 2), _parent._y, true)) {
moving = false;
}
if (_root.hero.hitTest(_parent._x, _parent._y - (_parent._height / 2), true)) {
if (!_root.level.hitTest(_parent._x, _parent._y + (_parent._height / 2), true)) {
moving = true;
direction = 3;
}
}
if (_root.level.hitTest(_parent._x, _parent._y + (_parent._height / 2), true)) {
moving = false;
}
if (_root.hero.hitTest(_parent._x, _parent._y + (_parent._height / 2), true)) {
if (!_root.level.hitTest(_parent._x, _parent._y - (_parent._height / 2), true)) {
moving = true;
direction = 4;
}
}
i = 0;
while (i < 5) {
if (_root["redbar" + i].hitTest(_parent)) {
moving = false;
}
i++;
}
if (_root.level.hitTest(_parent._x, _parent._y - (_parent._height / 2), true)) {
moving = false;
}
if (moving == true) {
if (direction == 1) {
_parent._x = _parent._x - 3;
}
if (direction == 2) {
_parent._x = _parent._x + 3;
}
if (direction == 3) {
_parent._y = _parent._y + 3;
}
if (direction == 4) {
_parent._y = _parent._y - 3;
}
} else {
if (_root.hero.hitTest(_parent._x, _parent._y + (_parent._height / 2), true)) {
_root.hero._y = _root.hero._y + 3;
}
if (_root.hero.hitTest(_parent._x, _parent._y - (_parent._height / 2), true)) {
_root.hero._y = _root.hero._y - 3;
}
if (_root.hero.hitTest(_parent._x - (_parent._width / 2), _parent._y, true)) {
_root.hero._x = _root.hero._x - 3;
}
if (_root.hero.hitTest(_parent._x + (_parent._width / 2), _parent._y, true)) {
_root.hero._x = _root.hero._x + 3;
}
}
}
Instance of Symbol 91 MovieClip in Symbol 92 MovieClip Frame 1
onClipEvent (load) {
var orentation = 1;
_parent._width = 17.2;
_parent._height = 17.2;
}
onClipEvent (enterFrame) {
if (Key.isDown(37) && (!((_root.level.hitTest(_parent._x - (_parent._width / 2), _parent._y, true) || (_root.level.hitTest(_parent._x - (_parent._width / 2), _parent._y + (_parent._height / 3), true))) || (_root.level.hitTest(_parent._x - (_parent._width / 2), _parent._y - (_parent._height / 3), true))))) {
_parent._x = _parent._x - 3;
orentation = 3;
gotoAndStop (7);
}
if (Key.isDown(39) && (!((_root.level.hitTest(_parent._x + (_parent._width / 2), _parent._y, true) || (_root.level.hitTest(_parent._x + (_parent._width / 2), _parent._y + (_parent._height / 3), true))) || (_root.level.hitTest(_parent._x + (_parent._width / 2), _parent._y - (_parent._height / 3), true))))) {
_parent._x = _parent._x + 3;
orentation = 4;
gotoAndStop (8);
}
if (Key.isDown(38) && (!((_root.level.hitTest(_parent._x, _parent._y - (_parent._height / 2), true) || (_root.level.hitTest(_parent._x + (_parent._width / 3), _parent._y - (_parent._height / 2), true))) || (_root.level.hitTest(_parent._x - (_parent._width / 3), _parent._y - (_parent._height / 2), true))))) {
_parent._y = _parent._y - 3;
orentation = 1;
gotoAndStop (5);
}
if (Key.isDown(40) && (!((_root.level.hitTest(_parent._x, _parent._y + (_parent._height / 2), true) || (_root.level.hitTest(_parent._x + (_parent._width / 3), _parent._y + (_parent._height / 2), true))) || (_root.level.hitTest(_parent._x - (_parent._width / 3), _parent._y + (_parent._height / 2), true))))) {
_parent._y = _parent._y + 3;
orentation = 2;
gotoAndStop (6);
}
if ((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(38))) && (!Key.isDown(40))) {
gotoAndStop(orentation);
}
}
Symbol 100 MovieClip Frame 1
if (_root.language == 1) {
m.text = "M To Go to Menu";
} else {
m.text = "M para ir a la Menu";
}
Symbol 143 Button
on (release) {
getURL ("http://areaglegames.info", _blank);
}
Symbol 147 Button
on (release) {
_root.gotoAndStop(2);
}