Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
function onEnterFrame() {
if (this._currentframe == 1) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
loader._xscale = getPercent * 100;
if ((bytes_loaded == bytes_total) && (thePlay._x < 0)) {
if ((domain == "www.armorgames.com") || (domain == "armorgames.com")) {
gotoAndStop (2);
delete onEnterFrame;
}
loader._x = 1000;
outer._x = 1000;
thePlay._x = Stage.width / 2;
thePlay.onRollOver = function () {
thePlay._xscale = (thePlay._yscale = 150);
};
thePlay.onRollOut = function () {
thePlay._xscale = (thePlay._yscale = 100);
};
thePlay.onRelease = function () {
gotoAndStop (2);
};
}
}
}
function goToThisURL() {
getURL ("http://armorgames.com", "_blank");
}
function createContextMenu(menu) {
_root.menu = menu;
}
stop();
__com_mochibot__("c5823002", this, 10301, true);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var mainItem = new ContextMenuItem("Play More Games", goToThisURL);
myMenu.customItems.push(mainItem);
createContextMenu(myMenu);
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
LastDot = domain.lastIndexOf(".") - 1;
domEnd = domain.lastIndexOf(".", LastDot) + 1;
domain = domain.substring(domEnd, domain.length);
if ((domain == "www.armorgames.com") || (domain == "armorgames.com")) {
outer._y = Stage.height / 2;
loader._y = Stage.height / 2;
adBox._x = 2000;
} else {
var CPMStarContentSpotID = "1840QA7A879EA";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
}
tDot.onRelease = function () {
dom.htmlText = ("<b>" + domain) + "</b>";
};
pBest = 0;
muted2 = false;
Instance of Symbol 24 MovieClip in Frame 1
on (release) {
getURL ("http://armorgames.com", "_BLANK");
}
Instance of Symbol 41 MovieClip in Frame 2
on (release) {
getURL ("http://armorgames.com", "_BLANK");
}
Frame 3
function aHover(button, num) {
button.onRollOver = function () {
growBig[num - 1] = true;
};
button.onRollOut = function () {
growBig[num - 1] = false;
};
}
function onEnterFrame() {
i = buttons.length - 1;
while (i >= 0) {
button = buttons[i];
if (growBig[i]) {
button._xscale = (button._yscale = button._yscale + ((120 - button._xscale) / 2));
} else {
button._xscale = (button._yscale = button._yscale + ((100 - button._xscale) / 2));
}
i--;
}
}
function bold(item) {
return(("<b>" + item) + "</b>");
}
stop();
song3.stop();
mbtn.onRelease = function () {
if (muted2) {
mbtn.gotoAndStop(1);
muted2 = !muted2;
song.setVolume(100);
} else {
mbtn.gotoAndStop(2);
muted2 = !muted2;
song.setVolume(0);
}
};
mbtn.onRollOver = function () {
mbtn._alpha = 50;
};
mbtn.onRollOut = function () {
mbtn._alpha = 100;
};
playBtn.onRelease = function () {
gotoAndStop (4);
Playtomic.Log.Play();
};
cre.onRelease = function () {
gotoAndStop (7);
};
wt.onRelease = function () {
getURL ("http://armorgames.com/guide/saving-the-company-video-guide", "_BLANK");
};
mg.onRelease = function () {
getURL ("http://armorgames.com", "_BLANK");
};
stop();
buttons = new Array(playBtn, mg, cre, wt);
growBig = new Array(false, false, false, false);
i = buttons.length - 1;
while (i >= 0) {
aHover(buttons[i], i + 1);
i--;
}
sObject = SharedObject.getLocal("saveFile");
personalBest = 107999 /* 0x01A5DF */;
if (sObject.data.personalBest != undefined) {
personalBest = sObject.data.personalBest;
}
pBest = personalBest;
if (personalBest == 107999) {
pBestTxt.htmlText = bold("");
hs._alpha = 0;
} else if (Math.floor(pBest / 1800) > 0) {
pBestTxt.htmlText = ((("<b>" + (Math.floor(pBest / 1800) % 60)) + ":") + (Math.floor(pBest / 30) % 60)) + "</b>";
if ((Math.floor(pBest / 30) % 60) < 10) {
pBestTxt.htmlText = ((("<b>" + (Math.floor(pBest / 1800) % 60)) + ":0") + (Math.floor(pBest / 30) % 60)) + "</b>";
}
} else {
pBestTxt.htmlText = ("<b>0:" + (Math.floor(pBest / 30) % 60)) + "</b>";
if ((Math.floor(pBest / 30) % 60) < 10) {
pBestTxt.htmlText = ("<b>0:0" + (Math.floor(pBest / 30) % 60)) + "</b>";
}
}
ag.onRelease = function () {
getURL ("http://armorgames.com", "_BLANK");
};
Frame 4
function onEnterFrame() {
mbtn._alpha = mbtn._alpha + 1;
if (mbtn._alpha > 100) {
mbtn._alpha = 100;
}
timeToShow = timeToShow - 1;
if (timeToShow <= 0) {
delete onEnterFrame;
gotoAndStop (5);
song2.stop();
}
}
stop();
timeToShow = 1370;
song2 = new Sound(this);
song2.attachSound("song2.mp3");
song2.start(0, 100000);
if (muted2) {
song2.setVolume(0);
}
mbtn._alpha = 0;
mbtn.onRelease = function () {
if (muted2) {
mbtn.gotoAndStop(1);
muted2 = !muted2;
song2.setVolume(100);
} else {
mbtn.gotoAndStop(2);
muted2 = !muted2;
song2.setVolume(0);
}
};
mbtn.onRollOver = function () {
mbtn._alpha = 50;
};
mbtn.onRollOut = function () {
mbtn._alpha = 100;
};
intro.skipper.onRollOver = function () {
intro.skipper._alpha = 50;
};
intro.skipper.onRollOut = function () {
intro.skipper._alpha = 100;
};
intro.skipper.onRelease = function () {
gotoAndStop (5);
};
Frame 5
function goToThisURL() {
getURL ("http://armorgames.com", "_BLANK");
}
function secretButton() {
if (floor.ground.wall8._currentframe == 1) {
floor.ground.wall8.gotoAndPlay(2);
floor.light8.gotoAndPlay(2);
}
}
function goToThisURL2() {
getURL ("http://armorgames.com", "_BLANK");
}
function createContextMenu(menu) {
_root.menu = menu;
}
function bulletMovement() {
shotDelay = shotDelay - 1;
if (((hasGun && (onLevel == 3)) && (shotDelay <= 0)) && (mDown)) {
gunshot.start();
shotDelay = 5;
bullet = floor.outSpike.attachMovie("bullet", "bullet" + depth, depth++);
bullet._x = char._x - floor._x;
bullet._y = char._y;
bullets.push(bullet);
theAng = Math.atan2(_ymouse - char._y, _xmouse - char._x);
bullet.xSpeed = Math.cos(theAng) * 15;
bullet.ySpeed = Math.sin(theAng) * 15;
bullet._x = bullet._x + (bullet.xSpeed * 2);
bullet._y = bullet._y + (bullet.ySpeed * 2);
}
if (((hasGun && (onLevel == 3)) && (shotDelay <= 0)) && (Key.isDown(32))) {
gunshot.start();
mControl = false;
shotDelay = 5;
bullet = floor.outSpike.attachMovie("bullet", "bullet" + depth, depth++);
bullet._x = char._x - floor._x;
bullet._y = char._y;
bullets.push(bullet);
bullet.xSpeed = 15;
bullet.ySpeed = 0;
bullet._x = bullet._x + (bullet.xSpeed * 2);
bullet._y = bullet._y + (bullet.ySpeed * 2);
}
b = bullets.length - 1;
while (b >= 0) {
bullet = bullets[b];
bullet._x = bullet._x + bullet.xSpeed;
bullet._y = bullet._y + bullet.ySpeed;
if (bullet.hitTest(floor.ground.wall1) && (floor.ground.wall1._x != undefined)) {
removeBullet();
frameHolder = floor.ground.wall1._currentframe + 1;
if (frameHolder != 7) {
if (frameHolder == 6) {
floor.light1._y = 300;
}
floor.ground.wall1.gotoAndStop(frameHolder);
}
}
if ((onLevel == 4) && (bullet._x != undefined)) {
removeBullet();
}
if (((floor.ground.hitTest(bullet._x, bullet._y, true) || (bullet._x >= Stage.width)) || (bullet._x <= 0)) || (bullet._y <= 0)) {
if (bullet._x != undefined) {
}
}
b--;
}
}
function removeBullet() {
bullet.removeMovieClip();
bullets.splice(b, 1);
}
function characterMovement() {
stepTime = stepTime - 1;
if (char.hitTest(floor.treasure)) {
gotoAndStop (6);
song.stop();
char.removeMovieClip();
floor.removeMovieClip();
flasher.removeMovieClip();
boss.removeMovieClip();
theFlash.removeMovieClip();
n = newChars.length - 1;
while (n >= 0) {
newChars[n].removeMovieClip();
newChars.splice(n, 1);
n--;
}
s = smokes.length - 1;
while (s >= 0) {
smokes[s].removeMovieClip();
smokes.splice(s, 1);
s--;
}
d = deathSpikes.length - 1;
while (d >= 0) {
deathSpikes[d].removeMovieClip();
deathSpikes.splice(d, 1);
d--;
}
b = bossSpikes.length - 1;
while (b >= 0) {
bossSpikes[b].removeMovieClip();
bossSpikes.splice(b, 1);
b--;
}
}
preOn = onLevel;
onLevel = Math.floor((-(floor._x - 350)) / 700) + 1;
if ((char._y >= Stage.height) || (floor._y < -1)) {
onLevel = 13 - (Math.floor((-(floor._x - 350)) / 700) + 1);
}
if (((char._y >= Stage.height) && (onLevel >= 8)) || (floor._y < -401)) {
onLevel = (12 + Math.floor((-(floor._x - 350)) / 700)) + 1;
}
if (((char._y >= Stage.height) && (onLevel >= 15)) || (floor._y < -801)) {
onLevel = 25 - (Math.floor((-(floor._x - 350)) / 700) + 1);
}
toOnLevel = Math.floor((-(floor._x - 0)) / 700) + 1;
if ((char._y >= Stage.height) || (floor._y < -1)) {
toOnLevel = 13 - (Math.floor((-(floor._x - 700)) / 700) + 1);
}
if (((char._y >= Stage.height) && (toOnLevel >= 8)) || (floor._y < -401)) {
toOnLevel = (12 + Math.floor((-(floor._x - 0)) / 700)) + 1;
}
if (((char._y >= Stage.height) && (toOnLevel >= 15)) || (floor._y < -801)) {
toOnLevel = 25 - (Math.floor((-(floor._x - 700)) / 700) + 1);
}
k = theFrames.length - 1;
while (k >= 0) {
if (toOnLevel >= theFrames[k]) {
floor.ground.gotoAndStop(k + 1);
floor.bgs.gotoAndStop(k + 1);
k = -1;
}
k--;
}
if (wallRemoved) {
if (floor.ground.wall4._x != undefined) {
floor.ground.wall4.swapDepths(777777);
floor.ground.wall4.removeMovieClip();
floor.gb.gotoAndStop(2);
}
}
floor.ground.wall3.gotoAndStop(storeFrame);
if (storeFrame2 >= 2) {
if (storeFrame2 < 20) {
floor.ground.wall8.gotoAndPlay(storeFrame2);
storeFrame2 = floor.ground.wall8._currentframe;
} else {
floor.ground.wall.gotoAndStop(20);
}
}
if (preOn != onLevel) {
if (onLevel == 21) {
floor.darkness.gotoAndPlay(1);
}
if ((onLevel == 23) && (boss._currentframe != 4)) {
onBoss = true;
boss._x = Stage.width / 2;
boss._y = 322;
bossMoveY = (bossTargetY - boss._y) / moveDuration;
}
}
if (floor.ts.hitTest(char)) {
die();
}
if (((floor.darkness.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.darkness.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) || (floor.darkness.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true))) || (floor.darkness.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
char._y = 328.5;
theFlash.gotoAndPlay(2);
death.start();
floor._x = -2437;
xSpeed = 0;
ySpeed = 0;
floor.darkness.gotoAndPlay(1);
}
if (onLevel == 20) {
if (cMenu == 2) {
createContextMenu(contextMenus[0]);
cMenu = 1;
}
} else if (cMenu == 1) {
cMenu = 2;
createContextMenu(contextMenus[1]);
}
if (onLevel > topLevel) {
topLevel = onLevel;
if (topLevel == 6) {
floor.si._alpha = 100;
}
}
if (onLevel == 13) {
if (((char._y >= 100) && (floor._y <= -795)) && (floor.ser._currentframe == 1)) {
floor.ser.gotoAndPlay(2);
}
if (floor.ser.s1.s1.hitTest(char)) {
floor._x = 0;
char._x = 50;
char._y = 50;
theFlash.gotoAndPlay(2);
death.start();
floor.ser.gotoAndStop(1);
}
}
if (onLevel == 14) {
if (char.hitTest(floor.ground) && (char._y <= 250)) {
char._alpha = 20;
}
if (char.hitTest(floor.ghostSpikes)) {
die();
char._alpha = 100;
xSpeed = 0;
ySpeed = 0;
}
char._alpha = char._alpha - 5;
if (char._alpha <= 0) {
char._alpha = 0;
}
} else if (char._alpha <= 100) {
char._alpha = char._alpha + 5;
}
if (onLevel == 15) {
floor.ground.o1._alpha = floor.ground.o1._alpha - 10;
floor.ground.o2._alpha = floor.ground.o2._alpha - 10;
floor.ground.o3._alpha = floor.ground.o3._alpha - 10;
if (floor.ground.o1._alpha <= 0) {
floor.ground.o1._alpha = 0;
}
if (floor.ground.o2._alpha <= 0) {
floor.ground.o2._alpha = 0;
}
if (floor.ground.o3._alpha <= 0) {
floor.ground.o3._alpha = 0;
}
}
if (onLevel == 17) {
if (Key.isDown(17)) {
if (!pressedSpace) {
spaceTimes = spaceTimes + 1;
if (spaceTimes >= 6) {
spaceTimes = 6;
}
floor.ground.toUp2.gotoAndStop(spaceTimes);
}
pressedSpace = true;
} else {
pressedSpace = false;
}
}
if (((onLevel == 5) && (char.hitTest(floor.si))) && (topLevel == 6)) {
grab.start();
floor.si.swapDepths(777777);
floor.si.removeMovieClip();
doorOpened = attachMovie("do", "do" + depth, depth++);
doorOpened._x = char._x;
doorOpened._y = char._y - 50;
wallRemoved = true;
floor.gb.gotoAndStop(2);
floor.ground.wall4.swapDepths(777777);
floor.ground.wall4.removeMovieClip();
}
if (itemHeld != null) {
if (itemHeld.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true) || (itemHeld.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true))) {
while (itemHeld.hitTest(char)) {
itemHeld._y = itemHeld._y - 1;
}
itemHeld = null;
} else {
itemHeld._x = (_xmouse - floor._x) - floor.ground._x;
itemHeld._y = (_ymouse - floor._y) - floor.ground._y;
}
if (itemHeld._y <= 30) {
itemHeld._y = 30;
}
if (onLevel != 12) {
itemHeld = null;
delete floor.ground.tm1.onPress;
delete floor.ground.tm1.onRelease;
delete floor.ground.tm1.onReleaseOutside;
delete floor.ground.tm2.onPress;
delete floor.ground.tm2.onRelease;
delete floor.ground.tm2.onReleaseOutside;
madeButtons = false;
}
}
if ((onLevel == 12) && (!madeButtons)) {
madeButtons = true;
floor.ground.tm1.onPress = function () {
itemHeld = floor.ground.tm1;
};
floor.ground.tm1.onRelease = function () {
itemHeld = null;
};
floor.ground.tm1.onReleaseOutside = function () {
itemHeld = null;
};
floor.ground.tm2.onPress = function () {
itemHeld = floor.ground.tm2;
};
floor.ground.tm2.onRelease = function () {
itemHeld = null;
};
floor.ground.tm2.onReleaseOutside = function () {
itemHeld = null;
};
}
if ((onLevel == 7) || (onLevel == 8)) {
if (Key.isDown(40) || (Key.isDown(83))) {
d = dirts.length - 1;
while (d >= 0) {
if (dirts[d].hitTest(char._x, (char._y + (char._height / 2)) + 5, true)) {
dirts[d].swapDepths(999333);
dirts[d].removeMovieClip();
}
if (dirts[d]._x != undefined) {
if (dirts[d].hitTest((char._x + (char._width / 2)) + 2, char._y, true) || (dirts[d].hitTest((char._x - (char._width / 2)) - 2, char._y, true))) {
dirts[d].swapDepths(999333);
dirts[d].removeMovieClip();
}
}
d--;
}
}
}
if (onLevel == 3) {
floor.gun._alpha = 100;
if (char.hitTest(floor.gun) && (!hasGun)) {
grab.start();
hasGun = true;
mControl = false;
ga = attachMovie("ga", "ga", 600000);
ga._x = Stage.width / 2;
ga._y = Stage.height / 2;
}
if (hasGun) {
floor.gun._x = char._x - floor._x;
floor.gun._y = char._y - floor._y;
if (mControl) {
floor.gun._rotation = (Math.atan2(_ymouse - char._y, _xmouse - char._x) * 180) / Math.PI;
} else {
floor.gun._rotation = 0;
}
}
} else {
floor.gun._alpha = 0;
}
if (onLevel == 7) {
floor.gun.swapDepths(555);
floor.gun.removeMovieClip();
}
timeStill = timeStill + 1;
if (Key.isDown(39) || (Key.isDown(68))) {
xSpeed = xSpeed + speed;
timeStill = 0;
if ((stepTime <= 0) && (!firstJump)) {
stepTime = stepTimeConst;
step.start();
}
}
if (Key.isDown(37) || (Key.isDown(65))) {
xSpeed = xSpeed - speed;
timeStill = 0;
if ((stepTime <= 0) && (!firstJump)) {
stepTime = stepTimeConst;
step.start();
}
}
if (Key.isDown(38) || (Key.isDown(87))) {
timeStill = 0;
if (!justPressed) {
if (!firstJump) {
ySpeed = -15;
jump.start();
if (onLevel != 14) {
jd = attachMovie("jumpDust", "jumpDust" + depth, depth++);
jd._x = char._x;
jd._y = char._y + 10;
smokes.push(jd);
}
char.gotoAndStop(3);
if (onLevel == 2) {
ySpeed = 15;
}
firstJump = true;
upLeft = 15;
} else if (!secondJump) {
ySpeed = -15;
jump.start();
if (onLevel != 14) {
jd = attachMovie("jumpDust", "jumpDust" + depth, depth++);
jd._x = char._x;
jd._y = char._y + 10;
smokes.push(jd);
}
char.gotoAndStop(3);
char.ina.gotoAndPlay(1);
if (onLevel == 2) {
ySpeed = 15;
}
secondJump = true;
}
justPressed = true;
} else {
upLeft = upLeft - 3;
if (upLeft > 0) {
ySpeed = ySpeed - 2;
if (onLevel == 2) {
ySpeed = ySpeed + 4;
}
}
}
} else {
justPressed = false;
}
if (onLevel == 18) {
if (timeStill >= 120) {
floor.ground.wall7.swapDepths(999321);
floor.ground.wall7.removeMovieClip();
}
}
ySpeed = ySpeed + gravity;
if (onLevel == 2) {
char._yscale = -100;
ySpeed = ySpeed - (gravity * 2);
} else {
char._yscale = 100;
}
ySpeed = ySpeed * airFriction;
xSpeed = xSpeed * friction;
if ((xSpeed <= 0.1) && (xSpeed >= -0.1)) {
xSpeed = 0;
}
if (xSpeed < -1.5) {
char._xscale = -100;
} else if (xSpeed > 1.5) {
char._xscale = 100;
}
if ((floor.ground.hitTest(char._x + (char._width / 2), (char._y + (char._height / 2)) + 1, true) || (floor.ground.hitTest(char._x - (char._width / 2), (char._y + (char._height / 2)) + 1, true))) || (floor.ground.hitTest(char._x, (char._y - (char._height / 2)) - 1, true))) {
if (xSpeed < -1.5) {
char.gotoAndStop(2);
} else if (xSpeed > 1.5) {
char.gotoAndStop(2);
} else {
char.gotoAndStop(1);
}
} else {
char.gotoAndStop(3);
}
if (onLevel != 2) {
if (floor.ground.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.ground.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) {
} else {
firstJump = true;
}
}
if (onLevel == 2) {
if (floor.ground.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true) || (floor.ground.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
} else {
firstJump = true;
}
}
if (onLevel == 10) {
if (((floor.death.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.death.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) || (floor.death.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true))) || (floor.death.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
if (floor.death._alpha <= 0) {
floor.death._alpha = 100;
}
xSpeed = 0;
ySpeed = 0;
}
}
halfMove();
halfMove();
halfMove();
halfMove();
preFloorX = floor._x;
toMoveX = char._x - (Stage.width / 2);
floor._x = floor._x - toMoveX;
char._x = Stage.width / 2;
if (onBoss && (bossAttack != -1)) {
char._x = char._x - (floor._x + 687);
floor._x = -687;
}
smokeDelay = smokeDelay - 1;
if (floor._x >= 0) {
char._x = char._x - floor._x;
floor._x = 0;
}
if (floor._x <= -3500) {
char._x = char._x - (floor._x + 3500);
floor._x = -3500;
}
k = nls.length - 1;
while (k >= 0) {
nl = nls[k];
if (char.hitTest(nl)) {
nl._alpha = nl._alpha - 10;
if (nl._alpha <= 0) {
nl._alpha = 0;
}
} else {
nl._alpha = nl._alpha + 10;
if (nl._alpha >= 100) {
nl._alpha = 100;
}
}
k--;
}
if ((onLevel == 4) || (onLevel == 5)) {
if (char.hitTest(floor.fw)) {
floor.fw._alpha = 50;
} else {
floor.fw._alpha = 100;
}
}
if (floor.death._alpha > 0) {
floor.death._alpha = floor.death._alpha - 10;
if (floor.death._alpha <= 0) {
die();
}
}
if ((onLevel == 7) || (onLevel == 12)) {
char._y = char._y + ((-400 - floor._y) / 4);
floor._y = floor._y + ((-400 - floor._y) / 4);
}
if (onLevel == 13) {
char._y = char._y + ((-800 - floor._y) / 4);
floor._y = floor._y + ((-800 - floor._y) / 4);
}
if ((((onLevel == 19) || (onLevel == 21)) || (onLevel == 20)) || (onLevel == 22)) {
char._y = char._y + ((-1200 - floor._y) / 4);
floor._y = floor._y + ((-1200 - floor._y) / 4);
}
if (((char._currentframe == 2) && (smokeDelay <= 0)) && (floor.ground.hitTest(char._x, char._y + 15, true) || (floor.ground.hitTest(char._x, char._y - 15, true)))) {
if (onLevel != 14) {
smokeDelay = smokeDelayConst;
smoke = attachMovie("smokes", "smokes" + depth, depth++);
smoke._x = char._x;
smoke._y = char._y;
smoke._yscale = char._yscale;
smoke._xscale = char._xscale;
smokes.push(smoke);
}
}
s = smokes.length - 1;
while (s >= 0) {
if (Math.abs(toMoveX) < 10) {
smokes[s]._x = smokes[s]._x - (preFloorX - floor._x);
}
s--;
}
n = newChars.length - 1;
while (n >= 0) {
newChars[n]._x = newChars[n]._x - (preFloorX - floor._x);
if (newChars[n]._x == undefined) {
newChars.splice(n, 1);
}
n--;
}
if (bossAttack == -1) {
boss._x = boss._x - (preFloorX - floor._x);
}
}
function smokeMovement() {
s = smokes.length - 1;
while (s >= 0) {
if (smokes[s]._x == undefined) {
smokes[s].removeMovieClip();
smokes.splice(s, 1);
}
s--;
}
}
function deathSpikeManagement() {
if (((onLevel == 7) || (onLevel == 8)) || (onLevel == 9)) {
deathSpikeDelay = deathSpikeDelay - 1;
if ((deathSpikeDelay <= 0) && (floor._x <= -2537)) {
deathSpikeDelay = 80;
createDeathSpike();
}
}
}
function createDeathSpike() {
ds = floor.outSpike.attachMovie("deathSpike", "deathSpike" + depth, depth++);
ds._x = 2796;
ds._y = 662;
deathSpikes.push(ds);
}
function deathSpikeMovement() {
d = deathSpikes.length - 1;
while (d >= 0) {
deathSpikes[d]._x = deathSpikes[d]._x + 7;
if (deathSpikes[d]._x >= 3488) {
removeDeathSpike();
}
if (deathSpikes[d]._x != undefined) {
if (deathSpikes[d].s1.hitTest(char)) {
floor._x = -3137;
char._y = Stage.height - 40;
theFlash.gotoAndPlay(2);
death.start();
removeDeathSpike();
}
}
d--;
}
}
function removeDeathSpike() {
deathSpikes[d].removeMovieClip();
deathSpikes.splice(d, 1);
}
function createButton(button, num) {
if (button.hitTest(char)) {
if (lastHit != num) {
lastHit = num;
if (num == order[onNum]) {
onNum = onNum + 1;
button.gotoAndPlay(2);
clank.start();
} else if (num == order[onNum - 1]) {
} else {
onNum = 0;
bad.start();
}
floor.ground.toUp1.gotoAndStop(onNum + 1);
}
}
}
function halfMove() {
char._x = char._x + (xSpeed / 4);
char._y = char._y + (ySpeed / 4);
if (onLevel == 22) {
totalMove = totalMove + Math.abs(xSpeed / 4);
totalMove = totalMove + Math.abs(ySpeed / 4);
if ((totalMove >= 2000) && (floor.light9._currentframe == 1)) {
floor.light9.gotoAndPlay(2);
floor.ground.wall9.gotoAndPlay(2);
}
}
if (onLevel == 16) {
n = buttonsToHit.length - 1;
while (n >= 0) {
createButton(buttonsToHit[n], n + 1);
n--;
}
}
if (onLevel == 15) {
if (((floor.ground.o1.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.ground.o1.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) || (floor.ground.o1.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true))) || (floor.ground.o1.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
floor.ground.o1._alpha = 100;
}
if (((floor.ground.o2.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.ground.o2.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) || (floor.ground.o2.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true))) || (floor.ground.o2.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
floor.ground.o2._alpha = 100;
}
if (((floor.ground.o3.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.ground.o3.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) || (floor.ground.o3.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true))) || (floor.ground.o3.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
floor.ground.o3._alpha = 100;
}
}
if (floor.ground.bf.hitTest(char._x, (char._y + (char._height / 2)) + 5, true)) {
die();
xSpeed = 0;
ySpeed = 0;
}
while (floor.ground.hitTest(char._x + (char._width / 2), char._y, true)) {
char._x = char._x - 1;
xSpeed = 0;
}
while (floor.ground.hitTest(char._x - (char._width / 2), char._y, true)) {
char._x = char._x + 1;
xSpeed = 0;
}
if (onLevel != 2) {
if ((floor.ground.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.ground.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) && (ySpeed >= 0)) {
if (onLevel == 5) {
if (ySpeed >= 3) {
lShake = 0;
if (floor.light3._y <= 200) {
floor.ground.wall3.gotoAndStop(floor.ground.wall3._currentframe + 1);
storeFrame = floor.ground.wall3._currentframe;
floor.light3._y = floor.light3._y + 20;
}
}
}
ySpeed = 0;
firstJump = false;
secondJump = false;
}
}
while ((floor.ground.hitTest(char._x + (char._width / 2), char._y + (char._height / 2), true) || (floor.ground.hitTest(char._x - (char._width / 2), char._y + (char._height / 2), true))) && (ySpeed >= 0)) {
char._y = char._y - 0.05;
ySpeed = 0;
}
if (onLevel == 2) {
if ((floor.ground.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true) || (floor.ground.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) && (ySpeed <= 0)) {
ySpeed = 0;
firstJump = false;
secondJump = false;
}
}
while (floor.ground.hitTest(char._x + (char._width / 2), char._y - (char._height / 2), true) || (floor.ground.hitTest(char._x - (char._width / 2), char._y - (char._height / 2), true))) {
char._y = char._y + 0.1;
if (((onLevel == 11) && (floor._x >= -800)) && (char._y < 30)) {
floor._x = -335;
char._y = 88.5;
}
ySpeed = 0;
}
if ((char._x + 20) >= Stage.width) {
char._x = Stage.width - 20;
xSpeed = 0;
}
if (char._y <= (char._height / 2)) {
char._y = char._height / 2;
ySpeed = 0;
}
if ((char._x - 20) <= 0) {
char._x = 20;
xSpeed = 0;
}
}
function shaker() {
if (lShake == 0) {
hit.start();
_root._x = _root._x + 3;
_root._y = _root._y + 1;
lShake = lShake + 1;
} else if (lShake == 1) {
_root._x = _root._x - 2;
_root._y = _root._y - 2;
lShake = lShake + 1;
} else if (lShake == 2) {
_root._x = _root._x - 2;
_root._y = _root._y - 1;
lShake = lShake + 1;
} else if (lShake == 3) {
_root._x = _root._x + 1;
_root._y = _root._y + 2;
lShake = -1;
}
}
function onEnterFrame() {
if (gameStarted) {
framesIn = framesIn + 1;
if (framesIn > 107999) {
framesIn = framesIn - 1;
}
if (Math.floor(framesIn / 1800) > 0) {
theTimer.timeTxt.htmlText = ((("<b>" + (Math.floor(framesIn / 1800) % 60)) + ":") + (Math.floor(framesIn / 30) % 60)) + "</b>";
if ((Math.floor(framesIn / 30) % 60) < 10) {
theTimer.timeTxt.htmlText = ((("<b>" + (Math.floor(framesIn / 1800) % 60)) + ":0") + (Math.floor(framesIn / 30) % 60)) + "</b>";
}
} else {
theTimer.timeTxt.htmlText = ("<b>0:" + (Math.floor(framesIn / 30) % 60)) + "</b>";
if ((Math.floor(framesIn / 30) % 60) < 10) {
theTimer.timeTxt.htmlText = ("<b>0:0" + (Math.floor(framesIn / 30) % 60)) + "</b>";
}
}
characterMovement();
smokeMovement();
bulletMovement();
deathSpikeManagement();
deathSpikeMovement();
bossMovement();
spikeMovement();
shaker();
} else {
gameCountdown = gameCountdown - 1;
if (gameCountdown <= 0) {
gameStarted = true;
}
}
}
function bossMovement() {
if (onBoss) {
if (bossAttack == 0) {
bossAttack0Duration = bossAttack0Duration - 1;
if (bossAttack0Duration <= moveDuration) {
if (boss._currentframe == 1) {
boss.gotoAndStop(2);
}
boss._y = boss._y + bossMoveY;
}
if (bossAttack0Duration <= 0) {
bossAttack0Duration = bossAttack0DurationConst;
bossAttack = 1;
}
}
if (bossAttack == 1) {
if (target == -1) {
target = stageLeft + (random(attacks) * 25);
}
if ((target - boss._x) >= 0) {
}
targetDelay = targetDelay - 1;
if (targetDelay <= 0) {
shootSpike();
target = -1;
targetDelay = targetDelayConst;
}
bossAttack1Duration = bossAttack1Duration - 1;
if (bossAttack1Duration <= 0) {
bossAttack1Duration = bossAttack1DurationConst;
bossAttack = 2;
}
}
if (bossAttack == 2) {
bossAttack = 3;
}
if (bossAttack == 3) {
changeSides = changeSides - 1;
if (changeSides <= 0) {
changeSides = changeSidesConst;
switches = switches - 1;
if (switches <= 0) {
bossAttack = 4;
switches = switchesConst;
} else if (toSide == 1) {
toSide = 2;
boss._xscale = 100;
} else {
toSide = 1;
boss._xscale = -100;
}
}
if (toSide == 1) {
boss._x = boss._x + ((xBLeft - boss._x) / changeSides);
boss._y = boss._y + ((yBLeft - boss._y) / changeSides);
} else {
boss._x = boss._x + ((xBRight - boss._x) / changeSides);
boss._y = boss._y + ((yBRight - boss._y) / changeSides);
}
if (boss.hitTest(char)) {
char._y = char._y - 20;
if (toSide == 2) {
xSpeed = 5;
}
if (toSide == 1) {
xSpeed = -5;
}
ySpeed = -10;
die();
updateStats();
}
}
if (bossAttack == 4) {
if ((boss._x - 5) > (Stage.width / 2)) {
boss._x = boss._x - 10;
boss._xscale = -100;
} else if ((boss._x + 5) < (Stage.width / 2)) {
boss._x = boss._x + 10;
boss._xscale = 100;
} else if (boss._currentframe != 1) {
boss.gotoAndStop(1);
}
if (char.hitTest(boss) && (char._y <= 323)) {
boss.gotoAndStop(3);
bossLives = bossLives - 1;
if (bossLives <= 0) {
boss.gotoAndStop(4);
explode.start();
bossAttack = -1;
floor.light10.gotoAndPlay(2);
floor.ground.wall11.gotoAndPlay(2);
finalWait = 10;
} else {
finalWait = 0;
}
ySpeed = -10;
}
finalWait = finalWait - 1;
if (finalWait <= 0) {
finalWait = finalWaitConst;
bossAttack = 0;
}
}
if (bossAttack == -1) {
floor.ground.wall11.gotoAndStop(20);
}
}
}
function shootSpike() {
spike = attachMovie("spike", "spike" + depth, depth++);
spike._x = target;
spike._y = -50;
spike.Speed = 2;
bossSpikes.push(spike);
}
function spikeMovement() {
s = bossSpikes.length - 1;
while (s >= 0) {
bossSpike = bossSpikes[s];
bossSpike._y = bossSpike._y + bossSpike.Speed;
bossSpike.Speed = bossSpike.Speed + 0.2;
if (bossSpike._y >= (Stage.height + (bossSpike._height / 2))) {
removeBossSpike();
}
if (bossSpike._x != undefined) {
if (bossSpike.hitTest(char)) {
char._y = char._y - 20;
if (toSide == 2) {
xSpeed = 5;
}
if (toSide == 1) {
xSpeed = -5;
}
ySpeed = -10;
die();
updateStats();
}
}
s--;
}
}
function removeBossSpike() {
bossSpike.removeMovieClip();
bossSpikes.splice(s, 1);
}
function updateStats() {
if (tempLives == 3) {
h1._alpha = 100;
h2._alpha = 100;
h3._alpha = 100;
}
if (tempLives == 2) {
h1._alpha = 100;
h2._alpha = 100;
h3._alpha = 0;
}
if (tempLives == 1) {
h1._alpha = 100;
h2._alpha = 0;
h3._alpha = 0;
}
if (tempLives == 0) {
h1._alpha = 0;
h2._alpha = 0;
h3._alpha = 0;
}
}
function checkStats() {
if (tempLives <= 0) {
tempLives = tempLivesConst;
die();
}
}
function die() {
death.start();
char.gotoAndStop(4);
theFlash.gotoAndPlay(2);
calculateSpawn();
if (onBoss) {
char._x = char._x - 10;
char._y = 350;
s = bossSpikes.length - 1;
while (s >= 0) {
bossSpikes[s].removeMovieClip();
bossSpikes.splice(s, 1);
s--;
}
onBoss = true;
boss._x = Stage.width / 2;
boss._y = 322;
bossMoveY = (bossTargetY - boss._y) / moveDuration;
bossAttack0Duration = bossAttack0DurationConst;
bossAttack1Duration = bossAttack1DurationConst;
bossAttack2Duration = bossAttack2DurationConst;
bossAttack3Duration = bossAttack3DurationConst;
bossAttack4Duration = bossAttack4DurationConst;
boss.gotoAndStop(1);
boss._xscale = 100;
bossAttack = 0;
switches = switchesConst;
}
}
function calculateSpawn() {
char._y = 88.5;
preFX = floor._x;
floor._x = (-700 * (onLevel - 1)) + 350;
if (floor._y < -1) {
floor._x = (-700 * (6 - (onLevel - 7))) + 360;
}
if (floor._y < -401) {
floor._x = (-700 * (onLevel - 13)) + 350;
}
if (floor._y < -801) {
floor._x = (-700 * (6 - (onLevel - 22))) + 350;
}
}
xSpeed = 0;
ySpeed = 0;
speed = 2;
gravity = 1.5;
friction = 0.75;
airFriction = 0.95;
firstJump = false;
secondJump = false;
upLeft = 15;
onLevel = 0;
floor._x = 0;
topLevel = 1;
floor.si._alpha = 0;
_quality = "MEDIUM";
char._x = 350;
char._y = 252;
song2.stop();
song = new Sound(this);
song.attachSound("song.mp3");
song.start(0, 100000);
if (muted2) {
song.setVolume(0);
}
var jump = new Sound();
jump.attachSound("jump.wav");
var step = new Sound();
step.attachSound("step.wav");
var gunshot = new Sound();
gunshot.attachSound("gunshot.wav");
var death = new Sound();
death.attachSound("death.wav");
var hit = new Sound();
hit.attachSound("hit.wav");
var grab = new Sound();
grab.attachSound("grab.wav");
var dig = new Sound();
dig.attachSound("dig.wav");
var clank = new Sound();
clank.attachSound("clank.wav");
var bad = new Sound();
bad.attachSound("bad.wav");
var explode = new Sound();
explode.attachSound("explode.wav");
floor.swapDepths(1000);
char.swapDepths(1100);
flasher.swapDepths(12000);
boss.swapDepths(13500);
hasGun = false;
depth = 5000;
bullets = new Array();
shotDelay = 0;
mDown = false;
theFlash._x = Stage.width / 2;
theFlash._y = Stage.height / 2;
theFlash.swapDepths(854303);
theTimer.mbtn.onRelease = function () {
if (muted2) {
theTimer.mbtn.gotoAndStop(1);
muted2 = !muted2;
song.setVolume(100);
} else {
theTimer.mbtn.gotoAndStop(2);
muted2 = !muted2;
song.setVolume(0);
}
};
theTimer.mbtn._alpha = 50;
theTimer.mbtn.onRollOver = function () {
theTimer.mbtn._alpha = 100;
};
theTimer.mbtn.onRollOut = function () {
theTimer.mbtn._alpha = 50;
};
theTimer.wbtn._alpha = 50;
theTimer.wbtn.onRollOver = function () {
theTimer.wbtn._alpha = 100;
};
theTimer.wbtn.onRollOut = function () {
theTimer.wbtn._alpha = 50;
};
theTimer.wbtn.onRelease = function () {
getURL ("http://armorgames.com/guide/saving-the-company-video-guide", "_BLANK");
};
onMouseDown = function () {
mDown = true;
};
onMouseUp = function () {
mDown = false;
};
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var menuItem = new ContextMenuItem("Secret Button", secretButton);
var copyright = new ContextMenuItem("More Games", goToThisURL);
myMenu.customItems.push(menuItem);
myMenu.customItems.push(copyright);
var yourMenu = new ContextMenu();
yourMenu.hideBuiltInItems();
var copyright2 = new ContextMenuItem("More Games", goToThisURL2);
yourMenu.customItems.push(copyright2);
contextMenus = new Array(myMenu, yourMenu);
createContextMenu(contextMenus[1]);
cMenu = 2;
onMouseMove = function () {
mControl = true;
};
itemHeld = null;
floor.ground.o1._alpha = 0;
floor.ground.o2._alpha = 0;
floor.ground.o3._alpha = 0;
pressedSpace = false;
spaceTimes = 1;
timeStill = 0;
smokeDelayConst = 3;
smokeDelay = 0;
theFrames = new Array(1, 3, 6, 9, 12, 15, 18, 21);
toOnLevel = 0;
wallRemoved = false;
madeButtons = false;
stepTimeConst = 7;
stepTime = 0;
newChars = new Array();
smokes = new Array();
deathSpikes = new Array();
deathSpikeDelay = 0;
nls = new Array(floor.nl0, floor.nl1, floor.nl2, floor.nl3, floor.nl4, floor.nl5, floor.nl6, floor.nl7, floor.nl8, floor.nl9, floor.nl10, floor.nl11, floor.nl12, floor.nl13, floor.nl14, floor.nl15, floor.nl16, floor.nl17, floor.nl18, floor.nl19, floor.nl20, floor.nl21, floor.nl22, floor.nl23, floor.nl24, floor.nl25, floor.nl26, floor.nl27, floor.nl28, floor.nl29, floor.nl30);
floor.death._alpha = 0;
lastHit = 0;
buttonsToHit = new Array(floor.ground.b1, floor.ground.b2, floor.ground.b3, floor.ground.b4, floor.ground.b5);
order = new Array(3, 1, 4, 2, 5);
onNum = 0;
totalMove = 0;
storeFrame = 1;
storeFrame2 = 1;
lShake = -1;
dirts = new Array(floor.ground.d1, floor.ground.d2, floor.ground.d3, floor.ground.d4, floor.ground.d5, floor.ground.d6, floor.ground.d7, floor.ground.d8, floor.ground.d9, floor.ground.d10, floor.ground.d11, floor.ground.d12, floor.ground.d13, floor.ground.d14, floor.ground.d15, floor.ground.d16);
gameStarted = false;
gameCountdown = 15;
floor.nl0._alpha = 0;
theTimer.swapDepths(666000);
framesIn = 0;
stageRight = 700;
stageLeft = 0;
bossAttack = 0;
attacks = (stageRight - stageLeft) / 25;
target = -1;
targetDelayConst = 10;
targetDelay = 10;
bossAttack0DurationConst = 100;
bossAttack0Duration = 100;
bossAttack1DurationConst = 200;
bossAttack1Duration = 200;
onBoss = false;
bossTargetY = 100;
moveDuration = 50;
bossMoveY = (bossTargetY - boss._y) / moveDuration;
storeFrame11 = 1;
storeFrame12 = 1;
floor.ground.wall11.gotoAndPlay(2);
bossLives = 1;
yBLeft = 322;
yBRight = 322;
xBLeft = 50;
xBRight = 650;
changeSidesConst = 45;
changeSides = 45;
toSide = 1;
switchesConst = 6;
switches = 6;
finalWaitConst = 900000 /* 0x0DBBA0 */;
finalWait = 900000 /* 0x0DBBA0 */;
tempLivesConst = 3;
tempLives = 3;
bossSpikes = new Array();
startDepth = 1101;
Frame 6
delete onEnterFrame;
newBest = framesIn;
_quality = "HIGH";
theTimer.removeMovieClip();
char.swapDepths(555433);
char.removeMovieClip();
if (newBest < personalBest) {
personalBest = newBest;
sObject.data.personalBest = personalBest;
sObject.flush();
}
song.stop();
song3 = new Sound(this);
song3.attachSound("song3.mp3");
song3.start(0, 100000);
intro2.skipper2.onRollOver = function () {
intro2.skipper2._alpha = 50;
};
intro2.skipper2.onRollOut = function () {
intro2.skipper2._alpha = 100;
};
intro2.skipper2.onRelease = function () {
gotoAndStop (3);
};
if (muted2) {
song3.setVolume(0);
}
Frame 7
bBtn.onRollOver = function () {
bBtn._alpha = 50;
};
bBtn.onRollOut = function () {
bBtn._alpha = 100;
};
bBtn.onRelease = function () {
gotoAndStop (3);
};
Symbol 414 MovieClip [__Packages.Playtomic.LogRequest] Frame 0
class Playtomic.LogRequest
{
var Pieces;
function LogRequest () {
}
function Queue(data) {
Pieces++;
Data = Data + (((Data == "") ? "" : "~") + data);
if ((Pieces == 8) || (Data.length > 300)) {
Pieces = 0;
Ready = true;
}
}
function Send() {
var _local3 = function (success) {
if ((this.Data.indexOf("v/") == 0) || (this.Data.indexOf("~v/") > -1)) {
Playtomic.Log.IncreaseViews();
}
if ((this.Data.indexOf("p/") == 0) || (this.Data.indexOf("~p/") > -1)) {
Playtomic.Log.IncreasePlays();
}
};
var _local2 = new LoadVars();
_local2.sendAndLoad(((((((((("http://g" + Playtomic.Log.GUID) + ".api.playtomic.com/Tracker/q.aspx?swfid=") + Playtomic.Log.SWFID) + "&q=") + Data) + "&url=") + Playtomic.Log.SourceUrl) + "&") + Math.random()) + "z", _local3, "POST");
}
var Data = "";
var Ready = false;
}
Symbol 415 MovieClip [__Packages.Playtomic.Log] Frame 0
class Playtomic.Log
{
static var SourceUrl, Cookie;
function Log () {
}
static function View(swfid, guid, defaulturl) {
if (swfid == undefined) {
swfid = 0;
}
if (guid == undefined) {
guid = "";
}
if (defaulturl == undefined) {
defaulturl = "";
}
if (SWFID > 0) {
return(undefined);
}
SWFID = swfid;
GUID = guid;
Enabled = true;
if ((SWFID == 0) || (GUID == "")) {
Enabled = false;
return(undefined);
}
if (defaulturl.indexOf("http://") != 0) {
Enabled = false;
return(undefined);
}
SourceUrl = defaulturl;
if (((SourceUrl == null) || (SourceUrl == "")) || (SourceUrl.indexOf("https://") == 0)) {
Enabled = false;
return(undefined);
}
Cookie = SharedObject.getLocal("playtomic");
var _local5 = GetCookie("views");
Send("v/" + _local5, true);
_global.setTimeout(PingServer, 60000);
}
static function ForceSend() {
if (Request == null) {
return(undefined);
}
Request.Send();
Request = new Playtomic.LogRequest();
}
static function Play() {
if (!Enabled) {
return(undefined);
}
LevelCounters = new Array();
LevelAverages = new Array();
LevelRangeds = new Array();
Send("p/" + (Plays + 1), true);
}
static function CustomMetric(name, group, unique) {
if (!Enabled) {
return(undefined);
}
if ((group == null) || (group == undefined)) {
group = "";
}
if ((unique == null) || (unique == undefined)) {
unique = false;
}
if (unique) {
if (Customs.indexOf(name) > -1) {
return(undefined);
}
Customs.push(name);
}
Send((("c/" + Clean(name)) + "/") + Clean(group));
}
static function Link(url, name, group, unique, total, fail) {
if (!Enabled) {
return(undefined);
}
Send((((((((((("l/" + Clean(name)) + "/") + Clean(group)) + "/") + Clean(url)) + "/") + unique) + "/") + total) + "/") + fail);
}
static function LevelCounterMetric(name, level, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
var _local1 = (name + ".") + level.toString();
if (LevelCounters.indexOf(_local1) > -1) {
return(undefined);
}
LevelCounters.push(_local1);
}
Send((("lc/" + Clean(name)) + "/") + Clean(level));
}
static function LevelRangedMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
var _local1 = (name + ".") + level.toString();
if (LevelRangeds.indexOf(_local1) > -1) {
return(undefined);
}
LevelRangeds.push(_local1);
SaveCookie("lr_" + name, 1);
}
Send((((("lr/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function LevelAverageMetric(name, level, value, unique) {
if (!Enabled) {
return(undefined);
}
if (unique) {
var _local1 = (name + ".") + level.toString();
if (LevelAverages.indexOf(_local1) > -1) {
return(undefined);
}
LevelAverages.push(_local1);
}
Send((((("la/" + Clean(name)) + "/") + Clean(level)) + "/") + value);
}
static function Heatmap(name, group, x, y) {
if (!Enabled) {
return(undefined);
}
Send((((((("h/" + Clean(name)) + "/") + Clean(group)) + "/") + x) + "/") + y);
}
static function Funnel(name, step, stepnum) {
if (!Enabled) {
return(undefined);
}
Send((((("f/" + Clean(name)) + "/") + Clean(step)) + "/") + stepnum);
}
static function PlayerLevelStart(levelid) {
if (!Enabled) {
return(undefined);
}
Send("pls/" + levelid);
}
static function PlayerLevelWin(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plw/" + levelid);
}
static function PlayerLevelQuit(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plq/" + levelid);
}
static function PlayerLevelRetry(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plr/" + levelid);
}
static function PlayerLevelFlag(levelid) {
if (!Enabled) {
return(undefined);
}
Send("plf/" + levelid);
}
static function PingServer() {
if (!Enabled) {
return(undefined);
}
Pings++;
Send((("t/" + (FirstPing ? "y" : "n")) + "/") + Pings, true);
if (FirstPing) {
FirstPing = false;
setInterval(PingServer, 60000);
}
}
static function Send(s, view) {
if (view == undefined) {
view = false;
}
Request.Queue(s);
if ((Request.Ready || (view)) || (!Queue)) {
Request.Send();
Request = new Playtomic.LogRequest();
}
}
static function GetCookie(n) {
if (Cookie.data[n] == undefined) {
return(0);
}
return(parseInt(Cookie.data[n]));
}
static function SaveCookie(n, v) {
Cookie.data[n] = v.toString();
Cookie.flush();
}
static function Clean(s) {
while (s.indexOf("/") > -1) {
s = Replace(s, "/", "\\");
}
while (s.indexOf("~") > -1) {
s = Replace(s, "~", "-");
}
return(escape(s));
}
static function Replace(str, find, replace) {
return(str.split(find).join(replace));
}
static function IncreaseViews() {
var _local1 = GetCookie("views");
_local1++;
SaveCookie("views", _local1);
}
static function IncreasePlays() {
Plays++;
}
static var Enabled = false;
static var Queue = true;
static var SWFID = 0;
static var GUID = "";
static var Request = new Playtomic.LogRequest();
static var FirstPing = true;
static var Pings = 0;
static var Plays = 0;
static var HighestGoal = 0;
static var Customs = new Array();
static var LevelCounters = new Array();
static var LevelAverages = new Array();
static var LevelRangeds = new Array();
}
Symbol 41 MovieClip Frame 1
_root.stop();
gotoAndPlay (2);
Symbol 41 MovieClip Frame 225
_root.nextFrame();
Symbol 58 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 17
_parent.removeMovieClip();
Symbol 169 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 201
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 20
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 229 MovieClip Frame 1
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 20
stop();
Symbol 244 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 1
stop();
Symbol 279 MovieClip Frame 19
stop();
Symbol 280 MovieClip Frame 27
_parent.removeMovieClip();
Symbol 281 MovieClip [char] Frame 1
stop();
Symbol 286 MovieClip [ga] Frame 60
this.removeMovieClip();
Symbol 289 MovieClip [do] Frame 60
this.removeMovieClip();
Symbol 304 MovieClip [jumpDust] Frame 22
this.removeMovieClip();
Symbol 321 MovieClip Frame 16
stop();
Symbol 346 MovieClip Frame 13
_parent.gotoAndStop(1);
Symbol 353 MovieClip Frame 62
stop();
Symbol 354 MovieClip Frame 62
stop();
Symbol 355 MovieClip [boss] Frame 1
stop();
Symbol 361 MovieClip Frame 1
stop();
Symbol 400 MovieClip Frame 1184
_parent.gotoAndStop(3);