Frame 1
Kyle.changeRightClickMenu();
Instance of Symbol 11 MovieClip in Frame 1
onClipEvent (load) {
}
onClipEvent (enterFrame) {
var counter = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
coverer._x = Math.ceil(counter * 0.28) * 10;
if (counter >= 100) {
_root.play();
} else {
coverer._x = Math.ceil(counter * 0.28) * 10;
trace(counter);
}
}
Frame 2
var muteMusic = false;
var muteSound = false;
var pauseGame = false;
stopAllSounds();
loopSound = new Sound(this);
loopSound.attachSound("loopSound");
loopSound.start(0, 999);
coinSound = new Sound(this);
coinSound.attachSound("coin");
Instance of Symbol 32 MovieClip "kChampSplash" in Frame 2
on (release) {
getURL ("http://www.kchampgames.com/", "_blank");
}
Frame 4
stop();
mySnakeRunnerSharedObject = SharedObject.getLocal("snakeRunnerData");
if (_root.mySnakeRunnerSharedObject.data.levelCompletedArraySaved == undefined) {
localSavedCompletedArray = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
_root.continueGame._alpha = 50;
} else {
localSavedCompletedArray = _root.mySnakeRunnerSharedObject.data.levelCompletedArraySaved;
_root.continueGame._alpha = 100;
}
if (_root.mySnakeRunnerSharedObject.data.levelDifficultyArraySaved == undefined) {
localSavedDifficultyArray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
} else {
localSavedDifficultyArray = _root.mySnakeRunnerSharedObject.data.levelDifficultyArraySaved;
}
Instance of Symbol 58 MovieClip in Frame 4
onClipEvent (load) {
if (_root.muteSound) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
_root.muteSound = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.muteSound = false;
gotoAndStop (1);
}
}
Instance of Symbol 61 MovieClip in Frame 4
onClipEvent (load) {
if (_root.muteMusic) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
on (release) {
if (_currentframe == 1) {
stopAllSounds();
_root.muteMusic = true;
gotoAndStop (2);
} else if (_currentframe == 2) {
_root.loopSound.start(0, 999);
_root.muteMusic = false;
gotoAndStop (1);
}
}
Instance of Symbol 63 MovieClip "continueGame" in Frame 4
on (release) {
if (_alpha == 100) {
_root.levelCompletedArray = _root.localSavedCompletedArray;
_root.levelDifficultyArray = _root.localSavedDifficultyArray;
_root.levelAvailableArray = new Array(true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
_root.difficultyChosen = 3;
_root.realDifficulty = 2;
_root.boxChosen = 1;
_root.levelNumber = 1;
_root.score = 0;
i = 1;
while (i <= 25) {
_root.score = _root.score + (i * _root.levelDifficultyArray[i]);
i++;
}
_root.gotoAndStop("levelSelect");
}
}
Instance of Symbol 65 MovieClip in Frame 4
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 67 MovieClip in Frame 4
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Instance of Symbol 70 MovieClip "kChampLogo" in Frame 4
on (release) {
getURL ("http://www.kchampgames.com/", "_blank");
}
Instance of Symbol 72 MovieClip in Frame 4
on (release) {
getURL ("http://armorgames.com/guide/Snake-Runner-Video-Walkthrough ", "_blank");
}
Frame 5
delete this.onEnterFrame;
mySnakeRunnerSharedObject.data.levelCompletedArraySaved = levelCompletedArray;
mySnakeRunnerSharedObject.data.levelDifficultyArraySaved = levelDifficultyArray;
mySnakeRunnerSharedObject.flush();
if (levelCompletedArray[1]) {
levelAvailableArray[2] = true;
}
if (levelCompletedArray[2]) {
levelAvailableArray[3] = true;
}
if (levelCompletedArray[3]) {
levelAvailableArray[4] = true;
}
if (levelCompletedArray[4]) {
levelAvailableArray[5] = true;
}
if (levelCompletedArray[5]) {
levelAvailableArray[6] = true;
levelAvailableArray[7] = true;
levelAvailableArray[8] = true;
levelAvailableArray[9] = true;
levelAvailableArray[10] = true;
levelAvailableArray[11] = true;
levelAvailableArray[12] = true;
levelAvailableArray[13] = true;
levelAvailableArray[14] = true;
levelAvailableArray[15] = true;
levelAvailableArray[16] = true;
levelAvailableArray[17] = true;
levelAvailableArray[18] = true;
levelAvailableArray[19] = true;
levelAvailableArray[20] = true;
levelAvailableArray[21] = true;
levelAvailableArray[22] = true;
levelAvailableArray[23] = true;
levelAvailableArray[24] = true;
levelAvailableArray[25] = true;
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 3;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 2;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 1;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 4;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 5;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 8;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 7;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 6;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 9;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 10;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 13;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 12;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 11;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 14;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 15;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 18;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 17;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 16;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 19;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 20;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 81 MovieClip in Frame 5
on (release) {
_root.difficultyChosen = 1;
_root.realDifficulty = 6;
}
onClipEvent (enterFrame) {
if (_root.difficultyChosen == 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 83 MovieClip in Frame 5
on (release) {
_root.difficultyChosen = 2;
_root.realDifficulty = 4;
}
onClipEvent (enterFrame) {
if (_root.difficultyChosen == 2) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 85 MovieClip in Frame 5
on (release) {
_root.difficultyChosen = 3;
_root.realDifficulty = 2;
}
onClipEvent (enterFrame) {
if (_root.difficultyChosen == 3) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 87 MovieClip in Frame 5
on (release) {
_root.difficultyChosen = 4;
_root.realDifficulty = 1;
}
onClipEvent (enterFrame) {
if (_root.difficultyChosen == 4) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 89 MovieClip in Frame 5
on (release) {
_root.difficultyChosen = 5;
_root.realDifficulty = 0;
}
onClipEvent (enterFrame) {
if (_root.difficultyChosen == 5) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 92 MovieClip in Frame 5
on (release) {
if (_root.sureSubmit._visible == false) {
_root.difficulty = _root.realDifficulty;
_root.gotoAndStop("game");
}
}
onClipEvent (load) {
var spacable = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (spacable) {
_root.difficulty = _root.realDifficulty;
_root.gotoAndStop("game");
}
} else {
spacable = true;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 23;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 22;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 21;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 24;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 79 MovieClip in Frame 5
onClipEvent (load) {
var levelNum = 25;
var completed = false;
if (_root.levelDifficultyArray[levelNum] == 0) {
multiplier_txt.text = "-";
} else {
multiplier_txt.text = "x" + _root.levelDifficultyArray[levelNum];
}
if (_root.levelCompletedArray[levelNum]) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (_root.levelAvailableArray[levelNum]) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (release) {
if (_root.levelAvailableArray[levelNum]) {
_root.boxChosen = levelNum;
_root.levelNumber = levelNum;
}
}
Instance of Symbol 94 MovieClip in Frame 5
onClipEvent (load) {
score_txt.text = _root.score + " pts";
}
Instance of Symbol 101 MovieClip in Frame 5
onClipEvent (load) {
var rand = Math.ceil(Math.random() * 5);
gotoAndStop(rand);
}
Instance of Symbol 114 MovieClip "sureSubmit" in Frame 5
onClipEvent (load) {
_visible = false;
}
Frame 6
function spawnBlock() {
if (blockDirection == "UP") {
_root.lastBlockY = _root.lastBlockY - 10;
}
if (blockDirection == "DOWN") {
_root.lastBlockY = _root.lastBlockY + 10;
}
if (blockDirection == "LEFT") {
_root.lastBlockX = _root.lastBlockX - 10;
}
if (blockDirection == "RIGHT") {
_root.lastBlockX = _root.lastBlockX + 10;
}
duplicateMovieClip (_root.block, "block" + _root.blockC, _root.getNextHighestDepth());
_root["block" + _root.blockC]._x = _root.lastBlockX;
_root["block" + _root.blockC]._y = _root.lastBlockY;
_root.levels.swapDepths(_root.getNextHighestDepth());
i = 0;
while (i < _root.blockC) {
if (_root["block" + _root.blockC].hitTest(_root["block" + i]._x + 5, _root["block" + i]._y + 5, false)) {
crashed();
}
i++;
}
if (_root["block" + _root.blockC].hitTest(_root.levels.finishBlock._x + 5, _root.levels.finishBlock._y + 5, false)) {
hitFinish();
}
lastBlockDirection = blockDirection;
_root.blockC++;
}
function checkArrowKey() {
if (Key.isDown(38)) {
if (lastBlockDirection != "DOWN") {
_root.blockDirection = "UP";
}
}
if (Key.isDown(40)) {
if (lastBlockDirection != "UP") {
_root.blockDirection = "DOWN";
}
}
if (Key.isDown(39)) {
if (lastBlockDirection != "LEFT") {
_root.blockDirection = "RIGHT";
}
}
if (Key.isDown(37)) {
if (lastBlockDirection != "RIGHT") {
_root.blockDirection = "LEFT";
}
}
}
function crashed() {
_root.clearSnake();
_root.coins = 0;
_root.levels.gotoAndStop(1);
_root.levels.gotoAndStop(_root.levelNumber);
}
function hitFinish() {
if (_root.coins == _root.levels.numCoins) {
winBox._visible = true;
winBox.swapDepths(_root.getNextHighestDepth());
}
}
function beatLevel() {
_root.score = _root.score + (_root.levelNumber * _root.difficultyChosen);
_root.coins = 0;
_root.clearSnakeDontRespawn();
_root.levelCompletedArray[_root.levelNumber] = true;
if ((_root.levelDifficultyArray[_root.levelNumber] < _root.difficultyChosen) or (_root.levelDifficultyArray[_root.levelNumber] == undefined)) {
_root.levelDifficultyArray[_root.levelNumber] = _root.difficultyChosen;
}
if (_root.boxChosen < 25) {
_root.boxChosen++;
_root.levelNumber++;
}
removeMovieClip(_root.levels);
removeMovieClip(_root.winBox);
_root.gotoAndStop("levelSelect");
}
function clearSnake() {
i = 0;
while (i <= _root.blockC) {
removeMovieClip(_root["block" + i]);
i++;
}
blockDirection = _root.levels.startDirection;
lastBlockDirection = _root.levels.startDirection;
lastBlockX = _root.levels.startX;
lastBlockY = _root.levels.startY;
blockC = 1;
duplicateMovieClip (_root.block, "block0", _root.getNextHighestDepth());
_root.block0._x = _root.levels.startX;
_root.block0._y = _root.levels.startY;
}
function clearSnakeDontRespawn() {
i = 0;
while (i <= _root.blockC) {
removeMovieClip(_root["block" + i]);
i++;
}
}
var blockC = 1;
var gameI = 0;
var coins = 0;
var coinExplodeC = 0;
stop();
onEnterFrame = function () {
checkArrowKey();
gameI++;
if (gameI > _root.difficulty) {
if (!_root.winBox._visible) {
spawnBlock();
}
gameI = 0;
}
_root.coins_txt.text = (("Coins " + _root.coins) + " /") + _root.levels.numCoins;
_root.levels_txt.text = ("Level " + _root.levelNumber) + " /25";
if (_root.coins == _root.levels.numCoins) {
_root.levels.finishBlock.gotoAndStop(2);
} else {
_root.levels.finishBlock.gotoAndStop(1);
}
};
Instance of Symbol 51 MovieClip in Frame 6
onClipEvent (load) {
stop();
}
Instance of Symbol 127 MovieClip "levels" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.levelNumber);
_root.lastBlockX = startX;
_root.lastBlockY = startY;
_root.blockDirection = startDirection;
_root.lastBlockDirection = startDirection;
}
Instance of Symbol 134 MovieClip in Frame 6
on (release) {
_root.coins = 0;
_root.clearSnakeDontRespawn();
removeMovieClip(_root.levels);
removeMovieClip(_root.winBox);
_root.gotoAndStop("levelSelect");
}
Frame 7
stop();
Instance of Symbol 157 MovieClip in Frame 7
on (release) {
_root.gotoAndStop("menu");
}
Frame 8
gotoAndStop ("menu");
Symbol 8 MovieClip Frame 10
Symbol 8 MovieClip Frame 100
gotoAndPlay (15);
Instance of Symbol 13 MovieClip "wall_inside" in Symbol 14 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hitTest(_root["block" + (_root.blockC - 1)]._x + 5, _root["block" + (_root.blockC - 1)]._y + 5, false)) {
_root.crashed();
}
}
Symbol 158 MovieClip [__Packages.Kyle] Frame 0
class Kyle
{
function Kyle () {
}
static function rotateToMouse(object) {
var _local5 = object._x - _root._xmouse;
var _local4 = object._y - _root._ymouse;
var _local2 = Math.atan2(_local4, _local5);
var _local3 = _local2 * 57.2957795130823;
object._rotation = _local3 - 90;
}
static function rotateTo(object1, object2) {
var _local4 = object1._x - object2._x;
var _local3 = object1._y - object2._y;
var _local1 = Math.atan2(_local3, _local4);
var _local2 = _local1 * 57.2957795130823;
object1._rotation = _local2 - 90;
}
static function getAngle(object1, object2) {
var _local4 = object1._x - object2._x;
var _local3 = object1._y - object2._y;
var _local1 = Math.atan2(_local3, _local4);
var _local2 = _local1 * 57.2957795130823;
return(_local2 - 90);
}
static function getDistance(object1, object2) {
return(Math.sqrt(Math.pow(Math.abs(object1._y - object2._y), 2) + Math.pow(Math.abs(object1._x - object2._x), 2)));
}
static function circleCollide(object1, object2) {
var _local1 = Math.sqrt(Math.pow(Math.abs(object1._y - object2._y), 2) + Math.pow(Math.abs(object1._x - object2._x), 2));
var _local2 = (object1._width / 2) + (object2._width / 2);
if (_local1 < _local2) {
return(true);
}
return(false);
}
static function addCommas(n) {
var _local1 = n.toString();
var _local3 = 1;
if (_local1.indexOf(".") == -1) {
var _local2 = "";
_local1 = _local1.split("");
} else {
var _local2 = _local1.substr(_local1.indexOf("."), _local1.length);
_local1 = _local1.substr(0, _local1.indexOf(".")).split("");
}
for (var _local4 in _local1) {
var _local2 = _local1[_local4] + _local2;
if ((_local3++) == 3) {
_local3 = 1;
_local2 = (((isNaN(_local1[0]) && (_local4 > 1)) || ((!isNaN(_local1[0])) && (_local4 >= 1))) ? ("," + _local2) : (_local2));
}
}
return(_local2);
}
static function siteLock(domainName) {
var _local2 = _url.indexOf("://") + 3;
var _local6 = _url.indexOf("/", _local2);
var _local3 = _url.substring(_local2, _local6);
var _local5 = _local3.lastIndexOf(".") - 1;
var _local4 = _local3.lastIndexOf(".", _local5) + 1;
_local3 = _local3.substring(_local4, _local3.length);
if (_local3 != domainName) {
_root._x = 50000;
_root._y = 40000;
}
}
static function changeRightClickMenu() {
function menuChoiceOne() {
getURL ("http://www.kchampgames.com");
}
var _local2 = new ContextMenu();
_local2.hideBuiltInItems();
_local2.customItems.push(new ContextMenuItem("kChamp Games", menuChoiceOne));
_root.menu = _local2;
}
}
Symbol 159 MovieClip [__Packages.ab3.rankz.Armor_Bot_30_En_AS1] Frame 0
class ab3.rankz.Armor_Bot_30_En_AS1 extends Object
{
static var _CharsReverseLookup;
var _Armor_Bot_30_En_AS1Str, _Armor_Bot_30_En_AS1Count;
function Armor_Bot_30_En_AS1 () {
super();
}
static function Encode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.encodeArmor_Bot_30_En_AS1(str));
}
static function Decode(str) {
var _local1 = new ab3.rankz.Armor_Bot_30_En_AS1();
return(_local1.decodeArmor_Bot_30_En_AS1(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setArmor_Bot_30_En_AS1Str(str) {
_Armor_Bot_30_En_AS1Str = str;
_Armor_Bot_30_En_AS1Count = 0;
}
function readArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charCodeAt(_Armor_Bot_30_En_AS1Count) & 255;
_Armor_Bot_30_En_AS1Count++;
return(_local2);
}
function encodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[1] = readArmor_Bot_30_En_AS1();
_local2[2] = readArmor_Bot_30_En_AS1();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseArmor_Bot_30_En_AS1() {
if (!_Armor_Bot_30_En_AS1Str) {
return(_EndOfInput);
}
while (true) {
if (_Armor_Bot_30_En_AS1Count >= _Armor_Bot_30_En_AS1Str.length) {
return(_EndOfInput);
}
var _local2 = _Armor_Bot_30_En_AS1Str.charAt(_Armor_Bot_30_En_AS1Count);
_Armor_Bot_30_En_AS1Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeArmor_Bot_30_En_AS1(str) {
setArmor_Bot_30_En_AS1Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) && (((_local2[1] = readReverseArmor_Bot_30_En_AS1())) != _EndOfInput)) {
_local2[2] = readReverseArmor_Bot_30_En_AS1();
_local2[3] = readReverseArmor_Bot_30_En_AS1();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("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", "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", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 31 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 31 MovieClip Frame 181
_root.play();
Symbol 45 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 48 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 48 MovieClip Frame 218
_root.nextFrame();
Symbol 55 Button
on (release) {
_root.levelCompletedArray = new Array(false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
_root.levelDifficultyArray = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
_root.levelAvailableArray = new Array(true, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false);
_root.difficultyChosen = 3;
_root.realDifficulty = 2;
_root.boxChosen = 1;
_root.levelNumber = 1;
_root.score = 0;
_root.gotoAndStop("levelSelect");
}
Instance of Symbol 76 MovieClip in Symbol 79 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.boxChosen == _parent.levelNum) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 81 MovieClip Frame 1
stop();
Symbol 83 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 103 Button
on (release) {
_root.sureSubmit._visible = true;
}
Instance of Symbol 108 MovieClip in Symbol 114 MovieClip Frame 1
on (release) {
_root.sureSubmit._visible = false;
}
Instance of Symbol 110 MovieClip in Symbol 114 MovieClip Frame 1
on (release) {
function __rankz_send__(par1, par2, par3, par4) {
par227 = new LoadVars();
par228 = new LoadVars();
par227.flashkey = par2;
par227.SU0249 = par1;
par227.bmFtZTE = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par3);
par227.c2NvcmUx = ab3.rankz.Armor_Bot_30_En_AS1.Encode(par4 + "j%e%a%n%s");
par227.flashkey = par227.flashkey.split("=").join("");
par227.SU0249 = par227.SU0249.split("=").join("");
par228.onLoad = function (success) {
if (success) {
trace(par228.msg);
} else {
trace(par228.loaded);
}
};
par227.sendAndLoad("http://rankz.armorbot.com/submit/", par228, "POST");
}
bXlnYW1lX25hbWVfdmFyaWFibGU = _root.sureSubmit.enterName.text;
bXlnYW1lX3Njb3JlX3ZhcmlhYmxl = _root.score;
__rankz_send__("MzMyOWolZSVhJW4lcw==", "dkZCSk10cHQ=", bXlnYW1lX25hbWVfdmFyaWFibGU, bXlnYW1lX3Njb3JlX3ZhcmlhYmxl);
getURL ("http://rankz.armorbot.com/SnakeRunner/", "_blank");
_root.gotoAndStop("menu");
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 124 MovieClip Frame 1
stop();
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root["block" + (_root.blockC - 1)].hitTest(_parent._x + 5, _parent._y + 5, false)) {
_root.coins++;
if (!_root.muteSound) {
_root.coinSound.start(0, 1);
}
duplicateMovieClip (_root.coinExplode, "coinExplode" + _root.coinExplodeC, _root.getNextHighestDepth());
_root["coinExplode" + _root.coinExplodeC]._x = _parent._x;
_root["coinExplode" + _root.coinExplodeC]._y = _parent._y;
_root.coinExplodeC++;
_parent.swapDepths(_root.getNextHighestDepth());
removeMovieClip(_parent);
}
}
Symbol 127 MovieClip Frame 1
stop();
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 0;
Symbol 127 MovieClip Frame 2
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 0;
Symbol 127 MovieClip Frame 3
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 0;
Symbol 127 MovieClip Frame 4
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 1;
Symbol 127 MovieClip Frame 5
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 3;
Symbol 127 MovieClip Frame 6
var startX = 100;
var startY = 100;
var startDirection = "RIGHT";
var numCoins = 2;
Symbol 127 MovieClip Frame 7
var startX = 30;
var startY = 450;
var startDirection = "UP";
var numCoins = 3;
Symbol 127 MovieClip Frame 8
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 8;
Symbol 127 MovieClip Frame 9
var startX = 10;
var startY = 20;
var startDirection = "RIGHT";
var numCoins = 3;
Symbol 127 MovieClip Frame 10
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 0;
Symbol 127 MovieClip Frame 11
var startX = 70;
var startY = 70;
var startDirection = "RIGHT";
var numCoins = 4;
Symbol 127 MovieClip Frame 12
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 4;
Symbol 127 MovieClip Frame 13
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 8;
Symbol 127 MovieClip Frame 14
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 12;
Symbol 127 MovieClip Frame 15
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 4;
Symbol 127 MovieClip Frame 16
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 15;
Symbol 127 MovieClip Frame 17
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 25;
Symbol 127 MovieClip Frame 18
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 10;
Symbol 127 MovieClip Frame 19
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 5;
Symbol 127 MovieClip Frame 20
var startX = 50;
var startY = 50;
var startDirection = "RIGHT";
var numCoins = 98;
Symbol 127 MovieClip Frame 21
var startX = 30;
var startY = 460;
var startDirection = "RIGHT";
var numCoins = 20;
Symbol 127 MovieClip Frame 22
var startX = 10;
var startY = 480;
var startDirection = "UP";
var numCoins = 21;
Symbol 127 MovieClip Frame 23
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 12;
Symbol 127 MovieClip Frame 24
var startX = 10;
var startY = 10;
var startDirection = "RIGHT";
var numCoins = 16;
Symbol 127 MovieClip Frame 25
var startX = 10;
var startY = 480;
var startDirection = "RIGHT";
var numCoins = 91;
Symbol 132 MovieClip Frame 20
removeMovieClip(this);
Symbol 155 MovieClip Frame 64
_visible = false;
Symbol 155 MovieClip Frame 65
stop();
Instance of Symbol 151 MovieClip in Symbol 155 MovieClip Frame 65
onClipEvent (load) {
subScore_txt.text = _root.levelNumber * _root.difficultyChosen;
}
Instance of Symbol 153 MovieClip in Symbol 155 MovieClip Frame 65
on (release) {
_root.beatLevel();
}
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
if (_root.winBox._visible and (_root.winBox._currentframe == 65)) {
_root.beatLevel();
}
}
}