Frame 1
function spillLydRollOver() {
lydRollOver.start();
}
function spillLinjeTatt() {
lydLinjeTatt.start();
}
function initForsiden() {
Mouse.show();
removeMovieClip(bakgrunn.innhold);
bakgrunn.createEmptyMovieClip("innhold", 5000);
bakgrunn.innhold.attachMovie("LogoBig", "LogoBig", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:60});
bakgrunn.innhold.attachMovie("TekstStartAnim", "TekstStartAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:310});
bakgrunn.innhold.attachMovie("TekstHighscoresAnim", "TekstHighscoresAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:350});
bakgrunn.innhold.attachMovie("TekstInstruksjonerAnim", "TekstInstruksjonerAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:390});
bakgrunn.innhold.attachMovie("TekstPremierAnim", "TekstPremierAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:430});
bakgrunn.innhold.attachMovie("ikonAlder", "ikonAlder", bakgrunn.innhold.getNextHighestDepth(), {_x:5, _y:461});
}
function initGame() {
function parseXMLData2() {
removeMovieClip(bakgrunn.innhold.preloaderAnim);
highscore = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
if (highscore == null) {
highscore = 0;
}
initStart();
}
Mouse.hide();
removeMovieClip(bakgrunn.innhold);
bakgrunn.createEmptyMovieClip("innhold", 5000);
bakgrunn.innhold.attachMovie("preloaderAnim", "preloaderAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:264});
var _local2 = new XML();
_local2.ignoreWhite = true;
_local2.load("http://www.thomasheggstad.no/games/tetris/lesHighscore.php?cache=" + new Date().getTime());
_local2.onLoad = parseXMLData2;
}
function initStart() {
bakgrunn.innhold.attachMovie("logoSmall", "logoSmall", bakgrunn.innhold.getNextHighestDepth(), {_x:69, _y:22});
bakgrunn.innhold.attachMovie("panelLinjer", "panelLinjer", bakgrunn.innhold.getNextHighestDepth(), {_x:74, _y:80});
bakgrunn.innhold.attachMovie("panelNiv\u00E5", "panelNiv\u00E5", bakgrunn.innhold.getNextHighestDepth(), {_x:74, _y:160});
bakgrunn.innhold.attachMovie("panelPoeng", "panelPoeng", bakgrunn.innhold.getNextHighestDepth(), {_x:74, _y:240});
bakgrunn.innhold.attachMovie("panelHighscore", "panelHighscore", bakgrunn.innhold.getNextHighestDepth(), {_x:74, _y:320});
bakgrunn.innhold.attachMovie("TekstNext", "TekstNext", bakgrunn.innhold.getNextHighestDepth(), {_x:431, _y:22});
bakgrunn.innhold.createEmptyMovieClip("spill", bakgrunn.innhold.getNextHighestDepth(), {_x:120, _y:24});
bakgrunn.innhold.spill._x = 144;
bakgrunn.innhold.spill._y = 24;
Set("niv\u00E5", 1);
linjer = 0;
poeng = 0;
pauseSpill = false;
speedYInterval = 0;
speedY = 500;
brikkeTemp = 0;
statLinjer = 0;
stat1Rad = 0;
stat2Rad = 0;
stat3Rad = 0;
stat4Rad = 0;
dobleSpeed = false;
clearInterval(speedYInterval);
bakgrunn.innhold.panelLinjer.tekstfelt.text = linjer;
bakgrunn.innhold["panelNiv\u00E5"].tekstfelt.text = niv\u00E5;
bakgrunn.innhold.panelPoeng.tekstfelt.text = poeng;
bakgrunn.innhold.panelHighscore.tekstfelt.text = highscore;
gridArray[0] = new Array(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[1] = new Array(2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[2] = new Array(3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[3] = new Array(4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[4] = new Array(5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[5] = new Array(6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[6] = new Array(7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[7] = new Array(8, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[8] = new Array(9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[9] = new Array(10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[10] = new Array(11, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[11] = new Array(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[12] = new Array(13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[13] = new Array(14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[14] = new Array(15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[15] = new Array(16, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[16] = new Array(17, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[17] = new Array(18, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[18] = new Array(19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[19] = new Array(20, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1);
gridArray[20] = new Array(21, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1);
Key.addListener(keyLytter);
brikkeTemp = Math.round(Math.random() * 6);
finnNesteBrikke();
settUtBrikke();
}
function settUtBrikke() {
if (brikkeTemp == 0) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossBl\u00E5Anim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:72, _y:0});
} else if (brikkeTemp == 1) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossGr\u00F8nnAnim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:72, _y:0});
} else if (brikkeTemp == 2) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossGulAnim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:96, _y:0});
} else if (brikkeTemp == 3) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossLillaAnim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:72, _y:0});
} else if (brikkeTemp == 4) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossOransjAnim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:72, _y:0});
} else if (brikkeTemp == 5) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossR\u00F8dAnim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:72, _y:0});
} else if (brikkeTemp == 6) {
brikke = bakgrunn.innhold.spill.attachMovie("KlossTurkisAnim", "brikke", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:72, _y:0});
}
var _local3 = false;
var _local5 = (bakgrunn.innhold.spill.brikke._x / 24) + 1;
var _local4 = (bakgrunn.innhold.spill.brikke._y / 24) + 0;
var _local2 = 0;
while (_local2 < 4) {
var _local1 = 0;
while (_local1 < 4) {
if ((klossArray[_local2][_local1] == 1) && (gridArray[_local4 + _local2][_local5 + _local1] != 0)) {
_local3 = true;
initGameOver();
}
_local1++;
}
_local2++;
}
if (_local3 == false) {
if (dobleSpeed == false) {
speedYInterval = setInterval(flyttBrikkeNed, speedY);
} else if ((dobleSpeed = true)) {
speedYInterval = setInterval(flyttBrikkeNed, speedYRask);
}
}
}
function finnNesteBrikke() {
brikkeNesteTemp = Math.round(Math.random() * 6);
removeMovieClip(bakgrunn.innhold.spill.brikkeNeste);
if (brikkeNesteTemp == 0) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossBl\u00E51", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:279, _y:0});
} else if (brikkeNesteTemp == 1) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossGr\u00F8nn1", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:279, _y:0});
} else if (brikkeNesteTemp == 2) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossGul1", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:291, _y:0});
} else if (brikkeNesteTemp == 3) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossLilla1", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:279, _y:0});
} else if (brikkeNesteTemp == 4) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossOransj1", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:279, _y:0});
} else if (brikkeNesteTemp == 5) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossR\u00F8d1", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:279, _y:0});
} else if (brikkeNesteTemp == 6) {
brikkeNeste = bakgrunn.innhold.spill.attachMovie("KlossTurkis1", "brikkeNeste", bakgrunn.innhold.spill.getNextHighestDepth(), {_x:267, _y:0});
}
brikkeNeste._y = 48;
}
function initGameOver() {
Mouse.show();
removeMovieClip(bakgrunn.innhold);
bakgrunn.createEmptyMovieClip("innhold", bakgrunn.getNextHighestDepth());
clearInterval(speedYInterval);
Key.removeListener(keyLytter);
bakgrunn.innhold.attachMovie("TekstGameOver", "TekstGameOver", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:115});
bakgrunn.innhold.attachMovie("TekstGameOver2", "TekstGameOver2", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:190});
bakgrunn.innhold.attachMovie("TekstLagreAnim", "TekstLagreAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:190, _y:376});
bakgrunn.innhold.TekstGameOver2.dinScore.text = poeng;
bakgrunn.innhold.TekstGameOver2.nick.text = "NICK";
}
function printBrikkeArray() {
var _local2 = 0;
while (_local2 < 4) {
var _local1 = 0;
while (_local1 < 4) {
trace(klossArray[_local1][_local2]);
_local1++;
}
_local2++;
}
}
function printArray() {
var _local1 = 0;
while (_local1 < 20) {
trace(gridArray[_local1]);
_local1++;
}
trace(gridArray[20]);
}
function roterBrikke() {
var _local3 = false;
var _local5 = (bakgrunn.innhold.spill.brikke._x / 24) + 1;
var _local4 = (bakgrunn.innhold.spill.brikke._y / 24) + 0;
var _local2 = 0;
while (_local2 < 4) {
var _local1 = 0;
while (_local1 < 4) {
if ((klossNesteArray[_local2][_local1] != 0) && (gridArray[_local4 + _local2][_local5 + _local1] != 0)) {
_local3 = true;
break;
}
_local1++;
}
_local2++;
}
if (_local3 == false) {
if (brikke._currentframe == 16) {
brikke.gotoAndStop(1);
} else {
brikke.gotoAndStop((brikke._currentframe = brikke._currentframe + 5));
}
}
}
function flyttBrikkeVenstre() {
var _local3 = false;
var _local5 = (bakgrunn.innhold.spill.brikke._x / 24) + 0;
var _local4 = (bakgrunn.innhold.spill.brikke._y / 24) + 0;
var _local2 = 0;
while (_local2 < 4) {
var _local1 = 0;
while (_local1 < 4) {
if ((klossArray[_local2][_local1] != 0) && (gridArray[_local4 + _local2][_local5 + _local1] != 0)) {
_local3 = true;
break;
}
_local1++;
}
_local2++;
}
if (_local3 == false) {
bakgrunn.innhold.spill.brikke._x = bakgrunn.innhold.spill.brikke._x - 24;
}
}
function flyttBrikkeH\u00F8yre() {
var _local3 = false;
var _local5 = (bakgrunn.innhold.spill.brikke._x / 24) + 2;
var _local4 = (bakgrunn.innhold.spill.brikke._y / 24) + 0;
var _local2 = 0;
while (_local2 < 4) {
var _local1 = 0;
while (_local1 < 4) {
if ((klossArray[_local2][_local1] == 1) && (gridArray[_local4 + _local2][_local5 + _local1] != 0)) {
_local3 = true;
}
_local1++;
}
_local2++;
}
if (_local3 == false) {
bakgrunn.innhold.spill.brikke._x = bakgrunn.innhold.spill.brikke._x + 24;
}
}
function flyttBrikkeNed() {
var _local9 = 0;
var _local13 = false;
var _local2 = (bakgrunn.innhold.spill.brikke._x / 24) + 1;
var _local1 = (bakgrunn.innhold.spill.brikke._y / 24) + 1;
var _local8 = 0;
while (_local8 < 4) {
var _local5 = 0;
while (_local5 < 4) {
if ((klossArray[_local8][_local5] == 1) && (gridArray[_local1 + _local8][_local2 + _local5] != 0)) {
_local13 = true;
statLinjer++;
poeng = poeng + 10;
updateScore();
clearInterval(speedYInterval);
_local1 = (bakgrunn.innhold.spill.brikke._y / 24) + 0;
_local8 = 0;
while (_local8 < 4) {
_local2 = (bakgrunn.innhold.spill.brikke._x / 24) + 1;
_local5 = 0;
while (_local5 < 4) {
if (klossArray[_local8][_local5] == 1) {
if (brikkeTemp == 0) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossBl\u00E5", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
if (brikkeTemp == 1) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossGr\u00F8nn", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
if (brikkeTemp == 2) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossGul", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
if (brikkeTemp == 3) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossLilla", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
if (brikkeTemp == 4) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossOransj", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
if (brikkeTemp == 5) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossR\u00F8d", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
if (brikkeTemp == 6) {
var _local7 = bakgrunn.innhold.spill.attachMovie("KlossTurkis", "brikke" + nr, bakgrunn.innhold.spill.getNextHighestDepth(), {_x:(_local2 - 1) * 24, _y:_local1 * 24});
}
nr++;
gridArray[_local1][_local2] = _local7;
}
_local2++;
_local5++;
}
_local1++;
_local8++;
}
_local1 = bakgrunn.innhold.spill.brikke._y / 24;
_local8 = 0;
while (_local8 < 4) {
if ((((((((((gridArray[_local1][1] != 0) && (gridArray[_local1][2] != 0)) && (gridArray[_local1][3] != 0)) && (gridArray[_local1][4] != 0)) && (gridArray[_local1][5] != 0)) && (gridArray[_local1][6] != 0)) && (gridArray[_local1][7] != 0)) && (gridArray[_local1][8] != 0)) && (gridArray[_local1][9] != 0)) && (gridArray[_local1][10] != 0)) {
_local9++;
_local5 = 1;
while (_local5 < 11) {
removeMovieClip(gridArray[_local1][_local5]);
gridArray[_local1][_local5] = 0;
_local5++;
}
var _local4 = _local1;
var _local10 = _local1;
var _local6 = 0;
while (_local6 < _local10) {
c = 1;
while (c < 11) {
gridArray[_local4][c] = gridArray[_local4 - 1][c];
c++;
}
var _local3 = 1;
while (_local3 < 11) {
gridArray[_local4 - 1][_local3]._y = gridArray[_local4 - 1][_local3]._y + 24;
_local3++;
}
_local4--;
_local6++;
}
}
if (_local1 >= 19) {
break;
}
_local1++;
_local8++;
}
if (_local9 == 1) {
poeng = poeng + 100;
linjer = linjer + 1;
stat1Rad++;
spillLinjeTatt();
} else if (_local9 == 2) {
poeng = poeng + 200;
linjer = linjer + 2;
stat2Rad++;
spillLinjeTatt();
} else if (_local9 == 3) {
poeng = poeng + 300;
linjer = linjer + 3;
stat3Rad++;
spillLinjeTatt();
} else if (_local9 == 4) {
poeng = poeng + 1000;
linjer = linjer + 4;
stat4Rad++;
spillLinjeTatt();
}
updateScore();
updateLinjer();
removeMovieClip(bakgrunn.innhold.spill.brikke);
clearInterval(speedYInterval);
brikkeTemp = brikkeNesteTemp;
settUtBrikke();
finnNesteBrikke();
break;
}
_local5++;
}
_local8++;
}
if (_local13 == false) {
bakgrunn.innhold.spill.brikke._y = bakgrunn.innhold.spill.brikke._y + 24;
}
}
function updateScore() {
bakgrunn.innhold.panelPoeng.tekstfelt.text = poeng;
}
function updateLinjer() {
if (linjer >= 10) {
linjer = 0;
bakgrunn.innhold.panelLinjer.tekstfelt.text = linjer;
niv\u00E5++;
trade(niv\u00E5);
bakgrunn.innhold["panelNiv\u00E5"].tekstfelt.text = niv\u00E5;
speedY = speedY - 25;
clearInteravl(speedYInterval);
speedYInterval = setInterval(flyttBrikkeNed, speedY);
} else {
bakgrunn.innhold.panelLinjer.tekstfelt.text = linjer;
}
}
function initHighscores() {
function lastXML() {
function parseXMLData() {
var _local2 = this.firstChild.childNodes;
i = 0;
while (i < _local2.length) {
scores[i] = new Array();
scores[i][0] = this.firstChild.childNodes[i].childNodes[0].firstChild.nodeValue;
scores[i][1] = this.firstChild.childNodes[i].childNodes[1].firstChild.nodeValue;
scores[i][2] = this.firstChild.childNodes[i].childNodes[2].firstChild.nodeValue;
i++;
}
removeMovieClip(bakgrunn.innhold.preloaderAnim);
fyllUtScorelista();
bakgrunn.innhold.TekstHighscores2._alpha = 100;
}
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load("http://www.thomasheggstad.no/games/tetris/lesHighscore.php?cache=" + new Date().getTime());
_local3.onLoad = parseXMLData;
}
removeMovieClip(bakgrunn.innhold);
bakgrunn.createEmptyMovieClip("innhold", bakgrunn.getNextHighestDepth());
bakgrunn.innhold.attachMovie("preloaderAnim", "preloaderAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:264});
bakgrunn.innhold.attachMovie("TekstHighscores", "TekstHighscores", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:27});
bakgrunn.innhold.attachMovie("TekstHighscores2", "TekstHighscores2", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:160, _alpha:0});
bakgrunn.innhold.attachMovie("PilVenstreAnim", "PilVenstreAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:155, _y:461});
bakgrunn.innhold.attachMovie("TekstTilbakeAnim", "TekstTilbakeAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:187, _y:460});
bakgrunn.innhold.attachMovie("PilH\u00F8yreAnim", "PilH\u00F8yreAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:338, _y:461});
bakgrunn.innhold.attachMovie("ikonAlder", "ikonAlder", bakgrunn.innhold.getNextHighestDepth(), {_x:5, _y:461});
sideNr = 0;
sideAnt = 10;
lastXML();
}
function fyllUtScorelista() {
if (scores[0 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass1.text = scores[0 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn1.text = scores[0 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score1.text = scores[0 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass1.text = " ";
bakgrunn.innhold.TekstHighscores2.navn1.text = " ";
bakgrunn.innhold.TekstHighscores2.score1.text = " ";
}
if (scores[1 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass2.text = scores[1 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn2.text = scores[1 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score2.text = scores[1 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass2.text = " ";
bakgrunn.innhold.TekstHighscores2.navn2.text = " ";
bakgrunn.innhold.TekstHighscores2.score2.text = " ";
}
if (scores[2 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass3.text = scores[2 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn3.text = scores[2 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score3.text = scores[2 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass3.text = " ";
bakgrunn.innhold.TekstHighscores2.navn3.text = " ";
bakgrunn.innhold.TekstHighscores2.score3.text = " ";
}
if (scores[3 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass4.text = scores[3 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn4.text = scores[3 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score4.text = scores[3 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass4.text = " ";
bakgrunn.innhold.TekstHighscores2.navn4.text = " ";
bakgrunn.innhold.TekstHighscores2.score4.text = " ";
}
if (scores[4 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass5.text = scores[4 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn5.text = scores[4 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score5.text = scores[4 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass5.text = " ";
bakgrunn.innhold.TekstHighscores2.navn5.text = " ";
bakgrunn.innhold.TekstHighscores2.score5.text = " ";
}
if (scores[5 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass6.text = scores[5 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn6.text = scores[5 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score6.text = scores[5 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass6.text = " ";
bakgrunn.innhold.TekstHighscores2.navn6.text = " ";
bakgrunn.innhold.TekstHighscores2.score6.text = " ";
}
if (scores[6 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass7.text = scores[6 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn7.text = scores[6 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score7.text = scores[6 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass7.text = " ";
bakgrunn.innhold.TekstHighscores2.navn7.text = " ";
bakgrunn.innhold.TekstHighscores2.score7.text = " ";
}
if (scores[7 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass8.text = scores[7 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn8.text = scores[7 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score8.text = scores[7 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass8.text = " ";
bakgrunn.innhold.TekstHighscores2.navn8.text = " ";
bakgrunn.innhold.TekstHighscores2.score8.text = " ";
}
if (scores[8 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass9.text = scores[8 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn9.text = scores[8 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score9.text = scores[8 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass9.text = " ";
bakgrunn.innhold.TekstHighscores2.navn9.text = " ";
bakgrunn.innhold.TekstHighscores2.score9.text = " ";
}
if (scores[9 + (sideNr * 10)] != null) {
bakgrunn.innhold.TekstHighscores2.plass10.text = scores[9 + (sideNr * 10)][2];
bakgrunn.innhold.TekstHighscores2.navn10.text = scores[9 + (sideNr * 10)][0];
bakgrunn.innhold.TekstHighscores2.score10.text = scores[9 + (sideNr * 10)][1];
} else {
bakgrunn.innhold.TekstHighscores2.plass10.text = " ";
bakgrunn.innhold.TekstHighscores2.navn10.text = " ";
bakgrunn.innhold.TekstHighscores2.score10.text = " ";
}
}
function initPremier() {
removeMovieClip(bakgrunn.innhold);
bakgrunn.createEmptyMovieClip("innhold", bakgrunn.getNextHighestDepth());
bakgrunn.innhold.attachMovie("TekstPremier", "TekstPremier", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:27});
bakgrunn.innhold.attachMovie("TekstPremier2", "TekstPremier2", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:120});
bakgrunn.innhold.attachMovie("TekstTilbakeAnim", "TekstTilbakeAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:187, _y:460});
bakgrunn.innhold.attachMovie("ikonAlder", "ikonAlder", bakgrunn.innhold.getNextHighestDepth(), {_x:5, _y:461});
}
function initInstruksjoner() {
removeMovieClip(bakgrunn.innhold);
bakgrunn.createEmptyMovieClip("innhold", bakgrunn.getNextHighestDepth());
bakgrunn.innhold.attachMovie("TekstInstruksjoner", "TekstInstruksjoner", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:27});
bakgrunn.innhold.attachMovie("TekstInstruksjoner2", "TekstInstruksjoner2", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:90});
bakgrunn.innhold.attachMovie("TekstTilbakeAnim", "TekstTilbakeAnim", bakgrunn.innhold.getNextHighestDepth(), {_x:187, _y:460});
bakgrunn.innhold.attachMovie("ikonAlder", "ikonAlder", bakgrunn.innhold.getNextHighestDepth(), {_x:5, _y:461});
}
this.createEmptyMovieClip("bakgrunn", 1);
bakgrunn.attachMovie("Bakgrunn", "Bakgrunn", bakgrunn.getNextHighestDepth());
var nr = 0;
var niv\u00E5 = 1;
var linjer = 0;
var poeng = 0;
var highscore = 0;
var sideNr = 0;
var sideAnt;
var brikke = new MovieClip();
var brikkeNeste = new MovieClip();
var pauseSpill = false;
var speedYInterval;
var speedY = 500;
var speedYRask = 50;
var brikkeTemp;
var brikkeNesteTemp;
var statLinjer;
var stat1Rad;
var stat2Rad;
var stat3Rad;
var stat4Rad;
var klossArray = new Array();
klossArray[0] = new Array(0, 0, 0, 0);
klossArray[1] = new Array(0, 0, 0, 0);
klossArray[2] = new Array(0, 0, 0, 0);
klossArray[3] = new Array(0, 0, 0, 0);
var klossNesteArray = new Array();
klossNesteArray[0] = new Array(0, 0, 0, 0);
klossNesteArray[1] = new Array(0, 0, 0, 0);
klossNesteArray[2] = new Array(0, 0, 0, 0);
klossNesteArray[3] = new Array(0, 0, 0, 0);
var nesteBrikke = new Array();
var gridArray = new Array();
var scores = new Array();
var lydRollOver = new Sound(this);
lydRollOver.attachSound("klikk4.mp3");
var lydLinjeTatt = new Sound(this);
lydLinjeTatt.attachSound("food.wav");
var keyLytter = new Object();
initForsiden();
var keysUpDown = false;
var dobleSpeed = false;
keyLytter.onKeyDown = function () {
if (pauseSpill == false) {
if (Key.isDown(39)) {
flyttBrikkeH\u00F8yre();
}
if (Key.isDown(37)) {
flyttBrikkeVenstre();
}
if (Key.isDown(40)) {
if (dobleSpeed == false) {
clearInterval(speedYInterval);
speedYInterval = setInterval(flyttBrikkeNed, speedYRask);
dobleSpeed = true;
}
}
if (Key.isDown(38)) {
roterBrikke();
}
keysUpDown = true;
}
};
keyLytter.onKeyUp = function () {
keysUpDown = false;
switch (Key.getCode()) {
case 32 :
if (pauseSpill == false) {
clearInterval(speedYInterval);
pauseSpill = true;
bakgrunn.innhold.attachMovie("TekstPause", "TekstPause", bakgrunn.innhold.getNextHighestDepth(), {_x:264, _y:264});
} else {
clearInterval(speedYInterval);
speedYInterval = setInterval(flyttBrikkeNed, speedY);
pauseSpill = false;
removeMovieClip(bakgrunn.innhold.TekstPause);
}
break;
case 16 :
Key.removeListener(keyLytter);
clearInterval(speedYInterval);
initForsiden();
break;
case 40 :
if (dobleSpeed != true) {
break;
}
clearInterval(speedYInterval);
speedYInterval = setInterval(flyttBrikkeNed, speedY);
dobleSpeed = false;
}
};
Symbol 17 MovieClip [TekstInstruksjonerAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
_root.initInstruksjoner();
};
hitarea.onReleaseOutside = function () {
};
Symbol 20 MovieClip [TekstPremierAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
_root.initPremier();
};
hitarea.onReleaseOutside = function () {
};
Symbol 23 MovieClip [TekstHighscoresAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
_root.initHighscores();
};
hitarea.onReleaseOutside = function () {
};
Symbol 29 MovieClip [PilHøyreAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
if (_root.sideNr < 9) {
_root.sideNr++;
_root.fyllUtScorelista();
}
};
hitarea.onReleaseOutside = function () {
};
Symbol 32 MovieClip [PilVenstreAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
if (_root.sideNr > 0) {
_root.sideNr--;
_root.fyllUtScorelista();
}
};
hitarea.onReleaseOutside = function () {
};
Symbol 38 MovieClip [TekstLagreAnim] Frame 1
stop();
var today_date = new Date();
var date_str = ((((today_date.getDate() + "/") + (today_date.getMonth() + 1)) + "/") + today_date.getFullYear());
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
myVars = new LoadVars();
if (_root.bakgrunn.innhold.TekstGameOver2.nick.text == "") {
myVars.navn = "NICK";
} else {
myVars.navn = _root.bakgrunn.innhold.TekstGameOver2.nick.text;
}
myVars.score = _root.poeng;
myVars.mobil = _root.bakgrunn.innhold.TekstGameOver2.mobilnr.text;
myVars.dato = date_str;
myVars.tid = date_str;
myVars.var1 = _root.statLinjer;
myVars.var2 = _root.stat1Rad;
myVars.var3 = _root.stat2Rad;
myVars.var4 = _root.stat3Rad;
myVars.var5 = _root.stat4Rad;
myVars.sendAndLoad("http://www.thomasheggstad.no/games/tetris/nyScore.php?cache=' + new Date().getTime()", myVars, "POST");
_root.initForsiden();
};
hitarea.onReleaseOutside = function () {
};
Symbol 41 MovieClip [TekstTilMenyAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
_root.initForsiden();
};
hitarea.onReleaseOutside = function () {
};
Symbol 44 MovieClip [TekstTilbakeAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
_root.initForsiden();
};
hitarea.onReleaseOutside = function () {
};
Symbol 47 MovieClip [TekstStartAnim] Frame 1
stop();
hitarea.onRollOver = function () {
gotoAndPlay (2);
_root.spillLydRollOver();
};
hitarea.onRelease = function () {
_root.initGame();
};
hitarea.onReleaseOutside = function () {
};
Symbol 125 MovieClip [KlossGulAnim] Frame 1
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 125 MovieClip [KlossGulAnim] Frame 6
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 125 MovieClip [KlossGulAnim] Frame 11
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 125 MovieClip [KlossGulAnim] Frame 16
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 131 MovieClip [KlossBlåAnim] Frame 1
stop();
_root.klossArray[0] = [1, 0, 0, 0];
_root.klossArray[1] = [1, 1, 1, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [1, 0, 0, 0];
_root.klossNesteArray[2] = [1, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 131 MovieClip [KlossBlåAnim] Frame 6
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [1, 0, 0, 0];
_root.klossArray[2] = [1, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 1, 0];
_root.klossNesteArray[1] = [0, 0, 1, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 131 MovieClip [KlossBlåAnim] Frame 11
stop();
_root.klossArray[0] = [1, 1, 1, 0];
_root.klossArray[1] = [0, 0, 1, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 0, 0];
_root.klossNesteArray[1] = [0, 1, 0, 0];
_root.klossNesteArray[2] = [1, 1, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 131 MovieClip [KlossBlåAnim] Frame 16
stop();
_root.klossArray[0] = [0, 1, 0, 0];
_root.klossArray[1] = [0, 1, 0, 0];
_root.klossArray[2] = [1, 1, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 0, 0, 0];
_root.klossNesteArray[1] = [1, 1, 1, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 136 MovieClip [KlossTurkisAnim] Frame 1
stop();
_root.klossArray[0] = [0, 0, 0, 0];
_root.klossArray[1] = [1, 1, 1, 1];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 0, 1, 0];
_root.klossNesteArray[1] = [0, 0, 1, 0];
_root.klossNesteArray[2] = [0, 0, 1, 0];
_root.klossNesteArray[3] = [0, 0, 1, 0];
Symbol 136 MovieClip [KlossTurkisAnim] Frame 6
stop();
_root.klossArray[0] = [0, 0, 1, 0];
_root.klossArray[1] = [0, 0, 1, 0];
_root.klossArray[2] = [0, 0, 1, 0];
_root.klossArray[3] = [0, 0, 1, 0];
_root.klossNesteArray[0] = [0, 0, 0, 0];
_root.klossNesteArray[1] = [0, 0, 0, 0];
_root.klossNesteArray[2] = [1, 1, 1, 1];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 136 MovieClip [KlossTurkisAnim] Frame 11
stop();
_root.klossArray[0] = [0, 0, 0, 0];
_root.klossArray[1] = [0, 0, 0, 0];
_root.klossArray[2] = [1, 1, 1, 1];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 0, 0];
_root.klossNesteArray[1] = [0, 1, 0, 0];
_root.klossNesteArray[2] = [0, 1, 0, 0];
_root.klossNesteArray[3] = [0, 1, 0, 0];
Symbol 136 MovieClip [KlossTurkisAnim] Frame 16
stop();
_root.klossArray[0] = [0, 1, 0, 0];
_root.klossArray[1] = [0, 1, 0, 0];
_root.klossArray[2] = [0, 1, 0, 0];
_root.klossArray[3] = [0, 1, 0, 0];
_root.klossNesteArray[0] = [0, 0, 0, 0];
_root.klossNesteArray[1] = [1, 1, 1, 1];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 140 MovieClip [KlossGrønnAnim] Frame 1
stop();
_root.klossArray[0] = [0, 1, 1, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 0, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 1, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 140 MovieClip [KlossGrønnAnim] Frame 6
stop();
_root.klossArray[0] = [1, 0, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 1, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 1, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 140 MovieClip [KlossGrønnAnim] Frame 11
stop();
_root.klossArray[0] = [0, 1, 1, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 0, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 1, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 140 MovieClip [KlossGrønnAnim] Frame 16
stop();
_root.klossArray[0] = [1, 0, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 1, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 1, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 144 MovieClip [KlossRødAnim] Frame 1
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [0, 1, 1, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [1, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 144 MovieClip [KlossRødAnim] Frame 6
stop();
_root.klossArray[0] = [0, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [1, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [0, 1, 1, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 144 MovieClip [KlossRødAnim] Frame 11
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [0, 1, 1, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [1, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 144 MovieClip [KlossRødAnim] Frame 16
stop();
_root.klossArray[0] = [0, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [1, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 1, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 150 MovieClip [KlossLillaAnim] Frame 1
stop();
_root.klossArray[0] = [0, 1, 0, 0];
_root.klossArray[1] = [1, 1, 1, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 0, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [1, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 150 MovieClip [KlossLillaAnim] Frame 6
stop();
_root.klossArray[0] = [1, 0, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [1, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 1, 0];
_root.klossNesteArray[1] = [0, 1, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 150 MovieClip [KlossLillaAnim] Frame 11
stop();
_root.klossArray[0] = [1, 1, 1, 0];
_root.klossArray[1] = [0, 1, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 0, 0];
_root.klossNesteArray[2] = [0, 1, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 150 MovieClip [KlossLillaAnim] Frame 16
stop();
_root.klossArray[0] = [0, 1, 0, 0];
_root.klossArray[1] = [1, 1, 0, 0];
_root.klossArray[2] = [0, 1, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 1, 0, 0];
_root.klossNesteArray[1] = [1, 1, 1, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 156 MovieClip [KlossOransjAnim] Frame 1
stop();
_root.klossArray[0] = [0, 0, 1, 0];
_root.klossArray[1] = [1, 1, 1, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 0, 0, 0];
_root.klossNesteArray[1] = [1, 0, 0, 0];
_root.klossNesteArray[2] = [1, 1, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 156 MovieClip [KlossOransjAnim] Frame 6
stop();
_root.klossArray[0] = [1, 0, 0, 0];
_root.klossArray[1] = [1, 0, 0, 0];
_root.klossArray[2] = [1, 1, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 1, 0];
_root.klossNesteArray[1] = [1, 0, 0, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 156 MovieClip [KlossOransjAnim] Frame 11
stop();
_root.klossArray[0] = [1, 1, 1, 0];
_root.klossArray[1] = [1, 0, 0, 0];
_root.klossArray[2] = [0, 0, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [1, 1, 0, 0];
_root.klossNesteArray[1] = [0, 1, 0, 0];
_root.klossNesteArray[2] = [0, 1, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];
Symbol 156 MovieClip [KlossOransjAnim] Frame 16
stop();
_root.klossArray[0] = [1, 1, 0, 0];
_root.klossArray[1] = [0, 1, 0, 0];
_root.klossArray[2] = [0, 1, 0, 0];
_root.klossArray[3] = [0, 0, 0, 0];
_root.klossNesteArray[0] = [0, 0, 1, 0];
_root.klossNesteArray[1] = [1, 1, 1, 0];
_root.klossNesteArray[2] = [0, 0, 0, 0];
_root.klossNesteArray[3] = [0, 0, 0, 0];