Frame 2
stop();
Frame 3
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 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]._x + _root["newEnemyFish" + i].speed;
if (_root["newEnemyFish" + i].hitTest(_root.fish)) {
if (_root["newEnemyFish" + i].scale <= _root.fish.scale) {
fish.scale = fish.scale + 5;
score = 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;
};
enemyFish._visible = false;
fishies = new Array();
fishMade = (d = (score = 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("newKrazy" + 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["newKrazy" + i]._x = _root["newKrazy" + i]._x + _root["newKrazy" + i].speed;
if (_root["newKrazy" + i].hitTest(_root.fish)) {
if (_root["newKrazy" + i].scale <= _root.fish.scale) {
fish.scale = fish.scale + 5;
score = score + _root["newKrazy" + i].scale;
removeMovieClip(_root["newKrazy" + i]);
fishies[i] = 0;
} else {
nextFrame();
clearScreen();
}
}
if (_root["newKrazy" + i].left == 1) {
if (_root["newKrazy" + i]._x < (-_root["newKrazy" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_root["newEnemyFish" + i]);
}
} else if (_root["newKrazy" + i]._x > (Stage.width + _root["newKrazy" + i]._width)) {
fishies[i] = 0;
removeMovieClip(_root["newKrazy" + i]);
}
}
i++;
}
} else {
_root.gotoAndStop(_currentframe + 2);
}
}
};
clearScreen = function () {
i = 0;
while (i < fishies.length) {
removeMovieClip(_root["newKrazy" + i]);
i++;
}
fishies = new Array();
fishMade = 0;
};
Instance of Symbol 105 MovieClip "fish" in Frame 3
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 111 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);
}
}
}
Frame 4
results = "K1NG0FDAPORTALS SCORE IS: " + score;
Frame 5
results = "You have won! Your final score was: " + score;
Frame 6
stop();
Symbol 12 MovieClip Frame 1
flashfile._rotation = flashfile._rotation + (random(358) + 2);
Symbol 13 MovieClip Frame 1
gotoAndPlay(random(39) + 1);
Symbol 13 MovieClip Frame 41
gotoAndPlay(random(18) + 41);
Symbol 13 MovieClip Frame 60
gotoAndPlay (2);
Symbol 37 MovieClip Frame 20
gotoAndPlay (1);
Symbol 42 MovieClip Frame 20
gotoAndPlay (1);
Symbol 44 MovieClip Frame 1
half1._rotation = (_root.getBytesLoaded() / _root.getBytesTotal()) * 360;
if (((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) >= 180) {
gotoAndPlay (3);
}
Symbol 44 MovieClip Frame 2
half1._rotation = (_root.getBytesLoaded() / _root.getBytesTotal()) * 360;
if (((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) >= 180) {
gotoAndPlay (3);
}
gotoAndPlay (1);
Symbol 44 MovieClip Frame 3
half1._rotation = 180;
half2._rotation = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) - 180;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
half2._rotation = 180;
}
Symbol 44 MovieClip Frame 4
half1._rotation = 180;
half2._rotation = ((_root.getBytesLoaded() / _root.getBytesTotal()) * 360) - 180;
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
half2._rotation = 180;
}
gotoAndPlay (3);
Symbol 53 MovieClip Frame 1
textloaded = ((Math.round(_root.getBytesLoaded() * 0.000872) + "/") + Math.round(_root.getBytesTotal() * 0.000872)) + "Kb";
if (Math.round(_root.getBytesTotal() * 0.000872) > 999) {
textloaded = (((Math.round((_root.getBytesLoaded() * 0.9213) / 10000) / 100) + "/") + (Math.round((_root.getBytesTotal() * 0.9213) / 10000) / 100)) + "Mb";
}
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent._parent.play();
}
Symbol 53 MovieClip Frame 2
textloaded = ((Math.round(_root.getBytesLoaded() * 0.000872) + "/") + Math.round(_root.getBytesTotal() * 0.000872)) + "Kb";
if (Math.round(_root.getBytesTotal() * 0.000872) > 999) {
textloaded = (((Math.round((_root.getBytesLoaded() * 0.9213) / 10000) / 100) + "/") + (Math.round((_root.getBytesTotal() * 0.9213) / 10000) / 100)) + "Mb";
}
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
_parent._parent.play();
}
Symbol 64 MovieClip Frame 1
areacolor = new Color(area);
areacolor.setRGB(_parent._parent.randomcolor);
Symbol 67 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 71 MovieClip Frame 1
stripe1.play();
Symbol 71 MovieClip Frame 2
stripe2.play();
Symbol 71 MovieClip Frame 3
stripe3.play();
Symbol 71 MovieClip Frame 4
stripe4.play();
Symbol 71 MovieClip Frame 5
stripe5.play();
Symbol 71 MovieClip Frame 6
stripe6.play();
Symbol 71 MovieClip Frame 7
stripe7.play();
Symbol 71 MovieClip Frame 8
stripe8.play();
Symbol 71 MovieClip Frame 9
stripe9.play();
Symbol 71 MovieClip Frame 10
stripe10.play();
Symbol 71 MovieClip Frame 11
stripe11.play();
Symbol 71 MovieClip Frame 12
stripe12.play();
Symbol 71 MovieClip Frame 13
stripe13.play();
Symbol 71 MovieClip Frame 14
stripe14.play();
Symbol 71 MovieClip Frame 15
stripe15.play();
Symbol 71 MovieClip Frame 16
stripe16.play();
Symbol 71 MovieClip Frame 17
stripe17.play();
Symbol 71 MovieClip Frame 18
stripe18.play();
stop();
Symbol 73 Button
on (release) {
_parent.play();
nextFrame();
}
Symbol 74 MovieClip Frame 1
randomcolor = random(16777215);
skycolor = new Color(sky);
skycolor.setRGB(randomcolor);
stop();
Symbol 74 MovieClip Frame 13
stop();
Symbol 74 MovieClip Frame 14
stop();
Symbol 77 MovieClip Frame 1
_root.stop();
Symbol 77 MovieClip Frame 3
if (this._framesloaded > 15) {
play();
} else {
gotoAndPlay (2);
}
Symbol 77 MovieClip Frame 24
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
logo.gotoAndPlay(6);
gotoAndStop ("done");
}
Symbol 77 MovieClip Frame 25
if (_root.getBytesLoaded() >= _root.getBytesTotal()) {
logo.gotoAndPlay(6);
gotoAndStop ("done");
}
gotoAndPlay ("reload");
Symbol 77 MovieClip Frame 56
_root.play();
stop();
Symbol 89 Button
on (release) {
gotoAndPlay (6);
}
Symbol 121 Button
on (release) {
gotoAndStop (3);
}
Symbol 125 Button
on (release) {
gotoAndStop (1);
}
Symbol 131 Button
on (release) {
gotoAndPlay (3);
}