Combined Code
frame 1 {
function preloader() {
if (getBytesLoaded() >= getBytesTotal()) {
play();
clearInterval(myInterval);
}
myText.text = 'Loading: ' + Math.round((getBytesLoaded() / getBytesTotal()) * 100) + '%';
Loading_mc._alpha = (getBytesLoaded() / getBytesTotal()) * 100;
}
stop();
myInterval = setInterval(preloader, 100);
}
movieClip 27 {
}
// unknown tag 88 length 75
frame 2 {
stop();
startBTN.onRelease = function () {
gotoAndStop('mission');
};
_root.musicsnd.stop();
}
movieClip 36 {
}
movieClip 41 {
}
movieClip 44 {
}
movieClip 48 {
}
// unknown tag 88 length 153
movieClip 55 {
}
frame 3 {
stop();
startBTN.onRelease = function () {
gotoAndStop('intro');
};
}
frame 4 {
stop();
alarmsnd = new Sound();
alarmsnd.attachSound('alarm');
alarmsnd.start();
}
frame 4 {
doorshutsnd = new Sound();
doorshutsnd.attachSound('doorshut');
dooropensnd = new Sound();
dooropensnd.attachSound('dooropen');
musicsnd = new Sound();
musicsnd.attachSound('music');
}
movieClip 242 {
frame 81 {
_root.doorshutsnd.start();
}
frame 119 {
stop();
_root.gotoAndStop('game');
}
}
movieClip 244 {
frame 70 {
stop();
}
}
frame 5 {
stop();
startDrag('_root.cursor', true);
Mouse.hide();
winsoundsnd = new Sound();
winsoundsnd.attachSound('winsound');
absorbsnd = new Sound();
absorbsnd.attachSound('absorb');
deadsnd = new Sound();
deadsnd.attachSound('dead');
powerupsnd = new Sound();
powerupsnd.attachSound('powerup');
bossfacesnd = new Sound();
bossfacesnd.attachSound('bossface');
galhurtsnd = new Sound();
galhurtsnd.attachSound('galhurt');
galaxiashotsnd = new Sound();
galaxiashotsnd.attachSound('galaxiashot');
foeshotsnd = new Sound();
foeshotsnd.attachSound('foeshot');
bossshotsnd = new Sound();
bossshotsnd.attachSound('bossshot');
gunspecialsnd = new Sound();
gunspecialsnd.attachSound('gunspecial');
kill1snd = new Sound();
kill1snd.attachSound('kill1');
kill2snd = new Sound();
kill2snd.attachSound('kill2');
kill3snd = new Sound();
kill3snd.attachSound('kill3');
kill4snd = new Sound();
kill4snd.attachSound('kill4');
kill5snd = new Sound();
kill5snd.attachSound('kill5');
kill6snd = new Sound();
kill6snd.attachSound('kill6');
kill7snd = new Sound();
kill7snd.attachSound('kill7');
bossbellysnd = new Sound();
bossbellysnd.attachSound('bossbelly');
bossouchsnd = new Sound();
bossouchsnd.attachSound('bossouch');
bossdiesnd = new Sound();
bossdiesnd.attachSound('bossdie');
score = 0;
scoreTXT.text = score;
galaxiawin = false;
boomshot = false;
StageTwo = false;
StageThree = false;
EnemyCloseL = true;
EnemyCloseR = true;
EnemyCloseM = true;
EnemyFarR2 = false;
EnemyFarR1 = false;
EnemyBoss = false;
EnemyFarL2 = false;
EnemyFarL1 = false;
FoeBosshere = false;
FoeCLhere = false;
FoeCRhere = false;
FoeCMhere = false;
FoeFL2here = false;
FoeFL1here = false;
FoeFR2here = false;
FoeFR1here = false;
FoeFR1spawned = false;
FoeFR2spawned = false;
FoeFL2spawned = false;
FoeFL1spawned = false;
FoeCLspawned = false;
FoeCMspawned = false;
FoeCRspawned = false;
shield = false;
ShieldBot_mc.enabled = false;
Time = 1200;
Health = 100;
bosslife = 300;
ShieldBot = function () {
ShieldBot_mc.gotoAndPlay('start');
ShieldBot_mc.enabled = true;
ShieldBot_mc._visible = true;
shield = true;
};
ShieldBot_mc.onRelease = function () {
score += 50;
scoreTXT.text = score;
powerupsnd.start();
galaxiashotsnd.start();
GreenFlash_mc.gotoAndPlay('flash');
shield = false;
ShieldBot_mc.enabled = false;
ShieldBot_mc._visible = false;
};
boom_mc.onEnterFrame = function () {
if (Key.isDown(32)) {
if (boomshot == true) {
gunspecialsnd.start();
boomshot = false;
WhiteFlash_mc.gotoAndPlay('flash');
if (FoeCMhere == true) {
score += 10;
scoreTXT.text = score;
FoeCloseM_mc.gotoAndPlay('death');
}
if (FoeCLhere == true) {
score += 10;
scoreTXT.text = score;
FoeCloseL_mc.gotoAndPlay('death');
}
if (FoeCRhere == true) {
score += 10;
scoreTXT.text = score;
FoeCloseR_mc.gotoAndPlay('death');
}
if (FoeFL2here == true) {
score += 20;
scoreTXT.text = score;
FoeFarL2_mc.gotoAndPlay('death');
}
if (FoeFL1here == true) {
score += 35;
scoreTXT.text = score;
FoeFarL1_mc.gotoAndPlay('death');
}
if (FoeFR2here == true) {
score += 20;
scoreTXT.text = score;
FoeFarR2_mc.gotoAndPlay('death');
}
if (FoeFR1here == true) {
score += 35;
scoreTXT.text = score;
FoeFarR1_mc.gotoAndPlay('death');
}
if (FoeBosshere == true) {
score += 100;
scoreTXT.text = score;
bosslife -= 20;
FoeBoss_mc.gotoAndPlay('death');
}
}
}
};
hurtBelly.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeBosshere == true) {
if (shield == false) {
score += 25;
scoreTXT.text = score;
bosslife -= 5;
if (bosslife <= 0) {
FoeBoss_mc.gotoAndPlay('death');
} else {
FoeBoss_mc.gotoAndPlay('gutpain');
}
boomchance = random(100);
if (boomchance > 95) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
} else {
absorbsnd.start();
}
}
};
hurtBoobs.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeBosshere == true) {
if (shield == false) {
score += 25;
scoreTXT.text = score;
bosslife -= 5;
if (bosslife <= 0) {
FoeBoss_mc.gotoAndPlay('death');
} else {
FoeBoss_mc.gotoAndPlay('chestpain');
}
boomchance = random(100);
if (boomchance > 95) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
} else {
absorbsnd.start();
}
}
};
hurtHead.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeBosshere == true) {
if (shield == false) {
score += 25;
scoreTXT.text = score;
bosslife -= 5;
if (bosslife <= 0) {
FoeBoss_mc.gotoAndPlay('death');
} else {
FoeBoss_mc.gotoAndPlay('headpain');
}
boomchance = random(100);
if (boomchance > 95) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
} else {
absorbsnd.start();
}
}
};
killFCM.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeCMhere == true) {
score += 10;
scoreTXT.text = score;
FoeCloseM_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
killFCL.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeCLhere == true) {
score += 10;
scoreTXT.text = score;
FoeCloseL_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
killFCR.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeCRhere == true) {
score += 10;
scoreTXT.text = score;
FoeCloseR_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
killFL2.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeFL2here == true) {
score += 20;
scoreTXT.text = score;
FoeFarL2_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
killFL1.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeFL1here == true) {
score += 35;
scoreTXT.text = score;
FoeFarL1_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
killFR2.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeFR2here == true) {
score += 20;
scoreTXT.text = score;
FoeFarR2_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
killFR1.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
if (FoeFR1here == true) {
score += 35;
scoreTXT.text = score;
FoeFarR1_mc.gotoAndPlay('death');
boomchance = random(100);
if (boomchance > 90) {
boomshot = true;
boom_mc.gotoAndPlay('glow');
}
}
};
emptyBTN.onRelease = function () {
WhiteFlash_mc.gotoAndPlay('blaster');
galaxiashotsnd.start();
};
MeasureTime_mc.onEnterFrame = function () {
if (galaxiawin == true) {
++score;
scoreTXT.text = score;
}
--Time;
if (Time == 0) {
if (StageTwo == false) {
Time = 1200;
DespawnFirst();
Fightground_mc.gotoAndPlay('StageTwo');
} else {
if (StageThree == false && StageTwo == true) {
Time = 1200;
Fightground_mc.gotoAndPlay('StageThree');
} else {
if (galaxiawin == false) {
gotoAndPlay('herolose');
} else {
gotoAndPlay('herowin');
}
}
}
}
};
BossPop = function () {
FoeBoss_mc.gotoAndPlay('start');
};
Despawn = function () {
clearInterval(CloseM);
clearInterval(FarL2);
clearInterval(FarL1);
clearInterval(FarR2);
clearInterval(FarR1);
};
DespawnFirst = function () {
clearInterval(CloseL);
clearInterval(CloseR);
};
FoeCL = function () {
if (FoeCLspawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeCloseL_mc.gotoAndPlay('start');
}
}
};
CloseL = setInterval(FoeCL, 3000);
FoeCR = function () {
if (FoeCRspawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeCloseR_mc.gotoAndPlay('start');
}
}
};
CloseR = setInterval(FoeCR, 4000);
FoeCM = function () {
if (FoeCMspawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeCloseM_mc.gotoAndPlay('start');
}
}
};
CloseM = setInterval(FoeCM, 5000);
ChangeStage();
FoeFL2 = function () {
if (StageTwo == true) {
if (FoeFL2spawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeFarL2_mc.gotoAndPlay('start');
}
}
}
};
FarL2 = setInterval(FoeFL2, 4500);
FoeFL1 = function () {
if (StageTwo == true) {
if (FoeFL1spawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeFarL1_mc.gotoAndPlay('start');
}
}
}
};
FarL1 = setInterval(FoeFL1, 4000);
FoeFR2 = function () {
if (StageTwo == true) {
if (FoeFR2spawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeFarR2_mc.gotoAndPlay('start');
}
}
}
};
FarR2 = setInterval(FoeFR2, 5500);
FoeFR1 = function () {
if (StageTwo == true) {
if (FoeFR1spawned == false) {
attackchance = random(100);
if (attackchance >= 40) {
FoeFarR1_mc.gotoAndPlay('start');
}
}
}
};
FarR1 = setInterval(FoeFR1, 5000);
}
movieClip 319 {
frame 1 {
stop();
}
frame 2 {
_root.FoeFR1spawned = true;
_root.FoeFR1here = true;
}
frame 21 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 31 {
stop();
_root.FoeFR1spawned = false;
_root.FoeFR1here = false;
}
frame 32 {
_root.FoeFR1here = false;
_root.kill4snd.start();
}
frame 76 {
stop();
_root.FoeFR1spawned = false;
}
}
movieClip 390 {
frame 1 {
stop();
}
frame 2 {
_root.FoeFR2spawned = true;
}
frame 5 {
_root.FoeFR2here = true;
}
frame 11 {
}
frame 22 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 32 {
gotoAndPlay('cycle');
}
frame 33 {
_root.FoeFR2here = false;
_root.kill3snd.start();
}
frame 77 {
stop();
_root.FoeFR2spawned = false;
}
}
movieClip 459 {
frame 1 {
stop();
}
frame 2 {
_root.FoeFL1spawned = true;
_root.FoeFL1here = true;
}
frame 22 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 31 {
stop();
_root.FoeFL1spawned = false;
_root.FoeFL1here = false;
}
frame 32 {
_root.FoeFL1here = false;
_root.kill2snd.start();
}
frame 76 {
stop();
_root.FoeFL1spawned = false;
}
}
movieClip 530 {
frame 1 {
stop();
}
frame 2 {
_root.FoeFL2spawned = true;
}
frame 10 {
_root.FoeFL2here = true;
}
frame 20 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 31 {
gotoAndPlay('cycle');
}
frame 32 {
_root.FoeFL2here = false;
_root.kill1snd.start();
}
frame 76 {
stop();
_root.FoeFL2spawned = false;
}
}
movieClip 675 {
frame 1 {
stop();
}
frame 2 {
var faceouch;
var titsouch;
var gutouch;
}
frame 22 {
_root.FoeBosshere = true;
_root.killFCM._visible = false;
_root.killFCM.enabled = false;
_root.ShieldBot();
_root.StageThree = true;
}
frame 30 {
faceouch = false;
titsouch = false;
gutouch = false;
var shieldchance = random(100);
if (shieldchance >= 90) {
if (_root.shield == false) {
_root.ShieldBot();
}
}
}
frame 42 {
_root.RedFlash_mc.gotoAndPlay('yowch');
_root.bossshotsnd.start();
}
frame 59 {
gotoAndPlay('cycle');
}
frame 60 {
faceouch = false;
gutouch = false;
if (titsouch == true) {
_root.ShieldBot();
titsouch = false;
} else {
titsouch = true;
}
_root.bossouchsnd.start();
_root.FaceBoss_mc.gotoAndPlay('hurt');
}
frame 66 {
shieldchance = random(100);
if (shieldchance >= 96) {
if (_root.shield == false) {
_root.ShieldBot();
}
}
}
frame 75 {
gotoAndPlay('cycle');
}
frame 76 {
titsouch = false;
gutouch = false;
if (faceouch == true) {
_root.ShieldBot();
faceouch = false;
} else {
faceouch = true;
}
_root.bossfacesnd.start();
_root.FaceBoss_mc.gotoAndPlay('hurt');
}
frame 84 {
shieldchance = random(100);
if (shieldchance >= 96) {
if (_root.shield == false) {
_root.ShieldBot();
}
}
}
frame 90 {
gotoAndPlay('cycle');
}
frame 91 {
titsouch = false;
faceouch = false;
if (gutouch == true) {
_root.ShieldBot();
gutouch = false;
} else {
gutouch = true;
}
_root.FaceBoss_mc.gotoAndPlay('hurt');
}
frame 96 {
_root.bossbellysnd.start();
}
frame 99 {
shieldchance = random(100);
if (shieldchance >= 96) {
if (_root.shield == false) {
_root.ShieldBot();
}
}
}
frame 105 {
gotoAndPlay('cycle');
}
frame 106 {
_root.FaceBoss_mc.gotoAndPlay('dead');
if (_root.bosslife <= 0) {
_root.galaxiawin = true;
_root.FoeBosshere = false;
_root.GreenFlash_mc.gotoAndPlay('flash');
_root.bossdiesnd.start();
_root.powerupsnd.start();
_root.winsoundsnd.start();
}
}
frame 111 {
titsouch = false;
gutouch = false;
faceouch = false;
if (_root.bosslife > 0) {
_root.bossbellysnd.start();
}
}
frame 112 {
if (_root.bosslife > 0) {
_root.FaceBoss_mc.gotoAndPlay('hurt');
}
}
frame 133 {
if (_root.bosslife > 0) {
gotoAndPlay('hurtcycle');
}
}
frame 156 {
stop();
}
}
movieClip 678 {
frame 1 {
_root.musicsnd.start(0, 99);
}
frame 11 {
stop();
}
frame 12 {
_root.dooropensnd.start();
_root.DespawnFirst();
}
frame 40 {
stop();
_root.StageTwo = true;
}
frame 41 {
_root.Despawn();
_root.StageThree = true;
}
frame 70 {
stop();
_root.BossPop();
}
}
movieClip 745 {
frame 1 {
stop();
}
frame 2 {
_root.FoeCRhere = true;
_root.FoeCRspawned = true;
}
frame 26 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 37 {
gotoAndPlay('cycle');
}
frame 38 {
_root.FoeCRhere = false;
_root.kill7snd.start();
}
frame 80 {
stop();
_root.FoeCRspawned = false;
}
}
movieClip 753 {
}
movieClip 756 {
}
movieClip 760 {
}
movieClip 761 {
}
instance queenlifebar of movieClip 761 {
onClipEvent (enterFrame) {
this._xscale = _root.Time / 12;
if (this._xscale < 0) {
this._xscale = 0;
}
}
}
movieClip 763 {
}
instance healthbar_mc of movieClip 763 {
onClipEvent (enterFrame) {
this._xscale = _root.Health;
if (this._xscale < 0) {
this._xscale = 0;
}
}
}
movieClip 765 {
}
instance healthboss_mc of movieClip 765 {
onClipEvent (enterFrame) {
this._xscale = _root.bosslife / 3;
if (this._xscale < 0) {
this._xscale = 0;
}
}
}
movieClip 826 {
frame 1 {
stop();
}
frame 2 {
_root.FoeCMspawned = true;
_root.absorbsnd.start();
}
frame 12 {
_root.FoeCMhere = true;
}
frame 30 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 42 {
gotoAndPlay('cycle');
}
frame 43 {
_root.FoeCMhere = false;
_root.kill5snd.start();
}
frame 81 {
stop();
_root.FoeCMspawned = false;
}
}
movieClip 828 {
}
movieClip 835 {
frame 1 {
stop();
}
frame 100 {
gotoAndPlay('start');
}
}
movieClip 882 {
frame 1 {
stop();
}
frame 2 {
_root.FoeCLhere = true;
_root.FoeCLspawned = true;
}
frame 26 {
_root.RedFlash_mc.gotoAndPlay('blast');
_root.foeshotsnd.start();
}
frame 37 {
gotoAndPlay('cycle');
}
frame 38 {
_root.FoeCLhere = false;
_root.kill6snd.start();
}
frame 76 {
stop();
_root.FoeCLspawned = false;
}
}
movieClip 885 {
}
movieClip 888 {
frame 1 {
stop();
}
frame 20 {
if (_root.boomshot == true) {
gotoAndPlay('glow');
} else {
gotoAndPlay('idle');
}
}
}
movieClip 893 {
frame 1 {
stop();
}
}
movieClip 898 {
frame 1 {
stop();
}
frame 20 {
gotoAndPlay('idle');
}
frame 21 {
stop();
}
}
movieClip 899 {
frame 1 {
stop();
}
frame 2 {
_root.Face_mc.gotoAndPlay('hurt');
_root.Health -= 2;
if (_root.Health <= 0) {
_root.gotoAndPlay('herolose');
}
}
frame 15 {
stop();
}
frame 16 {
_root.Face_mc.gotoAndPlay('hurt');
_root.Health -= 4;
if (_root.Health <= 0) {
_root.gotoAndPlay('herolose');
}
}
frame 29 {
stop();
}
}
movieClip 900 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
movieClip 902 {
frame 1 {
stop();
}
frame 15 {
stop();
}
}
// unknown tag 88 length 93
frame 7 {
stop();
musicsnd.stop();
deadsnd.start();
kill4snd.start();
bossshotsnd.start();
}
movieClip 910 {
frame 35 {
stop();
_root.nextBTN.onRelease = function () {
_root.gotoAndStop('start');
};
}
}
instance of movieClip 910 {
onClipEvent (load) {
Mouse.show();
}
}
movieClip 912 {
}
frame 9 {
stop();
scoreTXT.text = score;
}
movieClip 919 {
frame 35 {
stop();
_root.nextBTN.onRelease = function () {
_root.gotoAndStop('start');
};
}
}
instance of movieClip 919 {
onClipEvent (load) {
Mouse.show();
}
}
movieClip 921 {
}