Frame 1
stop();
_root.high = 0;
_root.score = 0;
_root.flames = 2;
_root._quality = "medium";
_root.highsco = SharedObject.getLocal("pumpkin");
Frame 2
_root.gotoAndStop("preloader");
Frame 4
_root.gotoAndStop("title");
Frame 5
function createStar(till) {
i = 0;
while (i < till) {
_root.stars.attachMovie("star" + random(4), "star" + _root.starcount, _root.starcount);
_root.stars["star" + _root.starcount]._x = random(55) * 10;
_root.stars["star" + _root.starcount]._y = random(40) * 10;
_root.stars["star" + _root.starcount]._alpha = random(21) + 50;
_root.starcount++;
i++;
}
}
function flaming(sender) {
sender._y--;
}
function addflame(sender) {
_root.count++;
_root.fire.attachMovie("flare" + random(2), "flare" + _root.flarecount, _root.flarecount);
_root.fire["flare" + _root.flarecount].counter = 0;
_root.fire["flare" + _root.flarecount]._x = sender._x + (random(11) - 5);
_root.fire["flare" + _root.flarecount]._y = sender._y + (random(11) - 5);
_root.flarecount++;
if (_root.flarecount > 500) {
_root.flarecount = 0;
}
}
function addshot(sender) {
_root.canshoot = false;
_root.shots.attachMovie("shot", "pshot", 0);
_root.shots.pshot.ang = sender._rotation;
_root.shots.pshot._x = sender._x;
_root.shots.pshot._y = sender._y;
_root.shots.pshot.xmove = 10 * Math.cos((_root.shots.pshot.ang - 90) * 0.0174);
_root.shots.pshot.ymove = 10 * Math.sin((_root.shots.pshot.ang - 90) * 0.0174);
}
function addmeteor(num) {
i = 0;
while (i < num) {
_root.shots.attachMovie("meteor", "ball" + _root.shotcount, _root.shotcount);
_root.shots["ball" + _root.shotcount].ang = random(361) - 180;
_root.shots["ball" + _root.shotcount]._x = random(550);
_root.shots["ball" + _root.shotcount]._y = random(400);
_root.shots["ball" + _root.shotcount].xmove = 5 * Math.cos((_root.shots["ball" + _root.shotcount].ang - 90) * 0.0174);
_root.shots["ball" + _root.shotcount].ymove = 5 * Math.sin((_root.shots["ball" + _root.shotcount].ang - 90) * 0.0174);
_root.shotcount++;
i++;
}
}
function meteorfly(sender) {
sender._x = sender._x + sender.xmove;
sender._y = sender._y + sender.ymove;
if (_root.ship.hitA.hitTest(sender._x, sender._y, true)) {
_root.death();
}
if (sender._x < 0) {
sender._x = 545;
} else if (sender._x > 550) {
sender._x = 5;
}
if (sender._y < 0) {
sender._y = 395;
} else if (sender._y > 400) {
sender._y = 5;
}
}
function addshot2(sender) {
_root.shots.attachMovie("shot2", "ball" + _root.shotcount, _root.shotcount);
_root.shots["ball" + _root.shotcount].ang = ((Math.atan2(_root.ship._y - sender._y, _root.ship._x - sender._x) * Math.PI) * 18) + 90;
_root.shots["ball" + _root.shotcount]._x = sender._x;
_root.shots["ball" + _root.shotcount]._y = sender._y;
_root.shots["ball" + _root.shotcount].xmove = 5 * Math.cos((_root.shots["ball" + _root.shotcount].ang - 90) * 0.0174);
_root.shots["ball" + _root.shotcount].ymove = 5 * Math.sin((_root.shots["ball" + _root.shotcount].ang - 90) * 0.0174);
_root.shotcount++;
}
function shotfly(sender) {
sender._x = sender._x + sender.xmove;
sender._y = sender._y + sender.ymove;
if ((((sender._x > 555) or (sender._x < -5)) or (sender._y > 405)) or (sender._y < -5)) {
_root.canshoot = true;
sender.removeMovieClip();
}
}
function shotfly2(sender) {
sender._x = sender._x + sender.xmove;
sender._y = sender._y + sender.ymove;
if (_root.ship.hitA.hitTest(sender._x, sender._y, true)) {
_root.death();
sender.removeMovieClip();
}
if ((((sender._x > 555) or (sender._x < -5)) or (sender._y > 405)) or (sender._y < -5)) {
sender.removeMovieClip();
}
}
function addlife(sender) {
_root.shots.attachMovie("lifeup", "ball" + _root.shotcount, _root.shotcount);
_root.shots["ball" + _root.shotcount].ang = ((Math.atan2(200 - sender._y, 225 - sender._x) * Math.PI) * 18) + 90;
_root.shots["ball" + _root.shotcount].turn = random(11) - 5;
_root.shots["ball" + _root.shotcount]._x = sender._x;
_root.shots["ball" + _root.shotcount]._y = sender._y;
_root.shots["ball" + _root.shotcount].xmove = 2 * Math.cos((_root.shots["ball" + _root.shotcount].ang - 90) * 0.0174);
_root.shots["ball" + _root.shotcount].ymove = 2 * Math.sin((_root.shots["ball" + _root.shotcount].ang - 90) * 0.0174);
_root.shotcount++;
}
function lifefly(sender) {
sender._x = sender._x + sender.xmove;
sender._y = sender._y + sender.ymove;
sender._rotation = sender._rotation + sender.turn;
if (_root.ship.hitA.hitTest(sender._x, sender._y, true)) {
_root.bonus = new Sound();
_root.score = _root.score + 5;
_root.bonus.attachSound("medikit");
_root.lives++;
_root.bonus.start();
sender.removeMovieClip();
}
if (sender.hitTest(_root.shots.pshot)) {
sender.play();
}
if ((((sender._x > 555) or (sender._x < -5)) or (sender._y > 405)) or (sender._y < -5)) {
sender.removeMovieClip();
}
}
function createGib(sender, no) {
_root.addlife(sender);
_root.needed = _root.needed + no;
i = 0;
while (i < no) {
_root.enemy.attachMovie("pumpkin_part" + random(5), "e" + _root.enemycount, _root.enemycount);
_root.enemy["e" + _root.enemycount]._x = sender._x;
_root.enemy["e" + _root.enemycount]._y = sender._y;
_root.enemy["e" + _root.enemycount].ang = random(361) - 180;
_root.enemy["e" + _root.enemycount].turn = random(11) - 5;
_root.enemy["e" + _root.enemycount].xmove = (xmove = 3 * Math.cos((_root.enemy["e" + _root.enemycount].ang - 90) * 0.0174));
_root.enemy["e" + _root.enemycount].ymove = (ymove = 3 * Math.sin((_root.enemy["e" + _root.enemycount].ang - 90) * 0.0174));
_root.enemycount++;
i++;
}
_root.addsplash(sender);
sender.removeMovieClip();
}
function addsplash(sender) {
_root.smash.attachSound("smash" + (random(5) + 1));
_root.smash.start();
_root.enemy.attachMovie("splash", "e" + _root.enemycount, _root.enemycount);
_root.enemy["e" + _root.enemycount]._x = sender._x;
_root.enemy["e" + _root.enemycount]._y = sender._y;
_root.enemy["e" + _root.enemycount].ang = random(361) - 180;
_root.enemycount++;
}
function pumpkinmove(sender) {
if (_root.flames == 2) {
_root.addflame(sender);
}
sender._x = sender._x + sender.xmove;
sender._y = sender._y + sender.ymove;
sender._rotation = sender._rotation + sender.turn;
if (sender.hitTest(_root.shots.pshot)) {
_root.killed++;
_root.shots.pshot.removeMovieClip();
_root.canshoot = true;
_root.score = _root.score + 10;
_root.addsplash(sender);
sender.removeMovieClip();
}
if (sender._x < 0) {
sender._x = 545;
} else if (sender._x > 550) {
sender._x = 5;
}
if (sender._y < 0) {
sender._y = 395;
} else if (sender._y > 400) {
sender._y = 5;
}
}
function pumpkinmove2(sender) {
if ((sender.timer++) > sender.counter) {
sender.timer = 0;
_root.randomshot(sender);
}
if (_root.flames == 2) {
_root.addflame(sender);
}
sender._x = sender._x + sender.xmove;
sender._y = sender._y + sender.ymove;
sender._rotation = sender._rotation + sender.turn;
if (sender._x < 0) {
sender._x = 545;
} else if (sender._x > 550) {
sender._x = 5;
}
if (sender._y < 0) {
sender._y = 395;
} else if (sender._y > 400) {
sender._y = 5;
}
if (sender.hitTest(_root.shots.pshot)) {
_root.killed++;
_root.shots.pshot.removeMovieClip();
_root.canshoot = true;
_root.score = _root.score + 10;
_root.createGib(sender, random(3) + 2);
}
}
function death() {
_root.score = _root.score - 5;
_root.ship.gotoAndPlay(3);
_root.xmove = 0;
_root.ymove = 0;
_root.turn = 0;
_root.gameon = false;
_root.lives--;
if (_root.lives > 0) {
_root.lives_display.gotoAndStop(_root.lives);
} else {
_root.lives_display.gotoAndStop(4);
}
}
function randomshot(sender) {
if (random(101) < _root.difficulty) {
_root.addshot2(sender);
}
}
function sta(num) {
i = 0;
while (i < num) {
_root.enemy.attachMovie("pumpkin_head" + random(5), "e" + _root.enemycount, _root.enemycount);
_root.enemy["e" + _root.enemycount]._x = random(550);
_root.enemy["e" + _root.enemycount]._y = random(400);
_root.enemy["e" + _root.enemycount]._xscale = 60;
_root.enemy["e" + _root.enemycount]._yscale = 60;
_root.enemy["e" + _root.enemycount].ang = random(361) - 180;
_root.enemy["e" + _root.enemycount].turn = random(11) - 5;
_root.enemy["e" + _root.enemycount].xmove = (xmove = 3 * Math.cos((_root.enemy["e" + _root.enemycount].ang - 90) * 0.0174));
_root.enemy["e" + _root.enemycount].ymove = (ymove = 3 * Math.sin((_root.enemy["e" + _root.enemycount].ang - 90) * 0.0174));
_root.enemy["e" + _root.enemycount].counter = random(15) + 25;
_root.enemy["e" + _root.enemycount].timer = 0;
_root.enemycount++;
i++;
}
}
function init() {
if (_root.highsco.data.po != undefined) {
_root.high = _root.highsco.data.po;
if (_root.score > _root.high) {
_root.high = _root.score;
_root.highsco.data.po = _root.high;
_root.highsco.flush();
}
} else {
_root.highsco.data.po = _root.high;
_root.highsco.flush();
}
_root.score = 0;
}
stop();
_root.smash = new Sound();
_root.lives = 3;
_root.gameon = false;
_root.canshoot = true;
_root.turn = 0;
_root.xmove = 0;
_root.ymove = 0;
_root.flarecount = 0;
_root.shotcount = 1;
_root.starcount = 0;
_root.enemycount = 0;
_root.sfx = new Sound();
_root.lev = 0;
_root.difficulty = 0;
_root.meterorno = 0;
_root.pumpkinno = 0;
_root.stairno = 0;
_root.needed = 0;
_root.killed = 0;
_root.init();
function howsend() {
if (_root.needed == _root.killed) {
_root.ship.gotoAndStop("waiting");
}
}
function levcount() {
_root.lev++;
_root.difficulty = _root.lev * 3;
_root.meterorno = Math.round(Math.floor(_root.lev * 0.5) / 2);
_root.pumpkinno = _root.lev;
_root.stairno = 10 + (20 - _root.lev);
if (_root.stairno < 0) {
_root.stairno = 5;
}
_root.needed = _root.pumpkinno;
_root.killed = 0;
}
Instance of Symbol 81 MovieClip [pumpkin_head2] in Frame 5
onClipEvent (load) {
_root.muzax.stop();
_root.muzax = new Sound();
_root.muzax.attachSound("bgm");
_root.muzax.start();
_root.muzax.onSoundComplete = function () {
_root.muzax.start();
};
}
Instance of Symbol 260 MovieClip "hq" in Frame 6
onClipEvent (load) {
gotoAndStop(_root._quality);
}
Instance of Symbol 270 MovieClip "hq" in Frame 6
onClipEvent (load) {
gotoAndStop(_root.flames + 1);
}
Frame 8
_root.gotoAndStop("title");
Frame 9
_root.levcount();
Instance of Symbol 277 MovieClip "lives_display" in Frame 9
onClipEvent (enterFrame) {
if (_root.lives == 0) {
gotoAndStop (7);
} else if (_root.lives < 6) {
gotoAndStop(_root.lives);
} else if (_root.lives > 5) {
gotoAndStop (6);
}
}
Frame 10
_root.gotoAndStop("title");
Frame 11
_root.canshoot = true;
_root.sta(_root.pumpkinno);
_root.createStar(_root.stairno);
_root.addmeteor(_root.meterorno);
Instance of Symbol 293 MovieClip "ship" in Frame 11
onClipEvent (enterFrame) {
if (_root.gameon) {
if (_root.flames != 0) {
_root.addflame(this);
}
if (this._x < 0) {
this._x = 545;
} else if (this._x > 550) {
this._x = 5;
}
if (this._y < 0) {
this._y = 395;
} else if (this._y > 400) {
this._y = 5;
}
}
}
Instance of Symbol 277 MovieClip "lives_display" in Frame 11
onClipEvent (enterFrame) {
if (_root.lives == 0) {
gotoAndStop (7);
} else if (_root.lives < 6) {
gotoAndStop(_root.lives);
} else if (_root.lives > 5) {
gotoAndStop (6);
}
}
Symbol 6 MovieClip Frame 1
this.dotcount = 0;
i = 0;
while (i < 25) {
if (random(2) == 1) {
this.attachMovie("exp_grey_dot", "dot" + this.dotcount, this.dotcount);
} else {
this.attachMovie("exp_yellow_dot", "dot" + this.dotcount, this.dotcount);
}
this["dot" + this.dotcount]._x = (random(11) - 5) / 2;
this["dot" + this.dotcount]._y = (random(11) - 5) / 2;
this["dot" + this.dotcount].xmove = random(21) - 10;
this["dot" + this.dotcount].ymove = random(17) - 8;
this.dotcount++;
i++;
}
Symbol 6 MovieClip Frame 3
i = 0;
while (i < 15) {
if (random(2) == 1) {
this.attachMovie("exp_grey_dot", "dot" + this.dotcount, this.dotcount);
} else {
this.attachMovie("exp_yellow_dot", "dot" + this.dotcount, this.dotcount);
}
this["dot" + this.dotcount]._x = (random(11) - 5) / 2;
this["dot" + this.dotcount]._y = (random(11) - 5) / 2;
this["dot" + this.dotcount].xmove = random(21) - 10;
this["dot" + this.dotcount].ymove = random(17) - 8;
this.dotcount++;
i++;
}
Symbol 6 MovieClip Frame 5
i = 0;
while (i < 10) {
if (random(2) == 1) {
this.attachMovie("exp_grey_dot", "dot" + this.dotcount, this.dotcount);
} else {
this.attachMovie("exp_yellow_dot", "dot" + this.dotcount, this.dotcount);
}
this["dot" + this.dotcount]._x = (random(11) - 5) / 2;
this["dot" + this.dotcount]._y = (random(11) - 5) / 2;
this["dot" + this.dotcount].xmove = random(21) - 10;
this["dot" + this.dotcount].ymove = random(17) - 8;
this.dotcount++;
i++;
}
Symbol 6 MovieClip Frame 15
stop();
Symbol 8 MovieClip [lifeup] Frame 1
stop();
Instance of Symbol 3 MovieClip in Symbol 8 MovieClip [lifeup] Frame 1
onClipEvent (enterFrame) {
if (_root.ship.hitA.hitTest(this._parent._x, this._parent._y, true)) {
_root.lives++;
this._parent.removeMovieClip();
}
_root.lifefly(this._parent);
}
Symbol 8 MovieClip [lifeup] Frame 16
this.removeMovieClip();
Symbol 35 Button
on (release) {
getURL ("http://www.newgrounds.com", "_blank");
}
Symbol 37 MovieClip Frame 40
stop();
Symbol 49 Button
on (release) {
_root.play();
}
Symbol 50 Button
on (release) {
_root.gotoAndStop("title");
}
Symbol 51 MovieClip Frame 1
function onEnterFrame() {
if (!loaded) {
var _local3 = _root.getBytesLoaded() / _root.getBytesTotal();
if (_local3 >= 1) {
play();
bar._x = initX;
loaded = true;
} else {
bar._x = initX + ((_local3 - 1) * bar._width);
}
}
var _local4 = getTimer() - time;
timeAccum = timeAccum + _local4;
while (timeAccum >= FRAME_TIME) {
var _local2 = 0;
while (_local2 < timeClips.length) {
if (timeClips[_local2]._currentframe < timeClips[_local2]._totalframes) {
timeClips[_local2].nextFrame();
} else {
timeClips[_local2].gotoAndStop(1);
}
_local2++;
}
if (loaded && (_currentframe < _totalframes)) {
nextFrame();
}
timeAccum = timeAccum - FRAME_TIME;
}
time = time + _local4;
}
stop();
_root.stop();
var initX = bar._x;
var time = getTimer();
var FRAME_TIME = 33.3333333333333;
var timeAccum = 0;
var loaded = false;
timeClips = [bargfx, tank.mc0, tank.mc1, tank.mc2, tank.mc3, tank.mc4, tank.mc4.mc0, tank.mc4.mc1, tank.mc4.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc0, tank.mc4.mc0.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc0.mc2, tank.mc4.mc0.mc0.mc0.mc3, tank.mc4.mc0.mc0.mc1, tank.mc4.mc0.mc0.mc2, tank.mc5.mc0];
var i = 0;
while (i < timeClips.length) {
timeClips[i].stop();
i++;
}
Symbol 51 MovieClip Frame 51
Instance of Symbol 3 MovieClip in Symbol 55 MovieClip [pumpkin_part4] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove(this._parent);
if (_root.ship.shit.hitTest(this)) {
_root.killed++;
_root.death();
_root.addsplash(this._parent);
this._parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 58 MovieClip [flare0] Frame 1
onClipEvent (enterFrame) {
_root.flaming(this._parent);
}
Symbol 58 MovieClip [flare0] Frame 15
_root.count--;
this.removeMovieClip();
Instance of Symbol 60 MovieClip in Symbol 61 MovieClip [shot2] Frame 1
onClipEvent (enterFrame) {
_root.shotfly2(this._parent);
}
Instance of Symbol 60 MovieClip in Symbol 68 MovieClip [shot] Frame 1
onClipEvent (enterFrame) {
_root.shotfly(this._parent);
}
Instance of Symbol 3 MovieClip in Symbol 73 MovieClip [pumpkin_head0] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove2(this._parent);
if (_root.ship.hitA.hitTest(this._parent._x, this._parent._y, true)) {
_root.killed++;
_root.death();
_root.createGib(this._parent, random(3) + 2);
}
}
Instance of Symbol 3 MovieClip in Symbol 77 MovieClip [pumpkin_head1] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove2(this._parent);
if (_root.ship.hitA.hitTest(this._parent._x, this._parent._y, true)) {
_root.killed++;
_root.death();
_root.createGib(this._parent, random(3) + 2);
}
}
Instance of Symbol 3 MovieClip in Symbol 81 MovieClip [pumpkin_head2] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove2(this._parent);
if (_root.ship.hitA.hitTest(this._parent._x, this._parent._y, true)) {
_root.killed++;
_root.death();
_root.createGib(this._parent, random(3) + 2);
}
}
Instance of Symbol 3 MovieClip in Symbol 85 MovieClip [pumpkin_head3] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove2(this._parent);
if (_root.ship.hitA.hitTest(this._parent._x, this._parent._y, true)) {
_root.killed++;
_root.death();
_root.createGib(this._parent, random(3) + 2);
}
}
Instance of Symbol 3 MovieClip in Symbol 89 MovieClip [pumpkin_head4] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove2(this._parent);
if (_root.ship.hitA.hitTest(this._parent._x, this._parent._y, true)) {
_root.killed++;
_root.death();
_root.createGib(this._parent, random(3) + 2);
}
}
Instance of Symbol 3 MovieClip in Symbol 91 MovieClip [pumpkin_part0] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove(this._parent);
if (_root.ship.shit.hitTest(this)) {
_root.killed++;
_root.death();
_root.addsplash(this._parent);
this._parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 93 MovieClip [pumpkin_part1] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove(this._parent);
if (_root.ship.shit.hitTest(this)) {
_root.killed++;
_root.death();
_root.addsplash(this._parent);
this._parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 97 MovieClip [pumpkin_part2] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove(this._parent);
if (_root.ship.shit.hitTest(this)) {
_root.killed++;
_root.death();
_root.addsplash(this._parent);
this._parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 99 MovieClip [pumpkin_part3] Frame 1
onClipEvent (enterFrame) {
_root.pumpkinmove(this._parent);
if (_root.ship.shit.hitTest(this)) {
_root.killed++;
_root.death();
_root.addsplash(this._parent);
this._parent.removeMovieClip();
}
}
Instance of Symbol 3 MovieClip in Symbol 102 MovieClip [flare1] Frame 1
onClipEvent (enterFrame) {
_root.flaming(this._parent);
}
Symbol 102 MovieClip [flare1] Frame 15
_root.count--;
this.removeMovieClip();
Instance of Symbol 104 MovieClip in Symbol 107 MovieClip [exp_grey_dot] Frame 1
onClipEvent (enterFrame) {
this._parent._x = this._parent._x + this._parent.xmove;
this._parent._y = this._parent._y + this._parent.ymove;
if (this._parent.xmove > 1) {
this._parent.xmove--;
} else if (this._parent.xmove < -1) {
this._parent.xmove++;
}
}
Symbol 107 MovieClip [exp_grey_dot] Frame 15
this.removeMovieClip();
Instance of Symbol 104 MovieClip in Symbol 111 MovieClip [exp_yellow_dot] Frame 1
onClipEvent (enterFrame) {
this._parent._x = this._parent._x + this._parent.xmove;
this._parent._y = this._parent._y + this._parent.ymove;
if (this._parent.xmove > 1) {
this._parent.xmove--;
} else if (this._parent.xmove < -1) {
this._parent.xmove++;
}
}
Symbol 111 MovieClip [exp_yellow_dot] Frame 15
this.removeMovieClip();
Symbol 123 MovieClip [splash] Frame 12
_root.howsend();
this.removeMovieClip();
Symbol 136 MovieClip Frame 1
stop();
Instance of Symbol 166 MovieClip in Symbol 167 MovieClip [meteor] Frame 1
onClipEvent (enterFrame) {
_root.meteorfly(this._parent);
if (this.hitTest(_root.shots.pshot)) {
_root.shots.pshot.removeMovieClip();
_root.canshoot = true;
}
}
Symbol 221 Button
on (press) {
getURL ("http://www.newgrounds.com/collection/halloween2007/", "_blank");
}
Symbol 226 Button
on (press) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 230 Button
on (press) {
_root.muzax.stop();
_root.muzax.attachSound("muz");
_root.muzax.start();
_root.muzax.onSoundComplete = function () {
_root.muzax.start(30);
};
_root.gotoAndStop("startup");
}
Symbol 234 Button
on (press) {
_root.gotoAndStop("settings");
}
Symbol 245 Button
on (press) {
_root.gotoAndStop("credits");
}
Symbol 250 Button
on (press) {
_root.gotoAndStop("title");
}
Symbol 254 Button
on (press) {
_quality = "medium";
gotoAndStop (2);
}
Symbol 255 Button
on (press) {
_quality = "low";
gotoAndStop (1);
}
Symbol 256 Button
on (press) {
_quality = "high";
gotoAndStop (3);
}
Symbol 263 Button
on (press) {
_root.flames = 1;
gotoAndStop (2);
}
Symbol 264 Button
on (press) {
_root.flames = 0;
gotoAndStop (1);
}
Symbol 265 Button
on (press) {
_root.flames = 2;
gotoAndStop (3);
}
Symbol 277 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 34
_root.gotoAndStop("game");
Symbol 288 MovieClip Frame 1
stop();
Symbol 292 MovieClip Frame 36
stop();
Instance of Symbol 104 MovieClip in Symbol 292 MovieClip Frame 36
onClipEvent (keyDown) {
if (Key.isDown(32)) {
_root.gotoAndStop("title");
}
}
Symbol 293 MovieClip Frame 1
stop();
Instance of Symbol 284 MovieClip in Symbol 293 MovieClip Frame 1
onClipEvent (keyDown) {
if ((((Key.isDown(32) or Key.isDown(37)) or Key.isDown(38)) or Key.isDown(39)) or Key.isDown(40)) {
_root.gameon = true;
this._parent.nextFrame();
}
}
Symbol 293 MovieClip Frame 2
stop();
_root.howsend();
Instance of Symbol 288 MovieClip in Symbol 293 MovieClip Frame 2
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_root.xmove = 5 * Math.cos(((this._parent._rotation - 90) * Math.PI) / 180);
_root.ymove = 5 * Math.sin(((this._parent._rotation - 90) * Math.PI) / 180);
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 3 MovieClip "hitA" in Symbol 293 MovieClip Frame 2
onClipEvent (enterFrame) {
if (_root.canshoot and Key.isDown(32)) {
_root.addshot(this._parent);
}
if (Key.isDown(37)) {
_root.turn = _root.turn - 1;
}
if (Key.isDown(39)) {
_root.turn = _root.turn + 1;
}
if (_root.xmove > 0.5) {
_root.xmove = _root.xmove - 0.5;
} else if (_root.xmove < -0.5) {
_root.xmove = _root.xmove + 0.5;
}
if (_root.ymove > 0.5) {
_root.ymove = _root.ymove - 0.5;
} else if (_root.ymove < -0.5) {
_root.ymove = _root.ymove + 0.5;
}
this._parent._x = this._parent._x + _root.xmove;
this._parent._y = this._parent._y + _root.ymove;
if (_root.turn != 0) {
this._parent._rotation = this._parent._rotation + _root.turn;
}
if (_root.turn > 0) {
_root.turn = _root.turn - 0.5;
} else if (_root.turn < 0) {
_root.turn = _root.turn + 0.5;
}
}
Symbol 293 MovieClip Frame 23
if (_root.lives < 0) {
_root.ship._x = 275;
_root.ship._y = 150;
_root.ship._rotation = 0;
this.gotoAndStop("gameover");
} else {
_root.sfx.attachSound("death" + (random(4) + 1));
_root.sfx.start();
this.gotoAndStop(1);
}
Instance of Symbol 288 MovieClip in Symbol 293 MovieClip Frame 24
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
_root.xmove = 5 * Math.cos(((this._parent._rotation - 90) * Math.PI) / 180);
_root.ymove = 5 * Math.sin(((this._parent._rotation - 90) * Math.PI) / 180);
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 3 MovieClip "hitA" in Symbol 293 MovieClip Frame 24
onClipEvent (enterFrame) {
if (Key.isDown(32)) {
_root.gotoAndStop("startup");
}
if (Key.isDown(37)) {
_root.turn = _root.turn - 1;
}
if (Key.isDown(39)) {
_root.turn = _root.turn + 1;
}
if (_root.xmove > 0.5) {
_root.xmove = _root.xmove - 0.5;
} else if (_root.xmove < -0.5) {
_root.xmove = _root.xmove + 0.5;
}
if (_root.ymove > 0.5) {
_root.ymove = _root.ymove - 0.5;
} else if (_root.ymove < -0.5) {
_root.ymove = _root.ymove + 0.5;
}
this._parent._x = this._parent._x + _root.xmove;
this._parent._y = this._parent._y + _root.ymove;
if (_root.turn != 0) {
this._parent._rotation = this._parent._rotation + _root.turn;
}
if (_root.turn > 0) {
_root.turn = _root.turn - 0.5;
} else if (_root.turn < 0) {
_root.turn = _root.turn + 0.5;
}
}
Symbol 293 MovieClip Frame 25
_root.lives_display._visible = false;
_root.muzax.stop();
Symbol 301 Button
on (press) {
_root.gotoAndStop("title");
}