Frame 1
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.diseasedproductions.net", _blank);
}
function gotoMySite2() {
getURL ("http://www.crazymonkeygames.com", _blank);
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.builtInItems.quality = true;
var copyrightNotice = new ContextMenuItem("\u00A9 2008 Diseased Productions", deadClick);
var mySiteLink = new ContextMenuItem("Diseased Productions", gotoMySite);
var mySiteLink2 = new ContextMenuItem("Crazy Monkey Games", gotoMySite2);
var mySiteLink3 = new ContextMenuItem("Play More Games", gotoMySite2);
copyrightNotice.separatorBefore = true;
myMenu.customItems.push(mySiteLink, mySiteLink2, mySiteLink3, mySiteLink4, copyrightNotice);
_root.menu = myMenu;
stop();
Instance of Symbol 56 MovieClip in Frame 1
onClipEvent (enterFrame) {
barMC.bar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if ((barMC.bar._xscale >= 100) && (_currentframe == 1)) {
gotoAndStop (2);
}
}
Frame 4
setDefaults = function () {
completed = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
have = new Array(0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
wepEquipped = 1;
score = 0;
blood = 0;
if (gameMode == 0) {
skillPoints = 0;
roomOn = 1;
} else {
skillPoints = 30;
roomOn = 1;
}
skillLevel = 0;
healthX = 100;
multX = 0;
stX = 90;
stY = 110;
tHits = 0;
tKills = 0;
tyme = 0;
cutScene = 0;
didScene4 = false;
didScene8 = false;
didScene12 = false;
};
cName = "Enter Name Here";
charColor = 1;
floorFra = new Array(0, 9, 12, 1, 19, 3, 10, 4, 14, 11, 15, 2, 5, 13, 7, 8, 18, 20, 6, 16, 17);
opt = new Array(1, 1, 30, 60, 0);
getVolume = function () {
if (tHits < 15000) {
zz = random(10) + 1;
} else if (tHits < 100000) {
zz = random(11) + 1;
} else {
zz = random(13) + 1;
}
switch (zz) {
case 1 :
vol = 0.2;
volName = "Ketchup Packets";
break;
case 2 :
vol = 12;
volName = "Soda Cans";
break;
case 3 :
vol = 128;
volName = "Gallon Jugs";
break;
case 4 :
vol = 144;
volName = "12 Packs of Soda";
break;
case 5 :
vol = 640;
volName = "5 Gallon Water Jugs";
break;
case 6 :
vol = 2816;
volName = "22 Gallon Car Fuel Tanks";
break;
case 7 :
vol = 5376;
volName = "42 Gallon Standard Bath Tubs";
break;
case 8 :
vol = 9600;
volName = "75 Gallon Aquariums";
break;
case 9 :
vol = 12800;
volName = "100 Gallon Kiddie Pools";
break;
case 10 :
vol = 24320;
volName = "190 Gallon King Size Water Beds";
break;
case 11 :
vol = 128000 /* 0x01F400 */;
volName = "1000 Gallon Agricultural Water Tanks";
break;
case 12 :
vol = 2604416 /* 0x27BD80 */;
volName = "Standard Shipping Containers";
break;
case 13 :
vol = 84480000 /* 0x5091000 */;
volName = "Olympic Swimming Pools";
break;
case 14 :
vol = 1382400000 /* 0x5265C000 */;
volName = "Standard Oil Tankers";
break;
case 15 :
vol = 10752000000;
volName = "Super Oil Tankers";
break;
case 16 :
vol = 3.43423668E20;
volName = "All of Earth's Oceans";
}
tempVol = Math.round(((tHits * 4) / vol) * 100) / 100;
};
CMG_AS2.ScoreSubmitter.responseHandler = function (returncode) {
switch (returncode) {
case CMG_AS2.ScoreSubmitter.RETURNCODE_WORKING :
hsOutput = "Score is being sent...";
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_SUCCESS :
hsOutput = "Your score has been submitted!";
CMG_AS2.ScoreSubmitter.loadHighScorePage();
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_REJECTED :
hsOutput = "The server rejected your score!";
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_WRONGVERSION :
hsOutput = "This is the wrong version of the game!";
CMG_AS2.ScoreSubmitter.loadUpdatePage();
break;
case CMG_AS2.ScoreSubmitter.RETURNCODE_NETWORKERROR :
hsOutput = "Your score could not reach the server at this time.";
break;
default :
hsOutput = "Unknown error " + returnCode;
}
};
submitScore = function () {
CMG_AS2.ScoreSubmitter.gameId = 548;
CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
CMG_AS2.ScoreSubmitter.gameValidationCode = "satu9061fbc78ba7d0473b032817d9b7821d";
var _local2 = new CMG_AS2.ScoreSubmitter();
_local2.submitScore(_root.cName, _root.score + (_root.tempCom * 5000));
};
Instance of Symbol 98 MovieClip in Frame 4
on (release) {
getURL ("http://www.diseasedproductions.net", _blank);
}
onClipEvent (load) {
stX = _x;
stY = _y;
_alpha = 0;
timer = 180;
}
onClipEvent (enterFrame) {
timer = timer - 1;
if (timer < 21) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 5);
}
if (timer < 1) {
_root.gotoAndStop(6);
}
_x = ((stX + random(10)) - 5);
_y = ((stY + random(10)) - 5);
}
Frame 5
zz = 1;
while (zz < 17) {
this["btn" + zz].stop();
this["btn" + zz].c.gotoAndStop(zz);
this["btn" + zz].num = zz;
this["btn" + zz].onRelease = function () {
_root.bFun(this.num);
this.gotoAndStop(1);
};
this["btn" + zz].onRollOver = function () {
this.gotoAndStop(2);
};
this["btn" + zz].onPress = function () {
this.gotoAndStop(3);
};
this["btn" + zz].onRollOut = function () {
this.gotoAndStop(1);
};
this["btn" + zz].onReleaseOutside = function () {
this.gotoAndStop(1);
};
zz++;
}
bFun = function (num) {
_root.charColor = num;
};
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(12);
Instance of Symbol 116 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.opt[4] == 0) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 123 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root._quality == "HIGH") {
gotoAndStop (1);
} else if (_root._quality == "MEDIUM") {
gotoAndStop (2);
} else if (_root._quality == "LOW") {
gotoAndStop (3);
}
}
Instance of Symbol 116 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.opt[0] == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 116 MovieClip in Frame 5
onClipEvent (enterFrame) {
if (_root.opt[1] == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 145 MovieClip "ch1" in Frame 5
onClipEvent (load) {
stop();
gotoAndStop(_root.charColor);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.charColor);
}
Instance of Symbol 163 MovieClip "btn1" in Frame 5
on (release) {
_parent.bFun(num);
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 207 MovieClip "sfx" in Frame 5
onClipEvent (load) {
mySound = new Sound(_root.sfx);
vol = _root.opt[2];
setVol = _root.opt[2];
maxVol = 100;
mySound.setVolume(vol);
}
onClipEvent (enterFrame) {
if (vol < setVol) {
vol = vol + 1;
}
if (_root.opt[0] == 1) {
mySound.setVolume(vol);
} else {
mySound.setVolume(0);
}
}
Instance of Symbol 214 MovieClip "music1" in Frame 5
onClipEvent (load) {
mySound = new Sound(_root.music1);
vol = _root.opt[2];
setVol = _root.opt[2];
maxVol = 100;
mySound.setVolume(vol);
go = true;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 7) {
if (_root.have[23] == 1) {
mh = 300;
} else if (_root.have[22] == 1) {
mh = 250;
} else if (_root.have[21] == 1) {
mh = 200;
} else if (_root.have[20] == 1) {
mh = 150;
} else {
mh = 100;
}
per = (_root.game.character.health / mh) * 100;
if (per > 60) {
_root.music1.go = true;
_root.music2.go = false;
_root.music3.go = false;
_root.music4.go = false;
} else if (per > 40) {
_root.music1.go = false;
_root.music2.go = true;
_root.music3.go = false;
_root.music4.go = false;
} else if (per > 10) {
_root.music1.go = false;
_root.music2.go = false;
_root.music3.go = true;
_root.music4.go = false;
} else {
_root.music1.go = false;
_root.music2.go = false;
_root.music3.go = false;
_root.music4.go = true;
}
if ((_root.completed[_root.roomOn] == 1) || (_root.game.character.endAnimation == true)) {
go = true;
vol = setVol;
}
if (vol < setVol) {
vol = vol + 4;
}
if (_root.opt[1] == 1) {
if (go == true) {
mySound.setVolume(vol);
setVol = _root.opt[3];
} else {
mySound.setVolume(0);
setVol = 0;
vol = 0;
}
} else {
mySound.setVolume(0);
}
} else {
if (vol < setVol) {
vol = vol + 4;
}
if (_root.opt[1] == 1) {
mySound.setVolume(vol);
setVol = _root.opt[3];
} else {
mySound.setVolume(0);
}
}
}
Instance of Symbol 214 MovieClip "music2" in Frame 5
onClipEvent (load) {
mySound = new Sound(_root.music2);
vol = _root.opt[2];
setVol = _root.opt[2];
maxVol = 100;
mySound.setVolume(vol);
go = false;
}
onClipEvent (enterFrame) {
if (vol < setVol) {
vol = vol + 4;
}
if (_root.opt[1] == 1) {
if (go == true) {
mySound.setVolume(vol);
setVol = _root.opt[3];
} else {
mySound.setVolume(0);
setVol = 0;
vol = 0;
}
} else {
mySound.setVolume(0);
}
}
Instance of Symbol 214 MovieClip "music3" in Frame 5
onClipEvent (load) {
mySound = new Sound(_root.music3);
vol = _root.opt[2];
setVol = _root.opt[2];
maxVol = 100;
mySound.setVolume(vol);
go = false;
}
onClipEvent (enterFrame) {
if (vol < setVol) {
vol = vol + 4;
}
if (_root.opt[1] == 1) {
if (go == true) {
mySound.setVolume(vol);
setVol = _root.opt[3];
} else {
mySound.setVolume(0);
setVol = 0;
vol = 0;
}
} else {
mySound.setVolume(0);
}
}
Instance of Symbol 214 MovieClip "music4" in Frame 5
onClipEvent (load) {
mySound = new Sound(_root.music4);
vol = _root.opt[2];
setVol = _root.opt[2];
maxVol = 100;
mySound.setVolume(vol);
go = false;
}
onClipEvent (enterFrame) {
if (vol < setVol) {
vol = vol + 4;
}
if (_root.opt[1] == 1) {
if (go == true) {
mySound.setVolume(vol);
setVol = _root.opt[3];
} else {
mySound.setVolume(0);
setVol = 0;
vol = 0;
}
} else {
mySound.setVolume(0);
}
}
Frame 6
stop();
zz = 1;
while (zz < 17) {
this["btn" + zz].stop();
this["btn" + zz].c.gotoAndStop(zz);
this["btn" + zz].num = zz;
this["btn" + zz].onRelease = function () {
_root.bFun(this.num);
this.gotoAndStop(1);
};
this["btn" + zz].onRollOver = function () {
this.gotoAndStop(2);
};
this["btn" + zz].onPress = function () {
this.gotoAndStop(3);
};
this["btn" + zz].onRollOut = function () {
this.gotoAndStop(1);
};
this["btn" + zz].onReleaseOutside = function () {
this.gotoAndStop(1);
};
zz++;
}
bFun = function (num) {
_root.charColor = num;
};
_root.stopAllSounds();
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(12);
Instance of Symbol 145 MovieClip "ch1" in Frame 6
onClipEvent (load) {
stop();
gotoAndStop(_root.charColor);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.charColor);
}
Instance of Symbol 273 MovieClip "AAbody" in Frame 6
onClipEvent (load) {
stop();
color.gotoAndStop(_root.charColor);
}
onClipEvent (enterFrame) {
color.gotoAndStop(_root.charColor);
}
Instance of Symbol 291 MovieClip "AAhead" in Frame 6
onClipEvent (load) {
stop();
gotoAndStop(_root.charColor);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.charColor);
}
Instance of Symbol 163 MovieClip "btn1" in Frame 6
on (release) {
_parent.bFun(num);
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Instance of Symbol 359 MovieClip "credits" in Frame 6
onClipEvent (load) {
p = 0;
}
onClipEvent (enterFrame) {
if (p == 0) {
if (_x < 1205) {
_x = (_x - ((_x - 1205) / 4));
}
} else if (_x > 795) {
_x = (_x - ((_x - 795) / 4));
}
}
Frame 7
stop();
getVolume();
Instance of Symbol 945 MovieClip "game" in Frame 7
onClipEvent (load) {
xShake = 0;
yShake = 0;
}
onClipEvent (enterFrame) {
if (Math.abs(xShake) > 1) {
xShake = xShake * -0.7;
} else {
xShake = 0;
}
if (Math.abs(yShake) > 1) {
yShake = yShake * -0.7;
} else {
yShake = 0;
}
_x = xShake;
_y = yShake;
}
Instance of Symbol 1038 MovieClip "wepIcon" in Frame 7
onClipEvent (load) {
glow._visible = false;
}
Instance of Symbol 1068 MovieClip "rc" in Frame 7
onClipEvent (enterFrame) {
this.d.gotoAndStop(_root.roomOn);
if (_currentframe < 10) {
if (_root.fadeOut._currentframe < 3) {
play();
} else {
stop();
}
}
}
Instance of Symbol 1083 MovieClip "xsfx" in Frame 7
onClipEvent (enterFrame) {
if (_root.opt[0] == 1) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 1083 MovieClip "xMus" in Frame 7
onClipEvent (enterFrame) {
if (_root.opt[1] == 1) {
_visible = false;
} else {
_visible = true;
}
}
Instance of Symbol 1087 MovieClip in Frame 7
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.game.character.skillPoints > 0) {
if (_root.pause == false) {
_visible = true;
} else {
_visible = false;
}
} else {
_visible = false;
}
}
on (release) {
if (_root.rc._currentframe == 89) {
_root.pause = true;
_root.pauseScreen.gotoAndStop(2);
Mouse.show();
}
}
Instance of Symbol 1095 MovieClip "cursor" in Frame 7
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
onClipEvent (mouseDown) {
if (_root.pause == false) {
Mouse.hide();
}
}
Instance of Symbol 1154 MovieClip "pow" in Frame 7
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.game.character.powerUp == 0) {
_visible = false;
} else {
_visible = true;
t.gotoAndStop(Math.round((_root.game.character.powerUpTime / 360) * 33) + 1);
gotoAndStop(_root.game.character.powerUp);
}
}
Instance of Symbol 1154 MovieClip "mult2" in Frame 7
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.game.character.mult2 == 1) {
_visible = false;
} else {
_visible = true;
t.gotoAndStop(Math.round((_root.game.character.mult2Time / 360) * 33) + 1);
gotoAndStop(9 + _root.game.character.mult2);
}
}
Instance of Symbol 1154 MovieClip "mult2" in Frame 7
onClipEvent (load) {
gotoAndStop (6);
t.gotoAndStop(33);
}
Instance of Symbol 1248 MovieClip "pauseScreen" in Frame 7
onClipEvent (enterFrame) {
if (_currentframe != 3) {
if (Key.isDown(80)) {
if (_root.rc._currentframe == 89) {
if (kReady == true) {
kReady = false;
if (_root.pause == true) {
_root.pause = false;
gotoAndStop (1);
Mouse.hide();
} else {
_root.pause = true;
gotoAndStop (2);
_root.wpa.gotoAndStop(1);
Mouse.show();
}
}
}
} else {
kReady = true;
}
}
}
Instance of Symbol 1284 MovieClip "fadeOut" in Frame 7
onClipEvent (load) {
a = 2;
b = 0;
if (_root.cutScene == 0) {
_root.pause = true;
gotoAndStop (3);
_alpha = 100;
Mouse.show();
}
}
onClipEvent (enterFrame) {
if (_currentframe < 3) {
if (_root._currentframe != 8) {
t = 0;
if (_alpha < 1) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
if (a == 1) {
if (_alpha < 100) {
if (end != true) {
_alpha = (_alpha + 5);
} else {
_alpha = (_alpha + 1);
}
} else {
a = 2;
if (b == 1) {
_root.pauseScreen.gotoAndStop(3);
_root.game.character._x = 590;
_root.game.character._y = 190;
_root.game.head._x = 590;
_root.game.head._y = 190;
Mouse.show();
} else if (b == 2) {
_root.have = _root.game.character.have;
_root.wepEquipped = _root.game.character.wepEquipped;
_root.score = _root.game.character.score;
_root.blood = _root.game.character.blood;
_root.skillPoints = _root.game.character.skillPoints;
_root.skillLevel = _root.game.character.skillLevel;
_root.multX = _root.game.character.mult;
_root.healthX = _root.game.character.health;
_root.cutScene++;
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(2);
_root.music2.gotoAndPlay(4);
_root.music3.gotoAndPlay(6);
_root.music4.gotoAndPlay(14);
_root.gotoAndStop("switchScreen");
}
if (end == true) {
_root.have = _root.game.character.have;
_root.wepEquipped = _root.game.character.wepEquipped;
_root.score = _root.game.character.score;
_root.blood = _root.game.character.blood;
_root.skillPoints = _root.game.character.skillPoints;
_root.skillLevel = _root.game.character.skillLevel;
_root.multX = _root.game.character.mult;
_root.healthX = _root.game.character.health;
Mouse.show();
_root.gotoAndStop("endScreen");
}
}
} else if (a == 2) {
if (_alpha > 0) {
_alpha = (_alpha - 5);
} else {
a = 0;
}
}
} else if ((((_root.cutScene == 4) && (_root.didScene4 == false)) || ((_root.cutScene == 8) && (_root.didScene8 == false))) || ((_root.cutScene == 12) && (_root.didScene12 == false))) {
gotoAndStop (4);
} else if (t < 5) {
t++;
} else {
_root.gotoAndStop("gameScreen");
}
} else if (_currentframe == 5) {
if (_root._currentframe == 7) {
if (_alpha < 100) {
_alpha = (_alpha + 2);
} else {
_root.have = _root.game.character.have;
_root.wepEquipped = _root.game.character.wepEquipped;
_root.score = _root.game.character.score;
_root.blood = _root.game.character.blood;
_root.skillPoints = _root.game.character.skillPoints;
_root.skillLevel = _root.game.character.skillLevel;
_root.multX = _root.game.character.mult;
_root.healthX = _root.game.character.health;
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.gotoAndStop("dieScreen");
}
} else if (_alpha > 0) {
_alpha = (_alpha - 2);
} else {
gotoAndStop (2);
}
}
}
Instance of Symbol 1288 MovieClip "bloodRing" in Frame 7
onClipEvent (load) {
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_root._currentframe == 7) {
if (_root.game.character.health > 0) {
if (_alpha > 0) {
_alpha = (_alpha - 2);
}
} else if (_alpha < 100) {
_alpha = (_alpha + 2);
}
} else if (_root._currentframe == 10) {
_alpha = 70;
} else {
_alpha = 0;
}
}
Frame 9
endScore = "Score: " + _root.score;
tempCom = 0;
a = 0;
while (a < 21) {
if (completed[a] == 1) {
tempCom++;
}
a++;
}
endRooms = ("Rooms Completed: " + tempCom) + "/20";
endRoomBonus = "Rooms Completed Bonus: " + (tempCom * 5000);
tempMin = 0;
while (tyme > 1800) {
tempMin++;
tyme = tyme - 1800;
}
tempSec = Math.floor(tyme / 30);
if (tempSec < 10) {
endTime = (("Time: " + tempMin) + ":0") + tempSec;
} else {
endTime = (("Time: " + tempMin) + ":") + tempSec;
}
endTotal = "Total Score: " + (score + (tempCom * 5000));
endKills = "Kills: " + tKills;
getVolume();
endFact = (("Fun Fact: The blood you've spilled could fill " + tempVol) + " ") + volName;
hsOutput = "";
did = false;
Frame 10
endScore = "Score: " + _root.score;
tempCom = 0;
a = 0;
while (a < 21) {
if (completed[a] == 1) {
tempCom++;
}
a++;
}
endRooms = ("Rooms Completed: " + tempCom) + "/20";
endRoomBonus = "Rooms Completed Bonus: " + (tempCom * 5000);
tempMin = 0;
while (tyme > 1800) {
tempMin++;
tyme = tyme - 1800;
}
tempSec = Math.floor(tyme / 30);
if (tempSec < 10) {
endTime = (("Time: " + tempMin) + ":0") + tempSec;
} else {
endTime = (("Time: " + tempMin) + ":") + tempSec;
}
endTotal = "Total Score: " + (score + (tempCom * 5000));
endKills = "Kills: " + tKills;
getVolume();
endFact = (("Fun Fact: The blood you've spilled could fill " + tempVol) + " ") + volName;
hsOutput = "";
did = false;
_root.sfx.gotoAndPlay(88);
Frame 11
endKills = "Kills: " + tKills;
getVolume();
endFact = (("Fun Fact: The blood you've spilled could fill " + tempVol) + " ") + volName;
_root.sfx.gotoAndPlay(88);
Symbol 20 MovieClip Frame 1
stop();
Symbol 55 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 56 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Instance of Symbol 42 MovieClip in Symbol 74 MovieClip Frame 1
on (release) {
getURL ("http://crazymonkeygames.com/", "_blank");
}
Instance of Symbol 73 MovieClip in Symbol 74 MovieClip Frame 80
onClipEvent (enterFrame) {
chance = random(90);
if (chance == 1) {
play();
}
}
Symbol 74 MovieClip Frame 151
if (_root.ad.meaty == true) {
_root.nextFrame();
} else {
stop();
}
Symbol 1324 MovieClip [__Packages.CMG_AS2.ScoreSubmitter] Frame 0
class CMG_AS2.ScoreSubmitter
{
function ScoreSubmitter () {
}
function submitScore(playerName, playerScore, playerSpecial) {
playerName = CMG_AS2.Utilities.trim(playerName);
gameVersion = CMG_AS2.Utilities.trim(gameVersion);
if (playerSpecial == null) {
playerSpecial = "";
} else {
playerSpecial = CMG_AS2.Utilities.trim(playerSpecial);
}
gameValidationCode = CMG_AS2.Utilities.trim(gameValidationCode);
if (((gameId < 1) || (gameVersion == "")) || (gameValidationCode == "")) {
if (responseHandler != null) {
responseHandler(RETURNCODE_REJECTED);
}
return(undefined);
}
var _local2 = new LoadVars();
_local2.name = playerName;
_local2.score = playerScore;
_local2.gameId = gameId;
_local2.gameVersion = gameVersion;
_local2.special = playerSpecial;
var _local6 = new CMG_AS2.MD5();
_local2.key = _local6.hash((((((((playerName + "|") + playerScore) + "|") + gameId) + "|") + playerSpecial) + "|") + gameValidationCode);
if (responseHandler != null) {
responseHandler(RETURNCODE_WORKING);
}
_local2.sendAndLoad(URL_SUBMITSCORE, _local2, "POST");
_local2.onLoad = function (ok) {
if (ok) {
var _local2 = CMG_AS2.Utilities.trim(this.ok);
if (_local2 == 1) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_SUCCESS);
}
} else if (_local2 == 0) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_REJECTED);
}
} else if (_local2 == 2) {
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_WRONGVERSION);
}
} else {
trace(("Unknown server response: '" + this.ok) + "'");
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_INTERNALERROR);
}
}
} else {
trace("Couldn't even load the page...'");
if (CMG_AS2.ScoreSubmitter.responseHandler != null) {
CMG_AS2.ScoreSubmitter.responseHandler(CMG_AS2.ScoreSubmitter.RETURNCODE_NETWORKERROR);
}
}
};
}
static function loadHighScorePage() {
getURL ((URL_VIEWSCORES + "?id=") + gameId, "_blank");
}
static function loadUpdatePage() {
getURL ((URL_UPDATEGAME + "?id=") + gameId, "_blank");
}
static var gameId = 0;
static var gameVersion = "1.0";
static var gameValidationCode = "";
static var responseHandler = null;
static var URL_VIEWSCORES = "http://scores.crazymonkeygames.com/hs/listscores.php";
static var URL_SUBMITSCORE = "http://scores.crazymonkeygames.com/hs/regscores2.php";
static var URL_UPDATEGAME = "http://scores.crazymonkeygames.com/hs/pleaseupdate.php";
static var RETURNCODE_WORKING = 0;
static var RETURNCODE_SUCCESS = 1;
static var RETURNCODE_REJECTED = 2;
static var RETURNCODE_WRONGVERSION = 3;
static var RETURNCODE_NETWORKERROR = 4;
static var RETURNCODE_INTERNALERROR = 5;
}
Symbol 1325 MovieClip [__Packages.CMG_AS2.Utilities] Frame 0
class CMG_AS2.Utilities
{
function Utilities () {
}
static function trim(txt_str) {
while (txt_str.charAt(0) == " ") {
txt_str = txt_str.substring(1, txt_str.length);
}
while (txt_str.charAt(txt_str.length - 1) == " ") {
txt_str = txt_str.substring(0, txt_str.length - 1);
}
return(txt_str);
}
}
Symbol 1326 MovieClip [__Packages.CMG_AS2.MD5] Frame 0
class CMG_AS2.MD5
{
function MD5 (b64pad, chrsz) {
if (b64pad != undefined) {
this.b64pad = b64pad;
}
if (((chrsz != undefined) && (chrsz == 8)) || (chrsz == 16)) {
this.chrsz = chrsz;
}
}
function hash(s) {
return(hex_md5(s));
}
function hex_md5(s) {
return(binl2hex(core_md5(str2binl(s), s.length * chrsz)));
}
function b64_md5(s) {
return(binl2b64(core_md5(str2binl(s), s.length * chrsz)));
}
function str_md5(s) {
return(binl2str(core_md5(str2binl(s), s.length * chrsz)));
}
function hex_hmac_md5(key, data) {
return(binl2hex(core_hmac_md5(key, data)));
}
function b64_hmac_md5(key, data) {
return(binl2b64(core_hmac_md5(key, data)));
}
function str_hmac_md5(key, data) {
return(binl2str(core_hmac_md5(key, data)));
}
function md5_cmn(q, a, b, x, s, t) {
return(safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s), b));
}
function md5_ff(a, b, c, d, x, s, t) {
return(md5_cmn((b & c) | ((~b) & d), a, b, x, s, t));
}
function md5_gg(a, b, c, d, x, s, t) {
return(md5_cmn((b & d) | (c & (~d)), a, b, x, s, t));
}
function md5_hh(a, b, c, d, x, s, t) {
return(md5_cmn((b ^ c) ^ d, a, b, x, s, t));
}
function md5_ii(a, b, c, d, x, s, t) {
return(md5_cmn(c ^ (b | (~d)), a, b, x, s, t));
}
function core_md5(x, len) {
x[len >> 5] = x[len >> 5] | (128 << (len % 32));
x[(((len + 64) >>> 9) << 4) + 14] = len;
var _local5 = 1732584193 /* 0x67452301 */;
var _local4 = -271733879;
var _local3 = -1732584194;
var _local2 = 271733878 /* 0x10325476 */;
var _local6 = 0;
while (_local6 < x.length) {
var _local11 = _local5;
var _local10 = _local4;
var _local9 = _local3;
var _local8 = _local2;
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 0], 7, -680876936);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 1], 12, -389564586);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 2], 17, 606105819);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 3], 22, -1044525330);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 4], 7, -176418897);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 5], 12, 1200080426);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 6], 17, -1473231341);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 7], 22, -45705983);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 8], 7, 1770035416);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 9], 12, -1958414417);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 10], 17, -42063);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 11], 22, -1990404162);
_local5 = md5_ff(_local5, _local4, _local3, _local2, x[_local6 + 12], 7, 1804603682);
_local2 = md5_ff(_local2, _local5, _local4, _local3, x[_local6 + 13], 12, -40341101);
_local3 = md5_ff(_local3, _local2, _local5, _local4, x[_local6 + 14], 17, -1502002290);
_local4 = md5_ff(_local4, _local3, _local2, _local5, x[_local6 + 15], 22, 1236535329);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 1], 5, -165796510);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 6], 9, -1069501632);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 11], 14, 643717713);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 0], 20, -373897302);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 5], 5, -701558691);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 10], 9, 38016083);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 15], 14, -660478335);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 4], 20, -405537848);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 9], 5, 568446438);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 14], 9, -1019803690);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 3], 14, -187363961);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 8], 20, 1163531501);
_local5 = md5_gg(_local5, _local4, _local3, _local2, x[_local6 + 13], 5, -1444681467);
_local2 = md5_gg(_local2, _local5, _local4, _local3, x[_local6 + 2], 9, -51403784);
_local3 = md5_gg(_local3, _local2, _local5, _local4, x[_local6 + 7], 14, 1735328473);
_local4 = md5_gg(_local4, _local3, _local2, _local5, x[_local6 + 12], 20, -1926607734);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 5], 4, -378558);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 8], 11, -2022574463);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 11], 16, 1839030562);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 14], 23, -35309556);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 1], 4, -1530992060);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 4], 11, 1272893353);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 7], 16, -155497632);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 10], 23, -1094730640);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 13], 4, 681279174);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 0], 11, -358537222);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 3], 16, -722521979);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 6], 23, 76029189);
_local5 = md5_hh(_local5, _local4, _local3, _local2, x[_local6 + 9], 4, -640364487);
_local2 = md5_hh(_local2, _local5, _local4, _local3, x[_local6 + 12], 11, -421815835);
_local3 = md5_hh(_local3, _local2, _local5, _local4, x[_local6 + 15], 16, 530742520);
_local4 = md5_hh(_local4, _local3, _local2, _local5, x[_local6 + 2], 23, -995338651);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 0], 6, -198630844);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 7], 10, 1126891415);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 14], 15, -1416354905);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 5], 21, -57434055);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 12], 6, 1700485571);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 3], 10, -1894986606);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 10], 15, -1051523);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 1], 21, -2054922799);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 8], 6, 1873313359);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 15], 10, -30611744);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 6], 15, -1560198380);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 13], 21, 1309151649);
_local5 = md5_ii(_local5, _local4, _local3, _local2, x[_local6 + 4], 6, -145523070);
_local2 = md5_ii(_local2, _local5, _local4, _local3, x[_local6 + 11], 10, -1120210379);
_local3 = md5_ii(_local3, _local2, _local5, _local4, x[_local6 + 2], 15, 718787259);
_local4 = md5_ii(_local4, _local3, _local2, _local5, x[_local6 + 9], 21, -343485551);
_local5 = safe_add(_local5, _local11);
_local4 = safe_add(_local4, _local10);
_local3 = safe_add(_local3, _local9);
_local2 = safe_add(_local2, _local8);
_local6 = _local6 + 16;
}
return(Array(_local5, _local4, _local3, _local2));
}
function core_hmac_md5(key, data) {
var _local3 = new Array(str2binl(key));
if (_local3.length > 16) {
_local3 = core_md5(_local3, key.length * chrsz);
}
var _local4 = new Array(16);
var _local5 = new Array(16);
var _local2 = 0;
while (_local2 < 16) {
_local4[_local2] = _local3[_local2] ^ 909522486;
_local5[_local2] = _local3[_local2] ^ 1549556828;
_local2++;
}
var _local6 = new Array(core_md5(_local4.concat(str2binl(data)), 512 + (data.length * chrsz)));
return(core_md5(_local5.concat(_local6), 640));
}
function safe_add(x, y) {
var _local1 = new Number((x & 65535) + (y & 65535));
var _local2 = new Number(((x >> 16) + (y >> 16)) + (_local1 >> 16));
return((_local2 << 16) | (_local1 & 65535));
}
function bit_rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function str2binl(str) {
var _local4 = new Array();
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (str.length * chrsz)) {
_local4[_local2 >> 5] = _local4[_local2 >> 5] | ((str.charCodeAt(_local2 / chrsz) & _local5) << (_local2 % 32));
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2str(bin) {
var _local4 = new String("");
var _local5 = (1 << chrsz) - 1;
var _local2 = 0;
while (_local2 < (bin.length * 32)) {
_local4 = _local4 + String.fromCharCode((bin[_local2 >> 5] >>> (_local2 % 32)) & _local5);
_local2 = _local2 + chrsz;
}
return(_local4);
}
function binl2hex(binarray) {
var _local3 = "0123456789abcdef";
var _local4 = new String("");
var _local1 = 0;
while (_local1 < (binarray.length * 4)) {
_local4 = _local4 + (_local3.charAt((binarray[_local1 >> 2] >> (((_local1 % 4) * 8) + 4)) & 15) + _local3.charAt((binarray[_local1 >> 2] >> ((_local1 % 4) * 8)) & 15));
_local1++;
}
return(_local4);
}
function binl2b64(binarray) {
var _local7 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
var _local5 = new String("");
var _local3 = 0;
while (_local3 < (binarray.length * 4)) {
var _local6 = ((((binarray[_local3 >> 2] >> (8 * (_local3 % 4))) & 255) << 16) | (((binarray[(_local3 + 1) >> 2] >> (8 * ((_local3 + 1) % 4))) & 255) << 8)) | ((binarray[(_local3 + 2) >> 2] >> (8 * ((_local3 + 2) % 4))) & 255);
var _local2 = 0;
while (_local2 < 4) {
if (((_local3 * 8) + (_local2 * 6)) > (binarray.length * 32)) {
_local5 = _local5 + b64pad;
} else {
_local5 = _local5 + _local7.charAt((_local6 >> (6 * (3 - _local2))) & 63);
}
_local2++;
}
_local3 = _local3 + 3;
}
return(_local5);
}
var b64pad = new String("");
var chrsz = new Number(8);
}
Instance of Symbol 82 MovieClip in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Instance of Symbol 84 MovieClip in Symbol 85 MovieClip Frame 1
onClipEvent (load) {
_rotation = random(360);
}
Symbol 89 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 5
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 6
stop();
Instance of Symbol 94 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 89 MovieClip in Symbol 97 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 94 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 89 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (enterFrame) {
chance = random(20) + 1;
if (chance == 1) {
play();
}
}
Instance of Symbol 97 MovieClip in Symbol 98 MovieClip Frame 1
onClipEvent (load) {
stX = _x;
stY = _y;
}
onClipEvent (enterFrame) {
_alpha = random(50);
_x = ((stX + random(20)) - 10);
_y = ((stY + random(20)) - 10);
}
Symbol 105 Button
on (release) {
getURL ("http://crazymonkeygames.com/guide/Saturday-Night-Bloodfest/", _blank);
}
Instance of Symbol 126 MovieClip in Symbol 127 MovieClip Frame 1
on (press) {
startDrag (this, true, 0, 0, 300, 0);
go = true;
}
on (release, releaseOutside) {
stopDrag();
go = false;
}
onClipEvent (load) {
go = false;
_x = (_root.music.setVol * 3);
}
onClipEvent (enterFrame) {
if (go == true) {
_root.opt[3] = _x / 3;
_root.music1.vol = _x / 3;
_root.music2.vol = _x / 3;
_root.music3.vol = _x / 3;
}
}
Instance of Symbol 126 MovieClip in Symbol 128 MovieClip Frame 1
on (press) {
startDrag (this, true, 0, 0, 300, 0);
go = true;
}
on (release, releaseOutside) {
stopDrag();
go = false;
}
onClipEvent (load) {
go = false;
_x = (_root.sfx.setVol * 3);
t = 0;
}
onClipEvent (enterFrame) {
if (go == true) {
_root.sfx.setVol = _x / 3;
_root.sfx.vol = _x / 3;
t++;
if (t > 8) {
t = 0;
_root.sfx.gotoAndPlay(2);
}
}
}
Symbol 132 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
}
}
Symbol 135 Button
on (release) {
if (_root.opt[4] == 1) {
_root.opt[4] = 0;
} else {
_root.opt[4] = 1;
}
}
Symbol 136 Button
on (release) {
if (_root.opt[0] == 1) {
_root.opt[0] = 0;
} else {
_root.opt[0] = 1;
}
}
Symbol 137 Button
on (release) {
if (_root.opt[1] == 1) {
_root.opt[1] = 0;
} else {
_root.opt[1] = 1;
}
}
Symbol 169 Button
on (release) {
gotoAndStop (6);
}
Symbol 207 MovieClip Frame 1
stop();
Symbol 207 MovieClip Frame 3
gotoAndStop (1);
Symbol 207 MovieClip Frame 5
gotoAndStop (1);
Symbol 207 MovieClip Frame 7
gotoAndStop (1);
Symbol 207 MovieClip Frame 9
gotoAndStop (1);
Symbol 207 MovieClip Frame 11
gotoAndStop (1);
Symbol 207 MovieClip Frame 13
gotoAndStop (1);
Symbol 207 MovieClip Frame 15
gotoAndStop (1);
Symbol 207 MovieClip Frame 17
gotoAndStop (1);
Symbol 207 MovieClip Frame 19
gotoAndStop (1);
Symbol 207 MovieClip Frame 21
gotoAndStop (1);
Symbol 207 MovieClip Frame 23
gotoAndStop (1);
Symbol 207 MovieClip Frame 25
gotoAndStop (1);
Symbol 207 MovieClip Frame 27
gotoAndStop (1);
Symbol 207 MovieClip Frame 29
gotoAndStop (1);
Symbol 207 MovieClip Frame 31
gotoAndStop (1);
Symbol 207 MovieClip Frame 33
gotoAndStop (1);
Symbol 207 MovieClip Frame 35
gotoAndStop (1);
Symbol 207 MovieClip Frame 37
gotoAndStop (1);
Symbol 207 MovieClip Frame 39
gotoAndStop (1);
Symbol 207 MovieClip Frame 41
gotoAndStop (1);
Symbol 207 MovieClip Frame 43
gotoAndStop (1);
Symbol 207 MovieClip Frame 45
gotoAndStop (1);
Symbol 207 MovieClip Frame 47
gotoAndStop (1);
Symbol 207 MovieClip Frame 49
gotoAndStop (1);
Symbol 207 MovieClip Frame 51
gotoAndStop (1);
Symbol 207 MovieClip Frame 53
gotoAndStop (1);
Symbol 207 MovieClip Frame 55
gotoAndStop (1);
Symbol 207 MovieClip Frame 57
gotoAndStop (1);
Symbol 207 MovieClip Frame 59
gotoAndStop (1);
Symbol 207 MovieClip Frame 61
gotoAndStop (1);
Symbol 207 MovieClip Frame 63
gotoAndStop (1);
Symbol 207 MovieClip Frame 65
gotoAndStop (1);
Symbol 207 MovieClip Frame 67
gotoAndStop (1);
Symbol 207 MovieClip Frame 69
gotoAndStop (1);
Symbol 207 MovieClip Frame 71
gotoAndStop (1);
Symbol 207 MovieClip Frame 73
gotoAndStop (1);
Symbol 207 MovieClip Frame 75
gotoAndStop (1);
Symbol 207 MovieClip Frame 77
gotoAndStop (1);
Symbol 207 MovieClip Frame 79
gotoAndStop (1);
Symbol 207 MovieClip Frame 81
gotoAndStop (1);
Symbol 207 MovieClip Frame 83
gotoAndStop (1);
Symbol 207 MovieClip Frame 85
gotoAndStop (1);
Symbol 207 MovieClip Frame 87
gotoAndStop (1);
Symbol 207 MovieClip Frame 89
gotoAndStop (1);
Symbol 207 MovieClip Frame 91
gotoAndStop (1);
Symbol 207 MovieClip Frame 93
gotoAndStop (1);
Symbol 207 MovieClip Frame 95
gotoAndStop (1);
Symbol 207 MovieClip Frame 97
gotoAndStop (1);
Symbol 207 MovieClip Frame 99
gotoAndStop (1);
Symbol 207 MovieClip Frame 101
gotoAndStop (1);
Symbol 207 MovieClip Frame 103
gotoAndStop (1);
Symbol 207 MovieClip Frame 105
gotoAndStop (1);
Symbol 207 MovieClip Frame 107
gotoAndStop (1);
Symbol 207 MovieClip Frame 109
gotoAndStop (1);
Symbol 207 MovieClip Frame 111
gotoAndStop (1);
Symbol 207 MovieClip Frame 113
gotoAndStop (1);
Symbol 207 MovieClip Frame 115
gotoAndStop (1);
Symbol 207 MovieClip Frame 117
gotoAndStop (1);
Symbol 207 MovieClip Frame 119
gotoAndStop (1);
Symbol 207 MovieClip Frame 121
gotoAndStop (1);
Symbol 207 MovieClip Frame 123
gotoAndStop (1);
Symbol 214 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 3
gotoAndStop (1);
Symbol 214 MovieClip Frame 5
gotoAndStop (1);
Symbol 214 MovieClip Frame 7
gotoAndStop (1);
Symbol 214 MovieClip Frame 9
gotoAndStop (1);
Symbol 214 MovieClip Frame 11
gotoAndStop (1);
Symbol 214 MovieClip Frame 13
gotoAndStop (1);
Symbol 214 MovieClip Frame 15
gotoAndStop (1);
Symbol 219 MovieClip Frame 1
stop();
Symbol 219 MovieClip Frame 5
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 44);
Symbol 219 MovieClip Frame 9
stop();
Symbol 219 MovieClip Frame 14
_root.sfx.gotoAndPlay(((random(4) + 1) * 2) + 44);
Instance of Symbol 238 MovieClip "p1" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 238 MovieClip "b1" in Symbol 273 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 238 MovieClip "p2" in Symbol 273 MovieClip Frame 2
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 238 MovieClip "b2" in Symbol 273 MovieClip Frame 2
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 238 MovieClip "p2" in Symbol 273 MovieClip Frame 11
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Instance of Symbol 238 MovieClip "b2" in Symbol 273 MovieClip Frame 11
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
};
}
Symbol 296 Button
on (release) {
if (cName != "Enter Name Here") {
gameMode = 0;
setDefaults();
gotoAndStop ("gameScreen");
} else {
txtNameThing.play();
_root.sfx.gotoAndPlay(92);
}
}
Symbol 300 Button
on (release) {
gameMode = 1;
setDefaults();
gotoAndStop ("gameScreen");
}
Symbol 304 Button
on (release) {
gotoAndStop (5);
}
Symbol 312 Button
on (release) {
if (credits.p == 0) {
credits.p = 1;
credits.gotoAndStop(2);
} else {
credits.p = 0;
}
}
Symbol 316 Button
on (release) {
getURL ("http://crazymonkeygames.com/", _blank);
}
Symbol 320 Button
on (release) {
if (credits.p == 0) {
credits.p = 1;
credits.gotoAndStop(1);
} else {
credits.p = 0;
}
}
Symbol 333 MovieClip Frame 1
stop();
Symbol 348 Button
on (release) {
getURL ("http://www.diseasedproductions.net", _blank);
}
Symbol 352 Button
on (release) {
getURL ("http://www.lee-miller.co.uk", _blank);
}
Symbol 356 Button
on (release) {
getURL ("http://crazymonkeygames.com", _blank);
}
Symbol 359 MovieClip Frame 1
stop();
Symbol 363 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=548", _blank);
}
Symbol 394 MovieClip Frame 13
gotoAndPlay (3);
Symbol 407 MovieClip Frame 1
stop();
Symbol 419 MovieClip Frame 6
stop();
Symbol 452 MovieClip Frame 6
removeMovieClip("");
stop();
Symbol 493 MovieClip Frame 13
removeMovieClip("");
stop();
Symbol 493 MovieClip Frame 26
removeMovieClip("");
Symbol 493 MovieClip Frame 43
removeMovieClip("");
Symbol 531 MovieClip Frame 29
stop();
Symbol 625 MovieClip Frame 1
stop();
Symbol 672 MovieClip Frame 16
removeMovieClip("");
Symbol 680 MovieClip Frame 1
stop();
Symbol 680 MovieClip Frame 9
_parent.removeMovieClip("");
Symbol 680 MovieClip Frame 14
_parent.removeMovieClip("");
Instance of Symbol 680 MovieClip "l" in Symbol 681 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_parent._name != "laser") {
play();
}
} else {
stop();
}
}
Symbol 741 MovieClip Frame 1
stop();
Symbol 741 MovieClip Frame 2
_root.sfx.gotoAndPlay(78);
Instance of Symbol 238 MovieClip "pt" in Symbol 741 MovieClip Frame 4
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent.hitFun();
}
Symbol 741 MovieClip Frame 11
gotoAndStop (1);
Symbol 741 MovieClip Frame 36
gotoAndPlay (12);
Symbol 741 MovieClip Frame 38
gotoAndStop (37);
Symbol 741 MovieClip Frame 40
stop();
Symbol 741 MovieClip Frame 41
_root.sfx.gotoAndPlay(78);
Instance of Symbol 238 MovieClip "pt" in Symbol 741 MovieClip Frame 43
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent.hitFun();
}
Symbol 741 MovieClip Frame 50
gotoAndStop (40);
Symbol 741 MovieClip Frame 51
stop();
Symbol 741 MovieClip Frame 52
_root.sfx.gotoAndPlay(78);
Instance of Symbol 238 MovieClip "pt" in Symbol 741 MovieClip Frame 54
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent.hitFun();
}
Symbol 741 MovieClip Frame 61
gotoAndStop (51);
Symbol 741 MovieClip Frame 62
stop();
Symbol 741 MovieClip Frame 63
_root.sfx.gotoAndPlay(78);
Instance of Symbol 238 MovieClip "pt" in Symbol 741 MovieClip Frame 65
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent.hitFun();
}
Symbol 741 MovieClip Frame 72
gotoAndStop (62);
Symbol 741 MovieClip Frame 73
stop();
Symbol 741 MovieClip Frame 74
_root.sfx.gotoAndPlay(78);
Instance of Symbol 238 MovieClip "pt" in Symbol 741 MovieClip Frame 76
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent.hitFun();
}
Symbol 741 MovieClip Frame 83
gotoAndStop (73);
Symbol 741 MovieClip Frame 84
stop();
Symbol 741 MovieClip Frame 85
_root.sfx.gotoAndPlay(78);
Instance of Symbol 238 MovieClip "pt" in Symbol 741 MovieClip Frame 87
onClipEvent (load) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent.hitFun();
}
Symbol 741 MovieClip Frame 94
gotoAndStop (84);
Symbol 768 MovieClip Frame 71
gotoAndPlay (11);
Symbol 770 MovieClip Frame 1
_rotation = (_rotation + random(10));
Symbol 786 MovieClip Frame 31
removeMovieClip("");
stop();
Symbol 793 MovieClip Frame 11
gotoAndPlay (3);
Symbol 829 MovieClip Frame 1
stop();
Symbol 829 MovieClip Frame 15
gotoAndStop (1);
Symbol 832 MovieClip Frame 1
stop();
Symbol 832 MovieClip Frame 16
gotoAndStop (1);
Symbol 835 MovieClip Frame 1
stop();
Symbol 835 MovieClip Frame 16
gotoAndStop (1);
Symbol 852 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 1
stop();
Symbol 854 MovieClip Frame 16
gotoAndStop (1);
Symbol 857 MovieClip Frame 1
stop();
Symbol 857 MovieClip Frame 16
gotoAndStop (1);
Symbol 860 MovieClip Frame 1
stop();
Symbol 860 MovieClip Frame 16
gotoAndStop (1);
Symbol 867 MovieClip Frame 1
stop();
_parent.clawAttack = false;
Symbol 867 MovieClip Frame 26
gotoAndStop (1);
Instance of Symbol 238 MovieClip "pt" in Symbol 867 MovieClip Frame 45
onClipEvent (enterFrame) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent._parent.hitFun(_parent._name);
}
Instance of Symbol 238 MovieClip "pt" in Symbol 867 MovieClip Frame 85
onClipEvent (enterFrame) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent._parent.hitFun(_parent._name);
}
Symbol 867 MovieClip Frame 101
_parent.clawAttack = false;
gotoAndStop (1);
Instance of Symbol 238 MovieClip "pt" in Symbol 867 MovieClip Frame 120
onClipEvent (enterFrame) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent._parent.hitFun(_parent._name);
}
Instance of Symbol 238 MovieClip "pt" in Symbol 867 MovieClip Frame 130
onClipEvent (enterFrame) {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
x = point.x;
y = point.y;
_parent._parent.hitFun(_parent._name);
}
Symbol 867 MovieClip Frame 143
_parent.clawAttack = false;
gotoAndStop (1);
Instance of Symbol 829 MovieClip "s9" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s8" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 829 MovieClip "s12" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 829 MovieClip "s6" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 829 MovieClip "s3" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s7" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s1" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s2" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s11" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s10" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s4" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 832 MovieClip "s5" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g8" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g2" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g4" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g6" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g7" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g5" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g3" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 835 MovieClip "g1" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 854 MovieClip "globe" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 857 MovieClip "a2" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 857 MovieClip "a1" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 867 MovieClip "c1" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Instance of Symbol 867 MovieClip "c2" in Symbol 868 MovieClip Frame 1
onClipEvent (load) {
fun = function () {
point = new Object();
point.x = _x;
point.y = _y;
_parent.localToGlobal(point);
};
}
Symbol 938 MovieClip Frame 27
this.removeMovieClip("");
stop();
Symbol 938 MovieClip Frame 54
this.removeMovieClip("");
stop();
Symbol 945 MovieClip Frame 1
tn = 0;
tar = new Array();
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
if (_root.roomOn != 19) {
c = function (n) {
getTile(this[n]._x, this[n]._y);
if (bg["c" + yp][xp] == 1) {
this[n].spark();
}
if (this[(("e" + yp) + "e") + xp].is == true) {
if (this[(("e" + yp) + "e") + xp].fFr == true) {
if (this[(("e" + yp) + "e") + xp].health > 0) {
_root.tHits++;
switch (logic.roomOn) {
case 8 :
if (this[n].isFire == true) {
this[(("e" + yp) + "e") + xp].health = this[(("e" + yp) + "e") + xp].health - this[n].pow;
this[n].used = this[n].used - 1;
this[n].blood();
} else {
this[n].used = this[n].used - 1;
this[n].blood();
}
break;
case 17 :
if (this[n].isOrb == true) {
this[(("e" + yp) + "e") + xp].health = this[(("e" + yp) + "e") + xp].health - this[n].pow;
this[n].used = this[n].used - 1;
this[n].blood();
} else {
this[n].used = this[n].used - 1;
this[n].blood();
}
break;
default :
this[(("e" + yp) + "e") + xp].health = this[(("e" + yp) + "e") + xp].health - this[n].pow;
this[n].used = this[n].used - 1;
this[n].blood();
}
}
}
}
};
} else {
c = function (n) {
getTile(this[n]._x, this[n]._y);
if (bg["c" + yp][xp] == 1) {
this[n].spark();
}
dx = this[n]._x - bossMC._x;
if (Math.abs(dx) < 100) {
dy = this[n]._y - bossMC._y;
if (Math.abs(dx) < 100) {
a = 0;
while (a < tar.length) {
if (bossMC[tar[a]].health > 0) {
bossMC[tar[a]].fun();
lpX = bossMC[tar[a]].point.x;
lpY = bossMC[tar[a]].point.y;
dx2 = this[n]._x - lpX;
if (Math.abs(dx2) < 11) {
dy2 = this[n]._y - lpY;
if (Math.abs(dy2) < 11) {
if (bossMC[tar[a]].ready == true) {
bossMC[tar[a]].health = bossMC[tar[a]].health - this[n].pow;
bossMC[tar[a]].gotoAndPlay(2);
bossMC[tar[a]].play();
}
this[n].used = this[n].used - 1;
this[n].blood();
}
}
}
a++;
}
}
}
};
}
Instance of Symbol 238 MovieClip "bg" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
collidable = new Array(0, 0, 1);
level1 = new Object();
level1.r0 = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level1.r1 = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level1.r2 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r3 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r4 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r5 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r6 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r7 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r8 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r9 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r10 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r11 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r12 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r13 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r14 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r15 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r16 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r17 = new Array(2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2);
level1.r18 = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level1.r19 = new Array(2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2);
level1.h = 20;
levelOn = 1;
levelLength = this["level" + levelOn].r0.length;
levelHeight = this["level" + levelOn].h;
myBitmap = new flash.display.BitmapData(levelLength * 20, levelHeight * 20, true, 16776960);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
a = 0;
while (a < levelHeight) {
this["c" + a] = new Array();
this["m" + a] = new Array();
b = 0;
while (b < levelLength) {
this["c" + a].push(collidable[this["level" + levelOn]["r" + a][b]]);
if (collidable[this["level" + levelOn]["r" + a][b]] == 1) {
this["m" + a].push(1);
} else {
this["m" + a].push(0);
}
b++;
}
a++;
}
_parent.walls.gotoAndStop(1);
_parent.walls.f.gotoAndStop(_root.floorFra[_root.roomOn]);
var myMatrix = (new flash.geom.Matrix());
var myColorTransform = (new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0));
var translateMatrix = (new flash.geom.Matrix());
translateMatrix.translate(0, 0);
myMatrix.concat(translateMatrix);
this.myBitmap.draw(_parent.walls, myMatrix, myColorTransform, "normal");
}
Instance of Symbol 238 MovieClip "fg" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
myBitmap = new flash.display.BitmapData(_parent.bg.levelLength * 20, _parent.bg.levelHeight * 20, true, 16776960);
this.createEmptyMovieClip("bg", -1);
bg.attachBitmap(myBitmap, -1);
_parent.walls.gotoAndStop(2);
a = 0;
while (a < 52) {
_parent.walls.w["w" + a].gotoAndStop(_root.floorFra[_root.roomOn]);
a++;
}
var myMatrix = (new flash.geom.Matrix());
var myColorTransform = (new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0));
var translateMatrix = (new flash.geom.Matrix());
translateMatrix.translate(0, 0);
myMatrix.concat(translateMatrix);
this.myBitmap.draw(_parent.walls, myMatrix, myColorTransform, "normal");
}
Instance of Symbol 273 MovieClip "character" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
Mouse.hide();
_root.pause = false;
testMode = false;
k = new Array(87, 83, 65, 68, 16, 69, 82, 32, 70, 81, 80);
_root.bloodBar.bar._y = 152;
weaponName = new Array(0, "Pistol", "Dual Pistols", "SMG", "Sawed Off Shotgun", "Laser Pistol", "Magnum", "Machine Pistol", "Assault Rifle", "Pump Shotgun", "Laser Rifle", "Dual Magnums", "Dual Machine Pistols", "Light Machinegun", "Battle Rifle", "Semi-Auto Shtogun", "Laser Cannon", "Auto Shotgun", "Gatling Laser");
pow = new Array(0, 1, 1, 1.5, 2, 1, 12, 1, 2.5, 2, 4, 12, 1, 4, 6, 3, 12, 3, 6);
auto = new Array(0, 1, 1, 2, 1, 2, 1, 2, 2, 1, 1, 1, 2, 2, 2, 1, 1, 2, 2);
cap = new Array(0, 10, 20, 40, 2, 50, 6, 25, 35, 7, 30, 12, 75, 100, 30, 8, 10, 20, 100);
acc = new Array(0, 10, 15, 15, 30, 8, 4, 20, 10, 30, 8, 4, 20, 20, 10, 30, 8, 30, 8);
rof = new Array(0, 3, 1, 4, 5, 2, 10, 2, 3, 10, 8, 4, 1, 2, 4, 2, 10, 3, 1);
rld = new Array(0, 20, 25, 30, 25, 40, 30, 20, 30, 35, 35, 40, 10, 60, 20, 30, 40, 60, 50);
bul = new Array(0, 1, 1, 1, 2, 3, 1, 1, 1, 2, 4, 1, 1, 1, 1, 2, 4, 2, 3);
isDual = new Array(0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0);
ammo = new Array(0, 10, 20, 40, 2, 50, 6, 25, 35, 7, 30, 12, 40, 100, 30, 8, 10, 20, 100);
sfx = new Array(0, 2, 2, 4, 16, 14, 10, 4, 8, 16, 12, 10, 4, 6, 8, 18, 12, 18, 14);
shell = new Array(0, 1, 1, 1, 3, 4, 1, 1, 2, 3, 4, 1, 1, 2, 2, 3, 4, 3, 4);
have = _root.have;
fr = new Array(0, 1, 2, 3, 4, 15, 5, 7, 9, 10, 17, 6, 8, 11, 12, 13, 18, 14, 19, 20);
reloadTime = 0;
reloading = false;
wepEquipped = _root.wepEquipped;
wepText = function () {
_root.wep = weaponName[wepEquipped];
_root.wepIcon.gotoAndStop(fr[wepEquipped]);
gotoAndStop(wepEquipped);
};
wepText();
handUsed = 1;
score = _root.score;
tempScore2 = 0;
mult = _root.multX;
blood = _root.blood;
maxBlood = 230;
skillPoints = _root.skillPoints;
skillLevel = _root.skillLevel;
color.gotoAndStop(_root.charColor);
powerUp = 0;
powerUpTime = 0;
mult2 = 1;
mult2Time = 0;
speed = 5;
health = _root.healthX;
_x = _root.stX;
_y = _root.stY;
endAnimation = false;
endX = 0;
endY = 0;
fire = false;
coolDown = 0;
i = 0;
shoot = function () {
if (coolDown < 1) {
if (ammo[wepEquipped] > 0) {
if (powerUp != 5) {
ammo[wepEquipped] = ammo[wepEquipped] - 1;
}
if (isDual[wepEquipped] == 1) {
if (handUsed == 1) {
handUsed = 2;
} else {
handUsed = 1;
}
} else {
handUsed = 1;
}
_root.cursor.gotoAndPlay(2);
_root.sfx.gotoAndPlay(sfx[wepEquipped]);
switch (bul[wepEquipped]) {
case 1 :
this["p" + handUsed].fun();
i++;
duplicateMovieClip (_parent.bullet, "b" + i, i);
_parent["b" + i]._x = this["p" + handUsed].x;
_parent["b" + i]._y = this["p" + handUsed].y;
_parent["b" + i]._rotation = _rotation + (random(acc[wepEquipped]) - (acc[wepEquipped] / 2));
_parent["b" + i].pow = pow[wepEquipped];
if (powerUp == 3) {
_parent["b" + i].isFire = true;
} else {
_parent["b" + i].isFire = false;
}
break;
case 2 :
this["p" + handUsed].fun();
a = 0;
while (a < 6) {
i++;
duplicateMovieClip (_parent.bullet, "b" + i, i);
_parent["b" + i]._x = this["p" + handUsed].x;
_parent["b" + i]._y = this["p" + handUsed].y;
_parent["b" + i]._rotation = _rotation + (random(acc[wepEquipped]) - (acc[wepEquipped] / 2));
_parent["b" + i].isShot = true;
_parent["b" + i].pow = pow[wepEquipped];
if (powerUp == 3) {
_parent["b" + i].isFire = true;
} else {
_parent["b" + i].isFire = false;
}
a++;
}
break;
case 3 :
this["p" + handUsed].fun();
i++;
duplicateMovieClip (_parent.laser, "b" + i, i);
_parent["b" + i]._x = this["p" + handUsed].x;
_parent["b" + i]._y = this["p" + handUsed].y;
_parent["b" + i]._rotation = _rotation + (random(acc[wepEquipped]) - (acc[wepEquipped] / 2));
_parent["b" + i].pow = pow[wepEquipped];
_parent["b" + i].isWeak = true;
if (powerUp == 3) {
i++;
duplicateMovieClip (_parent.bullet, "b" + i, i);
_parent["b" + i]._x = this["p" + handUsed].x;
_parent["b" + i]._y = this["p" + handUsed].y;
_parent["b" + i]._rotation = _rotation + (random(acc[wepEquipped]) - (acc[wepEquipped] / 2));
_parent["b" + i].pow = pow[wepEquipped];
_parent["b" + i].isFire = true;
}
break;
case 4 :
this["p" + handUsed].fun();
i++;
duplicateMovieClip (_parent.laser, "b" + i, i);
_parent["b" + i]._x = this["p" + handUsed].x;
_parent["b" + i]._y = this["p" + handUsed].y;
_parent["b" + i]._rotation = _rotation + (random(acc[wepEquipped]) - (acc[wepEquipped] / 2));
_parent["b" + i].pow = pow[wepEquipped];
_parent["b" + i].isWeak = false;
if (powerUp != 3) {
break;
}
i++;
duplicateMovieClip (_parent.bullet, "b" + i, i);
_parent["b" + i]._x = this["p" + handUsed].x;
_parent["b" + i]._y = this["p" + handUsed].y;
_parent["b" + i]._rotation = _rotation + (random(acc[wepEquipped]) - (acc[wepEquipped] / 2));
_parent["b" + i].pow = pow[wepEquipped];
_parent["b" + i].isFire = true;
}
if (bul[wepEquipped] < 3) {
this["b" + handUsed].fun();
i++;
duplicateMovieClip (_parent.fla, "f" + i, i);
_parent["f" + i]._x = this["b" + handUsed].x;
_parent["f" + i]._y = this["b" + handUsed].y;
_parent["f" + i]._rotation = _rotation + (random(10) - 5);
}
i++;
duplicateMovieClip (_parent.shell, "f" + i, i);
_parent["f" + i]._x = _x;
_parent["f" + i]._y = _y;
_parent["f" + i].gotoAndStop(shell[wepEquipped]);
if (handUsed == 1) {
_parent["f" + i]._rotation = _rotation + (random(20) - 10);
} else {
_parent["f" + i]._rotation = (_rotation - 180) + (random(20) - 10);
}
coolDown = rof[wepEquipped];
if (auto[wepEquipped] == 1) {
fire = false;
}
}
}
};
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (endAnimation == false) {
if (powerUpTime > 0) {
powerUpTime--;
} else {
powerUp = 0;
}
if (mult2Time > 0) {
mult2Time--;
} else {
mult2 = 1;
}
switch (powerUp) {
case 1 :
speed = 10;
i++;
duplicateMovieClip (_parent.AAbody, "ab" + i, i);
_parent["ab" + i]._x = _x;
_parent["ab" + i]._y = _y;
_parent["ab" + i]._rotation = _rotation;
_parent["ab" + i].gotoAndStop(_currentframe);
_parent["ab" + i].color.gotoAndStop(color._currentframe);
_parent["ab" + i].legs.gotoAndStop(legs._currentframe);
i++;
duplicateMovieClip (_parent.AAhead, "ab" + i, i);
_parent["ab" + i]._x = _x;
_parent["ab" + i]._y = _y;
_parent["ab" + i]._rotation = _parent.head._rotation;
_parent["ab" + i].gotoAndStop(_parent.head._currentframe);
invincible = false;
_parent.ball1.active = false;
_parent.ball2.active = false;
color.gotoAndStop(_root.charColor);
_parent.head.gotoAndStop(_root.charColor);
break;
case 2 :
invincible = true;
speed = 5;
_parent.ball1.active = false;
_parent.ball2.active = false;
color.play();
_parent.head.play();
break;
case 3 :
invincible = false;
speed = 5;
_parent.ball1.active = false;
_parent.ball2.active = false;
_parent.head.gotoAndStop(_root.charColor);
color.gotoAndStop(_root.charColor);
break;
case 4 :
_parent.ball1.active = true;
_parent.ball2.active = true;
_parent.head.gotoAndStop(_root.charColor);
color.gotoAndStop(_root.charColor);
invincible = false;
speed = 5;
break;
case 5 :
ammo[wepEquipped] = cap[wepEquipped];
invincible = false;
speed = 5;
_parent.ball1.active = false;
_parent.ball2.active = false;
_parent.head.gotoAndStop(_root.charColor);
color.gotoAndStop(_root.charColor);
break;
case 0 :
invincible = false;
speed = 5;
_parent.ball1.active = false;
_parent.ball2.active = false;
_parent.head.gotoAndStop(_root.charColor);
color.gotoAndStop(_root.charColor);
}
if (Key.isDown(k[0]) || (Key.isDown(38))) {
yVel = -speed;
} else if (Key.isDown(k[1]) || (Key.isDown(40))) {
yVel = speed;
} else {
yVel = 0;
}
if (Key.isDown(k[2]) || (Key.isDown(37))) {
xVel = -speed;
} else if (Key.isDown(k[3]) || (Key.isDown(39))) {
xVel = speed;
} else {
xVel = 0;
}
getTile(_x + xVel, _y);
if (_parent.bg["c" + yp][xp] == 0) {
_x = (_x + xVel);
}
getTile(_x, _y + yVel);
if (_parent.bg["c" + yp][xp] == 0) {
_y = (_y + yVel);
}
if ((Math.abs(xVel) + Math.abs(yVel)) != 0) {
legs.play();
} else {
legs.gotoAndStop(1);
}
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 50) / Math.PI));
_parent.head._x = _x;
_parent.head._y = _y;
if (fire == true) {
shoot();
}
if (coolDown > 0) {
coolDown--;
}
if (testMode == true) {
if (Key.isDown(k[5])) {
if (wKReady == true) {
wKReady = false;
wepEquipped = wepEquipped + 1;
if (wepEquipped > 18) {
wepEquipped = 1;
}
wepText();
}
} else if (Key.isDown(k[9])) {
if (wKReady == true) {
wKReady = false;
wepEquipped = wepEquipped - 1;
if (wepEquipped < 1) {
wepEquipped = 18;
}
wepText();
}
} else {
wKReady = true;
}
}
if (reloading == true) {
if (reloadTime > 0) {
reloadTime = reloadTime - 1;
} else {
reloading = false;
ammo[wepEquipped] = cap[wepEquipped];
_root.sfx.gotoAndPlay(76);
}
} else if (Key.isDown(82) || (Key.isDown(96))) {
if (ammo[wepEquipped] < cap[wepEquipped]) {
ammo[wepEquipped] = 0;
}
}
if (ammo[wepEquipped] > 25) {
_root.ammo.gotoAndStop(27);
_root.ammo.ammo = "x" + ammo[wepEquipped];
} else if (ammo[wepEquipped] < 1) {
if (reloading == false) {
reloading = true;
reloadTime = rld[wepEquipped];
_root.sfx.gotoAndPlay(68 + ((random(3) + 1) * 2));
}
_root.ammo.gotoAndStop(1);
_root.ammo.bar._xscale = 100 - ((reloadTime / rld[wepEquipped]) * 100);
} else {
_root.ammo.gotoAndStop(ammo[wepEquipped] + 1);
}
_root.score = score;
if (tempScore2 < score) {
tempScore3 = score - tempScore2;
if (tempScore3 < 10) {
tempScore2 = tempScore2 + 1;
} else if (tempScore3 < 100) {
tempScore2 = tempScore2 + 10;
} else if (tempScore3 < 1000) {
tempScore2 = tempScore2 + 100;
} else if (tempScore3 < 10000) {
tempScore2 = tempScore2 + 1000;
} else if (tempScore3 < 100000) {
tempScore2 = tempScore2 + 10000;
} else if (tempScore3 < 1000000) {
tempScore2 = tempScore2 + 100000;
} else if (tempScore3 < 10000000) {
tempScore2 = tempScore2 + 1000000;
} else if (tempScore3 < 100000000) {
tempScore2 = tempScore2 + 10000000;
}
}
_root.scoreCounter.sc = score;
if (health < 0) {
health = 0;
}
_root.health = health;
_root.mult.bar.ball._x = mult % 80;
tempMult = Math.floor(mult / 80);
if (tempMult < 1) {
tempMult = 1;
}
_root.mult.mult = "x" + tempMult;
if (mult > 0) {
mult = mult - (tempMult / 8);
} else {
mult = 0;
}
tempBlood = 152 + (-152 * (blood / maxBlood));
if (tempBlood < 0) {
tempBlood = 0;
}
if (_root.bloodBar.bar._y < (Math.round(tempBlood) - 1)) {
_root.bloodBar.bar._y = _root.bloodBar.bar._y + 1;
} else if (_root.bloodBar.bar._y > (Math.round(tempBlood) + 1)) {
_root.bloodBar.bar._y = _root.bloodBar.bar._y - 1;
}
_root.bloodBar.top._y = _root.bloodBar.bar._y;
if (blood >= maxBlood) {
if (skillLevel < 2) {
_root.wpa.play();
}
skillLevel = skillLevel + 1;
skillPoints = skillPoints + 1;
blood = blood - maxBlood;
maxBlood = maxBlood * 1.6;
}
_root.tyme++;
} else {
xd = _x - endX;
yd = _y - endY;
if (Math.abs(xd) > Math.abs(yd)) {
fir = 0;
} else {
fir = 1;
}
if ((fir = 0)) {
if (_x != endX) {
_x = (_x + 5);
legs.play();
_rotation = 0;
} else if (_y != endY) {
if (yd > 0) {
_y = (_y - 5);
legs.play();
_rotation = -90;
} else {
_y = (_y + 5);
legs.play();
_rotation = 90;
}
} else {
if (yd > 0) {
_root.fadeOut.a = 1;
_root.fadeOut.b = 2;
} else {
_root.fadeOut.a = 1;
_root.fadeOut.b = 2;
}
legs.stop();
_alpha = (_alpha - 5);
}
} else if (_y != endY) {
if (yd > 0) {
_y = (_y - 5);
legs.play();
_rotation = -90;
} else {
_y = (_y + 5);
legs.play();
_rotation = 90;
}
} else if (_x != endX) {
_x = (_x + 5);
legs.play();
_rotation = 0;
} else {
_root.fadeOut.a = 1;
_root.fadeOut.b = 2;
legs.stop();
}
_parent.head._x = _x;
_parent.head._y = _y;
}
if (health < 1) {
_root.fadeOut.gotoAndStop(5);
Mouse.show();
health = 0;
_root.pause = true;
}
}
}
onClipEvent (mouseDown) {
if (_root.roomOn != 10) {
fire = true;
} else if (_parent.logic.finishedWaves >= _parent.logic.maxWaves) {
fire = true;
}
if (ammo[wepEquipped] < 1) {
_root.sfx.gotoAndPlay(68);
}
}
onClipEvent (mouseUp) {
fire = false;
}
Instance of Symbol 291 MovieClip "head" in Symbol 945 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.pause == false) {
_rotation = (_rotation + ((Math.atan2(_ymouse, _xmouse) * 200) / Math.PI));
}
}
Instance of Symbol 395 MovieClip "bullet" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bullet") {
if (isFire == true) {
used = 10000;
b.gotoAndPlay(3);
if (isShot == true) {
speed = 5 + random(5);
} else {
speed = 10;
}
} else {
b.stop();
used = 1;
if (isShot == true) {
speed = 10 + random(5);
} else {
speed = 15;
}
}
x = Math.sin((_rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_rotation + 90) * (Math.PI/180)) * speed) * -1;
t = 0;
if (_root.roomOn != 19) {
blood = function () {
if (_root.opt[4] == 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_parent.blood.b._xscale = random(40) + 50;
_parent.blood.b._yscale = random(40) + 50;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local4 = new flash.geom.Matrix();
var _local6 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local5 = new flash.geom.Matrix();
_local5.translate(_x, _y);
_local4.concat(_local5);
_parent.bg.myBitmap.draw(_parent.blood, _local4, _local6, "overlay");
}
_parent.character.score = _parent.character.score + ((1 * _parent.character.tempMult) * _parent.character.mult2);
_parent.character.blood = _parent.character.blood + 1;
if (used < 1) {
this.removeMovieClip("");
}
};
} else {
blood = function () {
_parent.character.score = _parent.character.score + ((1 * _parent.character.tempMult) * _parent.character.mult2);
_parent.character.blood = _parent.character.blood + 1;
spark();
};
}
spark = function () {
_parent.bh.b._rotation = _rotation;
var _local4 = new flash.geom.Matrix();
var _local6 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
var _local5 = new flash.geom.Matrix();
_local5.translate(_x, _y);
_local4.concat(_local5);
_parent.fg.myBitmap.draw(_parent.bh, _local4, _local6, "overlay");
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.spark, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
c = random(2);
if (c == 1) {
_root.sfx.gotoAndPlay(22 + ((random(3) + 1) * 2));
}
this.removeMovieClip("");
};
a = 0;
while (a < 3) {
_x = (_x + x);
_y = (_y + y);
_parent.c(_name);
a++;
}
}
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (_name != "bullet") {
if (_root.pause == false) {
a = 0;
while (a < 2) {
_x = (_x + x);
_y = (_y + y);
_parent.c(_name);
a++;
}
t++;
if (t > 12) {
_alpha = (_alpha - 30);
if (_alpha < 10) {
removeMovieClip("");
}
}
}
}
}
Instance of Symbol 376 MovieClip "logic" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
t = 0;
begin = false;
did = false;
enemiesOut = 0;
stop();
sX = new Array(190, 210, 390, 410, 590, 610, 710, 710, 710, 710, 610, 590, 410, 390, 210, 190, 90, 90, 90, 90);
sY = new Array(50, 50, 50, 50, 50, 50, 110, 130, 270, 290, 350, 350, 350, 350, 350, 350, 290, 270, 130, 110);
sR = new Array(0, 2, 4, 6, 8, 10, 12, 14, 16, 18);
sRA = new Array(1, 3, 5, 7, 9, 11, 13, 15, 17, 19);
splitQueX = new Array(0, 0);
splitQueY = new Array(0, 0);
splitQueGen = new Array(0, 0);
rr = random(sR.length);
r = sR[rr];
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
pt = 0;
pt2 = 0;
roomOn = _root.roomOn;
powerFun = function () {
pt++;
pt2++;
rdm = random(100);
if (pt > (300 + rdm)) {
pt = 0;
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.powerup, "p" + i, i);
_parent["p" + i]._x = (Math.floor((random(600) + 100) / 20) * 20) + 10;
_parent["p" + i]._y = (Math.floor((random(280) + 60) / 20) * 20) + 10;
if (winCondition != 2) {
if (roomOn == 8) {
c = random(3);
if (c == 1) {
_parent["p" + i].p.gotoAndStop(random(4) + 7);
} else {
_parent["p" + i].p.gotoAndStop(3);
}
} else if (roomOn == 17) {
c = random(3);
if (c == 1) {
_parent["p" + i].p.gotoAndStop(random(4) + 7);
} else {
_parent["p" + i].p.gotoAndStop(4);
}
} else {
_parent["p" + i].p.gotoAndStop(random(_parent["p" + i].p._totalframes) + 1);
}
} else {
_parent["p" + i].p.gotoAndStop(random(4) + 7);
}
}
if (pt2 > 175) {
pt2 = 0;
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.powerup, "p" + i, i);
_parent["p" + i]._x = (Math.floor((random(600) + 100) / 20) * 20) + 10;
_parent["p" + i]._y = (Math.floor((random(280) + 60) / 20) * 20) + 10;
_parent["p" + i].p.gotoAndStop(random(2) + 9);
}
};
eneFun = function () {
t++;
if (t > waveTime) {
if (waveOut < waveLength) {
if (enemiesOut < maxOut) {
r = sR[rr];
dont = false;
d = 0;
getTile(sX[r], sY[r]);
if (_parent.bg["m" + yp][xp] == 1) {
r = sRA[rr];
getTile(sX[r], sY[r]);
if (_parent.bg["m" + yp][xp] == 1) {
dont = true;
}
}
if (dont == false) {
_parent.character.i++;
i = _parent.character.i;
getTile(sX[r], sY[r]);
duplicateMovieClip (_parent.enemy1, (("e" + yp) + "e") + xp, i);
_parent.bg["m" + yp][xp] = 1;
_parent[(("e" + yp) + "e") + xp]._x = sX[r];
_parent[(("e" + yp) + "e") + xp]._y = sY[r];
tt = typesAllowed[random(typesAllowed.length)];
_parent[(("e" + yp) + "e") + xp].type = typesAllowed[random(typesAllowed.length)];
if (tt == 14) {
_parent[(("e" + yp) + "e") + xp].gen = 1;
}
enemiesOut++;
waveOut++;
}
} else {
a = 100;
}
} else {
t = 0;
finishedWaves++;
waveOut = 0;
rr = random(sR.length);
r = sR[rr];
}
}
};
eneFun2 = function () {
xp = splitQueX[2];
yp = splitQueY[2];
a = 0;
while (a < 2) {
gotResult = false;
b = -1;
while (b < 2) {
c = -1;
while (c < 2) {
if (_parent.bg["m" + (yp + b)][xp + c] == 0) {
if (_parent.bg["c" + (yp + b)][xp + c] == 0) {
sY = yp + b;
sX = xp + c;
b = 100;
c = 100;
gotResult = true;
}
}
c++;
}
b++;
}
bM = 1;
gotResultIsFalse = function () {
bM++;
b = -bM;
while (b < (bM + 1)) {
c = -bM;
while (c < (bM + 1)) {
if (_parent.bg["m" + (yp + b)][xp + c] == 0) {
if (_parent.bg["c" + (yp + b)][xp + c] == 0) {
sY = yp + b;
sX = xp + c;
b = 100;
c = 100;
gotResult = true;
}
}
c++;
}
b++;
}
if (gotResult == false) {
bM++;
if (bM < 37) {
gotResultIsFalse();
}
}
};
if (gotResult == false) {
gotResultIsFalse();
}
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.enemy1, (("e" + sY) + "e") + sX, i);
_parent.bg["m" + sY][sX] = 1;
_parent[(("e" + sY) + "e") + sX]._x = (sX * 20) + 10;
_parent[(("e" + sY) + "e") + sX]._y = (sY * 20) + 10;
_parent[(("e" + sY) + "e") + sX].type = 14;
_parent[(("e" + sY) + "e") + sX].gen = splitQueGen[2];
enemiesOut++;
a++;
}
splitQueX.splice(0, 1);
splitQueY.splice(0, 1);
splitQueGen.splice(0, 1);
};
switch (roomOn) {
case 1 :
waveLength = 12;
waveOut = 0;
waveTime = 80;
maxOut = 20;
maxWaves = 20;
finishedWaves = 0;
typesAllowed = new Array(1, 1);
winCondition = 1;
break;
case 2 :
waveLength = 4;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 10000;
finishedWaves = 0;
typesAllowed = new Array(2, 4);
presentCount = 0;
maxPresent = 30;
winCondition = 2;
break;
case 3 :
waveLength = 12;
waveOut = 0;
waveTime = 80;
maxOut = 20;
maxWaves = 30;
finishedWaves = 0;
typesAllowed = new Array(1, 2, 5);
winCondition = 1;
break;
case 4 :
waveLength = 4;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 80;
finishedWaves = 0;
typesAllowed = new Array(3, 3);
winCondition = 1;
break;
case 5 :
waveLength = 6;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 35;
finishedWaves = 0;
typesAllowed = new Array(1, 2, 12);
winCondition = 1;
break;
case 6 :
waveLength = 6;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 100000 /* 0x0186A0 */;
finishedWaves = 0;
typesAllowed = new Array(1, 2, 5);
winCondition = 3;
timeRemain = 5400;
maxTime = 5400;
break;
case 7 :
waveLength = 6;
waveOut = 0;
waveTime = 30;
maxOut = 25;
maxWaves = 40;
finishedWaves = 0;
typesAllowed = new Array(1, 2, 4, 5, 7);
winCondition = 1;
break;
case 8 :
waveLength = 6;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 35;
finishedWaves = 0;
typesAllowed = new Array(15, 16);
winCondition = 1;
break;
case 9 :
waveLength = 6;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 30;
finishedWaves = 0;
typesAllowed = new Array(1, 2, 13);
winCondition = 1;
break;
case 10 :
waveLength = 5;
waveOut = 0;
waveTime = 30;
maxOut = 100;
maxWaves = 20;
finishedWaves = 0;
typesAllowed = new Array(1, 1);
winCondition = 1;
break;
case 11 :
waveLength = 6;
waveOut = 0;
waveTime = 20;
maxOut = 25;
maxWaves = 60;
finishedWaves = 0;
typesAllowed = new Array(9, 9);
winCondition = 1;
break;
case 12 :
waveLength = 1;
waveOut = 0;
waveTime = 2;
maxOut = 200000 /* 0x030D40 */;
maxWaves = 2;
finishedWaves = 0;
typesAllowed = new Array(14, 14);
winCondition = 1;
break;
case 13 :
waveLength = 12;
waveOut = 0;
waveTime = 30;
maxOut = 25;
maxWaves = 10000;
finishedWaves = 0;
typesAllowed = new Array(1, 2, 4, 5, 7, 8);
presentCount = 0;
maxPresent = 50;
winCondition = 2;
break;
case 14 :
waveLength = 15;
waveOut = 0;
waveTime = 30;
maxOut = 30;
maxWaves = 100000 /* 0x0186A0 */;
finishedWaves = 0;
typesAllowed = new Array(4, 5, 7, 8);
winCondition = 3;
timeRemain = 9000;
maxTime = 9000;
break;
case 15 :
waveLength = 4;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 60;
finishedWaves = 0;
typesAllowed = new Array(12, 13, 7, 1);
winCondition = 1;
break;
case 16 :
waveLength = 12;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 50;
finishedWaves = 0;
typesAllowed = new Array(10, 11, 7, 8);
winCondition = 1;
break;
case 17 :
waveLength = 12;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 25;
finishedWaves = 0;
typesAllowed = new Array(10, 7, 8, 4, 5);
winCondition = 1;
break;
case 18 :
waveLength = 1;
waveOut = 0;
waveTime = 2;
maxOut = 200000 /* 0x030D40 */;
maxWaves = 4;
finishedWaves = 0;
typesAllowed = new Array(14, 14);
winCondition = 1;
break;
case 19 :
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.treads, "bossTreads", i);
_parent.bossTreads._x = 400;
_parent.bossTreads._y = 200;
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.boss, "bossMC", i);
_parent.bossMC._x = 400;
_parent.bossMC._y = 200;
enemiesOut++;
winCondition = 1;
break;
case 20 :
waveLength = 6;
waveOut = 0;
waveTime = 30;
maxOut = 20;
maxWaves = 100000 /* 0x0186A0 */;
finishedWaves = 0;
typesAllowed = new Array(10, 7, 8, 4, 5, 1, 2);
winCondition = 3;
timeRemain = 14400;
maxTime = 14400;
}
switch (winCondition) {
case 1 :
logicFun = function () {
if (finishedWaves < maxWaves) {
powerFun();
eneFun();
_root.progressBar.p.p = -((finishedWaves / maxWaves) * 200);
} else {
if (enemiesOut < 1) {
if (waitTime > 0) {
waitTime--;
} else if (did != true) {
did = true;
_root.pause = true;
_root.completed[roomOn] = 1;
_root.rc.play();
}
} else {
waitTime = 5;
}
if (roomOn == 8) {
powerFun();
} else if (roomOn == 12) {
powerFun();
} else if (roomOn == 17) {
powerFun();
} else if (roomOn == 18) {
powerFun();
}
}
};
break;
case 2 :
logicFun = function () {
if (presentCount < maxPresent) {
powerFun();
eneFun();
_root.progressBar.p.p = -((presentCount / maxPresent) * 200);
} else {
_root.progressBar.p.p = -((presentCount / maxPresent) * 200);
if (enemiesOut < 1) {
if (did != true) {
did = true;
_root.pause = true;
_root.completed[roomOn] = 1;
_root.rc.play();
}
}
}
};
break;
case 3 :
logicFun = function () {
if (timeRemain > 0) {
timeRemain--;
powerFun();
eneFun();
tempP = (-((timeRemain / maxTime) * 200)) + 200;
_root.progressBar.p.p = Math.floor(-tempP);
} else if (enemiesOut < 1) {
if (did != true) {
did = true;
_root.pause = true;
_root.completed[roomOn] = 1;
_root.rc.play();
}
}
};
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (begin == true) {
logicFun();
if (splitQueX.length > 2) {
eneFun2();
}
}
}
}
Instance of Symbol 420 MovieClip "fla" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
time = 0;
_xscale = (_xscale * ((random(5) + 8) / 10));
c = random(2);
if (c == 1) {
_yscale = (_yscale * -1);
}
c = random(2);
if (c == 1) {
fla.gotoAndPlay(7);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "fla") {
if (time > 4) {
removeMovieClip("");
} else {
if (time > 0) {
_alpha = (_alpha - 50);
}
time = time + 1;
}
}
}
}
Instance of Symbol 436 MovieClip "giblet" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "giblet") {
g.gotoAndStop(random(g._totalframes) + 1);
x = random(10) - 5;
y = random(10) - 5;
g._xscale = random(50) + 50;
g._yscale = g._xscale;
t = 0;
}
}
onClipEvent (enterFrame) {
if (_name != "giblet") {
_x = (_x + x);
_y = (_y + y);
t++;
if ((t == 3) || (t == 6)) {
x = x * 0.5;
y = y * 0.5;
}
if (t > 10) {
_parent.giblet._x = _x;
_parent.giblet._y = _y;
_parent.giblet.g._rotation = _rotation;
_parent.giblet.g._xscale = g._xscale;
_parent.giblet.g._yscale = g._yscale;
_parent.giblet.g.gotoAndStop(g._currentframe);
var myMatrix = (new flash.geom.Matrix());
var translateMatrix = (new flash.geom.Matrix());
translateMatrix.translate(_x, _y);
myMatrix.concat(translateMatrix);
_parent.bg.myBitmap.draw(_parent.giblet, myMatrix);
_parent.giblet._x = -300;
_parent.giblet._y = -300;
removeMovieClip("");
}
}
}
Instance of Symbol 452 MovieClip "bloodExplode" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "bloodExplode") {
_parent.blood._x = _x;
_parent.blood._y = _y;
_parent.blood.b._xscale = 50 + random(50);
_parent.blood.b._yscale = 50 + random(50);
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(1);
var myMatrix = (new flash.geom.Matrix());
var myColorTransform = (new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0));
var translateMatrix = (new flash.geom.Matrix());
translateMatrix.translate(_x, _y);
myMatrix.concat(translateMatrix);
_parent.bg.myBitmap.draw(_parent.blood, myMatrix, myColorTransform, "overlay");
_parent.blood._x = -300;
_parent.blood._y = -300;
}
}
Instance of Symbol 493 MovieClip "bs" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
c = random(3) + 1;
if (c == 1) {
gotoAndPlay (14);
} else if (c == 2) {
gotoAndPlay (27);
}
}
Instance of Symbol 626 MovieClip "walls" in Symbol 945 MovieClip Frame 1
onClipEvent (enterFrame) {
gotoAndStop (3);
}
Instance of Symbol 672 MovieClip "spark" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
_xscale = (random(75) + 25);
_yscale = (random(75) + 25);
_rotation = (_rotation + (random(30) - 15));
if ((_rotation < -90) || (_rotation > 90)) {
_yscale = (_yscale * -1);
}
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name == "spark") {
gotoAndStop (8);
} else {
play();
}
} else {
stop();
}
}
Instance of Symbol 238 MovieClip "laser" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "laser") {
if (isWeak == true) {
used = 1;
} else {
used = 10000;
}
isLaser = true;
makeBeam = function () {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.laserLine, "l" + i, i);
_parent["l" + i]._x = _x;
_parent["l" + i]._y = _y;
_parent["l" + i]._rotation = _rotation;
d = Math.sqrt(((_x - startX) * (_x - startX)) + ((_y - startY) * (_y - startY)));
_parent["l" + i].l._width = d;
if (isWeak == true) {
_parent["l" + i].l.gotoAndPlay(10);
}
};
if (isShot == true) {
speed = 10 + random(5);
} else {
speed = 15;
}
x = Math.sin((_rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_rotation + 90) * (Math.PI/180)) * speed) * -1;
t = 0;
if (_root.roomOn != 19) {
blood = function () {
if (_root.opt[4] == 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_parent.blood.b._xscale = random(40) + 50;
_parent.blood.b._yscale = random(40) + 50;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local3 = new flash.geom.Matrix();
var _local5 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate(_x, _y);
_local3.concat(_local4);
_parent.bg.myBitmap.draw(_parent.blood, _local3, _local5, "overlay");
}
_parent.character.score = _parent.character.score + ((1 * _parent.character.tempMult) * _parent.character.mult2);
_parent.character.blood = _parent.character.blood + 1;
if (isWeak == true) {
makeBeam();
removeMovieClip("");
}
};
} else {
blood = function () {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.spark, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_parent.character.score = _parent.character.score + ((1 * _parent.character.tempMult) * _parent.character.mult2);
_parent.character.blood = _parent.character.blood + 1;
if (isWeak == true) {
makeBeam();
removeMovieClip("");
}
};
}
spark = function () {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.spark, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
makeBeam();
c = random(2);
if (c == 1) {
_root.sfx.gotoAndPlay(22 + ((random(3) + 1) * 2));
}
removeMovieClip("");
};
_x = (_x + x);
_y = (_y + y);
_parent.c(_name);
startX = _x;
startY = _y;
}
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
if (_name != "laser") {
if (_root.pause == false) {
a = 0;
while (a < 24) {
_x = (_x + x);
_y = (_y + y);
_parent.c(_name);
a++;
}
makeBeam();
removeMovieClip("");
}
}
}
Instance of Symbol 741 MovieClip "enemy1" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "enemy1") {
corpseGround = function () {
if (_root.opt[4] == 0) {
_parent.corpse.c._rotation = _rotation + (random(30) - 15);
_parent.corpse.c.gotoAndStop(corpse + random(3));
var _local3 = new flash.geom.Matrix();
var _local4 = new flash.geom.Matrix();
_local4.translate(_x, _y);
_local3.concat(_local4);
_parent.bg.myBitmap.draw(_parent.corpse, _local3);
}
};
bloodGround = function () {
if (_root.opt[4] == 0) {
_parent.blood.b._xscale = random(40) + 50;
_parent.blood.b._yscale = random(40) + 50;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local3 = new flash.geom.Matrix();
var _local5 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate(pt.x, pt.y);
_local3.concat(_local4);
_parent.bg.myBitmap.draw(_parent.blood, _local3, _local5, "overlay");
}
};
isExploder = false;
isShooter = false;
isSplitter = false;
switch (type) {
case 1 :
health = 1;
speed = 2;
corpse = 1;
break;
case 2 :
health = 1;
speed = 2.5;
corpse = 1;
break;
case 3 :
health = 1;
speed = 4;
corpse = 1;
break;
case 4 :
health = 4;
speed = 2;
gotoAndStop (40);
corpse = 3;
break;
case 5 :
health = 4;
speed = 2.5;
gotoAndStop (40);
corpse = 3;
break;
case 6 :
health = 4;
speed = 4;
gotoAndStop (40);
corpse = 3;
break;
case 7 :
health = 6;
speed = 2;
gotoAndStop (51);
corpse = 6;
break;
case 8 :
health = 6;
speed = 2.5;
gotoAndStop (51);
corpse = 6;
break;
case 9 :
health = 6;
speed = 4;
gotoAndStop (51);
corpse = 6;
break;
case 10 :
health = 12;
speed = 2;
gotoAndStop (84);
corpse = 15;
break;
case 11 :
health = 12;
speed = 2.5;
gotoAndStop (84);
corpse = 15;
break;
case 12 :
health = 24;
speed = 2;
isExploder = true;
gotoAndPlay (12);
break;
case 13 :
health = 12;
speed = 2;
isShooter = true;
gotoAndStop (37);
break;
case 14 :
switch (gen) {
case 1 :
health = 128;
break;
case 2 :
health = 64;
break;
case 3 :
health = 32;
break;
case 4 :
health = 16;
break;
case 5 :
health = 8;
break;
case 6 :
health = 4;
break;
case 7 :
health = 2;
break;
case 8 :
health = 1;
}
speed = 2;
isSplitter = true;
gotoAndStop (62);
corpse = 9;
break;
case 15 :
health = 6;
speed = 2;
gotoAndStop (73);
corpse = 12;
break;
case 16 :
health = 6;
speed = 2.5;
gotoAndStop (73);
corpse = 12;
}
d = 20;
t = 2;
is = true;
moves = 0;
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
getName = function () {
if (_parent[(("e" + yp) + "e") + xp].is == true) {
if (_name != ((("e" + yp) + "e") + xp)) {
trace("removed");
health = 0;
}
}
_name = ((("e" + yp) + "e") + xp);
moves++;
};
getTile(_x, _y);
goX = xp;
goY = yp;
wander = false;
wanFun = function () {
xVel = 0;
yVel = 0;
if (moves > 2) {
wander = true;
}
};
hitFun = function () {
xp = pt.x - _parent.character._x;
if (Math.abs(xp) < 20) {
yp = pt.y - _parent.character._y;
if (Math.abs(yp) < 20) {
if (_root.gameMode == 0) {
if (_parent.character.invincible == false) {
_parent.character.health = _parent.character.health - 10;
_root.bloodRing._alpha = 50;
if (_root.bloodRing._alpha > 100) {
_root.bloodRing._alpha = 100;
}
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = pt.x;
_parent["g" + i]._y = pt.y;
_parent["g" + i]._rotation = _parent._rotation;
_root.sfx.gotoAndPlay(52 + ((random(7) + 1) * 2));
bloodGround();
}
}
}
}
};
this.cacheAsBitmap = true;
}
}
onClipEvent (enterFrame) {
if (_name != "enemy1") {
if (_root.pause == false) {
if (health > 0) {
fFr = true;
if (t > 1) {
t--;
} else {
getTile(_x, _y);
cXP = xp;
cYP = yp;
if (wander == false) {
xd = _x - _parent.character._x;
yd = _y - _parent.character._y;
if (moves > 2) {
c = random(8);
if (c == 1) {
wander = true;
}
}
} else {
c = random(4);
switch (c) {
case 0 :
xd = 1;
yd = 0;
break;
case 1 :
xd = -1;
yd = 0;
break;
case 2 :
xd = 0;
yd = 1;
break;
case 3 :
xd = 0;
yd = -1;
}
c = random(2);
if (c == 1) {
wander = false;
}
}
if (Math.abs(xd) > Math.abs(yd)) {
if (xd < 0) {
getTile(_x + 20, _y);
if (_parent.bg["m" + yp][xp] == 0) {
if ((Math.floor(_parent.character._x / 20) == xp) && (Math.floor(_parent.character._y / 20) == yp)) {
xVel = 0;
yVel = 0;
play();
} else {
xVel = speed;
yVel = 0;
goX = xp;
goY = yp;
_parent.bg["m" + yp][xp] = 1;
_parent.bg["m" + cYP][cXP] = 0;
getName();
}
} else {
wanFun();
}
} else {
getTile(_x - 20, _y);
if (_parent.bg["m" + yp][xp] == 0) {
if ((Math.floor(_parent.character._x / 20) == xp) && (Math.floor(_parent.character._y / 20) == yp)) {
xVel = 0;
yVel = 0;
play();
} else {
xVel = -speed;
yVel = 0;
goX = xp;
goY = yp;
_parent.bg["m" + yp][xp] = 1;
_parent.bg["m" + cYP][cXP] = 0;
getName();
}
} else {
wanFun();
}
}
} else if (yd < 0) {
getTile(_x, _y + 20);
if (_parent.bg["m" + yp][xp] == 0) {
if ((Math.floor(_parent.character._x / 20) == xp) && (Math.floor(_parent.character._y / 20) == yp)) {
xVel = 0;
yVel = 0;
play();
} else {
xVel = 0;
yVel = speed;
goX = xp;
goY = yp;
_parent.bg["m" + yp][xp] = 1;
_parent.bg["m" + cYP][cXP] = 0;
getName();
}
} else {
wanFun();
}
} else {
getTile(_x, _y - 20);
if (_parent.bg["m" + yp][xp] == 0) {
if ((Math.floor(_parent.character._x / 20) == xp) && (Math.floor(_parent.character._y / 20) == yp)) {
xVel = 0;
yVel = 0;
play();
} else {
xVel = 0;
yVel = -speed;
goX = xp;
goY = yp;
_parent.bg["m" + yp][xp] = 1;
_parent.bg["m" + cYP][cXP] = 0;
getName();
}
} else {
wanFun();
}
}
if ((isExploder == false) && (isShooter == false)) {
myRadians = Math.atan2(_parent.character._y - _y, _parent.character._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = myDegrees;
} else {
if ((xVel == 0) && (yVel == 0)) {
stop();
} else {
play();
if (xVel > 0) {
_rotation = 0;
} else if (xVel < 0) {
_rotation = 180;
} else if (yVel < 0) {
_rotation = 270;
} else if (yVel > 0) {
_rotation = 90;
}
}
if (isShooter == true) {
c = random(30);
if (c == 1) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.eBul, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_root.sfx.gotoAndPlay(80);
}
}
}
t = 20 / speed;
if ((xVel == 0) && (yVel == 0)) {
if (isExploder == false) {
xd = _x - _parent.character._x;
yd = _y - _parent.character._y;
if (Math.abs(Math.sqrt((xd * xd) + (yd * yd))) < 40) {
play();
}
}
}
}
_x = (_x + xVel);
_y = (_y + yVel);
} else {
_root.sfx.gotoAndPlay(28 + ((random(8) + 1) * 2));
_parent.xShake = random(8) - 4;
_parent.yShake = random(8) - 4;
_name = "shitter";
_parent.bg["m" + goY][goX] = 0;
_parent.logic.enemiesOut--;
_parent.character.mult = _parent.character.mult + 30;
_root.mult.bar.bar.play();
_root.mult.bar.ball.play();
corpseGround();
if (_root.opt[4] == 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bloodExplode, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
a = 0;
while (a < 3) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.giblet, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = random(360);
a++;
}
}
if (isExploder == true) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.explosion, "e" + i, i);
_parent["e" + i]._x = _x;
_parent["e" + i]._y = _y;
a = 0;
while (a < 4) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.eBul, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = 90 * a;
a++;
}
}
if (isSplitter == true) {
if (gen < 8) {
_parent.logic.splitQueX.push(goX);
_parent.logic.splitQueY.push(goY);
gen = gen + 1;
_parent.logic.splitQueGen.push(gen);
}
}
_root.tKills++;
removeMovieClip("");
}
}
}
}
Instance of Symbol 768 MovieClip "powerup" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "powerup") {
t = 0;
d = 30;
getPower = function () {
switch (p._currentframe) {
case 1 :
_parent.character.powerUp = 1;
_parent.character.powerUpTime = 360;
_root.sfx.gotoAndPlay(82);
break;
case 2 :
_parent.character.powerUp = 2;
_parent.character.powerUpTime = 360;
_root.sfx.gotoAndPlay(82);
break;
case 3 :
_parent.character.powerUp = 3;
_parent.character.powerUpTime = 360;
_root.sfx.gotoAndPlay(82);
break;
case 4 :
_parent.character.powerUp = 4;
_parent.character.powerUpTime = 360;
_root.sfx.gotoAndPlay(82);
break;
case 5 :
_parent.character.powerUp = 5;
_parent.character.powerUpTime = 360;
_root.sfx.gotoAndPlay(82);
break;
case 6 :
if (_root.have[23] == 1) {
_parent.character.health = 300;
} else if (_root.have[22] == 1) {
_parent.character.health = 250;
} else if (_root.have[21] == 1) {
_parent.character.health = 200;
} else if (_root.have[20] == 1) {
_parent.character.health = 150;
} else {
_parent.character.health = 100;
}
_root.sfx.gotoAndPlay(82);
break;
case 7 :
_parent.character.score = _parent.character.score + 3000;
if ((_root.roomOn == 2) || (_root.roomOn == 13)) {
_parent.logic.presentCount++;
extraText = true;
}
_root.sfx.gotoAndPlay(84);
break;
case 8 :
_parent.character.score = _parent.character.score + 1000;
if ((_root.roomOn == 2) || (_root.roomOn == 13)) {
_parent.logic.presentCount++;
extraText = true;
}
_root.sfx.gotoAndPlay(84);
break;
case 9 :
_parent.character.score = _parent.character.score + 500;
if ((_root.roomOn == 2) || (_root.roomOn == 13)) {
_parent.logic.presentCount++;
extraText = true;
}
_root.sfx.gotoAndPlay(84);
break;
case 10 :
_parent.character.score = _parent.character.score + 100;
if ((_root.roomOn == 2) || (_root.roomOn == 13)) {
_parent.logic.presentCount++;
extraText = true;
}
_root.sfx.gotoAndPlay(84);
break;
case 11 :
_parent.character.mult2 = 2;
_parent.character.mult2Time = 360;
_root.sfx.gotoAndPlay(82);
break;
case 12 :
_parent.character.mult2 = 3;
_parent.character.mult2Time = 360;
_root.sfx.gotoAndPlay(82);
break;
case 13 :
_parent.character.mult2 = 4;
_parent.character.mult2Time = 360;
_root.sfx.gotoAndPlay(82);
}
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.pText, "p" + i, i);
_parent["p" + i]._x = _x;
_parent["p" + i]._y = _y;
_parent["p" + i].p.gotoAndStop(p._currentframe);
if (extraText == true) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.pText, "p" + i, i);
_parent["p" + i]._x = _x;
_parent["p" + i]._y = _y + 20;
_parent["p" + i].p.gotoAndStop(14);
_parent["p" + i].p.pre = (_parent.logic.maxPresent - _parent.logic.presentCount) + " Presents Remaining";
}
removeMovieClip("");
};
} else {
stop();
p.gotoAndStop(1);
}
}
onClipEvent (enterFrame) {
if (_name != "powerup") {
t++;
dx = _x - _parent.character._x;
if (Math.abs(dx) < d) {
dy = _y - _parent.character._y;
if (Math.abs(dy) < d) {
getPower();
}
}
if (t > 150) {
if (t > 200) {
removeMovieClip("");
}
if (_alpha == 100) {
_alpha = 50;
} else if (_alpha == 50) {
_alpha = 25;
} else {
_alpha = 100;
}
}
}
}
Instance of Symbol 770 MovieClip "ball1" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
pow = 6;
speed = 8;
d = 0;
a = 0;
isOrb = true;
active = false;
blood = function () {
if (_root.opt[4] == 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_parent.blood._x = _x;
_parent.blood._y = _y;
_parent.blood.b._xscale = random(40) + 25;
_parent.blood.b._yscale = random(40) + 25;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local3 = new flash.geom.Matrix();
var _local5 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate(_x, _y);
_local3.concat(_local4);
_parent.bg.myBitmap.draw(_parent.blood, _local3, _local5, "overlay");
_parent.blood._x = -300;
_parent.blood._y = -300;
}
_parent.character.score = _parent.character.score + (1 * _parent.character.tempMult);
_parent.character.blood = _parent.character.blood + 1;
};
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (active == true) {
a = a + 30;
if (a > 360) {
a = 30;
}
r = a;
x = Math.sin(r * (Math.PI/180)) * speed;
y = (Math.cos(r * (Math.PI/180)) * speed) * -1;
_x = (_parent.character._x + (x * 5));
_y = (_parent.character._y + (y * 5));
_parent.c(_name);
if (_parent.character.powerUpTime < 120) {
if (_alpha == 100) {
_alpha = 50;
} else if (_alpha == 50) {
_alpha = 25;
} else {
_alpha = 100;
}
} else {
_alpha = 100;
}
} else {
_x = -300;
_y = -300;
_alpha = 100;
}
}
}
Instance of Symbol 770 MovieClip "ball2" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
pow = 6;
speed = 8;
d = 0;
a = 180;
isOrb = true;
active = false;
blood = function () {
if (_root.opt[4] == 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_parent.blood._x = _x;
_parent.blood._y = _y;
_parent.blood.b._xscale = random(40) + 25;
_parent.blood.b._yscale = random(40) + 25;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local3 = new flash.geom.Matrix();
var _local5 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local4 = new flash.geom.Matrix();
_local4.translate(_x, _y);
_local3.concat(_local4);
_parent.bg.myBitmap.draw(_parent.blood, _local3, _local5, "overlay");
_parent.blood._x = -300;
_parent.blood._y = -300;
}
_parent.character.score = _parent.character.score + (1 * _parent.character.tempMult);
_parent.character.blood = _parent.character.blood + 1;
};
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (active == true) {
a = a + 30;
if (a > 360) {
a = 30;
}
r = a;
x = Math.sin(r * (Math.PI/180)) * speed;
y = (Math.cos(r * (Math.PI/180)) * speed) * -1;
_x = (_parent.character._x + (x * 5));
_y = (_parent.character._y + (y * 5));
_parent.c(_name);
if (_parent.character.powerUpTime < 120) {
if (_alpha == 100) {
_alpha = 50;
} else if (_alpha == 50) {
_alpha = 25;
} else {
_alpha = 100;
}
} else {
_alpha = 100;
}
} else {
_x = -300;
_y = -300;
_alpha = 100;
}
}
}
Instance of Symbol 794 MovieClip "eBul" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "eBul") {
speed = 7;
x = Math.sin((_rotation + 90) * (Math.PI/180)) * speed;
y = (Math.cos((_rotation + 90) * (Math.PI/180)) * speed) * -1;
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
blood = function () {
if (_root.opt[4] == 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_parent.blood.b._xscale = random(40) + 25;
_parent.blood.b._yscale = random(40) + 25;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local4 = new flash.geom.Matrix();
var _local6 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local5 = new flash.geom.Matrix();
_local5.translate(_x, _y);
_local4.concat(_local5);
_parent.bg.myBitmap.draw(_parent.blood, _local4, _local6, "overlay");
}
if (_root.gameMode == 0) {
if (_parent.character.invincible == false) {
_parent.character.health = _parent.character.health - 10;
_root.bloodRing._alpha = 50;
if (_root.bloodRing._alpha > 100) {
_root.bloodRing._alpha = 100;
}
}
}
this.removeMovieClip("");
};
spark = function () {
_parent.bh.b._rotation = _rotation;
var _local4 = new flash.geom.Matrix();
var _local6 = new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0);
var _local5 = new flash.geom.Matrix();
_local5.translate(_x, _y);
_local4.concat(_local5);
_parent.fg.myBitmap.draw(_parent.bh, _local4, _local6, "overlay");
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.spark, "g" + i, i);
_parent["g" + i]._x = _x;
_parent["g" + i]._y = _y;
_parent["g" + i]._rotation = _rotation;
_root.sfx.gotoAndPlay(22 + ((random(3) + 1) * 2));
this.removeMovieClip("");
};
}
}
onClipEvent (enterFrame) {
if (_name != "eBul") {
if (_root.pause == false) {
_x = (_x + x);
_y = (_y + y);
getTile(_x, _y);
if (_parent.bg["c" + yp][xp] == 1) {
spark();
}
xd = _x - _parent.character._x;
if (Math.abs(xd) < 10) {
yd = _y - _parent.character._y;
if (Math.abs(yd) < 10) {
blood();
}
}
}
}
}
Instance of Symbol 273 MovieClip "AAbody" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_name != "AAbody") {
_alpha = (_alpha - 20);
if (_alpha < 20) {
removeMovieClip("");
}
}
}
Instance of Symbol 291 MovieClip "AAhead" in Symbol 945 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "AAhead") {
_alpha = (_alpha - 20);
if (_alpha < 20) {
removeMovieClip("");
}
}
}
Instance of Symbol 868 MovieClip "boss" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "boss") {
stop();
bloodGround = function () {
_parent.blood.b._xscale = random(40) + 50;
_parent.blood.b._yscale = random(40) + 50;
_parent.blood.b._rotation = random(360);
_parent.blood.b.gotoAndStop(random(_parent.blood.b._totalframes));
var _local2 = new flash.geom.Matrix();
var _local4 = new flash.geom.ColorTransform(1, 1, 1, 0.5, 0, 0, 0, 0);
var _local3 = new flash.geom.Matrix();
_local3.translate(_parent.character._x, _parent.character._y);
_local2.concat(_local3);
_parent.bg.myBitmap.draw(_parent.blood, _local2, _local4, "overlay");
};
hitFun = function (cNam) {
if (hitCool == 0) {
xp = this[cNam].pt.x - _parent.character._x;
if (Math.abs(xp) < 30) {
yp = this[cNam].pt.y - _parent.character._y;
if (Math.abs(yp) < 30) {
if (_root.gameMode == 0) {
if (_parent.character.invincible == false) {
_parent.character.health = _parent.character.health - 10;
_root.bloodRing._alpha = 50;
if (_root.bloodRing._alpha > 100) {
_root.bloodRing._alpha = 100;
}
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.bs, "g" + i, i);
_parent["g" + i]._x = _parent.character._x;
_parent["g" + i]._y = _parent.character._y;
_parent["g" + i]._rotation = random(360);
bloodGround();
}
}
}
}
hitCool = 2;
}
};
hitCool = 0;
fTimeMax = 6;
rr = 0;
a = 1;
while (a < 9) {
this["g" + a].health = 250;
this["g" + a].ready = false;
a++;
}
a = 1;
while (a < 13) {
this["s" + a].health = 250;
this["s" + a].ready = false;
a++;
}
a1.health = 350;
a2.health = 350;
a1.ready = true;
a2.ready = true;
_parent.tar.push("a1");
_parent.tar.push("a2");
globe.health = 450;
globe.ready = false;
_parent.tar.push("globe");
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
clawAttack = false;
fTime = 0;
gunOn = 0;
ptX = 400;
ptY = 200;
speed = 1;
haveTarget = false;
moveTime = 45;
explodeTime = 0;
explodeTime2 = 0;
fire = function () {
gunOn++;
if (gunOn > 8) {
gunOn = 1;
}
if (this["g" + gunOn].health > 0) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.eBul, "b" + i, i);
this["g" + gunOn].fun();
_parent["b" + i]._x = this["g" + gunOn].point.x;
_parent["b" + i]._y = this["g" + gunOn].point.y;
_parent["b" + i]._rotation = (this["g" + gunOn]._rotation + 180) + _rotation;
}
};
fire2 = function () {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.eBul, "b" + i, i);
this["g" + gunOn].fun();
_parent["b" + i]._x = _x;
_parent["b" + i]._y = _y;
_parent["b" + i]._rotation = _rotation + (random(60) - 30);
};
} else {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (_name != "boss") {
if (_root.pause == false) {
if (globe.health > -1000) {
if (clawAttack == false) {
if ((_x == ptX) && (_y == ptY)) {
moveTime--;
_parent.bossTreads.stop();
if (moveTime < 1) {
moveTime = 45;
ptX = random(440) + 140;
ptY = random(120) + 140;
}
} else if (Math.abs(_parent.bossTreads._rotation - (_parent.bossTreads.r - 180)) < 0.2) {
if (_x < ptX) {
xVel = speed;
} else if (_x > ptX) {
xVel = -speed;
} else {
xVel = 0;
}
if (_y < ptY) {
yVel = speed;
} else if (_y > ptY) {
yVel = -speed;
} else {
yVel = 0;
}
_x = (_x + xVel);
_y = (_y + yVel);
_parent.bossTreads._x = _x;
_parent.bossTreads._y = _y;
_parent.bossTreads.play();
}
if (didDo != true) {
var charPoint = new Object();
charPoint.x = _parent.character._x;
charPoint.y = _parent.character._y;
this.globalToLocal(charPoint);
r = (Math.atan2(charPoint.y, charPoint.x) * 20) / Math.PI;
if (r > 7) {
r = 7;
} else if (r < -7) {
r = -7;
}
if (Math.abs(r) < 0.1) {
r = 0;
}
_rotation = (_rotation + r);
} else {
rr = rr + 2.5;
if (rr > 360) {
rr = 2.5;
}
myRadians = Math.atan2(_parent.character._y - _y, _parent.character._x - _x);
myDegrees = Math.round((myRadians * 180) / Math.PI);
_rotation = (myDegrees + rr);
}
fTime++;
if (fTime > fTimeMax) {
fire();
fTime = 0;
}
globe.g.gotoAndStop(Math.round(globe.health / 30));
if ((c1._currentframe == 1) && (c2._currentframe == 1)) {
ch = random(60) + 1;
if (ch == 1) {
c1.play();
} else if (ch == 2) {
c2.play();
} else if (ch == 3) {
if (a1.health > 0) {
c1.fun();
distMove = 20;
x = Math.sin((c1._rotation + _rotation) * (Math.PI/180)) * distMove;
y = (Math.cos((c1._rotation + _rotation) * (Math.PI/180)) * distMove) * -1;
good = true;
good2 = true;
a = 0;
while (a < 14) {
getTile(c1.point.x + (x * a), c1.point.y + (y * a));
if (_parent.bg["c" + yp][xp] == 1) {
good = false;
if (a < 6) {
good2 = false;
}
a = 100;
}
a++;
}
if (good == true) {
c1.gotoAndPlay(27);
clawAttack = true;
} else if (good2 == true) {
c1.gotoAndPlay(102);
clawAttack = true;
} else {
trace("claw failed");
}
}
} else if (ch == 4) {
if (a2.health > 0) {
c2.fun();
distMove = 20;
x = Math.sin(((c2._rotation + _rotation) + 180) * (Math.PI/180)) * distMove;
y = (Math.cos(((c2._rotation + _rotation) + 180) * (Math.PI/180)) * distMove) * -1;
good = true;
good2 = true;
a = 0;
while (a < 14) {
getTile(c2.point.x + (x * a), c2.point.y + (y * a));
if (_parent.bg["c" + yp][xp] == 1) {
good = false;
if (a < 6) {
good2 = false;
}
a = 100;
}
a++;
}
if (good == true) {
c2.gotoAndPlay(27);
clawAttack = true;
} else if (good2 == true) {
c2.gotoAndPlay(102);
clawAttack = true;
} else {
trace("claw failed");
}
}
}
}
}
if (hitCool > 0) {
hitCool--;
}
if ((a1.health < 1) && (a2.health < 1)) {
if (didDo != true) {
didDo = true;
shoulder1._visible = false;
shoulder2._visible = false;
a1._visible = false;
a2._visible = false;
c1._visible = false;
c2._visible = false;
_parent.tar = new Array("globe");
a = 1;
while (a < 13) {
this["s" + a].ready = true;
_parent.tar.push("s" + a);
a++;
}
explodeTime = 30;
}
} else {
if (a1.health < 1) {
if (a1DidDo != true) {
a1DidDo = true;
explodeTime = 20;
a1.fun();
a = 0;
while (a < 4) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.explosion, "e" + i, i);
_parent["e" + i]._x = a1.point.x + (random(50) - 25);
_parent["e" + i]._y = a1.point.y + (random(50) - 25);
a++;
}
shoulder1._visible = false;
a1._visible = false;
c1._visible = false;
}
}
if (a2.health < 1) {
if (a2DidDo != true) {
a2DidDo = true;
explodeTime = 20;
a2.fun();
a = 0;
while (a < 4) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.explosion, "e" + i, i);
_parent["e" + i]._x = a2.point.x + (random(50) - 25);
_parent["e" + i]._y = a2.point.y + (random(50) - 25);
a++;
}
shoulder2._visible = false;
a2._visible = false;
c2._visible = false;
}
}
}
if (didDo2 != true) {
if (didDo == true) {
tempH = 0;
a = 1;
while (a < 13) {
if (this["s" + a].health <= 0) {
if (this["s" + a].did != true) {
this["s" + a].did = true;
this["s" + a].health = 0;
this["s" + a]._visible = false;
this["s" + a].fun();
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.explosion, "e" + i, i);
_parent["e" + i]._x = this["s" + a].point.x;
_parent["e" + i]._y = this["s" + a].point.y;
}
}
tempH = tempH + this["s" + a].health;
a++;
}
if (tempH < 1) {
fTimeMax = 3;
_parent.tar = new Array("globe");
a = 1;
while (a < 9) {
this["g" + a].ready = true;
_parent.tar.push("g" + a);
a++;
}
didDo2 = true;
explodeTime = 30;
}
}
}
if (didDo3 != true) {
if (didDo2 == true) {
tempH = 0;
a = 1;
while (a < 9) {
if (this["g" + a].health <= 0) {
if (this["g" + a].did != true) {
this["g" + a].did = true;
this["g" + a].health = 0;
this["g" + a]._visible = false;
this["g" + a].fun();
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.explosion, "e" + i, i);
_parent["e" + i]._x = this["g" + a].point.x;
_parent["e" + i]._y = this["g" + a].point.y;
}
}
tempH = tempH + this["g" + a].health;
a++;
}
a = 1;
while (a < 13) {
if (this["s" + a].health <= 0) {
this["s" + a].health = 0;
this["s" + a]._visible = false;
}
tempH = tempH + this["s" + a].health;
a++;
}
if (tempH < 1) {
_parent.tar = new Array("globe");
didDo3 = true;
globe.ready = true;
explodeTime = 30;
}
}
}
if (didDo4 != true) {
if (didDo3 == true) {
ch = random(3);
if (ch == 1) {
fire2();
}
if (globe.health < 1) {
didDo4 = true;
explodeTime = 3000;
clawAttack = true;
endTime = 0;
_parent.character.score = _parent.character.score + 100000;
globe.health = -100000;
_root.completed[_root.roomOn] = 1;
_root.tKills++;
}
}
}
} else {
_parent.bossTreads.stop();
}
if (didDo4 == true) {
endTime++;
if (endTime == 60) {
_root.fadeOut.a = 1;
_root.fadeOut.b = 0;
_root.fadeOut.end = true;
}
}
if (explodeTime > 0) {
explodeTime--;
explodeTime2++;
if (explodeTime2 > 3) {
_parent.character.i++;
i = _parent.character.i;
duplicateMovieClip (_parent.explosion, "e" + i, i);
_parent["e" + i]._x = _x + (random(150) - 75);
_parent["e" + i]._y = _y + (random(150) - 75);
explodeTime2 = 0;
}
}
}
}
}
Instance of Symbol 881 MovieClip "treads" in Symbol 945 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_name != "treads") {
if (_root.pause == false) {
if (_parent.bossMC.xVel > 0) {
if (_parent.bossMC.yVel > 0) {
r = 225;
} else if (_parent.bossMC.yVel < 0) {
r = 135;
} else {
r = 180;
}
} else if (_parent.bossMC.xVel < 0) {
if (_parent.bossMC.yVel > 0) {
r = 135;
} else if (_parent.bossMC.yVel < 0) {
r = 225;
} else {
r = 180;
}
} else if (_parent.bossMC.yVel > 0) {
r = 270;
} else if (_parent.bossMC.yVel < 0) {
r = 90;
} else {
r = 0;
}
spd = (r - (_rotation + 180)) / 2;
if (spd > 8) {
spd = 8;
}
if (spd < -8) {
spd = -8;
}
_rotation = (_rotation + spd);
}
}
}
Instance of Symbol 938 MovieClip "explosion" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
if (_name != "explosion") {
_parent.xShake = random(12) - 6;
_parent.yShake = random(12) - 6;
c = random(2) + 1;
if (c == 1) {
gotoAndPlay (28);
}
_root.sfx.gotoAndPlay(18 + (c * 2));
} else {
gotoAndStop (27);
}
}
Instance of Symbol 943 MovieClip "shell" in Symbol 945 MovieClip Frame 1
onClipEvent (load) {
stop();
rt = random(20);
fCt = 0;
speed = -(random(5) + 4);
rot = _rotation;
x = Math.sin(rot * (Math.PI/180)) * speed;
y = (Math.cos(rot * (Math.PI/180)) * speed) * -1;
_x = (_x + (x * 2));
_y = (_y + (y * 2));
getTile = function (x, y) {
xp = Math.floor(x / 20);
yp = Math.floor(y / 20);
};
}
onClipEvent (enterFrame) {
if (_root.pause == false) {
if (_name != "shell") {
_x = (_x + x);
_y = (_y + y);
_rotation = (_rotation + rt);
getTile(_x, _y);
if (_parent.bg["c" + yp][xp] == 1) {
x = x * -0.5;
y = y * -0.5;
}
fCt = fCt - 1;
if (fCt < 1) {
fCt = 10;
y = y / 2;
x = x / 2;
if ((Math.abs(x) < 1) && (Math.abs(y) < 1)) {
_parent.dShell.d.gotoAndStop(_currentframe);
_parent.dShell.d._rotation = _rotation;
var myMatrix = (new flash.geom.Matrix());
var translateMatrix = (new flash.geom.Matrix());
translateMatrix.translate(_x, _y);
myMatrix.concat(translateMatrix);
_parent.bg.myBitmap.draw(_parent.dShell, myMatrix);
removeMovieClip("");
}
}
}
}
}
Symbol 949 MovieClip Frame 1
stop();
Symbol 949 MovieClip Frame 95
gotoAndPlay (10);
Symbol 959 MovieClip Frame 7
stop();
Symbol 966 MovieClip Frame 7
stop();
Symbol 1044 MovieClip Frame 55
stop();
Symbol 1068 MovieClip Frame 18
_root.sfx.gotoAndPlay(86);
Symbol 1068 MovieClip Frame 88
_root.game.logic.begin = true;
Symbol 1068 MovieClip Frame 89
stop();
Symbol 1068 MovieClip Frame 90
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(12);
Symbol 1068 MovieClip Frame 94
_root.sfx.gotoAndPlay(86);
Instance of Symbol 1044 MovieClip in Symbol 1068 MovieClip Frame 94
onClipEvent (load) {
gotoAndPlay (20);
}
Symbol 1068 MovieClip Frame 98
_root.sfx.gotoAndPlay(90);
Symbol 1068 MovieClip Frame 177
_root.fadeOut.a = 1;
_root.fadeOut.b = 1;
stop();
Symbol 1072 Button
on (release) {
if (opt[0] == 1) {
opt[0] = 0;
} else {
opt[0] = 1;
}
}
Symbol 1077 Button
on (release) {
if (opt[1] == 1) {
opt[1] = 0;
} else {
opt[1] = 1;
}
}
Symbol 1081 Button
on (release) {
if (_root._quality == "HIGH") {
_root._quality = "MEDIUM";
} else if (_root._quality == "MEDIUM") {
_root._quality = "LOW";
} else if (_root._quality == "LOW") {
_root._quality = "HIGH";
}
}
Symbol 1095 MovieClip Frame 1
stop();
Symbol 1120 MovieClip Frame 1
stop();
Instance of Symbol 1159 MovieClip "p" in Symbol 1160 MovieClip Frame 1
onClipEvent (load) {
p = 0;
}
onClipEvent (enterFrame) {
if (_y > p) {
_y = (_y - 1);
}
}
Symbol 1170 Button
on (release) {
gotoAndStop (4);
}
Symbol 1174 Button
on (release) {
gotoAndStop (5);
}
Symbol 1178 Button
on (release) {
_root.pause = false;
gotoAndStop (1);
}
Symbol 1202 Button
on (release) {
_parent.cFun(n);
}
on (rollOver) {
_parent.rFun(n);
}
Symbol 1233 MovieClip Frame 30
gotoAndPlay (1);
Symbol 1236 MovieClip Frame 1
a = 1;
while (a < 21) {
this["r" + a].m._visible = false;
this["r" + a].n = a;
if (_root.completed[a] == 1) {
this["r" + a].m._visible = true;
}
this["r" + a].gotoAndStop(_root.floorFra[a]);
a++;
}
ln = "";
youAreHere._x = this["r" + _root.game.logic.roomOn]._x;
youAreHere._y = this["r" + _root.game.logic.roomOn]._y;
trace(Math.floor(youAreHere._x / 100));
trace(Math.floor(youAreHere._y / 64.3));
levelNames = new Array(0, "Survive 20 Waves", "Collect 30 Presents", "Survive 30 Waves", "Survive The Rush!", "Bombs Away!", "Survie 3 Minutes", "Survive 40 Waves", "Kill It With Fire!", "Riflemen At Arms!", "Wait For It", "Survive The Super Rush!", "Divide And Conquer", "Collect 50 Presents", "Survive 5 Minutes", "Bullets And Shrapnel", "Survive 50 Waves", "Spinning Death Is The Only Way!", "Death Squared", "Doom Machine", "Survive 8 Minutes");
selectLevel = function (opt, n) {
_root.pause = false;
_root.game.character.endAnimation = true;
_root.roomOn = n;
Mouse.hide();
switch (opt) {
case 1 :
_root.game.character.endX = 710;
_root.stX = 90;
c = random(2);
if (c == 1) {
_root.game.character.endY = 110;
_root.stY = 110;
} else {
_root.game.character.endY = 270;
_root.stY = 270;
}
break;
case 2 :
if (this["r" + n]._y > youAreHere._y) {
_root.game.character.endX = 590;
_root.game.character.endY = 350;
_root.stX = 190;
_root.stY = 50;
} else {
if (this["r" + n]._y >= youAreHere._y) {
break;
}
_root.game.character.endX = 590;
_root.game.character.endY = 50;
_root.stX = 190;
_root.stY = 350;
}
}
_parent.gotoAndStop(1);
};
cFun = function (n) {
if (_root.completed[n] == 0) {
xDis = Math.abs(Math.floor(this["r" + n]._x / 100) - Math.floor(youAreHere._x / 100));
trace(xDis);
yDis = Math.abs(Math.floor(this["r" + n]._y / 64.3) - Math.floor(youAreHere._y / 64.3));
if ((xDis > 0) && (yDis > 0)) {
trace("cant go diagonally");
_root.sfx.gotoAndPlay(92);
} else if (xDis < 2) {
if (yDis == 0) {
trace("X good");
if ((Math.floor(this["r" + n]._x / 100) - Math.floor(youAreHere._x / 100)) > 0) {
selectLevel(1, n);
} else {
_root.sfx.gotoAndPlay(92);
}
} else if (xDis == 0) {
if (yDis < 2) {
if ((Math.floor(youAreHere._x / 100) == 0) && (Math.floor(youAreHere._y / 64.3) == 1)) {
if (this["r" + n]._y > youAreHere._y) {
trace("invalid move");
_root.sfx.gotoAndPlay(92);
} else {
selectLevel(2, n);
}
} else if ((Math.floor(youAreHere._x / 100) == 0) && (Math.floor(youAreHere._y / 64.3) == -1)) {
if (this["r" + n]._y < youAreHere._y) {
trace("invalid move");
_root.sfx.gotoAndPlay(92);
} else {
selectLevel(2, n);
}
} else {
selectLevel(2, n);
}
}
} else {
trace("too far away");
_root.sfx.gotoAndPlay(92);
}
} else if (yDis < 2) {
if (xDis == 0) {
trace("Y good");
selectLevel(2, n);
} else {
trace("too far away");
_root.sfx.gotoAndPlay(92);
}
} else {
trace("too far away");
_root.sfx.gotoAndPlay(92);
}
}
};
rFun = function (n) {
ln = levelNames[n];
};
Symbol 1237 Button
on (release) {
gotoAndStop (5);
}
Symbol 1243 Button
on (release) {
_root.gotoAndStop("titleScreen");
}
Symbol 1247 Button
on (release) {
gotoAndStop (2);
}
Symbol 1248 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 2
name = new Array(0, "Pistol", "Dual Pistols", "SMG", "Sawed Off Shotgun", "Laser Pistol", "Magnum", "Machine Pistol", "Assault Rifle", "Pump Shotgun", "Laser Rifle", "Dual Magnums", "Dual Machine Pistols", "Light Machinegun", "Battle Rifle", "Semi-Auto Shtogun", "Laser Cannon", "Auto Shotgun", "Gatling Laser", "25,000 Points!", "150 Health", "200 Health", "250 Health", "300 Health");
fr = new Array(0, 1, 2, 3, 4, 15, 5, 7, 9, 10, 17, 6, 8, 11, 12, 13, 18, 14, 19, 20, 21, 22, 23, 24);
cost = new Array(0, 0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 2);
have = _root.game.character.have;
w1 = new Array(0, 0);
w2 = new Array(0, 1);
w3 = new Array(0, 1);
w4 = new Array(0, 1);
w5 = new Array(0, 1);
w6 = new Array(1, 2);
w7 = new Array(1, 2);
w8 = new Array(1, 3);
w9 = new Array(1, 4);
w10 = new Array(1, 5);
w11 = new Array(1, 6);
w12 = new Array(1, 7);
w13 = new Array(1, 3, 8);
w14 = new Array(1, 3, 8);
w15 = new Array(1, 4, 9);
w16 = new Array(1, 5, 10);
w17 = new Array(1, 4, 9, 15);
w18 = new Array(1, 5, 10, 16);
w19 = new Array(0, 0);
w20 = new Array(0, 0);
w21 = new Array(0, 20);
w22 = new Array(20, 21);
w23 = new Array(20, 21, 22);
ramirezDoEverything = function () {
a = 1;
while (a < fr.length) {
this["g" + a].gotoAndStop(fr[a]);
this["g" + a].glow._visible = false;
if (have[a] != 1) {
canBuy = true;
if (_root.game.character.skillPoints < cost[a]) {
canBuy = false;
}
c = 0;
while (c < this["w" + a].length) {
if (this["w" + a][c] != 0) {
if (!(have[this["w" + a][c]] === 0)) {
} else {
canBuy = false;
}
}
c++;
}
if (canBuy == true) {
this["g" + a].glow._visible = true;
}
}
a++;
}
sp = "Weapon Points: " + _root.game.character.skillPoints;
_root.game.character.wepText();
};
rFun = function (num) {
if (have[num] == 0) {
if (num < 19) {
if (cost[num] == 0) {
n = (name[num] + newline) + "Owned.";
} else if (cost[num] == 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Point";
} else if (cost[num] > 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Points";
}
tempN = "";
a = 0;
while (a < this["w" + num].length) {
if (name[this["w" + num][a]] != 0) {
if (a < (this["w" + num].length - 1)) {
tempN = tempN + (name[this["w" + num][a]] + ", ");
} else {
tempN = tempN + name[this["w" + num][a]];
}
}
a++;
}
n = n + ("\rRequired to Purchase: " + tempN);
} else if (num != 19) {
if (cost[num] == 0) {
n = (name[num] + newline) + "Owned.";
} else if (cost[num] == 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Point";
} else if (cost[num] > 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Points";
}
} else {
n = (((((25000 * (have[num] + 1)) + " Points! ") + newline) + "Cost: ") + cost[num]) + " Weapon Point";
}
} else if (num < 19) {
n = "Weapon Already Owned";
} else if (num != 19) {
n = "Powerup Already Owned";
} else {
n = (((((25000 * (have[num] + 1)) + " Points! ") + newline) + "Cost: ") + cost[num]) + " Weapon Point";
}
if (num < 19) {
if (_root.game.character.bul[num] == 2) {
stat.s1 = ("Damage: " + _root.game.character.pow[num]) + " x6";
} else {
stat.s1 = "Damage: " + _root.game.character.pow[num];
}
stat.bSet1 = Math.round((_root.game.character.pow[num] / 12) * 100);
stat.s2 = "Accuracy: " + _root.game.character.acc[num];
stat.bSet2 = Math.round(100 - ((_root.game.character.acc[num] / 30) * 100));
stat.s3 = ("Rate of Fire: " + (30 / _root.game.character.rof[num])) + "/sec.";
stat.bSet3 = 100 - ((_root.game.character.rof[num] - 1) * 10);
stat.s4 = "Capacity: " + _root.game.character.cap[num];
stat.bSet4 = _root.game.character.cap[num];
stat.s5 = ("Reload Time: " + (Math.round((_root.game.character.rld[num] / 30) * 10) / 10)) + " sec.";
stat.bSet5 = Math.round((_root.game.character.rld[num] / 60) * 100);
if (_root.game.character.auto[num] == 1) {
stat.t1 = "Semi-Auto";
} else {
stat.t1 = "Full Auto";
}
if (_root.game.character.bul[num] == 1) {
stat.t2 = "Bullet Type: Normal";
} else if (_root.game.character.bul[num] == 2) {
stat.t2 = "Bullet Type: Shotgun";
} else if (_root.game.character.bul[num] == 3) {
stat.t2 = "Bullet Type: Laser";
}
if (_root.game.character.bul[num] == 2) {
dps = (_root.game.character.pow[num] * 6) * (30 / _root.game.character.rof[num]);
stat.t3 = "Damage Per Second: " + dps;
} else {
dps = _root.game.character.pow[num] * (30 / _root.game.character.rof[num]);
stat.t3 = "Damage Per Second: " + dps;
}
timeToEmptyMag = _root.game.character.cap[num] / (30 / _root.game.character.rof[num]);
reloadTime = Math.round((_root.game.character.rld[num] / 30) * 10) / 10;
if (_root.game.character.bul[num] == 2) {
stat.t4 = "Max Damage Per Minute (including reloads): " + Math.round((((60 / (reloadTime + timeToEmptyMag)) * _root.game.character.cap[num]) * _root.game.character.pow[num]) * 6);
} else {
stat.t4 = "Max Damage Per Minute (including reloads): " + Math.round(((60 / (reloadTime + timeToEmptyMag)) * _root.game.character.cap[num]) * _root.game.character.pow[num]);
}
} else {
stat.s1 = 0;
stat.s2 = 0;
stat.s3 = 0;
stat.s4 = 0;
stat.s5 = 0;
stat.bSet1 = 0;
stat.bSet2 = 0;
stat.bSet3 = 0;
stat.bSet4 = 0;
stat.bSet5 = 0;
stat.t1 = "N/A";
stat.t2 = "N/A";
stat.t3 = "N/A";
stat.t4 = "N/A";
}
};
cFun = function (num) {
if (num < 19) {
if (have[num] != 1) {
canBuy = true;
if (_root.game.character.skillPoints < cost[num]) {
canBuy = false;
}
c = 0;
while (c < this["w" + num].length) {
if (this["w" + num][c] != 0) {
if (!(have[this["w" + num][c]] === 0)) {
} else {
canBuy = false;
}
}
c++;
}
if (canBuy == true) {
this["g" + num].glow._visible = false;
_root.game.character.skillPoints = _root.game.character.skillPoints - cost[num];
have[num] = 1;
_root.game.character.wepEquipped = num;
_root.game.character.have = have;
ramirezDoEverything();
}
}
} else if (num == 19) {
if (_root.gameMode == 0) {
if (_root.game.character.skillPoints >= cost[num]) {
_root.game.character.skillPoints = _root.game.character.skillPoints - cost[num];
_root.game.character.score = _root.game.character.score + (25000 * (have[num] + 1));
have[num] = have[num] + 1;
_root.game.character.have = have;
ramirezDoEverything();
}
}
} else {
canBuy = true;
if (_root.game.character.skillPoints < cost[num]) {
canBuy = false;
}
c = 0;
while (c < this["w" + num].length) {
if (this["w" + num][c] != 0) {
if (!(have[this["w" + num][c]] === 0)) {
} else {
canBuy = false;
}
}
c++;
}
if (canBuy == true) {
this["g" + num].glow._visible = false;
_root.game.character.skillPoints = _root.game.character.skillPoints - cost[num];
have[num] = 1;
_root.game.character.have = have;
if (_root.game.character.have[23] == 1) {
_root.game.character.health = 300;
} else if (_root.game.character.have[22] == 1) {
_root.game.character.health = 250;
} else if (_root.game.character.have[21] == 1) {
_root.game.character.health = 200;
} else if (_root.game.character.have[20] == 1) {
_root.game.character.health = 150;
}
ramirezDoEverything();
}
}
rFun(num);
};
ramirezDoEverything();
Instance of Symbol 82 MovieClip in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
_rotation = random(360);
}
Instance of Symbol 84 MovieClip in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
_rotation = random(360);
}
Instance of Symbol 1038 MovieClip "g2" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 2;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g1" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 1;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g6" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 6;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g11" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 11;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g16" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 16;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g10" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 10;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g5" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 5;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g9" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 9;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g15" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 15;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g18" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 18;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g3" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 3;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g7" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 7;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g12" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 12;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g14" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 14;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g4" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 4;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g8" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 8;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g13" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 13;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g17" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 17;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g19" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 19;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g20" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 20;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g21" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 21;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g22" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 22;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1038 MovieClip "g23" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
n = 23;
}
on (rollOver) {
_parent.rFun(n);
}
on (release) {
_parent.cFun(n);
}
Instance of Symbol 1194 MovieClip "stat" in Symbol 1248 MovieClip Frame 2
onClipEvent (load) {
a = 0;
while (a < 6) {
this["bSet" + a] = 0;
a++;
}
}
onClipEvent (enterFrame) {
b = 0;
while (b < 6) {
a = 0;
while (a < 6) {
if (this["b" + a]._xscale < this["bSet" + a]) {
this["b" + a]._xscale = this["b" + a]._xscale + 1;
} else if (this["b" + a]._xscale > this["bSet" + a]) {
this["b" + a]._xscale = this["b" + a]._xscale - 1;
}
a++;
}
b++;
}
}
Symbol 1248 MovieClip Frame 4
name = new Array(0, "Pistol", "Dual Pistols", "SMG", "Sawed Off Shotgun", "Laser Pistol", "Magnum", "Machine Pistol", "Assault Rifle", "Pump Shotgun", "Laser Rifle", "Dual Magnums", "Dual Machine Pistols", "Light Machinegun", "Battle Rifle", "Semi-Auto Shtogun", "Laser Cannon", "Auto Shotgun", "Gatling Laser", "25,000 Points!", "150 Health", "200 Health", "250 Health", "300 Health");
fr = new Array(0, 1, 2, 3, 4, 15, 5, 7, 9, 10, 17, 6, 8, 11, 12, 13, 18, 14, 19, 20, 21, 22, 23, 24);
cost = new Array(0, 0, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 2);
have = _root.game.character.have;
w1 = new Array(0, 0);
w2 = new Array(0, 1);
w3 = new Array(0, 1);
w4 = new Array(0, 1);
w5 = new Array(0, 1);
w6 = new Array(1, 2);
w7 = new Array(1, 2);
w8 = new Array(1, 3);
w9 = new Array(1, 4);
w10 = new Array(1, 5);
w11 = new Array(1, 6);
w12 = new Array(1, 7);
w13 = new Array(1, 3, 8);
w14 = new Array(1, 3, 8);
w15 = new Array(1, 4, 9);
w16 = new Array(1, 5, 10);
w17 = new Array(1, 4, 9, 15);
w18 = new Array(1, 5, 10, 16);
w19 = new Array(0, 0);
w20 = new Array(0, 0);
w21 = new Array(0, 20);
w22 = new Array(20, 21);
w23 = new Array(20, 21, 22);
ramirezDoEverything = function () {
a = 1;
while (a < fr.length) {
this["g" + a].gotoAndStop(fr[a]);
this["g" + a].glow._visible = false;
if (have[a] != 1) {
canBuy = true;
if (_root.game.character.skillPoints < cost[a]) {
canBuy = false;
}
c = 0;
while (c < this["w" + a].length) {
if (this["w" + a][c] != 0) {
if (!(have[this["w" + a][c]] === 0)) {
} else {
canBuy = false;
}
}
c++;
}
if (canBuy == true) {
this["g" + a].glow._visible = true;
}
}
a++;
}
sp = "Weapon Points: " + _root.game.character.skillPoints;
_root.game.character.wepText();
};
rFun = function (num) {
if (have[num] == 0) {
if (num < 19) {
if (cost[num] == 0) {
n = (name[num] + newline) + "Owned.";
} else if (cost[num] == 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Point";
} else if (cost[num] > 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Points";
}
tempN = "";
a = 0;
while (a < this["w" + num].length) {
if (name[this["w" + num][a]] != 0) {
if (a < (this["w" + num].length - 1)) {
tempN = tempN + (name[this["w" + num][a]] + ", ");
} else {
tempN = tempN + name[this["w" + num][a]];
}
}
a++;
}
n = n + ("\rRequired to Purchase: " + tempN);
} else if (num != 19) {
if (cost[num] == 0) {
n = (name[num] + newline) + "Owned.";
} else if (cost[num] == 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Point";
} else if (cost[num] > 1) {
n = (((name[num] + newline) + "Cost: ") + cost[num]) + " Weapon Points";
}
} else {
n = (((((25000 * (have[num] + 1)) + " Points! ") + newline) + "Cost: ") + cost[num]) + " Weapon Point";
}
} else if (num < 19) {
n = "Weapon Already Owned";
} else if (num != 19) {
n = "Powerup Already Owned";
} else {
n = (((((25000 * (have[num] + 1)) + " Points! ") + newline) + "Cost: ") + cost[num]) + " Weapon Point";
}
if (num < 19) {
if (_root.game.character.bul[num] == 2) {
stat.s1 = ("Damage: " + _root.game.character.pow[num]) + " x6";
} else {
stat.s1 = "Damage: " + _root.game.character.pow[num];
}
stat.bSet1 = Math.round((_root.game.character.pow[num] / 12) * 100);
stat.s2 = "Accuracy: " + _root.game.character.acc[num];
stat.bSet2 = Math.round(100 - ((_root.game.character.acc[num] / 30) * 100));
stat.s3 = ("Rate of Fire: " + (30 / _root.game.character.rof[num])) + "/sec.";
stat.bSet3 = 100 - ((_root.game.character.rof[num] - 1) * 10);
stat.s4 = "Capacity: " + _root.game.character.cap[num];
stat.bSet4 = _root.game.character.cap[num];
stat.s5 = ("Reload Time: " + (Math.round((_root.game.character.rld[num] / 30) * 10) / 10)) + " sec.";
stat.bSet5 = Math.round((_root.game.character.rld[num] / 60) * 100);
if (_root.game.character.auto[num] == 1) {
stat.t1 = "Semi-Auto";
} else {
stat.t1 = "Full Auto";
}
if (_root.game.character.bul[num] == 1) {
stat.t2 = "Bullet Type: Normal";
} else if (_root.game.character.bul[num] == 2) {
stat.t2 = "Bullet Type: Shotgun";
} else if (_root.game.character.bul[num] == 3) {
stat.t2 = "Bullet Type: Laser";
}
if (_root.game.character.bul[num] == 2) {
dps = (_root.game.character.pow[num] * 6) * (30 / _root.game.character.rof[num]);
stat.t3 = "Damage Per Second: " + dps;
} else {
dps = _root.game.character.pow[num] * (30 / _root.game.character.rof[num]);
stat.t3 = "Damage Per Second: " + dps;
}
timeToEmptyMag = _root.game.character.cap[num] / (30 / _root.game.character.rof[num]);
reloadTime = Math.round((_root.game.character.rld[num] / 30) * 10) / 10;
if (_root.game.character.bul[num] == 2) {
stat.t4 = "Max Damage Per Minute (including reloads): " + Math.round((((60 / (reloadTime + timeToEmptyMag)) * _root.game.character.cap[num]) * _root.game.character.pow[num]) * 6);
} else {
stat.t4 = "Max Damage Per Minute (including reloads): " + Math.round(((60 / (reloadTime + timeToEmptyMag)) * _root.game.character.cap[num]) * _root.game.character.pow[num]);
}
} else {
stat.s1 = 0;
stat.s2 = 0;
stat.s3 = 0;
stat.s4 = 0;
stat.s5 = 0;
stat.bSet1 = 0;
stat.bSet2 = 0;
stat.bSet3 = 0;
stat.bSet4 = 0;
stat.bSet5 = 0;
stat.t1 = "N/A";
stat.t2 = "N/A";
stat.t3 = "N/A";
stat.t4 = "N/A";
}
};
cFun = function (num) {
if (num < 19) {
if (have[num] != 1) {
canBuy = true;
if (_root.game.character.skillPoints < cost[num]) {
canBuy = false;
}
c = 0;
while (c < this["w" + num].length) {
if (this["w" + num][c] != 0) {
if (!(have[this["w" + num][c]] === 0)) {
} else {
canBuy = false;
}
}
c++;
}
if (canBuy == true) {
this["g" + num].glow._visible = false;
_root.game.character.skillPoints = _root.game.character.skillPoints - cost[num];
have[num] = 1;
_root.game.character.wepEquipped = num;
_root.game.character.have = have;
ramirezDoEverything();
}
}
} else if (num == 19) {
if (_root.gameMode == 0) {
if (_root.game.character.skillPoints >= cost[num]) {
_root.game.character.skillPoints = _root.game.character.skillPoints - cost[num];
_root.game.character.score = _root.game.character.score + (25000 * (have[num] + 1));
have[num] = have[num] + 1;
_root.game.character.have = have;
ramirezDoEverything();
}
}
} else {
canBuy = true;
if (_root.game.character.skillPoints < cost[num]) {
canBuy = false;
}
c = 0;
while (c < this["w" + num].length) {
if (this["w" + num][c] != 0) {
if (!(have[this["w" + num][c]] === 0)) {
} else {
canBuy = false;
}
}
c++;
}
if (canBuy == true) {
this["g" + num].glow._visible = false;
_root.game.character.skillPoints = _root.game.character.skillPoints - cost[num];
have[num] = 1;
_root.game.character.have = have;
if (_root.game.character.have[23] == 1) {
_root.game.character.health = 300;
} else if (_root.game.character.have[22] == 1) {
_root.game.character.health = 250;
} else if (_root.game.character.have[21] == 1) {
_root.game.character.health = 200;
} else if (_root.game.character.have[20] == 1) {
_root.game.character.health = 150;
}
ramirezDoEverything();
}
}
rFun(num);
};
ramirezDoEverything();
zz = 1;
while (zz < 17) {
this["btn" + zz].stop();
this["btn" + zz].c.gotoAndStop(zz);
this["btn" + zz].num = zz;
this["btn" + zz].onRelease = function () {
_root.bFun(this.num);
this.gotoAndStop(1);
};
this["btn" + zz].onRollOver = function () {
this.gotoAndStop(2);
};
this["btn" + zz].onPress = function () {
this.gotoAndStop(3);
};
this["btn" + zz].onRollOut = function () {
this.gotoAndStop(1);
};
this["btn" + zz].onReleaseOutside = function () {
this.gotoAndStop(1);
};
zz++;
}
bFun = function (num) {
_root.charColor = num;
};
Instance of Symbol 116 MovieClip in Symbol 1248 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.opt[4] == 0) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 123 MovieClip in Symbol 1248 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root._quality == "HIGH") {
gotoAndStop (1);
} else if (_root._quality == "MEDIUM") {
gotoAndStop (2);
} else if (_root._quality == "LOW") {
gotoAndStop (3);
}
}
Instance of Symbol 116 MovieClip in Symbol 1248 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.opt[0] == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 116 MovieClip in Symbol 1248 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.opt[1] == 1) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
}
Instance of Symbol 145 MovieClip "ch1" in Symbol 1248 MovieClip Frame 4
onClipEvent (load) {
stop();
gotoAndStop(_root.charColor);
}
onClipEvent (enterFrame) {
gotoAndStop(_root.charColor);
}
Instance of Symbol 163 MovieClip "btn1" in Symbol 1248 MovieClip Frame 4
on (release) {
_parent.bFun(num);
gotoAndStop (1);
}
on (rollOver) {
gotoAndStop (2);
}
on (press) {
gotoAndStop (3);
}
on (rollOut) {
gotoAndStop (1);
}
Symbol 1255 MovieClip Frame 1
stop();
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 145 MovieClip "ch1" in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.charColor);
}
Instance of Symbol 1273 MovieClip "ch3" in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 376 MovieClip in Symbol 1276 MovieClip Frame 1
onClipEvent (load) {
t = 0;
tOn = 0;
textBlock0 = "Welcome to the show, ";
textBlock0 = textBlock0 + (_root.cName + ".");
textBlock1 = "So, how many dangerous criminals with baseball bats do you think you can take on before being beaten into a sloppy pink paste?";
textBlock2 = "...10?...20?...50?";
textBlock3 = "For the audience playing at home, text your guess to \r1-800-555-555. One lucky winner will be chosen to receive a combination Toaster and Blu-Ray DVD player!";
textBlock4 = "Anyways, we're about to find out just what you can do!";
textBlock5 = "And, remember, the more blood the audience gets to see, the more weapons you'll have to choose from!";
textBlock6 = "Good luck!";
_parent.txt = "";
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(10);
}
onClipEvent (enterFrame) {
a = 0;
while (a < 3) {
if (t < this["textBlock" + tOn].length) {
_parent.txt = _parent.txt + this["textBlock" + tOn].charAt(t);
t++;
}
a++;
}
if (t < this["textBlock" + tOn].length) {
_root.sfx.gotoAndPlay(94);
}
if (tOn == 3) {
if (_parent.ch1._x > -675) {
d = -675 - _parent.ch1._x;
if (Math.abs(d) < 5) {
d = 0;
_parent.ch1._x = -675;
}
_parent.ch1._x = _parent.ch1._x + (d / 3);
} else if (_parent.ch3._x < -122) {
d = -122 - _parent.ch3._x;
if (Math.abs(d) < 1) {
d = 0;
_parent.ch3._x = -122;
}
_parent.ch3._x = _parent.ch3._x + (d / 4);
}
} else if (_parent.ch3._x > -675) {
d = -675 - _parent.ch3._x;
if (Math.abs(d) < 5) {
d = 0;
_parent.ch3._x = -675;
}
_parent.ch3._x = _parent.ch3._x + (d / 3);
} else if (_parent.ch1._x < -240) {
d = -240 - _parent.ch1._x;
if (Math.abs(d) < 1) {
d = 0;
_parent.ch1._x = -240;
}
_parent.ch1._x = _parent.ch1._x + (d / 4);
}
if (Key.isDown(32)) {
_root.pause = false;
_root.cutScene = 1;
_root.music1.mySound.stop();
_root.music1.gotoAndPlay(2);
_root.music2.gotoAndPlay(4);
_root.music3.gotoAndPlay(6);
_root.music4.gotoAndPlay(14);
_parent._parent.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (t < this["textBlock" + tOn].length) {
_parent.txt = "";
_parent.txt = this["textBlock" + tOn];
t = 1000000 /* 0x0F4240 */;
} else if (tOn < 6) {
_parent.txt = "";
t = 0;
tOn++;
} else {
_root.pause = false;
_root.cutScene = 1;
_root.music1.mySound.stop();
_root.music1.gotoAndPlay(2);
_root.music2.gotoAndPlay(4);
_root.music3.gotoAndPlay(6);
_root.music4.gotoAndPlay(14);
_parent._parent.gotoAndStop(1);
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 0;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 10;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 20;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1260 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
t = 30;
}
onClipEvent (enterFrame) {
t = t + 2;
if (t > 10) {
if (t < 20) {
_alpha = 50;
} else {
_visible = false;
_alpha = 100;
}
if (t > 40) {
t = 0;
}
} else {
_visible = true;
}
}
Instance of Symbol 1273 MovieClip "ch3" in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 1280 MovieClip "curtain" in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
go = false;
}
onClipEvent (enterFrame) {
if (go == true) {
if (_y > -530) {
_y = (_y + ((_y - 530) / 10));
}
}
}
Instance of Symbol 20 MovieClip "ch2" in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
go = false;
if (_root.cutScene == 4) {
pt = 360;
} else if (_root.cutScene == 8) {
pt = 250;
} else if (_root.cutScene == 12) {
pt = 360;
}
}
onClipEvent (enterFrame) {
if (go == true) {
if (_x < pt) {
_x = (_x - ((_x - pt) / 10));
}
}
}
Instance of Symbol 376 MovieClip in Symbol 1282 MovieClip Frame 1
onClipEvent (load) {
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(10);
t = 0;
tOn = 0;
textBlock0 = "Everyone is surprised to see you've made it this far, and the audience has been shocked with the bloody mess you've been making!";
textBlock1 = "As an added bonus, if you survive, you'll be awarded...";
if (_root.cutScene == 4) {
textBlock2 = "A New Car!";
textBlock3 = "It's fuel efficient and eco-friendly because it runs entirely on a new renewable bio-fuel: Human Blood!";
textBlock4 = "You'll also receive a portion of the blood that's drained off of our stuido floor to get you started!";
_parent.ch3.gotoAndStop(2);
} else if (_root.cutScene == 8) {
textBlock2 = "A Life Supply of Bacon!";
textBlock3 = "Deep fried in the finest of lards; it's the perfect way to both begin and end the day. Makes a great lunch, too!";
textBlock4 = "It's never a bad time for bacon!";
_parent.ch3.gotoAndStop(3);
} else if (_root.cutScene == 12) {
textBlock2 = "A Full Dining Room Set!";
textBlock3 = "It's been constructed from the finest bones of the very enemies you've killed on the show!";
textBlock4 = "Even Ed Gein would be envious!";
_parent.ch3.gotoAndStop(4);
}
_parent.txt = "";
}
onClipEvent (enterFrame) {
a = 0;
while (a < 3) {
if (t < this["textBlock" + tOn].length) {
_parent.txt = _parent.txt + this["textBlock" + tOn].charAt(t);
t++;
}
a++;
}
if (t < this["textBlock" + tOn].length) {
_root.sfx.gotoAndPlay(94);
}
if (tOn > 1) {
_parent.curtain.go = true;
_parent.ch2.go = true;
}
if (Key.isDown(32)) {
if (_root.cutScene == 4) {
_root.didScene4 = true;
} else if (_root.cutScene == 8) {
_root.didScene8 = true;
} else if (_root.cutScene == 12) {
_root.didScene12 = true;
}
_root.score = _root.score + 10000;
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(2);
_root.music2.gotoAndPlay(4);
_root.music3.gotoAndPlay(6);
_root.music4.gotoAndPlay(14);
_parent._parent.gotoAndStop(1);
}
}
onClipEvent (mouseDown) {
if (t < this["textBlock" + tOn].length) {
_parent.txt = "";
_parent.txt = this["textBlock" + tOn];
t = 1000000 /* 0x0F4240 */;
} else if (tOn < 4) {
_parent.txt = "";
t = 0;
tOn++;
} else {
if (_root.cutScene == 4) {
_root.didScene4 = true;
} else if (_root.cutScene == 8) {
_root.didScene8 = true;
} else if (_root.cutScene == 12) {
_root.didScene12 = true;
}
_root.score = _root.score + 10000;
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(2);
_root.music2.gotoAndPlay(4);
_root.music3.gotoAndPlay(6);
_root.music4.gotoAndPlay(14);
_parent._parent.gotoAndStop(1);
}
}
Symbol 1288 MovieClip Frame 1
stop();
Symbol 1305 Button
on (release) {
if (did != true) {
submitScore();
did = true;
}
}
Symbol 1309 Button
on (release) {
getURL ("http://scores.crazymonkeygames.com/hs/listscores.php?id=548", _blank);
}
Symbol 1313 Button
on (release) {
_root.setDefaults();
gotoAndStop ("titleScreen");
}
Symbol 1317 Button
on (release) {
if (_root.fadeOut._alpha < 1) {
_root.setDefaults();
_root.music1.mySound.stop();
_root.music2.mySound.stop();
_root.music3.mySound.stop();
_root.music4.mySound.stop();
_root.music1.gotoAndPlay(2);
_root.music2.gotoAndPlay(4);
_root.music3.gotoAndPlay(6);
_root.music4.gotoAndPlay(14);
gotoAndStop ("gameScreen");
}
}