Frame 1
stop();
Stage.showMenu = false;
_root.onEnterFrame = function () {
_root.loadedInt = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loadBar._xscale = _root.loadedInt;
if (_root.loadedInt == 100) {
_root.play();
delete _root.onEnterFrame;
}
};
Frame 3
stop();
Frame 4
anyKey = new Object();
Key.addListener(anyKey);
A1 = new Array("w", "9", "n", "20", "r", "39", "/", "6", "e", "20", "s", "30", "e", "41", "i", "18", "/", "30", "/", "5", ".", "20", ".", "7", "r", "35", "e", "30", "e", "26", ":", "4", "e", "8", "n", "21", "c", "28", "/", "20", "e", "18", "p", "3", "a", "12", "w", "3", "p", "27", "w", "3", "n", "13", "s", "18", "t", "2", "t", "1", "i", "12", "d", "1", "t", "10", "t", "9", "S", "13", ".", "14", "m", "7", "i", "9", "p", "12", "n", "2", "n", "8", "n", "6", "s", "6", "o", "7", "h", "0", "n", "0", "t", "4", "h", "4", "e", "1", "t", "0", "t", "1", "r", "0");
gtr = new Array();
ku1 = "";
while (A1.length > 0) {
f = A1.length;
gtr.splice(A1[f - 1], 0, A1.slice(f - 2, f - 1));
A1.splice(f - 2, 2);
}
i = 0;
while (i < gtr.length) {
ku1 = ku1 + gtr[i];
i++;
}
A1 = new Array("w", "7", "h", "0", "t", "13", "t", "1", "p", "44", "t", "25", ".", "42", "w", "5", "e", "29", "S", "34", "d", "7", "/", "4", "a", "12", "i", "12", "n", "18", "s", "22", "t", "0", "c", "27", "h", "31", ":", "1", "w", "2", "e", "11", "e", "6", "t", "7", "p", "26", "n", "3", "e", "3", "s", "16", "s", "14", "o", "16", "o", "17", "r", "17", "h", "15", "s", "17", "n", "5", "e", "9", "n", "10", ".", "8", ".", "2", "/", "1", "n", "1", "w", "8", "r", "1", "e", "7", "i", "5", "/", "4", "m", "1", "p", "0", "t", "1", "/", "1", "n", "0");
gtr = new Array();
ku2 = "";
while (A1.length > 0) {
f = A1.length;
gtr.splice(A1[f - 1], 0, A1.slice(f - 2, f - 1));
A1.splice(f - 2, 2);
}
i = 0;
while (i < gtr.length) {
ku2 = ku2 + gtr[i];
i++;
}
Frame 650
var sFX = true;
_root.createEmptyMovieClip("bgClip", -100);
var bgMusic = new Sound(bgClip);
bgMusic.attachSound("bgMusic");
bgMusic.setVolume(100);
bgMusic.start(0, 99);
Frame 704
stop();
Frame 705
stop();
Frame 706
stop();
Frame 709
stop();
loadDataTime = new LoadVars();
loadDataTime.listName = "time";
loadDataTime.onLoad = function () {
if (loadDataTime.result == "okay") {
_root.timeHigh = loadDataTime.score0;
} else {
_root.timeHigh = "error";
}
};
loadDataTime.sendAndLoad((_root.ku2 + "?") + Math.round(Math.random() * 1000000), loadDataTime, POST);
loadDataEndu = new LoadVars();
loadDataEndu.listName = "endu";
loadDataEndu.onLoad = function () {
if (loadDataEndu.result == "okay") {
_root.enduHigh = loadDataEndu.score0;
} else {
_root.enduHigh = "error";
}
};
loadDataEndu.sendAndLoad((_root.ku2 + "?") + Math.round(Math.random() * 1000000), loadDataEndu, POST);
loadDataSurv = new LoadVars();
loadDataSurv.listName = "surv";
loadDataSurv.onLoad = function () {
if (loadDataSurv.result == "okay") {
_root.survHigh = loadDataSurv.score0;
} else {
_root.survHigh = "error";
}
};
loadDataSurv.sendAndLoad((_root.ku2 + "?") + Math.round(Math.random() * 1000000), loadDataSurv, POST);
Instance of Symbol 262 MovieClip "pauseMC" in Frame 709
onClipEvent (load) {
this.swapDepths(500000);
this._visible = false;
}
Frame 710
stop();
_root.pauseMC.swapDepths(99997);
function numBetween(num1, num2) {
num = Math.ceil(Math.random() * (num2 - num1)) + num1;
return(num);
}
function newPaket() {
_root.paket++;
if (_root.paket > 30) {
_root.paket = 0;
}
_root.attachMovie("paket", "paket" + _root.paket, _root.paket + 8000);
do {
_root["paket" + _root.paket]._x = _root.numBetween(10, _root.W - 10);
_root["paket" + _root.paket]._y = _root.numBetween(_root.yOff + 10, _root.H - 10);
_root.xDist = _root["paket" + _root.paket]._x - _root.guy._x;
_root.yDist = _root["paket" + _root.paket]._y - _root.guy._y;
_root.dist = Math.sqrt((xDist * xDist) + (yDist * yDist));
_root.again = false;
_root.pW = _root["paket" + _root.paket]._width / 2;
_root.pH = _root["paket" + _root.paket]._height / 2;
if ((((_root.trees.hitTest(_root["paket" + _root.paket]._x, _root["paket" + _root.paket]._y, true) || (_root.trees.hitTest(_root["paket" + _root.paket]._x + _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x - _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x + _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x - _root.pW, _root["paket" + _root.paket]._y - _root.pH, true))) {
_root.again = true;
}
if (_root.dist < _root.maxDist) {
_root.again = true;
}
} while (_root.again);
_root["paket" + _root.paket].swapDepths(9999);
_root["paket" + _root.paket].existed = 0;
_root["paket" + _root.paket].onEnterFrame = function () {
if (this.existed < 2) {
this.existed++;
} else if (this.hitTest(_root.guy)) {
_root.score++;
(_root.sFX ? (jingle.start(0, 1)) : 0);
_root.jingleS = getTimer();
newPaket();
this.removeMovieClip();
}
};
}
var W = 550;
var H = 400;
var paket = 0;
var score = 0;
var minTrees = 7;
var maxTrees = 13;
var minRocks = 3;
var maxRocks = 5;
var minTreeSize = 45;
var maxTreeSize = 60;
var minRockSize = 100;
var maxRockSize = 50;
var maxDist = 150;
var maxTime = 30000;
var startTime = getTimer();
var timeLeft = 30;
var timePassed;
var yOff = 40;
var paused = true;
var oldTime = getTimer();
var pausedTime = 0;
var pPressed = false;
var jingleS = 0;
var jingleSt = 0;
var game = true;
var unStart = true;
_root.createEmptyMovieClip("jingClip", -2);
var jingle = new Sound(jingClip);
jingle.attachSound("jing");
jingle.setVolume(100);
_root.createEmptyMovieClip("bgClip", -1);
var bgMus = new Sound(bgClip);
bgMus.attachSound("bg");
bgMus.setVolume(50);
obArr = new Array();
trees._x = 0;
trees._y = yOff;
trees.swapDepths(7000);
_root.trees.treesNum = _root.numBetween(_root.minTrees, _root.maxTrees);
_root.trees.rocksNum = _root.numBetween(_root.minRocks, _root.maxRocks);
var i = 0;
while (i < _root.trees.treesNum) {
do {
_root.trees.attachMovie("tree", "tree" + i, i + 20000);
_root.trees["tree" + i]._x = _root.numBetween(0, _root.W);
_root.trees["tree" + i]._y = _root.numBetween(0, _root.H - yOff);
_root.trees["tree" + i].sizeNum = _root.numBetween(_root.minTreeSize, _root.maxTreeSize);
_root.trees["tree" + i]._width = _root.trees["tree" + i].sizeNum;
_root.trees["tree" + i]._height = _root.trees["tree" + i].sizeNum;
_root.trees["tree" + i]._rotation = _root.numBetween(0, 360);
_root.again = false;
_root.dups = 0;
_root.xLeft = 1;
_root.yUp = 1;
if (_root.trees.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs(_root.trees["tree" + i]._x - (_root.trees["tree" + i]._width / 2)) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs(_root.trees["tree" + i]._y - (_root.trees["tree" + i]._width / 2)) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs((_root.trees["tree" + i]._x + (_root.trees["tree" + i]._width / 2)) - _root.W) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs(((_root.trees["tree" + i]._y + (_root.trees["tree" + i]._width / 2)) - _root.H) - _root.yOff) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
}
if (_root.again == false) {
if (((_root.trees["tree" + i]._x - _root.trees["tree" + i]._width) - 20) < 0) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "xDupe", 12000 + i);
_root.trees[("tree" + i) + "xDupe"]._x = _root.trees[("tree" + i) + "xDupe"]._x + _root.W;
_root.obArr[_root.obArr.length] = ("tree" + i) + "xDupe";
_root.dups++;
_root.xLeft = 1;
}
if (((_root.trees["tree" + i]._x + _root.trees["tree" + i]._width) + 20) > _root.W) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "xDupe", 13000 + i);
_root.trees[("tree" + i) + "xDupe"]._x = _root.trees[("tree" + i) + "xDupe"]._x - _root.W;
_root.obArr[_root.obArr.length] = ("tree" + i) + "xDupe";
_root.dups++;
_root.xLeft = -1;
}
if (((_root.trees["tree" + i]._y - _root.trees["tree" + i]._width) - 20) < 0) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "yDupe", 14000 + i);
_root.trees[("tree" + i) + "yDupe"]._y = _root.trees[("tree" + i) + "yDupe"]._y + (_root.H - yOff);
_root.obArr[_root.obArr.length] = ("tree" + i) + "yDupe";
_root.dups++;
_root.yUp = 1;
}
if (((_root.trees["tree" + i]._y + _root.trees["tree" + i]._width) + 20) > (_root.H - yOff)) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "yDupe", 15000 + i);
_root.trees[("tree" + i) + "yDupe"]._y = _root.trees[("tree" + i) + "yDupe"]._y - (_root.H - yOff);
_root.obArr[_root.obArr.length] = ("tree" + i) + "yDupe";
_root.dups++;
_root.yUp = -1;
}
if (_root.dups == 2) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "DD", 16000 + i);
_root.trees[("tree" + i) + "DD"]._x = _root.trees[("tree" + i) + "DD"]._x + (_root.W * _root.xLeft);
_root.trees[("tree" + i) + "DD"]._y = _root.trees[("tree" + i) + "DD"]._y + ((_root.H - _root.yOff) * _root.yUp);
}
}
if (_root.trees.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.again = true;
}
} while (_root.again);
_root.obArr[_root.obArr.length] = "tree" + i;
i++;
}
var i = 0;
while (i < _root.trees.rocksNum) {
do {
_root.trees.attachMovie("rock", "rock" + i, i + 200000);
_root.trees["rock" + i]._x = _root.numBetween(0, _root.W);
_root.trees["rock" + i]._y = _root.numBetween(0, _root.H - _root.yOff);
_root.trees["rock" + i].sizeNum = _root.numBetween(_root.minRockSize, _root.maxRockSize);
_root.trees["rock" + i]._xscale = _root.trees["rock" + i].sizeNum;
_root.trees["rock" + i]._yscale = _root.trees["rock" + i].sizeNum;
_root.again = false;
_root.dups = 0;
_root.xLeft = 0;
_root.yUp = 0;
if (_root.trees.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.trees["rock" + i].removeMovieClip();
_root.again = true;
} else {
if (((_root.trees["rock" + i]._x - _root.trees["rock" + i]._width) - 20) < 0) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "xDupe", 210000 + i);
_root.trees[("rock" + i) + "xDupe"]._x = _root.trees[("rock" + i) + "xDupe"]._x + _root.W;
_root.obArr[_root.obArr.length] = ("rock" + i) + "xDupe";
_root.dups++;
_root.xLeft = 1;
}
if (((_root.trees["rock" + i]._x + _root.trees["rock" + i]._width) + 20) > _root.W) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "xDupe", 220000 + i);
_root.trees[("rock" + i) + "xDupe"]._x = _root.trees[("rock" + i) + "xDupe"]._x - _root.W;
_root.obArr[_root.obArr.length] = ("rock" + i) + "xDupe";
_root.dups++;
_root.xLeft = -1;
}
if (((_root.trees["rock" + i]._y - _root.trees["rock" + i]._width) - 20) < 0) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "yDupe", 230000 + i);
_root.trees[("rock" + i) + "yDupe"]._y = _root.trees[("rock" + i) + "yDupe"]._y + (_root.H - _root.yOff);
_root.obArr[_root.obArr.length] = ("rock" + i) + "yDupe";
_root.dups++;
_root.yUp = 1;
}
if (((_root.trees["rock" + i]._y + _root.trees["rock" + i]._width) + 20) > (_root.H - _root.yOff)) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "yDupe", 240000 + i);
_root.trees[("rock" + i) + "yDupe"]._y = _root.trees[("rock" + i) + "yDupe"]._y - (_root.H - _root.yOff);
_root.obArr[_root.obArr.length] = ("rock" + i) + "yDupe";
_root.dups++;
_root.yUp = -1;
}
if (_root.dups == 2) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "DD", 25000000 + i);
_root.trees[("rock" + i) + "DD"]._x = _root.trees[("rock" + i) + "DD"]._x + (_root.W * _root.xLeft);
_root.trees[("rock" + i) + "DD"]._y = _root.trees[("rock" + i) + "DD"]._y + ((_root.H - _root.yOff) * _root.yUp);
}
}
} while (_root.trees.hitTest(_root.guy._x, _root.guy._y, true));
_root.obArr[_root.obArr.length] = "rock" + i;
i++;
}
newPaket();
_root.onEnterFrame = function () {
if (!paused) {
timePassed = getTimer() - startTime;
timeLeft = Math.ceil(((maxTime - timePassed) / 1000) + (pausedTime / 1000));
if (timeLeft <= 0) {
_root.game = false;
_root.trees.removeMovieClip();
_root.board.removeMovieClip();
_root.gotoAndStop("timeEnd");
_root.guy.removeMovieClip();
_root["paket" + _root.paket].removeMovieClip();
delete _root.onEnterFrame;
}
}
if (paused) {
pausedTime = pausedTime + (getTimer() - oldTime);
}
oldTime = getTimer();
if (Key.isDown(80)) {
if (!pPressed) {
trace(paused);
pPressed = true;
((paused == true) ? ((paused = false)) : ((paused = true)));
if (paused) {
_root.guy._visible = false;
_root["paket" + _root.paket]._visible = false;
_root.pauseMC._visible = true;
_root.pauseMC.gotoAndStop(1);
_root.jingleSt = getTimer() - _root.jingleS;
_root.trees._visible = false;
jingle.stop();
} else {
_root.guy._visible = true;
_root["paket" + _root.paket]._visible = true;
_root.pauseMC._visible = false;
_root.trees._visible = true;
(_root.sFX ? (jingle.start(_root.jingleSt / 1000, 1)) : 0);
}
}
} else {
pPressed = false;
}
};
Instance of Symbol 220 MovieClip "trees" in Frame 710
/* no clip actions */
Instance of Symbol 280 MovieClip "guy" in Frame 710
onClipEvent (load) {
this.swapDepths(99995);
var minSpeed = 0.3;
_root.stepFade = 0.3;
var stepStart = 50;
var acc = 0.4;
var maxSpeed = 4;
var xSpeed = 0;
var ySpeed = 0;
var fric = 0.9;
var stepAm = 30;
var stepNum = 0;
var currStep = 1;
var steps = 0;
var speed = 0;
}
onClipEvent (enterFrame) {
if (!_root.paused) {
var targR = 0;
var keysPressed = 0;
var rotation = 20;
var leftKey = Key.isDown(37);
var rightKey = Key.isDown(39);
var upKey = Key.isDown(38);
var downKey = Key.isDown(40);
xSpeed = xSpeed + (acc * rightKey);
xSpeed = xSpeed - (acc * leftKey);
ySpeed = ySpeed + (acc * downKey);
ySpeed = ySpeed - (acc * upKey);
xSpeed = xSpeed * fric;
ySpeed = ySpeed * fric;
if (Math.abs(xSpeed) > maxSpeed) {
xSpeed = maxSpeed * (xSpeed / Math.abs(xSpeed));
}
if (Math.abs(ySpeed) > maxSpeed) {
ySpeed = maxSpeed * (ySpeed / Math.abs(ySpeed));
}
oldX = _x;
oldY = _y;
this._x = this._x + xSpeed;
var i = 0;
while (i < _root.obArr.length) {
if (_root.trees[_root.obArr[i]].hitTest(_root.guy._x, _root.guy._y, true)) {
xSpeed = xSpeed * -1;
this._x = this.oldX;
}
i++;
}
this._y = this._y + ySpeed;
var i = 0;
while (i < _root.obArr.length) {
if (_root.trees[_root.obArr[i]].hitTest(_root.guy._x, _root.guy._y, true)) {
ySpeed = ySpeed * -1;
this._y = this.oldY;
}
i++;
}
if (leftKey) {
keysPressed++;
targR = targR + 270;
}
if (rightKey) {
keysPressed++;
targR = targR + 90;
}
if (upKey) {
keysPressed++;
targR = targR + 0;
}
if (downKey) {
keysPressed++;
targR = targR + 180;
}
targR = targR / keysPressed;
if (Key.isDown(37) && (Key.isDown(38))) {
targR = 315;
}
if ((targR - _rotation) > 180) {
targR = targR - 360;
} else if ((targR - _rotation) < -180) {
targR = targR + 360;
}
if (_rotation < targR) {
_rotation = (_rotation + rotation);
} else if (_rotation > targR) {
_rotation = (_rotation - rotation);
}
if ((_rotation < (targR + (rotation + 1))) && (_rotation > (targR - (rotation + 1)))) {
_rotation = targR;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed < minSpeed) {
xSpeed = 0;
ySpeed = 0;
speed = 0;
}
stepNum = stepNum + speed;
if (stepNum >= stepAm) {
steps++;
if (steps > 100) {
steps = 0;
}
_root.attachMovie("footstep", "footstep" + this.steps, this.steps + 6000);
with (_root["footstep" + this.steps]) {
_x = this._x;
_y = this._y;
_alpha = _root.guy.stepStart;
_root["footstep" + this.steps].alphaNum = _root.guy.stepStart;
_rotation = _root.guy._rotation;
if (_root.guy.currStep == 1) {
_root.guy.currStep = 2;
} else {
_root.guy.currStep = 1;
}
_root["footstep" + this.steps].gotoAndStop(_root.guy.currStep);
_root["footstep" + this.steps].onEnterFrame = function () {
if (!_root.paused) {
if (_root.game == false) {
this.removeMovieClip();
}
this.alphaNum = this.alphaNum - _root.stepFade;
this._alpha = Math.round(this.alphaNum);
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
}
stepNum = 0;
}
_root.guy.usedSpeed = Math.round(speed);
var i = 0;
while (i < _root.guy.usedSpeed) {
if (_totalframes > _currentframe) {
this.nextFrame();
} else {
this.gotoAndStop(1);
}
i++;
}
_root.guy.usedSpeed = Math.round(speed * 2);
if (_root.guy.usedSpeed > _root.guy.hat._totalframes) {
_root.guy.hat.gotoAndStop(_root.guy.hat._totalframes);
} else {
_root.guy.hat.gotoAndStop(_root.guy.usedSpeed);
}
if (_x < 0) {
_x = _root.W;
} else if (_x > _root.W) {
_x = 0;
}
if (_y < _root.yOff) {
_y = _root.H;
} else if (_y > _root.H) {
_y = _root.yOff;
}
}
}
Instance of Symbol 281 MovieClip in Frame 710
onClipEvent (load) {
_root.gameType = "time";
}
Instance of Symbol 286 MovieClip "board" in Frame 710
onClipEvent (load) {
this.swapDepths(99999);
}
Instance of Symbol 288 MovieClip "any" in Frame 710
onClipEvent (load) {
this.swapDepths(100001);
var myKeys = new Object();
myKeys.onKeyDown = function () {
if (_root.unStart) {
_root.unStart = false;
_root.paused = false;
_root.any.removeMovieClip();
}
};
Key.addListener(myKeys);
}
Frame 711
stop();
_root.finalScore = "Final score: " + _root.score;
loadData = new LoadVars();
loadData.listName = _root.gameType;
loadData.onLoad = function () {
if (loadData.result == "okay") {
if (((_root.score > loadData.score9) || (loadData.score9 == undefined)) || (loadData.score9 == "")) {
submitMC.gotoAndStop("type");
} else {
submitMC.gotoAndStop("sorry");
trace(loadData.score9);
trace(gameType);
}
} else {
submitMC.gotoAndStop("error");
}
};
loadData.sendAndLoad((_root.ku2 + "?") + Math.round(Math.random() * 1000000), loadData, POST);
Frame 712
stop();
_root.pauseMC.swapDepths(99997);
function numBetween(num1, num2) {
num = Math.ceil(Math.random() * (num2 - num1)) + num1;
return(num);
}
function newPaketEndu() {
_root.paket++;
if (_root.paket > 30) {
_root.paket = 0;
}
_root.attachMovie("paket", "paket" + _root.paket, _root.paket + 8000);
do {
_root["paket" + _root.paket]._x = _root.numBetween(10, _root.W - 10);
_root["paket" + _root.paket]._y = _root.numBetween(_root.yOff + 10, _root.H - 10);
_root.xDist = _root["paket" + _root.paket]._x - _root.guy._x;
_root.yDist = _root["paket" + _root.paket]._y - _root.guy._y;
_root.dist = Math.sqrt((xDist * xDist) + (yDist * yDist));
_root.again = false;
_root.pW = _root["paket" + _root.paket]._width / 2;
_root.pH = _root["paket" + _root.paket]._height / 2;
if ((((_root.trees.hitTest(_root["paket" + _root.paket]._x, _root["paket" + _root.paket]._y, true) || (_root.trees.hitTest(_root["paket" + _root.paket]._x + _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x - _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x + _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x - _root.pW, _root["paket" + _root.paket]._y - _root.pH, true))) {
_root.again = true;
}
if (_root.dist < _root.maxDist) {
_root.again = true;
}
} while (_root.again);
_root["paket" + _root.paket].swapDepths(9999);
_root["paket" + _root.paket].existed = 0;
_root["paket" + _root.paket].onEnterFrame = function () {
if (this.existed < 2) {
this.existed++;
} else if (this.hitTest(_root.guy)) {
_root.score++;
_root.timeAdd = _root.timeAdd + _root.paketAdd;
(_root.sFX ? (jingle.start(0, 1)) : 0);
_root.jingleS = getTimer();
newPaketEndu();
this.removeMovieClip();
}
};
}
var W = 550;
var H = 400;
var paket = 0;
var score = 0;
var minTrees = 7;
var maxTrees = 13;
var minRocks = 3;
var maxRocks = 5;
var minTreeSize = 45;
var maxTreeSize = 60;
var minRockSize = 100;
var maxRockSize = 50;
var maxDist = 150;
var maxTime = 30000;
var startTime = getTimer();
var timeLeft;
var timePassed;
var yOff = 40;
var paused = true;
var oldTime = 0;
var pausedTime = 0;
var pPressed = false;
var jingleS = 0;
var jingleSt = 0;
var timeAdd = 0;
var paketAdd = 1.5;
var game = true;
var timeRem = 0;
var timeLeftUR = 0;
var timeBarScale = 100;
var flashPer = 30;
var unStart = true;
_root.createEmptyMovieClip("jingClip", -2);
var jingle = new Sound(jingClip);
jingle.attachSound("jing");
jingle.setVolume(100);
_root.createEmptyMovieClip("bgClip", -1);
var bgMus = new Sound(bgClip);
bgMus.attachSound("bg");
bgMus.setVolume(50);
obArr = new Array();
trees._x = 0;
trees._y = yOff;
trees.swapDepths(7000);
_root.trees.treesNum = _root.numBetween(_root.minTrees, _root.maxTrees);
_root.trees.rocksNum = _root.numBetween(_root.minRocks, _root.maxRocks);
var i = 0;
while (i < _root.trees.treesNum) {
do {
_root.trees.attachMovie("tree", "tree" + i, i + 20000);
_root.trees["tree" + i]._x = _root.numBetween(0, _root.W);
_root.trees["tree" + i]._y = _root.numBetween(0, _root.H - yOff);
_root.trees["tree" + i].sizeNum = _root.numBetween(_root.minTreeSize, _root.maxTreeSize);
_root.trees["tree" + i]._width = _root.trees["tree" + i].sizeNum;
_root.trees["tree" + i]._height = _root.trees["tree" + i].sizeNum;
_root.trees["tree" + i]._rotation = _root.numBetween(0, 360);
_root.again = false;
_root.dups = 0;
_root.xLeft = 1;
_root.yUp = 1;
if (_root.trees.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs(_root.trees["tree" + i]._x - (_root.trees["tree" + i]._width / 2)) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs(_root.trees["tree" + i]._y - (_root.trees["tree" + i]._width / 2)) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs((_root.trees["tree" + i]._x + (_root.trees["tree" + i]._width / 2)) - _root.W) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
} else if (Math.abs(((_root.trees["tree" + i]._y + (_root.trees["tree" + i]._width / 2)) - _root.H) - _root.yOff) < 20) {
_root.again = true;
_root.trees["tree" + i].removeMovieClip();
}
if (_root.again == false) {
if (((_root.trees["tree" + i]._x - _root.trees["tree" + i]._width) - 20) < 0) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "xDupe", 12000 + i);
_root.trees[("tree" + i) + "xDupe"]._x = _root.trees[("tree" + i) + "xDupe"]._x + _root.W;
_root.obArr[_root.obArr.length] = ("tree" + i) + "xDupe";
_root.dups++;
_root.xLeft = 1;
}
if (((_root.trees["tree" + i]._x + _root.trees["tree" + i]._width) + 20) > _root.W) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "xDupe", 13000 + i);
_root.trees[("tree" + i) + "xDupe"]._x = _root.trees[("tree" + i) + "xDupe"]._x - _root.W;
_root.obArr[_root.obArr.length] = ("tree" + i) + "xDupe";
_root.dups++;
_root.xLeft = -1;
}
if (((_root.trees["tree" + i]._y - _root.trees["tree" + i]._width) - 20) < 0) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "yDupe", 14000 + i);
_root.trees[("tree" + i) + "yDupe"]._y = _root.trees[("tree" + i) + "yDupe"]._y + (_root.H - yOff);
_root.obArr[_root.obArr.length] = ("tree" + i) + "yDupe";
_root.dups++;
_root.yUp = 1;
}
if (((_root.trees["tree" + i]._y + _root.trees["tree" + i]._width) + 20) > (_root.H - yOff)) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "yDupe", 15000 + i);
_root.trees[("tree" + i) + "yDupe"]._y = _root.trees[("tree" + i) + "yDupe"]._y - (_root.H - yOff);
_root.obArr[_root.obArr.length] = ("tree" + i) + "yDupe";
_root.dups++;
_root.yUp = -1;
}
if (_root.dups == 2) {
_root.trees["tree" + i].duplicateMovieClip(("tree" + i) + "DD", 16000 + i);
_root.trees[("tree" + i) + "DD"]._x = _root.trees[("tree" + i) + "DD"]._x + (_root.W * _root.xLeft);
_root.trees[("tree" + i) + "DD"]._y = _root.trees[("tree" + i) + "DD"]._y + ((_root.H - _root.yOff) * _root.yUp);
}
}
if (_root.trees.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.again = true;
}
} while (_root.again);
_root.obArr[_root.obArr.length] = "tree" + i;
i++;
}
var i = 0;
while (i < _root.trees.rocksNum) {
do {
_root.trees.attachMovie("rock", "rock" + i, i + 200000);
_root.trees["rock" + i]._x = _root.numBetween(0, _root.W);
_root.trees["rock" + i]._y = _root.numBetween(0, _root.H - _root.yOff);
_root.trees["rock" + i].sizeNum = _root.numBetween(_root.minRockSize, _root.maxRockSize);
_root.trees["rock" + i]._xscale = _root.trees["rock" + i].sizeNum;
_root.trees["rock" + i]._yscale = _root.trees["rock" + i].sizeNum;
_root.again = false;
_root.dups = 0;
_root.xLeft = 0;
_root.yUp = 0;
if (_root.trees.hitTest(_root.guy._x, _root.guy._y, true)) {
_root.trees["rock" + i].removeMovieClip();
_root.again = true;
} else {
if (((_root.trees["rock" + i]._x - _root.trees["rock" + i]._width) - 20) < 0) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "xDupe", 210000 + i);
_root.trees[("rock" + i) + "xDupe"]._x = _root.trees[("rock" + i) + "xDupe"]._x + _root.W;
_root.obArr[_root.obArr.length] = ("rock" + i) + "xDupe";
_root.dups++;
_root.xLeft = 1;
}
if (((_root.trees["rock" + i]._x + _root.trees["rock" + i]._width) + 20) > _root.W) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "xDupe", 220000 + i);
_root.trees[("rock" + i) + "xDupe"]._x = _root.trees[("rock" + i) + "xDupe"]._x - _root.W;
_root.obArr[_root.obArr.length] = ("rock" + i) + "xDupe";
_root.dups++;
_root.xLeft = -1;
}
if (((_root.trees["rock" + i]._y - _root.trees["rock" + i]._width) - 20) < 0) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "yDupe", 230000 + i);
_root.trees[("rock" + i) + "yDupe"]._y = _root.trees[("rock" + i) + "yDupe"]._y + (_root.H - _root.yOff);
_root.obArr[_root.obArr.length] = ("rock" + i) + "yDupe";
_root.dups++;
_root.yUp = 1;
}
if (((_root.trees["rock" + i]._y + _root.trees["rock" + i]._width) + 20) > (_root.H - _root.yOff)) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "yDupe", 240000 + i);
_root.trees[("rock" + i) + "yDupe"]._y = _root.trees[("rock" + i) + "yDupe"]._y - (_root.H - _root.yOff);
_root.obArr[_root.obArr.length] = ("rock" + i) + "yDupe";
_root.dups++;
_root.yUp = -1;
}
if (_root.dups == 2) {
_root.trees["rock" + i].duplicateMovieClip(("rock" + i) + "DD", 25000000 + i);
_root.trees[("rock" + i) + "DD"]._x = _root.trees[("rock" + i) + "DD"]._x + (_root.W * _root.xLeft);
_root.trees[("rock" + i) + "DD"]._y = _root.trees[("rock" + i) + "DD"]._y + ((_root.H - _root.yOff) * _root.yUp);
}
}
} while (_root.trees.hitTest(_root.guy._x, _root.guy._y, true));
_root.obArr[_root.obArr.length] = "rock" + i;
i++;
}
newPaketEndu();
_root.onEnterFrame = function () {
if ((_root.timeLeftUR * 1000) > _root.maxTime) {
_root.timeRem = _root.timeRem + (((_root.timeLeftUR * 1000) - _root.maxTime) / 1000);
}
if (!paused) {
timePassed = getTimer() - startTime;
timeLeftUR = ((((maxTime - timePassed) / 1000) + (pausedTime / 1000)) + _root.timeAdd) - _root.timeRem;
timeLeft = Math.ceil(((((maxTime - timePassed) / 1000) + (pausedTime / 1000)) + _root.timeAdd) - _root.timeRem);
if (timeLeft <= 0) {
_root.game = false;
_root.board.removeMovieClip();
_root.trees.removeMovieClip();
_root.gotoAndStop("timeEnd");
_root.guy.removeMovieClip();
_root["paket" + _root.paket].removeMovieClip();
delete _root.onEnterFrame;
}
}
if (paused) {
pausedTime = pausedTime + (getTimer() - oldTime);
}
if (!paused) {
_root.timeBarScale = Math.ceil(((_root.timeLeftUR * 1000) / _root.maxTime) * 100);
if (_root.timeBarScale < _root.flashPer) {
_root.board.bar.gotoAndStop(2);
var _local2 = 0;
while (_local2 < (_root.flashPer - _root.timeBarScale)) {
if (_root.board.bar.flash._totalframes > _root.board.bar.flash._currentframe) {
_root.board.bar.flash.nextFrame();
} else {
_root.board.bar.flash.gotoAndStop(1);
}
_local2++;
}
} else {
_root.board.bar.gotoAndStop(1);
}
} else {
_root.board.bar.flash.stop();
}
oldTime = getTimer();
if (Key.isDown(80)) {
if (!pPressed) {
pPressed = true;
paused = !paused;
if (paused) {
_root.guy._visible = false;
_root.trees._visible = false;
_root["paket" + _root.paket]._visible = false;
_root.pauseMC._visible = true;
_root.pauseMC.gotoAndStop(1);
_root.jingleSt = getTimer() - _root.jingleS;
jingle.stop();
} else {
_root.guy._visible = true;
_root.trees._visible = true;
_root["paket" + _root.paket]._visible = true;
_root.pauseMC._visible = false;
(_root.sFX ? (jingle.start(_root.jingleSt / 1000, 1)) : 0);
}
}
} else {
pPressed = false;
}
};
Instance of Symbol 220 MovieClip "trees" in Frame 712
/* no clip actions */
Instance of Symbol 280 MovieClip "guy" in Frame 712
onClipEvent (load) {
this.swapDepths(99995);
var minSpeed = 0.3;
_root.stepFade = 0.3;
var stepStart = 50;
var acc = 0.4;
var maxSpeed = 4;
var xSpeed = 0;
var ySpeed = 0;
var fric = 0.9;
var stepAm = 30;
var stepNum = 0;
var currStep = 1;
var steps = 0;
var speed = 0;
}
onClipEvent (enterFrame) {
if (!_root.paused) {
var targR = 0;
var keysPressed = 0;
var rotation = 20;
var leftKey = Key.isDown(37);
var rightKey = Key.isDown(39);
var upKey = Key.isDown(38);
var downKey = Key.isDown(40);
xSpeed = xSpeed + (acc * rightKey);
xSpeed = xSpeed - (acc * leftKey);
ySpeed = ySpeed + (acc * downKey);
ySpeed = ySpeed - (acc * upKey);
xSpeed = xSpeed * fric;
ySpeed = ySpeed * fric;
if (Math.abs(xSpeed) > maxSpeed) {
xSpeed = maxSpeed * (xSpeed / Math.abs(xSpeed));
}
if (Math.abs(ySpeed) > maxSpeed) {
ySpeed = maxSpeed * (ySpeed / Math.abs(ySpeed));
}
oldX = _x;
oldY = _y;
this._x = this._x + xSpeed;
var i = 0;
while (i < _root.obArr.length) {
if (_root.trees[_root.obArr[i]].hitTest(_root.guy._x, _root.guy._y, true)) {
xSpeed = xSpeed * -1;
this._x = this.oldX;
}
i++;
}
this._y = this._y + ySpeed;
var i = 0;
while (i < _root.obArr.length) {
if (_root.trees[_root.obArr[i]].hitTest(_root.guy._x, _root.guy._y, true)) {
ySpeed = ySpeed * -1;
this._y = this.oldY;
}
i++;
}
if (leftKey) {
keysPressed++;
targR = targR + 270;
}
if (rightKey) {
keysPressed++;
targR = targR + 90;
}
if (upKey) {
keysPressed++;
targR = targR + 0;
}
if (downKey) {
keysPressed++;
targR = targR + 180;
}
targR = targR / keysPressed;
if (Key.isDown(37) && (Key.isDown(38))) {
targR = 315;
}
if ((targR - _rotation) > 180) {
targR = targR - 360;
} else if ((targR - _rotation) < -180) {
targR = targR + 360;
}
if (_rotation < targR) {
_rotation = (_rotation + rotation);
} else if (_rotation > targR) {
_rotation = (_rotation - rotation);
}
if ((_rotation < (targR + (rotation + 1))) && (_rotation > (targR - (rotation + 1)))) {
_rotation = targR;
}
speed = Math.sqrt((xSpeed * xSpeed) + (ySpeed * ySpeed));
if (speed < minSpeed) {
xSpeed = 0;
ySpeed = 0;
speed = 0;
}
stepNum = stepNum + speed;
if (stepNum >= stepAm) {
steps++;
if (steps > 100) {
steps = 0;
}
_root.attachMovie("footstep", "footstep" + this.steps, this.steps + 6000);
with (_root["footstep" + this.steps]) {
_x = this._x;
_y = this._y;
_alpha = _root.guy.stepStart;
_root["footstep" + this.steps].alphaNum = _root.guy.stepStart;
_rotation = _root.guy._rotation;
if (_root.guy.currStep == 1) {
_root.guy.currStep = 2;
} else {
_root.guy.currStep = 1;
}
_root["footstep" + this.steps].gotoAndStop(_root.guy.currStep);
_root["footstep" + this.steps].onEnterFrame = function () {
if (!_root.paused) {
if (_root.game == false) {
this.removeMovieClip();
}
this.alphaNum = this.alphaNum - _root.stepFade;
this._alpha = Math.round(this.alphaNum);
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
}
stepNum = 0;
}
_root.guy.usedSpeed = Math.round(speed);
var i = 0;
while (i < _root.guy.usedSpeed) {
if (_totalframes > _currentframe) {
this.nextFrame();
} else {
this.gotoAndStop(1);
}
i++;
}
_root.guy.usedSpeed = Math.round(speed * 2);
if (_root.guy.usedSpeed > _root.guy.hat._totalframes) {
_root.guy.hat.gotoAndStop(_root.guy.hat._totalframes);
} else {
_root.guy.hat.gotoAndStop(_root.guy.usedSpeed);
}
if (_x < 0) {
_x = _root.W;
} else if (_x > _root.W) {
_x = 0;
}
if (_y < _root.yOff) {
_y = _root.H;
} else if (_y > _root.H) {
_y = _root.yOff;
}
}
}
Instance of Symbol 281 MovieClip in Frame 712
onClipEvent (load) {
_root.gameType = "endu";
}
Instance of Symbol 329 MovieClip "board" in Frame 712
onClipEvent (load) {
this.swapDepths(99999);
}
Instance of Symbol 288 MovieClip "any" in Frame 712
onClipEvent (load) {
this.swapDepths(99998);
var myKeys = new Object();
myKeys.onKeyDown = function () {
if (_root.unStart) {
_root.unStart = false;
_root.paused = false;
_root.any.removeMovieClip();
}
};
Key.addListener(myKeys);
}
Frame 713
stop();
_root.pauseMC.swapDepths(99997);
function numBetween(num1, num2) {
num = Math.ceil(Math.random() * (num2 - num1)) + num1;
return(num);
}
function newPaketSurv() {
_root.paket++;
_root.evil.speed = _root.evil.speed + 0.05;
if (_root.paket > 30) {
_root.paket = 0;
}
_root.attachMovie("paket", "paket" + _root.paket, _root.paket + 8000);
do {
_root["paket" + _root.paket]._x = _root.numBetween(10, _root.W - 10);
_root["paket" + _root.paket]._y = _root.numBetween(_root.yOff + 10, _root.H - 10);
_root.xDist = _root["paket" + _root.paket]._x - _root.guy._x;
_root.yDist = _root["paket" + _root.paket]._y - _root.guy._y;
_root.dist = Math.sqrt((xDist * xDist) + (yDist * yDist));
_root.again = false;
_root.pW = _root["paket" + _root.paket]._width / 2;
_root.pH = _root["paket" + _root.paket]._height / 2;
if ((((_root.trees.hitTest(_root["paket" + _root.paket]._x, _root["paket" + _root.paket]._y, true) || (_root.trees.hitTest(_root["paket" + _root.paket]._x + _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x - _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x + _root.pW, _root["paket" + _root.paket]._y + _root.pH, true))) || (_root.trees.hitTest(_root["paket" + _root.paket]._x - _root.pW, _root["paket" + _root.paket]._y - _root.pH, true))) {
_root.again = true;
}
if (_root.dist < _root.maxDist) {
_root.again = true;
}
} while (_root.again);
_root["paket" + _root.paket].swapDepths(9999);
_root["paket" + _root.paket].existed = 0;
_root["paket" + _root.paket].onEnterFrame = function () {
if (this.existed < 2) {
this.existed++;
} else if (this.hitTest(_root.guy)) {
_root.score++;
_root.timeAdd = _root.timeAdd + _root.paketAdd;
(_root.sFX ? (jingle.start(0, 1)) : 0);
_root.jingleS = getTimer();
newPaketSurv();
this.removeMovieClip();
}
};
}
var W = 550;
var H = 400;
var paket = 0;
var score = 0;
var minTrees = 7;
var maxTrees = 13;
var minRocks = 3;
var maxRocks = 5;
var minTreeSize = 45;
var maxTreeSize = 60;
var minRockSize = 100;
var maxRockSize = 50;
var maxDist = 150;
var maxTime = 30000;
var startTime = getTimer();
var timeLeft;
var timePassed;
var yOff = 40;
var paused = true;
var oldTime = 0;
var pausedTime = 0;
var pPressed = false;
var jingleS = 0;
var jingleSt = 0;
var timeAdd = 0;
var paketAdd = 1.5;
var game = true;
var timeRem = 0;
var timeLeftUR = 0;
var timeBarScale = 100;
var flashPer = 30;
var unStart = true;
var evilE = 0;
var guyW = _root.guy._width;
_root.createEmptyMovieClip("jingClip", -2);
var jingle = new Sound(jingClip);
jingle.attachSound("jing");
jingle.setVolume(100);
_root.createEmptyMovieClip("bgClip", -1);
var bgMus = new Sound(bgClip);
bgMus.attachSound("bg");
bgMus.setVolume(50);
obArr = new Array();
newPaketSurv();
_root.onEnterFrame = function () {
if (Key.isDown(80)) {
if (!pPressed) {
pPressed = true;
paused = !paused;
if (paused) {
_root.guy._visible = false;
_root.evil._visible = false;
_root["paket" + _root.paket]._visible = false;
_root.pauseMC.gotoAndStop(1);
_root.pauseMC._visible = true;
_root.jingleSt = getTimer() - _root.jingleS;
jingle.stop();
} else {
_root.guy._visible = true;
_root.evil._visible = true;
_root["paket" + _root.paket]._visible = true;
_root.pauseMC._visible = false;
(_root.sFX ? (jingle.start(_root.jingleSt / 1000, 1)) : 0);
}
}
} else {
pPressed = false;
}
};
Instance of Symbol 31 MovieClip [evil] "evil" in Frame 713
onClipEvent (load) {
var stepStart = 50;
var stepAm = 30;
var stepNum = 0;
var currStep = 1;
var steps = 200;
var speed = 0.7;
var targX;
var targY;
var distX;
var distY;
var angleD;
var angleR;
var xV;
var yV;
var currStep = 1;
this.swapDepths(9000);
}
onClipEvent (enterFrame) {
if (!_root.paused) {
this.stepNum = this.stepNum + (this.speed * 1.3);
if (this.stepNum >= this.stepAm) {
this.steps++;
if (this.steps > 400) {
this.steps = 200;
}
_root.attachMovie("footstep", "footstep" + this.steps, this.steps + 4800);
with (_root["footstep" + this.steps]) {
_x = this._x;
_y = this._y;
_alpha = _root.evil.stepStart;
_root["footstep" + this.steps].alphaNum = _root.evil.stepStart;
_rotation = _root.evil._rotation;
if (_root.evil.currStep == 1) {
_root.evil.currStep = 2;
} else {
_root.evil.currStep = 1;
}
_root["footstep" + this.steps].gotoAndStop(_root.evil.currStep);
_root["footstep" + this.steps].onEnterFrame = function () {
if (!_root.paused) {
if (_root.game == false) {
this.removeMovieClip();
}
this.alphaNum = this.alphaNum - _root.stepFade;
this._alpha = Math.round(this.alphaNum);
if (this._alpha <= 0) {
this.removeMovieClip();
}
}
};
}
stepNum = 0;
}
this.targX = _root.guy._x;
this.targY = _root.guy._y;
this.distX = this.targX - this._x;
this.distY = this.targY - this._y;
this.dist = Math.sqrt(Math.pow(this.distX, 2) + Math.pow(this.distY, 2));
this.angleR = Math.atan2(this.distY, this.distX);
this.angleD = this.angleR * 57.2957795130823;
this._rotation = this.angleD + 90;
this.xV = Math.cos(this.angleR);
this.yV = Math.sin(this.angleR);
this._x = this._x + (this.xV * this.speed);
this._y = this._y + (this.yV * this.speed);
if (this.dist < _root.guyW) {
_root.game = false;
_root.guy.removeMovieClip();
_root["paket" + _root.paket].removeMovieClip();
_root.board.removeMovieClip();
_root.gotoAndStop("timeEnd");
delete _root.onEnterFrame;
_root.evil.removeMovieClip();
}
}
}
Instance of Symbol 281 MovieClip in Frame 713
onClipEvent (load) {
_root.gameType = "surv";
}
Instance of Symbol 332 MovieClip "board" in Frame 713
onClipEvent (load) {
this.swapDepths(99999);
}
Frame 714
stop();
Frame 715
stop();
loadData = new LoadVars();
scoreText.text = "Loading highscores...";
loadData.listName = _root.gameType;
loadData.onLoad = function () {
if (loadData.result == "okay") {
trace("okay");
scoreText.text = "";
var _local2 = 0;
while (_local2 <= (loadData.rows - 1)) {
_root.scoreText.text = _root.scoreText.text + (loadData["player" + _local2] + ": ");
_root.scoreText.text = _root.scoreText.text + (loadData["score" + _local2] + newline);
_local2++;
}
} else {
scoreText.text = "Error loading highscores";
}
};
loadData.sendAndLoad((_root.ku2 + "?") + Math.round(Math.random() * 1000000), loadData, POST);
Symbol 5 MovieClip [footstep] Frame 1
stop();
Symbol 5 MovieClip [footstep] Frame 2
stop();
Symbol 17 MovieClip Frame 1
stop();
Instance of Symbol 17 MovieClip "paket" in Symbol 18 MovieClip [paket] Frame 1
onClipEvent (load) {
var size = (Math.ceil(Math.random() * 40) + 80);
_xscale = size;
_yscale = size;
gotoAndStop(Math.ceil(Math.random() * _totalframes));
rotationSpeed = Math.ceil(Math.random() * 6);
}
onClipEvent (enterFrame) {
_rotation = (_rotation + rotationSpeed);
}
Symbol 37 Button
on (release) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 42 Button
on (release) {
getURL ("http://www.claxor.com/", _blank);
}
Symbol 63 Button
on (press) {
getURL ("http://www.claxor.com/", _blank);
}
Symbol 69 MovieClip Frame 1
_parent.stop();
with (this) {
startTime = getTimer();
thisFPS = 30;
onEnterFrame = function () {
elapsed = getTimer() - startTime;
goFrame = Math.floor(elapsed / thisFPS);
if (goFrame > _totalframes) {
goFrame = _totalframes;
}
gotoAndStop(goFrame);
};
}
Symbol 69 MovieClip Frame 127
_parent.play();
delete this.onEnterFrame;
Symbol 114 Button
on (release) {
getURL ("http://www.armorgames.com/", _blank);
}
Symbol 115 MovieClip Frame 143
_root.play();
stop();
Symbol 120 Button
on (release) {
gotoAndPlay ("mm");
}
Symbol 163 Button
on (release) {
getURL ("http://www.ArmorGames.com/", _blank);
}
Symbol 164 Button
on (release) {
getURL ("http://www.Claxor.com/", _blank);
}
Symbol 185 Button
on (release) {
intro.stop();
gotoAndStop ("select");
}
Symbol 186 Button
on (release) {
gotoAndStop ("inst");
}
Symbol 187 Button
on (release) {
gotoAndStop ("creds");
}
Symbol 188 Button
on (release) {
gotoAndStop ("more");
}
Symbol 189 Button
on (release) {
_root.gotoAndStop("high");
}
Symbol 190 Button
on (release) {
gotoAndStop ("op");
}
Symbol 197 Button
on (release) {
getURL ("http://www.newgrounds.com/audio/view.php?id=917347&sub=37175", _blank);
}
Symbol 202 Button
on (release) {
gotoAndStop ("main");
}
Symbol 210 Button
on (release) {
_root.sFX = true;
}
Symbol 215 Button
on (release) {
_root.sFX = false;
}
Symbol 216 Button
on (release) {
stopAllSounds();
bgMusic.start(0, 509);
}
Symbol 217 Button
on (release) {
stopAllSounds();
}
Symbol 225 Button
on (release) {
gotoAndStop ("time");
}
Symbol 229 Button
on (release) {
gotoAndStop ("endu");
}
Symbol 233 Button
on (release) {
gotoAndStop ("surv");
}
Symbol 246 Button
on (release) {
_root.paused = false;
_root.pauseMC._visible = false;
_root.guy._visible = true;
_root.trees._visible = true;
_root["paket" + _root.paket]._visible = true;
((_root.gameType == "surv") ? ((_root.evil._visible = true)) : 0);
}
Symbol 251 Button
on (release) {
gotoAndStop ("opt");
}
Symbol 257 Button
on (release) {
_root.gotoAndStop("main");
_root.game = false;
_root.board.removeMovieClip();
_root.trees.removeMovieClip();
_root.guy.removeMovieClip();
_root.evil.removeMovieClip();
_root["paket" + _root.paket].removeMovieClip();
delete _root.onEnterFrame;
_root.pauseMC.removeMovieClip();
}
Symbol 260 Button
on (release) {
stopAllSounds();
_root.bgMusic.start(0, 509);
}
Symbol 261 Button
on (release) {
gotoAndStop ("pa");
}
Symbol 262 MovieClip Frame 1
stop();
Symbol 262 MovieClip Frame 2
stop();
Instance of Symbol 259 MovieClip in Symbol 262 MovieClip Frame 2
onClipEvent (load) {
this.stop();
}
Symbol 279 MovieClip Frame 1
stop();
Symbol 280 MovieClip Frame 1
stop();
Symbol 292 Button
on (release) {
gotoAndStop ("high");
}
Symbol 298 Button
on (release) {
_root.whiteBG.removeMovieClip();
_root.fin.removeMovieClip();
_root.board.removeMovieClip();
_root.gotoAndStop("select");
}
Symbol 302 Button
on (release) {
_root.whiteBG.removeMovieClip();
_root.fin.removeMovieClip();
_root.board.removeMovieClip();
_root.gotoAndStop("main");
}
Symbol 306 Button
on (release) {
_root.whiteBG.removeMovieClip();
_root.fin.removeMovieClip();
_root.gotoAndStop(gameType);
}
Symbol 316 Button
on (release) {
_root.sendData = new LoadVars();
_root.sendData.playerOutput = _root.submitMC.playerInput.text;
trace(_root.submitMC.playerInput.text);
_root.sendData.scoreOutput = _root.score;
_root.sendData.listName = _root.gameType;
_root.sendData.pass = (((_root.score - 10) * _root.score) * (_root.score + 10)) + 52;
_root.sendData.onLoad = function () {
if (_root.sendData.result == "added") {
_root.submitMC.gotoAndStop("suc");
} else {
_root.submitMC.gotoAndStop("error");
trace(_root.sendData.result);
}
};
_root.sendData.sendAndLoad(_root.ku1, _root.sendData, POST);
submit_btn.enabled = false;
}
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
stop();
Symbol 319 MovieClip Frame 3
stop();
Symbol 319 MovieClip Frame 4
stop();
Symbol 319 MovieClip Frame 5
stop();
_root.gotoAndStop("show");
Symbol 328 MovieClip Frame 1
stop();
Symbol 328 MovieClip Frame 2
stop();
Instance of Symbol 328 MovieClip "bar" in Symbol 329 MovieClip Frame 1
onClipEvent (enterFrame) {
this._xscale = Math.min(100, _root.timeBarScale);
}
Symbol 334 Button
on (release) {
_root.gameType = "endu";
gotoAndStop ("show");
}
Symbol 335 Button
on (release) {
_root.gameType = "time";
gotoAndStop ("show");
}
Symbol 336 Button
on (release) {
_root.gameType = "surv";
gotoAndStop ("show");
}
Symbol 337 Button
on (release) {
gotoAndStop ("main");
}
Symbol 339 Button
on (release) {
gotoAndStop ("high");
}