Frame 1
stopAllSounds();
_root.bytesLoaded = _root.getBytesLoaded();
_root.bytesTotal = _root.getBytesTotal();
_root.percentLoaded = Math.round(100 * (_root.bytesLoaded / _root.bytesTotal));
_root.percentLoadedText = _root.percentLoaded + "%";
_root.bar.gotoAndStop(percentLoaded);
Frame 2
if (_root.percentLoaded == 100) {
gotoAndStop (4);
} else {
gotoAndPlay (1);
}
Frame 3
if (dundun) {
return(undefined);
}
versionstring = getVersion();
majorversion = Number(versionstring.split(" ")[1].split(",")[0]);
if (majorversion < 8) {
gotoAndStop (6);
}
Frame 5
function makeContact(x, y) {
var _local1 = attachMovie("contact", "cont" + getNextHighestDepth(), getNextHighestDepth());
_local1._x = x;
_local1._y = y;
}
function str(len, ptlen, grav, nohit) {
this.LEN = len;
this.PTLEN = ptlen;
this.pts = [];
this.GRAV = grav || 0;
this.nohit = nohit;
this.donepct = 0;
this.mc = createEmptyMovieClip("string" + getNextHighestDepth(), getNextHighestDepth());
}
function renderLevel(lvl) {
BDRCOL = BDRCOLORS[BDRCOLOR];
level = createEmptyMovieClip("lvl" + getNextHighestDepth(), getNextHighestDepth());
endzones = createEmptyMovieClip("lvl" + getNextHighestDepth(), getNextHighestDepth());
lvlbuild = lvl.build;
lvlPu = lvl.pu;
levelTxt.txt.text = ((("[" + (lvlIndex + 1)) + "] ") + lvl.name) + (lvl.author ? (" by " + lvl.author) : "");
levelTxt.txt.setTextFormat(txtfmtins);
bmpd = BitmapData.loadBitmap("BG");
i = 0;
while (i < lvlbuild.length) {
level.drawRectangle(lvlbuild[i].x, lvlbuild[i].y, lvlbuild[i].w, lvlbuild[i].h, BDRCOL);
i++;
}
level.endFill();
level.filters = [new flash.filters.BevelFilter(5, 45, 16777215, 0.5, 0, 0.5, 5, 5, 1, 3)];
var _local1 = lvl.zones;
i = 0;
while (i < _local1.length) {
var _local4 = ((_local1[i].type == "start") ? 65280 : 255);
if (_local1[i].type == "end") {
endzones.attachMovie("EndBlock", "lvl" + endzones.getNextHighestDepth(), endzones.getNextHighestDepth(), {_x:_local1[i].x + 20, _y:_local1[i].y + 20});
} else {
startzone = attachMovie("StartBlock", "lvl" + getNextHighestDepth(), getNextHighestDepth(), {_x:_local1[i].x + 20, _y:_local1[i].y + 20});
(startzone.x = _local1[i].x);
(startzone.y = _local1[i].y);
}
i++;
}
transition.swapDepths(getNextHighestDepth());
}
function gotoLevel() {
stoptimer();
nextLevel();
}
function makeWord(word, yInd) {
var f = setInterval(function () {
word.ind = (word.ind + 1) || 0;
((word.ind == (word.value.length - 1)) ? (clearInterval(f)) : 0);
var _local1 = createEmptyMovieClip("letter" + getNextHighestDepth(), getNextHighestDepth());
var _local2 = _local1.createTextField("txt" + _local1.getNextHighestDepth(), _local1.getNextHighestDepth(), 0, 0, 20, 20);
_local2.text = word.value.charAt(word.ind);
_local2.selectable = false;
_local2.setTextFormat(txtfmt);
_local1.xto = (word.ind * 10) + 30;
_local1.onEnterFrame = letTo;
_local1._x = 550;
_local1._y = (yInd * 15) + 30;
lettters.push(_local1);
if (gameonn) {
clearInterval(f);
}
(word.txt ? (word.txt.push(_local1)) : ((word.txt = [_local1])));
}, 50);
}
function letTo() {
this._x = this._x + ((this.xto - this._x) / 2);
if ((this._x - this.xto) < 1) {
(this._x = this.xto);
(this.onEnterFrame = undefined);
}
}
function credMe(bool) {
if (bool) {
creds.removeMovieClip();
return(undefined);
}
createEmptyMovieClip("creds", getNextHighestDepth());
creds.createTextField("cred", creds.getNextHighestDepth(), 0, 0, 190, 40);
creds.cred.text = "String Avoider by fwe\nGraphics by Insignia";
creds.filters = [new flash.filters.DropShadowFilter(5, 45, 16777215, 100, 5, 5, 1)];
creds.cred.selectable = false;
creds.cred.setTextFormat(txtfmt);
creds._x = (Stage.width - creds._width) + 20;
creds._y = Stage.height - 50;
}
function clearMenu() {
indx = undefined;
j = 0;
while (j < menuBtns.length) {
var _local1 = menuBtns[j].txt;
i = 0;
while (i < _local1.length) {
_local1[i].removeMovieClip();
i++;
}
j++;
}
}
function drawGrid(x, y) {
var _local1 = createEmptyMovieClip("grid" + getNextHighestDepth(), getNextHighestDepth());
_local1.lineStyle(1, 13421772, 100);
g = 0;
while (g <= x) {
_local1.moveTo(g * 10, 0);
_local1.lineTo(g * 10, y * 10);
o = 0;
while (o <= y) {
_local1.moveTo(0, o * 10);
_local1.lineTo(x * 10, o * 10);
o++;
}
g++;
}
}
function displayInstructions(txt) {
var _local2 = createEmptyMovieClip("ins" + getNextHighestDepth(), getNextHighestDepth());
var _local1 = _local2.createTextField("ins", _local2.getNextHighestDepth(), 0, 0, 550, 200);
_local1.text = txt;
_local1.selectable = false;
_local1.setTextFormat(txtfmtins);
_local2._y = 310;
}
function makelvltxt() {
levelTxt = createEmptyMovieClip("ins" + getNextHighestDepth(), getNextHighestDepth());
var _local1 = levelTxt.createTextField("txt", 1, 0, 0, 550, 200);
_local1.selectable = false;
_local1.setTextFormat(txtfmtins);
levelTxt._y = 320;
}
function drawObj(nam) {
var _local2 = createEmptyMovieClip("obj" + getNextHighestDepth(), getNextHighestDepth());
_local2.lineStyle(1, 0, 100);
_local2.type = nam;
if (nam == "start") {
_local2.drawRectangle(0, 0, 40, 40, 65280);
}
if (nam == "end") {
_local2.drawRectangle(0, 0, 40, 40, 255);
}
if (nam == "PU") {
_local2.drawRectangle(0, 0, 10, 10, 16776960);
}
_local2.onEnterFrame = function () {
this._x = getReal(_xmouse, _ymouse).x;
this._y = getReal(_xmouse, _ymouse).y;
};
return(_local2);
}
function getReal(x, y) {
if (!snap) {
return({x:x, y:y});
}
return({x:Math.round(x / 10) * 10, y:Math.round(y / 10) * 10});
}
function nextLevel() {
cantpu = true;
atePu = false;
lvlScores[lvlIndex] = Math.floor((getTimer() - timez) / 1000);
myString.destroy(true);
lvlIndex++;
lives++;
PLAYERSCORE = getAllScores();
if (customON) {
customLvl++;
if (customLvl == custLvls.length) {
backToMenu();
return(undefined);
}
} else if (lvls.length == lvlIndex) {
gmusic.stop();
bgmusic.stop();
gamewin();
return(undefined);
}
transist(realNext);
}
function realNext() {
scores.time = 0;
thePU.removeMovieClip();
level.removeMovieClip();
startzone.removeMovieClip();
endzones.removeMovieClip();
thePU = (atePu = false);
gameStart = false;
cantpu = false;
myString.remove();
myString = undefined;
if (customON) {
renderLevel(custLvls[customLvl]);
} else {
renderLevel(lvls[lvlIndex]);
}
}
function saveLevel() {
var _local7 = (en = false);
i = 0;
while (i < lvlDataObj.zones.length) {
var _local1 = lvlDataObj.zones[i].type;
if (_local1 == "start") {
_local7 = true;
}
if (_local1 == "end") {
en = true;
}
i++;
}
if ((!_local7) || (!en)) {
return(undefined);
}
strs = ("lvls[0] = {name:\"" + lvlDataObj.name) + "\", build:[";
tempLvl = {name:"Custom Level", build:[], zones:[]};
i = 0;
while (i < lvlDataObj.build.length) {
var _local1 = lvlDataObj.build[i];
tempLvl.build.push({x:_local1.x, y:_local1.y, w:_local1.w, h:_local1.h});
i++;
}
i = 0;
while (i < lvlDataObj.zones.length) {
var _local1 = lvlDataObj.zones[i];
tempLvl.zones.push({type:_local1.type, x:_local1.x, y:_local1.y});
i++;
}
tempLvl.pu = lvlDataObj.pu;
custLvls.push(tempLvl);
lvlEditoring = false;
backToMenu();
}
function submitMyShit() {
_level0.swHighScoreObject.player1Score = PLAYERSCORE;
_root.swHighScoreObject.showTab = "submit";
loadMovieNum (_root.HSHubURL, 2);
}
buttonclick = "click";
stringstart = "start";
stringdie = "die";
stringend = "end";
music = "bgmusic";
gameMusic = "gamemusic";
scissors = "click";
str.prototype.addPoints = function (x, y) {
this.addPoint(x, y);
var _local2 = 1;
while (_local2 < this.LEN) {
this.addPoint(x, y);
_local2++;
}
};
str.prototype.addPoint = function (x, y) {
this.pts.push({x:x, y:y});
};
str.prototype.shorten = function (off, keep) {
if (this.shortened) {
return(undefined);
}
if (!keep) {
lives--;
}
this.LEN = off;
this.shortened = true;
};
str.prototype.render = function () {
if (this.done) {
return(undefined);
}
STRCOL = STRCOLORS[STRCOLOR];
this.pts[0] = {x:_xmouse, y:_ymouse};
this.mc.clear();
this.mc.moveTo(this.pts[0].x, this.pts[0].y);
if (!this.nohit) {
this.checkHit(this.pts[0]);
} else {
this.checkMenu(this.pts[0]);
}
if (thePU.hitTest(this.pts[0].x, this.pts[0].y)) {
makeContact(this.pts[this.LEN / 2].x, this.pts[this.LEN / 2].y);
playSound(scissors);
atePu = true;
thePU.removeMovieClip();
thePU = null;
this.shorten(25, true);
}
var _local2 = 1;
while (_local2 < this.LEN) {
this.pts[_local2].y = this.pts[_local2].y + this.GRAV;
var _local3 = Math.atan2(this.pts[_local2].y - this.pts[_local2 - 1].y, this.pts[_local2].x - this.pts[_local2 - 1].x);
this.pts[_local2].x = this.pts[_local2 - 1].x + (Math.cos(_local3) * this.PTLEN);
this.pts[_local2].y = this.pts[_local2 - 1].y + (Math.sin(_local3) * this.PTLEN);
if (!this.nohit) {
this.checkHit(this.pts[_local2]);
}
this.mc.lineStyle(2, STRCOL, 100);
this.mc.lineTo(this.pts[_local2].x, this.pts[_local2].y);
_local2++;
}
this.checkEnd(this.pts[0], true);
};
str.prototype.remove = function () {
Mouse.show();
gameStart = false;
this.mc.removeMovieClip();
this.removeMovieClip();
this=null;//parameter overwritten
};
str.prototype.destroy = function (transp) {
playSound(stringdie);
if (this.done) {
return(undefined);
}
this.done = true;
dester = this;
this.dest = setInterval(function () {
dester.destoryIndex = (dester.destoryIndex - 1) || (dester.LEN);
if (dester.destoryIndex == 1) {
clearInterval(dester.dest);
dester.remove();
dester = undefined;
}
dester.mc.clear();
dester.mc.moveTo(dester.pts[0].x, dester.pts[0].y);
i = 0;
while (i < dester.destoryIndex) {
dester.mc.lineStyle(2, (transp ? 0 : 16711680), 100);
dester.mc.lineTo(dester.pts[i].x, dester.pts[i].y);
i++;
}
}, 10);
};
MovieClip.prototype.drawRectangle = function (x, y, width, length, col) {
this.beginFill((col ? (col) : 0), 100);
this.moveTo(x, y);
this.lineTo(x + width, y);
this.lineTo(x + width, y + length);
this.lineTo(x, y + length);
this.lineTo(x, y);
this.endFill();
};
str.prototype.checkHit = function (pt) {
if (level.hitTest(pt.x, pt.y, true) && (!this.done)) {
atePu = false;
makeContact(pt.x, pt.y);
this.destroy();
lives--;
stoptimer(true);
return(true);
}
return(false);
};
str.prototype.checkEnd = function (pt) {
if (endzones.hitTest(pt.x, pt.y, true) && (!this.done)) {
stoptimer();
makeContact(pt.x, pt.y);
playSound(stringend);
nextLevel();
}
};
str.prototype.checkMenu = function (pt) {
myString.donepct = ((myString.donepct > 0) ? ((myString.donepct = myString.donepct - 2)) : 0);
if (!onmenu) {
return(undefined);
}
j = 0;
while (j < 5) {
if (_root.menue["menubtn" + j].hitTest(pt.x, pt.y, true)) {
myString.donepct = myString.donepct + 3;
if ((myString.donepct >= myString.LEN) && (((j == 4) && (!cl)) or (j != 4))) {
makeContact(_xmouse, _ymouse);
playSound(buttonclick);
_root["men" + j]();
}
break;
}
j++;
}
};
Object.prototype.initMenu = function () {
lettters = [];
var m = menuBtns;
int1 = setInterval(function () {
if (gameonn) {
clearInterval(int1);
}
indx = (indx + 1) || 0;
((indx == (m.length - 1)) ? (clearInterval(int1)) : 0);
makeWord(m[indx], indx);
}, 400);
};
txtfmt = new TextFormat();
txtfmt.bold = true;
txtfmt.font = "Courier New";
txtfmt.color = "0xffffff";
txtfmtins = new TextFormat();
txtfmtins.bold = true;
txtfmtins.font = "Courier New";
txtfmtins.align = "center";
walls = [];
onMouseDown = function () {
if ((!gotObj) && (lvlEditoring)) {
mousedown = true;
drawin = true;
startDrawPos = getReal(_xmouse, _ymouse);
drawOb = createEmptyMovieClip("drawObj" + getNextHighestDepth(), getNextHighestDepth());
walls.push(drawOb);
} else if (lvlEditoring) {
if (gotPU) {
lvlDataObj.pu = {x:getReal(_xmouse, _ymouse).x, y:getReal(_xmouse, _ymouse).y};
theObj.onEnterFrame = undefined;
gotObj = false;
} else {
lvlDataObj.zones.push({mc:theObj, type:theObj.type, x:getReal(_xmouse, _ymouse).x, y:getReal(_xmouse, _ymouse).y});
theObj.onEnterFrame = undefined;
gotObj = false;
}
}
};
onMouseUp = function () {
if (drawin) {
if (((getReal(_xmouse, 0).x - startDrawPos.x) != 0) && ((getReal(0, _ymouse).y - startDrawPos.y) != 0)) {
lvlDataObj.build.push({drw:drawOb, x:startDrawPos.x, y:startDrawPos.y, w:getReal(_xmouse, 0).x - startDrawPos.x, h:getReal(0, _ymouse).y - startDrawPos.y});
}
}
mousedown = false;
drawin = false;
};
onKeyDown = function () {
if (lvlEditoring) {
if (Key.getCode() == "G".charCodeAt()) {
if (!myString) {
myString = new str(50, 5);
myString.addPoints(_xmouse, _ymouse);
} else {
myString.destroy();
myString = null;
}
}
if ((((Key.getCode() == "S".charCodeAt()) && (!gotObj)) && (!drawin)) && (!gotStart)) {
gotObj = true;
theObj = drawObj("start");
gotStart = true;
}
if (((Key.getCode() == "E".charCodeAt()) && (!gotObj)) && (!drawin)) {
gotObj = true;
theObj = drawObj("end");
}
if (((Key.getCode() == "P".charCodeAt()) && (!gotObj)) && (!drawin)) {
gotPU = true;
gotObj = true;
theObj = drawObj("PU");
}
if (Key.getCode() == "Q".charCodeAt()) {
snap = !snap;
}
if (Key.getCode() == "D".charCodeAt()) {
i = 0;
while (i < walls.length) {
if (walls[i].hitTest(_xmouse, _ymouse, true)) {
j = 0;
while (j < lvlDataObj.build.length) {
if (lvlDataObj.build[j].drw === walls[i]) {
walls[i].removeMovieClip();
lvlDataObj.build.splice(j, 1);
walls.splice(i, 1);
break;
}
j++;
}
}
i++;
}
i = 0;
while (i < lvlDataObj.zones.length) {
var _local1 = lvlDataObj.zones[i].mc;
if (_local1.hitTest(_xmouse, _ymouse, true)) {
if (lvlDataObj.zones[i].type == "start") {
gotStart = false;
}
_local1.removeMovieClip();
lvlDataObj.zones.splice(i, 1);
}
i++;
}
}
} else {
if (((Key.getCode() == "G".charCodeAt()) && (Key.isDown("I".charCodeAt()))) && (Key.isDown("S".charCodeAt()))) {
lives = 10;
}
if (((Key.getCode() == "E".charCodeAt()) && (Key.isDown("W".charCodeAt()))) && (Key.isDown("F".charCodeAt()))) {
stoptimer();
nextLevel();
}
}
};
Key.addListener(_root);
musicon = true;
Object.prototype.playSound = function (linkage, vol, loop) {
vol = vol || 100;
soundCount = (soundCount + 1) || 1;
var s = ((_root["sound_" + soundCount] = new Sound()));
if ((linkage == music) or (linkage == gameMusic)) {
bgm = s;
if (!musicon) {
return(undefined);
}
}
s.attachSound(linkage);
s.setVolume(vol);
s.start(0, 1);
if (loop) {
s.onSoundComplete = function () {
s.start(0, 1);
};
}
return(s);
};
MENU = new ContextMenu();
MENU.hideBuiltInItems();
_root.menu = MENU;
function menuEnterFrame() {
}
function newGame(indx) {
if (custLvls.length == 0) {
transist(ng);
} else {
transist(pickmode);
}
}
function ng(custom) {
lvlScores = [];
totalScore = 0;
bggame = attachMovie("bggame", "g" + getNextHighestDepth(), getNexthighestDepth());
scores.swapDepths(getNextHighestDepth());
mainm._visible = false;
scores.swapDepths(getNextHighestDepth());
scores._visible = true;
lives = 3;
gameOn = true;
menuT(false);
gameonn = true;
bgmusic.stop();
gmusic = playSound(gameMusic, 100, true);
makelvltxt();
Mouse.show();
onEnterFrame = newGameEnterFrame;
if (custom) {
customON = true;
customLvl = 0;
renderLevel(custLvls[0]);
} else {
renderLevel(lvls[lvlIndex]);
}
}
function lvlEditor() {
menuT(false);
snap = true;
clearMenu();
myString.remove();
myString = undefined;
Mouse.show();
bggame = attachMovie("bggame", "g" + getNextHighestDepth(), getNextHighestDepth());
drawGrid(55, 30);
crapappapa = attachMovie("editshit", "g" + getNextHighestDepth(), getNextHighestDepth());
lvlEditoring = true;
lvlDataObj = {name:"Test", build:[], zones:[]};
onEnterFrame = lvlEdit;
}
function lvlEdit() {
myString.render();
if (drawin) {
drawOb.clear();
drawOb.drawRectangle(startDrawPos.x, startDrawPos.y, getReal(_xmouse, 0).x - startDrawPos.x, getReal(0, _ymouse).y - startDrawPos.y);
}
i = 0;
while (i < lettters.length) {
lettters[i].removeMovieClip();
lettters.splice(i, 1);
i++;
}
}
function newGameEnterFrame() {
if (timego) {
t = (a = Math.floor((getTimer() - timez) / 1000));
scores.time = (Math.floor(t / 60) + ":") + (((t % 60) < 10) ? ("0" + (t % 60)) : (t % 60));
a = a + getAllScores();
scores.timet = (Math.floor(a / 60) + ":") + (((a % 60) < 10) ? ("0" + (a % 60)) : (a % 60));
} else {
if (!scores.time) {
scores.time = "0:00";
}
if (!scores.timet) {
scores.timet = "0:00";
}
}
i = 0;
while (i < lettters.length) {
lettters[i].removeMovieClip();
lettters.splice(i, 1);
i++;
}
if (!lives) {
lives = 0;
gmusic.stop();
bgmusic.stop();
gameOver();
goingdown = true;
}
myString.render();
if ((((((_xmouse > (startzone.x + 10)) && (_xmouse < (startzone.x + 30))) && (_ymouse > (startzone.y + 10))) && (_ymouse < (startzone.y + 30))) && (!gameStart)) && (tdone)) {
Mouse.hide();
makeContact(_xmouse, _ymouse);
playSound(stringstart);
gameStart = true;
myString = new str(50, 5);
myString.addPoints(_xmouse, _ymouse);
myString.render();
starttimer();
}
if (livemc.length < lives) {
var _local1 = attachMovie("pu_life", "life" + getNextHighestDepth(), getNextHighestDepth());
_local1._x = 15 + (livemc.length * 15);
_local1._y = 380;
livemc.push(_local1);
TRANMC.swapDepths(getNextHighestDepth());
} else if (livemc.length > lives) {
livemc[livemc.length - 1].play();
livemc.splice(livemc.length - 1, 1);
}
if ((((lvlPu && (!thePU)) && (!atePu)) && (gameOn)) && (!cantpu)) {
thePU = attachMovie("pu_scissors", "pu" + getNextHighestDepth(), getNextHighestDepth());
thePU._x = lvlPu.x;
thePU._y = lvlPu.y;
transition.swapDepths(getNextHighestDepth());
}
}
function backToMenu() {
saves.data.custLvls = custLvls;
onmenu = true;
scores._visible = false;
for (i in _root) {
if ((!_root[i].tran) && (_root[i] != scores)) {
_root[i].removeMovieClip();
}
}
cl = false;
thePU.removeMovieClip();
thePU = (atePu = (cantpu = (gameOn = (gameonn = (gameStart = (customPlay = (gotObj = (drawin = (customON = (gotStart = false))))))))));
lvlScores = [];
scores.time = "";
scores.timet = "";
livemc = [];
stoptimer();
menue._visible = true;
lvlIndex = 0;
myString.remove();
myString = undefined;
onEnterFrame = null;
init();
bgmusic.stop();
gmusic.stop();
bgmusic = playSound(music, 100, true);
transist(back2menu);
}
function custGameEnt() {
if (Key.isDown(2)) {
backToMenu();
}
Mouse.hide();
myString.render();
i = 0;
while (i < lettters.length) {
lettters[i].removeMovieClip();
lettters.splice(i, 1);
i++;
}
}
function hsent() {
if (Key.isDown(2)) {
backToMenu();
}
Mouse.hide();
myString.render();
i = 0;
while (i < lettters.length) {
lettters[i].removeMovieClip();
lettters.splice(i, 1);
i++;
}
}
function custGame() {
clearMenu();
onEnterFrame = custGameEnt;
panel = attachMovie("panel", "panel", getNextHighestDepth());
panel._x = (Stage.width / 2) - (panel._width / 2);
panel._y = (Stage.height / 2) - (panel._height / 2);
i = 0;
while (i < custLvls.length) {
var _local1 = attachMovie("custLevelSet", "dd" + getNextHighestDepth(), getNextHighestDepth());
_local1.lvlname.text = custLvls[i].name;
_local1.indx = i;
_local1._x = 120;
_local1._y = 130 + (20 * i);
i++;
}
myString.mc.swapDepths(getNextHighestDepth());
}
function men0() {
onmenu = false;
menue._visible = false;
newGame();
}
function men1() {
menue._visible = false;
lvlEditor();
onmenu = false;
}
function men2() {
menue._visible = false;
custGame();
onmenu = false;
}
function men3() {
menue._visible = false;
highscores();
onmenu = false;
}
function starttimer() {
timez = getTimer() - timeoffset;
timego = true;
}
function stoptimer(wall) {
if (wall) {
timeoffset = getTimer() - timez;
} else {
timeoffset = 0;
}
timego = false;
}
function getAllScores() {
var _local1 = 0;
i = 0;
while (i < lvlScores.length) {
_local1 = _local1 + lvlScores[i];
i++;
}
return(_local1);
}
function playCustom(lvl, nam) {
custLvls[lvl].name = nam;
customLvl = lvl;
customPlay = true;
newGame(lvl + 1);
}
function gameOver() {
lvlIndex = 0;
scores._visible = false;
onEnterFrame = undefined;
transist(overrr);
}
function gamewin() {
lvlIndex = 0;
scores._visible = false;
onEnterFrame = undefined;
transist(WINNER);
}
function menuItem(n) {
if (n == 2) {
transist(instruct);
}
if (n == 0) {
newGame(0);
}
if (n == 1) {
transist(lvlEditor);
}
if (n == 3) {
transist(optme);
}
if (n == 4) {
transist(cred);
}
if ((n == 5) && (!vsco)) {
vsco = true;
_root.swHighScoreObject.showTab = "view";
loadMovieNum (_root.HSHubURL, 2);
menuT(false);
}
}
function optme() {
OPTS = attachMovie("OPTIONS", "g" + getNexthighestDepth(), getNextHighestDepth());
menuT(false);
}
function cred() {
CREDS = attachMovie("CREDITS", "g" + getNexthighestDepth(), getNextHighestDepth());
menuT(false);
}
function instruct() {
INSTRUCT = attachMovie("INSTRUCTIONS", "g" + getNexthighestDepth(), getNextHighestDepth());
menuT(false);
}
function transist(func) {
TRAN = func;
var _local1 = (TRANMC = attachMovie("trans", "g" + getNexthighestDepth(), getNextHighestDepth()));
_local1.tran = true;
_local1._x = 275;
_local1._y = 200;
tdone = false;
}
function finishTrans() {
if (tdone) {
return(undefined);
}
tdone = true;
TRAN();
TRANMC.swapDepths(getNextHighestDepth());
}
function removeTrans() {
TRANMC.removeMovieClip();
}
function menuT(n) {
if (n && (!menum)) {
menum = attachMovie("MENUFUCK", "menum" + getNextHighestDepth(), getNextHighestDepth());
} else {
menum.removeMovieClip();
menum = undefined;
}
}
function back2menu() {
for (i in _root) {
if ((!_root[i].tran) && (_root[i] != scores)) {
_root[i].removeMovieClip();
}
}
gmusic.stop();
bgmusic.stop();
bgmusic = playSound(music, 100, true);
menuT(false);
menuT(true);
}
function overrr() {
OVER = attachMovie("GAMEOVER", "g" + getNexthighestDepth(), getNextHighestDepth());
menuT(false);
}
function WINNER() {
winplx = attachMovie("WINNER", "g" + getNexthighestDepth(), getNextHighestDepth());
menuT(false);
}
function pickmode() {
STMODE = attachMovie("STARTMENU", "g" + getNexthighestDepth(), getNextHighestDepth());
menuT(false);
}
function ng2() {
STMODE.removeMovieClip();
ng();
}
function ng3() {
STMODE.removeMovieClip();
ng(true);
}
lvls = [];
lvls[0] = {name:"Baby Steps", build:[{x:250, y:10, w:60, h:10}, {x:300, y:20, w:10, h:260}, {x:300, y:270, w:-50, h:10}, {x:250, y:270, w:10, h:-250}], zones:[{type:"end", x:260, y:20}, {type:"start", x:260, y:230}]};
lvls[1] = {name:"Free Play", build:[{x:10, y:0, w:540, h:10}, {x:0, y:0, w:10, h:300}, {x:10, y:290, w:540, h:10}, {x:540, y:290, w:10, h:-280}], zones:[{type:"start", x:10, y:10}, {type:"end", x:500, y:250}], pu:{x:275, y:140}};
lvls[2] = {name:"Pipe", build:[{x:0, y:0, w:10, h:300}, {x:10, y:0, w:50, h:10}, {x:500, y:0, w:50, h:10}, {x:540, y:10, w:10, h:280}, {x:100, y:290, w:10, h:-10}, {x:440, y:290, w:10, h:-10}, {x:450, y:270, w:-350, h:10}, {x:50, y:10, w:10, h:220}, {x:60, y:230, w:50, h:-10}, {x:100, y:230, w:10, h:10}, {x:100, y:240, w:340, h:10}, {x:440, y:250, w:10, h:-30}, {x:450, y:220, w:40, h:10}, {x:490, y:230, w:10, h:-230}, {x:10, y:290, w:100, h:10}, {x:550, y:290, w:-110, h:10}], zones:[{type:"start", x:10, y:10}, {type:"end", x:500, y:10}]};
lvls[3] = {name:"Pipelines", build:[{x:470, y:290, w:80, h:10}, {x:540, y:290, w:10, h:-70}, {x:0, y:230, w:10, h:60}, {x:70, y:280, w:10, h:20}, {x:0, y:290, w:80, h:10}, {x:470, y:230, w:10, h:10}, {x:470, y:290, w:10, h:-10}, {x:470, y:280, w:-390, h:10}, {x:70, y:230, w:10, h:10}, {x:80, y:230, w:390, h:10}, {x:470, y:220, w:70, h:10}, {x:0, y:220, w:20, h:10}, {x:80, y:230, w:-20, h:-10}, {x:30, y:80, w:-30, h:-10}, {x:0, y:70, w:10, h:-60}, {x:20, y:230, w:10, h:-150}, {x:60, y:220, w:10, h:-140}, {x:60, y:70, w:20, h:10}, {x:0, y:0, w:80, h:10}, {x:80, y:20, w:400, h:10}, {x:470, y:0, w:80, h:10}, {x:540, y:10, w:10, h:70}, {x:540, y:70, w:-70, h:10}, {x:470, y:70, w:10, h:-10}, {x:470, y:10, w:10, h:10}, {x:480, y:50, w:-400, h:10}, {x:80, y:0, w:10, h:20}, {x:80, y:80, w:10, h:-20}], zones:[{type:"start", x:500, y:240}, {type:"end", x:500, y:20}]};
lvls[4] = {name:"Flat Out", build:[{x:0, y:0, w:550, h:10}, {x:540, y:10, w:10, h:290}, {x:540, y:300, w:-540, h:-10}, {x:10, y:290, w:-10, h:-280}, {x:540, y:140, w:-520, h:10}, {x:20, y:120, w:10, h:50}], zones:[{type:"start", x:500, y:10}, {type:"end", x:500, y:250}]};
lvls[5] = {name:"Straighten Up", build:[{x:0, y:0, w:550, h:10}, {x:540, y:10, w:10, h:290}, {x:540, y:290, w:-540, h:10}, {x:0, y:290, w:10, h:-280}, {x:150, y:10, w:10, h:270}, {x:180, y:270, w:-50, h:10}, {x:380, y:20, w:50, h:10}, {x:400, y:30, w:10, h:260}], zones:[{type:"end", x:410, y:250}, {type:"start", x:110, y:10}]};
lvls[6] = {name:"Egypt", build:[{x:0, y:0, w:10, h:300}, {x:10, y:290, w:540, h:10}, {x:540, y:290, w:10, h:-290}, {x:540, y:0, w:-530, h:10}, {x:60, y:230, w:430, h:10}, {x:70, y:220, w:410, h:10}, {x:80, y:210, w:390, h:10}, {x:90, y:200, w:370, h:10}, {x:100, y:200, w:350, h:-10}, {x:110, y:190, w:330, h:-10}, {x:120, y:180, w:310, h:-10}, {x:130, y:170, w:290, h:-10}, {x:140, y:160, w:270, h:-10}, {x:150, y:140, w:250, h:10}, {x:160, y:130, w:230, h:10}, {x:170, y:120, w:210, h:10}, {x:180, y:110, w:190, h:10}, {x:190, y:100, w:170, h:10}, {x:200, y:90, w:150, h:10}, {x:210, y:80, w:130, h:10}, {x:220, y:70, w:110, h:10}, {x:230, y:60, w:90, h:10}, {x:240, y:50, w:70, h:10}, {x:270, y:10, w:10, h:40}, {x:10, y:50, w:210, h:10}, {x:540, y:180, w:-80, h:10}, {x:50, y:240, w:450, h:10}, {x:330, y:50, w:210, h:10}, {x:10, y:220, w:30, h:10}, {x:510, y:220, w:30, h:10}, {x:80, y:180, w:-70, h:10}, {x:0, y:130, w:130, h:10}, {x:420, y:130, w:120, h:10}, {x:10, y:90, w:160, h:10}, {x:380, y:90, w:160, h:10}], zones:[{type:"start", x:260, y:250}, {type:"end", x:230, y:10}, {type:"end", x:280, y:10}]};
lvls[7] = {name:"Double You", build:[{x:540, y:0, w:10, h:60}, {x:540, y:50, w:-50, h:10}, {x:10, y:0, w:90, h:10}, {x:0, y:0, w:10, h:60}, {x:10, y:50, w:50, h:10}, {x:60, y:60, w:10, h:30}, {x:480, y:60, w:10, h:30}, {x:70, y:90, w:10, h:30}, {x:80, y:120, w:10, h:30}, {x:90, y:150, w:10, h:30}, {x:100, y:180, w:10, h:30}, {x:110, y:210, w:10, h:30}, {x:120, y:240, w:10, h:30}, {x:130, y:270, w:10, h:30}, {x:540, y:0, w:-90, h:10}, {x:110, y:60, w:10, h:30}, {x:120, y:90, w:10, h:30}, {x:130, y:120, w:10, h:30}, {x:140, y:150, w:10, h:30}, {x:440, y:60, w:-10, h:30}, {x:430, y:90, w:-10, h:30}, {x:420, y:120, w:-10, h:30}, {x:150, y:180, w:10, h:30}, {x:160, y:210, w:10, h:30}, {x:170, y:240, w:40, h:10}, {x:480, y:90, w:-10, h:30}, {x:470, y:120, w:-10, h:30}, {x:460, y:150, w:-10, h:30}, {x:450, y:180, w:-10, h:30}, {x:440, y:210, w:-10, h:30}, {x:430, y:240, w:-10, h:30}, {x:420, y:270, w:-10, h:30}, {x:410, y:150, w:-10, h:30}, {x:400, y:180, w:-10, h:30}, {x:390, y:210, w:-10, h:30}, {x:380, y:240, w:-40, h:10}, {x:100, y:0, w:10, h:60}, {x:440, y:0, w:10, h:60}, {x:140, y:290, w:100, h:10}, {x:410, y:290, w:-90, h:10}, {x:230, y:300, w:10, h:-30}, {x:240, y:270, w:10, h:-30}, {x:210, y:240, w:10, h:-30}, {x:250, y:240, w:10, h:-40}, {x:320, y:300, w:-10, h:-30}, {x:310, y:270, w:-10, h:-30}, {x:300, y:240, w:-10, h:-40}, {x:260, y:200, w:10, h:-30}, {x:290, y:200, w:-10, h:-30}, {x:220, y:210, w:10, h:-70}, {x:270, y:160, w:10, h:10}, {x:340, y:240, w:-10, h:-40}, {x:330, y:200, w:-10, h:-60}, {x:230, y:130, w:10, h:10}, {x:320, y:140, w:-10, h:-10}, {x:240, y:120, w:70, h:10}], zones:[{type:"start", x:500, y:10}, {type:"end", x:10, y:10}], pu:{x:270, y:140}};
lvls[8] = {name:"Tooth Ache", build:[{x:0, y:100, w:10, h:70}, {x:10, y:100, w:530, h:10}, {x:0, y:170, w:540, h:10}, {x:540, y:100, w:10, h:80}, {x:90, y:110, w:10, h:30}, {x:150, y:170, w:10, h:-30}, {x:230, y:110, w:10, h:30}, {x:300, y:170, w:10, h:-30}, {x:370, y:110, w:10, h:30}, {x:450, y:170, w:10, h:-30}], zones:[{type:"start", x:10, y:120}, {type:"end", x:500, y:120}]};
lvls[9] = {name:"Coaster", build:[{x:0, y:0, w:550, h:10}, {x:10, y:10, w:-10, h:50}, {x:0, y:50, w:500, h:10}, {x:0, y:240, w:10, h:60}, {x:10, y:290, w:540, h:10}, {x:10, y:240, w:490, h:10}, {x:490, y:50, w:10, h:30}, {x:490, y:240, w:10, h:-20}, {x:500, y:210, w:-500, h:10}, {x:540, y:170, w:10, h:130}, {x:550, y:170, w:-490, h:-10}, {x:500, y:80, w:-500, h:10}, {x:0, y:90, w:10, h:120}, {x:50, y:170, w:10, h:-40}, {x:50, y:130, w:490, h:10}, {x:540, y:140, w:10, h:-130}], zones:[{type:"end", x:10, y:10}, {type:"start", x:10, y:250}]};
lvls[10] = {name:"Epic", build:[{x:520, y:30, w:-500, h:10}, {x:20, y:40, w:10, h:230}, {x:30, y:260, w:490, h:10}, {x:510, y:40, w:10, h:220}, {x:110, y:140, w:10, h:120}, {x:410, y:170, w:-100, h:10}, {x:110, y:130, w:80, h:10}, {x:110, y:170, w:150, h:10}, {x:300, y:170, w:10, h:60}, {x:410, y:180, w:10, h:-90}, {x:410, y:210, w:10, h:50}, {x:160, y:220, w:200, h:10}, {x:410, y:80, w:100, h:10}, {x:230, y:130, w:240, h:10}, {x:460, y:140, w:10, h:90}, {x:340, y:40, w:10, h:50}, {x:270, y:130, w:10, h:-40}, {x:280, y:80, w:-210, h:10}, {x:60, y:80, w:10, h:140}, {x:320, y:80, w:50, h:10}], zones:[{type:"end", x:470, y:40}, {type:"start", x:420, y:90}], pu:{x:440, y:160}};
lvls[11] = {name:"Zig Zag", build:[{x:10, y:10, w:520, h:10}, {x:530, y:20, w:-10, h:270}, {x:520, y:280, w:-510, h:10}, {x:10, y:280, w:10, h:-260}, {x:60, y:20, w:10, h:210}, {x:470, y:280, w:10, h:-250}, {x:70, y:220, w:340, h:10}, {x:410, y:220, w:10, h:10}, {x:470, y:160, w:-350, h:10}, {x:70, y:110, w:350, h:-10}, {x:410, y:100, w:10, h:-30}, {x:130, y:20, w:10, h:30}, {x:130, y:90, w:10, h:10}, {x:130, y:70, w:10, h:20}, {x:470, y:50, w:10, h:20}, {x:470, y:40, w:10, h:10}], zones:[{type:"start", x:20, y:20}, {type:"end", x:480, y:240}], pu:{x:100, y:50}};
lvls[12] = {name:"Temptation", build:[{x:230, y:150, w:10, h:-150}, {x:240, y:290, w:50, h:10}, {x:280, y:290, w:10, h:-120}, {x:280, y:150, w:10, h:-100}, {x:290, y:50, w:210, h:10}, {x:240, y:0, w:310, h:10}, {x:540, y:10, w:10, h:180}, {x:540, y:180, w:-250, h:10}, {x:290, y:130, w:210, h:10}, {x:490, y:130, w:10, h:-70}, {x:230, y:130, w:-230, h:10}, {x:0, y:140, w:10, h:40}, {x:0, y:180, w:230, h:10}, {x:230, y:300, w:10, h:-130}, {x:230, y:171, w:10, h:-8}, {x:230, y:148, w:10, h:10}, {x:280, y:170, w:10, h:-7}, {x:280, y:150, w:10, h:8}], zones:[{type:"start", x:240, y:250}, {type:"end", x:10, y:140}]};
lvls[13] = {name:"Abstract", build:[{x:250, y:270, w:50, h:10}, {x:130, y:180, w:-80, h:10}, {x:50, y:180, w:10, h:-80}, {x:90, y:140, w:90, h:10}, {x:170, y:150, w:10, h:40}, {x:210, y:230, w:10, h:30}, {x:250, y:140, w:50, h:10}, {x:290, y:150, w:10, h:40}, {x:300, y:180, w:60, h:10}, {x:360, y:190, w:10, h:-50}, {x:290, y:220, w:110, h:10}, {x:370, y:140, w:80, h:10}, {x:400, y:230, w:10, h:-50}, {x:480, y:180, w:10, h:-80}, {x:290, y:10, w:-50, h:10}, {x:300, y:250, w:30, h:10}, {x:320, y:250, w:10, h:-20}, {x:240, y:20, w:10, h:70}, {x:290, y:10, w:10, h:90}, {x:210, y:50, w:30, h:10}, {x:300, y:50, w:30, h:10}, {x:50, y:90, w:200, h:10}, {x:410, y:180, w:80, h:10}, {x:290, y:230, w:10, h:40}, {x:240, y:230, w:10, h:50}, {x:220, y:250, w:20, h:10}, {x:130, y:220, w:120, h:10}, {x:130, y:180, w:10, h:40}, {x:180, y:180, w:70, h:10}, {x:240, y:140, w:10, h:40}, {x:200, y:50, w:10, h:90}, {x:330, y:50, w:10, h:90}, {x:300, y:90, w:190, h:10}], zones:[{type:"end", x:250, y:20}, {type:"start", x:250, y:230}], pu:{x:270, y:170}};
lvls[14] = {name:"Tower", build:[{x:10, y:0, w:50, h:10}, {x:250, y:0, w:60, h:10}, {x:300, y:10, w:10, h:40}, {x:250, y:10, w:10, h:40}, {x:500, y:0, w:40, h:10}, {x:310, y:40, w:180, h:10}, {x:60, y:40, w:190, h:10}, {x:10, y:0, w:-10, h:130}, {x:10, y:120, w:250, h:10}, {x:300, y:120, w:250, h:10}, {x:540, y:0, w:10, h:120}, {x:80, y:80, w:390, h:10}, {x:250, y:130, w:10, h:170}, {x:300, y:130, w:10, h:170}, {x:260, y:290, w:40, h:10}, {x:490, y:0, w:10, h:110}, {x:50, y:10, w:10, h:100}, {x:50, y:100, w:-20, h:10}, {x:500, y:100, w:20, h:10}], zones:[{type:"end", x:10, y:10}, {type:"end", x:260, y:10}, {type:"start", x:260, y:250}, {type:"end", x:500, y:10}]};
lvls[15] = {name:"Bottle Neck", build:[{x:250, y:290, w:60, h:10}, {x:250, y:290, w:10, h:-50}, {x:300, y:290, w:10, h:-50}, {x:260, y:240, w:10, h:10}, {x:300, y:240, w:-10, h:10}, {x:260, y:240, w:10, h:-20}, {x:290, y:240, w:10, h:-20}, {x:260, y:220, w:-10, h:10}, {x:300, y:220, w:10, h:10}, {x:300, y:220, w:10, h:-60}, {x:250, y:220, w:10, h:-60}, {x:250, y:160, w:-160, h:10}, {x:250, y:130, w:60, h:10}, {x:300, y:130, w:10, h:-40}, {x:250, y:130, w:10, h:-40}, {x:250, y:80, w:20, h:10}, {x:310, y:90, w:-20, h:-10}, {x:90, y:160, w:10, h:-130}, {x:250, y:100, w:-130, h:10}, {x:310, y:100, w:130, h:10}, {x:100, y:30, w:370, h:10}, {x:310, y:160, w:160, h:10}, {x:470, y:40, w:-10, h:120}], zones:[{type:"end", x:260, y:250}, {type:"start", x:260, y:90}]};
lvls[16] = {name:"Two in One", build:[{x:540, y:300, w:10, h:-300}, {x:540, y:0, w:-540, h:10}, {x:0, y:10, w:10, h:290}, {x:0, y:290, w:540, h:10}, {x:490, y:290, w:10, h:-100}, {x:490, y:50, w:10, h:100}, {x:490, y:50, w:-440, h:10}, {x:50, y:60, w:10, h:190}, {x:60, y:240, w:430, h:10}, {x:450, y:190, w:40, h:10}, {x:450, y:190, w:10, h:-100}, {x:450, y:90, w:-360, h:10}, {x:90, y:100, w:10, h:110}, {x:100, y:200, w:320, h:10}, {x:410, y:200, w:10, h:-70}], zones:[{type:"start", x:500, y:250}, {type:"end", x:120, y:130}], pu:{x:469, y:265}};
lvls[17] = {name:"Vortex", build:[{x:480, y:0, w:-230, h:10}, {x:250, y:10, w:-30, h:10}, {x:220, y:20, w:-30, h:10}, {x:190, y:30, w:-20, h:10}, {x:170, y:40, w:-20, h:10}, {x:150, y:50, w:-10, h:10}, {x:140, y:60, w:-10, h:10}, {x:120, y:70, w:10, h:20}, {x:110, y:90, w:10, h:20}, {x:100, y:110, w:10, h:30}, {x:90, y:140, w:10, h:30}, {x:100, y:170, w:10, h:30}, {x:110, y:200, w:10, h:20}, {x:120, y:220, w:10, h:20}, {x:130, y:240, w:10, h:10}, {x:140, y:250, w:10, h:10}, {x:150, y:260, w:20, h:10}, {x:170, y:270, w:20, h:10}, {x:190, y:280, w:30, h:10}, {x:220, y:290, w:30, h:10}, {x:250, y:280, w:30, h:10}, {x:280, y:270, w:20, h:10}, {x:300, y:260, w:20, h:10}, {x:320, y:250, w:10, h:10}, {x:330, y:240, w:10, h:10}, {x:340, y:240, w:10, h:-20}, {x:350, y:220, w:10, h:-20}, {x:360, y:200, w:10, h:-30}, {x:370, y:170, w:10, h:-30}, {x:370, y:140, w:-10, h:-30}, {x:360, y:110, w:-10, h:-20}, {x:340, y:90, w:10, h:-20}, {x:340, y:70, w:-10, h:-10}, {x:320, y:50, w:160, h:10}, {x:470, y:10, w:10, h:40}, {x:320, y:50, w:-70, h:10}, {x:250, y:60, w:-30, h:10}, {x:220, y:70, w:-20, h:10}, {x:200, y:80, w:-20, h:10}, {x:180, y:90, w:-10, h:10}, {x:170, y:100, w:-10, h:20}, {x:160, y:120, w:-10, h:20}, {x:150, y:140, w:-10, h:30}, {x:150, y:170, w:10, h:30}, {x:160, y:200, w:10, h:20}, {x:170, y:220, w:10, h:10}, {x:180, y:230, w:10, h:10}, {x:190, y:240, w:30, h:10}, {x:220, y:250, w:30, h:10}, {x:250, y:250, w:30, h:-10}, {x:280, y:240, w:10, h:-10}, {x:290, y:230, w:10, h:-10}, {x:300, y:220, w:10, h:-20}, {x:310, y:200, w:10, h:-30}, {x:230, y:110, w:-20, h:10}, {x:210, y:120, w:-10, h:10}, {x:200, y:130, w:-10, h:10}, {x:320, y:170, w:10, h:-20}, {x:310, y:150, w:10, h:-20}, {x:310, y:130, w:-10, h:-10}, {x:290, y:120, w:10, h:-10}, {x:290, y:110, w:-20, h:-10}, {x:230, y:110, w:20, h:-10}, {x:250, y:100, w:20, h:-10}, {x:190, y:140, w:-10, h:30}, {x:190, y:170, w:10, h:20}, {x:200, y:190, w:10, h:10}, {x:210, y:200, w:10, h:10}, {x:220, y:210, w:30, h:10}, {x:250, y:210, w:10, h:-10}, {x:260, y:200, w:10, h:-10}, {x:270, y:190, w:10, h:-30}, {x:270, y:160, w:-10, h:-20}, {x:250, y:140, w:10, h:-10}], zones:[{type:"start", x:430, y:10}, {type:"end", x:210, y:140}]};
lvls[18] = {name:"Equator", build:[{x:10, y:270, w:530, h:10}, {x:10, y:20, w:530, h:10}, {x:0, y:280, w:10, h:-260}, {x:540, y:20, w:10, h:260}, {x:10, y:220, w:500, h:10}, {x:40, y:170, w:500, h:10}, {x:10, y:120, w:500, h:10}, {x:540, y:70, w:-500, h:10}], zones:[{type:"end", x:500, y:30}, {type:"start", x:10, y:230}]};
lvls[19] = {name:"Streamline", build:[{x:0, y:0, w:550, h:10}, {x:170, y:20, w:220, h:10}, {x:180, y:30, w:-130, h:10}, {x:390, y:20, w:10, h:20}, {x:400, y:30, w:100, h:10}, {x:490, y:50, w:30, h:10}, {x:490, y:40, w:10, h:10}, {x:50, y:40, w:10, h:20}, {x:50, y:260, w:10, h:40}, {x:10, y:300, w:-10, h:-290}, {x:60, y:250, w:-30, h:10}, {x:30, y:250, w:10, h:-190}, {x:30, y:50, w:20, h:10}, {x:540, y:300, w:10, h:-290}, {x:510, y:60, w:10, h:200}, {x:490, y:250, w:20, h:10}, {x:490, y:260, w:10, h:40}, {x:510, y:240, w:-20, h:10}, {x:40, y:240, w:20, h:10}, {x:10, y:290, w:40, h:10}, {x:500, y:290, w:40, h:10}], zones:[{type:"start", x:10, y:250}, {type:"end", x:500, y:250}]};
lvls[20] = {name:"Find an Opening", build:[{x:0, y:0, w:550, h:10}, {x:540, y:10, w:10, h:290}, {x:0, y:10, w:10, h:290}, {x:10, y:300, w:530, h:-10}, {x:50, y:50, w:10, h:200}, {x:60, y:50, w:440, h:10}, {x:490, y:60, w:10, h:190}, {x:500, y:250, w:-190, h:10}, {x:50, y:250, w:200, h:10}, {x:90, y:220, w:10, h:-120}, {x:100, y:210, w:350, h:10}, {x:450, y:220, w:10, h:-120}, {x:300, y:100, w:150, h:10}, {x:100, y:100, w:160, h:10}, {x:130, y:140, w:10, h:40}, {x:140, y:140, w:280, h:10}, {x:410, y:150, w:10, h:30}], zones:[{type:"start", x:10, y:10}, {type:"end", x:260, y:150}]};
lvls[21] = {name:"Amaze", build:[{x:550, y:0, w:-550, h:10}, {x:10, y:10, w:-10, h:290}, {x:10, y:290, w:540, h:10}, {x:540, y:290, w:10, h:-280}, {x:220, y:250, w:10, h:20}, {x:50, y:80, w:-20, h:10}, {x:40, y:130, w:180, h:10}, {x:30, y:80, w:10, h:160}, {x:170, y:260, w:10, h:-30}, {x:180, y:140, w:-10, h:40}, {x:300, y:160, w:170, h:10}, {x:490, y:200, w:-170, h:10}, {x:150, y:10, w:10, h:20}, {x:80, y:210, w:10, h:60}, {x:80, y:200, w:130, h:10}, {x:300, y:160, w:-10, h:60}, {x:340, y:160, w:10, h:-90}, {x:390, y:50, w:10, h:80}, {x:170, y:170, w:-60, h:10}, {x:250, y:70, w:10, h:140}, {x:460, y:240, w:10, h:-30}, {x:540, y:240, w:-50, h:10}, {x:510, y:120, w:10, h:80}, {x:510, y:110, w:30, h:10}, {x:430, y:160, w:10, h:-60}, {x:520, y:70, w:-90, h:10}, {x:260, y:240, w:170, h:10}, {x:260, y:250, w:10, h:30}, {x:260, y:120, w:80, h:10}, {x:90, y:50, w:-50, h:10}, {x:80, y:60, w:10, h:50}, {x:30, y:180, w:-20, h:10}, {x:360, y:270, w:-10, h:20}, {x:80, y:260, w:-30, h:10}, {x:140, y:260, w:80, h:10}, {x:300, y:50, w:10, h:10}, {x:220, y:50, w:-100, h:10}, {x:210, y:40, w:260, h:10}, {x:420, y:40, w:10, h:-10}, {x:340, y:10, w:10, h:10}, {x:260, y:40, w:10, h:-20}, {x:250, y:170, w:-20, h:10}, {x:210, y:130, w:10, h:-30}, {x:140, y:60, w:10, h:30}, {x:500, y:10, w:10, h:60}], zones:[{type:"start", x:500, y:250}, {type:"end", x:10, y:10}, {type:"end", x:570, y:210}]};
lvls[22] = {name:"Teaser", build:[{x:0, y:0, w:550, h:10}, {x:540, y:10, w:10, h:290}, {x:540, y:300, w:-540, h:-10}, {x:10, y:290, w:-10, h:-280}, {x:50, y:10, w:10, h:130}, {x:50, y:160, w:10, h:130}, {x:140, y:10, w:10, h:120}, {x:140, y:170, w:10, h:120}, {x:190, y:50, w:10, h:200}, {x:240, y:10, w:10, h:120}, {x:240, y:290, w:10, h:-120}, {x:290, y:60, w:10, h:180}, {x:340, y:10, w:10, h:120}, {x:340, y:170, w:10, h:120}, {x:390, y:70, w:10, h:170}, {x:440, y:10, w:10, h:120}, {x:440, y:170, w:10, h:120}, {x:490, y:80, w:10, h:150}, {x:90, y:30, w:10, h:240}], zones:[{type:"end", x:10, y:10}, {type:"end", x:10, y:250}, {type:"start", x:100, y:130}], pu:{x:515, y:147}};
lvls[23] = {name:"The Complex", build:[{x:290, y:210, w:10, h:80}, {x:240, y:220, w:10, h:70}, {x:290, y:10, w:10, h:60}, {x:240, y:10, w:10, h:60}, {x:240, y:80, w:10, h:80}, {x:140, y:100, w:10, h:50}, {x:290, y:80, w:10, h:80}, {x:250, y:150, w:10, h:10}, {x:290, y:150, w:-10, h:10}, {x:240, y:100, w:-70, h:10}, {x:170, y:100, w:-20, h:10}, {x:300, y:100, w:110, h:10}, {x:400, y:100, w:10, h:50}, {x:60, y:80, w:10, h:130}, {x:480, y:80, w:10, h:130}, {x:490, y:210, w:-190, h:10}, {x:490, y:70, w:-200, h:10}, {x:60, y:70, w:190, h:10}, {x:60, y:210, w:190, h:10}, {x:110, y:180, w:330, h:10}, {x:200, y:10, w:10, h:60}, {x:330, y:10, w:10, h:60}, {x:200, y:220, w:10, h:80}, {x:200, y:0, w:140, h:10}, {x:210, y:290, w:130, h:10}, {x:330, y:290, w:10, h:-70}, {x:340, y:50, w:50, h:10}, {x:390, y:60, w:-10, h:10}, {x:200, y:50, w:-50, h:10}, {x:150, y:60, w:10, h:10}, {x:200, y:240, w:-50, h:-10}, {x:150, y:230, w:10, h:-10}, {x:340, y:230, w:50, h:10}, {x:380, y:230, w:10, h:-10}, {x:170, y:240, w:10, h:30}, {x:180, y:260, w:20, h:10}, {x:360, y:240, w:10, h:30}, {x:360, y:260, w:-20, h:10}, {x:360, y:50, w:10, h:-30}, {x:360, y:20, w:-20, h:10}, {x:200, y:20, w:-30, h:10}, {x:170, y:30, w:10, h:20}, {x:110, y:110, w:10, h:70}, {x:430, y:110, w:10, h:70}, {x:180, y:140, w:10, h:40}, {x:360, y:140, w:10, h:40}], zones:[{type:"start", x:250, y:250}, {type:"end", x:250, y:10}], pu:{x:270, y:210}};
lvls[24] = {name:"Decisions", build:[{x:0, y:0, w:10, h:300}, {x:10, y:300, w:540, h:-10}, {x:10, y:0, w:540, h:10}, {x:540, y:10, w:10, h:280}, {x:500, y:270, w:-450, h:10}, {x:50, y:270, w:10, h:-30}, {x:10, y:190, w:120, h:10}, {x:140, y:20, w:330, h:10}, {x:490, y:270, w:10, h:-30}, {x:540, y:100, w:-150, h:10}, {x:260, y:170, w:90, h:10}, {x:350, y:30, w:10, h:170}, {x:410, y:80, w:10, h:100}, {x:290, y:220, w:180, h:10}, {x:500, y:250, w:10, h:-110}, {x:500, y:140, w:-50, h:10}, {x:10, y:50, w:300, h:10}, {x:300, y:60, w:10, h:70}, {x:250, y:270, w:10, h:-180}, {x:250, y:110, w:-210, h:10}, {x:180, y:120, w:10, h:100}, {x:110, y:140, w:10, h:110}, {x:110, y:240, w:100, h:10}], zones:[{type:"start", x:10, y:10}, {type:"end", x:500, y:250}]};
lvls[25] = {name:"Boomerangle", build:[{x:530, y:140, w:10, h:-30}, {x:530, y:110, w:-10, h:-30}, {x:520, y:80, w:-10, h:-20}, {x:510, y:60, w:-10, h:-10}, {x:490, y:40, w:10, h:10}, {x:490, y:40, w:-10, h:-10}, {x:480, y:30, w:-20, h:-10}, {x:540, y:140, w:10, h:20}, {x:540, y:160, w:-10, h:30}, {x:530, y:190, w:-10, h:30}, {x:520, y:220, w:-10, h:20}, {x:510, y:240, w:-10, h:10}, {x:500, y:250, w:-10, h:10}, {x:490, y:260, w:-10, h:10}, {x:480, y:270, w:-20, h:10}, {x:500, y:140, w:10, h:20}, {x:500, y:140, w:-10, h:-30}, {x:500, y:160, w:-10, h:30}, {x:490, y:190, w:-10, h:30}, {x:490, y:110, w:-10, h:-30}, {x:480, y:80, w:-10, h:-20}, {x:480, y:220, w:-10, h:20}, {x:10, y:240, w:50, h:10}, {x:50, y:250, w:10, h:10}, {x:50, y:60, w:10, h:-20}, {x:50, y:60, w:-40, h:-10}, {x:450, y:50, w:20, h:10}, {x:450, y:50, w:-40, h:-10}, {x:50, y:30, w:360, h:10}, {x:50, y:260, w:360, h:10}, {x:410, y:260, w:40, h:-10}, {x:470, y:250, w:-20, h:-10}, {x:460, y:20, w:-20, h:-10}, {x:0, y:0, w:440, h:10}, {x:0, y:10, w:10, h:50}, {x:0, y:290, w:10, h:-50}, {x:0, y:290, w:440, h:10}, {x:460, y:280, w:-20, h:10}], zones:[{type:"start", x:10, y:10}, {type:"end", x:10, y:250}]};
lvls[26] = {name:"Flip", build:[{x:30, y:240, w:10, h:60}, {x:40, y:240, w:30, h:10}, {x:520, y:300, w:-10, h:-60}, {x:510, y:240, w:-40, h:10}, {x:40, y:290, w:470, h:10}, {x:70, y:250, w:10, h:-50}, {x:80, y:200, w:40, h:10}, {x:110, y:200, w:10, h:-40}, {x:100, y:290, w:10, h:-50}, {x:470, y:240, w:10, h:-40}, {x:470, y:200, w:-40, h:10}, {x:440, y:290, w:10, h:-50}, {x:430, y:200, w:10, h:-40}, {x:120, y:160, w:40, h:10}, {x:150, y:160, w:10, h:-40}, {x:160, y:120, w:40, h:10}, {x:390, y:120, w:-40, h:10}, {x:190, y:120, w:10, h:-120}, {x:200, y:0, w:160, h:10}, {x:350, y:120, w:10, h:-110}, {x:150, y:170, w:10, h:90}, {x:190, y:290, w:10, h:-130}, {x:350, y:290, w:10, h:-130}, {x:400, y:160, w:30, h:10}, {x:390, y:120, w:10, h:140}, {x:300, y:60, w:10, h:230}, {x:250, y:290, w:10, h:-230}, {x:260, y:60, w:10, h:10}, {x:300, y:60, w:-10, h:10}, {x:150, y:250, w:-10, h:10}, {x:400, y:250, w:10, h:10}, {x:200, y:160, w:10, h:10}, {x:350, y:160, w:-10, h:10}], zones:[{type:"end", x:40, y:250}, {type:"end", x:470, y:250}, {type:"start", x:260, y:250}]};
lvls[27] = {name:"Cross Hatch", build:[{x:0, y:120, w:50, h:10}, {x:10, y:130, w:-10, h:50}, {x:10, y:170, w:40, h:10}, {x:500, y:170, w:50, h:10}, {x:540, y:170, w:10, h:-50}, {x:540, y:120, w:-40, h:10}, {x:40, y:120, w:10, h:-90}, {x:40, y:180, w:10, h:100}, {x:40, y:20, w:460, h:10}, {x:490, y:30, w:10, h:100}, {x:490, y:170, w:10, h:110}, {x:50, y:270, w:440, h:10}, {x:90, y:40, w:10, h:80}, {x:120, y:150, w:10, h:90}, {x:70, y:70, w:60, h:10}, {x:210, y:60, w:-10, h:120}, {x:160, y:130, w:100, h:10}, {x:240, y:170, w:-10, h:90}, {x:170, y:210, w:90, h:10}, {x:80, y:270, w:10, h:-60}, {x:300, y:190, w:10, h:80}, {x:280, y:200, w:70, h:10}, {x:340, y:30, w:10, h:100}, {x:310, y:50, w:70, h:10}, {x:420, y:270, w:10, h:-140}, {x:390, y:160, w:60, h:10}, {x:390, y:230, w:90, h:10}, {x:290, y:80, w:10, h:100}, {x:170, y:30, w:-10, h:70}, {x:60, y:240, w:30, h:10}, {x:170, y:50, w:20, h:10}, {x:450, y:30, w:10, h:80}, {x:420, y:80, w:50, h:10}, {x:130, y:180, w:30, h:10}], zones:[{type:"start", x:10, y:130}, {type:"end", x:500, y:130}]};
lvls[28] = {name:"Hammer Time", build:[{x:550, y:0, w:-550, h:10}, {x:0, y:10, w:10, h:290}, {x:10, y:300, w:540, h:-10}, {x:540, y:290, w:10, h:-280}, {x:490, y:290, w:10, h:-250}, {x:480, y:40, w:30, h:10}, {x:420, y:10, w:10, h:40}, {x:410, y:50, w:30, h:10}, {x:410, y:90, w:30, h:10}, {x:420, y:100, w:10, h:190}, {x:350, y:10, w:10, h:240}, {x:340, y:250, w:30, h:10}, {x:280, y:290, w:10, h:-40}, {x:270, y:240, w:30, h:10}, {x:270, y:200, w:30, h:10}, {x:280, y:200, w:10, h:-190}, {x:220, y:290, w:10, h:-240}, {x:210, y:40, w:30, h:10}, {x:150, y:10, w:10, h:110}, {x:140, y:120, w:30, h:10}, {x:140, y:160, w:30, h:10}, {x:150, y:170, w:10, h:120}, {x:50, y:10, w:10, h:240}, {x:40, y:250, w:30, h:10}, {x:100, y:290, w:10, h:-250}, {x:90, y:40, w:30, h:10}], zones:[{type:"start", x:500, y:250}, {type:"end", x:10, y:10}], pu:{x:155, y:145}};
lvls[29] = {name:"Mansion - Final", build:[{x:0, y:290, w:550, h:10}, {x:0, y:290, w:10, h:-290}, {x:10, y:0, w:540, h:10}, {x:540, y:10, w:10, h:280}, {x:100, y:200, w:-50, h:10}, {x:10, y:240, w:40, h:10}, {x:90, y:290, w:10, h:-80}, {x:10, y:150, w:140, h:10}, {x:140, y:160, w:10, h:90}, {x:150, y:240, w:40, h:10}, {x:230, y:290, w:10, h:-100}, {x:230, y:190, w:-40, h:10}, {x:190, y:190, w:10, h:-80}, {x:150, y:100, w:10, h:-40}, {x:160, y:60, w:-100, h:-10}, {x:100, y:150, w:10, h:-50}, {x:50, y:50, w:10, h:60}, {x:200, y:10, w:10, h:50}, {x:150, y:100, w:100, h:10}, {x:250, y:110, w:10, h:-60}, {x:310, y:160, w:-70, h:-10}, {x:300, y:10, w:10, h:140}, {x:280, y:160, w:10, h:90}, {x:330, y:240, w:10, h:50}, {x:290, y:190, w:90, h:10}, {x:390, y:240, w:40, h:10}, {x:470, y:290, w:10, h:-90}, {x:380, y:140, w:100, h:10}, {x:430, y:190, w:110, h:10}, {x:470, y:140, w:10, h:-40}, {x:540, y:50, w:-120, h:10}, {x:380, y:150, w:10, h:100}, {x:370, y:150, w:10, h:-100}, {x:370, y:50, w:-30, h:10}, {x:340, y:60, w:10, h:90}, {x:420, y:100, w:10, h:-90}], zones:[{type:"start", x:10, y:250}, {type:"end", x:340, y:150}]};
custLvls = [];
STRCOLOR = 0;
STRCOLORS = ["0x000000", "0x666666", "0xFFFFFF", "0x339900", "0x003399", "0x00FF00", "0xCC9966", "0xFF9900", "0x663366", "0x006666", "0x00CCFF", "0xFFCCCC", "0xFFFF00", "0x666600", "0x660000"];
BDRCOLOR = 0;
BDRCOLORS = ["0x000000", "0x666666", "0xFFFFFF", "0x339900", "0x003399", "0x00FF00", "0xCC9966", "0xFF9900", "0x663366", "0x006666", "0x00CCFF", "0xFFCCCC", "0xFFFF00", "0x666600", "0x660000"];
saves = SharedObject.getLocal("StringAvoider");
lvlIndex = 0;
snap = true;
init();
livemc = [];
lvlScores = [];
totalScore = 0;
onEnterFrame = menuEnterFrame;
onmenu = true;
bgmusic = playSound(music, 100, true);
transition.onEnterFrame = function () {
if ((this.getDepth() + 1) != getNextHighestDepth()) {
this.swapDepths(getNextHighestDepth());
}
};
timeoffset = 0;
scores._visible = false;
menuGo = true;
menuT(true);
Symbol 9 MovieClip [trans] Frame 14
_root.finishTrans();
Symbol 9 MovieClip [trans] Frame 28
_root.removeTrans();
Symbol 21 MovieClip Frame 1
stop();
Symbol 29 MovieClip Frame 20
stop();
Symbol 31 Button
on (release) {
_root.transist(_root.back2menu);
}
Symbol 40 MovieClip [CREDITS] Frame 1
stop();
Symbol 49 MovieClip Frame 89
stop();
Symbol 52 Button
on (release) {
_root.stopAllSounds();
_root.transist(_root.back2menu);
}
Symbol 55 MovieClip Frame 1
t = _root.PLAYERSCORE;
h.text = (("Your time: " + Math.floor(t / 60)) + ":") + (((t % 60) < 10) ? ("0" + (t % 60)) : (t % 60));
Symbol 66 MovieClip [WINNER] Frame 2
sco = "Your time: " + _root.ENDSCORE;
Symbol 66 MovieClip [WINNER] Frame 987
stop();
Symbol 73 MovieClip [GAMEOVER] Frame 2
onEnterFrame = function () {
mus = ["Off", "On"][Number(_root.musicon)];
};
Symbol 73 MovieClip [GAMEOVER] Frame 352
stop();
_root.transist(_root.back2menu);
_root.stopAllSounds();
Symbol 79 MovieClip Frame 12
stop();
Symbol 81 Button
on (release) {
((_root.STRCOLOR == (_root.STRCOLORS.length - 1)) ? ((_root.STRCOLOR = 0)) : (_root.STRCOLOR++));
a = new Color(stt);
a.setRGB(_root.STRCOLORS[_root.STRCOLOR]);
}
Symbol 82 Button
on (release) {
((_root.BDRCOLOR == (_root.BDRCOLORS.length - 1)) ? ((_root.BDRCOLOR = 0)) : (_root.BDRCOLOR++));
a = new Color(bdt);
a.setRGB(_root.BDRCOLORS[_root.BDRCOLOR]);
}
Symbol 83 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
}
}
Symbol 84 Button
on (release) {
_root.musicon = !_root.musicon;
}
Symbol 94 MovieClip [OPTIONS] Frame 1
onEnterFrame = function () {
mus = (_root.musicon ? "ON" : "OFF");
qua = _root._quality;
};
Symbol 100 MovieClip Frame 20
stop();
Symbol 101 Button
on (release) {
_root.transist(_root.ng2);
}
Symbol 105 MovieClip Frame 20
stop();
Symbol 106 Button
on (release) {
_root.transist(_root.ng3);
}
Symbol 158 MovieClip Frame 36
stop();
Symbol 170 Button
on (release) {
if (_root.menuGo) {
_root.menuItem(1);
}
}
Symbol 177 Button
on (release) {
if (_root.menuGo) {
_root.menuItem(3);
}
}
Instance of Symbol 179 MovieClip in Symbol 182 MovieClip Frame 25
onClipEvent (load) {
function __f_load(eventObj) {
this.n = 3;
}
this.addEventListener("load", __f_load);
}
Symbol 182 MovieClip Frame 30
stop();
Symbol 188 MovieClip [contact] Frame 11
this.removeMovieClip();
Symbol 189 MovieClip [pu_life] Frame 1
stop();
Symbol 189 MovieClip [pu_life] Frame 36
this.removeMovieClip();
Symbol 202 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 211 MovieClip [transition_gameover] Frame 1
stop();
Symbol 211 MovieClip [transition_gameover] Frame 18
stop();
txt = _root.getAllScores();
Instance of Symbol 202 MovieClip in Symbol 211 MovieClip [transition_gameover] Frame 18
on (release) {
_root.end.play();
_root.backToMenu();
_root.end.swapDepths(_root.getNextHighestDepth());
}
Instance of Symbol 202 MovieClip in Symbol 211 MovieClip [transition_gameover] Frame 18
on (release) {
pldm128948 = new LoadVars();
pldm128948.namevar = _root.end.nam.text;
pldm128948.scorevar = 10000 - _root.getAllScores();
pldm128948.mid = 39;
pldm128948.pro = "0e78cc45bef7f4fd7d122276744e2307";
pldm128948.sendAndLoad("http://bot.armorstudios.com/hs.php", pldm128948, "POST");
_root.end.play();
_root.backToMenu();
_root.end.swapDepths(_root.getNextHighestDepth());
}
Symbol 227 MovieClip Frame 61
stop();
Symbol 231 MovieClip Frame 20
stop();
Symbol 236 MovieClip Frame 20
stop();
Symbol 241 MovieClip Frame 20
stop();
Symbol 245 MovieClip Frame 20
stop();
Symbol 250 MovieClip Frame 20
stop();
Symbol 252 Button
on (release) {
_root.menuItem(0);
}
Symbol 253 Button
on (release) {
_root.menuItem(1);
}
Symbol 254 Button
on (release) {
_root.menuItem(2);
}
Symbol 255 Button
on (release) {
_root.menuItem(3);
}
Symbol 256 Button
on (release) {
_root.menuItem(4);
}
Symbol 257 MovieClip Frame 62
stop();
Symbol 260 MovieClip Frame 108
stop();
Instance of Symbol 263 MovieClip in Symbol 264 MovieClip Frame 1
on (release) {
getURL ("http://armorgames.com", "_blank");
}
Symbol 265 MovieClip Frame 40
stop();
Symbol 267 MovieClip Frame 31
this.removeMovieClip();
stop();
Symbol 274 MovieClip Frame 20
stop();
Symbol 275 Button
on (release) {
_root.saveLevel();
}
Symbol 276 Button
on (release) {
_root.lvlEditoring = false;
_root.backToMenu();
}
Symbol 294 MovieClip Frame 160
_root.gotoAndStop(4);
Symbol 303 MovieClip Frame 134
_root.gotoAndStop(5);
_root.play();
Symbol 311 MovieClip Frame 20
stop();
Symbol 312 Button
on (release) {
_root.backToMenu();
}
Symbol 315 Button
on (release) {
_root.dundun = true;
_root.gotoAndStop(3);
}