Frame 1
function chkloadLoad() {
ifFrameLoaded (2) {
clearInterval(checking);
_root.gotoAndStop("preloader");
}
}
function chkloadInst() {
ifFrameLoaded (6) {
clearInterval(checking);
_root.gotoAndStop("update");
}
}
stop();
Stage.showMenu = false;
Stage.scaleMode = "noScale";
myVersion = $version;
if (Number(myVersion.charAt(4)) >= 8) {
checking = setInterval(chkloadLoad, 10);
} else {
checking = setInterval(chkloadInst, 10);
}
_root.firstset = true;
Frame 2
function chkload() {
_root.perc = Math.floor((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
if (perc < 10) {
_root.perc = "0" + _root.perc;
}
_root.percent = _root.perc + "%";
_root.preloader.pbar._xscale = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
clearInterval(loadP);
_root.gotoAndPlay("intro");
}
}
_root.stop();
_root.greenstyle = "style1";
_root.bluestyle = "style1";
loadP = setInterval(chkload, 1);
Frame 200
stop();
_root.allsounds = new Object();
_root.allsounds.music = new Object();
_root.allsounds.effects = new Object();
_root.allsounds.effects.eaten = new Sound();
_root.allsounds.effects.eaten.attachSound("eaten");
_root.allsounds.effects.eat = new Sound();
_root.allsounds.effects.eat.attachSound("eat");
_root.allsounds.effects.bonus = new Sound();
_root.allsounds.effects.bonus.attachSound("bsfx");
_root.allsounds.effects.boom = new Sound();
_root.allsounds.effects.boom.attachSound("boom");
_root.allsounds.effects.sboom = new Sound();
_root.allsounds.effects.sboom.attachSound("sboom");
_root.allsounds.effects.flame = new Sound();
_root.allsounds.effects.flame.attachSound("flame");
_root.allsounds.music.menumusic = new Sound();
_root.allsounds.music.menumusic.attachSound("menumusic");
_root.allsounds.music.galaxy1 = new Sound();
_root.allsounds.music.galaxy1.attachSound("galaxy1");
_root.allsounds.music.galaxy2 = new Sound();
_root.allsounds.music.galaxy2.attachSound("galaxy2");
_root.allsounds.music.galaxy3 = new Sound();
_root.allsounds.music.galaxy3.attachSound("galaxy3");
_root.allsounds.music.galaxy4 = new Sound();
_root.allsounds.music.galaxy4.attachSound("galaxy4");
_root.allsounds.music.galaxy5 = new Sound();
_root.allsounds.music.galaxy5.attachSound("galaxy5");
_root.allsounds.music.bossmusic = new Sound();
_root.allsounds.music.bossmusic.attachSound("bossmusic");
if (_root.firstset) {
_root.greenleft = 37;
_root.greenright = 39;
_root.greenup = 38;
_root.greendown = 40;
_root.greenfireing = 13;
_root.greenpause = 32;
_root.blueleft = 65;
_root.blueright = 68;
_root.blueup = 87;
_root.bluedown = 83;
_root.bluefireing = 16;
_root.greenstyle = "style1";
_root.bluestyle = "style1";
_root.firstset = false;
}
Frame 201
function convert(code) {
if (code == 8) {
return("BACKSPACE");
}
if (code == 20) {
return("CAPS LOCK");
}
if (((code == 17) || (code == 9)) || (code == 27)) {
} else {
if (code == 46) {
return("DELETE");
}
if (code == 40) {
return("DOWN ARROW");
}
if (code == 35) {
return("END");
}
if (code == 13) {
return("ENTER");
}
if (code == 36) {
return("HOME");
}
if (code == 45) {
return("INSERT");
}
if (code == 37) {
return("LEFT ARROW");
}
if (code == 34) {
return("PAGE DOWN");
}
if (code == 33) {
return("PAGE UP");
}
if (code == 39) {
return("RIGHT ARROW");
}
if (code == 16) {
return("SHIFT");
}
if (code == 32) {
return("SPACE");
}
if (code == 38) {
return("UP ARROW");
}
if (code == 144) {
return("NUM LOCK");
}
if (code == 145) {
return("SCROLL LOCK");
}
if (code == 19) {
return("BREAK");
}
if (code == 186) {
return(");");
}
if (code == 187) {
return("=");
}
if (code == 189) {
return("-");
}
if (code == 109) {
return("-");
}
if (code == 110) {
return(".");
}
if (code == 111) {
return("/");
}
if (code == 191) {
return("/");
}
if (code == 192) {
return("`");
}
if (code == 219) {
return("[");
}
if (code == 220) {
return("\\");
}
if (code == 221) {
return("]");
}
if (code == 222) {
return("'");
}
if (code == 188) {
return(",");
}
if (code == 190) {
return(".");
}
if (code == 106) {
return("*");
}
if (code == 107) {
return("+");
}
return(String.fromCharCode(code));
}
}
stop();
_root.active = "";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
Instance of Symbol 88 MovieClip in Frame 201
onClipEvent (keyDown) {
if (_root.active != "") {
ocup = false;
if ((_root.active == "gleft") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "gright") && ((((((((((_root.greenleft == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "gup") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenleft == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "gdown") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "gfire") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "gpause") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "bleft") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "bright") && ((((((((((_root.greenright == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "bup") && ((((((((((_root.greenleft == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "bdown") && ((((((((((_root.greenleft == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.greenleft == Key.getCode())) || (_root.bluefireing == Key.getCode()))) {
ocup = true;
} else if ((_root.active == "bfire") && ((((((((((_root.greenleft == Key.getCode()) || (_root.greenup == Key.getCode())) || (_root.greendown == Key.getCode())) || (_root.greenfireing == Key.getCode())) || (_root.greenpause == Key.getCode())) || (_root.blueleft == Key.getCode())) || (_root.blueright == Key.getCode())) || (_root.blueup == Key.getCode())) || (_root.bluedown == Key.getCode())) || (_root.greenleft == Key.getCode()))) {
ocup = true;
}
if (!ocup) {
_root[_root.activeBut] = Key.getCode();
_root[_root.active] = _root.convert(Key.getCode());
_root.active = "";
}
}
}
Frame 205
function green(X) {
_root.green = _root.attachMovie("greenalien", "green", 1000);
_root.green._x = X;
_root.green._y = Stage.height / 2;
_root.green.speed = 0;
_root.green.speedx = 0;
_root.green.speedy = 0;
_root.green.acc = 0.666666666666667;
_root.green.decc = 20;
_root.green.highspeed = 0;
_root.green.firespeed = 0;
_root.green.maxspeed = (_root.green.rotation = 11 - (_root.level / 10));
_root.green.minspeed = 0.01;
_root.green.blinktimer = 0;
_root.green.touchblue = false;
_root.green.count = 100;
_root.green.freezetimer = 0;
_root.green.onEnterFrame = function () {
if (((this.count <= 0) && (this._xscale >= 120)) && (!(((Key.isDown(_root.greenright) || (Key.isDown(_root.greenleft))) || (Key.isDown(_root.greendown))) || (Key.isDown(_root.greenup))))) {
this.alien.alien.play();
this.count = 100;
} else {
this.count--;
}
if (!_root.pausedd) {
if (this.highspeed > 0) {
this.highspeed--;
if (this.highspeed == 0) {
_root.gameData.greenbonus.speed.gotoAndStop(1);
this.maxspeed = (this.rotation = 11 - (_root.level / 10));
if (this.speed > this.maxspeed) {
this.speed = this.maxspeed;
}
}
}
if (this.firespeed > 0) {
this.firespeed--;
}
if (this.shieldtimer > 0) {
this.shieldtimer--;
if (this.shieldtimer == 0) {
this.gotoAndStop(1);
}
}
if (this.freezetimer > 0) {
this.freezetimer--;
if (this.freezetimer <= 0) {
this.gotoAndStop(_root.gameData.greenbonus.shield._currentframe);
}
}
if (_root.greenstyle == "style2") {
if (Key.isDown(_root.greenright) && (this.freezetimer <= 0)) {
this._rotation = this._rotation + (this.rotation / ((this._xscale * 2) / 180));
}
if (Key.isDown(_root.greenleft) && (this.freezetimer <= 0)) {
this._rotation = this._rotation - (this.rotation / ((this._xscale * 2) / 180));
}
if (Key.isDown(_root.greendown) && (this.freezetimer <= 0)) {
if (this.speed > 0) {
this.speed = this.speed - (this.acc / ((this._xscale * 2) / 180));
}
} else if (Key.isDown(_root.greenup) && (this.freezetimer <= 0)) {
if (this.speed < (this.maxspeed / ((this._xscale * 2) / 180))) {
this.speed = this.speed + (this.acc / ((this._xscale * 2) / 180));
}
} else if (this.speed > this.minspeed) {
this.speed = this.speed - (this.speed / (this.decc / ((this._xscale * 2) / 180)));
} else {
this.speed = 0;
}
if ((this._rotation > 90) || (this._rotation < -90)) {
this.alien.gotoAndStop(2);
} else {
this.alien.gotoAndStop(1);
}
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
} else {
if (Key.isDown(_root.greenright) && (this.freezetimer <= 0)) {
this._xscale = Math.abs(this._xscale);
if (this.speedx < (this.maxspeed / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedx = this.speedx + (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedx > 0) {
this.speedx = this.speedx - (this.speedx / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(_root.greenleft) && (this.freezetimer <= 0)) {
this._xscale = -1 * Math.abs(this._xscale);
if (this.speedx > ((-this.maxspeed) / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedx = this.speedx - (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedx < 0) {
this.speedx = this.speedx + ((-this.speedx) / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(_root.greenup) && (this.freezetimer <= 0)) {
if (this.speedy > ((-this.maxspeed) / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedy = this.speedy - (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedy < 0) {
this.speedy = this.speedy + ((-this.speedy) / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
if (Key.isDown(_root.greendown) && (this.freezetimer <= 0)) {
if (this.speedy < (this.maxspeed / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedy = this.speedy + (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedy > 0) {
this.speedy = this.speedy - (this.speedy / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
}
if (((Key.isDown(_root.greenfireing) && (this.firespeed == 0)) && (_root.gameData.greenbonus.fire._currentframe == 2)) && (this.freezetimer <= 0)) {
_root.callflame("green");
this.firespeed = 10;
}
if (this._x < ((-this._width) / 2)) {
this._x = Stage.width + (this._width / 2);
} else if (this._x > (Stage.width + (this._width / 2))) {
this._x = (-this._width) / 2;
}
if (this._y < ((-this._height) / 2)) {
this._y = Stage.height + (this._height / 2);
}
if (this._y > (Stage.height + (this._height / 2))) {
this._y = (-this._height) / 2;
}
if (_root.players == "twoplayervs") {
for (i in _root.blueflamesonstage) {
if (this.hitTest(_root.blueflamesonstage[i])) {
_root.blueflamesonstage[i].removeMovieClip();
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
_root.updateScore(_root.green._yscale * 10, "blue");
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
_root.green.removeMovieClip();
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
found = false;
j = 0;
while (j < (_root.blueflamesonstage.length - 1)) {
if (_root.blueflamesonstage[j] == _root.blueflamesonstage[i]) {
found = true;
}
if (found) {
_root.blueflamesonstage[j] = _root.blueflamesonstage[j + 1];
}
j++;
}
_root.blueflamesonstage.pop();
}
}
}
}
};
}
function blue(X) {
_root.blue = _root.attachMovie("bluealien", "blue", 2000);
_root.blue._x = X;
_root.blue._y = Stage.height / 2;
_root.blue.speed = 0;
_root.blue.speedx = 0;
_root.blue.speedy = 0;
_root.blue.acc = 0.25;
_root.blue.decc = 40;
_root.blue.highspeed = 0;
_root.blue.firespeed = 0;
_root.blue.maxspeed = (_root.blue.rotation = 11 - (_root.level / 10));
_root.blue.minspeed = 0.01;
_root.blue.blinktimer = 0;
_root.blue.count = 100;
_root.blue.freezetimer = 0;
_root.blue.onEnterFrame = function () {
if (((this.count <= 0) && (this._xscale >= 120)) && (!(((Key.isDown(_root.blueright) || (Key.isDown(_root.blueleft))) || (Key.isDown(_root.bluedown))) || (Key.isDown(_root.blueup))))) {
this.alien.alien.play();
this.count = 100;
} else {
this.count--;
}
if (!_root.pausedd) {
if (this.highspeed > 0) {
this.highspeed--;
if (this.highspeed == 0) {
_root.gameData.bluebonus.speed.gotoAndStop(1);
this.maxspeed = (this.rotation = 11 - (_root.level / 10));
if (this.speed > this.maxspeed) {
this.speed = this.maxspeed;
}
}
}
if (this.firespeed > 0) {
this.firespeed--;
}
if (this.shieldtimer > 0) {
this.shieldtimer--;
if (this.shieldtimer == 0) {
this.gotoAndStop(1);
}
}
if (this.freezetimer > 0) {
this.freezetimer--;
if (this.freezetimer <= 0) {
this.gotoAndStop(_root.gameData.bluebonus.shield._currentframe);
}
}
if (_root.bluestyle == "style2") {
if (Key.isDown(_root.blueright) && (this.freezetimer <= 0)) {
this._rotation = this._rotation + (this.rotation / ((this._xscale * 2) / 180));
}
if (Key.isDown(_root.blueleft) && (this.freezetimer <= 0)) {
this._rotation = this._rotation - (this.rotation / ((this._xscale * 2) / 180));
}
if (Key.isDown(_root.bluedown) && (this.freezetimer <= 0)) {
if (this.speed > 0) {
this.speed = this.speed - (this.acc / ((this._xscale * 2) / 180));
}
} else if (Key.isDown(_root.blueup) && (this.freezetimer <= 0)) {
if (this.speed < (this.maxspeed / ((this._xscale * 2) / 180))) {
this.speed = this.speed + (this.acc / ((this._xscale * 2) / 180));
}
} else if (this.speed > this.minspeed) {
this.speed = this.speed - (this.speed / (this.decc / ((this._xscale * 2) / 180)));
} else {
this.speed = 0;
}
if ((this._rotation > 90) || (this._rotation < -90)) {
this.alien.gotoAndStop(2);
} else {
this.alien.gotoAndStop(1);
}
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
} else {
if (Key.isDown(_root.blueright) && (this.freezetimer <= 0)) {
this._xscale = Math.abs(this._xscale);
if (this.speedx < (this.maxspeed / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedx = this.speedx + (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedx > 0) {
this.speedx = this.speedx - (this.speedx / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(_root.blueleft) && (this.freezetimer <= 0)) {
this._xscale = -1 * Math.abs(this._xscale);
if (this.speedx > ((-this.maxspeed) / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedx = this.speedx - (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedx < 0) {
this.speedx = this.speedx + ((-this.speedx) / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(_root.blueup) && (this.freezetimer <= 0)) {
if (this.speedy > ((-this.maxspeed) / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedy = this.speedy - (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedy < 0) {
this.speedy = this.speedy + ((-this.speedy) / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
if (Key.isDown(_root.bluedown) && (this.freezetimer <= 0)) {
if (this.speedy < (this.maxspeed / ((Math.abs(this._xscale) * 2) / 180))) {
this.speedy = this.speedy + (this.acc / ((Math.abs(this._xscale) * 2) / 180));
}
} else if (this.speedy > 0) {
this.speedy = this.speedy - (this.speedy / (this.decc / ((Math.abs(this._xscale) * 2) / 180)));
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
}
if (((Key.isDown(_root.bluefireing) && (this.firespeed == 0)) && (_root.gameData.bluebonus.fire._currentframe == 2)) && (this.freezetimer <= 0)) {
_root.callflame("blue");
this.firespeed = 10;
}
if (this._x < ((-this._width) / 2)) {
this._x = Stage.width + (this._width / 2);
} else if (this._x > (Stage.width + (this._width / 2))) {
this._x = (-this._width) / 2;
}
if (this._y < ((-this._height) / 2)) {
this._y = Stage.height + (this._height / 2);
}
if (this._y > (Stage.height + (this._height / 2))) {
this._y = (-this._height) / 2;
}
if (_root.players == "twoplayervs") {
if (this.hitTest(_root.green)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, false) && (_root.green.touchblue == false)) {
_root.green.touchblue = true;
if ((this._yscale + 0.1) < _root.green._yscale) {
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
_root.updateScore(_root.blue._yscale, "green");
_root.allsounds.effects.eaten.start();
if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
} else if (this._yscale > (_root.green._yscale + 0.1)) {
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
_root.updateScore(_root.green._yscale, "blue");
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
_root.green.removeMovieClip();
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
}
}
i++;
}
} else {
_root.green.touchblue = false;
}
for (i in _root.greenflamesonstage) {
if (this.hitTest(_root.greenflamesonstage[i])) {
_root.greenflamesonstage[i].removeMovieClip();
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
_root.updateScore(_root.blue._yscale * 10, "green");
_root.allsounds.effects.eaten.start();
if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
found = false;
j = 0;
while (j < (_root.greenflamesonstage.length - 1)) {
if (_root.greenflamesonstage[j] == _root.greenflamesonstage[i]) {
found = true;
}
if (found) {
_root.greenflamesonstage[j] = _root.greenflamesonstage[j + 1];
}
j++;
}
_root.greenflamesonstage.pop();
}
}
}
}
};
}
function initiate(lev) {
i = 0;
while (i < 120) {
_root["enemy" + i].removeMovieClip();
i++;
}
_root.gameData.gamelevel = lev;
if (lev == "BONUS") {
_root.bonustimer = getTimer();
if (_root.level == 4) {
_root.bckgrnd.gotoAndStop("bonus1");
} else {
_root.bckgrnd.gotoAndStop("bonus2");
}
_root.pausedd = false;
} else {
_root.level = lev;
if ((_root.level == 4) || (_root.level == 8)) {
_root.bonustimer = getTimer();
}
_root.bckgrnd.gotoAndStop("level" + lev);
_root.gameData.progress.progressbar._xscale = 0;
_root.eatcount = 0;
_root.pausedd = false;
}
_root.howmuch = 40;
_root.enemycall = setInterval(_root.callenemys, 100);
_root.green._xscale = (_root.green._yscale = Math.max(100, (_root.green._xscale + 100) / 2));
_root.blue._xscale = (_root.blue._yscale = Math.max(100, (_root.blue._xscale + 100) / 2));
if (_root.players == "oneplayer") {
_root.green(Stage.width / 2);
_root.green._x = Stage.width / 2;
_root.green._y = Stage.height / 2;
_root.green._rotation = 0;
_root.green.speed = 0;
_root.green.speedx = 0;
_root.green.speedy = 0;
_root.green.blinktimer = 0;
clearInterval(_root.greeninterval);
} else if (_root.players == "twoplayerco") {
_root.green((Stage.width / 2) - 200);
_root.green._x = (Stage.width / 2) - 200;
_root.green._y = Stage.height / 2;
_root.green._rotation = 0;
_root.green.speed = 0;
_root.green.speedx = 0;
_root.green.speedy = 0;
_root.green.blinktimer = 0;
clearInterval(_root.greeninterval);
_root.blue((Stage.width / 2) + 200);
_root.blue._x = (Stage.width / 2) + 200;
_root.blue._y = Stage.height / 2;
_root.blue._rotation = 0;
_root.blue.speed = 0;
_root.blue.speedx = 0;
_root.blue.speedy = 0;
_root.blue.blinktimer = 0;
clearInterval(_root.blueinterval);
} else {
if (_root.greenlife > 0) {
_root.green((Stage.width / 2) - 200);
_root.green._x = (Stage.width / 2) - 200;
_root.green._y = Stage.height / 2;
_root.green._rotation = 0;
_root.green.speed = 0;
_root.green.speedx = 0;
_root.green.speedy = 0;
_root.green.blinktimer = 0;
clearInterval(_root.greeninterval);
}
if (_root.bluelife > 0) {
_root.blue(Stage.width + 200);
_root.blue._x = (Stage.width / 2) + 200;
_root.blue._y = Stage.height / 2;
_root.blue._rotation = 0;
_root.blue.speed = 0;
_root.blue.speedx = 0;
_root.blue.speedy = 0;
_root.blue.blinktimer = 0;
clearInterval(_root.blueinterval);
}
}
if (_root.gameData.greenbonus.shield._currentframe == 2) {
_root.green.gotoAndStop(2);
}
if (_root.gameData.greenbonus.speed._currentframe == 2) {
_root.green.highspeed = 1200;
_root.green.maxspeed = (_root.green.rotation = 10 - (_root.level / 10));
}
if (_root.gameData.bluebonus.shield._currentframe == 2) {
_root.blue.gotoAndStop(2);
}
if (_root.gameData.bluebonus.speed._currentframe == 2) {
_root.blue.highspeed = 1200;
_root.blue.maxspeed = (_root.blue.rotation = 11 - (_root.level / 10));
}
_root.bonus();
_root.bonus._visible = false;
_root.bonus.rotation = random(360);
_root.bonus.speed = Math.max(random(3), 2);
var _local2 = Math.max(Math.random(1000), 600);
_root.bonus.wasIn = false;
_root.bonus._x = ((Stage.width / 2) - 200) + random(400);
_root.bonus._y = ((Stage.height / 2) - 100) + random(200);
_root.bonus._x = _root.bonus._x + ((_local2 * _root.bonus.speed) * Math.cos((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._y = _root.bonus._y + ((_local2 * _root.bonus.speed) * Math.sin((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._visible = true;
_root.green._visible = true;
_root.blue._visible = true;
_root.green.count = 100;
_root.blue.count = 100;
}
function bonus() {
temp = random(7) + 1;
_root.bonus = _root.attachMovie("bonusset", "bonus", 10);
_root.bonus.gotoAndStop(temp);
if (temp == 3) {
temp = random(6) + 1;
if (temp == 1) {
_root.bonus.bonusname = "life";
} else if (temp == 2) {
_root.bonus.bonusname = "shield";
} else if (temp == 3) {
_root.bonus.bonusname = "speed";
} else if (temp == 4) {
_root.bonus.bonusname = "small";
} else if (temp == 5) {
_root.bonus.bonusname = "down";
} else if (temp == 6) {
_root.bonus.bonusname = "fire";
}
}
_root.bonus.rotation = random(360);
_root.bonus.speed = Math.max(random(3), 2);
if (_root.gameData.gamelevel == "BONUS") {
var _local3 = Math.max(Math.random(700), 600);
} else {
var _local3 = Math.max(Math.random(1000), 600);
}
_root.bonus.wasIn = false;
_root.bonus._x = ((Stage.width / 2) - 200) + random(400);
_root.bonus._y = ((Stage.height / 2) - 100) + random(200);
_root.bonus._x = _root.bonus._x + ((_local3 * _root.bonus.speed) * Math.cos((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._y = _root.bonus._y + ((_local3 * _root.bonus.speed) * Math.sin((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus.onEnterFrame = function () {
if (!_root.pausedd) {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this.rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this.rotation));
if (!this.wasIn) {
if ((((this._x < (Stage.width + 50)) && (this._y < (Stage.height + 50))) && (this._x > -50)) && (this._y > -50)) {
this.wasIn = true;
}
} else if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
_root.bonus._visible = false;
_root.bonus.rotation = random(360);
_root.bonus.speed = Math.max(random(3), 2);
var _local3 = Math.max(Math.random(1000), 600);
_root.bonus.wasIn = false;
_root.bonus._x = ((Stage.width / 2) - 200) + random(400);
_root.bonus._y = ((Stage.height / 2) - 100) + random(200);
_root.bonus._x = _root.bonus._x + ((_local3 * _root.bonus.speed) * Math.cos((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._y = _root.bonus._y + ((_local3 * _root.bonus.speed) * Math.sin((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._visible = true;
if (_root.bossIn) {
temp = 2;
} else {
temp = random(7) + 1;
}
_root.bonus.gotoAndStop(temp);
if (temp == 3) {
temp = random(6) + 1;
if (temp == 1) {
_root.bonus.bonusname = "life";
} else if (temp == 2) {
_root.bonus.bonusname = "shield";
} else if (temp == 3) {
_root.bonus.bonusname = "speed";
} else if (temp == 4) {
_root.bonus.bonusname = "small";
} else if (temp == 5) {
_root.bonus.bonusname = "down";
} else if (temp == 6) {
_root.bonus.bonusname = "fire";
}
}
}
if (this.hitTest(_root.green)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
_root.allsounds.effects.bonus.start();
if (this._currentframe == 1) {
_root.green.highspeed = 5;
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.gotoAndStop(1);
_root.greenfirelevel = 0;
_root.gameData.greenbonus.fire.gotoAndStop(1);
_root.updateScore(-1 * Math.min(1000, _root.greenscore), "green");
_root.gameData.greendisplay.gotoAndPlay("debonus");
} else if (this._currentframe == 2) {
if (_root.greenfirelevel < 9) {
_root.greenfirelevel++;
_root.gameData.greenbonus.fire.gotoAndStop(2);
_root.gameData.greenbonus.fire.fire = "x" + _root.greenfirelevel;
}
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("fire");
} else if (this._currentframe == 3) {
if (_root.bonus.bonusname == "life") {
if (_root.greenlife < 9) {
_root.greenlife++;
}
_root.updateScore(1000, "green");
if (_root.players == "twoplayerco") {
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.gameData.greendisplay.gotoAndPlay("life");
} else if (_root.bonus.bonusname == "shield") {
_root.gameData.greenbonus.shield.gotoAndStop(2);
_root.green.gotoAndStop(2);
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("shield");
} else if (_root.bonus.bonusname == "speed") {
_root.green.maxspeed = (_root.green.rotation = 14 - (_root.level / 10));
_root.green.highspeed = 1200;
_root.gameData.greenbonus.speed.gotoAndStop(2);
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("speed");
} else if (_root.bonus.bonusname == "small") {
_root.green._xscale = (_root.green._yscale = Math.max(100, _root.green._xscale / 3));
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("shrink");
} else if (_root.bonus.bonusname == "down") {
_root.green.highspeed = 5;
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.gotoAndStop(1);
_root.greenfirelevel = 0;
_root.gameData.greenbonus.fire.gotoAndStop(1);
_root.updateScore(-1 * Math.min(1000, _root.greenscore), "green");
_root.gameData.greendisplay.gotoAndPlay("debonus");
} else if (_root.bonus.bonusname == "fire") {
if (_root.greenfirelevel < 9) {
_root.greenfirelevel++;
_root.gameData.greenbonus.fire.gotoAndStop(2);
_root.gameData.greenbonus.fire.fire = "x" + _root.greenfirelevel;
}
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("fire");
}
} else if (this._currentframe == 4) {
if (_root.greenlife < 9) {
_root.greenlife++;
}
_root.updateScore(1000, "green");
if (_root.players == "twoplayerco") {
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.gameData.greendisplay.gotoAndPlay("life");
} else if (this._currentframe == 5) {
_root.gameData.greenbonus.shield.gotoAndStop(2);
_root.green.gotoAndStop(2);
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("shield");
} else if (this._currentframe == 6) {
_root.green._xscale = (_root.green._yscale = Math.max(100, _root.green._xscale / 3));
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("shrink");
} else if (this._currentframe == 7) {
_root.green.maxspeed = (_root.green.rotation = 14 - (_root.level / 10));
_root.green.highspeed = 1200;
_root.gameData.greenbonus.speed.gotoAndStop(2);
_root.updateScore(1000, "green");
_root.gameData.greendisplay.gotoAndPlay("speed");
}
_root.bonus._visible = false;
_root.bonus.rotation = random(360);
_root.bonus.speed = Math.max(random(3), 2);
var _local3 = Math.max(Math.random(1000), 600);
_root.bonus.wasIn = false;
_root.bonus._x = Stage.width / 2;
_root.bonus._y = Stage.height / 2;
_root.bonus._x = _root.bonus._x + ((_local3 * _root.bonus.speed) * Math.cos((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._y = _root.bonus._y + ((_local3 * _root.bonus.speed) * Math.sin((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._visible = true;
if (_root.bossIn) {
temp = 2;
} else {
temp = random(7) + 1;
}
_root.bonus.gotoAndStop(temp);
if (temp == 3) {
temp = random(6) + 1;
if (temp == 1) {
_root.bonus.bonusname = "life";
} else if (temp == 2) {
_root.bonus.bonusname = "shield";
} else if (temp == 3) {
_root.bonus.bonusname = "speed";
} else if (temp == 4) {
_root.bonus.bonusname = "small";
} else if (temp == 5) {
_root.bonus.bonusname = "down";
} else if (temp == 6) {
_root.bonus.bonusname = "fire";
}
}
}
i++;
}
} else if ((_root.players == "twoplayerco") || (_root.players == "twoplayervs")) {
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
_root.allsounds.effects.bonus.start();
if (this._currentframe == 1) {
_root.blue.highspeed = 5;
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.gotoAndStop(1);
_root.bluefirelevel = 0;
_root.gameData.bluebonus.fire.gotoAndStop(1);
if (_root.players == "twoplayerco") {
_root.updateScore(-1 * Math.min(1000, _root.greenscore), "blue");
} else {
_root.updateScore(-1 * Math.min(1000, _root.bluescore), "blue");
}
_root.gameData.bluedisplay.gotoAndPlay("debonus");
} else if (this._currentframe == 2) {
if (_root.bluefirelevel < 9) {
_root.bluefirelevel++;
_root.gameData.bluebonus.fire.gotoAndStop(2);
_root.gameData.bluebonus.fire.fire = "x" + _root.bluefirelevel;
}
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("fire");
} else if (this._currentframe == 3) {
if (_root.bonus.bonusname == "life") {
if (_root.players == "twoplayerco") {
if (_root.greenlife < 9) {
_root.greenlife++;
}
} else if (_root.bluelife < 9) {
_root.bluelife++;
}
_root.updateScore(1000, "blue");
if (_root.players == "twoplayerco") {
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.gameData.bluedisplay.gotoAndPlay("life");
} else if (_root.bonus.bonusname == "shield") {
_root.gameData.bluebonus.shield.gotoAndStop(2);
_root.blue.gotoAndStop(2);
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("shield");
} else if (_root.bonus.bonusname == "speed") {
_root.blue.maxspeed = (_root.blue.rotation = 14 - (_root.level / 10));
_root.blue.highspeed = 1200;
_root.gameData.bluebonus.speed.gotoAndStop(2);
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("speed");
} else if (_root.bonus.bonusname == "small") {
_root.blue._xscale = (_root.blue._yscale = Math.max(100, _root.blue._xscale / 3));
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("shrink");
} else if (_root.bonus.bonusname == "down") {
_root.blue.highspeed = 5;
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.gotoAndStop(1);
_root.bluefirelevel = 0;
_root.gameData.bluebonus.fire.gotoAndStop(1);
if (_root.players == "twoplayerco") {
_root.updateScore(-1 * Math.min(1000, _root.bluescore), "blue");
} else {
_root.updateScore(-1 * Math.min(1000, _root.bluescore), "blue");
}
_root.gameData.bluedisplay.gotoAndPlay("debonus");
} else if (_root.bonus.bonusname == "fire") {
if (_root.bluefirelevel < 9) {
_root.bluefirelevel++;
_root.gameData.bluebonus.fire.gotoAndStop(2);
_root.gameData.bluebonus.fire.fire = "x" + _root.bluefirelevel;
}
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("fire");
}
} else if (this._currentframe == 4) {
if (_root.players == "twoplayerco") {
if (_root.greenlife < 9) {
_root.greenlife++;
}
} else if (_root.bluelife < 9) {
_root.bluelife++;
}
_root.updateScore(1000, "blue");
if (_root.players == "twoplayerco") {
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.gameData.bluedisplay.gotoAndPlay("life");
} else if (this._currentframe == 5) {
_root.gameData.bluebonus.shield.gotoAndStop(2);
_root.blue.gotoAndStop(2);
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("shield");
} else if (this._currentframe == 6) {
_root.blue._xscale = (_root.blue._yscale = Math.max(100, _root.blue._xscale / 3));
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("shrink");
} else if (this._currentframe == 7) {
_root.blue.maxspeed = (_root.blue.rotation = 14 - (_root.level / 10));
_root.blue.highspeed = 1200;
_root.gameData.bluebonus.speed.gotoAndStop(2);
_root.updateScore(1000, "blue");
_root.gameData.bluedisplay.gotoAndPlay("speed");
}
_root.bonus._visible = false;
_root.bonus.rotation = random(360);
_root.bonus.speed = Math.max(random(3), 2);
var _local3 = Math.max(Math.random(1000), 600);
_root.bonus.wasIn = false;
_root.bonus._x = Stage.width / 2;
_root.bonus._y = Stage.height / 2;
_root.bonus._x = _root.bonus._x + ((_local3 * _root.bonus.speed) * Math.cos((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._y = _root.bonus._y + ((_local3 * _root.bonus.speed) * Math.sin((Math.PI/180) * (_root.bonus.rotation + 180)));
_root.bonus._visible = true;
if (_root.bossIn) {
temp = 2;
} else {
temp = random(7) + 1;
}
_root.bonus.gotoAndStop(temp);
if (temp == 3) {
temp = random(6) + 1;
if (temp == 1) {
_root.bonus.bonusname = "life";
} else if (temp == 2) {
_root.bonus.bonusname = "shield";
} else if (temp == 3) {
_root.bonus.bonusname = "speed";
} else if (temp == 4) {
_root.bonus.bonusname = "small";
} else if (temp == 5) {
_root.bonus.bonusname = "down";
} else if (temp == 6) {
_root.bonus.bonusname = "fire";
}
}
}
i++;
}
}
}
}
};
}
function updateScore(howmuch, which) {
if ((which == "green") || ((which == "blue") && (_root.players == "twoplayerco"))) {
_root.greenscore = _root.greenscore + howmuch;
temp = "";
if (_root.greenscore < 1000000) {
temp = temp + "0";
}
if (_root.greenscore < 100000) {
temp = temp + "0";
}
if (_root.greenscore < 10000) {
temp = temp + "0";
}
if (_root.greenscore < 1000) {
temp = temp + "0";
}
if (_root.greenscore < 100) {
temp = temp + "0";
}
if (_root.greenscore < 10) {
temp = temp + "0";
}
_root.gameData.greenscore = temp + _root.greenscore;
} else {
_root.bluescore = _root.bluescore + howmuch;
temp = "";
if (_root.bluescore < 1000000) {
temp = temp + "0";
}
if (_root.bluescore < 100000) {
temp = temp + "0";
}
if (_root.bluescore < 10000) {
temp = temp + "0";
}
if (_root.bluescore < 1000) {
temp = temp + "0";
}
if (_root.bluescore < 100) {
temp = temp + "0";
}
if (_root.bluescore < 10) {
temp = temp + "0";
}
_root.gameData.bluescore = temp + _root.bluescore;
}
}
function callflame(which) {
if (which == "green") {
var _local3 = _root.attachMovie("fire", _root["greenflame" + _root.greenfirelevel], 1000 + _root.greenfirelevel);
_root.greenfirelevel--;
_root.gameData.greenbonus.fire.fire = "x" + _root.greenfirelevel;
if (_root.greenfirelevel == 0) {
_root.gameData.greenbonus.fire.gotoAndStop(1);
}
_root.greenflamesonstage.push(_local3);
_local3._yscale = _root.green._yscale / 7;
_local3._xscale = -_local3._yscale;
_local3.speed = 8;
if (_root.greenstyle == "style2") {
_local3._rotation = _root.green._rotation;
_local3._x = _root.green._x + (20 * Math.cos((Math.PI/180) * _root.green._rotation));
_local3._y = _root.green._y + (20 * Math.sin((Math.PI/180) * _root.green._rotation));
} else if (_root.green._xscale > 0) {
_local3._rotation = 0;
_local3._x = _root.green._x + (20 * Math.cos((Math.PI/180) * _root.green._rotation));
_local3._y = _root.green._y + (20 * Math.sin((Math.PI/180) * _root.green._rotation));
} else {
_local3._rotation = 180;
_local3._x = _root.green._x - (20 * Math.cos((Math.PI/180) * _root.green._rotation));
_local3._y = _root.green._y - (20 * Math.sin((Math.PI/180) * _root.green._rotation));
}
_local3.onEnterFrame = function () {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
found = false;
i = 0;
while (i < (_root.greenflamesonstage.length - 1)) {
if (_root.greenflamesonstage[i] == this) {
found = true;
}
if (found) {
_root.greenflamesonstage[i] = _root.greenflamesonstage[i + 1];
}
i++;
}
_root.greenflamesonstage.pop();
this.removeMovieClip();
}
};
} else {
var _local3 = _root.attachMovie("fire", _root["blueflame" + _root.bluefirelevel], 1000 + _root.bluefirelevel);
_root.bluefirelevel--;
_root.gameData.bluebonus.fire.fire = "x" + _root.bluefirelevel;
if (_root.bluefirelevel == 0) {
_root.gameData.bluebonus.fire.gotoAndStop(1);
}
_root.blueflamesonstage.push(_local3);
_local3._yscale = _root.blue._yscale / 7;
_local3._xscale = -_local3._yscale;
_local3.speed = 8;
if (_root.bluestyle == "style2") {
_local3._rotation = _root.blue._rotation;
_local3._x = _root.blue._x + (20 * Math.cos((Math.PI/180) * _root.blue._rotation));
_local3._y = _root.blue._y + (20 * Math.sin((Math.PI/180) * _root.blue._rotation));
} else if (_root.blue._xscale > 0) {
_local3._rotation = 0;
_local3._x = _root.blue._x + (20 * Math.cos((Math.PI/180) * _root.blue._rotation));
_local3._y = _root.blue._y + (20 * Math.sin((Math.PI/180) * _root.blue._rotation));
} else {
_local3._rotation = 180;
_local3._x = _root.blue._x - (20 * Math.cos((Math.PI/180) * _root.blue._rotation));
_local3._y = _root.blue._y - (20 * Math.sin((Math.PI/180) * _root.blue._rotation));
}
_local3.onEnterFrame = function () {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
found = false;
i = 0;
while (i < (_root.blueflamesonstage.length - 1)) {
if (_root.blueflamesonstage[i] == this) {
found = true;
}
if (found) {
_root.blueflamesonstage[i] = _root.blueflamesonstage[i + 1];
}
i++;
}
_root.blueflamesonstage.pop();
this.removeMovieClip();
}
};
}
}
function callenemys() {
_root.callenemy(_root.howmuch);
_root.howmuch--;
if (_root.howmuch <= 1) {
clearInterval(_root.enemycall);
}
}
function callenemy(elevel) {
tempno = random(5) + 1;
distance = 360.555127546399;
multi = random(2);
if (multi == 0) {
multi = -1;
}
temp = _root.attachMovie("enemy" + tempno, "enemy" + elevel, 50 + elevel);
temp.level = elevel;
if (_root.gameData.gamelevel == "BONUS") {
if ((_root.green._x != undefined) && (_root.blue._x != undefined)) {
if (Math.abs(_root.green._xscale) < Math.abs(_root.blue._xscale)) {
temp._xscale = (temp._yscale = Math.max(Math.random(Math.abs(_root.green._xscale)), 80));
} else {
temp._xscale = (temp._yscale = Math.max(Math.random(Math.abs(_root.blue._xscale)), 80));
}
} else if (_root.green._x != undefined) {
temp._xscale = (temp._yscale = Math.max(Math.random(Math.abs(_root.green._xscale)), 80));
} else {
temp._xscale = (temp._yscale = Math.max(Math.random(Math.abs(_root.blue._xscale)), 80));
}
} else if ((_root.green._x != undefined) && (_root.blue._x != undefined)) {
if (Math.abs(_root.green._xscale) < Math.abs(_root.blue._xscale)) {
temp._xscale = (temp._yscale = Math.max(random(Math.abs(_root.green._xscale) + 100), 80));
} else {
temp._xscale = (temp._yscale = Math.max(random(Math.abs(_root.blue._xscale) + 100), 80));
}
} else if (_root.green._x != undefined) {
temp._xscale = (temp._yscale = Math.max(random(Math.abs(_root.green._xscale) + 100), 80));
} else {
temp._xscale = (temp._yscale = Math.max(random(Math.abs(_root.blue._xscale) + 100), 80));
}
temp._x = Stage.width / 2;
temp._y = Stage.height / 2;
temp._rotation = random(360);
temp._x = temp._x + (distance * Math.cos((Math.PI/180) * (temp._rotation + 180)));
temp._y = temp._y + (distance * Math.sin((Math.PI/180) * (temp._rotation + 180)));
temp._rotation = temp._rotation + (multi * random(45));
temp.speed = Math.max(Math.random() * Math.max(3, _root.level / 2), 0.5);
temp.wasIn = false;
temp.count = 100;
temp.onEnterFrame = function () {
if ((this._rotation > 90) || (this._rotation < -90)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
if ((this._xscale > (_root.green._xscale + 60)) || (this._xscale > (_root.blue._xscale + 60))) {
if (this.count > 0) {
this.count--;
} else {
this.count = 200;
this.enemy.play();
}
}
if (!_root.pausedd) {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if ((((this._x < (Stage.width + 50)) && (this._y < (Stage.height + 50))) && (this._x > -50)) && (this._y > -50)) {
if (!this.wasIn) {
this.wasIn = true;
}
for (i in _root.greenflamesonstage) {
if (this.hitTest(_root.greenflamesonstage[i])) {
_root.greenflamesonstage[i].removeMovieClip();
_root.updateScore(this._yscale * 10, "green");
this.enemy.level = elevel;
this.enemy.gotoAndPlay(40);
found = false;
j = 0;
while (j < (_root.greenflamesonstage.length - 1)) {
if (_root.greenflamesonstage[j] == _root.greenflamesonstage[i]) {
found = true;
}
if (found) {
_root.greenflamesonstage[j] = _root.greenflamesonstage[j + 1];
}
j++;
}
_root.greenflamesonstage.pop();
}
}
for (i in _root.blueflamesonstage) {
if (this.hitTest(_root.blueflamesonstage[i])) {
_root.blueflamesonstage[i].removeMovieClip();
_root.updateScore(this._yscale * 10, "blue");
this.speed = 0;
this.enemy.level = elevel;
this.enemy.gotoAndPlay(40);
found = false;
j = 0;
while (j < (_root.blueflamesonstage.length - 1)) {
if (_root.blueflamesonstage[j] == _root.blueflamesonstage[i]) {
found = true;
}
if (found) {
_root.blueflamesonstage[j] = _root.blueflamesonstage[j + 1];
}
j++;
}
_root.blueflamesonstage.pop();
}
}
if (this.hitTest(_root.green)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if ((this._yscale < _root.green._yscale) && (_root.green.blinktimer == 0)) {
_root.green.alien.alien.gotoAndPlay(50);
_root.callenemy(this.level);
_root.updateScore(this._yscale, "green");
_root.eat1.val = _root.eat2.val;
_root.eat1.checked = _root.eat2.checked;
_root.eat2.val = _root.eat3.val;
_root.eat2.checked = _root.eat3.checked;
_root.eat3.val = _root.eat4.val;
_root.eat3.checked = _root.eat4.checked;
_root.eat4.val = _root.eat5.val;
_root.eat4.checked = _root.eat5.checked;
_root.eat5.val = getTimer();
_root.eat5.checked = false;
if ((_root.eat5.val - _root.eat1.val) < 3000) {
_root.gameData.greendisplay.gotoAndPlay("5xbonus");
_root.updateScore(5000, "green");
_root.eat1.val = 0;
_root.eat1.checked = false;
_root.eat2.val = 0;
_root.eat2.checked = false;
_root.eat3.val = 0;
_root.eat3.checked = false;
_root.eat4.val = 0;
_root.eat4.checked = false;
_root.eat5.val = 0;
_root.eat5.checked = false;
} else if (((((_root.eat5.val - _root.eat3.val) < 2000) && (!_root.eat5.checked)) && (!_root.eat4.checked)) && (!_root.eat3.checked)) {
_root.gameData.greendisplay.gotoAndPlay("3xbonus");
_root.updateScore(3000, "green");
_root.eat3.checked = true;
_root.eat4.checked = true;
_root.eat5.checked = true;
}
if (_root.gameData.gamelevel != "BONUS") {
_root.green._xscale = _root.green._xscale + ((Math.abs(_root.green._xscale) / _root.green._xscale) * (this._yscale / 50));
_root.green._yscale = _root.green._yscale + (this._yscale / 50);
}
if (_root.eatcount >= (20 + _root.level)) {
if ((_root.level % 2) == 1) {
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("level" + _root.level);
_root.onemessage._visible = true;
} else if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
} else if ((!_root.bossIn) && (_root.gameData.gamelevel != "BONUS")) {
_root.callboss();
}
} else {
_root.eatcount++;
_root.gameData.progress.progressbar._xscale = (_root.eatcount / (20 + _root.level)) * 100;
}
} else if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
if (_root.players == "twoplayerco") {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else if (_root.players == "oneplayer") {
_root.pausedd = true;
_root.onemessage.gotoAndStop("gameover");
_root.onemessage._visible = true;
} else {
_root.green.removeMovieClip();
if (_root.bluelife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
}
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
break;
}
i++;
}
} else if (this.hitTest(_root.blue)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if ((this._yscale < _root.blue._yscale) && (_root.blue.blinktimer == 0)) {
_root.blue.alien.alien.gotoAndPlay(50);
_root.callenemy(this.level);
_root.updateScore(this._yscale, "blue");
_root.blueeat1.val = _root.blueeat2.val;
_root.blueeat1.checked = _root.blueeat2.checked;
_root.blueeat2.val = _root.blueeat3.val;
_root.blueeat2.checked = _root.blueeat3.checked;
_root.blueeat3.val = _root.blueeat4.val;
_root.blueeat3.checked = _root.blueeat4.checked;
_root.blueeat4.val = _root.blueeat5.val;
_root.blueeat4.checked = _root.blueeat5.checked;
_root.blueeat5.val = getTimer();
_root.blueeat5.checked = false;
if ((_root.blueeat5.val - _root.blueeat1.val) < 3000) {
_root.gameData.bluedisplay.gotoAndPlay("5xbonus");
_root.updateScore(5000, "blue");
_root.blueeat1.val = 0;
_root.blueeat1.checked = false;
_root.blueeat2.val = 0;
_root.blueeat2.checked = false;
_root.blueeat3.val = 0;
_root.blueeat3.checked = false;
_root.blueeat4.val = 0;
_root.blueeat4.checked = false;
_root.blueeat5.val = 0;
_root.blueeat5.checked = false;
} else if (((((_root.blueeat5.val - _root.blueeat3.val) < 2000) && (!_root.blueeat5.checked)) && (!_root.blueeat4.checked)) && (!_root.blueeat3.checked)) {
_root.gameData.bluedisplay.gotoAndPlay("3xbonus");
_root.updateScore(3000, "blue");
_root.blueeat3.checked = true;
_root.blueeat4.checked = true;
_root.blueeat5.checked = true;
}
if (_root.gameData.gamelevel != "BONUS") {
_root.blue._xscale = _root.blue._xscale + ((Math.abs(_root.blue._xscale) / _root.blue._xscale) * (this._yscale / 50));
_root.blue._yscale = _root.blue._yscale + (this._yscale / 50);
}
if (_root.eatcount >= (20 + _root.level)) {
if ((_root.level % 2) == 1) {
_root.pausedd = true;
if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else if (_root.players == "twoplayervs") {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
} else if ((!_root.bossIn) && (_root.gameData.gamelevel != "BONUS")) {
_root.callboss();
}
} else {
_root.eatcount++;
_root.gameData.progress.progressbar._xscale = (_root.eatcount / (20 + _root.level)) * 100;
}
} else if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.allsounds.effects.eaten.start();
if (_root.players == "twoplayerco") {
if (_root.greenlife <= 0) {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
} else if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
if (_root.greenlife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
break;
}
i++;
}
}
} else if (((((this._x < (-this._width)) || (this._x > (600 + this._width))) || (this._y < (-this._width))) || (this._y > (400 + this._width))) && (this.wasIn)) {
_root.callenemy(this.level);
}
}
};
}
function greenblink() {
_root.green.blinktimer--;
if (_root.green._visible) {
_root.green._visible = false;
} else {
_root.green._visible = true;
}
if (_root.green.blinktimer == 0) {
_root.green._visible = true;
clearInterval(_root.greeninterval);
}
}
function blueblink() {
_root.blue.blinktimer--;
if (_root.blue._visible) {
_root.blue._visible = false;
} else {
_root.blue._visible = true;
}
if (_root.blue.blinktimer == 0) {
_root.blue._visible = true;
clearInterval(_root.blueinterval);
}
}
function callboss() {
_root.gameData.bosslife._visible = true;
_root.gameData.bosslife.bosslifebar._xscale = 100;
trace("boss" + _root.level);
_root.bossIn = true;
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.start();
_root.allsounds.music.bossmusic.onSoundComplete = function () {
_root.allsounds.music.bossmusic.start();
};
_root.boss = _root.attachMovie("boss" + _root.level, "boss", 500);
_root.boss.life = 2 + (_root.level / 2);
side = random(4);
if (side == 0) {
_root.boss._x = -150;
_root.boss._y = random(400);
} else if (side == 1) {
_root.boss._x = random(600);
_root.boss._y = -150;
} else if (side == 2) {
_root.boss._x = 750;
_root.boss._y = random(400);
} else {
_root.boss._x = random(600);
_root.boss._y = 550;
}
_root.boss.speed = Math.max(_root.level / 8, 0.75);
_root.boss.onEnterFrame = function () {
if ((this._rotation > 90) || (this._rotation < -90)) {
if (this.enem._currentframe < 500) {
this.gotoAndStop(2);
}
} else if (this.enem._currentframe < 500) {
this.gotoAndStop(1);
}
if (!_root.pausedd) {
for (i in _root.greenflamesonstage) {
if (this.hitTest(_root.greenflamesonstage[i])) {
_root.greenflamesonstage[i].removeMovieClip();
_root.updateScore(5000, "green");
this.life--;
_root.gameData.bosslife.bosslifebar._xscale = (this.life / (2 + (_root.level / 2))) * 100;
if (this.life <= 0) {
_root.gameData.bosslife._visible = false;
this.enem.gotoAndPlay(500);
this.speed = 0;
} else {
this.enem.highlite.gotoAndPlay(this.enem._currentframe);
}
found = false;
j = 0;
while (j < (_root.greenflamesonstage.length - 1)) {
if (_root.greenflamesonstage[j] == _root.greenflamesonstage[i]) {
found = true;
}
if (found) {
_root.greenflamesonstage[j] = _root.greenflamesonstage[j + 1];
}
j++;
}
_root.greenflamesonstage.pop();
}
}
for (i in _root.blueflamesonstage) {
if (this.hitTest(_root.blueflamesonstage[i])) {
_root.blueflamesonstage[i].removeMovieClip();
_root.updateScore(5000, "blue");
this.life--;
_root.gameData.bosslife.bosslifebar._xscale = (this.life / (2 + (_root.level / 2))) * 100;
if (this.life <= 0) {
_root.gameData.bosslife._visible = false;
this.enem.gotoAndPlay(500);
this.speed = 0;
} else {
this.enem.highlite.gotoAndPlay(this.enem._currentframe);
}
found = false;
j = 0;
while (j < (_root.blueflamesonstage.length - 1)) {
if (_root.blueflamesonstage[j] == _root.blueflamesonstage[i]) {
found = true;
}
if (found) {
_root.blueflamesonstage[j] = _root.blueflamesonstage[j + 1];
}
j++;
}
_root.blueflamesonstage.pop();
}
}
hitting = 0;
if (this.hitTest(_root.green)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if ((Math.abs(this._x - _root.green._x) < 10) && (Math.abs(this._y - _root.green._y) < 10)) {
hitting = 1;
}
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
_root.allsounds.effects.eaten.start();
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
if (_root.greenlife <= 0) {
_root.green.removeMovieClip();
if (_root.blue._x == undefined) {
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("gameover");
_root.onemessage._visible = true;
} else {
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
}
}
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
}
i++;
}
}
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 10) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if ((Math.abs(this._x - _root.blue._x) < 10) && (Math.abs(this._y - _root.blue._y) < 10)) {
hitting = 1;
}
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.allsounds.effects.eaten.start();
if (_root.players == "twoplayerco") {
if (_root.greenlife <= 0) {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
} else if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
if (_root.greenlife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
}
i++;
}
}
if (hitting == 0) {
if (_root.blue._x == undefined) {
this._rotation = Math.atan2(_root.green._y - this._y, _root.green._x - this._x) / (Math.PI/180);
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
} else if (_root.green._x == undefined) {
this._rotation = Math.atan2(_root.blue._y - this._y, _root.blue._x - this._x) / (Math.PI/180);
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
} else if (Math.sqrt(Math.pow(this._x - _root.green._x, 2) + Math.pow(this._y - _root.green._y, 2)) < Math.sqrt(Math.pow(this._x - _root.blue._x, 2) + Math.pow(this._y - _root.blue._y, 2))) {
this._rotation = Math.atan2(_root.green._y - this._y, _root.green._x - this._x) / (Math.PI/180);
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
} else {
this._rotation = Math.atan2(_root.blue._y - this._y, _root.blue._x - this._x) / (Math.PI/180);
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
}
}
}
};
}
if (_root.firelevel == 0) {
_root.gameData.greenbonus.fire.gotoAndStop(1);
}
_root.gameData.gotoAndStop(_root.players);
_root.gameData.bosslife._visible = false;
_root.bossIn = false;
if (_root.gameload) {
_root.greenlife = _root.loadlife;
_root.greenfirelevel = _root.loadfire;
if (_root.loadlevel == "BONUS1") {
_root.level = 4;
} else if (_root.loadlevel == "BONUS2") {
_root.level = 8;
} else {
_root.level = _root.loadlevel;
}
_root.gameData.greenbonus.fire.gotoAndStop(1 + (_root.loadfire > 0));
_root.gameData.greenbonus.fire.fire = "x" + _root.greenfirelevel;
_root.gameData.greenbonus.shield.gotoAndStop(_root.loadshield);
_root.gameData.greenbonus.speed.gotoAndStop(_root.loadspeed);
if (_root.loadspeed == 2) {
_root.green.maxspeed = (_root.green.rotation = 14 - (_root.level / 10));
_root.green.highspeed = 1200;
}
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
} else {
_root.greenlife = 3;
_root.bluelife = 3;
_root.greenfirelevel = 0;
_root.bluefirelevel = 0;
_root.level = 0;
_root.gameData.greenbonus.fire.gotoAndStop(2);
_root.gameData.greenbonus.fire.fire = "x" + _root.greenfirelevel;
_root.gameData.greenbonus.shield.gotoAndStop("no");
_root.gameData.greenbonus.speed.gotoAndStop("no");
_root.gameData.life.life = "x3";
_root.gameData.greenlife.lifecount.life = "x3";
}
_root.eat1 = new Object();
_root.eat1.val = 0;
_root.eat1.checked = false;
_root.eat2 = new Object();
_root.eat2.val = 0;
_root.eat2.checked = false;
_root.eat3 = new Object();
_root.eat3.val = 0;
_root.eat3.checked = false;
_root.eat4 = new Object();
_root.eat4.val = 0;
_root.eat4.checked = false;
_root.eat5 = new Object();
_root.eat5.val = 0;
_root.eat5.checked = false;
_root.blueeat1 = new Object();
_root.blueeat1.val = 0;
_root.blueeat1.checked = false;
_root.blueeat2 = new Object();
_root.blueeat2.val = 0;
_root.blueeat2.checked = false;
_root.blueeat3 = new Object();
_root.blueeat3.val = 0;
_root.blueeat3.checked = false;
_root.blueeat4 = new Object();
_root.blueeat4.val = 0;
_root.blueeat4.checked = false;
_root.blueeat5 = new Object();
_root.blueeat5.val = 0;
_root.blueeat5.checked = false;
_root.greenscore = 0;
_root.bluescore = 0;
_root.greenflamesonstage = new Array();
_root.blueflamesonstage = new Array();
_root.gameData.bluebonus.fire.gotoAndStop(2);
_root.gameData.bluebonus.fire.fire = "x" + _root.bluefirelevel;
_root.gameData.bluebonus.shield.gotoAndStop("no");
_root.gameData.bluebonus.speed.gotoAndStop("no");
_root.gameData.gamelevel = "";
_root.gameData.greenscore = "0000000";
_root.gameData.bluescore = "0000000";
_root.gameData.bluelife.lifecount.life = "x3";
Symbol 4 MovieClip [star] Frame 120
this._x = random(600);
this._y = random(400);
Symbol 17 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 20 MovieClip Frame 1
function checkLoaded() {
if (loaderClip.startUpdate.toString() == "[type Function]") {
clearInterval(id);
loadComplete();
}
}
function loadComplete() {
loaderClip.redirectURL = _root.MMredirectURL;
loaderClip.MMplayerType = _root.MMplayerType;
loaderClip.MMdoctitle = _root.MMdoctitle;
loaderClip.startUpdate();
}
function installStatus(statusValue) {
if (statusValue == "Download.Complete") {
_root.gotoAndStop("succes", "go");
} else if (statusValue == "Download.Cancelled") {
gotoAndStop ("bug");
} else if (statusValue == "Download.Failed") {
gotoAndStop ("bug");
}
}
System.security.allowDomain("fpdownload.macromedia.com");
var cacheBuster = Math.random();
var updateSWF = ("http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?" + cacheBuster);
loaderClip.loadMovie(updateSWF);
var id = setInterval(checkLoaded, 10);
Symbol 33 MovieClip Frame 96
stop();
Symbol 59 MovieClip Frame 1
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.start(0, 9999);
Symbol 59 MovieClip Frame 2
stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy1.start();
_root.allsounds.music.galaxy1.onSoundComplete = function () {
_root.allsounds.music.galaxy1.start();
};
Symbol 59 MovieClip Frame 3
stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy1.start();
_root.allsounds.music.galaxy1.onSoundComplete = function () {
_root.allsounds.music.galaxy1.start();
};
Symbol 59 MovieClip Frame 4
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy2.start();
_root.allsounds.music.galaxy2.onSoundComplete = function () {
_root.allsounds.music.galaxy2.start();
};
Symbol 59 MovieClip Frame 5
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy2.start();
_root.allsounds.music.galaxy2.onSoundComplete = function () {
_root.allsounds.music.galaxy2.start();
};
Symbol 59 MovieClip Frame 6
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy3.start();
_root.allsounds.music.galaxy3.onSoundComplete = function () {
_root.allsounds.music.galaxy3.start();
};
Symbol 59 MovieClip Frame 7
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy3.start();
_root.allsounds.music.galaxy3.onSoundComplete = function () {
_root.allsounds.music.galaxy3.start();
};
Symbol 59 MovieClip Frame 8
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy4.start();
_root.allsounds.music.galaxy4.onSoundComplete = function () {
_root.allsounds.music.galaxy4.start();
};
Symbol 59 MovieClip Frame 9
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy4.start();
_root.allsounds.music.galaxy4.onSoundComplete = function () {
_root.allsounds.music.galaxy4.start();
};
Symbol 59 MovieClip Frame 10
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy5.start();
_root.allsounds.music.galaxy5.onSoundComplete = function () {
_root.allsounds.music.galaxy5.start();
};
Symbol 59 MovieClip Frame 11
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy3.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy5.start();
_root.allsounds.music.galaxy5.onSoundComplete = function () {
_root.allsounds.music.galaxy5.start();
};
Symbol 59 MovieClip Frame 12
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy3.start();
_root.allsounds.music.galaxy3.onSoundComplete = function () {
_root.allsounds.music.galaxy3.start();
};
Symbol 59 MovieClip Frame 13
stop();
_root.allsounds.music.galaxy1.stop();
_root.allsounds.music.galaxy2.stop();
_root.allsounds.music.galaxy4.stop();
_root.allsounds.music.galaxy5.stop();
_root.allsounds.music.bossmusic.stop();
_root.allsounds.music.menumusic.stop();
_root.allsounds.music.galaxy3.start();
_root.allsounds.music.galaxy3.onSoundComplete = function () {
_root.allsounds.music.galaxy3.start();
};
Symbol 64 Button
on (release) {
_root.gameload = false;
gotoAndStop ("play");
}
on (rollOver) {
green.goal = (blue.goal = newgame._y);
}
Symbol 66 Button
on (release) {
loadgamemc._visible = true;
}
on (rollOver) {
green.goal = (blue.goal = loadgame._y);
}
Symbol 68 Button
on (release) {
gotoAndStop ("options");
}
on (rollOver) {
green.goal = (blue.goal = options._y);
}
Symbol 70 Button
on (release) {
gotoAndStop ("instructions");
}
on (rollOver) {
green.goal = (blue.goal = instructions._y);
}
Symbol 72 Button
on (release) {
getURL ("http://www.mofunzone.com/game_scores/hungry_space_2/highscores.shtml", "_blank");
}
on (rollOver) {
green.goal = (blue.goal = high._y);
}
Symbol 74 Button
on (rollOver) {
green.goal = (blue.goal = moregames._y);
}
on (release) {
getURL ("http://www.MoFunZone.com", "_blank");
}
Symbol 86 MovieClip Frame 1
stop();
Symbol 86 MovieClip Frame 44
gotoAndStop (1);
Symbol 86 MovieClip Frame 45
gotoAndStop (1);
Symbol 86 MovieClip Frame 46
gotoAndStop (1);
Symbol 86 MovieClip Frame 47
gotoAndStop (1);
Symbol 86 MovieClip Frame 48
gotoAndStop (1);
Symbol 86 MovieClip Frame 49
gotoAndStop (1);
Symbol 86 MovieClip Frame 50
_root.allsounds.effects.eat.start();
Symbol 86 MovieClip Frame 64
gotoAndStop (1);
Symbol 88 MovieClip Frame 1
stop();
Symbol 88 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 39
gotoAndPlay (1);
Symbol 100 MovieClip Frame 41
gotoAndPlay (1);
Symbol 100 MovieClip Frame 43
gotoAndPlay (1);
Symbol 100 MovieClip Frame 45
gotoAndPlay (1);
Symbol 100 MovieClip Frame 47
gotoAndPlay (1);
Symbol 100 MovieClip Frame 49
gotoAndPlay (1);
Symbol 100 MovieClip Frame 50
_root.allsounds.effects.eat.start();
Symbol 100 MovieClip Frame 64
gotoAndPlay (1);
Symbol 101 MovieClip Frame 1
stop();
Symbol 101 MovieClip Frame 2
stop();
Symbol 108 Button
on (release) {
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
_root.goodcode = true;
if ((levelcode.length != 7) && (levelcode.length != 8)) {
_root.goodcode = false;
} else {
if (levelcode.length == 8) {
if (levelcode.substr(7, 1) == " ") {
levelcode = levelcode.substr(0, 7);
} else {
_root.goodcode = false;
}
}
switch (levelcode.substr(0, 2)) {
case "JH" :
_root.loadlevel = 1;
break;
case "jh" :
_root.loadlevel = 1;
break;
case "TR" :
_root.loadlevel = 2;
break;
case "tr" :
_root.loadlevel = 2;
break;
case "OP" :
_root.loadlevel = 3;
break;
case "op" :
_root.loadlevel = 3;
break;
case "FN" :
_root.loadlevel = 4;
break;
case "fn" :
_root.loadlevel = 4;
break;
case "AZ" :
_root.loadlevel = 5;
break;
case "az" :
_root.loadlevel = 5;
break;
case "PB" :
_root.loadlevel = 6;
break;
case "pb" :
_root.loadlevel = 6;
break;
case "VT" :
_root.loadlevel = 7;
break;
case "vt" :
_root.loadlevel = 7;
break;
case "ER" :
_root.loadlevel = 8;
break;
case "er" :
_root.loadlevel = 8;
break;
case "WS" :
_root.loadlevel = 9;
break;
case "ws" :
_root.loadlevel = 9;
break;
case "BO" :
_root.loadlevel = "BONUS1";
break;
case "bo" :
_root.loadlevel = "BONUS1";
break;
case "OB" :
_root.loadlevel = "BONUS2";
break;
case "ob" :
_root.loadlevel = "BONUS2";
break;
default :
_root.goodcode = false;
}
if (_root.goodcode) {
i = 1;
while (i < 10) {
if ((levelcode.substr(2, 2) == lifearray[i]) || (levelcode.substr(2, 2) == lifearray[i].toLowerCase())) {
_root.loadlife = i;
_root.goodcode = true;
break;
}
_root.goodcode = false;
i++;
}
if (_root.goodcode) {
i = 0;
while (i < 10) {
if ((levelcode.substr(4, 1) == firearray[i]) || (levelcode.substr(4, 1) == firearray[i].toLowerCase())) {
_root.loadfire = i;
_root.goodcode = true;
break;
}
_root.goodcode = false;
i++;
}
if (_root.goodcode) {
if ((levelcode.substr(5, 1) == "V") || (levelcode.substr(5, 1) == "v")) {
_root.loadshield = 1;
} else if ((levelcode.substr(5, 1) == "W") || (levelcode.substr(5, 1) == "w")) {
_root.loadshield = 2;
} else {
_root.goodcode = false;
}
if (_root.goodcode) {
if ((levelcode.substr(6, 1) == "S") || (levelcode.substr(6, 1) == "s")) {
_root.loadspeed = 1;
} else if ((levelcode.substr(6, 1) == "F") || (levelcode.substr(6, 1) == "f")) {
_root.loadspeed = 2;
} else {
_root.goodcode = false;
}
}
}
}
}
}
trace(_root.goodcode);
if (_root.goodcode) {
_root.bonustimer = -600000;
_root.players = "oneplayer";
_root.gameload = true;
_root.gotoAndStop("ingame");
} else {
badcode.gotoAndPlay(2);
}
}
Symbol 110 Button
on (release) {
_root.menumc.loadgamemc._visible = false;
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 119 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 121 Button
on (release) {
_root.players = "oneplayer";
_root.gotoAndStop("ingame");
}
on (rollOver) {
green.goal = (blue.goal = oneplayer._y);
}
Symbol 123 Button
on (release) {
_root.players = "twoplayerco";
_root.gotoAndStop("ingame");
}
on (rollOver) {
green.goal = (blue.goal = twoplayerco._y);
}
Symbol 125 Button
on (release) {
_root.players = "twoplayervs";
_root.gotoAndStop("ingame");
}
on (rollOver) {
green.goal = (blue.goal = twoplayervs._y);
}
Symbol 127 Button
on (release) {
gotoAndStop ("main");
}
on (rollOver) {
green.goal = (blue.goal = back._y);
}
Symbol 133 MovieClip Frame 1
gotoAndStop(_root.greenstyle);
Symbol 133 MovieClip Frame 2
stop();
go.onRelease = function () {
nextFrame();
};
if (_root.bluestyle == "style2") {
_root.blue.speedx = _root.blue.speed * Math.cos((Math.PI/180) * _root.blue._rotation);
_root.blue.speedy = _root.blue.speed * Math.sin((Math.PI/180) * _root.blue._rotation);
_root.blue.alien.gotoAndStop(1);
_root.blue._rotation = 0;
if (_root.blue.speedx < 0) {
_root.blue._xscale = -1 * Math.abs(_root.blue._xscale);
} else {
_root.blue._xscale = Math.abs(_root.blue._xscale);
}
_root.bluestyle = "style1";
}
Symbol 133 MovieClip Frame 3
stop();
back.onRelease = function () {
prevFrame();
};
if (_root.bluestyle == "style1") {
_root.blue.speed = Math.sqrt(Math.pow(_root.blue.speedx, 2) + Math.pow(_root.blue.speedy, 2));
_root.blue._rotation = Math.atan2(_root.blue.speedy, _root.blue.speedx) / (Math.PI/180);
_root.blue._xscale = Math.abs(_root.blue._xscale);
if ((this._rotation > 90) || (this._rotation < -90)) {
this.alien.gotoAndStop(2);
} else {
this.alien.gotoAndStop(1);
}
_root.bluestyle = "style2";
}
Symbol 137 MovieClip Frame 1
gotoAndStop(_root.greenstyle);
Symbol 137 MovieClip Frame 2
stop();
go.onRelease = function () {
nextFrame();
};
if (_root.greenstyle == "style2") {
_root.green.speedx = _root.green.speed * Math.cos((Math.PI/180) * _root.green._rotation);
_root.green.speedy = _root.green.speed * Math.sin((Math.PI/180) * _root.green._rotation);
_root.green.alien.gotoAndStop(1);
_root.green._rotation = 0;
if (_root.green.speedx < 0) {
_root.green._xscale = -1 * Math.abs(_root.green._xscale);
} else {
_root.green._xscale = Math.abs(_root.green._xscale);
}
_root.greenstyle = "style1";
}
Symbol 137 MovieClip Frame 3
stop();
back.onRelease = function () {
prevFrame();
};
if (_root.greenstyle == "style1") {
_root.green.speed = Math.sqrt(Math.pow(_root.green.speedx, 2) + Math.pow(_root.green.speedy, 2));
_root.green._rotation = Math.atan2(_root.green.speedy, _root.green.speedx) / (Math.PI/180);
_root.green._xscale = Math.abs(_root.green._xscale);
if ((this._rotation > 90) || (this._rotation < -90)) {
this.alien.gotoAndStop(2);
} else {
this.alien.gotoAndStop(1);
}
_root.greenstyle = "style2";
}
Symbol 142 MovieClip Frame 1
gotoAndStop(_root._quality);
Symbol 142 MovieClip Frame 2
stop();
_root._quality = "LOW";
go.onRelease = function () {
nextFrame();
};
Symbol 142 MovieClip Frame 3
stop();
_root._quality = "MEDIUM";
go.onRelease = function () {
nextFrame();
};
back.onRelease = function () {
prevFrame();
};
Symbol 142 MovieClip Frame 4
stop();
_root._quality = "HIGH";
back.onRelease = function () {
prevFrame();
};
Symbol 145 MovieClip Frame 1
pointer.onPress = function () {
this.startDrag(false, 0, -13.45, 100, -13.45);
};
pointer.onRelease = function () {
this.stopDrag();
};
pointer.onReleaseOutside = function () {
this.stopDrag();
};
Instance of Symbol 131 MovieClip "pointer" in Symbol 145 MovieClip Frame 1
onClipEvent (load) {
this._x = _root.allsounds.music.galaxy1.getVolume();
}
onClipEvent (mouseMove) {
_root.allsounds.effects.eaten.setVolume(this._x);
_root.allsounds.effects.eat.setVolume(this._x);
_root.allsounds.effects.bonus.setVolume(this._x);
_root.allsounds.effects.boom.setVolume(this._x);
_root.allsounds.effects.sboom.setVolume(this._x);
_root.allsounds.effects.flame.setVolume(this._x);
_root.allsounds.music.menumusic.setVolume(this._x);
_root.allsounds.music.galaxy1.setVolume(this._x);
_root.allsounds.music.galaxy2.setVolume(this._x);
_root.allsounds.music.galaxy3.setVolume(this._x);
_root.allsounds.music.galaxy4.setVolume(this._x);
_root.allsounds.music.galaxy5.setVolume(this._x);
_root.allsounds.music.bossmusic.setVolume(this._x);
}
Symbol 146 Button
on (release) {
gotoAndStop ("main");
}
Symbol 148 Button
on (release) {
gotoAndStop ("movement");
}
on (rollOver) {
green.goal = (blue.goal = movem._y);
}
Symbol 150 Button
on (release) {
gotoAndStop ("bonuses");
}
on (rollOver) {
green.goal = (blue.goal = bonus._y);
}
Symbol 152 Button
on (release) {
gotoAndStop ("enemies");
}
on (rollOver) {
green.goal = (blue.goal = enem._y);
}
Symbol 153 Button
on (release) {
gotoAndStop ("main");
}
on (rollOver) {
green.goal = (blue.goal = back._y);
}
Symbol 155 Button
on (release) {
gotoAndStop ("keys");
}
Symbol 156 Button
on (release) {
gotoAndStop ("instructions");
}
Symbol 160 MovieClip [greenalien] Frame 1
stop();
Symbol 160 MovieClip [greenalien] Frame 2
stop();
Symbol 160 MovieClip [greenalien] Frame 3
stop();
Symbol 161 MovieClip [bluealien] Frame 1
stop();
Symbol 161 MovieClip [bluealien] Frame 2
stop();
Symbol 161 MovieClip [bluealien] Frame 3
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 39
gotoAndPlay (1);
Symbol 172 MovieClip Frame 59
_root.callenemy(_parent.level);
Symbol 173 MovieClip [enemy1] Frame 1
stop();
Symbol 173 MovieClip [enemy1] Frame 2
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 39
gotoAndPlay (1);
Symbol 180 MovieClip Frame 59
_root.callenemy(_parent.level);
Symbol 181 MovieClip [enemy2] Frame 1
stop();
Symbol 181 MovieClip [enemy2] Frame 2
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 39
gotoAndPlay (1);
Symbol 188 MovieClip Frame 59
_root.callenemy(_parent.level);
Symbol 189 MovieClip [enemy3] Frame 1
stop();
Symbol 189 MovieClip [enemy3] Frame 2
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 39
gotoAndPlay (1);
Symbol 196 MovieClip Frame 59
_root.callenemy(_parent.level);
Symbol 197 MovieClip [enemy4] Frame 1
stop();
Symbol 197 MovieClip [enemy4] Frame 2
stop();
Symbol 204 MovieClip Frame 1
stop();
Symbol 204 MovieClip Frame 39
gotoAndPlay (1);
Symbol 204 MovieClip Frame 59
_root.callenemy(_parent.level);
Symbol 205 MovieClip [enemy5] Frame 1
stop();
Symbol 205 MovieClip [enemy5] Frame 2
stop();
Symbol 234 Button
on (release) {
gotoAndStop ("instructions");
_root.prevFrame();
}
Symbol 235 MovieClip Frame 1
stop();
_root.logo._visible = true;
Instance of Symbol 88 MovieClip "green" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this.goal = oneplayer._y;
}
onClipEvent (enterFrame) {
this._y = this._y - ((this._y - this.goal) / 10);
}
Instance of Symbol 101 MovieClip "blue" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this.goal = oneplayer._y;
}
onClipEvent (enterFrame) {
this._y = this._y - ((this._y - this.goal) / 10);
}
Instance of Symbol 114 MovieClip "loadgamemc" in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 235 MovieClip Frame 5
stop();
_root.logo._visible = true;
Symbol 235 MovieClip Frame 10
stop();
_root.logo._visible = true;
Symbol 235 MovieClip Frame 15
stop();
_root.logo._visible = true;
Instance of Symbol 88 MovieClip "green" in Symbol 235 MovieClip Frame 15
onClipEvent (load) {
this.goal = oneplayer._y;
}
onClipEvent (enterFrame) {
this._y = this._y - ((this._y - this.goal) / 10);
}
Instance of Symbol 101 MovieClip "blue" in Symbol 235 MovieClip Frame 15
onClipEvent (load) {
this.goal = oneplayer._y;
}
onClipEvent (enterFrame) {
this._y = this._y - ((this._y - this.goal) / 10);
}
Symbol 235 MovieClip Frame 20
stop();
_root.logo._visible = false;
Instance of Symbol 160 MovieClip [greenalien] in Symbol 235 MovieClip Frame 20
onClipEvent (load) {
this.speed = 0;
this.speedx = 0;
this.speedy = 0;
this.acc = 0.1;
this.decc = 100;
this.accc = 0.111111111111111;
this.deccc = 40;
this.maxspeed = (this.rotation = 4);
this.minspeed = 0.01;
}
onClipEvent (enterFrame) {
if (_root.greenstyle == "style2") {
if (Key.isDown(39)) {
this._rotation = this._rotation + this.rotation;
}
if (Key.isDown(37)) {
this._rotation = this._rotation - this.rotation;
}
if (Key.isDown(40)) {
if (this.speed > 0) {
this.speed = this.speed - this.acc;
}
} else if (Key.isDown(38)) {
if (this.speed < this.maxspeed) {
this.speed = this.speed + this.acc;
}
} else if (this.speed > this.minspeed) {
this.speed = this.speed - (this.speed / this.decc);
} else {
this.speed = 0;
}
if (Key.isDown(13)) {
_root.greencallFlame(this._rotation, this._xscale);
}
if ((this._rotation > 90) || (this._rotation < -90)) {
this.alien.gotoAndStop(2);
} else {
this.alien.gotoAndStop(1);
}
this._xscale = Math.abs(this._xscale);
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
this.alien.alien.gotoAndPlay(this.alien.alien._currentframe + Math.floor(this.speed / 2));
if (this._x < 15) {
this._x = 584;
} else if (this._x > 585) {
this._x = 16;
}
if (this._y < 80) {
this._y = 309;
}
if (this._y > 310) {
this._y = 81;
}
} else {
this.gotoAndStop(1);
if (Key.isDown(39)) {
this._xscale = Math.abs(this._xscale);
if (this.speedx < this.maxspeed) {
this.speedx = this.speedx + this.acc;
}
} else if (this.speedx > 0) {
this.speedx = this.speedx - (this.speedx / this.decc);
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(37)) {
this._xscale = -Math.abs(this._xscale);
if (this.speedx > (-this.maxspeed)) {
this.speedx = this.speedx - this.acc;
}
} else if (this.speedx < 0) {
this.speedx = this.speedx + ((-this.speedx) / this.decc);
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(38)) {
if (this.speedy > (-this.maxspeed)) {
this.speedy = this.speedy - this.acc;
}
} else if (this.speedy < 0) {
this.speedy = this.speedy + ((-this.speedy) / this.decc);
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
if (Key.isDown(40)) {
if (this.speedy < this.maxspeed) {
this.speedy = this.speedy + this.acc;
}
} else if (this.speedy > 0) {
this.speedy = this.speedy - (this.speedy / this.decc);
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
if (Key.isDown(13)) {
if (this._xscale > 0) {
_root.greencallFlame(0, this._xscale);
} else {
_root.greencallFlame(180, this._xscale);
}
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
this.alien.alien.gotoAndPlay(this.alien.alien._currentframe + Math.floor(Math.max(Math.abs(this.speedx), Math.abs(this.speedy)) / 2));
if (this._x < 15) {
this._x = 584;
} else if (this._x > 585) {
this._x = 16;
}
if (this._y < 80) {
this._y = 309;
}
if (this._y > 310) {
this._y = 81;
}
}
}
Instance of Symbol 161 MovieClip [bluealien] in Symbol 235 MovieClip Frame 20
onClipEvent (load) {
this.speed = 0;
this.speedx = 0;
this.speedy = 0;
this.acc = 0.1;
this.decc = 100;
this.accc = 0.111111111111111;
this.deccc = 40;
this.maxspeed = (this.rotation = 4);
this.minspeed = 0.01;
}
onClipEvent (enterFrame) {
if (_root.bluestyle == "style2") {
if (Key.isDown(68)) {
this._rotation = this._rotation + this.rotation;
}
if (Key.isDown(65)) {
this._rotation = this._rotation - this.rotation;
}
if (Key.isDown(83)) {
if (this.speed > 0) {
this.speed = this.speed - this.acc;
}
} else if (Key.isDown(87)) {
if (this.speed < this.maxspeed) {
this.speed = this.speed + this.acc;
}
} else if (this.speed > this.minspeed) {
this.speed = this.speed - (this.speed / this.decc);
} else {
this.speed = 0;
}
if (Key.isDown(16)) {
_root.bluecallFlame(this._rotation, this._xscale);
}
if ((this._rotation > 90) || (this._rotation < -90)) {
this.alien.gotoAndStop(2);
} else {
this.alien.gotoAndStop(1);
}
this._xscale = Math.abs(this._xscale);
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
this.alien.alien.gotoAndPlay(this.alien.alien._currentframe + Math.floor(this.speed / 2));
if (this._x < 15) {
this._x = 584;
} else if (this._x > 585) {
this._x = 16;
}
if (this._y < 80) {
this._y = 309;
}
if (this._y > 310) {
this._y = 81;
}
} else {
this.gotoAndStop(1);
if (Key.isDown(68)) {
this._xscale = Math.abs(this._xscale);
if (this.speedx < this.maxspeed) {
this.speedx = this.speedx + this.acc;
}
} else if (this.speedx > 0) {
this.speedx = this.speedx - (this.speedx / this.decc);
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(65)) {
this._xscale = -Math.abs(this._xscale);
if (this.speedx > (-this.maxspeed)) {
this.speedx = this.speedx - this.acc;
}
} else if (this.speedx < 0) {
this.speedx = this.speedx + ((-this.speedx) / this.decc);
if ((this.speedx > (-this.minspeed)) && (this.speedx < this.minspeed)) {
this.speedx = 0;
}
}
if (Key.isDown(87)) {
if (this.speedy > (-this.maxspeed)) {
this.speedy = this.speedy - this.acc;
}
} else if (this.speedy < 0) {
this.speedy = this.speedy + ((-this.speedy) / this.decc);
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
if (Key.isDown(83)) {
if (this.speedy < this.maxspeed) {
this.speedy = this.speedy + this.acc;
}
} else if (this.speedy > 0) {
this.speedy = this.speedy - (this.speedy / this.decc);
if ((this.speedy > (-this.minspeed)) && (this.speedy < this.minspeed)) {
this.speedy = 0;
}
}
if (Key.isDown(16)) {
if (this._xscale > 0) {
_root.bluecallFlame(0, this._xscale);
} else {
_root.bluecallFlame(180, this._xscale);
}
}
this._x = this._x + this.speedx;
this._y = this._y + this.speedy;
this.alien.alien.gotoAndPlay(this.alien.alien._currentframe + Math.floor(Math.max(Math.abs(this.speedx), Math.abs(this.speedy)) / 2));
if (this._x < 15) {
this._x = 584;
} else if (this._x > 585) {
this._x = 16;
}
if (this._y < 80) {
this._y = 309;
}
if (this._y > 310) {
this._y = 81;
}
}
}
Symbol 235 MovieClip Frame 25
stop();
_root.logo._visible = false;
Symbol 235 MovieClip Frame 30
stop();
_root.logo._visible = false;
Symbol 235 MovieClip Frame 35
_root.logo._visible = false;
stop();
_root.gotoAndStop("keys");
Symbol 237 MovieClip [bonusset] Frame 1
stop();
Symbol 237 MovieClip [bonusset] Frame 2
stop();
Symbol 237 MovieClip [bonusset] Frame 3
stop();
Symbol 237 MovieClip [bonusset] Frame 4
stop();
Symbol 237 MovieClip [bonusset] Frame 5
stop();
Symbol 237 MovieClip [bonusset] Frame 6
stop();
Symbol 237 MovieClip [bonusset] Frame 7
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 255 MovieClip Frame 40
gotoAndPlay (2);
Symbol 255 MovieClip Frame 500
_root.allsounds.effects.boom.start();
Symbol 255 MovieClip Frame 518
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("level" + _root.level);
_root.onemessage._visible = true;
} else if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
_root.bossIn = false;
_root.boss.removeMovieClip();
Symbol 256 MovieClip [boss2] Frame 1
stop();
Symbol 256 MovieClip [boss2] Frame 2
stop();
Instance of Symbol 255 MovieClip "enem" in Symbol 256 MovieClip [boss2] Frame 2
onClipEvent (load) {
if (_root.firstbite) {
_root.smallbite.start();
_root.firstbite = false;
}
}
Symbol 266 MovieClip Frame 1
stop();
Symbol 273 MovieClip Frame 80
gotoAndPlay (1);
Symbol 273 MovieClip Frame 500
_root.allsounds.effects.boom.start();
Symbol 273 MovieClip Frame 518
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("level" + _root.level);
_root.onemessage._visible = true;
} else if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
_root.bossIn = false;
_root.boss.removeMovieClip();
Symbol 274 MovieClip [boss4] Frame 1
stop();
Symbol 274 MovieClip [boss4] Frame 2
stop();
Instance of Symbol 273 MovieClip "enem" in Symbol 274 MovieClip [boss4] Frame 2
onClipEvent (load) {
if (_root.firstbite) {
_root.smallbite.start();
_root.firstbite = false;
}
}
Symbol 284 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 150
if (!_root.pausedd) {
_root.bossflame = _root.attachMovie("freeze_flame", "bossflame", 501);
_root.bossflame._x = _root.boss._x + (80 * Math.cos((Math.PI/180) * _root.boss._rotation));
_root.bossflame._y = _root.boss._y + (20 * Math.sin((Math.PI/180) * _root.boss._rotation));
_root.bossflame._yscale = 20;
_root.bossflame._xscale = -20;
_root.bossflame.speed = 8;
if (_root.blue._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else if (_root.green._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
} else if (Math.sqrt(Math.pow(_root.bossflame._x - _root.green._x, 2) + Math.pow(_root.bossflame._y - _root.green._y, 2)) < Math.sqrt(Math.pow(_root.bossflame._x - _root.blue._x, 2) + Math.pow(_root.bossflame._y - _root.blue._y, 2))) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
}
_root.bossflame.onEnterFrame = function () {
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
_root.bossflame.removeMovieClip();
} else {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if (this.hitTest(_root.green)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
_root.green.freezetimer = 120;
_root.green.gotoAndStop(3);
this.removeMovieClip();
}
i++;
}
}
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
_root.blue.freezetimer = 120;
_root.blue.gotoAndStop(3);
this.removeMovieClip();
}
i++;
}
}
}
};
}
Symbol 304 MovieClip Frame 170
gotoAndPlay (1);
Symbol 304 MovieClip Frame 500
_root.allsounds.effects.boom.start();
Symbol 304 MovieClip Frame 518
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("level" + _root.level);
_root.onemessage._visible = true;
} else if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
_root.bossIn = false;
_root.boss.removeMovieClip();
Symbol 305 MovieClip [boss6] Frame 1
stop();
Symbol 305 MovieClip [boss6] Frame 2
stop();
Instance of Symbol 304 MovieClip "enem" in Symbol 305 MovieClip [boss6] Frame 2
onClipEvent (load) {
if (_root.firstbite) {
_root.smallbite.start();
_root.firstbite = false;
}
}
Symbol 315 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 155
if (!_root.pausedd) {
_root.bossflame = _root.attachMovie("fire", "bossflame", 501);
_root.bossflame._x = _root.boss._x + (80 * Math.cos((Math.PI/180) * _root.boss._rotation));
_root.bossflame._y = _root.boss._y + (20 * Math.sin((Math.PI/180) * _root.boss._rotation));
_root.bossflame._yscale = 20;
_root.bossflame._xscale = -20;
_root.bossflame.speed = 8;
if (_root.blue._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else if (_root.green._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
} else if (Math.sqrt(Math.pow(_root.bossflame._x - _root.green._x, 2) + Math.pow(_root.bossflame._y - _root.green._y, 2)) < Math.sqrt(Math.pow(_root.bossflame._x - _root.blue._x, 2) + Math.pow(_root.bossflame._y - _root.blue._y, 2))) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
}
_root.bossflame.onEnterFrame = function () {
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
_root.bossflame.removeMovieClip();
} else {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if (this.hitTest(_root.green)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
if (_root.players == "twoplayerco") {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else if (_root.players == "twoplayervs") {
_root.green.removeMovieClip();
if (_root.bluelife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.green.removeMovieClip();
_root.pausedd = true;
_root.onemessage.gotoAndStop("gameover");
_root.onemessage._visible = true;
}
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
}
i++;
}
}
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.allsounds.effects.blueeaten.start();
if (_root.players == "twoplayerco") {
if (_root.greenlife <= 0) {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
} else if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
if (_root.greenlife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
}
i++;
}
}
}
};
}
Symbol 346 MovieClip Frame 275
if (!_root.pausedd) {
_root.bossflame = _root.attachMovie("fire", "bossflame", 501);
_root.bossflame._x = _root.boss._x + (80 * Math.cos((Math.PI/180) * _root.boss._rotation));
_root.bossflame._y = _root.boss._y + (20 * Math.sin((Math.PI/180) * _root.boss._rotation));
_root.bossflame._yscale = 20;
_root.bossflame._xscale = -20;
_root.bossflame.speed = 8;
if (_root.blue._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else if (_root.green._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
} else if (Math.sqrt(Math.pow(_root.bossflame._x - _root.green._x, 2) + Math.pow(_root.bossflame._y - _root.green._y, 2)) < Math.sqrt(Math.pow(_root.bossflame._x - _root.blue._x, 2) + Math.pow(_root.bossflame._y - _root.blue._y, 2))) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
}
_root.bossflame.onEnterFrame = function () {
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
_root.bossflame.removeMovieClip();
} else {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if (this.hitTest(_root.green)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
if (_root.players == "twoplayerco") {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else if (_root.players == "twoplayervs") {
_root.green.removeMovieClip();
if (_root.bluelife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.green.removeMovieClip();
_root.pausedd = true;
_root.onemessage.gotoAndStop("gameover");
_root.onemessage._visible = true;
}
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
}
i++;
}
}
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.allsounds.effects.blueeaten.start();
if (_root.players == "twoplayerco") {
if (_root.greenlife <= 0) {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
} else if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
if (_root.greenlife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
}
i++;
}
}
}
};
}
Symbol 346 MovieClip Frame 280
gotoAndPlay (1);
Symbol 346 MovieClip Frame 500
_root.allsounds.effects.boom.start();
Symbol 346 MovieClip Frame 518
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("level" + _root.level);
_root.onemessage._visible = true;
} else if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
_root.bossIn = false;
_root.boss.removeMovieClip();
Symbol 347 MovieClip [boss8] Frame 1
stop();
Symbol 347 MovieClip [boss8] Frame 2
stop();
Instance of Symbol 346 MovieClip "enem" in Symbol 347 MovieClip [boss8] Frame 2
onClipEvent (load) {
if (_root.firstbite) {
_root.smallbite.start();
_root.firstbite = false;
}
}
Symbol 364 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 104
if (!_root.pausedd) {
_root.bossflame = _root.attachMovie("fire", "bossflame", 501);
_root.bossflame._x = _root.boss._x + (80 * Math.cos((Math.PI/180) * _root.boss._rotation));
_root.bossflame._y = _root.boss._y + (20 * Math.sin((Math.PI/180) * _root.boss._rotation));
_root.bossflame._yscale = 20;
_root.bossflame._xscale = -20;
_root.bossflame.speed = 8;
if (_root.blue._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else if (_root.green._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
} else if (Math.sqrt(Math.pow(_root.bossflame._x - _root.green._x, 2) + Math.pow(_root.bossflame._y - _root.green._y, 2)) < Math.sqrt(Math.pow(_root.bossflame._x - _root.blue._x, 2) + Math.pow(_root.bossflame._y - _root.blue._y, 2))) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
}
_root.bossflame.onEnterFrame = function () {
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
_root.bossflame.removeMovieClip();
} else {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if (this.hitTest(_root.green)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
if (_root.players == "twoplayerco") {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else if (_root.players == "twoplayervs") {
_root.green.removeMovieClip();
if (_root.bluelife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.green.removeMovieClip();
_root.pausedd = true;
_root.onemessage.gotoAndStop("gameover");
_root.onemessage._visible = true;
}
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
}
i++;
}
}
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.allsounds.effects.blueeaten.start();
if (_root.players == "twoplayerco") {
if (_root.greenlife <= 0) {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
} else if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
if (_root.greenlife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
}
i++;
}
}
}
};
}
Symbol 391 MovieClip Frame 200
if (!_root.pausedd) {
_root.bossflame = _root.attachMovie("fire", "bossflame", 501);
_root.bossflame._x = _root.boss._x + (80 * Math.cos((Math.PI/180) * _root.boss._rotation));
_root.bossflame._y = _root.boss._y + (20 * Math.sin((Math.PI/180) * _root.boss._rotation));
_root.bossflame._yscale = 20;
_root.bossflame._xscale = -20;
_root.bossflame.speed = 8;
if (_root.blue._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else if (_root.green._x == undefined) {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
} else if (Math.sqrt(Math.pow(_root.bossflame._x - _root.green._x, 2) + Math.pow(_root.bossflame._y - _root.green._y, 2)) < Math.sqrt(Math.pow(_root.bossflame._x - _root.blue._x, 2) + Math.pow(_root.bossflame._y - _root.blue._y, 2))) {
_root.bossflame._rotation = Math.atan2(_root.green._y - _root.bossflame._y, _root.green._x - _root.bossflame._x) / (Math.PI/180);
} else {
_root.bossflame._rotation = Math.atan2(_root.blue._y - _root.bossflame._y, _root.blue._x - _root.bossflame._x) / (Math.PI/180);
}
_root.bossflame.onEnterFrame = function () {
if ((((this._x < -50) || (this._x > (Stage.width + 50))) || (this._y < -50)) || (this._y > (Stage.height + 50))) {
_root.bossflame.removeMovieClip();
} else {
this._x = this._x + (this.speed * Math.cos((Math.PI/180) * this._rotation));
this._y = this._y + (this.speed * Math.sin((Math.PI/180) * this._rotation));
if (this.hitTest(_root.green)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.green.alien["hit" + i]._x;
xyobj.y = _root.green.alien["hit" + i]._y;
_root.green.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.green.blinktimer == 0) {
if (_root.green._currentframe == 2) {
_root.gameData.greenbonus.shield.gotoAndStop(1);
_root.green.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.greenlife--;
_root.gameData.greenlife.lifecount.life = "x" + _root.greenlife;
}
_root.allsounds.effects.eaten.start();
if (_root.greenlife <= 0) {
if (_root.players == "twoplayerco") {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else if (_root.players == "twoplayervs") {
_root.green.removeMovieClip();
if (_root.bluelife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.green.removeMovieClip();
_root.pausedd = true;
_root.onemessage.gotoAndStop("gameover");
_root.onemessage._visible = true;
}
} else {
_root.green.blinktimer = 30;
_root.greeninterval = setInterval(_root.greenblink, 100);
}
}
}
}
i++;
}
}
if (this.hitTest(_root.blue)) {
i = 1;
while (i < 20) {
xyobj = new Object();
xyobj.x = _root.blue.alien["hit" + i]._x;
xyobj.y = _root.blue.alien["hit" + i]._y;
_root.blue.alien.localToGlobal(xyobj);
if (this.hitTest(xyobj.x, xyobj.y, true)) {
if (_root.blue.blinktimer == 0) {
if (_root.blue._currentframe == 2) {
_root.gameData.bluebonus.shield.gotoAndStop(1);
_root.blue.shieldtimer = 50;
} else {
if (_root.players == "twoplayerco") {
_root.greenlife--;
_root.gameData.life.life = "x" + _root.greenlife;
} else {
_root.bluelife--;
_root.gameData.bluelife.lifecount.life = "x" + _root.bluelife;
}
_root.allsounds.effects.blueeaten.start();
if (_root.players == "twoplayerco") {
if (_root.greenlife <= 0) {
_root.blue.removeMovieClip();
_root.green.removeMovieClip();
_root.twomessageco.gotoAndStop("gameover");
_root.twomessageco._visible = true;
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
} else if (_root.bluelife <= 0) {
_root.blue.removeMovieClip();
if (_root.greenlife <= 0) {
_root.twomessagevs.gotoAndStop("gameover");
_root.twomessagevs._visible = true;
}
} else {
_root.blue.blinktimer = 30;
_root.blueinterval = setInterval(_root.blueblink, 100);
}
}
}
}
i++;
}
}
}
};
}
Symbol 391 MovieClip Frame 217
gotoAndPlay (1);
Symbol 391 MovieClip Frame 500
_root.allsounds.effects.boom.start();
Symbol 391 MovieClip Frame 512
_root.allsounds.effects.boom.start();
Symbol 391 MovieClip Frame 536
_root.allsounds.effects.boom.start();
Symbol 391 MovieClip Frame 562
_root.pausedd = true;
if (_root.players == "oneplayer") {
_root.onemessage.gotoAndStop("level" + _root.level);
_root.onemessage._visible = true;
} else if (_root.players == "twoplayerco") {
_root.twomessageco.gotoAndStop("level" + _root.level);
_root.twomessageco._visible = true;
} else {
_root.twomessagevs.gotoAndStop("level" + _root.level);
_root.twomessagevs._visible = true;
}
_root.bossIn = false;
_root.boss.removeMovieClip();
Symbol 392 MovieClip [boss10] Frame 1
stop();
Symbol 392 MovieClip [boss10] Frame 2
stop();
Instance of Symbol 391 MovieClip "enem" in Symbol 392 MovieClip [boss10] Frame 2
onClipEvent (load) {
if (_root.firstbite) {
_root.smallbite.start();
_root.firstbite = false;
}
}
Symbol 397 MovieClip [fire] Frame 1
if (_root._currentframe != 205) {
stop();
}
Symbol 397 MovieClip [fire] Frame 2
_root.allsounds.effects.flame.start();
_root.allsounds.effects.flame.start();
Symbol 397 MovieClip [fire] Frame 11
_root.allsounds.effects.flame.start();
_root.allsounds.effects.flame.start();
Symbol 397 MovieClip [fire] Frame 21
_root.allsounds.effects.flame.start();
_root.allsounds.effects.flame.start();
Symbol 397 MovieClip [fire] Frame 31
gotoAndPlay (11);
Symbol 406 Button
on (release) {
nextFrame();
}
Symbol 408 Button
on (release) {
_root.green.removeMovieClip();
_root.blue.removeMovieClip();
i = 0;
while (i < 120) {
_root["enemy" + i].removeMovieClip();
i++;
}
_root.boss.removeMovieClip();
_root.bonus.removeMovieClip();
_root.bckgrnd.gotoAndStop("menu");
_root.gotoAndStop("menu");
_root.onemessage.removeMovieClip();
_root.twomessageco.removeMovieClip();
_root.twomessagevs.removeMovieClip();
}
Symbol 409 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 413 Button
on (release) {
getURL ("http://www.mofunzone.com", "_blank");
}
Symbol 414 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(1);
}
Symbol 416 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(2);
}
Symbol 420 Button
on (release) {
nextFrame();
}
Symbol 423 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(3);
}
Symbol 427 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(4);
}
Symbol 429 Button
on (release) {
if ((_root.bonustimer != undefined) && (_root.bonustimer > (_root.bonusedtimer - 300000))) {
nextFrame();
} else {
gotoAndStop (56);
}
}
Symbol 432 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate("BONUS");
}
Symbol 434 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(6);
}
Symbol 439 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(7);
}
Symbol 443 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(8);
}
Symbol 445 Button
on (release) {
if ((_root.bonustimer != undefined) && (_root.bonustimer > (_root.bonusedtimer - 600000))) {
nextFrame();
} else {
gotoAndStop (61);
}
}
Symbol 448 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(10);
}
Symbol 458 Button
on (release) {
now = new Date();
getURL ((((("http://www.MoFunZone.com/game_scores/hungry_space_2/highscore.php?" + nickname) + "/") + now.getTime()) + "/") + now.getFullYear(), "_blank");
_root.submitted = true;
gotoAndStop (1);
}
Symbol 459 MovieClip Frame 1
stop();
Symbol 459 MovieClip Frame 2
stop();
Symbol 461 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(5);
}
Symbol 465 Button
on (release) {
_root.onemessage._visible = false;
_root.initiate(9);
}
Symbol 467 Button
on (release) {
_root.onemessage._visible = false;
_root.pausedd = false;
_root.bonustimer = _root.bonustimer + (getTimer() - _root.pausedtime);
}
Symbol 469 Button
on (release) {
getURL ("http://www.mofunzone.com/online_games/hungry_space_2.shtml", "_blank");
}
Symbol 470 Button
on (release) {
getURL ("http://www.MoFunZone.com", "_blank");
}
Symbol 473 MovieClip [messages] Frame 1
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
Symbol 473 MovieClip [messages] Frame 2
stop();
Symbol 473 MovieClip [messages] Frame 5
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "JH";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 10
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "TR";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 15
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "OP";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 20
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
_root.bonusedtimer = getTimer();
code = "FN";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 25
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "AZ";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 30
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "PB";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 35
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "VT";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 40
stop();
if (_root.gameload && (_root.loadbonus)) {
_root.bonusedtimer = getTimer();
}
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
_root.bonusedtimer = getTimer();
code = "ER";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 45
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "WS";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 50
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
Symbol 473 MovieClip [messages] Frame 55
stop();
firearray = ["Z", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "BO";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 60
stop();
firearray = ["", "D", "L", "E", "K", "I", "C", "X", "F", "J"];
lifearray = ["DO", "GT", "LK", "FJ", "BY", "LA", "XO", "WM", "KD", "XX"];
shieldarray = ["V", "W"];
speedarray = ["S", "F"];
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + _root.greenscore;
code = "OB";
levelcode = (((("LEVEL CODE: " + code) + lifearray[_root.greenlife]) + firearray[_root.greenfirelevel]) + shieldarray[_root.gameData.greenbonus.shield._currentframe - 1]) + speedarray[_root.gameData.greenbonus.speed._currentframe - 1];
Symbol 473 MovieClip [messages] Frame 65
stop();
Instance of Symbol 142 MovieClip in Symbol 473 MovieClip [messages] Frame 65
onClipEvent (load) {
this.gotoAndStop("HIGH");
}
Instance of Symbol 137 MovieClip in Symbol 473 MovieClip [messages] Frame 65
onClipEvent (enterFrame) {
this.gotoAndStop(_root.greenstyle);
}
Symbol 473 MovieClip [messages] Frame 70
stop();
greenscore = "SCORE: " + _root.greenscore;
Symbol 475 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(1);
}
Symbol 477 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(2);
}
Symbol 480 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(3);
}
Symbol 483 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(4);
}
Symbol 485 Button
on (release) {
if (_root.loadbonus) {
nextFrame();
} else if (_root.bonustimer > (_root.bonusedtimer - 300000)) {
nextFrame();
} else {
gotoAndStop (56);
}
}
Symbol 487 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate("BONUS");
}
Symbol 488 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(6);
}
Symbol 491 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(7);
}
Symbol 494 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(8);
}
Symbol 496 Button
on (release) {
if (_root.loadbonus) {
nextFrame();
} else if (_root.bonustimer > (_root.bonusedtimer - 600000)) {
nextFrame();
} else {
gotoAndStop (61);
}
}
Symbol 498 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(10);
}
Symbol 503 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(5);
}
Symbol 506 Button
on (release) {
_root.twomessageco._visible = false;
_root.initiate(9);
}
Symbol 508 Button
on (release) {
_root.twomessageco._visible = false;
_root.pausedd = false;
_root.bonustimer = _root.bonustimer + (getTimer() - _root.pausedtime);
}
Symbol 510 MovieClip [twomessageco] Frame 1
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 2
stop();
Symbol 510 MovieClip [twomessageco] Frame 5
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 10
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 15
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 20
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
_root.bonusedtimer = getTimer();
Symbol 510 MovieClip [twomessageco] Frame 25
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 30
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 35
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 40
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
_root.bonusedtimer = getTimer();
Symbol 510 MovieClip [twomessageco] Frame 45
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 50
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 55
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 60
stop();
lifecount.nextFrame();
lifecount.life = "x" + _root.greenlife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 510 MovieClip [twomessageco] Frame 65
stop();
Instance of Symbol 142 MovieClip in Symbol 510 MovieClip [twomessageco] Frame 65
onClipEvent (load) {
this.gotoAndStop("HIGH");
}
Instance of Symbol 137 MovieClip in Symbol 510 MovieClip [twomessageco] Frame 65
onClipEvent (enterFrame) {
this.gotoAndStop(_root.greenstyle);
}
Symbol 510 MovieClip [twomessageco] Frame 70
stop();
greenscore = "SCORE: " + Math.floor(_root.greenscore);
Symbol 513 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(1);
}
Symbol 514 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(2);
}
Symbol 519 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(3);
}
Symbol 522 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(4);
}
Symbol 523 Button
on (release) {
if (_root.loadbonus) {
nextFrame();
} else if (_root.bonustimer > (_root.bonusedtimer - 300000)) {
nextFrame();
} else {
gotoAndStop (56);
}
}
Symbol 526 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate("BONUS");
}
Symbol 527 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(6);
}
Symbol 532 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(7);
}
Symbol 535 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(8);
}
Symbol 536 Button
on (release) {
if (_root.loadbonus) {
nextFrame();
} else if (_root.bonustimer > (_root.bonusedtimer - 600000)) {
nextFrame();
} else {
gotoAndStop (61);
}
}
Symbol 539 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate("BONUS");
}
Symbol 540 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(10);
}
Symbol 547 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(5);
}
Symbol 550 Button
on (release) {
_root.twomessagevs._visible = false;
_root.initiate(9);
}
Symbol 551 Button
on (release) {
_root.twomessagevs._visible = false;
_root.pausedd = false;
_root.bonustimer = _root.bonustimer + (getTimer() - _root.pausedtime);
}
Symbol 554 MovieClip [twomessagevs] Frame 1
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 2
stop();
Symbol 554 MovieClip [twomessagevs] Frame 5
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 10
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 15
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 20
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
_root.bonusedtimer = getTimer();
Symbol 554 MovieClip [twomessagevs] Frame 25
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 30
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 35
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 40
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
_root.bonusedtimer = getTimer();
Symbol 554 MovieClip [twomessagevs] Frame 45
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 50
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 51
stop();
Symbol 554 MovieClip [twomessagevs] Frame 55
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 60
stop();
greenlifecount.nextFrame();
bluelifecount.nextFrame();
greenlifecount.life = "x" + _root.greenlife;
bluelifecount.life = "x" + _root.bluelife;
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 554 MovieClip [twomessagevs] Frame 65
stop();
Instance of Symbol 142 MovieClip in Symbol 554 MovieClip [twomessagevs] Frame 65
onClipEvent (load) {
this.gotoAndStop("HIGH");
}
Instance of Symbol 137 MovieClip in Symbol 554 MovieClip [twomessagevs] Frame 65
onClipEvent (enterFrame) {
this.gotoAndStop(_root.greenstyle);
}
Symbol 554 MovieClip [twomessagevs] Frame 70
stop();
greenscore = "SCORE: " + Math.floor(_root.greenscore);
bluescore = "SCORE: " + Math.floor(_root.bluescore);
Symbol 559 MovieClip [freeze_flame] Frame 1
if (_root._currentframe != 205) {
stop();
}
Symbol 559 MovieClip [freeze_flame] Frame 2
_root.allsounds.effects.flame.start();
_root.allsounds.effects.flame.start();
Symbol 559 MovieClip [freeze_flame] Frame 11
_root.allsounds.effects.flame.start();
_root.allsounds.effects.flame.start();
Symbol 559 MovieClip [freeze_flame] Frame 21
_root.allsounds.effects.flame.start();
_root.allsounds.effects.flame.start();
Symbol 559 MovieClip [freeze_flame] Frame 31
gotoAndPlay (11);
Symbol 592 Button
on (press) {
_root.gleft = "";
_root.active = "gleft";
_root.activeBut = "greenleft";
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 593 Button
on (press) {
_root.gright = "";
_root.active = "gright";
_root.activeBut = "greenright";
_root.gleft = convert(_root.greenleft);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 594 Button
on (press) {
_root.gup = "";
_root.active = "gup";
_root.activeBut = "greenup";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 595 Button
on (press) {
_root.gdown = "";
_root.active = "gdown";
_root.activeBut = "greendown";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 596 Button
on (press) {
_root.gfire = "";
_root.active = "gfire";
_root.activeBut = "greenfireing";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 597 Button
on (press) {
_root.bleft = "";
_root.active = "bleft";
_root.activeBut = "blueleft";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 598 Button
on (press) {
_root.bright = "";
_root.active = "bright";
_root.activeBut = "blueright";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 599 Button
on (press) {
_root.bup = "";
_root.active = "bup";
_root.activeBut = "blueup";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 600 Button
on (press) {
_root.bdown = "";
_root.active = "bdown";
_root.activeBut = "bluedown";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bfire = convert(_root.bluefireing);
}
Symbol 601 Button
on (press) {
_root.bfire = "";
_root.active = "bfire";
_root.activeBut = "bluefireing";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.gpause = convert(_root.greenpause);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
}
Symbol 602 Button
on (press) {
_root.gpause = "";
_root.active = "gpause";
_root.activeBut = "greenpause";
_root.gleft = convert(_root.greenleft);
_root.gright = convert(_root.greenright);
_root.gup = convert(_root.greenup);
_root.gdown = convert(_root.greendown);
_root.gfire = convert(_root.greenfireing);
_root.bleft = convert(_root.blueleft);
_root.bright = convert(_root.blueright);
_root.bup = convert(_root.blueup);
_root.bdown = convert(_root.bluedown);
_root.bfire = convert(_root.bluefireing);
}
Symbol 603 Button
on (release) {
_root.submitted = false;
_root.presentBonuses._visible = false;
if (_root.players == "oneplayer") {
_root.attachMovie("messages", "onemessage", 10000);
if (_root.gameload) {
if (_root.loadlevel == "BONUS1") {
_root.onemessage.gotoAndStop("bonus1");
} else if (_root.loadlevel == "BONUS2") {
_root.onemessage.gotoAndStop("bonus2");
} else {
_root.onemessage.gotoAndStop("level" + _root.loadlevel);
}
}
_root.onemessage._x = Stage.width / 2;
_root.onemessage._y = Stage.height / 2;
_root.onemessage.onEnterFrame = function () {
if (Key.isDown(_root.greenpause) && (!_root.pausedd)) {
trace(_root.green._xscale);
_root.pausedtime = getTimer();
_root.pausedd = true;
_root.onemessage.gotoAndStop("pause");
_root.onemessage._visible = true;
}
if (((!_root.pausedd) && (_root.gameData.gamelevel == "BONUS")) && (_root.level == 4)) {
_root.gameData.progress.progressbar._xscale = ((getTimer() - _root.bonustimer) / 60000) * 100;
if (_root.gameData.progress.progressbar._xscale >= 100) {
_root.onemessage.gotoAndStop("bonus1");
_root.onemessage._visible = true;
_root.pausedd = true;
}
}
if (((!_root.pausedd) && (_root.gameData.gamelevel == "BONUS")) && (_root.level == 8)) {
_root.gameData.progress.progressbar._xscale = ((getTimer() - _root.bonustimer) / 60000) * 100;
if (_root.gameData.progress.progressbar._xscale >= 100) {
_root.onemessage.gotoAndStop("bonus2");
_root.onemessage._visible = true;
_root.pausedd = true;
}
}
};
} else if (_root.players == "twoplayerco") {
_root.attachMovie("twomessageco", "twomessageco", 10000);
_root.twomessageco._x = Stage.width / 2;
_root.twomessageco._y = Stage.height / 2;
_root.twomessageco.onEnterFrame = function () {
if (Key.isDown(_root.greenpause) && (!_root.pausedd)) {
_root.pausedtime = getTimer();
_root.pausedd = true;
_root.twomessageco.gotoAndStop("pause");
_root.twomessageco._visible = true;
}
if (((!_root.pausedd) && (_root.gameData.gamelevel == "BONUS")) && (_root.level == 4)) {
_root.gameData.progress.progressbar._xscale = ((getTimer() - _root.bonustimer) / 60000) * 100;
if (_root.gameData.progress.progressbar._xscale >= 100) {
_root.twomessageco.gotoAndStop("bonus1");
_root.twomessageco._visible = true;
_root.pausedd = true;
}
}
if (((!_root.pausedd) && (_root.gameData.gamelevel == "BONUS")) && (_root.level == 8)) {
_root.gameData.progress.progressbar._xscale = ((getTimer() - _root.bonustimer) / 60000) * 100;
if (_root.gameData.progress.progressbar._xscale >= 100) {
_root.twomessageco.gotoAndStop("bonus2");
_root.twomessageco._visible = true;
_root.pausedd = true;
}
}
};
} else {
_root.attachMovie("twomessagevs", "twomessagevs", 10000);
_root.twomessagevs._x = Stage.width / 2;
_root.twomessagevs._y = Stage.height / 2;
_root.twomessagevs.onEnterFrame = function () {
if (Key.isDown(_root.greenpause) && (!_root.pausedd)) {
_root.pausedtime = getTimer();
_root.pausedd = true;
_root.twomessagevs.gotoAndStop("pause");
_root.twomessagevs._visible = true;
}
if (((!_root.pausedd) && (_root.gameData.gamelevel == "BONUS")) && (_root.level == 4)) {
_root.gameData.progress.progressbar._xscale = ((getTimer() - _root.bonustimer) / 60000) * 100;
if (_root.gameData.progress.progressbar._xscale >= 100) {
_root.twomessagevs.gotoAndStop("bonus1");
_root.twomessagevs._visible = true;
_root.pausedd = true;
}
}
if (((!_root.pausedd) && (_root.gameData.gamelevel == "BONUS")) && (_root.level == 8)) {
_root.gameData.progress.progressbar._xscale = ((getTimer() - _root.bonustimer) / 60000) * 100;
if (_root.gameData.progress.progressbar._xscale >= 100) {
_root.twomessagevs.gotoAndStop("bonus2");
_root.twomessagevs._visible = true;
_root.pausedd = true;
}
}
};
}
}
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 81
gotoAndStop (1);
Symbol 630 MovieClip Frame 180
gotoAndStop (1);
Symbol 630 MovieClip Frame 280
gotoAndStop (1);
Symbol 630 MovieClip Frame 380
gotoAndStop (1);
Symbol 630 MovieClip Frame 480
gotoAndStop (1);
Symbol 630 MovieClip Frame 580
gotoAndStop (1);
Symbol 630 MovieClip Frame 680
gotoAndStop (1);
Symbol 630 MovieClip Frame 780
gotoAndStop (1);
Symbol 631 MovieClip Frame 1
stop();
Symbol 631 MovieClip Frame 2
stop();
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 2
stop();
Symbol 634 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 2
stop();
Instance of Symbol 634 MovieClip "fire" in Symbol 635 MovieClip Frame 1
onClipEvent (load) {
if (!_root.gameload) {
gotoAndStop (1);
}
}
Symbol 640 MovieClip Frame 1
stop();
Symbol 640 MovieClip Frame 2
stop();
Symbol 646 MovieClip Frame 1
stop();
Symbol 646 MovieClip Frame 2
stop();
Symbol 646 MovieClip Frame 3
stop();
Instance of Symbol 640 MovieClip "bluelife" in Symbol 646 MovieClip Frame 3
onClipEvent (load) {
this.nextFrame();
}