Combined Code
frame 1 {
stop();
}
movieClip 2 {
}
movieClip 3 {
}
movieClip 9 {
}
button 16 {
on (press) {
_root.nextFrame();
}
}
movieClip 17 {
frame 1 {
_root.stop();
PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (PercentLoaded != 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop('loaded');
}
}
frame 2 {
gotoAndPlay(1);
}
}
movieClip 19 {
}
frame 2 {
stop();
_quality = 'HIGH';
}
button 27 {
on (press) {
gotoAndStop(8);
}
}
button 31 {
on (press) {
gotoAndStop(9);
}
}
button 35 {
on (press) {
gotoAndStop(12);
}
}
button 39 {
on (press) {
stopAllSounds();
gotoAndStop(36);
}
}
button 44 {
on (press) {
nextFrame();
}
}
button 46 {
on (press) {
nextFrame();
}
}
button 48 {
on (press) {
prevFrame();
}
}
movieClip 49 {
frame 1 {
stop();
}
frame 2 {
stopAllSounds();
stop();
}
}
frame 3 {
stop();
_quality = 'HIGH';
}
button 51 {
on (press) {
gotoAndStop(14);
}
}
button 53 {
on (press) {
nextFrame();
}
}
button 56 {
on (press) {
stopAllSounds();
prevFrame();
}
}
button 58 {
on (press) {
gotoAndStop(13);
}
}
button 60 {
on (press) {
stopAllSounds();
gotoAndStop(37);
}
}
button 62 {
on (press) {
stopAllSounds();
gotoAndStop(40);
}
}
frame 4 {
stop();
_quality = 'HIGH';
}
button 65 {
on (press) {
gotoAndStop(11);
}
}
button 67 {
on (press) {
stopAllSounds();
gotoAndStop(32);
}
}
button 69 {
on (press) {
stopAllSounds();
gotoAndStop(16);
}
}
button 71 {
on (press) {
gotoAndStop(10);
}
}
frame 5 {
stop();
_quality = 'HIGH';
}
button 74 {
on (press) {
stopAllSounds();
gotoAndStop(39);
}
}
button 76 {
on (press) {
stopAllSounds();
gotoAndStop(35);
}
}
button 78 {
on (press) {
stopAllSounds();
gotoAndStop(34);
}
}
button 80 {
on (press) {
stopAllSounds();
gotoAndStop(33);
}
}
frame 6 {
stop();
_quality = 'HIGH';
}
button 83 {
on (press) {
stopAllSounds();
gotoAndStop(31);
}
}
button 85 {
on (press) {
stopAllSounds();
gotoAndStop(38);
}
}
button 87 {
on (press) {
stopAllSounds();
gotoAndPlay(49);
}
}
button 89 {
on (press) {
stopAllSounds();
gotoAndStop(48);
}
}
frame 7 {
stop();
_quality = 'HIGH';
}
frame 8 {
stop();
_quality = 'HIGH';
}
button 94 {
on (press) {
stopAllSounds();
gotoAndStop(17);
}
}
button 97 {
on (press) {
stopAllSounds();
gotoAndStop(18);
}
}
button 100 {
on (press) {
stopAllSounds();
gotoAndStop(2);
}
}
frame 9 {
stop();
_quality = 'HIGH';
}
button 102 {
on (press) {
stopAllSounds();
gotoAndStop(24);
}
}
button 103 {
on (press) {
stopAllSounds();
gotoAndStop(25);
}
}
button 106 {
on (press) {
stopAllSounds();
gotoAndStop(26);
}
}
frame 10 {
stop();
_quality = 'HIGH';
}
button 108 {
on (press) {
stopAllSounds();
gotoAndStop(20);
}
}
button 109 {
on (press) {
stopAllSounds();
gotoAndStop(21);
}
}
frame 11 {
stop();
_quality = 'HIGH';
}
button 111 {
on (press) {
stopAllSounds();
gotoAndStop(22);
}
}
button 112 {
on (press) {
stopAllSounds();
gotoAndStop(23);
}
}
frame 12 {
stop();
_quality = 'HIGH';
}
button 114 {
on (press) {
stopAllSounds();
gotoAndStop(29);
}
}
button 115 {
on (press) {
stopAllSounds();
gotoAndStop(30);
}
}
frame 13 {
stop();
_quality = 'HIGH';
}
button 117 {
on (press) {
stopAllSounds();
gotoAndStop(27);
}
}
button 118 {
on (press) {
stopAllSounds();
gotoAndStop(28);
}
}
frame 14 {
stop();
_quality = 'HIGH';
}
button 120 {
on (press) {
stopAllSounds();
gotoAndStop(41);
}
}
button 121 {
on (press) {
stopAllSounds();
gotoAndStop(44);
}
}
frame 15 {
stopAllSounds();
_quality = 'HIGH';
gotoAndPlay(2);
}
frame 16 {
stop();
}
movieClip 123 {
}
movieClip 127 {
}
movieClip 128 {
}
movieClip 134 {
}
movieClip 135 {
}
movieClip 136 {
frame 1 {
stop();
}
}
button 139 {
on (press) {
gotoAndStop(15);
}
}
frame 17 {
stop();
}
movieClip 145 {
}
movieClip 148 {
}
movieClip 150 {
}
movieClip 167 {
}
movieClip 182 {
}
movieClip 183 {
}
movieClip 185 {
}
movieClip 190 {
}
movieClip 197 {
}
movieClip 199 {
}
movieClip 212 {
}
movieClip 221 {
}
movieClip 237 {
frame 40 {
stop();
}
}
movieClip 240 {
}
movieClip 242 {
}
movieClip 247 {
}
movieClip 258 {
}
movieClip 288 {
frame 1446 {
stopAllSounds();
}
frame 1454 {
stopAllSounds();
}
frame 1455 {
_root.gotoAndStop(8);
}
}
frame 18 {
stop();
}
movieClip 299 {
}
movieClip 311 {
}
movieClip 334 {
}
movieClip 364 {
}
movieClip 368 {
}
movieClip 405 {
}
movieClip 414 {
}
movieClip 452 {
}
movieClip 457 {
}
movieClip 525 {
}
movieClip 539 {
frame 1450 {
_root.gotoAndStop(8);
}
}
frame 19 {
stop();
}
movieClip 575 {
}
movieClip 576 {
}
movieClip 824 {
}
movieClip 888 {
}
movieClip 903 {
}
movieClip 955 {
}
movieClip 963 {
frame 1 {
stopAllSounds();
}
frame 1659 {
Stage.scaleMode = 'noScale';
this.createEmptyMovieClip('static_mc', 1);
static_mc._x = mask_mc._x;
static_mc._y = mask_mc._y;
var bmp = new flash.display.BitmapData(mask_mc._width, mask_mc._height);
static_mc.attachBitmap(bmp, 1);
static_mc.setMask(mask_mc);
onEnterFrame = function () {
var v1 = !Key.isDown(1);
bmp.noise(Math.floor(1000 * Math.random()), 0, 255, 7, v1);
};
}
frame 1695 {
Stage.scaleMode = 'noScale';
this.createEmptyMovieClip('static_mc', 1);
static_mc._x = mask_mc._x;
static_mc._y = mask_mc._y;
var bmp = new flash.display.BitmapData(mask_mc._width, mask_mc._height);
static_mc.attachBitmap(bmp, 1);
static_mc.setMask(mask_mc);
onEnterFrame = function () {
var v1 = !Key.isDown(1);
bmp.noise(Math.floor(1000 * Math.random()), 0, 255, 7, v1);
};
}
frame 2266 {
_root.gotoAndStop(6);
}
}
frame 20 {
stop();
}
movieClip 968 {
}
movieClip 971 {
}
movieClip 974 {
}
movieClip 987 {
}
movieClip 989 {
}
movieClip 997 {
frame 237 {
_root.gotoAndStop(4);
}
}
frame 21 {
stop();
}
movieClip 999 {
}
movieClip 1002 {
}
movieClip 1003 {
}
movieClip 1006 {
}
movieClip 1009 {
}
movieClip 1013 {
frame 658 {
_root.gotoAndStop(4);
}
}
frame 22 {
stop();
}
movieClip 1015 {
}
movieClip 1017 {
}
button 1018 {
on (release) {
nextFrame();
}
}
movieClip 1020 {
}
movieClip 1021 {
}
movieClip 1022 {
}
movieClip 1028 {
}
movieClip 1029 {
}
button 1036 {
on (release) {
nextFrame();
}
}
button 1039 {
on (release) {
nextFrame();
}
}
button 1045 {
on (release) {
nextFrame();
}
}
movieClip 1047 {
}
movieClip 1049 {
}
movieClip 1057 {
}
button 1063 {
on (release) {
play();
}
}
movieClip 1070 {
}
movieClip 1075 {
frame 39 {
stop();
}
}
movieClip 1080 {
}
movieClip 1082 {
}
movieClip 1083 {
frame 1 {
stop();
}
frame 2 {
stop();
}
frame 3 {
stop();
}
frame 4 {
stop();
}
frame 5 {
stop();
}
frame 6 {
stop();
}
frame 7 {
stop();
}
frame 8 {
stop();
}
frame 9 {
stop();
}
frame 10 {
stop();
}
frame 11 {
stop();
}
frame 12 {
stop();
}
frame 13 {
stop();
}
frame 14 {
stop();
}
frame 15 {
stop();
}
frame 16 {
stop();
}
frame 17 {
stop();
}
frame 18 {
stop();
}
frame 19 {
stop();
}
frame 20 {
stop();
}
frame 80 {
_root.gotoAndStop(11);
}
}
frame 23 {
stop();
}
movieClip 1086 {
}
frame 24 {
stop();
}
movieClip 1227 {
frame 887 {
_root.gotoAndStop(9);
}
}
frame 25 {
stop();
_quality = 'LOW';
}
movieClip 1230 {
}
movieClip 1233 {
}
movieClip 1235 {
}
movieClip 1237 {
}
movieClip 1270 {
}
movieClip 1272 {
}
movieClip 1274 {
}
movieClip 1280 {
}
movieClip 1282 {
}
movieClip 1283 {
frame 260 {
_root.gotoAndStop(9);
}
}
frame 26 {
stop();
_quality = 'LOW';
}
movieClip 1384 {
}
movieClip 1388 {
}
movieClip 1395 {
}
movieClip 1411 {
}
movieClip 1570 {
frame 1355 {
_root.gotoAndStop(9);
}
}
frame 27 {
stop();
}
movieClip 1571 {
}
movieClip 1573 {
}
movieClip 1577 {
}
movieClip 1594 {
}
movieClip 1597 {
}
movieClip 1598 {
}
movieClip 1638 {
}
movieClip 1643 {
}
movieClip 1644 {
}
movieClip 1647 {
}
movieClip 1675 {
frame 27 {
stop();
}
}
movieClip 1683 {
frame 7 {
stop();
}
}
movieClip 1692 {
frame 8 {
stop();
}
}
movieClip 1693 {
frame 995 {
_root.gotoAndStop(13);
}
}
frame 28 {
stop();
}
movieClip 1696 {
}
movieClip 1698 {
}
movieClip 1700 {
}
movieClip 1702 {
}
movieClip 1704 {
}
movieClip 1706 {
}
movieClip 1708 {
}
movieClip 1710 {
}
movieClip 1712 {
}
movieClip 1713 {
}
movieClip 1714 {
}
movieClip 1715 {
}
movieClip 1716 {
}
movieClip 1717 {
}
movieClip 1718 {
}
movieClip 1719 {
}
movieClip 1720 {
}
movieClip 1721 {
}
movieClip 1723 {
}
movieClip 1724 {
}
movieClip 1728 {
}
movieClip 1729 {
}
movieClip 1730 {
}
movieClip 1735 {
}
movieClip 1740 {
}
movieClip 1745 {
}
movieClip 1746 {
}
frame 29 {
stop();
}
movieClip 1750 {
}
movieClip 1753 {
}
movieClip 1755 {
}
movieClip 1765 {
}
movieClip 1769 {
}
movieClip 1773 {
}
movieClip 1814 {
}
movieClip 1816 {
frame 410 {
stop();
}
}
frame 30 {
stop();
}
movieClip 1865 {
frame 288 {
_root.gotoAndStop(12);
}
}
frame 31 {
stop();
}
movieClip 1867 {
}
movieClip 1869 {
}
movieClip 1870 {
}
movieClip 1872 {
}
movieClip 1874 {
}
movieClip 1878 {
}
movieClip 1879 {
}
movieClip 1881 {
}
movieClip 1883 {
}
movieClip 1884 {
}
frame 32 {
stop();
}
movieClip 1890 {
frame 24 {
stop();
}
}
movieClip 1891 {
frame 58 {
_root.gotoAndPlay(4);
}
}
frame 33 {
stop();
}
movieClip 2971 {
frame 1807 {
_root.gotoAndStop(5);
}
}
frame 34 {
stop();
}
movieClip 2981 {
}
movieClip 3001 {
frame 372 {
gotoAndPlay(64);
}
}
frame 35 {
stop();
}
movieClip 3004 {
}
movieClip 3006 {
}
movieClip 3030 {
}
movieClip 3032 {
}
movieClip 3036 {
frame 190 {
stop();
}
}
frame 36 {
stop();
}
movieClip 3041 {
}
movieClip 3044 {
}
movieClip 3046 {
}
movieClip 3056 {
}
movieClip 3059 {
}
movieClip 3063 {
}
movieClip 3064 {
}
movieClip 3065 {
}
movieClip 3066 {
frame 821 {
gotoAndPlay(299);
}
}
frame 37 {
stop();
}
movieClip 3072 {
}
movieClip 3073 {
}
movieClip 3090 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 3092 {
frame 1 {
function camControl() {
parentColor.setTransform(camColor.getTransform());
var v4 = sX / this._width;
var v3 = sY / this._height;
_parent._x = cX - this._x * v4;
_parent._y = cY - this._y * v3;
_parent._xscale = 100 * v4;
_parent._yscale = 100 * v3;
}
function resetStage() {
var v2 = {'ra': 100, 'rb': 0, 'ga': 100, 'gb': 0, 'ba': 100, 'bb': 0, 'aa': 100, 'ab': 0};
parentColor.setTransform(v2);
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = 'exactFit';
var cX = Stage.width / 2;
var cY = Stage.height / 2;
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
this.onEnterFrame = camControl;
camControl();
this.onUnload = resetStage;
}
}
movieClip 3095 {
}
movieClip 3097 {
frame 191 {
}
frame 193 {
stop();
}
}
frame 38 {
stop();
}
movieClip 3098 {
}
movieClip 3100 {
}
movieClip 3101 {
}
movieClip 3107 {
}
movieClip 3112 {
}
frame 39 {
stop();
}
movieClip 3114 {
}
movieClip 3117 {
}
movieClip 3119 {
}
movieClip 3120 {
}
movieClip 3129 {
}
movieClip 3159 {
}
movieClip 3160 {
}
movieClip 3161 {
}
movieClip 3163 {
}
movieClip 3167 {
frame 27 {
stop();
}
}
button 3172 {
on (release) {
gotoAndStop(150);
}
}
button 3174 {
on (release) {
gotoAndStop(151);
}
}
button 3176 {
on (release) {
gotoAndPlay(152);
}
}
movieClip 3180 {
}
movieClip 3182 {
}
button 3185 {
on (release) {
gotoAndPlay(215);
}
}
movieClip 3189 {
}
movieClip 3197 {
}
movieClip 3207 {
}
button 3210 {
on (release) {
gotoAndStop(400);
}
}
button 3212 {
on (release) {
gotoAndPlay(401);
}
}
movieClip 3218 {
frame 11 {
stop();
}
}
movieClip 3219 {
}
movieClip 3232 {
frame 149 {
stop();
}
frame 150 {
stop();
}
frame 151 {
stop();
}
frame 214 {
stop();
}
frame 399 {
stop();
}
frame 400 {
stop();
}
frame 553 {
_root.gotoAndStop(5);
}
}
frame 40 {
stop();
}
movieClip 3234 {
}
movieClip 3236 {
}
movieClip 3239 {
}
movieClip 3243 {
}
movieClip 3244 {
}
movieClip 3253 {
}
movieClip 3255 {
}
movieClip 3256 {
}
movieClip 3260 {
}
movieClip 3263 {
}
movieClip 3265 {
}
movieClip 3275 {
}
movieClip 3280 {
frame 22 {
stop();
}
}
movieClip 3289 {
frame 415 {
_root.gotoAndPlay(3);
}
}
frame 41 {
stop();
}
movieClip 3293 {
}
movieClip 3294 {
frame 216 {
_root.play();
}
}
movieClip 3296 {
}
movieClip 3298 {
}
movieClip 3300 {
}
movieClip 3302 {
}
movieClip 3304 {
}
movieClip 3306 {
}
movieClip 3308 {
}
movieClip 3310 {
}
movieClip 3312 {
}
movieClip 3314 {
}
movieClip 3316 {
}
movieClip 3317 {
}
frame 42 {
stop();
}
movieClip 3323 {
}
movieClip 3326 {
}
movieClip 3328 {
}
movieClip 3329 {
}
movieClip 3330 {
}
movieClip 3331 {
frame 57 {
_root.play();
}
}
frame 43 {
stop();
}
movieClip 3335 {
}
movieClip 3345 {
frame 8 {
stop();
}
}
movieClip 3348 {
}
movieClip 3349 {
frame 138 {
stop();
}
}
frame 44 {
enemyFish._visible = false;
fishies = new Array();
score = 0;
d = 0;
fishMade = 0;
minimumFishOnScreen = 7;
maximumFishOnScreen = 15;
frame = _currentframe;
stop();
_root.onEnterFrame = function () {
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 + 40) + 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].speed;
if (_root['newEnemyFish' + i].hitTest(_root.fish)) {
if (_root['newEnemyFish' + i].scale <= _root.fish.scale) {
fish.scale += 5;
score += _root['newEnemyFish' + i].scale;
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);
}
}
};
clearScreen = function () {
i = 0;
while (i < fishies.length) {
removeMovieClip(_root['newEnemyFish' + i]);
++i;
}
fishies = new Array();
fishMade = 0;
};
}
movieClip 3350 {
}
movieClip 3352 {
}
movieClip 3353 {
}
instance fish of movieClip 3353 {
onClipEvent (load) {
yspeed = 0;
xspeed = 0;
goingForward = false;
goingDown = goingForward;
acceleration = 0.7;
maxSpeed = 12;
scale = 60;
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 += acceleration;
}
} else {
if (Key.isDown(39)) {
goingForward = false;
if (xspeed > -maxSpeed) {
xspeed -= acceleration;
}
} else {
if (goingForward) {
if (xspeed > 0) {
xspeed -= acceleration;
} else {
if (xspeed < 0) {
xspeed += acceleration;
}
}
} else {
if (xspeed < 0) {
xspeed += acceleration;
} else {
if (xspeed > 0) {
xspeed -= acceleration;
}
}
}
}
}
if (Key.isDown(38)) {
goingDown = true;
if (yspeed < maxSpeed) {
yspeed += acceleration;
}
} else {
if (Key.isDown(40)) {
goingDown = false;
if (yspeed > -maxSpeed) {
yspeed -= acceleration;
}
} else {
if (goingDown) {
if (yspeed > 0) {
yspeed -= acceleration;
} else {
if (yspeed < 0) {
yspeed += acceleration;
}
}
} else {
if (yspeed < 0) {
yspeed += acceleration;
} else {
if (yspeed > 0) {
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;
}
}
}
}
movieClip 3356 {
}
movieClip 3357 {
}
instance enemyFish of movieClip 3357 {
onClipEvent (load) {
if (_name != 'enemyFish') {
xscale = scale;
_yscale = xscale;
if (left == 1) {
speed *= -1;
_xscale = xscale;
_x = Stage.width + _width;
} else {
_xscale = -xscale;
_x = -_width;
}
}
}
}
movieClip 3359 {
}
frame 45 {
results = 'score: ' + score;
}
movieClip 3362 {
}
movieClip 3364 {
}
button 3365 {
on (release) {
gotoAndStop(44);
}
}
frame 46 {
results = 'Your final score was: ' + score;
}
frame 47 {
stop();
}
movieClip 3406 {
frame 1 {
stopAllSounds();
}
frame 416 {
}
}
frame 48 {
stop();
_quality = 'HIGH';
}
button 3408 {
on (press) {
stopAllSounds();
gotoAndStop(19);
}
}
button 3409 {
on (press) {
stopAllSounds();
gotoAndStop(47);
}
}
frame 49 {
stopAllSounds();
}
movieClip 3430 {
}
movieClip 3440 {
}
movieClip 3452 {
frame 5 {
stop();
}
}
frame 248 {
gotoAndStop(6);
}