Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Instance of Symbol 27 MovieClip in Frame 1
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Frame 3
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 27 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Instance of Symbol 79 MovieClip "fish" in Frame 3
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.5;
maxSpeed = 5;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 88 MovieClip "enemyFish" in Frame 3
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);
}
}
}
Instance of Symbol 27 MovieClip in Frame 3
onClipEvent (enterFrame) {
if (this._currentframe == 1) {
this._x = random(90) + 71;
}
}
Frame 4
results = "You have lost. Your final score was: " + score;
Frame 5
results = "You have won! Your final score was: " + score;
Frame 6
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 79 MovieClip "fish" in Frame 6
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 1;
maxSpeed = 12;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 88 MovieClip "enemyFish" in Frame 6
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 7
results = "You have lost. Your final score was: " + score;
Frame 8
results = "You have won! Your final score was: " + score;
Frame 9
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 79 MovieClip "fish" in Frame 9
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.1;
maxSpeed = 12;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 88 MovieClip "enemyFish" in Frame 9
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 10
results = "You have lost. Your final score was: " + score;
Frame 11
results = "You have won! Your final score was: " + score;
Frame 12
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 127 MovieClip "fish" in Frame 12
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 1;
maxSpeed = 5;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 131 MovieClip "enemyFish" in Frame 12
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 13
results = "You have lost. Your final score was: " + score;
Frame 14
results = "You have won! Your final score was: " + score;
Frame 15
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 127 MovieClip "fish" in Frame 15
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.5;
maxSpeed = 5;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 131 MovieClip "enemyFish" in Frame 15
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 16
results = "You have lost. Your final score was: " + score;
Frame 17
results = "You have won! Your final score was: " + score;
Frame 18
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 127 MovieClip "fish" in Frame 18
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.1;
maxSpeed = 5;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 131 MovieClip "enemyFish" in Frame 18
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 19
results = "You have lost. Your final score was: " + score;
Frame 20
results = "You have won! Your final score was: " + score;
Frame 21
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 152 MovieClip "fish" in Frame 21
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 1;
maxSpeed = 12;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 157 MovieClip "enemyFish" in Frame 21
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 22
results = "You have lost. Your final score was: " + score;
Frame 23
results = "You have won! Your final score was: " + score;
Frame 24
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 152 MovieClip "fish" in Frame 24
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.5;
maxSpeed = 12;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 157 MovieClip "enemyFish" in Frame 24
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 25
results = "You have lost. Your final score was: " + score;
Frame 26
results = "You have won! Your final score was: " + score;
Frame 27
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 0));
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
var _local1 = _root;
if (_currentframe == frame) {
if (_local1.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(_local1.fish.scale + 40) + 10, _y:random(Stage.height), newFish:true});
fishies[fishMade] = 1;
fishMade++;
}
i = 0;
while (i < fishies.length) {
if (fishies[i] == 1) {
_local1["newEnemyFish" + i]._x = _local1["newEnemyFish" + i]._x + _local1["newEnemyFish" + i].speed;
if (_local1["newEnemyFish" + i].hitTest(_local1.fish)) {
if (_local1["newEnemyFish" + i].scale <= _local1.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _local1["newEnemyFish" + i].scale;
removeMovieClip(_local1["newEnemyFish" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_local1["newEnemyFish" + i].left == 1) {
if (_local1["newEnemyFish" + i]._x < (-_local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
} else if (_local1["newEnemyFish" + i]._x > (Stage.width + _local1["newEnemyFish" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_local1["newEnemyFish" + i]);
}
}
i++;
}
} else {
_local1.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
var _local1 = _root;
i = 0;
while (i < fishies.length) {
removeMovieClip(_local1["newEnemyFish" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 152 MovieClip "fish" in Frame 27
onClipEvent (load) {
xspeed = (yspeed = 0);
goingDown = (goingForward = false);
acceleration = 0.1;
maxSpeed = 12;
scale = 100;
facingRight = false;
}
onClipEvent (enterFrame) {
_x = (_x - xspeed);
_y = (_y - yspeed);
_yscale = scale;
xscale = scale;
if (!goingForward) {
_xscale = (-xscale);
} else {
_xscale = xscale;
}
if (Key.isDown(37)) {
goingForward = true;
if (xspeed < maxSpeed) {
xspeed = xspeed + acceleration;
}
} else if (Key.isDown(39)) {
goingForward = false;
if (xspeed > (-maxSpeed)) {
xspeed = xspeed - acceleration;
}
} else if (goingForward) {
if (xspeed > 0) {
xspeed = xspeed - acceleration;
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
}
} else if (xspeed < 0) {
xspeed = xspeed + acceleration;
} else if (xspeed > 0) {
xspeed = xspeed - acceleration;
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed = yspeed + acceleration;
}
} else if (Key.isDown(40)) {
goingDown = false;
if (yspeed > (-maxSpeed)) {
yspeed = yspeed - acceleration;
}
} else if (goingDown) {
if (yspeed > 0) {
yspeed = yspeed - acceleration;
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
}
} else if (yspeed < 0) {
yspeed = yspeed + acceleration;
} else if (yspeed > 0) {
yspeed = yspeed - acceleration;
}
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;
yspeed = 0;
} else if (_y < 0) {
_y = 0;
yspeed = 0;
}
}
Instance of Symbol 157 MovieClip "enemyFish" in Frame 27
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 28
results = "You have lost. Your final score was: " + score;
Frame 29
results = "You have won! Your final score was: " + score;
Symbol 11 Button
on (release) {
getURL ("http://www.mattscrazykingdom.piczo.com", "_parent");
}
Symbol 21 Button
on (release) {
_root.play();
}
Symbol 22 MovieClip Frame 1
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
setProperty(bar, _xscale , PercentLoaded);
} else {
gotoAndStop ("loaded");
}
Symbol 22 MovieClip Frame 2
gotoAndPlay (1);
Symbol 39 MovieClip Frame 41
stop();
Symbol 44 MovieClip Frame 1
stop();
Instance of Symbol 44 MovieClip in Symbol 45 MovieClip Frame 1
onClipEvent (load) {
_root.stop();
}
onClipEvent (enterFrame) {
_root.loadedbytes = getBytesLoaded();
_root.totalbytes = getBytesTotal();
_root.loadedkbytes = Math.ceil(_root.loadedbytes / 1024);
_root.totalkbytes = Math.ceil(_root.totalbytes / 1024);
if (_root.loadedbytes == _root.totalbytes) {
_root.gotoAndStop(2);
}
_root.percentage = int(_root.loadedbytes / (_root.totalbytes / 100));
this.gotoAndStop(_root.percentage);
}
Symbol 55 Button
on (release) {
gotoAndStop (6);
}
Symbol 57 Button
on (release) {
nextFrame();
}
Symbol 59 Button
on (release) {
gotoAndStop (9);
}
Symbol 64 Button
on (release) {
gotoAndStop (12);
}
Symbol 65 Button
on (release) {
gotoAndStop (15);
}
Symbol 66 Button
on (release) {
gotoAndStop (18);
}
Symbol 69 Button
on (release) {
gotoAndStop (21);
}
Symbol 70 Button
on (release) {
gotoAndStop (24);
}
Symbol 71 Button
on (release) {
gotoAndStop (27);
}
Symbol 103 Button
on (release) {
gotoAndStop (2);
}