Frame 1
Stage.scaleMode = false;
Stage.showMenu = false;
strucload = 0;
powerload = 0;
weapload = 0;
neurload = 0;
bytesloaded = 0;
bytestotal = getBytesTotal();
KeyLeftNum = 37;
KeyRightNum = 39;
KeyJumpNum = 38;
KeyShootNum = 32;
KeyDashNum = 35;
KeyPauseNum = 36;
KeyLeft = "Left Arrow";
KeyRight = "Right Arrow";
KeyJump = "Up Arrow";
KeyShoot = "Spacebar";
KeyDash = "End";
KeyPause = "Home";
twopressdash = false;
delayvalue = 15;
stop();
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (((strucload == 100) and (this._alpha < 100)) and (_root._currentframe == 1)) {
this._x = this._x + 5;
setProperty(this, _alpha , this._alpha + 10);
}
if ((this._alpha > 0) and (_root._currentframe == 2)) {
setProperty(this, _alpha , this._alpha - 10);
}
}
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (((powerload == 100) and (this._alpha < 100)) and (_root._currentframe == 1)) {
this._x = this._x + 5;
setProperty(this, _alpha , this._alpha + 10);
}
if ((this._alpha > 0) and (_root._currentframe == 2)) {
setProperty(this, _alpha , this._alpha - 10);
}
}
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (((weapload == 100) and (this._alpha < 100)) and (_root._currentframe == 1)) {
this._x = this._x + 5;
setProperty(this, _alpha , this._alpha + 10);
}
if ((this._alpha > 0) and (_root._currentframe == 2)) {
setProperty(this, _alpha , this._alpha - 10);
}
}
Instance of Symbol 22 MovieClip in Frame 1
onClipEvent (enterFrame) {
_root.bytesloaded = _root.getBytesLoaded();
bytestotal = _root.bytestotal;
bytesloaded = _root.bytesloaded;
if ((bytesloaded / _root.bytestotal) <= 0.25) {
_root.strucload = int(400 * (bytesloaded / bytestotal));
} else if ((bytesloaded / bytestotal) <= 0.5) {
_root.strucload = 100;
_root.powerload = int(400 * ((bytesloaded / bytestotal) - 0.25));
} else if ((bytesloaded / bytestotal) <= 0.75) {
_root.strucload = 100;
_root.powerload = 100;
_root.weapload = int(400 * ((bytesloaded / bytestotal) - 0.5));
} else if ((bytesloaded / bytestotal) <= 1) {
_root.strucload = 100;
_root.powerload = 100;
_root.weapload = 100;
_root.neurload = int(400 * ((bytesloaded / bytestotal) - 0.75));
}
if (bytesloaded == bytestotal) {
_root.play();
}
}
Frame 2
stop();
Frame 3
_quality = "HIGH";
setProperty(_root, _alpha , 100);
stop();
Frame 4
stop();
Instance of Symbol 105 MovieClip in Frame 4
on (release) {
_root.gotoAndStop(7);
}
Instance of Symbol 109 MovieClip in Frame 4
onClipEvent (mouseDown) {
if (this.hitTest(_root._xmouse, _root._ymouse, 0)) {
if (_currentframe == 1) {
_root.twopressdash = false;
this.gotoAndStop(2);
} else {
_root.twopressdash = true;
this.gotoAndStop(1);
}
}
}
onClipEvent (enterFrame) {
if (_root.twopressdash) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Frame 7
stop();
Frame 8
function dies() {
if (!death) {
_global.death = true;
_root.bgm.stop();
_root.bgm2.stop();
_root.sfx10.stop();
_root.sfx11.stop();
_root.Megaman.chargepoints = 0;
_root.Megaman.health = 0;
_root.Megaman.freeze = true;
duplicateMovieClip (_root.mmdeathanim, "Megadeath", 9000);
_root.Megadeath._x = _root.Megaman._x;
_root.Megadeath._y = _root.Megaman._y;
_root.Megadeath.play();
_root.Megaman._visible = false;
_root.Megaman.airborne = false;
_root.Megaman.dashing = false;
_root.Megaman.Injured = false;
_root.Megaman.flailing = false;
_root.Megaman.xvel = 0;
_root.Megaman.yvel = 0;
_root.Megaman.invincible = false;
_root.Megaman.invincibletime = 0;
_global.xfollow = false;
_global.yfollow = false;
_root.MMDeathSound.gotoAndPlay(2);
removeMovieClip(_root.SmallShot1);
removeMovieClip(_root.SmallShot2);
removeMovieClip(_root.MedShot);
removeMovieClip(_root.BassLarge1);
removeMovieClip(_root.BassLarge2);
removeMovieClip(_root.BassLarge3);
removeMovieClip(_root.TripleSpawn);
timer = 100;
_root.lives = _root.lives - 1;
setProperty(_root.Megaman, _alpha , 100);
if (_root.lives == 0) {
gotoAndPlay (9);
}
} else if (timer > 0) {
timer = timer - 1;
} else {
updateAfterEvent();
_root.Megaman.myColour.setTransform(_root.Megaman.BaseColour);
_root.Viewable.bossbar.gotoAndStop(1);
_root.Viewable.gotoAndStop(1);
_root.Megaman._xscale = _root.checkpoint.xscale;
_root.Megaman._yscale = _root.checkpoint.yscale;
_root._x = 0;
_root._y = 0;
_root.Megaman._x = _root.checkpoint.MMx;
_root.Megaman._y = _root.checkpoint.MMy;
_root.xfollow = true;
_root.yfollow = true;
_root.xfollow = checkpoint.xf;
_root.yfollow = checkpoint.yf;
_root.Megaman.health = 28;
_root.Boss.health = 168;
_root.Megaman._visible = true;
_root.Megaman.gotoAndPlay(2);
_global.death = false;
_root.Megaman.freeze = false;
_global.bossfight = false;
_root.thaw2.done = false;
_root.Boss._x = bossstartx;
_root.Boss._y = bossstarty;
_root.Boss._xscale = -100;
_root.Boss.gotoAndStop(1);
stopAllSounds();
_root.bgm.start(0, 999);
_root.bgm.setVolume(50);
_root.Megaman.airborne = false;
_root.Megaman.dashing = false;
_root.Megaman.Injured = false;
_root.Megaman.flailing = false;
_root.Megaman.xvel = 0;
_root.Megaman.yvel = 0;
_global.xfollow = true;
_global.yfollow = true;
_root.OriginalTurret._visible = false;
_root.OriginalDragonfly._visible = false;
_root.OriginalSpinner._visible = false;
_root.OriginalTurretShot._visible = false;
}
}
function Victorious() {
gotoAndPlay (29);
_root.bgm.stop();
_root.bgm2.stop();
removeMovieClip(_root.SmallShot1);
removeMovieClip(_root.SmallShot2);
removeMovieClip(_root.MedShot);
removeMovieClip(_root.BassLarge1);
removeMovieClip(_root.BassLarge2);
removeMovieClip(_root.BassLarge3);
removeMovieClip(_root.TripleSpawn);
count = 1;
while (count < 100) {
removeMovieClip(_root["Shot" + count]);
count++;
}
}
setProperty(_root, _alpha , 100);
_quality = "LOW";
_global.landed = false;
_global.gamepause = false;
Lives = 3;
_global.airborne = false;
_global.dashing = false;
_global.dashtime = 0;
_global.busterout = false;
_global.yvel = 0;
_global.xvel = 0;
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
_global.rounds = 0;
_global.roundsMax = 5;
_global.rof = 5;
_global.shottime = 0;
_global.shotnumber = 0;
_global.death = false;
_global.xfollow = true;
_global.yfollow = true;
_global.bossfight = false;
_global.booyashaka = false;
_global.bossstartx = _root.Boss._x;
_global.bossstarty = _root.Boss._y;
checkpoint = new Object();
checkpoint.MMx = _root.Megaman._x;
checkpoint.MMy = _root.Megaman._y;
checkpoint.rootx = _root._x;
checkpoint.rooty = _root._y;
checkpoint.xscale = 200;
checkpoint.yscale = 200;
_root.checkpoint.xf = true;
_root.checkpoint.yf = true;
_root.OriginalTurret._visible = false;
_root.OriginalDragonfly._visible = false;
_root.OriginalSpinner._visible = false;
_root.OriginalTurretShot._visible = false;
_root.OriginalSniperJoe._visible = false;
_root.OriginalJoeShot._visible = false;
_root.OriginalGrenade._visible = false;
duplicateMovieClip (_root.OriginalViewable, "viewable", 9999);
bgm = new Sound(bgmusic);
bgm.attachSound("metalman");
bgm.start(0, 999);
bgm.setVolume(50);
bgm2 = new Sound(bgmusic2);
bgm2.attachSound("boss");
bgm3 = new Sound(bgmusic3);
bgm3.attachSound("maverickappear");
sfx = new Sound();
sfx.attachSound("hpinc");
sfx2 = new Sound();
sfx2.attachSound("ting");
sfx3 = new Sound();
sfx3.attachSound("bdashc");
sfx4 = new Sound();
sfx4.attachSound("bdash");
sfx5 = new Sound();
sfx5.attachSound("slamsound");
sfx6 = new Sound();
sfx6.attachSound("mmshotsound");
sfx7 = new Sound();
sfx7.attachSound("hover");
sfx8 = new Sound();
sfx8.attachSound("bossbigsound");
sfx9 = new Sound();
sfx9.attachSound("mmchargedshotb");
sfx10 = new Sound();
sfx10.attachSound("mmstartcharging");
sfx10.onSoundComplete = function () {
if (_root.Megaman.busterout) {
sfx11.start(0.5, 0);
}
};
sfx11 = new Sound();
sfx11.attachSound("mmcharging");
sfx11.onSoundComplete = function () {
if (_root.Megaman.busterout) {
sfx11.start(0.5, 0);
}
};
sfx12 = new Sound();
sfx12.attachSound("oneupsound");
stop();
Instance of Symbol 346 MovieClip in Frame 8
onClipEvent (enterFrame) {
count = 1;
while (count < 100) {
if (this.hitTest(_root["Shot" + count]._x, _root["Shot" + count]._y, true)) {
_root["Shot" + count].removeMovieClip();
}
count++;
}
}
Instance of Symbol 363 MovieClip "Camera1" in Frame 8
onClipEvent (enterFrame) {
if ((xLock and yLock) and (!cancel)) {
cancel = true;
}
}
Instance of Symbol 363 MovieClip "prebosscamera" in Frame 8
onClipEvent (load) {
camobj.cancel = false;
}
onClipEvent (enterFrame) {
if (death) {
camobj.cancel = false;
}
}
Instance of Symbol 363 MovieClip in Frame 8
onClipEvent (load) {
cancel = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
_root.prebosscamera.camobj.cancel = true;
}
}
Instance of Symbol 368 MovieClip "OriginalShot" in Frame 8
onClipEvent (load) {
damage = 2;
if (_root.Megaman._xscale > 0) {
xvel = 30;
} else {
xvel = -30;
}
if (_root.Megaman.clinging) {
xvel = -xvel;
}
}
onClipEvent (enterFrame) {
if (!gamepause) {
this._x = this._x + xvel;
}
if (hitTest(_root.viewable)) {
} else {
removeMovieClip(this);
}
}
Instance of Symbol 181 MovieClip "OriginalTurret" in Frame 8
onClipEvent (load) {
sfx = new Sound(this);
sfx2 = new Sound(this);
sfx.attachSound("nmehitsound");
sfx2.attachSound("nmedeathsound");
var active = true;
var destroyed = false;
var health = 16;
var SETurtime = 5;
var SETrof = 30;
var Turnumber = TurMin;
gotoAndStop (8);
}
onClipEvent (enterFrame) {
if (!gamepause) {
setProperty(this, _alpha , 100);
if ((hitTest(_root.Viewable) and active) and (!death)) {
if (SETurtime < 0) {
point = new Object();
point.x = this.Weapon._x;
point.y = this.Weapon._y;
localToGlobal(point);
_root.OriginalTurretShot.duplicateMovieClip("Shot" + Turnumber, Turnumber);
_root["Shot" + Turnumber]._x = point.x - _root._x;
_root["Shot" + Turnumber]._y = point.y - _root._y;
if (this._xscale > 0) {
_root["Shot" + Turnumber].facing = "left";
} else {
_root["Shot" + Turnumber].facing = "right";
}
_root["Shot" + Turnumber]._visible = true;
SETurtime = SETrof;
if (Turnumber > TurMax) {
Turnumber = TurMin;
} else {
Turnumber = Turnumber + 1;
}
} else if (SETurtime == 4) {
play();
SETurtime = SETurtime - 1;
} else {
SETurtime = SETurtime - 1;
}
}
}
}
onClipEvent (enterFrame) {
if (!gamepause) {
if (health > 0) {
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
this.health = this.health - _root["Shot" + count].damage;
removeMovieClip(_root["Shot" + count]);
if (this.health < 1) {
this.active = false;
_root.OriginalTurretExplosion.duplicateMovieClip("TurretExplosion", 300);
_root.TurretExplosion._x = this._x;
_root.TurretExplosion._y = this._y - (this._height / 2);
sfx2.start(0, 0);
sfx2.start(0, 0);
} else {
sfx.start(0, 0);
sfx.start(0, 0);
setProperty(this, _alpha , 0);
}
}
count++;
}
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 2;
_root.Megaman.injured = true;
_root.Megaman.xvel = (_root.Megaman._xscale / Math.abs(_root.Megaman._xscale)) * -8;
}
}
}
}
onClipEvent (enterFrame) {
if (_global.death) {
removeMovieClip(this);
}
if (this.health < 1) {
this.gotoAndStop("death");
}
}
Instance of Symbol 380 MovieClip "OriginalTurretShot" in Frame 8
onClipEvent (load) {
if (facing == "right") {
xvel = 12;
this._xscale = -100;
} else {
xvel = -12;
}
}
onClipEvent (enterFrame) {
if (!gamepause) {
play();
this._x = this._x + xvel;
if ((hitTest(_root.Megaman) and (!(_root.Megaman.injured or (_root.Megaman._currentframe < 15)))) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 2;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this._xscale / Math.abs(this._xscale)) * -8;
removeMovieClip(this);
}
} else {
stop();
}
if (_global.death) {
removeMovieClip(this);
}
}
Instance of Symbol 394 MovieClip "OriginalBassLarge" in Frame 8
onClipEvent (enterFrame) {
if (!gamepause) {
this._x = this._x + xvel;
this._y = this._y + yvel;
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 4;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this._xscale / Math.abs(this._xscale)) * -8;
}
}
}
Instance of Symbol 397 MovieClip "OriginalBassMedium" in Frame 8
onClipEvent (enterFrame) {
if (!gamepause) {
this._x = this._x + xvel;
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 3;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this._xscale / Math.abs(this._xscale)) * -8;
}
}
}
Instance of Symbol 400 MovieClip "OriginalBassSmall" in Frame 8
onClipEvent (enterFrame) {
if (!gamepause) {
this._x = this._x + xvel;
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 2;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this._xscale / Math.abs(this._xscale)) * -8;
}
}
}
Instance of Symbol 403 MovieClip "OriginalBassTriple" in Frame 8
onClipEvent (load) {
if (!gamepause) {
if (instance) {
if (this._xscale > 0) {
constant = 1;
} else {
constant = -1;
}
duplicateMovieClip (_root.OriginalBassLarge, "Basslarge1", 210);
_root.Basslarge1.xvel = 25 * constant;
_root.Basslarge1.yvel = 0;
_root.Basslarge1._x = this._x;
_root.Basslarge1._y = this._y;
_root.Basslarge1._xscale = 100 * constant;
duplicateMovieClip (_root.OriginalBassLarge, "Basslarge2", 211);
_root.Basslarge2.xvel = 16 * constant;
_root.Basslarge2.yvel = -9;
_root.Basslarge2._x = this._x;
_root.Basslarge2._y = this._y;
setProperty(_root.Basslarge2, _rotation , -75 + (30 * constant));
duplicateMovieClip (_root.OriginalBassLarge, "Basslarge3", 212);
_root.Basslarge3.xvel = 16 * constant;
_root.Basslarge3.yvel = 9;
_root.Basslarge3._x = this._x;
_root.Basslarge3._y = this._y;
setProperty(_root.Basslarge3, _rotation , 75 - (30 * constant));
removeMovieClip(this);
}
}
}
Instance of Symbol 169 MovieClip "OriginalDragonfly" in Frame 8
onClipEvent (load) {
health = 4;
sfx = new Sound(this);
sfx2 = new Sound(this);
sfx.attachSound("nmehitsound");
sfx2.attachSound("nmedeathsound");
}
onClipEvent (enterFrame) {
if (!gamepause) {
play();
setProperty(this, _alpha , 100);
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
this.health = this.health - _root["Shot" + count].damage;
removeMovieClip(_root["Shot" + count]);
if (this.health < 1) {
_root.OriginalExplosion.duplicateMovieClip("TurretExplosion", 300);
_root.TurretExplosion._x = this._x;
_root.TurretExplosion._y = this._y - (this._height / 2);
sfx2.start(0, 0);
sfx2.start(0, 0);
removeMovieClip(this);
} else {
sfx.start(0, 0);
sfx.start(0, 0);
}
setProperty(this, _alpha , 0);
}
count++;
}
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 3;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this.xvel / Math.abs(this.xvel)) * 8;
}
if (((this._xscale * (this._x - _root.Megaman._x)) < 0) and (!hitTest(_root.Viewable))) {
removeMovieClip(this);
}
}
if (_global.death) {
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
if (!gamepause) {
this._x = this._x + xvel;
} else {
stop();
}
}
Instance of Symbol 404 MovieClip "bgmusic" in Frame 8
onClipEvent (load) {
}
Instance of Symbol 404 MovieClip "bgmusic2" in Frame 8
onClipEvent (load) {
}
Instance of Symbol 404 MovieClip "mmsfx1" in Frame 8
onClipEvent (load) {
}
Instance of Symbol 202 MovieClip "OriginalSpinner" in Frame 8
onClipEvent (load) {
sfx2 = new Sound(this);
sfx2.attachSound("nmedeathsound");
}
onClipEvent (enterFrame) {
if (go and (!gamepause)) {
play();
if (_root.Megaman._x < this._x) {
this._x = this._x - Math.min(3, Math.abs(this._x - _root.Megaman._x));
} else {
this._x = this._x + Math.min(3, Math.abs(_root.Megaman._x - this._x));
}
if ((_root.Megaman._y - _root.Megaman._height) < this._y) {
this._y = this._y - Math.min(3, Math.abs(this._y - _root.Megaman._y));
} else {
this._y = this._y + Math.min(3, Math.abs(_root.Megaman._y - this._y));
}
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 1;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this.xvel / Math.abs(this.xvel)) * 8;
}
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
removeMovieClip(_root["Shot" + count]);
_root.OriginalExplosion.duplicateMovieClip("TurretExplosion", 0);
_root.TurretExplosion._x = this._x;
_root.TurretExplosion._y = this._y - (this._height / 2);
sfx2.start(0, 0);
sfx2.start(0, 0);
removeMovieClip(this);
}
count++;
}
} else if (gamepause) {
stop();
}
if (_global.death) {
removeMovieClip(this);
}
}
Instance of Symbol 368 MovieClip "OriginalJoeShot" in Frame 8
onClipEvent (enterFrame) {
if (!gamepause) {
this._x = this._x + xvel;
if ((hitTest(_root.Megaman) and (!(_root.Megaman.injured or (_root.Megaman._currentframe < 15)))) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 2;
_root.Megaman.injured = true;
_root.Megaman.xvel = (this._xscale / Math.abs(this._xscale)) * -8;
removeMovieClip(this);
}
}
if (_global.death) {
removeMovieClip(this);
}
}
Instance of Symbol 425 MovieClip "OriginalTurretExplosion" in Frame 8
onClipEvent (enterFrame) {
if (gamepause) {
stop();
} else {
play();
}
}
Instance of Symbol 434 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 436 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 439 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and (!bossfight)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 445 MovieClip "dfsp1" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly1", 201);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly1._x = this._x + 480;
_root.Dragonfly1._xscale = 100;
} else {
_root.Dragonfly1._x = this._x - 480;
_root.Dragonfly1._xscale = -100;
}
_root.Dragonfly1._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly1.xvel = -30;
} else {
_root.Dragonfly1.xvel = 30;
}
_root.Dragonfly1._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "dfsp2" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly2", 202);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly2._x = this._x + 480;
_root.Dragonfly2._xscale = 100;
} else {
_root.Dragonfly2._x = this._x - 480;
_root.Dragonfly2._xscale = -100;
}
_root.Dragonfly2._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly2.xvel = -30;
} else {
_root.Dragonfly2.xvel = 30;
}
_root.Dragonfly2._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "dfsp3" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly3", 202);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly3._x = this._x + 480;
_root.Dragonfly3._xscale = 100;
} else {
_root.Dragonfly3._x = this._x - 480;
_root.Dragonfly3._xscale = -100;
}
_root.Dragonfly3._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly3.xvel = -30;
} else {
_root.Dragonfly3.xvel = 30;
}
_root.Dragonfly3._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "spsp1" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalSpinner, "Spinner1", 301);
_root.Spinner1._x = this._x;
_root.Spinner1._y = this._y;
_root.Spinner1._visible = true;
_root.Spinner1.go = true;
done = true;
}
}
if (death) {
done = false;
}
}
Instance of Symbol 445 MovieClip "spsp3" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalSpinner, "Spinner3", 303);
_root.Spinner3._x = this._x;
_root.Spinner3._y = this._y;
_root.Spinner3._visible = true;
_root.Spinner3.go = true;
done = true;
}
}
if (death) {
done = false;
}
}
Instance of Symbol 445 MovieClip "dfsp4" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly4", 204);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly4._x = this._x + 480;
_root.Dragonfly4._xscale = 100;
} else {
_root.Dragonfly4._x = this._x - 480;
_root.Dragonfly4._xscale = -100;
}
_root.Dragonfly4._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly4.xvel = -30;
} else {
_root.Dragonfly4.xvel = 30;
}
_root.Dragonfly4._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "dfsp5" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly5", 205);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly5._x = this._x + 480;
_root.Dragonfly5._xscale = 100;
} else {
_root.Dragonfly5._x = this._x - 480;
_root.Dragonfly5._xscale = -100;
}
_root.Dragonfly5._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly5.xvel = -30;
} else {
_root.Dragonfly5.xvel = 30;
}
_root.Dragonfly5._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "trsp1" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalTurret, "Turret1", 100);
_root.Turret1._visible = true;
_root.Turret1._x = this._x;
_root.Turret1._y = this._y;
_root.Turret1.TurMax = 15;
_root.Turret1.TurMin = 11;
done = true;
}
} else {
done = false;
}
}
Instance of Symbol 445 MovieClip "dfsp6" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly6", 206);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly6._x = this._x + 480;
_root.Dragonfly6._xscale = 100;
} else {
_root.Dragonfly6._x = this._x - 480;
_root.Dragonfly6._xscale = -100;
}
_root.Dragonfly6._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly6.xvel = -30;
} else {
_root.Dragonfly6.xvel = 30;
}
_root.Dragonfly6._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "dfsp7" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly7", 207);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly7._x = this._x + 480;
_root.Dragonfly7._xscale = 100;
} else {
_root.Dragonfly7._x = this._x - 480;
_root.Dragonfly7._xscale = -100;
}
_root.Dragonfly7._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly7.xvel = -30;
} else {
_root.Dragonfly7.xvel = 30;
}
_root.Dragonfly7._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "dfsp8" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly8", 208);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly8._x = this._x + 480;
_root.Dragonfly8._xscale = 100;
} else {
_root.Dragonfly8._x = this._x - 480;
_root.Dragonfly8._xscale = -100;
}
_root.Dragonfly8._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly8.xvel = -30;
} else {
_root.Dragonfly8.xvel = 30;
}
_root.Dragonfly8._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "trsp2" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalTurret, "Turret2", 102);
_root.Turret2._visible = true;
_root.Turret2._x = this._x;
_root.Turret2._y = this._y;
_root.Turret2._xscale = -100;
_root.Turret2.TurMax = 20;
_root.Turret2.TurMin = 16;
_root.Turret2.facing = "right";
done = true;
}
} else {
done = false;
}
}
Instance of Symbol 445 MovieClip "spsp5" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalSpinner, "Spinner5", 305);
_root.Spinner5._x = this._x;
_root.Spinner5._y = this._y;
_root.Spinner5._visible = true;
_root.Spinner5.go = true;
done = true;
}
}
if (death) {
done = false;
}
}
Instance of Symbol 445 MovieClip "spsp6" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalSpinner, "Spinner6", 306);
_root.Spinner6._x = this._x;
_root.Spinner6._y = this._y;
_root.Spinner6._visible = true;
_root.Spinner6.go = true;
done = true;
}
}
if (death) {
done = false;
}
}
Instance of Symbol 447 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 448 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 445 MovieClip "trsp3" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalTurret, "Turret3", 103);
_root.Turret3._visible = true;
_root.Turret3._x = this._x;
_root.Turret3._y = this._y;
_root.Turret3.TurMax = 20;
_root.Turret3.TurMin = 16;
done = true;
}
} else {
done = false;
}
}
Instance of Symbol 445 MovieClip "trsp4" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalTurret, "Turret4", 104);
_root.Turret4._visible = true;
_root.Turret4._x = this._x;
_root.Turret4._y = this._y;
_root.Turret4.TurMax = 20;
_root.Turret4.TurMin = 16;
done = true;
}
} else {
done = false;
}
}
Instance of Symbol 445 MovieClip "sjsp1" in Frame 8
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalSniperJoe, "SniperJoe1", 401);
if (_root.Megaman._x > this._x) {
_root.SniperJoe1._xscale = -100;
} else {
_root.SniperJoe1._xscale = 100;
}
_root.SniperJoe1._x = this._x;
_root.SniperJoe1._y = this._y;
_root.SniperJoe1.ShotMax = 452;
_root.SniperJoe1.ShotMin = 450;
_root.SniperJoe1.grennumber = 453;
_root.SniperJoe1._visible = true;
done = true;
}
} else {
done = false;
}
}
Instance of Symbol 455 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (!used) {
if (hitTest(_root.Megaman)) {
_root.sfx.start(0, Math.min(2, 27 - _root.Megaman.health));
_root.Megaman.health = Math.min(28, _root.Megaman.health + 3);
this._visible = false;
used = true;
}
}
}
Instance of Symbol 466 MovieClip "OriginalChargedBlastB" in Frame 8
onClipEvent (load) {
damage = 6;
}
onClipEvent (enterFrame) {
if (!(gamepause or freeze)) {
_x = (_x + xvel);
}
if (hitTest(_root.viewable)) {
} else {
removeMovieClip(this);
}
}
onClipEvent (enterFrame) {
if (gamepause) {
stop();
} else {
play();
}
}
Instance of Symbol 544 MovieClip "Megaman" in Frame 8
onClipEvent (load) {
function CVTMode(initFrame, endFrame) {
shift = endFrame - initFrame;
if (_currentframe == FAir) {
FStand = FStand + shift;
FRun = FRun + shift;
FAir = FAir + shift;
FJump = FJump + shift;
FDash = FDash + shift;
FDashS = FDashS + shift;
FFall = FFall + shift;
FCling = FCling + shift;
this.gotoAndStop(FAir);
} else if (_currentframe == FDash) {
FStand = FStand + shift;
FRun = FRun + shift;
FAir = FAir + shift;
FJump = FJump + shift;
FDash = FDash + shift;
FDashS = FDashS + shift;
FFall = FFall + shift;
FCling = FCling + shift;
this.gotoAndStop(FDash);
} else if (_currentframe == FCling) {
FStand = FStand + shift;
FRun = FRun + shift;
FAir = FAir + shift;
FJump = FJump + shift;
FDash = FDash + shift;
FDashS = FDashS + shift;
FFall = FFall + shift;
FCling = FCling + shift;
this.gotoAndStop(FCling);
if (_xscale > 0) {
_x = clingRight;
} else {
_x = clingleft;
}
} else if (_currentframe == FStand) {
FStand = FStand + shift;
FRun = FRun + shift;
FAir = FAir + shift;
FJump = FJump + shift;
FDash = FDash + shift;
FDashS = FDashS + shift;
FFall = FFall + shift;
FCling = FCling + shift;
this.gotoAndStop(FStand);
} else {
this.gotoAndPlay(_currentframe + shift);
FStand = FStand + shift;
FRun = FRun + shift;
FAir = FAir + shift;
FJump = FJump + shift;
FDash = FDash + shift;
FDashS = FDashS + shift;
FFall = FFall + shift;
FCling = FCling + shift;
}
}
Key.addListener();
health = 28;
chargepoints = 0;
chargedB = 19;
shotnumber = 1;
shotcheck = new Array(10);
shotsinplay = 0;
animated = true;
clinging = false;
terminal = 30;
gravity = 3.5;
invincible = false;
invincibletime = 0;
myColour = new Color(this);
BaseColour = new Object();
BaseColour.rb = 0;
BaseColour.gb = 0;
BaseColour.bb = 0;
CFlashColour = new Object();
CFlashColour.rb = 170;
CFlashColour.gb = 170;
CFlashColour2 = new Object();
CFlashColour2.rb = 170;
CFlashColour2.gb = 170;
CFlashColour2.bb = 170;
clingfactor = 0.33;
clingLeft = 0;
clingRight = 0;
groundIncr = 7.5;
airIncr = 10;
airDashIncr = 5;
initialJump = 30;
initialMove = 10;
airborne = false;
dashtime = 0;
maxdashtime = 10;
dashvelocity = 18;
dashdirect = 0;
dashpresstimer = 0;
dashvary = _root.delayvalue;
ddashenable = false;
FStand = 16;
FRun = 17;
FJump = 38;
FAir = 46;
FFall = 47;
FDashS = 49;
FDash = 51;
FCling = 55;
FInjured = 100;
FVictory = 118;
FTeleportUp = 147;
CVTBuster = 40;
}
onClipEvent (enterFrame) {
if (Key.isDown(49)) {
_root.background._visible = false;
}
}
onClipEvent (enterFrame) {
if (Key.isDown(50)) {
_root.background._visible = true;
}
}
onClipEvent (enterFrame) {
if (((Key.isDown(_root.Keypausenum) and (pausedelay < 1)) and (_currentframe >= 15)) and (!((booyashaka or freeze) or gamepause))) {
stop();
pausedelay = 10;
_global.gamepause = true;
} else if ((Key.isDown(_root.Keypausenum) and gamepause) and (pausedelay < 1)) {
if (animated) {
play();
}
pausedelay = 10;
_global.gamepause = false;
} else if (pausedelay > 0) {
pausedelay = pausedelay - 1;
}
if ((!((death or freeze) or gamepause)) and (_currentframe >= 15)) {
if (Key.isDown(_root.Keyleftnum) and (!(((airborne or dashing) or injured) or clinging))) {
if ((this._x - (this._width / 2)) > left) {
this._x = this._x - groundIncr;
this._xscale = "-200";
play();
}
if (((dashpresstime < 1) and _root.twopressdash) and (!(((airborne or dashing) or injured) or clinging))) {
dashdirect = -1;
ddashenable = false;
dashpresstime = dashvary;
}
} else if ((Key.isDown(_root.Keyleftnum) and airborne) and (!injured)) {
clingLeft = Left;
if ((((_x - (_width / 2)) > left) and (!busterout)) or (((_x - (_width / 2)) > (left + 15)) and busterout)) {
if (dashing) {
_x = (_x - airDashIncr);
if (xvel > 0) {
xvel = xvel - 1;
}
} else {
_x = (_x - airIncr);
}
_xscale = "-200";
} else {
if ((airborne and (!injured)) and hitTest(_root.viewable)) {
airborne = false;
dashing = false;
clinging = true;
yvel = 0;
xvel = 0;
_x = clingLeft;
clingRight = undefined;
_xscale = -200;
this.gotoAndStop(FCling);
}
}
} else if (Key.isDown(_root.Keyrightnum) and (!(((airborne or dashing) or injured) or clinging))) {
if (((this._width / 2) + this._x) < right) {
this._x = this._x + groundIncr;
this._xscale = "200";
play();
}
if (((dashpresstime < 1) and _root.twopressdash) and (!(((airborne or dashing) or injured) or clinging))) {
dashdirect = 1;
ddashenable = false;
dashpresstime = dashvary;
}
} else if ((Key.isDown(_root.Keyrightnum) and airborne) and (!injured)) {
if (((((this._width / 2) + this._x) < right) and (!busterout)) or ((((this._width / 2) + this._x) < (right - 15)) and busterout)) {
if (dashing) {
this._x = this._x + airDashIncr;
if (xvel < 0) {
xvel = xvel + 1;
}
} else {
this._x = this._x + airIncr;
}
this._xscale = "200";
} else {
if ((airborne and (!injured)) and hitTest(_root.viewable)) {
airborne = false;
dashing = false;
clinging = true;
yvel = 0;
xvel = 0;
_x = right;
clingLeft = undefined;
clingRight = Right;
_xscale = 200;
this.gotoAndStop(FCling);
}
}
} else if (((!((airborne or dashing) or clinging)) and (this._currentframe != FStand)) and (!injured)) {
this.gotoAndStop(FStand);
}
if (Key.isDown(_root.Keyjumpnum) and (!(airborne or injured))) {
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
if (clinging) {
airborne = true;
clinging = false;
dashing = true;
yvel = -initialJump;
this.gotoAndPlay(FJump);
if (_xscale > 0) {
rightwall = (this._width / 4) + 10;
if (busterout) {
rightwall = rightwall + 15;
}
_x = (_x - (rightwall + 1));
xvel = -initialMove;
} else {
leftwall = (-(this._width / 4)) - 10;
if (busterout) {
leftwall = leftwall - 15;
}
_x = (_x - (leftwall + 1));
xvel = initialMove;
}
_xscale = (-_xscale);
} else {
airborne = true;
yvel = -initialJump;
this.gotoAndPlay(FJump);
play();
if (_currentframe < FJump) {
this.gotoAndPlay(FJump);
}
}
}
if ((Key.isDown(_root.Keydashnum) or ((((Key.isDown(_root.Keyrightnum) and (dashdirect == 1)) or (Key.isDown(_root.Keyleftnum) and (dashdirect == -1))) and (dashpresstime > 0)) and ddashenable)) and (!(((airborne or dashing) or injured) or clinging))) {
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
if (this._xscale < 0) {
dashtime = maxdashtime;
xvel = -dashvelocity;
dashing = true;
duplicateMovieClip (_root.OriginalDashEffect, "DashEffect", 2001);
_root.DashEffect._y = _y;
_root.DashEffect._x = _x + (_width / 2);
_root.DashEffect._xscale = -100;
} else {
dashtime = maxdashtime;
xvel = dashvelocity;
dashing = true;
duplicateMovieClip (_root.OriginalDashEffect, "DashEffect", 2001);
_root.DashEffect._y = _y;
_root.DashEffect._x = _x - (_width / 2);
}
_root.MMDashSound.gotoAndPlay(2);
this.gotoAndPlay(FDashS);
}
if (((((dashdirect != 0) and (dashpresstime > 0)) and (!Key.isDown(_root.Keyrightnum))) and (!Key.isDown(_root.Keyleftnum))) and (!ddashenable)) {
ddashenable = true;
dashpresstime = dashvary;
} else if (Key.isDown(_root.Keyleftnum) and (dashdirect == 1)) {
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
} else if (Key.isDown(_root.Keyrightnum) and (dashdirect == -1)) {
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
}
if ((Key.isdown(_root.Keyshootnum) and (shotsinplay < 3)) and (!(injured or busterout))) {
CVTMode(0, CVTBuster);
shotnumber = shotnumber + 1;
shotsinplay = shotsinplay + 1;
_root.OriginalShot.duplicateMovieClip("Shot" + shotnumber, shotnumber);
point = new Object();
point.x = Weapon._x;
point.y = Weapon._y;
localToGlobal(point);
_root["Shot" + shotnumber]._visible = true;
_root["Shot" + shotnumber]._x = point.x - _root._x;
_root["Shot" + shotnumber]._y = point.y - _root._y;
if (shotnumber == 10) {
shotnumber = 1;
}
_root["Shot" + shotnumber].gotoAndPlay(2);
busterout = true;
} else if (Key.isdown(_root.Keyshootnum) and (!(injured or busterout))) {
CVTMode(0, CVTBuster);
busterout = true;
}
if ((busterout and (!Key.isDown(_root.Keyshootnum))) and (!injured)) {
if (chargepoints > (chargedB - 1)) {
shotnumber = shotnumber + 1;
shotsinplay = shotsinplay + 1;
_root.OriginalChargedBlastB.duplicateMovieClip("Shot" + shotnumber, shotnumber);
point = new Object();
point.x = Weapon._x;
point.y = Weapon._y;
localToGlobal(point);
_root["Shot" + shotnumber]._visible = true;
_root["Shot" + shotnumber]._x = point.x - _root._x;
_root["Shot" + shotnumber]._y = point.y - _root._y;
if (shotnumber == 10) {
shotnumber = 1;
}
_root.sfx9.start(0, 0);
}
_root.sfx10.stop("mmstartcharging");
_root.sfx11.stop("mmcharging");
myColour.setTransform(BaseColour);
busterout = false;
chargepoints = 0;
CVTMode(CVTBuster, 0);
}
}
}
onClipEvent (enterFrame) {
if (airborne and (!(freeze or gamepause))) {
_y = (_y + yvel);
if (yvel < terminal) {
if ((!Key.isDown(_root.Keyjumpnum)) and (yvel < 0)) {
yvel = 0;
} else {
yvel = yvel + gravity;
if (yvel > terminal) {
yvel = terminal;
}
}
}
}
if (clinging and (!(freeze or gamepause))) {
_y = (_y + yvel);
if (yvel < (terminal * clingfactor)) {
yvel = yvel + (gravity * clingfactor);
if (yvel > (terminal * clingfactor)) {
yvel = terminal * clingfactor;
}
}
}
if (dashing and (!(freeze or gamepause))) {
if ((!airborne) and (dashtime < (maxdashtime - 2))) {
this.gotoAndStop(FDash);
}
if (((((this._width / 2) + this._x) < right) and (xvel > 0)) or (((this._x - (this._width / 2)) > left) and (xvel < 0))) {
this._x = this._x + xvel;
dashtime = dashtime - 1;
if ((dashtime < 1) and (!airborne)) {
dashing = false;
xvel = 0;
this.gotoAndStop(FStand);
}
} else {
dashtime = 0;
dashing = false;
xvel = 0;
}
if (airborne) {
if (xvel > 8) {
xvel = xvel - 1;
} else if (xvel < -8) {
xvel = xvel + 1;
}
}
}
if (dashpresstime > 0) {
dashpresstime = dashpresstime - 1;
} else if (dashdirect != 0) {
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
}
}
onClipEvent (enterFrame) {
if (!freeze) {
leftwall = (this._x - (this._width / 4)) - 10;
if (busterout) {
leftwall = leftwall - 15;
}
if (((leftwall < left) and ((left - leftwall) < ((3 * _width) / 4))) and (!clinging)) {
this._x = this._x + (left - leftwall);
if (dashing) {
dashing = false;
dashtime = 0;
xvel = 0;
if (airborne and (!Injured)) {
this.gotoAndStop(FAir);
} else if (!Injured) {
this.gotoAndStop(FStand);
}
}
}
if ((clinging and (_xscale < 0)) and (_x != clingLeft)) {
airborne = true;
clinging = false;
this.gotoAndStop(FAir);
}
rightwall = ((this._width / 4) + this._x) + 10;
if (busterout) {
rightwall = rightwall + 15;
}
if (((rightwall > right) and ((rightwall - right) < ((3 * _width) / 4))) and (!clinging)) {
this._x = this._x - (rightwall - right);
if (dashing) {
dashing = false;
dashtime = 0;
xvel = 0;
if (airborne and (!Injured)) {
this.gotoAndStop(FAir);
} else if (!Injured) {
this.gotoAndStop(FStand);
}
}
}
if ((clinging and (_xscale > 0)) and (_x != clingRight)) {
airborne = true;
clinging = false;
this.gotoAndStop(FAir);
}
if ((airborne and ((this._y - this._height) < ceiling)) and ((ceiling - (this._y - this._height)) < (this._height * 0.75))) {
if (yvel < 0) {
this._y = ceiling + this._height;
yvel = 0;
}
}
if (((_y > ground) and (yvel > 0)) and (((_y - ground) < (_height * 0.4)) or (((_y - yvel) - ground) < (_height * 0.4)))) {
_y = ground;
if (airborne) {
this._y = ground;
if (Key.isDown(_root.Keyrightnum)) {
this._x = this._x + 15;
this._xscale = "200";
this.gotoAndPlay(FRun);
} else if (Key.isDown(_root.Keyleftnum)) {
this._x = this._x - 15;
this._xscale = "-200";
this.gotoAndPlay(FRun);
}
dashing = false;
Injured = false;
Flailing = false;
airborne = false;
yvel = 0;
play();
}
if (clinging) {
clinging = false;
this.gotoAndStop(FStand);
}
}
}
}
onClipEvent (enterFrame) {
if ((!death) and (_currentframe >= 15)) {
if (((busterout and Key.isDown(_root.Keyshootnum)) and (!gamepause)) or (freeze and busterout)) {
if (chargepoints < chargedB) {
if (chargepoints == 5) {
_root.sfx10.start(0, 0);
}
chargepoints = chargepoints + 1;
value = myColour.getTransform();
if (((value.rb == 0) and (chargepoints > 5)) and (!death)) {
myColour.setTransform(CFlashColour);
} else {
myColour.setTransform(BaseColour);
}
} else if (chargepoints > 5) {
value = myColour.getTransform();
if ((value.rb == 0) and (!death)) {
myColour.setTransform(CFlashColour2);
} else {
myColour.setTransform(BaseColour);
}
}
}
if (((_y < ground) and (!airborne)) and (!(((landed or freeze) or gamepause) or clinging))) {
airborne = true;
this.gotoAndPlay(FAir);
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
}
if (!(freeze or gamepause)) {
if (Injured and (!Flailing)) {
ddashenable = false;
dashpresstime = 0;
dashdirect = 0;
Flailing = true;
yvel = -12;
_y = (_y - 15);
airborne = true;
dashing = true;
clinging = false;
this.gotoAndPlay(FInjured);
animated = true;
invincible = true;
invincibletime = 40;
airrecover = 15;
}
if (Injured and Flailing) {
if (_currentframe < FInjured) {
this.gotoAndPlay(FInjured + 1);
}
if (airrecover < 1) {
Injured = false;
Flailing = false;
invincible = false;
this.gotoAndStop(FAir);
}
airrecover = airrecover - 1;
}
}
if ((invincible and (invincibletime > 0)) and (!(death or gamepause))) {
invincibletime = invincibletime - 1;
} else if (invincible and (!(death or gamepause))) {
invincible = false;
}
if (invincible and (!((injured or death) or gamepause))) {
if (_alpha == 100) {
setProperty(this, _alpha , 95);
} else if (_alpha > 10) {
setProperty(this, _alpha , 10);
} else {
setProperty(this, _alpha , 100);
}
} else if (_alpha != 100) {
setProperty(this, _alpha , 100);
}
if (health < 1) {
_root.dies();
}
if (freeze and (!gamepause)) {
if (!bossfight) {
this._x = this._x + xvel;
}
}
if (clinging and (((_xscale > 0) and (Right != clingRight)) or ((_xscale < 0) and (Left != clingLeft)))) {
clinging = false;
airborne = true;
this.gotoAndStop(FAir);
}
shotsinplay = 0;
shotchecknum = 0;
shotchecknum == 1;
while (shotchecknum < 11) {
if (_root["Shot" + shotchecknum]._y != undefined) {
shotsinplay = shotsinplay + 1;
}
shotchecknum = shotchecknum + 1;
}
}
}
onClipEvent (enterFrame) {
if (!(freeze or gamepause)) {
if (xfollow) {
_root._x = (-_x) + 250;
_root.Viewable._x = _x + 70;
_root.viewblock._x = _x + 70;
_root.background._x = _x * 0.2;
}
if (yfollow) {
_root._y = (-_y) + 240;
_root.Viewable._y = _y;
_root.viewblock._y = _y;
}
}
}
onClipEvent (enterFrame) {
if ((airborne and (_currentframe < FAir)) and (!gamepause)) {
play();
}
if ((airborne and (_currentframe < FJump)) and (!gamepause)) {
this.gotoAndPlay(FJump);
}
if (booyashaka) {
airborne = false;
dashing = false;
busterout = false;
invincible = false;
if (this._y < ground) {
this.gotoAndStop(FAir);
this._y = this._y + yvel;
if (yvel < 30) {
yvel = yvel + ((Math.abs(yvel) * 0.15) + 1);
}
} else if ((_y >= ground) and (!victorystart)) {
_root.sfx10.stop();
_root.sfx11.stop();
victorystart = true;
_y = ground;
this.gotoAndStop(FStand);
freeze = true;
victory = new Sound();
victory.attachSound("victoryjingle");
victory.onSoundComplete = function () {
if (_root.Megaman._currentframe < FVictory) {
_root.Megaman.gotoAndPlay(FVictory);
}
};
victory.start(0, 0);
} else if ((_y == ground) and (_currentframe < FVictory)) {
this.gotoAndStop(FStand);
}
if (this._currentframe == FAbsorb) {
this.gotoAndPlay(FTeleportUp);
freeze = false;
}
}
}
Instance of Symbol 553 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (!used) {
if (hitTest(_root.Megaman)) {
_root.sfx12.start(0, 0);
_root.lives = _root.lives + 1;
this._visible = false;
used = true;
}
}
}
Instance of Symbol 623 MovieClip "Boss" in Frame 8
onClipEvent (load) {
basscolour = new Color(this);
basstransform = new Object();
basstransform.rb = 100;
basstransform2 = new Object();
basstransform2.rb = 0;
sfx = new Sound(this);
sfx2 = new Sound(this);
sfx3 = new Sound(this);
sfx.attachSound("nmehitsound");
sfx2.attachSound("bosshitsound");
sfx3.attachSound("ting");
FSmallBoost = 126;
FGunOut = 132;
FLargeBoost = 138;
FSlam = 146;
FDeath = 156;
PreF = 5;
health = 168;
busy = false;
transformed = false;
clipBounds = _root.bossroom.getBounds(_root);
bossceiling = clipBounds.yMin;
bossground = clipBounds.yMax;
bossvmiddle = (bossceiling + bossground) / 2;
bossleft = clipBounds.xMin;
bossright = clipBounds.xMax;
bosshmiddle = (bossleft + bossright) / 2;
xTarget = 0;
xvel = 0;
yTarget = 0;
yvel = 0;
action = "";
this._xscale = -100;
animated = false;
}
onClipEvent (enterFrame) {
if (!gamepause) {
if (stopped) {
if (animated) {
play();
}
stopped = false;
}
if (!bossdeath) {
setProperty(this, _alpha , 100);
if (_global.bossfight) {
if (this._currentframe == 1) {
this.gotoAndPlay(2);
}
if (this._currentframe >= FSmallBoost) {
if (_root.Megaman.freeze and (!victory)) {
_root.Megaman.freeze = false;
_root.Megaman.gotoAndPlay(FRun);
}
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
this.health = this.health - _root["Shot" + count].damage;
removeMovieClip(_root["Shot" + count]);
if (this.health < 1) {
bossdeath = true;
sfx2.start(0, 0);
stop();
_root.Megaman.freeze = true;
} else if ((health / 18) == int(health / 18)) {
sfx2.start(0, 0);
} else {
sfx.start(0, 0);
sfx.start(0, 0);
}
setProperty(this, _alpha , 0);
}
count++;
}
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 2;
_root.Megaman.injured = true;
_root.Megaman.xvel = (_root.Megaman._xscale / Math.abs(_root.Megaman._xscale)) * -8;
if (busy and ((action == "dash") or (action == "stomp"))) {
_root.Megaman.xvel = Math.abs(_root.Megaman.xvel * 3) * ((-this._xscale) / Math.abs(this._xscale));
}
}
if ((!busy) and (!transformed)) {
actionconstant = Math.random() * 100;
if (actionconstant < 44) {
if (_root.Megaman._x > this._x) {
xTarget = bossleft;
yTarget = bossground - 90;
this._xscale = 90;
} else {
xTarget = bossright;
yTarget = bossground - 90;
this._xscale = -90;
}
xvel = 20;
yvel = 20;
busy = true;
action = "triple";
finished = false;
arrivey = false;
arrivex = false;
timer = 0;
} else if (actionconstant < 71) {
if (_root.Megaman._x > this._x) {
xTarget = bossright;
yTarget = bossground + 10;
this._xscale = 90;
} else {
xTarget = bossleft;
yTarget = bossground + 10;
this._xscale = -90;
}
basscolour.setTransform(basstransform);
xvel = 25;
yvel = 40;
busy = true;
dashertime = 0;
action = "dash";
_root.sfx3.start(0, 0);
this.gotoAndPlay(FLargeBoost);
} else {
yTarget = bossvmiddle;
xvel = 15;
yvel = 30;
busy = true;
action = "stomp";
seeking = false;
striking = false;
slam = false;
this.gotoAndPlay(FLargeBoost);
}
}
if (busy) {
if (action == "triple") {
if (!finished) {
if ((xTarget == bossright) and (this._x < bossright)) {
this._x = this._x + xvel;
} else if ((xTarget == bossleft) and (this._x > bossleft)) {
this._x = this._x - xvel;
} else {
arrivex = true;
}
if (Math.abs(this._y - yTarget) < yvel) {
this._y = yTarget;
arrivey = true;
} else if (this._y < yTarget) {
this._y = this._y + yvel;
} else if (this._y > yTarget) {
this._y = this._y - yvel;
}
if ((arrivex and arrivey) and (timer == 0)) {
this.gotoAndPlay(FGunOut);
point = new Object();
point.x = Weapon._x;
point.y = Weapon._y;
localToGlobal(point);
timer = 28;
duplicateMovieClip (_root.OriginalBassSmall, "SmallShot1", 205);
_root.SmallShot1._x = point.x - _root._x;
_root.SmallShot1._y = point.y - _root._y;
if (this._xscale > 0) {
_root.SmallShot1.xvel = 25;
} else {
_root.SmallShot1.xvel = -25;
}
_root.sfx6.start(0, 0);
} else if (arrivey and arrivex) {
timer = timer - 1;
if (timer == 22) {
duplicateMovieClip (_root.OriginalBassSmall, "SmallShot2", 206);
_root.SmallShot2._x = point.x - _root._x;
_root.SmallShot2._y = point.y - _root._y;
if (this._xscale > 0) {
_root.SmallShot2.xvel = 25;
} else {
_root.SmallShot2.xvel = -25;
}
_root.sfx6.start(0, 0);
} else if (timer == 16) {
duplicateMovieClip (_root.OriginalBassMedium, "MedShot", 207);
_root.MedShot._x = point.x - _root._x;
_root.MedShot._y = point.y - _root._y;
if (this._xscale > 0) {
_root.MedShot.xvel = 25;
_root.MedShot._xscale = 100;
} else {
_root.MedShot.xvel = -25;
_root.MedShot._xscale = -100;
}
_root.sfx6.start(0, 0);
} else if (timer == 10) {
duplicateMovieClip (_root.OriginalBassTriple, "TripleSpawn", 208);
_root.TripleSpawn._x = point.x - _root._x;
_root.TripleSpawn._y = point.y - _root._y;
_root.TripleSpawn.instance = true;
if (this._xscale < 0) {
_root.TripleSpawn._xscale = -100;
}
_root.sfx8.start(0, 0);
_root.sfx8.start(0, 0);
} else if (timer == 0) {
finished = true;
}
}
} else {
busy = false;
this.gotoAndPlay(FSmallBoost);
}
} else if (action == "dash") {
if (dashertime == 10) {
_root.sfx4.start(0, 0);
if ((xTarget == bossright) and (this._x < bossright)) {
this._x = this._x + xvel;
if (this._y < bossground) {
this._y = this._y + yvel;
}
} else if ((xTarget == bossleft) and (this._x > bossleft)) {
this._x = this._x - xvel;
if (this._y < bossground) {
this._y = this._y + yvel;
}
} else {
basscolour.setTransform(basstransform2);
busy = false;
_root.sfx4.stop("bdash");
this.gotoAndPlay(FSmallBoost);
}
} else {
dashertime = dashertime + 1;
}
} else if (action == "stomp") {
if ((!seeking) and (!striking)) {
_root.sfx7.start(0, 0);
if (this._y > yTarget) {
this._y = this._y - yvel;
} else {
seeking = true;
}
} else if (seeking and (!striking)) {
xTarget = _root.Megaman._x;
if (Math.abs(this._x - xTarget) < xvel) {
this._x = _root.Megaman._x;
} else if (this._x < _root.Megaman._x) {
this._x = this._x + xvel;
this._xscale = 90;
} else {
this._x = this._x - xvel;
this._xscale = -90;
}
if (this._x == _root.Megaman._x) {
striking = true;
}
} else if (this._y < bossground) {
this._y = this._y + yvel;
} else if (!slam) {
this._y = bossground;
timer = 10;
slam = true;
this.gotoAndPlay(FSlam);
_root.sfx7.stop("hover");
_root.sfx5.start(0, 0);
} else {
timer = timer - 1;
if (timer < 1) {
busy = false;
}
}
}
}
} else if (this._currentframe == 55) {
_root.sfx2.start(0, 0);
} else if (this._currentframe == 60) {
_root.Viewable.gotoAndStop(2);
}
}
} else {
setProperty(this, _alpha , 100);
_root.bgm2.stop();
if (!dying) {
if (this._y < bossground) {
this._y = this._y + 20;
} else if (this._y > bossground) {
this._y = bossground;
this.gotoAndPlay(FDeath);
dying = true;
} else {
this.gotoAndPlay(FDeath);
dying = true;
}
}
}
} else {
stopped = true;
stop();
}
}
Instance of Symbol 624 MovieClip "OriginalSniperJoe" in Frame 8
onClipEvent (load) {
busy = false;
shield = false;
action = "";
standtimer = 30;
minthrowdist = 192;
maxthrowdist = 288;
rof = 5;
shottime = 0;
shotnumber = shotmin;
health = 12;
sfx = new Sound(this);
sfx2 = new Sound(this);
sfx.attachSound("nmehitsound");
sfx2.attachSound("nmedeathsound");
animated = true;
}
onClipEvent (enterFrame) {
if (!gamepause) {
if (stopped) {
if (animated) {
play();
}
stopped = false;
}
setProperty(this, _alpha , 100);
if (this.hitTest(_root.Viewable)) {
if ((!busy) and (standtimer == 0)) {
if (_root.Megaman._x > this._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
if (this._x > _root.Megaman._x) {
difference = this._x - _root.Megaman._x;
} else {
difference = _root.Megaman._x - this._x;
}
if ((difference < maxthrowdist) and (difference > minthrowdist)) {
action = "throw";
this.gotoAndPlay("throw");
busy = true;
} else {
action = "shoot";
this.gotoAndPlay("shootstart");
busy = true;
}
} else if (!busy) {
standtimer = standtimer - 1;
if (_root.Megaman._x > this._x) {
this._xscale = -100;
} else {
this._xscale = 100;
}
} else if (action == "throw") {
if (throwing and (!thrown)) {
_root.OriginalGrenade.duplicateMovieClip("Grenade" + grennumber, grennumber);
point = new Object();
point.x = Weapon._x;
point.y = Weapon._y;
localToGlobal(point);
_root["Grenade" + grennumber]._visible = true;
_root["Grenade" + grennumber]._x = point.x - _root._x;
_root["Grenade" + grennumber]._y = point.y - _root._y;
_root["Grenade" + grennumber]._visible = true;
_root["Grenade" + grennumber].yvel = -30;
_root["Grenade" + grennumber].detonate = this._y;
_root["Grenade" + grennumber].master = this._name;
if (this._xscale == 100) {
_root["Grenade" + grennumber].xvel = -15;
} else {
_root["Grenade" + grennumber].xvel = 15;
}
thrown = true;
} else if (throwing) {
if (_root["Grenade" + grennumber].remove) {
removeMovieClip(_root["Grenade" + grennumber]);
throwing = false;
thrown = false;
play();
busy = false;
action = "";
standtimer = int((Math.random() * 50) + 30);
}
}
} else if (shooting) {
if (shottime == 0) {
_root.OriginalJoeShot.duplicateMovieClip("Shot" + shotnumber, shotnumber);
point = new Object();
point.x = Weapon._x;
point.y = Weapon._y;
localToGlobal(point);
_root["Shot" + shotnumber]._visible = true;
_root["Shot" + shotnumber]._x = point.x - _root._x;
_root["Shot" + shotnumber]._y = point.y - _root._y;
if (this._xscale == 100) {
_root["Shot" + shotnumber].xvel = -40;
} else {
_root["Shot" + shotnumber].xvel = 40;
}
_root["Shot" + shotnumber].gotoAndPlay(2);
if (shotnumber == shotmax) {
shotnumber = shotmin;
shooting = false;
play();
busy = false;
action = "";
standtimer = int((Math.random() * 50) + 30);
} else {
shotnumber = shotnumber + 1;
shottime = rof;
}
} else {
shottime = shottime - 1;
}
}
} else {
this.removeMovieClip();
}
} else if (!stopped) {
stopped = true;
stop();
}
}
onClipEvent (enterFrame) {
if (!gamepause) {
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count]) and (!shield)) {
this.health = this.health - _root["Shot" + count].damage;
removeMovieClip(_root["Shot" + count]);
if (this.health < 1) {
_root.OriginalExplosion.duplicateMovieClip("JoeExplosion", 300);
_root.JoeExplosion._x = this._x;
_root.JoeExplosion._y = this._y - (this._height / 2);
sfx2.start(0, 0);
sfx2.start(0, 0);
_root["Grenade" + grennumber].okay = true;
removeMovieClip(this);
} else {
sfx.start(0, 0);
sfx.start(0, 0);
}
setProperty(this, _alpha , 0);
}
count++;
}
if ((hitTest(_root.Megaman) and (!_root.Megaman.injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 2;
_root.Megaman.injured = true;
_root.Megaman.xvel = (_root.Megaman._xscale / Math.abs(_root.Megaman._xscale)) * -8;
}
}
}
Instance of Symbol 645 MovieClip "OriginalGrenade" in Frame 8
onClipEvent (load) {
exploded = false;
remove = false;
okay = false;
}
onClipEvent (enterFrame) {
if ((!gamepause) and (detonate != undefined)) {
play();
if (this._y < detonate) {
this._x = this._x + xvel;
this._y = this._y + yvel;
yvel = yvel + ((Math.abs(yvel) * 0.2) + 2.5);
} else if (!exploded) {
this._y = detonate;
this.gotoAndPlay("boom");
exploded = true;
}
} else {
stop();
}
if (((remove and okay) or (remove and (_root[master]._x == undefined))) or death) {
removeMovieClip(this);
}
}
Instance of Symbol 455 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (!used) {
if (hitTest(_root.Megaman)) {
_root.sfx.start(0, Math.min(2, 27 - _root.Megaman.health));
_root.Megaman.health = Math.min(28, _root.Megaman.health + 3);
this._visible = false;
used = true;
}
}
}
Instance of Symbol 455 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (!used) {
if (hitTest(_root.Megaman)) {
_root.sfx.start(0, Math.min(2, 27 - _root.Megaman.health));
_root.Megaman.health = Math.min(28, _root.Megaman.health + 3);
this._visible = false;
used = true;
}
}
}
Instance of Symbol 658 MovieClip "OriginalDashEffect" in Frame 8
onClipEvent (enterFrame) {
if (gamepause) {
stop();
} else {
play();
}
}
Instance of Symbol 663 MovieClip in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 445 MovieClip "dfsp9" in Frame 8
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
if (!done) {
duplicateMovieClip (_root.OriginalDragonfly, "Dragonfly9", 209);
if (_root.Megaman._xscale > 0) {
_root.Dragonfly9._x = this._x + 480;
_root.Dragonfly9._xscale = 100;
} else {
_root.Dragonfly9._x = this._x - 480;
_root.Dragonfly9._xscale = -100;
}
_root.Dragonfly9._y = this._y;
if (_root.Megaman._xscale > 0) {
_root.Dragonfly9.xvel = -30;
} else {
_root.Dragonfly9.xvel = 30;
}
_root.Dragonfly9._visible = true;
done = true;
}
} else {
if (!hitTest(_root.Viewable)) {
done = false;
}
}
}
Instance of Symbol 445 MovieClip "sjsp2" in Frame 8
onClipEvent (load) {
done = false;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Viewable)) {
if (!done) {
duplicateMovieClip (_root.OriginalSniperJoe, "SniperJoe2", 402);
if (_root.Megaman._x > this._x) {
_root.SniperJoe2._xscale = -100;
} else {
_root.SniperJoe2._xscale = 100;
}
_root.SniperJoe2._x = this._x;
_root.SniperJoe2._y = this._y;
_root.SniperJoe2.ShotMax = 456;
_root.SniperJoe2.ShotMin = 454;
_root.SniperJoe2.grennumber = 457;
_root.SniperJoe2._visible = true;
done = true;
}
} else {
done = false;
}
}
Instance of Symbol 702 MovieClip "OriginalViewable" in Frame 8
onClipEvent (enterFrame) {
if (!genuine) {
stop();
}
}
Frame 9
_root._x = 0;
_root._y = 0;
_root.Viewable._x = 5000;
_root.Viewable._y = 5000;
_root.Viewblock._x = 5000;
_root.Viewblock._y = 5000;
Frame 28
stop();
Frame 29
_root._x = 0;
_root._y = 0;
_root.Viewable._x = 5000;
_root.Viewable._y = 5000;
_root.Viewblock._x = 5000;
_root.Viewblock._y = 5000;
_quality = "HIGH";
Frame 88
stop();
Symbol 35 MovieClip Frame 1
if (_root.neurload > 99) {
gotoAndStop (1);
}
Symbol 35 MovieClip Frame 20
if (_root.strucload < 100) {
gotoAndPlay (1);
}
Symbol 35 MovieClip Frame 40
if (_root.powerload < 100) {
gotoAndPlay (21);
}
Symbol 35 MovieClip Frame 60
if (_root.weapload < 100) {
gotoAndPlay (41);
}
Symbol 35 MovieClip Frame 80
if (_root.neurload < 100) {
gotoAndPlay (61);
} else {
gotoAndStop (1);
}
Symbol 60 MovieClip Frame 270
_root.play();
Symbol 67 MovieClip Frame 20
stop();
Symbol 69 Button
on (release) {
stopAllSounds();
gotoAndStop (8);
}
Symbol 76 Button
on (release) {
_root.gotoAndStop(5);
}
Symbol 84 Button
on (release) {
_root.nextFrame();
}
Symbol 98 Button
on (release) {
_root.prevFrame();
}
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 2
stop();
Symbol 157 Button
on (release) {
_root.nextFrame();
}
Symbol 159 Button
on (release) {
_root.gotoAndStop(3);
}
Symbol 181 MovieClip Frame 1
stop();
Symbol 181 MovieClip Frame 6
gotoAndStop (1);
Symbol 181 MovieClip Frame 7
stop();
Symbol 259 Button
on (release) {
_root.gotoAndStop(4);
}
Symbol 266 MovieClip Frame 1
stop();
Instance of Symbol 173 MovieClip in Symbol 266 MovieClip Frame 1
onClipEvent (keyUp) {
oldnum = _root.Keyleftnum;
old = _root.Keyleft;
_root.Keyleftnum = Key.getCode();
if (_root.Keyleftnum == 8) {
_root.Keyleft = "Backspace";
} else if (_root.Keyleftnum == 20) {
_root.Keyleft = "Caps Lock";
} else if (_root.Keyleftnum == 17) {
_root.Keyleft = "Control";
} else if (_root.Keyleftnum == 46) {
_root.Keyleft = "Delete";
} else if (_root.Keyleftnum == 40) {
_root.Keyleft = "Down Arrow";
} else if (_root.Keyleftnum == 35) {
_root.Keyleft = "End";
} else if (_root.Keyleftnum == 13) {
_root.Keyleft = "Enter";
} else if (_root.Keyleftnum == 27) {
_root.Keyleft = "Escape";
} else if (_root.Keyleftnum == 36) {
_root.Keyleft = "Home";
} else if (_root.Keyleftnum == 45) {
_root.Keyleft = "Insert";
} else if (_root.Keyleftnum == 37) {
_root.Keyleft = "Left Arrow";
} else if (_root.Keyleftnum == 34) {
_root.Keyleft = "Page Down";
} else if (_root.Keyleftnum == 33) {
_root.Keyleft = "Page Up";
} else if (_root.Keyleftnum == 39) {
_root.Keyleft = "Right Arrow";
} else if (_root.Keyleftnum == 16) {
_root.Keyleft = "Shift";
} else if (_root.Keyleftnum == 32) {
_root.Keyleft = "Spacebar";
} else if (_root.Keyleftnum == 9) {
_root.Keyleft = "Tab";
} else if (_root.Keyleftnum == 38) {
_root.Keyleft = "Up Arrow";
} else if (_root.Keyleftnum == 18) {
_root.Keyleft = "Alt";
} else if (_root.Keyleftnum == 106) {
_root.Keyleft = "Numpad *";
} else if (_root.Keyleftnum == 107) {
_root.Keyleft = "Numpad +";
} else if (_root.Keyleftnum == 108) {
_root.Keyleft = "Numpad Enter";
} else if (_root.Keyleftnum == 109) {
_root.Keyleft = "Numpad -";
} else if (_root.Keyleftnum == 110) {
_root.Keyleft = "Numpad .";
} else if (_root.Keyleftnum == 111) {
_root.Keyleft = "Numpad /";
} else if (_root.Keyleftnum == 144) {
_root.Keyleft = "NumLock";
} else if (_root.Keyleftnum == 186) {
_root.Keyleft = ": or ;";
} else if (_root.Keyleftnum == 187) {
_root.Keyleft = "= or +";
} else if (_root.Keyleftnum == 189) {
_root.Keyleft = "- or _";
} else if (_root.Keyleftnum == 192) {
_root.Keyleft = "` or ~";
} else if (_root.Keyleftnum == 219) {
_root.Keyleft = "[ or {";
} else if (_root.Keyleftnum == 220) {
_root.Keyleft = "\\or |";
} else if (_root.Keyleftnum == 221) {
_root.Keyleft = "] or }";
} else if (_root.Keyleftnum == 222) {
_root.Keyleft = "\" or '";
} else if ((_root.Keyleftnum > 95) and (_root.Keyleftnum < 106)) {
_root.Keyleft = "Numpad " + String(_root.Keyleftnum - 96);
} else if ((_root.Keyleftnum > 111) and (_root.Keyleftnum < 127)) {
_root.Keyleft = "F" + String(_root.Keyleftnum - 111);
} else {
_root.Keyleft = String.fromCharCode(_root.Keyleftnum);
}
if (((((_root.Keyleft == _root.Keyright) or (_root.Keyleft == _root.KeyJump)) or (_root.Keyleft == _root.KeyDash)) or (_root.Keyleft == _root.KeyPause)) or (_root.Keyleft == _root.KeyShoot)) {
_root.Keyleftnum = oldnum;
_root.Keyleft = old;
_root.error.gotoAndPlay(2);
} else {
_parent.nextFrame();
}
}
Symbol 266 MovieClip Frame 2
stop();
Instance of Symbol 173 MovieClip in Symbol 266 MovieClip Frame 2
onClipEvent (keyUp) {
oldnum = _root.Keyrightnum;
old = _root.Keyright;
_root.Keyrightnum = Key.getCode();
if (_root.Keyrightnum == 8) {
_root.Keyright = "Backspace";
} else if (_root.Keyrightnum == 20) {
_root.Keyright = "Caps Lock";
} else if (_root.Keyrightnum == 17) {
_root.Keyright = "Control";
} else if (_root.Keyrightnum == 46) {
_root.Keyright = "Delete";
} else if (_root.Keyrightnum == 40) {
_root.Keyright = "Down Arrow";
} else if (_root.Keyrightnum == 35) {
_root.Keyright = "End";
} else if (_root.Keyrightnum == 13) {
_root.Keyright = "Enter";
} else if (_root.Keyrightnum == 27) {
_root.Keyright = "Escape";
} else if (_root.Keyrightnum == 36) {
_root.Keyright = "Home";
} else if (_root.Keyrightnum == 45) {
_root.Keyright = "Insert";
} else if (_root.Keyrightnum == 37) {
_root.Keyright = "Left Arrow";
} else if (_root.Keyrightnum == 34) {
_root.Keyright = "Page Down";
} else if (_root.Keyrightnum == 33) {
_root.Keyright = "Page Up";
} else if (_root.Keyrightnum == 39) {
_root.Keyright = "Right Arrow";
} else if (_root.Keyrightnum == 16) {
_root.Keyright = "Shift";
} else if (_root.Keyrightnum == 32) {
_root.Keyright = "Spacebar";
} else if (_root.Keyrightnum == 9) {
_root.Keyright = "Tab";
} else if (_root.Keyrightnum == 38) {
_root.Keyright = "Up Arrow";
} else if (_root.Keyrightnum == 18) {
_root.Keyright = "Alt";
} else if (_root.Keyrightnum == 106) {
_root.Keyright = "Numpad *";
} else if (_root.Keyrightnum == 107) {
_root.Keyright = "Numpad +";
} else if (_root.Keyrightnum == 108) {
_root.Keyright = "Numpad Enter";
} else if (_root.Keyrightnum == 109) {
_root.Keyright = "Numpad -";
} else if (_root.Keyrightnum == 110) {
_root.Keyright = "Numpad .";
} else if (_root.Keyrightnum == 111) {
_root.Keyright = "Numpad /";
} else if (_root.Keyrightnum == 144) {
_root.Keyright = "NumLock";
} else if (_root.Keyrightnum == 186) {
_root.Keyright = ": or ;";
} else if (_root.Keyrightnum == 187) {
_root.Keyright = "= or +";
} else if (_root.Keyrightnum == 189) {
_root.Keyright = "- or _";
} else if (_root.Keyrightnum == 192) {
_root.Keyright = "` or ~";
} else if (_root.Keyrightnum == 219) {
_root.Keyright = "[ or {";
} else if (_root.Keyrightnum == 220) {
_root.Keyright = "\\or |";
} else if (_root.Keyrightnum == 221) {
_root.Keyright = "] or }";
} else if (_root.Keyrightnum == 222) {
_root.Keyright = "\" or '";
} else if ((_root.Keyrightnum > 95) and (_root.Keyrightnum < 106)) {
_root.Keyright = "Numpad " + String(_root.Keyrightnum - 96);
} else if ((_root.Keyrightnum > 111) and (_root.Keyrightnum < 127)) {
_root.Keyright = "F" + String(_root.Keyrightnum - 111);
} else {
_root.Keyright = String.fromCharCode(_root.Keyrightnum);
}
if (((((_root.Keyright == _root.Keyleft) or (_root.Keyright == _root.KeyJump)) or (_root.Keyright == _root.KeyDash)) or (_root.Keyright == _root.KeyPause)) or (_root.Keyright == _root.KeyShoot)) {
_root.Keyrightnum = oldnum;
_root.Keyright = old;
_root.error.gotoAndPlay(2);
} else {
_parent.nextFrame();
}
}
Symbol 266 MovieClip Frame 3
stop();
Instance of Symbol 173 MovieClip in Symbol 266 MovieClip Frame 3
onClipEvent (keyUp) {
oldnum = _root.Keyjumpnum;
old = _root.Keyjump;
_root.Keyjumpnum = Key.getCode();
if (_root.Keyjumpnum == 8) {
_root.Keyjump = "Backspace";
} else if (_root.Keyjumpnum == 20) {
_root.Keyjump = "Caps Lock";
} else if (_root.Keyjumpnum == 17) {
_root.Keyjump = "Control";
} else if (_root.Keyjumpnum == 46) {
_root.Keyjump = "Delete";
} else if (_root.Keyjumpnum == 40) {
_root.Keyjump = "Down Arrow";
} else if (_root.Keyjumpnum == 35) {
_root.Keyjump = "End";
} else if (_root.Keyjumpnum == 13) {
_root.Keyjump = "Enter";
} else if (_root.Keyjumpnum == 27) {
_root.Keyjump = "Escape";
} else if (_root.Keyjumpnum == 36) {
_root.Keyjump = "Home";
} else if (_root.Keyjumpnum == 45) {
_root.Keyjump = "Insert";
} else if (_root.Keyjumpnum == 39) {
_root.Keyjump = "Right Arrow";
} else if (_root.Keyjumpnum == 34) {
_root.Keyjump = "Page Down";
} else if (_root.Keyjumpnum == 33) {
_root.Keyjump = "Page Up";
} else if (_root.Keyjumpnum == 39) {
_root.Keyjump = "Right Arrow";
} else if (_root.Keyjumpnum == 16) {
_root.Keyjump = "Shift";
} else if (_root.Keyjumpnum == 32) {
_root.Keyjump = "Spacebar";
} else if (_root.Keyjumpnum == 9) {
_root.Keyjump = "Tab";
} else if (_root.Keyjumpnum == 38) {
_root.Keyjump = "Up Arrow";
} else if (_root.Keyjumpnum == 18) {
_root.Keyjump = "Alt";
} else if (_root.Keyjumpnum == 106) {
_root.Keyjump = "Numpad *";
} else if (_root.Keyjumpnum == 107) {
_root.Keyjump = "Numpad +";
} else if (_root.Keyjumpnum == 108) {
_root.Keyjump = "Numpad Enter";
} else if (_root.Keyjumpnum == 109) {
_root.Keyjump = "Numpad -";
} else if (_root.Keyjumpnum == 110) {
_root.Keyjump = "Numpad .";
} else if (_root.Keyjumpnum == 111) {
_root.Keyjump = "Numpad /";
} else if (_root.Keyjumpnum == 144) {
_root.Keyjump = "NumLock";
} else if (_root.Keyjumpnum == 186) {
_root.Keyjump = ": or ;";
} else if (_root.Keyjumpnum == 187) {
_root.Keyjump = "= or +";
} else if (_root.Keyjumpnum == 189) {
_root.Keyjump = "- or _";
} else if (_root.Keyjumpnum == 192) {
_root.Keyjump = "` or ~";
} else if (_root.Keyjumpnum == 219) {
_root.Keyjump = "[ or {";
} else if (_root.Keyjumpnum == 220) {
_root.Keyjump = "\\or |";
} else if (_root.Keyjumpnum == 221) {
_root.Keyjump = "] or }";
} else if (_root.Keyjumpnum == 222) {
_root.Keyjump = "\" or '";
} else if ((_root.Keyjumpnum > 95) and (_root.Keyjumpnum < 106)) {
_root.Keyjump = "Numpad " + String(_root.Keyjumpnum - 96);
} else if ((_root.Keyjumpnum > 111) and (_root.Keyjumpnum < 127)) {
_root.Keyjump = "F" + String(_root.Keyjumpnum - 111);
} else {
_root.Keyjump = String.fromCharCode(_root.Keyjumpnum);
}
if (((((_root.Keyjump == _root.Keyleft) or (_root.Keyjump == _root.Keyright)) or (_root.Keyjump == _root.KeyDash)) or (_root.Keyjump == _root.KeyPause)) or (_root.Keyjump == _root.KeyShoot)) {
_root.Keyjumpnum = oldnum;
_root.Keyjump = old;
_root.error.gotoAndPlay(2);
} else {
_parent.nextFrame();
}
}
Symbol 266 MovieClip Frame 4
stop();
Instance of Symbol 173 MovieClip in Symbol 266 MovieClip Frame 4
onClipEvent (keyUp) {
oldnum = _root.Keyshootnum;
old = _root.Keyshoot;
_root.Keyshootnum = Key.getCode();
if (_root.Keyshootnum == 8) {
_root.Keyshoot = "Backspace";
} else if (_root.Keyshootnum == 20) {
_root.Keyshoot = "Caps Lock";
} else if (_root.Keyshootnum == 17) {
_root.Keyshoot = "Control";
} else if (_root.Keyshootnum == 46) {
_root.Keyshoot = "Delete";
} else if (_root.Keyshootnum == 40) {
_root.Keyshoot = "Down Arrow";
} else if (_root.Keyshootnum == 35) {
_root.Keyshoot = "End";
} else if (_root.Keyshootnum == 13) {
_root.Keyshoot = "Enter";
} else if (_root.Keyshootnum == 27) {
_root.Keyshoot = "Escape";
} else if (_root.Keyshootnum == 36) {
_root.Keyshoot = "Home";
} else if (_root.Keyshootnum == 45) {
_root.Keyshoot = "Insert";
} else if (_root.Keyshootnum == 39) {
_root.Keyshoot = "Right Arrow";
} else if (_root.Keyshootnum == 34) {
_root.Keyshoot = "Page Down";
} else if (_root.Keyshootnum == 33) {
_root.Keyshoot = "Page Up";
} else if (_root.Keyshootnum == 39) {
_root.Keyshoot = "Right Arrow";
} else if (_root.Keyshootnum == 16) {
_root.Keyshoot = "Shift";
} else if (_root.Keyshootnum == 32) {
_root.Keyshoot = "Spacebar";
} else if (_root.Keyshootnum == 9) {
_root.Keyshoot = "Tab";
} else if (_root.Keyshootnum == 38) {
_root.Keyshoot = "Up Arrow";
} else if (_root.Keyshootnum == 18) {
_root.Keyshoot = "Alt";
} else if (_root.Keyshootnum == 106) {
_root.Keyshoot = "Numpad *";
} else if (_root.Keyshootnum == 107) {
_root.Keyshoot = "Numpad +";
} else if (_root.Keyshootnum == 108) {
_root.Keyshoot = "Numpad Enter";
} else if (_root.Keyshootnum == 109) {
_root.Keyshoot = "Numpad -";
} else if (_root.Keyshootnum == 110) {
_root.Keyshoot = "Numpad .";
} else if (_root.Keyshootnum == 111) {
_root.Keyshoot = "Numpad /";
} else if (_root.Keyshootnum == 144) {
_root.Keyshoot = "NumLock";
} else if (_root.Keyshootnum == 186) {
_root.Keyshoot = ": or ;";
} else if (_root.Keyshootnum == 187) {
_root.Keyshoot = "= or +";
} else if (_root.Keyshootnum == 189) {
_root.Keyshoot = "- or _";
} else if (_root.Keyshootnum == 192) {
_root.Keyshoot = "` or ~";
} else if (_root.Keyshootnum == 219) {
_root.Keyshoot = "[ or {";
} else if (_root.Keyshootnum == 220) {
_root.Keyshoot = "\\or |";
} else if (_root.Keyshootnum == 221) {
_root.Keyshoot = "] or }";
} else if (_root.Keyshootnum == 222) {
_root.Keyshoot = "\" or '";
} else if ((_root.Keyshootnum > 95) and (_root.Keyshootnum < 106)) {
_root.Keyshoot = "Numpad " + String(_root.Keyshootnum - 96);
} else if ((_root.Keyshootnum > 111) and (_root.Keyshootnum < 127)) {
_root.Keyshoot = "F" + String(_root.Keyshootnum - 111);
} else {
_root.Keyshoot = String.fromCharCode(_root.Keyshootnum);
}
if (((((_root.Keyshoot == _root.Keyleft) or (_root.Keyshoot == _root.Keyright)) or (_root.Keyshoot == _root.Keyjump)) or (_root.Keyshoot == _root.KeyPause)) or (_root.Keyshoot == _root.Keydash)) {
_root.Keyshootnum = oldnum;
_root.Keyshoot = old;
_root.error.gotoAndPlay(2);
} else {
_parent.nextFrame();
}
}
Symbol 266 MovieClip Frame 5
stop();
Instance of Symbol 173 MovieClip in Symbol 266 MovieClip Frame 5
onClipEvent (keyUp) {
oldnum = _root.Keydashnum;
old = _root.Keydash;
_root.Keydashnum = Key.getCode();
if (_root.Keydashnum == 8) {
_root.Keydash = "Backspace";
} else if (_root.Keydashnum == 20) {
_root.Keydash = "Caps Lock";
} else if (_root.Keydashnum == 17) {
_root.Keydash = "Control";
} else if (_root.Keydashnum == 46) {
_root.Keydash = "Delete";
} else if (_root.Keydashnum == 40) {
_root.Keydash = "Down Arrow";
} else if (_root.Keydashnum == 35) {
_root.Keydash = "End";
} else if (_root.Keydashnum == 13) {
_root.Keydash = "Enter";
} else if (_root.Keydashnum == 27) {
_root.Keydash = "Escape";
} else if (_root.Keydashnum == 36) {
_root.Keydash = "Home";
} else if (_root.Keydashnum == 45) {
_root.Keydash = "Insert";
} else if (_root.Keydashnum == 39) {
_root.Keydash = "Right Arrow";
} else if (_root.Keydashnum == 34) {
_root.Keydash = "Page Down";
} else if (_root.Keydashnum == 33) {
_root.Keydash = "Page Up";
} else if (_root.Keydashnum == 39) {
_root.Keydash = "Right Arrow";
} else if (_root.Keydashnum == 16) {
_root.Keydash = "Shift";
} else if (_root.Keydashnum == 32) {
_root.Keydash = "Spacebar";
} else if (_root.Keydashnum == 9) {
_root.Keydash = "Tab";
} else if (_root.Keydashnum == 38) {
_root.Keydash = "Up Arrow";
} else if (_root.Keydashnum == 18) {
_root.Keydash = "Alt";
} else if (_root.Keydashnum == 106) {
_root.Keydash = "Numpad *";
} else if (_root.Keydashnum == 107) {
_root.Keydash = "Numpad +";
} else if (_root.Keydashnum == 108) {
_root.Keydash = "Numpad Enter";
} else if (_root.Keydashnum == 109) {
_root.Keydash = "Numpad -";
} else if (_root.Keydashnum == 110) {
_root.Keydash = "Numpad .";
} else if (_root.Keydashnum == 111) {
_root.Keydash = "Numpad /";
} else if (_root.Keydashnum == 144) {
_root.Keydash = "NumLock";
} else if (_root.Keydashnum == 186) {
_root.Keydash = ": or ;";
} else if (_root.Keydashnum == 187) {
_root.Keydash = "= or +";
} else if (_root.Keydashnum == 189) {
_root.Keydash = "- or _";
} else if (_root.Keydashnum == 192) {
_root.Keydash = "` or ~";
} else if (_root.Keydashnum == 219) {
_root.Keydash = "[ or {";
} else if (_root.Keydashnum == 220) {
_root.Keydash = "\\or |";
} else if (_root.Keydashnum == 221) {
_root.Keydash = "] or }";
} else if (_root.Keydashnum == 222) {
_root.Keydash = "\" or '";
} else if ((_root.Keydashnum > 95) and (_root.Keydashnum < 106)) {
_root.Keydash = "Numpad " + String(_root.Keydashnum - 96);
} else if ((_root.Keydashnum > 111) and (_root.Keydashnum < 127)) {
_root.Keydash = "F" + String(_root.Keydashnum - 111);
} else {
_root.Keydash = String.fromCharCode(_root.Keydashnum);
}
if (((((_root.Keydash == _root.Keyleft) or (_root.Keydash == _root.Keyright)) or (_root.Keydash == _root.Keyjump)) or (_root.Keydash == _root.KeyPause)) or (_root.Keydash == _root.KeyShoot)) {
_root.Keydashnum = oldnum;
_root.Keydash = old;
_root.error.gotoAndPlay(2);
} else {
_parent.nextFrame();
}
}
Symbol 266 MovieClip Frame 6
stop();
Instance of Symbol 173 MovieClip in Symbol 266 MovieClip Frame 6
onClipEvent (keyUp) {
oldnum = _root.Keypausenum;
old = _root.Keypause;
_root.Keypausenum = Key.getCode();
if (_root.Keypausenum == 8) {
_root.Keypause = "Backspace";
} else if (_root.Keypausenum == 20) {
_root.Keypause = "Caps Lock";
} else if (_root.Keypausenum == 17) {
_root.Keypause = "Control";
} else if (_root.Keypausenum == 46) {
_root.Keypause = "Delete";
} else if (_root.Keypausenum == 40) {
_root.Keypause = "Down Arrow";
} else if (_root.Keypausenum == 35) {
_root.Keypause = "End";
} else if (_root.Keypausenum == 13) {
_root.Keypause = "Enter";
} else if (_root.Keypausenum == 27) {
_root.Keypause = "Escape";
} else if (_root.Keypausenum == 36) {
_root.Keypause = "Home";
} else if (_root.Keypausenum == 45) {
_root.Keypause = "Insert";
} else if (_root.Keypausenum == 39) {
_root.Keypause = "Right Arrow";
} else if (_root.Keypausenum == 34) {
_root.Keypause = "Page Down";
} else if (_root.Keypausenum == 33) {
_root.Keypause = "Page Up";
} else if (_root.Keypausenum == 39) {
_root.Keypause = "Right Arrow";
} else if (_root.Keypausenum == 16) {
_root.Keypause = "Shift";
} else if (_root.Keypausenum == 32) {
_root.Keypause = "Spacebar";
} else if (_root.Keypausenum == 9) {
_root.Keypause = "Tab";
} else if (_root.Keypausenum == 38) {
_root.Keypause = "Up Arrow";
} else if (_root.Keypausenum == 18) {
_root.Keypause = "Alt";
} else if (_root.Keypausenum == 106) {
_root.Keypause = "Numpad *";
} else if (_root.Keypausenum == 107) {
_root.Keypause = "Numpad +";
} else if (_root.Keypausenum == 108) {
_root.Keypause = "Numpad Enter";
} else if (_root.Keypausenum == 109) {
_root.Keypause = "Numpad -";
} else if (_root.Keypausenum == 110) {
_root.Keypause = "Numpad .";
} else if (_root.Keypausenum == 111) {
_root.Keypause = "Numpad /";
} else if (_root.Keypausenum == 144) {
_root.Keypause = "NumLock";
} else if (_root.Keypausenum == 186) {
_root.Keypause = ": or ;";
} else if (_root.Keypausenum == 187) {
_root.Keypause = "= or +";
} else if (_root.Keypausenum == 189) {
_root.Keypause = "- or _";
} else if (_root.Keypausenum == 192) {
_root.Keypause = "` or ~";
} else if (_root.Keypausenum == 219) {
_root.Keypause = "[ or {";
} else if (_root.Keypausenum == 220) {
_root.Keypause = "\\or |";
} else if (_root.Keypausenum == 221) {
_root.Keypause = "] or }";
} else if (_root.Keypausenum == 222) {
_root.Keypause = "\" or '";
} else if ((_root.Keypausenum > 95) and (_root.Keypausenum < 106)) {
_root.Keypause = "Numpad " + String(_root.Keypausenum - 96);
} else if ((_root.Keypausenum > 111) and (_root.Keypausenum < 127)) {
_root.Keypause = "F" + String(_root.Keypausenum - 111);
} else {
_root.Keypause = String.fromCharCode(_root.Keypausenum);
}
if (((((_root.Keypause == _root.Keyleft) or (_root.Keypause == _root.Keyright)) or (_root.Keypause == _root.Keyjump)) or (_root.Keypause == _root.Keyshoot)) or (_root.Keypause == _root.Keydash)) {
_root.Keypausenum = oldnum;
_root.Keypause = old;
_root.error.gotoAndPlay(2);
} else {
_root.gotoAndStop(4);
}
}
Symbol 268 MovieClip Frame 1
stop();
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 275 MovieClip in Symbol 276 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 276 MovieClip in Symbol 277 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(1);
} else {
this.gotoAndStop(2);
}
}
Instance of Symbol 308 MovieClip in Symbol 309 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 310 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = clipBounds.xMin;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 311 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 312 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = clipBounds.yMin;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Instance of Symbol 313 MovieClip in Symbol 314 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 308 MovieClip in Symbol 318 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 319 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.left = clipBounds.xMin;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 337 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Instance of Symbol 309 MovieClip "top" in Symbol 338 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and ((_root.Megaman._y - ground) < 10)) {
_global.landed = true;
_parent.landed = true;
} else {
_global.landed = false;
_parent.landed = false;
}
}
Instance of Symbol 337 MovieClip "top" in Symbol 338 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and ((_root.Megaman._y - ground) < 10)) {
_global.landed = true;
_parent.landed = true;
} else {
_global.landed = false;
_parent.landed = false;
}
}
Instance of Symbol 338 MovieClip "stats" in Symbol 339 MovieClip Frame 1
onClipEvent (load) {
landed = false;
startx = _parent.startx;
starty = _parent.starty;
xvel = _parent.xvel;
yvel = _parent.yvel;
nummoves = _parent.nummoves;
timer = 0;
slider = 0;
going = true;
}
onClipEvent (enterFrame) {
if (!gamepause) {
if (timer == 0) {
if (going) {
slider = slider + 1;
_parent._x = startx + (slider * xvel);
_parent._y = starty + (slider * yvel);
if (landed and (slider > 1)) {
_root.Megaman._x = _root.Megaman._x + xvel;
}
if (landed and (slider > 1)) {
_global.ground = _global.ground + yvel;
_root.Megaman._y = _root.Megaman._y + yvel;
}
if (slider >= nummoves) {
slider = nummoves;
timer = 60;
going = false;
}
} else {
_parent._x = startx + (slider * xvel);
_parent._y = starty + (slider * yvel);
slider = slider - 1;
if (landed and (slider < (nummoves - 1))) {
_root.Megaman._x = _root.Megaman._x - xvel;
}
if (landed and (slider < (nummoves - 1))) {
_global.ground = _global.ground - yvel;
_root.Megaman._y = _root.Megaman._y - yvel;
}
if (slider <= 0) {
slider = 0;
timer = 60;
going = true;
}
}
} else {
timer = timer - 1;
}
}
}
Instance of Symbol 339 MovieClip "mp1" in Symbol 345 MovieClip Frame 2
onClipEvent (load) {
startx = this._x;
starty = this._y;
xvel = 16;
yvel = 0;
nummoves = 52;
}
Instance of Symbol 339 MovieClip "mp2" in Symbol 345 MovieClip Frame 2
onClipEvent (load) {
startx = this._x;
starty = this._y;
xvel = 16;
yvel = -16;
nummoves = 14;
}
Instance of Symbol 301 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 328 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 331 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 334 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 336 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Instance of Symbol 345 MovieClip in Symbol 346 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Viewblock)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
Symbol 358 MovieClip Frame 1
stop();
Symbol 358 MovieClip Frame 25
_root.Megaman.xvel = 10;
stop();
Symbol 358 MovieClip Frame 49
gotoAndStop (1);
Instance of Symbol 308 MovieClip in Symbol 359 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and _root.Megaman.freeze) {
_root.leftbossdoor.play();
_root.Megaman.freeze = false;
_root.Megaman.xvel = 0;
}
}
Instance of Symbol 308 MovieClip in Symbol 360 MovieClip Frame 1
onClipEvent (enterFrame) {
if (bossfight and (!done)) {
_root.Megaman._y = _root.Megaman._y + yvel;
if (_root.Megaman._y < clipBounds.yMax) {
_root.Megaman.gotoAndStop(_root.Megaman.FAir);
if (yvel < 30) {
yvel = yvel + ((Math.abs(yvel) * 0.15) + 1);
}
} else {
_root.Megaman._y = clipBounds.yMax;
_root.Megaman.gotoAndStop(_root.Megaman.FStand);
done = true;
}
} else {
if (hitTest(_root.Megaman) and (!_root.prebosscamera.hitTest(_root.Megaman))) {
if (!bossfight) {
_root.bgm.stop();
_root.bgm.setVolume(100);
_root.bgm3.start(0, 0);
_root.Megaman.dashing = false;
_root.rightbossdoor.play();
_root.Megaman.xvel = 0;
_root.Megaman.gotoAndStop(_root.Megaman.FAir);
clipBounds = this.getBounds(_root);
yvel = 0;
}
_global.bossfight = true;
}
}
}
Instance of Symbol 362 MovieClip "camobj" in Symbol 363 MovieClip Frame 1
onClipEvent (load) {
xTarget = (-_parent._x) + 640;
yTarget = (-_parent._y) + 480;
cameraspeed = 25;
}
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and (!cancel)) {
_global.yfollow = false;
_global.xfollow = false;
if ((_root._x < xTarget) and (Math.abs(_root._x - xTarget) > cameraspeed)) {
_root._x = _root._x + cameraspeed;
_root.Viewable._x = _root.Viewable._x - cameraspeed;
_root.viewblock._x = _root.viewblock._x - cameraspeed;
_root.background._x = _root.background._x - (cameraspeed * 0.2);
} else if ((_root._x > xTarget) and (Math.abs(_root._x - xTarget) > cameraspeed)) {
_root._x = _root._x - cameraspeed;
_root.Viewable._x = _root.Viewable._x + cameraspeed;
_root.viewblock._x = _root.viewblock._x + cameraspeed;
_root.background._x = _root.background._x + (cameraspeed * 0.2);
} else if (_root._x != xTarget) {
_root._x = xTarget;
_root.Viewable._x = _parent._x - 320;
_root.viewblock._x = _parent._x - 320;
_root.background._x = (_parent._x - 160) * 0.2;
_parent.xLock = true;
}
if ((_root._y < yTarget) and (Math.abs(_root._y - yTarget) > cameraspeed)) {
_root._y = _root._y + cameraspeed;
_root.Viewable._y = _root.Viewable._y - cameraspeed;
_root.viewblock._y = _root.viewblock._y - cameraspeed;
} else if ((_root._y > xTarget) and (Math.abs(_root._y - yTarget) > cameraspeed)) {
_root._y = _root._y - cameraspeed;
_root.Viewable._y = _root.Viewable._y + cameraspeed;
_root.viewblock._y = _root.viewblock._y + cameraspeed;
} else if (_root._y != yTarget) {
_root._y = yTarget;
_root.Viewable._y = _parent._y - 240;
_root.viewblock._y = _parent._y - 240;
_parent.yLock = true;
}
}
}
Instance of Symbol 362 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
_global.yfollow = true;
}
}
Instance of Symbol 362 MovieClip in Symbol 364 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
_global.yfollow = false;
}
}
Symbol 368 MovieClip Frame 1
stop();
Symbol 370 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 8
gotoAndPlay (1);
Symbol 391 MovieClip Frame 7
removeMovieClip(this);
Symbol 425 MovieClip Frame 11
removeMovieClip(this);
Instance of Symbol 308 MovieClip in Symbol 426 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = clipBounds.yMin;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 427 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and (!booyashaka)) {
_root.dies();
}
}
Instance of Symbol 308 MovieClip in Symbol 428 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 429 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 430 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = clipBounds.xMin;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 431 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = Number.POSITIVE_INFINITY;
_global.ceiling = clipBounds.yMin;
_global.left = clipBounds.xMin;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 432 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.left = clipBounds.xMin;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 433 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = clipBounds.yMin;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 435 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 437 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = clipBounds.yMin;
_global.left = clipBounds.xMin;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 438 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root)) {
if (hitTest(_root.Megaman) and (!_root.Megaman.freeze)) {
_root.Megaman.stop();
_root.Megaman.freeze = true;
_root.Megaman.xvel = 0;
_root.rightbossdoor.play();
}
}
}
Instance of Symbol 309 MovieClip "top" in Symbol 440 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman) and ((_root.Megaman._y - ground) < 16)) {
_global.landed = true;
_parent.landed = true;
} else {
_global.landed = false;
_parent.landed = false;
}
}
Instance of Symbol 440 MovieClip "stats" in Symbol 441 MovieClip Frame 1
onClipEvent (load) {
timer = 15;
yvel = 1;
starty = this._y;
}
onClipEvent (enterFrame) {
if (!gamepause) {
if (landed and (!timerstart)) {
timerstart = true;
} else if (timerstart and (timer > 0)) {
timer = timer - 1;
} else if (timer == 0) {
this._y = this._y + yvel;
yvel = (yvel * 1.2) + 1;
}
if (death) {
timer = 15;
yvel = 1;
timerstart = false;
this._y = starty;
}
}
}
Instance of Symbol 308 MovieClip in Symbol 442 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root)) {
if (hitTest(_root.Megaman) and (!_root.Megaman.freeze)) {
_root.Megaman.stop();
_root.Megaman.freeze = true;
_root.Megaman.xvel = 0;
_root.leftbossdoor.play();
}
}
}
Instance of Symbol 308 MovieClip in Symbol 446 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = clipBounds.yMin;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = Number.POSITIVE_INFINITY;
_global.enviro = "normal";
}
}
Symbol 466 MovieClip Frame 1
if (_root.Megaman._xscale > 0) {
futurexvel = 30;
_xscale = 100;
} else {
futurexvel = -30;
_xscale = -100;
}
if (_root.Megaman.clinging) {
futurexvel = -futurexvel;
_xscale = (-_xscale);
}
Symbol 466 MovieClip Frame 3
xvel = futurexvel;
Symbol 466 MovieClip Frame 10
gotoAndPlay (3);
Symbol 544 MovieClip Frame 16
animated = false;
stop();
Symbol 544 MovieClip Frame 17
animated = true;
Symbol 544 MovieClip Frame 36
gotoAndPlay(FRun);
Symbol 544 MovieClip Frame 38
animated = true;
Symbol 544 MovieClip Frame 46
animated = false;
stop();
Symbol 544 MovieClip Frame 48
gotoAndStop(FStand);
Symbol 544 MovieClip Frame 49
animated = true;
Symbol 544 MovieClip Frame 51
stop();
Symbol 544 MovieClip Frame 54
gotoAndStop(FStand);
Symbol 544 MovieClip Frame 55
animated = false;
stop();
Symbol 544 MovieClip Frame 56
stop();
Symbol 544 MovieClip Frame 57
animated = true;
Symbol 544 MovieClip Frame 76
gotoAndPlay(FRun);
Symbol 544 MovieClip Frame 78
animated = true;
Symbol 544 MovieClip Frame 86
animated = false;
stop();
Symbol 544 MovieClip Frame 88
gotoAndStop(FStand);
Symbol 544 MovieClip Frame 89
animated = true;
Symbol 544 MovieClip Frame 91
stop();
Symbol 544 MovieClip Frame 94
gotoAndStop(FStand);
Symbol 544 MovieClip Frame 95
animated = false;
stop();
Symbol 544 MovieClip Frame 96
animated = true;
Symbol 544 MovieClip Frame 114
animated = true;
Symbol 544 MovieClip Frame 117
stop();
Symbol 544 MovieClip Frame 162
stop();
_root.Victorious();
Symbol 550 MovieClip Frame 30
removeMovieClip(this);
Symbol 623 MovieClip Frame 1
animated = false;
stop();
Symbol 623 MovieClip Frame 2
animated = true;
Symbol 623 MovieClip Frame 125
_root.bgm3.stop();
_root.bgm2.start(0, 999);
Symbol 623 MovieClip Frame 130
gotoAndPlay (126);
Symbol 623 MovieClip Frame 137
gotoAndPlay (132);
Symbol 623 MovieClip Frame 145
gotoAndPlay (138);
Symbol 623 MovieClip Frame 155
gotoAndPlay (126);
Symbol 623 MovieClip Frame 216
stop();
_global.booyashaka = true;
animated = false;
Instance of Symbol 308 MovieClip "shield" in Symbol 624 MovieClip Frame 1
onClipEvent (load) {
sfx = new Sound();
sfx.attachSound("deflection");
}
onClipEvent (enterFrame) {
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
_parent.shield = true;
removeMovieClip(_root["Shot" + count]);
sfx.start(0, 0);
} else {
_parent.shield = false;
}
count++;
}
}
Symbol 624 MovieClip Frame 28
gotoAndPlay (1);
Symbol 624 MovieClip Frame 33
_parent.shield = false;
Symbol 624 MovieClip Frame 38
animated = false;
seed = Math.random() * 100;
if (seed > 66) {
action = "shooting";
shotnumber = shotmax;
shottime = 0;
this.gotoAndPlay("shooting");
}
Symbol 624 MovieClip Frame 39
animated = true;
Symbol 624 MovieClip Frame 41
throwing = true;
Symbol 624 MovieClip Frame 47
stop();
Symbol 624 MovieClip Frame 51
gotoAndPlay (1);
Instance of Symbol 308 MovieClip "shield" in Symbol 624 MovieClip Frame 52
onClipEvent (load) {
sfx = new Sound();
sfx.attachSound("deflection");
}
onClipEvent (enterFrame) {
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
_parent.shield = true;
removeMovieClip(_root["Shot" + count]);
sfx.start(0, 0);
} else {
_parent.shield = false;
}
count++;
}
}
Symbol 624 MovieClip Frame 54
_parent.shield = false;
shooting = true;
stop();
Instance of Symbol 308 MovieClip "shield" in Symbol 624 MovieClip Frame 55
onClipEvent (load) {
sfx = new Sound();
sfx.attachSound("deflection");
}
onClipEvent (enterFrame) {
count = 1;
while (count <= 10) {
if (hitTest(_root["Shot" + count])) {
_parent.shield = true;
removeMovieClip(_root["Shot" + count]);
sfx.start(0, 0);
} else {
_parent.shield = false;
}
count++;
}
}
Symbol 624 MovieClip Frame 56
gotoAndPlay (1);
Symbol 645 MovieClip Frame 16
gotoAndPlay (1);
Instance of Symbol 642 MovieClip in Symbol 645 MovieClip Frame 17
onClipEvent (enterFrame) {
if ((hitTest(_root.Megaman) and (!_root.Megaman.Injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 4;
_root.Megaman.injured = true;
if (_root.Megaman._x > this._x) {
_root.Megaman.xvel = 8;
} else {
_root.Megaman.xvel = -8;
}
_root.Megaman.yvel = -18;
}
}
Instance of Symbol 642 MovieClip in Symbol 645 MovieClip Frame 20
onClipEvent (enterFrame) {
if ((hitTest(_root.Megaman) and (!_root.Megaman.Injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 4;
_root.Megaman.injured = true;
if (_root.Megaman._x > this._x) {
_root.Megaman.xvel = 8;
} else {
_root.Megaman.xvel = -8;
}
_root.Megaman.yvel = -18;
}
}
Instance of Symbol 642 MovieClip in Symbol 645 MovieClip Frame 24
onClipEvent (enterFrame) {
if ((hitTest(_root.Megaman) and (!_root.Megaman.Injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 4;
_root.Megaman.injured = true;
if (_root.Megaman._x > this._x) {
_root.Megaman.xvel = 8;
} else {
_root.Megaman.xvel = -8;
}
_root.Megaman.yvel = -18;
}
}
Instance of Symbol 642 MovieClip in Symbol 645 MovieClip Frame 26
onClipEvent (enterFrame) {
if ((hitTest(_root.Megaman) and (!_root.Megaman.Injured)) and (!_root.Megaman.invincible)) {
_root.Megaman.health = _root.Megaman.health - 4;
_root.Megaman.injured = true;
if (_root.Megaman._x > this._x) {
_root.Megaman.xvel = 8;
} else {
_root.Megaman.xvel = -8;
}
_root.Megaman.yvel = -18;
}
}
Symbol 645 MovieClip Frame 27
remove = true;
Symbol 658 MovieClip Frame 6
removeMovieClip(this);
Instance of Symbol 308 MovieClip in Symbol 659 MovieClip Frame 1
onClipEvent (load) {
clipBounds = this.getBounds(_root);
xl = clipBounds.xMin;
yl = clipBounds.yMin;
xr = clipBounds.xMax;
yr = clipBounds.yMax;
m = (yl - yr) / (xl - xr);
}
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
_global.ceiling = Number.NEGATIVE_INFINITY;
_global.left = clipBounds.xMin;
_global.right = Number.POSITIVE_INFINITY;
cx = _root.Megaman._x - xr;
_global.ground = Math.min((m * cx) + yr, yr);
if (Math.abs(_root.Megaman._y - ground) < 15) {
_root.Megaman._y = ground;
_root.Megaman.landed = true;
} else {
_root.Megaman.landed = false;
}
} else {
_root.Megaman.landed = false;
}
}
Instance of Symbol 308 MovieClip in Symbol 660 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ground = clipBounds.yMax;
_global.ceiling = clipBounds.yMin;
_global.left = Number.NEGATIVE_INFINITY;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 661 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ceiling = clipBounds.yMin;
_global.right = clipBounds.xMax;
_global.enviro = "normal";
}
}
Instance of Symbol 308 MovieClip in Symbol 662 MovieClip Frame 1
onClipEvent (enterFrame) {
if (hitTest(_root.Megaman)) {
clipBounds = this.getBounds(_root);
_global.ceiling = clipBounds.yMin;
_global.enviro = "normal";
}
}
Symbol 699 MovieClip Frame 1
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 3
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 5
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 7
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 9
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 11
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 13
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 15
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 17
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 19
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 21
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 23
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 25
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 27
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 29
_root.sfx.start(0, 0);
Symbol 699 MovieClip Frame 30
stop();
Symbol 702 MovieClip Frame 1
stop();
Instance of Symbol 695 MovieClip in Symbol 702 MovieClip Frame 1
onClipEvent (load) {
stop();
}
onClipEvent (enterFrame) {
if (_root.Megaman.health != (this._currentframe + 27)) {
gotoAndStop(29 - _root.Megaman.health);
}
}
Symbol 702 MovieClip Frame 2
bossbar.gotoAndPlay(2);
stop();
Instance of Symbol 699 MovieClip in Symbol 702 MovieClip Frame 2
onClipEvent (enterFrame) {
if (this._currentframe < 30) {
play();
}
if (((_root.Boss.health / 6) != (this._currentframe + 27)) and (this._currentframe > 29)) {
gotoAndStop(Math.round(58 - (_root.Boss.health / 6)));
}
}
Symbol 720 MovieClip Frame 1
stop();
Symbol 730 Button
on (release) {
gotoAndStop (3);
setProperty(_parent, _alpha , 0);
}
Symbol 738 Button
on (release) {
getURL ("http://asylumavatars.f2o.org", "_blank");
}
Symbol 740 Button
on (release) {
getURL ("http://www.megaman-universe.com", "_blank");
}