Frame 1
function rightClickLink1() {
getURL ("http://www.flak-games.com/", "_blank");
}
function rightClickLink2() {
getURL ("http://www.chad-duncan.com/", "_blank");
}
function playMusic(ID) {
_root.music = new Sound(_root.music_mc);
_root.music.attachSound(_root.SoundArray[ID][0]);
if (_root.SoundArray[ID][0] == "Night Lights") {
_root.music.start(3.4, 10000);
} else {
_root.music.start(0, 10000);
}
_root.songID = ID;
}
function stopMusic() {
_root.musicOffset = 0;
_root.music.stop();
}
function pauseMusic(ID) {
_root.musicOffset = _root.music.position;
_root.music.stop();
}
function unPauseMusic(ID) {
_root.music = new Sound(_root.music_mc);
_root.music.attachSound(_root.SoundArray[ID][0]);
_root.music.start(_root.musicOffset / 1000, 10000);
_root.songID = ID;
}
function playFX(ID) {
_root.numberofPlayedFx++;
_root[FX + _root.numberofPlayedFX] = new Sound(_root.FX_mc);
_root[FX + _root.numberofPlayedFX].attachSound(_root.SoundFXArray[ID]);
if (_root.SoundFXArray[ID] == "FX Button") {
_root[FX + _root.numberofPlayedFX].start(0, 1);
} else {
_root[FX + _root.numberofPlayedFX].start();
}
_root[FX + _root.numberofPlayedFX].setVolume(_root.thesetFXVolume);
}
loader.onEnterFrame = function () {
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "% Loaded";
};
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Flak-Games", rightClickLink1);
Functioned2 = new ContextMenuItem("Chad Duncan", rightClickLink2);
MENU.customItems.push(Functioned, Functioned2);
_root.menu = MENU;
_root.musicOffset = 0;
_root.SoundArray = [["wind1"], ["{Firestorm}", "Ian Slider"], ["Limit BreakeR", "ZeRo-BaSs"], ["Night Lights", "John Guy"], ["Rock Orchestra 2", "Goukisan"], ["Ongaku Kousei", "ZeRo-BaSs"]];
_root.SoundFXArray = ["0", "FX Button", "", "Unlocked", "", ""];
_root.numberofPlayedFx = 0;
_root.thesetFXVolume = 100;
Frame 2
if (_root.percentLoaded == 100) {
gotoAndPlay (3);
soundPlaying = false;
} else {
gotoAndPlay (1);
}
if (_root._framesloaded >= 23) {
gotoAndPlay (3);
soundPlaying = false;
}
Frame 3
stopMusic();
soundPlaying = false;
stopAllSounds();
if (System.capabilities.language == "es") {
_root.Language = "Spanish";
} else {
_root.Language = "English";
}
_root.thesetVolume = 30;
_root.playFX(1);
Frame 8
stop();
Frame 9
var theDate2 = new Date();
theDate = theDate2.getMonth() + 1;
trace(theDate);
stop();
Instance of Symbol 26 MovieClip "music_mc" in Frame 9
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 1000000);
}
Instance of Symbol 26 MovieClip "FX_mc" in Frame 9
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 1000001);
}
Frame 11
stop();
Mouse.show();
if (!soundPlaying) {
playMusic(1);
_root.thesetVolume = 30;
soundPlaying = true;
}
if (_root.Language == "Spanish") {
var Copyright = "\u00A9 Chad Duncan\rFlak-Games.com";
} else {
var Copyright = "\u00A9 Chad Duncan\rFlak-Games.com";
}
if (_root.Language == "Spanish") {
menuList.gotoAndStop(2);
} else {
menuList.gotoAndStop(1);
}
version = "V 1.2 - ArmorGames Version";
version2 = version;
if (theme != undefined) {
_root.mainbg.gotoAndStop(theme);
}
Instance of Symbol 119 MovieClip "mainbg" in Frame 11
onClipEvent (enterFrame) {
ID = _root.songID;
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
Instance of Symbol 191 MovieClip "box_img" in Frame 11
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(9);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 198 MovieClip in Frame 11
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
trace(_root.Language);
}
Frame 12
function saveScore(gameTitle, score) {
if ((score > game.data.savedData[gameTitle]) || (game.data.savedData[gameTitle] == undefined)) {
if (game.data.savedData == undefined) {
game.data.savedData = new Array();
}
game = SharedObject.getLocal("MGA2_Data");
game.data.savedData[gameTitle] = score;
game.flush();
}
}
function addGameInfo(theTitle, author, description, instructions, firstFrame, lastFrame, lockState) {
_root.totalmg = _root.totalmg + 1;
_root["game" + _root.totalmg] = Array(theTitle, author, description, instructions, firstFrame, lastFrame, lockState);
_root.gameInfo.push(_root["game" + _root.totalmg]);
}
cursor_mc.onMouseMove = function () {
if ((((_root.cursor_mc._x > 0) && (_root.cursor_mc._x < 650)) && (_root.cursor_mc._y > 0)) && (_root.cursor_mc._y < 500)) {
Mouse.hide();
}
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
if (currentpage == undefined) {
currentpage = 1;
}
version = version2;
totalmg = 0;
var gameInfo = Array();
var savedData = Array();
game = SharedObject.getLocal("MGA2_Data");
if (game.data.savedData == undefined) {
game.data.savedData = new Array();
}
var savedData = game.data.savedData;
var startGame = ((currentpage * 6) - 5);
if (_root.Language != "Spanish") {
addGameInfo("Target Practice", "Chad Duncan", "Targets come in your direction and you must shoot as many as you can within a couple of minutes. Keep an eye out for bonuses.", "Arrow Keys or A and D - move left and right\rMouse - aim and shoot", 20, 23, false);
addGameInfo("War TD", "Chad Duncan", "This is a futuristic war tower defense game. For 40 levels, prevent enemies from entering the base at all costs, literally.", "Mouse - set or upgrade towers", 24, 27, false);
addGameInfo("Maze", "Chad Duncan", "Find your way through a maze trying to unlock doors by pressing switches and avoiding enemies along the way.", "Arrow Keys or A,S,W,D - move\rMouse - mover", 28, 31, false);
addGameInfo("Spin", "Chad Duncan", "The platforms move up, so you must find your way to the one below.", "Arrow Keys or A,S,W,D - Move", 32, 35, true);
addGameInfo("Pixel Image", "Chad Duncan", "Click a cell in the grid to change it and its nearby cells. You have locks to keep the cells from changing. Try to make the image.", "Mouse - Change cells.", 36, 39, false);
addGameInfo("Collect", "Chad Duncan", "Controlling a spaceship, collect points before the enemy does.", "Up or W - Accelerate\rRight, Left or A, D - Rotate", 40, 43, false);
addGameInfo("Missile Mayhem", "Dank", "Guide a missile, avoiding anti-ballistic missiles and lasers. At the end of each level, hit the plane.", "Arrow Keys or ASWD - Move\r", 44, 47, false);
addGameInfo("Turret Trouble", "Chad Duncan", "You must avoid gunfire. Once the 'bullet' stops, it can still remain deadly. Note: This is from MGA 1 and contains few changes.", "Mouse - move", 68, 71, false);
addGameInfo("Bomb Barrage", "Dank", "Dodge the falling bombs as long as you can.", "Arrow Keys - move and jump", 52, 55, false);
addGameInfo("Selection V1", "Chad Duncan", "Control your box with the arrow keys and reach the goal (selecting it) each time it moves.", "Arrow Keys or W,S,A,D - Movement\r\rHit the goal 100 times within the time limit.", 56, 59, true);
if (theDate == 12) {
addGameInfo("Catch", "Chad Duncan", "NOTE: This is the Christmas edition (only in December). Try to catch as many presents as you can. If you miss 25, you lose.", "Mouse - move", 60, 63, false);
} else {
addGameInfo("Catch", "Chad Duncan", "Try to catch as much money as you can. If you miss 25 coins, you lose.", "Mouse - move", 60, 63, false);
}
addGameInfo("Selection V2", "Chad Duncan", "Nearly the same concept as Selection V.1, but with several things added. Still, control your box with the arrow keys and reach the goal each time it moves.", "Arrow Keys or W,S,A,D - Movement\r\rHit the goal 25 times within the time limit.", 64, 67, false);
} else {
addGameInfo("Target Practice", "Chad Duncan", "Objetivos vienen en tu direcci\u00F3n y tienes que disparar tanto como puede dentro de un par de minutos. Mantenga un ojo para las puntos extras.", "Teclas de Flecha o A y D - mover un lado a otro\rMouse - objetivo y disparar", 20, 23, false);
addGameInfo("War TD", "Chad Duncan", "Esta es una guerra futurista torre de defensa juego. Durante 40 niveles, prevenir enemigos la entrada de la base.", "Mouse - poner o mejorar las torres", 24, 27, false);
addGameInfo("Maze", "Chad Duncan", "Encuentra tu camino a trav\u00E9s de un laberinto intentando desbloquear las puertas presionando interruptores y evitar enemigos en el camino.", "Teclas de Flecha o A, S, W, D - mover\rMouse - mover", 28, 31, false);
addGameInfo("Spin", "Chad Duncan", "Las plataformas mover hacia arriba, de modo que debe encontrar el camino a la siguiente.", "Teclas de Flecha o A, S, W, D - mover", 32, 35, true);
addGameInfo("Pixel Image", "Chad Duncan", "Haga clic en una celda de la cuadr\u00EDcula para cambiarlo y sus c\u00E9lulas cercanas. Puede bloquear las c\u00E9lulas. Intente hacer la imagen.", "Mouse - Cambiar las c\u00E9lulas.", 36, 39, false);
addGameInfo("Collect", "Chad Duncan", "Mientras tu el control de una nave espacial, acumular puntos antes de que el enemigo.", "Up or W - Accelerate\rDerecha, izquierda o A, D - Girar", 40, 43, false);
addGameInfo("Missile Mayhem", "Dank", "Gu\u00EDa de un misil, evitando anti-misiles bal\u00EDsticos. Al final, impact\u00F3 el avi\u00F3n. Nota: Esta es de MGA 1, pero contiene muchos cambios.", "Teclas de Flecha o A, S, W, D - mover\r", 44, 47, false);
addGameInfo("Turret Trouble", "Chad Duncan", "Usted debe evitar los disparos. Cuando el topo se detiene, ello puede seguir siendo mortal. Nota: Esta es de MGA 1 y contiene algunos cambios.", "Mouse - mover", 68, 71, false);
addGameInfo("Bomb Barrage", "Dank", "Dodge la ca\u00EDda de bombas, siempre que puedas.", "Arrow Keys - move and jump", 52, 55, false);
addGameInfo("Selection V1", "Chad Duncan", "Controle su caja con las teclas de flecha y alcanzar el objetivo (la selecci\u00F3n de ella) cada vez que ello mueve.", "Teclas de Flecha o A, S, W, D - mover", 56, 59, true);
if (theDate == 12) {
addGameInfo("Catch", "Chad Duncan", "NOTA: Esta es la edici\u00F3n de Navidad. Trate de captura ya que muchos se presenta como puede. Si olvida 25, usted pierde.", "Mouse - mover", 60, 63, false);
} else {
addGameInfo("Catch", "Chad Duncan", "Trate de atrapar la mayor cantidad de dinero que puedas. Si pierde 25 monedas, usted pierde.", "Mouse - move", 60, 63, false);
}
addGameInfo("Selection V2", "Chad Duncan", "Controle su caja con las teclas de flecha y llegar a la meta cada vez que ello mueve.", "Teclas de Flecha o A, S, W, D - mover", 64, 67, false);
}
if (theme != undefined) {
_root.mainbg.gotoAndStop(theme);
}
totalScore = 0;
i = 0;
while (i < _root.gameInfo.length) {
if (savedData[_root.gameInfo[i][0]] != "0") {
totalScore = totalScore + savedData[_root.gameInfo[i][0]];
}
trace("score:" + totalScore);
i++;
}
thingsJustUnlocked = "";
if ((_root.savedData[_root.gameInfo[11][0]] != undefined) && (_root.savedData[_root.gameInfo[11][0]] != 0)) {
_root.gameInfo[9][6] = false;
if (_root.unlockgame1) {
_root.unlockgame1 = false;
thingsJustUnlocked = thingsJustUnlocked + "Selection V.1\rYou can now play the game, Selection.\r";
}
} else {
_root.unlockgame1 = true;
}
if ((_root.savedData[_root.gameInfo[4][0]] != undefined) && (_root.savedData[_root.gameInfo[4][0]] != 0)) {
_root.gameInfo[3][6] = false;
if (_root.unlockgame2) {
_root.unlockgame2 = false;
thingsJustUnlocked = thingsJustUnlocked + "Spin\rYou can now play the game, Spin.\r";
}
} else {
_root.unlockgame2 = true;
}
reviewUnlocked = true;
i = 0;
while (i < _root.gameInfo.length) {
if (((savedData[_root.gameInfo[i][0]] == undefined) || (savedData[_root.gameInfo[i][0]] == 0)) || (savedData[_root.gameInfo[i][0]] == "0")) {
reviewUnlocked = false;
_root.unlock1 = true;
}
i++;
}
if (isNaN(totalScore)) {
totalScore = 0;
}
if (totalScore >= 10000) {
if (_root.unlock2) {
_root.unlock2 = false;
thingsJustUnlocked = thingsJustUnlocked + "Download Version\rYou now are able to download this game onto your desktop.\r";
}
} else {
_root.unlock2 = true;
}
if (savedData["War TD"] >= 2000) {
if (_root.unlock3) {
_root.unlock3 = false;
thingsJustUnlocked = thingsJustUnlocked + "Themes\rYou now are able to change themes for minigames.\r";
}
} else {
_root.unlock3 = true;
}
if (thingsJustUnlocked != "") {
_root.gotoAndStop("unlocked");
}
game_btn1.onEnterFrame = function () {
i = 0;
while (i < 6) {
if (_root.gameInfo[(startGame + i) - 1][0] == undefined) {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)].gotoAndStop(2);
} else {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)].gotoAndStop(1);
}
if (_root._framesloaded < _root.gameInfo[(_root.startGame + i) - 1][4]) {
if (_root.Language == "Spanish") {
_root.gamePercentLoaded = "0% Cargado";
} else {
_root.gamePercentLoaded = "0% Loaded";
}
} else if (_root._framesloaded >= _root.gameInfo[(_root.startGame + i) - 1][5]) {
if (_root.Language == "Spanish") {
_root.gamePercentLoaded = "";
} else {
_root.gamePercentLoaded = "";
}
} else if ((_root._framesloaded > _root.gameInfo[(_root.startGame + i) - 1][4]) && (_root._framesloaded < _root.gameInfo[(_root.startGame + i) - 1][5])) {
if (_root.Language == "Spanish") {
_root.gamePercentLoaded = Math.floor(100 * ((_root._framesloaded - _root.gameInfo[(_root.startGame + i) - 1][4]) / (_root.gameInfo[(_root.startGame + i) - 1][5] - _root.gameInfo[(_root.startGame + i) - 1][4]))) + "% Cargado";
} else {
_root.gamePercentLoaded = Math.floor(100 * ((_root._framesloaded - _root.gameInfo[(_root.startGame + i) - 1][4]) / (_root.gameInfo[(_root.startGame + i) - 1][5] - _root.gameInfo[(_root.startGame + i) - 1][4]))) + "% Loaded";
}
}
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)].mg_image.gotoAndStop(_root.gameInfo[(_root.startGame + i) - 1][0]);
if (_root.savedData[_root.gameInfo[(startGame + i) - 1][0]] == undefined) {
_root.savedData[_root.gameInfo[(startGame + i) - 1][0]] = "0";
}
if (_root.gamePercentLoaded == "") {
if (_root.Language == "Spanish") {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)]._title = ((((_root.gameInfo[(_root.startGame + i) - 1][0] + newline) + "por: ") + _root.gameInfo[(_root.startGame + i) - 1][1]) + newline) + _root.savedData[_root.gameInfo[(startGame + i) - 1][0]];
} else {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)]._title = (((((_root.gameInfo[(_root.startGame + i) - 1][0] + newline) + "by: ") + _root.gameInfo[(_root.startGame + i) - 1][1]) + newline) + "Score: ") + _root.savedData[_root.gameInfo[(startGame + i) - 1][0]];
}
} else if (_root.Language == "Spanish") {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)]._title = ((((_root.gameInfo[(_root.startGame + i) - 1][0] + newline) + "por: ") + _root.gameInfo[(_root.startGame + i) - 1][1]) + newline) + _root.gamePercentLoaded;
} else {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)]._title = ((((_root.gameInfo[(_root.startGame + i) - 1][0] + newline) + "by: ") + _root.gameInfo[(_root.startGame + i) - 1][1]) + newline) + _root.gamePercentLoaded;
}
if (_root.gameInfo[(startGame + i) - 1][6]) {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)].mg_image.gotoAndStop("locked");
if (_root.Language == "Spanish") {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)]._title = "\rBLOQUEADO\r";
} else {
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)]._title = "\rLOCKED\r";
}
}
_root["game_btn" + ((((_root.currentpage * 6) - _root.startGame) - 4) + i)].chosen_game = _root["game" + (_root.startGame + i)];
i++;
}
};
if (_root.Language == "Spanish") {
switch (currentpage) {
case 1 :
if (Math.ceil(totalmg / 8) == 1) {
_root.pagebtns.gotoAndStop(4);
}
_root.pagebtns.gotoAndStop(2);
break;
case Math.ceil(totalmg / 6) :
_root.pagebtns.gotoAndStop(3);
if (Math.ceil(totalmg / 6) == 1) {
_root.pagebtns.gotoAndStop(4);
}
break;
default :
_root.pagebtns.gotoAndStop(1);
}
page_txt = "Pagina " + currentpage;
} else {
switch (currentpage) {
case 1 :
if (Math.ceil(totalmg / 8) == 1) {
_root.pagebtns.gotoAndStop(4);
}
_root.pagebtns.gotoAndStop(2);
break;
case Math.ceil(totalmg / 6) :
_root.pagebtns.gotoAndStop(3);
if (Math.ceil(totalmg / 6) == 1) {
_root.pagebtns.gotoAndStop(4);
}
break;
default :
_root.pagebtns.gotoAndStop(1);
}
page_txt = "Page " + currentpage;
}
_root.pagebtns.prevbtn.onRelease = function () {
currentpage = currentpage - 1;
play();
};
_root.pagebtns.nextbtn.onRelease = function () {
currentpage = currentpage + 1;
play();
};
stop();
if (_root.Language == "Spanish") {
returntomenu = "Volver";
} else {
returntomenu = "Return to Menu";
}
Instance of Symbol 277 MovieClip in Frame 12
onClipEvent (load) {
var min_y = 150;
var max_y = 361;
var speed = 8;
var accel = 0;
}
onClipEvent (enterFrame) {
var angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
var angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
if (accel < speed) {
accel = accel + 1;
}
if (((_root._ymouse > this._y) && (accel > 1)) || (_root._ymouse > (this._y + 50))) {
if ((_root._ymouse - this._y) >= accel) {
var new_speed = speed;
} else {
var new_speed = (_root._ymouse - this._y);
}
if ((this._y + new_speed) < max_y) {
this._y = this._y + new_speed;
}
} else if (((_root._ymouse < this._y) && (accel > 1)) || (_root._ymouse < (this._y - 50))) {
if ((this._y - _root._ymouse) >= accel) {
var new_speed = speed;
} else {
var new_speed = (this._y - _root._ymouse);
}
if ((this._y - new_speed) > min_y) {
this._y = this._y - new_speed;
}
} else {
accel = 0;
}
}
Instance of Symbol 277 MovieClip in Frame 12
onClipEvent (load) {
var min_y = 150;
var max_y = 361;
var speed = 8;
var accel = 0;
}
onClipEvent (enterFrame) {
var angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
var angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
if (accel < speed) {
accel = accel + 1;
}
if (((_root._ymouse > this._y) && (accel > 1)) || (_root._ymouse > (this._y + 50))) {
if ((_root._ymouse - this._y) >= accel) {
var new_speed = speed;
} else {
var new_speed = (_root._ymouse - this._y);
}
if ((this._y + new_speed) < max_y) {
this._y = this._y + new_speed;
}
} else if (((_root._ymouse < this._y) && (accel > 1)) || (_root._ymouse < (this._y - 50))) {
if ((this._y - _root._ymouse) >= accel) {
var new_speed = speed;
} else {
var new_speed = (this._y - _root._ymouse);
}
if ((this._y - new_speed) > min_y) {
this._y = this._y - new_speed;
}
} else {
accel = 0;
}
}
Frame 13
prevFrame();
Frame 14
Mouse.show();
trace(chosen_game[0]);
if (chosen_game[6]) {
chosen_game_title = "LOCKED";
chosen_game_author = "Unknown";
chosen_game_description = "This game (or another unlockable) is currently locked and you must unlock to play or view.";
chosen_game_instructions = "In order to unlock, you may to need to play or reach a certain score for another game.";
chosen_mg_image.gotoAndStop("locked");
sscore = "0";
_root.play_btn1.gotoAndStop(1);
} else {
_root.play_btn1.gotoAndStop(2);
chosen_game_title = chosen_game[0];
chosen_game_author = chosen_game[1];
chosen_game_description = chosen_game[2];
chosen_game_instructions = chosen_game[3];
chosen_mg_image.gotoAndStop(chosen_game[0]);
game = SharedObject.getLocal("MGA2_Data");
if (game.data.savedData == undefined) {
game.data.savedData = new Array();
}
var savedData = game.data.savedData;
sscore = savedData[chosen_game_title];
}
Instance of Symbol 314 MovieClip "play_btn1" in Frame 14
onClipEvent (enterFrame) {
if (_root._framesloaded < _root.chosen_game[4]) {
var loading_txt1 = "0% Loaded";
} else if (_root._framesloaded >= _root.chosen_game[5]) {
var loading_txt1 = "100% Loaded";
} else if ((_root._framesloaded > _root.chosen_game[4]) && (_root._framesloaded < _root.chosen_game[5])) {
var loading_txt1 = (Math.round(100 * ((_root._framesloaded - _root.chosen_game[4]) / (_root.chosen_game[5] - _root.chosen_game[4]))) + "% Loaded");
}
var loading_txt2 = this.loading_txt1;
if ((this.loading_txt2 == "100% Loaded") && (this._currentframe == 2)) {
this.gotoAndStop(3);
}
}
Instance of Symbol 577 MovieClip in Frame 15
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Frame 16
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("b382a341", this, 10301, true);
Frame 18
var savedData = Array();
game = SharedObject.getLocal("MGA2_Data");
if (game.data.savedData == undefined) {
game.data.savedData = new Array();
}
var savedData = game.data.savedData;
var gameListArray = ["Target Practice", "War TD", "Maze", "Spin", "Pixel Image", "Collect", "Missile Mayhem", "Turret Trouble", "Bomb Barrage", "Selection V1", "Catch", "Selection V2"];
var lockedItemsArray = ["Target Practice", "War TD", "Maze", 0, "Pixel Image", "Collect", "Missile Mayhem", "Turret Trouble", "Bomb Barrage", 0, "Catch", "Selection V2"];
numberofUnlocks = 0;
totalUnlocks = 4;
if ((savedData[gameListArray[11]] != undefined) && (savedData[gameListArray[11]] != 0)) {
lockedItemsArray[9] = "Selection V1";
numberofUnlocks = numberofUnlocks + 1;
}
if ((savedData[gameListArray[4]] != undefined) && (savedData[gameListArray[4]] != 0)) {
lockedItemsArray[3] = "Spin";
numberofUnlocks = numberofUnlocks + 1;
}
reviewUnlocked = true;
i = 0;
while (i < gameListArray.length) {
if ((((!isNaN(savedData[gameListArray[i]])) && (savedData[gameListArray[i]] == undefined)) || (savedData[gameListArray[i]] == 0)) || (savedData[gameListArray[i]] == "0")) {
reviewUnlocked = false;
}
i++;
}
if ((!isNaN(savedData[gameListArray[1]])) && (savedData[gameListArray[1]] >= 2000)) {
_root.unlock3.gotoAndStop(4);
numberofUnlocks = numberofUnlocks + 1;
}
var totalScore = 0;
var worstScore = 10000000;
var bestScore = 0;
i = 0;
while (i < gameListArray.length) {
if ((savedData[gameListArray[i]] != "0") && (!isNaN(savedData[gameListArray[i]]))) {
var totalScore = (totalScore + savedData[gameListArray[i]]);
}
if ((!isNaN(savedData[gameListArray[i]])) && (savedData[gameListArray[i]] < worstScore)) {
worstScore = savedData[gameListArray[i]];
}
if ((!isNaN(savedData[gameListArray[i]])) && (savedData[gameListArray[i]] > bestScore)) {
bestScore = savedData[gameListArray[i]];
}
i++;
}
if (worstScore == 10000000) {
worstScore = 0;
}
i = 0;
while (i < gameListArray.length) {
if (((!isNaN(savedData[gameListArray[i]])) && (savedData[gameListArray[i]] == worstScore)) && (lockedItemsArray[i] != 0)) {
worstScoreFrom = gameListArray[i];
}
if ((!isNaN(savedData[gameListArray[i]])) && (savedData[gameListArray[i]] == bestScore)) {
bestScoreFrom = gameListArray[i];
trace(bestScoreFrom);
}
i++;
}
if (totalScore >= 10000) {
_root.unlock2.gotoAndStop(3);
numberofUnlocks = numberofUnlocks + 1;
}
if (_root.Language != "Spanish") {
worstScoreFrom = worstScoreFrom + ((" with " + worstScore) + " points");
bestScoreFrom = bestScoreFrom + ((" with " + bestScore) + " points");
} else {
worstScoreFrom = worstScoreFrom + ((" con " + worstScore) + " puntos");
bestScoreFrom = bestScoreFrom + ((" con " + bestScore) + " puntos");
}
averageScore = Math.round(totalScore / gameListArray.length);
unlocksRemaining = totalUnlocks - numberofUnlocks;
var stats = ((((((((((((totalScore + newline) + bestScoreFrom) + newline) + worstScoreFrom) + newline) + averageScore) + newline) + newline) + newline) + numberofUnlocks) + newline) + unlocksRemaining);
Instance of Symbol 598 MovieClip in Frame 18
onClipEvent (load) {
if (_root.Language == "Spanish") {
gotoAndStop (11);
}
}
Instance of Symbol 605 MovieClip in Frame 19
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 99 MovieClip in Frame 20
onClipEvent (load) {
if (_root.music.getVolume() != undefined) {
trace(" test: " + _root.thesetVolume);
this.vbar.gotoAndStop(Math.round((_root.music.getVolume() / 10) + 1));
} else {
this.vbar.gotoAndStop(9);
}
if (((this.vbar._currentframe - 1) * 10) != _root.music.getVolume()) {
_root.music.setVolume((this.vbar._currentframe - 1) * 10);
}
}
onClipEvent (enterFrame) {
if (((this.vbar._currentframe - 1) * 10) != _root.thesetVolume) {
this.vbar.gotoAndStop((_root.thesetVolume / 10) + 1);
_root.music.setVolume(_root.thesetVolume);
}
}
Instance of Symbol 618 MovieClip in Frame 20
onClipEvent (load) {
if (_root.FX.getVolume() != undefined) {
this.vbar.gotoAndStop(Math.round((_root.FX.getVolume() / 10) + 1));
} else {
this.vbar.gotoAndStop(8);
}
if (((this.vbar._currentframe - 1) * 10) != _root.FX.getVolume()) {
_root.FX.setVolume((this.vbar._currentframe - 1) * 10);
}
}
onClipEvent (enterFrame) {
if (((this.vbar._currentframe - 1) * 10) != _root.thesetFXVolume) {
this.vbar.gotoAndStop((_root.thesetFXVolume / 10) + 1);
_root.FX.setVolume(_root.thesetFXVolume);
}
}
Frame 21
_root.playFX(3);
Frame 24
Mouse.show();
switch (leaderboard) {
case "main" :
mochi.MochiScores.showLeaderboard({boardID:"aa727dc24ffb0da5", showTableRank:"true"});
break;
case "main_submit" :
mochi.MochiScores.showLeaderboard({boardID:"aa727dc24ffb0da5", score:_root.totalScore, showTableRank:"true"});
break;
case "Target Practice" :
mochi.MochiScores.showLeaderboard({boardID:"5d17014fe52d2bd0", score:_root.sscore});
break;
case "War TD" :
mochi.MochiScores.showLeaderboard({boardID:"344273b7b1b88130", score:_root.sscore});
break;
case "Maze" :
mochi.MochiScores.showLeaderboard({boardID:"5f7234ff90f57e18", score:_root.sscore});
break;
case "Spin" :
mochi.MochiScores.showLeaderboard({boardID:"147651033c160510", score:_root.sscore});
break;
case "Pixel Image" :
mochi.MochiScores.showLeaderboard({boardID:"c562817e45735260", score:_root.sscore});
break;
case "Collect" :
mochi.MochiScores.showLeaderboard({boardID:"ecc525c57e5475fa", score:_root.sscore});
break;
case "Missile Mayhem" :
mochi.MochiScores.showLeaderboard({boardID:"ea2b03c2038da689", score:_root.sscore});
break;
case "untitled" :
mochi.MochiScores.showLeaderboard({boardID:"1d79bb28b8e504c0", score:_root.sscore});
break;
case "Bomb Barrage" :
mochi.MochiScores.showLeaderboard({boardID:"23ec828680b29650", score:_root.sscore});
break;
case "Selection V1" :
mochi.MochiScores.showLeaderboard({boardID:"1460f525b9bc6989", score:_root.sscore});
break;
case "Catch" :
mochi.MochiScores.showLeaderboard({boardID:"8f248d62188f35b0", score:_root.sscore});
break;
case "Selection V2" :
mochi.MochiScores.showLeaderboard({boardID:"d23a8cc0f067d2da", score:_root.sscore});
break;
case "Turret Trouble" :
mochi.MochiScores.showLeaderboard({boardID:"66cab869185ae228", score:_root.sscore});
break;
}
Frame 25
gotoAndStop ("game menu");
Frame 26
function restart() {
_root.gotoAndPlay("Target Practice restart");
}
function fire() {
_root.totalexplosions++;
duplicateMovieClip ("explosion0", "explosion" + _root.totalexplosions, (_root.explosion0.getNextHighestDepth() + 1000) + _root.totalexplosions);
duplicateMovieClip ("fire0", "fire" + _root.totalexplosions, (_root.fire0.getNextHighestDepth() + 2000) + _root.totalexplosions);
_root["explosion" + _root.totalexplosions]._x = _root._xmouse;
_root["explosion" + _root.totalexplosions]._y = _root._ymouse;
}
function upgrade(u_number) {
switch (u_number) {
case 1 :
_root.fastForward = true;
break;
case 2 :
_root.score = _root.score + 10;
_root.slowDown = true;
startTarget = _root.target0.numberofTargets - _root.target0.inField;
endTarget = _root.target0.numberofTargets;
i = 0;
while (i < (endTarget - startTarget)) {
_root["target" + (startTarget + i)].speed = Math.round(_root["target" + (startTarget + i)].speed * 0.25);
i++;
}
break;
case 3 :
_root.score = _root.score + 50;
startTarget = _root.target0.numberofTargets - _root.target0.inField;
endTarget = _root.target0.numberofTargets;
i = 0;
while (i <= (endTarget - startTarget)) {
_root.targetsHit = _root.targetsHit + 1;
_root.score = _root.score + 6;
if ((_root["target" + (startTarget + i)].color1 > 4) && (_root["target" + (startTarget + i)].color1 < 7)) {
_root.score = _root.score + 1;
}
if (_root["target" + (startTarget + i)].color1 > 6) {
_root.score = _root.score + 1;
}
_root["target" + (startTarget + i)].play();
_root["target" + (startTarget + i)].speed = 2;
_root.target0.inField--;
i++;
}
break;
}
}
targetsHit = 0;
_root.bonus = 0;
gamePaused = true;
_root.slowDown = false;
_root.fastForward = false;
stop();
_root.score = 0;
_root.totalexplosions = 0;
Instance of Symbol 362 MovieClip "target0" in Frame 26
onClipEvent (load) {
if (this._name != "target0") {
_root.target0.numberofTargets = _root.target0.numberofTargets + 1;
this._x = Math.round(Math.random() * (650 - this._width)) + Math.round(this._width / 2);
color1 = Math.ceil(Math.random() * 7);
var maxSpeed = 15;
var minSpeed = 6;
if (color1 > 6) {
var minSpeed = 10;
}
if (_root.difficulty == "Hard") {
var minSpeed = 10;
var maxSpeed = 15;
}
var speed = (Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed);
if (_root.slowDown) {
speed = speed * 0.5;
}
if ((color1 > 4) && (color1 < 7)) {
this.gotoAndStop(8);
}
if (color1 >= 6) {
changez = Math.round(Math.sqrt(((_root.gun._y - this._y) * (_root.gun._y - this._y)) + ((_root.gun._x - this._x) * (_root.gun._x - this._x))) / speed);
changex = (_root.gun._x - this._x) / changez;
changey = (_root.gun._y - this._y) / changez;
trace(changey);
this.gotoAndStop(15);
}
} else {
_root.target0.numberofTargets = 0;
var speed = 0;
var startTime = getTimer();
var delayDuplicate = 990;
var numberofTargets = 1;
var inField = 0;
}
}
onClipEvent (enterFrame) {
trace(_root.target0.numberofTargets);
if (!_root.gamePaused) {
var delayDuplicate = ((990 - (150 * (_root.difficulty == "Hard"))) - (numberofTargets * 2));
if (this._name == "target0") {
var currentTime = Math.round(getTimer() - startTime);
if (currentTime >= delayDuplicate) {
if (!endofmgame) {
if (currentTime > 2000) {
inField = 0;
}
if (inField <= 10) {
if (!duplicated3339) {
var startTime = getTimer();
this.duplicateMovieClip("target" + numberofTargets, (this.getNextHighestDepth() + 50) + numberofTargets);
inField++;
duplicated3339 = true;
}
}
}
} else {
duplicated3339 = false;
}
} else if (_root["explosion" + _root.totalexplosions].hitTest(this._x, this._y, true) || (_root.gun.hitTest(this._x, this._y, true))) {
if (!deleted) {
deleted = true;
_root.target0.inField--;
_root.score = _root.score + 7;
if ((color1 > 4) && (color1 < 7)) {
_root.score = _root.score + 3;
}
if (color1 > 6) {
_root.score = _root.score - 10;
} else {
_root.targetsHit++;
}
}
this.play();
}
if (_root["explosion" + _root.totalexplosions].hitTest(this._x, this._y, true) || (_root.gun.hitTest(this._x, this._y, true))) {
} else if (color1 < 6) {
this._y = this._y + speed;
} else {
this._x = this._x + changex;
this._y = this._y + changey;
}
if ((((this._y > (500 + this._height)) || (this._y < (-500 - this._height))) || (this._x > (700 + this._width))) || (this._x < (-500 - this._height))) {
if (color1 >= 6) {
_root.targetsHit++;
}
_root.target0.inField--;
this.removeMovieClip(this);
}
if (((this._currentframe == 7) || (this._currentframe == 14)) || (this._currentframe == 21)) {
this.removeMovieClip(this);
}
} else {
startTime = getTimer();
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 650 MovieClip "gun" in Frame 26
onClipEvent (load) {
var maxspeed = 20;
var accelerate = 2;
var speed = 0;
var timePaused = 0;
var s1_pausedTime = getTimer();
var s1_StartTime = getTimer();
}
onClipEvent (enterFrame) {
_root.numberofTargets = _root.target0.numberofTargets;
_root.score2 = _root.score;
if (Math.floor(s1_timePassed / 1000) < 3) {
_root.target0.endofmgame = true;
}
if (!begun) {
begun = true;
timeAllowed = 120000 /* 0x01D4C0 */;
if (_root.difficulty == "Hard") {
timeAllowed = 150000 /* 0x0249F0 */;
}
if ((Math.floor(timeAllowed / 1000) - (Math.floor(timeAllowed / 60000) * 60)) < 10) {
zero = 0;
} else {
zero = "";
}
_root.timer = ((Math.floor(timeAllowed / 60000) + ":") + zero) + (Math.floor(timeAllowed / 1000) - (Math.floor(timeAllowed / 60000) * 60));
_root.timer2 = _root.timer;
}
if (!_root.gamePaused) {
s1_pausedTime = getTimer();
if (pausetimeadded == false) {
timePaused = timePaused + timePaused1;
pausetimeadded = true;
timePaused1 = 0;
}
s1_timePassed = (timeAllowed - (getTimer() - s1_StartTime)) + timePaused;
if ((Math.floor(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60)) < 10) {
zero = 0;
} else {
zero = "";
}
_root.timer = ((Math.floor(s1_timePassed / 60000) + ":") + zero) + (Math.floor(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60));
if (Math.floor(s1_timePassed) <= 0) {
_root.numberofTargets--;
_root.gotoAndStop("Target Practice Win");
}
var angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
var angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this.cannon._rotation = angle_in_degrees;
if (Key.isDown(39) || (Key.isDown(68))) {
if (speed < 0) {
var speed = 0;
}
if ((speed + accelreate) <= maxspeed) {
trace(speed);
var speed = (speed + accelerate);
trace(speed);
}
} else if (Key.isDown(37) || (Key.isDown(65))) {
if (speed > 0) {
var speed = 0;
}
if ((speed - accelreate) >= (maxspeed * -1)) {
speed = speed - accelerate;
}
} else {
var speed = 0;
}
if (((this._x + speed) <= Math.round(100 + (this._width / 2))) && (speed < 0)) {
this._x = Math.round(100 + (this._width / 2));
var speed = 0;
} else if (((this._x + speed) >= Math.round(550 - (this._width / 2))) && (speed > 0)) {
this._x = Math.round(550 - (this._width / 2));
var speed = 0;
} else {
this._x = this._x + speed;
}
if (fastForward == true) {
_root.fire();
}
} else {
timePaused1 = getTimer() - s1_pausedTime;
pausetimeadded = false;
}
}
Instance of Symbol 652 MovieClip in Frame 26
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
if (((((_root._xmouse < 0) || (_root._ymouse < 35)) || (_root._xmouse > 650)) || (_root._ymouse > 400)) || (_root.gamePaused)) {
if (!mouseshown) {
Mouse.show();
mouseshown = true;
}
} else {
mouseshown = false;
Mouse.hide();
}
}
Instance of Symbol 664 MovieClip "explosion0" in Frame 26
onClipEvent (load) {
if (_name == "explosion0") {
this.gotoAndStop(1);
}
this.gotoAndPlay("explosion" + Math.round(Math.random() * 3));
}
onClipEvent (enterFrame) {
if ((_name != "explosion0") && (this._currentframe == this._totalframes)) {
this.removeMovieClip(this);
}
if (_name == "explosion0") {
this.gotoAndStop(1);
}
}
Instance of Symbol 670 MovieClip "fire0" in Frame 26
onClipEvent (load) {
if (_name != "fire0") {
this._x = _root.gun._x;
this._y = _root.gun._y;
this._rotation = _root.gun.cannon._rotation;
}
}
onClipEvent (enterFrame) {
if (_name != "fire0") {
this._rotation = _root.gun.cannon._rotation;
if (this._currentframe == this._totalframes) {
this.removeMovieClip(this);
}
}
}
Instance of Symbol 368 MovieClip "upgrade0" in Frame 26
onClipEvent (load) {
this._x = Math.round(Math.random() * (650 - this._width)) + Math.round(this._width / 2);
while (upgrade == undefined) {
var upgrade2 = (Math.round(Math.random() * 2) + 1);
if (((_root.target0.numberofTargets < 50) && (upgrade2 == 1)) || ((_root.fastForward == true) && (upgrade2 == 1))) {
} else {
trace((_root.target0.numberofTargets + " ") + upgrade2);
var upgrade = upgrade2;
}
}
this.gotoAndStop(upgrade);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._name == "upgrade0") {
if (((((_root.target0.numberofTargets == 25) || (_root.target0.numberofTargets == 50)) || (_root.target0.numberofTargets == 75)) || (_root.target0.numberofTargets == 100)) || (_root.target0.numberofTargets == 150)) {
if (!duplicated) {
duplicated = true;
this.duplicateMovieClip("upgrade" + _root.target0.numberofTargets, (_root.upgrade0.getNextHighestDepth() + 3500) + _root.target0.numberofTargets);
}
} else {
duplicated = false;
}
if (((((_root.target0.numberofTargets == 35) || (_root.target0.numberofTargets == 60)) || (_root.target0.numberofTargets == 85)) || (_root.target0.numberofTargets == 120)) || (_root.target0.numberofTargets == 170)) {
_root.slowDown = false;
}
} else {
trace(1);
this._y = this._y + 10;
if (_root["explosion" + _root.totalexplosions].hitTest(this._x, this._y, true) || (_root.gun.hitTest(this._x, this._y, true))) {
_root.upgrade(upgrade);
this.removeMovieClip(this);
}
if (this._y >= 500) {
this.removeMovieClip(this);
}
}
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10290);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 704 MovieClip in Frame 26
onClipEvent (enterFrame) {
targetsHit = "X " + _root.targetsHit;
}
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 26
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 26
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 30350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 26
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10310);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
trace((_root._currentframe + " ") + frame);
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 26
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10330);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 27
_root.percentofTargets = Math.round((_root.targetsHit / _root.numberofTargets) * 100) + "%";
_root.targetsHit = (_root.targetsHit + " / ") + _root.numberofTargets;
_root.targetsHit2 = _root.targetsHit;
_root.percentofTargets2 = _root.percentofTargets;
Mouse.show();
saveScore("Target Practice", _root.score);
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 27
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10310);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 29
gotoAndStop ("Target Practice");
Frame 30
function restart() {
_root.gotoAndPlay("War TD restart");
}
function towerPurchased(towerName) {
if (_root.money >= _root.towers[towerName][1]) {
_root.money = _root.money - _root.towers[towerName][1];
_root.canSetObject = true;
_root.objectBeingSet = towerName;
}
}
function addTower(id, cost, speed, range, power, thetitle) {
_root["buygun" + id] = Array(id, cost, speed, range, power, thetitle);
_root.towers["buygun" + id] = _root["buygun" + id];
}
function showStats(selectedTower) {
if (selectedTower == "neutral") {
_root.selectedName = _root.previousSelectedName;
_root.selectedStats = _root.previousSelectedStats;
_root.selectedCost = _root.previousSelectedCost;
} else if (selectedTower == "upgrade") {
switch (_root[_root.selectedTower].currentframe) {
case "normal" :
break;
case "upgrade 1" :
break;
default :
if (_root.Language == "Spanish") {
_root.selectedName = "No Es Posible Actualizar";
_root.selectedStats = "";
_root.selectedCost = "";
} else {
_root.selectedName = "Can't Upgrade";
_root.selectedStats = "";
_root.selectedCost = "";
}
}
var _local3 = 0;
var _local4 = 0;
switch (_root[_root.selectedTower].currentframe) {
case "normal" :
upgraden1 = 0;
break;
case "upgrade 1" :
upgraden1 = 1;
break;
}
do {
if (_local4.toString() == _root.towerUpgradeArray[number - 1][upgraden1 + 1][1].toString()) {
break;
}
_local3 = _local3 + 1;
_local4 = _local3 * 10;
if (_local3.toString() == _root[_root.selectedTower].stats[0]) {
var number = _local3;
}
if (_local4.toString() == _root.towerUpgradeArray[number - 1][upgraden1 + 1][1].toString()) {
var _local5 = _local4;
}
} while (_local3 <= 100);
switch (_root[_root.selectedTower].currentframe) {
case "normal" :
if (_root.Language == "Spanish") {
_root.selectedName = "Actualizaci\u00F3n: " + _root.towerUpgradeArray[number - 1][1][5];
_root.selectedStats = (((((("Poder: " + _root.towerUpgradeArray[number - 1][1][4]) + newline) + "Velocidad: ") + _root.towerUpgradeArray[number - 1][1][2]) + newline) + "Rango: ") + _root.towerUpgradeArray[number - 1][1][3];
_root.selectedCost = "Costo: " + _root.towerUpgradeArray[number - 1][1][1];
} else {
_root.selectedName = "Upgrade: " + _root.towerUpgradeArray[number - 1][1][5];
_root.selectedStats = (((((("Power: " + _root.towerUpgradeArray[number - 1][1][4]) + newline) + "Speed: ") + _root.towerUpgradeArray[number - 1][1][2]) + newline) + "Range: ") + _root.towerUpgradeArray[number - 1][1][3];
_root.selectedCost = "Cost to Upgrade: " + _root.towerUpgradeArray[number - 1][1][1];
}
break;
case "upgrade 1" :
if (_root.Language == "Spanish") {
_root.selectedName = "Actualizaci\u00F3n: " + _root.towerUpgradeArray[number - 1][2][5];
_root.selectedStats = (((((("Poder: " + _root.towerUpgradeArray[number - 1][2][4]) + newline) + "Velocidad: ") + _root.towerUpgradeArray[number - 1][2][2]) + newline) + "Rango: ") + _root.towerUpgradeArray[number - 1][2][3];
_root.selectedCost = "Costo: " + _root.towerUpgradeArray[number - 1][2][1];
} else {
_root.selectedName = "Upgrade: " + _root.towerUpgradeArray[number - 1][2][5];
_root.selectedStats = (((((("Power: " + _root.towerUpgradeArray[number - 1][2][4]) + newline) + "Speed: ") + _root.towerUpgradeArray[number - 1][2][2]) + newline) + "Range: ") + _root.towerUpgradeArray[number - 1][2][3];
_root.selectedCost = "Cost to Upgrade: " + _root.towerUpgradeArray[number - 1][2][1];
}
break;
}
} else if (_root.Language == "Spanish") {
if ((((selectedTower == "buygun1") || (selectedTower == "buygun2")) || (selectedTower == "buygun3")) || (selectedTower == "buygun4")) {
_root.selectedName = _root.towers[selectedTower][5];
_root.selectedStats = (((((("Poder: " + _root.towers[selectedTower][4]) + newline) + "Velocidad: ") + _root.towers[selectedTower][2]) + newline) + "Range: ") + _root.towers[selectedTower][3];
_root.selectedCost = "Costo: " + _root.towers[selectedTower][1];
} else {
_root.selectedTower = selectedTower;
_root.selectedName = _root[selectedTower].stats[5];
_root.selectedStats = (((((("Poder: " + _root[selectedTower].stats[4]) + newline) + "Velocidad: ") + _root[selectedTower].stats[2]) + newline) + "Rango: ") + _root[selectedTower].stats[3];
_root.selectedCost = "Valer: " + Math.round(_root[selectedTower].stats[1] * 0.75);
_root.previousSelectedName = _root[selectedTower].stats[5];
_root.previousSelectedStats = (((((("Poder: " + _root[selectedTower].stats[4]) + newline) + "Velocidad: ") + _root[selectedTower].stats[2]) + newline) + "Rango: ") + _root[selectedTower].stats[3];
_root.previousSelectedCost = "Valer: " + Math.round(_root[selectedTower].stats[1] * 0.75);
}
} else if ((((selectedTower == "buygun1") || (selectedTower == "buygun2")) || (selectedTower == "buygun3")) || (selectedTower == "buygun4")) {
_root.selectedName = _root.towers[selectedTower][5];
_root.selectedStats = (((((("Power: " + _root.towers[selectedTower][4]) + newline) + "Speed: ") + _root.towers[selectedTower][2]) + newline) + "Range: ") + _root.towers[selectedTower][3];
_root.selectedCost = "Cost: " + _root.towers[selectedTower][1];
} else {
_root.selectedTower = selectedTower;
_root.selectedName = _root[selectedTower].stats[5];
_root.selectedStats = (((((("Power: " + _root[selectedTower].stats[4]) + newline) + "Speed: ") + _root[selectedTower].stats[2]) + newline) + "Range: ") + _root[selectedTower].stats[3];
_root.selectedCost = "Worth: " + Math.round(_root[selectedTower].stats[1] * 0.75);
_root.previousSelectedName = _root[selectedTower].stats[5];
_root.previousSelectedStats = (((((("Power: " + _root[selectedTower].stats[4]) + newline) + "Speed: ") + _root[selectedTower].stats[2]) + newline) + "Range: ") + _root[selectedTower].stats[3];
_root.previousSelectedCost = "Worth: " + Math.round(_root[selectedTower].stats[1] * 0.75);
}
}
function sell() {
if (_root.selectedTower != undefined) {
if (!isNaN(Math.round(_root[_root.selectedTower].stats[1] * 0.75))) {
_root.money = _root.money + Math.round(_root[_root.selectedTower].stats[1] * 0.75);
i = 0;
while (i < 10000000000) {
if (("tower" + i) == _root[_root.selectedTower]._name) {
towerBelow = i - 1;
break;
}
i++;
}
_root[_root.selectedTower].removeMovieClip(_root[_root.selectedTower]);
}
}
}
function setObject(objectbeingset) {
_root.tower.towerNumber = _root.tower.towerNumber + 1;
_root.tower.duplicateMovieClip("tower" + _root.tower.towerNumber, (_root.tower.getNextHighestDepth() + _root.tower.towerNumber) + 1400);
_root["tower" + _root.tower.towerNumber].towerNumber = _root.tower.towerNumber;
_root["tower" + _root.tower.towerNumber].towerChosen = objectbeingset;
_root["tower" + _root.tower.towerNumber]._x = _root.setBox._x;
_root["tower" + _root.tower.towerNumber]._y = _root.setBox._y;
_root["tower" + _root.tower.towerNumber].gotoAndStop(_root.towers[objectbeingset][0]);
_root["tower" + _root.tower.towerNumber].stats = _root.towerUpgradeArray[_root.towers[objectbeingset][0] - 1][0];
_root["tower" + _root.tower.towerNumber].currentframe = "normal";
if (!_root.canSetObject) {
_root["tower" + _root.tower.towerNumber]._alpha = 0;
}
_root.score = _root.score + 1;
}
function upgrade() {
var _local2 = 0;
var _local3 = 0;
switch (_root[_root.selectedTower].currentframe) {
case "normal" :
upgraden1 = 0;
break;
case "upgrade 1" :
upgraden1 = 1;
break;
}
do {
if (_local3.toString() == _root.towerUpgradeArray[number - 1][upgraden1 + 1][1].toString()) {
break;
}
_local2 = _local2 + 1;
_local3 = _local2 * 10;
if (_local2.toString() == _root[_root.selectedTower].stats[0]) {
var number = _local2;
}
if (_local3.toString() == _root.towerUpgradeArray[number - 1][upgraden1 + 1][1].toString()) {
var _local4 = _local3;
}
} while (_local2 <= 100);
switch (_root[_root.selectedTower].currentframe) {
case "normal" :
if (_root.money >= _local4) {
_root.score = _root.score + 5;
_root[_root.selectedTower].turret.gotoAndStop("upgrade 1");
_root[_root.selectedTower].stats = _root.towerUpgradeArray[number - 1][1];
_root[_root.selectedTower].currentframe = "upgrade 1";
_root.money = _root.money - _local4;
_root.showStats(_root.selectedTower);
}
break;
case "upgrade 1" :
if (_root.money >= _local4) {
_root.score = _root.score + 10;
_root[_root.selectedTower].turret.gotoAndStop("upgrade 2");
_root[_root.selectedTower].stats = _root.towerUpgradeArray[number - 1][2];
_root[_root.selectedTower].currentframe = "upgrade 2";
_root.money = _root.money - _local4;
_root.showStats(_root.selectedTower);
}
break;
}
}
function nextLevel() {
_root.levelisStarted = true;
}
stop();
if (_root.difficulty == "Hard") {
_root.TD_Levels = [[1, 1, 2, 2, 2, 2, 2, 2], [2, 2, 2, 2, 3, 2, 2, 2, 2, 3], [3, 3, 6, 3, 3, 6, 3, 3], [4, 3, 3, 3, 6, 6, 6, 6, 3, 3], [4, 4, 6, 6, 6, 3, 6, 3, 6, 6, 6, 6], [4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6], [6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6], [7, 7, 7, 7, 7, 7, 7, 7, 7, 7], [7, 7, 7, 7, 7, 7, 7, 7, 7, 9], [9, 7, 7, 7, 7, 7, 7, 9, 7, 7, 7, 7], [9, 7, 7, 7, 7, 7, 7, 7, 9, 7, 7, 7, 7, 7, 9], [4, 4, 4, 7, 7, 7, 7, 7, 9, 9, 9], [8, 8, 8, 10, 7, 7, 7, 7, 7, 9, 7, 7, 7, 9], [8, 8, 9, 3, 9, 3, 3, 3, 9, 7, 3, 7, 7, 7, 7, 9], [8, 8, 8, 10, 7, 7, 9, 7, 9, 3, 3, 3, 9], [10, 3, 3, 10, 7, 7, 3, 10, 3, 3, 3, 7, 7, 7, 11], [10, 3, 3, 10, 7, 7, 7, 10, 3, 3, 3, 3, 7, 7, 7, 11], [10, 3, 3, 11, 7, 7, 7, 3, 3, 3, 12, 7, 7, 7, 11], [12, 3, 3, 7, 7, 7, 7, 3, 3, 3, 3, 7, 7, 7, 11], [10, 10, 3, 7, 7, 7, 7, 12, 3, 3, 3, 7, 7, 7, 11], [10, 3, 3, 12, 7, 7, 7, 9, 3, 3, 12, 9, 3, 7, 7, 7, 12], [12, 3, 3, 7, 7, 7, 7, 12, 3, 3, 3, 3, 3, 3, 10, 7, 7, 7, 7, 10], [12, 3, 3, 7, 7, 7, 7, 3, 3, 12, 3, 3, 3, 3, 7, 7, 7, 7, 12], [10, 3, 3, 3, 3, 10, 7, 7, 7, 7, 12, 3, 3, 3, 3, 3, 3, 3, 12, 7, 7, 7, 7], [10, 10, 10, 9, 10, 12], [3, 7, 9, 10, 11, 12, 12], [12, 7, 7, 7, 7, 12, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 12], [12, 12, 7, 7, 7, 7, 7, 12, 12], [12, 11, 12, 11, 12], [12, 7, 7, 7, 12, 3, 3, 3, 12, 3, 3, 3, 12, 12], [12, 9, 9, 12, 9, 9, 9, 9, 12], [12, 12, 12, 12, 12], [12, 12, 12, 12, 12, 12, 12], [12, 9, 9, 9, 12, 9, 9, 9, 12, 12], [12, 12, 10, 12, 12, 12, 12], [12, 12, 12, 12, 12, 12, 12, 12], [12, 7, 7, 12, 7, 12, 7, 7, 7, 7, 12, 7, 7, 7, 12, 7, 7, 12, 7, 7, 7, 7, 12, 7, 7, 12, 7, 7, 7, 7, 7, 12, 7, 7, 12, 7, 7, 7, 12], [12, 3, 12, 12, 3, 3, 12, 3, 3, 3, 12, 3, 7, 7, 7, 12, 7, 7, 12, 7, 12], [12, 12, 12, 3, 12, 3, 3, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12], [12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12, 12]];
} else {
_root.TD_Levels = [[1, 1, 1, 1, 1, 2, 2, 2], [1, 2, 1, 2, 2, 2, 2, 1, 2, 1], [2, 3, 6, 3, 2, 6, 3, 2], [4, 3, 3, 3, 3, 3, 6, 6, 3, 3], [4, 4, 6, 6, 5, 3, 6, 3, 3, 3, 6, 6], [4, 4, 4, 4, 4, 4, 4, 5, 6, 6, 6, 6], [4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6], [6, 6, 6, 6, 5, 5, 6, 6, 7, 6], [6, 6, 6, 6, 6, 6, 6, 7, 7, 9], [9, 6, 6, 7, 7, 7, 7, 9, 7, 7, 7, 7], [9, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9], [4, 4, 4, 7, 7, 7, 7, 7, 7, 9, 9], [8, 8, 8, 10, 7, 7, 7, 7, 7, 7, 7, 7, 7, 9], [8, 8, 3, 3, 9, 7, 7, 7, 7, 7, 9, 7, 7, 7, 7, 9], [8, 8, 8, 10, 7, 7, 7, 7, 9, 3, 3, 3, 9], [10, 3, 3, 7, 7, 3, 10, 3, 3, 3, 7, 7, 7, 11], [10, 3, 3, 9, 7, 7, 7, 10, 3, 3, 7, 7, 7, 7, 7, 11], [10, 3, 3, 11, 7, 7, 7, 3, 3, 3, 3, 7, 7, 7, 11], [10, 3, 3, 7, 7, 7, 7, 10, 3, 3, 3, 7, 7, 7, 11], [10, 10, 3, 7, 7, 7, 7, 10, 3, 3, 3, 7, 7, 7, 11], [10, 3, 3, 7, 7, 7, 7, 9, 3, 3, 3, 9, 3, 7, 7, 7, 12], [10, 3, 3, 7, 7, 7, 7, 11, 3, 3, 3, 3, 3, 3, 10, 7, 7, 7, 7, 10], [10, 3, 3, 7, 7, 7, 7, 3, 3, 12, 3, 3, 3, 3, 7, 7, 7, 7, 10], [10, 3, 3, 3, 3, 10, 7, 7, 7, 7, 12, 3, 3, 3, 3, 3, 3, 3, 11, 7, 7, 7, 7], [10, 10, 10, 9, 10, 11], [3, 7, 9, 10, 11, 12], [10, 7, 7, 7, 7, 7, 7, 7, 11, 7, 7, 7, 12], [12, 11, 7, 7, 7, 7, 7, 11, 12], [12, 11, 11, 11, 12], [12, 3, 3, 3, 12, 3, 3, 3, 12, 3, 3, 3, 11, 12], [9, 9, 12, 9, 9, 9, 9, 9, 12], [12, 12, 12, 12], [12, 12, 12, 11, 12, 12], [11, 9, 9, 9, 9, 9, 9, 9, 11, 10], [10, 12, 10, 12, 10, 12, 10], [11, 12, 11, 12, 12], [12, 7, 7, 7, 7, 7, 7, 7, 7, 7, 12, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 12, 7, 7, 7, 7, 7, 7, 7, 7, 7, 12, 7, 7, 7, 7, 7], [12, 3, 3, 3, 3, 3, 12, 3, 3, 3, 12, 3, 7, 7, 7, 7, 7, 7, 7, 7, 12], [12, 3, 3, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12, 3, 12], [12, 7, 12, 7, 12, 7, 12, 7, 12, 7, 12, 7, 12, 7, 12, 7, 12, 7, 7, 12, 7, 12, 7, 12, 12, 12, 12, 12, 12]];
}
_root.totalNumberofEnemiesinGame = 0;
k = 0;
while (k < _root.TD_Levels.length) {
j = 0;
while (j < _root.TD_Levels[k].length) {
_root.totalNumberofEnemiesinGame++;
j++;
}
k++;
}
trace(_root.TD_Levels.length);
_root.healthbarvisible = false;
trace(_root.totalNumberofEnemiesinGame);
_root.numberofEnemies = 0;
_root.levelisStarted = false;
_root.money = 100;
_root.lives = 30;
_root.interest = 10;
_root.score = 0;
_root.currentLevel = 1;
_root.enemiesInLevel = 1;
if (_root.Language == "Spanish") {
_root.previousSelectedName = "Nada Seleccionados";
_root.previousSelectedStats = "";
_root.previousSelectedCost = "";
_root.selectedName = "Nada Seleccionados";
_root.selectedStats = "";
_root.selectedCost = "";
_root.towers = Array();
_root.addTower(1, 40, "R\u00E1pido", "Peque\u00F1o", 50, "Ametralladora");
_root.addTower(2, 60, "Medio", "Medio", 200, "Ca\u00F1\u00F3n de Plasma");
_root.addTower(3, 150, "Lento", "Grande", 650, "Francotirador");
_root.addTower(4, 400, "Lento", "Grande", 1000, "Lanzacohetes");
_root.towerUpgradeArray = [[[1, 40, "R\u00E1pido", "Peque\u00F1o", 50, "Ametralladora"], [1, 80, "R\u00E1pido", "Peque\u00F1o", 110, "Ametralladora 2"], [1, 160, "R\u00E1pido", "Grande", 190, "Ametralladora 3"]], [[2, 60, "Medio", "Medio", 200, "Ca\u00F1\u00F3n de Plasma"], [2, 120, "Medio", "Medio", 500, "Ca\u00F1\u00F3n de Plasma 2"], [2, 240, "Medio", "Grande", 750, "Ca\u00F1\u00F3n de Plasma 3"]], [[3, 150, "Lento", "Grande", 650, "Francotirador"], [3, 300, "Lento", "Grande", 2400, "Francotirador 2"], [3, 700, "Medio", "Grande", 4100, "Francotirador 3"]], [[4, 400, "Lento", "Grande", 2000, "Lanzacohetes"], [4, 800, "Medio", "Grande", 4000, "Lanzacohetes 2"], [4, 500, "Medio", "Grande", 5000, "Lanzacohetes 3"]]];
trace(_root.towers);
var towerPlacement = new Object();
towerPlacement.onMouseDown = function () {
if (_root.setBox._currentframe == 1) {
_root.canSetObject = false;
_root.setObject(_root.objectBeingSet);
}
if (_root.setBox._currentframe == 3) {
_root.previousSelectedName = "Nada Seleccionados";
_root.previousSelectedStats = "";
_root.previousSelectedCost = "";
}
};
} else {
_root.previousSelectedName = "Nothing Selected";
_root.previousSelectedStats = "";
_root.previousSelectedCost = "";
_root.selectedName = "Nothing Selected";
_root.selectedStats = "";
_root.selectedCost = "";
_root.towers = Array();
_root.addTower(1, 40, "fast", "small", 50, "Machine Gun");
_root.addTower(2, 60, "medium", "medium", 200, "Plasma Cannon");
_root.addTower(3, 150, "slow", "large", 650, "Sniper Cannon");
_root.addTower(4, 400, "slow", "large", 1000, "Rocket Launcher");
_root.towerUpgradeArray = [[[1, 40, "fast", "small", 50, "Machine Gun"], [1, 80, "fast", "small", 110, "Machine Gun 2"], [1, 160, "fast", "large", 190, "Machine Gun 3"]], [[2, 60, "medium", "medium", 200, "Plasma Cannon"], [2, 120, "medium", "medium", 500, "Plasma Cannon 2"], [2, 240, "medium", "large", 750, "Plasma Cannon 3"]], [[3, 150, "slow", "large", 650, "Sniper Cannon"], [3, 300, "slow", "large", 2400, "Sniper Cannon 2"], [3, 700, "medium", "large", 4100, "Sniper Cannon 3"]], [[4, 400, "slow", "large", 2000, "Rocket Launcher"], [4, 800, "medium", "large", 4000, "Rocket Launcher 2"], [4, 500, "medium", "large", 5000, "Rocket Launcher 3"]]];
trace(_root.towers);
var towerPlacement = new Object();
towerPlacement.onMouseDown = function () {
if (_root.setBox._currentframe == 1) {
_root.setObject(_root.objectBeingSet);
_root.canSetObject = false;
}
if (_root.setBox._currentframe == 3) {
_root.previousSelectedName = "Nothing Selected";
_root.previousSelectedStats = "";
_root.previousSelectedCost = "";
}
};
}
Mouse.addListener(towerPlacement);
Instance of Symbol 797 MovieClip "boae" in Frame 30
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 9309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 805 MovieClip "enemy0" in Frame 30
onClipEvent (load) {
speed = 1;
health = 1000;
switch (enemyType) {
case 1 :
health = 6000;
this.gotoAndStop(1);
break;
case 2 :
health = 10000;
this.gotoAndStop(1);
break;
case 3 :
health = 17000;
this.gotoAndStop(1);
break;
case 4 :
health = 20000;
this.gotoAndStop(1);
speed = speed * 2;
break;
case 5 :
health = 30000;
this.gotoAndStop(2);
break;
case 6 :
health = 40000;
this.gotoAndStop(2);
break;
case 7 :
health = 60000;
this.gotoAndStop(2);
break;
case 8 :
health = 70000 /* 0x011170 */;
this.gotoAndStop(2);
speed = speed * 2;
break;
case 9 :
health = 400000 /* 0x061A80 */;
this.gotoAndStop(3);
break;
case 10 :
health = 650000 /* 0x09EB10 */;
this.gotoAndStop(3);
break;
case 11 :
health = 800000 /* 0x0C3500 */;
this.gotoAndStop(4);
break;
case 12 :
health = 1000000 /* 0x0F4240 */;
this.gotoAndStop(5);
break;
}
ohealth = health;
inLevel = 0;
duplicatedn = 0;
originalNumber = 0;
this._x = (415 + this._width) + Math.round(Math.random() * (35 - this._width));
while (this._x > (463 - (this._width / 2))) {
this._x = this._x - 10;
}
startx = this._x;
starty = this._y;
changex = 0;
changey = speed;
checkPath = "y";
checkPath2 = checkPath;
currentPath = 0;
var paths = new Array(177, 57, 320, 650);
lengthofPathArray = paths.length;
if (paths != undefined) {
i = 0;
while (i < lengthofPathArray) {
if (checkPath2 == "y") {
checkPath2 = "x";
paths[i] = paths[i] - (438 - this._x);
} else if (checkPath2 == "x") {
checkPath2 = "y";
paths[i] = paths[i] - (438 - this._x);
}
if (i > 100) {
break;
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (_root.lives <= 0) {
_root.gotoAndStop("War TD Win");
}
if (!_root.gamePaused) {
if (_root.levelisStarted) {
if (this._name == "enemy0") {
level = _root.TD_Levels[_root.currentLevel - 1];
inLevelTotal = level.length;
var currentTime = Math.round(getTimer() - startTime);
var delayDuplicate = 2000;
if (currentTime >= delayDuplicate) {
if (duplicatedn < inLevelTotal) {
var startTime = getTimer();
_root.numberofEnemies++;
inLevel++;
duplicatedn++;
this.duplicateMovieClip("enemy" + _root.numberofEnemies, (this.getNextHighestDepth() + 50) + (_root.numberofEnemies * 2));
duplicateMovieClip (_root.healthbar0, "healthbar" + _root.numberofEnemies, ((this.getNextHighestDepth() + 50) + (_root.numberofEnemies * 2)) - 1);
_root["enemy" + _root.numberofEnemies].enemyType = level[duplicatedn - 1];
_root["healthbar" + _root.numberofEnemies].follow = "enemy" + _root.numberofEnemies;
}
}
} else {
if (this.health <= 0) {
_root.enemy0.inLevel--;
switch (enemyType) {
case 1 :
_root.score = _root.score + 3;
_root.money = _root.money + 5;
break;
case 2 :
_root.score = _root.score + 3;
_root.money = _root.money + 7;
break;
case 3 :
_root.score = _root.score + 3;
_root.money = _root.money + 10;
break;
case 4 :
_root.score = _root.score + 3;
_root.money = _root.money + 15;
break;
case 5 :
_root.score = _root.score + 4;
_root.money = _root.money + 20;
break;
case 6 :
_root.score = _root.score + 4;
_root.money = _root.money + 30;
break;
case 7 :
_root.score = _root.score + 5;
_root.money = _root.money + 35;
break;
case 8 :
_root.score = _root.score + 5;
_root.money = _root.money + 40;
break;
case 9 :
_root.score = _root.score + 6;
_root.money = _root.money + 45;
break;
case 10 :
_root.score = _root.score + 6;
_root.money = _root.money + 80;
break;
case 11 :
_root.score = _root.score + 6;
_root.money = _root.money + 100;
break;
case 12 :
_root.score = _root.score + 15;
_root.money = _root.money + 100;
break;
}
if ((_root.enemy0.inLevel <= 0) && (_root.enemy0.duplicatedn == _root.enemy0.inLevelTotal)) {
_root.levelisStarted = false;
originalNumber = _root.numberofEnemies;
_root.currentLevel++;
if ((((_root.currentLevel == 10) || (_root.currentLevel == 20)) || (_root.currentLevel == 25)) || (_root.currentLevel == 40)) {
_root.interest = _root.interest + 10;
}
_root.money = _root.money + Math.round(_root.money * (_root.interest * 0.01));
if (_root.currentLevel == 41) {
_root.gotoAndStop("War TD Win");
}
}
this.removeMovieClip(this);
}
if (newRotation == "counter") {
if (!rotated) {
newrotation = this._rotation - 90;
this._rotation = this._rotation - 5;
rotated = true;
}
if (this._rotation > newrotation) {
this._rotation = this._rotation - 5;
}
}
if (newRotation == "clock") {
if (!rotated) {
rotated = true;
newrotation = this._rotation + 90;
this._rotation = this._rotation + 5;
}
if (this._rotation < newrotation) {
this._rotation = this._rotation + 5;
}
}
if (newRotation == "counter") {
if (!rotated) {
newrotation = this._rotation - 90;
}
}
i = 0;
while (i < lengthofPathArray) {
if (i == currentPath) {
if (!i) {
if (this._y > paths[i]) {
currentPath = currentPath + 1;
changex = speed * (-1 + (((paths[i + 1] - paths[i]) > 0) * 2));
changey = 0;
checkPath = "x";
newRotation = "clock";
rotated = false;
}
} else if (i == (lengthofPathArray - 1)) {
if (checkPath == "x") {
if ((-1 + (((paths[i] - paths[i - 1]) > 0) * 2)) > 0) {
if (this._x > paths[i]) {
this._y = -10;
this._x = (415 + this._width) + Math.round(Math.random() * (35 - this._width));
while (this._x > (463 - (this._width / 2))) {
this._x = this._x - 10;
}
startx = this._x;
starty = this._y;
changex = 0;
changey = speed;
checkPath = "y";
checkPath2 = checkPath;
currentPath = 0;
rotated = false;
newRotation = "clock";
_root.lives--;
_root.score = _root.score - 20;
}
} else if (this._x < paths[i]) {
rotated = false;
this._y = -10;
this._x = (415 + this._width) + Math.round(Math.random() * (35 - this._width));
while (this._x > (463 - (this._width / 2))) {
this._x = this._x - 10;
}
startx = this._x;
starty = this._y;
changex = 0;
changey = speed;
checkPath = "y";
checkPath2 = checkPath;
currentPath = 0;
newRotation = "clock";
_root.lives--;
_root.score = _root.score - 20;
}
} else if ((-1 + (((paths[i] - paths[i - 1]) > 0) * 2)) > 0) {
if (this._y > paths[i]) {
rotated = false;
this._y = -10;
this._x = (415 + this._width) + Math.round(Math.random() * (35 - this._width));
while (this._x > (463 - (this._width / 2))) {
this._x = this._x - 10;
}
startx = this._x;
starty = this._y;
changex = 0;
changey = speed;
checkPath = "y";
checkPath2 = checkPath;
currentPath = 0;
newRotation = "clock";
_root.lives--;
_root.score = _root.score - 20;
}
} else if (this._y < paths[i]) {
rotated = false;
this._y = -10;
this._x = (415 + this._width) + Math.round(Math.random() * (35 - this._width));
while (this._x > (463 - (this._width / 2))) {
this._x = this._x - 10;
}
startx = this._x;
starty = this._y;
changex = 0;
changey = speed;
checkPath = "y";
checkPath2 = checkPath;
currentPath = 0;
newRotation = "clock";
_root.lives--;
_root.score = _root.score - 20;
}
} else if (checkPath == "x") {
if ((-1 + (((paths[i] - paths[i - 1]) > 0) * 2)) > 0) {
if (this._x > paths[i]) {
currentPath = currentPath + 1;
changex = 0;
changey = speed * (-1 + (((paths[i + 1] - paths[i]) > 0) * 2));
checkPath = "y";
rotated = false;
if (changey > 0) {
newRotation = "counter";
} else {
newRotation = "clock";
}
}
} else if (this._x < paths[i]) {
currentPath = currentPath + 1;
changex = 0;
changey = speed * (-1 + (((paths[i + 1] - paths[i]) > 0) * 2));
checkPath = "y";
rotated = false;
if (changey > 0) {
newRotation = "counter";
} else {
newRotation = "clock";
}
}
} else if ((-1 + (((paths[i] - paths[i - 1]) > 0) * 2)) > 0) {
if (this._y > paths[i]) {
currentPath = currentPath + 1;
changex = speed * (-1 + (((paths[i + 1] - paths[i]) > 0) * 2));
changey = 0;
checkPath = "x";
rotated = false;
if (changex > 0) {
newRotation = "counter";
} else {
newRotation = "clock";
}
}
} else if (this._y < paths[i]) {
currentPath = currentPath + 1;
changex = speed * (-1 + (((paths[i + 1] - paths[i]) > 0) * 2));
changey = 0;
checkPath = "x";
rotated = false;
if (changex > 0) {
newRotation = "counter";
} else {
newRotation = "clock";
}
}
}
i++;
}
this._x = this._x + changex;
this._y = this._y + changey;
}
} else {
originalNumber = _root.numberofEnemies;
duplicatedn = 0;
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 810 MovieClip "healthbar0" in Frame 30
onClipEvent (load) {
above = (_root[follow]._height + _root[follow]._width) / 4;
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root.healthbarvisible) {
this._alpha = 100;
} else {
this._alpha = 0;
}
if (_name != "healthbar0") {
this._x = _root[follow]._x;
this._y = (_root[follow]._y - above) - 10;
this.bar._width = (32.3 * _root[follow].health) / _root[follow].ohealth;
if (_root[follow]._y == undefined) {
this.removeMovieClip(this);
}
}
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 819 MovieClip "setBox" in Frame 30
onClipEvent (load) {
var x = this._x;
var y = this._y;
var leftSide = (this._x - 6);
var rightSide = (this._x + 6);
var top = (this._y - 6);
var bottom = (this._y + 6);
var overMouse = false;
}
onClipEvent (enterFrame) {
if (_root.canSetObject) {
while (!overMouse) {
if (_root._xmouse < leftSide) {
x = x - 12;
leftSide = leftSide - 12;
rightSide = rightSide - 12;
}
if (_root._xmouse > rightSide) {
x = x + 12;
rightSide = rightSide + 12;
leftSide = leftSide + 12;
}
if (_root._ymouse < top) {
y = y - 12;
top = top - 12;
bottom = bottom - 12;
}
if (_root._ymouse > bottom) {
y = y + 12;
bottom = bottom + 12;
top = top + 12;
}
if ((((_root._xmouse > leftSide) && (_root._xmouse < rightSide)) && (_root._ymouse > top)) && (_root._ymouse < bottom)) {
var overMouse = true;
}
}
if (_root.Language == "Spanish") {
switch (_root.towerUpgradeArray[_root.towers[_root.objectBeingSet][0] - 1][0][3]) {
case "Peque\u00F1o" :
break;
case "Medio" :
this.range._width = 330;
break;
case "Grande" :
this.range._width = 440;
break;
}
} else {
switch (_root.towerUpgradeArray[_root.towers[_root.objectBeingSet][0] - 1][0][3]) {
case "small" :
break;
case "medium" :
this.range._width = 330;
break;
case "large" :
this.range._width = 440;
break;
}
}
this.range._height = this.range._width;
this._x = x;
this._y = y;
var overMouse = false;
if (_root.bg.other.hitTest(this._x, this._y, true)) {
this.gotoAndStop(3);
setBackTo = false;
} else if (_root.bg.path.hitTest(this._x, this._y, true)) {
this.gotoAndStop(2);
setBackTo = false;
} else if (!setBackTo) {
setBackTo = true;
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(3);
}
}
Instance of Symbol 855 MovieClip in Frame 30
onClipEvent (enterFrame) {
if (_root.Language == "Spanish") {
this.stat_box.text = (((((((((("Suministros: " + _root.money) + newline) + "Investigaci\u00F3n: ") + _root.interest) + "%") + newline) + "Soldados: ") + _root.lives) + newline) + "Puntuaci\u00F3n: ") + _root.score;
} else {
this.stat_box.text = (((((((((("Supplies: " + _root.money) + newline) + "Research: ") + _root.interest) + "%") + newline) + "Soldiers: ") + _root.lives) + newline) + "Score: ") + _root.score;
}
}
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 30
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 445 MovieClip "tower" in Frame 30
onClipEvent (load) {
var startTime = getTimer();
var delayDuplicate = 1000;
framenumber = _root._currentframe;
stop();
if (_name == "tower") {
towerNumber = 0;
}
}
onClipEvent (enterFrame) {
if (_root.canSetObject) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.setBox.gotoAndStop(2);
setBackTo = false;
} else if (!setBackTo) {
_root.setBox.setBackTo = false;
setBackTo = true;
}
}
if (_root._currentframe != framenumber) {
this.removeMovieClip(this);
}
if (this._name != "tower") {
if (!_root.levelisStarted) {
target = false;
}
if (!target) {
this.turret._rotation = this.turret._rotation + 1;
var startTime = getTimer();
if (_root.enemy0.inLevel > 0) {
i = 1;
while (i <= _root.enemy0.inLevelTotal) {
if (_root["enemy" + (i + _root.enemy0.originalNumber)].speed == undefined) {
} else {
distance = Math.round(Math.sqrt(((_root["enemy" + (i + _root.enemy0.originalNumber)]._y - this._y) * (_root["enemy" + (i + _root.enemy0.originalNumber)]._y - this._y)) + ((_root["enemy" + (i + _root.enemy0.originalNumber)]._x - this._x) * (_root["enemy" + (i + _root.enemy0.originalNumber)]._x - this._x))));
if (_root.Language == "Spanish") {
switch (stats[3]) {
case "Peque\u00F1o" :
if (distance <= 110) {
target = true;
targeted = "enemy" + (i + _root.enemy0.originalNumber);
}
break;
case "Medio" :
if (distance <= 165) {
target = true;
targeted = "enemy" + (i + _root.enemy0.originalNumber);
}
break;
case "Grande" :
if (distance <= 220) {
target = true;
targeted = "enemy" + (i + _root.enemy0.originalNumber);
}
break;
}
} else {
switch (stats[3]) {
case "small" :
if (distance <= 110) {
target = true;
targeted = "enemy" + (i + _root.enemy0.originalNumber);
}
break;
case "medium" :
if (distance <= 165) {
target = true;
targeted = "enemy" + (i + _root.enemy0.originalNumber);
}
break;
case "large" :
if (distance <= 220) {
target = true;
targeted = "enemy" + (i + _root.enemy0.originalNumber);
}
break;
}
}
if (target == true) {
break;
}
}
i++;
}
}
} else {
distance = Math.round(Math.sqrt(((_root[targeted]._y - this._y) * (_root[targeted]._y - this._y)) + ((_root[targeted]._x - this._x) * (_root[targeted]._x - this._x))));
if (_root.Language == "Spanish") {
if ((((stats[3] == "Peque\u00F1o") && (distance <= 110)) || ((stats[3] == "Medio") && (distance <= 165))) || ((stats[3] == "Grande") && (distance <= 220))) {
var angle_in_radians = Math.atan2(_root[targeted]._y - this._y, _root[targeted]._x - this._x);
var angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this.turret._rotation = angle_in_degrees + 180;
var currentTime = Math.round(getTimer() - startTime);
switch (stats[2]) {
case "Lento" :
var delayDuplicate = 2000;
break;
case "Medio" :
if (distance <= 330) {
var delayDuplicate = 500;
}
break;
case "R\u00E1pido" :
var delayDuplicate = 0;
break;
}
if (currentTime >= delayDuplicate) {
var startTime = getTimer();
this.turret.play();
_root[targeted].health = _root[targeted].health - stats[4];
}
if (_root[targeted].health == undefined) {
target = false;
}
} else {
target = false;
}
} else if ((((stats[3] == "small") && (distance <= 110)) || ((stats[3] == "medium") && (distance <= 165))) || ((stats[3] == "large") && (distance <= 220))) {
var angle_in_radians = Math.atan2(_root[targeted]._y - this._y, _root[targeted]._x - this._x);
var angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this.turret._rotation = angle_in_degrees + 180;
var currentTime = Math.round(getTimer() - startTime);
switch (stats[2]) {
case "slow" :
var delayDuplicate = 2000;
break;
case "medium" :
if (distance <= 330) {
var delayDuplicate = 500;
}
break;
case "fast" :
var delayDuplicate = 0;
break;
}
if (currentTime >= delayDuplicate) {
var startTime = getTimer();
this.turret.play();
_root[targeted].health = _root[targeted].health - stats[4];
}
if (_root[targeted].health == undefined) {
target = false;
}
} else {
target = false;
}
}
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 30
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10311);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(72) && (!healthtoggled)) {
if (!_root.healthbarvisible) {
_root.healthbarvisible = true;
} else {
_root.healthbarvisible = false;
}
healthtoggled = true;
} else if (!Key.isDown(72)) {
healthtoggled = false;
}
if (Key.isDown(83)) {
_root.levelisStarted = true;
}
if (Key.isDown(85)) {
_root.upgrade();
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 30
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10330);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 858 MovieClip in Frame 30
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 30350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 31
_root.score2 = _root.score;
_root.lives2 = _root.lives;
Mouse.show();
saveScore("War TD", _root.score);
Frame 33
gotoAndStop ("War TD");
Frame 34
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (getTimer() - cTime) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
_root.sbonus = _root.obonus + _root.bonus;
_root.score = ((2000 + (500 * (_root.difficulty == "Hard"))) - (seconds * 5)) + _root.sbonus;
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Maze restart");
}
_root.bonus = 0;
_root.obonus = 0;
_root.sbonus = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
_root.missed = 0;
Instance of Symbol 917 MovieClip "levels" in Frame 34
onClipEvent (load) {
delay = getTimer() + 1E83;
}
onClipEvent (enterFrame) {
if ((delay - getTimer()) <= 0) {
if ((delay - getTimer()) <= -100) {
delay = getTimer() + 1E83;
prevFrame();
}
if (onSwitch) {
delay = getTimer() + 1E83;
}
}
if (Key.isDown(67) && (!cisDown)) {
this.nextFrame();
cisDown = true;
} else if (!Key.isDown(67)) {
cisDown = false;
}
}
Instance of Symbol 941 MovieClip in Frame 34
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
sbonus = _root.sbonus;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 34
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 943 MovieClip in Frame 34
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 34
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 34
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 944 MovieClip "timers" in Frame 34
onClipEvent (load) {
mainTimer = "timer1";
timePaused = getTimer();
_root.totalPausedTime = 0;
pausedTime = 0;
_root.timer = "2:00";
_root.startTimer("timer1", 120000);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!added) {
_root.totalPausedTime = _root.totalPausedTime + pausedTime;
pausedTime = 0;
}
timePaused = getTimer();
_root.timer = _root.displayTime(mainTimer, "minutes");
} else {
added = false;
pausedTime = getTimer() - timePaused;
}
}
Frame 35
_root.sbonus2 = _root.sbonus;
_root.score2 = _root.score;
Mouse.show();
saveScore("Maze", _root.score);
Frame 37
gotoAndStop ("Maze");
Frame 38
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (getTimer() - cTime) - _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.gotoAndPlay("Spin restart");
}
_root.score = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.levelSpeed = 4;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
_root.dies = 0;
cursor_mc.onMouseMove = function () {
if ((((_root.cursor_mc._x > 0) && (_root.cursor_mc._x < 650)) && (_root.cursor_mc._y > 0)) && (_root.cursor_mc._y < 500)) {
Mouse.hide();
}
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
Instance of Symbol 470 MovieClip "ball" in Frame 38
onClipEvent (load) {
xSpeed = 0;
accel = 1;
decel = 1;
maxspeed = 15;
gravity = 1;
ySpeed = 0;
height = _height;
}
onClipEvent (enterFrame) {
if ((this._y <= 0) || (_root.score == 1500)) {
_root.gotoAndStop("Spin Win");
}
if (!_root.gamePaused) {
if (Key.isDown(39) || (Key.isDown(68))) {
xSpeed = xSpeed + accel;
} else if (Key.isDown(37) || (Key.isDown(65))) {
xSpeed = xSpeed - accel;
} else if (xSpeed < 0) {
xSpeed = xSpeed + decel;
} else if (xSpeed > 0) {
xSpeed = xSpeed - decel;
}
if (!jumping) {
if ((Key.isDown(38) || (Key.isDown(87))) && (!upPressed)) {
jumping = true;
upPressed = true;
}
}
if ((!Key.isDown(38)) && (!Key.isDown(87))) {
upPressed = false;
}
if (jumping) {
this._y = this._y - 15;
}
if (xSpeed > maxspeed) {
xSpeed = maxspeed;
}
if (xSpeed < (-maxspeed)) {
xSpeed = -maxspeed;
}
ySpeed = ySpeed + gravity;
this._y = this._y + ySpeed;
this._x = this._x + xSpeed;
this._rotation = this._rotation + xSpeed;
this.shine._rotation = -this._rotation;
while (this._x < ((height / 2) + 5)) {
this._x = this._x + 1;
this.xSpeed = 0;
}
while (this._x > ((650 - (height / 2)) - 5)) {
this._x = this._x - 1;
this.xSpeed = 0;
}
}
}
Instance of Symbol 958 MovieClip "platform0" in Frame 38
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._name != "platform0") {
top = this._y - (this._height / 2);
bottom = this._y + (this._height / 2);
left = this._x - (this._width / 2);
right = this._x + (this._width / 2);
if (this.hitTest(_root.ball) && ((_root.ball._y + (_root.ball.height / 2)) < bottom)) {
if (_root.ball._x > right) {
_root.ball.xSpeed = _root.ball.xSpeed + 2;
} else if (_root.ball._x < left) {
_root.ball.xSpeed = _root.ball.xSpeed - 2;
}
if (((_root.ball._x - (_root.ball.height / 2)) + 5) > right) {
_root.ball.xSpeed = _root.ball.xSpeed + 20;
} else if (((_root.ball._x + (_root.ball.height / 2)) - 5) < left) {
_root.ball.xSpeed = _root.ball.xSpeed - 20;
} else {
_root.ball.ySpeed = 0;
_root.ball.jumping = false;
while ((_root.ball._y + (_root.ball.height / 2)) > top) {
_root.ball._y = _root.ball._y - 1;
}
}
} else if (this.hitTest(_root.ball)) {
while ((((_root.ball._y - (_root.ball.height / 2)) - 2) + _root.levelSpeed) < top) {
_root.ball._y = _root.ball._y + 2;
_root.ball.jumping = false;
trace(1);
}
}
this._y = this._y - _root.levelSpeed;
if (this._y < -100) {
this.removeMovieClip(this);
}
} else {
_root.levelSpeed = (4 + (numberofPlatforms / 200)) + (0.5 * (_root.difficutly == "Hard"));
_root.score = numberofPlatforms * (2 + (2 * (_root.difficutly == "Hard")));
frequency = 170 - (numberofPlatforms / 5);
if (frequency < 120) {
frequency = 120;
}
var currentTime = Math.round(getTimer() - startTime);
var delayDuplicate = (1000 - (200 * (_root.difficulty == "Hard")));
if (currentTime >= delayDuplicate) {
startTime = getTimer();
j = 0;
while (j < 2) {
numberofPlatforms++;
this.duplicateMovieClip("platform" + numberofPlatforms, (this.getNextHighestDepth() + 100) + numberofPlatforms);
if (j == 0) {
_root["platform" + numberofPlatforms]._y = _root["platform" + (numberofPlatforms - 1)]._y + frequency;
_root["platform" + numberofPlatforms]._width = Math.round(Math.random() * (560 - emptySpace));
while ((_root["platform" + numberofPlatforms]._x - (_root["platform" + numberofPlatforms]._width / 2)) > 0) {
_root["platform" + numberofPlatforms]._x = _root["platform" + numberofPlatforms]._x - 1;
}
_root["platform" + numberofPlatforms]._x = _root["platform" + numberofPlatforms]._width / 2;
} else {
_root["platform" + numberofPlatforms]._y = _root["platform" + (numberofPlatforms - 1)]._y;
_root["platform" + numberofPlatforms]._width = (560 - emptySpace) - _root["platform" + (numberofPlatforms - 1)]._width;
while ((_root["platform" + numberofPlatforms]._x + (_root["platform" + numberofPlatforms]._width / 2)) < 650) {
_root["platform" + numberofPlatforms]._x = _root["platform" + numberofPlatforms]._x + 1;
}
}
j++;
}
}
}
}
}
onClipEvent (load) {
startTime = getTimer();
numberofPlatforms = 0;
emptySpace = 25;
frequency = 170;
if (this._name == "platform0") {
i = 0;
while (i < 5) {
j = 0;
while (j < 2) {
numberofPlatforms++;
this.duplicateMovieClip("platform" + numberofPlatforms, (this.getNextHighestDepth() + 100) + numberofPlatforms);
if (j == 0) {
_root["platform" + numberofPlatforms]._y = _root["platform" + (numberofPlatforms - 1)]._y + frequency;
_root["platform" + numberofPlatforms]._width = Math.round(Math.random() * (560 - emptySpace));
while ((_root["platform" + numberofPlatforms]._x - (_root["platform" + numberofPlatforms]._width / 2)) > 0) {
_root["platform" + numberofPlatforms]._x = _root["platform" + numberofPlatforms]._x - 1;
}
_root["platform" + numberofPlatforms]._x = _root["platform" + numberofPlatforms]._width / 2;
} else {
_root["platform" + numberofPlatforms]._y = _root["platform" + (numberofPlatforms - 1)]._y;
_root["platform" + numberofPlatforms]._width = (560 - emptySpace) - _root["platform" + (numberofPlatforms - 1)]._width;
while ((_root["platform" + numberofPlatforms]._x + (_root["platform" + numberofPlatforms]._width / 2)) < 650) {
_root["platform" + numberofPlatforms]._x = _root["platform" + numberofPlatforms]._x + 1;
}
}
j++;
}
i++;
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 979 MovieClip in Frame 38
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
dies2 = _root.dies;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 38
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 38
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 38
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
_root.restart();
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 38
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 944 MovieClip "timers" in Frame 38
onClipEvent (load) {
mainTimer = "timer2";
timePaused = getTimer();
_root.totalPausedTime = 0;
pausedTime = 0;
_root.timer = "0:00";
_root.startTimer("timer2", 60000);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!added) {
_root.totalPausedTime = _root.totalPausedTime + pausedTime;
pausedTime = 0;
}
timePaused = getTimer();
_root.timer = _root.displayTime(mainTimer, "minutes");
} else {
added = false;
pausedTime = getTimer() - timePaused;
}
}
Frame 39
stop();
_root.hit = _root.dies;
_root.hit2 = _root.hit;
_root.score2 = _root.score;
saveScore("Spin", _root.score);
Mouse.show();
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 39
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Frame 41
gotoAndStop ("Spin");
Frame 42
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Pixel Image restart");
}
levels = [[1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2], [1, 2, 2, 2, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 1, 1, 2, 2, 2, 2, 1], [1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1, 1], [1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2], [1, 1, 2, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 1, 2, 1, 2, 2, 1, 2], [2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 2, 1, 1, 1, 2, 2, 1]];
chosenLevel = levels[Math.ceil(Math.random() * levels.length) - 1];
trace((chosenLevel + " length:") + levels.length);
i = 1;
while (i <= 36) {
_root["pixel" + i].gotoAndStop(1);
i++;
}
_root.numberofLocks = 10 - (4 * (_root.difficulty == "Hard"));
_root.clicks = 0;
_root.caught = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
_root.missed = 0;
if (_root.difficulty == "Hard") {
_root.gotoAndStop("Pixel Image Hard");
}
Instance of Symbol 994 MovieClip "image" in Frame 42
onClipEvent (load) {
i = 1;
while (i <= 36) {
this["pixel" + i].gotoAndStop(_root.chosenLevel[i - 1]);
trace(_root.chosenLevel[i]);
i++;
}
}
onClipEvent (enterFrame) {
gameComplete = true;
trace("---------");
j = 1;
while (j <= 36) {
if (_root["pixel" + j]._currentframe != _root.chosenLevel[j - 1]) {
trace((_root["pixel" + j]._currentframe + " ") + _root.chosenLevel[j - 1]);
gameComplete = false;
trace(" pixel" + j);
}
j++;
}
if (gameComplete) {
_root.gotoAndStop("Pixel Image Win");
}
}
Instance of Symbol 1003 MovieClip in Frame 42
onClipEvent (enterFrame) {
if (_root.numberofLocks <= 0) {
this.gotoAndStop(2);
}
}
Instance of Symbol 1027 MovieClip in Frame 42
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
_root.score = ((500 + (500 * (_root.difficulty == "Hard"))) - (_root.clicks * 2)) - (((10 - (4 * (_root.difficulty == "Hard"))) - _root.numberofLocks) * 25);
score2 = _root.score;
clicks = _root.clicks;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 42
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 42
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 42
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 42
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 43
levels = [[2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 2, 2, 1, 1, 1, 2, 2, 2, 2, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1], [1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 2, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 2, 2, 1, 1, 2, 1, 2, 1, 1, 1, 1, 2, 1, 2, 2, 1, 2, 2, 1, 2, 2, 2, 1, 2, 2, 1, 1, 2, 1, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 2, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 2, 1, 2, 1, 1, 1, 1, 1, 2, 1, 2, 2], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 2, 1, 2, 2, 1, 2, 1]];
chosenLevel = levels[Math.ceil(Math.random() * levels.length) - 1];
trace((chosenLevel + " length:") + levels.length);
i = 1;
while (i <= 64) {
_root["pixel" + i].gotoAndStop(Math.round(Math.random() * 2));
i++;
}
Instance of Symbol 1028 MovieClip "image" in Frame 43
onClipEvent (load) {
i = 1;
while (i <= 64) {
this["pixel" + i].gotoAndStop(_root.chosenLevel[i - 1]);
trace(_root.chosenLevel[i]);
i++;
}
}
onClipEvent (enterFrame) {
gameComplete = true;
i = 1;
while (i <= 64) {
if (_root["pixel" + i]._currentframe != _root.chosenLevel[i - 1]) {
gameComplete = false;
}
i++;
}
if (gameComplete) {
_root.gotoAndStop("Pixel Image Win");
}
}
Instance of Symbol 1027 MovieClip in Frame 43
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
_root.score = ((500 + (500 * (_root.difficulty == "Hard"))) - (_root.clicks * 2)) - (((10 - (4 * (_root.difficulty == "Hard"))) - _root.numberofLocks) * 25);
score2 = _root.score;
clicks = _root.clicks;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 44
locksleft = numberofLocks;
_root.locksleft2 = _root.locksleft;
_root.clicks2 = _root.clicks;
_root.score2 = _root.score;
Mouse.show();
saveScore("Pixel Image", _root.score);
Frame 46
gotoAndStop ("Pixel Image");
Frame 47
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Collect restart");
}
_root.caught = 0;
_root.collectLeft = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.numberofCollectibles = 0;
_root.currentLevel = 1;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
_root.missed = 0;
Instance of Symbol 1042 MovieClip "bg" in Frame 47
onClipEvent (load) {
var yStagePosition = this._y;
var xStagePosition = this._x;
}
onClipEvent (enterFrame) {
this._y = (_root.spaceship.yStagePosition / 100) + yStagePosition;
this._x = (_root.spaceship.xStagePosition / 100) + xStagePosition;
}
Instance of Symbol 486 MovieClip "spaceship" in Frame 47
onClipEvent (load) {
var xStagePosition = 0;
var yStagePosition = 0;
var rotationRate = 10;
var speed = 0;
var accel = 1;
var decel = 1;
var maxspeed = 20;
}
onClipEvent (enterFrame) {
var x = Math.sin((this._rotation + 180) * (Math.PI/180));
var y = Math.cos(this._rotation * (Math.PI/180));
if (!_root.gamePaused) {
if (Key.isDown(38) || (Key.isDown(87))) {
speed = speed + 1;
this.play();
if (speed > maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
this.gotoAndStop(1);
speed = speed - decel;
}
if ((x < 0) && (xStagePosition > -975)) {
xStagePosition = xStagePosition + (x * speed);
}
if ((x > 0) && (xStagePosition < 975)) {
xStagePosition = xStagePosition + (x * speed);
}
if ((y < 0) && (yStagePosition > -710)) {
yStagePosition = yStagePosition + (y * speed);
}
if ((y > 0) && (yStagePosition < 650)) {
yStagePosition = yStagePosition + (y * speed);
}
if (Key.isDown(39) || (Key.isDown(68))) {
this._rotation = this._rotation + rotationRate;
}
if (Key.isDown(37) || (Key.isDown(65))) {
this._rotation = this._rotation - rotationRate;
}
}
}
Instance of Symbol 486 MovieClip "enemy" in Frame 47
onClipEvent (load) {
function getDistance(theTarget) {
theDistance = Math.round(Math.sqrt(((_root[theTarget]._y - this._y) * (_root[theTarget]._y - this._y)) + ((_root[theTarget]._x - this._x) * (_root[theTarget]._x - this._x))));
return(theDistance);
}
var xStagePosition = this._x;
var yStagePosition = this._y;
var rotationRate = 5;
var speed = 0;
var accel = 1;
var decel = 0.5;
var maxspeed = (11 + (4 * (_root.difficulty == "Hard")));
var collected = 0;
originalx = _x + _root.spaceship._x;
originalx = _y + _root.spaceship._y;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
var angle_in_radians = Math.atan2(_root[target]._y - this._y, _root[target]._x - this._x);
var angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees + 90;
var x = Math.sin((this._rotation + 180) * (Math.PI/180));
var y = Math.cos(this._rotation * (Math.PI/180));
if ((target != "spaceship") && (getDistance(target) < 30)) {
removeMovieClip(_root[target]);
_root.collectLeft--;
haveTarget = false;
}
if (haveTarget) {
speed = speed + 1;
this.play();
if (speed > maxspeed) {
speed = maxspeed;
}
} else if (speed > 0) {
this.gotoAndStop(1);
speed = speed - decel;
}
if ((target == "spaceship") && (getDistance("spaceship") < 300)) {
this.speed = 0;
this.gotoAndStop(1);
}
xStagePosition = xStagePosition - (x * speed);
yStagePosition = yStagePosition - (y * speed);
this._y = _root.spaceship.yStagePosition + yStagePosition;
this._x = _root.spaceship.xStagePosition + xStagePosition;
if (getDistance("spaceship") < 80) {
this.xStagePosition = this.xStagePosition + (10 * x);
this.yStagePosition = this.yStagePosition + (10 * y);
}
checkDistance = 10000;
i = 1;
while (i <= _root.numberofCollectibles) {
haveTarget = true;
if (getDistance("collect" + i) < checkDistance) {
checkDistance = getDistance("collect" + i);
target = "collect" + i;
}
i++;
}
if (_root.collectLeft == 0) {
trace("spaceship");
target = "spaceship";
haveTarget = true;
}
if ((target == "spaceship") && (getDistance("spaceship") < 160)) {
this.speed = 0;
this.gotoAndStop(1);
}
}
}
Instance of Symbol 1048 MovieClip "topbar" in Frame 47
onClipEvent (load) {
var yStagePosition = this._y;
originaly = this._y;
}
onClipEvent (enterFrame) {
if (((_root.spaceship.yStagePosition + yStagePosition) > -100) && ((_root.spaceship.yStagePosition + yStagePosition) < 600)) {
this._y = _root.spaceship.yStagePosition + yStagePosition;
}
}
Instance of Symbol 1048 MovieClip "bottombar" in Frame 47
onClipEvent (load) {
var yStagePosition = this._y;
originaly = this._y;
}
onClipEvent (enterFrame) {
if (((_root.spaceship.yStagePosition + yStagePosition) > 0) && ((_root.spaceship.yStagePosition + yStagePosition) < 500)) {
this._y = _root.spaceship.yStagePosition + yStagePosition;
}
}
Instance of Symbol 1048 MovieClip "rightbar" in Frame 47
onClipEvent (load) {
var xStagePosition = this._x;
originalx = this._x;
}
onClipEvent (enterFrame) {
if (((_root.spaceship.xStagePosition + xStagePosition) > -100) && ((_root.spaceship.xStagePosition + xStagePosition) < 750)) {
this._x = _root.spaceship.xStagePosition + xStagePosition;
}
}
Instance of Symbol 1048 MovieClip "leftbar" in Frame 47
onClipEvent (load) {
var xStagePosition = this._x;
originalx = this._x;
}
onClipEvent (enterFrame) {
if (((_root.spaceship.xStagePosition + xStagePosition) > -100) && ((_root.spaceship.xStagePosition + xStagePosition) < 750)) {
this._x = _root.spaceship.xStagePosition + xStagePosition;
}
}
Instance of Symbol 480 MovieClip "collect0" in Frame 47
onClipEvent (load) {
if (this._name != "collect0") {
this._x = Math.round(Math.random() * 1950) - 700;
this._y = Math.round(Math.random() * 1360) - 450;
var yStagePosition = this._y;
var xStagePosition = this._x;
this.gotoAndStop(Math.round(Math.random() * this._totalframes));
}
if (this._name == "collect0") {
i = 0;
while (i < 30) {
if (_root.numberofCollectibles < 30) {
_root.numberofCollectibles++;
_root.collectLeft++;
this.duplicateMovieClip("collect" + _root.numberofCollectibles, (this.getNextHighestDepth() + 20) + _root.numberofCollectibles);
}
i++;
}
}
}
onClipEvent (enterFrame) {
if (this._name != "collect0") {
if (((_root.spaceship.yStagePosition + yStagePosition) > -100) && ((_root.spaceship.yStagePosition + yStagePosition) < 600)) {
this._y = _root.spaceship.yStagePosition + yStagePosition;
}
if (((_root.spaceship.xStagePosition + xStagePosition) > -100) && ((_root.spaceship.xStagePosition + xStagePosition) < 750)) {
this._x = _root.spaceship.xStagePosition + xStagePosition;
}
if (this.hitTest(_root.spaceship)) {
_root.score = _root.score + (5 * this._currentframe);
_root.collectLeft--;
this.removeMovieClip(this);
}
} else if (_root.collectLeft == 0) {
_root.currentLevel++;
if (_root.currentLevel == 6) {
_root.gotoAndStop("Collect Win");
}
_root.spaceship.xStagePosition = 0;
_root.spaceship.yStagePosition = 0;
_root.topbar._y = _root.topbar.originaly;
_root.bottombar._y = _root.bottombar.originaly;
_root.rightbar._x = _root.rightbar.originalx;
_root.leftbar._x = _root.leftbar.originalx;
i = 0;
while (i < 30) {
if (_root.numberofCollectibles < (_root.currentLevel * 30)) {
_root.numberofCollectibles++;
_root.collectLeft++;
this.duplicateMovieClip("collect" + _root.numberofCollectibles, (this.getNextHighestDepth() + 20) + _root.numberofCollectibles);
}
i++;
}
_root.nextLevelMC.play();
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1071 MovieClip in Frame 47
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
missed = _root.missed;
level = _root.currentLevel;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 47
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1073 MovieClip in Frame 47
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 47
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 47
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 48
_root.caught2 = _root.caught;
_root.score2 = _root.score;
Mouse.show();
saveScore("Collect", _root.score);
Frame 50
gotoAndStop ("Collect");
Frame 51
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Missile Mayhem restart");
}
_root.level = 1;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.passed = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
var gamePaused = false;
_root.missilesPassed = 0;
_root.score = 0;
_root.hit = 0;
var PLAYERMAXSPEED = 15;
var PLAYERACCEL = 2;
var PLAYDECEL = 2;
var levelOver = false;
var rLives = 5;
Instance of Symbol 493 MovieClip "rocket" in Frame 51
onClipEvent (load) {
HALFWIDTH = 30;
HALFHEIGHT = 18;
maxSpeed = _root.PLAYERMAXSPEED;
accel = _root.PLAYERACCEL;
decel = _root.PLAYDECEL;
xSpeed = 0;
ySpeed = 0;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (((this._currentframe == 1) && (hit)) || ((this._currentframe == 1) && (cantbeHit))) {
cantbeHit = false;
}
if (!cantbeHit) {
if (hit) {
_root.hit++;
hit = false;
cantbeHit = true;
this.play();
_root.lives--;
}
}
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
while (this._x < (25 + HALFWIDTH)) {
xSpeed = 0;
this._x++;
}
while (this._x > (625 - HALFWIDTH)) {
xSpeed = 0;
this._x--;
}
while (this._y < (35 + HALFHEIGHT)) {
ySpeed = 0;
this._y++;
}
while (this._y > (400 - HALFHEIGHT)) {
ySpeed = 0;
this._y--;
}
if ((Key.isDown(39) || (Key.isDown(68))) && (xSpeed < maxSpeed)) {
xSpeed = xSpeed + accel;
} else if ((Key.isDown(37) || (Key.isDown(65))) && (xSpeed > (-maxSpeed))) {
xSpeed = xSpeed - accel;
} else if ((xSpeed - decel) >= 0) {
xSpeed = xSpeed - decel;
} else if ((xSpeed + decel) <= 0) {
xSpeed = xSpeed + decel;
} else {
xSpeed = 0;
}
this.fire._width = 48 + (xSpeed * 2);
if ((Key.isDown(38) || (Key.isDown(87))) && (ySpeed < maxSpeed)) {
ySpeed = ySpeed - accel;
} else if ((Key.isDown(40) || (Key.isDown(83))) && (ySpeed > (-maxSpeed))) {
ySpeed = ySpeed + accel;
} else if ((ySpeed - decel) >= 0) {
ySpeed = ySpeed - decel;
} else if ((ySpeed + decel) <= 0) {
ySpeed = ySpeed + decel;
} else {
ySpeed = 0;
}
}
}
Instance of Symbol 1086 MovieClip "ePlane" in Frame 51
onClipEvent (load) {
var idead = false;
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!idead)) {
if (((!idead) && (_currentframe == 60)) && (this.hitTest(_root.rocket))) {
_root.lvlUp._visible = true;
_root.lvlUp.gotoAndPlay(2);
_root.rocket.hit = true;
if (_root.spawn.MISSLE_SPAWN >= 18) {
_root.spawn.MISSLE_SPAWN = _root.spawn.MISSLE_SPAWN - 3;
}
if (_root.spawn.LASER_SPAWN >= 35) {
_root.spawn.LASER_SPAWN = _root.spawn.LASER_SPAWN - 5;
}
_root.prog.levelTime = _root.prog.levelTime + 450;
_root.prog.levelTimer = _root.prog.levelTime;
_root.score = _root.score + 100;
_root.level = _root.level + 1;
_root.spawn.MISSLE_SPAWN = _root.spawn.MISSLE_SPAWN - 2.5;
_root.spawn.LASER_SPAWN = _root.spawn.LASER_SPAWN - 5;
play();
idead = true;
}
}
}
Instance of Symbol 1094 MovieClip "prog" in Frame 51
onClipEvent (load) {
stop();
var levelTime = 450;
var levelTimer = levelTime;
var called = false;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if ((levelTimer == 0) && (!called)) {
_root.levelOver = true;
_root.ePlane.play();
called = true;
} else if (levelTimer > 0) {
levelTimer--;
this.gotoAndStop(int((levelTimer / levelTime) * 100));
}
}
}
Instance of Symbol 499 MovieClip "missle" in Frame 51
onClipEvent (load) {
if (_name != "missle") {
_x = -100;
_y = (random(350) + 50);
var maxSpeed = (20 + (5 * (_root.difficulty == "Hard")));
var minSpeed = (10 + (5 * (_root.difficulty == "Hard")));
var speed = (Math.round(Math.random() * (maxSpeed - minSpeed)) + minSpeed);
_rotation = int(((Math.atan2(_root.rocket._y - _y, _root.rocket._x - _x) * 180) / Math.PI) + 90);
}
}
onClipEvent (enterFrame) {
if (_rotation > 180) {
_x = (_x - (speed * Math.sin((Math.PI/180) * _rotation)));
_y = (_y + (speed * Math.cos((Math.PI/180) * _rotation)));
} else {
_x = (_x + (speed * Math.sin((Math.PI/180) * _rotation)));
_y = (_y - (speed * Math.cos((Math.PI/180) * _rotation)));
}
if (!_root.rocket.cantbeHit) {
if (_root.rocket.hitB.hitTest(this)) {
_root.rLives--;
_root.rocket.hit = true;
this.removeMovieClip(this);
}
}
if (_x > 700) {
_root.score = _root.score + 5;
this.removeMovieClip(this);
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
Instance of Symbol 1096 MovieClip "spawn" in Frame 51
onClipEvent (load) {
var missleCount = 0;
var laserCount = 0;
var MISSLE_SPAWN = 90;
var LASER_SPAWN = 180;
var FLUX = 30;
if (_root.difficulty == "Hard") {
var FLUX = 40;
var MISSLE_SPAWN = 45;
var LASER_SPAWN = 90;
}
var mTimer = (MISSLE_SPAWN + Math.floor(random(FLUX) - (FLUX / 2)));
var lTimer = (LASER_SPAWN + Math.floor(random(FLUX) - (FLUX / 2)));
}
onClipEvent (enterFrame) {
if ((!_root.gamePaused) && (!_root.levelOver)) {
if (mTimer <= 0) {
duplicateMovieClip (_root.missle, "missle" + missleCount, _root.missle.getNextHighestDepth() + missleCount);
missleCount++;
mTimer = (mAlarm = MISSLE_SPAWN + Math.floor(random(FLUX) - (FLUX / 2)));
} else {
mTimer--;
}
if (lTimer <= 0) {
duplicateMovieClip (_root.lazer, "laser" + laserCount, _root.lazer.getNextHighestDepth() + laserCount);
laserCount++;
lTimer = LASER_SPAWN + Math.floor(random(FLUX) - (FLUX / 2));
} else {
lTimer--;
}
}
}
Instance of Symbol 1099 MovieClip "lazer" in Frame 51
onClipEvent (load) {
if (_name != "lazer") {
_x = random(650);
_y = 425;
hitR = false;
_rotation = int(((Math.atan2(_root.rocket._y - _y, _root.rocket._x - _x) * 180) / Math.PI) + 90);
} else {
stop();
}
}
onClipEvent (enterFrame) {
if (_name != "lazer") {
if (((_currentframe > 20) && (_currentframe < 25)) && (this.hit.hitTest(_root.rocket._x, _root.rocket._y, true))) {
if (!_root.rocket.cantbeHit) {
if (_root.rocket.hitB.hitTest(this)) {
_root.rLives--;
_root.rocket.hit = true;
hitR = true;
}
}
}
if (_currentframe == 40) {
if (!hitR) {
_root.score = _root.score + 10;
}
removeMovieClip(this);
}
}
}
Instance of Symbol 944 MovieClip "timers" in Frame 51
onClipEvent (load) {
mainTimer = "timer1";
timePaused = getTimer();
_root.totalPausedTime = 0;
pausedTime = 0;
_root.timer = "2:00";
_root.startTimer("timer1", 120000);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!added) {
_root.totalPausedTime = _root.totalPausedTime + pausedTime;
pausedTime = 0;
}
timePaused = getTimer();
_root.timer = _root.displayTime(mainTimer, "minutes");
} else {
added = false;
pausedTime = getTimer() - timePaused;
}
}
Instance of Symbol 715 MovieClip in Frame 51
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1126 MovieClip "bMenu" in Frame 51
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if (_root.rLives > 0) {
livesGui.gotoAndStop(6 - _root.rLives);
} else {
_root.gotoAndStop("Missile Mayhem Win");
}
score2 = _root.score;
hit2 = _root.hit;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 51
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 11350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 51
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 51
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 52
stop();
_root.hit2 = _root.hit;
_root.score2 = _root.score;
saveScore("Missile Mayhem", _root.score);
Instance of Symbol 33 MovieClip in Frame 52
onClipEvent (enterFrame) {
this.stop();
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 52
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 54
gotoAndStop ("Missile Mayhem");
Frame 59
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Bomb Barrage restart");
}
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
var gamePaused = false;
Instance of Symbol 1141 MovieClip "bomb" in Frame 59
onClipEvent (load) {
if (this._name != "bomb") {
this._x = random(600) + 25;
while (((_root.guy._x - this._x) > 300) || ((_root.guy._x - this._x) < -300)) {
this._x = random(600) + 25;
}
speed = 10;
dead = false;
duplicateMovieClip (_root.Arrow, "Arrow" + this._name, this.getNextHighestDepth() + 100);
_root["Arrow" + this._name]._x = this._x;
trace("x: " + _root["Arrow" + this._name]._x);
} else {
_root.doged = 0;
}
var bombCount = 0;
var timer = (30 + (10 * (_root.difficulty != "Hard")));
var timerReset = (30 + (10 * (_root.difficulty != "Hard")));
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._name != "bomb") {
if (timer > 0) {
timer--;
} else if (timerReset > 10) {
if (!arrowRemoved) {
_root["Arrow" + this._name].removeMovieClip();
arrowRemoved = true;
}
if ((this._y >= 390) && (!dead)) {
this._y = 390;
this.gotoAndPlay(2);
if (this.explosion.hitTest(_root.guy) && (!_root.guy.dead)) {
_root.guy.ySpeed = -20;
_root.guy.jumping = true;
_root.guy.dead = true;
} else if (!_root.guy.dead) {
_root.doged++;
}
this.dead = true;
} else if ((this._y < 450) && (!dead)) {
if (!_root.gamePaused) {
this._y = this._y + speed;
speed = speed + 1;
}
}
}
} else if (!_root.guy.dead) {
trace(timer);
if (timer > 0) {
timer--;
} else if (timerReset > 15) {
bombCount++;
duplicateMovieClip (_root.bomb, "bomb" + bombCount, (this.getNextHighestDepth() + 1000) + bombCount);
timerReset = timerReset - 1;
timer = timerReset;
} else {
bombCount++;
duplicateMovieClip (_root.bomb, "bomb" + bombCount, (this.getNextHighestDepth() + 1000) + bombCount);
timer = timerReset;
}
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1146 MovieClip "guy" in Frame 59
onClipEvent (load) {
gotoAndStop (61);
dead = false;
speed = 10;
xSpeed = 0;
ySpeed = 0;
jumping = true;
jump = false;
canJump = true;
jumpHeight = 10;
WID = this._xscale;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._x <= (this._width / 2)) {
this._x = this._x + speed;
}
if (this._x >= (650 - (this._width / 2))) {
this._x = this._x - speed;
}
this._x = this._x + xSpeed;
if (jumping) {
this._y = this._y + ySpeed;
ySpeed++;
}
if ((this._y > 390) && (jumping)) {
if (dead || (_root.score >= (1000 + (1000 * (_root.difficulty == "Hard"))))) {
_root.gotoAndStop("Bomb Barrage Win");
}
gotoAndStop (59);
jump = true;
ySpeed = 0;
this._y = 390;
jumping = false;
}
if (((Key.isDown(38) && (jump)) && (!dead)) && (canJump)) {
ySpeed = -jumpHeight;
this.gotoAndStop(3);
canJump = false;
jumping = true;
jump = false;
} else if (!Key.isDown(38)) {
canJump = true;
}
if (Key.isDown(39) && (!dead)) {
if (!jumping) {
this.gotoAndStop(2);
}
this._xscale = WID;
xSpeed = speed;
} else if (Key.isDown(37) && (!dead)) {
if (!jumping) {
this.gotoAndStop(2);
}
this._xscale = -WID;
xSpeed = -speed;
} else if (dead) {
this.gotoAndStop(4);
if (xSpeed > 0) {
xSpeed = xSpeed - 0.15;
} else if (xSpeed < 0) {
xSpeed = xSpeed + 0.15;
}
} else if (!jumping) {
xSpeed = 0;
this.gotoAndStop(1);
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1148 MovieClip "Arrow" in Frame 59
onClipEvent (load) {
this._alpha = 100;
}
onClipEvent (enterFrame) {
trace((this._x + " ") + this._y);
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1168 MovieClip in Frame 59
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
_root.score = _root.doged * (10 + (10 * (_root.difficulty == "Hard")));
score2 = _root.score;
doged = _root.doged;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 59
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 59
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 59
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 59
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 60
stop();
_root.doged2 = _root.doged;
_root.score2 = _root.score;
saveScore("Bomb Barrage", _root.score);
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 60
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 62
gotoAndStop ("Bomb Barrage");
Frame 63
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Catch restart");
}
if (theDate == 12) {
_root.gotoAndStop("Catch Christmas");
}
_root.caught = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
_root.missed = 0;
Instance of Symbol 1181 MovieClip "jar" in Frame 63
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this._x = _root._xmouse;
}
}
Instance of Symbol 525 MovieClip "coin0" in Frame 63
onClipEvent (load) {
this._x = (Math.round(Math.random() * ((650 - (10 + this._width)) - (10 + this._width))) + 10) + this._width;
chosenCoin1 = Math.round(Math.random() * 50);
if (_root.difficulty != "Hard") {
if (chosenCoin1 <= 20) {
chosenCoin = 1;
} else if ((chosenCoin1 > 20) && (chosenCoin1 <= 30)) {
chosenCoin = 2;
} else if ((chosenCoin1 > 30) && (chosenCoin1 <= 36)) {
chosenCoin = 3;
} else if ((chosenCoin1 > 36) && (chosenCoin1 <= 40)) {
chosenCoin = 3;
} else {
chosenCoin = 5;
}
} else if (chosenCoin1 <= 10) {
chosenCoin = 1;
} else if ((chosenCoin1 > 10) && (chosenCoin1 <= 20)) {
chosenCoin = 2;
} else if ((chosenCoin1 > 20) && (chosenCoin1 <= 30)) {
chosenCoin = 3;
} else if ((chosenCoin1 > 30) && (chosenCoin1 <= 40)) {
chosenCoin = 3;
} else {
chosenCoin = 5;
}
this.gotoAndStop(chosenCoin);
speed = 15 + (_root.coin0.numberofCoins / 10);
var startTime = getTimer();
numberofCoins = 0;
switch (this._currentframe) {
case 1 :
worth = 1;
break;
case 2 :
worth = 5;
speed = speed + 2;
break;
case 3 :
worth = 10;
speed = speed + 4;
break;
case 4 :
worth = 25;
speed = speed + 7;
break;
case 5 :
worth = -5;
break;
}
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._name != "coin0") {
this._y = this._y + speed;
if (_root.jar.hitTest(this._x, this._y, true)) {
_root.score = _root.score + worth;
_root.caught++;
this.removeMovieClip(this);
} else if (this._y > 500) {
if (chosenCoin != 5) {
_root.missed++;
}
if (_root.missed >= 25) {
_root.gotoAndStop("Catch Win");
}
this.removeMovieClip(this);
}
} else {
var currentTime = Math.round(getTimer() - startTime);
var delayDuplicate = ((1200 - (200 * (_root.difficulty == "Hard"))) - (numberofCoins * 16));
if (((delayDuplicate < 600) && (_root.difficulty != "Hard")) || ((delayDuplicate < 500) && (_root.difficulty == "Hard"))) {
delayDuplicate = 600 - (100 * (_root.difficulty == "Hard"));
}
if (currentTime >= delayDuplicate) {
var startTime = getTimer();
numberofCoins++;
this.duplicateMovieClip("coin" + numberofCoins, (this.getNextHighestDepth() + 10) + numberofCoins);
}
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1201 MovieClip in Frame 63
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
missed = _root.missed;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 63
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 63
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 63
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 63
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 64
_root.caught2 = _root.caught;
_root.score2 = _root.score;
Mouse.show();
saveScore("Catch", _root.score);
Frame 66
gotoAndStop ("Catch");
Frame 67
function restart() {
removeMovieClip("bonus");
_root.gotoAndPlay("Selection V2 restart");
}
_root.score = 0;
gamePaused = true;
stop();
Instance of Symbol 544 MovieClip "red" in Frame 67
onClipEvent (load) {
gridx = 8;
gridy = 8;
startx = _root.blue._x;
starty = _root.blue._y;
speed = 80;
_root.hit = 25;
interval = 10;
interval2 = interval;
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
interval--;
if (!_root.r_hit) {
movement1 = Math.round(Math.random() * 4);
if ((movement1 == 1) && (interval <= 0)) {
interval = interval2;
if (!_root.grid[gridx + 1][gridy]) {
if (!pr1) {
timetoMove = false;
if (gridx < 8) {
gridx = gridx + 1;
_x = (_x + 40);
} else if (!_root.grid[1][gridy]) {
gridx = 1;
_x = (_x - 280);
}
pr1 = 1;
} else {
pr1 = 0;
}
} else {
timetoMove = true;
}
}
if ((movement1 == 2) && (interval <= 0)) {
interval = interval2;
if (!_root.grid[gridx - 1][gridy]) {
if (!pl1) {
timetoMove = false;
if (gridx > 1) {
gridx = gridx - 1;
_x = (_x - 40);
} else if (!_root.grid[8][gridy]) {
gridx = 8;
_x = (_x + 280);
}
pl1 = 1;
} else {
pl1 = 0;
}
} else {
timetoMove = true;
}
}
if ((movement1 == 3) && (interval <= 0)) {
interval = interval2;
if (!_root.grid[gridx][gridy + 1]) {
if (!pd1) {
timetoMove = false;
if (gridy < 8) {
gridy = gridy + 1;
_y = (_y + 40);
} else if (!_root.grid[gridx][1]) {
gridy = 1;
_y = (_y - 280);
}
pd1 = 1;
} else {
pd1 = 0;
}
} else {
timetoMove = true;
}
}
if ((movement1 == 4) && (interval <= 0)) {
interval = interval2;
if (!_root.grid[gridx][gridy - 1]) {
if (!pu1) {
timetoMove = false;
if (gridy > 1) {
gridy = gridy - 1;
_y = (_y - 40);
} else if (!_root.grid[gridx][8]) {
gridy = 8;
_y = (_y + 280);
}
pu1 = 1;
} else {
pu1 = 0;
}
} else {
timetoMove = true;
}
}
} else if (_root.new_x != undefined) {
if (_root.difficulty == "Normal") {
maxscore = 25;
} else {
maxscore = 35;
}
score = Math.round((maxscore - ((getTimer() - new_time) / 1000)) + (maxscore - 25));
if (score <= 0) {
score = 1;
}
_root.score = _root.score + score;
gridx = _root.new_x;
_x = ((startx + (_root.new_x * 40)) - 40);
gridy = _root.new_y;
_y = ((starty + (_root.new_y * 40)) - 40);
if ((((gridx == _root.new_x) && (gridy == _root.new_y)) && (_y == ((starty + (_root.new_y * 40)) - 40))) && (_x == ((startx + (_root.new_x * 40)) - 40))) {
_root.r_hit = 0;
_root.hit = _root.hit - 1;
trace(_root.hit);
if (speed != 26) {
speed = speed - 2;
}
interval2 = interval2 - 0.2;
_root.new_x = undefined;
_root.new_y = undefined;
new_time = getTimer();
}
}
}
}
Instance of Symbol 1218 MovieClip "blue" in Frame 67
onClipEvent (load) {
gridx = 1;
gridy = 1;
timePaused = 0;
s1_pausedTime = getTimer();
s1_StartTime = getTimer();
}
onClipEvent (enterFrame) {
if (_root.difficulty == "Normal") {
timeAllowed = 86000 /* 0x014FF0 */;
} else {
timeAllowed = 61000;
}
if (_root.s321s1._currentframe < _root.s321s1._totalframes) {
_root.timer = (Math.floor(timeAllowed / 60000) + ":") + (Math.floor((timeAllowed - 1) / 1000) - (Math.floor((timeAllowed - 1) / 60000) * 60));
}
_root.timer2 = _root.timer;
_root.hit2 = _root.hit;
_root.score2 = _root.score;
_root.difficulty2 = _root.difficulty;
if ((gridx == _root.Bbonus.gridx) && (gridy == _root.Bbonus.gridy)) {
_root.score = _root.score + _root.Bbonus.bonusPoints;
_root.Bbonus.gridx = undefined;
_root.Bbonus.gridy = undefined;
_root.Bbonus.play();
}
if (!_root.gamePaused) {
if (pausetimeadded == false) {
timePaused = timePaused + timePaused1;
pausetimeadded = true;
}
s1_timePassed = (timeAllowed - (getTimer() - s1_StartTime)) + timePaused;
trace(Math.ceil(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60));
if ((Math.floor(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60)) < 10) {
zero = 0;
} else {
zero = "";
}
_root.timer = ((Math.floor(s1_timePassed / 60000) + ":") + zero) + (Math.floor(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60));
if (_root.hit == 0) {
_root.gotoAndStop("Selection V2 Win");
}
if (Math.floor(s1_timePassed) < 0) {
_root.gotoAndStop("Selection V2 Lose");
}
if (((gridx == _root.red.gridx) && (gridy == _root.red.gridy)) || ((_x == _root.red._x) && (_y == _root.red._y))) {
_root.r_hit = 1;
if (jjjjjjj) {
} else {
jjjjjjj = 1;
this.play();
}
} else {
jjjjjjj = 0;
if ((Key.isDown(39) || (Key.isDown(68))) && (!_root.grid[gridx + 1][gridy])) {
if (!pr1) {
if (gridx < 8) {
gridx = gridx + 1;
_x = (_x + 40);
} else if (!_root.grid[1][gridy]) {
gridx = 1;
_x = (_x - 280);
}
pr1 = 1;
}
} else {
pr1 = 0;
}
if ((Key.isDown(37) || (Key.isDown(65))) && (!_root.grid[gridx - 1][gridy])) {
if (!pl1) {
if (gridx > 1) {
gridx = gridx - 1;
_x = (_x - 40);
} else if (!_root.grid[8][gridy]) {
gridx = 8;
_x = (_x + 280);
}
pl1 = 1;
}
} else {
pl1 = 0;
}
if ((Key.isDown(40) || (Key.isDown(83))) && (!_root.grid[gridx][gridy + 1])) {
if (!pd1) {
if (gridy < 8) {
gridy = gridy + 1;
_y = (_y + 40);
} else if (!_root.grid[gridx][1]) {
gridy = 1;
_y = (_y - 280);
}
pd1 = 1;
}
} else {
pd1 = 0;
}
if ((Key.isDown(38) || (Key.isDown(87))) && (!_root.grid[gridx][gridy - 1])) {
if (!pu1) {
if (gridy > 1) {
gridy = gridy - 1;
_y = (_y - 40);
} else if (!_root.grid[gridx][8]) {
gridy = 8;
_y = (_y + 280);
}
}
pu1 = 1;
} else {
pu1 = 0;
}
}
s1_pausedTime = getTimer();
} else {
timePaused1 = getTimer() - s1_pausedTime;
pausetimeadded = false;
}
}
Instance of Symbol 544 MovieClip "wall" in Frame 67
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
trace(fjdslkj);
this.removeMovieClip(this);
}
}
onClipEvent (load) {
if (_name != "Bbonus") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(3);
}
if (_name == "wall") {
} else if (_name == "Bbonus") {
gridx = Math.round(Math.random() * 7) + 1;
gridy = Math.round(Math.random() * 7) + 1;
while (((((gridx == _root.blue.gridx) && (gridy == _root.blue.gridy)) || ((gridx == _root.red.gridx) && (gridy == _root.red.gridy))) || (((gridx == _root.blue.gridx) && (gridy == (_root.blue.gridy + 1))) || ((gridx == _root.red.gridx) && (gridy == (_root.red.gridy + 1))))) || (_root.grid[gridx][gridy])) {
gridx = Math.round(Math.random() * 7) + 1;
gridy = Math.round(Math.random() * 7) + 1;
}
_x = ((_root.red.startx + (gridx * 40)) - 40);
_y = ((_root.red.starty + (gridy * 40)) - 40);
bonusPoints = Math.round((Math.random() * 20) + 5);
bonuspts = "+" + bonusPoints;
} else {
gridx = Math.round(Math.random() * 7) + 1;
gridy = Math.round(Math.random() * 7) + 1;
while (((((gridx == _root.blue.gridx) && (gridy == _root.blue.gridy)) || ((gridx == _root.red.gridx) && (gridy == _root.red.gridy))) || (((gridx == _root.blue.gridx) && (gridy == (_root.blue.gridy + 1))) || ((gridx == _root.red.gridx) && (gridy == (_root.red.gridy + 1))))) || (_root.grid[gridx][gridy])) {
gridx = Math.round(Math.random() * 7) + 1;
gridy = Math.round(Math.random() * 7) + 1;
}
_x = ((_root.red.startx + (gridx * 40)) - 40);
_y = ((_root.red.starty + (gridy * 40)) - 40);
if (_name == "wall1") {
_root.grid = [[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0]];
}
_root.grid[gridx][gridy] = true;
}
}
onClipEvent (enterFrame) {
numberofwalls = Math.round((((25 - _root.hit) - 1) + 30) / 4);
if (_name == "wall") {
if (_root.r_hit) {
i = 1;
while (i < Math.round((((25 - _root.hit) - 1) + 30) / 4)) {
this.removeMovieClip(_root["wall" + i]);
i++;
}
_root.grid = undefined;
duplicated = false;
} else if (!duplicated) {
i = 1;
while (i <= numberofwalls) {
duplicateMovieClip (this, "wall" + i, (this.getNextHighestDepth() + 1000) + (10 * i));
bn = i;
i++;
}
duplicateMovieClip (this, "Bbonus", (this.getNextHighestDepth() + 1000) + (10 * (bn + 1)));
duplicated = true;
}
}
}
Instance of Symbol 1242 MovieClip in Frame 67
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
}
Instance of Symbol 715 MovieClip in Frame 67
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 67
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10100);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 67
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10000);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 68
stop();
Frame 69
stop();
saveScore("Selection V2", _root.score);
Frame 70
_root.gotoAndStop("Selection V2");
play();
Frame 71
gotoAndStop ("Selection V2");
stop();
Frame 72
function restart() {
_root.gotoAndPlay("Selection V1 restart");
}
_root.hit = 100;
_root.score = 0;
gamePaused = true;
stop();
Instance of Symbol 1257 MovieClip "sbtn1" in Frame 72
onClipEvent (load) {
timePaused = 0;
timePaused1 = 0;
s1_pausedTime = getTimer();
s1_StartTime = getTimer();
while ((targetselection == currentselection) && (targetselection != 0)) {
targetselection = Math.round(Math.random() * 15);
}
_root["sbtn" + targetselection].gotoAndStop(3);
}
onClipEvent (enterFrame) {
if (_root.difficulty == "Normal") {
timeAllowed = 91000 /* 0x016378 */;
} else {
timeAllowed = 76000 /* 0x0128E0 */;
}
if (_root.s321s1._currentframe < _root.s321s1._totalframes) {
_root.timer = (Math.floor(timeAllowed / 60000) + ":") + (Math.floor((timeAllowed - 1) / 1000) - (Math.floor((timeAllowed - 1) / 60000) * 60));
}
if (currentselection == undefined) {
currentselection = 1;
_root["sbtn" + currentselection].gotoAndStop(2);
}
_root.hit2 = _root.hit;
_root.score2 = _root.score;
_root.timer2 = _root.timer;
_root.difficulty2 = _root.difficulty;
if (_root.gamePaused) {
timePaused1 = getTimer() - s1_pausedTime;
pausetimeadded = false;
} else {
s1_pausedTime = getTimer();
if (!pausetimeadded) {
timePaused = timePaused + timePaused1;
pausetimeadded = true;
}
s1_timePassed = (timeAllowed - (getTimer() - s1_StartTime)) + timePaused;
trace(Math.ceil(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60));
if ((Math.floor(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60)) < 10) {
zero = 0;
} else {
zero = "";
}
trace((s1_timePassed + " ") + s1_StartTime);
_root.timer = ((Math.floor(s1_timePassed / 60000) + ":") + zero) + (Math.floor(s1_timePassed / 1000) - (Math.floor(s1_timePassed / 60000) * 60));
if (_root.hit == 0) {
_root.gotoAndStop("Selection V1 Win");
}
if (Math.floor(s1_timePassed) < 0) {
_root.gotoAndStop("Selection V1 Lose");
}
if (Key.isDown(39) || (Key.isDown(68))) {
if (rts) {
} else {
rts = 1;
if (((currentselection == 5) || (currentselection == 10)) || (currentselection == 15)) {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection - 4)].gotoAndStop(2);
currentselection = currentselection - 4;
} else {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection + 1)].gotoAndStop(2);
currentselection = currentselection + 1;
}
}
} else {
rts = 0;
}
if (Key.isDown(37) || (Key.isDown(65))) {
if (lts) {
} else {
lts = 1;
if (((currentselection == 1) || (currentselection == 6)) || (currentselection == 11)) {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection + 4)].gotoAndStop(2);
currentselection = currentselection + 4;
} else {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection - 1)].gotoAndStop(2);
currentselection = currentselection - 1;
}
}
} else {
lts = 0;
}
if (Key.isDown(38) || (Key.isDown(87))) {
if (uts) {
} else {
uts = 1;
if (currentselection <= 5) {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection + 10)].gotoAndStop(2);
currentselection = currentselection + 10;
} else {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection - 5)].gotoAndStop(2);
currentselection = currentselection - 5;
}
}
} else {
uts = 0;
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (dts) {
} else {
dts = 1;
if (currentselection >= 11) {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection - 10)].gotoAndStop(2);
currentselection = currentselection - 10;
} else {
_root["sbtn" + currentselection].gotoAndStop(1);
_root["sbtn" + (currentselection + 5)].gotoAndStop(2);
currentselection = currentselection + 5;
}
}
} else {
dts = 0;
}
if (timeTotal == 0) {
_root.gotoAndStop("youlose5");
}
if (targetselection == 0) {
targetselection = 3;
_root["sbtn" + targetselection].gotoAndStop(3);
}
if (currentselection != targetselection) {
_root["sbtn" + currentselection].gotoAndStop(2);
}
if (currentselection == targetselection) {
if (_root.difficulty == "Normal") {
maxscore = 7;
} else {
maxscore = 9;
}
score = Math.round((maxscore - ((getTimer() - new_time) / 1000)) + (maxscore - 5));
if (score <= 0) {
score = 1;
}
_root.score = _root.score + score;
new_time = getTimer();
_root.hit = _root.hit - 1;
while ((targetselection == currentselection) && (targetselection != 0)) {
targetselection = Math.round(Math.random() * 15);
}
_root["sbtn" + targetselection].gotoAndStop(3);
}
}
}
Instance of Symbol 1242 MovieClip in Frame 72
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
}
Instance of Symbol 715 MovieClip in Frame 72
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 72
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10100);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 72
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10000);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 73
stop();
Frame 74
stop();
saveScore("Selection V1", _root.score);
Frame 75
_root.gotoAndStop("Selection V1");
play();
Frame 76
gotoAndStop ("Selection V1");
stop();
Frame 77
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds == 0) {
_root.gotoAndStop("Turret Trouble Win");
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.gotoAndPlay("Turret Trouble restart");
}
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
_root.dies = 0;
cursor_mc.onMouseMove = function () {
if ((((_root.cursor_mc._x > 0) && (_root.cursor_mc._x < 650)) && (_root.cursor_mc._y > 0)) && (_root.cursor_mc._y < 500)) {
Mouse.hide();
}
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
Instance of Symbol 548 MovieClip "e_turrent1" in Frame 77
onClipEvent (enterFrame) {
if ((_root.gpaused == false) || (_root.gpaused == undefined)) {
angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
}
}
Instance of Symbol 1268 MovieClip "enemy_bullet0" in Frame 77
onClipEvent (load) {
if (this._name != "enemy_bullet0") {
this._alpha = 100;
trace("success");
} else {
this._alpha = 0;
var startTime = getTimer();
var numberofBullets = 0;
}
angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
var speed = (8 * Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x))) / 250));
if (speed < 8) {
speed = 8;
}
changez = Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x))) / speed);
changex = (_root._xmouse - this._x) / changez;
changey = (_root._ymouse - this._y) / changez;
}
onClipEvent (enterFrame) {
_root.score = (1000 + (500 * (_root.difficulty == "Hard"))) - Math.round(30 * _root.dies);
if (!_root.gamePaused) {
if (this._name != "enemy_bullet0") {
if (this.speed <= 0) {
this.speed = 0;
} else {
this.speed = this.speed - 0.1;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.dies = _root.dies + 1;
this.removeMovieClip(this);
}
if (Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x)))) < 200) {
changez = Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x))) / speed);
changex = (_root._xmouse - this._x) / changez;
changey = (_root._ymouse - this._y) / changez;
}
if ((((!isNaN(changex)) && (!isNaN(changey))) && (isFinite(changey))) && (isFinite(changex))) {
this._y = this._y + changey;
this._x = this._x + changex;
}
} else {
var currentTime = Math.round(getTimer() - startTime);
var delayDuplicate = ((1300 - (300 * (_root.difficulty == "Hard"))) - numberofBullets);
if (currentTime >= delayDuplicate) {
if (!endofmgame) {
if (!duplicated3339) {
if (!_root.timers.stopFiring) {
var startTime = getTimer();
numberofBullets = numberofBullets + 1;
this.duplicateMovieClip("enemy_bullet" + numberofBullets, (this.getNextHighestDepth() + 100) + numberofBullets);
numberofBullets = numberofBullets + 1;
duplicateMovieClip (_root.enemy_bulletduplicate0, "enemy_bulletduplicate" + numberofBullets, (this.getNextHighestDepth() + 100) + numberofBullets);
duplicated3339 = true;
}
}
}
} else {
duplicated3339 = false;
}
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 548 MovieClip "e_turrent1" in Frame 77
onClipEvent (enterFrame) {
if ((_root.gpaused == false) || (_root.gpaused == undefined)) {
angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
}
}
Instance of Symbol 1268 MovieClip "enemy_bulletduplicate0" in Frame 77
onClipEvent (load) {
if (this._name != "enemy_bulletduplicate0") {
this._alpha = 100;
trace("success");
} else {
this._alpha = 0;
}
angle_in_radians = Math.atan2(_root._ymouse - this._y, _root._xmouse - this._x);
angle_in_degrees = Math.round((angle_in_radians * 180) / Math.PI);
this._rotation = angle_in_degrees;
var speed = (8 * Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x))) / 250));
if (speed < 8) {
speed = 8;
}
changez = Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x))) / speed);
changex = (_root._xmouse - this._x) / changez;
changey = (_root._ymouse - this._y) / changez;
}
onClipEvent (enterFrame) {
if (_root.delete1 == true) {
this.removeMovieClip(this);
}
if (!_root.gamePaused) {
if (this._name != "enemy_bulletduplicate0") {
if (this.speed <= 0) {
this.speed = 0;
} else {
this.speed = this.speed - 0.1;
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.dies = _root.dies + 1;
this.removeMovieClip(this);
}
if (Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x)))) < 200) {
changez = Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x))) / speed);
changex = (_root._xmouse - this._x) / changez;
changey = (_root._ymouse - this._y) / changez;
}
if ((((!isNaN(changex)) && (!isNaN(changey))) && (isFinite(changey))) && (isFinite(changex))) {
this._y = this._y + changey;
this._x = this._x + changex;
}
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1292 MovieClip in Frame 77
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
dies2 = _root.dies;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 77
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 77
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 77
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
_root.restart();
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 77
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 944 MovieClip "timers" in Frame 77
onClipEvent (load) {
mainTimer = "timer2";
timePaused = getTimer();
_root.totalPausedTime = 0;
pausedTime = 0;
_root.timer = "1:00";
_root.startTimer("timer2", 60000);
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (!added) {
_root.totalPausedTime = _root.totalPausedTime + pausedTime;
pausedTime = 0;
}
timePaused = getTimer();
_root.timer = _root.displayTime(mainTimer, "minutes");
} else {
added = false;
pausedTime = getTimer() - timePaused;
}
}
Instance of Symbol 453 MovieClip "cursor_mc" in Frame 77
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 12035);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 78
stop();
_root.hit = _root.dies;
_root.hit2 = _root.hit;
_root.score2 = _root.score;
saveScore("Turret Trouble", _root.score);
Mouse.show();
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 78
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > (frame + 2)) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Frame 80
gotoAndStop ("Turret Trouble");
Frame 81
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Catch Christmas restart");
}
_root.caught = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
var snowCount = 0;
snowGen = setInterval(function () {
if (_root.snowCount == 250) {
_root.snowCount = 0;
}
duplicateMovieClip (_root.snow, "snow" + _root.snowCount, 1000 + _root.snowCount);
_root.snowCount++;
}, 50);
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
_root.missed = 0;
Instance of Symbol 1308 MovieClip "jar" in Frame 81
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
this._x = _root._xmouse;
}
}
Instance of Symbol 1314 MovieClip "coin0" in Frame 81
onClipEvent (load) {
this._x = (Math.round(Math.random() * ((650 - (10 + this._width)) - (10 + this._width))) + 10) + this._width;
chosenCoin1 = Math.round(Math.random() * 50);
if (_root.difficulty != "Hard") {
if (chosenCoin1 <= 20) {
chosenCoin = 1;
} else if ((chosenCoin1 > 20) && (chosenCoin1 <= 30)) {
chosenCoin = 2;
} else if ((chosenCoin1 > 30) && (chosenCoin1 <= 36)) {
chosenCoin = 3;
} else if ((chosenCoin1 > 36) && (chosenCoin1 <= 40)) {
chosenCoin = 3;
} else {
chosenCoin = 5;
}
} else if (chosenCoin1 <= 10) {
chosenCoin = 1;
} else if ((chosenCoin1 > 10) && (chosenCoin1 <= 20)) {
chosenCoin = 2;
} else if ((chosenCoin1 > 20) && (chosenCoin1 <= 30)) {
chosenCoin = 3;
} else if ((chosenCoin1 > 30) && (chosenCoin1 <= 40)) {
chosenCoin = 3;
} else {
chosenCoin = 5;
}
this.gotoAndStop(chosenCoin);
speed = 15 + (_root.coin0.numberofCoins / 10);
var startTime = getTimer();
numberofCoins = 0;
switch (this._currentframe) {
case 1 :
worth = 1;
break;
case 2 :
worth = 5;
speed = speed + 2;
break;
case 3 :
worth = 10;
speed = speed + 4;
break;
case 4 :
worth = 25;
speed = speed + 7;
break;
case 5 :
worth = -5;
break;
}
}
onClipEvent (enterFrame) {
if (!_root.gamePaused) {
if (this._name != "coin0") {
this._y = this._y + speed;
if (_root.jar.hitTest(this._x, this._y, true)) {
_root.score = _root.score + worth;
_root.caught++;
this.removeMovieClip(this);
} else if (this._y > 500) {
if (chosenCoin != 5) {
_root.missed++;
}
if (_root.missed >= 25) {
_root.gotoAndStop("Catch Christmas Win");
}
this.removeMovieClip(this);
}
} else {
var currentTime = Math.round(getTimer() - startTime);
var delayDuplicate = ((1200 - (200 * (_root.difficulty == "Hard"))) - (numberofCoins * 16));
if (((delayDuplicate < 600) && (_root.difficulty != "Hard")) || ((delayDuplicate < 500) && (_root.difficulty == "Hard"))) {
delayDuplicate = 600 - (100 * (_root.difficulty == "Hard"));
}
if (currentTime >= delayDuplicate) {
var startTime = getTimer();
numberofCoins++;
this.duplicateMovieClip("coin" + numberofCoins, (this.getNextHighestDepth() + 10) + numberofCoins);
}
}
}
}
onClipEvent (load) {
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 1316 MovieClip "snow" in Frame 81
onClipEvent (load) {
if (this._name != "snow") {
speed = 3;
xSpeed = random(3) - 4;
ran = random(25) + 25;
this._xscale = ran;
this._yscale = ran;
this._x = random(900);
this._y = -(this._width / 2);
}
}
onClipEvent (enterFrame) {
if (this._name != "snow") {
this._y = this._y + speed;
this._x = this._x + xSpeed;
if (this._y > (400 + (this._height / 2))) {
removeMovieClip(this);
}
}
}
Instance of Symbol 1201 MovieClip in Frame 81
onClipEvent (load) {
if (_root.Language == "Spanish") {
this.gotoAndStop(2);
}
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
missed = _root.missed;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 81
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 81
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 81
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 81
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 82
_root.caught2 = _root.caught;
_root.score2 = _root.score;
Mouse.show();
saveScore("Catch", _root.score);
Frame 84
gotoAndStop ("Catch Christmas");
Frame 85
function startTimer(timer, timeAllowed) {
if (_root.timers[timer + "_startTime"] == undefined) {
_root.timers[timer + "_startTime"] = getTimer();
_root.timers[timer + "_timeAllowed"] = timeAllowed;
}
}
function displayTime(timer, method) {
cTime = _root.timers[timer + "_startTime"];
timeAllowed = _root.timers[timer + "_timeAllowed"];
milliseconds = (timeAllowed - (getTimer() - cTime)) + _root.totalPausedTime;
seconds = Math.floor(milliseconds / 1000);
if (seconds <= 0) {
seconds = 0;
}
minutes = Math.floor(seconds / 60);
minutesMinusSeconds = -((minutes * 60) - seconds);
if (seconds <= 0) {
_root.timers.stopFiring = true;
}
if (minutesMinusSeconds < 10) {
zero = "0";
} else {
zero = "";
}
minutesAndSeconds = ((minutes + ":") + zero) + minutesMinusSeconds;
switch (method) {
case "milli-seconds" :
return(milliseconds);
case "seconds" :
return(seconds);
case "minutes" :
return(minutesAndSeconds);
}
return(seconds);
}
function restart() {
_root.PauseMenu.removeMovieClip(_root.PauseMenu);
_root.gotoAndPlay("Goal restart");
}
_root.caught = 0;
_root.timers = new Array();
_root.totalPausedTime = 0;
_root.score = 0;
_root.gamePaused = true;
stop();
stop();
cursor.onMouseMove = function () {
this._x = this._parent._xmouse;
this._y = this._parent._ymouse;
updateAfterEvent();
};
_root.missed = 0;
Instance of Symbol 1337 MovieClip in Frame 85
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10302);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
score2 = _root.score;
missed = _root.missed;
difficulty2 = _root.difficulty;
timer2 = _root.timer;
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 715 MovieClip in Frame 85
onClipEvent (enterFrame) {
ID = _root.songID;
if (_root.Language == "Spanish") {
this.songName = (_root.SoundArray[ID][0] + " - por: ") + _root.SoundArray[ID][1];
} else {
this.songName = (_root.SoundArray[ID][0] + " - by: ") + _root.SoundArray[ID][1];
}
}
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10309);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 717 MovieClip in Frame 85
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10350);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Instance of Symbol 759 MovieClip "pauseMenu" in Frame 85
onClipEvent (load) {
this.gotoAndStop(1);
this.swapDepths(this.getNextHighestDepth() + 10303);
frame = _root._currentframe;
trace(frame);
}
onClipEvent (enterFrame) {
if ((((this._currentframe == 1) && (Key.isDown(80))) && (_root.gamePaused == false)) && (!Paused)) {
_root.gamePaused = true;
this.gotoAndStop(2);
Paused = true;
}
if ((((this._currentframe > 1) && (Key.isDown(80))) && (_root.gamePaused == true)) && (!Paused)) {
_root.gamePaused = false;
this.gotoAndStop(1);
Paused = true;
}
if (!Key.isDown(80)) {
Paused = false;
}
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
if (Key.isDown(81) && (!qualityChanged)) {
switch (_root._quality) {
case "LOW" :
_root._quality = "MEDIUM";
break;
case "MEDIUM" :
_root._quality = "HIGH";
break;
case "HIGH" :
_root._quality = "LOW";
break;
}
qualityChanged = true;
} else if (!Key.isDown(81)) {
qualityChanged = false;
}
if (Key.isDown(82) && (!restarted)) {
_root.restart();
restarted = true;
} else if (!Key.isDown(81)) {
restarted = false;
}
}
Instance of Symbol 768 MovieClip "s321s1" in Frame 85
onClipEvent (load) {
this.swapDepths(this.getNextHighestDepth() + 10355);
frame = _root._currentframe;
}
onClipEvent (enterFrame) {
if ((_root._currentframe > frame) || (_root._currentframe < frame)) {
this.removeMovieClip(this);
}
}
Frame 86
_root.caught2 = _root.caught;
_root.score2 = _root.score;
Mouse.show();
saveScore("Catch", _root.score);
Frame 88
gotoAndStop ("Goal");
Symbol 1342 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, _rcvChannelName, __get__comChannelName, onError, _listenChannel, _rcvChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.35");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
_rcvChannelName = val;
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
_rcvChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local2 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
allowDomains(_gatewayURL);
_clip = clip.createEmptyMovieClip(_local2, 10336, false);
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip(_gatewayURL, _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
_rcvChannel = new LocalConnection();
_rcvChannel.allowDomain = function (d) {
return(true);
};
_rcvChannel.allowInsecureDomain = _rcvChannel.allowDomain;
_rcvChannel._nextcallbackID = 0;
_rcvChannel._callbacks = {};
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_rcvChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_rcvChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_rcvChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
_rcvChannel.connect(_rcvChannelName);
trace("connected!");
_connecting = false;
_connected = true;
_listenChannel.close();
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _rcvChannel._callbacks[_local1.callbackID];
}
delete _rcvChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_rcvChannel._nextcallbackID});
}
_rcvChannel._callbacks[_rcvChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_rcvChannel._nextcallbackID++;
}
static function addLinkEvent(url, burl, btn, onClick) {
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
var _local3;
var _local2 = new LoadVars();
var timeout = 1500;
var t0 = getTimer();
var ping = this.createEmptyMovieClip("ping", 777);
this.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
delete this.ping;
getURL (url + s, "_blank");
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
delete this.ping;
getURL (burl, "_blank");
}
};
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
if (onClick != undefined) {
onClick();
}
};
}
static var _gatewayURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__mochiservices";
static var _connecting = false;
static var _connected = false;
}
Symbol 1343 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\+", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\+", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + "\\n";
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 1344 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if (options.clip != null) {
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.childClip._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
}
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (typeof(options.score) == "object") {
if (options.score.text != undefined) {
options.score = options.score.text;
}
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.clip.stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.clip.play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 40 Button
on (release) {
getURL ("http://www.flak-games.com", "_blank");
}
Symbol 50 MovieClip Frame 141
_parent.play();
stop();
Symbol 56 Button
on (release) {
_root.play();
}
Symbol 57 MovieClip Frame 31
stop();
Symbol 66 MovieClip Frame 159
_root.play();
Symbol 77 Button
on (release) {
pausebtn.gotoAndStop(1);
if ((((ID - 1) == 0) || ((_root.songID - 1) == 0)) || ((_root.songID - 1) == "undefined")) {
_root.stopMusic();
trace(_root.SongArray.length);
_root.playMusic(_root.SoundArray.length - 1);
} else {
_root.stopMusic();
_root.playMusic(_root.songID - 1);
}
}
Symbol 78 Button
on (release) {
pausebtn.gotoAndStop(1);
if ((_root.songID + 1) >= _root.SoundArray.length) {
_root.stopMusic();
trace(_root.SoundArray[_root.songID + 1][0]);
_root.playMusic(1);
} else {
_root.stopMusic();
_root.playMusic(_root.songID + 1);
}
}
Symbol 83 Button
on (release) {
pausebtn.gotoAndStop(2);
_root.stopMusic();
}
Symbol 95 MovieClip Frame 1
stop();
Symbol 97 Button
on (release) {
this._volume = Math.ceil(_xmouse / 35) * 10;
_root.thesetVolume = Math.ceil(_xmouse / 35) * 10;
}
Symbol 106 Button
on (release) {
_root.pauseMusic(_root.songID);
gotoAndStop (2);
}
Symbol 110 Button
on (release) {
_root.unPauseMusic(_root.songID);
this.prevFrame();
}
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 119 MovieClip Frame 1
stop();
stop();
Instance of Symbol 99 MovieClip in Symbol 119 MovieClip Frame 1
onClipEvent (load) {
if (_root.music.getVolume() != undefined) {
trace(" test: " + _root.thesetVolume);
this.vbar.gotoAndStop(Math.round((_root.music.getVolume() / 10) + 1));
} else {
this.vbar.gotoAndStop(9);
}
if (((this.vbar._currentframe - 1) * 10) != _root.music.getVolume()) {
_root.music.setVolume((this.vbar._currentframe - 1) * 10);
}
}
onClipEvent (enterFrame) {
if (((this.vbar._currentframe - 1) * 10) != _root.thesetVolume) {
this.vbar.gotoAndStop((_root.thesetVolume / 10) + 1);
_root.music.setVolume(_root.thesetVolume);
}
}
Symbol 123 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(10);
} else {
_root.box_img.gotoAndStop(2);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
_root.playFX(1);
gotoAndStop ("game menu");
}
Symbol 124 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(11);
} else {
_root.box_img.gotoAndStop(3);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
_root.playFX(1);
_root.gotoAndStop("Instructions");
}
Symbol 125 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(12);
} else {
_root.box_img.gotoAndStop(4);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
_root.playFX(1);
_root.gotoAndStop("stats");
}
Symbol 126 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(13);
} else {
_root.box_img.gotoAndStop(5);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
getURL ("http://rankz.armorbot.com/MiniGame_Arcade_2/", "_blank");
_root.playFX(1);
}
Symbol 127 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(14);
} else {
_root.box_img.gotoAndStop(6);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
_root.gotoAndStop("Settings");
_root.playFX(1);
}
Symbol 128 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(15);
} else {
_root.box_img.gotoAndStop(7);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
_root.playFX(1);
_root.gotoAndStop("credits");
}
Symbol 129 Button
on (rollOver) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(16);
} else {
_root.box_img.gotoAndStop(8);
}
}
on (rollOut) {
if (_root.Language == "Spanish") {
_root.box_img.gotoAndStop(9);
} else {
_root.box_img.gotoAndStop(1);
}
}
on (release) {
_root.playFX(1);
getURL ("http://www.flak-games.com/", "_blank");
mochi.MochiServices.addLinkEvent("http://x.mochiads.com/link/d1770f27e8961165", "http://www.flak-games.com/", YOUR_BUTTON_REFERENCE);
}
Symbol 191 MovieClip Frame 1
stop();
Instance of Symbol 33 MovieClip in Symbol 191 MovieClip Frame 8
onClipEvent (load) {
this.stop();
}
Symbol 191 MovieClip Frame 9
stop();
Instance of Symbol 33 MovieClip in Symbol 191 MovieClip Frame 16
onClipEvent (load) {
this.stop();
}
Symbol 195 Button
on (release) {
if (this._currentframe == 1) {
_root.Language = "Spanish";
_root.gotoAndPlay("Refresh or Translate");
} else if (this._currentframe == 2) {
_root.Language = "English";
_root.gotoAndPlay("Refresh or Translate");
}
}
Symbol 202 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 219 Button
on (release) {
_root.playFX(1);
_root.chosen_game = chosen_game;
_root.gotoAndStop("chosen game");
}
Symbol 269 MovieClip Frame 2
stop();
Symbol 269 MovieClip Frame 11
if (_root.theDate == 12) {
this.gotoAndStop("Catch Christmas");
}
Symbol 271 MovieClip Frame 1
stop();
Symbol 275 Button
on (release) {
gotoAndStop ("main menu");
}
on (release) {
_root.playFX(1);
}
Symbol 283 MovieClip Frame 1
stop();
Symbol 288 Button
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = scoreName;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.totalScore;
__rankz_send__("MzE3OWolZSVhJW4lcw==", "U09qZHZ6VWE=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
}
on (release) {
getURL ("http://rankz.armorbot.com/MiniGame_Arcade_2/", "_blank");
_root.playFX(1);
}
Symbol 297 Button
on (release) {
gotoAndStop ("game menu");
}
on (release) {
_root.playFX(1);
}
Symbol 302 Button
on (release) {
_root.currentgame = _root.chosen_game_title;
_root.gotoAndStop(_root.chosen_game_title);
}
Symbol 307 Button
on (release) {
_root.difficulty = "Normal";
}
Symbol 308 Button
on (release) {
_root.difficulty = "Hard";
}
Symbol 313 MovieClip Frame 1
stop();
Symbol 314 MovieClip Frame 1
stop();
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_root.difficulty == "Hard") {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 332 Button
on (release) {
_root.playFX(1);
_root.gotoAndStop("main menu");
}
Symbol 333 Button
on (release) {
gotoAndStop ("help");
}
on (release) {
_root.playFX(1);
}
Symbol 339 Button
on (release) {
_root.gotoAndStop("main menu");
}
on (release) {
_root.playFX(1);
}
Symbol 340 Button
on (release) {
gotoAndStop ("help_espanol");
}
on (release) {
_root.playFX(1);
}
Symbol 346 Button
on (release) {
if (_root.Language == "English") {
if (help._currentframe != (((help._totalframes - 1) / 2) + 1)) {
help.nextFrame();
}
} else if (help._currentframe != help._totalframes) {
help.nextFrame();
}
}
on (release) {
_root.playFX(1);
}
Symbol 347 Button
on (release) {
if (_root.Language == "English") {
if (help._currentframe != 2) {
help.prevFrame();
}
} else if (help._currentframe != (((help._totalframes - 1) / 2) + 1)) {
help.prevFrame();
}
}
on (release) {
_root.playFX(1);
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 7
this.removeMovieClip(this);
Symbol 362 MovieClip Frame 8
stop();
Symbol 362 MovieClip Frame 14
this.removeMovieClip(this);
Symbol 362 MovieClip Frame 15
stop();
Symbol 362 MovieClip Frame 21
this.removeMovieClip(this);
Symbol 368 MovieClip Frame 3
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 8
gotoAndStop (1);
Symbol 394 MovieClip Frame 9
stop();
Symbol 394 MovieClip Frame 16
gotoAndStop (9);
Symbol 394 MovieClip Frame 17
stop();
Symbol 394 MovieClip Frame 25
gotoAndStop (17);
Symbol 397 Button
on (release) {
if (_name == "buygun1") {
_root.towerPurchased(this._name);
} else {
_root.selectTower(this._name);
}
_root.showStats(_name);
}
on (rollOver) {
if (_name == "buygun1") {
_root.showStats(_name);
}
}
on (rollOut) {
_root.showStats("neutral");
}
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 6
gotoAndStop (1);
Symbol 410 MovieClip Frame 7
stop();
Symbol 410 MovieClip Frame 12
gotoAndStop (7);
Symbol 410 MovieClip Frame 13
stop();
Symbol 410 MovieClip Frame 18
gotoAndStop (13);
Symbol 411 Button
on (release) {
if (_name == "buygun2") {
_root.towerPurchased(this._name);
} else {
_root.selectTower(this._name);
}
_root.showStats(_name);
}
on (rollOver) {
if (_name == "buygun2") {
_root.showStats(_name);
}
}
on (rollOut) {
_root.showStats("neutral");
}
Symbol 430 MovieClip Frame 1
stop();
Symbol 430 MovieClip Frame 6
gotoAndStop (1);
Symbol 430 MovieClip Frame 12
gotoAndStop (7);
Symbol 430 MovieClip Frame 18
gotoAndStop (13);
Symbol 431 Button
on (release) {
if (_name == "buygun3") {
_root.towerPurchased(this._name);
} else {
_root.selectTower(this._name);
}
_root.showStats(_name);
}
on (rollOver) {
if (_name == "buygun3") {
_root.showStats(_name);
}
}
on (rollOut) {
_root.showStats("neutral");
}
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 10
gotoAndStop (1);
Symbol 442 MovieClip Frame 11
stop();
Symbol 442 MovieClip Frame 20
gotoAndStop (11);
Symbol 442 MovieClip Frame 21
stop();
Symbol 442 MovieClip Frame 30
gotoAndStop (21);
Symbol 443 Button
on (release) {
if (_name == "buygun4") {
_root.towerPurchased(this._name);
} else {
_root.selectTower(this._name);
}
_root.showStats(_name);
}
on (rollOver) {
if (_name == "buygun4") {
_root.showStats(_name);
}
}
on (rollOut) {
_root.showStats("neutral");
}
Symbol 445 MovieClip Frame 1
stop();
Symbol 455 Button
on (rollOver) {
frm = (_root.currentlevel * 2) - 1;
_root.levels.gotoAndStop(frm);
}
Symbol 462 Button
on (rollOver) {
_parent.onSwitch = true;
_root.bonus = _root.bonus + 10;
this.gotoAndStop(2);
}
on (rollOut) {
_parent.onSwitch = false;
}
Symbol 463 MovieClip Frame 1
stop();
Symbol 463 MovieClip Frame 2
play();
Symbol 463 MovieClip Frame 8
_parent.onSwitch = false;
stop();
Symbol 480 MovieClip Frame 1
stop();
Symbol 486 MovieClip Frame 1
stop();
stop();
Symbol 486 MovieClip Frame 7
gotoAndPlay (5);
Symbol 493 MovieClip Frame 1
stop();
Instance of Symbol 490 MovieClip "fire" in Symbol 493 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 490 MovieClip "fire" in Symbol 493 MovieClip Frame 7
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 492 MovieClip in Symbol 493 MovieClip Frame 7
onClipEvent (enterFrame) {
i = 0;
while (i < _root.wallCount) {
if (this.hitTest(_root["wallu" + i]) || (this.hitTest(_root["walld" + i]))) {
_parent.play();
}
i++;
}
}
Instance of Symbol 490 MovieClip "fire" in Symbol 493 MovieClip Frame 17
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 492 MovieClip in Symbol 493 MovieClip Frame 17
onClipEvent (enterFrame) {
i = 0;
while (i < _root.wallCount) {
if (this.hitTest(_root["wallu" + i]) || (this.hitTest(_root["walld" + i]))) {
_parent.play();
}
i++;
}
}
Symbol 493 MovieClip Frame 26
this.cantbeHit = false;
gotoAndStop (1);
Symbol 499 MovieClip Frame 1
stop();
Instance of Symbol 490 MovieClip "fire" in Symbol 499 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.gamePaused == false) {
this.play();
} else {
this.stop();
}
}
Instance of Symbol 495 MovieClip in Symbol 499 MovieClip Frame 1
onClipEvent (enterFrame) {
i = 0;
while (i < _root.wallCount) {
if (this.hitTest(_root["wallu" + i]) || (this.hitTest(_root["walld" + i]))) {
_parent.play();
}
i++;
}
}
Symbol 499 MovieClip Frame 12
if (_root.win) {
_root.goal.removeMovieClip();
_root.gotoAndStop("win");
i = 0;
while (i < _root.wallCount) {
_root["wallu" + i].removeMovieClip();
_root["walld" + i].removeMovieClip();
i++;
}
} else {
i = 0;
while (i < _root.wallCount) {
_root["wallu" + i].removeMovieClip();
_root["walld" + i].removeMovieClip();
i++;
}
_root.gotoAndStop("over");
}
Symbol 525 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 1
stop();
Symbol 544 MovieClip Frame 10
this.removeMovieClip(this);
Symbol 571 MovieClip Frame 1
stop();
Symbol 571 MovieClip Frame 2
stop();
Instance of Symbol 362 MovieClip in Symbol 571 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(15);
}
Instance of Symbol 362 MovieClip in Symbol 571 MovieClip Frame 2
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 368 MovieClip in Symbol 571 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 368 MovieClip in Symbol 571 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 368 MovieClip in Symbol 571 MovieClip Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Symbol 571 MovieClip Frame 3
stop();
Instance of Symbol 470 MovieClip in Symbol 571 MovieClip Frame 5
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
this.shine._rotation = -this._rotation;
}
Instance of Symbol 480 MovieClip in Symbol 571 MovieClip Frame 7
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 525 MovieClip in Symbol 571 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 525 MovieClip in Symbol 571 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 525 MovieClip in Symbol 571 MovieClip Frame 11
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 544 MovieClip "wall" in Symbol 571 MovieClip Frame 12
onClipEvent (load) {
this.gotoAndStop(3);
}
Symbol 571 MovieClip Frame 14
stop();
Instance of Symbol 362 MovieClip in Symbol 571 MovieClip Frame 14
onClipEvent (load) {
this.gotoAndStop(15);
}
Instance of Symbol 362 MovieClip in Symbol 571 MovieClip Frame 14
onClipEvent (load) {
this.gotoAndStop(8);
}
Instance of Symbol 368 MovieClip in Symbol 571 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 368 MovieClip in Symbol 571 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 368 MovieClip in Symbol 571 MovieClip Frame 14
onClipEvent (load) {
gotoAndStop (3);
}
Symbol 571 MovieClip Frame 15
stop();
Instance of Symbol 470 MovieClip in Symbol 571 MovieClip Frame 17
onClipEvent (enterFrame) {
this._rotation = this._rotation + 10;
this.shine._rotation = -this._rotation;
}
Instance of Symbol 480 MovieClip in Symbol 571 MovieClip Frame 19
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 525 MovieClip in Symbol 571 MovieClip Frame 23
onClipEvent (load) {
this.gotoAndStop(3);
}
Instance of Symbol 525 MovieClip in Symbol 571 MovieClip Frame 23
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 525 MovieClip in Symbol 571 MovieClip Frame 23
onClipEvent (load) {
this.gotoAndStop(4);
}
Instance of Symbol 544 MovieClip "wall" in Symbol 571 MovieClip Frame 24
onClipEvent (load) {
this.gotoAndStop(3);
}
Symbol 574 Button
on (release) {
if (_root.Language == "English") {
if (help._currentframe != 2) {
help.prevFrame();
}
} else if (help._currentframe != (((help._totalframes - 1) / 2) + 2)) {
help.prevFrame();
}
}
on (release) {
_root.playFX(1);
}
Symbol 577 MovieClip Frame 1
stop();
Symbol 577 MovieClip Frame 3
stop();
Instance of Symbol 571 MovieClip "help" in Symbol 577 MovieClip Frame 3
onClipEvent (load) {
this.gotoAndStop(2);
}
Instance of Symbol 571 MovieClip "help" in Symbol 577 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(((_totalframes - 1) / 2) + 2);
}
Symbol 582 Button
on (release) {
_root.playFX(1);
gotoAndStop ("main menu");
}
Symbol 584 Button
on (release) {
_root.gotoAndStop("Review");
}
Symbol 586 Button
on (release) {
_root.gotoAndStop("Download");
}
Symbol 588 Button
on (release) {
_root.gotoAndStop("Themes");
}
Symbol 590 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 1
stop();
Symbol 598 MovieClip Frame 2
stop();
Symbol 603 MovieClip Frame 1779
stop();
Symbol 605 MovieClip Frame 1
stop();
Symbol 610 Button
on (release) {
_root._quality = "LOW";
}
Symbol 613 Button
on (release) {
_root._quality = "MEDIUM";
}
Symbol 614 Button
on (release) {
_root._quality = "HIGH";
}
Symbol 617 Button
on (release) {
this._volume = Math.ceil(_xmouse / 35) * 10;
_root.thesetFXVolume = Math.ceil(_xmouse / 35) * 10;
_root.playFX(1);
}
Symbol 623 Button
on (release) {
_root.playFX(1);
gotoAndStop ("game menu");
}
Symbol 628 Button
on (release) {
_root.playFX(1);
gotoAndStop ("main menu");
}
Symbol 629 Button
on (release) {
getURL ("http://www.chad-duncan.com/games/MGA2/MGA2.zip", "_blank");
}
Symbol 634 Button
on (release) {
if (_root.mainbg._currentframe != _root.mainbg._totalframes) {
_root.mainbg.nextFrame();
_root.theme = _root.mainbg._currentframe;
}
}
Symbol 635 Button
on (release) {
if (_root.mainbg._currentframe != 1) {
_root.mainbg.prevFrame();
_root.theme = _root.mainbg._currentframe;
}
}
Symbol 664 MovieClip Frame 2
_root.playFX(2);
Symbol 664 MovieClip Frame 11
if (_name != "explosion0") {
this.removeMovieClip(this);
}
Symbol 664 MovieClip Frame 12
_root.playFX(2);
Symbol 664 MovieClip Frame 22
if (_name != "explosion0") {
this.removeMovieClip(this);
}
Symbol 664 MovieClip Frame 23
_root.playFX(2);
Symbol 664 MovieClip Frame 33
if (_name != "explosion0") {
this.removeMovieClip(this);
}
Symbol 671 Button
on (press) {
if (_root.fastForward == true) {
_root.gun.fastForward = true;
} else {
fire();
}
}
on (release) {
if (_root.fastForward == true) {
_root.gun.fastForward = false;
}
}
on (releaseOutside) {
if (_root.fastForward == true) {
_root.gun.fastForward = false;
}
}
Symbol 677 Button
on (release) {
_root.pauseMenu.gotoAndStop("shortcuts");
}
Symbol 678 Button
on (release) {
_root.pauseMenu.gotoAndStop("help");
}
Symbol 679 Button
on (release) {
_root.restart();
}
Symbol 680 Button
on (release) {
_root.clearVariables();
_root.gotoAndStop("game menu");
}
Symbol 704 MovieClip Frame 1
stop();
Symbol 706 Button
on (release) {
if ((((ID - 1) == 0) || ((_root.songID - 1) == 0)) || ((_root.songID - 1) == "undefined")) {
_root.stopMusic();
trace(_root.SongArray.length);
_root.playMusic(_root.SoundArray.length - 1);
} else {
_root.stopMusic();
_root.playMusic(_root.songID - 1);
}
}
Symbol 707 Button
on (release) {
if ((_root.songID + 1) >= _root.SoundArray.length) {
_root.stopMusic();
trace(_root.SoundArray[_root.songID + 1][0]);
_root.playMusic(1);
} else {
_root.stopMusic();
_root.playMusic(_root.songID + 1);
}
}
Symbol 708 Button
on (release) {
pausebtn2.gotoAndStop(2);
_root.stopMusic();
}
Symbol 715 MovieClip Frame 1
if (_root.Language == "Spanish") {
} else {
stop();
}
Instance of Symbol 99 MovieClip in Symbol 715 MovieClip Frame 1
onClipEvent (load) {
if (_root.music.getVolume() != undefined) {
trace(" test: " + _root.thesetVolume);
this.vbar.gotoAndStop(Math.round((_root.music.getVolume() / 10) + 1));
} else {
this.vbar.gotoAndStop(9);
}
if (((this.vbar._currentframe - 1) * 10) != _root.music.getVolume()) {
_root.music.setVolume((this.vbar._currentframe - 1) * 10);
}
}
onClipEvent (enterFrame) {
if (((this.vbar._currentframe - 1) * 10) != _root.thesetVolume) {
this.vbar.gotoAndStop((_root.thesetVolume / 10) + 1);
_root.music.setVolume(_root.thesetVolume);
}
}
Symbol 715 MovieClip Frame 2
if (_root.Language == "Spanish") {
stop();
}
Symbol 726 Button
on (press) {
this.gotoAndStop("shortcuts");
}
Symbol 729 Button
on (press) {
this.gotoAndStop("help");
}
Symbol 732 Button
on (release) {
_root.gamePaused = false;
this.gotoAndStop(1);
}
Symbol 733 Button
on (release) {
this.gotoAndStop("audiovideo");
}
Symbol 734 Button
on (release) {
_root.restart();
}
Symbol 735 Button
on (release) {
_root.clearVariables();
_root.gotoAndStop("game menu");
}
Symbol 745 Button
on (press) {
this.gotoAndStop(2);
}
Symbol 754 Button
on (release) {
this.gotoAndStop(2);
}
Symbol 759 MovieClip Frame 1
stop();
Symbol 759 MovieClip Frame 2
stop();
Symbol 759 MovieClip Frame 3
switch (_root.currentgame) {
case "War TD" :
var shortcuts = "H - View Enemies' Health\rU - Upgrade\rS - Start/Next Level";
break;
default :
var shortcuts = "No specific key shortcuts for this game.";
}
_root.gamePaused = true;
Symbol 759 MovieClip Frame 4
_root.gamePaused = true;
Instance of Symbol 571 MovieClip in Symbol 759 MovieClip Frame 4
onClipEvent (load) {
this.gotoAndStop(_root.currentgame);
}
Symbol 759 MovieClip Frame 5
stop();
Instance of Symbol 99 MovieClip in Symbol 759 MovieClip Frame 5
onClipEvent (load) {
if (_root.music.getVolume() != undefined) {
trace(" test: " + _root.thesetVolume);
this.vbar.gotoAndStop(Math.round((_root.music.getVolume() / 10) + 1));
} else {
this.vbar.gotoAndStop(9);
}
if (((this.vbar._currentframe - 1) * 10) != _root.music.getVolume()) {
_root.music.setVolume((this.vbar._currentframe - 1) * 10);
}
}
onClipEvent (enterFrame) {
if (((this.vbar._currentframe - 1) * 10) != _root.thesetVolume) {
this.vbar.gotoAndStop((_root.thesetVolume / 10) + 1);
_root.music.setVolume(_root.thesetVolume);
}
}
Instance of Symbol 618 MovieClip in Symbol 759 MovieClip Frame 5
onClipEvent (load) {
if (_root.FX.getVolume() != undefined) {
this.vbar.gotoAndStop(Math.round((_root.FX.getVolume() / 10) + 1));
} else {
this.vbar.gotoAndStop(8);
}
if (((this.vbar._currentframe - 1) * 10) != _root.FX.getVolume()) {
_root.FX.setVolume((this.vbar._currentframe - 1) * 10);
}
}
onClipEvent (enterFrame) {
if (((this.vbar._currentframe - 1) * 10) != _root.thesetFXVolume) {
this.vbar.gotoAndStop((_root.thesetFXVolume / 10) + 1);
_root.FX.setVolume(_root.thesetFXVolume);
}
}
Symbol 768 MovieClip Frame 1
_root.gamePaused = true;
Symbol 768 MovieClip Frame 59
gotoAndStop (90);
Symbol 768 MovieClip Frame 89
_root.gamePaused = false;
Symbol 768 MovieClip Frame 90
stop();
_root.gamePaused = false;
Symbol 772 Button
on (release) {
_root.restart();
}
Symbol 773 Button
on (release) {
_root.clearVariables();
_root.gotoAndStop("game menu");
}
Symbol 795 MovieClip Frame 1
stop();
Symbol 805 MovieClip Frame 1
stop();
Symbol 819 MovieClip Frame 2
stop();
Symbol 828 MovieClip Frame 1
stop();
startBtn.onRelease = function () {
_root.nextLevel();
};
Symbol 828 MovieClip Frame 2
stop();
nextLevelBtn.onRelease = function () {
_root.nextLevel();
};
Symbol 828 MovieClip Frame 3
stop();
Symbol 834 Button
on (release) {
_root.upgrade();
}
on (rollOver) {
_root.showStats("upgrade");
}
on (rollOut) {
_root.showStats("neutral");
}
Symbol 835 Button
on (release) {
_root.sell();
}
Symbol 846 MovieClip Frame 1
stop();
startBtn.onRelease = function () {
_root.nextLevel();
};
Symbol 846 MovieClip Frame 2
stop();
nextLevelBtn.onRelease = function () {
_root.nextLevel();
};
Symbol 846 MovieClip Frame 3
stop();
Symbol 855 MovieClip Frame 1
stop();
Instance of Symbol 828 MovieClip in Symbol 855 MovieClip Frame 1
onClipEvent (enterFrame) {
if (!_root.levelisStarted) {
if (_root.currentLevel == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (3);
}
}
Instance of Symbol 445 MovieClip "buygun1" in Symbol 855 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("gun1");
}
onClipEvent (enterFrame) {
if (_root.money < _root[this._name][1]) {
this.gotoAndStop(5);
} else {
this.gotoAndStop("gun1");
}
}
Instance of Symbol 445 MovieClip "buygun2" in Symbol 855 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("gun2");
}
onClipEvent (enterFrame) {
if (_root.money < _root[this._name][1]) {
this.gotoAndStop(5);
} else {
this.gotoAndStop("gun2");
}
}
Instance of Symbol 445 MovieClip "buygun3" in Symbol 855 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("gun3");
}
onClipEvent (enterFrame) {
if (_root.money < _root[this._name][1]) {
this.gotoAndStop(5);
} else {
this.gotoAndStop("gun3");
}
}
Instance of Symbol 445 MovieClip "buygun4" in Symbol 855 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop ("gun4");
}
onClipEvent (enterFrame) {
if (_root.money < _root[this._name][1]) {
this.gotoAndStop(5);
} else {
this.gotoAndStop("gun4");
}
}
Instance of Symbol 846 MovieClip in Symbol 855 MovieClip Frame 2
onClipEvent (enterFrame) {
if (!_root.levelisStarted) {
if (_root.currentLevel == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
} else {
gotoAndStop (3);
}
}
Symbol 871 Button
on (rollOver) {
nextFrame();
}
Symbol 874 Button
on (rollOut) {
if (!onSwitch) {
lose();
}
}
on (release) {
prevFrame();
}
on (press) {
prevFrame();
}
Symbol 876 Button
on (rollOver) {
if (!onSwitch) {
if (((wall1._currentframe == 2) && (wall2._currentframe == 2)) && (wall4._currentframe == 2)) {
_root.obonus = _root.sbonus;
nextFrame();
}
onSwitch = true;
}
}
on (rollOut) {
onSwitch = false;
}
Symbol 877 Button
on (rollOver) {
onSwitch = true;
wall1.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 878 Button
on (rollOver) {
onSwitch = true;
wall2.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 879 Button
on (rollOver) {
onSwitch = true;
wall4.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 881 Button
on (rollOver) {
_parent.prevFrame();
}
Symbol 884 Button
on (rollOver) {
_parent.onSwitch = true;
_root.bonus = _root.bonus + 20;
gotoAndStop (2);
}
on (rollOut) {
_parent.onSwitch = false;
}
Symbol 885 MovieClip Frame 1
stop();
Symbol 885 MovieClip Frame 2
play();
Symbol 885 MovieClip Frame 8
_parent.onSwitch = false;
stop();
Symbol 888 MovieClip Frame 1
stop();
Symbol 896 Button
on (rollOver) {
if (!onSwitch) {
if (((((((wall1._currentframe == 2) && (wall2._currentframe == 2)) && (wall3._currentframe == 2)) && (wall4._currentframe == 2)) && (wall5._currentframe == 2)) && (wall6._currentframe == 2)) && (wall7._currentframe == 2)) {
_root.obonus = _root.sbonus;
nextFrame();
}
onSwitch = true;
}
}
on (rollOut) {
onSwitch = false;
}
Symbol 897 Button
on (rollOver) {
onSwitch = true;
wall3.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 898 Button
on (rollOver) {
onSwitch = true;
wall5.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 899 Button
on (rollOver) {
onSwitch = true;
wall7.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 906 Button
on (rollOver) {
if (!onSwitch) {
if (((((wall1._currentframe == 2) && (wall2._currentframe == 2)) && (wall3._currentframe == 2)) && (wall4._currentframe == 2)) && (wall6._currentframe == 2)) {
nextFrame();
_root.obonus = _root.sbonus;
}
onSwitch = true;
}
}
on (rollOut) {
onSwitch = false;
}
Symbol 907 Button
on (rollOver) {
onSwitch = true;
wall6.gotoAndStop(2);
}
on (rollOut) {
onSwitch = false;
}
Symbol 912 Button
on (rollOver) {
if (!onSwitch) {
if ((((((wall1._currentframe == 2) && (wall2._currentframe == 2)) && (wall3._currentframe == 2)) && (wall4._currentframe == 2)) && (wall5._currentframe == 2)) && (wall6._currentframe == 2)) {
_root.obonus = _root.sbonus;
_root.gotoAndStop("Maze Win");
}
onSwitch = true;
}
}
on (rollOut) {
onSwitch = false;
}
Symbol 917 MovieClip Frame 1
function lose() {
delay = getTimer();
}
stop();
_root.bonus = 0;
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 1
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
this._y = _root._ymouse;
this._x = _root._xmouse;
if (((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 400)) && (!_root.gamePaused)) {
Mouse.hide();
mouseShown = false;
} else if (!mouseShown) {
Mouse.show();
mouseShown = true;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 2
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
if (Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x)))) > 100) {
_parent.prevFrame();
}
this._y = _root._ymouse;
this._x = _root._xmouse;
if ((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 500)) {
Mouse.hide();
}
}
Symbol 917 MovieClip Frame 3
function lose() {
delay = getTimer();
}
stop();
_root.bonus = 0;
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 3
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
this._y = _root._ymouse;
this._x = _root._xmouse;
if (((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 400)) && (!_root.gamePaused)) {
Mouse.hide();
mouseShown = false;
} else if (!mouseShown) {
Mouse.show();
mouseShown = true;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 4
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
if (Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x)))) > 100) {
_parent.prevFrame();
}
this._y = _root._ymouse;
this._x = _root._xmouse;
if ((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 500)) {
Mouse.hide();
}
}
Symbol 917 MovieClip Frame 5
function lose() {
delay = getTimer();
}
stop();
delay = getTimer() + 1E68;
onSwitch = false;
_root.bonus = 0;
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 5
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
this._y = _root._ymouse;
this._x = _root._xmouse;
if ((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 500)) {
Mouse.hide();
}
}
Symbol 917 MovieClip Frame 6
stop();
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 6
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
if (Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x)))) > 100) {
_parent.prevFrame();
}
this._y = _root._ymouse;
this._x = _root._xmouse;
if ((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 500)) {
Mouse.hide();
}
}
Symbol 917 MovieClip Frame 7
function lose() {
delay = getTimer();
}
stop();
delay = getTimer() + 1E68;
onSwitch = false;
_root.bonus = 0;
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 7
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
this._y = _root._ymouse;
this._x = _root._xmouse;
if ((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 500)) {
Mouse.hide();
}
}
Symbol 917 MovieClip Frame 8
stop();
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 882 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty == "easy") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 456 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (enterFrame) {
if (_root.difficulty != "Hard") {
this._x = -5000;
}
}
Instance of Symbol 872 MovieClip in Symbol 917 MovieClip Frame 8
onClipEvent (load) {
var speed = 4;
}
onClipEvent (enterFrame) {
if (Math.round(Math.sqrt(((_root._ymouse - this._y) * (_root._ymouse - this._y)) + ((_root._xmouse - this._x) * (_root._xmouse - this._x)))) > 100) {
_parent.prevFrame();
}
this._y = _root._ymouse;
this._x = _root._xmouse;
if ((((_x > 0) && (_x < 650)) && (_y > 0)) && (_y < 500)) {
Mouse.hide();
}
}
Symbol 941 MovieClip Frame 1
stop();
Symbol 979 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 1
stop();
Symbol 993 MovieClip Frame 3
gotoAndStop (1);
Symbol 995 Button
on (press) {
relativearea = _root.pixel1._width;
relativex = _root.pixel1._x - relativearea;
relativey = _root.pixel1._y - relativearea;
rowslength = 6;
column = Math.round((_root._xmouse - relativex) / relativearea);
row = Math.round((_root._ymouse - relativey) / relativearea);
pixelpressed = (column + (6 * row)) - 6;
if (_root.lockinPlace) {
if (!_root["pixel" + pixelpressed].lockinPlace) {
_root.lockinPlace = false;
_root["pixel" + pixelpressed].lockinPlace = true;
_root.numberofLocks--;
}
} else {
_root.clicks++;
if (!_root["pixel" + pixelpressed].lockinPlace) {
_root["pixel" + pixelpressed].nextFrame();
if (column > 1) {
if (!_root["pixel" + (pixelpressed - 1)].lockinPlace) {
_root["pixel" + (pixelpressed - 1)].nextFrame();
}
}
if (column < 6) {
if (!_root["pixel" + (pixelpressed + 1)].lockinPlace) {
_root["pixel" + (pixelpressed + 1)].nextFrame();
}
}
if (row > 1) {
if (!_root["pixel" + (pixelpressed - 6)].lockinPlace) {
_root["pixel" + (pixelpressed - 6)].nextFrame();
}
}
if (row < 6) {
if (!_root["pixel" + (pixelpressed + 6)].lockinPlace) {
_root["pixel" + (pixelpressed + 6)].nextFrame();
}
}
}
}
gameComplete = true;
trace("---------");
i = 1;
while (i <= 36) {
if (_root["pixel" + i]._currentframe != _root.chosenLevel[i - 1]) {
gameComplete = false;
trace(" pixel" + i);
}
i++;
}
if (gameComplete) {
_root.gotoAndStop("Pixel Image Win");
}
}
Symbol 1001 Button
on (release) {
_root.lockinPlace = true;
}
Symbol 1003 MovieClip Frame 1
stop();
Symbol 1006 Button
on (release) {
i = 1;
while (i <= 36) {
_root["pixel" + i].gotoAndStop(1);
i++;
}
_root.numberofLocks = 10 - (4 * (_root.difficulty == "Hard"));
_root.clicks = 0;
_root.score = 0;
}
Symbol 1027 MovieClip Frame 1
stop();
Symbol 1029 Button
on (press) {
relativearea = _root.pixel1._width;
relativex = _root.pixel1._x - relativearea;
relativey = _root.pixel1._y - relativearea;
rowslength = 8;
column = Math.round((_root._xmouse - relativex) / relativearea);
row = Math.round((_root._ymouse - relativey) / relativearea);
pixelpressed = (column + (8 * row)) - 8;
if (_root.lockinPlace) {
if (!_root["pixel" + pixelpressed].lockinPlace) {
_root.lockinPlace = false;
_root["pixel" + pixelpressed].lockinPlace = true;
_root.numberofLocks--;
}
} else {
_root.clicks++;
if (!_root["pixel" + pixelpressed].lockinPlace) {
_root["pixel" + pixelpressed].nextFrame();
if (column > 1) {
if (!_root["pixel" + (pixelpressed - 1)].lockinPlace) {
_root["pixel" + (pixelpressed - 1)].nextFrame();
}
}
if (column < 8) {
if (!_root["pixel" + (pixelpressed + 1)].lockinPlace) {
_root["pixel" + (pixelpressed + 1)].nextFrame();
}
}
if (row > 1) {
if (!_root["pixel" + (pixelpressed - 8)].lockinPlace) {
_root["pixel" + (pixelpressed - 8)].nextFrame();
}
}
if (row < 8) {
if (!_root["pixel" + (pixelpressed + 8)].lockinPlace) {
_root["pixel" + (pixelpressed + 8)].nextFrame();
}
}
}
}
gameComplete = true;
trace("---------");
i = 1;
while (i <= 64) {
if (_root["pixel" + i]._currentframe != _root.chosenLevel[i - 1]) {
gameComplete = false;
trace(" pixel" + i);
}
i++;
}
if (gameComplete) {
_root.gotoAndStop("Pixel Image Win");
}
}
Instance of Symbol 1045 MovieClip in Symbol 1046 MovieClip Frame 1
onClipEvent (enterFrame) {
this._y = -(_root.spaceship.yStagePosition / 16.6666666666667);
this._x = -(_root.spaceship.xStagePosition / 21.6666666666667);
}
Symbol 1052 MovieClip Frame 1
stop();
Symbol 1052 MovieClip Frame 2
_root.gamePaused = true;
Symbol 1052 MovieClip Frame 41
_root.gamePaused = false;
Symbol 1071 MovieClip Frame 1
stop();
Symbol 1084 MovieClip Frame 1
_visible = false;
Symbol 1084 MovieClip Frame 40
_visible = false;
Symbol 1086 MovieClip Frame 1
stop();
Symbol 1086 MovieClip Frame 60
stop();
if (this.hitTest(_root.rocket)) {
play();
idead = true;
}
Symbol 1086 MovieClip Frame 115
_root.levelOver = false;
idead = false;
_root.prog.called = false;
Symbol 1126 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 1
stop();
Symbol 1141 MovieClip Frame 21
stop();
this.removeMovieClip(this);
Symbol 1146 MovieClip Frame 1
stop();
Symbol 1168 MovieClip Frame 1
stop();
Symbol 1201 MovieClip Frame 1
stop();
Symbol 1218 MovieClip Frame 1
stop();
Symbol 1218 MovieClip Frame 14
_root.new_x = Math.round(Math.random() * 7) + 1;
_root.new_y = Math.round(Math.random() * 7) + 1;
while ((_root.new_x == _root.blue.gridx) && (_root.new_y == _root.blue.gridy)) {
_root.new_x = Math.round(Math.random() * 7) + 1;
_root.new_y = Math.round(Math.random() * 7) + 1;
}
Symbol 1242 MovieClip Frame 1
stop();
Symbol 1257 MovieClip Frame 1
stop();
Symbol 1292 MovieClip Frame 1
stop();
Symbol 1314 MovieClip Frame 1
stop();
Symbol 1337 MovieClip Frame 1
stop();