Frame 1 (34 B)
NewgroundsAPI.connectMovie(3580);
Frame 2 (357 B)
totalBytes = getBytesTotal();
loadedBytes = getBytesLoaded();
loadPercent = Math.round(100 * (loadedBytes / totalBytes));
currentFrame = Math.round(100 * (loadedBytes / totalBytes));
preloaderDoors.gotoAndStop(currentFrame);
if (loadedBytes == totalBytes) {
playMenuIntro = true;
gotoAndPlay ("mainCode");
} else {
gotoAndPlay ("preloader");
}
Frame 10 (25.99 KiB) ● ● ●
accel = 0.05;
avFeet = 30;
avKnee = 28;
avBound = 26;
avDeathBound = 20;
pushUp = 3;
runSpeed = 3;
rotationSpeed = 15;
counterMax = 2;
gravWidth = 10;
gravSpeed = 10;
nullWidth = 15;
cliffD = 30;
grav1Ratio = 0.0002;
grav2Inner = 0.05;
grav2Middle = 0.03;
grav2Outer = 0.02;
avXVel = 0;
avYVel = 0;
inAir = true;
inGround = false;
faceRight = true;
walkCounter = 1;
rotationCounter = 0;
gunAngle = 0;
angle1 = 0;
angle2 = 0;
grav1DX = 0;
grav1DY = 0;
grav2DX = 0;
grav2DY = 0;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
standingOn = "ground";
levelNum = 1;
gravAngle = 0;
shootGrav1 = true;
shootTimer = 0;
box1Accel = 0.08;
box1Low = 30;
box1Mid = 28;
box1Bound = 26;
box1Grav1Ratio = 0.0002;
box1Grav1Di = "down";
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
level1Lock = true;
level2Lock = true;
level3Lock = true;
level4Lock = true;
level5Lock = true;
level6Lock = true;
level7Lock = true;
level8Lock = true;
level9Lock = true;
level10Lock = true;
intro2Play = true;
intro3Play = true;
intro5Play = true;
intro10Play = true;
musicRatio = 100;
musicTime = 0;
var menuSong = new Sound();
menuSong.attachSound("menuMusicGt.wav");
var deathSong = new Sound();
deathSong.attachSound("deathGt.wav");
var introSong = new Sound();
introSong.attachSound("introMusic.wav");
var playThroughSong = new Sound();
playThroughSong.attachSound("playThroughMusic.wav");
menuSong.start(0, 100);
musicPlay = function () {
if ((Key.isDown(77) && (musicRatio == 100)) && (musicTime == 0)) {
musicRatio = 0;
musicTime++;
}
if ((Key.isDown(77) && (musicRatio == 0)) && (musicTime == 0)) {
musicRatio = 100;
musicTime++;
}
if (!Key.isDown(77)) {
musicTime = 0;
}
};
gravity = function () {
if (((grav1Di == "down") || ((inAir && (grav1Di == "string")) && (!shot1))) || ((!inAir) && (standingOn == "ground"))) {
if (air.hitTest(avatar._x, avatar._y + avFeet, true) && (air.hitTest(avatar._x, avatar._y + avKnee, true))) {
inAir = true;
} else if ((!air.hitTest(avatar._x, avatar._y + avFeet, true)) && (air.hitTest(avatar._x, avatar._y + avKnee, true))) {
inAir = false;
inGround = false;
standingOn = "ground";
} else if ((!air.hitTest(avatar._x, avatar._y + avFeet, true)) && (!air.hitTest(avatar._x, avatar._y + avKnee, true))) {
inAir = false;
inGround = true;
standingOn = "ground";
}
if (inAir) {
avYVel = avYVel + accel;
if (((grav1._x != -20) && (hit1)) && (!shot1)) {
avXVel = avXVel + ((grav1._x - avatar._x) * grav1Ratio);
}
avatar._x = avatar._x + avXVel;
avatar._y = avatar._y + avYVel;
} else if (inGround) {
avYVel = 0;
avatar._y = avatar._y - pushUp;
} else {
avYVel = 0;
inAir = false;
avatar._y = avatar._y + avYVel;
}
if (inAir && (grav1._x != -20)) {
if (avatar._y > grav1._y) {
grav1Di = "up";
}
}
}
if (grav1Di == "up") {
if (air.hitTest(avatar._x, avatar._y - avFeet, true) && (air.hitTest(avatar._x, avatar._y - avKnee, true))) {
inAir = true;
} else if ((!air.hitTest(avatar._x, avatar._y - avFeet, true)) && (air.hitTest(avatar._x, avatar._y - avKnee, true))) {
inAir = false;
inGround = false;
standingOn = "roof";
} else if ((!air.hitTest(avatar._x, avatar._y - avFeet, true)) && (!air.hitTest(avatar._x, avatar._y - avKnee, true))) {
inAir = false;
inGround = true;
standingOn = "roof";
}
if (inAir) {
avYVel = avYVel - accel;
avXVel = avXVel + ((grav1._x - avatar._x) * grav1Ratio);
avatar._x = avatar._x + avXVel;
avatar._y = avatar._y + avYVel;
} else if (inGround) {
avYVel = 0;
avatar._y = avatar._y + pushUp;
} else {
avYVel = 0;
inAir = false;
avatar._y = avatar._y + avYVel;
}
if (inAir && (grav1._x != -20)) {
if (avatar._y < grav1._y) {
grav1Di = "down";
}
}
}
if (grav1Di == "left") {
if (air.hitTest(avatar._x - avFeet, avatar._y, true) && (air.hitTest(avatar._x - avKnee, avatar._y, true))) {
inAir = true;
} else if ((!air.hitTest(avatar._x - avFeet, avatar._y, true)) && (air.hitTest(avatar._x - avKnee, avatar._y, true))) {
inAir = false;
inGround = false;
standingOn = "wallL";
} else if ((!air.hitTest(avatar._x - avFeet, avatar._y, true)) && (!air.hitTest(avatar._x - avKnee, avatar._y, true))) {
inAir = false;
inGround = true;
standingOn = "wallL";
}
if (inAir) {
avXVel = avXVel - accel;
avYVel = avYVel + ((grav1._y - avatar._y) * grav1Ratio);
avatar._y = avatar._y + avYVel;
avatar._x = avatar._x + avXVel;
} else if (inGround) {
avXVel = 0;
avatar._x = avatar._x + pushUp;
} else {
avXVel = 0;
inAir = false;
avatar._x = avatar._x + avXVel;
}
if (inAir && (grav1._x != -20)) {
if (avatar._x < grav1._x) {
grav1Di = "right";
}
}
}
if (grav1Di == "right") {
if (air.hitTest(avatar._x + avFeet, avatar._y, true) && (air.hitTest(avatar._x + avKnee, avatar._y, true))) {
inAir = true;
} else if ((!air.hitTest(avatar._x + avFeet, avatar._y, true)) && (air.hitTest(avatar._x + avKnee, avatar._y, true))) {
inAir = false;
inGround = false;
standingOn = "wallR";
} else if ((!air.hitTest(avatar._x + avFeet, avatar._y, true)) && (!air.hitTest(avatar._x + avKnee, avatar._y, true))) {
inAir = false;
inGround = true;
standingOn = "wallR";
}
if (inAir) {
avXVel = avXVel + accel;
avYVel = avYVel + ((grav1._y - avatar._y) * grav1Ratio);
avatar._y = avatar._y + avYVel;
avatar._x = avatar._x + avXVel;
} else if (inGround) {
avXVel = 0;
avatar._x = avatar._x - pushUp;
} else {
avXVel = 0;
inAir = false;
avatar._x = avatar._x + avXVel;
}
if (inAir && (grav1._x != -20)) {
if (avatar._x > grav1._x) {
grav1Di = "left";
}
}
}
if ((inAir && (shot1)) && (!hit1)) {
avYVel = avYVel + accel;
avatar._y = avatar._y + avYVel;
}
if (inAir && (grav2._x != -20)) {
if (grav2.outerGrav.hitTest(avatar._x, avatar._y, true)) {
if (avatar._x > grav2._x) {
avXVel = avXVel + grav2Outer;
} else {
avXVel = avXVel - grav2Outer;
}
if (avatar._y > grav2._y) {
avYVel = avYVel + grav2Outer;
} else {
avYVel = avYVel - grav2Outer;
}
}
if (grav2.middleGrav.hitTest(avatar._x, avatar._y, true)) {
if (avatar._x > grav2._x) {
avXVel = avXVel + grav2Middle;
} else {
avXVel = avXVel - grav2Middle;
}
if (avatar._y > grav2._y) {
avYVel = avYVel + grav2Middle;
} else {
avYVel = avYVel - grav2Middle;
}
}
if (grav2.innerGrav.hitTest(avatar._x, avatar._y, true)) {
if (avatar._x > grav2._x) {
avXVel = avXVel + grav2Inner;
} else {
avXVel = avXVel - grav2Inner;
}
if (avatar._y > grav2._y) {
avYVel = avYVel + grav2Inner;
} else {
avYVel = avYVel - grav2Inner;
}
}
}
grav2.outerGrav._alpha = 0;
grav2.middleGrav._alpha = 0;
grav2.innerGrav._alpha = 0;
};
moving = function () {
if ((!inAir) && ((standingOn == "roof") || (standingOn == "ground"))) {
if (Key.isDown(65)) {
avatar._x = avatar._x - runSpeed;
if (((standingOn == "ground") && (faceRight)) || ((standingOn == "roof") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter--;
if (walkCounter <= 1) {
walkCounter = 40;
}
}
if (((standingOn == "roof") && (faceRight)) || ((standingOn == "ground") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter++;
if (walkCounter >= 40) {
walkCounter = 1;
}
}
} else if (Key.isDown(68)) {
avatar._x = avatar._x + runSpeed;
if (((standingOn == "ground") && (faceRight)) || ((standingOn == "roof") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter++;
if (walkCounter == 40) {
walkCounter = 1;
}
}
if (((standingOn == "roof") && (faceRight)) || ((standingOn == "ground") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter--;
if (walkCounter == 1) {
walkCounter = 40;
}
}
} else {
avXVel = 0;
}
} else if ((!inAir) && ((standingOn == "wallL") || (standingOn == "wallR"))) {
if (Key.isDown(87)) {
avatar._y = avatar._y - runSpeed;
if (((standingOn == "wallL") && (faceRight)) || ((standingOn == "wallR") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter--;
if (walkCounter <= 1) {
walkCounter = 40;
}
}
if (((standingOn == "wallR") && (faceRight)) || ((standingOn == "wallL") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter++;
if (walkCounter >= 40) {
walkCounter = 1;
}
}
} else if (Key.isDown(83)) {
avatar._y = avatar._y + runSpeed;
if (((standingOn == "wallL") && (faceRight)) || ((standingOn == "wallR") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter++;
if (walkCounter >= 40) {
walkCounter = 1;
}
}
if (((standingOn == "wallR") && (faceRight)) || ((standingOn == "wallL") && (!faceRight))) {
avatar.body.gotoAndStop("walkR" + walkCounter);
walkCounter--;
if (walkCounter <= 1) {
walkCounter = 40;
}
}
} else {
avYVel = 0;
}
}
};
rotation = function () {
if (((grav1Di == "down") || (inAir && (grav1Di == "string"))) || ((!inAir) && (standingOn == "ground"))) {
if (avatar.body._rotation < 0) {
avatar.body._rotation = avatar.body._rotation + rotationSpeed;
} else if (avatar.body._rotation > 0) {
avatar.body._rotation = avatar.body._rotation - rotationSpeed;
} else {
avatar.body._rotation = 0;
}
} else if (grav1Di == "up") {
if ((avatar.body._rotation < 180) && (avatar.body._rotation > -90)) {
avatar.body._rotation = avatar.body._rotation + rotationSpeed;
} else if ((avatar.body._rotation > 180) || (avatar.body._rotation <= -90)) {
avatar.body._rotation = avatar.body._rotation - rotationSpeed;
} else {
avatar.body._rotation = 180;
}
} else if (grav1Di == "left") {
if (avatar.body._rotation < 90) {
avatar.body._rotation = avatar.body._rotation + rotationSpeed;
} else if (avatar.body._rotation > 90) {
avatar.body._rotation = avatar.body._rotation - rotationSpeed;
} else {
avatar.body._rotation = 90;
}
} else if (grav1Di == "right") {
if ((avatar.body._rotation < -90) || (avatar.body._rotation >= 180)) {
avatar.body._rotation = avatar.body._rotation + rotationSpeed;
} else if ((avatar.body._rotation > -90) && (avatar.body._rotation < 180)) {
avatar.body._rotation = avatar.body._rotation - rotationSpeed;
} else {
avatar.body._rotation = -90;
}
}
if (faceRight) {
avatar.body.gotoAndStop("walkR" + walkCounter);
avatar.armL.gotoAndStop("RArmL");
if (shootGrav1) {
avatar.gun.gotoAndStop("gunP");
} else {
avatar.gun.gotoAndStop("gunR");
}
} else {
avatar.body.gotoAndStop("walkL" + walkCounter);
avatar.armL.gotoAndStop("LArmR");
if (shootGrav1) {
avatar.gun.gotoAndStop("gunLP");
} else {
avatar.gun.gotoAndStop("gunLR");
}
}
};
collition = function () {
if (!air.hitTest(avatar._x + avBound, avatar._y, true)) {
avXVel = 0;
avatar._x = avatar._x - runSpeed;
}
if (!air.hitTest(avatar._x - avBound, avatar._y, true)) {
avXVel = 0;
avatar._x = avatar._x + runSpeed;
}
if (!air.hitTest(avatar._x, avatar._y - avBound, true)) {
avYVel = 0;
avatar._y = avatar._y + runSpeed;
}
if (!air.hitTest(avatar._x, avatar._y + avBound, true)) {
avYVel = 0;
avatar._y = avatar._y - runSpeed;
}
if (((!inAir) && (standingOn == "roof")) && (grav1Di == "string")) {
if (air.hitTest(avatar._x + cliffD, avatar._y - cliffD, true)) {
avXVel = 0;
avatar._x = avatar._x - runSpeed;
} else if (air.hitTest(avatar._x - cliffD, avatar._y - cliffD, true)) {
avXVel = 0;
avatar._x = avatar._x + runSpeed;
}
}
if (((!inAir) && (standingOn == "wallR")) && (grav1Di == "string")) {
if (air.hitTest(avatar._x + cliffD, avatar._y - cliffD, true)) {
avYVel = 0;
avatar._y = avatar._y + runSpeed;
} else if (air.hitTest(avatar._x + cliffD, avatar._y + cliffD, true)) {
avYVel = 0;
avatar._y = avatar._y - runSpeed;
}
}
if (((!inAir) && (standingOn == "wallL")) && (grav1Di == "string")) {
if (air.hitTest(avatar._x - cliffD, avatar._y - cliffD, true)) {
avYVel = 0;
avatar._y = avatar._y + runSpeed;
} else if (air.hitTest(avatar._x - cliffD, avatar._y + cliffD, true)) {
avYVel = 0;
avatar._y = avatar._y - runSpeed;
}
}
if (((doomSpot.hitTest(avatar._x + avDeathBound, avatar._y, true) || (doomSpot.hitTest(avatar._x, avatar._y + avDeathBound, true))) || (doomSpot.hitTest(avatar._x - avDeathBound, avatar._y, true))) || (doomSpot.hitTest(avatar._x, avatar._y - avDeathBound, true))) {
gotoAndPlay ("death");
}
if (((spikes.hitTest(avatar._x + avDeathBound, avatar._y, true) || (spikes.hitTest(avatar._x, avatar._y + avDeathBound, true))) || (spikes.hitTest(avatar._x - avDeathBound, avatar._y, true))) || (spikes.hitTest(avatar._x, avatar._y - avDeathBound, true))) {
gotoAndPlay ("death");
}
if (box1.hitTest(avatar._x + avDeathBound, avatar._y, true)) {
avXVel = 0;
if (box1XVel >= (-runSpeed)) {
avatar._x = avatar._x - runSpeed;
} else {
avXVel = box1XVel;
}
}
if (box1.hitTest(avatar._x - avDeathBound, avatar._y, true)) {
avXVel = 0;
if (box1XVel <= runSpeed) {
avatar._x = avatar._x + runSpeed;
} else {
avXVel = box1XVel;
}
}
if (box1.hitTest(avatar._x, avatar._y - avDeathBound, true)) {
avYVel = 0;
if (box1YVel <= runSpeed) {
avatar._y = avatar._y + runSpeed;
} else {
avYVel = box1YVel;
}
}
if (box1.hitTest(avatar._x, avatar._y + avDeathBound, true)) {
avYVel = 0;
if (box1YVel >= (-runSpeed)) {
avatar._y = avatar._y - runSpeed;
} else {
avYVel = box1YVel;
}
}
if (box1.hitTest(avatar._x, avatar._y, true)) {
gotoAndPlay ("death");
}
if (door.hitTest(avatar._x + avBound, avatar._y, true)) {
levelNum++;
gotoAndPlay("level" + levelNum);
}
};
aiming = function () {
Mouse.hide();
target._x = _xmouse;
target._y = _ymouse;
gunAngle = (Math.atan2(target._y - avatar._y, target._x - avatar._x) * 180) / Math.PI;
avatar.gun._rotation = gunAngle + 90;
avatar.armL._rotation = avatar.gun._rotation - 90;
if (avatar.body._rotation == 0) {
if (avatar._x <= target._x) {
faceRight = true;
} else {
faceRight = false;
}
}
if (avatar.body._rotation == 180) {
if (avatar._x <= target._x) {
faceRight = false;
} else {
faceRight = true;
}
}
if (avatar.body._rotation == 90) {
if (avatar._y <= target._y) {
faceRight = true;
} else {
faceRight = false;
}
}
if (avatar.body._rotation == -90) {
if (avatar._y <= target._y) {
faceRight = false;
} else {
faceRight = true;
}
}
gravInd._alpha = 0;
if ((Key.isDown(69) && (shootGrav1)) && (shootTime == 0)) {
gravInd.gotoAndStop("red");
if (faceRight) {
avatar.gun.gotoAndStop("gunR");
} else {
avatar.gun.gotoAndStop("gunLR");
}
shootGrav1 = false;
shootTime++;
target.gotoAndStop("red");
}
if ((Key.isDown(69) && (!shootGrav1)) && (shootTime == 0)) {
gravInd.gotoAndStop("blue");
if (faceRight) {
avatar.gun.gotoAndStop("gunP");
} else {
avatar.gun.gotoAndStop("gunLP");
}
shootGrav1 = true;
shootTime++;
target.gotoAndStop("blue");
}
if (!Key.isDown(69)) {
shootTime = 0;
}
onMouseDown = function () {
if (shootGrav1) {
if (!shot1) {
grav1._x = avatar._x;
grav1._y = avatar._y;
shot1 = true;
hit1 = false;
grav1.gotoAndStop("sphere");
if (avatar._y > target._y) {
gravAngle = -Math.atan((avatar._x - target._x) / (avatar._y - target._y));
grav1DX = -Math.sin(-gravAngle);
grav1DY = -Math.cos(-gravAngle);
} else {
gravAngle = Math.atan((avatar._x - target._x) / (avatar._y - target._y));
grav1DX = -Math.sin(-gravAngle);
grav1DY = Math.cos(-gravAngle);
}
}
} else if (!shot2) {
grav2._x = avatar._x;
grav2._y = avatar._y;
shot2 = true;
hit2 = false;
if (avatar._y > target._y) {
gravAngle = -Math.atan((avatar._x - target._x) / (avatar._y - target._y));
grav2DX = -Math.sin(-gravAngle);
grav2DY = -Math.cos(-gravAngle);
} else {
gravAngle = Math.atan((avatar._x - target._x) / (avatar._y - target._y));
grav2DX = -Math.sin(-gravAngle);
grav2DY = Math.cos(-gravAngle);
}
}
};
if (shot1 && (!hit1)) {
grav1._x = grav1._x + (grav1DX * gravSpeed);
grav1._y = grav1._y + (grav1DY * gravSpeed);
if (!air.hitTest(grav1._x, grav1._y - gravWidth, true)) {
grav1Di = "up";
box1Grav1Di = "up";
hit1 = true;
grav1.gotoAndPlay("waves");
grav1._x = grav1._x + 0;
grav1._y = grav1._y + 0;
shot1 = false;
} else if (!air.hitTest(grav1._x, grav1._y + gravWidth, true)) {
grav1Di = "down";
box1Grav1Di = "down";
hit1 = true;
grav1.gotoAndPlay("waves");
grav1._x = grav1._x + 0;
grav1._y = grav1._y + 0;
shot1 = false;
} else if (!air.hitTest(grav1._x + gravWidth, grav1._y, true)) {
grav1Di = "right";
box1Grav1Di = "right";
hit1 = true;
grav1.gotoAndPlay("waves");
grav1._x = grav1._x + 0;
grav1._y = grav1._y + 0;
shot1 = false;
} else if (!air.hitTest(grav1._x - gravWidth, grav1._y, true)) {
grav1Di = "left";
box1Grav1Di = "left";
hit1 = true;
grav1.gotoAndPlay("waves");
grav1._x = grav1._x + 0;
grav1._y = grav1._y + 0;
shot1 = false;
}
if (((nullSpace.hitTest(grav1._x, grav1._y + nullWidth, true) || (nullSpace.hitTest(grav1._x, grav1._y - nullWidth, true))) || (nullSpace.hitTest(grav1._x + nullWidth, grav1._y, true))) || (nullSpace.hitTest(grav1._x - nullWidth, grav1._y, true))) {
grav1._x = -20;
grav1._y = -20;
shot1 = false;
hit1 = false;
grav1.gotoAndStop("sphere");
grav1Di = "string";
box1Grav1Di = "down";
}
if (((doomSpot.hitTest(grav1._x, grav1._y + nullWidth, true) || (doomSpot.hitTest(grav1._x, grav1._y - nullWidth, true))) || (doomSpot.hitTest(grav1._x + nullWidth, grav1._y, true))) || (doomSpot.hitTest(grav1._x - nullWidth, grav1._y, true))) {
grav1._x = -20;
grav1._y = -20;
shot1 = false;
hit1 = false;
grav1.gotoAndStop("sphere");
grav1Di = "string";
box1Grav1Di = "down";
}
}
if (shot2 && (!hit2)) {
grav2._x = grav2._x + (grav2DX * gravSpeed);
grav2._y = grav2._y + (grav2DY * gravSpeed);
grav2.gotoAndStop("sphere");
if (!air.hitTest(grav2._x, grav2._y - gravWidth, true)) {
hit2 = true;
grav2.gotoAndPlay("waves");
grav2._x = grav2._x + 0;
grav2._y = grav2._y + 0;
shot2 = false;
} else if (!air.hitTest(grav2._x, grav2._y + gravWidth, true)) {
hit2 = true;
grav2.gotoAndPlay("waves");
grav2._x = grav2._x + 0;
grav2._y = grav2._y + 0;
shot2 = false;
} else if (!air.hitTest(grav2._x + gravWidth, grav2._y, true)) {
hit2 = true;
grav2.gotoAndPlay("waves");
grav2._x = grav2._x + 0;
grav2._y = grav2._y + 0;
shot2 = false;
} else if (!air.hitTest(grav2._x - gravWidth, grav2._y, true)) {
hit2 = true;
grav2.gotoAndPlay("waves");
grav2._x = grav2._x + 0;
grav2._y = grav2._y + 0;
shot2 = false;
}
if (((nullSpace.hitTest(grav2._x, grav2._y + nullWidth, true) || (nullSpace.hitTest(grav2._x, grav2._y - nullWidth, true))) || (nullSpace.hitTest(grav2._x + nullWidth, grav2._y, true))) || (nullSpace.hitTest(grav2._x - nullWidth, grav2._y, true))) {
grav2._x = -20;
grav2._y = -20;
shot2 = false;
hit2 = false;
grav2.gotoAndStop("sphere");
}
if (((doomSpot.hitTest(grav2._x, grav2._y + nullWidth, true) || (doomSpot.hitTest(grav2._x, grav2._y - nullWidth, true))) || (doomSpot.hitTest(grav2._x + nullWidth, grav2._y, true))) || (doomSpot.hitTest(grav2._x - nullWidth, grav2._y, true))) {
grav2._x = -20;
grav2._y = -20;
shot2 = false;
hit2 = false;
grav2.gotoAndStop("sphere");
}
}
if (Key.isDown(88)) {
grav1._x = -20;
grav1._y = -20;
shot1 = false;
hit1 = false;
grav1.gotoAndStop("sphere");
grav1Di = "string";
box1Grav1Di = "down";
}
if (Key.isDown(67)) {
grav2._x = -20;
grav2._y = -20;
shot2 = false;
hit2 = false;
grav2.gotoAndStop("sphere");
}
if (Key.isDown(32)) {
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
grav1.gotoAndStop("sphere");
shot2 = false;
hit2 = false;
grav2.gotoAndStop("sphere");
grav1Di = "down";
box1Grav1Di = "down";
if (standingOn == "ground") {
grav1Di = "string";
}
}
if (Key.isDown(90)) {
if (grav1._x == -20) {
grav1Di = "down";
box1Grav1Di = "down";
}
}
};
box1Move = function () {
if (box1Grav1Di == "down") {
if (air.hitTest(box1._x, box1._y + box1Low, true) && (air.hitTest(box1._x, box1._y + box1Mid, true))) {
box1InAir = true;
} else if ((!air.hitTest(box1._x, box1._y + box1Low, true)) && (air.hitTest(box1._x, box1._y + box1Mid, true))) {
box1InAir = false;
box1InGround = false;
} else if ((!air.hitTest(box1._x, box1._y + box1Low, true)) && (!air.hitTest(box1._x, box1._y + box1Mid, true))) {
box1InAir = false;
box1InGround = true;
}
if (box1InAir) {
box1YVel = box1YVel + box1Accel;
if (((grav1._x != -20) && (hit1)) && (!shot1)) {
box1XVel = box1XVel + ((grav1._x - box1._x) * box1Grav1Ratio);
}
box1._x = box1._x + box1XVel;
box1._y = box1._y + box1YVel;
} else if (box1InGround) {
box1YVel = 0;
box1._y = box1._y - pushUp;
} else {
box1YVel = 0;
box1XVel = 0;
box1InAir = false;
box1._y = box1._y + box1YVel;
}
if (box1InAir && (grav1._x != -20)) {
if (box1._y > grav1._y) {
box1Grav1Di = "up";
}
}
}
if (box1Grav1Di == "up") {
if (air.hitTest(box1._x, box1._y - box1Low, true) && (air.hitTest(box1._x, box1._y - box1Mid, true))) {
box1InAir = true;
} else if ((!air.hitTest(box1._x, box1._y - box1Low, true)) && (air.hitTest(box1._x, box1._y - box1Mid, true))) {
box1InAir = false;
box1InGround = false;
} else if ((!air.hitTest(box1._x, box1._y - box1Low, true)) && (!air.hitTest(box1._x, box1._y - box1Mid, true))) {
box1InAir = false;
box1InGround = true;
}
if (box1InAir) {
box1YVel = box1YVel - box1Accel;
box1XVel = box1XVel + ((grav1._x - box1._x) * box1Grav1Ratio);
box1._x = box1._x + box1XVel;
box1._y = box1._y + box1YVel;
} else if (box1InGround) {
box1YVel = 0;
box1._y = box1._y + pushUp;
} else {
box1YVel = 0;
box1XVel = 0;
box1InAir = false;
box1._y = box1._y + box1YVel;
}
if (box1InAir && (grav1._x != -20)) {
if (box1._y < grav1._y) {
box1Grav1Di = "down";
}
}
}
if (box1Grav1Di == "left") {
if (air.hitTest(box1._x - box1Low, box1._y, true) && (air.hitTest(box1._x - box1Mid, box1._y, true))) {
box1InAir = true;
} else if ((!air.hitTest(box1._x - box1Low, box1._y, true)) && (air.hitTest(box1._x - box1Mid, box1._y, true))) {
box1InAir = false;
box1InGround = false;
} else if ((!air.hitTest(box1._x - box1Low, box1._y, true)) && (!air.hitTest(box1._x - box1Mid, box1._y, true))) {
box1InAir = false;
box1InGround = true;
}
if (box1InAir) {
box1XVel = box1XVel - box1Accel;
box1YVel = box1YVel + ((grav1._y - box1._y) * box1Grav1Ratio);
box1._y = box1._y + box1YVel;
box1._x = box1._x + box1XVel;
} else if (box1InGround) {
box1XVel = 0;
box1._x = box1._x + pushUp;
} else {
box1XVel = 0;
box1YVel = 0;
box1InAir = false;
box1._x = box1._x + box1XVel;
}
if (box1InAir && (grav1._x != -20)) {
if (box1._x < grav1._x) {
box1Grav1Di = "right";
}
}
}
if (box1Grav1Di == "right") {
if (air.hitTest(box1._x + box1Low, box1._y, true) && (air.hitTest(box1._x + box1Mid, box1._y, true))) {
box1InAir = true;
} else if ((!air.hitTest(box1._x + box1Low, box1._y, true)) && (air.hitTest(box1._x + box1Mid, box1._y, true))) {
box1InAir = false;
box1InGround = false;
} else if ((!air.hitTest(box1._x + box1Low, box1._y, true)) && (!air.hitTest(box1._x + box1Mid, box1._y, true))) {
box1InAir = false;
box1InGround = true;
}
if (box1InAir) {
box1XVel = box1XVel + box1Accel;
box1YVel = box1YVel + ((grav1._y - box1._y) * box1Grav1Ratio);
box1._y = box1._y + box1YVel;
box1._x = box1._x + box1XVel;
} else if (box1InGround) {
box1XVel = 0;
box1._x = box1._x - pushUp;
} else {
box1XVel = 0;
box1YVel = 0;
box1InAir = false;
box1._x = box1._x + box1XVel;
}
if (box1InAir && (grav1._x != -20)) {
if (box1._x > grav1._x) {
box1Grav1Di = "left";
}
}
}
if (!air.hitTest(box1._x + box1Bound, box1._y, true)) {
box1XVel = 0;
box1._x = box1._x - runSpeed;
}
if (!air.hitTest(box1._x - box1Bound, box1._y, true)) {
box1XVel = 0;
box1._x = box1._x + runSpeed;
}
if (!air.hitTest(box1._x, box1._y - box1Bound, true)) {
box1YVel = 0;
box1._y = box1._y + runSpeed;
}
if (!air.hitTest(box1._x, box1._y + box1Bound, true)) {
box1YVel = 0;
box1._y = box1._y - runSpeed;
}
};
gotoAndPlay ("menu");
Frame 20 (191 B)
onMouseMove = function () {
aiming();
mouseInd._x = _xmouse;
mouseInd._y = _ymouse;
};
this.onEnterFrame = function () {
musicPlay();
menuSong.setVolume(musicRatio);
};
stop();
Frame 30 (89 B)
intro2Play = true;
intro3Play = true;
intro5Play = true;
intro10Play = true;
stop();
Frame 40 (8 B)
stop();
Frame 50 (8 B)
stop();
Frame 60 (8 B)
stop();
Frame 70 (623 B)
onMouseMove = function () {
aiming();
mouseInd._x = _xmouse;
mouseInd._y = _ymouse;
};
this.onEnterFrame = function () {
musicPlay();
menuSong.setVolume(musicRatio);
};
if (!level1Lock) {
lock1._alpha = 0;
}
if (!level2Lock) {
lock2._alpha = 0;
}
if (!level3Lock) {
lock3._alpha = 0;
}
if (!level4Lock) {
lock4._alpha = 0;
}
if (!level5Lock) {
lock5._alpha = 0;
}
if (!level6Lock) {
lock6._alpha = 0;
}
if (!level7Lock) {
lock7._alpha = 0;
}
if (!level8Lock) {
lock8._alpha = 0;
}
if (!level9Lock) {
lock9._alpha = 0;
}
if (!level10Lock) {
lock10._alpha = 0;
}
stop();
Frame 80 (191 B)
onMouseMove = function () {
aiming();
mouseInd._x = _xmouse;
mouseInd._y = _ymouse;
};
this.onEnterFrame = function () {
musicPlay();
menuSong.setVolume(musicRatio);
};
stop();
Frame 90 (895 B)
this.onEnterFrame = function () {
aiming();
musicPlay();
menuSong.setVolume(musicRatio);
mouseInd._x = _xmouse;
mouseInd._y = _ymouse;
if (Key.isDown(87)) {
wDis._alpha = 100;
} else {
wDis._alpha = 0;
}
if (Key.isDown(69)) {
eDis._alpha = 100;
} else {
eDis._alpha = 0;
}
if (Key.isDown(65)) {
aDis._alpha = 100;
} else {
aDis._alpha = 0;
}
if (Key.isDown(83)) {
sDis._alpha = 100;
} else {
sDis._alpha = 0;
}
if (Key.isDown(68)) {
dDis._alpha = 100;
} else {
dDis._alpha = 0;
}
if (Key.isDown(90)) {
zDis._alpha = 100;
} else {
zDis._alpha = 0;
}
if (Key.isDown(88)) {
xDis._alpha = 100;
} else {
xDis._alpha = 0;
}
if (Key.isDown(67)) {
cDis._alpha = 100;
} else {
cDis._alpha = 0;
}
if (Key.isDown(32)) {
spaceDis._alpha = 100;
} else {
spaceDis._alpha = 0;
}
};
stop();
Instance of Symbol 130 MovieClip "wKey" in Frame 90 (21 B)
/* no clip actions */
Frame 100 (238 B)
this.onEnterFrame = function () {
aiming();
mouseInd._x = _xmouse;
mouseInd._y = _ymouse;
musicPlay();
deathSong.setVolume(musicRatio);
};
playThroughSong.stop();
deathSong.start();
deathSong.setVolume(musicRatio);
stop();
Frame 110 (141 B)
this.onEnterFrame = function () {
musicPlay();
introSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.start(0, 100);
stop();
Frame 120 (427 B)
avXVel = 0;
avYVel = 0;
avatar._x = 80;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
inAir = true;
levelNum = 1;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level1Lock = false;
Frame 121 (252 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 130 (169 B)
this.onEnterFrame = function () {
musicPlay();
introSong.setVolume(musicRatio);
};
playThroughSong.stop();
introSong.start(0, 100);
intro2Play = false;
stop();
Frame 140 (480 B)
if (intro2Play) {
gotoAndPlay ("level2Intro");
}
avatar._x = 90;
avatar._y = 334;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 2;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level2Lock = false;
Frame 141 (252 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 150 (188 B)
this.onEnterFrame = function () {
musicPlay();
introSong.setVolume(musicRatio);
};
playThroughSong.stop();
deathSong.stop();
introSong.start(0, 100);
intro3Play = false;
stop();
Frame 160 (480 B)
if (intro3Play) {
gotoAndPlay ("level3Intro");
}
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 3;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level3Lock = false;
Frame 161 (271 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 170 (427 B)
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 4;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level4Lock = false;
Frame 171 (271 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 180 (169 B)
this.onEnterFrame = function () {
musicPlay();
introSong.setVolume(musicRatio);
};
playThroughSong.stop();
introSong.start(0, 100);
intro5Play = false;
stop();
Frame 190 (480 B)
if (intro5Play) {
gotoAndPlay ("level5Intro");
}
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 5;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level5Lock = false;
Frame 191 (271 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 200 (427 B)
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 6;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level6Lock = false;
Frame 201 (252 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 210 (427 B)
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 7;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level7Lock = false;
Frame 211 (252 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 220 (427 B)
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 8;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level8Lock = false;
Frame 221 (252 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 230 (459 B)
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 9;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1._x = 120;
box1._y = 123;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level9Lock = false;
Frame 231 (252 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 240 (170 B)
this.onEnterFrame = function () {
musicPlay();
introSong.setVolume(musicRatio);
};
playThroughSong.stop();
introSong.start(0, 100);
intro10Play = false;
stop();
Frame 250 (514 B)
if (intro10Play) {
gotoAndPlay ("level10Intro");
}
avatar._x = 75;
avatar._y = 335;
grav1._x = -20;
grav1._y = -20;
grav2._x = -20;
grav2._y = -20;
shot1 = false;
hit1 = false;
shot2 = false;
hit2 = false;
grav1Di = "string";
grav2Di = "string";
avXVel = 0;
avYVel = 0;
inAir = true;
levelNum = 10;
shootGrav1 = true;
target.gotoAndStop("blue");
box1XVel = 0;
box1YVel = 0;
box1._x = 87;
box1._y = 82;
box1InAir = true;
box1InGround = false;
box1Grav1Di = "down";
level10Lock = false;
Frame 251 (271 B)
this.onEnterFrame = function () {
gravity();
moving();
collition();
rotation();
aiming();
box1Move();
musicPlay();
playThroughSong.setVolume(musicRatio);
};
menuSong.stop();
introSong.stop();
deathSong.stop();
playThroughSong.start(0, 100);
stop();
Frame 260 (72 B)
this.onEnterFrame = function () {
};
playThroughSong.stop();
stop();
Frame 270 (121 B)
this.onEnterFrame = function () {
musicPlay();
menuSong.setVolume(musicRatio);
};
menuSong.start(0, 100);
stop();
Symbol 29 Button (49 B)
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 35 Button (49 B)
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 37 MovieClip Frame 1 (0.98 KiB)
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 401 MovieClip [__Packages.NewgroundsAPI] Frame 0 (12.42 KiB) ● ●
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 41 Button (80 B)
on (release) {
levelNum = 1;
intro2Play = true;
gotoAndPlay ("startIntro");
}
Symbol 45 Button (51 B)
on (release) {
gotoAndPlay ("levelSelectIntro");
}
Symbol 49 Button (49 B)
on (release) {
gotoAndPlay ("howToPlayIntro");
}
Symbol 52 MovieClip Frame 1 (8 B)
stop();
Symbol 52 MovieClip Frame 10 (8 B)
stop();
Symbol 53 MovieClip Frame 60 (43 B)
_root.gotoAndPlay("level1Intro");
stop();
Symbol 54 Button (65 B)
on (release) {
levelNum = 1;
gotoAndPlay("level" + levelNum);
}
Symbol 55 Button (45 B)
on (release) {
gotoAndPlay ("levelSelct");
}
Symbol 56 Button (44 B)
on (release) {
gotoAndPlay ("howToPlay");
}
Symbol 60 MovieClip Frame 60 (43 B)
_root.gotoAndPlay("levelSelect");
stop();
Symbol 61 MovieClip Frame 60 (41 B)
_root.gotoAndPlay("howToPlay");
stop();
Symbol 62 MovieClip Frame 60 (36 B)
_root.gotoAndPlay("menu");
stop();
Symbol 65 Button (65 B)
on (release) {
if (!level1Lock) {
gotoAndPlay ("level1");
}
}
Symbol 68 Button (87 B)
on (release) {
if (!level2Lock) {
intro2Play = false;
gotoAndPlay ("level2");
}
}
Symbol 71 Button (87 B)
on (release) {
if (!level3Lock) {
intro3Play = false;
gotoAndPlay ("level3");
}
}
Symbol 74 Button (117 B)
on (release) {
if (!level4Lock) {
menuSong.stop();
playThroughSong.start(0, 100);
gotoAndPlay ("level4");
}
}
Symbol 77 Button (87 B)
on (release) {
if (!level5Lock) {
intro5Play = false;
gotoAndPlay ("level5");
}
}
Symbol 80 Button (117 B)
on (release) {
if (!level6Lock) {
menuSong.stop();
playThroughSong.start(0, 100);
gotoAndPlay ("level6");
}
}
Symbol 83 Button (117 B)
on (release) {
if (!level7Lock) {
menuSong.stop();
playThroughSong.start(0, 100);
gotoAndPlay ("level7");
}
}
Symbol 86 Button (117 B)
on (release) {
if (!level8Lock) {
menuSong.stop();
playThroughSong.start(0, 100);
gotoAndPlay ("level8");
}
}
Symbol 89 Button (117 B)
on (release) {
if (!level9Lock) {
menuSong.stop();
playThroughSong.start(0, 100);
gotoAndPlay ("level9");
}
}
Symbol 92 Button (90 B)
on (release) {
if (!level10Lock) {
intro10Play = false;
gotoAndPlay ("level10");
}
}
Symbol 95 Button (46 B)
on (release) {
gotoAndPlay ("optionsExit");
}
Symbol 98 Button (46 B)
on (release) {
gotoAndPlay ("optionsExit");
}
Symbol 101 Button (43 B)
on (release) {
gotoAndPlay ("controls");
}
Symbol 143 Button (44 B)
on (release) {
gotoAndPlay ("howToPlay");
}
Symbol 176 Button (83 B)
on (release) {
deathSong.stop();
menuSong.start(0, 100);
gotoAndPlay ("menu");
}
Symbol 179 Button (50 B)
on (release) {
gotoAndPlay("level" + levelNum);
}
Symbol 189 MovieClip Frame 1 (8 B)
stop();
Symbol 189 MovieClip Frame 10 (8 B)
stop();
Symbol 206 MovieClip Frame 1 (8 B)
stop();
Symbol 206 MovieClip Frame 41 (8 B)
stop();
Symbol 213 MovieClip Frame 1 (8 B)
stop();
Symbol 213 MovieClip Frame 10 (8 B)
stop();
Symbol 213 MovieClip Frame 20 (8 B)
stop();
Symbol 213 MovieClip Frame 30 (8 B)
stop();
Symbol 214 MovieClip Frame 1 (8 B)
stop();
Symbol 245 MovieClip Frame 1 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 60 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 61 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 90 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 131 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 132 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 170 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak4");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 171 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 212 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak5");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 213 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 251 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak6");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 252 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 282 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak7");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 283 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 321 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak8");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 322 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 360 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak9");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 361 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 399 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak10");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 400 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 438 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak11");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 439 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 477 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak12");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 478 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 516 (164 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak113");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 517 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 555 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak14");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 556 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 594 (164 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak115");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 245 MovieClip Frame 595 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
Symbol 245 MovieClip Frame 625 (167 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndPlay("level1");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level1");
}
};
stop();
Symbol 252 MovieClip Frame 1 (8 B)
stop();
Symbol 252 MovieClip Frame 59 (23 B)
gotoAndPlay ("waves");
Symbol 253 MovieClip Frame 1 (8 B)
stop();
Symbol 253 MovieClip Frame 59 (23 B)
gotoAndPlay ("waves");
Symbol 256 MovieClip Frame 1 (8 B)
stop();
Symbol 256 MovieClip Frame 10 (8 B)
stop();
Symbol 283 MovieClip Frame 1 (20 B)
intro2Play = false;
Symbol 283 MovieClip Frame 30 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 60 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 61 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 120 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 121 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 159 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak4");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 160 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 201 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak5");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 202 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 240 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak6");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 241 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 282 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak7");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 283 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 321 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak8");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 322 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 349 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak9");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 350 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 391 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak10");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 392 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 430 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak11");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 431 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 469 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak12");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 470 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 497 (164 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak113");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 498 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 536 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak14");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 537 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 564 (164 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak115");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 565 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 606 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak16");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 607 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 648 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak17");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 649 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 690 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak18");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 283 MovieClip Frame 691 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
Symbol 283 MovieClip Frame 721 (167 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndPlay("level2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level2");
}
};
stop();
Symbol 304 MovieClip Frame 1 (20 B)
intro3Play = false;
Symbol 304 MovieClip Frame 30 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 60 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 61 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 120 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 121 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 159 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak4");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 160 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 201 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak5");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 202 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 229 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak6");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 230 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 271 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak7");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 272 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 310 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak8");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 311 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 349 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak9");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 350 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 391 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak10");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 392 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 430 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak11");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 431 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 458 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak12");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 304 MovieClip Frame 459 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
Symbol 304 MovieClip Frame 489 (167 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndPlay("level3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 328 MovieClip Frame 1 (20 B)
intro5Play = false;
Symbol 328 MovieClip Frame 30 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 60 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 61 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 120 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 121 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 159 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak4");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level3");
}
};
stop();
Symbol 328 MovieClip Frame 160 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 201 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak5");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 202 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 240 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak6");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 241 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 271 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak7");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 272 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 310 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak8");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 311 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 349 (162 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak9");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 350 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 391 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak10");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 328 MovieClip Frame 392 (98 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
Symbol 328 MovieClip Frame 433 (167 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndPlay("level5");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level5");
}
};
stop();
Symbol 385 MovieClip Frame 1 (20 B)
intro3Play = false;
Symbol 385 MovieClip Frame 30 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 60 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 61 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 131 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 132 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 159 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak4");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 160 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 201 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak5");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 202 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 240 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak6");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 241 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 271 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak7");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 272 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 310 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak8");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 311 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 349 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak9");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 350 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 391 (164 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak10");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 392 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 430 (164 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak11");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 385 MovieClip Frame 431 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
Symbol 385 MovieClip Frame 461 (169 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
_root.gotoAndPlay("level10");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("level10");
}
};
stop();
Symbol 390 MovieClip Frame 1 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
Symbol 390 MovieClip Frame 93 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak2");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
stop();
Symbol 390 MovieClip Frame 94 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
Symbol 390 MovieClip Frame 135 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak3");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
stop();
Symbol 390 MovieClip Frame 136 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
Symbol 390 MovieClip Frame 188 (163 B)
this.onEnterFrame = function () {
if (Key.isDown(32)) {
gotoAndPlay ("speak4");
}
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
stop();
Symbol 390 MovieClip Frame 189 (99 B)
this.onEnterFrame = function () {
if (Key.isDown(83)) {
_root.gotoAndPlay("credits");
}
};
Symbol 390 MovieClip Frame 321 (30 B)
_root.gotoAndPlay("credits");
Symbol 400 MovieClip Frame 865 (36 B)
_root.gotoAndPlay("menu");
stop();