Frame 1
copyright = "Copyright (c) 2005 by Yaroslav Yanovsky";
var plLoaded = false;
var plLoadState = (int((this.getBytesLoaded() / this.getBytesTotal()) * 100) + "%");
fscommand ("showmenu", false);
fscommand ("allowscale", false);
fscommand ("wmode", "opaque");
Frame 2
if (this.getBytesLoaded() < this.getBytesTotal()) {
gotoAndPlay (1);
}
Frame 3
function EncrpytString(strVal) {
var strKey = "aHfEjcDebChGiAfIjDbEjacD";
var nLenKey = strKey.length;
var strZero = "0";
var strOut = "";
var nTot = strVal.length;
var nCntKey = 0;
var strOut = "";
var nCodeVal;
var nCodeKey;
var nTemp;
var nChecksum = 0;
nCnt = 0;
while (nCnt < nTot) {
nCodeVal = strVal.charCodeAt(nCnt);
if (nCodeVal >= 128) {
nCodeVal = "X";
}
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = (nCodeVal % 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
nChecksum = nChecksum + nTemp;
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = Math.floor(nCodeVal / 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
nChecksum = nChecksum + nTemp;
nCnt++;
}
nChecksum = nChecksum % 256;
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = (nChecksum % 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
nCodeKey = strKey.charCodeAt(nCntKey);
nCntKey = nCntKey + 1;
if (nCntKey >= nLenKey) {
nCntKey = 0;
}
nTemp = Math.floor(nChecksum / 16) + nCodeKey;
strOut = strOut + String.fromCharCode(nTemp);
return(strOut);
}
function GetUrlParam(strUrl, strParam) {
var strUrlLC = strUrl.toLowerCase();
var nPos = strUrlLC.indexOf(strParam);
var nParamLen = strParam.length;
if (nPos > 0) {
var nNumChars;
var nPosEnd = strUrlLC.indexOf("&", nPos + nParamLen);
if (nPosEnd > 0) {
nNumChars = nPosEnd - nPos;
} else {
nNumChars = strUrl.length - nPos;
}
return(strUrl.substr(nPos + nParamLen, nNumChars));
}
return("");
}
function GetBaseUrl(strUrl) {
var strUrlLC = strUrl.toLowerCase();
var nNumChars = strUrlLC.length;
var nPos = strUrlLC.indexOf("?", 0);
if (nPos > 0) {
nNumChars = nPos;
}
var strVal = "download";
if (strUrlLC.substr(0, 4) == "http") {
strVal = strUrl.substr(7, nNumChars - 7);
}
return(strVal);
}
function adjustScore(value) {
_root.score = _root.score + value;
if (_root.score < 0) {
_root.score = 0;
}
}
function togglePause() {
if (paused) {
message.gotoAndPlay("unpaused");
} else {
message.gotoAndPlay("paused");
}
paused = !paused;
}
function getEncodedValue(v, key) {
var ss = (v ^ key).toString();
var a = new Array();
a.push(key);
var b = new Array();
i = 0;
while (i < ss.length) {
b.push(ss.charCodeAt(i) ^ key);
i++;
}
a.push(b.length ^ key);
a = a.concat(b);
return(a.join(","));
}
function getScoreEncoded() {
var key1 = random(16777215);
var key2 = random(16777215);
while (key2 == key1) {
key2 = random(16777215);
}
var key3 = random(16777215);
while ((key3 == key1) || (key3 == key2)) {
key3 = random(16777215);
}
var key4 = random(16777215);
while (((key4 == key1) || (key4 == key2)) || (key4 == key3)) {
key4 = random(16777215);
}
return(new Array(getEncodedValue(_root.score, key1), getEncodedValue(_root.level, key2), getEncodedValue(_root.score, key3), getEncodedValue(_root.level, key4)));
}
function updateMouse() {
var x = _root._xmouse;
var y = _root._ymouse;
var state = ((((x > 0) && (x < 480)) && (y > 0)) && (y < 360));
if (state != mouseInRect) {
if ((mouseInRect = state)) {
Mouse.hide();
cursor._visible = true;
} else {
Mouse.show();
cursor._visible = false;
}
}
cursor._x = x;
cursor._y = y;
}
function updateTitle() {
updateMouse();
}
function hideOffscreenStuff() {
ufo.gotoAndPlay("dead");
ufo2.gotoAndPlay("dead");
terran.gotoAndPlay("dead");
terran3.gotoAndPlay("dead");
mine.gotoAndPlay("dead");
mine2.gotoAndPlay("dead");
caskorange.gotoAndPlay("dead");
caskred.gotoAndPlay("dead");
caskyellow.gotoAndPlay("dead");
caskblue.gotoAndPlay("dead");
caskgreen.gotoAndPlay("dead");
box.gotoAndPlay("dead");
bullet1.gotoAndPlay("dead");
bullet2.gotoAndPlay("dead");
bullet3.gotoAndPlay("dead");
plasma.gotoAndPlay("dead");
aimsrc.gotoAndPlay("dead");
shiphpsrc.gotoAndPlay("dead");
planethpsrc.gotoAndPlay("dead");
weaponsrc.gotoAndPlay("dead");
playersrc.gotoAndPlay("dead");
}
var rootURL = "http://www.enkord.com/";
var moreGamesURL = rootURL;
var downloadURL = (rootURL + "product.php?action=download&product=clashnslash&from=webversion");
var orderURL = (rootURL + "product.php?action=order&product=clashnslash&from=webversion");
var hiscoreURL = (rootURL + "clashnslashweb/hiscore.php");
moreGamesURL = (("http://www.arcadetown.com/index.asp?gameid=clashnslash&aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url);
downloadURL = (("http://www.arcadetown.com/partner/download.asp?gameid=clashnslash&aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url);
orderURL = (("http://www.arcadetown.com/clashnslash/ordergame.asp?aid=" + GetUrlParam(_url, "aid=")) + "&refer=") + _root.GetBaseUrl(_url);
highscoreURL = "http://www.arcadetown.com/clashnslash/view_high_scores.asp";
var HiScoreSaveURL = "http://www.arcadetown.com/clashnslash/hs.asp";
var _r;
var paused = false;
aimsrc.duplicateMovieClip("cursor", 15000);
var mouseState = false;
var prevMouseState = false;
var gameInit = true;
var score = 0;
var mouseInRect = ((((x > 0) && (x < 480)) && (y > 0)) && (y < 360));
if (mouseInRect) {
Mouse.hide();
}
hideOffscreenStuff();
cursor.gotoAndPlay("arrow");
Frame 4
_quality = "high";
updateTitle();
play();
Frame 5
updateTitle();
gotoAndPlay (4);
Frame 6
function doInitLevel1() {
game.weapon = new WeaponClass(10, 40, bullet1);
}
function doSpawnLevel1(count) {
if (count < 20) {
game.spawnOffscreen(0.2, ufo, 0);
} else if (count < 40) {
var i = 0;
while (i < (((count % 4) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_SPREAD;
}
game.spawnOffscreen(0.2, ufo, bonus);
i++;
}
} else if (count < 60) {
var i = 0;
while (i < (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 10) {
bonus = BONUS_SPREAD;
}
game.spawnOffscreen(0.2, ufo, bonus);
i++;
}
}
}
function doInitLevel2() {
game.weapon = new WeaponClass(25, 12, bullet2);
}
function doSpawnLevel2(count) {
if (count == 1) {
message.gotoAndPlay("machinegun");
}
if (count < 20) {
if (count > 15) {
var i = 0;
while (i <= 3) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_SPREAD;
}
game.spawnOnscreen(0.2, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_SPREAD;
}
game.spawnOffscreen(0.2, ufo, bonus);
i++;
}
} else if (count < 40) {
var i = 0;
while (i < 2) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 10) {
bonus = BONUS_SPREAD;
}
game.spawnOffscreen(0.2, ufo, bonus);
i++;
}
} else if (count < 60) {
var i = 0;
while (i < 2) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 10) {
bonus = BONUS_SPREAD;
}
game.spawnOffscreen(0.2, ufo, bonus);
i++;
}
game.spawnOffscreen(0.3, ufo2, 0);
}
}
function doInitLevel3() {
game.weapon = new WeaponClass(8, 40, bullet3);
game.weapon.isShrapnel = true;
}
function doSpawnLevel3(count) {
if (count < 20) {
if (count > 17) {
var i = 0;
while (i <= (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_NUKE;
}
game.spawnOnscreen(0.2, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_SLIME;
}
game.spawnOffscreen(0.25, terran, bonus, true);
i++;
}
} else if (count < 40) {
if (count > 37) {
var i = 0;
while (i <= (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
}
game.spawnOnscreen(0.2, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 9) {
bonus = BONUS_SLIME;
}
game.spawnOffscreen(0.2, ufo2, bonus);
i++;
}
} else if (count < 60) {
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll == 8) {
bonus = BONUS_SLIME;
}
game.spawnOffscreen(0.3, ufo2, bonus);
i++;
}
game.spawnOffscreen(0.2, ufo, 0);
} else if (count < 80) {
if (count > 75) {
var i = 0;
while (i <= 2) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_NUKE;
} else if (roll == 6) {
bonus = BONUS_SLIME;
}
game.spawnOnscreen(0.2, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 6) {
bonus = BONUS_EXPLOSION;
}
game.spawnOffscreen(0.3, ufo2, bonus);
i++;
}
game.spawnOffscreen(0.2, terran, 0, true);
}
}
function doInitLevel4() {
game.weapon = new WeaponClass(10, 40, bullet1);
}
function doSpawnLevel4(count) {
if (count < 20) {
game.spawnOnscreen(0.2, mine, 0);
if (count > 15) {
game.spawnOnscreen(0.3, mine2, 0);
}
} else if (count < 40) {
var i = 0;
while (i < (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_SPREAD;
} else if (roll == 6) {
bonus = BONUS_ICE;
}
game.spawnOffscreen(0.2, ufo, bonus);
i++;
}
} else if (count < 60) {
var i = 0;
while (i < (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_SPREAD;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 10) {
bonus = BONUS_ICE;
}
game.spawnOffscreen(0.3, ufo2, bonus);
i++;
}
}
}
function doInitLevel5() {
game.weapon = new WeaponClass(25, 12, bullet2);
}
function doSpawnLevel5(count) {
if (count < 20) {
if (count > 15) {
var i = 0;
while (i <= 3) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_ICE;
}
game.spawnOnscreen(0.3, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_SLIME;
}
game.spawnOffscreen(0.25, terran, bonus, true);
i++;
}
} else if (count < 40) {
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 10) {
bonus = BONUS_ICE;
}
game.spawnOffscreen(0.3, ufo2, bonus);
i++;
}
} else if (count < 60) {
var i = 0;
while (i < (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 10) {
bonus = BONUS_SLIME;
}
game.spawnOnscreen(0.3, mine2, bonus);
i++;
}
game.spawnOffscreen(0.3, ufo2, 0);
}
}
function doInitLevel6() {
game.weapon = new WeaponClass(8, 40, bullet3);
game.weapon.isShrapnel = true;
}
function doSpawnLevel6(count) {
if (count < 20) {
if (count < 5) {
game.spawnOnscreen(0.3, mine2, 0);
}
if (count > 17) {
var i = 0;
while (i <= 2) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_NUKE;
}
game.spawnOnscreen(0.2, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
} else if (roll == 6) {
bonus = BONUS_SPREAD;
}
game.spawnOffscreen(0.25, terran, bonus, true);
i++;
}
} else if (count < 40) {
if (count > 37) {
var i = 0;
while (i <= (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
}
game.spawnOnscreen(0.2, mine, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll <= 9) {
bonus = BONUS_ICE;
}
game.spawnOffscreen(0.3, ufo2, bonus);
i++;
}
} else if (count < 60) {
if (count > 55) {
var i = 0;
while (i <= (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_EXPLOSION;
}
game.spawnOnscreen(0.3, mine2, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 3) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
} else if (roll == 8) {
bonus = BONUS_SLIME;
}
game.spawnOffscreen(0.35, terran3, bonus, true);
i++;
}
game.spawnOffscreen(0.2, ufo, 0);
} else if (count < 80) {
if (count > 75) {
var i = 0;
while (i <= (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll == 5) {
bonus = BONUS_NUKE;
} else if (roll == 6) {
bonus = BONUS_SLIME;
}
game.spawnOnscreen(0.3, mine2, bonus);
i++;
}
}
var i = 0;
while (i < (((count % 2) == 0) ? 2 : 1)) {
bonus = 0;
roll = random(20);
if (roll < 5) {
bonus = BONUS_SCORE;
} else if (roll < 7) {
bonus = BONUS_EXPLOSION;
} else if (roll == 7) {
bonus = BONUS_NUKE;
}
game.spawnOffscreen(0.3, ufo2, bonus);
i++;
}
game.spawnOffscreen(0.35, terran3, 0, true);
}
}
var level = 1;
score = 0;
Frame 7
function deg2rad(fVal) {
return((fVal * Math.PI) / 180);
}
function rad2deg(fVal) {
return(fVal * 57.2957795130823);
}
function getLength(x, y) {
return(Math.sqrt((x * x) + (y * y)));
}
function setLength(x, y, len) {
var slen = getLength(x, y);
if (slen < 1E-5) {
return(undefined);
}
if (len > 1E-5) {
slen = slen / len;
x = x / slen;
y = y / slen;
} else {
x = 0;
y = 0;
}
return([x, y]);
}
function EntityClass(x, y, imc) {
imc.duplicateMovieClip("entity" + entityCounter, entityCounter);
this.mc = _root["entity" + entityCounter];
entityCounter++;
this.mc._x = x;
this.mc._y = y;
this.velocityX = 0;
this.velocityY = 0;
this.alive = true;
this.status = STATUS_NORMAL;
this.laststatus = 0;
this.bonus = 0;
}
function BonusClass(x, y, fx, imc) {
super(x, y, imc);
this.effect = fx;
}
function PlayerClass(imc) {
this.velocityX = 0;
this.velocityY = 0;
if (player) {
this.mc = player;
} else {
imc.duplicateMovieClip("player", guiDepth++);
this.mc = player;
}
this.maxhp = 6;
this.hp = this.maxhp;
this.lastdamage = 0;
this.damagepause = 40;
this.respawnpause = respawnTime * 2;
}
function PlanetClass(imc) {
this.mc = imc;
this.velocityX = 0;
this.velocityY = 0;
this.maxhp = 10;
this.hp = this.maxhp;
}
function WeaponClass(clp, cd, imc) {
this.maxclip = clp;
this.clip = this.maxclip;
this.cooldown = cd;
this.lastshot = 0;
gui.clip.gotoAndPlay(this.clip + 2);
this.reloaded = 0;
this.mc = imc;
this.isShrapnel = false;
i = 1;
while (i <= this.maxclip) {
bulletcover.duplicateMovieClip("bulletcover" + i, 8000 + i);
var obj = _root["bulletcover" + i];
obj._x = 25 + (i * 12);
obj._y = 12;
i++;
}
}
function GameClass() {
this.objects = new Array();
this.bullets = new Array();
this.bonuses = new Array();
this.player = new PlayerClass(playersrc);
this.player.mc.swapDepths(8000);
this.planet = new PlanetClass(planetsrc);
this.frames = 0;
this.spawnCounter = 0;
}
var entityCounter = 100;
var orbitLength = 80;
var reloadTime = aimsrc.reload;
var respawnTime = aimsrc.respawn;
var guiDepth = 10000;
var levelCompleteMessageDisplayed = false;
var gameOverState = false;
CLEAN_PAUSE = 100;
SPAWN_PAUSE = 100;
_quality = "low";
weaponsrc.duplicateMovieClip("weapon", guiDepth++);
weapon._x = 14;
weapon._y = 14;
message.currentleveltext = "LEVEL " + level;
message.gotoAndPlay("level");
cursor.gotoAndStop("aim");
BONUS_EXPLOSION = 1;
BONUS_NUKE = 2;
BONUS_SPREAD = 3;
BONUS_SCORE = 4;
BONUS_SLIME = 5;
BONUS_ICE = 6;
STATUS_NORMAL = 0;
STATUS_SLIME = 1;
STATUS_ICE = 2;
STATUS_PERIOD = 200;
var bonusmc = new Array();
bonusmc[BONUS_EXPLOSION] = caskorange;
bonusmc[BONUS_NUKE] = caskred;
bonusmc[BONUS_SPREAD] = caskyellow;
bonusmc[BONUS_SCORE] = box;
bonusmc[BONUS_SLIME] = caskgreen;
bonusmc[BONUS_ICE] = caskblue;
SCORE_PLAYER_HIT_PENALTY = -500;
SCORE_PLAYER_DEATH_PENALTY = -5000;
SCORE_PLANET_HIT_PENALTY = -1000;
SCORE_SHOT_MISS_PENALTY = -50;
SCORE_SLIME_CATCH = 200;
SCORE_ICE_CATCH = 500;
SCORE_EXPLOSION_FACTOR = 8;
SCORE_NUKE_FACTOR = 4;
SCORE_SLIME_DEATH_FACTOR = 5;
SCORE_ICE_DEATH_FACTOR = 10;
shiphpsrc.duplicateMovieClip("shiphp", guiDepth++);
shiphp._x = 60;
shiphp._y = 344;
planethpsrc.duplicateMovieClip("planethp", guiDepth++);
planethp._x = 420;
planethp._y = 344;
mouseListener = new Object();
mouseListener.onMouseDown = function () {
mouseState = true;
};
mouseListener.onMouseUp = function () {
mouseState = false;
};
Mouse.addListener(mouseListener);
EntityClass.prototype.setMovement = function (x, y, vel) {
var len = setLength(x - this.mc._x, y - this.mc._y, vel);
this.velocityX = len[0];
this.velocityY = len[1];
};
EntityClass.prototype.update = function () {
if (this.status != STATUS_NORMAL) {
if ((this.laststatus + STATUS_PERIOD) < game.frames) {
this.setStatus(STATUS_NORMAL);
}
if (this.status == STATUS_SLIME) {
this.mc._x = this.mc._x + (this.velocityX / 2);
this.mc._y = this.mc._y + (this.velocityY / 2);
}
} else {
this.mc._x = this.mc._x + this.velocityX;
this.mc._y = this.mc._y + this.velocityY;
}
};
EntityClass.prototype.die = function () {
if (this.alive) {
var sc = this.mc.score;
if (this.status == STATUS_SLIME) {
sc = sc * SCORE_SLIME_DEATH_FACTOR;
} else if (this.status == STATUS_SLIME) {
sc = sc * SCORE_ICE_DEATH_FACTOR;
}
adjustScore(sc);
this.mc.gotoAndPlay("decay");
} else {
this.mc.gotoAndPlay("dead");
}
this.alive = false;
if (this.bonus != 0) {
var obj = new BonusClass(this.mc._x, this.mc._y, this.bonus, bonusmc[this.bonus]);
game.addBonus(obj);
}
};
EntityClass.prototype.dieSilent = function () {
this.alive = false;
this.mc.gotoAndPlay("dead");
};
EntityClass.prototype.setStatus = function (newstatus) {
if (newstatus == STATUS_NORMAL) {
this.mc.gotoAndPlay("alive");
this.status = newstatus;
this.laststatus = game.frames;
} else if (this.mc._currentframe == 1) {
this.status = newstatus;
if (newstatus == STATUS_SLIME) {
this.mc.gotoAndPlay("slime");
} else {
this.mc.gotoAndPlay("ice");
}
this.laststatus = game.frames;
}
};
BonusClass.prototype = new EntityClass();
BonusClass.prototype.die = function () {
super.die();
if (this.effect == BONUS_EXPLOSION) {
for (i in game.bonuses) {
var obj = game.bonuses[i];
if ((((obj.alive && (obj.mc._x > (this.mc._x - 60))) && (obj.mc._x < (this.mc._x + 60))) && (obj.mc._y > (this.mc._y - 60))) && (obj.mc._y < (this.mc._y + 60))) {
obj.die();
}
adjustScore(obj.mc.score * SCORE_EXPLOSION_FACTOR);
}
for (i in game.objects) {
var obj = game.objects[i];
if ((((obj.alive && (obj.mc._x > (this.mc._x - 70))) && (obj.mc._x < (this.mc._x + 70))) && (obj.mc._y > (this.mc._y - 70))) && (obj.mc._y < (this.mc._y + 70))) {
obj.die();
}
adjustScore(obj.mc.score * SCORE_EXPLOSION_FACTOR);
}
} else if (this.effect == BONUS_NUKE) {
for (i in game.bonuses) {
var obj = game.bonuses[i];
if ((((obj.alive && (obj.mc._x > (this.mc._x - 90))) && (obj.mc._x < (this.mc._x + 90))) && (obj.mc._y > (this.mc._y - 90))) && (obj.mc._y < (this.mc._y + 90))) {
obj.die();
}
adjustScore(obj.mc.score * SCORE_NUKE_FACTOR);
}
for (i in game.objects) {
var obj = game.objects[i];
if ((((obj.alive && (obj.mc._x > (this.mc._x - 100))) && (obj.mc._x < (this.mc._x + 100))) && (obj.mc._y > (this.mc._y - 100))) && (obj.mc._y < (this.mc._y + 100))) {
obj.die();
}
adjustScore(obj.mc.score * SCORE_NUKE_FACTOR);
}
} else if (this.effect == BONUS_SPREAD) {
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x - 10, this.mc._y, 5);
obj.mc._rotation = 270;
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x + 10, this.mc._y, 5);
obj.mc._rotation = 90;
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x, this.mc._y - 10, 5);
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x, this.mc._y + 10, 5);
obj.mc._rotation = 180;
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x - 10, this.mc._y - 10, 5);
obj.mc._rotation = -45;
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x + 10, this.mc._y - 10, 5);
obj.mc._rotation = 45;
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x - 10, this.mc._y + 10, 5);
obj.mc._rotation = 225;
game.addBullet(obj);
obj = new EntityClass(this.mc._x, this.mc._y, plasma);
obj.setMovement(this.mc._x + 10, this.mc._y + 10, 5);
obj.mc._rotation = 135;
game.addBullet(obj);
} else if (this.effect == BONUS_SLIME) {
for (i in game.objects) {
var obj = game.objects[i];
if ((((obj.alive && (obj.mc._x > (this.mc._x - 90))) && (obj.mc._x < (this.mc._x + 90))) && (obj.mc._y > (this.mc._y - 90))) && (obj.mc._y < (this.mc._y + 90))) {
obj.setStatus(STATUS_SLIME);
}
adjustScore(SCORE_SLIME_CATCH);
}
} else if (this.effect == BONUS_ICE) {
for (i in game.objects) {
var obj = game.objects[i];
if ((((obj.alive && (obj.mc._x > (this.mc._x - 90))) && (obj.mc._x < (this.mc._x + 90))) && (obj.mc._y > (this.mc._y - 90))) && (obj.mc._y < (this.mc._y + 90))) {
obj.setStatus(STATUS_ICE);
}
adjustScore(SCORE_ICE_CATCH);
}
}
};
PlayerClass.prototype = new EntityClass();
PlayerClass.prototype.update = function () {
if (this.hp <= 0) {
if ((this.lastdamage + this.respawnpause) < game.frames) {
this.hp = this.maxhp;
this.mc.gotoAndPlay("respawn");
shiphp.bar._xscale = 100;
}
return(undefined);
}
var x = (_xmouse - this.mc._x);
var y = (_ymouse - this.mc._y);
var distance = getLength(x, y);
var vel;
if (distance > 100) {
var fvel = ((distance - 100) / 20);
if (fvel > 2) {
fvel = 2;
}
vel = setLength(x, y, fvel);
} else {
vel = [0, 0];
}
this.velocityX = vel[0];
this.velocityY = vel[1];
super.update();
var x = (this.mc._x - planetsrc._x);
var y = (this.mc._y - planetsrc._y);
var len = setLength(x, y, orbitLength);
x = len[0] + planetsrc._x;
y = len[1] + planetsrc._y;
this.mc._x = x;
this.mc._y = y;
if (distance > 5) {
x = _root._xmouse - x;
y = _root._ymouse - y;
if (x > 0.01) {
var deg = Math.atan(y / x);
this.mc._rotation = (deg * 180) / Math.PI;
} else if (x < -0.01) {
var deg = Math.atan(y / x);
this.mc._rotation = 180 + ((deg * 180) / Math.PI);
} else if (y > 0) {
this.mc._rotation = 90;
} else {
this.mc._rotation = -90;
}
}
};
PlayerClass.prototype.damage = function () {
if ((this.hp <= 0) || ((this.lastdamage + this.damagepause) > game.frames)) {
return(undefined);
}
this.mc.gotoAndPlay("damage");
this.lastdamage = game.frames;
this.hp--;
shiphp.bar._xscale = (this.hp / this.maxhp) * 100;
if (this.hp <= 0) {
this.mc.gotoAndPlay("decay");
cursor.gotoAndPlay("respawn");
adjustScore(SCORE_PLAYER_DEATH_PENALTY);
} else {
adjustScore(SCORE_PLAYER_HIT_PENALTY);
}
};
PlanetClass.prototype = new EntityClass();
PlanetClass.prototype.update = function () {
};
PlanetClass.prototype.damage = function () {
if ((this.hp <= 0) || ((this.lastdamage + this.damagepause) > game.frames)) {
return(undefined);
}
this.hp--;
planethp.bar._xscale = (this.hp / this.maxhp) * 100;
if (this.hp <= 0) {
this.mc.gotoAndPlay("decay");
}
adjustScore(SCORE_PLANET_HIT_PENALTY);
};
WeaponClass.prototype.shoot = function () {
if ((this.lastshot + this.cooldown) > game.frames) {
return(false);
}
if (this.clip > 0) {
_root["bulletcover" + this.clip]._visible = false;
this.clip--;
if (this.clip <= 0) {
this.reload();
}
this.lastshot = game.frames;
return(true);
}
return(false);
};
WeaponClass.prototype.reload = function () {
this.reloaded = game.frames + (reloadTime * 2);
cursor.gotoAndPlay("reload");
_root.sound.gotoAndPlay("reload");
};
WeaponClass.prototype.update = function () {
if ((this.clip <= 0) && (this.reloaded <= game.frames)) {
this.clip = this.maxclip;
i = 1;
while (i <= this.clip) {
_root["bulletcover" + i]._visible = true;
i++;
}
}
};
WeaponClass.prototype.remove = function () {
i = 1;
while (i <= this.clip) {
_root["bulletcover" + i].removeMovieClip();
i++;
}
};
GameClass.prototype.init = function () {
_root["doInitLevel" + level]();
};
GameClass.prototype.addObject = function (obj) {
this.objects.push(obj);
};
GameClass.prototype.addBullet = function (bul) {
this.bullets.push(bul);
};
GameClass.prototype.addBonus = function (bon) {
this.bonuses.push(bon);
};
GameClass.prototype.isGameOver = function () {
return((this.objects.length > 0) && (this.planet.mc._currentframe == this.planet.mc._totalframes));
};
GameClass.prototype.cleanUp = function () {
for (i in this.objects) {
this.objects[i].dieSilent();
}
for (i in this.bonuses) {
this.bonuses[i].dieSilent();
}
for (i in this.bullets) {
this.bullets[i].dieSilent();
}
planethp.removeMovieClip();
shiphp.removeMovieClip();
_root.weapon.removeMovieClip();
this.weapon.remove();
this.clean();
};
GameClass.prototype.gameOver = function () {
this.cleanUp();
cursor.gotoAndPlay("arrow");
gameOverState = true;
this.player.mc.removeMovieClip();
};
GameClass.prototype.levelComplete = function () {
this.cleanUp();
level++;
};
GameClass.prototype.update = function () {
updateMouse();
if (_root.paused) {
return(undefined);
}
this.player.update();
this.weapon.update();
this.planet.update();
for (i in this.objects) {
var obj = this.objects[i];
obj.update();
if (obj.alive) {
if (obj.mc.hit.hitTest(this.player.mc.hit)) {
this.player.damage();
} else if (obj.mc.hit.hitTest(this.planet.mc.hit)) {
this.planet.damage();
obj.die();
}
}
}
for (i in this.bonuses) {
this.bonuses[i].update();
}
for (i in this.bullets) {
var bul = this.bullets[i];
if (bul.alive) {
bul.update();
if ((((bul.mc._x < -20) || (bul.mc._x > 500)) || (bul.mc._y < -20)) || (bul.mc._y > 380)) {
bul.dieSilent();
adjustScore(SCORE_SHOT_MISS_PENALTY);
} else if ((game.frames % 5) == 0) {
for (j in this.bonuses) {
var bon = this.bonuses[j];
if (bon.alive && (bon.mc.hit.hitTest(bul.mc._x, bul.mc._y, false))) {
bon.die();
bul.die();
break;
}
}
for (j in this.objects) {
var obj = this.objects[j];
if (obj.alive && (obj.mc.hit.hitTest(bul.mc._x, bul.mc._y, false))) {
obj.die();
bul.die();
break;
}
}
}
}
}
if (this.isGameOver()) {
this.gameOver();
}
this.frames++;
if ((this.frames % CLEAN_PAUSE) == 0) {
this.clean();
}
if ((this.frames % SPAWN_PAUSE) == 1) {
_root["doSpawnLevel" + level](this.spawnCounter++);
}
};
GameClass.prototype.clean = function () {
var obj = new Array();
for (i in this.objects) {
var o = this.objects[i];
if ((o.alive || ((o.mc._currentframe != o.mc._totalframes) && (o.mc._currentframe != 1))) && ((((o.mc._x > -50) && (o.mc._x < 530)) && (o.mc._y > -50)) && (o.mc._y < 410))) {
obj.push(o);
} else {
o.mc.removeMovieClip();
}
}
this.objects = obj;
var bon = new Array();
for (i in this.bonuses) {
var b = this.bonuses[i];
if (b.alive || (b.mc._currentframe < b.mc._totalframes)) {
bon.push(b);
} else {
b.mc.removeMovieClip();
}
}
this.bonuses = bon;
var bul = new Array();
for (i in this.bullets) {
var b = this.bullets[i];
if (b.alive || (b.mc._currentframe < b.mc._totalframes)) {
bul.push(b);
} else {
b.mc.removeMovieClip();
}
}
this.bullets = bul;
};
GameClass.prototype.shootAt = function (x, y) {
if ((this.player.hp <= 0) || (!this.weapon.shoot())) {
return(undefined);
}
this.player.mc.gotoAndPlay("shot");
var obj = new EntityClass(this.player.mc._x, this.player.mc._y, this.weapon.mc);
obj.setMovement(x, y, 5);
game.addBullet(obj);
if (this.weapon.isShrapnel) {
var x1 = (x - this.player.mc._x);
var y1 = (y - this.player.mc._y);
var angle = 0.2;
var s = Math.sin(angle);
var c = Math.cos(angle);
var nx = ((x1 * c) + (y1 * s));
var obj = new EntityClass(this.player.mc._x, this.player.mc._y, this.weapon.mc);
obj.setMovement(nx + this.player.mc._x, (((-x1) * s) + (y1 * c)) + this.player.mc._y, 5);
obj.mc._xscale = 80;
obj.mc._yscale = 80;
game.addBullet(obj);
var angle = -0.2;
var s = Math.sin(angle);
var c = Math.cos(angle);
var nx = ((x1 * c) + (y1 * s));
var obj = new EntityClass(this.player.mc._x, this.player.mc._y, this.weapon.mc);
obj.setMovement(nx + this.player.mc._x, (((-x1) * s) + (y1 * c)) + this.player.mc._y, 5);
obj.mc._xscale = 80;
obj.mc._yscale = 80;
game.addBullet(obj);
}
};
GameClass.prototype.spawnOffscreen = function (vel, mc, bonus, orient) {
var x = 0;
var y = 0;
switch (Math.floor(Math.random() * 4)) {
case 0 :
x = -20;
y = Math.random() * 360;
break;
case 1 :
x = 500;
y = Math.random() * 360;
break;
case 2 :
x = Math.random() * 480;
y = -20;
break;
case 3 :
x = Math.random() * 480;
y = 380;
}
if ((x < 50) && (y < 50)) {
x = Math.random() * 480;
y = 380;
}
var obj = new EntityClass(x, y, mc);
obj.bonus = bonus;
obj.setMovement(240, 180, vel);
if ((orient != undefined) && (orient)) {
obj.mc._rotation = rad2deg(Math.atan2(180 - obj.mc._y, 240 - obj.mc._x)) + 90;
}
this.addObject(obj);
};
GameClass.prototype.spawnOnscreen = function (vel, mc, bonus) {
var x = 0;
var y = 0;
switch (Math.floor(Math.random() * 4)) {
case 0 :
x = 20 + (Math.random() * 110);
y = 20 + (Math.random() * 320);
break;
case 1 :
x = 460 - (Math.random() * 110);
y = 20 + (Math.random() * 320);
break;
case 2 :
x = 20 + (Math.random() * 440);
y = 20 + (Math.random() * 50);
break;
case 3 :
x = 20 + (Math.random() * 440);
y = 340 - (Math.random() * 50);
}
if ((x < 50) && (y < 50)) {
x = Math.random() * 480;
y = 380;
}
var obj = new EntityClass(x, y, mc);
obj.bonus = bonus;
obj.setMovement(240, 180, vel);
obj.mc.gotoAndPlay("zoom");
this.addObject(obj);
};
var game = new GameClass();
game.init();
if (gameInit) {
gameInit = false;
} else {
hideOffscreenStuff();
}
Frame 8
game.update();
if ((!Key.isDown(32)) && (prevSpace)) {
togglePause();
}
prevSpace = Key.isDown(32);
if (mouseState && (!paused)) {
game.shootAt(_root._xmouse, _root._ymouse);
}
prevMouseState = mouseState;
var nextlevel = false;
if (gameOverState) {
game.planet.mc.gotoAndPlay("normal");
gotoAndPlay (12);
} else {
if (game.objects.length == 0) {
if (levelCompleteMessageDisplayed) {
if (message._currentframe == 1) {
game.levelComplete();
nextlevel = true;
}
} else {
levelCompleteMessageDisplayed = true;
message.gotoAndPlay("complete");
}
}
if (nextlevel) {
game.player.mc.removeMovieClip();
cursor.gotoAndPlay("arrow");
switch (level) {
case 2 :
gotoAndPlay (16);
break;
case 3 :
gotoAndPlay (22);
break;
case 4 :
gotoAndPlay (18);
break;
case 5 :
gotoAndPlay (24);
break;
case 6 :
gotoAndPlay (20);
break;
case 7 :
gotoAndPlay (10);
}
} else {
play();
}
}
Frame 9
game.update();
gotoAndPlay (8);
Frame 10
_quality = "high";
updateMouse();
play();
Frame 11
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay (10);
Frame 12
_quality = "high";
updateMouse();
play();
Frame 13
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay (12);
Frame 14
_quality = "high";
updateMouse();
play();
Frame 15
nameinput.onSetFocus = function (oldFocus) {
if (this.text == "Your name here") {
this.text = "";
}
};
updateMouse();
gotoAndPlay (14);
Frame 16
_quality = "high";
updateMouse();
play();
Frame 17
updateMouse();
gotoAndPlay (16);
Frame 18
_quality = "high";
updateMouse();
play();
Frame 19
updateMouse();
gotoAndPlay (18);
Frame 20
_quality = "high";
updateMouse();
play();
Frame 21
updateMouse();
gotoAndPlay (20);
Frame 22
_quality = "high";
updateMouse();
play();
Frame 23
updateMouse();
gotoAndPlay (22);
Frame 24
_quality = "high";
updateMouse();
play();
Frame 25
updateMouse();
gotoAndPlay (24);
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
play();
Symbol 41 MovieClip Frame 14
stop();
Symbol 42 MovieClip Frame 1
var score = 50;
stop();
Symbol 42 MovieClip Frame 2
stop();
Symbol 42 MovieClip Frame 3
stop();
Symbol 42 MovieClip Frame 4
_root.sound.gotoAndPlay("explosion");
play();
Symbol 42 MovieClip Frame 18
stop();
Symbol 50 MovieClip Frame 1
stop();
Symbol 50 MovieClip Frame 2
_root.sound.gotoAndPlay("hitbullet");
play();
Symbol 50 MovieClip Frame 28
stop();
Symbol 54 MovieClip Frame 1
stop();
Symbol 54 MovieClip Frame 2
_root.sound.gotoAndPlay("hitplasma");
play();
Symbol 54 MovieClip Frame 28
stop();
Symbol 56 MovieClip Frame 1
stop();
Symbol 56 MovieClip Frame 2
_root.sound.gotoAndPlay("hitbullet");
play();
Symbol 56 MovieClip Frame 28
stop();
Symbol 65 MovieClip Frame 1
var score = 100;
stop();
Symbol 65 MovieClip Frame 2
stop();
Symbol 65 MovieClip Frame 3
stop();
Symbol 65 MovieClip Frame 4
_root.sound.gotoAndPlay("explosion");
play();
Symbol 65 MovieClip Frame 18
gotoAndPlay (34);
Symbol 65 MovieClip Frame 19
_root.sound.gotoAndPlay("appear");
play();
Symbol 65 MovieClip Frame 33
gotoAndPlay (1);
Symbol 65 MovieClip Frame 34
stop();
Symbol 71 MovieClip Frame 1
var score = 75;
stop();
Symbol 71 MovieClip Frame 2
stop();
Symbol 71 MovieClip Frame 3
stop();
Symbol 71 MovieClip Frame 4
_root.sound.gotoAndPlay("explosion");
play();
Symbol 71 MovieClip Frame 18
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 73 MovieClip Frame 2
_root.sound.gotoAndPlay("hitbullet");
play();
Symbol 73 MovieClip Frame 28
stop();
Symbol 79 MovieClip Frame 1
var score = 125;
stop();
Symbol 79 MovieClip Frame 2
stop();
Symbol 79 MovieClip Frame 3
stop();
Symbol 79 MovieClip Frame 4
_root.sound.gotoAndPlay("explosion");
play();
Symbol 79 MovieClip Frame 18
stop();
Symbol 85 MovieClip Frame 1
var score = 150;
stop();
Symbol 85 MovieClip Frame 2
stop();
Symbol 85 MovieClip Frame 3
stop();
Symbol 85 MovieClip Frame 4
_root.sound.gotoAndPlay("explosion");
play();
Symbol 85 MovieClip Frame 17
gotoAndPlay (33);
Symbol 85 MovieClip Frame 18
_root.sound.gotoAndPlay("appear");
play();
Symbol 85 MovieClip Frame 32
gotoAndPlay (1);
Symbol 85 MovieClip Frame 33
stop();
Symbol 91 MovieClip Frame 1
var score = 175;
stop();
Symbol 91 MovieClip Frame 2
stop();
Symbol 91 MovieClip Frame 3
stop();
Symbol 91 MovieClip Frame 4
_root.sound.gotoAndPlay("explosion");
play();
Symbol 91 MovieClip Frame 18
stop();
Symbol 94 MovieClip Frame 1
stop();
Symbol 94 MovieClip Frame 2
stop();
Symbol 163 MovieClip Frame 1
var score = 25;
stop();
Symbol 163 MovieClip Frame 2
_root.sound.gotoAndPlay("explosionbig");
play();
Symbol 163 MovieClip Frame 16
stop();
Symbol 168 MovieClip Frame 1
var score = 50;
stop();
Symbol 168 MovieClip Frame 2
_root.sound.gotoAndPlay("explosionbig");
play();
Symbol 168 MovieClip Frame 16
stop();
Symbol 173 MovieClip Frame 1
var score = 210;
stop();
Symbol 173 MovieClip Frame 2
play();
_root.sound.gotoAndPlay("shotplasma");
Symbol 173 MovieClip Frame 16
stop();
Symbol 243 MovieClip Frame 1
var score = 100;
stop();
Symbol 243 MovieClip Frame 2
play();
_root.sound.gotoAndPlay("bonus");
Symbol 243 MovieClip Frame 25
stop();
Symbol 253 MovieClip Frame 1
var score = 75;
stop();
Symbol 253 MovieClip Frame 2
play();
_root.sound.gotoAndPlay("slime");
Symbol 253 MovieClip Frame 16
stop();
Symbol 263 MovieClip Frame 1
var score = 100;
stop();
Symbol 263 MovieClip Frame 2
play();
_root.sound.gotoAndPlay("ice");
Symbol 263 MovieClip Frame 16
stop();
Symbol 273 MovieClip Frame 1
var reload = 60;
var respawn = 120;
stop();
Symbol 273 MovieClip Frame 2
stop();
Symbol 273 MovieClip Frame 3
stop();
Symbol 273 MovieClip Frame 4
play();
Symbol 273 MovieClip Frame 63
gotoAndStop (1);
Symbol 273 MovieClip Frame 64
play();
Symbol 273 MovieClip Frame 183
gotoAndStop (1);
Symbol 273 MovieClip Frame 184
stop();
Symbol 284 MovieClip Frame 1
stop();
Symbol 284 MovieClip Frame 2
_root.sound.gotoAndPlay("shotcannon");
play();
Symbol 284 MovieClip Frame 4
gotoAndStop (1);
Symbol 284 MovieClip Frame 5
_root.sound.gotoAndPlay("hitbullet");
play();
Symbol 284 MovieClip Frame 15
gotoAndStop (1);
Symbol 284 MovieClip Frame 16
_root.sound.gotoAndPlay("explosion");
play();
Symbol 284 MovieClip Frame 30
stop();
Symbol 284 MovieClip Frame 31
play();
Symbol 284 MovieClip Frame 50
gotoAndStop (1);
Symbol 292 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 2
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
stop();
Symbol 312 MovieClip Frame 1
stop();
Symbol 312 MovieClip Frame 3
play();
Symbol 312 MovieClip Frame 4
stop();
Symbol 312 MovieClip Frame 5
play();
Symbol 312 MovieClip Frame 6
stop();
Symbol 312 MovieClip Frame 7
play();
Symbol 312 MovieClip Frame 8
stop();
Symbol 312 MovieClip Frame 9
play();
Symbol 312 MovieClip Frame 10
stop();
Symbol 312 MovieClip Frame 11
play();
Symbol 312 MovieClip Frame 12
stop();
Symbol 312 MovieClip Frame 13
play();
Symbol 312 MovieClip Frame 14
stop();
Symbol 312 MovieClip Frame 15
play();
Symbol 312 MovieClip Frame 16
stop();
Symbol 312 MovieClip Frame 17
play();
Symbol 312 MovieClip Frame 18
stop();
Symbol 312 MovieClip Frame 19
play();
Symbol 312 MovieClip Frame 20
stop();
Symbol 312 MovieClip Frame 21
play();
Symbol 312 MovieClip Frame 22
stop();
Symbol 312 MovieClip Frame 23
play();
Symbol 312 MovieClip Frame 24
stop();
Symbol 312 MovieClip Frame 25
play();
Symbol 312 MovieClip Frame 26
stop();
Symbol 312 MovieClip Frame 27
play();
Symbol 312 MovieClip Frame 28
stop();
Symbol 315 Button
on (rollOver) {
button2.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
getURL (_root.downloadURL, "_blank");
}
Symbol 319 MovieClip Frame 1
stop();
Symbol 319 MovieClip Frame 2
play();
Symbol 320 Button
on (rollOver) {
button.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
_root.gotoAndPlay("play");
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
play();
Symbol 332 MovieClip Frame 1
stop();
Symbol 332 MovieClip Frame 2
play();
Symbol 333 Button
on (rollOver) {
cursor.gotoAndPlay("hand");
greatgames.gotoAndPlay("zoom");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
getURL (_root.moreGamesURL, "_blank");
}
Symbol 337 MovieClip Frame 71
stop();
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
play();
Symbol 338 MovieClip Frame 5
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 10
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 14
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 18
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 20
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 24
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 28
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 30
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 34
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 39
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 42
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 47
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 50
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 54
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 58
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 62
_root.sound.gotoAndPlay("explosion");
Symbol 338 MovieClip Frame 66
_root.sound.gotoAndPlay("explosionbig");
Symbol 338 MovieClip Frame 95
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 2
play();
Symbol 346 MovieClip Frame 80
gotoAndStop (1);
Symbol 346 MovieClip Frame 81
play();
Symbol 346 MovieClip Frame 161
gotoAndStop (1);
Symbol 346 MovieClip Frame 162
play();
Symbol 346 MovieClip Frame 311
gotoAndStop (1);
Symbol 346 MovieClip Frame 312
play();
Symbol 346 MovieClip Frame 370
gotoAndStop (1);
Symbol 346 MovieClip Frame 371
play();
Symbol 346 MovieClip Frame 429
gotoAndStop (1);
Symbol 364 Button
on (rollOver) {
_root.cursor.gotoAndPlay("hand");
}
on (rollOut) {
_root.cursor.gotoAndPlay("arrow");
}
on (release) {
var strOut = ((_root.playername + "|") + _root.score);
var strOut2 = _root.EncrpytString(strOut);
getURL ((_root.HiScoreSaveURL + "?") + strOut2, "_blank");
}
Symbol 366 Button
on (rollOver) {
buttongetfull.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
getURL (_root.orderURL, "_blank");
}
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
play();
Symbol 369 Button
on (rollOver) {
buttonstartover.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
level = 1;
score = 0;
_root.gotoAndPlay("level");
}
Symbol 371 MovieClip Frame 1
stop();
Symbol 371 MovieClip Frame 2
play();
Symbol 377 Button
on (rollOver) {
button2.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
getURL (downloadURL, "_blank");
}
Symbol 379 Button
on (rollOver) {
buttonagain.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
score = 0;
_root.gotoAndPlay("level");
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
play();
Symbol 382 Button
on (rollOver) {
buttoncontinue.gotoAndPlay("flash");
cursor.gotoAndPlay("hand");
sound.gotoAndPlay("mouseover");
}
on (rollOut) {
cursor.gotoAndPlay("arrow");
}
on (release) {
sound.gotoAndPlay("mouseclick");
_root.gotoAndPlay("level");
}
Symbol 384 MovieClip Frame 1
stop();
Symbol 384 MovieClip Frame 2
play();
Symbol 390 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 1
stop();