Frame 1
function PopEthos() {
getURL ("http://www.PopEthos.net/", "_blank");
}
function Kong() {
getURL ("http://www.kongregate.com/?gamereferral=EtherCannon", "_blank");
}
var newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
newMenu.customItems.push(new ContextMenuItem("Pop Ethos", PopEthos));
newMenu.customItems.push(new ContextMenuItem("Kongregate", Kong));
this.menu = newMenu;
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("e23e1dfc", this, 10301, true);
Instance of Symbol 52 MovieClip in Frame 3
onClipEvent (mouseDown) {
getURL ("http://www.PopEthos.net/", "_blank");
}
Frame 4
var Music = new Sound();
Music.attachSound("DarkDreams");
var Pop = new Array();
Pop[1] = new Sound();
Pop[1].attachSound("Pop1");
Pop[2] = new Sound();
Pop[2].attachSound("Pop2");
Pop[3] = new Sound();
Pop[3].attachSound("Pop3");
var Shot = new Sound();
Shot.attachSound("ShotSound");
var Laser = new Sound();
Laser.attachSound("Laser");
var Engine = new Sound();
Engine.attachSound("EngineBuzz");
var Hit = new Sound();
Hit.attachSound("Hit");
var Mute = false;
var Start = true;
var KeyListen = new Object();
KeyListen.onKeyDown = function () {
if (Key.isDown(77)) {
if (Mute == false) {
Music.setVolume(0);
Mute = true;
} else {
Music.setVolume(100);
Mute = false;
}
}
};
Key.addListener(KeyListen);
Frame 5
var PTC;
var HardMode = false;
var EtherCannonSave = SharedObject.getLocal("EtherCannonSave");
var GameCompleted = EtherCannonSave.data.GameCompleted;
a = 1;
while (a <= 2000) {
PTC = Background.Stars.attachMovie("StarGfx", Background.Stars.getNextHighestDepth(), Background.Stars.getNextHighestDepth());
PTC._x = (Math.random() * Stage.width) - (Math.random() * Stage.width);
PTC._y = (Math.random() * Stage.height) - (Math.random() * Stage.height);
PTC._yscale = 10 + (Math.random() * 70);
PTC._xscale = PTC._yscale;
a++;
}
if (Start == true) {
Music.start(0, 9999);
Start = false;
}
Mouse.show();
if (GameCompleted == true) {
HardModeBtn.enabled = true;
HardModeBtn._visible = true;
} else {
HardModeBtn.enabled = false;
HardModeBtn._visible = false;
}
Frame 7
gotoAndPlay ("MenuMain");
Frame 8
function RestartLastLevel() {
Score = 0;
EndMenu.Open = false;
LevelText.gotoAndPlay("FadeOut");
Restart++;
PTC = Cam.Cannon.Particles.attachMovie("Restart", Cam.Cannon.Particles.getNextHighestDepth(), Cam.Cannon.Particles.getNextHighestDepth());
Shot.start();
}
function RestartLastLevel2() {
Ether = 0;
Wave = MaxWave;
BaddieCount = 0;
Cam.Cannon.gotoAndPlay("Main");
Cam.Cannon.ShieldStr = Cam.Cannon.ShieldMod;
LevelGen();
GameStop = false;
}
function MakeDot(Obj, Type) {
PTC = Interface.Radar.Dots.attachMovie("Dot", Interface.Radar.Dots.getNextHighestDepth(), Interface.Radar.Dots.getNextHighestDepth());
PTC.Host = Obj;
PTC.Type = Type;
}
function Shoot() {
PTC = Cam.CannonShots.attachMovie("CannonShotMod", Cam.CannonShots.getNextHighestDepth(), Cam.CannonShots.getNextHighestDepth());
PTC.Graphic.gotoAndPlay(CurrentShot);
PTC._x = Cam.Cannon._x;
PTC._y = Cam.Cannon._y;
PTC._rotation = Cam.Cannon.Turret._rotation;
Laser.start();
}
function ShieldLaunch() {
Cam.Cannon.Particles.attachMovie("Shield", Cam.Cannon.Particles.getNextHighestDepth(), Cam.Cannon.Particles.getNextHighestDepth());
if (Cam.Cannon.ShieldMod >= 30) {
a = 25;
while (a <= Cam.Cannon.ShieldMod) {
PTC = Cam.CannonShots.attachMovie("CannonShotMod", Cam.CannonShots.getNextHighestDepth(), Cam.CannonShots.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("Shield");
PTC._x = (Cam.Cannon._x - 50) + (Math.random() * 100);
PTC._y = (Cam.Cannon._y - 50) + (Math.random() * 100);
PTC._rotation = Math.random() * 360;
a = a + 10;
}
}
}
function ThrustParticles(Thruster, Rotation) {
a = 1;
while (a <= 2) {
PTC = Cam.Harmless.attachMovie("FlamingShot", Cam.Harmless.getNextHighestDepth(), Cam.Harmless.getNextHighestDepth());
PTC._x = ((Cam.Cannon._x + Thruster._x) + (Math.random() * 5)) - (Math.random() * 5);
PTC._y = ((Cam.Cannon._y + Thruster._y) + (Math.random() * 5)) - (Math.random() * 5);
PTC._rotation = Rotation;
PTC._yscale = PTC._yscale - (Math.random() * 200);
a++;
}
}
function GameOver() {
a = 0;
while (a <= 40) {
PTC = Cam.CannonShots.attachMovie("Shrapnel", Cam.CannonShots.getNextHighestDepth(), Cam.CannonShots.getNextHighestDepth());
PTC._x = Cam.Cannon._x + (50 - (Math.random() * 100));
PTC._y = Cam.Cannon._y + (50 - (Math.random() * 100));
PTC._rotation = Math.random() * 360;
PTC.gotoAndPlay(Math.ceil(Math.random() * 20));
a++;
}
a = 0;
while (a <= 20) {
PTC = Cam.CannonShots.attachMovie("EndBoom", Cam.CannonShots.getNextHighestDepth(), Cam.CannonShots.getNextHighestDepth());
PTC._x = Cam.Cannon._x + (100 - (Math.random() * 200));
PTC._y = Cam.Cannon._y + (100 - (Math.random() * 200));
PTC._xscale = 50 + (Math.random() * 50);
PTC._yscale = PTC._xscale;
PTC.gotoAndPlay(Math.ceil(Math.random() * 20));
a++;
}
if (HardMode == true) {
_root.HPScoreService.postScore(Score, "Hard");
} else {
_root.HPScoreService.postScore(Score, "Normal");
}
EndMenu.FinalScoreText.text = Score;
EndMenu.Open = true;
GameStop = true;
RestartButton._visible = false;
RestartButton.enabled = false;
CamShake = CamShake + 50;
Cam.Cannon.gotoAndStop("End");
}
function DistCheck(Obj) {
if (Obj._x > (Cam.Cannon._x + ((Interface.Radar._width * Mag) / 2))) {
Obj._x = Obj._x - (Interface.Radar._width * Mag);
}
if (Obj._y > (Cam.Cannon._y + ((Interface.Radar._width * Mag) / 2))) {
Obj._y = Obj._y - (Interface.Radar._width * Mag);
}
if (Obj._x < (Cam.Cannon._x - ((Interface.Radar._width * Mag) / 2))) {
Obj._x = Obj._x + (Interface.Radar._width * Mag);
}
if (Obj._y < (Cam.Cannon._y - ((Interface.Radar._width * Mag) / 2))) {
Obj._y = Obj._y + (Interface.Radar._width * Mag);
}
}
function BlueHunter() {
PTC = Cam.Baddies.attachMovie("Baddie", Cam.Baddies.getNextHighestDepth(), Cam.Baddies.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("BlueOrb");
PTC.MoveSpeed = 18;
PTC.TurnSpeed = 4;
PTC.Hits = 13;
PTC.Damage = 2;
PTC.ShootFreq = 0.1;
PTC.Shot = "BlueShot";
PTC.Death = "BlueBurst";
PTC.Score = 10;
BaddieCount++;
}
function YellowFloater() {
PTC = Cam.Baddies.attachMovie("Baddie", Cam.Baddies.getNextHighestDepth(), Cam.Baddies.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("YellowOrb");
PTC.MoveSpeed = 14;
PTC.TurnSpeed = 5;
PTC.Hits = 10;
PTC.Damage = 3;
PTC.ShootFreq = 0.1;
PTC.Shot = "Flare";
PTC.Death = "YellowBurst";
PTC.Score = 5;
BaddieCount++;
}
function PurpleHunter() {
PTC = Cam.Baddies.attachMovie("Baddie", Cam.Baddies.getNextHighestDepth(), Cam.Baddies.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("PurpleOrb");
PTC.MoveSpeed = 20;
PTC.TurnSpeed = 4;
PTC.Hits = 15;
PTC.Damage = 3;
PTC.ShootFreq = 0.1;
PTC.Shot = "PurpleShot";
PTC.Death = "PurpleBurst";
PTC.Score = 20;
BaddieCount++;
}
function RedChaser() {
PTC = Cam.Baddies.attachMovie("Baddie", Cam.Baddies.getNextHighestDepth(), Cam.Baddies.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("SpinningRedOrbs");
PTC.MoveSpeed = 23;
PTC.TurnSpeed = 4;
PTC.Hits = 25;
PTC.Damage = 7;
PTC.ShootFreq = 0.1;
PTC.Shot = "RedTrail";
PTC.Death = "FireBoom";
PTC.Score = 45;
BaddieCount++;
}
function BlackBomber() {
PTC = Cam.Baddies.attachMovie("Baddie", Cam.Baddies.getNextHighestDepth(), Cam.Baddies.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("BlackOrb");
PTC.MoveSpeed = 21;
PTC.TurnSpeed = 3;
PTC.Hits = 40;
PTC.Damage = 6;
PTC.ShootFreq = 0.1;
PTC.Shot = "FireBrand";
PTC.Death = "FireBoom";
PTC.Score = 50;
BaddieCount++;
}
function Bubble() {
PTC = Cam.Baddies.attachMovie("Baddie", Cam.Baddies.getNextHighestDepth(), Cam.Baddies.getNextHighestDepth());
PTC.Graphic.gotoAndPlay("BubbleOrb");
PTC.MoveSpeed = 24;
PTC.TurnSpeed = 4;
PTC.Hits = 40;
PTC.Damage = 15;
PTC.ShootFreq = 0.1;
PTC.Shot = "Pop";
PTC.Death = "EndBoom";
PTC.Score = 65;
BaddieCount++;
}
function Boss() {
PTC = Cam.Baddies.attachMovie("Boss", "Boss", Cam.Baddies.getNextHighestDepth());
BaddieCount = BaddieCount + 2;
}
function BaddieDie(Baddie) {
EtherRotation++;
if (((EtherRotation == 6) && (HardMode == false)) || ((EtherRotation == 7) && (HardMode == true))) {
PTC = Cam.Harmless.attachMovie("Ether", Cam.Harmless.getNextHighestDepth(), Cam.Harmless.getNextHighestDepth());
PTC._x = Baddie._x;
PTC._y = Baddie._y;
EtherRotation = 0;
}
if (GameStop == false) {
Score = Score + Baddie.Score;
if (HardMode == true) {
Score = Score + Baddie.Score;
}
}
PTC = Cam.Harmless.attachMovie(Baddie.Death, Cam.Harmless.getNextHighestDepth(), Cam.Harmless.getNextHighestDepth());
PTC._x = Baddie._x + Baddie.Graphic.Hit._x;
PTC._y = Baddie._y + Baddie.Graphic.Hit._y;
Shot.start();
Baddie.removeMovieClip();
BaddieCount--;
if ((BaddieCount == 0) && (GameStop == false)) {
LevelGen();
}
}
function UpgradeBtn(Type) {
if (Ether > 0) {
if (Type == "Engine") {
Cam.Cannon.EngineMod = Cam.Cannon.EngineMod + 1;
Ether = Ether - 1;
}
if (Type == "Shield") {
Cam.Cannon.ShieldMod = Cam.Cannon.ShieldMod + 1;
Ether = Ether - 1;
}
if (Type == "Turret") {
Cam.Cannon.WeaponMod = Cam.Cannon.WeaponMod + 1;
if (Cam.Cannon.WeaponMod == 5) {
CurrentShot = "SingleBlue";
}
if (Cam.Cannon.WeaponMod == 20) {
CurrentShot = "SingleRed";
}
if (Cam.Cannon.WeaponMod == 40) {
CurrentShot = "TripleGreen";
}
if (Cam.Cannon.WeaponMod == 80) {
CurrentShot = "Rainbow";
}
Ether = Ether - 1;
}
UpdateTerminal();
}
}
function UpdateTerminal() {
StoreTerminal.ShieldPower.text = Cam.Cannon.ShieldMod;
StoreTerminal.EnginePower.text = Cam.Cannon.EngineMod;
StoreTerminal.TurretPower.text = Cam.Cannon.WeaponMod;
StoreTerminal.EtherCounter.text = Ether;
}
function LevelGen() {
if (Wave > 0) {
if (Level == 1) {
a = 1;
while (a <= 6) {
YellowFloater();
a++;
}
}
if (Level == 2) {
a = 1;
while (a <= 3) {
BlueHunter();
YellowFloater();
a++;
}
}
if (Level == 3) {
a = 1;
while (a <= 6) {
BlueHunter();
a++;
}
}
if (Level == 4) {
a = 1;
while (a <= 3) {
BlueHunter();
a++;
}
a = 1;
while (a <= 2) {
PurpleHunter();
a++;
}
}
if (Level == 5) {
a = 1;
while (a <= 5) {
PurpleHunter();
a++;
}
}
if (Level == 6) {
a = 1;
while (a <= 4) {
YellowFloater();
PurpleHunter();
BlueHunter();
a++;
}
}
if (Level == 7) {
a = 1;
while (a <= 5) {
YellowFloater();
a++;
}
a = 1;
while (a <= 4) {
RedChaser();
a++;
}
}
if (Level == 8) {
a = 1;
while (a <= 15) {
BlueHunter();
a++;
}
}
if (Level == 9) {
a = 1;
while (a <= 6) {
PurpleHunter();
a++;
}
a = 1;
while (a <= 5) {
RedChaser();
a++;
}
}
if (Level == 10) {
a = 1;
while (a <= 5) {
BlackBomber();
a++;
}
}
if (Level == 11) {
a = 1;
while (a <= 4) {
RedChaser();
BlackBomber();
a++;
}
}
if (Level == 12) {
a = 1;
while (a <= 4) {
BlueHunter();
a++;
}
a = 1;
while (a <= 8) {
BlackBomber();
a++;
}
}
if (Level == 13) {
a = 1;
while (a <= 8) {
BlackBomber();
a++;
}
a = 1;
while (a <= 4) {
PurpleHunter();
a++;
}
}
if (Level == 14) {
a = 1;
while (a <= 10) {
PurpleHunter();
a++;
}
}
if (Level == 15) {
a = 1;
while (a <= 6) {
Bubble();
a++;
}
}
if (Level == 16) {
a = 1;
while (a <= 6) {
Bubble();
RedChaser();
a++;
}
}
if (Level == 17) {
a = 1;
while (a <= 5) {
Bubble();
BlackBomber();
a++;
}
}
if (Level == 18) {
a = 1;
while (a <= 15) {
BlackBomber();
a++;
}
}
if (Level == 19) {
a = 1;
while (a <= 4) {
BlackBomber();
Bubble();
a++;
}
a = 1;
while (a <= 10) {
PurpleHunter();
a++;
}
}
if (Level == 20) {
a = 1;
while (a <= 10) {
Bubble();
a++;
}
}
if (Level == 21) {
a = 1;
while (a <= 5) {
RedChaser();
Bubble();
BlackBomber();
a++;
}
a = 1;
while (a <= 5) {
PurpleHunter();
a++;
}
Boss();
}
if (Wave == MaxWave) {
LevelText.gotoAndPlay("Start");
LevelText.Fader.LevelText.text = ("Level " + Level) + " of 21";
} else {
LevelText.gotoAndPlay("Start");
LevelText.Fader.LevelText.text = (("Wave " + ((MaxWave - Wave) + 1)) + " of ") + MaxWave;
}
Wave--;
} else {
Level++;
if (Level <= 5) {
MaxWave = Level + 1;
}
Wave = MaxWave;
_quality = "HIGH";
StoreTerminal.Open = true;
}
}
var StartSpeed = 10;
var Acc = 1;
var Dec = 1.1;
var ScreenSpeed = 25;
var Mag = 25;
var ShotSpeed = 3;
var MaxWave = 2;
var MaxSpeed = 10;
var ShotCount = 0;
var EngineOn = false;
var Score = 0;
var CurrentShot = "SingleGreen";
var MsDwn = false;
var NextX = 0;
var NextY = 0;
var CamShake = 0;
var SmallShake = 0;
var Level = 1;
var Wave = MaxWave;
var BaddieCount = 0;
var Restart = 0;
var Ether = 0;
var GameStop = false;
var EndGame = false;
var EtherRotation = 0;
Mouse.hide();
a = 1;
while (a <= 50) {
PTC = Background.attachMovie("Star", Background.getNextHighestDepth(), Background.getNextHighestDepth());
PTC._x = (Math.random() * Stage.width) - (Math.random() * Stage.width);
PTC._y = (Math.random() * Stage.height) - (Math.random() * Stage.height);
PTC._yscale = 15 + (Math.random() * 85);
PTC._xscale = PTC._yscale;
a++;
}
UpdateTerminal();
_quality = "MEDIUM";
onMouseDown = function () {
MsDwn = true;
if (EndGame == false) {
Mouse.hide();
}
};
onMouseUp = function () {
MsDwn = false;
};
Instance of Symbol 323 MovieClip "Cursor" in Frame 8
onClipEvent (load) {
this.startDrag(true);
}
Frame 9
MaxSpeed = StartSpeed + (Cam.Cannon.EngineMod / 20);
if (GameStop == false) {
if (Key.isDown(37) || (Key.isDown(65))) {
if (NextX > (-MaxSpeed)) {
NextX = NextX - Acc;
}
ThrustParticles(Cam.Cannon.RThruster, 0);
EngineOn = true;
}
if (Key.isDown(39) || (Key.isDown(68))) {
if (NextX < MaxSpeed) {
NextX = NextX + Acc;
}
ThrustParticles(Cam.Cannon.LThruster, 180);
EngineOn = true;
}
}
if (((((!Key.isDown(37)) && (!Key.isDown(39))) && (!Key.isDown(65))) && (!Key.isDown(68))) || (GameStop == true)) {
NextX = NextX / Dec;
}
if (GameStop == false) {
if (Key.isDown(38) || (Key.isDown(87))) {
if (NextY > (-MaxSpeed)) {
NextY = NextY - Acc;
}
ThrustParticles(Cam.Cannon.DThruster, 90);
EngineOn = true;
}
if (Key.isDown(40) || (Key.isDown(83))) {
if (NextY < MaxSpeed) {
NextY = NextY + Acc;
}
ThrustParticles(Cam.Cannon.UThruster, 270);
EngineOn = true;
}
}
if (((((!Key.isDown(38)) && (!Key.isDown(40))) && (!Key.isDown(87))) && (!Key.isDown(83))) || (GameStop == true)) {
NextY = NextY / Dec;
}
if (EngineOn == true) {
Engine.start();
EngineOn = false;
}
Cam.Cannon._x = Cam.Cannon._x + NextX;
Cam.Cannon._y = Cam.Cannon._y + NextY;
Cam._x = Cam._x - (((Cam.Cannon._x + Cam._x) - (Stage.width / 2)) / (ScreenSpeed - MaxSpeed));
Cam._y = Cam._y - (((Cam.Cannon._y + Cam._y) - (Stage.height / 2)) / (ScreenSpeed - MaxSpeed));
Background._x = Cam.Cannon._x + Cam._x;
Background._y = Cam.Cannon._y + Cam._y;
if (GameStop == false) {
if (_xmouse > (Cam._x + Cam.Cannon._x)) {
Cam.Cannon.Turret._rotation = Math.atan(((Cam._y + Cam.Cannon._y) - _ymouse) / ((Cam._x + Cam.Cannon._x) - _xmouse)) / (Math.PI/180);
} else {
Cam.Cannon.Turret._rotation = (Math.atan(((Cam._y + Cam.Cannon._y) - _ymouse) / ((Cam._x + Cam.Cannon._x) - _xmouse)) / (Math.PI/180)) + 180;
}
if (MsDwn) {
if (ShotCount >= 3) {
if (!Cursor.hitTest(StoreTerminal)) {
Shoot();
ShotCount = 0;
}
} else {
ShotCount++;
}
}
}
if (CamShake > 15) {
CamShake = 15;
}
if (SmallShake > 15) {
SmallShake = 15;
}
if (CamShake > 0) {
Cam._x = Cam._x + ((Math.random() * 20) - (Math.random() * 20));
Cam._y = Cam._y + ((Math.random() * 20) - (Math.random() * 20));
CamShake--;
}
if (SmallShake > 0) {
Cam._x = Cam._x + ((Math.random() * 10) - (Math.random() * 10));
Cam._y = Cam._y + ((Math.random() * 10) - (Math.random() * 10));
SmallShake--;
}
ScoreText.text = String(Score);
Frame 10
gotoAndPlay ("Main");
if (EndGame == true) {
gotoAndPlay ("CineLoad");
}
Frame 12
EtherCannonSave.data.GameCompleted = true;
EtherCannonSave.flush();
if (HardMode == true) {
_root.HPScoreService.postScore(Score, "Hard");
} else {
_root.HPScoreService.postScore(Score, "Normal");
}
EndGame = true;
Mouse.show();
var Timer = 0;
if (Cam.Boss._x > Cam.Cannon._x) {
Cam.Cannon.Turret._rotation = Math.atan((Cam.Cannon._y - Cam.Boss._y) / (Cam.Cannon._x - Cam.Boss._x)) / (Math.PI/180);
} else {
Cam.Cannon.Turret._rotation = (Math.atan((Cam.Cannon._y - Cam.Boss._y) / (Cam.Cannon._x - Cam.Boss._x)) / (Math.PI/180)) + 180;
}
_quality = "MEDIUM";
stopAllSounds();
Frame 14
Timer++;
if (Timer == 110) {
PTC = Cam.Cannon.Particles.attachMovie("BigShotCine", Cam.Cannon.Particles.getNextHighestDepth(), Cam.Cannon.Particles.getNextHighestDepth());
PTC._rotation = Cam.Cannon.Turret._rotation;
}
if (Timer <= 155) {
a = 1;
while (a <= 2) {
PTC = Cam.Harmless.attachMovie("Ether", Cam.Harmless.getNextHighestDepth(), Cam.Harmless.getNextHighestDepth());
Temp = Math.random() * 360;
PTC._x = Cam.Cannon._x + (Math.cos(Temp * (Math.PI/180)) * 800);
PTC._y = Cam.Cannon._y + (Math.sin(Temp * (Math.PI/180)) * 800);
a++;
}
}
if (Timer >= 270) {
gotoAndPlay ("CineLoop");
}
Temp = (Math.random() * 10) - (Math.random() * 10);
Cam._x = Cam._x + Temp;
Background._x = Background._x + Temp;
Temp = (Math.random() * 10) - (Math.random() * 10);
Cam._y = Cam._y + Temp;
Background._y = Background._y + Temp;
Cam._x = Cam._x - (((Cam.Cannon._x + Cam._x) - (Stage.width / 2)) / (ScreenSpeed - MaxSpeed));
Cam._y = Cam._y - (((Cam.Cannon._y + Cam._y) - (Stage.height / 2)) / (ScreenSpeed - MaxSpeed));
Background._x = Background._x - (((Cam.Cannon._x + Cam._x) - (Stage.width / 2)) / (ScreenSpeed - MaxSpeed));
Background._y = Background._y - (((Cam.Cannon._y + Cam._y) - (Stage.height / 2)) / (ScreenSpeed - MaxSpeed));
Frame 15
gotoAndPlay ("CineStart");
Frame 17
gotoAndPlay ("CineLoop");
Symbol 16 MovieClip Frame 1
_root.stop();
Symbol 16 MovieClip Frame 280
var Total = _root.getBytesTotal();
var Loaded = 0;
Symbol 16 MovieClip Frame 281
Loaded = _root.getBytesLoaded();
Loadbar._xscale = (Loaded * 100) / Total;
if (Loaded >= Total) {
gotoAndPlay ("Start");
}
Symbol 16 MovieClip Frame 282
gotoAndPlay ("Main");
Symbol 16 MovieClip Frame 301
_root.play();
stop();
Symbol 19 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=EtherCannon", "_blank");
}
Symbol 45 MovieClip Frame 1
_root.stop();
Symbol 45 MovieClip Frame 148
_root.play();
stop();
Symbol 52 MovieClip Frame 1
_root.stop();
Symbol 52 MovieClip Frame 136
_root.play();
stop();
Symbol 65 Button
on (release) {
_root.HardMode = false;
_root.gotoAndPlay("Load");
}
Symbol 70 Button
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=EtherCannon", "_blank");
}
Symbol 72 Button
on (release) {
getURL ("http://www.PopEthos.net/", "_blank");
}
Symbol 74 Button
on (release) {
_root.HardMode = true;
_root.gotoAndPlay("Load");
}
Symbol 78 MovieClip [GreenBurst] Frame 8
this.removeMovieClip();
Symbol 82 MovieClip [Ether] Frame 1
var PTC;
var Speed = 0;
Symbol 82 MovieClip [Ether] Frame 2
this._x = this._x + ((_root.Cam.Cannon._x - this._x) / 10);
this._y = this._y + ((_root.Cam.Cannon._y - this._y) / 10);
if (this.hitTest(_root.Cam.Cannon)) {
_root.Ether = _root.Ether + 1;
PTC = _root.Cam.Harmless.attachMovie("GreenBurst", _root.Cam.Harmless.getNextHighestDepth(), _root.Cam.Harmless.getNextHighestDepth());
PTC._x = this._x;
PTC._y = this._y;
_root.UpdateTerminal();
this.removeMovieClip();
}
Symbol 82 MovieClip [Ether] Frame 3
gotoAndPlay ("Main");
Symbol 86 MovieClip [Shield] Frame 20
this.removeMovieClip();
Symbol 99 MovieClip [CannonShot] Frame 2
this._parent.Shield = true;
Symbol 99 MovieClip [CannonShot] Frame 42
this._parent.removeMovieClip();
Symbol 99 MovieClip [CannonShot] Frame 86
this._parent.removeMovieClip();
Symbol 99 MovieClip [CannonShot] Frame 130
this._parent.removeMovieClip();
Symbol 99 MovieClip [CannonShot] Frame 174
this._parent.removeMovieClip();
Symbol 99 MovieClip [CannonShot] Frame 218
this._parent.removeMovieClip();
Symbol 99 MovieClip [CannonShot] Frame 259
this._parent.removeMovieClip();
Symbol 116 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 6
stop();
Symbol 116 MovieClip Frame 9
gotoAndPlay(10 + Math.ceil(Math.random() * 30));
Symbol 116 MovieClip Frame 54
gotoAndPlay ("PurpleOrbLoop");
Symbol 116 MovieClip Frame 85
gotoAndPlay ("SpinningRedOrbs");
Symbol 116 MovieClip Frame 89
stop();
Symbol 116 MovieClip Frame 93
stop();
Symbol 117 MovieClip [Baddie] Frame 1
var Type;
var MoveAngle = 0;
var TurnSpeed;
var MoveSpeed;
var Temp;
var Rand;
var Hits;
var Death;
var Shot;
var ShootFreq;
var Damage;
var XTarget = (200 - (Math.random() * 200));
var YTarget = (200 - (Math.random() * 200));
var XMod = (Math.random() * 10);
var YMod = (Math.random() * 10);
var Restart = _root.Restart;
var Score;
Temp = Math.random() * 360;
this._x = _root.Cam.Cannon._x + (Math.cos(Temp * (Math.PI/180)) * 800);
this._y = _root.Cam.Cannon._y + (Math.sin(Temp * (Math.PI/180)) * 800);
_root.MakeDot(this, "Baddie");
Symbol 117 MovieClip [Baddie] Frame 2
XTarget = XTarget + XMod;
YTarget = YTarget + YMod;
if ((XTarget >= 200) || (XTarget <= -200)) {
XMod = XMod * -1;
}
if ((YTarget >= 200) || (YTarget <= -200)) {
YMod = YMod * -1;
}
Temp = Math.atan((this._y - (_root.Cam.Cannon._y + YTarget)) / (this._x - (_root.Cam.Cannon._x + XTarget))) / (Math.PI/180);
if (this._x < (_root.Cam.Cannon._x + XTarget)) {
Temp = Temp - 180;
}
if (Temp < -180) {
Temp = Temp + 360;
}
if (Temp > 180) {
Temp = Temp - 360;
}
Rand = ((Math.random() * TurnSpeed) + TurnSpeed) / 2;
if (Math.abs(Math.abs(Temp) - Math.abs(MoveAngle)) > TurnSpeed) {
if (Temp < 0) {
if ((MoveAngle > Temp) && (MoveAngle < (180 - Math.abs(Temp)))) {
MoveAngle = MoveAngle - ((TurnSpeed / 2) + Rand);
} else {
MoveAngle = MoveAngle + ((TurnSpeed / 2) + Rand);
}
} else if ((MoveAngle < Temp) && (MoveAngle > (-(180 - Math.abs(Temp))))) {
MoveAngle = MoveAngle + ((TurnSpeed / 2) + Rand);
} else {
MoveAngle = MoveAngle - ((TurnSpeed / 2) + Rand);
}
}
if (_root.EndGame == false) {
if (Math.random() < ShootFreq) {
_root.PTC = _root.Cam.BaddieShots.attachMovie("Shot", _root.Cam.BaddieShots.getNextHighestDepth(), _root.Cam.BaddieShots.getNextHighestDepth());
_root.PTC.Graphic.gotoAndPlay(Shot);
_root.PTC.Damage = Damage;
_root.PTC._x = this._x + this.Graphic.Hit._x;
_root.PTC._y = this._y + this.Graphic.Hit._y;
if (_root.Cam.Cannon._x > this._x) {
_root.PTC._rotation = Math.atan((this._y - _root.Cam.Cannon._y) / (this._x - _root.Cam.Cannon._x)) / (Math.PI/180);
} else {
_root.PTC._rotation = (Math.atan((this._y - _root.Cam.Cannon._y) / (this._x - _root.Cam.Cannon._x)) / (Math.PI/180)) + 180;
}
}
if (_root.Cam.CannonShots.hitTest((_root.Cam._x + this._x) + this.Graphic.Hit._x, (_root.Cam._y + this._y) + this.Graphic.Hit._y, true)) {
Hits = Hits - (_root.Cam.Cannon.WeaponMod / 2);
_root.PTC = Particles.attachMovie(Death, Particles.getNextHighestDepth(), Particles.getNextHighestDepth());
_root.PTC._x = ((Math.random() * 20) - (Math.random() * 20)) + this.Graphic.Hit._x;
_root.PTC._y = ((Math.random() * 20) - (Math.random() * 20)) + this.Graphic.Hit._y;
_root.PTC._yscale = (_root.PTC._xscale = 25);
_root.SmallShake = _root.SmallShake + 3;
_root.Pop[Math.ceil(Math.random() * 3)].start(0, 0);
if (Hits <= 0) {
_root.CamShake = _root.CamShake + 2;
_root.BaddieDie(this);
}
}
if (this.Graphic.Hit.hitTest(_root.Cam.Cannon.Hit)) {
_root.Cam.Cannon.ShieldStr = _root.Cam.Cannon.ShieldStr - this.Hits;
_root.ShieldLaunch();
_root.CamShake = _root.CamShake + 5;
_root.BaddieDie(this);
}
if (_root.EndGame == true) {
this.removeMovieClip();
}
}
if (MoveAngle < -180) {
MoveAngle = MoveAngle + 360;
}
if (MoveAngle > 180) {
MoveAngle = MoveAngle - 360;
}
if (_root.EndGame == false) {
this._x = this._x + (Math.cos((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
this._y = this._y + (Math.sin((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
} else {
this._x = this._x - (Math.cos((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
this._y = this._y - (Math.sin((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
}
_root.DistCheck(this);
if (Restart != _root.Restart) {
this.removeMovieClip();
}
Symbol 117 MovieClip [Baddie] Frame 3
gotoAndPlay ("Main");
Symbol 121 MovieClip [YellowBurst] Frame 14
this.removeMovieClip();
Symbol 124 MovieClip [BlueBurst] Frame 14
this.removeMovieClip();
Symbol 155 MovieClip Frame 30
this._parent.removeMovieClip();
Symbol 155 MovieClip Frame 50
this._parent.removeMovieClip();
Symbol 155 MovieClip Frame 89
this._parent.removeMovieClip();
Symbol 155 MovieClip Frame 115
this._parent.removeMovieClip();
Symbol 155 MovieClip Frame 157
this._parent.removeMovieClip();
Symbol 155 MovieClip Frame 186
this._parent.removeMovieClip();
Symbol 155 MovieClip Frame 225
this._parent.removeMovieClip();
Symbol 156 MovieClip [Shot] Frame 1
var Damage;
Symbol 156 MovieClip [Shot] Frame 2
if (this.Graphic.Hit.hitTest(_root.Cam.Cannon.Hit)) {
_root.Cam.Cannon.ShieldStr = _root.Cam.Cannon.ShieldStr - Damage;
_root.ShieldLaunch();
_root.CamShake = _root.CamShake + 5;
_root.Hit.start();
this.removeMovieClip();
}
if (_root.EndGame == true) {
this.removeMovieClip();
}
Symbol 156 MovieClip [Shot] Frame 3
gotoAndPlay ("Main");
Symbol 160 MovieClip [Dot] Frame 1
var Type;
var Host;
var This = this;
if (Type == "Player") {
Graphic.attachMovie("PlayerDot", Graphic.getNextHighestDepth(), Graphic.getNextHighestDepth());
}
if (Type == "Baddie") {
Graphic.attachMovie("BaddieDot", Graphic.getNextHighestDepth(), Graphic.getNextHighestDepth());
}
if (Type == "Boss") {
Graphic.attachMovie("BossDot", Graphic.getNextHighestDepth(), Graphic.getNextHighestDepth());
}
Host.onUnload = function () {
This.removeMovieClip();
};
Symbol 160 MovieClip [Dot] Frame 2
this._x = Host._x / _root.Mag;
this._y = Host._y / _root.Mag;
Symbol 160 MovieClip [Dot] Frame 3
gotoAndPlay ("Main");
Symbol 163 MovieClip [Star] Frame 1
var X = this._x;
var Y = this._y;
Symbol 163 MovieClip [Star] Frame 2
X = (this._xscale * _root.NextX) / 100;
Y = (this._yscale * _root.NextY) / 100;
if ((X > 1) || (X < -1)) {
this._x = this._x - X;
}
if ((Y > 1) || (Y < -1)) {
this._y = this._y - Y;
}
if (this._x < (-Stage.width)) {
this._x = (Stage.width / 2) + (this._width / 2);
}
if (this._x > Stage.width) {
this._x = (-Stage.width) / 2;
}
if (this._y < (-Stage.height)) {
this._y = Stage.height / 2;
}
if (this._y > Stage.height) {
this._y = (-Stage.height) / 2;
}
Symbol 163 MovieClip [Star] Frame 3
gotoAndPlay ("Main");
Symbol 164 MovieClip [FlamingShot] Frame 14
this.removeMovieClip();
Symbol 168 MovieClip [PurpleBurst] Frame 15
this.removeMovieClip();
Symbol 172 MovieClip [AniTinyFlame] Frame 26
this.removeMovieClip();
Symbol 179 MovieClip [Shrapnel] Frame 1
var PTC;
var Stop = false;
onEnterFrame = function () {
if ((Math.random() < 0.25) && (Stop == false)) {
PTC = this.attachMovie("AniTinyFlame", this.getNextHighestDepth(), this.getNextHighestDepth());
PTC._x = this.Shrapnel.Shrapnel._x + this.Shrapnel._x;
PTC._y = this.Shrapnel.Shrapnel._y + this.Shrapnel._y;
if (Math.random() < 0.25) {
_root.Pop[Math.ceil(Math.random() * 3)].start(0, 0);
}
}
};
Symbol 179 MovieClip [Shrapnel] Frame 41
Stop = true;
if (Math.random() < 0.25) {
_root.Shot.start();
}
Symbol 179 MovieClip [Shrapnel] Frame 90
this.removeMovieClip();
Symbol 182 MovieClip [EndBoom] Frame 46
this.removeMovieClip();
Symbol 194 MovieClip [FireBoom] Frame 23
this.removeMovieClip();
Symbol 202 MovieClip [FlameVolcanoCine] Frame 50
this.removeMovieClip();
Symbol 205 MovieClip Frame 16
this._parent.removeMovieClip();
Symbol 211 MovieClip Frame 1
gotoAndStop(Math.ceil(Math.random() * 4));
Symbol 212 MovieClip Frame 1
gotoAndPlay(Math.ceil(Math.random() * 30));
Symbol 212 MovieClip Frame 100
stop();
Symbol 213 MovieClip [ShrapnelMoveMod] Frame 1
this._rotation = Math.random() * 359;
Shrapnel._x = Shrapnel._x + (Math.random() * 275);
NextX = 2 + (Math.random() * 50);
NextS = 5 - (Math.random() * 10);
NextR = Math.random() * 2;
Symbol 213 MovieClip [ShrapnelMoveMod] Frame 2
Shrapnel._x = Shrapnel._x + NextX;
Shrapnel._xscale = Shrapnel._xscale + NextS;
Shrapnel._yscale = Shrapnel._xscale;
Shrapnel._rotation = Shrapnel._rotation + NextR;
if (Shrapnel._xscale <= 0) {
this.removeMovieClip();
}
Symbol 213 MovieClip [ShrapnelMoveMod] Frame 3
gotoAndPlay ("Main");
Symbol 216 MovieClip [Boss] Frame 1
function HitBoss() {
Hits = Hits - _root.Cam.Cannon.WeaponMod;
a = 1;
while (a <= 4) {
_root.PTC = Particles.attachMovie("YellowBurst", Particles.getNextHighestDepth(), Particles.getNextHighestDepth());
_root.PTC._x = (Math.random() * (this._width / 2)) - (Math.random() * (this._width / 2));
_root.PTC._y = (Math.random() * (this._height / 2)) - (Math.random() * (this._height / 2));
a++;
}
_root.PTC = _root.Cam.Harmless.attachMovie("Ether", _root.Cam.Harmless.getNextHighestDepth(), _root.Cam.Harmless.getNextHighestDepth());
_root.PTC._x = this._x;
_root.PTC._y = this._y;
_root.SmallShake = _root.SmallShake + 3;
_root.Shot.start(0, 0);
if ((Hits <= 0) && (_root.EndGame == false)) {
_root.Score = _root.Score + 500;
if (_root.HardMode == true) {
_root.Score = _root.Score + 500;
}
_root.EndGame = true;
}
}
var Type;
var a = 0;
var MoveAngle = 0;
var TurnSpeed = 0.5;
var MoveSpeed = 24;
var Temp;
var Rand;
var Hits = 10000;
var Shot = "BossShot";
var ShootFreq = 0.05;
var Damage = 20;
var XTarget = (200 - (Math.random() * 200));
var YTarget = (200 - (Math.random() * 200));
var XMod = (Math.random() * 5);
var YMod = (Math.random() * 5);
var Restart = _root.Restart;
Temp = Math.random() * 360;
this._x = _root.Cam.Cannon._x + (Math.cos(Temp * (Math.PI/180)) * 800);
this._y = _root.Cam.Cannon._y + (Math.sin(Temp * (Math.PI/180)) * 800);
_root.MakeDot(this, "Boss");
Symbol 216 MovieClip [Boss] Frame 2
Temp = Math.atan((this._y - _root.Cam.Cannon._y) / (this._x - _root.Cam.Cannon._x)) / (Math.PI/180);
if (this._x < _root.Cam.Cannon._x) {
Temp = Temp - 180;
}
if (Temp < -180) {
Temp = Temp + 360;
}
if (Temp > 180) {
Temp = Temp - 360;
}
Rand = ((Math.random() * TurnSpeed) + TurnSpeed) / 2;
if (Math.abs(Math.abs(Temp) - Math.abs(MoveAngle)) > TurnSpeed) {
if (Temp < 0) {
if ((MoveAngle > Temp) && (MoveAngle < (180 - Math.abs(Temp)))) {
MoveAngle = MoveAngle - ((TurnSpeed / 2) + Rand);
} else {
MoveAngle = MoveAngle + ((TurnSpeed / 2) + Rand);
}
} else if ((MoveAngle < Temp) && (MoveAngle > (-(180 - Math.abs(Temp))))) {
MoveAngle = MoveAngle + ((TurnSpeed / 2) + Rand);
} else {
MoveAngle = MoveAngle - ((TurnSpeed / 2) + Rand);
}
}
if (_root.EndGame == false) {
if (Math.random() < ShootFreq) {
_root.PTC = _root.Cam.BaddieShots.attachMovie("Shot", _root.Cam.BaddieShots.getNextHighestDepth(), _root.Cam.BaddieShots.getNextHighestDepth());
_root.PTC.Graphic.gotoAndPlay(Shot);
_root.PTC.Damage = Damage;
_root.PTC._x = this._x;
_root.PTC._y = this._y;
if (_root.Cam.Cannon._x > this._x) {
_root.PTC._rotation = Math.atan((this._y - _root.Cam.Cannon._y) / (this._x - _root.Cam.Cannon._x)) / (Math.PI/180);
} else {
_root.PTC._rotation = (Math.atan((this._y - _root.Cam.Cannon._y) / (this._x - _root.Cam.Cannon._x)) / (Math.PI/180)) + 180;
}
}
if (this.Hit.hitTest(_root.Cam.Cannon.Hit)) {
_root.Cam.Cannon.ShieldStr = _root.Cam.Cannon.ShieldStr - this.Hits;
_root.ShieldLaunch();
_root.CamShake = _root.CamShake + 5;
}
}
if (MoveAngle < -180) {
MoveAngle = MoveAngle + 360;
}
if (MoveAngle > 180) {
MoveAngle = MoveAngle - 360;
}
if (_root.EndGame == false) {
this._x = this._x + (Math.cos((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
this._y = this._y + (Math.sin((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
} else {
this._x = this._x - (Math.cos((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
this._y = this._y - (Math.sin((MoveAngle - 180) * (Math.PI/180)) * MoveSpeed);
}
_root.DistCheck(this);
if (Restart != _root.Restart) {
this.removeMovieClip();
}
Symbol 216 MovieClip [Boss] Frame 3
gotoAndPlay ("Main");
Symbol 220 MovieClip [CannonShotMod] Frame 1
Hit = false;
var Shield = false;
Symbol 220 MovieClip [CannonShotMod] Frame 2
if ((this.hitTest(_root.Cam.Baddies.Boss) && (Hit == false)) && (Shield == false)) {
_root.Cam.Baddies.Boss.HitBoss(this);
Hit = true;
}
Symbol 220 MovieClip [CannonShotMod] Frame 3
gotoAndPlay ("Main");
Symbol 228 MovieClip [Restart] Frame 97
_root.RestartLastLevel2();
Symbol 228 MovieClip [Restart] Frame 100
this.removeMovieClip();
Symbol 229 MovieClip Frame 2
stop();
Symbol 243 MovieClip [Death] Frame 1
this._x = this._x + (50 - (Math.random() * 100));
this._y = this._y + (50 - (Math.random() * 100));
this._rotation = Math.random() * 360;
var R = (2 - (Math.random() * 4));
var X = (2 - (Math.random() * 4));
var Y = (2 - (Math.random() * 4));
var ID;
Graphic.gotoAndStop(ID);
Symbol 243 MovieClip [Death] Frame 2
this._rotation = this._rotation + R;
this._x = this._x + X;
this._y = this._y + Y;
Symbol 243 MovieClip [Death] Frame 3
gotoAndPlay ("Main");
Symbol 244 MovieClip Frame 1
var ShieldMod = 25;
var EngineMod = 1;
var WeaponMod = 2;
var BatteryMod = 30;
var ShieldStr = ShieldMod;
if (_root.HardMode == true) {
ShieldMod = 20;
}
_root.UpdateTerminal();
Symbol 244 MovieClip Frame 2
if (ShieldStr < ShieldMod) {
ShieldStr = ShieldStr + (ShieldMod / 60);
}
if (ShieldStr < 0) {
ShieldStr = 0;
}
if (ShieldStr > ShieldMod) {
ShieldStr = ShieldMod;
}
_root.Interface.ShieldBar._yscale = (ShieldStr * 100) / ShieldMod;
if (ShieldStr <= 0) {
_root.GameOver();
}
Symbol 244 MovieClip Frame 3
gotoAndPlay ("Main");
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 5;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 3;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 2;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 4;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 1;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 6;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 4;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 3;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 2;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 4;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 1;
}
Instance of Symbol 243 MovieClip [Death] in Symbol 244 MovieClip Frame 4
onClipEvent (load) {
ID = 6;
}
Symbol 248 MovieClip Frame 2
Dots._x = -(_root.Cam.Cannon._x / _root.Mag);
Dots._y = -(_root.Cam.Cannon._y / _root.Mag);
Symbol 248 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 259 Button
on (release) {
_root.StoreTerminal.Open = false;
_root.LevelGen();
_root._quality = "MEDIUM";
}
Symbol 265 MovieClip Frame 2
if (Math.random() > 0.01) {
gotoAndPlay ("Start");
}
Symbol 285 Button
on (release) {
_root.UpgradeBtn("Turret");
}
Symbol 286 Button
on (release) {
_root.UpgradeBtn("Shield");
}
Symbol 287 Button
on (release) {
_root.UpgradeBtn("Engine");
}
Symbol 288 MovieClip Frame 1
var Open = false;
Symbol 288 MovieClip Frame 2
if ((Open == true) && (this._x < ((Stage.width / 2) - 1))) {
this._x = this._x + (((Stage.width / 2) - this._x) / 10);
}
if ((Open == false) && (this._x > -500)) {
this._x = this._x + ((this._x - 500) / 10);
}
if (_root.GameStop == true) {
Open = false;
}
if (this._x < -200) {
this._visible = false;
} else {
this._visible = true;
}
Symbol 288 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 291 MovieClip Frame 16
if (_root.GameStop == true) {
stop();
}
Symbol 291 MovieClip Frame 98
stop();
Symbol 293 Button
on (release) {
_root.RestartLastLevel();
}
Symbol 297 Button
on (release) {
_root.gotoAndPlay("MenuLoad");
}
Symbol 299 Button
on (release) {
getURL ("http://www.PopEthos.net/", "_blank");
}
Symbol 303 MovieClip Frame 1
var Open = false;
Instance of Symbol 302 MovieClip in Symbol 303 MovieClip Frame 1
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=EtherCannon", "_blank");
}
Symbol 303 MovieClip Frame 2
if (Open == true) {
this._x = Stage.width / 2;
} else {
this._x = -500;
}
Symbol 303 MovieClip Frame 3
gotoAndPlay ("Main");
Symbol 305 Button
on (release) {
gotoAndStop ("Stop");
_root.LevelGen();
}
Symbol 317 Button
on (release) {
gotoAndStop ("Stop");
_root.LevelGen();
}
Symbol 319 Button
on (release) {
gotoAndPlay ("Start");
}
Symbol 320 MovieClip Frame 1
_root._quality = "HIGH";
Symbol 320 MovieClip Frame 645
_root._quality = "MEDIUM";
stop();
Symbol 351 MovieClip Frame 35
stop();
Symbol 360 Button
on (release) {
stopAllSounds();
_root.Start = true;
_root.gotoAndPlay("MenuLoad");
}
Symbol 363 MovieClip Frame 1
function StarMake() {
a = 1;
while (a <= 50) {
PTC = Stars.attachMovie("StarGfx", Stars.getNextHighestDepth(), Stars.getNextHighestDepth());
PTC._x = (Math.random() * Stage.width) - (Math.random() * Stage.width);
PTC._y = (Math.random() * Stage.height) - (Math.random() * Stage.height);
PTC._yscale = 10 + (Math.random() * 70);
PTC._xscale = PTC._yscale;
a++;
}
}
var PTC;
a = 1;
while (a <= 500) {
PTC = Stars.attachMovie("StarGfx", Stars.getNextHighestDepth(), Stars.getNextHighestDepth());
PTC._x = (Math.random() * Stage.width) - (Math.random() * Stage.width);
PTC._y = (Math.random() * Stage.height) - (Math.random() * Stage.height);
PTC._yscale = 10 + (Math.random() * 70);
PTC._xscale = PTC._yscale;
a++;
}
Symbol 363 MovieClip Frame 2
StarMake();
Symbol 363 MovieClip Frame 3
StarMake();
Symbol 363 MovieClip Frame 4
StarMake();
Symbol 363 MovieClip Frame 5
StarMake();
Symbol 363 MovieClip Frame 6
StarMake();
Symbol 363 MovieClip Frame 7
StarMake();
Symbol 363 MovieClip Frame 8
StarMake();
Symbol 363 MovieClip Frame 11
StarMake();
Symbol 363 MovieClip Frame 12
StarMake();
Symbol 363 MovieClip Frame 13
StarMake();
Symbol 363 MovieClip Frame 16
StarMake();
Symbol 363 MovieClip Frame 17
StarMake();
Symbol 363 MovieClip Frame 18
StarMake();
Symbol 363 MovieClip Frame 19
StarMake();
Symbol 363 MovieClip Frame 20
StarMake();
Symbol 363 MovieClip Frame 23
StarMake();
Symbol 363 MovieClip Frame 25
StarMake();
Symbol 363 MovieClip Frame 26
StarMake();
Symbol 363 MovieClip Frame 27
StarMake();
Symbol 363 MovieClip Frame 202
var Done = false;
var PTC;
var Temp;
onEnterFrame = function () {
_root.Engine.start();
if (Done == false) {
a = 1;
while (a <= 4) {
PTC = PlanetShots.attachMovie("FlameVolcanoCine", PlanetShots.getNextHighestDepth(), PlanetShots.getNextHighestDepth());
PTC._yscale = Math.random() * 100;
if (Math.random() < 0.5) {
PTC._yscale = PTC._yscale * -1;
}
a++;
}
}
};
Symbol 363 MovieClip Frame 322
var Done = false;
var PTC;
var Temp;
onEnterFrame = function () {
if (Done == false) {
_root.Engine.start();
a = 1;
while (a <= 4) {
PTC = PlanetShots.attachMovie("FlameVolcanoCine", PlanetShots.getNextHighestDepth(), PlanetShots.getNextHighestDepth());
PTC._yscale = Math.random() * 100;
if (Math.random() < 0.5) {
PTC._yscale = PTC._yscale * -1;
}
a++;
}
a = 1;
while (a <= 4) {
PTC = PlanetShots.attachMovie("PlanetFireCine", PlanetShots.getNextHighestDepth(), PlanetShots.getNextHighestDepth());
Temp = Math.random() * 2;
PTC._x = 275;
PTC.gotoAndStop(Math.ceil(Math.random() * 50));
PTC.Flame._xscale = PTC.Flame._xscale * Temp;
PTC.Flame._yscale = PTC.Flame._yscale * Temp;
PTC._rotation = Math.random() * 359;
a++;
}
if (Math.random() < 0.25) {
_root.Pop[Math.ceil(Math.random() * 3)].start();
}
if (Math.random() < 0.25) {
_root.Shot.start();
}
}
};
Symbol 363 MovieClip Frame 570
var Done2 = false;
var OrigX = this._x;
var OrigY = this._y;
onEnterFrame = function () {
if (Done2 == false) {
this._x = OrigX + (Math.random() * 5);
this._y = OrigY + (Math.random() * 5);
}
};
Symbol 363 MovieClip Frame 672
a = 1;
while (a <= 500) {
PTC = PlanetShots.attachMovie("ShrapnelMoveMod", PlanetShots.getNextHighestDepth(), PlanetShots.getNextHighestDepth());
Temp = Math.random() * 2;
PTC._x = 275;
a++;
}
Symbol 363 MovieClip Frame 673
Done2 = true;
var Done3 = false;
onEnterFrame = function () {
if (Done3 == false) {
this._x = OrigX + (Math.random() * 10);
this._y = OrigY + (Math.random() * 10);
}
};
Symbol 363 MovieClip Frame 707
Done3 = true;
this._x = OrigX;
this._y = OrigY;
Symbol 363 MovieClip Frame 883
_root._quality = "HIGH";
Symbol 363 MovieClip Frame 1384
FinalScoreText.text = _root.Score;
Instance of Symbol 302 MovieClip in Symbol 363 MovieClip Frame 1384
on (release) {
getURL ("http://www.kongregate.com/?gamereferral=EtherCannon", "_blank");
}
Symbol 363 MovieClip Frame 1405
stop();