Frame 1
stop();
Instance of Symbol 8 MovieClip "progressbar" in Frame 1
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
_root.loadingMessage = percentLoaded + "%";
if (amountLoaded >= 1) {
_root.gotoAndPlay("ya");
}
}
Frame 71
stop();
Frame 75
stop();
Frame 76
fish1life = 10;
fish2life = 10;
fish1ammo = 10;
fish2ammo = 10;
fish1missile = 0;
fish2missile = 0;
stop();
playsounds80 = new Sound(this);
playsounds80.attachSound("fishmusic");
playsounds80.start(0, 20000);
Instance of Symbol 58 MovieClip "am1" in Frame 76
onClipEvent (load) {
function reset() {
this._x = random(430) + 30;
this._y = -30;
speed = 8;
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + speed;
if (this.hitTest(_root.fish1)) {
playsounds20 = new Sound(this);
playsounds20.attachSound("coin");
playsounds20.start(0, 1);
_root.fish1ammo = _root.fish1ammo + 10;
reset();
}
if (this.hitTest(_root.fish2)) {
playsounds21 = new Sound(this);
playsounds21.attachSound("coin");
playsounds21.start(0, 1);
_root.fish2ammo = _root.fish2ammo + 10;
reset();
}
if (this._y > 530) {
reset();
}
}
Instance of Symbol 62 MovieClip in Frame 76
onClipEvent (load) {
function reset() {
this._x = random(430) + 30;
this._y = -230;
speed = 8;
}
reset();
}
onClipEvent (enterFrame) {
this._y = this._y + speed;
if (this.hitTest(_root.fish1)) {
playsounds22 = new Sound(this);
playsounds22.attachSound("coin");
playsounds22.start(0, 1);
_root.fish1missile = _root.fish1missile + 1;
reset();
}
if (this.hitTest(_root.fish2)) {
playsounds23 = new Sound(this);
playsounds23.attachSound("coin");
playsounds23.start(0, 1);
_root.fish2missile = _root.fish2missile + 1;
reset();
}
if (this._y > 530) {
reset();
}
}
Instance of Symbol 97 MovieClip "shot1" in Frame 76
onClipEvent (load) {
distance = 0;
if (_root.fish1.isright == 1) {
this._y = _root.fish1._y;
this._x = _root.fish1._x;
speed = 40;
} else if (_root.fish1.isright == 0) {
this._y = _root.fish1._y;
this._x = _root.fish1._x;
speed = -40;
}
}
onClipEvent (enterFrame) {
this.distance++;
if (this.distance > 7) {
this.removeMovieClip();
}
this._x = this._x + speed;
if (this._x < 0) {
this._x = 500;
}
if (this._x > 500) {
this._x = 0;
}
if (this.hitTest(_root.fish2)) {
if (this._name != "shot1") {
_root.fish2life--;
_root.fish2.gotoAndPlay(5);
this.removeMovieClip();
playsounds5 = new Sound(this);
playsounds5.attachSound("pipebang");
playsounds5.start(0, 1);
}
}
}
Instance of Symbol 99 MovieClip "shot2" in Frame 76
onClipEvent (load) {
distance = 0;
if (_root.fish2.isright == 1) {
this._y = _root.fish2._y;
this._x = _root.fish2._x;
speed = 40;
} else if (_root.fish2.isright == 0) {
this._y = _root.fish2._y;
this._x = _root.fish2._x;
speed = -40;
}
}
onClipEvent (enterFrame) {
this.distance++;
if (this.distance > 7) {
this.removeMovieClip();
}
this._x = this._x + speed;
if (this._x < 0) {
this._x = 500;
}
if (this._x > 500) {
this._x = 0;
}
if (this.hitTest(_root.fish1)) {
if (this._name != "shot2") {
_root.fish1life--;
_root.fish1.fish1life--;
_root.fish1.gotoAndPlay(7);
this.removeMovieClip();
playsounds6 = new Sound(this);
playsounds6.attachSound("pipebang");
playsounds6.start(0, 1);
}
}
}
Instance of Symbol 103 MovieClip "missile1" in Frame 76
onClipEvent (load) {
this._x = _root.fish1._x;
this._y = _root.fish1._y;
if (this._name != "missile1") {
speed = 13;
}
if (_root.fish1._x > _root.fish2._x) {
_xscale = (-_xscale);
this.missileright = 0;
} else {
_root.fish1._x < _root.fish2._x;
}
this.missileright = 1;
distan = 0;
}
onClipEvent (enterFrame) {
distan++;
if (distan > 50) {
this.removeMovieClip();
}
if (_root.fish1._x > _root.fish2._x) {
if (this.missileright == 1) {
this.missileright = 0;
_xscale = (-_xscale);
}
}
if (_root.fish1._x < _root.fish2._x) {
if (this.missileright == 0) {
_xscale = (-_xscale);
this.missileright = 1;
}
}
if (this._x > (_root.fish2._x + 5)) {
this._x = this._x - speed;
} else if (this._x < (_root.fish2._x - 5)) {
this._x = this._x + speed;
}
if (this._x > 505) {
this._x = 0;
} else if (this._x < -5) {
this._x = 500;
}
if (this._y > (_root.fish2._y + 4)) {
this._y = this._y - 10;
} else if (this._y < (_root.fish2._y - 4)) {
this._y = this._y + 10;
}
if (this.hitTest(_root.fish2)) {
if (this._name != "missile1") {
playsounds7 = new Sound(this);
playsounds7.attachSound("pipebang");
playsounds7.start(0, 1);
_root.fish2.gotoAndPlay(5);
_root.fish2life--;
this.removeMovieClip();
}
}
}
Instance of Symbol 107 MovieClip "missile2" in Frame 76
onClipEvent (load) {
this._x = _root.fish2._x;
this._y = _root.fish2._y;
if (this._name != "missile2") {
speed = 13;
}
dist = 0;
}
onClipEvent (enterFrame) {
dist++;
if (dist > 50) {
this.removeMovieClip();
}
if (this._x > (_root.fish1._x + 5)) {
this._x = this._x - speed;
} else if (this._x < (_root.fish1._x - 5)) {
this._x = this._x + speed;
}
if (this._x > 505) {
this._x = 0;
} else if (this._x < -5) {
this._x = 500;
}
if (this._y > (_root.fish1._y + 4)) {
this._y = this._y - 10;
} else if (this._y < (_root.fish1._y - 4)) {
this._y = this._y + 10;
}
if (this.hitTest(_root.fish1)) {
if (this._name != "missile2") {
playsounds9 = new Sound(this);
playsounds9.attachSound("pipebang");
playsounds9.start(0, 1);
_root.fish1.gotoAndPlay(7);
_root.fish1life--;
this.removeMovieClip();
}
}
}
Instance of Symbol 112 MovieClip "fish2" in Frame 76
onClipEvent (load) {
horizspeed = 0;
verticalspeed = 0;
addspeed = 1;
decay = 0.8;
maxSpeed = 10;
isright = 0;
isdown = 0;
this._x = 400;
this._y = 250;
count2 = 0;
shot2count = 20000;
count3 = 0;
missile2count = 30000;
}
onClipEvent (enterFrame) {
if (Key.isDown(68)) {
if (isright == 1) {
if (horizspeed < maxSpeed) {
horizspeed = horizspeed + addspeed;
}
} else {
_xscale = (-_xscale);
isright = 1;
}
} else if (Key.isDown(65)) {
if (isright == 0) {
if (horizspeed > -10) {
horizspeed = horizspeed - addspeed;
}
} else {
_xscale = (-_xscale);
isright = 0;
}
} else {
horizspeed = horizspeed * decay;
}
if (Key.isDown(87)) {
isdown = 0;
if (verticalspeed > -10) {
verticalspeed = verticalspeed - addspeed;
}
} else if (Key.isDown(83)) {
isdown = 1;
if (verticalspeed < 10) {
verticalspeed = verticalspeed + addspeed;
}
} else {
verticalspeed = verticalspeed * decay;
}
if (this._y > 15) {
if (isdown == 0) {
this._y = this._y + verticalspeed;
}
}
if (this._y < 475) {
if (isdown == 1) {
this._y = this._y + verticalspeed;
}
}
this._x = this._x + horizspeed;
if (this._x < -5) {
this._x = 510;
} else if (this._x > 510) {
this._x = -5;
}
if ((this._y >= 475) && (isdown == 1)) {
verticalspeed = 0;
}
if ((this._y <= 25) && (isdown == 0)) {
verticalspeed = 0;
}
if (Key.isDown(32)) {
if ((_root.fish2ammo > 0) && (count2 == 0)) {
playsounds1 = new Sound(this);
playsounds1.attachSound("GUN1");
playsounds1.start(0, 1);
shot2count++;
_root.shot2.duplicateMovieClip("shot2" + shot2count, shot2count);
_root["shot2" + shot2count]._visible = true;
_root.fish2ammo--;
count2 = 1;
}
} else if (count2 == 1) {
count2 = 0;
}
if (Key.isDown(86)) {
if ((count3 == 0) && (_root.fish2missile > 0)) {
playsounds4 = new Sound(this);
playsounds4.attachSound("laser2");
playsounds4.start(0, 1);
missile2count++;
_root.missile2.duplicateMovieClip("missile2" + missile2count, missile2count);
_root["missile2" + missile2count]._visible = true;
_root.fish2missile--;
count3 = 1;
}
} else if (count3 == 1) {
count3 = 0;
}
}
Instance of Symbol 117 MovieClip "fish1" in Frame 76
onClipEvent (load) {
_root.shot1._visible = false;
_root.shot2._visible = false;
_root.missile2._visible = false;
_root.missile1._visible = false;
horizspeed = 0;
verticalspeed = 0;
addspeed = 1;
decay = 0.8;
maxSpeed = 10;
isright = 1;
isdown = 0;
this._x = 50;
this._y = 100;
spacedown = 0;
spacedown2 = 0;
shot1count = 1;
missile1count = 80000 /* 0x013880 */;
}
onClipEvent (enterFrame) {
if (_root.fish2life <= 0) {
_root.fish2.gotoAndPlay(10);
playsounds30 = new Sound(this);
playsounds30.attachSound("death");
playsounds30.start(0, 1);
}
if (this.hitTest(_root.fish2)) {
this._x = this._x - horizspeed;
horizspeed = -horizspeed;
this._y = this._y - verticalspeed;
verticalspeed = -verticalspeed;
_root.fish2.horizspeed = -_root.fish2.horizspeed;
_root.fish2.verticalspeed = -_root.fish2.verticalspeed;
}
if (Key.isDown(39)) {
if (isright == 1) {
if (horizspeed < maxSpeed) {
horizspeed = horizspeed + addspeed;
}
} else {
_xscale = (-_xscale);
isright = 1;
}
} else if (Key.isDown(37)) {
if (isright == 0) {
if (horizspeed > -10) {
horizspeed = horizspeed - addspeed;
}
} else {
_xscale = (-_xscale);
isright = 0;
}
} else {
horizspeed = horizspeed * decay;
}
if (Key.isDown(38)) {
isdown = 0;
if (verticalspeed > -10) {
verticalspeed = verticalspeed - addspeed;
}
} else if (Key.isDown(40)) {
isdown = 1;
if (verticalspeed < 10) {
verticalspeed = verticalspeed + addspeed;
}
} else {
verticalspeed = verticalspeed * decay;
}
if (this._y > 15) {
if (isdown == 0) {
this._y = this._y + verticalspeed;
}
}
if (this._y < 475) {
if (isdown == 1) {
this._y = this._y + verticalspeed;
}
}
this._x = this._x + horizspeed;
if (this._x < -5) {
this._x = 505;
} else if (this._x > 510) {
this._x = 0;
}
if ((this._y >= 475) && (isdown == 1)) {
verticalspeed = 0;
}
if ((this._y <= 25) && (isdown == 0)) {
verticalspeed = 0;
}
if (Key.isDown(17)) {
if ((_root.fish1ammo > 0) && (spacedown == 0)) {
playsounds = new Sound(this);
playsounds.attachSound("GUN1");
playsounds.start(0, 1);
_root.shot1.duplicateMovieClip("shot1" + shot1count, shot1count);
_root["shot1" + shot1count]._visible = true;
shot1count++;
_root.fish1ammo--;
spacedown = 1;
}
} else if (spacedown == 1) {
spacedown = 0;
}
if (Key.isDown(45)) {
if ((spacedown2 == 0) && (_root.fish1missile > 0)) {
missile1count++;
_root.missile1.duplicateMovieClip("missile1" + missile1count, missile1count);
_root["missile1" + missile1count]._visible = true;
spacedown2 = 1;
_root.fish1missile--;
playsounds3 = new Sound(this);
playsounds3.attachSound("laser2");
playsounds3.start(0, 1);
}
} else if (spacedown2 == 1) {
spacedown2 = 0;
}
}
Frame 90
stopAllSounds();
if (_root.fish1life <= 0) {
_root.gotoAndPlay("fish1death");
} else if (_root.fish2life <= 0) {
_root.gotoAndPlay("fish2death");
}
Frame 91
stop();
stopAllSounds();
lala.onRelease = function () {
gotoAndPlay (71);
};
stop();
Frame 92
stop();
stopAllSounds();
lala2.onRelease = function () {
gotoAndPlay (71);
};
stop();
Symbol 14 Button
on (release) {
getURL ("http://www.flashninjaclan.com");
}
Symbol 27 Button
on (release) {
getURL ("http://www.flashninjaclan.com");
}
Symbol 36 Button
on (press) {
gotoAndStop (75);
}
Symbol 47 Button
on (press) {
gotoAndStop ("juego");
}
Symbol 51 Button
on (release) {
getURL ("http://www.java-gaming.com/");
}
Symbol 69 Button
on (press) {
gotoAndStop ("entrada");
}
Symbol 112 MovieClip Frame 1
stop();
Symbol 112 MovieClip Frame 6
gotoAndPlay (1);
Symbol 112 MovieClip Frame 11
_root.gotoAndPlay("fish2death");
Symbol 117 MovieClip Frame 1
if (_root.fish1life > 0) {
stop();
}
if (_root.fish1life <= 0) {
play();
}
Symbol 117 MovieClip Frame 6
_root.gotoAndPlay("fish1death");
Symbol 117 MovieClip Frame 8
gotoAndPlay (1);
Symbol 120 Button
on (release) {
gotoAndPlay ("entrada");
}