Frame 1
stop();
preloader._width = 0;
preloader._visible = (preloader_bg._visible = true);
preloader.onEnterFrame = function () {
filesize_total = _root.getBytesTotal();
if (filesize_total == 0) {
filesize_total = 1;
}
percent = Math.round((_root.getBytesLoaded() / filesize_total) * 100);
txt = percent + "%";
preloader._width = percent * 5;
if (percent == 100) {
txt = "";
preloader._visible = (preloader_bg._visible = false);
delete this.onEnterFrame;
gotoAndPlay (5);
}
};
Frame 9
function CGame(a_root) {
var _local3 = this;
_local3.ROOT = a_root;
_local3.PRICES_DEPTH = 1500;
_local3.UI_DEPTH = 1000;
_local3.MESSAGE_DEPTH = 999;
_local3.MESSAGEPOPUP_DEPTH = 1001;
_local3.KEYBOARD_DEPTH = 998;
_local3.FISH_DEPTH = 100;
_local3.FISH_MOVE_CONTROL_DEPTH = 997;
_local3.CREEL_DEPTH = 996;
_local3.FIELD_WIDTH = 640;
_local3.FIELD_HEIGHT = 480;
_local3.FISH_LEFT_BOUND = -75;
_local3.FISH_RIGHT_BOUND = 720;
_local3.FISH_TOP_BOUND = 230;
_local3.FISH_BOTTOM_BOUND = 370;
_local3.LEVEL_UNDER_WATER = 130;
_local3.FISH_SPEED_X = 50;
_local3.FISH_SPEED_Y = 1;
_local3.CREEL_RADIUS = 100;
_local3.ROUNDS = 11;
_local3.bln_creelProceed = false;
_local3.bln_pause_game = true;
_local3.num_curr_round = 0;
_local3.reelupFish = new Array();
_local3.currentRU = 3;
_root.Game.blnJunkOn = false;
}
function CPlayer() {
this.score = 0;
}
function CBoat() {
var _local2 = this;
_local2.SPEED_WITH_ENGINE = 3;
_local2.SPEED_WITH_OAR = 3;
_local2.LEFT_BOUND = 40;
_local2.RIGHT_BOUND = 470;
_local2.HOOK_ORIGIN_POSITION = 120;
_local2.HOOK_BOTTOM_POSITION = 400;
_local2.line_delta_x;
_local2.line_delta_y;
_local2.bln_motor_run = false;
_local2.bln_oar_run = false;
_local2.gasoline_capacity = (_local2.SPEED_WITH_ENGINE * 2) * 5;
_local2.gasoline = _local2.gasoline_capacity;
_local2.hook_speed = 3;
_local2.line_level = 1;
}
function openCantBuyWindow() {
this.attachMovie("id_wndCantBuy", "wndCantBuy", Game.MESSAGEPOPUP_DEPTH);
centerWindow(wndCantBuy);
}
function openNothingBuyWindow() {
this.attachMovie("id_wndNothingBuy", "wndNothingBuy", Game.MESSAGEPOPUP_DEPTH);
centerWindow(wndNothingBuy);
}
function onBtnWndAreYouShureYes_click() {
fscommand ("quit");
}
function onBtnOk_click(sender) {
sender.removeMovieClip();
}
function onBtnMenuPlay_click() {
gotoAndPlay ("play");
}
function onBtnMenuHelp_click() {
this.attachMovie("id_wndHelp", "wndHelp", Game.MESSAGE_DEPTH);
centerWindow(wndHelp);
}
function onBtnMenuScores_click() {
this.attachMovie("id_wndScores", "wndScores", Game.MESSAGE_DEPTH);
centerWindow(wndScores);
}
function onBtnMenuQuit_click() {
this.attachMovie("id_wndAreYouShure", "wndAreYouShure", Game.MESSAGE_DEPTH);
centerWindow(wndAreYouShure);
}
function openRoundWindow() {
this.attachMovie("id_wndRound", "wndRound", Game.MESSAGE_DEPTH);
centerWindow(wndRound);
wndRound.gotoAndPlay(Game.num_curr_round + 1);
idt_RoundWindow = setInterval(Game, "preinitRound", 6000);
}
function closeRoundWindow() {
clearInterval(idt_RoundWindow);
wndRound.removeMovieClip();
}
function openRoundCompleteWindow() {
timer.stopTimer();
clock.pendulum.stop();
_root.timer.startTimeBonus();
this.attachMovie("id_wndRoundComplete", "wndRoundComplete", Game.MESSAGE_DEPTH);
centerWindow(wndRoundComplete);
endRoundSound.start();
idt_RoundCompleteWindow = setInterval(openShopWindow, 9000);
}
function closeRoundCompleteWindow() {
clearInterval(idt_RoundCompleteWindow);
wndRoundComplete.removeMovieClip();
}
function openShopWindow() {
closeRoundCompleteWindow();
clearInterval(idt_RoundCompleteWindow);
_root.attachMovie("id_wndShop", "wndShop", Game.MESSAGE_DEPTH);
centerWindow(wndShop);
}
function onBtnShopBuy_click(a_spend_money, a_gasoline_select, a_line_select, a_RUToBuy, a_ESToBuy) {
if (a_spend_money > Player.score) {
openCantBuyWindow();
return(undefined);
}
Player.score = Player.score - a_spend_money;
Boat.gasoline = a_gasoline_select;
Boat.hook_speed = a_RUToBuy;
Boat.SPEED_WITH_ENGINE = a_ESToBuy / 2;
Boat.gasoline_capacity = (Boat.SPEED_WITH_ENGINE * 2) * 5;
Boat.spendGasoline(0);
_root.Game.currentRU = a_RUToBuy;
switch (a_line_select) {
case 1 :
Boat.line_level = 2;
Boat.bln_enable_hook_stop = false;
Boat.bln_enable_hook_up = false;
break;
case 2 :
Boat.line_level = 3;
Boat.bln_enable_hook_stop = true;
Boat.bln_enable_hook_up = false;
break;
case 3 :
Boat.line_level = 4;
Boat.bln_enable_hook_stop = false;
Boat.bln_enable_hook_up = true;
}
Game.beginNextRound();
}
function onBtnShopCancel_click() {
wndShop.removeMovieClip();
Game.beginNextRound();
}
function openGameOverWindow() {
Game.bln_pause_game = true;
timer.stopTimer();
this.attachMovie("id_wndGameOver", "wndGameOver", Game.MESSAGE_DEPTH);
centerWindow(wndGameOver);
if ((Game.arrMovedFish.length == 0) && (_root.Game.reelupFish.length < 1)) {
wndGameOver.gotoAndStop(2);
} else {
wndGameOver.gotoAndStop(1);
_root.gameOverSound.start();
}
musicLoopSound.stop();
idt_GameOverWindow = setInterval(Game, "afterGameOver", 5000);
}
function closeGameOverWindow() {
clearInterval(idt_GameOverWindow);
wndGameOver.removeMovieClip();
}
function centerWindow(a_wnd) {
a_wnd._x = 320;
a_wnd._y = 240;
}
stop();
CGame.prototype.beginNextRound = function () {
var _local3 = this;
_local3.reelupFish = new Array();
_local3.num_curr_round++;
closeRoundCompleteWindow();
openRoundWindow();
_root.Game.blnJunkOn = false;
_local3.arrMovedFish = new Array();
_local3.arrMovedJunk = new Array();
_local3.arrFishPriceTable = new Array({t:1, p:100}, {t:2, p:200}, {t:3, p:300}, {t:4, p:400}, {t:5, p:500});
Player.displayScore();
Boat.init();
};
CGame.prototype.preinitRound = function () {
var _local2 = this;
closeRoundWindow();
_local2.bln_pause_game = false;
_local2.distributeFishes();
_local2.showPrices();
_local2.KeyboardOn();
_local2.startMoveFishes();
timer.startTimer();
clock.pendulum.play();
};
CGame.prototype.KeyboardOn = function () {
var _local3 = this;
_local3.ROOT.createEmptyMovieClip("Keyboard", _local3.KEYBOARD_DEPTH);
_local3.ROOT.Keyboard.onEnterFrame = function () {
if (!Game.bln_pause_game) {
if (mc_hook._y <= Boat.HOOK_ORIGIN_POSITION) {
Boat.bln_stop_stop = false;
}
if (((((!Key.isDown(40)) && (mc_hook._y > Boat.HOOK_ORIGIN_POSITION)) && (!Boat.bln_move_hook_up)) && (!Boat.bln_enable_hook_up)) && ((!Boat.bln_enable_hook_stop) || (Boat.bln_stop_stop))) {
Boat.moveHookUpProcess();
} else if (((_root.Game.reelupFish.length <= 0) && (!Boat.bln_stop_stop)) && (!Boat.bln_move_hook_up)) {
Boat.stopFishing();
}
if (Key.isDown(38) && (Boat.bln_enable_hook_up)) {
Boat.moveHookUp();
}
if (Key.isDown(38) && (Boat.bln_enable_hook_stop)) {
Boat.bln_stop_stop = true;
}
if (Key.isDown(40)) {
if (Game.reelupFish.length < 1) {
Boat.moveHookDown();
}
}
if (Key.isDown(37)) {
Boat.move(-1);
}
if (Key.isDown(39)) {
Boat.move(1);
}
if ((!Key.isDown(39)) && (!Key.isDown(37))) {
Boat.stopRow();
Boat.stopEngine();
}
}
};
};
CGame.prototype.KeyboardOff = function () {
this.ROOT.Keyboard.removeMovieClip();
};
CGame.prototype.addSchool = function (a_fish_type, a_fish_number, a_fish_price, a_min_speed, a_max_speed) {
var _local3 = this;
var _local4;
var _local2;
_local4 = 0;
while (_local4 < a_fish_number) {
_local2 = _local3.ROOT.attachMovie("id_fish" + a_fish_type, "fish" + _local3.arrMovedFish.length, _local3.FISH_DEPTH + _local3.arrMovedFish.length);
_local2.t = a_fish_type;
_local2.mins = a_min_speed;
_local2.maxs = a_max_speed;
_local2._x = -200;
_local3.arrMovedFish.push(_local2);
_local4++;
}
};
CGame.prototype.addJunk = function (a_fish_type, a_fish_number, a_fish_price, a_min_speed, a_max_speed) {
var _local5 = this;
var _local4;
var _local3;
_local4 = 0;
while (_local4 < a_fish_number) {
_root.Game.blnJunkOn = false;
_local3 = _local5.ROOT.attachMovie("id_junk", "junk" + _local4, (_local5.FISH_DEPTH + _local5.arrMovedFish.length) + _local4);
_local3.t = a_fish_type;
_local3.mins = a_min_speed;
_local3.maxs = a_max_speed;
_local3._x = -200;
_local5.arrMovedJunk.push(_local3);
_local4++;
}
};
CGame.prototype.showPrices = function () {
var _local3 = this;
var _local2;
_local2 = 0;
while (_local2 < _local3.arrFishPriceTable.length) {
_local2++;
}
};
CGame.prototype.clearPrices = function () {
};
CGame.prototype.distributeFishes = function () {
var _local3 = this;
var _local5;
var _local4;
_local5 = 0;
while (_local5 < _local3.arrMovedFish.length) {
_local4 = ((random(2) > 0) ? 1 : -1);
var _local2 = _local3.arrMovedFish[_local5];
if (_local4 > 0) {
_local2.gotoAndStop("right");
} else {
_local2.gotoAndStop("left");
}
_local2._x = _local3.FISH_LEFT_BOUND + random(_local3.FISH_RIGHT_BOUND - _local3.FISH_LEFT_BOUND);
_local2._y = _local3.FISH_TOP_BOUND + random(_local3.FISH_BOTTOM_BOUND - _local3.FISH_TOP_BOUND);
_local2.delta_x = (_local4 * (random(_local2.maxs) + _local2.mins)) / 5;
_local4 = ((random(2) > 0) ? 1 : -1);
_local2.delta_y = (_local4 * (random(_local3.FISH_SPEED_Y) + 1)) / 5;
_local5++;
}
_local5 = 0;
while (_local5 < _local3.arrMovedJunk.length) {
_local4 = ((random(2) > 0) ? 1 : -1);
var _local2 = _local3.arrMovedJunk[_local5];
if (_local4 > 0) {
_local2.gotoAndStop("right");
} else {
_local2.gotoAndStop("left");
}
_local2._x = _local3.FISH_LEFT_BOUND + random(_local3.FISH_RIGHT_BOUND - _local3.FISH_LEFT_BOUND);
_local2._y = _local3.FISH_TOP_BOUND + random(_local3.FISH_BOTTOM_BOUND - _local3.FISH_TOP_BOUND);
_local2.delta_x = (_local4 * (random(_local2.maxs) + _local2.mins)) / 5;
_local4 = ((random(2) > 0) ? 1 : -1);
_local2.delta_y = (_local4 * (random(_local3.FISH_SPEED_Y) + 1)) / 5;
_local5++;
}
};
CGame.prototype.startMoveFishes = function () {
this.ROOT.createEmptyMovieClip("FishMoveControl", this.FISH_MOVE_CONTROL_DEPTH);
this.ROOT.FishMoveControl.onEnterFrame = function () {
if (!Game.bln_pause_game) {
var _local4;
var _local2;
var _local5;
var _local3;
_local4 = Game.arrMovedFish.length - 1;
while (_local4 >= 0) {
_local2 = Game.arrMovedFish[_local4];
_local2._x = _local2._x + _local2.delta_x;
_local2._y = _local2._y + _local2.delta_y;
if (_local2._x > Game.FISH_RIGHT_BOUND) {
_local2.gotoAndStop("left");
_local2.delta_x = -_local2.delta_x;
}
if (_local2._x < Game.FISH_LEFT_BOUND) {
_local2.gotoAndStop("right");
_local2.delta_x = -_local2.delta_x;
}
if ((_local2._y < Game.FISH_TOP_BOUND) || (_local2._y > Game.FISH_BOTTOM_BOUND)) {
_local2.delta_y = -_local2.delta_y;
}
_local5 = _local2._x - mc_hook._x;
_local3 = _local2._y - mc_hook._y;
if ((_root.Game.blnJunkOn == false) && (((_local5 * _local5) + (_local3 * _local3)) <= Game.CREEL_RADIUS)) {
Game.creelProcess(_local2);
Game.arrMovedFish.splice(_local4, 1);
}
_local4--;
}
_local4 = Game.arrMovedJunk.length - 1;
while (_local4 >= 0) {
_local2 = Game.arrMovedJunk[_local4];
_local2._x = _local2._x + _local2.delta_x;
_local2._y = _local2._y + _local2.delta_y;
if (_local2._x > Game.FISH_RIGHT_BOUND) {
_local2.gotoAndStop("left");
_local2.delta_x = -_local2.delta_x;
}
if (_local2._x < Game.FISH_LEFT_BOUND) {
_local2.gotoAndStop("right");
_local2.delta_x = -_local2.delta_x;
}
if ((_local2._y < Game.FISH_TOP_BOUND) || (_local2._y > Game.FISH_BOTTOM_BOUND)) {
_local2.delta_y = -_local2.delta_y;
}
_local5 = _local2._x - mc_hook._x;
_local3 = _local2._y - mc_hook._y;
if ((_root.Game.blnJunkOn == false) && (((_local5 * _local5) + (_local3 * _local3)) <= (Game.CREEL_RADIUS + 300))) {
_root.Game.blnJunkOn = true;
Game.creelProcess(_local2);
Game.arrMovedJunk.splice(_local4, 1);
}
_local4--;
}
}
};
};
CGame.prototype.creelProcess = function (a_fish) {
Game.reelupFish.push(a_fish);
creeledFishLength = Game.reelupFish.length;
if ((_root.Game.blnJunkOn == false) && (creeledFishLength > 1)) {
_root.bonusMsgMov._x = a_fish._x;
_root.bonusMsgMov._y = a_fish._y;
_root.bonusMsg = creeledFishLength + "X";
_root.bonusMsgMov.gotoAndPlay(2);
if (creeledFishLength < 5) {
eval (("_root.bonus" + creeledFishLength) + "Sound").start();
} else {
_root.bonus4Sound.start();
}
} else if (_root.Game.blnJunkOn == false) {
_root.caughtFishSound.start();
} else {
_root.caughtJunkSound.start();
}
Game.bln_creelProceed = true;
Boat.moveHookUpProcess();
mc_boat.mcMan1.gotoAndStop(2);
mc_boat.mcMan1.line_in_hand.gotoAndStop(Boat.line_level);
Boat.changeLinePosition(1);
Boat.placeLine();
if (a_fish.delta_x > 0) {
a_fish.gotoAndStop("topLeft");
} else {
a_fish.gotoAndStop("topRight");
}
this.ROOT.createEmptyMovieClip("CreelProcess", this.CREEL_DEPTH);
this.ROOT.CreelProcess.onEnterFrame = function () {
var _local2 = _root;
if (!Game.bln_pause_game) {
if (_local2.blnReelingIn == false) {
_local2.reelInFishSound.start(0, 99);
_local2.blnReelingIn = true;
}
count = 0;
while (count < _local2.Game.reelupFish.length) {
if (_local2.Game.reelupFish[count]._y > Game.LEVEL_UNDER_WATER) {
_local2.Game.reelupFish[count]._x = mc_hook._x;
_local2.Game.reelupFish[count]._y = mc_hook._y;
if ((_local2.Game.reelupFish[count]._y < 220) && (!_local2.fishOutOfWaterSoundPlaying)) {
_local2.fishOutOfWaterSound.start();
_local2.fishOutOfWaterSoundPlaying = true;
}
} else {
_local2.fishOutOfWaterSoundPlaying = false;
if (Game.bln_creelProceed) {
var _local4 = _local2.Game.reelupFish.length;
counta = 0;
while (counta < _local4) {
var _local5 = _local2.Game.reelupFish[counta];
_local5.gotoAndPlay("toBoat");
var _local3 = _local5.t;
if (_local3 < 6) {
_local3 = _local3 - 1;
thepoints = _local4 * _local2.Game.arrFishPriceTable[_local3].p;
trace("leng" + _local4);
trace("theCreeledFish.t-1 " + _local3);
trace("Table " + _local2.Game.arrFishPriceTable);
trace("whole " + _local2.Game.arrFishPriceTable[0].p);
trace(thepoints);
if (!_local2.Game.blnJunkOn) {
Player.addScore(thepoints);
}
_local2.addToLog(((("FishCaught: " + _local4) + " currentScore:") + Player.score) + newline);
} else if (_local2.Player.score >= 100) {
Player.addScore(-100);
} else {
_local2.Player.score = 0;
_local2.Player.displayScore();
}
Game.bln_creelProceed = false;
mc_boat.mcMan1.gotoAndStop(1);
mc_boat.mcMan1.line_in_hand.gotoAndStop(Boat.line_level);
Boat.changeLinePosition(0);
counta++;
}
return(undefined);
}
}
count++;
}
}
};
};
CGame.prototype.completeCreel = function () {
var _local3 = _root;
var _local5 = this;
var _local4 = _local3.Game.reelupFish.length;
countb = 0;
while (countb < _local4) {
theCreeledFish = _local3.Game.reelupFish[countb];
if (theCreeledFish.t < 6) {
thepoints = _local4 * _local5.arrFishPriceTable[theCreeledFish.t - 1].p;
trace("sect2 " + thepoints);
} else {
_local3.Player.displayScore();
}
theCreeledFish.removeMovieClip();
countb++;
}
_local3.Game.reelupFish = new Array();
CreelProcess.removeMovieClip();
mc_boat.mcMan1.gotoAndStop(1);
mc_boat.mcMan1.line_in_hand.gotoAndStop(Boat.line_level);
Boat.changeLinePosition(0);
Boat.placeLine();
_local3.Game.blnJunkOn = false;
if (_local5.arrMovedFish.length == 0) {
_local5.bln_pause_game = true;
_local5.roundComplete();
}
};
CGame.prototype.roundComplete = function () {
var _local3 = this;
i = 0;
while (i < _local3.arrMovedJunk.length) {
_local3.arrMovedJunk[i].removeMovieClip();
i++;
}
_root.Game.arrMovedJunk = new Array();
Boat.stopFishing();
Boat.stopEngine();
Boat.stopRow();
_local3.clearPrices();
if (_local3.num_curr_round >= _local3.ROUNDS) {
_local3.gameOver();
return(undefined);
}
_root.addToLog(((("finishedRound: " + num_curr_round) + " currentScore:") + Player.score) + newline);
openRoundCompleteWindow();
};
CGame.prototype.gameOver = function () {
CreelProcess.removeMovieClip();
mc_boat.mcHookUpProcess.removeMovieClip();
Boat.stopFishing();
Boat.stopEngine();
Boat.stopRow();
openGameOverWindow();
this.clearPrices();
};
CGame.prototype.afterGameOver = function () {
var _local4 = this;
var _local5 = _root;
var _local3;
creeledFish.removeMovieClip();
closeGameOverWindow();
_local3 = 0;
while (_local3 < _local4.arrMovedFish.length) {
_local4.arrMovedFish[_local3].removeMovieClip();
_local3++;
}
var _local6 = _local5.Game.reelupFish.length;
countb = 0;
while (countb < _local6) {
theCreeledFish = _local5.Game.reelupFish[countb];
theCreeledFish.removeMovieClip();
countb++;
}
_local5.Game.reelupFish = new Array();
_local3 = 0;
while (_local3 < _local4.arrMovedJunk.length) {
_local4.arrMovedJunk[_local3].removeMovieClip();
_local3++;
}
_local5.Game.arrMovedJunk = new Array();
CreelProcess.removeMovieClip();
_local5.splunge = _local5.Player.score;
gotoAndStop ("gameOverFrame2");
};
CGame.prototype.decreasePrices = function () {
};
CPlayer.prototype.addScore = function (a_score) {
this.score = this.score + a_score;
this.displayScore();
};
CPlayer.prototype.displayScore = function () {
var _local2 = this;
var _local3 = "00000";
_local3 = _local3.substr(0, 5 - String(_local2.score).length) + _local2.score;
txtScoreFront = "$" + _local2.score;
txtScoreBack = "$" + _local2.score;
};
CBoat.prototype.init = function () {
var _local2 = this;
_local2.stopEngine();
_local2.stopRow();
_local2.changeLinePosition(0);
_local2.placeHook();
_local2.placeLine();
_local2.stopFishing();
mc_boat.mcMan1.line_in_hand.gotoAndStop(_local2.line_level);
};
CBoat.prototype.startRow = function () {
mc_boat.mcMan2.play();
this.bln_row_started = true;
gasoline_indicator.gasText.text = 0;
};
CBoat.prototype.stopRow = function () {
mc_boat.mcMan2.gotoAndStop(1);
this.bln_row_started = false;
};
CBoat.prototype.startFishing = function () {
mc_boat.mcMan1.stop();
mc_boat.mcMan1.mc_fm1_hand_left.play();
_root.reelInFishSound.start(0, 99);
_root.blnReelingIn = true;
this.bln_fishing_started = true;
};
CBoat.prototype.stopFishing = function () {
mc_boat.mcMan1.stop();
mc_boat.mcMan1.mc_fm1_hand_left.stop();
_root.reelInFishSound.stop();
_root.blnReelingIn = false;
this.bln_fishing_started = false;
};
CBoat.prototype.move = function (a_delta) {
var _local2 = this;
var _local3 = mc_boat._x;
_local2.spendGasoline(0.02 * _local2.SPEED_WITH_ENGINE);
if (_local2.gasoline > 0) {
_local2.speed = _local2.SPEED_WITH_ENGINE;
} else {
_local2.speed = _local2.SPEED_WITH_OAR;
}
_local3 = _local3 + (a_delta * _local2.speed);
if ((_local3 > _local2.LEFT_BOUND) && (_local3 < _local2.RIGHT_BOUND)) {
mc_boat._x = _local3;
if (_local2.gasoline > 0) {
if (!_local2.bln_engine_started) {
_local2.startEngine();
}
} else {
if (!_local2.bln_row_started) {
_local2.startRow();
}
if (_local2.bln_engine_started) {
_local2.stopEngine();
}
}
_local2.placeLine();
}
};
CBoat.prototype.spendGasoline = function (a_spend_gasoline) {
var _local2 = this;
if (_local2.gasoline > 0) {
_local2.gasoline = _local2.gasoline - a_spend_gasoline;
if (_local2.gasoline < 0) {
_local2.gasoline = 0;
}
gasoline_indicator.bar._x = 7 - (159 - ((159 * _local2.gasoline) / _local2.gasoline_capacity));
gasoline_indicator.gasText.text = Math.floor(_local2.gasoline);
return(undefined);
}
_local2.gasoline = 0;
};
CBoat.prototype.startEngine = function () {
_root.moterOnSound.start(0, 999);
mc_boat.mc_boat_body.mc_engine.gotoAndPlay(1);
mc_boat.mc_boat_body.mcRun.gotoAndPlay(2);
this.bln_engine_started = true;
};
CBoat.prototype.stopEngine = function () {
_root.moterOnSound.stop();
mc_boat.mc_boat_body.mc_engine.gotoAndStop(2);
mc_boat.mc_boat_body.mcRun.gotoAndStop(1);
this.bln_engine_started = false;
gasoline_indicator.gasText.text = Math.floor(this.gasoline);
};
CBoat.prototype.placeLine = function () {
mc_line._x = mc_boat._x + this.line_delta_x;
mc_line._y = mc_boat._y - this.line_delta_y;
mc_hook._x = mc_line._x;
mc_line._height = mc_hook._y - mc_line._y;
};
CBoat.prototype.changeLinePosition = function (a_switcher) {
var _local2 = this;
switch (a_switcher) {
case 0 :
_local2.line_delta_x = 144;
_local2.line_delta_y = 47;
return(undefined);
case 1 :
_local2.line_delta_x = 116;
_local2.line_delta_y = 67;
return(undefined);
}
};
CBoat.prototype.placeHook = function () {
mc_hook._x = mc_boat._x + 144;
mc_hook._y = this.HOOK_ORIGIN_POSITION;
this.bln_move_hook_up = false;
};
CBoat.prototype.moveHookDown = function () {
var _local2 = this;
if (!_local2.bln_fishing_started) {
_local2.startFishing();
}
if (!_local2.bln_move_hook_up) {
if (!Game.bln_pause_game) {
mc_hook._y = mc_hook._y + _local2.hook_speed;
_local2.placeLine();
if (mc_hook._y > _local2.HOOK_BOTTOM_POSITION) {
_local2.moveHookUpProcess();
}
}
}
};
CBoat.prototype.moveHookUp = function () {
var _local2 = this;
if (!_local2.bln_fishing_started) {
_local2.startFishing();
}
if ((!_local2.bln_move_hook_up) && (mc_hook._y >= _local2.HOOK_ORIGIN_POSITION)) {
if (!Game.bln_pause_game) {
mc_hook._y = mc_hook._y - _local2.hook_speed;
_local2.placeLine();
}
}
};
CBoat.prototype.moveHookUpProcess = function () {
this.bln_move_hook_up = true;
mc_boat.createEmptyMovieClip("mcHookUpProcess", 100);
this.startFishing();
mc_boat.mcHookUpProcess.onEnterFrame = function () {
if (!Game.bln_pause_game) {
if (mc_hook._y > Boat.HOOK_ORIGIN_POSITION) {
mc_hook._y = mc_hook._y - 5;
Boat.placeLine();
} else {
Boat.stopFishing();
mc_hook._y = Boat.HOOK_ORIGIN_POSITION;
Boat.bln_move_hook_up = false;
Boat.placeLine();
mc_boat.mcHookUpProcess.removeMovieClip();
}
}
};
};
i = 0;
while (i < 25) {
this["fish" + i].removeMovieClip();
i++;
}
this.attachMovie("id_panel", "panel", 1000);
panel._x = 320;
panel._y = 240;
gotoAndPlay ("intro");
Frame 16
stop();
Frame 22
stop();
btn3.onPress = function () {
getURL ("http://www.jeux-de-ben10.com", "_blank");
};
Frame 28
function g_fSetGameSize(a_numWidth, a_numHeight) {
g_numGameWidth = a_numWidth;
g_numGameHeight = a_numHeight;
}
function playAgain() {
Game.ROOT.gotoAndStop("intro");
trace("tryplayagain");
}
_quality = "BEST";
stop();
btn3.onPress = function () {
getURL ("http://www.jeux-de-ben10.com", "_blank");
};
timer.numTaskInterval = 10;
timer.timesRunOut = function () {
clock.pendulum.stop();
Game.gameOver();
};
timer.doTask = function () {
Game.decreasePrices();
};
var Player = new CPlayer();
var Boat = new CBoat();
var Game = new CGame(this);
Game.beginNextRound();
g_fSetGameSize(640, 480);
endContainer.playAgain = function () {
Game.ROOT.gotoAndStop("intro");
trace("tryplayagain");
};
Frame 35
stop();
bonusMsgMov.removeMovieClip();
endContainer.g_numScore = splunge;
g_numScore = splunge;
if ((crypto == 2) || (crypto == 0)) {
postGameLog();
_root.xmlGameEnd.load((gameEndSubmitUrl + "?params=") + TEAEncrypt((((("freePlayID=" + freeplayid) + "&score=") + endContainer.g_numScore) + "&timeStamp=") + timeStamp, tKey));
} else {
_root.t_fLoadGameEnd();
}
Symbol 38 MovieClip Frame 30
stop();
Symbol 96 Button
on (release, releaseOutside) {
_parent.onBtnWndAreYouShureYes_click();
}
Symbol 98 Button
on (release, releaseOutside) {
_parent.onBtnOk_click(this);
}
Symbol 105 Button
on (release, releaseOutside) {
_root.Game.bln_pause_game = false;
_root.timer.startTimer();
_parent.onBtnOk_click(this);
_root.clickSound.start();
}
Symbol 121 Button
on (release) {
play();
_root.clickSound.start();
}
Symbol 131 MovieClip [id_wndHelp] Frame 1
_quality = "BEST";
stop();
Symbol 131 MovieClip [id_wndHelp] Frame 2
stop();
Symbol 134 Button
on (release, releaseOutside) {
_parent.onBtnOk_click(this);
}
Symbol 145 MovieClip [id_fish1] Frame 1
stop();
Symbol 145 MovieClip [id_fish1] Frame 5
stop();
Symbol 145 MovieClip [id_fish1] Frame 10
stop();
Symbol 145 MovieClip [id_fish1] Frame 15
stop();
Symbol 145 MovieClip [id_fish1] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 155 MovieClip [id_fish2] Frame 1
stop();
Symbol 155 MovieClip [id_fish2] Frame 5
stop();
Symbol 155 MovieClip [id_fish2] Frame 10
stop();
Symbol 155 MovieClip [id_fish2] Frame 15
stop();
Symbol 155 MovieClip [id_fish2] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 160 MovieClip [id_fish3] Frame 1
stop();
Symbol 160 MovieClip [id_fish3] Frame 5
stop();
Symbol 160 MovieClip [id_fish3] Frame 10
stop();
Symbol 160 MovieClip [id_fish3] Frame 15
stop();
Symbol 160 MovieClip [id_fish3] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 174 MovieClip [id_fish4] Frame 1
stop();
Symbol 174 MovieClip [id_fish4] Frame 5
stop();
Symbol 174 MovieClip [id_fish4] Frame 10
stop();
Symbol 174 MovieClip [id_fish4] Frame 15
stop();
Symbol 174 MovieClip [id_fish4] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 181 MovieClip [id_fish5] Frame 1
stop();
Symbol 181 MovieClip [id_fish5] Frame 5
stop();
Symbol 181 MovieClip [id_fish5] Frame 10
stop();
Symbol 181 MovieClip [id_fish5] Frame 15
stop();
Symbol 181 MovieClip [id_fish5] Frame 31
stop();
_parent.Game.completeCreel();
Symbol 189 MovieClip [id_wndRound] Frame 2
stop();
fish1.fish.stop();
_parent.Game.addSchool(1, 4, 100, 5, 4);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 189 MovieClip [id_wndRound] Frame 3
stop();
fish1.fish.stop();
fish2.fish.stop();
_parent.Game.addSchool(1, 4, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(80);
Symbol 189 MovieClip [id_wndRound] Frame 4
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
_parent.Game.addSchool(1, 4, 100, 5, 5);
_parent.Game.addSchool(2, 4, 200, 15, 10);
_parent.Game.addSchool(3, 2, 300, 30, 20);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 189 MovieClip [id_wndRound] Frame 5
stop();
fish1.fish.stop();
fish2.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 6, 100, 10, 5);
_parent.Game.addSchool(2, 5, 200, 20, 10);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(120);
Symbol 189 MovieClip [id_wndRound] Frame 6
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
_parent.Game.addSchool(1, 4, 100, 10, 5);
_parent.Game.addSchool(2, 3, 200, 20, 10);
_parent.Game.addSchool(3, 3, 300, 30, 20);
_parent.Game.addSchool(4, 2, 400, 40, 20);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 189 MovieClip [id_wndRound] Frame 7
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 6, 100, 10, 5);
_parent.Game.addSchool(2, 1, 200, 20, 10);
_parent.Game.addSchool(3, 1, 300, 30, 20);
_parent.Game.addSchool(4, 6, 400, 40, 20);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(120);
Symbol 189 MovieClip [id_wndRound] Frame 8
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
_parent.Game.addSchool(1, 4, 100, 20, 10);
_parent.Game.addSchool(2, 3, 200, 20, 15);
_parent.Game.addSchool(3, 3, 300, 30, 20);
_parent.Game.addSchool(4, 2, 400, 40, 20);
_parent.Game.addSchool(5, 2, 600, 5, 5);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(120);
Symbol 189 MovieClip [id_wndRound] Frame 9
stop();
fish1.fish.stop();
fish3.fish.stop();
fish5.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 6, 100, 20, 15);
_parent.Game.addSchool(3, 5, 300, 40, 30);
_parent.Game.addSchool(5, 6, 600, 5, 5);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 189 MovieClip [id_wndRound] Frame 10
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 5, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.Game.addSchool(3, 4, 300, 30, 20);
_parent.Game.addSchool(5, 2, 600, 10, 5);
_parent.Game.addJunk(6, 5, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(90);
Symbol 189 MovieClip [id_wndRound] Frame 11
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
junk.stop();
_parent.Game.addSchool(1, 5, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.Game.addSchool(3, 4, 300, 30, 20);
_parent.Game.addSchool(4, 3, 400, 40, 20);
_parent.Game.addSchool(5, 2, 600, 10, 5);
_parent.Game.addJunk(6, 2, 100, 2, 1);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(60);
Symbol 189 MovieClip [id_wndRound] Frame 12
stop();
fish1.fish.stop();
fish2.fish.stop();
fish3.fish.stop();
fish4.fish.stop();
fish5.fish.stop();
_parent.Game.addSchool(1, 4, 100, 10, 5);
_parent.Game.addSchool(2, 4, 200, 20, 10);
_parent.Game.addSchool(3, 4, 300, 30, 20);
_parent.Game.addSchool(4, 3, 400, 40, 20);
_parent.Game.addSchool(5, 4, 600, 5, 5);
_parent.clock.pendulum.stop();
_parent.timer.setTimer(60);
Symbol 196 MovieClip [id_wndRoundComplete] Frame 1
txtRound = _parent.Game.num_curr_round;
txtScore = "$" + _parent.Player.score;
Symbol 210 MovieClip [id_wndGameOver] Frame 1
stop();
txtRound = _parent.Game.num_curr_round;
txtScore = _parent.Player.score;
Symbol 210 MovieClip [id_wndGameOver] Frame 2
stop();
_parent.youWinSound.start();
_parent.Player.score = _parent.Player.score + 10000;
_parent.Player.displayScore();
txtRound = _parent.Game.num_curr_round;
txtScore = _parent.Player.score;
_root.endRoundSound.start();
Symbol 218 Button
on (release, releaseOutside) {
if (totalPurchase == 0) {
_parent.onBtnShopCancel_click(this);
} else {
_parent.onBtnShopBuy_click(totalPurchase, gasToBuy, line_select, RUToBuy, ESToBuy);
}
}
Symbol 224 MovieClip Frame 1
stop();
Symbol 224 MovieClip Frame 2
stop();
Symbol 224 MovieClip Frame 3
stop();
Symbol 230 Button
on (release, releaseOutside) {
if (btnLine2._currentframe == 2) {
btnLine2.gotoAndStop(1);
line_spend = 0;
line_select = 0;
totalPurchase = totalPurchase - 3000;
rodCost = rodCost - 3000;
purchaseField.text = "$" + totalPurchase;
} else if (btnLine2._currentframe == 1) {
btnLine2.gotoAndStop(2);
if (btnLine1._currentframe == 2) {
btnLine1.gotoAndStop(1);
totalPurchase = totalPurchase - 1000;
rodCost = rodCost - 1000;
}
if (btnLine3._currentframe == 2) {
btnLine3.gotoAndStop(1);
totalPurchase = totalPurchase - 6000;
rodCost = rodCost - 6000;
}
line_spend = 3000;
totalPurchase = totalPurchase + 3000;
rodCost = rodCost + 3000;
purchaseField.text = "$" + totalPurchase;
line_select = 2;
}
}
Symbol 231 Button
on (release, releaseOutside) {
if (btnLine3._currentframe == 2) {
btnLine3.gotoAndStop(1);
line_spend = 0;
line_select = 0;
totalPurchase = totalPurchase - 6000;
rodCost = rodCost - 6000;
purchaseField.text = "$" + totalPurchase;
} else if (btnLine3._currentframe == 1) {
if (btnLine2._currentframe == 2) {
btnLine2.gotoAndStop(1);
totalPurchase = totalPurchase - 3000;
rodCost = rodCost - 3000;
}
if (btnLine1._currentframe == 2) {
btnLine1.gotoAndStop(1);
totalPurchase = totalPurchase - 1000;
rodCost = rodCost - 1000;
}
btnLine3.gotoAndStop(2);
line_spend = 6000;
totalPurchase = totalPurchase + 6000;
rodCost = rodCost + 6000;
purchaseField.text = "$" + totalPurchase;
line_select = 3;
}
}
Symbol 238 Button
on (press) {
startDrag ("", false, _parent.XBtwSteps * _parent.startingVar, 0, _parent.freeDistance, 0);
}
on (release, releaseOutside) {
stopDrag();
_parent._parent.registerDrag();
_parent._parent.gasSlider.resetMe();
this._x = _parent.XBtwSteps * (this._x / _parent.XBtwSteps);
}
Symbol 239 MovieClip Frame 1
stop();
Symbol 244 MovieClip Frame 1
function resetMe() {
var _local4 = _parent;
_local4.maxGas = _local4.ESToBuy * 5;
if (_local4.maxGas < _local4.gasToBuy) {
gasDifference = _local4.gasToBuy - _local4.maxGas;
_local4.gasCost = _local4.gasCost - (10 * gasDifference);
_local4.gasToBuy = _local4.gasToBuy - gasDifference;
} else if (_local4.gasToBuy < _root.Boat.gasoline) {
gasDifference = _root.Boat.gasoline - _local4.gasToBuy;
_local4.gasCost = _local4.gasCost + (10 * gasDifference);
_local4.gasToBuy = _local4.gasToBuy + gasDifference;
}
buyLText = _local4.gasToBuy;
steps = _local4.ESToBuy * 5;
XBtwSteps = this.totalDistance / this.steps;
slider._x = XBtwSteps * _local4.gasToBuy;
bar._x = -169.9 + slider._x;
}
if (totalDistance == undefined) {
totalDistance = 165;
freeDistance = 165;
myVar = "_parent.gasToBuy";
myCostVar = "_parent.gasCost";
cost = 10;
resetMe();
startingVar = _parent.gasToBuy;
slider._x = XBtwSteps * startingVar;
}
Symbol 244 MovieClip Frame 2
Set(myVar, Math.round(slider._x / XBtwSteps));
Set(myCostVar, (eval (myVar) - startingVar) * cost);
myVarText = _parent.gasToBuy;
if (_parent.maxGas != (_parent.ESToBuy * 5)) {
resetMe();
}
Symbol 255 Button
on (release) {
if (this._xmouse < (XBtwSteps * startingVar)) {
slider._x = XBtwSteps * startingVar;
} else if (this._xmouse > freeDistance) {
slider._x = freeDistance;
} else {
slider._x = this._xmouse;
}
_parent.registerDrag();
slider._x = XBtwSteps * (slider._x / XBtwSteps);
_parent.gasSlider.resetMe();
}
Symbol 256 MovieClip Frame 2
Set(myVar, Math.floor(slider._x / XBtwSteps));
Set(myCostVar, (eval (myVar) - startingVar) * cost);
_parent.registerDrag();
Symbol 262 MovieClip [id_wndShop] Frame 1
function registerDrag() {
totalPurchase = ((engineCost + gasCost) + rodCost) + reelCost;
purchaseField.text = "$" + totalPurchase;
}
_quality = "best";
var line_spend = 0;
var gasoline_spend = 0;
var gasoline_select = 0;
stop();
if (_root.Boat.gasoline < 0) {
_root.Boat.gasoline = 0;
} else {
_root.Boat.gasoline = Math.floor(_root.Boat.gasoline);
}
var gasToBuy = _root.Boat.gasoline;
buyLText.text = gasToBuy;
trace("starting bltext" + buyLText.text);
var line_select = 0;
var totalPurchase = 0;
purchaseField.text = "$" + totalPurchase;
var RUToBuy = _root.Game.currentRU;
_root.txtScoreFront = "$" + _root.Player.score;
buyRUText.text = _root.Game.currentRU - 2;
switch (_root.Boat.line_level) {
case 2 :
btnLine1.gotoAndStop(3);
break;
case 3 :
btnLine2.gotoAndStop(3);
break;
case 4 :
btnLine3.gotoAndStop(3);
break;
}
stop();
var ESToBuy = (2 * _root.Boat.SPEED_WITH_ENGINE);
trace(ESToBuy);
var engineCost = 0;
engineSlider.onLoad = function () {
var _local2 = this;
_local2.cost = 1000;
_local2.steps = 25;
_local2.totalDistance = 200;
_local2.freeDistance = 200;
_local2.XBtwSteps = _local2.totalDistance / _local2.steps;
_local2.myVar = "_parent.ESToBuy";
_local2.myCostVar = "_parent.engineCost";
_local2.startingVar = ESToBuy;
_local2.slider._x = _local2.XBtwSteps * _local2.startingVar;
};
gasCost = 0;
var maxGas = (ESToBuy * 5);
reelCost = 0;
reelSlider.onLoad = function () {
var _local2 = this;
_local2.cost = 1000;
_local2.steps = 20;
_local2.totalDistance = 200;
_local2.freeDistance = 200;
_local2.XBtwSteps = _local2.totalDistance / _local2.steps;
_local2.myVar = "_parent.RUToBuy";
_local2.myCostVar = "_parent.reelCost";
_local2.startingVar = RUToBuy;
_local2.slider._x = _local2.XBtwSteps * _local2.startingVar;
};
rodCost = 0;
Symbol 278 Button
on (release, releaseOutside) {
_parent.onBtnOk_click(this);
_root.clickSound.start();
}
on (rollOver) {
_root.smallSplashSound.start();
}
Symbol 279 MovieClip [id_wndCantBuy] Frame 1
stop();
Symbol 281 MovieClip [id_wndNothingBuy] Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 306 MovieClip Frame 110
stop();
Symbol 307 MovieClip Frame 1
_root.startIntroSound.start();
Symbol 307 MovieClip Frame 71
_parent.gotoAndStop("start");
stop();
Symbol 310 Button
on (release, releaseOutside) {
onBtnMenuPlay_click();
}
Symbol 324 MovieClip [SBGTimer] Frame 1
#initclip 1
SBGTimer = function () {
this.init();
};
SBGTimer.prototype = new MovieClip();
SBGTimer.prototype.init = function () {
var _local2 = this;
_local2.numStart = 0;
_local2.numRemainder = 0;
_local2.numLastTic = 0;
_local2.numTaskInterval = 0;
_local2.numLastTaskTime = 0;
_local2.numWarningTime = 0;
_local2.blnStop = true;
_local2.blnWarning = false;
_local2.blnBonus = false;
_local2.hColorOff = 0;
_local2.hColorOn = 0;
_local2.showTime();
};
SBGTimer.prototype.onEnterFrame = function () {
var _local2 = this;
if (!_local2.blnStop) {
_local2.tick();
return(undefined);
}
if (_local2.blnBonus) {
_local2.tick();
}
};
SBGTimer.prototype.tick = function () {
var _local2 = this;
var _local3 = getTimer();
if (_local2.blnBonus) {
_local2.numRemainder = _local2.numRemainder - 1;
_local2.timeBonus();
} else {
_local2.numRemainder = _local2.numRemainder - ((_local3 - _local2.numLastTic) / 1000);
_local2.numLastTic = _local3;
}
_local2.showTime();
if (_local2.numRemainder <= 0) {
_local2.numRemainder = 0;
_local2.stopTimer();
_local2.showTime();
if (!_local2.blnBonus) {
_local2.timesRunOut();
}
_local2.blnBonus = false;
return(undefined);
}
if (!_local2.blnBonus) {
if ((Math.floor(_local2.numRemainder) == _local2.numWarningTime) && (!_local2.blnWarning)) {
_local2.blnWarning = true;
_local2.timerWarning();
}
if ((_local2.numTaskInterval > 0) && ((_local2.numLastTaskTime - _local2.numRemainder) >= _local2.numTaskInterval)) {
_local2.numLastTaskTime = _local2.numRemainder;
_local2.doTask();
}
}
};
SBGTimer.prototype.showTime = function () {
var _local2 = this;
var _local5 = Math.round(_local2.numRemainder);
var _local3 = Math.floor(_local5 / 60);
var _local7 = ((_local3 < 10) ? ("0" + String(_local3)) : (String(_local3)));
var _local4 = _local5 % 60;
var _local6 = ((_local4 < 10) ? ("0" + String(_local4)) : (String(_local4)));
_local2.txtTime.text = (_local7 + ":") + _local6;
_local2.txtTimeShadow.text = _local2.txtTime.text;
};
SBGTimer.prototype.startTimer = function () {
var _local2 = this;
if (_local2.numRemainder <= 0) {
return(undefined);
}
_local2.numLastTic = getTimer();
_local2.blnStop = false;
_local2.numLastTaskTime = _local2.numRemainder;
var _local3 = new Color(_local2.txtTime);
_local3.setRGB(_local2.hColorOn, 16);
_local3 = new Color(_local2.mcTime);
_local3.setRGB(_local2.hColorOn, 16);
_local2.showTime();
};
SBGTimer.prototype.startTimerAt = function (a_time) {
var _local2 = this;
if (a_time <= 0) {
return(undefined);
}
_local2.numLastTic = getTimer();
_local2.numRemainder = a_time;
_local2.blnStop = false;
_local2.numLastTaskTime = _local2.numRemainder;
var _local3 = new Color(_local2.txtTime);
_local3.setRGB(_local2.hColorOn);
_local3 = new Color(_local2.mcTime);
_local3.setRGB(_local2.hColorOn, 16);
_local2.showTime();
};
SBGTimer.prototype.stopTimer = function () {
var _local2 = this;
_local2.blnStop = true;
var _local3 = new Color(_local2.txtTime);
_local3.setRGB(_local2.hColorOff);
_local3 = new Color(_local2.mcTime);
_local3.setRGB(_local2.hColorOff);
};
SBGTimer.prototype.getTimer = function () {
return(Math.floor(this.numRemainder * 10) / 10);
};
SBGTimer.prototype.setTimer = function (a_time) {
this.numRemainder = a_time;
this.showTime();
};
SBGTimer.prototype.setWarningTime = function (a_time) {
this.numWarningTime = a_time;
};
SBGTimer.prototype.setTaskInterval = function (a_time) {
this.numTaskInterval = a_time;
};
SBGTimer.prototype.startTimeBonus = function () {
this.blnBonus = true;
};
SBGTimer.prototype.timerWarning = function () {
};
SBGTimer.prototype.timesRunOut = function () {
};
SBGTimer.prototype.doTask = function () {
};
SBGTimer.prototype.timeBonus = function () {
_root.Player.score = _root.Player.score + (2 * _root.Game.num_curr_round);
};
Object.registerClass("SBGTimer", SBGTimer);
#endinitclip
Symbol 330 Button
on (release, releaseOutside) {
onBtnMenuHelp_click();
Game.bln_pause_game = true;
timer.stopTimer();
}
Symbol 333 MovieClip Frame 1
_quality = "BEST";
Symbol 337 MovieClip Frame 1
if (this.getDepth() != 100000) {
this.swapDepths(100000);
}
stop();
Symbol 363 MovieClip Frame 1
stop();
Symbol 363 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 5
gotoAndPlay (2);
Symbol 374 MovieClip Frame 1
stop();
Symbol 374 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 8
_root.rowingSound.start();
Symbol 403 MovieClip Frame 25
gotoAndPlay (7);