Frame 1
function bitOR(a, b) {
var lsb = ((a & 1) | (b & 1));
var msb31 = ((a >>> 1) | (b >>> 1));
return((msb31 << 1) | lsb);
}
function bitXOR(a, b) {
var lsb = ((a & 1) ^ (b & 1));
var msb31 = ((a >>> 1) ^ (b >>> 1));
return((msb31 << 1) | lsb);
}
function bitAND(a, b) {
var lsb = ((a & 1) & (b & 1));
var msb31 = ((a >>> 1) & (b >>> 1));
return((msb31 << 1) | lsb);
}
function addme(x, y) {
var lsw = ((x & 65535) + (y & 65535));
var msw = (((x >> 16) + (y >> 16)) + (lsw >> 16));
return((msw << 16) | (lsw & 65535));
}
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt((num >> ((j * 8) + 4)) & 15) + hex_chr.charAt((num >> (j * 8)) & 15));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((((str.length * 8) + i) % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((((str.length * 8) + i) % 4) * 8));
var l = (str.length * 8);
blks[(nblk * 16) - 2] = l & 255;
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((l >>> 8) & 255) << 8);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((l >>> 16) & 255) << 16);
blks[(nblk * 16) - 2] = blks[(nblk * 16) - 2] | (((l >>> 24) & 255) << 24);
return(blks);
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, c), bitAND(~b, d)), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(bitOR(bitAND(b, d), bitAND(c, ~d)), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn(bitXOR(bitXOR(b, c), d), a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(bitXOR(c, bitOR(b, ~d)), a, b, x, s, t));
}
function calcMD5(str) {
x = str2blks_MD5(str);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
var step;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
step = 0;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
}
stop();
Stage.scaleMode = "noScale";
Stage.align = "C";
_root.path = "game/";
stop();
var hex_chr = "0123456789abcdef";
this.onEnterFrame = function () {
this.totalb = this.getBytesTotal();
this.loadedb = this.getBytesLoaded();
this.percentb = Math.round((this.loadedb / this.totalb) * 100);
if (this.percentb >= 100) {
this.onEnterFrame = false;
this.play();
}
};
Frame 2
stop();
view = false;
Frame 3
function drivecar(carspeed) {
tile_0_0._alpha = 100;
car.swapDepths(10000);
car._x = startx;
car._y = starty;
car.d = 0;
car.speed = carspeed;
if (directions[car.d] == "left") {
car._rotation = 180;
car.xtar = car._x - _root.tilesize;
car.ytar = car._y;
}
if (directions[car.d] == "right") {
car._rotation = 0;
car.xtar = car._x + _root.tilesize;
car.ytar = car._y;
}
if (directions[car.d] == "up") {
car._rotation = -90;
car.xtar = car._x;
car.ytar = car._y - _root.tilesize;
}
if (directions[car.d] == "down") {
car._rotation = 90;
car.xtar = car._x;
car.ytar = car._y + _root.tilesize;
}
car.onEnterFrame = function () {
if (_root.directions[this.d] == "left") {
this._rotation = 180;
this._x = this._x - this.speed;
}
if (_root.directions[this.d] == "right") {
this._rotation = 0;
this._x = this._x + this.speed;
}
if (_root.directions[this.d] == "up") {
this._rotation = -90;
this._y = this._y - this.speed;
}
if (_root.directions[this.d] == "down") {
this._rotation = 90;
this._y = this._y + this.speed;
}
if ((this._x == this.xtar) && (this._y == this.ytar)) {
this.d++;
if (_root.directions[this.d] == "left") {
this.xtar = this._x - _root.tilesize;
this.ytar = this._y;
this.b--;
}
if (_root.directions[this.d] == "right") {
this.xtar = this._x + _root.tilesize;
this.ytar = this._y;
this.b++;
}
if (_root.directions[this.d] == "up") {
this.xtar = this._x;
this.ytar = this._y - _root.tilesize;
this.h--;
}
if (_root.directions[this.d] == "down") {
this.xtar = this._x;
this.ytar = this._y + _root.tilesize;
this.h++;
}
if (this.speedup == true) {
this.speed = 10;
}
}
_root[(("tile_" + (this.b + 1)) + "_") + this.h].drive = true;
if (_root.directions[this.d] == undefined) {
this.onEnterFrame = false;
if (tiles[tiles.length - 1] == "tile_9_9") {
car.onEnterFrame = function () {
if (this._x < 430) {
this._x = this._x + 5;
} else {
this.onEnterFrame = false;
}
};
confetti();
levelbonus = 1000 - (this.d * 20);
mbox(((("<p align='center'><b>Levelbonus</b><br>" + levelbonus) + " punten<br><br><b>Level ") + (_root.level + 1)) + "!</b></p>");
score = score + levelbonus;
var t = createEmptyMovieClip("t", 20000);
t.timer = getTimer() + 2000;
t.onEnterFrame = function () {
if (getTimer() >= this.timer) {
startgame();
this.removeMovieClip();
}
};
} else {
car.attachMovie("brake", "brake", 1);
s.stop();
s = new Sound();
s.attachSound("car_break.wav");
s.start();
var t = createEmptyMovieClip("t", 20000);
t.timer = getTimer() + 2000;
t.onEnterFrame = function () {
if (getTimer() >= this.timer) {
_root.car.brake.removeMovieClip();
_root.gotoAndPlay(4);
this.removeMovieClip();
}
};
playvar = false;
level = false;
leveltime = false;
mbox("<p align='center'><b>Game Over!</b></p>");
}
}
};
}
function checkleft() {
if (((grid[(("tile_" + (b - 1)) + "_") + h] == 1) || (grid[(("tile_" + (b - 1)) + "_") + h] == 4)) || (grid[(("tile_" + (b - 1)) + "_") + h] == 5)) {
if (moving == false) {
b--;
moving = true;
directions.push("left");
}
}
}
function checkright() {
if (((grid[(("tile_" + (b + 1)) + "_") + h] == 1) || (grid[(("tile_" + (b + 1)) + "_") + h] == 3)) || (grid[(("tile_" + (b + 1)) + "_") + h] == 6)) {
if (moving == false) {
b++;
moving = true;
directions.push("right");
}
}
}
function checkup() {
if (((grid[(("tile_" + b) + "_") + (h - 1)] == 2) || (grid[(("tile_" + b) + "_") + (h - 1)] == 5)) || (grid[(("tile_" + b) + "_") + (h - 1)] == 6)) {
if (moving == false) {
h--;
moving = true;
directions.push("up");
}
}
}
function checkdown() {
if (((grid[(("tile_" + b) + "_") + (h + 1)] == 2) || (grid[(("tile_" + b) + "_") + (h + 1)] == 3)) || (grid[(("tile_" + b) + "_") + (h + 1)] == 4)) {
if (moving == false) {
h++;
moving = true;
directions.push("down");
}
}
}
function checkroute() {
checker = "searching";
tilename = (("tile_" + b) + "_") + h;
tiler = grid[tilename];
tiles.push(tilename);
if ((tiler == 1) && (checker == "searching")) {
moving = false;
if (directions[directions.length - 1] != "left") {
checkright();
}
if (directions[directions.length - 1] != "right") {
checkleft();
}
if (moving == false) {
checker = "break";
}
}
if ((tiler == 2) && (checker == "searching")) {
moving = false;
if (directions[directions.length - 1] != "up") {
checkdown();
}
if (directions[directions.length - 1] != "down") {
checkup();
}
if (moving == false) {
checker = "break";
}
}
if ((tiler == 3) && (checker == "searching")) {
moving = false;
if (directions[directions.length - 1] != "right") {
checkleft();
}
if (directions[directions.length - 1] != "down") {
checkup();
}
if (moving == false) {
checker = "break";
}
}
if ((tiler == 4) && (checker == "searching")) {
moving = false;
if (directions[directions.length - 1] != "left") {
checkright();
}
if (directions[directions.length - 1] != "down") {
checkup();
}
if (moving == false) {
checker = "break";
}
}
if ((tiler == 5) && (checker == "searching")) {
moving = false;
if (directions[directions.length - 1] != "up") {
checkdown();
}
if (directions[directions.length - 1] != "left") {
checkright();
}
if (moving == false) {
checker = "break";
}
}
if ((tiler == 6) && (checker == "searching")) {
moving = false;
if (directions[directions.length - 1] != "up") {
checkdown();
}
if (directions[directions.length - 1] != "right") {
checkleft();
}
if (moving == false) {
checker = "break";
}
}
if ((tiles[tiles.length - 1] == "tile_9_9") && (_root.playvar == true)) {
timerbar.onEnterFrame = false;
timebonus = Math.round(timerbar._xscale) * 10;
score = score + timebonus;
playvar = false;
if (driving == false) {
s = new Sound();
s.attachSound("car_drive.wav");
s.start(0, 99999);
drivecar(10);
stopwatch.stop();
} else {
s.stop();
s.attachSound("car_drive_fast.wav");
s.start(0, 99999);
car.speedup = true;
}
if (timebonus > 0) {
mbox(("<p align='center'><b>Tijdbonus</b><br>" + timebonus) + " punten</p>");
}
}
}
function buildgrid() {
lvl = 0;
var h = 0;
while (h < gridh) {
grid.push(new Array());
var b = 0;
while (b < gridw) {
lvl++;
var tile = attachMovie("tile", (("tile_" + b) + "_") + h, lvl);
tile.drive = false;
with (tile) {
_alpha = 0;
tile.onEnterFrame = function () {
if (_alpha < 100) {
_alpha = _alpha + 10;
} else {
_alpha = 100;
onEnterFrame = false;
}
};
_x = (b * tilesize) + startx;
_y = (h * tilesize) + starty;
tile.index = (("tile_" + b) + "_") + h;
gotoAndStop(random(_totalframes - 1) + 1);
if ((b == 0) || (b == 9)) {
f = random(4) + 3;
gotoAndStop(f);
}
if (tile.index == "tile_0_0") {
gotoAndStop(4);
}
if (tile.index == "tile_9_9") {
gotoAndStop(1);
}
grid[(("tile_" + b) + "_") + h] = _currentframe;
if ((tile.index != "tile_0_0") && (tile.index != "tile_9_9")) {
if ((_currentframe == 1) || (_currentframe == 2)) {
button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe == 1) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(1);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
} else {
button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe < 6) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(3);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
}
}
}
b++;
}
h++;
}
var h = 0;
while (h < gridh) {
var b = 0;
while (b < gridw) {
chance = random(100);
if (((((chance < 10) && (b > 2)) && (b < 7)) && (h > 2)) && (h < 7)) {
_root[(("tile_" + b) + "_") + h].gotoAndStop(7);
grid[(("tile_" + b) + "_") + h] = _root[(("tile_" + b) + "_") + h]._currentframe;
_root[(("tile_" + b) + "_") + h].button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe < 6) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(3);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
_root[(("tile_" + (b - 1)) + "_") + h].gotoAndStop(random(4) + 3);
grid[(("tile_" + (b - 1)) + "_") + h] = _root[(("tile_" + (b - 1)) + "_") + h]._currentframe;
_root[(("tile_" + (b - 1)) + "_") + h].button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe < 6) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(3);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
_root[(("tile_" + (b + 1)) + "_") + h].gotoAndStop(random(4) + 3);
grid[(("tile_" + (b + 1)) + "_") + h] = _root[(("tile_" + (b + 1)) + "_") + h]._currentframe;
_root[(("tile_" + (b + 1)) + "_") + h].button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe < 6) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(3);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
_root[(("tile_" + b) + "_") + (h - 1)].gotoAndStop(random(4) + 3);
grid[(("tile_" + b) + "_") + (h - 1)] = _root[(("tile_" + b) + "_") + (h - 1)]._currentframe;
_root[(("tile_" + b) + "_") + (h - 1)].button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe < 6) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(3);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
_root[(("tile_" + b) + "_") + (h + 1)].gotoAndStop(random(4) + 3);
grid[(("tile_" + b) + "_") + (h + 1)] = _root[(("tile_" + b) + "_") + (h + 1)]._currentframe;
_root[(("tile_" + b) + "_") + (h + 1)].button.onPress = function () {
if ((_root.playvar == true) && (this._parent.drive == false)) {
cl = new Sound();
cl.attachSound("click.wav");
cl.start();
if (this._parent._currentframe < 6) {
this._parent.play();
_root.grid[this._parent.index] = this._parent._currentframe + 1;
} else {
this._parent.gotoAndPlay(3);
_root.grid[this._parent.index] = this._parent._currentframe;
}
}
};
}
b++;
}
h++;
}
}
function settimer(leveltime, speed) {
timerbar.endtime = leveltime;
timerbar.starttime = getTimer();
timerbar.playsound = true;
timerbar.onEnterFrame = function () {
this.timepast = getTimer() - this.starttime;
this.percent = 100 - ((this.timepast / this.endtime) * 100);
this._xscale = this.percent;
if (((this.endtime - this.timepast) <= 1000) && (this.playsound == true)) {
this.playsound = false;
s = new Sound();
s.attachSound("auto_start.wav");
s.start();
}
if (this.percent <= 0.5) {
this.onEnterFrame = false;
this._xscale = 0;
driving = true;
s = new Sound();
s.attachSound("car_drive.wav");
s.start(0, 99999);
drivecar(speed);
stopwatch.stop();
}
};
}
function mbox(mes) {
var m = attachMovie("messagebox", "messagebox", 100000);
m.message.html = true;
m.message.autoSize = "center";
m.message.htmlText = mes;
m.message._y = 48 - (m.message._height / 2);
m._x = 155;
m._y = -50;
m.ytar = (stageh / 2) - (m._height / 2);
m.onEnterFrame = function () {
this._y = this._y + ((this.ytar - this._y) / 5);
if (this._y > (this.ytar - 0.5)) {
this.ytar = 500;
}
if (this._y > _root.stageh) {
this.removeMovieClip();
}
};
}
function confetti() {
var i = 0;
while (i < 25) {
var c = confetti_mc.attachMovie("confet", "confet" + i, i);
c.gotoAndStop(random(5) + 1);
c.ys = random(10) + 5;
c.xs = 5 - random(10);
c.onEnterFrame = function () {
this._x = this._x + this.xs;
this._y = this._y - this.ys;
this._rotation = this._y;
this.ys = this.ys - 1;
this.xs = this.xs * 0.95;
if (this._y > 50) {
this.removeMovieClip();
}
};
i++;
}
s.stop();
s = new Sound();
s.attachSound("fworks.wav");
s.start();
}
function startgame() {
car.speedup = false;
car._x = car.startx;
car._y = car.starty;
if (!level) {
level = 1;
mbox("<p align='center'><b>Level 1</b><br>Succes!</p>");
} else {
level++;
}
leveldisplay.text = level;
if (!carspeed) {
carspeed = 2;
}
if (level == 10) {
carspeed = 2.5;
}
if (level == 30) {
carspeed = 5;
}
if (!leveltime) {
leveltime = 60000;
} else {
leveltime = leveltime - 2000;
}
buildgrid();
count = 0;
b = (car.b = 0);
h = (car.h = 0);
directions = new Array();
tiles = new Array();
while (count < 100) {
count++;
checkroute();
}
settimer(leveltime, carspeed);
stopwatch.play();
playvar = true;
driving = false;
if (level == 1) {
score = 0;
}
var scoremc = createEmptyMovieClip("scoremc", 1000);
scoremc.onEnterFrame = function () {
scoredisplay.text = score;
};
}
stop();
stagew = 400;
stageh = 400;
view = false;
gridw = 10;
gridh = 10;
tilesize = 30;
startx = 5 + (tilesize / 2);
starty = 51 + (tilesize / 2);
grid = new Array();
onMouseUp = function () {
count = 0;
b = 0;
h = 0;
directions = new Array();
tiles = new Array();
while (count < 100) {
count++;
checkroute();
}
};
startgame();
Instance of Symbol 61 MovieClip "car" in Frame 3
onClipEvent (load) {
this.swapDepths(10000);
this.b = 0;
this.h = 0;
this.startx = this._x;
this.starty = this._y;
}
Instance of Symbol 90 MovieClip "confetti_mc" in Frame 3
onClipEvent (load) {
this.swapDepths(200000);
}
Frame 4
stop();
for (mc in _root) {
if (typeof(_root[mc]) == "movieclip") {
_root[mc].removeMovieClip();
}
}
Instance of Symbol 108 MovieClip "concludemc" in Frame 4
/* no clip actions */
Symbol 27 MovieClip Frame 1
stop();
Symbol 27 MovieClip Frame 2
stop();
Symbol 27 MovieClip Frame 3
stop();
Symbol 27 MovieClip Frame 4
stop();
Symbol 27 MovieClip Frame 5
stop();
Symbol 28 MovieClip [tile] Frame 1
stop();
Symbol 28 MovieClip [tile] Frame 2
stop();
Symbol 28 MovieClip [tile] Frame 3
stop();
Symbol 28 MovieClip [tile] Frame 4
stop();
Symbol 28 MovieClip [tile] Frame 5
stop();
Symbol 28 MovieClip [tile] Frame 6
stop();
Symbol 28 MovieClip [tile] Frame 7
stop();
Instance of Symbol 27 MovieClip in Symbol 28 MovieClip [tile] Frame 7
onClipEvent (load) {
gotoAndStop(random(this._totalframes) + 1);
}
Symbol 39 MovieClip [confet] Frame 1
stop();
Symbol 39 MovieClip [confet] Frame 2
stop();
Symbol 39 MovieClip [confet] Frame 3
stop();
Symbol 39 MovieClip [confet] Frame 4
stop();
Symbol 39 MovieClip [confet] Frame 5
stop();
Symbol 46 Button
on (release) {
var teller = new LoadVars();
teller.PHPSESSID = _root.peanut;
teller.sendAndLoad(_root.path + "teller.php", teller, "POST");
gotoAndPlay (3);
}
Symbol 52 Button
on (release) {
play();
}
Symbol 66 Button
on (release) {
gotoAndStop (1);
}
Symbol 70 MovieClip Frame 2
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 187
stopAllSounds();
Symbol 81 MovieClip Frame 235
gotoAndPlay (2);
Symbol 82 Button
on (release) {
view = true;
gotoAndPlay (4);
}
Symbol 108 MovieClip Frame 1
stop();
if (_root.score > 0) {
var keystring = (((("km04" + _root.peanut) + _root.score) + "") + _root.leveldisplay.text);
var key = _root.calcMD5(keystring);
var c = new LoadVars();
c.score = _root.score;
c.level = _root.leveldisplay.text;
c.PHPSESSID = _root.peanut;
c.key = key;
c.send(_root.path + "post_score.php", "gameleft", "POST");
}
var teller = new LoadVars();
teller.PHPSESSID = _root.peanut;
teller.sendAndLoad(_root.path + "teller.php", teller, "POST");
_root.gotoAndPlay(2);