Frame 1
function changeToHigh() {
_root._quality = "HIGH";
_root.qualityLevel = "HIGH";
}
function changeToMed() {
_root._quality = "MEDIUM";
_root.qualityLevel = "MEDIUM";
}
function changeToLow() {
_root._quality = "LOW";
_root.qualityLevel = "LOW";
}
System.security.allowDomain("www.jacobgrahn.com");
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toLowerCase();
if (server.indexOf("www.") != -1) {
server = server.substr(server.indexOf("www.") + 4, server.length);
}
if (server.indexOf("armorgames.com") != -1) {
} else {
stop();
}
}
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
highButton = new ContextMenuItem("High Quality", changeToHigh);
newMenu.customItems.push(highButton);
medButton = new ContextMenuItem("Medium Quality", changeToMed);
newMenu.customItems.push(medButton);
lowButton = new ContextMenuItem("Low Quality", changeToLow);
newMenu.customItems.push(lowButton);
_root.menu = newMenu;
Frame 2
function startSound(sound, vol) {
soundFX.setVolume(vol);
if (!mute) {
soundFX.attachSound(sound);
soundFX.start(0, 1);
}
}
function startMusic() {
music.stop();
if (!mute) {
music.setVolume(musicVolume);
music.start(0, 9999);
_root.musicHolder_mc.onEnterFrame = function () {
musicVolume = musicVolume + 2;
music.setVolume(musicVolume);
if (musicVolume >= maxMusicVolume) {
musicVolume = maxMusicVolume;
music.setVolume(musicVolume);
delete this.onEnterFrame;
}
};
}
}
function killMusic() {
music.setVolume(musicVolume);
_root.musicHolder_mc.onEnterFrame = function () {
musicVolume = musicVolume - 8;
music.setVolume(musicVolume);
if (musicVolume <= 0) {
musicVolume = 0;
music.stop();
delete this.onEnterFrame;
}
};
}
function formatSeconds(seconds) {
if (seconds == "") {
return("00:00");
}
var _local4 = seconds % 60;
var _local1 = _local4.toString();
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
var _local5 = Math.floor(seconds / 60);
var _local2 = _local5.toString();
if (_local2.length == 1) {
_local2 = "0" + _local2;
}
return((_local2 + ":") + _local1);
}
stop();
this.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
preloader.bar._xscale = (loaded / total) * 100;
if (loaded == total) {
_root.gotoAndStop("logo");
delete this.onEnterFrame;
}
};
var curMusic = "nothin";
var mute = false;
var musicVolume = 0;
var maxMusicVolume = 80;
_root.createEmptyMovieClip("musicHolder_mc", _root.getNextHighestDepth());
var music = new Sound(_root.musicHolder_mc);
_root.createEmptyMovieClip("soundFXHolder_mc", _root.getNextHighestDepth());
var soundFX = new Sound(_root.soundFXHolder_mc);
Frame 11
stop();
Instance of Symbol 188 MovieClip "soundOnOff" in Frame 11
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Frame 16
stop();
var counterReset = 20;
var counter = 30;
_quality = "HIGH";
if (curMusic != "menu") {
curMusic = "menu";
music.attachSound("tgod_menu");
startMusic();
}
this.onEnterFrame = function () {
counter--;
if (counter < 0) {
counter = Math.random() * counterReset;
var _local5 = Math.ceil(Math.random() * 23);
var _local4 = _root["t" + _local5];
var _local3 = _local4.duplicateMovieClip("boomLetter" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._alpha = 50;
_local3.tScale = 300;
_local3.life = 50;
_local3.filters = new Array();
_local3.onEnterFrame = function () {
this._yscale = (this._xscale = this._xscale + ((this._xscale - this.tScale) / this.life));
this._alpha = this.life;
if (this.life <= 0) {
removeMovieClip(this);
}
this.life--;
};
_local4._rotation = Math.random() * 360;
}
spin._rotation = spin._rotation + 5.21;
};
Frame 21
stop();
delete this.onEnterFrame;
Frame 26
function doStopwatch() {
seconds++;
stopwatch.text = formatSeconds(seconds);
}
var glow = (new flash.filters.GlowFilter(0, 100, 2, 2, 2, 1, false, false));
var filterArray = new Array(glow);
_quality = "AUTOHIGH";
RAD_DEG = 57.2957795130823;
DEG_RAD = (Math.PI/180);
var level = 1;
var walkSpeed = 3.2;
var distorting = false;
var retries = 0;
var rotSpeedMax = 0;
var rotSpeedChange = 0;
var rotSpeed = 0;
var panMax = 0;
var panSpeedMax = 0;
var panSpeedChange = 0;
var xPanSpeed = 0;
var yPanSpeed = 0;
var squishMax = 0;
var squishSpeedMax = 0;
var squishSpeedChange = 0;
var xSquishSpeed = 0;
var ySquishSpeed = 0;
var picRate = 99999999;
var picCounter = 999999999;
var picSpeedMax = 2;
var picSpeedChange = 0.5;
var picAlphaSpeedMax = 5;
var picAlphaSpeedChange = 1;
var picAlphaMax = 50;
var seconds = 0;
clearInterval(timerInterval);
timerInterval = setInterval(doStopwatch, 1000);
if (curMusic != "game") {
curMusic = "game";
music.attachSound("tgod_moosik");
startMusic();
}
_root.gotoAndStop("play");
Frame 31
function die(string) {
_root.distorting = false;
_root.retries++;
levelSettings();
centerRot();
delete _root.onEnterFrame;
screenFlash();
removeMovieClip(_root.rot.cam.dudeHolder.deadBody);
var _local2 = _root.rot.cam.dudeHolder.attachMovie(string, "deadBody", 13);
_local2._x = dude._x;
_local2._y = dude._y;
_local2._xscale = (_local2._yscale = dude._xscale);
_local2._rotation = dude._rotation;
_local2.filters = dude.filters;
removeMovieClip(dude);
zoomSpeed = 0.5;
_root.onEnterFrame = function () {
rot._yscale = (rot._xscale = rot._xscale + zoomSpeed);
zoomSpeed = zoomSpeed - 0.001;
if (rot._xscale > 150) {
createDude();
beginAnim();
}
};
}
function screenFlash() {
var _local3 = _root.attachMovie("flash_mc", "flash" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._width = Stage.width;
_local3._height = Stage.height;
_local3.onEnterFrame = function () {
this._alpha = this._alpha - 26;
if (this._alpha < 0) {
removeMovieClip(this);
}
};
}
function randColor() {
return(Math.round(Math.random() * 16777215));
}
function pythag(xDist, yDist) {
return(Math.sqrt((xDist * xDist) + (yDist * yDist)));
}
function evenRand(num) {
return((Math.random() * num) - (num / 2));
}
function enforceBounds(num, max) {
if (num > max) {
num = max;
} else if (num < (-max)) {
num = -max;
}
return(num);
}
function createLevel() {
rot._x = Stage.width / 2;
rot._y = Stage.height / 2;
rot._xscale = (rot._yscale = 1);
rot.attachMovie("level_" + _root.level, "cam", rot.getNextHighestDepth());
walls = rot.cam.walls;
walls._visible = false;
walls.createEmptyMovieClip("ghosts", walls.getNextHighestDepth());
walls.createEmptyMovieClip("blades", walls.getNextHighestDepth());
ar = _root.rot.cam.attachMovie("arrow", "ar", _root.rot.cam.getNextHighestDepth());
vict = _root.rot.cam.vict;
}
function createDude() {
dude = _root.rot.cam.dudeHolder.attachMovie("dude", "dude", _root.rot.cam.dudeHolder.getNextHighestDepth());
dude._xscale = (dude._yscale = 30);
dude.filters = filterArray;
dude._rotation = 180;
moveArrow();
}
function beginAnim() {
displayNote();
rot._x = Stage.width / 2;
rot._y = Stage.height / 2;
rot._xscale = (rot._yscale = 1);
rot.cam._x = -dude._x;
rot.cam._y = -dude._y;
_root.onEnterFrame = function () {
if (rot._xscale < 100) {
rot._xscale = (rot._yscale = rot._xscale + 1.5);
} else {
rot._xscale = (rot._yscale = 100);
distorting = true;
notes.text = "";
_root.onEnterFrame = function () {
runGame();
};
}
};
}
function runGame() {
if (distorting) {
if (Key.isDown(38) || (Key.isDown(87))) {
dude._y = dude._y - walkSpeed;
dude._rotation = 180;
dude.gotoAndStop("walk");
} else if (Key.isDown(39) || (Key.isDown(68))) {
dude._x = dude._x + walkSpeed;
dude._rotation = 270;
dude.gotoAndStop("walk");
} else if (Key.isDown(40) || (Key.isDown(83))) {
dude._y = dude._y + walkSpeed;
dude._rotation = 0;
dude.gotoAndStop("walk");
} else if (Key.isDown(37) || (Key.isDown(65))) {
dude._x = dude._x - walkSpeed;
dude._rotation = 90;
dude.gotoAndStop("walk");
} else {
dude.gotoAndStop("stand");
}
rot.cam._x = -dude._x;
rot.cam._y = -dude._y;
moveArrow();
var _local4 = new Object();
_local4.x = dude._x;
_local4.y = dude._y;
rot.cam.localToGlobal(_local4);
if (rot.cam.walls.hitTest(_local4.x, _local4.y, true)) {
if (walls.ghosts.hitTest(_local4.x, _local4.y, true)) {
startSound("melt_sound", 100);
die("dudeGhosted_mc");
} else if (walls.blades.hitTest(_local4.x, _local4.y, true)) {
startSound("cut_sound", 100);
die("dudeBladed_mc");
} else {
startSound("spiked_sound", 100);
die("dudeSpiked_mc");
}
}
if (vict.hitTest(_local4.x, _local4.y, true)) {
nextLevel();
}
rotSpeed = rotSpeed + evenRand(rotSpeedChange);
rotSpeed = enforceBounds(rotSpeed, rotSpeedMax);
rot._rotation = rot._rotation + rotSpeed;
var _local8 = (rot._x - xPanSpeed) - (Stage.width / 2);
var _local7 = (rot._y - yPanSpeed) - (Stage.height / 2);
_local8 = enforceBounds(_local8, panMax);
_local7 = enforceBounds(_local7, panMax);
rot._x = _local8 + (Stage.width / 2);
rot._y = _local7 + (Stage.height / 2);
xPanSpeed = xPanSpeed + evenRand(panSpeedChange);
yPanSpeed = yPanSpeed + evenRand(panSpeedChange);
xPanSpeed = enforceBounds(xPanSpeed, panSpeedMax);
yPanSpeed = enforceBounds(yPanSpeed, panSpeedMax);
var _local6 = (100 - rot._xscale) - xSquishSpeed;
var _local5 = (100 - rot._yscale) - ySquishSpeed;
_local6 = enforceBounds(_local6, squishMax);
_local5 = enforceBounds(_local5, squishMax);
rot._xscale = 100 - _local6;
rot._yscale = 100 - _local5;
xSquishSpeed = xSquishSpeed + evenRand(squishSpeedChange);
ySquishSpeed = ySquishSpeed + evenRand(squishSpeedChange);
xSquishSpeed = enforceBounds(xSquishSpeed, squishSpeedMax);
ySquishSpeed = enforceBounds(ySquishSpeed, squishSpeedMax);
picCounter--;
if (picCounter < 0) {
picCounter = Math.random() * picRate;
var _local3 = _root.attachMovie("randPic_mc", "pic" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3.gotoAndStop(Math.ceil(Math.random() * _local3._totalframes));
_local3._x = Math.random() * Stage.width;
_local3._y = Math.random() * Stage.height;
_local3._xscale = (_local3._yscale = 100 + evenRand(50));
_local3._alpha = 0;
_local3.xSpeed = evenRand(picSpeedMax);
_local3.ySpeed = evenRand(picSpeedMax);
_local3.alphaSpeed = Math.random() * picAlphaSpeedMax;
_local3.onEnterFrame = function () {
this._alpha = this._alpha + this.alphaSpeed;
this._x = this._x + this.xSpeed;
this._y = this._y + this.ySpeed;
if (this._alpha > _root.picAlphaMax) {
this._alpha = _root.picAlphaMax;
this.alphaSpeed = 0;
}
if ((this._alpha < 0) || (!_root.distorting)) {
removeMovieClip(this);
}
this.alphaSpeed = this.alphaSpeed + _root.evenRand(_root.picAlphaSpeedChange);
this.alphaSpeed = _root.enforceBounds(this.alphaSpeed, _root.picAlphaSpeedMax);
this.xSpeed = this.xSpeed + _root.evenRand(_root.picSpeedChange);
this.xSpeed = _root.enforceBounds(this.xSpeed, _root.picSpeedMax);
this.ySpeed = this.ySpeed + _root.evenRand(_root.picSpeedChange);
this.ySpeed = _root.enforceBounds(this.ySpeed, _root.picSpeedMax);
};
}
}
}
function levelSettings() {
rotSpeedMax = 0;
rotSpeedChange = 0;
rotSpeed = 0;
panMax = 0;
panSpeedMax = 0;
panSpeedChange = 0;
xPanSpeed = 0;
yPanSpeed = 0;
squishMax = 0;
squishSpeedMax = 0;
squishSpeedChange = 0;
xSquishSpeed = 0;
ySquishSpeed = 0;
picRate = 99999999 /* 0x5F5E0FF */;
picCounter = 999999999 /* 0x3B9AC9FF */;
picSpeedMax = 2;
picSpeedChange = 0.5;
picAlphaSpeedMax = 5;
picAlphaSpeedChange = 1;
picAlphaMax = 50;
if (_root.retries < 4) {
if (level == 2) {
panMax = 100;
panSpeedMax = 2;
panSpeedChange = 1;
} else if (level == 3) {
rotSpeedMax = 2;
rotSpeedChange = 0.5;
panMax = 50;
panSpeedMax = 1;
panSpeedChange = 0.5;
} else if (level == 4) {
rotSpeedMax = 2;
rotSpeedChange = 0.5;
panMax = 50;
panSpeedMax = 1;
panSpeedChange = 0.5;
squishMax = 50;
squishSpeedMax = 2;
squishSpeedChange = 1;
} else if (level == 5) {
rotSpeedMax = 2;
rotSpeedChange = 0.5;
panMax = 50;
panSpeedMax = 1;
panSpeedChange = 0.5;
squishMax = 50;
squishSpeedMax = 2;
squishSpeedChange = 1;
} else if (level == 6) {
rotSpeedMax = 2;
rotSpeedChange = 0.5;
panMax = 50;
panSpeedMax = 1;
panSpeedChange = 0.5;
squishMax = 50;
squishSpeedMax = 2;
squishSpeedChange = 1;
} else if (level == 7) {
rotSpeedMax = 3;
rotSpeedChange = 1;
panMax = 50;
panSpeedMax = 1;
panSpeedChange = 0.5;
squishMax = 60;
squishSpeedMax = 3;
squishSpeedChange = 1.5;
} else if (level == 8) {
rotSpeedMax = 3;
rotSpeedChange = 1;
panMax = 50;
panSpeedMax = 1;
panSpeedChange = 0.5;
squishMax = 60;
squishSpeedMax = 3;
squishSpeedChange = 1.5;
} else if (level == 9) {
rotSpeedMax = 4;
rotSpeedChange = 2;
panMax = 60;
panSpeedMax = 1;
panSpeedChange = 0.5;
squishMax = 70;
squishSpeedMax = 4;
squishSpeedChange = 2;
picRate = 100;
picCounter = Math.random() * picRate;
}
var _local2 = 1;
if (_root.retries == 1) {
_local2 = 0.75;
picRate = picRate + 10;
} else if (_root.retries == 2) {
_local2 = 0.5;
picRate = picRate + 20;
} else if (_root.retries == 3) {
_local2 = 0.25;
picRate = picRate + 30;
}
rotSpeedMax = rotSpeedMax * _local2;
rotSpeedChange = rotSpeedChange * _local2;
panMax = panMax * _local2;
panSpeedMax = panSpeedMax * _local2;
panSpeedChange = panSpeedChange * _local2;
squishMax = squishMax * _local2;
squishSpeedMax = squishSpeedMax * _local2;
squishSpeedChange = squishSpeedChange * _local2;
}
}
function nextLevel() {
level++;
distorting = false;
retries = 0;
centerRot();
dude.gotoAndStop("stand");
_root.onEnterFrame = function () {
if (level == 10) {
killMusic();
}
rot._xscale = (rot._yscale = rot._yscale - 2);
if (rot._xscale <= 2) {
_root.gotoAndPlay("reset");
}
};
}
function centerRot() {
rot._xscale = (rot._yscale = 100);
rot._rotation = 0;
rot._x = Stage.width / 2;
rot._y = Stage.height / 2;
rot.cam._x = -dude._x;
rot.cam._y = -dude._y;
}
function moveArrow() {
var _local2 = dude._x - vict._x;
var _local1 = dude._y - vict._y;
var _local3 = pythag(_local2, _local1);
if (_local3 > 100) {
ar._visible = true;
ar._x = dude._x;
ar._y = dude._y;
ar._rotation = (Math.atan2(_local1, _local2) * RAD_DEG) - 90;
} else {
ar._visible = false;
}
}
function displayNote() {
if (retries == 0) {
if (level == 1) {
notes.text = "lets start with something easy...";
} else if (level == 2) {
notes.text = "earthquake? no. it only gets worse.";
} else if (level == 3) {
notes.text = "remember which way you're facing!";
} else if (level == 4) {
notes.text = "ahhh!!!!!";
} else if (level == 5) {
notes.text = "ah, the last easy one. :)";
} else if (level == 6) {
notes.text = "i'd move if i were you.";
} else if (level == 7) {
notes.text = "oh noes!! evil shiny clones!!";
} else if (level == 8) {
notes.text = "good luck...";
} else {
notes.text = "only one more to go!";
}
} else if (retries == 1) {
notes.text = "lets make it a tad easier.";
} else if (retries == 2) {
notes.text = "lets go even easier then...";
} else if (retries == 3) {
notes.text = "c'mon, you can do it.";
} else {
notes.text = "this is as easy as it gets!";
}
}
stop();
if (level == 10) {
_root.gotoAndStop("hurrah");
}
createLevel();
createDude();
beginAnim();
levelSettings();
Frame 36
delete _root.onEnterFrame;
_root.gotoAndStop("play");
Frame 41
stop();
_quality = "HIGH";
delete _root.onEnterFrame;
clearInterval(timerInterval);
startSound("yay_sound", 80);
stopwatch.text = formatSeconds(seconds);
if (curMusic != "menu") {
curMusic = "menu";
music.attachSound("tgod_menu");
startMusic();
}
Frame 46
stop();
Frame 51
stop();
var recieve = new LoadVars();
recieve.onLoad = function () {
if (recieve.error != undefined) {
_root.gotoAndStop("error");
} else {
_root.scoreID = recieve.score_id;
_root.gotoAndStop("view");
}
};
var hasher = new md5();
var submit = new LoadVars();
submit.group = "the Game of Disorientation";
submit.name = playerName;
submit.score = _root.seconds;
submit.hash = hasher.hash(((submit.group + submit.name) + submit.score) + "1445gfvFdxed465");
submit.redirect = "false";
submit.output_mode = "vars";
submit.sendAndLoad("http://jiggmin.com/highscores/submit.php", recieve, "GET");
Frame 56
stop();
var recieve = new LoadVars();
recieve.onLoad = function () {
if (recieve.error != undefined) {
_root.gotoAndStop("error");
} else {
_root.gotoAndStop("scores");
}
};
var submit = new LoadVars();
submit.group = "the Game of Disorientation";
submit.redirect = "false";
submit.output_mode = "vars";
submit.show_recent = "false";
submit.count = 10;
submit.order = "asc";
submit.format = "time";
submit.sendAndLoad("http://jiggmin.com/highscores/view.php", recieve, "GET");
Frame 61
stop();
errorBox.text = recieve.error;
Frame 66
function displayScores(ind, scoreArray) {
var _local2;
_local2 = 1;
while (_local2 <= 10) {
var _local4 = scoreArray[_local2 - 1];
var _local3 = _root[(ind + "n") + _local2];
var _local6 = _root[(ind + "s") + _local2];
_local3.text = _local4.name;
_local6.text = _local4.score;
if (_local4.score_id == scoreID) {
var _local5 = _root.holder.attachMovie("scoreHighlight_mc", "high" + holder.getNextHighestDepth(), holder.getNextHighestDepth());
_local5._x = _local3._x;
_local5._y = _local3._y;
}
_local2++;
}
}
stop();
var json = new JSON();
var scores = json.parse(recieve.scores);
displayScores("t", scores.day);
displayScores("", scores.week);
Symbol 321 MovieClip [__Packages.md5] Frame 0
class md5
{
function md5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Symbol 322 MovieClip [__Packages.JSON] Frame 0
class JSON
{
var text;
function JSON () {
}
function stringify(arg) {
var _local4;
var _local3;
var _local7;
var _local2 = "";
var _local5;
switch (typeof(arg)) {
case "object" :
if (arg) {
if (arg instanceof Array) {
_local3 = 0;
while (_local3 < arg.length) {
_local5 = stringify(arg[_local3]);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + _local5;
_local3++;
}
return(("[" + _local2) + "]");
}
if (typeof(arg.toString) != "undefined") {
for (_local3 in arg) {
_local5 = arg[_local3];
if ((typeof(_local5) != "undefined") && (typeof(_local5) != "function")) {
_local5 = stringify(_local5);
if (_local2) {
_local2 = _local2 + ",";
}
_local2 = _local2 + ((stringify(_local3) + ":") + _local5);
}
}
return(("{" + _local2) + "}");
}
}
return("null");
case "number" :
return((isFinite(arg) ? (String(arg)) : "null"));
case "string" :
_local7 = arg.length;
_local2 = "\"";
_local3 = 0;
while (_local3 < _local7) {
_local4 = arg.charAt(_local3);
if (_local4 >= " ") {
if ((_local4 == "\\") || (_local4 == "\"")) {
_local2 = _local2 + "\\";
}
_local2 = _local2 + _local4;
} else {
switch (_local4) {
case "\b" :
_local2 = _local2 + "\\b";
break;
case "\f" :
_local2 = _local2 + "\\f";
break;
case newline :
_local2 = _local2 + "\\n";
break;
case "\r" :
_local2 = _local2 + "\\r";
break;
case "\t" :
_local2 = _local2 + "\\t";
break;
default :
_local4 = _local4.charCodeAt();
_local2 = _local2 + (("\\u00" + Math.floor(_local4 / 16).toString(16)) + (_local4 % 16).toString(16));
}
}
_local3 = _local3 + 1;
}
return(_local2 + "\"");
case "boolean" :
return(String(arg));
}
return("null");
}
function white() {
while (ch) {
if (ch <= " ") {
next();
} else if (ch == "/") {
switch (next()) {
case "/" :
while ((next() && (ch != newline)) && (ch != "\r")) {
}
break;
case "*" :
next();
for(;;){
if (ch) {
if (ch == "*") {
if (next() == "/") {
next();
// unexpected jump
}
} else {
next();
}
} else {
error("Unterminated comment");
}
};
break;
default :
error("Syntax error");
}
} else {
break;
}
}
}
function error(m) {
throw {name:"JSONError", message:m, at:at - 1, text:text};
}
function next() {
ch = text.charAt(at);
at = at + 1;
return(ch);
}
function str() {
var _local5;
var _local2 = "";
var _local4;
var _local3;
var _local6 = false;
if (ch == "\"") {
while (next()) {
if (ch == "\"") {
next();
return(_local2);
}
if (ch == "\\") {
switch (next()) {
case "b" :
_local2 = _local2 + "\b";
break;
case "f" :
_local2 = _local2 + "\f";
break;
case "n" :
_local2 = _local2 + newline;
break;
case "r" :
_local2 = _local2 + "\r";
break;
case "t" :
_local2 = _local2 + "\t";
break;
case "u" :
_local3 = 0;
_local5 = 0;
while (_local5 < 4) {
_local4 = parseInt(next(), 16);
if (!isFinite(_local4)) {
_local6 = true;
break;
}
_local3 = (_local3 * 16) + _local4;
_local5 = _local5 + 1;
}
if (_local6) {
_local6 = false;
break;
}
_local2 = _local2 + String.fromCharCode(_local3);
break;
default :
_local2 = _local2 + ch;
}
} else {
_local2 = _local2 + ch;
}
}
}
error("Bad string");
}
function arr() {
var _local2 = [];
if (ch == "[") {
next();
white();
if (ch == "]") {
next();
return(_local2);
}
while (ch) {
_local2.push(value());
white();
if (ch == "]") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad array");
}
function obj() {
var _local3;
var _local2 = {};
if (ch == "{") {
next();
white();
if (ch == "}") {
next();
return(_local2);
}
while (ch) {
_local3 = str();
white();
if (ch != ":") {
break;
}
next();
_local2[_local3] = value();
white();
if (ch == "}") {
next();
return(_local2);
}
if (ch != ",") {
break;
}
next();
white();
}
}
error("Bad object");
}
function num() {
var _local2 = "";
var _local3;
if (ch == "-") {
_local2 = "-";
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
if (ch == ".") {
_local2 = _local2 + ".";
next();
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
if ((ch == "e") || (ch == "E")) {
_local2 = _local2 + ch;
next();
if ((ch == "-") || (ch == "+")) {
_local2 = _local2 + ch;
next();
}
while ((ch >= "0") && (ch <= "9")) {
_local2 = _local2 + ch;
next();
}
}
_local3 = Number(_local2);
if (!isFinite(_local3)) {
error("Bad number");
}
return(_local3);
}
function word() {
switch (ch) {
case "t" :
if (((next() == "r") && (next() == "u")) && (next() == "e")) {
next();
return(true);
}
break;
case "f" :
if ((((next() == "a") && (next() == "l")) && (next() == "s")) && (next() == "e")) {
next();
return(false);
}
break;
case "n" :
if (!(((next() == "u") && (next() == "l")) && (next() == "l"))) {
break;
}
next();
return(null);
}
error("Syntax error");
}
function value() {
white();
switch (ch) {
case "{" :
return(obj());
case "[" :
return(arr());
case "\"" :
return(str());
case "-" :
return(num());
}
return((((ch >= "0") && (ch <= "9")) ? (num()) : (word())));
}
function parse(_text) {
text = _text;
at = 0;
ch = " ";
return(value());
}
var ch = "";
var at = 0;
}
Symbol 6 MovieClip Frame 1
stop();
Symbol 64 MovieClip [dude] Frame 1
stop();
Symbol 64 MovieClip [dude] Frame 2
dd.gotoAndPlay(10);
Symbol 70 MovieClip Frame 1
var blur = (new flash.filters.BlurFilter(2, 2, 1));
var bit = (new flash.display.BitmapData(sq._width, sq._height, false, 0));
sq.attachBitmap(bit, _root.getNextHighestDepth());
this.onEnterFrame = function () {
var _local3 = Math.round(Math.random() * 25);
var _local2 = Math.round(Math.random() * 25);
var _local6 = Math.round((Math.random() * 75) - 25);
var _local4 = Math.round((Math.random() * 75) - 25);
var _local5 = _root.randColor();
bit.fillRect(new flash.geom.Rectangle(_local6, _local4, _local3, _local2), _local5);
bit.scroll(0, -1);
bit.applyFilter(bit, bit.rectangle, new Point(0, 0), blur);
};
Symbol 75 MovieClip Frame 2
stop();
var blades = _root.walls.blades;
var waitReset = ((Math.random() * 20) + 50);
var wait = waitReset;
var timeReset = 20;
var time = 0;
var dist = 655;
var speed = (dist / timeReset);
var xStart = this._x;
var yStart = this._y;
var xSpeed;
var ySpeed;
var m = blades.attachMovie("bladeArea_mc", "blade" + blades.getNextHighestDepth(), blades.getNextHighestDepth());
m._rotation = this._rotation;
if (this._rotation == 0) {
xSpeed = -speed;
ySpeed = 0;
} else if (this._rotation == 90) {
xSpeed = 0;
ySpeed = -speed;
} else if ((this._rotation == 180) || (this._rotation == -180)) {
xSpeed = speed;
ySpeed = 0;
} else if ((this._rotation == -90) || (this._rotation == 270)) {
xSpeed = 0;
ySpeed = speed;
}
this.onEnterFrame = function () {
if (time > 0) {
time--;
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
} else {
wait--;
if (wait <= 0) {
if (_root.distorting) {
wait = waitReset;
time = timeReset;
}
}
this._x = xStart;
this._y = yStart;
}
m._x = this._x - _root.walls._x;
m._y = this._y - _root.walls._y;
};
Symbol 93 MovieClip [dudeSpiked_mc] Frame 182
stop();
Symbol 112 MovieClip [dudeGhosted_mc] Frame 1
this.onEnterFrame = function () {
dg._rotation = Math.floor(Math.random() * 4) * 90;
dg._yscale = (dg._xscale = dg._xscale - 1.25);
if (dg._xscale <= 1) {
delete eval (this.onEnterFrame());
}
var _local3 = Math.random() * 10;
var _local4 = new flash.filters.GlowFilter(_root.randColor(), 100, _local3, _local3, 2, 1, false, false);
var _local5 = new Array(_local4);
dg.filters = _local5;
};
Symbol 112 MovieClip [dudeGhosted_mc] Frame 76
delete this.onEnterFrame;
Symbol 112 MovieClip [dudeGhosted_mc] Frame 77
stop();
Symbol 140 MovieClip [dudeBladed_mc] Frame 109
stop();
Symbol 146 MovieClip Frame 2
function getDirection() {
this._rotation = Math.floor(Math.random() * 4) * 90;
var _local4 = this._x - _root.dude._x;
var _local3 = this._y - _root.dude._y;
var _local5;
if (Math.abs(_local4) > Math.abs(_local3)) {
ySpeed = 0;
if (_local4 > 0) {
xSpeed = -walkSpeed;
} else {
xSpeed = walkSpeed;
}
} else {
xSpeed = 0;
if (_local3 > 0) {
ySpeed = -walkSpeed;
} else {
ySpeed = walkSpeed;
}
}
}
var walkSpeed = (_root.walkSpeed / 1.5);
var counterReset = 200;
var counter = counterReset;
var xSpeed;
var ySpeed;
var xStart = this._x;
var yStart = this._y;
getDirection();
var ghosts = _root.walls.ghosts;
var m = ghosts.attachMovie("ghostArea_mc", "ghost" + ghosts.getNextHighestDepth(), ghosts.getNextHighestDepth());
m._x = this._x;
m._y = this._y;
this.onEnterFrame = function () {
if (_root.distorting) {
var _local3 = Math.random() * 10;
var _local4 = new flash.filters.GlowFilter(_root.randColor(), 100, _local3, _local3, 2, 1, false, false);
var _local5 = new Array(_local4);
this.filters = _local5;
this._x = this._x + xSpeed;
this._y = this._y + ySpeed;
counter--;
if (counter <= 0) {
counter = (Math.random() * counterReset) + 20;
getDirection();
}
} else {
this._x = xStart;
this._y = yStart;
}
m._x = this._x - _root.walls._x;
m._y = this._y - _root.walls._y;
};
Symbol 146 MovieClip Frame 62
gotoAndPlay ("repeat");
Symbol 179 Button
on (press) {
getURL ("http://www.armorgames.com", "_blank");
}
Symbol 182 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 182 MovieClip Frame 219
stop();
Symbol 185 MovieClip Frame 384
_root.gotoAndStop("menu");
Symbol 188 MovieClip Frame 1
stop();
this.hitArea = square;
square._visible = false;
_root.mute = false;
this.onRelease = function () {
_root.mute = !_root.mute;
if (_root.mute) {
_root.killMusic();
_root.soundFX.stop();
this.gotoAndStop("off");
} else {
_root.startMusic();
this.gotoAndStop("on");
}
};
gotoAndStop ("on");
Symbol 188 MovieClip Frame 2
stop();
Symbol 231 Button
on (release) {
_root.gotoAndStop("prep");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 234 Button
on (release) {
_root.gotoAndStop("view");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 237 Button
on (release) {
getURL ("http://jiggmin.com/", "_blank");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 238 MovieClip Frame 22
stop();
Symbol 243 Button
on (release) {
_root.gotoAndPlay("initialize");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 251 Button
on (release) {
_root.gotoAndPlay("initialize");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 254 Button
on (release) {
_root.gotoAndStop("enterName");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 257 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 260 Button
on (release) {
_root.playerName = nameBox.text;
_root.gotoAndStop("submit");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 263 Button
on (release) {
_root.gotoAndStop("hurrah");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}
Symbol 299 Button
on (release) {
_root.gotoAndStop("menu");
}
on (rollOver) {
_root.startSound("buttonOver", 50);
}
on (press) {
_root.startSound("buttonHit", 50);
}