Frame 1
function menuChoiceOne() {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
function fMakeStarburst(xPos, yPos) {
s = Root.createEmptyMovieClip("burstClip", Root.depth++);
s.cnt = 0;
s.onEnterFrame = function () {
if ((this.cnt++) == 40) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
s._x = xPos;
s._y = yPos;
x = 0;
while (x < amountOfStars) {
ran = random(4) + 1;
v = s.attachMovie("explosionStar" + ran, "str" + x, s.getNextHighestDepth());
v.speed = random(10) + 10;
v.movSpdX = random(10) - 5;
v.movSpdY = (-1 * random(15)) + 1;
v._xscale = (v._yscale = random(20) + 10);
v._alpha = 150;
v.onEnterFrame = function () {
this._rotation = this._rotation + this.speed;
this._alpha = this._alpha - (this.speed / 3);
this._x = this._x + this.movSpdX;
this._y = this._y + this.movSpdY;
this.movSpdY++;
if (this._alpha <= 0) {
delete this.onEnterFrame;
this.removeMovieClip();
}
};
x++;
}
}
fscommand ("allowscale", 0);
NewMenu = new ContextMenu();
NewMenu.hideBuiltInItems();
NewMenu.customItems.push(new ContextMenuItem("Visit The Game Homepage", menuChoiceOne));
this.menu = NewMenu;
_global.Root = this;
var depth = 1000;
var amountOfStars = 2;
stop();
Frame 2
Mouse.hide();
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 20;
maximumFishOnScreen = 40;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
if (makestars) {
fMakeStarburst(_root._xmouse, _root._ymouse);
_root.fish.mouth.gotoAndPlay(2);
}
makestars = false;
if (_currentframe == frame) {
if (_root.fish._width < Stage.width) {
fishFound = 0;
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
fishFound++;
}
i++;
}
if (fishFound < minimumFishOnScreen) {
chanceOfNewFishComing = 0;
} else if (fishFound < maximumFishOnScreen) {
chanceOfNewFishComing = random(60);
}
if (chanceOfNewFishComing == 0) {
enemyFish.duplicateMovieClip("newEnemyFish" + d, d++, {left:random(2), speed:random(6) + 2, scale:random(_root.fish.scale + 80) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_root["newEnemyFish" + i]._x = _root["newEnemyFish" + i]._x + _root["newEnemyFish" + i].speed;
if (_root["newEnemyFish" + i].hitTest(_root.fish.hitbox)) {
if (_root["newEnemyFish" + i].scale <= _root.fish.scale) {
if (fish.scale < 300) {
fish.scale = fish.scale + 2;
}
score = score + _root["newEnemyFish" + i].scale;
makestars = true;
removeMovieClip(_root["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_root["newEnemyFish" + i].left == 1) {
if (_root["newEnemyFish" + i]._x < (-_root["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_root["newEnemyFish" + i]);
}
} else if (_root["newEnemyFish" + i]._x > (Stage.width + _root["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_root["newEnemyFish" + i]);
}
}
i++;
}
} else {
_root.gotoAndStop(_currentframe + 2);
}
}
if (_root.score < 50) {
_root.rank = "Z";
} else if (_root.score < 150) {
_root.rank = "Y";
} else if (_root.score < 300) {
_root.rank = "X";
} else if (_root.score < 500) {
_root.rank = "W";
} else if (_root.score < 1000) {
_root.rank = "V";
} else if (_root.score < 1500) {
_root.rank = "U";
} else if (_root.score < 2000) {
_root.rank = "T";
} else if (_root.score < 2500) {
_root.rank = "S";
} else if (_root.score < 3000) {
_root.rank = "R";
} else if (_root.score < 3500) {
_root.rank = "Q";
} else if (_root.score < 4000) {
_root.rank = "P";
} else if (_root.score < 5000) {
_root.rank = "O";
} else if (_root.score < 6000) {
_root.rank = "N";
} else if (_root.score < 7000) {
_root.rank = "M";
} else if (_root.score < 8000) {
_root.rank = "L";
} else if (_root.score < 9000) {
_root.rank = "K";
} else if (_root.score < 10000) {
_root.rank = "J";
} else if (_root.score < 11000) {
_root.rank = "I";
} else if (_root.score < 12000) {
_root.rank = "H";
} else if (_root.score < 13000) {
_root.rank = "G";
} else if (_root.score < 15000) {
_root.rank = "F";
} else if (_root.score < 17000) {
_root.rank = "E";
} else if (_root.score < 19000) {
_root.rank = "D";
} else if (_root.score < 21000) {
_root.rank = "C";
} else if (_root.score < 25000) {
_root.rank = "B";
} else {
_root.rank = "A";
}
};
clearScreen = function () {
i = 0;
while (i < fishies.length) {
removeMovieClip(_root["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 28 MovieClip "fish" in Frame 2
onClipEvent (load) {
scale = 80;
}
onClipEvent (enterFrame) {
this._x = _root._xmouse;
this._y = _root._ymouse;
_yscale = scale;
_xscale = scale;
if (_x > (Stage.width + (_width / 2))) {
_x = (-(_width / 2));
} else if (_x < (-(_width / 2))) {
_x = (Stage.width + (_width / 2));
}
if (_y > Stage.height) {
_y = Stage.height;
} else if (_y < 0) {
_y = 0;
}
}
Instance of Symbol 35 MovieClip "enemyFish" in Frame 2
onClipEvent (load) {
if (_name != "enemyFish") {
_yscale = ((xscale = scale));
if (left == 1) {
speed = speed * -1;
_xscale = xscale;
_x = (Stage.width + _width);
} else {
_xscale = xscale;
_x = (-_width);
}
}
}
Frame 3
Mouse.show();
results = "You scored: " + score;
rresults = "Rank: " + rank;
Frame 4
Mouse.show();
results = "You have won! Your final score was: " + score;
Symbol 14 MovieClip Frame 1
myBar._xscale = 0;
loaded = false;
timer = 0;
onEnterFrame = function () {
loading = Math.round(_root.getBytesLoaded().toString() / 1024);
total = Math.round(_root.getBytesTotal().toString() / 1024);
percentage = Math.round((loading / total) * 100);
myBar._xscale = myBar._xscale + ((percentage - myBar._xscale) / 5);
percentageTxt._x = myBar._width - (percentageTxt._width / 2);
percentageTxt.percentage = Math.round(myBar._xscale);
if (((myBar._xscale > 99) && (percentage == 100)) && (loaded == false)) {
myBar._xscale = 100;
timer = timer + 1;
if (timer > 20) {
this._alpha = this._alpha - 5;
if (this._alpha < 0) {
loaded = true;
_root.play();
}
}
}
};
Symbol 18 MovieClip Frame 1
this._rotation = _parent.eyedir;
Symbol 18 MovieClip Frame 15
gotoAndPlay (1);
Symbol 25 MovieClip Frame 1
stop();
Symbol 25 MovieClip Frame 8
_root.fMakeStarburst(_root._xmouse, _root._ymouse);
Symbol 28 MovieClip Frame 1
this.eyedir = Math.random() * 360;
Symbol 28 MovieClip Frame 2
gotoAndPlay (1);
Symbol 32 MovieClip Frame 1
xdist = _root._xmouse - _parent._x;
ydist = _root._ymouse - _parent._y;
this._rotation = ((Math.atan2(ydist, xdist) * 180) / Math.PI) + 90;
Symbol 32 MovieClip Frame 2
gotoAndPlay (1);
Symbol 35 MovieClip Frame 1
if (scale < _root.fish.scale) {
gotoAndStop (3);
}
Symbol 35 MovieClip Frame 2
gotoAndPlay (1);
Symbol 44 Button
on (release) {
getURL ("http://www.thegamehomepage.com/", "_blank");
}
Symbol 47 Button
on (release) {
gotoAndPlay (2);
}
Symbol 51 Button
on (release) {
getURL ("http://www.thegamehomepage.com/freesitecontent", "_blank");
}