Frame 1
stop();
var myMenu_cm = new ContextMenu();
_root.menu = myMenu_cm;
myMenu_cm.hideBuiltInItems();
var depth = 10000000;
Mouse.hide();
attachMovie("mouse_mc", "_M", 20000000);
mouseList = new Object();
Mouse.addListener(mouseList);
mouseList.onMouseMove = function () {
_M._x = _xmouse;
_M._y = _ymouse;
};
Frame 2
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("ade6b20d", this, 10301, true);
Frame 3
function rotateTo(obj, x, y) {
var _local3 = 0;
var _local4 = 0;
var _local1 = 0;
var _local2 = 0;
_local3 = y - obj._y;
_local4 = x - obj._x;
_local1 = Math.atan2(_local3, _local4);
_local2 = Math.round((_local1 * 180) / Math.PI);
return(_local2);
}
function screenTrans(num) {
attachMovie("screen_trans", "screen_trans", depth++);
screen_trans.frameNum = num;
}
function playSound(sound) {
if (!_muted) {
menuSound.attachSound(sound);
menuSound.start();
}
}
function playMusic(sound) {
if (!_muted) {
menuMusic.setVolume(100);
menuMusic.attachSound(sound);
menuMusic.start();
menuMusic.onSoundComplete = function () {
this.start();
};
}
}
stop();
var newGame = true;
var funMode = false;
var instructions = false;
play_btn.onRelease = function () {
if (!instructions) {
_root.playSound("button_click");
screenTrans(4);
newGame = true;
funMode = false;
}
};
cont_btn.onRelease = function () {
if (!instructions) {
mySave = SharedObject.getLocal("mySave");
if (mySave.data.currentLevel != undefined) {
_root.playSound("button_click");
screenTrans(4);
newGame = false;
funMode = false;
} else {
_root.playSound("error_button");
}
}
};
fun_btn.onRelease = function () {
if (!instructions) {
_root.playSound("button_click");
screenTrans(4);
funMode = true;
}
};
gun.onEnterFrame = function () {
this._rotation = rotateTo(this, _xmouse, _ymouse);
};
inst_btn.onRelease = function () {
_root.playSound("button_click");
instructions = true;
attachMovie("instr_m", "instr_m", depth++);
};
brand_btn1.onRelease = function () {
getURL ("http://www.flobzoo.com", "_blank", "POST");
};
brand_btn2.onRelease = function () {
getURL ("http://www.flibus.com", "_blank", "POST");
};
var menuSound = new Sound();
menuSound.setVolume(45);
var menuMusic = new Sound();
_root.playMusic("menuMusic");
play_btn.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
play_btn.onRollOut = function () {
this.gotoAndStop(1);
};
inst_btn.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
inst_btn.onRollOut = function () {
this.gotoAndStop(1);
};
cont_btn.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
cont_btn.onRollOut = function () {
this.gotoAndStop(1);
};
cred_btn.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
cred_btn.onRollOut = function () {
this.gotoAndStop(1);
};
fun_btn.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
fun_btn.onRollOut = function () {
this.gotoAndStop(1);
};
brand_btn1.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
brand_btn1.onRollOut = function () {
this.gotoAndStop(1);
};
brand_btn2.onRollOver = function () {
if (!instructions) {
_root.playSound("btn_over");
}
this.gotoAndStop(2);
};
brand_btn2.onRollOut = function () {
this.gotoAndStop(1);
};
Frame 4
function main() {
initPlayer();
initListeners();
initMouseRotation();
initSpaceCenter();
beginLevel(currentLevel);
gameLoop();
}
function gameLoop() {
_root.onEnterFrame = function () {
if ((playerHP < 1) || (scHP < 1)) {
M_X = attachMovie("lose_explosion", "M_explosion" + depth, depth++);
M_X._x = Player._x;
M_X._y = Player._y;
M_X = attachMovie("lose_explosion", "M_explosion" + depth, depth++);
M_X._x = sCenter._x;
M_X._y = sCenter._y;
removeMovieClip(Player);
removeMovieClip(sCenter);
removeMovieClip(scGun);
e = 0;
while (e < enemyArray.length) {
removeMovieClip(enemyArray[e]);
e++;
}
mUp = false;
leftUp = false;
rightUp = false;
upUp = false;
downUp = false;
spaceUp = false;
clearInterval(spawnInt);
Key.removeListener(myKeyListener);
Mouse.removeListener(mouseListener);
playerHP = 0;
scHP = 0;
attachMovie("death_screen", "D_S", depth++);
D_S._x = 325;
D_S._y = 325;
delete player.onEnterFrame;
delete _root.onEnterFrame;
}
if (!_pause) {
initMouseRotation();
hitTestLoop();
shootTimer();
missleTimer();
if ((levelOver && (enemyArray.length == 0)) && (currentLevel != 15)) {
endLevel(true);
} else if (((currentLevel == 15) && (enemyArray.length == 0)) && (levelOver)) {
attachMovie("win_screen", "wS", depth++);
wS._x = 325;
wS._y = 325;
delete this.onEnterFrame;
}
}
};
}
function initListeners() {
myKeyListener = new Object();
Key.addListener(myKeyListener);
myKeyListener.onKeyDown = function () {
currentKeyDown = Key.getAscii();
if (currentKeyDown == iKeyP) {
pauseGame();
}
if (currentKeyDown == iKeyLeft) {
leftUp = true;
}
if (currentKeyDown == iKeyRight) {
rightUp = true;
}
if (currentKeyDown == iKeyUp) {
upUp = true;
}
if (currentKeyDown == iKeyDown) {
downUp = true;
}
if (currentKeyDown == 32) {
spaceUp = true;
}
};
myKeyListener.onKeyUp = function () {
currentKeyDown = Key.getAscii();
if (currentKeyDown == iKeyLeft) {
leftUp = false;
}
if (currentKeyDown == iKeyRight) {
rightUp = false;
}
if (currentKeyDown == iKeyUp) {
upUp = false;
}
if (currentKeyDown == iKeyDown) {
downUp = false;
}
if (currentKeyDown == 32) {
spaceUp = false;
}
};
mouseListener = new Object();
Mouse.addListener(mouseListener);
mouseListener.onMouseDown = function () {
mUp = true;
};
mouseListener.onMouseUp = function () {
mUp = false;
};
}
function initMouseRotation() {
Player.gun._rotation = rotateTo(Player, _xmouse, _ymouse);
}
function initPlayer() {
_root.attachMovie("spaceship_mc", "Player", 9999999);
Player._x = 325;
Player._y = 225;
Player.onEnterFrame = function () {
if (!_pause) {
Player._y = Player._y + yspeed;
Player._x = Player._x + xspeed;
if (upUp) {
yspeed--;
this._down._alpha = this._down._alpha + 18;
} else if (downUp) {
yspeed++;
this._top._alpha = this._top._alpha + 18;
}
if (this._down._alpha > 100) {
this._down._alpha = 100;
}
if (this._top._alpha > 100) {
this._top._alpha = 100;
}
if (leftUp) {
xspeed--;
this._right._alpha = this._right._alpha + 18;
} else if (rightUp) {
xspeed++;
this._left._alpha = this._left._alpha + 18;
}
if (this._left._alpha > 100) {
this._left._alpha = 100;
}
if (this._right._alpha > 100) {
this._right._alpha = 100;
}
if ((!upUp) && (!downUp)) {
if (yspeed > 0) {
yspeed--;
} else if (yspeed < 0) {
yspeed++;
}
}
if (!upUp) {
if (this._down._alpha > 0) {
this._down._alpha = this._down._alpha - 10;
}
}
if (!downUp) {
if (this._top._alpha > 0) {
this._top._alpha = this._top._alpha - 10;
}
}
if (!rightUp) {
if (this._left._alpha > 0) {
this._left._alpha = this._left._alpha - 10;
}
}
if (!leftUp) {
if (this._right._alpha > 0) {
this._right._alpha = this._right._alpha - 10;
}
}
if ((!rightUp) && (!leftUp)) {
if (xspeed > 0) {
xspeed--;
} else if (xspeed < 0) {
xspeed++;
}
}
if (xspeed > topSpeed) {
xspeed = topSpeed;
}
if (xspeed < (-topSpeed)) {
xspeed = -topSpeed;
}
if (yspeed > topSpeed) {
yspeed = topSpeed;
}
if (yspeed < (-topSpeed)) {
yspeed = -topSpeed;
}
if (Player._x < 20) {
xspeed = xspeed + 18;
} else if (Player._y < 20) {
yspeed = yspeed + 18;
} else if (Player._y > 640) {
yspeed = yspeed + -18;
} else if (Player._x > 626) {
xspeed = xspeed + -18;
}
}
};
}
function beginLevel(lvlNum) {
spawnInt = setInterval(spawnEnemy, spawnRate);
if (!funMode) {
powerInt = setInterval(spawnPower, 15000);
} else {
powerInt = setInterval(spawnPower, 7000);
}
}
function initSpaceCenter() {
attachMovie("space_center", "sCenter", 80000);
sCenter._x = 325;
sCenter._y = 325;
if (spaceGun) {
attachMovie("space_center_gun", "scGun", 99991);
scGun._x = 325;
scGun._y = 325;
scgInt = setInterval(scTarget, scgShootTime);
}
}
function endLevel(bool) {
endMega();
e = 0;
while (e < enemyArray.length) {
removeMovieClip(enemyArray[e]);
e++;
}
Key.removeListener(myKeyListener);
Mouse.removeListener(mouseListener);
removeMovieClip(Player);
removeMovieClip(sCenter);
removeMovieClip(scGun);
delete _root.onEnterFrame;
delete Player.onEnterFrame;
delete _root.onEnterFrame;
clearInterval(powerInt);
clearInterval(scgInt);
p = 0;
while (p < missleArray.length) {
missleArray[p]._visible = false;
p++;
}
if (bool) {
_root.playMusic("menuMusic");
_root.attachMovie("Menu", "Menu_", 100);
}
}
function newLevel() {
upUp = false;
downUp = false;
leftUp = false;
rightUp = false;
_root.levelOver = false;
_root.currentLevel++;
if (((currentLevel != 5) && (currentLevel != 10)) && (currentLevel != 15)) {
splashText("Level " + currentLevel);
} else {
splashText("BOSS STAGE");
}
enemysNum = (currentLevel * 4) + 30;
_root.playerDead = false;
_root.bNum = 0;
_root.Player._x = 325;
_root.Player._y = 225;
playerHP = playerHPTotal;
scHP = scHPTotal;
p = 0;
while (p < missleArray.length) {
missleArray[p]._visible = true;
p++;
}
_root.main();
}
function placeEnemy(obj) {
spawn = random(4);
switch (spawn) {
case 0 :
obj._x = random(650);
obj._y = _root.enemySpawn[spawn][1];
break;
case 1 :
obj._x = _root.enemySpawn[spawn][0];
obj._y = random(650);
break;
case 2 :
obj._x = random(650);
obj._y = _root.enemySpawn[spawn][1];
break;
case 3 :
obj._x = _root.enemySpawn[spawn][0];
obj._y = random(650);
}
}
function dmgSplash(ary) {
p = 0;
while (p < ary.length) {
checkEnemyHp(ary[p]);
p++;
}
ary = [];
}
function hitTestLoop() {
i = 0;
while (i < enemyArray.length) {
enemyV = enemyArray[i];
k = 0;
while (k < missleArray.length) {
missleV = missleArray[k];
if (missleV.hitTest(enemyV)) {
missleV.hit = true;
z = 0;
while (z < enemyArray.length) {
enemyV2 = enemyArray[z];
xDist = missleV._x - enemyV2._x;
yDist = missleV._y - enemyV2._y;
if (((xDist < mRange) && (yDist > (-mRange))) && ((yDist < mRange) && (xDist > (-mRange)))) {
enemyV2.hp = enemyV2.hp - missleDamage;
mSplash.push(enemyV2);
}
z++;
}
dmgSplash(mSplash);
missleExplosion(missleV);
delete missleV.onEnterFrame;
missleArray.removeValue(missleV);
removeMovieClip(missleV);
}
k++;
}
j = 0;
while (j < bulletArray.length) {
bulletV = bulletArray[j];
if (bulletV.hitTest(enemyV)) {
hitAnimation(enemyArray[i], bulletArray[j]);
enemyV.hp = enemyV.hp - bulletV._dmg;
checkEnemyHp(enemyV);
delete bulletV.onEnterFrame;
bulletArray.removeValue(bulletV);
removeMovieClip(bulletV);
}
j++;
}
if (enemyV.hitTest(Player) && (!enemyV.boss)) {
hitAni(enemyV, Player);
playerHP = playerHP - Math.round(enemyV.dmg * 1.2);
enemyV.hp = enemyV.hp - 1000;
checkEnemyHp(enemyV);
} else if (enemyV.hitTest(sCenter) && (!enemyV.boss)) {
hitAni(enemyV, sCenter);
scHP = scHP - Math.round(enemyV.dmg * 0.2);
enemyV.hp = enemyV.hp - 1000;
checkEnemyHp(enemyV);
}
levelCheck();
i++;
}
e = 0;
while (e < eBulletArray.length) {
eBullet = eBulletArray[e];
if (eBullet.hitTest(Player)) {
hitAni(eBullet, Player);
playerHP = playerHP - eBullet.dmg;
eBulletArray.removeValue(eBullet);
delete eBullet.onEnterFrame;
removeMovieClip(eBullet);
} else if (eBullet.hitTest(sCenter)) {
hitAni(eBullet, sCenter);
scHP = scHP - eBullet.dmg;
eBulletArray.removeValue(eBullet);
delete eBullet.onEnterFrame;
removeMovieClip(eBullet);
}
levelCheck();
e++;
}
}
function hitAni(obj, obj2) {
obj3 = attachMovie("space_hit", "sH" + depth, depth++);
obj3._rotation = obj._rotation;
obj3._x = obj._x;
obj3._y = obj._y;
}
function scTarget() {
s = 0;
while (s < enemyArray.length) {
_enemy = enemyArray[s];
_xdist = scGun._x - _enemy._x;
_ydist = scGun._y - _enemy._y;
if (((_xdist < scRange) && (_ydist > (-scRange))) && ((_ydist < scRange) && (_xdist > (-scRange)))) {
target = _enemy;
}
s++;
}
if ((target != undefined) && (target.hp > 1)) {
scGun._rotation = rotateTo(scGun, target._x, target._y);
scShoot();
if (!_pause) {
scGun.gun.gotoAndPlay(2);
}
}
}
function scShoot() {
scTimer = 0;
b = _root.attachMovie("base_bullet", "bullet" + bNum, bNum++);
b._x = scGun._x;
b._y = scGun._y;
b._rotation = scGun._rotation;
bulletArray.push(b);
b._type = "bullet";
b._dmg = scgDamage;
b.bulletX = Math.cos((b._rotation * Math.PI) / 180) * scbulletSpeed;
b.bulletY = Math.sin((b._rotation * Math.PI) / 180) * scbulletSpeed;
b.onEnterFrame = function () {
if (!_pause) {
this._x = this._x + this.bulletX;
this._y = this._y + this.bulletY;
if ((((this._x < 0) || (this._y < 0)) || (this._x > 650)) || (this._y > 650)) {
bulletArray.removeValue(this);
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
}
function spawnEnemy() {
if (currentLevel == 1) {
_root.bossLevel = false;
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(random(4));
enemy.hp = 6 * currentLevel;
enemy.dmg = 22;
enemy.frozen = false;
enemy.mon = random(195) + 155;
placeEnemy(_root.enemy);
enemy._rotation = rotateTo(enemy, Player._x, Player._y);
enemyArray.push(enemy);
enemy._type = "meteor";
enemy.boss = false;
meteor(enemy);
}
if ((currentLevel == 2) || (currentLevel == 3)) {
_root.bossLevel = false;
randEnemy = random(6) + 1;
if (randEnemy < 5) {
_root.bossLevel = false;
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(random(4));
enemy.hp = 7 * currentLevel;
enemy.dmg = 22;
enemy.frozen = false;
enemy.mon = random(195) + 155;
placeEnemy(_root.enemy);
enemy._rotation = rotateTo(enemy, Player._x, Player._y);
enemyArray.push(enemy);
enemy._type = "meteor";
enemy.boss = false;
meteor(enemy);
} else {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 15;
enemy.dmg = 25;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(290) + 175;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "bomber";
bomber(enemy);
}
}
if (currentLevel == 4) {
_root.bossLevel = false;
randEnemy = random(6) + 1;
if (randEnemy <= 5) {
_root.bossLevel = false;
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(random(4));
enemy.hp = 6 * currentLevel;
enemy.dmg = 22;
enemy.frozen = false;
enemy.mon = random(195) + 155;
placeEnemy(_root.enemy);
enemy._rotation = rotateTo(enemy, Player._x, Player._y);
enemyArray.push(enemy);
enemy._type = "meteor";
enemy.boss = false;
meteor(enemy);
} else {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 24;
enemy.dmg = 25;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(290) + 175;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "bomber";
bomber(enemy);
}
}
if ((currentLevel < 6) && (currentLevel > 4)) {
enemysNum = 1;
clearInterval(spawnInt);
_root.bossLevel = true;
_root.enemy = _root.attachMovie("boss_1", "Enemy" + eCount, eCount++);
enemy.hp = 8000;
enemy.boss = true;
enemy.dmg = 0;
enemy.mon = 45500;
enemy._type = "boss1";
enemyArray.push(enemy);
enemy._x = 1500;
enemy._y = 325;
boss1(enemy);
}
if ((currentLevel < 9) && (currentLevel > 5)) {
_root.bossLevel = false;
randEnemy = random(7) + 1;
if (randEnemy <= 4) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(4);
enemy.hp = 95;
enemy.dmg = 30;
enemy.sTimer = 9;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(299) + 185;
enemy.fRate = 17;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "ship";
if (randEnemy == 2) {
ship(enemy, sCenter);
} else {
ship(enemy, Player);
}
} else if (randEnemy > 6) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 85;
enemy.dmg = 32;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(290) + 175;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "bomber";
bomber(enemy);
}
}
if (currentLevel == 9) {
_root.bossLevel = false;
randEnemy = random(7) + 1;
if (randEnemy <= 4) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(random(4));
enemy.hp = 90;
enemy.dmg = 26;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(250) + 185;
placeEnemy(_root.enemy);
enemy._rotation = rotateTo(enemy, Player._x, Player._y);
enemyArray.push(enemy);
enemy._type = "meteor";
meteor(enemy);
} else if (randEnemy <= 6) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(4);
enemy.hp = 105;
enemy.dmg = 30;
enemy.sTimer = 9;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(299) + 185;
enemy.fRate = 17;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "ship";
if (randEnemy == 5) {
ship(enemy, sCenter);
} else {
ship(enemy, Player);
}
} else if (randEnemy == 7) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 105;
enemy.dmg = 32;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(290) + 175;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "bomber";
bomber(enemy);
}
}
if ((currentLevel < 11) && (currentLevel > 9)) {
enemysNum = 1;
clearInterval(spawnInt);
_root.bossLevel = true;
_root.enemy = _root.attachMovie("boss_2", "Enemy" + eCount, eCount++);
enemy.hp = 25000;
enemy.boss = true;
enemy.dmg = 75;
enemy.sTimer = 30;
enemy.fRate = 75;
enemy.mon = 75500 /* 0x0126EC */;
enemy._type = "boss2";
enemyArray.push(enemy);
placeEnemy(enemy);
boss2(enemy);
}
if ((currentLevel < 13) && (currentLevel > 10)) {
_root.bossLevel = false;
randEnemy = random(9) + 1;
if (randEnemy < 6) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 140;
enemy.dmg = 79;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(460) + 105;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "bomber";
bomber(enemy);
} else if (randEnemy < 8) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(6);
enemy.hp = 220;
enemy.dmg = 220;
enemy.mon = random(420) + 185;
enemy.sTimer = 15;
enemy.fRate = 30;
enemy.boss = false;
enemy.frozen = false;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "tank";
ship(enemy, sCenter);
}
}
if ((currentLevel < 15) && (currentLevel > 12)) {
_root.bossLevel = false;
randEnemy = random(7) + 1;
if (randEnemy <= 4) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(4);
enemy.hp = 260;
enemy.dmg = 67;
enemy.sTimer = 6;
enemy.boss = false;
enemy.frozen = false;
enemy.fRate = 12;
enemy.mon = random(440) + 165;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "ship";
if (randEnemy == 5) {
ship(enemy, sCenter);
} else {
ship(enemy, Player);
}
} else if (randEnemy <= 6) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 150;
enemy.dmg = 79;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(460) + 105;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "bomber";
bomber(enemy);
} else if (randEnemy == 7) {
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(6);
enemy.hp = 420;
enemy.dmg = 220;
enemy.mon = random(420) + 185;
enemy.sTimer = 15;
enemy.fRate = 30;
enemy.boss = false;
enemy.frozen = false;
placeEnemy(_root.enemy);
enemyArray.push(enemy);
enemy._type = "tank";
ship(enemy, sCenter);
}
}
if ((currentLevel < 16) && (currentLevel > 14)) {
enemysNum = 1;
clearInterval(spawnInt);
_root.bossLevel = true;
_root.enemy = _root.attachMovie("boss3", "Enemy" + eCount, eCount++);
enemy.hp = 40000;
enemy.boss = true;
enemy.dmg = 95;
enemy.sTimer = 30;
enemy.fRate = 40;
enemy.cStage = 1;
enemy._type = "boss3";
enemyArray.push(enemy);
placeEnemy(enemy);
boss3(enemy);
enemy.fade._alpha = 0;
}
}
function boss3(obj) {
obj.onEnterFrame = function () {
if (!_pause) {
if (Player.hitTest(this)) {
xspeed = xspeed + ((-xspeed) * -2);
yspeed = yspeed + ((-yspeed) * -2);
playerHP = playerHP - 15;
}
switch (this.cStage) {
case 1 :
this._rotation = rotateTo(this, sCenter._x, sCenter._y);
xdist = this._x - sCenter._x;
ydist = this._y - sCenter._y;
if (!((((xdist < 225) && (xdist > -225)) && (ydist < 225)) && (ydist > -225))) {
this._x = this._x - ((this._x - sCenter._x) / 35);
this._y = this._y - ((this._y - sCenter._y) / 35);
}
this.sTimer++;
if (this.sTimer > this.fRate) {
enemyFire(this);
this.sTimer = 0;
}
break;
case 2 :
this._rotation = rotateTo(this, Player._x, Player._y);
xdist = this._x - Player._x;
ydist = this._y - Player._y;
if (!((((xdist < 170) && (xdist > -170)) && (ydist < 170)) && (ydist > -170))) {
this._x = this._x - ((this._x - Player._x) / 65);
this._y = this._y - ((this._y - Player._y) / 65);
}
if (this.sTimer > this.fRate) {
enemyFire(this);
this.sTimer = 0;
}
this.sTimer++;
break;
case 3 :
this._rotation = rotateTo(this, Player._x, Player._y);
xdist = this._x - Player._x;
ydist = this._y - Player._y;
if (((!((((xdist < 170) && (xdist > -170)) && (ydist < 170)) && (ydist > -170))) && (this.sTimer > 0)) && (this.sTimer < 50)) {
this._x = this._x - ((this._x - Player._x) / 65);
this._y = this._y - ((this._y - Player._y) / 65);
enemy.fade._alpha = 0;
} else if ((this.sTimer > 50) && (this.sTimer < 60)) {
this._x = this._x - ((this._x - Player._x) / 5);
this._y = this._y - ((this._y - Player._y) / 5);
enemy.fade._alpha = 100;
}
this.sTimer++;
if (this.sTimer <= 60) {
break;
}
this.sTimer = 0;
}
if (this.hp > 30000) {
this.cStage = 1;
} else if (this.hp > 20000) {
this.cStage = 2;
} else {
this.cStage = 3;
}
}
};
}
function boss2(obj) {
obj._rotation = rotateTo(obj, sCenter._x, sCenter._y);
obj.xdir = Math.cos((obj._rotation * Math.PI) / 180) * 5;
obj.ydir = Math.sin((obj._rotation * Math.PI) / 180) * 5;
obj.spawnTimer = 0;
obj.spawnRate = 180;
obj.onEnterFrame = function () {
if (!_pause) {
xdist = this._x - sCenter._x;
ydist = this._y - sCenter._y;
if (!((((xdist < 190) && (xdist > -190)) && (ydist < 190)) && (ydist > -190))) {
this._x = this._x + this.xdir;
this._y = this._y + this.ydir;
} else if (this.sTimer > this.fRate) {
enemyFire(this);
this.sTimer = 0;
}
this.sTimer++;
this.spawnTimer++;
if (this.spawnTimer > this.spawnRate) {
this.spawnTimer = 0;
_root.enemy = _root.attachMovie("Enemy_MC", "Enemy" + eCount, eCount++);
_root.enemy.gotoAndStop(5);
enemy.hp = 1500;
enemy.dmg = 150;
enemy.boss = false;
enemy.frozen = false;
enemy.mon = random(460) + 105;
enemy._x = this._x;
enemy._y = this._y;
enemyArray.push(enemy);
enemy._type = "bomber";
enemy.hitTimer = 0;
enemy.canHit = false;
enemy.onEnterFrame = function () {
if (!_pause) {
this._rotation = rotateTo(this, Player._x, Player._y);
this._x = this._x - ((this._x - Player._x) / 25);
this._y = this._y - ((this._y - Player._y) / 25);
this.hitTimer++;
if (this.hitTimer > 25) {
this.canHit = true;
}
if (this.hitTest(obj) && (this.canHit)) {
obj.hp = obj.hp - 2000;
this.hp = this.hp - 1501;
checkEnemyHp(this);
}
}
};
}
}
};
}
function boss1(obj) {
obj.sTimer = 0;
obj.fRate = 150;
obj.shooting = false;
obj.froze = false;
obj.onEnterFrame = function () {
if (!_root._pause) {
if (obj.froze) {
this.play();
obj.froze = false;
}
if (!this.shooting) {
this._rotation = rotateTo(this, Player._x, Player._y);
this._x = this._x - ((this._x - 600) / 55);
this._y = this._y - ((this._y - Player._y) / 55);
}
if (this.hitTest(Player._x, Player._y, true)) {
xspeed = xspeed - 45;
playerHP = playerHP - 105;
}
if (this.hitTest(sCenter._x, sCenter._y, true)) {
scHP = scHP - 105;
}
this.sTimer++;
if (this.sTimer > obj.fRate) {
this.shooting = true;
this.gotoAndPlay(15);
this.sTimer = 0;
}
if (this._currentframe > 53) {
this.shooting = false;
this.gotoAndStop(1);
}
} else {
this.gotoAndStop(this._currentframe);
obj.froze = true;
}
};
}
function spawnPower() {
if ((!_pause) && (!bossLevel)) {
pwrUp = random(6) + 1;
switch (pwrUp) {
case 1 :
powerUp = attachMovie("power_up", "powerUp" + depth, depth++);
powerUp.i = 0;
powerUp._alpha = 150;
powerUp.gotoAndStop(1);
powerUp.onEnterFrame = function () {
if (!_pause) {
this.i++;
this._alpha = 150 - this.i;
if (this.i > 150) {
removeMovieClip(this);
}
if (Player.hitTest(this)) {
_root.playSound("PowerUp");
playerHP = 99999 /* 0x01869F */;
clearInterval(restoreInt);
restoreInt = setInterval(restoreHP, 7800);
topSpeed = 15;
removeMovieClip(this);
if (playerS != undefined) {
removeMovieClip(playerS);
}
playerS = attachMovie("player_shield", "playerS", depth++);
playerS.onEnterFrame = function () {
this._x = Player._x;
this._y = Player._y;
if (playerHP < 50000) {
removeMovieClip(this);
}
if (levelOver) {
removeMovieClip(this);
}
};
}
}
if (levelOver) {
removeMovieClip(this);
}
};
powerUp._x = random(600) + 25;
powerUp._y = random(600) + 25;
break;
case 2 :
powerUp = attachMovie("power_up", "powerUp" + depth, depth++);
powerUp.gotoAndStop(2);
powerUp.i = 0;
powerUp._alpha = 150;
powerUp.onEnterFrame = function () {
if (!_pause) {
if (levelOver) {
removeMovieClip(this);
}
this.i++;
this._alpha = 150 - this.i;
if (this.i > 150) {
removeMovieClip(this);
}
if (Player.hitTest(this)) {
o = 0;
while (o < enemyArray.length) {
enemy = enemyArray[o];
if ((((enemy._x > 15) && (enemy._y > 15)) && (enemy._y < 625)) && (enemy._x < 625)) {
froz = attachMovie("froze_mc", "froze_mc" + depth, depth++);
froz._x = enemy._x;
froz._y = enemy._y;
froz._xscale = enemy._xscale;
froz._yscale = enemy._yscale;
froz._rotation = enemy._rotation;
enemy.frozen = true;
froz.en = enemy;
froz.onEnterFrame = function () {
if (String(this.en) == "") {
this.gotoAndPlay(2);
delete this.onEnterFrame;
}
};
}
o++;
}
removeMovieClip(this);
}
}
};
powerUp._x = random(600) + 25;
powerUp._y = random(600) + 25;
break;
case 3 :
powerUp = attachMovie("power_up", "powerUp" + depth, depth++);
powerUp.gotoAndStop(3);
powerUp.i = 0;
powerUp._alpha = 150;
powerUp.onEnterFrame = function () {
if (!_pause) {
if (levelOver) {
removeMovieClip(this);
}
this.i++;
this._alpha = 150 - this.i;
if (this.i > 150) {
removeMovieClip(this);
}
if (this.hitTest(Player)) {
clearInterval(endMegaInt);
endMega();
_fireRate = fireRate;
_bulletDamage = bulletDamage;
fireRate = 1;
bulletDamage = 500;
endMegaInt = setInterval(endMega, 8000);
removeMovieClip(this);
}
}
};
powerUp._x = random(600) + 25;
powerUp._y = random(600) + 25;
break;
case 4 :
powerUp = attachMovie("power_up", "powerUp" + depth, depth++);
powerUp.gotoAndStop(4);
powerUp.i = 0;
powerUp._alpha = 150;
powerUp.onEnterFrame = function () {
if (!_pause) {
if (levelOver) {
removeMovieClip(this);
}
this.i++;
this._alpha = 150 - this.i;
if (this.i > 150) {
removeMovieClip(this);
}
if (this.hitTest(Player)) {
_root.playSound("mine_plant");
u = 0;
while (u < 5) {
missle = attachMovie("Missle", "Missle" + bNum, bNum++);
missle._x = random(600) + 25;
missle._y = random(600) + 25;
missle._type = "missle";
missle.hit = false;
missleArray.push(missle);
u++;
}
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
powerUp._x = random(600) + 25;
powerUp._y = random(600) + 25;
}
}
}
function endMega() {
fireRate = _fireRate;
bulletDamage = _bulletDamage;
clearInterval(endMegaInt);
}
function bomber(obj) {
obj.onEnterFrame = function () {
if ((!_pause) && (!this.frozen)) {
this._rotation = rotateTo(this, Player._x, Player._y);
this._x = this._x - ((this._x - Player._x) / 25);
this._y = this._y - ((this._y - Player._y) / 25);
}
};
}
function ship(eobj, tobj) {
if (tobj == sCenter) {
eobj._rotation = rotateTo(eobj, tobj._x, tobj._y);
eobj.xdir = Math.cos((eobj._rotation * Math.PI) / 180) * 5;
eobj.ydir = Math.sin((eobj._rotation * Math.PI) / 180) * 5;
eobj.onEnterFrame = function () {
if ((!_pause) && (!this.frozen)) {
xdist = this._x - tobj._x;
ydist = this._y - tobj._y;
if (!((((xdist < 190) && (xdist > -190)) && (ydist < 190)) && (ydist > -190))) {
this._x = this._x + this.xdir;
this._y = this._y + this.ydir;
} else {
this.sTimer++;
if (this.sTimer > this.fRate) {
enemyFire(this);
this.sTimer = 0;
}
}
}
};
} else {
eobj.onEnterFrame = function () {
if ((!_pause) && (!this.frozen)) {
eobj._rotation = rotateTo(eobj, tobj._x, tobj._y);
xdist = this._x - tobj._x;
ydist = this._y - tobj._y;
if (!((((xdist < 150) && (xdist > -150)) && (ydist < 150)) && (ydist > -150))) {
this._x = this._x - ((this._x - tobj._x) / 150);
this._y = this._y - ((this._y - tobj._y) / 150);
} else {
this.sTimer++;
if (this.sTimer > this.fRate) {
enemyFire(this);
this.sTimer = 0;
}
}
}
};
}
}
function enemyFire(eObj) {
if (eObj._type == "tank") {
eB = attachMovie("eTankBullet", "eB" + bNum, bNum++);
} else if (eObj._type == "boss2") {
eB = attachMovie("eTankBullet", "eB" + bNum, bNum++);
} else if (eObj._type == "boss3") {
eB = attachMovie("eBullet2", "eB" + bNum, bNum++);
} else {
eB = attachMovie("eBullet", "eB" + bNum, bNum++);
}
eB.dmg = eObj.dmg;
eBulletArray.push(eB);
eB._rotation = eObj._rotation;
eB.xdir = Math.cos((eB._rotation * Math.PI) / 180) * 10;
eB.ydir = Math.sin((eB._rotation * Math.PI) / 180) * 10;
eB._x = eObj._x;
eB._y = eObj._y;
eB.onEnterFrame = function () {
if ((!_pause) && (!this.frozen)) {
this._x = this._x + this.xdir;
this._y = this._y + this.ydir;
if ((((this._x < 0) || (this._y < 0)) || (this._x > 650)) || (this._y > 650)) {
eBulletArray.removeValue(this);
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
}
function meteor(obj) {
obj.entered = false;
obj.xdir = Math.cos((obj._rotation * Math.PI) / 180) * 3;
obj.ydir = Math.sin((obj._rotation * Math.PI) / 180) * 3;
obj.randS = 75 + random(50);
obj._xscale = obj.randS;
obj._yscale = obj.randS;
obj.onEnterFrame = function () {
if ((!_pause) && (!this.frozen)) {
this._x = this._x + this.xdir;
this._y = this._y + this.ydir;
this._rotation = this._rotation + 1.5;
if (((((this._x < 0) || (this._y < 0)) || (this._x > 650)) || (this._y > 650)) && (obj.entered)) {
enemyArray.removeValue(this);
enemysNum--;
levelCheck();
delete this.onEnterFrame;
removeMovieClip(this);
}
if ((((this._x > 0) && (this._y > 0)) && (this._x < 650)) && (this._y < 650)) {
obj.entered = true;
}
}
};
}
function restoreHP() {
playerHP = playerHPTotal;
topSpeed = 8;
clearInterval(restoreInt);
}
function levelCheck() {
if (enemysNum < 1) {
levelEnd();
}
}
function levelEnd() {
clearInterval(spawnInt);
if (enemyArray.length == 0) {
_root.attachMovie("levelComplete", "levelComplete", 10999999);
levelComplete._x = 325;
levelComplete._y = 325;
}
}
function hitAnimation(enemy, bullet) {
var _local2 = eCount;
eCount++;
_root.attachMovie(enemy._type + "hit", "hitAnimation" + _local2, _local2);
hitA = _root["hitAnimation" + _local2];
hitA._rotation = bullet._rotation;
hitA._x = bullet._x;
hitA._y = bullet._y;
}
function launchMissle() {
missle = attachMovie("Missle", "Missle" + bNum, bNum++);
_root.playSound("mine_plant");
missle._x = Player._x;
missle._y = Player._y;
missle._type = "missle";
missle.hit = false;
missleArray.push(missle);
}
function missleTimer() {
mTimer++;
if (spaceUp) {
if (mTimer > mFireRate) {
launchMissle();
mTimer = 0;
}
}
}
function shootTimer() {
sTimer++;
if (mUp) {
if (sTimer > fireRate) {
shipFire();
sTimer = 0;
}
}
}
function shipFire() {
bullet = _root.attachMovie("Bullet_mc", "bullet" + bNum, bNum++);
Player.gun.gotoAndPlay(2);
bullet._x = Player._x;
bullet._y = Player._y;
bullet._rotation = Player.gun._rotation;
bulletArray.push(bullet);
bullet._type = "bullet";
bullet._dmg = bulletDamage;
bullet.bulletX = Math.cos((bullet._rotation * Math.PI) / 180) * bulletSpeed;
bullet.bulletY = Math.sin((bullet._rotation * Math.PI) / 180) * bulletSpeed;
bullet.onEnterFrame = function () {
if (!_pause) {
this._x = this._x + this.bulletX;
this._y = this._y + this.bulletY;
if ((((this._x < 0) || (this._y < 0)) || (this._x > 650)) || (this._y > 650)) {
bulletArray.removeValue(this);
delete this.onEnterFrame;
removeMovieClip(this);
}
}
};
}
function checkEnemyHp(_enemy) {
if (_enemy.hp < 1) {
enemyD = _enemy.getDepth() - 1000;
enemyDA = _root.attachMovie(_enemy._type + "death", "mdeath" + enemyD, enemyD);
enemyDA._x = _enemy._x;
enemyDA._y = _enemy._y;
enemyDA._xscale = _enemy._xscale;
enemyDA._yscale = _enemy._yscale;
enemyDA._rotation = _enemy._rotation;
money = money + Math.round(_enemy.mon / 2.2);
enemyArray.removeValue(_enemy);
delete _enemy.onEnterFrame;
removeMovieClip(_enemy);
enemysNum--;
enemyKills++;
}
}
function missleExplosion(obj) {
explo = attachMovie("M_explosion", "E" + eCount, eCount++);
explo._x = obj._x;
explo._y = obj._y;
}
function pauseGame() {
if (!_pause) {
_pause = true;
clearInterval(spawnInt);
clearInterval(scgInt);
pause_ = attachMovie("pause_mc", "P" + depth, depth++);
pause_._x = 325;
pause_._y = 325;
} else {
removeMovieClip(pause_);
_pause = false;
if (enemysNum > 1) {
scgInt = setInterval(scTarget, scgShootTime);
if (!bossLevel) {
spawnInt = setInterval(spawnEnemy, spawnRate);
}
}
}
}
function varChange(amount, changeamt, myvar) {
money = money - amount;
switch (myvar) {
case "playerHPTotal" :
playerHPTotal = playerHPTotal + changeamt;
playerHP = playerHPTotal;
break;
case "fireRate" :
fireRate = fireRate + changeamt;
_fireRate = _fireRate + changeamt;
break;
case "bulletDamage" :
bulletDamage = bulletDamage + changeamt;
_bulletDamage = _bulletDamage + changeamt;
break;
case "mRange" :
mRange = mRange + changeamt;
break;
case "mFireRate" :
mFireRate = mFireRate - changeamt;
break;
case "missleDamage" :
missleDamage = missleDamage + changeamt;
break;
case "scHPTotal" :
scHPTotal = scHPTotal + changeamt;
scHP = scHPTotal;
break;
case "scgShootTime" :
scgShootTime = scgShootTime - changeamt;
break;
case "scgDamage" :
scgDamage = scgDamage + changeamt;
}
}
function splashText(txtname) {
attachMovie("text_splash", "text_splash", depth++);
text_splash.mytxt = txtname;
}
function pivotObject(dir) {
playerYangle = _ymouse - Player._y;
playerXangle = _xmouse - Player._x;
playerRadians = Math.atan2(playerYangle, playerXangle);
playerDeg = Math.round((playerRadians * 180) / Math.PI);
switch (dir) {
case "l" :
default :
case "r" :
}
Player._x = _xmouse + (50 * Math.cos(playerDeg));
Player._y = _ymouse + (50 * Math.sin(playerDeg));
}
stop();
var eCount = 900000;
var enemyArray = new Array();
var enemySpawn = new Array();
var randEnemy = 0;
enemySpawn[0] = [0, -400];
enemySpawn[1] = [-400, 0];
enemySpawn[2] = [0, 1050];
enemySpawn[3] = [1050, 0];
var eBulletArray = new Array();
var bNum = 80030;
var sTimer = 0;
var mSplash = new Array();
var mTimer = 99;
var missleSpeed = 0;
var bulletSpeed = 25;
var bulletArray = new Array();
var missleArray = new Array();
var speed = 0;
var xspeed = 0;
var yspeed = 0;
var topSpeed = 8;
var playerDead = false;
var xDir = 0;
var yDir = 0;
var xDist = 0;
var yDist = 0;
var _pause = false;
var _muted = false;
var bossLevel = false;
var pwrUp = 0;
var scbulletSpeed = 35;
var scRange = 325;
if (funMode) {
var currentLevel = 1;
splashText("Level 1");
var levelOver = false;
var enemysNum = ((currentLevel * 4) + 30);
_root.spawnRate = 490;
var enemyKills = 0;
var money = 50000;
var playerHP = 750;
var playerHPTotal = 750;
var fireRate = 5;
var bulletDamage = 7;
var mRange = 140;
var mFireRate = 90;
var missleDamage = 25;
var scHP = 1500;
var scHPTotal = 1500;
var spaceGun = false;
var scgShootTime = 450;
var scgDamage = 5;
main();
} else if (newGame) {
var currentLevel = 1;
splashText("Level 1");
var levelOver = false;
var enemysNum = ((currentLevel * 4) + 30);
_root.spawnRate = 490;
var enemyKills = 0;
var money = 500;
var playerHP = 750;
var playerHPTotal = 750;
var fireRate = 10;
var bulletDamage = 7;
var mRange = 140;
var mFireRate = 90;
var missleDamage = 25;
var scHP = 1500;
var scHPTotal = 1500;
var spaceGun = false;
var scgShootTime = 450;
var scgDamage = 5;
main();
} else {
mySave = SharedObject.getLocal("mySave");
_root.currentLevel = mySave.data.currentLevel;
var enemysNum = ((currentLevel * 4) + 30);
_root.spawnRate = 490;
_root.enemyKills = mySave.data.enemyKills;
_root.money = mySave.data.money;
_root.playerHPTotal = mySave.data.playerHPTotal;
_root.playerHP = mySave.data.playerHP;
_root.fireRate = mySave.data.fireRate;
_root.bulletDamage = mySave.data.bulletDamage;
_root.mRange = mySave.data.mRange;
_root.mFireRate = mySave.data.mFireRate;
_root.missleDamage = mySave.data.missleDamage;
_root.scHPTotal = mySave.data.scHPTotal;
_root.scHP = mySave.data.scHP;
_root.spaceGun = mySave.data.spaceGun;
_root.scgShootTime = mySave.data.scgShootTime;
_root.scgDamage = mySave.data.scgDamage;
_root.attachMovie("Menu", "Menu_", 100);
_root.playMusic("menuMusic");
}
var _fireRate = fireRate;
var _bulletDamage = bulletDamage;
var iKeyLeft = 97;
var iKeyRight = 100;
var iKeyUp = 119;
var iKeyDown = 115;
var iKeyP = 112;
var mUp = false;
var leftUp = false;
var rightUp = false;
var upUp = false;
var downUp = false;
var spaceUp = false;
Array.prototype.removeValue = function (string) {
i = 0;
while (i < this.length) {
if (this[i] == string) {
this.splice(i, 1);
}
i++;
}
};
playmore_btn.onRelease = function () {
getURL ("http://www.flobzoo.com", "_blank", "POST");
};
playmore_btn.onRollOver = function () {
this.gotoAndStop(2);
_root.playSound("btn_over");
};
playmore_btn.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 13 MovieClip [Bullet_mc] Frame 1
_root.playSound("Pulse_Shot");
Symbol 18 MovieClip [lose_explosion] Frame 10
removeMovieClip(this);
Symbol 23 MovieClip [M_explosion] Frame 10
removeMovieClip(this);
Symbol 29 MovieClip [space_hit] Frame 10
removeMovieClip(this);
Symbol 36 MovieClip Frame 1
stop();
Symbol 38 MovieClip [save_pop] Frame 1
ok_btn.onRelease = function () {
_root.playSound("button_click");
removeMovieClip(this._parent);
};
ok_btn.onRollOver = function () {
this.gotoAndStop(2);
};
ok_btn.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 47 MovieClip [power_up] Frame 1
stop();
Symbol 57 MovieClip [screen_trans] Frame 3
_root.menuMusic.setVolume(80);
Symbol 57 MovieClip [screen_trans] Frame 5
_root.menuMusic.setVolume(60);
Symbol 57 MovieClip [screen_trans] Frame 7
_root.menuMusic.setVolume(40);
Symbol 57 MovieClip [screen_trans] Frame 9
_root.menuMusic.setVolume(20);
Symbol 57 MovieClip [screen_trans] Frame 10
_root.menuMusic.stop();
_root.menuMusic.setVolume(0);
_root.gotoAndStop(frameNum);
Symbol 57 MovieClip [screen_trans] Frame 11
if (frameNum == 3) {
if (_root._pause) {
_root._pause = false;
removeMovieClip(_root.pause_);
}
_root.endLevel(false);
_root.levelOver = true;
removeMovieClip(_root.Menu_);
}
Symbol 57 MovieClip [screen_trans] Frame 20
removeMovieClip(this);
Symbol 62 MovieClip [text_splash] Frame 5
_root.menuMusic.setVolume(80);
Symbol 62 MovieClip [text_splash] Frame 10
_root.menuMusic.setVolume(60);
Symbol 62 MovieClip [text_splash] Frame 15
_root.menuMusic.setVolume(40);
Symbol 62 MovieClip [text_splash] Frame 20
_root.menuMusic.setVolume(20);
Symbol 62 MovieClip [text_splash] Frame 25
_root.menuMusic.stop();
if (((_root.currentLevel != 5) && (_root.currentLevel != 10)) && (_root.currentLevel != 15)) {
if (_root.currentLevel > 10) {
_root.playMusic("third_music");
} else if (_root.currentLevel > 5) {
_root.playMusic("second_music");
} else {
_root.playMusic("first_music");
}
} else {
_root.playMusic("boss_music");
}
Symbol 62 MovieClip [text_splash] Frame 30
_root.menuMusic.setVolume(20);
Symbol 62 MovieClip [text_splash] Frame 35
_root.menuMusic.setVolume(40);
Symbol 62 MovieClip [text_splash] Frame 40
_root.menuMusic.setVolume(60);
Symbol 62 MovieClip [text_splash] Frame 45
_root.menuMusic.setVolume(80);
Symbol 62 MovieClip [text_splash] Frame 50
removeMovieClip(this);
Symbol 67 MovieClip Frame 1
stop();
Symbol 81 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
this._visible = false;
Symbol 101 MovieClip Frame 1
stop();
i = 0;
onEnterFrame = function () {
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
}
i++;
if (i > 300) {
delete this.onEnterFrame;
this.play();
}
trace(i);
};
MochiAd.showPreGameAd({id:"572797217b924ba3", res:"650x650"});
this.onRelease = function () {
getURL ("http://www.flobzoo.com", "_blank");
};
Symbol 101 MovieClip Frame 130
stop();
_root.play();
this.onRelease = function () {
getURL ("http://www.flobzoo.com", "_blank");
};
Symbol 363 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd
{
function MochiAd () {
}
static function getVersion() {
return("2.5");
}
static function showPreGameAd(options) {
var _local26 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, _local26);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
return(undefined);
}
var clip = options.clip;
var _local22 = 11000;
var _local25 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local14 = _getRes(options);
var _local4 = _local14[0];
var _local13 = _local14[1];
mc._x = _local4 * 0.5;
mc._y = _local13 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local4 * -0.5;
chk._y = _local13 * -0.5;
var _local6 = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
_local6._visible = false;
delete options.no_progress_bar;
} else {
_local6._x = 10;
_local6._y = _local13 - 20;
}
var _local21 = options.color;
delete options.color;
var _local19 = options.background;
delete options.background;
var _local23 = options.outline;
delete options.outline;
var _local5 = _local6.createEmptyMovieClip("_outline", 1);
_local5.beginFill(_local19);
_local5.moveTo(0, 0);
_local5.lineTo(_local4 - 20, 0);
_local5.lineTo(_local4 - 20, 10);
_local5.lineTo(0, 10);
_local5.lineTo(0, 0);
_local5.endFill();
var _local3 = _local6.createEmptyMovieClip("_inside", 2);
_local3.beginFill(_local21);
_local3.moveTo(0, 0);
_local3.lineTo(_local4 - 20, 0);
_local3.lineTo(_local4 - 20, 10);
_local3.lineTo(0, 10);
_local3.lineTo(0, 0);
_local3.endFill();
_local3._xscale = 0;
var _local7 = _local6.createEmptyMovieClip("_outline", 3);
_local7.lineStyle(0, _local23, 100);
_local7.moveTo(0, 0);
_local7.lineTo(_local4 - 20, 0);
_local7.lineTo(_local4 - 20, 10);
_local7.lineTo(0, 10);
_local7.lineTo(0, 0);
chk.ad_msec = _local22;
chk.ad_timeout = _local25;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local6 = this._parent._parent;
var _local11 = this._parent._mochiad_ctr;
var _local5 = getTimer() - this.started;
var _local3 = false;
var _local4 = _local6.getBytesTotal();
var _local8 = _local6.getBytesLoaded();
var _local2 = (100 * _local8) / _local4;
var _local10 = (100 * _local5) / chk.ad_msec;
var _local9 = this._mochiad_bar._inside;
var _local13 = Math.min(100, Math.min(_local2 || 0, _local10));
_local13 = Math.max(this.last_pcnt, _local13);
this.last_pcnt = _local13;
_local9._xscale = _local13;
options.ad_progress(_local13);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var _local7 = _local11.getBytesTotal();
if ((_local7 > 0) || (typeof(_local7) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((_local5 > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (_local5 > chk.ad_msec) {
_local3 = true;
}
if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = chk.fadeFunction;
}
}
};
}
static function showClickAwayAd(options) {
var _local9 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local9);
var clip = options.clip;
var _local8 = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local4 = _getRes(options);
var _local10 = _local4[0];
var _local7 = _local4[1];
mc._x = _local10 * 0.5;
mc._y = _local7 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = _local8;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var _local20 = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
_local2 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local2) {
delete this.onEnterFrame;
}
};
}
static function showInterLevelAd(options) {
var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, _local13);
var clip = options.clip;
var _local10 = 11000;
var _local12 = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
return(undefined);
}
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local5 = _getRes(options);
var _local14 = _local5[0];
var _local11 = _local5[1];
mc._x = _local14 * 0.5;
mc._y = _local11 * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = _local10;
chk.ad_timeout = _local12;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time));
if (_local2 > 0) {
this._parent._alpha = _local2;
} else {
var _local3 = this._parent._parent;
MochiAd.unload(_local3);
delete this.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local2 = this.mc._mochiad_wait;
_local2.server_control = true;
_local2.started = getTimer();
_local2.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local5 = this._parent._mochiad_ctr;
var _local4 = getTimer() - this.started;
var _local2 = false;
if (!chk.showing) {
var _local3 = _local5.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (_local4 > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (_local4 > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (this.server_control) {
delete this.onEnterFrame;
} else {
this.fadeout_start = getTimer();
this.onEnterFrame = this.fadeFunction;
}
}
};
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
static function _allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function load(options) {
var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
options = _parseOptions(options, _local13);
options.swfv = options.clip.getSWFVersion() || 6;
options.mav = getVersion();
var _local9 = options.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (_local9._mochiad_loaded) {
return(null);
}
var _local12 = options.depth;
delete options.depth;
var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12);
var _local11 = _getRes(options);
options.res = (_local11[0] + "x") + _local11[1];
options.server = options.server + options.id;
delete options.id;
_local9._mochiad_loaded = true;
var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1);
for (var _local7 in options) {
_local4[_local7] = options[_local7];
}
var _local10 = _local4.server;
delete _local4.server;
var _local14 = _allowDomains(_local10);
_local6.onEnterFrame = function () {
if (this._mochiad_ctr._url != this._url) {
this.onEnterFrame = function () {
if (!this._mochiad_ctr) {
delete this.onEnterFrame;
MochiAd.unload(this._parent);
}
};
}
};
var _local5 = new LocalConnection();
var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local5.mc = _local6;
_local5.name = _local8;
_local5.hostname = _local14;
_local5.allowDomain = function (d) {
return(true);
};
_local5.allowInsecureDomain = _local5.allowDomain;
_local5.connect(_local8);
_local6.lc = _local5;
_local4.lc = _local8;
_local4.st = getTimer();
_local4.loadMovie(_local10 + ".swf", "POST");
return(_local6);
}
static function unload(clip) {
if (typeof(clip) == "undefined") {
clip = _root;
}
if (clip.clip && (clip.clip._mochiad)) {
clip = clip.clip;
}
if (!clip._mochiad) {
return(false);
}
if (clip._mochiad._containerLCName != undefined) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"unload"});
}
clip._mochiad.removeMovieClip();
delete clip._mochiad_loaded;
delete clip._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var _local4 = options.res.split("x");
_local2 = parseFloat(_local4[0]);
_local1 = parseFloat(_local4[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local4 = {};
for (var _local8 in defaults) {
_local4[_local8] = defaults[_local8];
}
if (options) {
for (var _local8 in options) {
_local4[_local8] = options[_local8];
}
}
if (_root.mochiad_options) {
var _local5 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local5.length) {
var _local3 = _local5[_local2].split("=");
_local4[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
if (_local4.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local4);
}
static function rpc(clip, callbackID, arg) {
switch (arg.id) {
case "setValue" :
setValue(clip, arg.objectName, arg.value);
break;
case "getValue" :
var _local4 = getValue(clip, arg.objectName);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local4);
break;
case "runMethod" :
var _local3 = runMethod(clip, arg.method, arg.args);
clip._mochiad.lc.send(clip._mochiad._containerLCName, "rpcResult", callbackID, _local3);
break;
default :
trace("[mochiads rpc] unknown rpc id: " + arg.id);
}
}
static function setValue(base, objectName, value) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
base[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
return(base[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((base[_local2[_local1]] == undefined) || (base[_local2[_local1]] == null)) {
return(undefined);
}
base = base[_local2[_local1]];
_local1++;
}
if (typeof(base[_local2[_local1]]) == "function") {
return(base[_local2[_local1]].apply(base, argsArray));
}
return(undefined);
}
}
Symbol 106 MovieClip [tankhit] Frame 10
removeMovieClip(this);
Symbol 112 MovieClip [tankdeath] Frame 1
_root.playSound("space_death");
Symbol 112 MovieClip [tankdeath] Frame 9
removeMovieClip(this);
Symbol 116 MovieClip [shiphit] Frame 10
removeMovieClip(this);
Symbol 121 MovieClip [shipdeath] Frame 1
_root.playSound("space_death");
Symbol 121 MovieClip [shipdeath] Frame 10
removeMovieClip(this);
Symbol 128 MovieClip [Enemy_MC] Frame 1
stop();
Symbol 129 MovieClip [meteorhit] Frame 1
_root.playSound("meteor_hit");
Symbol 129 MovieClip [meteorhit] Frame 10
removeMovieClip(this);
Symbol 138 MovieClip [meteordeath] Frame 1
_root.playSound("meteor_hit");
Symbol 138 MovieClip [meteordeath] Frame 9
removeMovieClip(this);
Symbol 139 MovieClip [froze_mc] Frame 1
stop();
Symbol 139 MovieClip [froze_mc] Frame 12
removeMovieClip(this);
Symbol 149 MovieClip [boss3hit] Frame 10
removeMovieClip(this);
Symbol 154 MovieClip [boss3death] Frame 1
_root.playSound("space_death");
Symbol 154 MovieClip [boss3death] Frame 10
removeMovieClip(this);
Symbol 162 MovieClip [boss2hit] Frame 12
removeMovieClip(this);
Symbol 167 MovieClip [boss2death] Frame 1
_root.playSound("space_death");
Symbol 167 MovieClip [boss2death] Frame 10
removeMovieClip(this);
Symbol 171 MovieClip [boss1hit] Frame 13
removeMovieClip(this);
Symbol 177 MovieClip [boss1death] Frame 1
_root.playSound("space_death");
Symbol 177 MovieClip [boss1death] Frame 10
removeMovieClip(this);
Symbol 192 MovieClip [boss_1] Frame 1
stop();
Symbol 192 MovieClip [boss_1] Frame 43
_root.playSound("boss1_fire");
Symbol 196 MovieClip [bomberhit] Frame 11
removeMovieClip(this);
Symbol 201 MovieClip [bomberdeath] Frame 1
_root.playSound("space_death");
Symbol 201 MovieClip [bomberdeath] Frame 10
removeMovieClip(this);
Symbol 209 MovieClip Frame 1
stop();
Symbol 211 MovieClip [win_screen] Frame 1
m_btn.onRelease = function () {
_root.playSound("button_click");
removeMovieClip(this._parent);
_root.screenTrans(3);
};
m_btn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
m_btn.onRollOut = function () {
this.gotoAndStop(1);
};
var myscore = (_root.enemyKills * 2.2);
Symbol 215 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 220 MovieClip [pause_mc] Frame 1
m_btn.onRelease = function () {
_root.playSound("button_click");
_root.screenTrans(3);
};
m_btn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
m_btn.onRollOut = function () {
this.gotoAndStop(1);
};
mute_btn.onRelease = function () {
_root.playSound("button_click");
if (_root._muted) {
_root.menuMusic.start();
_root._muted = false;
} else {
_root.menuMusic.stop();
_root._muted = true;
}
};
mute_btn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
mute_btn.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 223 MovieClip Frame 1
stop();
Symbol 245 MovieClip Frame 9
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 254 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 1
stop();
Symbol 285 MovieClip Frame 1
stop();
Symbol 287 MovieClip [Menu] Frame 1
up01amount = Math.round(_root.playerHPTotal * 1.36);
up01.onRelease = function () {
if (_root.money > up01amount) {
_root.varChange(up01amount, 250, "playerHPTotal");
up01amount = Math.round(_root.playerHPTotal * 1.36);
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up02amount = 4000 - (_root.fireRate * 250);
up02.onRelease = function () {
if ((_root.money > up02amount) && (_root.fireRate > 2)) {
_root.varChange(up02amount, -1, "fireRate");
up02amount = 4000 - (_root.fireRate * 250);
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up03amount = _root.bulletDamage * 125;
up03.onRelease = function () {
if ((_root.money > up03amount) && (_root.bulletDamage < 80)) {
_root.varChange(up03amount, 7, "bulletDamage");
up03amount = _root.bulletDamage * 125;
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up04amount = Math.round(_root.mRange * 12.85);
up04.onRelease = function () {
if ((_root.money > up04amount) && (_root.mRange < 180)) {
_root.varChange(up04amount, 6, "mRange");
up04amount = Math.round(_root.mRange * 12.85);
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up05amount = 1500 - Math.round(_root.mFireRate * 12);
up05.onRelease = function () {
if ((_root.money > up05amount) && (_root.mFireRate > 47)) {
_root.varChange(up05amount, 6, "mFireRate");
up05amount = 1500 - Math.round(_root.mFireRate * 12);
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up06amount = _root.missleDamage * 35;
up06.onRelease = function () {
if ((_root.money > up06amount) && (_root.missleDamage < 250)) {
_root.varChange(up06amount, 25, "missleDamage");
up06amount = _root.missleDamage * 35;
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
var spaceGun = true;
up07amount = 2800;
if (_root.spaceGun) {
up07amount = "--------";
}
up07.onRelease = function () {
if ((!_root.spaceGun) && (_root.money > 2800)) {
_root.money = _root.money - 2800;
up07amount = "--------";
_root.spaceGun = true;
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up08amount = _root.scHPTotal * 0.92;
up08.onRelease = function () {
if (_root.money > up08amount) {
_root.varChange(up08amount, 650, "scHPTotal");
up08amount = _root.scHPTotal * 0.92;
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up09amount = 11000 - (_root.scgShootTime * 22);
up09.onRelease = function () {
if (((_root.money > up09amount) && (_root.scgShootTime > 125)) && (_root.spaceGun)) {
_root.varChange(up09amount, 15, "scgShootTime");
up09amount = 11000 - (_root.scgShootTime * 22);
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
up10amount = _root.scgDamage * 105;
up10.onRelease = function () {
if (((_root.money > up10amount) && (_root.spaceGun)) && (_root.scgDamage < 105)) {
_root.varChange(up10amount, 18, "scgDamage");
up10amount = _root.scgDamage * 105;
_root.playSound("money_fx");
} else {
_root.playSound("error_button");
}
};
mylevel = _root.currentLevel + 1;
if (mylevel == 1) {
brief.gotoAndStop(1);
}
if (((mylevel == 2) || (mylevel == 3)) || (mylevel == 4)) {
brief.gotoAndStop(2);
}
if (mylevel == 5) {
brief.gotoAndStop(3);
}
if ((mylevel < 9) && (mylevel > 5)) {
brief.gotoAndStop(4);
}
if (mylevel == 9) {
brief.gotoAndStop(5);
}
if (mylevel == 10) {
brief.gotoAndStop(6);
}
if ((mylevel < 13) && (mylevel > 10)) {
brief.gotoAndStop(7);
}
if ((mylevel < 15) && (mylevel > 12)) {
brief.gotoAndStop(8);
}
if (mylevel == 15) {
brief.gotoAndStop(9);
}
up01.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up01.onRollOut = function () {
this.gotoAndStop(1);
};
up02.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up02.onRollOut = function () {
this.gotoAndStop(1);
};
up03.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up03.onRollOut = function () {
this.gotoAndStop(1);
};
up04.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up04.onRollOut = function () {
this.gotoAndStop(1);
};
up05.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up05.onRollOut = function () {
this.gotoAndStop(1);
};
up06.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up06.onRollOut = function () {
this.gotoAndStop(1);
};
up07.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up07.onRollOut = function () {
this.gotoAndStop(1);
};
up08.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up08.onRollOut = function () {
this.gotoAndStop(1);
};
up09.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up09.onRollOut = function () {
this.gotoAndStop(1);
};
up10.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
up10.onRollOut = function () {
this.gotoAndStop(1);
};
nextbtn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
nextbtn.onRelease = function () {
_root.playSound("button_click");
_root.newLevel();
removeMovieClip(this._parent);
};
nextbtn.onRollOut = function () {
this.gotoAndStop(1);
};
save_btn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
save_btn.onRollOut = function () {
this.gotoAndStop(1);
};
if (_root.funMode) {
save_btn._visible = false;
}
save_btn.onRelease = function () {
_root.playSound("button_click");
mySave = SharedObject.getLocal("mySave");
mySave.data.enemyKills = _root.enemyKills;
mySave.data.currentLevel = _root.currentLevel;
mySave.data.money = _root.money;
mySave.data.playerHPTotal = _root.playerHPTotal;
mySave.data.playerHP = _root.playerHP;
mySave.data.fireRate = _root.fireRate;
mySave.data.bulletDamage = _root.bulletDamage;
mySave.data.mRange = _root.mRange;
mySave.data.mFireRate = _root.mFireRate;
mySave.data.missleDamage = _root.missleDamage;
mySave.data.scHPTotal = _root.scHPTotal;
mySave.data.scHP = _root.scHP;
mySave.data.spaceGun = _root.spaceGun;
mySave.data.scgShootTime = _root.scgShootTime;
mySave.data.scgDamage = _root.scgDamage;
save_pop = attachMovie("save_pop", "save_pop", _root.depth++);
save_pop._x = 325;
save_pop._y = 325;
};
m_btn.onRelease = function () {
_root.playSound("button_click");
_root.screenTrans(3);
};
m_btn.onRollOut = function () {
this.gotoAndStop(1);
};
m_btn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
playmore2_btn.onRelease = function () {
getURL ("http://www.flobzoo.com", "_blank", "POST");
};
playmore2_btn.onRollOver = function () {
this.gotoAndStop(2);
_root.playSound("btn_over");
};
playmore2_btn.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 289 MovieClip [levelComplete] Frame 30
_root.menuSound.setVolume(80);
Symbol 289 MovieClip [levelComplete] Frame 35
_root.menuSound.setVolume(60);
Symbol 289 MovieClip [levelComplete] Frame 40
_root.menuSound.setVolume(40);
Symbol 289 MovieClip [levelComplete] Frame 45
_root.menuSound.setVolume(20);
Symbol 289 MovieClip [levelComplete] Frame 50
_root.menuSound.stop();
_root.menuSound.setVolume(100);
Symbol 289 MovieClip [levelComplete] Frame 70
_root.levelOver = true;
removeMovieClip(this);
Symbol 316 MovieClip Frame 1
stop();
Symbol 319 MovieClip [instr_m] Frame 1
close_btn.onRollOver = function () {
this.gotoAndStop(2);
_root.playSound("btn_over");
};
close_btn.onRollOut = function () {
this.gotoAndStop(1);
};
close_btn.onRelease = function () {
_root.playSound("button_click");
_root.instructions = false;
removeMovieClip(this._parent);
};
Symbol 322 MovieClip [death_screen] Frame 1
m_btn.onRelease = function () {
_root.playSound("button_click");
removeMovieClip(this._parent);
_root.screenTrans(3);
};
m_btn.onRollOver = function () {
_root.playSound("btn_over");
this.gotoAndStop(2);
};
m_btn.onRollOut = function () {
this.gotoAndStop(1);
};
Symbol 329 MovieClip Frame 7
this.stopAllSounds();
this.unloadMovie();
Symbol 332 MovieClip Frame 1
play();
Symbol 332 MovieClip Frame 12
unloadMovie (this);
Symbol 341 MovieClip Frame 1
stop();
Symbol 344 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 353 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 1
stop();
Symbol 360 MovieClip Frame 1
stop();