Frame 1
stop();
Frame 270
gotoAndStop ("dodgegame");
Frame 271
function hitfunc() {
var _local1 = _root;
_local1.boop1.play();
_local1.saintframe = _local1.hero._currentframe;
_local1.saintx = _local1.hero._x;
_local1.sainty = _local1.hero._y;
_local1.gotoAndStop("lose");
}
function winfunc() {
var _local1 = _root;
_local1.rightboundary = 560;
_local1.fanfare1.play();
_local1.bgarray.play();
_local1.winner.go = true;
_local1.gotoAndStop("nextlevel");
_local1.nextgameframe = frameArray.pop();
}
stop();
_root.timer.stopped = true;
level = 1;
extralives = 2;
leftboundary = 0;
rightboundary = 560;
topboundary = 0;
bottomboundary = 496;
bgarray._x = 0;
bgarray._y = 0;
boltscollected = 0;
numVillians = level;
score = 0;
frameArray = new Array("collectintro", "scrollintro", "intro3", "intro2");
Instance of Symbol 146 MovieClip "winner" in Frame 271
onClipEvent (load) {
go = false;
secondsleft = "nil";
}
onClipEvent (enterFrame) {
if (go) {
if (_root.status.timer.secondsleft != 0) {
_root.status.timer.secondsleft = _root.status.timer.secondsleft - 1;
_root.score = _root.score + 1;
_root.status.timer.createtime(_root.status.timer.secondsleft);
} else {
this.go = false;
}
}
}
Frame 272
stop();
boltscollected = 0;
status.boltcounter.gotoAndStop((boltscollected * 2) + 1);
laststage = _root._currentframe;
Frame 273
stop();
villians = 1;
while (villians <= 6) {
_root["villian" + villians]._visible = false;
villians = villians + 1;
}
villians = 1;
while (villians <= numVillians) {
_root["villian" + villians]._visible = true;
villians = villians + 1;
}
status.timer.framessofar = 0;
status.timer.secondssofar = 0;
secondsleft = "nil";
status.timer.stopped = false;
Instance of Symbol 166 MovieClip "lightning" in Frame 273
onClipEvent (enterFrame) {
if ((this._x < -40) && (_root.boltscollected < 10)) {
thex = _root.leftboundary + (Math.random() * ((_root.rightboundary - _root.leftboundary) - this._width));
they = _root.topboundary + (Math.random() * ((_root.bottomboundary - _root.topboundary) - this._height));
newx = Math.floor(thex / 4) * 4;
newy = Math.floor(they / 4) * 4;
if (_root.boltscollected == 9) {
if (newx < 200) {
newx = newx + 200;
} else if (newy < 200) {
newy = newy + 200;
}
}
_root.fakebolt._x = newx;
_root.fakebolt._y = newy;
if (!_root.hitdetect.proxtestcirclerect(_root.hero, _root.fakebolt)) {
_root.fakebolt._x = -50;
this._x = newx;
this._y = newy;
}
}
}
Instance of Symbol 168 MovieClip "hitdetect" in Frame 273
onClipEvent (enterFrame) {
villians = 1;
while (villians <= _root.numVillians) {
if (hittestcirclerect(_root["villian" + villians], _root.hero)) {
_root.hitfunc();
}
villians = villians + 1;
}
if (hittestrects(_root.bullet, _root.hero)) {
_root.hitfunc();
_root.robber.newBullet.removeMovieClip();
}
if (hittestrects(_root.hero, _root.lightning)) {
if (_root.lightning._currentframe == 1) {
_root.lightning._x = -80;
_root.lightning.gotoAndStop(1);
_root.boltscollected = _root.boltscollected + 1;
_root.score = _root.score + 10;
_root.zap.play();
_root.status.boltcounter.play();
if (_root.boltscollected == 10) {
_root.door.play();
}
}
}
if (hittestrects(_root.hero, _root.door) && (_root.door._currentframe == 25)) {
_root.winfunc();
}
}
Instance of Symbol 173 MovieClip "bullettemplate" in Frame 273
onClipEvent (enterFrame) {
if (this._name != "bullettemplate") {
if (this._y <= -10) {
this.removeMovieClip();
} else {
this._y = this._y - 12;
}
}
}
Instance of Symbol 180 MovieClip "villian1" in Frame 273
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 8;
yinc = 12;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian2" in Frame 273
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 4;
this._x = xinc * 27;
this._y = yinc * 10;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian3" in Frame 273
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 8;
this._x = xinc * 40;
this._y = yinc * 36;
moveleft = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian4" in Frame 273
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 8;
this._x = xinc * 30;
this._y = yinc * 45;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian5" in Frame 273
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 12;
this._x = xinc * 35;
this._y = yinc * 3;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian6" in Frame 273
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 16;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 181 MovieClip "hero" in Frame 273
onClipEvent (load) {
xinc = 16;
yinc = 16;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 182 MovieClip "robber" in Frame 273
onClipEvent (load) {
xinc = 20;
moveright = true;
shoottimer = 40;
if (_root.level == 1) {
this.stopped = true;
this._visible = false;
} else {
this.stopped = false;
}
}
onClipEvent (enterFrame) {
if ((robberclip._currentframe == 1) && (!this.stopped)) {
moveit();
if (shoottimer == 0) {
robberclip.play();
shoottimer = 40;
}
shoottimer = shoottimer - 1;
}
}
Frame 274
boltscollected = 0;
status.boltcounter.gotoAndStop((boltscollected * 2) + 1);
stop();
laststage = _root._currentframe;
Frame 275
stop();
villians = 1;
while (villians <= 6) {
_root["villian" + villians]._visible = false;
villians = villians + 1;
}
villians = 1;
while (villians <= numVillians) {
_root["villian" + villians]._visible = true;
villians = villians + 1;
}
status.timer.framessofar = 0;
status.timer.secondssofar = 0;
secondsleft = "nil";
status.timer.stopped = false;
Instance of Symbol 168 MovieClip "hitdetect" in Frame 275
onClipEvent (enterFrame) {
villians = 1;
while (villians <= _root.numVillians) {
if (hittestcirclerect(_root["villian" + villians], _root.hero)) {
_root.hitfunc();
}
villians = villians + 1;
}
if (hittestrects(_root.bullet, _root.hero)) {
_root.hitfunc();
_root.robber.newBullet.removeMovieClip();
}
if (hittestrects(_root.hero, _root.lightning)) {
if (_root.lightning._currentframe == 1) {
_root.lightning._x = -80;
_root.lightning.gotoAndStop(1);
_root.boltscollected = _root.boltscollected + 1;
_root.score = _root.score + 10;
_root.zap.play();
_root.status.boltcounter.play();
if (_root.boltscollected == 10) {
_root.door.play();
}
}
}
if (hittestrects(_root.hero, _root.door) && (_root.door._currentframe == 25)) {
_root.winfunc();
}
}
Instance of Symbol 166 MovieClip "lightning" in Frame 275
onClipEvent (enterFrame) {
if ((this._x < -40) && (_root.boltscollected < 10)) {
thex = _root.leftboundary + (Math.random() * ((_root.rightboundary - _root.leftboundary) - this._width));
they = _root.topboundary + (Math.random() * ((_root.bottomboundary - _root.topboundary) - this._height));
newx = Math.floor(thex / 4) * 4;
newy = Math.floor(they / 4) * 4;
if (_root.boltscollected == 9) {
if (newx < 200) {
newx = newx + 200;
} else if (newy < 200) {
newy = newy + 200;
}
}
_root.fakebolt._x = newx;
_root.fakebolt._y = newy;
if (!_root.hitdetect.proxtestcirclerect(_root.hero, _root.fakebolt)) {
_root.fakebolt._x = -50;
this._x = newx;
this._y = newy;
}
}
}
Instance of Symbol 173 MovieClip "bullettemplate" in Frame 275
onClipEvent (enterFrame) {
if (this._name != "bullettemplate") {
if (this._y <= -10) {
this.removeMovieClip();
} else {
this._y = this._y - 12;
}
}
}
Instance of Symbol 180 MovieClip "villian1" in Frame 275
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 8;
yinc = 12;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian2" in Frame 275
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 4;
this._x = xinc * 27;
this._y = yinc * 10;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian3" in Frame 275
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 8;
this._x = xinc * 40;
this._y = yinc * 36;
moveleft = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian4" in Frame 275
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 8;
this._x = xinc * 30;
this._y = yinc * 45;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian5" in Frame 275
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 12;
this._x = xinc * 35;
this._y = yinc * 3;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian6" in Frame 275
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 16;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 181 MovieClip "hero" in Frame 275
onClipEvent (load) {
xinc = 16;
yinc = 16;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 182 MovieClip "robber" in Frame 275
onClipEvent (load) {
xinc = 20;
moveright = true;
shoottimer = 40;
if (_root.level == 1) {
this.stopped = true;
this._visible = false;
} else {
this.stopped = false;
}
}
onClipEvent (enterFrame) {
if ((robberclip._currentframe == 1) && (!this.stopped)) {
moveit();
if (shoottimer == 0) {
robberclip.play();
shoottimer = 40;
}
shoottimer = shoottimer - 1;
}
}
Frame 276
boltscollected = 0;
status.boltcounter.gotoAndStop((boltscollected * 2) + 1);
numVillians = level + 1;
stop();
laststage = _root._currentframe;
if (level == 2) {
deadman._visible = false;
}
Frame 277
stop();
villians = 1;
while (villians <= 6) {
_root["villian" + villians]._visible = false;
villians = villians + 1;
}
villians = 1;
while (villians <= numVillians) {
_root["villian" + villians]._visible = true;
villians = villians + 1;
}
status.timer.framessofar = 0;
status.timer.secondssofar = 0;
secondsleft = "nil";
status.timer.stopped = false;
if (level == 2) {
deadman._visible = false;
}
getem.gotoAndStop(level);
getem._visible = false;
Instance of Symbol 168 MovieClip "hitdetect" in Frame 277
onClipEvent (enterFrame) {
villians = 1;
while (villians <= _root.numVillians) {
if (hittestcirclerect(_root["villian" + villians], _root.hero)) {
_root.hitfunc();
}
villians = villians + 1;
}
if (hittestrects(_root.bullet, _root.hero)) {
_root.hitfunc();
_root.robber.newBullet.removeMovieClip();
}
if (hittestrects(_root.hero, _root.lightning)) {
if (_root.lightning._currentframe == 1) {
_root.lightning._x = -80;
_root.lightning.gotoAndStop(1);
_root.boltscollected = _root.boltscollected + 1;
_root.score = _root.score + 10;
_root.zap.play();
_root.status.boltcounter.play();
if (_root.boltscollected == 10) {
_root.door.play();
_root.getem._visible = true;
}
}
}
if (_root.door._currentframe == 25) {
if ((_root.level == 1) && (hittestrects(_root.hero, _root.deadman))) {
_root.deadman._visible = false;
_root.winfunc();
} else if ((_root.level == 2) && (hittestrects(_root.hero, _root.deadwoman))) {
_root.deadman._visible = false;
_root.winfunc();
}
}
}
Instance of Symbol 166 MovieClip "lightning" in Frame 277
onClipEvent (enterFrame) {
if ((this._x < -40) && (_root.boltscollected < 10)) {
thex = _root.leftboundary + (Math.random() * ((_root.rightboundary - _root.leftboundary) - this._width));
they = _root.topboundary + (Math.random() * ((_root.bottomboundary - _root.topboundary) - this._height));
newx = Math.floor(thex / 4) * 4;
newy = Math.floor(they / 4) * 4;
if (_root.boltscollected == 9) {
if (newx < 200) {
newx = newx + 200;
} else if (newy < 200) {
newy = newy + 200;
}
}
_root.fakebolt._x = newx;
_root.fakebolt._y = newy;
if (!_root.hitdetect.proxtestcirclerect(_root.hero, _root.fakebolt)) {
_root.fakebolt._x = -50;
this._x = newx;
this._y = newy;
}
}
}
Instance of Symbol 173 MovieClip "bullettemplate" in Frame 277
onClipEvent (enterFrame) {
if (this._name != "bullettemplate") {
if (this._y <= -10) {
this.removeMovieClip();
} else {
this._y = this._y - 12;
}
}
}
Instance of Symbol 180 MovieClip "villian1" in Frame 277
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 8;
yinc = 12;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian2" in Frame 277
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 4;
this._x = xinc * 27;
this._y = yinc * 10;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian3" in Frame 277
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 8;
this._x = xinc * 40;
this._y = yinc * 36;
moveleft = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian4" in Frame 277
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 8;
this._x = xinc * 30;
this._y = yinc * 45;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian5" in Frame 277
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 12;
this._x = xinc * 35;
this._y = yinc * 3;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian6" in Frame 277
onClipEvent (load) {
skin.gotoAndStop(1);
xinc = 12;
yinc = 16;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 181 MovieClip "hero" in Frame 277
onClipEvent (load) {
xinc = 16;
yinc = 16;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 182 MovieClip "robber" in Frame 277
onClipEvent (load) {
xinc = 20;
moveright = true;
shoottimer = 40;
if (_root.level == 1) {
this.stopped = true;
this._visible = false;
} else {
this.stopped = false;
}
}
onClipEvent (enterFrame) {
if ((robberclip._currentframe == 1) && (!this.stopped)) {
moveit();
if (shoottimer == 0) {
robberclip.play();
shoottimer = 40;
}
shoottimer = shoottimer - 1;
}
}
Frame 278
stop();
_root.status.timer.stopped = true;
Frame 279
_root.deadsaintfall.deadsaint.gotoAndStop(_root.saintframe);
_root.deadsaintfall.deadsaint.saint.stop();
_root.deadsaintfall._x = _root.saintx;
_root.deadsaintfall._y = _root.sainty;
_root.deadsaintfall.play();
_root.status["wing" + (_root.extralives + 1)]._visible = false;
Frame 280
stop();
Frame 281
spikeinc = 400 + (10 * (_root.numVillians - 2));
status.timer.stopped = true;
status.boltcounter.gotoAndStop(21);
stop();
laststage = _root._currentframe;
rightboundary = 576;
Frame 282
stop();
status.timer.framessofar = 0;
status.timer.secondssofar = 0;
secondsleft = "nil";
status.timer.stopped = false;
Instance of Symbol 168 MovieClip "hitdetect" in Frame 282
onClipEvent (enterFrame) {
if (hittestspikes(_root.hero)) {
spikeclip = _root.spikes.pinchtemplate.clipCounter - 10;
while (spikeclip <= (_root.spikes.pinchtemplate.clipCounter - 1)) {
clip = _root.spikes["spikes" + spikeclip];
clip.removeMovieClip();
spikeclip = spikeclip + 1;
}
_root.hitfunc();
}
}
Instance of Symbol 181 MovieClip "hero" in Frame 282
onClipEvent (load) {
xinc = 16;
yinc = 16;
}
onClipEvent (enterFrame) {
moveit();
}
Frame 283
boltscollected = 0;
stop();
laststage = _root._currentframe;
if (level == 2) {
numVillians = 4;
}
Frame 284
stop();
villians = 1;
while (villians <= 6) {
_root["villian" + villians]._visible = false;
villians = villians + 1;
}
villians = 1;
while (villians <= numVillians) {
_root["villian" + villians]._visible = true;
villians = villians + 1;
}
status.boltcounter.gotoAndStop(1);
status.timer.framessofar = 0;
status.timer.secondssofar = 0;
secondsleft = "nil";
status.timer.stopped = false;
Instance of Symbol 168 MovieClip "hitdetect" in Frame 284
onClipEvent (enterFrame) {
villians = 1;
while (villians <= _root.numVillians) {
if (hittestcirclerect(_root["villian" + villians], _root.hero)) {
_root.hitfunc();
}
villians = villians + 1;
}
if (hittestrects(_root.bullet, _root.hero)) {
_root.hitfunc();
_root.robber.newBullet.removeMovieClip();
}
if (hittestrects(_root.hero, _root.lightning) && (_root.lightning._currentframe == 1)) {
_root.lightning._x = -80;
_root.boltscollected = _root.boltscollected + 1;
_root.score = _root.score + 10;
_root.status.bolt.play();
_root.zap.play();
_root.status.boltcounter.play();
if (_root.boltscollected == 10) {
_root.morgue._y = 40;
}
}
if (hittestrects(_root.hero, _root.morgue) && (_root.boltscollected == 10)) {
if (_root.level == 2) {
_root.gotoAndStop("bigwin");
} else {
_root.gotoAndStop("win");
}
}
if (hittestsplode(_root.splode, _root.hero)) {
_root.hitfunc();
}
}
Instance of Symbol 218 MovieClip "lightning" in Frame 284
onClipEvent (enterFrame) {
timenow = _root.status.timer.secondssofar;
if ((this._x < -40) && (_root.boltscollected < 10)) {
thex = _root.leftboundary + (Math.random() * ((_root.rightboundary - _root.leftboundary) - this._width));
they = _root.topboundary + (Math.random() * ((_root.bottomboundary - _root.topboundary) - this._height));
newx = Math.floor(thex / 4) * 4;
newy = Math.floor(they / 4) * 4;
if (_root.boltscollected == 9) {
if (newx < 200) {
newx = newx + 200;
} else if (newy < 200) {
newy = newy + 200;
}
}
_root.fakebolt._x = newx;
_root.fakebolt._y = newy;
if (!_root.hitdetect.proxtestcirclerect(_root.hero, _root.fakebolt)) {
_root.fakebolt._x = -50;
this._x = newx;
this._y = newy;
timeforbomb = timenow + 5;
}
} else if (this._currentframe == 1) {
if (timenow == timeforbomb) {
timeforsplode = timenow + 2;
if (this._x >= 0) {
_root.fuseboom.play();
}
this.gotoAndStop(2);
}
} else if (this._currentframe == 2) {
if (timenow == timeforsplode) {
_root.splode._x = this._x;
_root.splode._y = this._y;
this._x = -30;
_root.splode.play();
this.gotoAndStop(1);
} else {
bomb.countdown.gotoAndStop((timeforsplode - timenow) + 1);
}
}
}
Instance of Symbol 173 MovieClip "bullettemplate" in Frame 284
onClipEvent (enterFrame) {
if (this._name != "bullettemplate") {
if (this._y <= -10) {
this.removeMovieClip();
} else {
this._y = this._y - 12;
}
}
}
Instance of Symbol 180 MovieClip "villian1" in Frame 284
onClipEvent (load) {
skin.gotoAndStop(2);
xinc = 8;
yinc = 12;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian2" in Frame 284
onClipEvent (load) {
skin.gotoAndStop(3);
xinc = 12;
yinc = 4;
this._x = xinc * 27;
this._y = yinc * 10;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian3" in Frame 284
onClipEvent (load) {
skin.gotoAndStop(3);
xinc = 12;
yinc = 8;
this._x = xinc * 40;
this._y = yinc * 36;
moveleft = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian4" in Frame 284
onClipEvent (load) {
skin.gotoAndStop(2);
xinc = 12;
yinc = 8;
this._x = xinc * 30;
this._y = yinc * 45;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian5" in Frame 284
onClipEvent (load) {
skin.gotoAndStop(2);
xinc = 12;
yinc = 12;
this._x = xinc * 35;
this._y = yinc * 3;
moveleft = true;
moveup = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 180 MovieClip "villian6" in Frame 284
onClipEvent (load) {
skin.gotoAndStop(3);
xinc = 12;
yinc = 16;
this._x = xinc * 40;
this._y = yinc * 20;
moveright = true;
movedown = true;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 181 MovieClip "hero" in Frame 284
onClipEvent (load) {
xinc = 16;
yinc = 16;
}
onClipEvent (enterFrame) {
moveit();
}
Instance of Symbol 182 MovieClip "robber" in Frame 284
onClipEvent (load) {
xinc = 20;
moveright = true;
shoottimer = 40;
if (_root.level == 1) {
this.stopped = true;
this._visible = false;
} else {
this.stopped = false;
}
}
onClipEvent (enterFrame) {
if ((robberclip._currentframe == 1) && (!this.stopped)) {
moveit();
if (shoottimer == 0) {
robberclip.play();
shoottimer = 40;
}
shoottimer = shoottimer - 1;
}
}
Frame 285
stop();
Frame 386
stop();
Frame 482
gotoAndStop (1);
Symbol 7 Button
on (release) {
getURL (("http://www.warnerreprise.com/lyris/join_list.php?email=" + addmeaddress) + "&list=mychemicalromance&good=default&error=default", "_blank");
}
Symbol 23 Button
on (release) {
getURL ("http://www.mychemicalromance.com", "blank");
}
Symbol 31 Button
on (press) {
getURL ("http://store.wbr.com/store/product.asp?upc=093624861522&type=music&sys=WBR&mscssid=PFXWTKES35668HR207EAGQ2MDBXM53UF", "_store");
}
Symbol 35 Button
on (release) {
gotoAndPlay (2);
}
Symbol 43 Button
on (press) {
gotoAndStop (2);
}
Symbol 50 Button
on (press) {
getURL (("mailto:" + friendsemail) + "?subject=my chemical romance game&body=Wake up! Bored with Doom? Can you beat Tetris with your eyes closed? Wanna kick it old school Atari-style with MCR? Go here http://www.mychemicalromance.com/game/index.html and play the MCR 'Sweet Revenge' game.");
gotoAndStop (1);
}
Symbol 51 Button
on (press) {
message = "Wake up! Bored with Doom? Can you beat Tetris with your eyes closed? Wanna kick it old school Atari-style with MCR? GO here: http://www.mychemicalromance.com/game/index.html and play the MCR 'Sweet Revenge' game.";
getURL ("aim:goim", "", "GET");
gotoAndStop (1);
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Symbol 64 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 15
_parent.shoot();
Symbol 74 MovieClip Frame 79
Symbol 74 MovieClip Frame 85
stop();
Symbol 84 MovieClip Frame 31
stop();
Symbol 88 MovieClip Frame 105
stop();
_root.gotoAndStop("intro");
Symbol 92 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 1
stop();
Symbol 98 MovieClip Frame 2
stop();
Symbol 100 MovieClip Frame 49
stop();
Symbol 104 MovieClip Frame 1
stop();
Symbol 107 MovieClip Frame 1
stop();
Instance of Symbol 104 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.level);
}
Instance of Symbol 107 MovieClip in Symbol 109 MovieClip Frame 1
onClipEvent (load) {
gotoAndStop(_root.level);
}
Symbol 109 MovieClip Frame 89
stop();
_root.gotoAndStop(_root.nextgameframe);
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 49
stop();
_root.gotoAndStop(_root.nextgameframe);
Instance of Symbol 92 MovieClip in Symbol 110 MovieClip Frame 49
onClipEvent (load) {
if (_root.level == 2) {
this.gotoAndStop(2);
}
}
Symbol 110 MovieClip Frame 97
stop();
_root.gotoAndStop(_root.nextgameframe);
Symbol 110 MovieClip Frame 98
if (_root.level == 2) {
saintwload.gotoAndStop(2);
} else {
saintwload.gotoAndStop(1);
}
Symbol 110 MovieClip Frame 194
stop();
_root.gotoAndStop(_root.nextgameframe);
Symbol 110 MovieClip Frame 195
if (_root.level == 2) {
saintwload.gotoAndStop(2);
} else {
saintwload.gotoAndStop(1);
}
Symbol 110 MovieClip Frame 241
stop();
Symbol 115 MovieClip Frame 1
function moveit() {
var _local1 = this;
var _local2 = _root;
newx = _local1._x;
newy = _local1._y;
if (Key.isDown(37)) {
newx = newx - xinc;
}
if (Key.isDown(39)) {
newx = newx + xinc;
}
if (Key.isDown(38)) {
newy = newy - yinc;
}
if (Key.isDown(40)) {
newy = newy + yinc;
}
if (newx < _local2.leftboundary) {
newx = _local2.leftboundary;
} else if (newx > (_local2.rightboundary - _local1._width)) {
newx = _local2.rightboundary - _local1._width;
}
if (newy < _local2.topboundary) {
newy = _local2.topboundary;
} else if (newy > (_local2.bottomboundary - _local1._height)) {
newy = _local2.bottomboundary - _local1._height;
}
if (newx < _local1._x) {
_local1.gotoAndStop(1);
} else if (newx > _local1._x) {
_local1.gotoAndStop(2);
}
_local1._x = newx;
_local1._y = newy;
}
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 39
this._x = -100;
if (_root.extralives > 0) {
_root.extralives = _root.extralives - 1;
_root.gotoAndStop(_root.laststage);
} else {
_root.gotoAndPlay("endgame");
}
Symbol 118 MovieClip Frame 1
function createtime(seconds) {
var _local1 = seconds;
if (_local1 <= 0) {
minuteString = "00";
secondString = ":00";
} else {
minutes = Math.floor(_local1 / 60);
extraseconds = _local1 % 60;
if (extraseconds < 10) {
secondString = ":0" + extraseconds;
} else {
secondString = ":" + extraseconds;
}
}
}
Symbol 141 MovieClip Frame 1
stop();
Symbol 141 MovieClip Frame 3
stop();
Symbol 141 MovieClip Frame 5
stop();
Symbol 141 MovieClip Frame 7
stop();
Symbol 141 MovieClip Frame 9
stop();
Symbol 141 MovieClip Frame 11
stop();
Symbol 141 MovieClip Frame 13
stop();
Symbol 141 MovieClip Frame 15
stop();
Symbol 141 MovieClip Frame 17
stop();
Symbol 141 MovieClip Frame 19
stop();
Symbol 141 MovieClip Frame 23
gotoAndPlay (21);
Instance of Symbol 118 MovieClip "timer" in Symbol 144 MovieClip Frame 1
onClipEvent (load) {
framessofar = 0;
secondssofar = 0;
stopped = false;
}
onClipEvent (enterFrame) {
if ((!_root.winner.go) && (!stopped)) {
framessofar = framessofar + 1;
if ((framessofar / 24) == Math.floor(framessofar / 24)) {
secondssofar = secondssofar + 1;
if (secondssofar < 60) {
secondsleft = 60 - secondssofar;
} else {
secondsleft = 0;
}
createtime(secondsleft);
}
}
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 151 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 1
stop();
Symbol 155 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 1
stop();
Symbol 159 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 33
_parent.play();
Symbol 168 MovieClip Frame 1
function hittestcircles(circle1, circle2) {
var _local1 = circle2;
var _local2 = circle1;
radius1 = _local2._width / 2;
radius2 = _local1._width / 2;
xdiff = ((_local2._x + radius1) - _local1._x) - radius2;
ydiff = ((_local2._y + radius1) - _local1._y) - radius2;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
return(dist < (radius1 + radius2));
}
function hittestrects(rect1, rect2) {
var _local1 = rect2;
var _local2 = rect1;
return((((_local2._x > (_local1._x - _local2._width)) && (_local2._x < (_local1._x + _local1._width))) && (_local2._y > (_local1._y - _local2._height))) && (_local2._y < (_local1._y + _local1._height)));
}
function hittestsplode(sploder, circle) {
var _local1 = sploder;
var _local2 = circle;
radius = _local2._width / 2;
circlecenterx = _local2._x + radius;
circlecentery = _local2._y + radius;
splodercenterx = _local1._x + 14;
splodercentery = _local1._y + 30;
if (_local1._currentframe < 7) {
sploderradius = 14;
} else if (_local1._currentframe < 10) {
sploderradius = 20;
} else if (_local1._currentframe < 13) {
sploderradius = 28;
} else if (_local1._currentframe < 16) {
sploderradius = 36;
} else if (_local1._currentframe < 19) {
sploderradius = 44;
} else if (_local1._currentframe < 22) {
sploderradius = 52;
} else {
sploderradius = 60;
}
xdiff = splodercenterx - circlecenterx;
ydiff = splodercentery - circlecentery;
dist = Math.sqrt((xdiff * xdiff) + (ydiff * ydiff));
return(dist < (radius + sploderradius));
}
function hittestcirclerect(circle, rect) {
var _local1 = rect;
var _local2 = circle;
hit = false;
radius = _local2._width / 2;
if (((((_local2._x + (2 * radius)) > _local1._x) && (_local2._x < (_local1._x + _local1._width))) && ((_local2._y + radius) > _local1._y)) && ((_local2._y + radius) < (_local1._y + _local1._height))) {
hit = true;
} else if (((((_local2._y + (2 * radius)) > _local1._y) && (_local2._y < (_local1._y + _local1._height))) && ((_local2._x + radius) > _local1._x)) && ((_local2._x + radius) < (_local1._x + _local1._width))) {
hit = true;
} else if (Math.sqrt((((_local2._x + radius) - _local1._x) * ((_local2._x + radius) - _local1._x)) + (((_local2._y + radius) - _local1._y) * ((_local2._y + radius) - _local1._y))) < radius) {
hit = true;
} else if (Math.sqrt(((((_local2._x + radius) - _local1._x) - _local1._width) * (((_local2._x + radius) - _local1._x) - _local1._width)) + (((_local2._y + radius) - _local1._y) * ((_local2._y + radius) - _local1._y))) < radius) {
hit = true;
} else if (Math.sqrt((((_local2._x + radius) - _local1._x) * ((_local2._x + radius) - _local1._x)) + ((((_local2._y + radius) - _local1._y) - _local1._height) * (((_local2._y + radius) - _local1._y) - _local1._height))) < radius) {
hit = true;
} else if (Math.sqrt(((((_local2._x + radius) - _local1._x) - _local1._width) * (((_local2._x + radius) - _local1._x) - _local1._width)) + ((((_local2._y + radius) - _local1._y) - _local1._height) * (((_local2._y + radius) - _local1._y) - _local1._height))) < radius) {
hit = true;
}
return(hit);
}
function proxtestcirclerect(circle, rect) {
var _local1 = rect;
var _local2 = circle;
hit = false;
radius = _local2._width / 2;
if ((((((_local2._x + (2 * radius)) + 50) > _local1._x) && (_local2._x < ((_local1._x + _local1._width) + 50))) && (((_local2._y + radius) + 50) > _local1._y)) && ((_local2._y + radius) < ((_local1._y + _local1._height) + 50))) {
hit = true;
} else if ((((((_local2._y + (2 * radius)) + 50) > _local1._y) && (_local2._y < ((_local1._y + _local1._height) + 50))) && (((_local2._x + radius) + 50) > _local1._x)) && ((_local2._x + radius) < ((_local1._x + _local1._width) + 50))) {
hit = true;
} else if (Math.sqrt((((_local2._x + radius) - _local1._x) * ((_local2._x + radius) - _local1._x)) + (((_local2._y + radius) - _local1._y) * ((_local2._y + radius) - _local1._y))) < (radius + 50)) {
hit = true;
} else if (Math.sqrt(((((_local2._x + radius) - _local1._x) - _local1._width) * (((_local2._x + radius) - _local1._x) - _local1._width)) + (((_local2._y + radius) - _local1._y) * ((_local2._y + radius) - _local1._y))) < (radius + 50)) {
hit = true;
} else if (Math.sqrt((((_local2._x + radius) - _local1._x) * ((_local2._x + radius) - _local1._x)) + ((((_local2._y + radius) - _local1._y) - _local1._height) * (((_local2._y + radius) - _local1._y) - _local1._height))) < (radius + 50)) {
hit = true;
} else if (Math.sqrt(((((_local2._x + radius) - _local1._x) - _local1._width) * (((_local2._x + radius) - _local1._x) - _local1._width)) + ((((_local2._y + radius) - _local1._y) - _local1._height) * (((_local2._y + radius) - _local1._y) - _local1._height))) < (radius + 50)) {
hit = true;
}
return(hit);
}
function hittestspikes(dude) {
var _local1 = dude;
var _local2 = _root;
hit = false;
spikeclip = _local2.spikes.pinchtemplate.clipCounter - 10;
while (spikeclip <= (_local2.spikes.pinchtemplate.clipCounter - 1)) {
if (spikeclip < 1) {
spikeclip = 1;
}
clip = _local2.spikes["spikes" + spikeclip];
if (hittestrects(_local1, clip) && (((_local1._y - clip._y) > (736 - _local1._height)) || ((_local1._y - clip._y) < 556))) {
hit = true;
break;
}
spikeclip = spikeclip + 1;
}
return(hit);
}
Symbol 172 MovieClip Frame 13
stop();
Symbol 172 MovieClip Frame 25
stop();
_root.rightboundary = 576;
Symbol 179 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 1
function moveit() {
var _local1 = this;
var _local2 = _root;
newx = _local1._x;
newy = _local1._y;
if (moveleft) {
newx = newx - xinc;
}
if (moveright) {
newx = newx + xinc;
}
if (moveup) {
newy = newy - yinc;
}
if (movedown) {
newy = newy + yinc;
}
if (newx <= _local2.leftboundary) {
moveleft = false;
moveright = true;
}
if (newx >= (_local2.rightboundary - _local1._width)) {
moveright = false;
moveleft = true;
}
if (newy <= _local2.topboundary) {
moveup = false;
movedown = true;
}
if (newy >= (_local2.bottomboundary - _local1._height)) {
movedown = false;
moveup = true;
}
_local1._x = newx;
_local1._y = newy;
}
Symbol 181 MovieClip Frame 1
function moveit() {
var _local1 = this;
var _local2 = _root;
newx = _local1._x;
newy = _local1._y;
if (Key.isDown(9)) {
_local2.extralives = _local2.extralives + 1;
}
if (Key.isDown(37)) {
newx = newx - xinc;
}
if (Key.isDown(39)) {
newx = newx + xinc;
}
if (Key.isDown(38)) {
newy = newy - yinc;
}
if (Key.isDown(40)) {
newy = newy + yinc;
}
if (newx < _local2.leftboundary) {
newx = _local2.leftboundary;
} else if (newx > (_local2.rightboundary - _local1._width)) {
newx = _local2.rightboundary - _local1._width;
}
if (newy < _local2.topboundary) {
newy = _local2.topboundary;
} else if (newy > (_local2.bottomboundary - _local1._height)) {
newy = _local2.bottomboundary - _local1._height;
}
if (newx < _local1._x) {
_local1.gotoAndStop(1);
} else if (newx > _local1._x) {
_local1.gotoAndStop(2);
}
_local1._x = newx;
_local1._y = newy;
}
stop();
Symbol 181 MovieClip Frame 2
stop();
Symbol 182 MovieClip Frame 1
function moveit() {
var _local1 = this;
newx = _local1._x;
if (moveleft) {
newx = newx - xinc;
}
if (moveright) {
newx = newx + xinc;
}
if (newx <= _root.leftboundary) {
moveleft = false;
moveright = true;
_local1.gotoAndStop(1);
}
if (newx >= (_root.rightboundary - _local1._width)) {
moveright = false;
moveleft = true;
_local1.gotoAndStop(2);
}
_local1._x = newx;
_local1._y = newy;
}
function shoot() {
newBullet = _root.bullettemplate.duplicateMovieClip("bullet", 1);
newBullet._y = this._y;
newBullet._x = this._x + 20;
}
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 85
_root.level = 2;
_root.numVillians = _root.level;
_root.extralives = _root.extralives + 1;
_root.status["wing" + (extralives + 1)]._visible = true;
_root.frameArray.push("collectintro", "scrollintro", "intro3", "intro2");
_root.bgarray.gotoAndStop(2);
_root.gotoAndStop("intro");
Symbol 195 MovieClip Frame 16
stop();
Symbol 196 MovieClip Frame 1
pinchtemplate._visible = false;
Instance of Symbol 195 MovieClip "pinchtemplate" in Symbol 196 MovieClip Frame 1
onClipEvent (load) {
if (this._name == "pinchtemplate") {
clipCounter = 1;
prevClip = this.duplicateMovieClip("spikes" + clipCounter, clipCounter);
clipCounter = clipCounter + 1;
prevClip._x = 576;
prevClip._y = -325;
}
}
onClipEvent (enterFrame) {
if (this._name != "pinchtemplate") {
this._x = this._x - 8;
if (this._x <= -10) {
_root.score = _root.score + 10;
if (this._name == "spikes40") {
_root.winfunc();
}
this.removeMovieClip();
}
} else if ((prevClip._x <= _root.spikeinc) && (clipCounter <= 40)) {
newClip = this.duplicateMovieClip("spikes" + clipCounter, clipCounter);
clipCounter = clipCounter + 1;
newClip._x = 576;
inc = Math.floor(24 * (Math.random() - 0.5));
newy = prevClip._y + (inc * Math.abs(inc));
if (newy < (_root.topboundary - 556)) {
newy = _root.topboundary - 556;
} else if (newy > (_root.bottomboundary - 736)) {
newy = _root.bottomboundary - 736;
}
newClip._y = newy;
newClip._visible = true;
prevClip = newClip;
}
}
Symbol 203 MovieClip Frame 1
if (_root.boltscollected < 10) {
stop();
}
Symbol 217 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 31
this._x = -100;
this.gotoAndStop(1);
_root.lightning._x = -55;
Symbol 233 Button
on (release) {
var gname = "mcrJS";
var gscore = _root.score;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
}
Symbol 234 MovieClip Frame 1
if (_root.score == 0) {
_root.score = 1;
}
sendscore = new LoadVars();
sendscore.gname = "mcrJS";
sendscore.gscore = _root.score;
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
stop();