Frame 1
play();
Frame 2
play();
Frame 5
fscommand ("fullscreen", "false");
fscommand ("allowscale", "false");
stopAllSounds();
projectTitle = "Whale-Flip! 0.3";
movieBounds = _root.getBounds(_root);
_quality = "HIGH";
thisLev = new String(this);
useDebugger = "no";
debuggerLevel = 100;
loadExternal = "yes";
Frame 6
if (_root.getBytesLoaded() == _root.getBytesTotal()) {
_root.gotoAndPlay("load_sounds");
}
Frame 7
stop();
Instance of Symbol 10 MovieClip "mc_preloader" in Frame 7
onClipEvent (load) {
this._x = Math.round(_root.movieBounds.xMax / 2);
this._y = Math.round(_root.movieBounds.yMax / 2);
this.item = "Game";
}
onClipEvent (enterFrame) {
this.percentageLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (isNaN(this.percentageLoaded)) {
this.percentageLoaded = 0;
}
this.mc_bubble._width = Math.round(this.percentageLoaded);
this.mc_bubble._height = this.mc_bubble._width;
if (Math.round(this.percentageLoaded) == 100) {
_root.gotoAndPlay("load_sounds");
}
}
Frame 10
loadMovieNum ("wf_sounds.swf", 3);
Frame 11
stop();
Instance of Symbol 10 MovieClip "mc_preloader" in Frame 11
onClipEvent (load) {
this._x = Math.round(_root.movieBounds.xMax / 2);
this._y = Math.round(_root.movieBounds.yMax / 2);
this.item = "Sound FX";
}
onClipEvent (enterFrame) {
this.percentageLoaded = (_level3.getBytesLoaded() / _level3.getBytesTotal()) * 100;
if (isNaN(this.percentageLoaded)) {
this.percentageLoaded = 0;
}
this.mc_bubble._width = Math.round(this.percentageLoaded);
this.mc_bubble._height = this.mc_bubble._width;
if ((Math.round(this.percentageLoaded) == 100) && (_level3.fileLoaded)) {
_root.gotoAndPlay("load_debugger");
}
}
Frame 14
if (_root.useDebugger != "yes") {
_root.gotoAndPlay("load_external");
} else {
loadMovieNum ("debugger.swf", _root.debuggerLevel);
}
Frame 15
stop();
Instance of Symbol 2 MovieClip in Frame 15
onClipEvent (enterFrame) {
if (eval ("_level" + _root.debuggerLevel).fileLoaded == "yes") {
_root.gotoAndPlay("load_external");
}
}
Frame 18
if (_root.loadExternal == "yes") {
_root.gameData = new XML();
_root.gameData.ignoreWhite = true;
_root.gameData.load(("wf_data_" + lang) + ".xml");
} else {
_root.gotoAndPlay("init_variables");
}
Frame 19
stop();
Instance of Symbol 10 MovieClip "mc_preloader" in Frame 19
onClipEvent (load) {
this._x = Math.round(_root.movieBounds.xMax / 2);
this._y = Math.round(_root.movieBounds.yMax / 2);
this.item = "Xml";
}
onClipEvent (enterFrame) {
this.percentageLoaded = (_root.gameData.getBytesLoaded() / _root.gameData.getBytesTotal()) * 100;
if (isNaN(this.percentageLoaded)) {
this.percentageLoaded = 0;
}
this.mc_bubble._width = Math.round(this.percentageLoaded);
this.mc_bubble._height = this.mc_bubble._width;
if (_root.gameData.loaded == true) {
_root.gotoAndPlay("init_variables");
}
}
Frame 24
function fn_resetVariables() {
playerStatus = "alive";
playerTimeLeft = 60;
currentWhale = 1;
score = 0;
tally = 0;
gameMode = "hard";
maxBubbles = 4;
bubbleActiveArray = new Array("null");
bubbleFishArray = new Array("null");
bubbleEnemyArray = new Array("null");
bubbleMaxSize = 80;
bubbleMinCaptureSize = 45;
startEnemies = 4;
maxEnemies = 4;
maxFish = 4;
i = 1;
while (i <= maxBubbles) {
bubbleActiveArray[i] = "no";
bubbleFishArray[i] = "no";
bubbleEnemyArray[i] = "no";
i++;
}
}
function fn_removeChars() {
var i = 1;
while (i <= maxBubbles) {
removeMovieClip("mc_bubble" + i);
removeMovieClip("mc_pop" + i);
i++;
}
var i = 2;
while (i <= startEnemies) {
removeMovieClip("mc_enemyChar" + i);
i++;
}
var i = 2;
while (i <= maxFish) {
removeMovieClip("mc_fish" + i);
i++;
}
}
so_hiScore = SharedObject.getLocal("whale_flip_high_score");
if (so_hiScore.data.hiScore == undefined) {
hiScore = 0;
} else {
hiScore = Number(so_hiScore.data.hiScore);
}
textInstructions = _root.gameData.firstChild.childNodes[0].childNodes[0];
textScore = ("<p align='right'>" + _root.gameData.firstChild.childNodes[0].childNodes[1]) + "</p>";
textBonus = _root.gameData.firstChild.childNodes[0].childNodes[2];
textLoss = _root.gameData.firstChild.childNodes[0].childNodes[3];
textPop = ("<p align='center'><font color='#FFFFFF'>" + _root.gameData.firstChild.childNodes[0].childNodes[4]) + "</font></p>";
textButton1 = ("<p align='center'>" + _root.gameData.firstChild.childNodes[0].childNodes[5]) + "</p>";
textButton2 = ("<p align='center'>" + _root.gameData.firstChild.childNodes[0].childNodes[6]) + "</p>";
textGameOver1 = ("<p align='center'><font color='#FF7F7F'>" + _root.gameData.firstChild.childNodes[0].childNodes[7]) + "</font></p>";
textGameOver2 = ("<p align='center'>" + _root.gameData.firstChild.childNodes[0].childNodes[8]) + "</p>";
textGameOver3 = "<p align='center'>" + _root.gameData.firstChild.childNodes[0].childNodes[9];
textGameOver4 = "<p align='center'>" + _root.gameData.firstChild.childNodes[0].childNodes[10];
textLink = ("<p align='center'>" + _root.gameData.firstChild.childNodes[0].childNodes[11]) + "</p>";
play();
Frame 25
fn_resetVariables();
play();
Frame 26
_root.mc_intro.gotoAndPlay("active");
stop();
Frame 27
var i = 1;
while (i <= maxBubbles) {
_root.mc_popOrig.duplicateMovieClip("mc_pop" + i, i + 200);
i++;
}
var i = 2;
while (i <= startEnemies) {
_root.mc_enemyChar1.duplicateMovieClip("mc_enemyChar" + i, i + 50);
i++;
}
var i = 2;
while (i <= maxFish) {
_root.mc_fish1.duplicateMovieClip("mc_fish" + i, i + 25);
i++;
}
stop();
Instance of Symbol 87 MovieClip in Frame 27
onClipEvent (load) {
gotoAndPlay(Math.round(Math.random() * _totalframes) + 1);
}
Instance of Symbol 87 MovieClip in Frame 27
onClipEvent (load) {
gotoAndPlay(Math.round(Math.random() * _totalframes) + 1);
}
Instance of Symbol 19 MovieClip "mc_popOrig" in Frame 27
onClipEvent (load) {
function fn_positionMe() {
_x = startX;
_y = startY;
}
startX = _x;
startY = _y;
fn_positionMe();
}
Instance of Symbol 106 MovieClip "mc_enemyChar1" in Frame 27
onClipEvent (load) {
function fn_chooseChar() {
var i = (Math.round(Math.random() * 1) + 1);
if (i > 1) {
this.gotoAndPlay(i);
}
}
fn_chooseChar();
}
onClipEvent (load) {
function fn_resetChar() {
myStatus = "alive";
myPlayStatus = "alive";
myCaptor = "null";
soundShift = 0;
yMovementMode = "normal";
yMovement = 0;
yOffset = 1;
_y = (Math.round(Math.random() * (_root.movieBounds.yMax - 200)) + 95);
var i = Math.round(Math.random() * 1);
if (i == 0) {
mySide = "l";
_x = (-_width);
xMovement = (Math.random() * 3) + 0.5;
} else if (i == 1) {
mySide = "r";
_x = (_root.movieBounds.xMax + _width);
xMovement = -((Math.random() * 3) + 0.5);
}
this.mc_char.gotoAndPlay(mySide + "_default");
}
function fn_chooseYNumber() {
if (yOffset == 1) {
yOffset = -1;
} else if (yOffset == -1) {
yOffset = 1;
}
yMovement = Math.round(Math.random() * (xMovement * yOffset));
}
myNumber = Number(_name.substr(12, _name.length - 12));
fn_resetChar();
}
onClipEvent (enterFrame) {
if ((myStatus != "dead") && (_root.playerStatus == "alive")) {
var i = 1;
while (i <= _root.maxBubbles) {
if ((((((_root.bubbleActiveArray[i] == "yes") && (_root.bubbleFishArray[i] == "no")) && (this.mc_char.mc_hitArea.hitTest(_root["mc_bubble" + i].mc_hitArea))) && (_root["mc_bubble" + i].bubbleSize >= _root.bubbleMinCaptureSize)) && (_root["mc_bubble" + i].growBubble == false)) && (myStatus == "alive")) {
_root.bubbleEnemyArray[i] = "yes";
myCaptor = i;
myStatus = "captured";
_root.score = _root.score + 5;
this.mc_char.gotoAndPlay(mySide + "_captured");
if (_root["mc_bubble" + i].myTimer < 150) {
_root["mc_bubble" + i].myTimer = 150;
}
}
i++;
}
var i = 1;
while (i <= _root.maxBubbles) {
if ((((_root.bubbleActiveArray[i] == "yes") && (this.hitTest(_root["mc_bubble" + i]))) && (_root["mc_bubble" + i].bubbleSize < _root.bubbleMinCaptureSize)) && (_root["mc_bubble" + i].growBubble == false)) {
_root["mc_bubble" + i].fn_killMe();
}
i++;
}
if (this.hitTest(_root.mc_soundwave.mc_hitArea)) {
soundShift = 0.25;
}
_y = (_y - soundShift);
soundShift = soundShift / 1.025;
if (soundShift <= 0) {
soundShift = 0;
}
if ((myStatus != "captured") && (myStatus != "dead")) {
_x = (_x + xMovement);
if (yMovementMode == "angry") {
fn_chooseYNumber();
}
_y = (_y + yMovement);
if ((_x > (_root.movieBounds.xMax + _width)) && (mySide == "l")) {
_x = (-_width);
} else if ((_x < (-_width)) && (mySide == "r")) {
_x = (_root.movieBounds.xMax + _width);
}
if (_y > (_root.movieBounds.yMax - (_height / 2))) {
_y = (_root.movieBounds.yMax - (_height / 2));
} else if (_y < 95) {
_y = 95;
}
} else if (myStatus == "captured") {
_x = _root["mc_bubble" + myCaptor]._x;
_y = _root["mc_bubble" + myCaptor]._y;
}
} else if ((myStatus == "dead") && (myPlayStatus != "dead")) {
this.mc_char.gotoAndPlay(mySide + "_dead");
}
}
Instance of Symbol 111 MovieClip "mc_fish1" in Frame 27
onClipEvent (load) {
function fn_chooseChar() {
var i = (Math.round(Math.random() * 1) + 1);
if (i > 1) {
this.gotoAndPlay(i);
}
}
fn_chooseChar();
}
onClipEvent (load) {
function fn_resetChar() {
myStatus = "alive";
myPlayStatus = "alive";
myCaptor = "null";
soundShift = 0;
_y = (Math.round(Math.random() * (_root.movieBounds.yMax - 200)) + 95);
var i = Math.round(Math.random() * 1);
if (i == 0) {
mySide = "l";
_x = (-_width);
xMovement = (Math.random() * 3) + 0.5;
} else if (i == 1) {
mySide = "r";
_x = (_root.movieBounds.xMax + _width);
xMovement = -((Math.random() * 3) + 0.5);
}
this.mc_char.gotoAndPlay(mySide + "_default");
}
myNumber = Number(_name.substr(7, _name.length - 7));
fn_resetChar();
}
onClipEvent (enterFrame) {
if ((myStatus != "dead") && (_root.playerStatus == "alive")) {
var i = 1;
while (i <= _root.maxBubbles) {
if ((((((_root.bubbleActiveArray[i] == "yes") && (_root.bubbleEnemyArray[i] == "no")) && (this.mc_char.mc_hitArea.hitTest(_root["mc_bubble" + i].mc_hitArea))) && (_root["mc_bubble" + i].bubbleSize >= _root.bubbleMinCaptureSize)) && (_root["mc_bubble" + i].growBubble == false)) && (myStatus == "alive")) {
_root.bubbleFishArray[i] = "yes";
myCaptor = i;
myStatus = "captured";
this.mc_char.gotoAndPlay(mySide + "_captured");
if (_root["mc_bubble" + i].myTimer < 150) {
_root["mc_bubble" + i].myTimer = 150;
}
}
i++;
}
if (this.hitTest(_root.mc_soundwave.mc_hitArea)) {
soundShift = 0.25;
}
_y = (_y - soundShift);
soundShift = soundShift / 1.025;
if (soundShift <= 0) {
soundShift = 0;
}
if (myStatus == "alive") {
_x = (_x + xMovement);
if ((_x > (_root.movieBounds.xMax + _width)) && (mySide == "l")) {
_x = (-_width);
} else if ((_x < (-_width)) && (mySide == "r")) {
_x = (_root.movieBounds.xMax + _width);
}
if (_y > (_root.movieBounds.yMax - (_height / 2))) {
_y = (_root.movieBounds.yMax - (_height / 2));
} else if (_y < 95) {
_y = 95;
}
} else if (myStatus == "captured") {
_x = _root["mc_bubble" + myCaptor]._x;
_y = _root["mc_bubble" + myCaptor]._y;
}
} else if (((myStatus == "dead") && (myPlayStatus != "dead")) && (_root.playerStatus == "alive")) {
this.mc_char.gotoAndPlay(mySide + "_dead");
}
}
Instance of Symbol 18 MovieClip in Frame 27
onClipEvent (load) {
if (_root.lang != "en") {
myText = ("<b>" + _root.textScore) + "</b>";
this.gotoAndPlay(_root.lang);
} else {
myText = _root.textScore;
}
}
Instance of Symbol 11 MovieClip "mc_bubbleOrig" in Frame 27
onClipEvent (load) {
function fn_resetBubble() {
myStatus = "default";
this.gotoAndPlay("default");
soundShift = 0;
bubbleLife = bubbleSize * 3;
}
function fn_playPop() {
_level3.fn_playSound("pop");
if (_root["mc_pop" + myNumber].myStatus == "inactive") {
_root["mc_pop" + myNumber]._x = _x;
_root["mc_pop" + myNumber]._y = _y;
_root["mc_pop" + myNumber].gotoAndPlay("active");
}
}
function fn_killMe(how) {
fn_playPop();
_x = -100;
_y = -100;
var captureCount = 0;
i = 1;
while (i <= _root.maxEnemies) {
if (_root["mc_enemyChar" + i].myCaptor == myNumber) {
var whichItem = "enemy";
if (how == "aboveSurface") {
captureCount++;
_root["mc_enemyChar" + i].myStatus = "dead";
_root.score = _root.score + 20;
_root.playerTimeLeft = _root.playerTimeLeft + 5;
} else if (how == "timeOut") {
_root["mc_enemyChar" + i].myStatus = "alive";
_root["mc_enemyChar" + i].myCaptor = "null";
_root["mc_enemyChar" + i].xMovement = _root["mc_enemyChar" + i].xMovement * 1.75;
_root["mc_enemyChar" + i].yMovementMode = "angry";
_root["mc_enemyChar" + i].mc_char.gotoAndPlay(_root["mc_enemyChar" + i].mySide + "_default");
}
_root.bubbleEnemyArray[myNumber] = "no";
} else if (_root["mc_fish" + i].myCaptor == myNumber) {
var whichItem = "fish";
if (how == "aboveSurface") {
captureCount++;
_root["mc_fish" + i].myStatus = "dead";
_root.score = _root.score - 20;
_root.playerTimeLeft = _root.playerTimeLeft - 5;
} else if (how == "timeOut") {
_root["mc_fish" + i].myStatus = "alive";
_root["mc_fish" + i].myCaptor = "null";
_root["mc_fish" + i].xMovement = _root["mc_fish" + i].xMovement * 1.25;
_root["mc_fish" + i].mc_char.gotoAndPlay(_root["mc_fish" + i].mySide + "_default");
}
_root.bubbleFishArray[myNumber] = "no";
}
i++;
}
if ((whichItem == "enemy") && (how == "aboveSurface")) {
if (captureCount > 1) {
_root.score = _root.score + ((captureCount - 1) * 50);
_root.mc_bonusMessage.myAmount = captureCount - 1;
_root.mc_bonusMessage.gotoAndPlay("bonus");
_level3.fn_stopPlaySound("bonus");
} else {
_level3.fn_stopPlaySound("1sub");
}
_root.tally = _root.tally + captureCount;
} else if ((whichItem == "fish") && (how == "aboveSurface")) {
_root.mc_bonusMessage.myAmount = captureCount * 20;
_root.mc_bonusMessage.gotoAndPlay("loss");
_level3.fn_stopPlaySound("loss");
}
myTimer = 0;
bubbleSize = 0;
_width = bubbleSize;
_height = bubbleSize;
_root.bubbleActiveArray[myNumber] = "no";
}
myNumber = Number(_name.substr(9, 1));
}
onClipEvent (enterFrame) {
if ((this._name != "mc_bubbleOrig") && (_root.playerStatus == "alive")) {
if (growBubble) {
_x = (_root.mc_whale1._x + 15);
_y = (_root.mc_whale1._y - 30);
bubbleSize = bubbleSize + 2;
if (bubbleSize < _root.bubbleMinCaptureSize) {
_alpha = (bubbleSize + 20);
} else if (bubbleSize >= _root.bubbleMinCaptureSize) {
_alpha = 100;
}
if (bubbleSize > _root.bubbleMaxSize) {
fn_killMe("overinflated");
}
_width = bubbleSize;
_height = bubbleSize;
}
if ((!growBubble) && (bubbleSize > 0)) {
if (startedMyTimer) {
myTimer = bubbleLife;
startedMyTimer = false;
}
if (myTimer > 0) {
myTimer--;
this._y = this._y - 0.25;
if (this.hitTest(_root.mc_soundwave.mc_hitArea)) {
soundShift = 2;
}
this._y = this._y - soundShift;
soundShift = soundShift / 1.025;
if (soundShift <= 0) {
soundShift = 0;
}
if ((myTimer <= 50) && (myStatus == "default")) {
this.gotoAndPlay("timeShort");
} else if ((myTimer > 50) && (myStatus != "default")) {
this.gotoAndPlay("default");
}
if (this.hitTest(_root.mc_bubbleBoundary)) {
fn_killMe("aboveSurface");
}
} else if ((myTimer <= 0) && (bubbleSize > 0)) {
fn_killMe("timeOut");
}
}
}
}
Instance of Symbol 2 MovieClip "mc_bubbleSort" in Frame 27
onClipEvent (mouseDown) {
if (((_root.currentWhale == 1) && (!_root.registerClick)) && (_root.playerStatus == "alive")) {
_root.registerClick = true;
useBubble = "null";
var i = 1;
while (i <= _root.maxBubbles) {
if (_root.bubbleActiveArray[i] == "no") {
useBubble = i;
_root.bubbleActiveArray[i] = "yes";
break;
}
i++;
}
if (useBubble != "null") {
duplicateMovieClip (_root.mc_bubbleOrig, "mc_bubble" + useBubble, useBubble + 100);
_root["mc_bubble" + useBubble].bubbleSize = 0;
_root["mc_bubble" + useBubble].growBubble = true;
_root["mc_bubble" + useBubble].startedMyTimer = false;
}
}
if ((((_root.currentWhale == 2) && (!_root.registerClick)) && (_root.playerStatus == "alive")) && (_root.mc_soundwave.myStatus != "active")) {
_root.registerClick = true;
_root.mc_soundwave._x = _root.mc_whale2._x - 17;
_root.mc_soundwave._y = _root.mc_whale2._y - 25;
_root.mc_soundwave.gotoAndPlay("active");
}
}
onClipEvent (mouseUp) {
if (_root.playerStatus == "alive") {
_root.registerClick = false;
if (_root.currentWhale == 1) {
_root["mc_bubble" + useBubble].fn_resetBubble();
_root["mc_bubble" + useBubble].growBubble = false;
_root["mc_bubble" + useBubble].startedMyTimer = true;
}
}
}
onClipEvent (load) {
function fn_addMyListener() {
myListener = new Object();
myListener.onKeyUp = function () {
if ((Key.getCode() == 32) && (_root.playerStatus == "alive")) {
if (_root.currentWhale == 1) {
_root.currentWhale = 2;
if ((_root["mc_bubble" + _root.mc_bubbleSort.useBubble].growBubble == true) && (_root["mc_bubble" + _root.mc_bubbleSort.useBubble].startedMyTimer != true)) {
_root["mc_bubble" + _root.mc_bubbleSort.useBubble].growBubble = false;
_root["mc_bubble" + _root.mc_bubbleSort.useBubble].startedMyTimer = true;
}
} else if (_root.currentWhale == 2) {
_root.currentWhale = 1;
}
}
};
Key.addListener(myListener);
}
fn_addMyListener();
}
Frame 28
stop();
Frame 30
fn_removeChars();
mc_bubbleSort.removeListener(myListener);
if (score > hiScore) {
hiScore = score;
}
if (hiScore > Number(so_hiScore.data.hiScore)) {
so_hiScore.data.hiScore = hiScore;
so_hiScore.flush();
}
play();
Frame 31
mc_gameOver.gotoAndPlay("active");
stop();
Frame 32
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 11 MovieClip Frame 1
myStatus = "default";
play();
Symbol 11 MovieClip Frame 21
gotoAndPlay (1);
Symbol 11 MovieClip Frame 22
myStatus = "timeShort";
play();
Symbol 11 MovieClip Frame 42
gotoAndPlay (22);
Symbol 13 Button
on (press) {
_level3.fn_stopPlaySound("1sub");
gotoAndPlay (135);
introSkipped = true;
}
Symbol 18 MovieClip Frame 1
play();
Symbol 18 MovieClip Frame 2
fn_sizeMe();
stop();
Symbol 18 MovieClip Frame 3
play();
Symbol 18 MovieClip Frame 4
fn_sizeMe();
stop();
Symbol 19 MovieClip Frame 1
myStatus = "inactive";
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 5
myStatus = "active";
play();
Instance of Symbol 18 MovieClip "mc_text" in Symbol 19 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
mytext = ("<b>" + _root.textPop) + "</b>";
this.gotoAndPlay(_root.lang);
} else {
mytext = _root.textPop;
}
_x = (-(_width / 2));
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 3;
}
Symbol 19 MovieClip Frame 38
fn_positionMe();
gotoAndPlay (1);
Instance of Symbol 18 MovieClip "mc_text" in Symbol 41 MovieClip Frame 1
onClipEvent (load) {
if (_root.lang != "en") {
mytext = ("<b>" + _root.textPop) + "</b>";
this.gotoAndPlay(_root.lang);
} else {
mytext = _root.textPop;
}
_x = (-(_width / 2));
}
Symbol 44 Button
on (rollOver, dragOver) {
this.gotoAndPlay("rollover");
}
on (rollOut, dragOut) {
this.gotoAndPlay("rollout");
}
on (press) {
_level3.fn_playSound("pop");
fn_myClickAction();
}
Symbol 45 MovieClip Frame 1
myNumber = Number(_name.substr(6, _name.length - 6));
Symbol 45 MovieClip Frame 2
myStatus = "default";
stop();
Instance of Symbol 18 MovieClip in Symbol 45 MovieClip Frame 2
onClipEvent (load) {
if (_root.lang != "en") {
mytext = ("<b>" + _root["textButton" + _parent.myNumber]) + "</b>";
this.gotoAndPlay(_root.lang);
} else {
mytext = _root["textButton" + _parent.myNumber];
}
_x = (-(_width / 2));
}
Symbol 45 MovieClip Frame 3
stop();
Symbol 45 MovieClip Frame 6
myStatus = "rollover";
Symbol 45 MovieClip Frame 11
stop();
Symbol 45 MovieClip Frame 12
play();
Symbol 45 MovieClip Frame 16
gotoAndPlay (2);
Symbol 46 Button
on (press) {
gotoAndPlay (3);
}
Symbol 48 Button
on (press) {
getURL ("http://www.kaiusdesign.com/", "_blank");
}
Symbol 50 Button
on (press) {
getURL ("http://www.richsalter.net/", "_blank");
}
Instance of Symbol 53 MovieClip in Symbol 54 MovieClip Frame 1
onClipEvent (load) {
this.pauseTimer = 0;
_parent._parent.stop();
}
onClipEvent (enterFrame) {
if (this.pauseTimer >= (_parent.pauseLimit * _parent.frameRate)) {
_parent._parent.play();
} else {
this.pauseTimer++;
}
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 55 MovieClip Frame 3
play();
Symbol 55 MovieClip Frame 95
stop();
Instance of Symbol 54 MovieClip in Symbol 55 MovieClip Frame 95
//component parameters
onClipEvent (initialize) {
frameRate = 31;
pauseLimit = 4;
}
Symbol 55 MovieClip Frame 96
mc_pop1.gotoAndPlay("active");
_level3.fn_playSound("pop");
play();
Symbol 55 MovieClip Frame 110
mc_pop2.gotoAndPlay("active");
_level3.fn_playSound("pop");
Symbol 55 MovieClip Frame 125
mc_pop3.gotoAndPlay("active");
_level3.fn_playSound("pop");
Symbol 55 MovieClip Frame 165
gotoAndPlay (1);
Symbol 82 MovieClip Frame 1
stop();
Symbol 82 MovieClip Frame 2
stop();
Symbol 82 MovieClip Frame 5
play();
Instance of Symbol 11 MovieClip in Symbol 82 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_y > -300) {
_y = (_y - 4);
}
}
Instance of Symbol 11 MovieClip in Symbol 82 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_y > -300) {
_y = (_y - 2);
}
}
Symbol 82 MovieClip Frame 86
mc_pop.gotoAndPlay("active");
_level3.fn_playSound("pop");
Symbol 82 MovieClip Frame 90
_level3.fn_stopPlaySound("1sub");
Symbol 82 MovieClip Frame 114
_level3.fn_stopPlaySound("mainTheme");
mc_pop.gotoAndPlay("default");
Instance of Symbol 42 MovieClip "mc_introWhaleBlue" in Symbol 82 MovieClip Frame 114
onClipEvent (load) {
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Instance of Symbol 43 MovieClip "mc_introWhalePink" in Symbol 82 MovieClip Frame 114
onClipEvent (load) {
this.gotoAndPlay(Math.round(Math.random() * this._totalframes) + 1);
}
Symbol 82 MovieClip Frame 135
if (introSkipped) {
_level3.fn_playSound("mainTheme");
}
stop();
Instance of Symbol 45 MovieClip "mc_but1" in Symbol 82 MovieClip Frame 135
onClipEvent (load) {
function fn_myClickAction() {
_parent.gotoAndPlay("instructions");
}
}
Symbol 82 MovieClip Frame 136
stop();
Symbol 82 MovieClip Frame 140
play();
Instance of Symbol 18 MovieClip in Symbol 82 MovieClip Frame 140
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 420;
mc_textField._height = 400;
if (_root.lang != "en") {
mytext = ("<b>" + _root.textInstructions) + "</b>";
} else {
mytext = _root.textInstructions;
}
}
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
Symbol 82 MovieClip Frame 165
stop();
Instance of Symbol 45 MovieClip "mc_but2" in Symbol 82 MovieClip Frame 165
onClipEvent (load) {
function fn_myClickAction() {
_parent.gotoAndPlay("start");
}
}
Symbol 82 MovieClip Frame 166
stop();
Symbol 82 MovieClip Frame 170
play();
Symbol 82 MovieClip Frame 200
_root.gotoAndPlay("game_on");
stop();
Symbol 96 MovieClip Frame 1
play();
Symbol 96 MovieClip Frame 20
gotoAndPlay (1);
Symbol 96 MovieClip Frame 21
play();
Symbol 96 MovieClip Frame 40
gotoAndPlay (21);
Instance of Symbol 96 MovieClip "mc_playerChar" in Symbol 97 MovieClip Frame 1
onClipEvent (load) {
myNumber = Number(_parent._name.substr(8, 1));
this.gotoAndPlay("char_" + myNumber);
acc = 10;
}
onClipEvent (enterFrame) {
if ((_root.currentWhale == myNumber) && (_root.playerStatus == "alive")) {
if (_root._ymouse < 100) {
whereToY = Math.round(_parent._y + ((100 - _parent._y) / acc));
} else if (_root._ymouse > (_root.movieBounds.yMax - (_parent._height / 2))) {
whereToY = Math.round(_parent._y + (((_root.movieBounds.yMax - (_parent._height / 2)) - _parent._y) / acc));
} else {
whereToY = Math.round(_parent._y + ((_root._ymouse - _parent._y) / acc));
}
if (_root._xmouse < (_parent._width / 2)) {
whereToX = Math.round(_parent._x + (((_parent._width / 2) - _parent._x) / acc));
} else if (_root._xmouse > (_root.movieBounds.xMax - (_parent._width / 2))) {
whereToX = Math.round(_parent._x + (((_root.movieBounds.xMax - (_parent._width / 2)) - _parent._x) / acc));
} else {
whereToX = Math.round(_parent._x + ((_root._xmouse - _parent._x) / acc));
}
} else {
whereToX = Math.round(_parent._x + (((_root.movieBounds.xMax / 2) - _parent._x) / acc));
whereToY = Math.round(_parent._y + (((_root.movieBounds.yMax - _parent._height) - _parent._y) / acc));
}
_parent._x = whereToX;
_parent._y = whereToY;
}
Symbol 98 MovieClip Frame 1
if (mc_sub.mc_propBubbles._visible == 0) {
mc_sub.mc_propBubbles._visible = 1;
}
stop();
Symbol 98 MovieClip Frame 5
stop();
Symbol 98 MovieClip Frame 6
play();
Symbol 98 MovieClip Frame 55
gotoAndPlay (6);
Symbol 98 MovieClip Frame 56
mc_sub.mc_propBubbles._visible = 0;
_parent.myPlayStatus = "dead";
play();
Symbol 98 MovieClip Frame 80
_parent.fn_resetChar();
stop();
Symbol 98 MovieClip Frame 81
if (mc_sub.mc_propBubbles._visible == 0) {
mc_sub.mc_propBubbles._visible = 1;
}
stop();
Symbol 98 MovieClip Frame 85
stop();
Symbol 98 MovieClip Frame 86
play();
Symbol 98 MovieClip Frame 135
gotoAndPlay (86);
Symbol 98 MovieClip Frame 136
mc_sub.mc_propBubbles._visible = 0;
_parent.myPlayStatus = "dead";
play();
Symbol 98 MovieClip Frame 160
_parent.fn_resetChar();
stop();
Symbol 105 MovieClip Frame 1
if (mc_sub.mc_propBubbles._visible == 0) {
mc_sub.mc_propBubbles._visible = 1;
}
stop();
Symbol 105 MovieClip Frame 5
stop();
Symbol 105 MovieClip Frame 6
play();
Symbol 105 MovieClip Frame 55
gotoAndPlay (6);
Symbol 105 MovieClip Frame 56
mc_sub.mc_propBubbles._visible = 0;
_parent.myPlayStatus = "dead";
play();
Symbol 105 MovieClip Frame 80
_parent.fn_resetChar();
stop();
Symbol 105 MovieClip Frame 81
if (mc_sub.mc_propBubbles._visible == 0) {
mc_sub.mc_propBubbles._visible = 1;
}
stop();
Symbol 105 MovieClip Frame 85
stop();
Symbol 105 MovieClip Frame 86
play();
Symbol 105 MovieClip Frame 135
gotoAndPlay (86);
Symbol 105 MovieClip Frame 136
mc_sub.mc_propBubbles._visible = 0;
_parent.myPlayStatus = "dead";
play();
Symbol 105 MovieClip Frame 160
_parent.fn_resetChar();
stop();
Symbol 106 MovieClip Frame 1
stop();
Symbol 106 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 1
myStatus = "inactive";
stop();
Symbol 108 MovieClip Frame 2
stop();
Symbol 108 MovieClip Frame 5
myStatus = "active";
stop();
Instance of Symbol 18 MovieClip "mc_text" in Symbol 108 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 300;
mc_textField._height = 200;
_x = ((-mc_textField._width) / 2);
this._alpha = 100;
if (_root.lang != "en") {
myText = (("<p align='center'><font color='#990000' size='24'><b>" + _root.textBonus) + (_parent.myAmount * 50)) + "</b></font></p>";
} else {
myText = (("<p align='center'><font color='#990000' size='24'>" + _root.textBonus) + (_parent.myAmount * 50)) + "</font></p>";
}
}
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2.5;
if (this._alpha <= 0) {
_parent.play();
}
}
Symbol 108 MovieClip Frame 6
gotoAndPlay (1);
Symbol 108 MovieClip Frame 8
myStatus = "active";
stop();
Instance of Symbol 18 MovieClip "mc_text" in Symbol 108 MovieClip Frame 8
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 300;
mc_textField._height = 200;
_x = ((-mc_textField._width) / 2);
this._alpha = 100;
if (_root.lang != "en") {
myText = (("<p align='center'><font color='#990000' size='24'><b>" + _root.textLoss) + _parent.myAmount) + "!</b></font></p>";
} else {
myText = (("<p align='center'><font color='#990000' size='24'>" + _root.textLoss) + _parent.myAmount) + "!</font></p>";
}
}
}
onClipEvent (enterFrame) {
this._alpha = this._alpha - 2.5;
if (this._alpha <= 0) {
_parent.play();
}
}
Symbol 108 MovieClip Frame 9
gotoAndPlay (1);
Symbol 109 MovieClip Frame 1
stop();
Symbol 109 MovieClip Frame 5
stop();
Symbol 109 MovieClip Frame 6
play();
Symbol 109 MovieClip Frame 55
gotoAndPlay (6);
Symbol 109 MovieClip Frame 56
_parent.myPlayStatus = "dead";
play();
Symbol 109 MovieClip Frame 80
_parent.fn_resetChar();
stop();
Symbol 109 MovieClip Frame 81
stop();
Symbol 109 MovieClip Frame 85
stop();
Symbol 109 MovieClip Frame 86
play();
Symbol 109 MovieClip Frame 135
gotoAndPlay (86);
Symbol 109 MovieClip Frame 136
_parent.myPlayStatus = "dead";
play();
Symbol 109 MovieClip Frame 160
_parent.fn_resetChar();
stop();
Symbol 110 MovieClip Frame 1
stop();
Symbol 110 MovieClip Frame 5
stop();
Symbol 110 MovieClip Frame 6
play();
Symbol 110 MovieClip Frame 55
gotoAndPlay (6);
Symbol 110 MovieClip Frame 56
_parent.myPlayStatus = "dead";
play();
Symbol 110 MovieClip Frame 80
_parent.fn_resetChar();
stop();
Symbol 110 MovieClip Frame 81
stop();
Symbol 110 MovieClip Frame 85
stop();
Symbol 110 MovieClip Frame 86
play();
Symbol 110 MovieClip Frame 135
gotoAndPlay (86);
Symbol 110 MovieClip Frame 136
_parent.myPlayStatus = "dead";
play();
Symbol 110 MovieClip Frame 160
_parent.fn_resetChar();
stop();
Symbol 111 MovieClip Frame 1
stop();
Symbol 111 MovieClip Frame 2
stop();
Symbol 112 MovieClip Frame 1
myStatus = "inactive";
stop();
Symbol 112 MovieClip Frame 2
stop();
Symbol 112 MovieClip Frame 5
myStatus = "active";
play();
Symbol 112 MovieClip Frame 20
gotoAndPlay (1);
Symbol 114 MovieClip Frame 1
play();
Instance of Symbol 18 MovieClip "mc_text" in Symbol 114 MovieClip Frame 1
onClipEvent (load) {
function fn_updatePlayerTime() {
myText = _root.playerTimeLeft;
}
fn_updatePlayerTime();
}
Symbol 114 MovieClip Frame 24
if (_root.playerStatus == "alive") {
_root.playerTimeLeft--;
if ((_root.playerTimeLeft <= -1) && (_root.playerStatus == "alive")) {
_root.playerTimeLeft = 0;
mc_text.fn_updatePlayerTime();
_root.playerStatus = "dead";
} else {
mc_text.fn_updatePlayerTime();
gotoAndPlay (1);
}
}
Symbol 114 MovieClip Frame 25
stop();
Instance of Symbol 54 MovieClip in Symbol 114 MovieClip Frame 25
//component parameters
onClipEvent (initialize) {
frameRate = 31;
pauseLimit = 1;
}
Symbol 114 MovieClip Frame 26
_root.gotoAndPlay("game_over");
stop();
Symbol 114 MovieClip Frame 27
stop();
Symbol 115 MovieClip Frame 1
stop();
Symbol 115 MovieClip Frame 2
stop();
Symbol 115 MovieClip Frame 5
play();
Instance of Symbol 18 MovieClip in Symbol 115 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 250;
mc_textField._height = 250;
_x = (-(_width / 2));
if (_root.lang != "en") {
myText = ("<b>" + _root.textGameOver1) + "</b>";
} else {
myText = _root.textGameOver1;
}
}
}
Instance of Symbol 18 MovieClip in Symbol 115 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 250;
mc_textField._height = 250;
_x = (-(_width / 2));
if (_root.lang != "en") {
myText = ((("<b>" + _root.textGameOver3) + "<font color='#FF7F7F'>") + _root.score.toString()) + "</font></b>";
} else {
myText = ((_root.textGameOver3 + "<font color='#FF7F7F'>") + _root.score.toString()) + "</font>";
}
}
}
Instance of Symbol 18 MovieClip in Symbol 115 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 250;
mc_textField._height = 250;
_x = (-(_width / 2));
if (_root.lang != "en") {
myText = ((("<b>" + _root.textGameOver4) + "<font color='#FF7F7F'>") + _root.hiScore.toString()) + "</font></b>";
} else {
myText = ((_root.textGameOver4 + "<font color='#FF7F7F'>") + _root.hiScore.toString()) + "</font>";
}
}
}
Instance of Symbol 18 MovieClip in Symbol 115 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 250;
mc_textField._height = 250;
_x = (-(_width / 2));
if (_root.lang != "en") {
myText = ("<b>" + _root.textGameOver2) + "</b>";
} else {
myText = _root.textGameOver2;
}
}
}
Instance of Symbol 18 MovieClip in Symbol 115 MovieClip Frame 5
onClipEvent (load) {
if (_root.lang != "en") {
this.gotoAndPlay(_root.lang);
}
}
onClipEvent (load) {
function fn_sizeMe() {
mc_textField._width = 250;
mc_textField._height = 200;
_x = (-(_width / 2));
if (_root.lang != "en") {
myText = ("<b>" + _root.textLink) + "</b>";
} else {
myText = _root.textLink;
}
}
}
Symbol 115 MovieClip Frame 19
stop();
Instance of Symbol 45 MovieClip "mc_but2" in Symbol 115 MovieClip Frame 19
onClipEvent (load) {
function fn_myClickAction() {
_parent.gotoAndPlay("restart");
}
}
Symbol 115 MovieClip Frame 20
stop();
Symbol 115 MovieClip Frame 24
play();
Symbol 115 MovieClip Frame 34
_root.fn_resetVariables();
Symbol 115 MovieClip Frame 44
_root.gotoAndPlay("game_on");
stop();