Frame 1
stop();
Stage.showMenu = false;
timer_mc._visible = false;
timer_mc.onEnterFrame = function () {
var _local1 = this;
var sofar = getBytesLoaded();
var _local2 = getBytesTotal();
var _local3 = (sofar / _local2) * 160;
if (_local3 > 14) {
_local1._visible = true;
_local1.top_mc._x = 5 - _local3;
_local1.bar_mc._width = (-_local1.top_mc._x) - 9;
if (sofar == _local2) {
delete _local1.onEnterFrame;
gotoAndStop ("loaded");
}
}
};
Frame 2
function addCommas(s) {
var _local3 = s.length;
var _local2 = "";
var _local1 = 0;
while (_local1 <= _local3) {
_local2 = s.charAt(_local3 - _local1) + _local2;
if ((((_local1 % 3) == 0) && (_local1 > 0)) && (_local1 < _local3)) {
_local2 = "," + _local2;
}
_local1++;
}
return(_local2);
}
stop();
var game_so = SharedObject.getLocal("neaveFrogger");
var gameOver = false;
var score = 0;
var level = 1;
var lives = 3;
play_btn.onRelease = function () {
gotoAndPlay ("start");
};
scores_btn.onRelease = function () {
gotoAndStop (12);
};
quit_btn.onRelease = function () {
getURL ("javascript:quitGame();void(0);");
};
neave_btn.onRelease = function () {
getURL ("http://www.neave.com/games/", "_top");
};
Frame 3
function removeListeners() {
clearInterval(hideFlyID);
clearInterval(showFlyID);
clearInterval(hideCrocID);
clearInterval(showCrocID);
Key.removeListener(keyListener);
}
function updateLives() {
for (var _local1 in lives_mc) {
if (typeof(lives_mc[_local1]) == "movieclip") {
lives_mc[_local1].removeMovieClip();
}
}
var _local1 = lives;
while (_local1 > 1) {
var _local2 = lives_mc.life1_mc.duplicateMovieClip(("life" + _local1) + "_mc", _local1);
_local2._x = (_local1 - 1) * 12;
_local1--;
}
}
function updateScore(old) {
if (Math.floor(old / 10000) < Math.floor(score / 10000)) {
lives++;
updateLives();
snd_mc.gotoAndPlay("life");
}
score_txt.text = addCommas(score.toString());
}
function newFrog() {
newTimer();
updateLives();
if (lives < 1) {
gameOver = true;
removeListeners();
lives_mc.gotoAndStop(1);
frog_mc._visible = false;
msg_mc.msg = "GAME OVER";
msg_mc.gotoAndPlay(2);
return(undefined);
}
frogRow = (maxRow = 12);
frogCol = 7;
frog_mc._visible = true;
frog_mc.moving = true;
frog_mc.dead = false;
frog_mc.girl = false;
frog_mc.dx = (frog_mc.wdx = 0);
frog_mc.dy = -1;
frog_mc._x = 240;
frog_mc._y = FROG_BOTTOM + 32;
frog_mc._rotation = 0;
frog_mc.onEnterFrame = frogMover;
}
function stopFrog() {
if ((!frog_mc._visible) || (frog_mc.dead)) {
return(undefined);
}
with (frog_mc) {
moving = false;
dx = (dy = 0);
if (girl) {
gotoAndStop("sitGirl");
} else {
gotoAndStop("sit");
}
}
}
function killFrog() {
lives--;
frog_mc.dead = true;
frog_mc._rotation = 0;
if (rowWater[frogRow]) {
frog_mc.gotoAndPlay("dieWater");
} else {
frog_mc.gotoAndPlay("dieLand");
}
}
function frogHome(n) {
var _local3 = n;
if ((paused || (!frog_mc._visible)) || (frog_mc.dead)) {
} else {
var _local1 = thisMC[("home" + _local3) + "_mc"];
if (((_local3 == crocNum) && (_local1.croc)) || (homeList[_local3 - 1])) {
killFrog();
} else {
_local1.gotoAndPlay("frog");
var oldScore = score;
if (timer_mc._visible) {
var t = Math.round((timer_mc.time - 15) / 20);
score = score + (t * 10);
msg_mc.msg = "TIME " + t;
msg_mc.gotoAndPlay(2);
}
homeList[_local3 - 1] = true;
homeTotal++;
var _local2 = 0;
if (_local3 == flyNum) {
_local2 = _local2 + 200;
_local1.bonus_mc.bonus = _local2;
_local1.bonus_mc.gotoAndPlay(2);
}
if (frog_mc.girl) {
_local2 = _local2 + 200;
_local1.bonus_mc.bonus = _local2;
_local1.bonus_mc.gotoAndPlay(2);
}
score = score + _local2;
if (homeTotal < HOME_TOTAL) {
score = score + 40;
newFrog();
} else {
score = score + 1000;
level++;
frog_mc._visible = false;
newLevel = true;
snd_mc.gotoAndPlay("level");
msg_mc.msg = "LEVEL UP";
msg_mc.gotoAndPlay(2);
}
updateScore(oldScore);
}
}
}
function frogMover() {
if ((paused || (!this._visible)) || (frog_mc.dead)) {
return(undefined);
}
if (this.dy < 0) {
this._y = this._y - 8;
this.dy--;
if (this.dy < -4) {
stopFrog();
}
} else if (this.dy > 0) {
this._y = this._y + 8;
this.dy++;
if (this.dy > 4) {
stopFrog();
}
}
if (this.dx < 0) {
this._x = this._x - 8;
this.dx--;
if (this.dx < -4) {
stopFrog();
}
} else if (this.dx > 0) {
this._x = this._x + 8;
this.dx++;
if (this.dx > 4) {
stopFrog();
}
}
for (var i in hitList) {
var mc = eval (hitList[i]);
if (mc._visible && (this.hit_mc.hitTest(mc))) {
killFrog();
return(undefined);
}
}
var r = ((this._y - FROG_TOP) / 32);
var c = ((this._x - FROG_LEFT) / 32);
if (((frogRow != r) || (frogCol != c)) && (r == int(r))) {
if (rowWater[r]) {
for (var i in rowList[r]) {
if (this.hit_mc.hitTest(rowList[r][i])) {
this.wdx = rowSpeed[r];
break;
}
this.wdx = 0;
}
if (this.wdx == 0) {
frogRow = r;
killFrog();
return(undefined);
}
} else {
this.wdx = 0;
}
if (r < maxRow) {
maxRow = r;
var oldScore = score;
score = score + 10;
updateScore(oldScore);
}
if (((r == girlRow) && (logGirl_mc.girl_mc._visible)) && (this.hit_mc.hitTest(logGirl_mc.girl_mc))) {
logGirl_mc.girl_mc._visible = false;
this.girl = true;
this.gotoAndStop("sitGirl");
snd_mc.gotoAndPlay("bonus");
}
if (r == 0) {
if (this.hit_mc.hitTest(home1_mc.hit_mc)) {
frogHome(1);
} else if (this.hit_mc.hitTest(home2_mc.hit_mc)) {
frogHome(2);
} else if (this.hit_mc.hitTest(home3_mc.hit_mc)) {
frogHome(3);
} else if (this.hit_mc.hitTest(home4_mc.hit_mc)) {
frogHome(4);
} else if (this.hit_mc.hitTest(home5_mc.hit_mc)) {
frogHome(5);
} else {
killFrog();
return(undefined);
}
}
} else {
this.wdx = 0;
}
frogRow = r;
frogCol = c;
this._x = this._x + this.wdx;
if (this._x < (FROG_LEFT - 6)) {
this._x = FROG_LEFT - 6;
killFrog();
}
if (this._x > (FROG_RIGHT + 6)) {
this._x = FROG_RIGHT + 6;
killFrog();
}
}
function objectMover() {
var _local1 = this;
if (paused) {
} else {
_local1._x = _local1._x + _local1.dx;
if ((_local1.dx < 0) && (_local1._x < (-_local1._width))) {
_local1._x = _local1._x + (512 + (_local1._width * 2));
}
if ((_local1.dx > 0) && (_local1._x > (512 + _local1._width))) {
_local1._x = _local1._x - (512 + (_local1._width * 2));
}
}
}
function timerMover() {
var _local1 = this;
if ((paused || (!frog_mc._visible)) || (frog_mc.dead)) {
} else {
if (_local1.time == 240) {
_local1.top_mc.gotoAndStop(2);
_local1.bar_mc.gotoAndStop(2);
_local1.end_mc.gotoAndStop(2);
snd_mc.gotoAndPlay("time");
}
if (_local1.time > 12) {
_local1.top_mc._x = (_local1.time / -8) - 5;
_local1.bar_mc._width = (-_local1.top_mc._x) - 9;
_local1.time--;
} else {
killFrog();
msg_mc.msg = "TIME OVER";
msg_mc.gotoAndPlay(2);
_local1._visible = false;
delete _local1.onEnterFrame;
}
}
}
function newTimer() {
with (timer_mc) {
top_mc.gotoAndStop(1);
bar_mc.gotoAndStop(1);
end_mc.gotoAndStop(1);
}
timer_mc.time = 1200;
timer_mc._visible = true;
timer_mc.onEnterFrame = timerMover;
timer_mc.onEnterFrame();
}
function setRow(n, dx, w, mcList) {
var _local2 = mcList;
var _local3 = n;
rowSpeed[_local3] = dx;
rowWater[_local3] = w;
rowList[_local3] = _local2;
for (var i in _local2) {
var _local1 = _local2[i];
_local1.dx = dx;
_local1.onEnterFrame = objectMover;
if (_local1 == logGirl_mc) {
girlRow = _local3;
_local1.girl_mc._visible = false;
}
}
}
function resetHomes() {
newLevel = false;
homeTotal = 0;
homeList = [];
var _local1 = HOME_TOTAL;
while (_local1 > 0) {
thisMC[("home" + _local1) + "_mc"].gotoAndStop(1);
thisMC.croc = false;
homeList.push(false);
_local1--;
}
flyNum = 0;
}
function snakeMover() {
var _local1 = this;
if (paused) {
} else {
_local1.target._x = _local1.target._x + _local1.target.dx;
if (((_local1.target.dx < 0) && (_local1.target._x < _local1.target.left)) || ((_local1.target.dx > 0) && (_local1.target._x > _local1.target.right))) {
_local1.target.dx = _local1.target.dx * -1;
_local1.target._xscale = ((_local1.target.dx > 0) ? -100 : 100);
}
var _local2 = (logB1_mc._x < ((-logB1_mc._width) + 4)) || (logB1_mc._x > ((512 + logB1_mc._width) - 4));
var _local3 = (_local1._x < _local1.left) || (_local1._x > _local1.right);
if (_local1.logWait) {
if (!_local2) {
return;
}
_local1.logWait = false;
logB1_mc.snake_mc._visible = true;
}
if (((_local1.target == logB1_mc.snake_mc) && (_local2)) || ((_local1.target == _local1) && (_local3))) {
if (Math.random() < 0.7) {
_local1.target = logB1_mc.snake_mc;
_local1._visible = false;
_local1.logWait = true;
} else {
_local1.target = _local1;
_local1._visible = true;
logB1_mc.snake_mc._visible = false;
}
}
}
}
function otterMover() {
var _local1 = this;
if (paused) {
} else {
_local1._x = _local1._x + _local1.dx;
var _local2 = _local1._x > 500;
for (var _local3 in rowList[_local1.row]) {
if (_local1.hit_mc.hitTest(rowList[_local1.row][_local3])) {
_local2 = true;
break;
}
}
if (_local2) {
_local1.dx = int(Math.random() * 3) + 4;
_local1.row = [1, 3, 4][int(Math.random() * 3)];
_local1._x = -30;
_local1._y = (_local1.row * 32) + FROG_TOP;
}
}
}
function showCroc() {
if (paused) {
return(undefined);
}
clearInterval(showCrocID);
hideCrocID = setInterval(hideCroc, 4000);
crocNum = int(Math.random() * HOME_TOTAL) + 1;
if ((!homeList[crocNum - 1]) && (crocNum != flyNum)) {
thisMC[("home" + crocNum) + "_mc"].gotoAndStop("croc");
}
}
function hideCroc() {
if (paused) {
return(undefined);
}
clearInterval(hideCrocID);
showCrocID = setInterval(showCroc, (Math.random() * 2000) + 4000);
if (!homeList[crocNum - 1]) {
thisMC[("home" + crocNum) + "_mc"].gotoAndStop(1);
}
crocNum = 0;
}
function showFly() {
if (paused) {
return(undefined);
}
clearInterval(showFlyID);
hideFlyID = setInterval(hideFly, 5000);
flyNum = int(Math.random() * HOME_TOTAL) + 1;
if ((!homeList[flyNum - 1]) && (flyNum != crocNum)) {
thisMC[("home" + flyNum) + "_mc"].gotoAndStop("fly");
}
}
function hideFly() {
if (paused) {
return(undefined);
}
clearInterval(hideFlyID);
showFlyID = setInterval(showFly, (Math.random() * 2000) + 4000);
if (!homeList[flyNum - 1]) {
thisMC[("home" + flyNum) + "_mc"].gotoAndStop(1);
}
flyNum = 0;
}
var FROG_TOP = 37;
var FROG_BOTTOM = 421;
var FROG_LEFT = 16;
var FROG_RIGHT = 430;
var HOME_TOTAL = 5;
var frogCol;
var frogRow;
var maxRow;
var girlRow;
var rowSpeed;
var rowWater;
var rowList;
var homeList;
var hitList;
var homeTotal;
var flyNum;
var showFlyID;
var hideFlyID;
var showCrocID;
var hideCrocID;
var newLevel;
var thisMC = this;
quit_mc._visible = (paused_mc._visible = (_global.paused = false));
var mute_sound = new Sound();
var keyListener = new Object();
keyListener.onKeyDown = function () {
var keyCode = Key.getCode();
switch (keyCode) {
case 32 :
case 80 :
if ((((quit_mc._visible || (newLevel)) || (gameOver)) || (!frog_mc._visible)) || (frog_mc.dead)) {
break;
}
_global.paused = !_global.paused;
paused_mc._visible = paused;
break;
case 81 :
if (((newLevel || (gameOver)) || (!frog_mc._visible)) || (frog_mc.dead)) {
} else {
quit_mc._visible = (_global.paused = true);
break;
if (quit_mc._visible) {
quit_mc._visible = false;
_global.paused = paused_mc._visible;
}
break;
if (quit_mc._visible) {
removeListeners();
gotoAndStop ("loaded");
}
break;
if (mute_sound.getVolume() == 100) {
mute_sound.setVolume(0);
} else {
mute_sound.setVolume(100);
}
}
case 78 :
if (quit_mc._visible) {
quit_mc._visible = false;
_global.paused = paused_mc._visible;
}
break;
case 89 :
if (quit_mc._visible) {
removeListeners();
gotoAndStop ("loaded");
}
break;
case 77 :
if (mute_sound.getVolume() == 100) {
mute_sound.setVolume(0);
} else {
mute_sound.setVolume(100);
}
}
if ((((quit_mc._visible || (paused)) || (!frog_mc._visible)) || (frog_mc.dead)) || (frog_mc.moving)) {
return(undefined);
}
switch (keyCode) {
case 38 :
with (frog_mc) {
if (_y > FROG_TOP) {
moving = true;
dy = -1;
_rotation = 0;
if (girl) {
gotoAndStop("jumpGirl");
} else {
gotoAndStop("jump");
}
}
}
return;
case 40 :
with (frog_mc) {
if (_y < FROG_BOTTOM) {
moving = true;
dy = 1;
_rotation = 180;
if (girl) {
gotoAndStop("jumpGirl");
} else {
gotoAndStop("jump");
}
}
}
return;
case 37 :
with (frog_mc) {
if (_x > FROG_LEFT) {
moving = true;
dx = -1;
_rotation = -90;
if (girl) {
gotoAndStop("jumpGirl");
} else {
gotoAndStop("jump");
}
}
}
return;
case 39 :
with (frog_mc) {
if (_x >= FROG_RIGHT) {
break;
}
moving = true;
dx = 1;
_rotation = 90;
if (girl) {
gotoAndStop("jumpGirl");
} else {
gotoAndStop("jump");
}
}
}
};
removeListeners();
Key.addListener(keyListener);
Frame 4
stop();
resetHomes();
newFrog();
rowSpeed = new Array();
rowWater = new Array();
rowList = new Array();
hitList = new Array("turtleT5_mc.hit_mc", "turtleC1_mc.hit_mc", lorry1_mc, lorry2_mc, racerGrey1_mc, racerGrey2_mc, racerGrey3_mc, carBub1_mc, carBub2_mc, carBub3_mc, carTruck1_mc, carTruck2_mc, carTruck3_mc, racerYel1_mc, racerYel2_mc, racerYel3_mc);
logB1_mc.snake_mc._visible = (logB2_mc.snake_mc._visible = (logB3_mc.snake_mc._visible = false));
showFlyID = setInterval(showFly, 6000);
setRow(0, 0, false, []);
setRow(1, 3, true, [logM1_mc, logM2_mc, logM3_mc, logM4_mc]);
setRow(2, -3, true, [turtleC1_mc, turtleC2_mc, turtleC3_mc, turtleC4_mc]);
setRow(3, 4, true, [logB1_mc, logB2_mc, logB3_mc]);
setRow(4, 2, true, [logS1_mc, logGirl_mc, logS2_mc]);
setRow(5, -3, true, [turtleT1_mc, turtleT2_mc, turtleT3_mc, turtleT4_mc, turtleT5_mc]);
setRow(6, 0, false, []);
setRow(7, -3, false, [lorry1_mc, lorry2_mc]);
setRow(8, 2, false, [racerGrey1_mc, racerGrey2_mc, racerGrey3_mc]);
setRow(9, -3, false, [carBub1_mc, carBub2_mc, carBub3_mc]);
setRow(10, 2, false, [carTruck1_mc, carTruck2_mc, carTruck3_mc]);
setRow(11, -2, false, [racerYel1_mc, racerYel2_mc, racerYel3_mc]);
setRow(12, 0, false, []);
Frame 5
stop();
resetHomes();
newFrog();
rowSpeed = new Array();
rowWater = new Array();
rowList = new Array();
hitList = new Array("logCroc_mc.hit_mc", "turtleT5_mc.hit_mc", "turtleC1_mc.hit_mc", lorry1_mc, lorry2_mc, lorry3_mc, racerGrey1_mc, racerGrey2_mc, carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc, racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc);
logCroc_mc._x = logM3_mc._x + 196;
lorry3_mc._x = lorry2_mc._x + 176;
racerGrey1_mc._x = racerGrey2_mc._x + 84;
carBub4_mc._x = carBub1_mc._x - 128;
carTruck4_mc._x = carTruck3_mc._x + 128;
racerYel4_mc._x = racerYel3_mc._x + 144;
showCrocID = setInterval(showCroc, 6000);
setRow(0, 0, false, []);
setRow(1, 3, true, [logM1_mc, logM2_mc, logM3_mc, logCroc_mc]);
setRow(2, -3, true, [turtleC1_mc, turtleC2_mc, turtleC3_mc, turtleC4_mc]);
setRow(3, 4, true, [logB1_mc, logB2_mc]);
setRow(4, 2, true, [logS1_mc, logGirl_mc, logS2_mc]);
setRow(5, -5, true, [turtleT1_mc, turtleT2_mc, turtleT3_mc, turtleT4_mc, turtleT5_mc]);
setRow(6, 0, false, []);
setRow(7, -3, false, [lorry1_mc, lorry2_mc, lorry3_mc]);
setRow(8, 10, false, [racerGrey1_mc, racerGrey2_mc]);
setRow(9, -3, false, [carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc]);
setRow(10, 2, false, [carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc]);
setRow(11, -2, false, [racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc]);
setRow(12, 0, false, []);
Frame 6
stop();
resetHomes();
newFrog();
rowSpeed = new Array();
rowWater = new Array();
rowList = new Array();
hitList = new Array("logCroc_mc.hit_mc", "snake_mc.target", otter_mc, "turtleT5_mc.hit_mc", "turtleC1_mc.hit_mc", lorry1_mc, lorry2_mc, lorry3_mc, racerGrey1_mc, racerGrey2_mc, carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc, racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc);
racerGrey1_mc._x = racerGrey2_mc._x + 144;
logB1_mc.snake_mc.logWait = false;
logB1_mc.snake_mc.dx = 2;
logB1_mc.snake_mc.left = -56;
logB1_mc.snake_mc.right = 56;
snake_mc.dx = 3;
snake_mc.left = -100;
snake_mc.right = 500;
snake_mc.target = snake_mc;
snake_mc.onEnterFrame = snakeMover;
otter_mc.dx = 5;
otter_mc.row = 4;
otter_mc.onEnterFrame = otterMover;
setRow(0, 0, false, []);
setRow(1, 3, true, [logM1_mc, logM2_mc, logM3_mc, logCroc_mc]);
setRow(2, -3, true, [turtleC1_mc, turtleC2_mc, turtleC3_mc, turtleC4_mc]);
setRow(3, 4, true, [logB1_mc, logB2_mc]);
setRow(4, 2, true, [logS1_mc, logGirl_mc, logS2_mc]);
setRow(5, -3, true, [turtleT1_mc, turtleT2_mc, turtleT3_mc, turtleT4_mc, turtleT5_mc]);
setRow(6, 0, false, []);
setRow(7, -3, false, [lorry1_mc, lorry2_mc, lorry3_mc]);
setRow(8, 8, false, [racerGrey1_mc, racerGrey2_mc]);
setRow(9, -5, false, [carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc]);
setRow(10, 4, false, [carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc]);
setRow(11, -2, false, [racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc]);
setRow(12, 0, false, []);
Frame 7
stop();
resetHomes();
newFrog();
rowSpeed = new Array();
rowWater = new Array();
rowList = new Array();
hitList = new Array("logCroc_mc.hit_mc", "snake_mc.target", otter_mc, "turtleT5_mc.hit_mc", "turtleC1_mc.hit_mc", lorry1_mc, lorry2_mc, lorry3_mc, racerGrey1_mc, racerGrey2_mc, racerGrey3_mc, carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc, racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc);
racerGrey3_mc._x = racerGrey1_mc._x + 144;
setRow(0, 0, false, []);
setRow(1, 3, true, [logM1_mc, logM3_mc, logCroc_mc]);
setRow(2, -3, true, [turtleC1_mc, turtleC2_mc, turtleC3_mc, turtleC4_mc]);
setRow(3, 4, true, [logB1_mc, logB2_mc]);
setRow(4, 2, true, [logS1_mc, logGirl_mc, logS2_mc]);
setRow(5, -6, true, [turtleT1_mc, turtleT2_mc, turtleT3_mc, turtleT4_mc, turtleT5_mc]);
setRow(6, 0, false, []);
setRow(7, -3, false, [lorry1_mc, lorry2_mc, lorry3_mc]);
setRow(8, 8, false, [racerGrey1_mc, racerGrey2_mc, racerGrey3_mc]);
setRow(9, -4, false, [carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc]);
setRow(10, 8, false, [carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc]);
setRow(11, -4, false, [racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc]);
setRow(12, 0, false, []);
Frame 8
stop();
resetHomes();
newFrog();
rowSpeed = new Array();
rowWater = new Array();
rowList = new Array();
hitList = new Array("logCroc1_mc.hit_mc", "logCroc2_mc.hit_mc", "snake_mc.target", otter_mc, "turtleT5_mc.hit_mc", "turtleC1_mc.hit_mc", lorry1_mc, lorry2_mc, lorry3_mc, racerGrey1_mc, racerGrey2_mc, racerGrey3_mc, racerGrey4_mc, carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carBub5_mc, carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc, racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc, racerYel5_mc);
lorry2_mc._x = lorry1_mc._x + 144;
lorry3_mc._x = lorry2_mc._x + 144;
racerGrey4_mc._x = racerGrey3_mc._x + 144;
carBub5_mc._x = carBub4_mc._x - 100;
racerYel2_mc._x = racerYel1_mc._x + 100;
racerYel3_mc._x = racerYel2_mc._x + 100;
racerYel4_mc._x = racerYel3_mc._x + 100;
racerYel5_mc._x = racerYel1_mc._x - 100;
setRow(0, 0, false, []);
setRow(1, 3, true, [logCroc1_mc, logCroc2_mc]);
setRow(2, -3, true, [turtleC1_mc, turtleC2_mc, turtleC3_mc, turtleC4_mc]);
setRow(3, 4, true, [logB1_mc, logB2_mc]);
setRow(4, 2, true, [logS1_mc, logGirl_mc]);
setRow(5, -6, true, [turtleT1_mc, turtleT2_mc, turtleT3_mc, turtleT4_mc, turtleT5_mc]);
setRow(6, 0, false, []);
setRow(7, -3, false, [lorry1_mc, lorry2_mc, lorry3_mc]);
setRow(8, 8, false, [racerGrey1_mc, racerGrey2_mc, racerGrey3_mc, racerGrey4_mc]);
setRow(9, -4, false, [carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carBub5_mc]);
setRow(10, 6, false, [carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc]);
setRow(11, -4, false, [racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc, racerYel5_mc]);
setRow(12, 0, false, []);
Frame 9
stop();
resetHomes();
newFrog();
rowSpeed = new Array();
rowWater = new Array();
rowList = new Array();
hitList = new Array("logCroc1_mc.hit_mc", "logCroc2_mc.hit_mc", "snake_mc.target", otter_mc, "turtleT5_mc.hit_mc", "turtleC1_mc.hit_mc", lorry1_mc, lorry2_mc, lorry3_mc, racerGrey1_mc, racerGrey2_mc, racerGrey3_mc, racerGrey4_mc, carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carBub5_mc, carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc, racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc, racerYel5_mc);
setRow(0, 0, false, []);
setRow(1, 4, true, [logCroc1_mc, logCroc2_mc]);
setRow(2, -4, true, [turtleC1_mc, turtleC2_mc, turtleC3_mc, turtleC4_mc]);
setRow(3, 4, true, [logB1_mc, logB2_mc]);
setRow(4, 3, true, [logS1_mc, logGirl_mc]);
setRow(5, -6, true, [turtleT1_mc, turtleT3_mc, turtleT4_mc, turtleT5_mc]);
setRow(6, 0, false, []);
setRow(7, -3, false, [lorry1_mc, lorry2_mc, lorry3_mc]);
setRow(8, 8, false, [racerGrey1_mc, racerGrey2_mc, racerGrey3_mc, racerGrey4_mc]);
setRow(9, -4, false, [carBub1_mc, carBub2_mc, carBub3_mc, carBub4_mc, carBub5_mc]);
setRow(10, 6, false, [carTruck1_mc, carTruck2_mc, carTruck3_mc, carTruck4_mc]);
setRow(11, -4, false, [racerYel1_mc, racerYel2_mc, racerYel3_mc, racerYel4_mc, racerYel5_mc]);
setRow(12, 0, false, []);
Frame 10
prevFrame();
Frame 12
function showScores() {
var _local2 = 10;
while (_local2 > 0) {
var _local3 = scoreboard_lv["name" + (page + _local2)];
var s = scoreboard_lv["score" + (page + _local2)];
var _local1 = this[("line" + _local2) + "_mc"];
_local1.rank_txt.text = (page + _local2) + ".";
_local1.name_txt.text = (_local3.length ? (_local3.toUpperCase()) : "-");
_local1.score_txt.text = (s.length ? (addCommas(s)) : "-");
_local1.rank_txt.textColor = (_local1.name_txt.textColor = (_local1.score_txt.textColor = ((game_so.data.playerName.length && (_local3.toUpperCase() == game_so.data.playerName.toUpperCase())) ? 16776960 : 14606046)));
_local1._visible = true;
loading_mc._visible = false;
_local2--;
}
}
stop();
page = 0;
maxScore = 100;
scoreboard_lv = new LoadVars();
if ((score > 0) && (game_so.data.playerName.length > 0)) {
scoreboard_lv.score = score;
scoreboard_lv.name = game_so.data.playerName.toLowerCase();
}
scoreboard_lv.url = _url;
scoreboard_lv.game = "frogger";
scoreboard_lv.sendAndLoad("http://www.neave.com/games/games_score.php", scoreboard_lv, "POST");
scoreboard_lv.onLoad = function (success) {
if (success) {
if (Boolean(scoreboard_lv.success)) {
next_btn._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "COULD NOT ACCESS SCORES.";
loading_mc.gotoAndStop(2);
}
};
score = 0;
next_btn._visible = (last_btn._visible = false);
last_btn.onPress = function () {
page = page - 10;
if (page < 0) {
page = 0;
}
if (page < 10) {
last_btn._visible = false;
}
next_btn._visible = true;
showScores();
};
next_btn.onPress = function () {
page = page + 10;
if (page > maxScore) {
page = maxScore;
}
if (page > (maxScore - 20)) {
next_btn._visible = false;
}
last_btn._visible = true;
showScores();
};
newGame_btn.onRelease = function () {
gotoAndStop (2);
};
Symbol 4 MovieClip [alien3] Frame 1
stop();
Symbol 4 MovieClip [alien3] Frame 3
gotoAndStop (1);
Symbol 9 MovieClip Frame 1
stop();
Symbol 12 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 1
stop();
Symbol 23 MovieClip Frame 2
play();
Symbol 66 MovieClip Frame 1
_parent.croc = false;
Symbol 66 MovieClip Frame 21
stop();
_parent.croc = true;
Symbol 67 MovieClip Frame 1
stop();
croc = false;
Symbol 67 MovieClip Frame 6
stop();
Symbol 74 MovieClip Frame 5
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 74 MovieClip Frame 10
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 74 MovieClip Frame 15
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 1
_parent.hit_mc._visible = false;
Symbol 78 MovieClip Frame 5
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 10
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 15
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 20
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 25
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 26
_parent.hit_mc._visible = true;
Symbol 78 MovieClip Frame 35
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 78 MovieClip Frame 36
_parent.hit_mc._visible = false;
Symbol 78 MovieClip Frame 40
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 83 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 20
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 84 MovieClip Frame 21
girl_mc.gotoAndStop(2);
Symbol 84 MovieClip Frame 25
girl_mc.gotoAndStop(1);
Symbol 84 MovieClip Frame 30
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 84 MovieClip Frame 31
girl_mc.gotoAndStop(2);
Symbol 84 MovieClip Frame 35
girl_mc.gotoAndStop(1);
Symbol 84 MovieClip Frame 55
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 84 MovieClip Frame 56
girl_mc.gotoAndStop(2);
Symbol 84 MovieClip Frame 60
girl_mc.gotoAndStop(1);
Symbol 84 MovieClip Frame 65
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 84 MovieClip Frame 66
girl_mc.gotoAndStop(2);
Symbol 84 MovieClip Frame 70
girl_mc.gotoAndStop(1);
Symbol 84 MovieClip Frame 71
if ((!_parent.frog_mc.girl) && ((_x + girl_mc._x) > 448)) {
girl_mc._visible = !girl_mc._visible;
}
Symbol 91 MovieClip Frame 3
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 91 MovieClip Frame 6
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 91 MovieClip Frame 9
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 91 MovieClip Frame 12
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 109 MovieClip Frame 5
if (paused) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay (1);
}
Symbol 120 MovieClip Frame 1
stop();
if (_parent.gameOver) {
_parent.over_mc.gotoAndStop(2);
} else if (_parent.newLevel) {
_parent.nextFrame();
}
msg = "";
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 2
stop();
name_txt.restrict = "A-Z 0-9.:\\-";
name_txt.text = _root.game_so.data.playerName;
Selection.setFocus(name_txt);
Selection.setSelection(name_txt.length, name_txt.length);
ok_btn.onRelease = function () {
if (name_txt.length > 0) {
_root.game_so.data.playerName = name_txt.text;
}
_root.gotoAndPlay("gameOver");
};
ok_btn.onKeyDown = function () {
if (Key.getCode() == 13) {
Key.removeListener(ok_btn);
this.onRelease();
}
};
Key.addListener(ok_btn);
Symbol 140 MovieClip Frame 1
stop();
Symbol 140 MovieClip Frame 5
play();
Symbol 140 MovieClip Frame 31
gotoAndStop (1);
_parent.newFrog();
Symbol 140 MovieClip Frame 32
play();
Symbol 140 MovieClip Frame 58
gotoAndStop (1);
_parent.newFrog();
Symbol 144 MovieClip Frame 2
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 3
stop();
Symbol 149 MovieClip Frame 5
stop();
Symbol 149 MovieClip Frame 7
stop();
Symbol 151 MovieClip Frame 20
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 151 MovieClip Frame 40
if (paused) {
gotoAndPlay(_currentframe - 1);
}
Symbol 171 MovieClip Frame 1
stop();
errorMsg = "";