Frame 1
function doSomething() {
getURL ("http://www.eggysgames", "_blank");
}
NewgroundsAPI.connectMovie(10501);
MENU.customItems.push(Functioned2);
MENU = new ContextMenu();
MENU.hideBuiltInItems();
Functioned = new ContextMenuItem("Eggys Games", doSomething);
MENU.customItems.push(Functioned);
MENU.builtInItems.quality = true;
_root.menu = MENU;
_root.sound = true;
_root.retrying = false;
_root._quality = "HIGH";
Frame 2
stop();
Frame 3
stop();
Instance of Symbol 159 MovieClip in Frame 3
on (press) {
getURL ("http://www.eggysgames.com", "_blank");
}
Frame 8
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);
}
stop();
_root.hard = false;
_root.normal1._visible = false;
_root.hard1._visible = false;
_root.retrying = false;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("epicbattle", this);
someSound.start(0, 99999);
}
__com_mochibot__("5223925a", this, 10301, true);
Instance of Symbol 170 MovieClip in Frame 8
on (press) {
getURL ("http://www.eggysgames.com");
}
Frame 9
function newlevel() {
if (_root.i > 19) {
_root.i = 0;
}
_root.mononce = false;
_root.endingtimer = 0;
_root.amount = 0;
_root.enemiesleft = 0;
_root.once = false;
_root.buying = false;
_root.buymenu._visible = false;
_root.globallevel = _root.globallevel + 1;
_root.dayholder.gotoAndPlay(1);
_root.dayholder.globalday = "Day " + _root.globallevel;
}
function shooteggs() {
if ((_root.buying == false) and (_root.giantegg._visible == true)) {
_root.i = _root.i + 1;
_root.shootegg.duplicateMovieClip("newshootegg" + _root.i, _root.i, {_x:giantegg._x + giantegg.speed, _y:giantegg._y});
if (_root.i > 19) {
_root.i = 0;
}
}
}
function spawnmissiles() {
_root.scudmissile.duplicateMovieClip("newscudmissile" + _root.e, _root.e, {_x:random(550), _y:-100});
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
}
function spawnrocket() {
_root.scudrocket.duplicateMovieClip("newrocket" + _root.e, _root.e);
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
}
function spawnsoldier() {
_root.soldier.duplicateMovieClip("newsoldier" + _root.e, _root.e);
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
}
function spawnhelicopter() {
_root.helicopter.duplicateMovieClip("newhelicopter" + _root.e, _root.e);
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
}
function spawnjet() {
_root.jet.duplicateMovieClip("newjet" + _root.e, _root.e);
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
}
function spawntank() {
_root.tank.duplicateMovieClip("newtank" + _root.e, _root.e);
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
}
_root.stop();
_root._quality = "LOW";
if (_root.retrying == false) {
_root.wheelupgrade = false;
_root.speedupgrade = false;
_root.jumpupgrade = false;
_root.phaseupgrade = false;
_root.bettereggsupgrade = false;
_root.fireworksupgrade = false;
_root.bombupgrade = false;
_root.armourupgrade = false;
_root.timer = 0;
_root.armour = 0;
_root.i = 0;
_root.k = 200;
_root.e = 21;
_root.maxeggs = 0;
_root.delaytimer = 0;
_root.shooting = false;
_root.globalmoney = 20;
_root.globallevel = 0;
_root.shoottimer = 0;
_root.fireworkeggs = false;
_root.setshoottime = 20;
_root.howmuch = 2;
_root.canshootbomb = false;
}
if (_root.retrying == true) {
_root.globallevel = _root.globallevel - 1;
}
_root.newlevel();
onEnterFrame = function () {
delaytimer++;
if (_root.buying == false) {
timer++;
if (_root.globallevel == 1) {
if (((_root.timer > 20) and (amount < 5)) and (delaytimer > 260)) {
_root.spawnmissiles();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 2) {
if ((_root.timer > 20) and (amount < 2)) {
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 3) {
if ((_root.timer > 14) and (amount < 10)) {
_root.timer = 0;
_root.enemiesleft = _root.enemiesleft + 1;
_root.spawnmissiles();
_root.amount = _root.amount + 1;
_root.once = true;
}
}
if (_root.globallevel == 4) {
if ((_root.timer > 20) and (amount < 5)) {
if (amount < 4) {
_root.spawnmissiles();
_root.amount = _root.amount + 1;
_root.enemiesleft = _root.enemiesleft + 1;
}
if (amount == 4) {
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
}
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 5) {
if ((_root.timer > 25) and (amount < 2)) {
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 6) {
if ((_root.timer > 20) and (amount < 4)) {
_root.spawnjet();
_root.spawnmissiles();
_root.howmuch = 2;
_root.enemiesleft = _root.enemiesleft + howmuch;
_root.amount = _root.amount + howmuch;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 7) {
if ((_root.timer > 20) and (amount < 6)) {
_root.spawnsoldier();
_root.howmuch = 1;
_root.enemiesleft = _root.enemiesleft + howmuch;
_root.amount = _root.amount + howmuch;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 8) {
if ((_root.timer > 15) and (amount < 5)) {
if (amount < 4) {
_root.spawnhelicopter();
_root.amount = _root.amount + 1;
_root.enemiesleft = _root.enemiesleft + 1;
}
if (amount == 4) {
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
}
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 9) {
if ((_root.timer > 25) and (amount < 8)) {
_root.spawnmissiles();
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 2;
_root.amount = _root.amount + 2;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 10) {
if ((_root.timer > 5) and (amount < 12)) {
_root.spawnmissiles();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 11) {
if ((_root.timer > 5) and (amount < 2)) {
_root.spawntank();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 12) {
if ((_root.timer > 10) and (amount < 6)) {
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 13) {
if ((_root.timer > 20) and (amount < 6)) {
_root.spawnmissiles();
_root.spawntank();
_root.enemiesleft = _root.enemiesleft + 2;
_root.amount = _root.amount + 2;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 14) {
if ((_root.timer > 20) and (amount < 10)) {
_root.spawntank();
_root.spawnsoldier();
_root.enemiesleft = _root.enemiesleft + 2;
_root.amount = _root.amount + 2;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 15) {
if ((_root.timer > 20) and (amount < 12)) {
_root.spawntank();
_root.spawnsoldier();
_root.spawnmissiles();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 16) {
if ((_root.timer > 12) and (amount < 12)) {
_root.spawntank();
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 2;
_root.amount = _root.amount + 2;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 17) {
if ((_root.timer > 15) and (amount < 10)) {
if (amount < 9) {
_root.spawnhelicopter();
_root.amount = _root.amount + 1;
_root.enemiesleft = _root.enemiesleft + 1;
}
if (amount == 9) {
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
}
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 18) {
if ((_root.timer > 45) and (amount < 10)) {
_root.spawntank();
_root.spawnsoldier();
_root.spawnjet();
_root.spawnmissiles();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 5;
_root.amount = _root.amount + 5;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 19) {
if ((_root.timer > 8) and (amount < 8)) {
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 1;
_root.amount = _root.amount + 1;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 20) {
if ((_root.timer > 60) and (amount < 10)) {
_root.spawnjet();
_root.spawntank();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 21) {
if ((_root.timer > 80) and (amount < 15)) {
_root.spawnmissiles();
_root.spawnsoldier();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 22) {
if ((_root.timer > 100) and (amount < 20)) {
_root.spawnmissiles();
_root.spawnhelicopter();
_root.spawnjet();
_root.spawntank();
_root.enemiesleft = _root.enemiesleft + 4;
_root.amount = _root.amount + 4;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 23) {
if ((_root.timer > 40) and (amount < 25)) {
_root.spawnmissiles();
_root.spawnsoldier();
_root.enemiesleft = _root.enemiesleft + 2;
_root.amount = _root.amount + 2;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 24) {
if ((_root.timer > 60) and (amount < 15)) {
_root.spawnjet();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 2;
_root.amount = _root.amount + 2;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 25) {
if ((_root.timer > 100) and (amount < 15)) {
_root.spawnjet();
_root.spawnsoldier();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 26) {
if ((_root.timer > 75) and (amount < 20)) {
_root.spawnmissiles();
_root.spawntank();
_root.spawnjet();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 27) {
if ((_root.timer > 125) and (amount < 35)) {
_root.spawnmissiles();
_root.spawnsoldier();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 28) {
if ((_root.timer > 80) and (amount < 25)) {
_root.spawntank();
_root.spawnsoldier();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 29) {
if ((_root.timer > 80) and (amount < 25)) {
_root.spawnjet();
_root.spawnsoldier();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 3;
_root.amount = _root.amount + 3;
_root.once = true;
_root.timer = 0;
}
}
if (_root.globallevel == 30) {
if ((_root.timer > 70) and (amount < 50)) {
_root.spawnmissiles();
_root.spawnsoldier();
_root.spawntank();
_root.spawnhelicopter();
_root.enemiesleft = _root.enemiesleft + 4;
_root.amount = _root.amount + 4;
_root.once = true;
_root.timer = 0;
}
}
}
if (_root.buying == true) {
if (_root.mononce == false) {
_root.bonusmoney = 2 * _root.globallevel;
_root.globalmoney = _root.globalmoney + _root.bonusmoney;
_root.mononce = true;
}
_root.buymenu._visible = true;
_root._quality = "HIGH";
}
if (((_root.enemiesleft <= 0) and (once == true)) and (_root.giantegg._currentframe == 1)) {
_root.endingtimer++;
}
if (_root.endingtimer > 30) {
if ((_root.globallevel == 30) and (_root._currentframe == 9)) {
_root.gotoAndStop("outroframe");
}
_root.buying = true;
}
if (((((giantegg.gianteggcannon._currentframe == 1) and (shooting == true)) and (_root.buying == false)) and (shoottimer == 0)) and (_root.giantegg._visible == true)) {
shooteggs();
shoottimer = _root.setshoottime;
giantegg.gianteggcannon.gotoAndPlay(2);
}
if (shoottimer != 0) {
shoottimer--;
}
};
onMouseDown = function () {
speed = 0;
speed2 = 0;
_root.shooting = true;
};
onMouseUp = function () {
_root.shooting = false;
};
Instance of Symbol 268 MovieClip "scudmissile" in Frame 9
onClipEvent (load) {
if (_name != "scudmissile") {
if (_root.hard == true) {
damage = 20 - _root.armour;
} else {
damage = 12 - _root.armour;
}
gothit = false;
speed = 5;
X = _root.giantegg._x - _x;
Y = _root.giantegg._y - _y;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
money.visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "scudmissile") {
if ((_currentframe == 3) and (gothit == true)) {
_rotation = 0;
money.visible = true;
gothit = false;
money.moneys = "+$5";
_root.globalmoney = _root.globalmoney + 5;
}
if (_currentframe == 1) {
if (_root.giantegg.insideegg.hitTest(_x, _y, true) and (_root.giantegg._alpha == 100)) {
money.visible = false;
_root.globalhealth.health = _root.globalhealth.health - damage;
gotoAndStop (2);
}
if (_y > 580) {
money.visible = false;
gotoAndStop (2);
}
if (_currentframe == 1) {
_x = (_x - (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y - (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
}
}
Instance of Symbol 325 MovieClip "shootegg" in Frame 9
onClipEvent (load) {
speed = 25;
X = _root._xmouse - _x;
Y = _root._ymouse - _y;
timer = 0;
_alpha = 0;
}
onClipEvent (enterFrame) {
if (_name != "shootegg") {
if (_root.buying == true) {
removeMovieClip(this);
}
timer++;
if (timer > 3) {
i = 21;
while (i < 50) {
if ((_root["newscudmissile" + i].hitTest(this) and (_root["newscudmissile" + i]._currentframe == 1)) or ((_root["newscudmissile" + i].hitTest(hit) and (_root["newscudmissile" + i]._currentframe == 1)) and (_currentframe == 3))) {
tempname._rotation = 0;
tempname = _root["newscudmissile" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
if ((_root["newrocket" + i].hitTest(this) and (_root["newrocket" + i]._currentframe == 1)) or ((_root["newrocket" + i].hitTest(hit) and (_root["newrocket" + i]._currentframe == 1)) and (_currentframe == 3))) {
tempname._rotation = 0;
tempname = _root["newrocket" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
if ((_root["newbomb" + i].hitTest(this) and (_root["newbomb" + i]._currentframe == 1)) or ((_root["newbomb" + i].hitTest(hit) and (_root["newbomb" + i]._currentframe == 1)) and (_currentframe == 3))) {
tempname = _root["newbomb" + i];
tempname._rotation = 0;
tempname.gothit = true;
tempname.gotoAndStop(3);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
if ((_root["newsoldier" + i].hitTest(this) and (_root["newsoldier" + i]._currentframe != 3)) or ((_root["newsoldier" + i].hitTest(hit) and (_root["newsoldier" + i]._currentframe != 3)) and (_currentframe == 3))) {
tempname = _root["newsoldier" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
if ((_root["newhelicopter" + i].hitTest(this) and (_root["newhelicopter" + i]._currentframe != 2)) or ((_root["newhelicopter" + i].hitTest(hit) and (_root["newhelicopter" + i]._currentframe != 2)) and (_currentframe == 3))) {
tempname = _root["newhelicopter" + i];
tempname.gothit = true;
tempname.gotoAndStop(2);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
if (((_root["newjet" + i].hitTest(this) and (_root["newjet" + i]._currentframe != 2)) and (_currentframe == 1)) or ((_root["newjet" + i].hitTest(hit) and (_root["newjet" + i]._currentframe != 2)) and (_currentframe == 3))) {
tempname = _root["newjet" + i];
tempname.gothit = true;
tempname.gotoAndStop(2);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
if ((_root["newtank" + i].hitTest(this) and (_root["newtank" + i]._currentframe != 2)) or ((_root["newtank" + i].hitTest(hit) and (_root["newtank" + i]._currentframe != 2)) and (_currentframe == 3))) {
tempname = _root["newtank" + i];
tempname.gothit = true;
tempname.gotoAndStop(2);
if (_root.fireworkeggs == true) {
gotoAndStop (3);
} else {
this.removeMovieClip();
}
}
i++;
}
speed = 25;
_alpha = 100;
}
if (_currentframe == 1) {
if (_y > 560) {
_rotation = 0;
gotoAndStop (2);
}
angle = Math.atan2(Y, X);
_x = (_x + (Math.cos(angle) * speed));
_y = (_y + (Math.sin(angle) * speed));
_rotation = (_rotation + 50);
}
if (((_x < -10) or (_x > 710)) or (_y < -10)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 337 MovieClip "soldier" in Frame 9
onClipEvent (load) {
if (_name != "soldier") {
scale = _xscale;
bob = random(50);
timer = 0;
turd = true;
gothit = false;
startside = random(2) + 1;
if (startside == 1) {
_x = 750;
_y = 577;
}
if (startside == 2) {
_x = -50;
_y = 577;
_xscale = (-scale);
}
once = false;
}
}
onClipEvent (enterFrame) {
if (_name != "soldier") {
timer++;
if ((_currentframe == 2) and (timer > 40)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bulletsound", this);
someSound.start(0, 1);
}
_root.enemybullet.duplicateMovieClip("newenemybullet" + _root.k, _root.k, {_x:_x, _y:_y - 16});
_root.k = _root.k + 1;
if (_root.k > 300) {
_root.k = 200;
}
timer = 0;
}
if ((startside == 1) and (_currentframe != 3)) {
if ((((((_x - _root.giantegg._x) < (200 + bob)) and (_currentframe != 3)) and (once == false)) and (_x > 5)) and (_x < 695)) {
gotoAndStop (2);
once = true;
} else if (once == false) {
_x = (_x - 4);
}
}
if ((startside == 2) and (_currentframe != 3)) {
if ((((((_x - _root.giantegg._x) > (-200 - bob)) and (_currentframe != 3)) and (once == false)) and (_x > 5)) and (_x < 695)) {
gotoAndStop (2);
once = true;
} else if (once == false) {
_x = (_x + 4);
}
}
if (_root.giantegg.insideegg.hitTest(this) and (_currentframe != 3)) {
gothit = true;
gotoAndStop (3);
}
if ((_currentframe == 3) and (gothit == true)) {
gothit = false;
money.moneys = "+$2";
_root.globalmoney = _root.globalmoney + 2;
_rotation = 0;
}
}
}
Instance of Symbol 339 MovieClip "enemybullet" in Frame 9
onClipEvent (load) {
if (_name != "enemybullet") {
if (_root.hard == true) {
damage = 15 - _root.armour;
} else {
damage = 8 - _root.armour;
}
speed = 5;
_alpha = 0;
timer = 0;
X = _root.giantegg._x - _x;
Y = _root.giantegg._y - _y;
angle = Math.atan2(Y, X);
_rotation = ((angle * 180) / Math.PI);
}
}
onClipEvent (enterFrame) {
if (_name != "enemybullet") {
if (_root.buying == true) {
removeMovieClip(this);
}
timer++;
if (timer > 2) {
_alpha = 100;
}
if (_currentframe == 1) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * speed));
}
if ((_root.giantegg.insideegg.hitTest(_x, _y, true) and (_currentframe == 1)) and (_root.giantegg._alpha == 100)) {
_root.globalhealth.health = _root.globalhealth.health - damage;
gotoAndStop (2);
}
if (((((_x < -20) or (_x > 720)) or (_y < -20)) or (_y > 600)) or (_root.buying == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 349 MovieClip "helicopter" in Frame 9
onClipEvent (load) {
if (_name != "helicopter") {
bob = false;
gothit = true;
shootonce = false;
scale = _xscale;
startside = random(2) + 1;
if (startside == 1) {
_x = 750;
_y = 500;
}
if (startside == 2) {
_x = -150;
_y = 500;
_xscale = (-scale);
}
}
}
onClipEvent (enterFrame) {
if ((startside == 1) and (_currentframe != 2)) {
_x = (_x - 3);
if (_x < 600) {
if (shootonce == false) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("rocketlaunch", this);
someSound.start(0, 1);
}
_root.enemiesleft = _root.enemiesleft + 1;
_root.rocket.duplicateMovieClip("newrocket" + _root.e, _root.e);
tempname = _root["newrocket" + _root.e];
tempname._x = _x;
tempname._y = _y - 20;
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
shootonce = true;
}
_y = (_y - 5);
}
}
if ((startside == 2) and (_currentframe != 2)) {
_x = (_x + 3);
if (_x > 100) {
if (shootonce == false) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("rocketlaunch", this);
someSound.start(0, 1);
}
_root.enemiesleft = _root.enemiesleft + 1;
_root.rocket.duplicateMovieClip("newrocket" + _root.e, _root.e);
tempname = _root["newrocket" + _root.e];
tempname._x = _x;
tempname._y = _y - 20;
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
shootonce = true;
}
_y = (_y - 5);
}
}
if (_y < -100) {
_root.enemiesleft = _root.enemiesleft - 1;
removeMovieClip(this);
}
if ((_currentframe == 2) and (gothit == true)) {
gothit = false;
money.moneys = "+$7";
_root.globalmoney = _root.globalmoney + 7;
}
}
Instance of Symbol 351 MovieClip "rocket" in Frame 9
onClipEvent (load) {
if (_name != "rocket") {
if (_root.hard == true) {
damage = 20 - _root.armour;
} else {
damage = 12 - _root.armour;
}
gothit = false;
speed = 5;
X = _root.giantegg._x - _x;
Y = _root.giantegg._y - _y;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
money.visible = false;
}
}
onClipEvent (enterFrame) {
if (_name != "rocket") {
if ((_currentframe == 2) and (gothit == true)) {
money.visible = true;
gothit = false;
money.moneys = "+$5";
_root.globalmoney = _root.globalmoney + 5;
_rotation = 0;
}
if ((_currentframe == 3) and (gothit == true)) {
_rotation = 0;
money.visible = true;
gothit = false;
money.moneys = "+$5";
_root.globalmoney = _root.globalmoney + 5;
}
if (_currentframe == 1) {
if (_root.giantegg.insideegg.hitTest(_x, _y, true) and (_root.giantegg._alpha == 100)) {
money.visible = false;
_root.globalhealth.health = _root.globalhealth.health - damage;
gotoAndStop (2);
}
if (_y > 580) {
money.visible = false;
gotoAndStop (2);
}
if (_currentframe == 1) {
_x = (_x - (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y - (Math.sin((_rotation * Math.PI) / 180) * speed));
}
}
}
}
Instance of Symbol 355 MovieClip "jet" in Frame 9
onClipEvent (load) {
if (_name != "jet") {
bob = false;
gothit = true;
shootonce = false;
scale = _xscale;
startside = random(2) + 1;
if (startside == 1) {
_x = 750;
_y = (200 + random(50));
}
if (startside == 2) {
_x = -150;
_y = (200 - random(50));
_xscale = (-scale);
}
}
}
onClipEvent (enterFrame) {
if (_name != "jet") {
if ((startside == 1) and (_currentframe != 2)) {
_x = (_x - 7);
if (_x < -100) {
_root.enemiesleft = _root.enemiesleft - 1;
removeMovieClip(this);
}
}
if ((startside == 2) and (_currentframe != 2)) {
_x = (_x + 7);
if (_x > 800) {
_root.enemiesleft = _root.enemiesleft - 1;
removeMovieClip(this);
}
}
if ((_currentframe == 2) and (gothit == true)) {
gothit = false;
money.moneys = "+$8";
_root.globalmoney = _root.globalmoney + 8;
}
if (((_x - _root.giantegg._x) <= 250) and ((_x - _root.giantegg._x) >= -250)) {
if (shootonce == false) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bombwhistle", this);
someSound.start(0, 1);
}
_root.bomb.duplicateMovieClip("newbomb" + _root.e, _root.e);
tempname = _root["newbomb" + _root.e];
if (startside == 2) {
tempname._xscale = -scale;
}
tempname._x = _x;
tempname._y = _y + 10;
_root.e = _root.e + 1;
if (_root.e > 49) {
_root.e = 21;
}
shootonce = true;
}
}
}
}
Instance of Symbol 357 MovieClip "bomb" in Frame 9
onClipEvent (load) {
if (_name != "bomb") {
if (_root.hard == true) {
damage = 20 - _root.armour;
} else {
damage = 12 - _root.armour;
}
gothit = false;
speed = 2;
money.visible = false;
scale = _xscale;
}
}
onClipEvent (enterFrame) {
if (_name != "bomb") {
if ((_currentframe == 2) and (gothit == true)) {
money.visible = true;
gothit = false;
money.moneys = "+$5";
_root.globalmoney = _root.globalmoney + 5;
_rotation = 0;
}
if ((_currentframe == 3) and (gothit == true)) {
money.visible = true;
gothit = false;
money.moneys = "+$7";
_root.globalmoney = _root.globalmoney + 7;
_rotation = 0;
}
if (_currentframe == 1) {
if (_root.giantegg.insideegg.hitTest(_x, _y, true) and (_root.giantegg._alpha == 100)) {
money.visible = false;
_root.globalhealth.health = _root.globalhealth.health - damage;
gotoAndStop (2);
}
if (_y > 550) {
money.visible = false;
_rotation = 0;
gotoAndStop (2);
}
if (_currentframe == 1) {
_y = (_y + speed);
speed = speed + 0.4;
if (scale == -100) {
startside = 1;
_rotation = (_rotation + 0.8);
_x = (_x + 6);
} else {
startside = 2;
_rotation = (_rotation - 0.8);
_x = (_x - 6);
}
}
}
}
}
Instance of Symbol 368 MovieClip "explosiveegg" in Frame 9
onClipEvent (load) {
if (_name != "explosiveegg") {
speed = 25;
timer = 0;
gravity = -20;
_x = _root.giantegg._x;
_y = (_root.giantegg._y - 100);
}
}
onClipEvent (enterFrame) {
if (_name != "explosiveegg") {
if (_root.buying == true) {
removeMovieClip(this);
}
if ((gravity >= 5) and (_currentframe == 1)) {
gotoAndStop (2);
}
if (_currentframe == 1) {
gravity++;
_y = (_y + gravity);
timer++;
}
if (timer > 3) {
i = 21;
while (i < 50) {
if (_root["newscudmissile" + i].hitTest(bang.hit) and (_root["newscudmissile" + i]._currentframe == 1)) {
tempname = _root["newscudmissile" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
}
if (_root["newrocket" + i].hitTest(bang.hit) and (_root["newrocket" + i]._currentframe == 1)) {
tempname = _root["newrocket" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
}
if (_root["newbomb" + i].hitTest(bang.hit) and (_root["newbomb" + i]._currentframe == 1)) {
tempname = _root["newbomb" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
}
if (_root["newsoldier" + i].hitTest(bang.hit) and (_root["newsoldier" + i]._currentframe != 3)) {
tempname = _root["newsoldier" + i];
tempname.gothit = true;
tempname.gotoAndStop(3);
}
if (_root["newhelicopter" + i].hitTest(bang.hit) and (_root["newhelicopter" + i]._currentframe != 2)) {
tempname = _root["newhelicopter" + i];
tempname.gothit = true;
tempname.gotoAndStop(2);
}
if (_root["newjet" + i].hitTest(bang.hit) and (_root["newjet" + i]._currentframe != 2)) {
tempname = _root["newjet" + i];
tempname.gothit = true;
tempname.gotoAndStop(2);
}
if (_root["newtank" + i].hitTest(bang.hit) and (_root["newtank" + i]._currentframe != 2)) {
tempname = _root["newtank" + i];
tempname.gothit = true;
tempname.gotoAndStop(2);
}
i++;
}
}
}
}
Instance of Symbol 393 MovieClip "giantegg" in Frame 9
onClipEvent (load) {
speed = 1;
gravity = 0;
bombtimer = 0;
if (_root.retrying == false) {
_visible = false;
}
}
onClipEvent (enterFrame) {
if (_currentframe == 1) {
if (bombtimer != 0) {
bombtimer--;
}
if (_root.buying == true) {
eggfire.bar.gotoAndStop(400);
}
if ((((Key.isDown(32) and (bombtimer == 0)) and (_root.buying == false)) and (_root.canshootbomb == true)) and (eggfire.bar._currentframe == 400)) {
_root.i = _root.i + 1;
eggfire.bar.gotoAndPlay(1);
_root.explosiveegg.duplicateMovieClip("newshootegg" + _root.i, _root.i);
bombtimer = 200;
if (_root.i > 19) {
_root.i = 0;
}
}
while (_y > 505) {
_y = (_y-1);
gravity = 0;
}
gravity++;
_y = (_y + gravity);
if (gravity > 10) {
gravity = 10;
}
if ((_root.giantegg.booster._visible == true) and (_root.buying == false)) {
if (gravity > 0) {
booster.gotoAndStop(1);
}
if (Key.isDown(87) and (_y > 505)) {
_y = (_y - 4);
someSound = new Sound();
someSound.attachSound("jumpsound", this);
someSound.start(0, 1);
booster.gotoAndStop(2);
gravity = -15;
}
}
if (_root.buymenu.up2._currentframe == 2) {
burnl._visible = true;
burnr._visible = true;
speed = 5;
}
if (_root.buymenu.up1._currentframe == 2) {
w1._visible = true;
w2._visible = true;
if (Key.isDown(68) and (_root.buying == false)) {
_x = (_x + speed);
w1._rotation = w1._rotation + 5;
w2._rotation = w2._rotation + 5;
burnl.gotoAndStop(2);
} else {
burnl.gotoAndStop(1);
}
if (Key.isDown(65) and (_root.buying == false)) {
w1._rotation = w1._rotation - 5;
w2._rotation = w2._rotation - 5;
_x = (_x - speed);
burnr.gotoAndStop(2);
} else {
burnr.gotoAndStop(1);
}
}
if (_x < 50) {
_x = 50;
}
if (_x > 650) {
_x = 650;
}
}
}
Instance of Symbol 399 MovieClip in Frame 9
onClipEvent (enterFrame) {
if (_root.retrying == true) {
stop();
}
}
Instance of Symbol 410 MovieClip "tank" in Frame 9
onClipEvent (load) {
if (_name != "tank") {
scale = _xscale;
bob = random(50);
timer = 0;
turd = true;
gothit = false;
startside = random(2) + 1;
if (startside == 1) {
_x = 750;
_y = 577;
}
if (startside == 2) {
_x = -50;
_y = 577;
_xscale = (-scale);
}
once = false;
}
}
onClipEvent (enterFrame) {
if (_name != "tank") {
timer++;
if (((_currentframe == 1) and (timer > 40)) and (once == true)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("tankshoot", this);
someSound.start(0, 1);
}
_root.enemyshell.duplicateMovieClip("newenemyshell" + _root.k, _root.k, {_x:_x, _y:_y - 32});
_root.k = _root.k + 1;
if (_root.k > 300) {
_root.k = 200;
}
timer = 0;
}
if ((startside == 1) and (_currentframe != 3)) {
if ((((((_x - _root.giantegg._x) < (200 + bob)) and (_currentframe != 3)) and (once == false)) and (_x > 5)) and (_x < 695)) {
once = true;
w1.stop();
w2.stop();
w3.stop();
w4.stop();
w5.stop();
w6.stop();
} else if ((once == false) and (_currentframe == 1)) {
_x = (_x - 4);
}
}
if ((startside == 2) and (_currentframe != 3)) {
if ((((((_x - _root.giantegg._x) > (-200 - bob)) and (_currentframe != 3)) and (once == false)) and (_x > 5)) and (_x < 695)) {
once = true;
w1.stop();
w2.stop();
w3.stop();
w4.stop();
w5.stop();
w6.stop();
} else if ((once == false) and (_currentframe == 1)) {
_x = (_x + 4);
}
}
if ((_currentframe == 2) and (gothit == true)) {
gothit = false;
money.moneys = "+$9";
_root.globalmoney = _root.globalmoney + 2;
_rotation = 0;
}
}
}
Instance of Symbol 412 MovieClip "enemyshell" in Frame 9
onClipEvent (load) {
if (_name != "enemyshell") {
if (_root.hard == true) {
damage = 16 - _root.armour;
} else {
damage = 10 - _root.armour;
}
speed = 9;
_alpha = 0;
timer = 0;
X = _root.giantegg._x - _x;
Y = _root.giantegg._y - _y;
angle = Math.atan2(Y, X);
_rotation = ((angle * 180) / Math.PI);
}
}
onClipEvent (enterFrame) {
if (_name != "enemyshell") {
if (_root.buying == true) {
removeMovieClip(this);
}
timer++;
if (timer > 4) {
_alpha = 100;
}
if (_currentframe == 1) {
_x = (_x + (Math.cos((_rotation * Math.PI) / 180) * speed));
_y = (_y + (Math.sin((_rotation * Math.PI) / 180) * speed));
}
if ((_root.giantegg.insideegg.hitTest(_x, _y, true) and (_currentframe == 1)) and (_root.giantegg._alpha == 100)) {
_root.globalhealth.health = _root.globalhealth.health - damage;
gotoAndStop (2);
}
if (((((_x < -20) or (_x > 720)) or (_y < -20)) or (_y > 600)) or (_root.buying == true)) {
removeMovieClip(this);
}
}
}
Instance of Symbol 417 MovieClip "globalhealth" in Frame 9
onClipEvent (load) {
health = 100;
maxhealth = 100;
}
onClipEvent (enterFrame) {
percent = (health / maxhealth) * 100;
_xscale = percent;
if (health <= 0) {
_root.giantegg.gotoAndStop(2);
health = 0;
}
if (health > 100) {
health = 100;
}
}
Instance of Symbol 434 MovieClip in Frame 9
onClipEvent (load) {
beenpressed = false;
bob = false;
fred = false;
_root.sound = true;
_root.music = true;
}
onClipEvent (enterFrame) {
if (!Key.isDown(81)) {
john = false;
}
if (Key.isDown(81)) {
if ((_root._quality == "HIGH") and (john == false)) {
_root._quality = "LOW";
john = true;
} else if ((_root._quality == "LOW") and (john == false)) {
_root._quality = "HIGH";
john = true;
}
}
if (!Key.isDown(77)) {
bob = false;
}
if (Key.isDown(77)) {
if ((_root.sound == true) and (bob == false)) {
_root.sound = false;
stopAllSounds();
bob = true;
} else if ((_root.sound == false) and (bob == false)) {
_root.sound = true;
bob = true;
someSound = new Sound();
someSound.attachSound("epicbattle", this);
someSound.start(0, 1E16);
}
}
if (!Key.isDown(77)) {
fred = false;
}
}
Instance of Symbol 505 MovieClip "buymenu" in Frame 9
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 509 MovieClip "mytext" in Frame 9
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
_x = _root._xmouse;
_y = _root._ymouse;
}
Frame 10
stop();
endlevel = function () {
xx = 0;
while (xx < 500) {
removeMovieClip(_root["newjet" + xx]);
removeMovieClip(_root["newrocket" + xx]);
removeMovieClip(_root["newsoldier" + xx]);
removeMovieClip(_root["newscudmissile" + xx]);
removeMovieClip(_root["newhelicopter" + xx]);
removeMovieClip(_root["newtank" + xx]);
removeMovieClip(_root["newbomb" + xx]);
removeMovieClip(_root["newenemybullet" + xx]);
removeMovieClip(_root["newshootegg" + xx]);
removeMovieClip(_root["newenemybullet" + xx]);
removeMovieClip(_root["newenemyshell" + xx]);
xx++;
}
};
endlevel();
Frame 11
stop();
stopAllSounds();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("happywin", this);
someSound.start(0, 99999);
}
Symbol 24 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
_root.gotoAndPlay(3);
}
Symbol 24 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 38 Button
on (release) {
NewgroundsAPI.loadNewgrounds();
}
Symbol 40 MovieClip Frame 1
function startAd(ngad_url) {
trace("opening " + ngad_url);
System.security.allowDomain("70.87.128.99");
System.security.allowInsecureDomain("70.87.128.99");
System.security.allowDomain("ads.shizmoo.com");
System.security.allowInsecureDomain("ads.shizmoo.com");
System.security.allowDomain("www.cpmstar.com");
System.security.allowInsecureDomain("www.cpmstar.com");
System.security.allowDomain("server.cpmstar.com");
System.security.allowInsecureDomain("server.cpmstar.com");
var ngads_redirect = new XML();
ngads_redirect.ignoreWhite = true;
ngads_redirect.onLoad = function (success) {
trace("[NEWGROUNDS FLASH ADS] :: You may get a 'Security Sandbox Violation' ... this is normal, do not freak out!");
if (success) {
ng_ad.loadMovie(ngads_redirect.toString(), "GET");
}
};
ngads_redirect.load(ngad_url);
}
if (NewgroundsAPI.getAdURL()) {
startAd(NewgroundsAPI.getAdURL());
}
NewgroundsAPI.onAdsApproved = function (ad_url) {
startAd(ad_url);
};
stop();
Symbol 596 MovieClip [__Packages.NewgroundsAPI] Frame 0
class NewgroundsAPI
{
static var tracker_id, host, version, debug, error_format, header_format, normal_format, link_format;
function NewgroundsAPI () {
}
static function connectMovie(id) {
if (!id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.connectMovie(id:Number)");
} else if (!tracker_id) {
SendMessage("Connecting to API gateway...");
tracker_id = id;
host = _url.split("/")[2].toLowerCase();
if (host.length < 1) {
host = "localhost";
}
var _local2 = new Object();
SendEvent(MOVIE_VIEWS);
}
}
static function setMovieVersion(movie_version) {
if (!movie_version) {
SendError("Missing required 'version' in NewgroundsAPI.setMovieVersion(version:String)");
} else {
version = movie_version;
}
}
static function debugMode() {
debug = true;
}
static function addCustomEvent(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else if (!stat_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.AddCustomEvent(id:Number, event_name:String)");
} else {
custom_events[stat_name] = CUSTOM_STATS + stat_id;
SendMessage("Created custom event: " + stat_name);
}
}
static function addCustomLink(stat_id, stat_name) {
if (!stat_id) {
SendError("Missing required 'id' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else if (!stat_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.AddCustomLink(id:Number, link_name:String)");
} else {
custom_links[stat_name] = CUSTOM_STATS + stat_id;
SendMessage((("Created custom link " + stat_id) + ": ") + stat_name);
}
}
static function loadMySite() {
SendLink(AUTHOR_SITE);
}
static function loadNewgrounds(special) {
if (special) {
var _local1 = {page:special};
}
SendLink(NEWGROUNDS, _local1);
}
static function logCustomEvent(event_name) {
if (!event_name) {
SendError("Missing required 'event_name' parameter in NewgroundsAPI.logCustomEvent(event_name:String)");
} else if (!custom_events[event_name]) {
SendError("Attempted to log undefined custom event: " + event_name);
} else {
SendEvent(custom_events[event_name]);
}
}
static function loadCustomLink(link_name) {
if (!link_name) {
SendError("Missing required 'link_name' parameter in NewgroundsAPI.loadCustomLink(link_name:String)");
} else if (!custom_links[link_name]) {
SendError("Attempted to open undefined custom link: " + link_name);
} else {
SendLink(custom_links[link_name]);
}
}
static function getAdURL() {
return(movie_options.ad_url);
}
static function getMovieURL() {
if (movie_options.movie_url) {
return(movie_options.movie_url);
}
return("Newgrounds.com");
}
static function getNewVersionURL() {
return((((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + NEW_VERSION);
}
static function SendEvent(id) {
SendStat(id, false);
}
static function SendLink(id, extra) {
SendStat(id, true, extra);
}
static function ReadGatewayData(params) {
for (var _local2 in params) {
params[_local2] = unescape(params[_local2]);
movie_options[_local2] = params[_local2];
}
if (params.settings_loaded) {
SendMessage("You have successfully connected to the Newgrounds API gateway!");
SendMessage(("Movie Identified as '" + movie_options.movie_name) + "'");
if (movie_options.message) {
SendMessage(movie_options.message);
}
if (movie_options.ad_url) {
SendMessage("Your movie has been approved to run Flash Ads");
onAdsApproved(movie_options.ad_url);
}
if (movie_options.movie_version and (movie_options.movie_version.toString() != version.toString())) {
SendMessage("WARNING: The movie version configured in your API settings does not match this movie's version!");
onNewVersionAvailable(movie_options.movie_version, getMovieURL(), getNewVersionURL());
}
if (movie_options.deny_host) {
SendMessage("You have blocked 'localHost' in your API settings.");
SendMessage("If you wish to test your movie you will need to remove this block.");
onDenyHost(host, getMovieURL(), getNewVersionURL());
}
if (movie_options.request_portal_url == 1) {
var _local4 = (((GATEWAY_URL + "?&id=") + tracker_id) + "&portal_url=") + escape(_url);
var _local3 = new XML();
_local3.ignoreWhite = true;
_local3.load(_local4);
}
} else if (!movie_options.settings_loaded) {
SendError("Could not establish connection to the API gateway.");
}
}
static function SendStat(stat_id, open_in_browser, extra) {
if (!tracker_id) {
SendError("API calls cannot be made without a valid movie id.");
SendError("Did you remember to add the \"NewgroundsAPI.connectMovie()\" code?");
} else {
var _local7 = (((((GATEWAY_URL + "?&id=") + tracker_id) + "&host=") + escape(host)) + "&stat=") + stat_id;
for (var _local9 in extra) {
_local7 = _local7 + ((("&" + escape(_local9)) + "=") + escape(extra[_local9]));
}
trace(_local7);
if (debug) {
_local7 = _local7 + "&debug=1";
}
if (open_in_browser) {
getURL (_local7, "_blank");
} else {
var _local10 = new XML();
_local10.ignoreWhite = true;
_local10.onLoad = function (success) {
var _local6 = new Object();
var _local3 = 0;
while (_local3 < this.firstChild.childNodes.length) {
var _local4 = this.firstChild.childNodes[_local3];
var _local5 = _local4.nodeName;
var _local2 = _local4.attributes.value;
if (_local2 == Number(_local2)) {
_local2 = Number(_local2);
}
_local6[_local5] = _local2;
_local3++;
}
NewgroundsAPI.ReadGatewayData(_local6);
};
_local10.load(_local7);
}
}
}
static function SendError(msg) {
trace("[NEWGROUNDS API ERROR] :: " + msg);
}
static function SendMessage(msg) {
trace("[NEWGROUNDS API] :: " + msg);
}
static function InitTextFormats() {
if (!error_format) {
error_format = new TextFormat();
error_format.font = "Arial Black";
error_format.size = 48;
error_format.color = 16711680 /* 0xFF0000 */;
}
if (!header_format) {
header_format = new TextFormat();
header_format.font = "Arial Black";
header_format.size = 24;
header_format.color = 16777215 /* 0xFFFFFF */;
}
if (!normal_format) {
normal_format = new TextFormat();
normal_format.font = "Arial";
normal_format.bold = true;
normal_format.size = 12;
normal_format.color = 16777215 /* 0xFFFFFF */;
}
if (!link_format) {
link_format = new TextFormat();
link_format.color = 16776960 /* 0xFFFF00 */;
link_format.underline = true;
}
}
static function onNewVersionAvailable(version, movie_url, redirect_url) {
InitTextFormats();
var _local2 = new Object();
_local2.x = Stage.width / 2;
_local2.y = Stage.height / 2;
_root.createEmptyMovieClip("NGAPI_new_version_overlay", _root.getNextHighestDepth());
_root.NGAPI_new_version_overlay.lineStyle(1, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(0, 70);
_root.NGAPI_new_version_overlay.moveTo(-10, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, 1000);
_root.NGAPI_new_version_overlay.lineTo(1000, -10);
_root.NGAPI_new_version_overlay.lineTo(-10, -10);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.lineStyle(10, 0, 100);
_root.NGAPI_new_version_overlay.beginFill(51);
_root.NGAPI_new_version_overlay.moveTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.lineTo(_local2.x + 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y + 80);
_root.NGAPI_new_version_overlay.lineTo(_local2.x - 240, _local2.y - 120);
_root.NGAPI_new_version_overlay.endFill();
_root.NGAPI_new_version_overlay.createEmptyMovieClip("exit", 1000);
_root.NGAPI_new_version_overlay.exit.lineStyle(2, 39423, 100);
_root.NGAPI_new_version_overlay.exit.beginFill(0, 50);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 230, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 90);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 210, _local2.y - 110);
_root.NGAPI_new_version_overlay.exit.endFill();
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 214, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 226, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.moveTo(_local2.x + 226, _local2.y - 106);
_root.NGAPI_new_version_overlay.exit.lineTo(_local2.x + 214, _local2.y - 94);
_root.NGAPI_new_version_overlay.exit.onMouseUp = function () {
if (_root.NGAPI_new_version_overlay.exit.hitTest(_root._xmouse, _root._ymouse)) {
_root.NGAPI_new_version_overlay.removeMovieClip();
}
};
var _local3 = (("Version " + version) + " is now available at:") + newline;
var _local5 = _local3.length;
_local3 = _local3 + movie_url;
var _local4 = _local3.length;
_root.NGAPI_new_version_overlay.createTextField("mouseblocker", 99, -10, -10, 1000, 1000);
_root.NGAPI_new_version_overlay.createTextField("newversion", 100, _local2.x - 210, _local2.y - 90, 400, 80);
_root.NGAPI_new_version_overlay.newversion.text = "New Version Available!";
_root.NGAPI_new_version_overlay.newversion.setTextFormat(header_format);
_root.NGAPI_new_version_overlay.createTextField("message", 101, (Stage.width - 400) / 2, Stage.height / 2, 400, 40);
_root.NGAPI_new_version_overlay.message.text = _local3;
_root.NGAPI_new_version_overlay.message.multiline = true;
_root.NGAPI_new_version_overlay.message.wordWrap = true;
_root.NGAPI_new_version_overlay.message.html = true;
_root.NGAPI_new_version_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_new_version_overlay.message.setTextFormat(_local5, _local4, link_format);
}
static function onDenyHost(hostname, movie_url, redirect_url) {
InitTextFormats();
_root.createEmptyMovieClip("NGAPI_deny_host_overlay", _root.getNextHighestDepth());
_root.NGAPI_deny_host_overlay.lineStyle(20, 0, 100);
_root.NGAPI_deny_host_overlay.beginFill(6684672);
_root.NGAPI_deny_host_overlay.moveTo(0, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, 0);
_root.NGAPI_deny_host_overlay.lineTo(Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, Stage.height);
_root.NGAPI_deny_host_overlay.lineTo(0, 0);
_root.NGAPI_deny_host_overlay.endFill();
var _local2 = ("This movie has not been approved for use on " + hostname) + ".";
_local2 = _local2 + "\r\rFor an aproved copy, please visit:\r";
var _local4 = _local2.length;
_local2 = _local2 + movie_url;
var _local3 = _local2.length;
_root.NGAPI_deny_host_overlay.createTextField("mousekill", 100, 0, 0, Stage.width, Stage.height);
_root.NGAPI_deny_host_overlay.createTextField("error", 101, (Stage.width - 400) / 2, (Stage.height / 2) - 100, 400, 200);
_root.NGAPI_deny_host_overlay.error.text = "ERROR!";
_root.NGAPI_deny_host_overlay.error.setTextFormat(error_format);
_root.NGAPI_deny_host_overlay.createTextField("message", 102, (Stage.width - 400) / 2, Stage.height / 2, 400, 200);
_root.NGAPI_deny_host_overlay.message.text = _local2;
_root.NGAPI_deny_host_overlay.message.multiline = true;
_root.NGAPI_deny_host_overlay.message.wordWrap = true;
_root.NGAPI_deny_host_overlay.message.html = true;
_root.NGAPI_deny_host_overlay.message.setTextFormat(normal_format);
link_format.url = redirect_url;
_root.NGAPI_deny_host_overlay.message.setTextFormat(_local4, _local3, link_format);
}
static function isInstalled() {
return(true);
}
static function onAdsApproved(ad_url) {
}
static var movie_options = new Object();
static var custom_events = new Object();
static var custom_links = new Object();
static var MOVIE_VIEWS = 1;
static var AUTHOR_SITE = 2;
static var NEWGROUNDS = 3;
static var NEW_VERSION = 4;
static var CUSTOM_STATS = 50;
static var GATEWAY_URL = "http://www.ngads.com/gateway.php";
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 65 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 72 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 87 MovieClip Frame 1
stop();
Symbol 89 MovieClip Frame 1
stop();
Symbol 91 MovieClip Frame 1
stop();
Symbol 95 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 21
stop();
Symbol 126 MovieClip Frame 22
prevFrame();
Symbol 146 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 1
stop();
Symbol 152 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 144
_root.gotoAndStop("menu");
Instance of Symbol 126 MovieClip "node1" in Symbol 170 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.power == 4) {
stopDrag();
}
}
on (press) {
if (_root.power != 4) {
startDrag (this);
}
}
on (release) {
if (_root.power != 4) {
stopDrag();
}
}
Symbol 176 Button
on (press) {
_root.normal1._visible = true;
_root.hard1._visible = true;
}
Symbol 181 Button
on (press) {
_root.hard = true;
_root.gotoAndStop("gameframe");
}
Symbol 186 Button
on (press) {
_root.hard = false;
_root.gotoAndStop("gameframe");
}
Symbol 189 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 2
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
play();
Symbol 211 MovieClip Frame 50
stop();
Symbol 265 MovieClip Frame 1
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("explosion", this);
someSound.start(0, 1);
}
Symbol 265 MovieClip Frame 23
removeMovieClip(_parent);
Symbol 267 MovieClip Frame 20
stop();
Symbol 268 MovieClip Frame 1
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("missound", this);
someSound.start(0, 1);
}
Symbol 268 MovieClip Frame 2
stop();
_root.enemiesleft = _root.enemiesleft - 1;
Symbol 268 MovieClip Frame 3
stop();
_root.enemiesleft = _root.enemiesleft - 1;
Symbol 314 MovieClip Frame 13
removeMovieClip(_parent);
Symbol 316 MovieClip Frame 23
stop();
removeMovieClip(_parent._parent);
Symbol 317 MovieClip Frame 10
stop();
Symbol 318 MovieClip Frame 23
stop();
removeMovieClip(_parent._parent);
Symbol 319 MovieClip Frame 10
stop();
Symbol 320 MovieClip Frame 1
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("firework", this);
someSound.start(0, 1);
}
Symbol 320 MovieClip Frame 23
stop();
removeMovieClip(_parent._parent);
Symbol 321 MovieClip Frame 10
stop();
Symbol 324 MovieClip Frame 17
stop();
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("splatt", this);
someSound.start(0, 1);
}
Symbol 325 MovieClip Frame 3
stop();
Symbol 337 MovieClip Frame 1
stop();
Symbol 337 MovieClip Frame 2
stop();
Instance of Symbol 335 MovieClip "arm" in Symbol 337 MovieClip Frame 2
onClipEvent (load) {
X = _root.giantegg._x - _parent._x;
Y = _root.giantegg._y - _parent._y;
if (_parent._xscale < 0) {
X = -X;
}
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 270);
}
onClipEvent (enterFrame) {
X = _root.giantegg._x - _parent._x;
Y = _root.giantegg._y - _parent._y;
if (_parent._xscale < 0) {
X = -X;
}
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 270);
}
Symbol 337 MovieClip Frame 3
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("splat", this);
someSound.start(0, 1);
}
_root.enemiesleft = _root.enemiesleft - 1;
Instance of Symbol 267 MovieClip "money" in Symbol 337 MovieClip Frame 3
onClipEvent (load) {
scale = _xscale;
if (_parent.startside == 1) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
Symbol 339 MovieClip Frame 1
stop();
Symbol 339 MovieClip Frame 2
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 2
stop();
_root.enemiesleft = _root.enemiesleft - 1;
Instance of Symbol 267 MovieClip "money" in Symbol 349 MovieClip Frame 2
onClipEvent (load) {
scale = _xscale;
if (_parent.startside == 1) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
Symbol 351 MovieClip Frame 1
stop();
Symbol 351 MovieClip Frame 2
stop();
_root.enemiesleft = _root.enemiesleft - 1;
Symbol 351 MovieClip Frame 3
stop();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("bangbang", this);
someSound.start(0, 1);
}
_root.enemiesleft = _root.enemiesleft - 1;
Instance of Symbol 267 MovieClip "money" in Symbol 351 MovieClip Frame 3
onClipEvent (load) {
scale = _xscale;
if (_parent.startside == 1) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
Symbol 355 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 2
stop();
_root.enemiesleft = _root.enemiesleft - 1;
Instance of Symbol 267 MovieClip "money" in Symbol 355 MovieClip Frame 2
onClipEvent (load) {
scale = _xscale;
if (_parent.startside == 1) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 2
stop();
Symbol 357 MovieClip Frame 3
stop();
Instance of Symbol 267 MovieClip "money" in Symbol 357 MovieClip Frame 3
onClipEvent (load) {
scale = _xscale;
if (_parent.startside == 1) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
Symbol 367 MovieClip Frame 1
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("explosion", this);
someSound.start(0, 1);
}
Symbol 367 MovieClip Frame 10
removeMovieClip(_parent);
Symbol 368 MovieClip Frame 1
stop();
Symbol 368 MovieClip Frame 2
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 500
stop();
Symbol 381 MovieClip Frame 1
stop();
Symbol 381 MovieClip Frame 2
stop();
Symbol 385 MovieClip Frame 400
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 2
play();
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("mainfire", this);
someSound.start(0, 1);
}
Symbol 392 MovieClip Frame 1
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("mousedie", this);
someSound.start(0, 1);
}
Symbol 392 MovieClip Frame 47
_root.gotoAndStop("endingframe");
Symbol 392 MovieClip Frame 90
removeMovieClip(_parent);
Symbol 392 MovieClip Frame 97
_root.nextFrame();
Symbol 393 MovieClip Frame 1
stop();
Instance of Symbol 370 MovieClip "burnr" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 370 MovieClip "burnl" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 372 MovieClip "w2" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 374 MovieClip "w1" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 378 MovieClip "phaser" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
faded = false;
timer = 0;
bar.gotoAndStop(500);
}
onClipEvent (enterFrame) {
if (_root.buying == true) {
bar.gotoAndStop(500);
}
if ((((faded == false) and (_root.buying == false)) and (_visible == true)) and (bar._currentframe == 500)) {
if (Key.isDown(83)) {
_root.giantegg._alpha = 30;
faded = true;
someSound = new Sound();
someSound.attachSound("phasesound", this);
someSound.start(0, 1);
bar.gotoAndPlay(1);
}
}
if (faded == true) {
timer++;
if (timer > 30) {
timer = 0;
faded = false;
_root.giantegg._alpha = 100;
}
}
}
Instance of Symbol 381 MovieClip "booster" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.buying == true) {
gotoAndStop (1);
}
}
Instance of Symbol 386 MovieClip "eggfire" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
bar.gotoAndStop(400);
}
Instance of Symbol 391 MovieClip "gianteggcannon" in Symbol 393 MovieClip Frame 1
onClipEvent (load) {
speed = 4;
}
onClipEvent (enterFrame) {
if (_root.buying == false) {
X = _root._xmouse - _parent._x;
Y = _root._ymouse - _parent._y;
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 270);
}
}
Symbol 393 MovieClip Frame 2
stop();
Symbol 396 MovieClip Frame 50
stop();
Symbol 399 MovieClip Frame 40
_root.giantegg._visible = true;
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("startexplosion", this);
someSound.start(0, 1);
}
Symbol 399 MovieClip Frame 171
stop();
Symbol 405 MovieClip Frame 1
stop();
if ((tankmove = 1)) {
play();
}
Symbol 405 MovieClip Frame 10
if ((tankmove = 0)) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 410 MovieClip Frame 1
stop();
Instance of Symbol 402 MovieClip "shaft" in Symbol 410 MovieClip Frame 1
onClipEvent (enterFrame) {
X = _root.giantegg._x - _parent._x;
Y = (_root.giantegg._y - _parent._y) - 50;
if (_parent._xscale < 0) {
X = -X;
}
angle = Math.atan2(Y, X);
_rotation = (((angle * 180) / Math.PI) - 180);
}
Symbol 410 MovieClip Frame 2
stop();
_root.enemiesleft = _root.enemiesleft - 1;
Instance of Symbol 267 MovieClip "money" in Symbol 410 MovieClip Frame 2
onClipEvent (load) {
scale = _xscale;
if (_parent.startside == 1) {
_xscale = scale;
} else {
_xscale = (-scale);
}
}
Symbol 412 MovieClip Frame 1
stop();
Symbol 412 MovieClip Frame 2
stop();
Symbol 445 MovieClip Frame 1
stop();
Symbol 445 MovieClip Frame 2
stop();
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 2
stop();
Symbol 455 Button
on (release) {
_root._quality = "LOW";
_root.newlevel();
}
Symbol 460 MovieClip Frame 1
stop();
Symbol 460 MovieClip Frame 2
stop();
Symbol 465 MovieClip Frame 1
stop();
Symbol 465 MovieClip Frame 2
stop();
Symbol 471 MovieClip Frame 1
stop();
Symbol 471 MovieClip Frame 2
stop();
Symbol 475 MovieClip Frame 1
stop();
Symbol 475 MovieClip Frame 2
stop();
Symbol 479 MovieClip Frame 1
stop();
Symbol 479 MovieClip Frame 2
stop();
Symbol 484 MovieClip Frame 1
stop();
Symbol 484 MovieClip Frame 2
stop();
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 445 MovieClip "up1" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 50;
costshow = "$" + cost;
if (_root.wheelupgrade == true) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (cost <= _root.globalmoney) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Allow your egg to move left and right (A & D)";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if ((cost <= _root.globalmoney) and (_currentframe == 1)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.wheelupgrade = true;
_root.globalmoney = _root.globalmoney - cost;
gotoAndStop (2);
}
}
Instance of Symbol 451 MovieClip "up2" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 160;
costshow = "$" + cost;
if (_root.speedupgrade == true) {
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if ((cost <= _root.globalmoney) and (_root.buymenu.up1._currentframe == 2)) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Move even faster";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if (((cost <= _root.globalmoney) and (_currentframe == 1)) and (_alpha == 100)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.speedupgrade = true;
_root.globalmoney = _root.globalmoney - cost;
gotoAndStop (2);
}
}
Instance of Symbol 460 MovieClip "up3" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 65;
costshow = "$" + cost;
if (_root.armourupgrade == true) {
gotoAndStop (2);
_root.giantegg.insideegg.gotoAndStop(2);
_root.armour = 5;
}
}
onClipEvent (enterFrame) {
if (cost <= _root.globalmoney) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Added egg armour reduces Damage taken.";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if ((cost <= _root.globalmoney) and (_currentframe == 1)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.globalmoney = _root.globalmoney - cost;
_root.giantegg.insideegg.gotoAndStop(2);
_root.armourupgrade = true;
_root.armour = 5;
gotoAndStop (2);
}
}
Instance of Symbol 465 MovieClip "up4" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 200;
costshow = "$" + cost;
if (_root.phaseupgrade == true) {
gotoAndStop (2);
_root.giantegg.phaser._visible = true;
}
}
onClipEvent (enterFrame) {
if ((cost <= _root.globalmoney) and (_root.buymenu.up3._currentframe == 2)) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Phase out and dodge all attacks";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if (((cost <= _root.globalmoney) and (_currentframe == 1)) and (_alpha == 100)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.phaseupgrade = true;
_root.giantegg.phaser._visible = true;
_root.globalmoney = _root.globalmoney - cost;
gotoAndStop (2);
}
}
Instance of Symbol 471 MovieClip "up7" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 150;
costshow = "$" + cost;
if (_root.bettereggsupgrade == true) {
gotoAndStop (2);
_root.setshoottime = 10;
}
}
onClipEvent (enterFrame) {
if (cost <= _root.globalmoney) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Increase shoot speed of cannon";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if ((cost <= _root.globalmoney) and (_currentframe == 1)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.bettereggsupgrade = true;
_root.globalmoney = _root.globalmoney - cost;
_root.setshoottime = 10;
gotoAndStop (2);
}
}
Instance of Symbol 475 MovieClip "up8" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 110;
costshow = "$" + cost;
if (_root.bombupgrade == true) {
gotoAndStop (2);
_root.giantegg.eggfire._visible = true;
_root.canshootbomb = true;
}
}
onClipEvent (enterFrame) {
if ((cost <= _root.globalmoney) and (_root.buymenu.up7._currentframe == 2)) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Shoot an egg bomb";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if (((cost <= _root.globalmoney) and (_currentframe == 1)) and (_alpha == 100)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.bombupgrade = true;
_root.globalmoney = _root.globalmoney - cost;
_root.giantegg.eggfire._visible = true;
_root.canshootbomb = true;
gotoAndStop (2);
}
}
Instance of Symbol 479 MovieClip "up9" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 350;
costshow = "$" + cost;
if (_root.fireworksupgrade == true) {
gotoAndStop (2);
_root.fireworkeggs = true;
}
}
onClipEvent (enterFrame) {
if ((cost <= _root.globalmoney) and (_root.buymenu.up7._currentframe == 2)) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Firework eggs added to shots";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if (((cost <= _root.globalmoney) and (_currentframe == 1)) and (_alpha == 100)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.fireworksupgrade = true;
_root.globalmoney = _root.globalmoney - cost;
_root.fireworkeggs = true;
gotoAndStop (2);
}
}
Instance of Symbol 484 MovieClip "up5" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 300;
costshow = "$" + cost;
if (_root.jumpupgrade == true) {
gotoAndStop (2);
_root.giantegg.booster._visible = true;
}
}
onClipEvent (enterFrame) {
if ((cost <= _root.globalmoney) and (_root.buymenu.up2._currentframe == 2)) {
_alpha = 100;
} else if (_currentframe == 2) {
_alpha = 100;
} else {
_alpha = 50;
}
}
on (rollOver) {
_root.mytext.txt = "Lets your egg fly like a chicken!";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if (((cost <= _root.globalmoney) and (_currentframe == 1)) and (_alpha == 100)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.jumpupgrade = true;
_root.giantegg.booster._visible = true;
_root.globalmoney = _root.globalmoney - cost;
gotoAndStop (2);
}
}
Instance of Symbol 487 MovieClip "heal1" in Symbol 505 MovieClip Frame 1
onClipEvent (load) {
cost = 5;
costshow = "$" + cost;
}
onClipEvent (enterFrame) {
}
on (rollOver) {
_root.mytext.txt = "Heal your Egg. Can be rebought.";
_root.mytext._visible = true;
}
on (rollOut) {
_root.mytext._visible = false;
}
on (dragOut) {
_root.mytext._visible = false;
}
on (press) {
if (((cost <= _root.globalmoney) and (_currentframe == 1)) and (_root.globalhealth.health < 100)) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.globalmoney = _root.globalmoney - cost;
_root.globalhealth.health = _root.globalhealth.health + 10;
}
}
Symbol 527 Button
on (press) {
if (_root.sound == true) {
someSound = new Sound();
someSound.attachSound("click", this);
someSound.start(0, 1);
}
_root.retrying = true;
_root.gotoAndStop("gameframe");
}
Symbol 547 MovieClip Frame 300
_parent.goagain = true;
Symbol 551 MovieClip Frame 1
stop();
Instance of Symbol 549 MovieClip in Symbol 551 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 569 MovieClip Frame 1
stop();
Instance of Symbol 549 MovieClip in Symbol 569 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 574 MovieClip Frame 1
stop();
Instance of Symbol 549 MovieClip in Symbol 574 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 580 MovieClip Frame 1
stop();
Instance of Symbol 578 MovieClip in Symbol 580 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 583 MovieClip Frame 205
_parent.goagain = true;
Symbol 585 MovieClip Frame 1
stop();
Instance of Symbol 584 MovieClip in Symbol 585 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 588 MovieClip Frame 1
stop();
Instance of Symbol 584 MovieClip in Symbol 588 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 591 MovieClip Frame 1
stop();
Instance of Symbol 584 MovieClip in Symbol 591 MovieClip Frame 1
onClipEvent (load) {
goagain = false;
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
}
onClipEvent (enterFrame) {
if (goagain == true) {
bob = random(150);
e1.gotoAndPlay(bob);
e2.gotoAndPlay(bob);
goagain = false;
}
}
Symbol 595 Button
on (press) {
stopAllSounds();
_root.retrying = false;
_root.gotoAndStop(8);
}