Frame 1
Agame = 1;
Gamecn = 2;
zapjuegos = 3;
Spel = 4;
Jeu = 5;
Spielen = 6;
Clickjogos = 7;
Gioco = 8;
Spelse = 9;
Ourgames = 10;
Gry = 11;
Gamecoid = 12;
Gamecoin = 13;
CurrentBrand = 1;
TextArr = new Array();
MenuTextArr = new Array();
BrandArr = new Array();
BrandArr[1] = new Array();
BrandArr[1][1] = "http://moregames.agame.com/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[1][2] = "http://freegames.agame.com/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[1][3] = 1;
BrandArr[3] = new Array();
BrandArr[3][1] = "http://www.zapjuegos.com/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[3][2] = "http://www.zapjuegos.com/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[3][3] = 9;
BrandArr[4] = new Array();
BrandArr[4][1] = "http://www.spel.nl/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[4][2] = "http://www.spel.nl/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[4][3] = 3;
BrandArr[5] = new Array();
BrandArr[5][1] = "http://www.jeu.fr/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[5][2] = "http://www.jeu.fr/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[5][3] = 4;
BrandArr[6] = new Array();
BrandArr[6][1] = "http://www.spielen.com/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[6][2] = "http://www.spielen.com/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[6][3] = 5;
BrandArr[7] = new Array();
BrandArr[7][1] = "http://www.clickjogos.com/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[7][2] = "http://www.clickjogos.com/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[7][3] = 10;
BrandArr[8] = new Array();
BrandArr[8][1] = "http://www.gioco.it/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[8][2] = "http://www.gioco.it/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[8][3] = 8;
BrandArr[9] = new Array();
BrandArr[9][1] = "http://www.spela.se/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[9][2] = "http://www.spela.se/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[9][3] = 7;
BrandArr[10] = new Array();
BrandArr[10][1] = "http://www.ourgames.ru/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[10][2] = "http://www.ourgames.ru/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[10][3] = 12;
BrandArr[11] = new Array();
BrandArr[11][1] = "http://www.gry.pl/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[11][2] = "http://www.gry.pl/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[11][3] = 6;
BrandArr[12] = new Array();
BrandArr[12][1] = "http://www.games.co.id/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[12][2] = "http://www.games.co.id/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[12][3] = 13;
BrandArr[13] = new Array();
BrandArr[13][1] = "http://www.game.co.in/moregames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[13][2] = "http://www.game.co.in/freegames/?utm_source=brandedgames&utm_medium=demoman";
BrandArr[13][3] = 1;
MenuTextArr[1] = new Array();
MenuTextArr[1][0] = "More free online games at";
MenuTextArr[1][1] = "Start Game";
MenuTextArr[1][2] = "How to play";
MenuTextArr[1][3] = "Highscores";
MenuTextArr[1][4] = "More Games";
MenuTextArr[1][5] = "3000+ GAMES";
MenuTextArr[1][6] = "Free Games for your site";
TextArr[1] = new Array();
TextArr[1][0] = "New Game";
TextArr[1][1] = "Controls";
TextArr[1][2] = "Continue";
TextArr[1][3] = "Settings";
TextArr[1][4] = "Hit";
TextArr[1][5] = "Pull";
TextArr[1][6] = "Score";
TextArr[1][7] = "Target";
TextArr[1][8] = "Level Succesful!";
TextArr[1][9] = "Bonus";
TextArr[1][10] = "Total";
TextArr[1][11] = "Graphics quality";
TextArr[1][12] = "Go!";
TextArr[1][13] = "Score+ ";
TextArr[1][14] = "Game Over";
TextArr[1][15] = "Click";
TextArr[1][16] = "Upgrade";
TextArr[1][17] = "Fill in your name";
MenuTextArr[3] = new Array();
MenuTextArr[3][0] = "Meer gratis spellen op";
MenuTextArr[3][1] = "Start spel";
MenuTextArr[3][2] = "Spel uitleg";
MenuTextArr[3][3] = "Highscores";
MenuTextArr[3][4] = "Meer Spellen";
MenuTextArr[3][5] = "3000+ Spellen";
MenuTextArr[3][6] = "Gratis spellen voor jouw website";
TextArr[3] = new Array();
TextArr[3][0] = "Nieuw Spel";
TextArr[3][1] = "Bediening";
TextArr[3][2] = "Doorgaan";
TextArr[3][3] = "Instellingen";
TextArr[3][4] = "Raak";
TextArr[3][5] = "Trek";
TextArr[3][6] = "Score";
TextArr[3][7] = "Doel ";
TextArr[3][8] = "Level Behaald!";
TextArr[3][9] = "Bonus";
TextArr[3][10] = "Totaal";
TextArr[3][11] = "Weergave kwaliteit";
TextArr[3][12] = "Af!";
TextArr[3][13] = "Score+ ";
TextArr[3][14] = "Spel Over";
TextArr[3][15] = "Klik";
TextArr[3][16] = "Upwaarderen";
TextArr[3][17] = "Vul je naam in";
MenuTextArr[4] = new Array();
MenuTextArr[4][0] = "Plus de jeux gratuits en ligne sur";
MenuTextArr[4][1] = "JOUER";
MenuTextArr[4][2] = "INSTRUCTIONS";
MenuTextArr[4][3] = "MEILLEURS SCORES";
MenuTextArr[4][4] = "PLUS DE JEUX";
MenuTextArr[4][5] = "+ DE 3000 JEUX";
MenuTextArr[4][6] = "JEUX GRATUITS EN LIGNE POUR TON SITE";
TextArr[4] = new Array();
TextArr[4][0] = "Nouveau jeu";
TextArr[4][1] = "Commandes";
TextArr[4][2] = "Continuer";
TextArr[4][3] = "Param\u00E8tres";
TextArr[4][4] = "D\u00E9truire";
TextArr[4][5] = "Tirer";
TextArr[4][6] = "Score";
TextArr[4][7] = "Objectif";
TextArr[4][8] = "Niveau complet!";
TextArr[4][9] = "Bonus";
TextArr[4][10] = "Total";
TextArr[4][11] = "Qualit\u00E9 graphique";
TextArr[4][12] = "Go!";
TextArr[4][13] = "Score+ ";
TextArr[4][14] = "Perdu";
TextArr[4][15] = "Cliquer";
TextArr[4][16] = "Am\u00E9lioration";
TextArr[4][17] = "Entre ton nom";
MenuTextArr[5] = new Array();
MenuTextArr[5][0] = "Mehr kostenlose Spiele auf";
MenuTextArr[5][1] = "SPIEL STARTEN";
MenuTextArr[5][2] = "ANLEITUNG";
MenuTextArr[5][3] = "HIGHSCORES";
MenuTextArr[5][4] = "MEHR SPIELE";
MenuTextArr[5][5] = "\u00DCBER 3000 SPIELE";
MenuTextArr[5][6] = "KOSTENLOSE SPIELE F\u00DCR DEINE WEBSITE";
TextArr[5] = new Array();
TextArr[5][0] = "Neues Spiel";
TextArr[5][1] = "Steuerung";
TextArr[5][2] = "Weiter";
TextArr[5][3] = "Einstellungen";
TextArr[5][4] = "Zerschlagen";
TextArr[5][5] = "Ziehen";
TextArr[5][6] = "Punkte";
TextArr[5][7] = "Ziel";
TextArr[5][8] = "Level beendet!";
TextArr[5][9] = "Bonus";
TextArr[5][10] = "Total";
TextArr[5][11] = "Grafikqualit\u00E4t";
TextArr[5][12] = "Los!";
TextArr[5][13] = "Punkte+ ";
TextArr[5][14] = "Game Over";
TextArr[5][15] = "Klicken";
TextArr[5][16] = "Upgrade";
TextArr[5][17] = "Gib deinen Namen ein";
MenuTextArr[6] = new Array();
MenuTextArr[6][0] = "Wi\u0119cej darmowych gier online na";
MenuTextArr[6][1] = "START";
MenuTextArr[6][2] = "JAK GRA\u0106";
MenuTextArr[6][3] = "RANKING";
MenuTextArr[6][4] = "WI\u0118CEJ GIER";
MenuTextArr[6][5] = "3000+ GIER";
MenuTextArr[6][6] = "DARMOWE GRY NA STRON\u0118";
TextArr[6] = new Array();
TextArr[6][0] = "Nowa gra";
TextArr[6][1] = "Sterowanie";
TextArr[6][2] = "Dalej";
TextArr[6][3] = "Ustawienia";
TextArr[6][4] = "Uderz";
TextArr[6][5] = "Poci\u0105gnij";
TextArr[6][6] = "Ranking";
TextArr[6][7] = "Cel";
TextArr[6][8] = "Poziom uko\u0144czony!";
TextArr[6][9] = "Bonus";
TextArr[6][10] = "W sumie";
TextArr[6][11] = "Jako\u015B\u0107 grafiki";
TextArr[6][12] = "Naprz\u00F3d!";
TextArr[6][13] = "Wynik+";
TextArr[6][14] = "Koniec gry";
TextArr[6][15] = "Kliknij";
TextArr[6][16] = "Ulepsz";
TextArr[6][17] = "Wpisz swoje imi\u0119";
MenuTextArr[7] = new Array();
MenuTextArr[7][0] = "Fler gratis onlinespel hos";
MenuTextArr[7][1] = "STARTA SPEL";
MenuTextArr[7][2] = "SPELR\u00C5D";
MenuTextArr[7][3] = "TOPPO\u00C4NG";
MenuTextArr[7][4] = "FLER SPEL";
MenuTextArr[7][5] = "3 000+ SPEL";
MenuTextArr[7][6] = "FLER SPEL TILL DIN HEMSIDA";
TextArr[7] = new Array();
TextArr[7][0] = "Nytt spel";
TextArr[7][1] = "Kontroller";
TextArr[7][2] = "Forts\u00E4tt";
TextArr[7][3] = "Inst\u00E4llningar";
TextArr[7][4] = "Krossa";
TextArr[7][5] = "Dra";
TextArr[7][6] = "Po\u00E4ng";
TextArr[7][7] = "M\u00E5l";
TextArr[7][8] = "Niv\u00E5 klarad!";
TextArr[7][9] = "Bonus";
TextArr[7][10] = "Totalt";
TextArr[7][11] = "Grafikkvalitet";
TextArr[7][12] = "K\u00F6r!";
TextArr[7][13] = "Po\u00E4ng+";
TextArr[7][14] = "Game Over ";
TextArr[7][15] = "Klicka";
TextArr[7][16] = "Uppgradera";
TextArr[7][17] = "Ange ditt namn";
MenuTextArr[8] = new Array();
MenuTextArr[8][0] = "Altri giochi online gratis su:";
MenuTextArr[8][1] = "AVVIA PARTITA";
MenuTextArr[8][2] = "REGOLE";
MenuTextArr[8][3] = "RECORD";
MenuTextArr[8][4] = "ALTRI GIOCHI";
MenuTextArr[8][5] = "OLTRE 3000 GIOCHI";
MenuTextArr[8][6] = "GIOCHI GRATUITI PER IL TUO SITO";
TextArr[8] = new Array();
TextArr[8][0] = "Nuova partita";
TextArr[8][1] = "Comandi";
TextArr[8][2] = "Continua";
TextArr[8][3] = "Impostazioni";
TextArr[8][4] = "Colpisci";
TextArr[8][5] = "Tira";
TextArr[8][6] = "Punteggio";
TextArr[8][7] = "Obiettivo";
TextArr[8][8] = "Livello completato!";
TextArr[8][9] = "Bonus";
TextArr[8][10] = "Totale";
TextArr[8][11] = "Qualit\u00E0 grafica";
TextArr[8][12] = "Via!";
TextArr[8][13] = "+";
TextArr[8][14] = "Game Over";
TextArr[8][15] = "Fai clic";
TextArr[8][16] = "Potenzia";
TextArr[8][17] = "Digita il tuo nome";
MenuTextArr[9] = new Array();
MenuTextArr[9][0] = "M\u00E1s juegos en l\u00EDnea gratuitos en";
MenuTextArr[9][1] = "INICIAR PARTIDA";
MenuTextArr[9][2] = "C\u00D3MO JUGAR";
MenuTextArr[9][3] = "PUNTUACIONES M\u00C1XIMAS";
MenuTextArr[9][4] = "M\u00C1S JUEGOS";
MenuTextArr[9][5] = "3000+ JUEGOS";
MenuTextArr[9][6] = "JUEGOS GRATIS PARA TU WEB";
TextArr[9] = new Array();
TextArr[9][0] = "Nueva partida";
TextArr[9][1] = "Controles";
TextArr[9][2] = "Continuar";
TextArr[9][3] = "Ajustes";
TextArr[9][4] = "Golpear";
TextArr[9][5] = "Tirar";
TextArr[9][6] = "Puntuaci\u00F3n";
TextArr[9][7] = "Objetivo";
TextArr[9][8] = "Nivel superado";
TextArr[9][9] = "Bonificaci\u00F3n";
TextArr[9][10] = "Total";
TextArr[9][11] = "Calidad de gr\u00E1ficos";
TextArr[9][12] = "\u00A1Ya!";
TextArr[9][13] = "Puntuaci\u00F3n+";
TextArr[9][14] = "Fin de partida";
TextArr[9][15] = "Hacer clic";
TextArr[9][16] = "Mejora";
TextArr[9][17] = "Escribe tu nombre";
MenuTextArr[10] = new Array();
MenuTextArr[10][0] = "Mais jogos gr\u00E1tis em";
MenuTextArr[10][1] = "COME\u00C7AR";
MenuTextArr[10][2] = "COMO JOGAR";
MenuTextArr[10][3] = "RECORDES";
MenuTextArr[10][4] = "MAIS JOGOS";
MenuTextArr[10][5] = "MAIS DE 3000 JOGOS";
MenuTextArr[10][6] = "JOGOS GR\u00C1TIS PARA O SEU S\u00CDTIO";
TextArr[10] = new Array();
TextArr[10][0] = "Nova Partida";
TextArr[10][1] = "Controles";
TextArr[10][2] = "Continuar";
TextArr[10][3] = "Configura\u00E7\u00F5es";
TextArr[10][4] = "Bater";
TextArr[10][5] = "Puxar";
TextArr[10][6] = "Pontua\u00E7\u00E3o";
TextArr[10][7] = "Meta";
TextArr[10][8] = "N\u00EDvel conclu\u00EDdo!";
TextArr[10][9] = "Pr\u00EAmio";
TextArr[10][10] = "Total";
TextArr[10][11] = "Qualidade gr\u00E1fica";
TextArr[10][12] = "J\u00E1!";
TextArr[10][13] = "Pontos+";
TextArr[10][14] = "Acabou!";
TextArr[10][15] = "Clique";
TextArr[10][16] = "Melhoramento";
TextArr[10][17] = "Escreva seu nome aqui";
MenuTextArr[11] = new Array();
MenuTextArr[11][0] = "Mais jogos online gratuitos em";
MenuTextArr[11][1] = "INICIAR JOGO";
MenuTextArr[11][2] = "COMO JOGAR";
MenuTextArr[11][3] = "PONTUA\u00C7\u00D5ES MAIS ALTAS";
MenuTextArr[11][4] = "MAIS JOGOS";
MenuTextArr[11][5] = "+ DE 3000 JOGOs";
MenuTextArr[11][6] = "JOGOS GRATUITOS PARA O SEU SITE";
TextArr[11] = new Array();
TextArr[11][0] = "Novo jogo";
TextArr[11][1] = "Controlos";
TextArr[11][2] = "Continuar";
TextArr[11][3] = "Defini\u00E7\u00F5es";
TextArr[11][4] = "Atacar";
TextArr[11][5] = "Puxar";
TextArr[11][6] = "Pontua\u00E7\u00E3o";
TextArr[11][7] = "Objectivo";
TextArr[11][8] = "N\u00EDvel terminado!";
TextArr[11][9] = "B\u00F3nus";
TextArr[11][10] = "Total";
TextArr[11][11] = "Qualidade gr\u00E1fica";
TextArr[11][12] = "Partida!";
TextArr[11][13] = "Pontua\u00E7\u00E3o+";
TextArr[11][14] = "Fim do jogo";
TextArr[11][15] = "Clicar";
TextArr[11][16] = "Actualizar";
TextArr[11][17] = "Introduza o seu nome";
MenuTextArr[12] = new Array();
MenuTextArr[12][0] = "\u0411\u043E\u043B\u044C\u0448\u0435 \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u044B\u0445 \u0438\u0433\u0440 \u043D\u0430";
MenuTextArr[12][1] = "\u0421\u0422\u0410\u0420\u0422";
MenuTextArr[12][2] = "\u0418\u041D\u0421\u0422\u0420\u0423\u041A\u0426\u0418\u042F";
MenuTextArr[12][3] = "\u0420\u0410\u041D\u041A\u0418\u041D\u0413";
MenuTextArr[12][4] = "\u0411\u041E\u041B\u042C\u0428\u0415 \u0418\u0413\u0420";
MenuTextArr[12][5] = "3000+ \u0418\u0413\u0420";
MenuTextArr[12][6] = "\u0411\u0415\u0421\u041F\u041B\u0410\u0422\u041D\u042B\u0415 \u0418\u0413\u0420\u042B \u0414\u041B\u042F \u0421\u0410\u0419\u0422\u0410";
TextArr[12] = new Array();
TextArr[12][0] = "\u041D\u043E\u0432\u0430\u044F \u0438\u0433\u0440\u0430";
TextArr[12][1] = "\u0423\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u0438\u0435";
TextArr[12][2] = "\u0414\u0430\u043B\u044C\u0448\u0435";
TextArr[12][3] = "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438";
TextArr[12][4] = "\u0423\u0434\u0430\u0440\u0438\u0442\u044C";
TextArr[12][5] = "\u0422\u044F\u043D\u0443\u0442\u044C";
TextArr[12][6] = "\u0420\u0430\u043D\u043A\u0438\u043D\u0433";
TextArr[12][7] = "\u0426\u0435\u043B\u044C";
TextArr[12][8] = "\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043D!";
TextArr[12][9] = "\u0411\u043E\u043D\u0443\u0441";
TextArr[12][10] = "\u0412\u0441\u0435\u0433\u043E";
TextArr[12][11] = "\u041A\u0430\u0447\u0435\u0441\u0442\u0432\u043E \u0433\u0440\u0430\u0444\u0438\u043A\u0438";
TextArr[12][12] = "\u0412\u043F\u0435\u0440\u0435\u0434!";
TextArr[12][13] = "\u0420\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442+";
TextArr[12][14] = "\u0418\u0433\u0440\u0430 \u043A\u043E\u043D\u0447\u0435\u043D\u0430";
TextArr[12][15] = "\u0429\u0435\u043B\u043A\u043D\u0438\u0442\u0435";
TextArr[12][16] = "\u0423\u043B\u0443\u0447\u0448\u0438\u0442\u044C";
TextArr[12][17] = "\u0412\u043F\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0435 \u0438\u043C\u044F";
MenuTextArr[13] = new Array();
MenuTextArr[13][0] = "Lebih banyak lagi permainan online gratis di:";
MenuTextArr[13][1] = "MEMULAI PERMAINAN";
MenuTextArr[13][2] = "CARA BERMAIN";
MenuTextArr[13][3] = "SKOR TERTINGGI";
MenuTextArr[13][4] = "LEBIH BANYAK PERMAINAN LAGI";
MenuTextArr[13][5] = "3000+ PERMAINAN";
MenuTextArr[13][6] = "PERMAINAN GRATIS LAINNYA";
TextArr[13] = new Array();
TextArr[13][0] = "Permainan baru";
TextArr[13][1] = "Kontrol";
TextArr[13][2] = "Lanjut";
TextArr[13][3] = "Pengaturan";
TextArr[13][4] = "Memukul";
TextArr[13][5] = "Menarik";
TextArr[13][6] = "Skor";
TextArr[13][7] = "Sasaran";
TextArr[13][8] = "Level sukses!";
TextArr[13][9] = "Bonus";
TextArr[13][10] = "Total";
TextArr[13][11] = "Kualitas grafik";
TextArr[13][12] = "Maju!";
TextArr[13][13] = "Skor+";
TextArr[13][14] = "Berakhir";
TextArr[13][15] = "Klik";
TextArr[13][16] = "Upgrade";
TextArr[13][17] = "Masukkan nama anda";
CurrentLanguage = BrandArr[CurrentBrand][3];
for (var i in MenuTextArr[CurrentLanguage]) {
this["MenuTekst" + i] = MenuTextArr[CurrentLanguage][i];
}
for (var i in TextArr[CurrentLanguage]) {
this["Tekst" + i] = TextArr[CurrentLanguage][i];
}
Brand.gotoAndStop(CurrentBrand);
_root.localization_url1 = BrandArr[CurrentBrand][1];
_root.localization_url2 = BrandArr[CurrentBrand][2];
MovieClip.prototype._tint = function (r, g, b, amount) {
trans = new Object();
trans.ra = (trans.ga = (trans.ba = 100 - amount));
ratio = amount / 100;
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
myColor = new Color(this);
myColor.setTransform(trans);
};
this.onEnterFrame = function () {
this.Percentage = Math.round((this.getBytesLoaded() / this.getBytesTotal()) * 100);
this.PreLoad.LoadingTekst = ("Loading... " + Percentage) + " % ";
this.PreLoad.Bar._xscale = this.Percentage;
if (Percentage > 99) {
this.PreLoad.gotoAndPlay(this.PreLoad._currentframe + 1);
trace(this.PreLoad._currentframe);
this.onEnterFrame = function () {
};
}
};
stop();
Frame 2
Brand.gotoAndStop(CurrentBrand);
stop();
var i = 1;
while (i < 5) {
this["Type" + i] = 1;
i++;
}
StartDifficulty = 0;
DifficultyIncrease = 1;
StartTarget = 2;
TargetIncrease = 3;
HookIntro = 2;
BombIntro = 4;
BeginFrame = 2;
Colors = new Array();
Colors[0] = new Array();
Colors[0][1] = 37;
Colors[0][2] = 168;
Colors[0][3] = 224;
Colors[1] = new Array();
Colors[1][1] = 1;
Colors[1][2] = 107;
Colors[1][3] = 155;
Colors[2] = new Array();
Colors[2][1] = 251;
Colors[2][2] = 201;
Colors[2][3] = 4;
Colors[3] = new Array();
Colors[3][1] = 255;
Colors[3][2] = 163;
Colors[3][3] = 199;
Colors[4] = new Array();
Colors[4][1] = 253;
Colors[4][2] = 237;
Colors[4][3] = 171;
Colors[5] = new Array();
Colors[5][1] = 255;
Colors[5][2] = 51;
Colors[5][3] = 102;
Transy = TransitionHelper._y;
TransitionHelper._visible = false;
TransitionState = "Done";
Bonus = 0;
StartTransition = function (Type, Num, Func) {
if (TransitionState == "Ready") {
TransitionState = "Starting";
TransitionType = Type;
TransitionNum = Num;
TransitionHelper.gotoAndStop(TransitionNum);
TransitionFunc = Func;
}
};
SettingsShow = function () {
TransitionHelper._visible = true;
};
PausedShow = function () {
TransitionHelper._visible = true;
};
UpgradeType = function (Num) {
if (this["Type" + Num] < 5) {
this["Type" + Num]++;
StartTransition("VerticalOut", 7, Game.FinishLevel);
}
};
UpgradeScreen = function () {
StartTransition("VerticalIn", 7, UpgradeMain);
};
UpgradeMain = function () {
TransitionHelper._visible = true;
};
TransitionHandling = function () {
if (TransitionState == "Starting") {
TransitionHelper.gotoAndStop(TransitionNum);
TransitionHelper._visible = true;
switch (TransitionType) {
case "AlphaIn" :
this.TransTween = new mx.transitions.Tween(TransitionHelper, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
break;
case "AlphaOut" :
this.TransTween = new mx.transitions.Tween(TransitionHelper, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
break;
case "VerticalIn" :
this.TransTween = new mx.transitions.Tween(TransitionHelper, "_y", mx.transitions.easing.Bounce.easeOut, TransitionHelper._y - 900, TransitionHelper._y, 1, true);
break;
case "VerticalOut" :
this.TransTween = new mx.transitions.Tween(TransitionHelper, "_y", mx.transitions.easing.Bounce.easeOut, TransitionHelper._y, TransitionHelper._y - 900, 1, true);
break;
case "Wait" :
TransitionWait = 150;
}
this.TransTween.onMotionFinished = function () {
TransitionState = "Done";
};
TransitionState = "Handling";
} else if (TransitionState == "Done") {
TransitionHelper._visible = false;
TransitionHelper._y = Transy;
TransitionHelper._alpha = 100;
TransitionWait = 0;
TransitionState = "Ready";
TransitionFunc();
} else if (TransitionWait > 0) {
TransitionWait--;
if (TransitionWait == 1) {
TransitionState = "Done";
}
}
};
GameOver = function () {
if (GameOver != true) {
GameOver = true;
CheckHighScore();
}
};
EndGameStart = function () {
TransitionHelper._visible = true;
StartTransition("Wait", 12, EndGameMiddle);
};
EndGameMiddle = function () {
TransitionHelper._visible = true;
StartTransition("AlphaOut", 12, CheckHighScore);
};
MapToGameTrans = function () {
Level++;
gotoAndStop(BeginFrame + 2);
Game.Pauze = true;
TransitionHelper._visible = true;
StartTransition("AlphaOut", 1, Tutorial);
};
Tutorial = function () {
switch (Level) {
case 1 :
TutNum = 3;
StartTransition("VerticalIn", TutNum, TutorialWait);
PlaySound(Beep);
return;
case HookIntro :
TutNum = 4;
StartTransition("VerticalIn", TutNum, TutorialWait);
PlaySound(Beep);
return;
case HookIntro + 1 :
TutNum = 5;
StartTransition("VerticalIn", TutNum, TutorialWait);
PlaySound(Beep);
return;
case BombIntro :
TutNum = 6;
StartTransition("VerticalIn", TutNum, TutorialWait);
PlaySound(Beep);
return;
default :
Game.Pauze = false;
}
};
InitASound = function (Name) {
this[Name] = new Sound();
this[Name].attachSound(Name);
};
SoundInit = function () {
if (SoundInited != true) {
InitASound("Music");
InitASound("Beep");
InitASound("Beep_out");
InitASound("cheer");
InitASound("MotorStart");
InitASound("bounce");
InitASound("whoosh");
InitASound("fireworks");
var _local1 = 1;
while (_local1 < 4) {
InitASound("Expl" + _local1);
_local1++;
}
_local1 = 1;
while (_local1 < 4) {
InitASound("laugh" + _local1);
_local1++;
}
SoundInited = true;
}
if (local_settings.data.Music == true) {
if (MusicStarted != true) {
Music.start(0, 99);
MusicStarted = true;
}
} else {
Music.stop();
MusicStarted = false;
}
};
PlaySound = function (Snd) {
if (local_settings.data.Sounds == true) {
Snd.start();
}
};
SetQuality = function (Value) {
_root._quality = Value;
switch (Value) {
case "high" :
Particles = 6;
break;
case "medium" :
Particles = 3;
break;
case "low" :
Particles = 2;
}
local_settings.data.Quality = Value;
local_settings.flush();
};
SettingsInit = function () {
local_settings = SharedObject.getLocal("Ronimo_Demoman_settings");
if (local_settings.data.SettingsSaved == true) {
} else {
local_settings.data.Quality = "medium";
local_settings.data.Music = false;
local_settings.data.Sounds = true;
local_settings.data.SettingsSaved = true;
SetQuality("medium");
}
local_settings.flush();
SetQuality(local_settings.data.Quality);
};
HighScoreInit = function () {
local_high = SharedObject.getLocal("Ronimo_Demoman_scores");
Scores = new Array();
if (local_high.data.ScoreSaved == true) {
var _local1 = 1;
while (_local1 < 6) {
Scores[_local1] = new Array();
Scores[_local1][0] = local_high.data["Name" + _local1];
Scores[_local1][1] = local_high.data["Score" + _local1];
_local1++;
}
}
if ((Scores[5][0] == "Martijn") or (Scores[5][0] == undefined)) {
var _local1 = 1;
while (_local1 < 6) {
Scores[_local1] = new Array();
Scores[_local1][1] = ((7 - _local1) * (7 - _local1)) * Math.pow(10, Math.round((7 - _local1) / 1.2));
_local1++;
}
Scores[1][0] = "Fabian";
Scores[2][0] = "Gijs";
Scores[3][0] = "Joost";
Scores[4][0] = "Jasper";
Scores[5][0] = "Martijn";
}
FillHighScore();
};
FillHighScore = function () {
HighScore.Names = "";
HighScore.Scores = "";
var _local2 = 1;
while (_local2 < 6) {
this["HighName" + _local2] = Scores[_local2][0];
this["HighScore" + _local2] = Scores[_local2][1];
_local2++;
}
_local2 = 1;
while (_local2 < 6) {
local_high.data["Name" + _local2] = Scores[_local2][0];
local_high.data["Score" + _local2] = Scores[_local2][1];
_local2++;
}
local_high.data.ScoreSaved = true;
local_high.flush();
};
CheckHighScore = function () {
Score = TotalScore;
Scoreplaats = undefined;
var _local2 = false;
var _local1 = 5;
while (_local1 > 0) {
if (Scores[_local1][1] < Score) {
_local2 = true;
} else if (_local2 == true) {
Scoreplaats = _local1 + 1;
break;
}
_local1--;
}
if (_local2 == true) {
if (Scoreplaats == undefined) {
Scoreplaats = 1;
}
}
if (Scoreplaats != undefined) {
_local1 = 5;
while (_local1 > Scoreplaats) {
Scores[_local1][0] = Scores[_local1 - 1][0];
Scores[_local1][1] = Scores[_local1 - 1][1];
_local1--;
}
Scores[Scoreplaats][1] = Score;
ScoreFillName();
StartTransition("VerticalIn", 9, FillInHigh);
} else {
StartTransition("VerticalIn", 8, GameOverWait);
}
};
GameOverWait = function () {
TransitionHelper._visible = true;
StartTransition("Wait", 8, GameOverDone);
onMouseDown = function () {
TransitionState = "Done";
};
};
GameOverDone = function () {
onMouseDown = function () {
};
StartTransition("VerticalOut", 8, GameToStartInit);
};
FillInHigh = function () {
TransitionHelper._visible = true;
};
HighScoreName = function () {
Scores[Scoreplaats][0] = TransitionHelper.Name.text;
FillHighScore();
StartTransition("VerticalOut", 9, HighScoreShow);
};
HighScoreShow = function () {
StartTransition("VerticalIn", 8, GameOverWait);
};
GameToStartInit = function () {
if (this._currentframe != BeginFrame) {
StartTransition("AlphaIn", 1, GameRestart);
} else {
GameRestart();
}
};
GameRestart = function () {
gotoAndStop(BeginFrame);
};
TutorialWait = function () {
TransitionHelper._visible = true;
StartTransition("Wait", TutNum, TutorialDone);
};
TutorialDone = function () {
TransitionHelper._visible = true;
StartTransition("VerticalOut", TutNum, " ");
PlaySound(Beep_out);
Game.Pauze = false;
};
Init = function () {
HighScoreInit();
SettingsInit();
SoundInit();
};
Init();
this.onEnterFrame = function () {
TransitionHandling();
};
Symbol 29 MovieClip Frame 11
if (_parent.Percentage < 100) {
stop();
}
Symbol 29 MovieClip Frame 21
_parent.nextFrame();
Symbol 29 MovieClip Frame 29
this._visible = false;
stop();
Symbol 66 MovieClip Frame 1
gotoAndStop(_root.localization_branding_nr);
Instance of Symbol 35 MovieClip in Symbol 66 MovieClip Frame 1
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 39 MovieClip in Symbol 66 MovieClip Frame 2
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 41 MovieClip in Symbol 66 MovieClip Frame 3
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 43 MovieClip in Symbol 66 MovieClip Frame 4
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 45 MovieClip in Symbol 66 MovieClip Frame 5
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 47 MovieClip in Symbol 66 MovieClip Frame 6
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 49 MovieClip in Symbol 66 MovieClip Frame 7
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 52 MovieClip in Symbol 66 MovieClip Frame 8
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 55 MovieClip in Symbol 66 MovieClip Frame 9
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 58 MovieClip in Symbol 66 MovieClip Frame 10
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 61 MovieClip in Symbol 66 MovieClip Frame 11
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 63 MovieClip in Symbol 66 MovieClip Frame 12
on (release) {
getURL (_root.localization_url1, "_blank");
}
Instance of Symbol 65 MovieClip in Symbol 66 MovieClip Frame 13
on (release) {
getURL (_root.localization_url1, "_blank");
}
Symbol 571 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 572 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 573 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 574 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce
{
function Bounce () {
}
static function easeOut(t, b, c, d) {
t = t / d;
if (t < 0.363636363636364) {
return((c * ((7.5625 * t) * t)) + b);
}
if (t < 0.727272727272727) {
t = t - 0.545454545454545;
return((c * (((7.5625 * t) * t) + 0.75)) + b);
}
if (t < 0.909090909090909) {
t = t - 0.818181818181818;
return((c * (((7.5625 * t) * t) + 0.9375)) + b);
}
t = t - 0.954545454545455;
return((c * (((7.5625 * t) * t) + 0.984375)) + b);
}
static function easeIn(t, b, c, d) {
return((c - easeOut(d - t, 0, c, d)) + b);
}
static function easeInOut(t, b, c, d) {
if (t < (d / 2)) {
return((easeIn(t * 2, 0, c, d) * 0.5) + b);
}
return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b);
}
static var version = "1.1.0.52";
}
Symbol 575 MovieClip [__Packages.mx.transitions.easing.Regular] Frame 0
class mx.transitions.easing.Regular
{
function Regular () {
}
static function easeIn(t, b, c, d) {
t = t / d;
return(((c * t) * t) + b);
}
static function easeOut(t, b, c, d) {
t = t / d;
return((((-c) * t) * (t - 2)) + b);
}
static function easeInOut(t, b, c, d) {
t = t / (d / 2);
if (t < 1) {
return((((c / 2) * t) * t) + b);
}
t--;
return((((-c) / 2) * ((t * (t - 2)) - 1)) + b);
}
static var version = "1.1.0.52";
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 1
onEnterFrame = function () {
if (this._currentframe == 1) {
if (random(100) > 95) {
this.gotoAndPlay(2);
}
}
};
stop();
Symbol 105 MovieClip Frame 17
gotoAndPlay (1);
Symbol 105 MovieClip Frame 19
Base.gotoAndPlay(1);
Symbol 105 MovieClip Frame 36
gotoAndPlay (20);
Symbol 134 Button
on (release) {
if (_parent.TransitionHelper._visible != true) {
this._parent.PlaySound(this._parent.Beep);
_parent.gotoAndStop(_parent.BeginFrame + 1);
}
}
Symbol 135 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.StartTransition("VerticalIn", 10, this._parent.SettingsShow);
}
Symbol 136 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.StartTransition("VerticalIn", 8, _parent.GameOverWait);
}
Symbol 137 Button
on (release) {
this.getURL(_root.localization_url1, "_blank");
}
Symbol 138 Button
on (release) {
this.getURL(_root.localization_url2, "_blank");
}
Symbol 139 MovieClip Frame 1
stop();
Symbol 143 Button
on (release) {
getURL ("http://www.ronimo-games.com/", _blank);
}
Symbol 181 MovieClip Frame 148
stop();
Symbol 182 MovieClip Frame 25
gotoAndPlay (1);
Symbol 235 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.UpgradeType(2);
}
Symbol 236 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.UpgradeType(3);
}
Symbol 245 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.UpgradeType(4);
}
Symbol 265 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.HighScoreName();
}
Symbol 273 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.SetQuality("low");
InitSwitches();
}
Symbol 274 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
if (_parent.local_settings.data.Music == false) {
_parent.local_settings.data.Music = true;
} else {
_parent.local_settings.data.Music = false;
}
_parent.SoundInit();
InitSwitches();
}
Symbol 275 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
if (_parent.local_settings.data.Sounds == true) {
_parent.local_settings.data.Sounds = false;
} else {
_parent.local_settings.data.Sounds = true;
}
_parent.SoundInit();
InitSwitches();
}
Symbol 276 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.SetQuality("medium");
InitSwitches();
}
Symbol 277 Button
on (release) {
this._parent.PlaySound(this._parent.Beep);
_parent.SetQuality("high");
InitSwitches();
}
Symbol 278 Button
on (release) {
this._parent.PlaySound(this._parent.Beep_out);
if (_parent._currentframe > (_parent.BeginFrame + 1)) {
gotoAndStop (11);
} else {
_parent.StartTransition("VerticalOut", 10, "");
}
}
Symbol 283 Button
on (release) {
_parent.Game.PauseSwitch();
}
Symbol 284 Button
on (release) {
gotoAndStop (10);
}
Symbol 290 MovieClip Frame 29
this.removeMovieClip();
Symbol 291 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 8
if (_parent._currentframe != _parent.BeginFrame) {
threethousand._visible = true;
} else {
threethousand._visible = false;
}
Symbol 291 MovieClip Frame 10
InitSwitches = function () {
var _local4 = 2;
switch (_parent.local_settings.data.Quality) {
case "low" :
_local4 = 1;
break;
case "medium" :
_local4 = 2;
break;
case "high" :
_local4 = 3;
}
var _local3 = 1;
while (_local3 < 4) {
this["setting1_" + _local3].gotoAndStop(1);
_local3++;
}
this["setting1_" + _local4].gotoAndStop(2);
if (_parent.local_settings.data.Music == true) {
setting2.gotoAndStop(2);
} else {
setting2.gotoAndStop(1);
}
if (_parent.local_settings.data.Sounds == true) {
setting3.gotoAndStop(2);
} else {
setting3.gotoAndStop(1);
}
};
InitSwitches();
Symbol 291 MovieClip Frame 12
Explosion = function (Ex, Ey, Col) {
var _local4 = 0;
while (_local4 < 15) {
var _local3 = "Expl" + ExplNum;
ExplNum++;
Expl_s.duplicateMovieClip(_local3, this.getNextHighestDepth());
_local3 = this[_local3];
_local3._tint(_parent.Colors[Col][1], _parent.Colors[Col][2], _parent.Colors[Col][3], 100);
var _local6 = Math.round(random(100)) + 40;
_local3._xscale = (_local3._yscale = _local6);
_local3._rotation = Math.round(random(360));
_local3._x = Ex;
_local3._y = Ey;
_local4++;
}
};
Expl = function () {
var _local3 = Math.round(random(500) - 250);
var _local2 = Math.round(random(900) - 450);
var _local4 = Math.round(random(_parent.Colors.length));
Explosion(_local3, _local2, _local4);
};
ExplInterval = setInterval(Expl, 150);
ExplNum = 0;
if (_parent.local_settings.data.Sounds == true) {
_parent.fireworks.start(0, 3);
}
stop();
Symbol 299 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 309 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 319 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 329 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 339 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 349 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 356 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 363 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 370 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 377 Button
on (release) {
_parent.MaakKeuze(Num);
}
Symbol 401 MovieClip Frame 18
this.removeMovieClip();
Symbol 402 MovieClip Frame 1
SpawnWolk = function (Wolk) {
var _local3 = "Wolk" + NumWolk;
Wolk.duplicateMovieClip(_local3, this.getNextHighestDepth());
_local3 = this[_local3];
_local3._visible = true;
Richting = (Math.floor(random(2)) * 2) - 1;
_local3._x = random(20) * (Richting * -1);
if (_parent._parent == _parent._parent._parent.Map) {
_local3._y = random(240) - 120;
if (NumWolk > 30) {
NumWolk = 0;
_parent._x = -200;
_parent._y = 800;
}
}
Schaal = Math.round((random(100) + 50) * Richting);
_local3._xscale = Schaal;
_local3._yscale = Schaal * Richting;
_local3.Wl.Wl._rotation = random(360);
NumWolk++;
};
SpawnWolken = function () {
SpawnWolk(WolkS2);
SpawnWolk(WolkS1);
};
NumWolk = 0;
WolkS1._visible = false;
WolkS2._visible = false;
if (_parent.Wolk_s != this) {
Counter = 5;
onEnterFrame = function () {
if (Counter > 0) {
Counter--;
if (Counter == 1) {
SpawnWolken();
Counter = 5;
}
}
};
}
Symbol 423 MovieClip Frame 1
stop();
Symbol 426 MovieClip Frame 17
gotoAndPlay (1);
Symbol 426 MovieClip Frame 37
Base.gotoAndPlay(8);
gotoAndPlay (20);
Symbol 438 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 1
ArrayInit = function () {
EnableArray = new Array();
EnableArray[1] = [2, 4, 5];
EnableArray[2] = [1, 4, 3, 6];
EnableArray[3] = [2, 6, 9];
EnableArray[4] = [1, 2, 6, 7, 5];
EnableArray[5] = [1, 4, 7];
EnableArray[6] = [2, 4, 7, 3, 9, 10];
EnableArray[7] = [4, 5, 6, 10];
EnableArray[8] = [9, 10];
EnableArray[9] = [3, 6, 10, 8];
EnableArray[10] = [6, 7, 9, 8];
};
EnableKnop = function (Num) {
this["Pauper" + Num].gotoAndStop(2);
};
DisableKnop = function (Num) {
this["Pauper" + Num].gotoAndStop(1);
};
CheckEnabled = function () {
BlijNum = 0;
var _local3 = 1;
while (_local3 < 11) {
if (this["Blij" + _local3]._visible == true) {
for (var _local4 in EnableArray[_local3]) {
if (this["Blij" + EnableArray[_local3][_local4]]._visible == false) {
EnableKnop(EnableArray[_local3][_local4]);
} else {
DisableKnop(EnableArray[_local3][_local4]);
}
}
BlijNum++;
}
_local3++;
}
if (BlijNum > 9) {
_parent.StartTransition("AlphaIn", 12, _parent.EndGameStart);
}
};
MoveBadGuy = function () {
NewTile = EnableArray[BadGuyTile][Math.round(random(EnableArray[BadGuyTile].length))];
Tile = this["Pauper" + NewTile];
BadGuyTile = NewTile;
MoveCharToTile(BadGuy, NewTile);
};
MoveCharToTile = function (Char, GoalTile) {
_parent.PlaySound(_parent.MotorStart);
var _local3 = this["Pauper" + GoalTile];
var _local5 = _local3._x + (_local3._width / 2);
var _local4 = _local3._y + (_local3._height / 2);
CharTweenX = new mx.transitions.Tween(Char, "_x", mx.transitions.easing.Regular.easeIn, Char._x, _local5, 3, true);
CharTweenY = new mx.transitions.Tween(Char, "_y", mx.transitions.easing.Regular.easeIn, Char._y, _local4, 3, true);
Char.Tile = GoalTile;
CharTweenX.Home = this;
CharTweenX.Char = Char;
CharTweenX.onMotionFinished = function () {
if (this.Char == this.Home.BadGuy) {
this.Home.GayToGrey(this.Char.Tile);
}
};
};
GreyToGay = function (Num) {
var _local4 = this["Pauper" + Num];
var _local5 = this["Blij" + Num];
DisableKnop(Num);
MoveCharToTile(Dude, Num);
BouwTrans(_local4, _local5);
if (_parent.Level > 3) {
MoveBadGuy();
}
};
GayToGray = function (Num) {
var _local2 = this["Pauper" + Num];
var _local3 = this["Blij" + Num];
_local2._visible = true;
_local3._visible = false;
BouwTrans(_local3, _local2);
};
BouwTrans = function (Oud, Nieuw) {
Wolk_Spawn.Wolken.NumWolk = 0;
Wolk_Spawn._x = Oud._x + (Oud._width / 2);
Wolk_Spawn._y = Oud._y + (Oud._height / 2);
Oud._visible = true;
Nieuw._visible = false;
BouwTween = new mx.transitions.Tween(Oud, "_alpha", mx.transitions.easing.Regular.easeIn, 100, 0, 1, true);
BouwTween.Home = this;
BouwTween.Oud = Oud;
BouwTween.Nieuw = Nieuw;
BouwTween.onMotionFinished = function () {
this.Oud._visible = false;
this.Nieuw._visible = true;
this.Home.BouwTween = new mx.transitions.Tween(this.Nieuw, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 2, true);
this.Home.BouwTween.onMotionFinished = function () {
CheckEnabled();
};
};
};
MaakKeuze = function (Num) {
LevelNum = Num;
_parent.PlaySound(_parent.Beep_out);
if (Num == BadGuyTile) {
_parent.BossFight = true;
} else {
_parent.BossFight = false;
}
_parent.StartTransition("AlphaIn", 1, _parent.MapToGameTrans);
};
Init = function () {
ArrayInit();
_parent.TotalScore = 0;
_parent.Level = _parent.StartDifficulty;
BadGuyTile = 8;
var _local3 = 1;
while (_local3 < 11) {
this["Blij" + _local3]._visible = false;
this["Pauper" + _local3].Num = _local3;
if (_local3 == 1) {
EnableKnop(1);
} else {
DisableKnop(_local3);
}
_local3++;
}
};
Init();
Symbol 467 MovieClip Frame 1
stop();
Symbol 468 MovieClip Frame 1
NewGebouwtje = function () {
LastGebouwtje++;
nm = "Gebouw" + LastGebouwtje;
Gebouw_s.duplicateMovieClip(nm, this.getNextHighestDepth());
nm = this[nm];
nm.Num = LastGebouwtje;
var _local3 = (_parent.Gesloopt * 10) / _parent.Target;
if (_local3 > random(10)) {
Start = 5;
} else {
Start = 1;
}
nm.gotoAndStop(Math.floor(random(4)) + Start);
nm._x = ScrollPos - (LastGebouwtje * 350);
Gebouwtjes.push(nm);
};
InitParallax = function () {
LastGebouwtje = -1;
Gebouwtjes = new Array();
ScrollPos = (Number(Stage.width) / (_xscale / 100)) / (_parent._xscale / 100);
NewGebouwtje();
while (((ScrollPos - (LastGebouwtje * 350)) * (_xscale / 100)) > 0) {
NewGebouwtje();
}
onEnterFrame = function () {
var _local4 = this._parent.ScrollSpd;
if (_local4 != undefined) {
this.ScrollPos = this.ScrollPos + (_local4 / 2);
if (((ScrollPos - (LastGebouwtje * 350)) * (_xscale / 100)) > 0) {
NewGebouwtje();
}
for (var _local3 in Gebouwtjes) {
Gebouwtjes[_local3]._x = this.ScrollPos - (Gebouwtjes[_local3].Num * 350);
if (Gebouwtjes[_local3]._x > (((Stage.width + (Gebouwtjes[_local3]._width / 2)) / (_xscale / 100)) / (_parent._xscale / 100))) {
Gebouwtjes[_local3].removeMovieClip();
Gebouwtjes.splice(_local3, 1);
}
}
}
};
};
InitParallax();
Symbol 470 MovieClip Frame 1
this.gotoAndStop(_parent.LevelColor);
Symbol 473 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 1
Symbol 483 MovieClip Frame 1
this.gotoAndStop(Math.floor(random(3)) + 1);
Symbol 484 MovieClip Frame 1
gotoAndStop(_parent.Kleur);
Symbol 486 MovieClip Frame 1
Time = 10 - Math.round(_parent._parent._parent.Level / 5);
ClockUpdate = function () {
if (_parent.Gas._visible == true) {
if (_parent.Gas.hitTest(_parent._parent._parent.StageCollision)) {
Time--;
if (Time < 1) {
_parent._parent._parent.HitGebouw(_parent, 5, -5);
Time = "";
}
}
}
};
Clock = setInterval(ClockUpdate, 1500);
Symbol 492 MovieClip Frame 1
Symbol 496 MovieClip Frame 1
this.gotoAndStop(Math.floor(random(5)));
Symbol 497 MovieClip Frame 1
gotoAndStop(_parent.Kleur);
Symbol 502 MovieClip Frame 1
Symbol 506 MovieClip Frame 1
this.gotoAndStop(Math.floor(random(5)));
Symbol 507 MovieClip Frame 1
gotoAndStop(_parent.Kleur);
Symbol 508 MovieClip Frame 1
stop();
Symbol 519 MovieClip Frame 10
this.removeMovieClip();
Symbol 520 MovieClip Frame 1
MakeBlok = function (xt, yt, nm, kleur) {
GebouwDeel_S.duplicateMovieClip(nm, this.getNextHighestDepth());
nm = this[nm];
nm.Kleur = kleur;
nm._x = xt;
nm._y = yt;
return(nm);
};
Explosion = function (Ex, Ey, Col) {
var _local3 = 0;
while (_local3 < 5) {
var _local2 = "Expl" + ExplNum;
ExplNum++;
Expl_s.duplicateMovieClip(_local2, this.getNextHighestDepth());
_local2 = this[_local2];
var _local4 = Math.round(random(100)) + 50;
_local2._xscale = (_local2._yscale = _local4);
_local2._rotation = Math.round(random(360));
_local2._x = Ex;
_local2._y = Ey;
_local3++;
}
};
GebouwExpl = function (Parts, AvgSize, px, py, sx, sy) {
var _local3 = 0;
while (_local3 < Parts) {
Size = random(AvgSize) + (AvgSize / 2);
nm = "Rubble" + NumRubble;
NumRubble++;
GebouwBrok_S.duplicateMovieClip(nm, this.getNextHighestDepth());
nm = this[nm];
var _local4 = Math.round(random(nm._totalframes)) + 1;
nm.gotoAndStop(_local4);
if (_local4 == 2) {
var _local5 = Math.floor(random(3)) + 1;
_parent._parent.PlaySound(_parent._parent["laugh" + _local3]);
}
nm._xscale = Size * 2;
nm._yscale = Size * 2;
nm._rotation = random(360);
nm._x = (px + random(Size)) - (Size / 2);
nm._y = (py + random(Size)) - (Size / 2);
nm.spx = random(sx) + (sx / 2);
nm.spy = random(40) * -5;
nm.rot = random(41) - 20;
Explosion(px, py);
nm.onEnterFrame = function () {
this._x = this._x + (this.spx / 12);
this._y = this._y + (this.spy / 6);
this.spy = this.spy + 10;
if (this.hitTest(this._parent._parent.Kogel)) {
this.spx = this._parent._parent.spx * -2;
this.spy = this._parent._parent.spy * 2;
}
if (this._y > 0) {
this.spy = this.spy * -0.5;
this.spx = this.spx / 2;
this.rot = this.rot / 2;
if (Math.abs(this.spy) < 12) {
this.removeMovieClip();
}
}
};
_local3++;
}
};
MakeBreakAble = function (Obj) {
if (_parent.PullAbility == "Switch") {
Obj.HitType = Math.floor(random(2)) + 1;
} else if (_parent.PullAbility == "None") {
Obj.HitType = 1;
} else {
Obj.HitType = 2;
}
if (Obj.HitType > 1) {
Obj.Balk._visible = true;
}
Obj.Toestand.gotoAndStop(1 + Obj.HitType);
Obj.CurHit = true;
};
MakeGebouw = function (xt, Hoogte, Gebroken, Type, Gebouwnum, Toev) {
Midden = this["Midden" + Type];
Bodem = this["Bodem" + Type];
ColArray = _parent["Generate" + Type]();
var _local4 = 0;
while (_local4 < Hoogte) {
var _local6 = ((("GebouwDeel" + Gebouwnum) + "") + _local4) + Toev;
this[_local6].removeMovieClip();
var _local3 = MakeBlok(xt, (_local4 * -1) * Midden, _local6, ColArray);
_local3.Toestand._height = Bodem;
fr = 1;
if (_local4 > 0) {
fr = 2;
_local3._y = _local3._y + (Midden - Bodem);
_local3.Toestand._height = Midden;
if (_local4 == (GebouwHoogte - 1)) {
fr = 3;
}
} else {
LastGebouw = xt;
if (_local4 == (Hoogte - 1)) {
}
}
_local3.Gas._visible = false;
_local3.gotoAndStop(fr);
DeelType = Math.floor(random(_local3["Kleur" + fr].Deel._totalframes)) + 1;
_local3["Kleur" + fr].Kleur.gotoAndStop(DeelType);
if (ColArray < 41) {
_local3["Kleur_Achter" + fr].Kleur.gotoAndStop(DeelType);
} else {
_local3["Kleur_Achter" + fr]._visible = false;
}
_local3.Gebouw = Gebouwnum;
_local3.Hoogte = _local4;
_local3.Target = _local3._y;
_local3.Pos = _local3._x;
_local3.Top = GebouwHoogte;
_local3.Num = Blokken.length;
_local3.Balk._visible = false;
_local3.Gebouwx = _local3._x;
if (Gebroken != _local4) {
_local3.CurHit = false;
} else {
MakeBreakAble(_local3);
if (_local3.HitType == 1) {
if (random(10) > 6) {
if (_parent.Level >= _parent._parent.BombIntro) {
_local3.Gas._visible = true;
}
}
}
}
if (GebouwenArray[Gebouwnum][_local4][0] == undefined) {
if (this == this._parent.Landschap1) {
Blokken.push(_local3);
}
GebouwenArray[Gebouwnum][_local4] = new Array();
GebouwenArray[Gebouwnum][_local4][0] = _local3._currentframe;
GebouwenArray[Gebouwnum][_local4][1] = _local4;
GebouwenArray[Gebouwnum][_local4][2] = _local3._x;
GebouwenArray[Gebouwnum][_local4][3] = _local3._y;
_local3.Breekbaar = true;
} else {
_local3.gotoAndStop(GebouwenArray[Gebouwnum][_local4][0]);
_local3.Hoogte = GebouwenArray[Gebouwnum][_local4][1];
_local3._y = 50;
this[(("Build" + _local3.Gebouw) + "") + _local4] = new mx.transitions.Tween(_local3, "_y", mx.transitions.easing.Regular.easeOut, _local3.Target + 1000, _local3.Target, 7, true);
if (_local4 == (Hoogte - 1)) {
_local6 = "Wolk" + WolkNum;
WolkNum++;
Wolk_s.duplicateMovieClip(_local6, this.getNextHighestDepth());
this[_local6]._x = _local3._x;
this[_local6]._y = -20;
this[(("Build" + _local3.Gebouw) + "") + _local4].Wolk = this[_local6];
}
this[(("Build" + _local3.Gebouw) + "") + _local4].onMotionFinished = function () {
this.Wolk.removeMovieClip();
};
_local3.Toestand._height = 250;
_local3.Target = _local3._y;
_local3.Breekbaar = false;
}
_local4++;
}
};
NewGebouw = function () {
LevelH = _parent.Level / 4;
var _local3 = (Math.round(random(4 - LevelH)) + 1) * GebouwDeel_S._width;
if (_local3 < GebouwDeel_S._width) {
_local3 = GebouwDeel_S._width;
}
Afst = Afst - _local3;
GebouwHoogte = Math.round(random(1 + (LevelH * 4))) + 3;
if (this == this._parent.Landschap1) {
GebrokenStuk = Math.floor(random(GebouwHoogte - 2)) + 1;
if (GebrokenStuk > 6) {
GebrokenStuk = 6;
}
}
var _local4 = new Array();
Gebouwen++;
GebouwenArray[Gebouwen] = new Array();
MakeGebouw(Afst, GebouwHoogte, GebrokenStuk, "Oud", Gebouwen, "");
LastGebouwDeel = this[((("GebouwDeel" + Gebouwen) + "") + 0) + ""];
};
Init = function () {
ExplNum = 0;
WolkNum = 0;
GebouwenArray = new Array();
var _local3 = 0;
while (_local3 < _parent.Target) {
NewGebouw();
_local3++;
}
this.onEnterFrame = function () {
if (LastGebouwDeel.hitTest(this._parent.StageCollision)) {
NewGebouw();
}
};
};
Afst = GebouwDeel_S._width * -1;
LastGebouw = Afst;
Blokken = new Array();
BodemOud = 67.6;
MiddenOud = 97;
BodemNieuw = 129.5;
MiddenNieuw = 129.6;
NumRubble = 0;
Gebouwen = 0;
Init();
Symbol 528 MovieClip Frame 1
stop();
Symbol 532 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 14
_parent.removeMovieClip();
Symbol 547 MovieClip Frame 1
stop();
Symbol 553 MovieClip Frame 1
NewLantaarntje = function () {
LastLantaarntje++;
nm = "Lantaarn" + LastLantaarntje;
Lantaarn_s.duplicateMovieClip(nm, this.getNextHighestDepth());
nm = this[nm];
nm.Num = LastLantaarntje;
nm._x = ScrollPos - (LastLantaarntje * 350);
Lantaarns.push(nm);
};
InitParallax = function () {
LastLantaarntje = -1;
Lantaarns = new Array();
ScrollPos = (Number(Stage.width) / (_xscale / 100)) / (_parent._xscale / 100);
NewLantaarntje();
while (((ScrollPos - (LastLantaarntje * 350)) * (_xscale / 100)) > 0) {
NewLantaarntje();
}
onEnterFrame = function () {
var _local4 = this._parent.ScrollSpd;
if (_local4 != undefined) {
this.ScrollPos = this.ScrollPos + (_local4 * 1.4);
if (((ScrollPos - (LastLantaarntje * 350)) * (_xscale / 100)) > 0) {
NewLantaarntje();
}
for (var _local3 in Lantaarns) {
Lantaarns[_local3]._x = this.ScrollPos - (Lantaarns[_local3].Num * 350);
if (Lantaarns[_local3]._x > (((Stage.width + (Lantaarns[_local3]._width / 2)) / (_xscale / 100)) / (_parent._xscale / 100))) {
Lantaarns[_local3].removeMovieClip();
Lantaarns.splice(_local3, 1);
}
}
}
};
};
InitParallax();
Symbol 569 Button
on (release) {
PauseSwitch();
}
Symbol 570 MovieClip Frame 1
GenerateOud = function () {
return(Math.floor(random(40)) + 1);
};
GenerateNieuw = function () {
return(Math.floor(random(40)) + 41);
};
onMouseDown = function () {
if (PullAbility == "Switch") {
if (Kogel._currentframe == 1) {
KogelChange(2);
} else {
KogelChange(1);
}
} else if (PullAbility == "None") {
KogelChange(1);
} else {
KogelChange(2);
}
if ((Kogel._parent._parent.TransitionNum > 1) and (Kogel._parent._parent.TransitionNum < 9)) {
if (Kogel._parent._parent.TransitionWait > 1) {
Kogel._parent._parent.TransitionState = "Done";
}
}
};
CheckHit = function () {
Verst++;
if (Pauze != true) {
for (var _local12 in Landschap1.Blokken) {
var _local11 = false;
Bl = Landschap1.Blokken[_local12];
Bly = Bl._y + Landschap1._y;
Blx = Bl._x + Landschap1._x;
if (Bl.Breekbaar == true) {
if (Bl.Gebouw < Verst) {
Verst = Bl.Gebouw;
}
if (Bl.Gebouw == Verst) {
if (Bl.CurHit == true) {
VerstDeel = Bl;
Verx = Bl._x * 0.777;
Very = Bl._y * 0.777;
}
}
if ((Bly > -50) and (Bly < (Stage.width + 50))) {
if (Kogel.hitTest(Bl)) {
if (Kogel._currentframe == Bl.HitType) {
Kogel._x = Kogel._x - (((spx / 5) * Tempo) - (ScrollSpd * 1.2));
Kogel._y = Kogel._y - ((spy / 5) * Tempo);
var _local3 = 1;
while (_local3 < 4) {
this["msx" + _local3] = this["msx" + _local3] * (_local3 / 20);
this["msy" + _local3] = this["msy" + _local3] * (_local3 / 20);
_local3++;
}
spx = spx * 0.2;
spy = spy * 0.2;
Strength = Math.abs((spx + msx) + (spy + msy)) / 30;
if (Strength > (0.3 / Math.pow(Kogel._currentframe, 4))) {
if (Kogel._currentframe == 1) {
var _local10 = Math.floor(random(3)) + 1;
this._parent.PlaySound(this._parent["Expl" + _local10]);
Landschap1.GebouwExpl(_parent.Particles, 60, Bl._x + (Bl._width / 2), Bl._y, Math.abs(spx + mspx), -20);
HitGebouw(Bl, Math.abs(spx + mspx), -20);
if (10 < (_parent.Type2 * random(10))) {
HitGebouw(Landschap1[(("GebouwDeel" + Bl.Gebouw) + "") + (Bl.Hoogte + 1)], Math.abs(spx + mspx), -20);
if (10 < (_parent.Type2 * random(10))) {
HitGebouw(Landschap1[(("GebouwDeel" + Bl.Gebouw) + "") + (Bl.Hoogte - 1)], Math.abs(spx + mspx), -20);
}
} else if (10 < (_parent.Type2 * random(10))) {
HitGebouw(Landschap1[(("GebouwDeel" + Bl.Gebouw) + "") + (Bl.Hoogte - 1)], Math.abs(spx + mspx), -20);
}
var _local8 = 1;
if (Bl.Gas._visible == true) {
var _local5 = 0;
while (_local5 < Bl.Top) {
var _local6 = Landschap1[(("GebouwDeel" + Bl.Gebouw) + "") + _local5];
HitGebouw(_local6, Math.abs(spx + mspx), -20);
_local5++;
}
_local8 = Bl.Top;
}
var _local9 = ((Math.round((Math.abs(spx * spy) / 1000) * Strength) * 10) + 10) * _local8;
ScoreSpawn(Kogel._x, Kogel._y, _local9);
LocalLevel = LocalLevel + (Strength / 60);
Kogel.PlakDeel = undefined;
_parent.TotalScore = Number(_parent.TotalScore) + _local9;
} else {
Bl.Getrokken = true;
Kogel.PlakDeel = Bl;
}
break;
}
}
} else if (Bl.hitTest(Shovel)) {
if (Bl != Kogel.PlakDeel) {
var _local4 = Bl.Hoogte + 1;
while (_local4 < (Bl.Top + 1)) {
var _local6 = Landschap1[(("GebouwDeel" + Bl.Gebouw) + "") + _local4];
var _local7 = _local4 - Bl.Hoogte;
if (_local6.spx == undefined) {
GebouwVlieg(_local6, -20, -30 + (_local7 * -5));
_local6.Stortend = true;
}
_local4++;
}
Landschap1.GebouwExpl(_parent.Particles, 25, Bl._x, Bl._y, -5, -5);
if (_parent.Type4 == 1) {
if (Bl.Hoogte == 0) {
Bl.removeMovieClip();
}
} else {
Bl.removeMovieClip();
}
}
}
}
}
}
if (BadGuy.hitTest(Kogel)) {
if (BadGuy._currentframe == 1) {
Kogel._x = Kogel._x - ((spx / 5) * Tempo);
Kogel._y = Kogel._y - ((spy / 5) * Tempo);
BadGuy.gotoAndStop(2);
BadTween = new mx.transitions.Tween(BadGuy, "_x", mx.transitions.easing.Regular.easeOut, BadGuy._x, BadGuy._x + 50, 10, true);
BadTween.Home = this;
BadTween.onMotionFinished = function () {
this.Home.BadTween = new mx.transitions.Tween(BadGuy, "_x", mx.transitions.easing.Regular.easeIn, BadGuy._x, BadGuy._x - 300, 10, true);
};
}
}
}
Hit._x = (Verx + Landschap1._x) + 50;
Hit._y = Very + Landschap1._y;
Hit.Pijl.gotoAndStop(VerstDeel.HitType);
Hit.Tekst.gotoAndStop(VerstDeel.HitType);
};
HitGebouw = function (Deel, dspx, dspy) {
Deel.Gesloopt = true;
NumGesloopt = 0;
var _local6 = new Array();
var _local5 = 0;
while (_local5 < Deel.Top) {
var _local4 = Landschap1[(("GebouwDeel" + Deel.Gebouw) + "") + _local5];
if (_local4 != Deel) {
if (_local4.Gesloopt or (_local4 == undefined)) {
NumGesloopt++;
} else {
_local6.push(_local4);
}
}
_local5++;
}
var _local8 = Math.floor(random(_local6.length));
var _local9 = _local6[_local8];
var _local10 = 0;
while ((_local9._y < -250) and (_local10 < 5)) {
_local10++;
_local8 = Math.floor(random(_local6.length));
_local9 = _local6[_local8];
}
Landschap1.MakeBreakAble(_local9);
if (NumGesloopt == (Deel.Top - 1)) {
Landschap1.MakeGebouw(Deel.Pos, Deel.Top, -2, "Nieuw", Deel.Gebouw, "Br");
_parent.PlaySound(_parent.cheer);
if (Gesloopt < Target) {
Gesloopt++;
}
UpdateGesloopt();
var _local7 = Landschap1[((("GebouwDeel" + Deel.Gebouw) + "") + 0) + "Br"];
_local7.onEnterFrame = function () {
if (!this.hitTest(this._parent._parent.Parallax_vak)) {
var _local2 = this.Top;
while (_local2 > -1) {
var _local3 = this._parent[((("GebouwDeel" + this.Gebouw) + "") + _local2) + "Br"];
_local3.removeMovieClip();
_local2--;
}
}
};
Verst++;
} else {
_local5 = 0;
while (_local5 < Deel.Top) {
var _local4 = Landschap1[(("GebouwDeel" + Deel.Gebouw) + "") + _local5];
if (_local4 != Deel) {
if (_local5 > Deel.Hoogte) {
_local4.Target = _local4.Target + Deel._height;
if (_local4.Target > 0) {
_local4.Target = 0;
}
this[(("Fall" + Deel.Gebouw) + "") + _local5] = new mx.transitions.Tween(_local4, "_y", mx.transitions.easing.Bounce.easeOut, _local4._y, _local4.Target, 3, true);
this[(("Fall" + Deel.Gebouw) + "") + _local5].onMotionFinished = function () {
};
}
}
_local5++;
}
}
Bak.Char.Gezicht.gotoAndPlay(2);
Hud.Char.Gezicht.gotoAndPlay(2);
for (var _local11 in Landschap1.Blokken) {
if (Landschap1.Blokken[_local11] == Deel) {
Landschap1.Blokken.splice(_local11, 1);
}
}
Landschap1.GebouwExpl(_parent.Particles * 2, 35, Deel._x, Deel._y, dspx, dpsy);
GebouwVlieg(Deel, dspx, dspy * 2);
};
DrawingRope = function () {
Rope._x = Handle._x;
Rope._y = Handle._y;
var _local2 = Kogel._x - Handle._x;
var _local1 = Kogel._y - Handle._y;
dist = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
ax = _local2 / 2;
ay = _local1 / 2;
Rope.clear();
Rope.lineStyle(2, "0x000000", 100);
Rope.moveTo(0, 0);
Rope.curveTo(ax, ay + (Kabellengte - dist), _local2, _local1);
};
GebouwVlieg = function (Deel, dspx, dspy) {
Deel.spx = dspx;
Deel.spy = dspy;
Deel.onEnterFrame = function () {
this._x = this._x - this.spx;
this._y = this._y + this.spy;
this.spy = this.spy + 5;
if (this.spx < 0) {
if (this.hitTest(this._parent._parent.Bak)) {
if (this.Stortend == true) {
if (this.Getrokken != true) {
if (this._parent._parent.Bak.Char._currentframe < 18) {
this._parent._parent.Bak.Char.gotoAndPlay(18);
this._parent._parent.Hud.Char.gotoAndPlay(18);
this._parent.GebouwExpl(_parent.Particles, 60, this._x, this._y, -5, -5);
} else {
this._parent._parent.Pauze = true;
this._parent._parent._parent.GameOver();
}
this.removeMovieClip();
}
}
}
}
if (this._y > Stage.height) {
RemoveBlok(this);
} else {
Gb = this._parent[(("GebouwDeel" + (this.Gebouw + 1)) + "") + 1];
var _local3 = 0;
while (_local3 < Gb.Hoogte) {
Gbh = this._parent[(("GebouwDeel" + (this.Gebouw + 1)) + "") + _local3];
if (this.hitTest(Gbh)) {
if (Gbh.Toestand._currentframe > 2) {
this._parent.GebouwVlieg(Gbh, dspx, dspy - 1);
}
}
_local3++;
}
}
};
};
RemoveBlok = function (Deel) {
if (Gesloopt > (Target - 1)) {
if (_parent.TransitionHelper._visible != true) {
ScrollSpd = 0;
Hit._visible = false;
Cog1.stop();
Cog2.stop();
Rupsband.stop();
_parent.StartTransition("VerticalIn", 2, GameGehaald);
_parent.Bonus = (Math.floor((Target * (5 * (_parent.Level * _parent.Level))) / 10) * 100) + 100;
for (var _local3 in Landschap1.Blokken) {
HitGebouw(Landschap1.Blokken[_local3], 0, -15);
}
Landschap1.Blokken = new Array();
}
}
if (Deel.Getrokken == true) {
var _local4 = Math.floor(random(3)) + 1;
this._parent.PlaySound(this._parent["Expl" + _local4]);
}
Deel.removeMovieClip();
};
ScoreSpawn = function (px, py, sc) {
var _local3 = "Combo" + ScoreNum;
Combo_s.duplicateMovieClip(_local3, this.getNextHighestDepth());
_local3 = this[_local3];
_local3.ComboTekst = _parent.Tekst13 + sc;
_local3._x = px;
if (_local3._x < -660) {
_local3._x = -660;
}
_local3._y = py;
this["ComboTween" + ScoreNum] = new mx.transitions.Tween(_local3, "_y", mx.transitions.easing.Bounce.easeOut, py, py - 120, 3, true);
this["ComboTween" + ScoreNum].Obj = _local3;
this["ComboTween" + ScoreNum].onMotionFinished = function () {
this.Obj.removeMovieClip();
};
ScoreNum++;
};
GameGehaald = function () {
_parent.TransitionHelper._visible = true;
Pauze = true;
};
KogelChange = function (Num) {
Kogel.gotoAndStop(Num);
if (Num == 1) {
Kogel._xscale = (Kogel._yscale = 50 + (_parent.Type2 * 30));
} else {
Kogel._xscale = (Kogel._yscale = 50 + (_parent.Type3 * 30));
}
};
BonusCount = function () {
if (BonusCounter == 0) {
if (_parent.Bonus > 0) {
BonusCounter = _parent.Bonus / 50;
}
} else if (_parent.Bonus > 0) {
var _local2 = Number(Math.round(_parent.Bonus / 3)) + 1;
_parent.Bonus = Number(_parent.Bonus) - Number(BonusCounter);
_parent.TotalScore = Number(_parent.TotalScore) + Number(BonusCounter);
} else {
BonusCounter = 0;
_parent.StartTransition("VerticalOut", 2, _parent.UpgradeScreen);
}
};
FadeToMapMiddle = function () {
_parent.StartTransition("AlphaIn", 1, FinishLevel);
};
FinishLevel = function () {
_parent.TransitionHelper._visible = true;
Pauze = false;
_parent.Map._visible = true;
_parent.Map.GreyToGay(LevelNum);
_parent.StartTransition("AlphaOut", 1, "");
_parent.gotoAndStop(_parent.BeginFrame + 1);
};
KogelMove = function () {
lx = Kogel._x;
ly = Kogel._y;
hlx = Handle._x;
hly = Handle._y;
Kogel._x = Kogel._x + (spx * Tempo);
Kogel._y = Kogel._y + (spy * Tempo);
spy = spy + Gravity;
Handle._x = _xmouse;
Handle._y = _ymouse - 100;
distx = Handle._x - Arm._x;
disty = Handle._y - Arm._y;
hoek = Math.atan2(disty, distx);
Arm._rotation = (hoek / Math.PI) * 180;
dist = Math.sqrt((distx * distx) + (disty * disty));
Verh = 1;
if (dist > ArmGrootte) {
Verh = ArmGrootte / dist;
dist = ArmGrootte;
} else if (dist < 200) {
Verh = 200 / dist;
dist = 200;
}
Handle._x = Arm._x + (distx * Verh);
Handle._y = Arm._y + (disty * Verh);
Arm.Kraan.Ext._y = dist * -1;
msx8 = hlx - Handle._x;
msy8 = hly - Handle._y;
var _local2 = 7;
while (_local2 > 0) {
this["msx" + _local2] = this["msx" + (_local2 + 1)];
this["msy" + _local2] = this["msy" + (_local2 + 1)];
_local2--;
}
msx = msx1;
msy = msy1;
Kogel._x = Kogel._x - msx;
Kogel._y = Kogel._y - msy;
distx = Kogel._x - Handle._x;
disty = Kogel._y - Handle._y;
dist = Math.sqrt((distx * distx) + (disty * disty));
Verh = dist / Kabellengte;
if (dist > Kabellengte) {
Kogel._x = Handle._x + (distx / Verh);
Kogel._y = Handle._y + (disty / Verh);
Touw.gotoAndStop(1);
} else {
msx1 = msx1 / 1.3;
msy1 = msy1 / 1.3;
if (Verh < 1) {
var _local3 = Math.round(20 - ((Verh * Verh) * 18));
if (spx < 0) {
Touw.gotoAndStop(20 + _local3);
} else {
Touw.gotoAndStop(_local3);
}
}
}
dx = Kogel._x - lx;
dy = Kogel._y - ly;
spx = (spx + dx) / 2;
spy = (spy + dy) / 2;
};
PauseSwitch = function () {
if (Gesloopt < Target) {
if (Pauze != true) {
if (this._parent.TransitionHelper._visible == false) {
_parent.StartTransition("VerticalIn", 11, this._parent.PausedShow);
this.Pauze = true;
_parent.PlaySound(_parent.Beep);
}
} else if (this._parent.TransitionState == "Ready") {
_parent.StartTransition("VerticalOut", 11, "");
this.Pauze = false;
_parent.PlaySound(_parent.Beep_out);
}
}
};
MainLoop = function () {
this.onEnterFrame = function () {
KogelMove();
CheckHit();
if (Kogel._currentframe == 2) {
if (Kogel.PlakDeel._x != undefined) {
Lx = Landschap1._x * 0.777;
Ly = Landschap1._y * 0.777;
Vrh = 100 / Landschap1._xscale;
var _local4 = Kogel.DeelLastx - Kogel._x;
Kogel.DeelLastx = Kogel._x;
Kogel.DeelLasty = Kogel._y - 20;
Kogel._y = ((Kogel.PlakDeel._y * 0.777) + Landschap1._y) - 60;
Kogel.PlakDeel._x = ((Kogel.PlakDeel._x * 14) + (((Kogel._x - 40) - Landschap1._x) * Vrh)) / 15;
Kogel._x = ((Kogel.PlakDeel._x * 0.777) + Landschap1._x) + 40;
Handle._x = (Handle._x + (Kogel._x - (distx / Verh))) / 2;
Handle._y = (Handle._y + (Kogel._y - (disty / Verh))) / 2;
spx = spx / 5;
spy = spy / 5;
msx2 = 0;
msy2 = 0;
if (Kogel.PlakDeel._x > (Kogel.PlakDeel.Gebouwx + (Kogel.PlakDeel._width / 2))) {
this._parent.PlaySound(this._parent.whoosh);
HitGebouw(Kogel.PlakDeel, (Kogel.DeelLastx - Kogel._x) / -5, -10);
if (10 < (_parent.Type3 * random(10))) {
HitGebouw(Landschap1[(("GebouwDeel" + Kogel.PlakDeel.Gebouw) + "") + (Kogel.PlakDeel.Hoogte + 1)], (Kogel.DeelLastx - Kogel._x) / -5, -10);
Landschap1[(("GebouwDeel" + Kogel.PlakDeel.Gebouw) + "") + (Kogel.PlakDeel.Hoogte + 1)].Getrokken = true;
if (10 < (_parent.Type3 * random(10))) {
HitGebouw(Landschap1[(("GebouwDeel" + Kogel.PlakDeel.Gebouw) + "") + (Kogel.PlakDeel.Hoogte - 1)], (Kogel.DeelLastx - Kogel._x) / -5, -10);
Landschap1[(("GebouwDeel" + Kogel.PlakDeel.Gebouw) + "") + (Kogel.PlakDeel.Hoogte + 1)].Getrokken = true;
}
} else if (10 < (_parent.Type3 * random(10))) {
HitGebouw(Landschap1[(("GebouwDeel" + Kogel.PlakDeel.Gebouw) + "") + (Kogel.PlakDeel.Hoogte - 1)], (Kogel.DeelLastx - Kogel._x) / -5, -10);
Landschap1[(("GebouwDeel" + Kogel.PlakDeel.Gebouw) + "") + (Kogel.PlakDeel.Hoogte + 1)].Getrokken = true;
}
var _local3 = Math.round(Math.abs(((Kogel.DeelLastx - Kogel._x) / 600) * (_local4 * 3)) + 1) * 10;
ScoreSpawn(Kogel._x, Kogel._y, _local3);
_parent.TotalScore = _parent.TotalScore + _local3;
Kogel.PlakDeel = undefined;
}
}
}
spd = Math.sqrt((spx * spx) + (spy * spy));
hoek = Math.atan2(disty, distx);
if (hoek < 0) {
hoek = hoek + (Math.PI*2);
}
Txsc = Math.sqrt((spx * spx) + (spy * spy)) * 2;
if (Kogel.spx > 0) {
Txsc = Txsc - 1;
}
PN = "Part" + PartNum;
PartNum++;
Part.duplicateMovieClip(PN, this.getNextHighestDepth());
this[PN].gotoAndStop(Kogel._currentframe);
this[PN]._x = Kogel._x + (random(9) - 4);
this[PN]._y = Kogel._y + (random(9) - 4);
this[PN]._xscale = 120 + (random(31) - 15);
this[PN]._yscale = 120 + (random(31) - 15);
Trail._xscale = Txsc;
Touw._x = Handle._x;
Touw._y = Handle._y;
Touw._xscale = Kogel._x - Handle._x;
Touw._yscale = Kogel._y - Handle._y;
ScrollAfst = ArmLengte / 2;
if (Pauze != true) {
ScrollSpd = ((0.3 + ((Bak._x - (Verx + Landschap1._x)) / 150)) + (Level / 120)) * Tempo;
} else {
ScrollSpd = 0;
BonusCount();
}
Landschap1._x = Landschap1._x + ScrollSpd;
Landschap2._x = Landschap2._x + (ScrollSpd / 2);
if (Grond._y < (Kogel._y + (Kogel._height / 2))) {
if (Bounced != true) {
_parent.PlaySound(_parent.bounce);
Bounced = true;
}
Kogel._y = Grond._y - (Kogel._height / 2);
} else {
Bounced = false;
}
DrawingRope();
};
};
UpdateGesloopt = function () {
TargetDisplay = (Gesloopt + " / ") + Target;
};
Init = function () {
_parent.Map._visible = false;
Background.gotoAndStop(Math.floor(Background._totalframes) + 1);
ExplNum = 0;
PartNum = 0;
slomo = 1;
Shovel._xscale = 60 + (40 * _parent.Type4);
Shovel._yscale = 10 + (50 * _parent.Type4);
Kabellengte = 280;
ArmGrootte = 480;
Gravity = 35;
Level = _parent.Level;
if (LocalLevel == undefined) {
LocalLevel = 0;
} else {
LocalLevel = _parent.LocalLevel;
}
if (_parent.BossFight == true) {
BadGuy._visible = true;
BadTween = new mx.transitions.Tween(BadGuy, "_x", mx.transitions.easing.Regular.easeIn, BadGuy._x, BadGuy._x - 300, 10, true);
} else {
BadGuy._visible = false;
}
if (_parent.Level > _parent.HookIntro) {
this.PullAbility = "Switch";
KogelChange(1);
} else if (_parent.Level == _parent.HookIntro) {
this.PullAbility = "Exclusive";
KogelChange(2);
} else {
this.PullAbility = "None";
KogelChange(1);
}
Col = Math.floor(random(5)) + 1;
var _local3 = 1;
while (_local3 < 5) {
_local3++;
}
Combo = 0;
Level = Level + LocalLevel;
Tempo = 1 - ((7 - Level) / 20);
LevelNum = _parent.Map.LevelNum;
Score = Number(_parent.TotalScore);
Target = _parent.StartTarget + (Level * _parent.TargetIncrease);
ScoreNum = 0;
spx = 0;
spy = 0;
lx = Handle._x;
VolgVertraging = 12;
ArmLengte = Arm._width;
LevelDone._visible = false;
Afst = 0;
mspx = 0;
mspy = 0;
Gesloopt = 0;
UpdateGesloopt();
Verst = 1;
NumRubble = 0;
Landschap1.Init();
MainLoop();
};
Init();
if (Combo > 1) {
Tekst = _parent.Tekst13 + Combo;
} else {
Tekst = "";
}