Frame 125
_root.level = 1;
_root.koekjes = 3;
_root.score = 0;
_root.soundon = "yes";
stop();
Instance of Symbol 65 MovieClip "helpscreen" in Frame 125
onClipEvent (load) {
_visible = false;
}
Frame 126
function maakWoord2() {
_root.woord2 = "<font color='#ffffff' face='Arial'>";
_root.woord2b = "<font color='#ffffff' face='Arial'>";
aa = 1;
while (_root.level >= aa) {
if ((aa - 1) == _root.letterdoel) {
_root.woord2 = _root.woord2 + (("<font color='#ff0000'><b>" + _root["letter" + aa].letter) + "</b></font>");
_root.woord2b = _root.woord2b + (("<b>" + _root["letter" + aa].letter) + "</b>");
} else {
_root.woord2 = _root.woord2 + _root["letter" + aa].letter;
_root.woord2b = _root.woord2b + _root["letter" + aa].letter;
}
aa++;
}
_root.woord2 = _root.woord2 + "</font>";
_root.woord2b = _root.woord2b + "</font>";
_root.woord2a = _root.woord2;
}
_root.woordlijst1 = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
_root.woordlijst2 = ["me", "to", "no", "of", "at", "is", "be", "on", "in", "go", "or", "an", "it", "do", "we", "if", "un", "he", "ex", "hi"];
_root.woordlijst3 = ["nut", "nut", "you", "fun", "bag", "boy", "cat", "dew", "egg", "fix", "gum", "hat", "joy", "mud", "new", "owl", "pet", "red", "sad", "tea"];
_root.woordlijst4 = ["tree", "tree", "tree", "apes", "word", "free", "maze", "game", "play", "leaf", "wood", "crow", "dune", "eyes", "frog", "horn", "idea", "kite", "open", "turn"];
_root.woordlijst5 = ["happy", "happy", "happy", "hedge", "games", "bunny", "grass", "candy", "apple", "alien", "beech", "horse", "green", "berry", "djinn", "files", "fruit", "haven", "magic", "zebra"];
_root.woordlijst6 = ["carrot", "letter", "branch", "banana", "school", "games", "forest", "candle", "spring", "monkey", "flower", "spider", "almond", "bamboo", "decide", "famous", "hacker", "island", "modern", "napkin"];
_root.woordlijst7 = ["animals", "jumping", "cartoon", "alchemy", "bedroom", "diamond", "economy", "flutist", "haunted", "inspect", "juggler", "kittens", "message", "noisome", "outlaws", "parsley", "pyjamas", "rummage", "sailors", "villain"];
_root.woordlijst8 = ["internet", "movement", "computer", "homework", "activate", "barefoot", "currency", "diameter", "exterior", "flavored", "goatherd", "heavenly", "ignorant", "landmass", "medieval", "nautical", "organism", "penguins", "reedbird", "squirrel"];
_root.woordlijst9 = ["happytree", "happytree", "happytree", "adventure", "treehouse", "highscore", "beautiful", "chieftain", "president", "deduction", "egyptians", "fireworks", "gearwheel", "hurricane", "indicator", "jellybean", "magnitude", "nightmare", "orphanage", "plausible"];
_root.woordlijst10 = ["television", "altruistic", "battleship", "centimeter", "discipline", "elderberry", "flashlight", "guidelines", "harmonious", "ironworker", "literature", "microphone", "newsreader", "originally", "peppermint", "riverboats", "tablecloth", "undetected", "videotapes", "wildebeest"];
_root.plekken = [[2, 5], [2, 6], [2, 7], [2, 8], [2, 9], [2, 11], [2, 12], [2, 13], [2, 14], [2, 15], [3, 4], [3, 7], [3, 11], [3, 13], [3, 15], [4, 4], [4, 5], [4, 6], [4, 7], [4, 8], [4, 9], [4, 10], [4, 11], [4, 13], [4, 15], [5, 8], [5, 13], [5, 15], [6, 4], [6, 5], [6, 6], [6, 7], [6, 8], [6, 9], [6, 10], [6, 11], [6, 12], [6, 13], [6, 15], [7, 4], [7, 6], [7, 8], [7, 10], [7, 11], [7, 15], [8, 4], [8, 6], [8, 8], [8, 11], [8, 13], [8, 14], [8, 15], [9, 4], [9, 6], [9, 7], [9, 8], [9, 9], [9, 10], [9, 11], [9, 12], [9, 13], [9, 15], [10, 4], [10, 8], [10, 9], [10, 10], [10, 11], [10, 15], [11, 4], [11, 5], [11, 6], [11, 7], [11, 8], [11, 9], [11, 10], [11, 11], [11, 13], [11, 14], [11, 15], [12, 4], [12, 8], [12, 9], [12, 10], [12, 11], [12, 12], [12, 13], [13, 4], [13, 5], [13, 6], [13, 8], [13, 9], [13, 10], [13, 11], [13, 13], [13, 14], [13, 15], [14, 4], [14, 6], [14, 7], [14, 8], [14, 9], [14, 10], [14, 11], [14, 12], [14, 13], [14, 15], [15, 4], [15, 8], [15, 9], [15, 11], [15, 13], [15, 14], [15, 15], [16, 4], [16, 5], [16, 6], [16, 8], [16, 9], [16, 11], [16, 13], [17, 6], [17, 8], [17, 9], [17, 11], [17, 12], [17, 13], [17, 14], [17, 15], [18, 4], [18, 6], [18, 8], [18, 11], [18, 15], [19, 4], [19, 5], [19, 6], [19, 7], [19, 8], [19, 9], [19, 10], [19, 11], [19, 12], [19, 13], [19, 14], [19, 15], [20, 4], [20, 10], [20, 12], [20, 15], [21, 4], [21, 5], [21, 6], [21, 7], [21, 8], [21, 9], [21, 10], [21, 12], [21, 13], [21, 14], [21, 15]];
_root.woord = _root["woordlijst" + _root.level][random(_root["woordlijst" + _root.level].length)];
_root.aantalplekken = _root.plekken.length;
_root.plek1 = random(_root.aantalplekken);
_root.plek2 = random(_root.aantalplekken);
while (_root.plek2 == _root.plek1) {
_root.plek2 = random(_root.aantalplekken);
}
_root.plek3 = random(_root.aantalplekken);
while ((_root.plek3 == _root.plek1) || (_root.plek3 == _root.plek2)) {
_root.plek3 = random(_root.aantalplekken);
}
_root.plek4 = random(_root.aantalplekken);
while (((_root.plek4 == _root.plek1) || (_root.plek4 == _root.plek2)) || (_root.plek4 == _root.plek3)) {
_root.plek4 = random(_root.aantalplekken);
}
_root.plek5 = random(_root.aantalplekken);
while ((((_root.plek5 == _root.plek1) || (_root.plek5 == _root.plek2)) || (_root.plek5 == _root.plek3)) || (_root.plek5 == _root.plek4)) {
_root.plek5 = random(_root.aantalplekken);
}
_root.plek6 = random(_root.aantalplekken);
while (((((_root.plek6 == _root.plek1) || (_root.plek6 == _root.plek2)) || (_root.plek6 == _root.plek3)) || (_root.plek6 == _root.plek4)) || (_root.plek6 == _root.plek5)) {
_root.plek6 = random(_root.aantalplekken);
}
_root.plek7 = random(_root.aantalplekken);
while ((((((_root.plek7 == _root.plek1) || (_root.plek7 == _root.plek2)) || (_root.plek7 == _root.plek3)) || (_root.plek7 == _root.plek4)) || (_root.plek7 == _root.plek5)) || (_root.plek7 == _root.plek6)) {
_root.plek7 = random(_root.aantalplekken);
}
_root.plek8 = random(_root.aantalplekken);
while (((((((_root.plek8 == _root.plek1) || (_root.plek8 == _root.plek2)) || (_root.plek8 == _root.plek3)) || (_root.plek8 == _root.plek4)) || (_root.plek8 == _root.plek5)) || (_root.plek8 == _root.plek6)) || (_root.plek8 == _root.plek7)) {
_root.plek8 = random(_root.aantalplekken);
}
_root.plek9 = random(_root.aantalplekken);
while ((((((((_root.plek9 == _root.plek1) || (_root.plek9 == _root.plek2)) || (_root.plek9 == _root.plek3)) || (_root.plek9 == _root.plek4)) || (_root.plek9 == _root.plek5)) || (_root.plek9 == _root.plek6)) || (_root.plek9 == _root.plek7)) || (_root.plek9 == _root.plek8)) {
_root.plek9 = random(_root.aantalplekken);
}
_root.plek10 = random(_root.aantalplekken);
while (((((((((_root.plek10 == _root.plek1) || (_root.plek10 == _root.plek2)) || (_root.plek10 == _root.plek3)) || (_root.plek10 == _root.plek4)) || (_root.plek10 == _root.plek5)) || (_root.plek10 == _root.plek6)) || (_root.plek10 == _root.plek7)) || (_root.plek10 == _root.plek8)) || (_root.plek10 == _root.plek9)) {
_root.plek10 = random(_root.aantalplekken);
}
aa = 1;
while (_root.level >= aa) {
_root.letter0.duplicateMovieClip("letter" + aa, aa);
_root["letter" + aa].letter = _root.woord.substr(aa - 1, 1);
_root["letter" + aa]._x = (_root.plekken[_root["plek" + aa]][0] * 24) - 12;
_root["letter" + aa]._y = (_root.plekken[_root["plek" + aa]][1] * 24) - 12;
aa++;
}
_root.letterdoel = 0;
_root.maakWoord2();
_root.tijd = 240;
Instance of Symbol 105 MovieClip "badguy1" in Frame 126
onClipEvent (load) {
this.swapDepths(99);
dir = random(4) + 1;
tilesize = 24;
tilemove = 4;
walking = 0;
moving = 0;
}
onClipEvent (enterFrame) {
if (_root.tom.tomstatus == 0) {
if (!_root.doolhof.hitTest(_x + (xspeed * 4), _y + (yspeed * 4), true)) {
if ((walking == 0) && (random(2) < 1)) {
olddir = dir;
dir = dir + (random(2) - 1);
if (dir < 1) {
dir = 4;
} else if (4 < dir) {
dir = 1;
}
if (((((dir == 1) && (_root.doolhof.hitTest(_x, _y + tilesize, true))) || ((dir == 2) && (_root.doolhof.hitTest(_x - tilesize, _y, true)))) || ((dir == 3) && (_root.doolhof.hitTest(_x, _y - tilesize, true)))) || ((dir == 4) && (_root.doolhof.hitTest(_x + tilesize, _y, true)))) {
dir = olddir;
}
}
}
if ((dir == 1) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
walking = 1;
xspeed = 0;
yspeed = 6;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 2;
} else if (beslisser == 2) {
dir = 4;
} else if (beslisser == 3) {
dir = (random(2) + 1) * 2;
} else if (beslisser == 0) {
dir = 3;
}
}
}
if ((dir == 2) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
walking = 1;
xspeed = -6;
yspeed = 0;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 1;
} else if (beslisser == 2) {
dir = 3;
} else if (beslisser == 3) {
dir = (random(2) * 2) + 1;
} else if (beslisser == 0) {
dir = 4;
}
}
}
if ((dir == 3) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
walking = 1;
xspeed = 0;
yspeed = -6;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 2;
} else if (beslisser == 2) {
dir = 4;
} else if (beslisser == 3) {
dir = (random(2) + 1) * 2;
} else if (beslisser == 0) {
dir = 1;
}
}
}
if ((dir == 4) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
walking = 1;
xspeed = 6;
yspeed = 0;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 1;
} else if (beslisser == 2) {
dir = 3;
} else if (beslisser == 3) {
dir = (random(2) * 2) + 1;
} else if (beslisser == 0) {
dir = 2;
}
}
}
if (walking == 1) {
this.gotoAndStop(dir);
_x = (_x + xspeed);
_y = (_y + yspeed);
moving++;
if (moving >= tilemove) {
walking = 0;
moving = 0;
}
}
if (this.hitTest(_root.tom.tomhit) && (_root.tom.cookieloss == 0)) {
_root.koekjes--;
_root.tom.cookieloss = 50;
_root.badguy1.rabnut.play();
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-gethit");
s.setVolume(100);
s.start();
}
if (_root.koekjes < 1) {
_root.gotoAndStop(128);
}
}
if ((_x == _root.koek._x) && (_y == _root.koek._y)) {
_root.koek._x = -100;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-monster");
s.setVolume(100);
s.start();
}
}
if (_root.tom._y < _y) {
this.swapDepths(101);
} else {
this.swapDepths(99);
}
}
}
Instance of Symbol 128 MovieClip "badguy2" in Frame 126
onClipEvent (load) {
this.swapDepths(98);
dir = random(4) + 1;
tilesize = 24;
tilemove = 4;
walking = 0;
moving = 0;
if (5 < _root.level) {
_x = 252;
_y = 204;
}
}
onClipEvent (enterFrame) {
if ((_root.tom.tomstatus == 0) && (5 < _root.level)) {
if (!_root.doolhof.hitTest(_x + (xspeed * 4), _y + (yspeed * 4), true)) {
if ((walking == 0) && (random(2) < 1)) {
olddir = dir;
dir = dir + (random(2) - 1);
if (dir < 1) {
dir = 4;
} else if (4 < dir) {
dir = 1;
}
if (((((dir == 1) && (_root.doolhof.hitTest(_x, _y + tilesize, true))) || ((dir == 2) && (_root.doolhof.hitTest(_x - tilesize, _y, true)))) || ((dir == 3) && (_root.doolhof.hitTest(_x, _y - tilesize, true)))) || ((dir == 4) && (_root.doolhof.hitTest(_x + tilesize, _y, true)))) {
dir = olddir;
}
}
}
if ((dir == 1) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
walking = 1;
xspeed = 0;
yspeed = 6;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 2;
} else if (beslisser == 2) {
dir = 4;
} else if (beslisser == 3) {
dir = (random(2) + 1) * 2;
} else if (beslisser == 0) {
dir = 3;
}
}
}
if ((dir == 2) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
walking = 1;
xspeed = -6;
yspeed = 0;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 1;
} else if (beslisser == 2) {
dir = 3;
} else if (beslisser == 3) {
dir = (random(2) * 2) + 1;
} else if (beslisser == 0) {
dir = 4;
}
}
}
if ((dir == 3) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
walking = 1;
xspeed = 0;
yspeed = -6;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 2;
} else if (beslisser == 2) {
dir = 4;
} else if (beslisser == 3) {
dir = (random(2) + 1) * 2;
} else if (beslisser == 0) {
dir = 1;
}
}
}
if ((dir == 4) && (walking == 0)) {
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
walking = 1;
xspeed = 6;
yspeed = 0;
} else {
beslisser = 0;
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
beslisser++;
}
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
beslisser = beslisser + 2;
}
if (beslisser == 1) {
dir = 1;
} else if (beslisser == 2) {
dir = 3;
} else if (beslisser == 3) {
dir = (random(2) * 2) + 1;
} else if (beslisser == 0) {
dir = 2;
}
}
}
if (walking == 1) {
this.gotoAndStop(dir);
_x = (_x + xspeed);
_y = (_y + yspeed);
moving++;
if (moving >= tilemove) {
walking = 0;
moving = 0;
}
}
if (this.hitTest(_root.tom.tomhit) && (_root.tom.cookieloss == 0)) {
_root.koekjes--;
_root.tom.cookieloss = 50;
_root.badguy2.rabnut.play();
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-gethit");
s.setVolume(100);
s.start();
}
if (_root.koekjes < 1) {
_root.gotoAndStop(128);
}
}
if ((_x == _root.koek._x) && (_y == _root.koek._y)) {
_root.koek._x = -100;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-monster");
s.setVolume(100);
s.start();
}
}
if (_root.tom._y < _y) {
this.swapDepths(102);
} else {
this.swapDepths(98);
}
}
}
Instance of Symbol 154 MovieClip "tom" in Frame 126
onClipEvent (load) {
this.swapDepths(100);
myColor = new Color(this);
colorStart = myColor.getTransform();
_root.flashy = 0;
koekteller = 750;
cookieloss = 0;
tomstatus = 0;
walkdir = 0;
walking = 0;
walkingbefore = 0;
olddir = 0;
moving = 0;
xspeed = 0;
yspeed = 0;
tilemove = 4;
tilesize = 24;
gepakt = 0;
let1goed = 0;
let2goed = 0;
let3goed = 0;
}
onClipEvent (enterFrame) {
if ((_root.letterdoel >= _root.level) && (tomstatus == 0)) {
_root.score = _root.score + _root.tijd;
walkdir = 10;
this.gotoAndPlay(10);
_root.nextlevel._x = _x;
_root.nextlevel._y = _y - 12;
_root.nextlevel.play();
tomstatus = 1;
}
if (tomstatus == 0) {
if (Key.isDown(Key.DOWN) && (walking == 0)) {
walkdir = 1;
if (!_root.doolhof.hitTest(_x, _y + tilesize, true)) {
walking = 1;
xspeed = 0;
yspeed = 6;
}
}
if (Key.isDown(Key.LEFT) && (walking == 0)) {
walkdir = 2;
if (!_root.doolhof.hitTest(_x - tilesize, _y, true)) {
walking = 1;
xspeed = -6;
yspeed = 0;
}
}
if (Key.isDown(Key.UP) && (walking == 0)) {
walkdir = 3;
if (!_root.doolhof.hitTest(_x, _y - tilesize, true)) {
walking = 1;
xspeed = 0;
yspeed = -6;
}
}
if (Key.isDown(Key.RIGHT) && (walking == 0)) {
walkdir = 4;
if (!_root.doolhof.hitTest(_x + tilesize, _y, true)) {
walking = 1;
xspeed = 6;
yspeed = 0;
}
}
if (((((!Key.isDown(Key.DOWN)) && (!Key.isDown(Key.LEFT))) && (!Key.isDown(Key.UP))) && (!Key.isDown(Key.RIGHT))) && (walking == 0)) {
this.gotoAndStop(walkdir);
}
if ((0 < walkdir) && (walking == 1)) {
if ((walkingbefore == 0) && (olddir != walkdir)) {
this.gotoAndStop(walkdir + 4);
walkingbefore = 1;
}
} else {
this.gotoAndStop(walkdir);
walkingbefore = 0;
}
if (walking == 1) {
_x = (_x + xspeed);
_y = (_y + yspeed);
moving++;
if (moving >= tilemove) {
walking = 0;
walkingbefore = 0;
moving = 0;
if ((((!Key.isDown(Key.DOWN)) && (!Key.isDown(Key.LEFT))) && (!Key.isDown(Key.UP))) && (!Key.isDown(Key.RIGHT))) {
this.gotoAndStop(walkdir);
}
}
}
bb = 1;
while (_root.level >= bb) {
if ((((_x == _root["letter" + bb]._x) && (_y == _root["letter" + bb]._y)) && (_root["letter" + bb].letter == _root.woord.substr(_root.letterdoel, 1))) && (_root["letter" + bb]._currentframe == 1)) {
_root["letter" + bb].play();
_root.letterdoel++;
_root.score = _root.score + 10;
_root.maakWoord2();
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-pickup");
s.setVolume(100);
s.start();
}
}
bb++;
}
if (_root.koek._x < 0) {
if (random(koekteller) < 2) {
_root.koekplek = random(_root.aantalplekken);
_root.koek._x = (_root.plekken[_root.koekplek][0] * 24) - 12;
_root.koek._y = (_root.plekken[_root.koekplek][1] * 24) - 12;
koekteller = 750;
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-newcookie");
s.setVolume(100);
s.start();
}
}
koekteller--;
} else if ((_x == _root.koek._x) && (_y == _root.koek._y)) {
if (_root.soundon == "yes") {
s = new Sound();
s.attachSound("snd-cookie");
s.setVolume(100);
s.start();
}
_root.koek._x = -100;
_root.koekjes++;
}
}
if (0 < cookieloss) {
cookieloss--;
mycolorTransform = new Object();
mycolorTransform.ra = colorStart.ra + (cookieloss * 2);
mycolorTransform.rb = colorStart.rb + (cookieloss * 3);
myColor.setTransform(mycolorTransform);
}
_root.flashy++;
if (12 < _root.flashy) {
if (_root.woord2a == _root.woord2) {
_root.woord2 = _root.woord2b;
} else {
_root.woord2 = _root.woord2a;
}
_root.flashy = 0;
}
}
Instance of Symbol 171 MovieClip in Frame 126
onClipEvent (load) {
teller = 0;
}
onClipEvent (enterFrame) {
if ((_root.tom.tomstatus == 0) && (0 < _root.tijd)) {
teller++;
if (teller == 5) {
teller = 0;
_root.tijd--;
}
}
}
Instance of Symbol 181 MovieClip "nextlevel" in Frame 126
onClipEvent (load) {
this.swapDepths(110);
}
Frame 127
_root.score = _root.score + _root.tijd;
_root.tijd = 120;
_root.level++;
_root.tom.removeMovieClip();
_root.badguy1.removeMovieClip();
_root.badguy2.removeMovieClip();
_root.nextlevel.removeMovieClip();
Frame 128
_root.tom.removeMovieClip();
_root.badguy1.removeMovieClip();
_root.badguy2.removeMovieClip();
_root.nextlevel.removeMovieClip();
cc = 1;
while (_root.level >= cc) {
_root["letter" + cc]._x = -100;
cc++;
}
if (0 < _root.koekjes) {
_root.eindtekst = "You found all the words in the maze!\nscore: " + _root.score;
} else {
_root.eindebg.gotoAndStop(2);
if (_root.level == 2) {
_root.eindtekst = (("You found " + (_root.level - 1)) + " word in the maze.\nscore: ") + _root.score;
} else {
_root.eindtekst = (("You found " + (_root.level - 1)) + " words in the maze.\nscore: ") + _root.score;
}
}
Frame 129
_root.scorea = _root.score + "a";
scorelength = _root.scorea.length;
scorelength--;
a = 0;
while (a < scorelength) {
_root["scorenum" + a] = _root.scorea.substr(a, 1);
if (_root["scorenum" + a] == 0) {
_root["scorenum" + a] = "z";
} else if (_root["scorenum" + a] == 1) {
_root["scorenum" + a] = 7;
} else if (_root["scorenum" + a] == 2) {
_root["scorenum" + a] = 3;
} else if (_root["scorenum" + a] == 3) {
_root["scorenum" + a] = "p";
} else if (_root["scorenum" + a] == 4) {
_root["scorenum" + a] = "j";
} else if (_root["scorenum" + a] == 5) {
_root["scorenum" + a] = 5;
} else if (_root["scorenum" + a] == 6) {
_root["scorenum" + a] = 1;
} else if (_root["scorenum" + a] == 7) {
_root["scorenum" + a] = "t";
} else if (_root["scorenum" + a] == 8) {
_root["scorenum" + a] = "k";
} else if (_root["scorenum" + a] == 9) {
_root["scorenum" + a] = 6;
}
a++;
}
_root.scorecode = ("x" + random(9)) + random(9);
b = scorelength - 1;
while (b >= 0) {
_root.scorecode = _root.scorecode + _root["scorenum" + b];
b--;
}
mynewscore = _root.score;
getURL ("http://www.happytree.com/games/doolhof/doolhofscore.php", "", "POST");
Symbol 9 Button
on (release) {
getURL ("http://www.happytree.com", "_blank");
}
Symbol 31 Button
on (release) {
_root.gotoAndStop(126);
}
Symbol 35 Button
on (release) {
_root.helpscreen._visible = true;
}
Instance of Symbol 69 MovieClip in Symbol 72 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.ploaded = (_root.getBytesLoaded() / totalsize) * 100;
this._xscale = _root.ploaded;
if ((_root._framesloaded == _root._totalframes) && (_root._currentframe == 125)) {
_root.startmenu._visible = true;
_root.loadingscreen._visible = false;
}
}
onClipEvent (load) {
totalsize = _root.getBytesTotal();
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 9
_x = -100;
_y = -100;
Symbol 90 MovieClip Frame 1
stop();
Symbol 105 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 1
stop();
Symbol 154 MovieClip Frame 41
stop();
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 58
_root.gotoAndStop(127);
Symbol 189 Button
on (release) {
if (_root.level < 11) {
_root.gotoAndStop(126);
} else {
_root.gotoAndStop(128);
}
}
on (keyPress "<Space>") {
if (_root.level < 11) {
_root.gotoAndStop(126);
} else {
_root.gotoAndStop(128);
}
}
on (keyPress "<Enter>") {
if (_root.level < 11) {
_root.gotoAndStop(126);
} else {
_root.gotoAndStop(128);
}
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 198 Button
on (release, keyPress "<Enter>") {
_root.gotoAndStop(125);
}
Symbol 205 Button
on (release) {
if (0 < _root.username.length) {
_root.gotoAndStop(129);
}
}