Frame 1
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
prel.gotoAndStop(tgPrel);
if (b1 >= b2) {
gotoAndPlay ("intro");
}
Frame 4
if (Math.round(b1 / 1024) <= 35) {
gotoAndPlay ("loop1");
}
Frame 5
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgprel - 1;
if (tg <= 9) {
procent = "0" + tg;
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 9
if (Math.round(b1 / 1024) <= 100) {
gotoAndPlay ("loop2");
}
Frame 11
b1 = _root.getBytesLoaded();
b2 = _root.getBytesTotal();
tgPrel = 1 + Math.round((b1 * 100) / b2);
tg = tgPrel - 2;
if (tgPrel <= 9) {
procent = "0" + tg;
trace(procent);
} else {
procent = tg;
}
prel.gotoAndStop(tgPrel);
Frame 14
if (b1 < b2) {
gotoAndPlay ("loop3");
}
Frame 15
procent = "--";
prel.gotoAndStop(100);
Frame 211
boardLoop = function (mc) {
if (_root.pauza == false) {
if (puppy.hit != true) {
if (Key.isDown(mc.kRi)) {
keyActions("right", mc);
} else if (mc.memRight > 0) {
mc.memRight = mc.memRight - 0.5;
}
if (Key.isDown(mc.kLe)) {
keyActions("left", mc);
} else if (mc.memLeft > 0) {
mc.memLeft = mc.memLeft - 0.5;
}
if (mc.memLeft < 0) {
mc.memLeft = 0;
}
if (mc.memRight < 0) {
mc.memRight = 0;
}
xTravel = mc.memRight - mc.memLeft;
xTravel = xTravel / 2;
mc._x = mc._x + xTravel;
mc._y = mc._y + (mc.memDown - mc.memUp);
if ((mc._x + halfApuppy) > fieldRight) {
mc._x = fieldRight - halfApuppy;
var _local4 = mc.memLeft;
mc.memLeft = mc.memRight;
mc.memRight = _local4;
}
if ((mc._x - halfApuppy) < fieldLeft) {
mc._x = fieldLeft + halfApuppy;
var _local4 = mc.memLeft;
mc.memLeft = mc.memRight;
mc.memRight = _local4;
}
}
var _local3 = 1;
while (_local3 < 3) {
mc["wheel" + _local3]._rotation = mc["wheel" + _local3]._rotation + (scrollSpeed * 2);
_local3++;
}
}
};
Color.prototype.setTint = function (r, g, b, amount) {
var _local2 = new Object();
_local2.ra = (_local2.ga = (_local2.ba = 100 - amount));
var _local3 = amount / 100;
_local2.rb = r * _local3;
_local2.gb = g * _local3;
_local2.bb = b * _local3;
this.setTransform(_local2);
};
puppyLoop = function (mc) {
if (_root.pauza == false) {
if (mc.flashTimer > 0) {
mc.flashTimer--;
if ((mc.flashTimer % 2) == 0) {
mc._visible = false;
} else {
mc._visible = true;
}
} else {
mc._visible = true;
}
if (mc.hit == true) {
if (eersteStuiterCall != true) {
if (Math.random() > 0.5) {
pmin = 1;
} else {
pmin = -1;
}
mc.speedX = -(14 + random(14));
mc.speedY = (6 + random(14)) * pmin;
eersteStuiterCall = true;
}
var _local6 = true;
var _local5 = false;
stuiterMaxim(mc);
} else {
mc._x = board._x;
if (Key.isDown(mc.kUp)) {
keyActions("up", mc);
var _local6 = true;
} else if (Key.isDown(mc.kDown)) {
var _local6 = false;
var _local5 = true;
} else {
var _local6 = false;
}
if ((mc._y < afzetHoogte) || (mc.bounce == true)) {
mc.memUp = mc.memUp - 1;
}
if ((mc._y > afzetHoogte) && (mc._y < fieldBottom)) {
mc.memUp = mc.memUp - 1;
}
if (mc._y <= afzetHoogte) {
puppy.midair = true;
} else {
puppy.midair = false;
}
if (puppy.ySpeed > 5) {
if (puppy.ySpeed > 10) {
var _local4 = 2;
} else {
var _local4 = 1;
}
} else {
var _local4 = null;
}
if (turnAfterCatch > 1) {
turnAfterCatch--;
} else {
turnPup = false;
}
var _local3 = null;
if (turnPup != true) {
if (turnAfterCatch > 1) {
if (puppy.midair != true) {
if ((mc.memUp < 1) && (mc.memUp > -1)) {
turnPup = true;
turnAfterCatch = 40;
}
}
}
}
_local3 = null;
if (puppy.midair == true) {
_local3 = 3;
if (_local4 == 1) {
_local3 = 4;
} else if (_local4 == 2) {
_local3 = 5;
}
} else if (turnPup != true) {
_local3 = 1;
} else {
_local3 = 8;
}
if ((_local5 == true) && (puppy.midair == false)) {
_local3 = 6;
}
if (_local6 == true) {
if (puppy._y > (fieldBottom - 35)) {
_local3 = 2;
if (turnAfterCatch > 0) {
turnAfterCatch = 0;
}
turnPup = false;
} else if (puppy.midair == false) {
_local3 = 3;
}
}
if ((mc._currentframe != _local3) && (_local3 != null)) {
mc.gotoAndStop(_local3);
}
if (((mc._y > board._y) && (board._y == fieldBottom)) && (mc.memUp < -2)) {
board.bounce = false;
stuiterBoard(board, 0, mc.memUp / 8);
}
if (mc._y > fieldBottom) {
frisBeeCaught = false;
bounceBoard = true;
mc._y = fieldBottom;
mc.memUp = mc.memUp * -0.34;
}
if (mc._y > afzetHoogte) {
if (Math.abs(mc.memUp) < 0.5) {
mc.memUp = 0;
}
}
mc._y = mc._y + (-mc.memUp);
}
}
};
puppyHittests = function (optionCookiesOnly) {
if (_root.pauza == false) {
for (var _local6 in cookieContainer) {
var _local2 = cookieContainer[_local6];
if (puppy.hittest.hitTest(_local2._x, _local2._y)) {
var _local5 = _local2._currentframe;
_local2.removeMovieClip();
cookiesCaught = cookiesCaught + _local5;
if (_root.sunet == true) {
bark.start();
}
tailSpeed = tailSpeed - 3;
if (tailSpeed < 2) {
tailSpeed = 2;
}
turnAfterCatch = 5000;
}
}
if (optionCookiesOnly != true) {
for (var _local6 in logContainer) {
var _local3 = logContainer[_local6];
if (puppy.hittest.hitTest(_local3._x, _local3._y, true)) {
puppy.hit = true;
puppy.gotoAndStop(4);
var _local4 = puppyContainer.attachMovie("mcSter", "mcSter", puppyContainer.getNextHighestDepth());
_local4._x = _local3._x;
_local4._y = _local3._y;
if (_root.sunet == true) {
loghit.start();
loghit2.start();
}
}
}
}
}
};
animPuppy = function () {
if (_root.pauza == false) {
if (puppy.xSpeed > 0) {
var _local3 = 2.4;
var _local2 = 1;
} else {
var _local3 = 1;
var _local2 = 3;
}
puppy.leftEar._rotation = puppy.xSpeed * _local3;
puppy.rightEar._rotation = puppy.xSpeed * _local2;
if (puppy.tail._rotation > 24) {
puppy.tailrot = -1;
} else if (puppy.tail._rotation < -24) {
puppy.tailrot = 1;
}
puppy.tail._rotation = puppy.tail._rotation + (puppy.tailrot * (10 - tailSpeed));
}
};
attachPuppy = function () {
if (_root.pauza == false) {
shadow = puppyContainer.attachMovie("mcShadow", "mcShadow", 0);
board = puppyContainer.attachMovie("mcBoard", "mcBoard", 1);
puppy = puppyContainer.attachMovie("mcPuppy", "mcPuppy", 2);
shadow._y = fieldBottom;
}
};
callEnd = function () {
if (_root.pauza == false) {
callEndCalled = true;
eindeSpel = true;
hudText();
var e = main.attachMovie("gameOver", "gameOver", main.getNextHighestDepth());
_root.gameMenu.removeMovieClip();
e._x = sW / 2;
e._y = -1000;
e.telTotAnyKey = 0;
e.xElas = 0;
e.yElas = 0;
e.onEnterFrame = function () {
if (_root.pauza == false) {
e.telTotAnyKey++;
moveElas(this, this._x, 80, 0.4, 0.2);
if (e.anyKeyAttached != true) {
if (e.telTotAnyKey >= 28) {
e.anyKeyAttached = true;
e.anyKey._visible = true;
}
}
}
};
var _local3 = cookiesCaught;
e.caught = ("You have scored " + _local3) + " points";
var _local4;
if (_local3 < 15) {
_local4 = "that is not very good, better luck next time";
} else if (_local3 < 30) {
_local4 = "reasonable score, but try to improve on it next time";
} else if (_local3 < 50) {
_local4 = "that is quite good, still room for improvement though";
} else if (_local3 < 70) {
_local4 = "that is a good score !";
} else if (_local3 < 90) {
_local4 = "that is a very good score !!";
} else if (_local3 < 120) {
_local4 = "that is a great score !!!";
} else {
_local4 = "you are a fantastic player !!!!!";
}
e.rating = _local4;
e.gotomain.onRelease = function () {
gotoMainMenu();
};
}
};
gotoMainMenu = function () {
_root.gameMenu.removeMovieClip();
Key.removeListener(LuisterToets);
clearInterval(oneSecInt);
clearInterval(fourSecInt);
var _local2 = 100000 /* 0x0186A0 */;
while (_local2--) {
clearInterval(_local2);
}
main.removeMovieClip();
clearVars();
root.gotoAndPlay("coperta");
};
listenToAnyKey = function () {
if (_root.pauza == false) {
LuisterToets = new Object();
LuisterToets.onKeyDown = function () {
if (gameStarted != true) {
startGame();
gameStarted = true;
main.mcPressAnyKey.removeMovieClip();
}
Key.removeListener(LuisterToets);
};
Key.addListener(LuisterToets);
}
};
clearVarsAndStartOver = function () {
clearInterval(oneSecInt);
clearInterval(fourSecInt);
main.removeMovieClip();
gameStarted = false;
start();
};
anyKeyToContinue = function () {
LuisterToets = new Object();
LuisterToets.onKeyDown = function () {
Key.removeListener(LuisterToets);
clearVarsAndStartOver();
};
Key.addListener(LuisterToets);
};
pressAnyKey = function () {
var _local2 = main.attachMovie("mcPressAnyKey", "mcPressAnyKey", main.getNextHighestDepth());
_local2._x = sW / 2;
_local2._y = -1000;
_local2.xElas = 0;
_local2.yElas = 0;
_local2.onEnterFrame = function () {
moveElas(this, this._x, 40, 0.4, 0.2);
};
listenToAnyKey();
};
attachMcExit = function () {
var _local1 = main.attachMovie("mcExit", "mcExit", main.getNextHighestDepth());
_local1._x = sW;
_local1._y = sH;
_local1.onRelease = function () {
gotoMainMenu();
};
};
firstBackGrounds = function () {
if (_root.pauza == false) {
var _local5 = 0;
while (_local5 < 6) {
var _local8 = zandContainer.getNextHighestDepth();
var _local6 = zandContainer.attachMovie("mcZandHeuvels", "mcZandHeuvels" + _local8, _local8);
_local6._x = (80 + (_local5 * 80)) + random(180);
_local6._y = zandHeuvelHeight;
_local6.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 1.2);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
_local5++;
}
var _local8 = fenceContainer.getNextHighestDepth();
var _local10 = fenceContainer.attachMovie("mcFence", "mcFence" + _local8, _local8);
_local10._x = 180 + random(sW - 480);
_local10._y = zandHeuvelHeight;
_local10.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 1.2);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
_local5 = 0;
while (_local5 < 3) {
_local8 = wolkContainer.getNextHighestDepth();
var _local7 = wolkContainer.attachMovie("mcWolkenVer", "mcWolkenVer" + _local8, _local8);
_local7._x = (100 + (_local5 * 160)) + random(180);
_local7._y = 190 + random(40);
_local7.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 12);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
_local5++;
}
_local5 = 0;
while (_local5 < 3) {
_local8 = wolkContainer.getNextHighestDepth();
var _local3 = wolkContainer.attachMovie("mcWolken", "mcWolken" + _local8, _local8);
_local3._x = (60 + (_local5 * 220)) + random(300);
_local3._y = 40 + random(200);
_local3.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 8);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
_local5++;
}
_local5 = 0;
while (_local5 < 3) {
_local8 = zeeContainer.getNextHighestDepth();
var _local4 = zeeContainer.attachMovie("zeeMcs", "zeeMcs" + _local8, _local8);
_local4._x = (60 + (_local5 * 160)) + random(160);
var _local9 = random(84);
var scrollExtra = ((8 + ((_local9 / 10) * 4)) / 3);
_local4._y = zandHeuvelHeight - _local9;
_local4.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / scrollExtra);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
_local5++;
}
}
};
scrollBackgrounds = function () {
if (_root.pauza == false) {
logCounter = logCounter - scrollFactor;
fenceCounter = fenceCounter - scrollFactor;
zandCounter = zandCounter - scrollFactor;
wolkVerCounter = wolkVerCounter - scrollFactor;
wolkCounter = wolkCounter - scrollFactor;
zeeCounter = zeeCounter - scrollFactor;
cookieCounter = cookieCounter - scrollFactor;
noCookieCounter = noCookieCounter - scrollFactor;
if (puppy.hit != true) {
if (cookieCounter <= 0) {
if ((noCookieCounter <= 0) && (logCounter > 20)) {
cookieCounter = (random(280) + 30) / (1 + ((scrollFactor - 1) * 7));
var _local12 = cookieContainer.getNextHighestDepth();
var _local8 = cookieContainer.attachMovie("mcCookies", "mcCookies" + _local12, _local12);
_local8._x = sW + (_local8._width / 2);
_local8._y = 20 + random(200);
_local8.onEnterFrame = function () {
this._x = this._x - scrollSpeed;
if ((this._x + (this._width / 2)) < 0) {
this.removeMovieClip();
}
};
}
}
}
if (logCounter <= 0) {
logCounter = (random(100) + 40) * longRandom;
noCookieCounter = 20;
var _local14 = Math.random();
if (_local14 > 0.16) {
var _local12 = logContainer.getNextHighestDepth();
var _local3 = logContainer.attachMovie("mcLog", "mcLog" + _local12, _local12);
_local3._x = sW + (_local3._width / 2);
_local3._y = 100 + random(200);
_local3.onEnterFrame = function () {
this._x = this._x - scrollSpeed;
if ((this._x + (this._width / 2)) < 0) {
this.removeMovieClip();
}
};
} else if (_local14 < 0.06) {
var _local12 = logContainer.getNextHighestDepth();
var _local4 = logContainer.attachMovie("mcBulldog", "mcBulldog" + _local12, _local12);
_local4._x = sW + (_local4._width / 2);
_local4._y = padHoogte - (_local4._height / 2);
_local4.onEnterFrame = function () {
this._x = this._x - scrollSpeed;
if ((this._x + (this._width / 2)) < 0) {
this.removeMovieClip();
}
};
} else {
var _local12 = logContainer.getNextHighestDepth();
var _local3 = logContainer.attachMovie("mcBal", "mcBal" + _local12, _local12);
var _local11 = fenceContainer.attachMovie("mcBallShade", "mcBallShade" + _local12, fenceContainer.getNextHighestDepth());
_local3._x = (sW + random(600)) + (_local3._width / 2);
_local3._y = random(100);
_local11._x = _local3._x;
_local11._y = padHoogte;
_local3.speedY = 0;
_local3.shade = _local11;
_local3.onEnterFrame = function () {
stuiterBal(this, 8);
this._x = this._x - ((scrollSpeed / 2) + 4);
var _local2 = Math.abs(fieldBottom - this._y) / 3;
this.shade._xscale = 100 + _local2;
this.shade._yscale = this.shade._xscale;
this.shade._x = this._x;
if ((this._x + (this._width / 2)) < 0) {
this.shade.removeMovieClip();
this.removeMovieClip();
}
};
}
}
if (zandCounter <= 0) {
zandCounter = random(20) + 5;
var _local12 = zandContainer.getNextHighestDepth();
var _local9 = zandContainer.attachMovie("mcZandHeuvels", "mcZandHeuvels" + _local12, _local12);
_local9._x = sW + _local9._width;
_local9._y = zandHeuvelHeight;
_local9.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 1.2);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
}
if (fenceCounter <= 0) {
fenceCounter = random(80) + 80;
var _local12 = fenceContainer.getNextHighestDepth();
var _local5 = fenceContainer.attachMovie("mcFence", "mcFence" + _local12, _local12);
_local5._x = sW + _local5._width;
_local5._y = zandHeuvelHeight;
_local5.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 1.2);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
}
if (wolkVerCounter <= 0) {
wolkVerCounter = random(240) + 140;
var _local12 = wolkContainer.getNextHighestDepth();
var _local10 = wolkContainer.attachMovie("mcWolkenVer", "mcWolkenVer" + _local12, _local12);
_local10._x = sW + _local10._width;
_local10._y = 190 + random(40);
_local10.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 12);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
}
if (wolkCounter <= 0) {
wolkCounter = random(240) + 100;
var _local12 = wolkContainer.getNextHighestDepth();
var _local6 = wolkContainer.attachMovie("mcWolken", "mcWolken" + _local12, _local12);
_local6._x = sW + _local6._width;
_local6._y = 40 + random(200);
_local6.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / 8);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
}
if (zeeCounter <= 0) {
zeeCounter = random(140) + 20;
var _local12 = zeeContainer.getNextHighestDepth();
var _local7 = zeeContainer.attachMovie("zeeMcs", "zeeMcs" + _local12, _local12);
_local7._x = sW + _local7._width;
var _local13 = random(84);
var scrollExtra = ((8 + ((_local13 / 10) * 4)) / 3);
_local7._y = zandHeuvelHeight - _local13;
_local7.onEnterFrame = function () {
this._x = this._x - (scrollSpeed / scrollExtra);
if ((this._x + this._width) < 0) {
this.removeMovieClip();
}
};
}
}
};
init = function () {
if (_root.pauza == false) {
root = this;
main = this.createEmptyMovieClip("gameContainer", 0);
zee = main.attachMovie("mcZee", "mcZee", 0);
zeeContainer = main.createEmptyMovieClip("zeeContainer", 1);
wolkContainer = main.createEmptyMovieClip("wolkContainer", 2);
zand = main.attachMovie("mcZand", "mcZand", 3);
fenceContainer = main.createEmptyMovieClip("fenceContainer", 4);
zandContainer = main.createEmptyMovieClip("zandContainer", 5);
logContainer = main.createEmptyMovieClip("logContainer", 6);
cookieContainer = main.createEmptyMovieClip("cookieContainer", 7);
puppyContainer = main.createEmptyMovieClip("puppyContainer", 8);
hud = main.attachMovie("mcHud", "mcHud", 9);
initSFX();
gameStarted = false;
callEndCalled = false;
maxTime = 120;
fieldRight = 600;
fieldBottom = 380;
fieldLeft = 0;
fieldTop = 0;
afzetHoogte = 300;
attachPuppy();
halfApuppy = puppy._width / 2;
board._y = fieldBottom;
puppy._y = fieldBottom;
gravity = 5;
sW = 600;
sH = 400;
puppy._x = sW / 2;
board._x = sW / 2;
shadow._x = sW / 2;
zee._width = sW;
zee._y = sH - zand._height;
zand._width = sW;
zand._y = sH;
zandHeuvelHeight = zand._y - zand._height;
padHoogte = sH - 30;
hud.frisbee._visible = false;
board.memRight = 0;
board.memLeft = 0;
board.kRi = 39;
board.kLe = 37;
puppy.kUp = 38;
puppy.kDown = 40;
puppy.memUp = 0;
puppy.memDown = 0;
puppy.tailrot = 1;
tailSpeed = 2 + random(7);
puppy.hit = false;
cookiesCaught = 0;
eindeSpel = false;
eersteStuiterCall = false;
puppy.immuun = 0;
scrollSpeedIni = 10;
scrollSpeed = 0;
fenceCounter = random(100);
logCounter = 60 + random(120);
zandCounter = random(120);
wolkVerCounter = random(60);
wolkCounter = random(80);
zeeCounter = random(40);
cookieCounter = random(120);
maxims = 5;
longRandom = 1;
turnAfterCatch = 0;
countScrollPlus = 0;
}
};
startGame = function () {
if (_root.pauza == false) {
Key.removeListener(LuisterToets);
if (gameStarted != true) {
scrollSpeed = 11;
beginTime = getTimer();
oneSecInt = setInterval(everySec, 1000);
fourSecInt = setInterval(everyFourSec, 4000);
main.onEnterFrame = function () {
mainLoop();
};
hudText();
hud.frisbee._visible = true;
}
}
};
setScrollSpeed = function () {
if (_root.pauza == false) {
if (_root.end == false) {
scrollFactor = scrollSpeed / scrollSpeedIni;
countScrollPlus++;
if (puppy.hit == true) {
if (puppy.memScrollSpeed == null) {
puppy.memScrollSpeed = scrollSpeed;
}
scrollSpeed = scrollSpeed * 0.98;
if (scrollSpeed < 4) {
if (maxims > 0) {
maxims--;
turnAfterCatch = 0;
eersteStuiterCall = null;
puppy.hit = false;
puppy.gotoAndStop(1);
puppy._x = board._x;
puppy._y = fieldBottom;
scrollSpeed = puppy.memScrollSpeed;
puppy.memScrollSpeed = null;
puppy.immuun = 46;
puppy.flashTimer = 46;
} else {
scrollSpeed = 0;
if (callEndCalled != true) {
callEnd();
}
}
}
} else if (countScrollPlus >= 150) {
scrollSpeed = scrollSpeed + 0.3;
countScrollPlus = 0;
}
}
}
};
mainLoop = function () {
if (_root.pauza == false) {
boardLoop(board);
puppyLoop(puppy);
shadow._x = board._x;
measureSpeed();
animPuppy();
puppy.immuun--;
if ((eindeSpel != true) && (puppy.hit != true)) {
if (puppy.immuun >= 0) {
puppyHittests(true);
} else {
puppyHittests();
}
}
if (_root.pauza == false) {
scrollBackgrounds();
setScrollSpeed();
}
}
};
start = function () {
init();
attachStopLoop();
attachMcExit();
pressAnyKey();
firstBackGrounds();
};
keyActions = function (toets, mc) {
if (_root.pauza == false) {
var _local4 = 30;
if (puppy.midair == true) {
var _local5 = 0.12;
} else {
var _local5 = 0.5;
}
switch (toets) {
case "right" :
if (mc.memRight < _local4) {
mc.memRight = mc.memRight + _local5;
}
break;
case "left" :
if (mc.memLeft < _local4) {
mc.memLeft = mc.memLeft + _local5;
}
break;
case "up" :
var _local3;
((mc._y > afzetHoogte) ? (_local3 = 3) : (_local3 = 0));
if (mc.memUp < 0) {
_local3 = 0;
}
if (mc.memUp < _local4) {
mc.memUp = mc.memUp + _local3;
}
break;
case "down" :
}
}
};
stuiterMc = function (mc, dx, dy) {
if (_root.pauza == false) {
this=mc;//parameter overwritten
this.speedY = this.speedY + 1;
this.speedX = this.speedX * 0.96;
this._y = this._y + this.speedY;
this._x = this._x + this.speedX;
if (this._y > fieldBottom) {
this._y = fieldBottom;
this.speedY = this.speedY * -0.24;
}
}
};
stuiterMaxim = function (mc) {
if (_root.pauza == false) {
this=mc;//parameter overwritten
this.speedY = this.speedY + 1;
this.speedX = this.speedX * 0.98;
this._y = this._y + this.speedY;
this._x = this._x + this.speedX;
if (this._y > fieldBottom) {
this._y = fieldBottom;
this.speedY = this.speedY * -0.94;
}
}
};
stuiterBal = function (mc, dy) {
if (_root.pauza == false) {
this=mc;//parameter overwritten
this.speedY = this.speedY + 1;
this._y = this._y + this.speedY;
if (this._y > (fieldBottom - (this._height / 2))) {
this._y = fieldBottom - (this._height / 2);
this.speedY = this.speedY * -0.94;
}
}
};
stuiterBoard = function (mc, dx, dy) {
if (_root.pauza == false) {
this=mc;//parameter overwritten
if (this.bounce != true) {
mc.speedX = dx;
mc.speedY = dy;
}
this.bounce = true;
mc.onEnterFrame = function () {
if (_root.pauza == false) {
this.speedY = this.speedY + 0.5;
this.speedX = this.speedX * 0.96;
this._y = this._y + this.speedY;
this._x = this._x + this.speedX;
if (this._y > fieldBottom) {
this._y = fieldBottom;
this.speedY = this.speedY * -0.44;
}
}
};
}
};
measureSpeed = function () {
if (_root.pauza == false) {
puppy.xSpeed = puppy._x - puppy.memX;
puppy.memX = puppy._x;
puppy.ySpeed = puppy._y - puppy.memY;
puppy.memY = puppy._y;
}
};
hudText = function () {
if (_root.pauza == false) {
hud.caught = cookiesCaught;
hud.maxims = maxims;
}
};
everySec = function () {
if (_root.pauza == false) {
if (tailSpeed < 8) {
tailSpeed = tailSpeed + 0.5;
}
if (eindeSpel != true) {
hudText();
}
}
};
everyFourSec = function () {
if (_root.pauza == false) {
longRandom = 1 - (Math.random() / 2);
}
};
moveElas = function (mc, doelx, doely, inertia, k) {
if (_root.pauza == false) {
mc.move = true;
var _local4 = doelx;
var _local3 = doely;
_local4 = (-mc._x) + _local4;
_local3 = (-mc._y) + _local3;
mc.xElas = (mc.xElas * inertia) + (_local4 * k);
mc.yElas = (mc.yElas * inertia) + (_local3 * k);
mc._x = mc._x + mc.xElas;
mc._y = mc._y + mc.yElas;
if ((Math.abs(mc.xElas) < 0.1) && (Math.abs(mc.yElas) < 0.1)) {
mc.move = false;
}
}
};
stopLoop = function () {
if (_root.pauza == false) {
music.stop();
_global.loopPlaying = false;
}
};
startLoop = function () {
if (_root.pauza == false) {
if (this.sound == null) {
trace("maak soundconatiner");
sound = this.createEmptyMovieClip("sound", 6);
}
sound.createEmptyMovieClip("loop", 0);
music = new Sound(sound.loop);
music.attachSound("loop");
music.start(0, 0);
music.onSoundComplete = function () {
this.start(0, 0);
};
_global.loopPlaying = true;
}
};
initSFX = function () {
if (_root.pauza == false) {
sound.createEmptyMovieClip("sfx", 1);
bark = new Sound(sound.sfx);
bark.attachSound("bark");
loghit = new Sound(sound.sfx);
loghit.attachSound("boing");
loghit.setVolume(50);
sound.createEmptyMovieClip("sfx2", 2);
loghit2 = new Sound(sound.sfx2);
loghit2.attachSound("loghit2");
loghit2.setVolume(40);
}
};
_root.end = false;
_root.sunet = true;
_root.pauza = false;
_root.play();
Instance of Symbol 404 MovieClip "gameMenu" in Frame 211
//component parameters
onClipEvent (construct) {
wxnume = "MaximsSeaSideAdventure";
wxaliniere = "Dreapta-Jos";
wxculoare = 88173 /* 0x01586D */;
wxdownload = true;
wxpause = true;
wxsound = true;
}
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 408 MovieClip "pauzza" in Frame 211
onClipEvent (load) {
this._visible = false;
}
Frame 212
stop();
if ((_global.loopPlaying != true) && (_global.noSound != true)) {
startLoop();
}
menu = this.attachMovie("mcMainMenu", "menu", 0);
menu.start_game.onRelease = function () {
start();
};
Frame 213
removeMovieClip(_root.xxc1);
removeMovieClip(_root.xxc2);
removeMovieClip(_root.xxc3);
removeMovieClip(_root.xxc4);
stopAllSounds();
Frame 214
_root.menu.removeMovieClip();
_root.gameid = "MaximsSeaSideAdventure";
_root.best = _global.scor;
_global.scor = 0;
_root.updated = 0;
_root.done = 0;
done = 0;
i = 1;
while (i <= 100) {
_root["score" + i] = null;
_root["name" + i] = null;
_root["escore" + i] = null;
_root["ename" + i] = null;
i++;
}
Frame 216
cale = "http://www.freeonlinegames.com/scoreboard/score.php?game=" + _root.gameid;
loadVariablesNum (cale, 0, "POST");
Frame 217
if (false) {
}
Frame 224
if (done != 1) {
gotoAndPlay ("loopLoad");
} else {
gotoAndPlay ("scoreTable");
}
Frame 228
monthnume = new Array();
monthscor = new Array();
i = 1;
while (i <= 100) {
monthnume[i] = _root["name" + i];
monthscor[i] = Number(_root["score" + i].slice(0, _root["score" + i].length - 1));
i++;
}
evernume = new Array();
everscor = new Array();
i = 1;
while (i <= 100) {
evernume[i] = _root["ename" + i];
everscor[i] = Number(_root["escore" + i].slice(0, _root["escore" + i].length - 1));
i++;
}
Frame 229
stop();
if (_root.best > everscor[100]) {
scoreWind.gotoAndStop("submitScoreYes");
} else {
scoreWind.gotoAndStop("submitScoreNo");
}
if (_root.xdada == 1) {
scoreWind.gotoAndStop("topEver");
}
Symbol 7 MovieClip [FUIComponentSymbol] Frame 1
#initclip 1
function FUIComponentClass() {
this.init();
}
FUIComponentClass.prototype = new MovieClip();
FUIComponentClass.prototype.init = function () {
this.enable = true;
this.focused = false;
this.useHandCursor = false;
this._accImpl = new Object();
this._accImpl.stub = true;
this.styleTable = new Array();
if (_global.globalStyleFormat == undefined) {
_global.globalStyleFormat = new FStyleFormat();
globalStyleFormat.isGlobal = true;
_global._focusControl = new Object();
_global._focusControl.onSetFocus = function (oldFocus, newFocus) {
oldFocus.myOnKillFocus();
newFocus.myOnSetFocus();
};
Selection.addListener(_global._focusControl);
}
if (this._name != undefined) {
this._focusrect = false;
this.tabEnabled = true;
this.focusEnabled = true;
this.tabChildren = false;
this.tabFocused = true;
if (this.hostStyle == undefined) {
globalStyleFormat.addListener(this);
} else {
this.styleTable = this.hostStyle;
}
this.deadPreview._visible = false;
this.deadPreview._width = (this.deadPreview._height = 1);
this.methodTable = new Object();
this.keyListener = new Object();
this.keyListener.controller = this;
this.keyListener.onKeyDown = function () {
this.controller.myOnKeyDown();
};
this.keyListener.onKeyUp = function () {
this.controller.myOnKeyUp();
};
for (var _local3 in this.styleFormat_prm) {
this.setStyleProperty(_local3, this.styleFormat_prm[_local3]);
}
}
};
FUIComponentClass.prototype.setEnabled = function (enabledFlag) {
this.enable = ((arguments.length > 0) ? (enabledFlag) : true);
this.tabEnabled = (this.focusEnabled = enabledFlag);
if ((!this.enable) && (this.focused)) {
Selection.setFocus(undefined);
}
};
FUIComponentClass.prototype.getEnabled = function () {
return(this.enable);
};
FUIComponentClass.prototype.setSize = function (w, h) {
this.width = w;
this.height = h;
this.focusRect.removeMovieClip();
};
FUIComponentClass.prototype.setChangeHandler = function (chng, obj) {
this.handlerObj = ((obj == undefined) ? (this._parent) : (obj));
this.changeHandler = chng;
};
FUIComponentClass.prototype.invalidate = function (methodName) {
this.methodTable[methodName] = true;
this.onEnterFrame = this.cleanUI;
};
FUIComponentClass.prototype.cleanUI = function () {
if (this.methodTable.setSize) {
this.setSize(this.width, this.height);
} else {
this.cleanUINotSize();
}
this.methodTable = new Object();
delete this.onEnterFrame;
};
FUIComponentClass.prototype.cleanUINotSize = function () {
for (var _local2 in this.methodTable) {
this[_local2]();
}
};
FUIComponentClass.prototype.drawRect = function (x, y, w, h) {
var _local4 = this.styleTable.focusRectInner.value;
var _local5 = this.styleTable.focusRectOuter.value;
if (_local4 == undefined) {
_local4 = 16777215 /* 0xFFFFFF */;
}
if (_local5 == undefined) {
_local5 = 0;
}
this.createEmptyMovieClip("focusRect", 1000);
this.focusRect.controller = this;
this.focusRect.lineStyle(1, _local5);
this.focusRect.moveTo(x, y);
this.focusRect.lineTo(x + w, y);
this.focusRect.lineTo(x + w, y + h);
this.focusRect.lineTo(x, y + h);
this.focusRect.lineTo(x, y);
this.focusRect.lineStyle(1, _local4);
this.focusRect.moveTo(x + 1, y + 1);
this.focusRect.lineTo((x + w) - 1, y + 1);
this.focusRect.lineTo((x + w) - 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, (y + h) - 1);
this.focusRect.lineTo(x + 1, y + 1);
};
FUIComponentClass.prototype.pressFocus = function () {
this.tabFocused = false;
this.focusRect.removeMovieClip();
Selection.setFocus(this);
};
FUIComponentClass.prototype.drawFocusRect = function () {
this.drawRect(-2, -2, this.width + 4, this.height + 4);
};
FUIComponentClass.prototype.myOnSetFocus = function () {
this.focused = true;
Key.addListener(this.keyListener);
if (this.tabFocused) {
this.drawFocusRect();
}
};
FUIComponentClass.prototype.myOnKillFocus = function () {
this.tabFocused = true;
this.focused = false;
this.focusRect.removeMovieClip();
Key.removeListener(this.keyListener);
};
FUIComponentClass.prototype.executeCallBack = function () {
this.handlerObj[this.changeHandler](this);
};
FUIComponentClass.prototype.updateStyleProperty = function (styleFormat, propName) {
this.setStyleProperty(propName, styleFormat[propName], styleFormat.isGlobal);
};
FUIComponentClass.prototype.setStyleProperty = function (propName, value, isGlobal) {
if (value == "") {
return(undefined);
}
var _local17 = parseInt(value);
if (!isNaN(_local17)) {
value = _local17;
}
var _local16 = ((arguments.length > 2) ? (isGlobal) : false);
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].useGlobal || (!_local16)) {
this.styleTable[propName].value = value;
if (this.setCustomStyleProperty(propName, value)) {
} else if (propName == "embedFonts") {
this.invalidate("setSize");
} else if (propName.subString(0, 4) == "text") {
if (this.textStyle == undefined) {
this.textStyle = new TextFormat();
}
var _local18 = propName.subString(4, propName.length);
this.textStyle[_local18] = value;
this.invalidate("setSize");
} else {
for (var _local15 in this.styleTable[propName].coloredMCs) {
var _local4 = new Color(this.styleTable[propName].coloredMCs[_local15]);
if (this.styleTable[propName].value == undefined) {
var _local5 = {ra:"100", rb:"0", ga:"100", gb:"0", ba:"100", bb:"0", aa:"100", ab:"0"};
_local4.setTransform(_local5);
} else {
_local4.setRGB(value);
}
}
}
this.styleTable[propName].useGlobal = _local16;
}
};
FUIComponentClass.prototype.registerSkinElement = function (skinMCRef, propName) {
if (this.styleTable[propName] == undefined) {
this.styleTable[propName] = new Object();
this.styleTable[propName].useGlobal = true;
}
if (this.styleTable[propName].coloredMCs == undefined) {
this.styleTable[propName].coloredMCs = new Object();
}
this.styleTable[propName].coloredMCs[skinMCRef] = skinMCRef;
if (this.styleTable[propName].value != undefined) {
var _local4 = new Color(skinMCRef);
_local4.setRGB(this.styleTable[propName].value);
}
};
_global.FStyleFormat = function () {
this.nonStyles = {listeners:true, isGlobal:true, isAStyle:true, addListener:true, removeListener:true, nonStyles:true, applyChanges:true};
this.listeners = new Object();
this.isGlobal = false;
if (arguments.length > 0) {
for (var _local3 in arguments[0]) {
this[_local3] = arguments[0][_local3];
}
}
};
_global.FStyleFormat.prototype = new Object();
FStyleFormat.prototype.addListener = function () {
var _local3 = 0;
while (_local3 < arguments.length) {
var _local4 = arguments[_local3];
this.listeners[arguments[_local3]] = _local4;
for (var _local5 in this) {
if (this.isAStyle(_local5)) {
_local4.updateStyleProperty(this, _local5.toString());
}
}
_local3++;
}
};
FStyleFormat.prototype.removeListener = function (component) {
this.listeners[component] = undefined;
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
if (component.styleTable[_local4].useGlobal == this.isGlobal) {
component.styleTable[_local4].useGlobal = true;
var _local3 = (this.isGlobal ? undefined : (globalStyleFormat[_local4]));
component.setStyleProperty(_local4, _local3, true);
}
}
}
};
FStyleFormat.prototype.applyChanges = function () {
var _local6 = 0;
for (var _local5 in this.listeners) {
var _local3 = this.listeners[_local5];
if (arguments.length > 0) {
var _local4 = 0;
while (_local4 < arguments.length) {
if (this.isAStyle(arguments[_local4])) {
_local3.updateStyleProperty(this, arguments[_local4]);
}
_local4++;
}
} else {
for (var _local4 in this) {
if (this.isAStyle(_local4)) {
_local3.updateStyleProperty(this, _local4.toString());
}
}
}
}
};
FStyleFormat.prototype.isAStyle = function (name) {
return((this.nonStyles[name] ? false : true));
};
#endinitclip
Symbol 20 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 29 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 38 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 39 MovieClip [UpArrow] Frame 1
stop();
Symbol 39 MovieClip [UpArrow] Frame 2
stop();
Symbol 39 MovieClip [UpArrow] Frame 3
stop();
Symbol 45 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 54 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 59 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(highlight3D_mc, "highlight3D");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
Symbol 60 MovieClip [ScrollThumb] Frame 1
stop();
Symbol 68 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 76 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "arrow");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 84 MovieClip Frame 1
var component = _parent._parent;
component.registerSkinElement(arrow_mc, "foregroundDisabled");
component.registerSkinElement(face_mc, "face");
component.registerSkinElement(shadow_mc, "shadow");
component.registerSkinElement(darkshadow_mc, "darkshadow");
component.registerSkinElement(highlight_mc, "highlight");
component.registerSkinElement(highlight3D_mc, "highlight3D");
Symbol 85 MovieClip [DownArrow] Frame 1
stop();
Symbol 85 MovieClip [DownArrow] Frame 2
stop();
Symbol 85 MovieClip [DownArrow] Frame 3
stop();
Symbol 93 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MaximsSeaSideAdventure", "_blank");
}
Symbol 99 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
Symbol 102 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 110 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 110 MovieClip Frame 2
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 110 MovieClip Frame 3
wxculoarea2 = new Color(but1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 111 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 118 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 118 MovieClip Frame 2
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 118 MovieClip Frame 3
wxculoarea2 = new Color(but2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 119 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wynume;
getURL (targetul3, "_blank");
}
Symbol 122 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 122 MovieClip Frame 2
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 122 MovieClip Frame 3
wxculoarea2 = new Color(but3);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 127 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wynume) + ".exe";
getURL (targetul1);
}
Symbol 128 MovieClip Frame 1
stop();
Symbol 131 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wynume;
getURL (targetul2, "_blank");
}
Symbol 132 MovieClip Frame 1
stop();
Symbol 133 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 140 MovieClip Frame 1
stop();
if (_parent.wyaliniere == "Centru") {
this.gotoAndStop(2);
}
if (_parent.wyaliniere == "Dreapta") {
this.gotoAndStop(3);
}
Symbol 140 MovieClip Frame 2
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 140 MovieClip Frame 3
wxculoarea2 = new Color(but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
Symbol 141 Button
on (release, keyPress "p") {
_parent.instructionsFunction();
}
Symbol 142 MovieClip Frame 1
stop();
Symbol 143 MovieClip Frame 1
function instructionsFunction() {
}
stop();
if ((wyasezare == "Orizontal") && (wyinstructions == false)) {
this.gotoAndStop(2);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(3);
}
if (((wyasezare == "Vertical") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(4);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Sus")) {
this.gotoAndStop(5);
}
if (((wyasezare == "Orizontal") && (wyinstructions == true)) && (wypozitie == "Jos")) {
this.gotoAndStop(6);
}
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 2
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 3
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 4
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 5
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Symbol 143 MovieClip Frame 6
stop();
my_color = new Color(my_mc);
my_color.setRGB(wyculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wynbut1.but1);
wxculoarea3 = new Color(wynbut2.but2);
wxculoarea4 = new Color(wynbut3.but3);
wxculoarea5 = new Color(wynbut4.but4);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3.setTransform(myColorTransform);
wxculoarea4.setTransform(myColorTransform);
wxculoarea5.setTransform(myColorTransform);
Instance of Symbol 99 MovieClip "start_game" in Symbol 144 MovieClip [mcMainMenu] Frame 1
on (release) {
_root.gameMenu._visible = true;
_root.gameMenu.swapDepths(1000);
}
Instance of Symbol 143 MovieClip in Symbol 144 MovieClip [mcMainMenu] Frame 1
//component parameters
onClipEvent (construct) {
wynume = "MaximsSeaSideAdventure";
wyculoare = 88173 /* 0x01586D */;
wyasezare = "Vertical";
wyaliniere = "Stanga";
wypozitie = "Jos";
wyinstructions = false;
}
Symbol 154 MovieClip Frame 1
this._visible = false;
Symbol 156 MovieClip Frame 1
this._visible = false;
Symbol 169 MovieClip [mcPuppy] Frame 1
stop();
Symbol 180 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MaximsSeaSideAdventure", "_blank");
}
Symbol 186 MovieClip [mcHud] Frame 1
this.onEnterFrame = function () {
_global.scor = this.caught;
};
Symbol 193 Button
on (release) {
_root.end = true;
trace("ok");
_root.xdada = 0;
_root.gotoAndPlay("submitScore");
_root.main.removeMovieClip();
}
Symbol 198 MovieClip [gameOver] Frame 1
stop();
Instance of Symbol 143 MovieClip in Symbol 198 MovieClip [gameOver] Frame 1
//component parameters
onClipEvent (construct) {
wynume = "MaximsSeaSideAdventure";
wyculoare = 88173 /* 0x01586D */;
wyasezare = "Vertical";
wyaliniere = "Centru";
wypozitie = "Jos";
wyinstructions = false;
}
Symbol 213 MovieClip [mcStopLoop] Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
Symbol 219 MovieClip [mcExit] Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
Symbol 231 MovieClip [mcLog] Frame 1
this.gotoAndStop(random(3) + 1);
Symbol 244 MovieClip [mcZandHeuvels] Frame 1
this.gotoAndStop(random(6) + 1);
Symbol 249 MovieClip [mcFence] Frame 1
this.gotoAndStop(random(2) + 1);
Symbol 260 MovieClip [mcWolkenVer] Frame 1
this.gotoAndStop(random(5) + 1);
Symbol 269 MovieClip [mcWolken] Frame 1
this.gotoAndStop(random(5) + 1);
Symbol 284 MovieClip [zeeMcs] Frame 1
this.gotoAndStop(random(7) + 1);
Symbol 291 MovieClip [mcBal] Frame 1
this.gotoAndStop(random(3) + 1);
Symbol 294 MovieClip [mcBulldog] Frame 1
trace("bulldog: " + this);
Symbol 301 MovieClip [mcCookies] Frame 1
this.gotoAndStop(random(3) + 1);
Symbol 303 MovieClip [mcSter] Frame 1
this.onEnterFrame = function () {
this._xscale = this._xscale - 20;
this._yscale = this._yscale - 20;
if (this._xscale <= 0) {
this.removeMovieClip();
}
};
Symbol 307 MovieClip Frame 1
var component = _parent;
component.registerSkinElement(track_mc, "scrollTrack");
Symbol 308 MovieClip [FScrollBarSymbol] Frame 1
#initclip 2
FScrollBarClass = function () {
if (this._height == 4) {
return(undefined);
}
this.init();
this.minPos = (this.maxPos = (this.pageSize = (this.largeScroll = 0)));
this.smallScroll = 1;
this.width = (this.horizontal ? (this._width) : (this._height));
this._xscale = (this._yscale = 100);
this.setScrollPosition(0);
this.tabEnabled = false;
if (this._targetInstanceName.length > 0) {
this.setScrollTarget(this._parent[this._targetInstanceName]);
}
this.tabChildren = false;
this.setSize(this.width);
};
FScrollBarClass.prototype = new FUIComponentClass();
FScrollBarClass.prototype.setHorizontal = function (flag) {
if (this.horizontal && (!flag)) {
this._xscale = 100;
this._rotation = 0;
} else if (flag && (!this.horizontal)) {
this._xscale = -100;
this._rotation = -90;
}
this.horizontal = flag;
};
FScrollBarClass.prototype.setScrollProperties = function (pSize, mnPos, mxPos) {
if (!this.enable) {
return(undefined);
}
this.pageSize = pSize;
this.minPos = Math.max(mnPos, 0);
this.maxPos = Math.max(mxPos, 0);
this.scrollPosition = Math.max(this.minPos, this.scrollPosition);
this.scrollPosition = Math.min(this.maxPos, this.scrollPosition);
if ((this.maxPos - this.minPos) <= 0) {
this.scrollThumb_mc.removeMovieClip();
this.upArrow_mc.gotoAndStop(3);
this.downArrow_mc.gotoAndStop(3);
this.downArrow_mc.onPress = (this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = null));
this.upArrow_mc.onPress = (this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = null));
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onRelease = null);
this.scrollTrack_mc.onDragOut = (this.scrollTrack_mc.onRollOut = null);
this.scrollTrack_mc.useHandCursor = false;
} else {
var _local2 = this.getScrollPosition();
this.upArrow_mc.gotoAndStop(1);
this.downArrow_mc.gotoAndStop(1);
this.upArrow_mc.onPress = (this.upArrow_mc.onDragOver = this.startUpScroller);
this.upArrow_mc.onRelease = (this.upArrow_mc.onDragOut = this.stopScrolling);
this.downArrow_mc.onPress = (this.downArrow_mc.onDragOver = this.startDownScroller);
this.downArrow_mc.onRelease = (this.downArrow_mc.onDragOut = this.stopScrolling);
this.scrollTrack_mc.onPress = (this.scrollTrack_mc.onDragOver = this.startTrackScroller);
this.scrollTrack_mc.onRelease = this.stopScrolling;
this.scrollTrack_mc.onDragOut = this.stopScrolling;
this.scrollTrack_mc.onRollOut = this.stopScrolling;
this.scrollTrack_mc.useHandCursor = false;
this.attachMovie("ScrollThumb", "scrollThumb_mc", 3);
this.scrollThumb_mc._x = 0;
this.scrollThumb_mc._y = this.upArrow_mc._height;
this.scrollThumb_mc.onPress = this.startDragThumb;
this.scrollThumb_mc.controller = this;
this.scrollThumb_mc.onRelease = (this.scrollThumb_mc.onReleaseOutside = this.stopDragThumb);
this.scrollThumb_mc.useHandCursor = false;
this.thumbHeight = (this.pageSize / ((this.maxPos - this.minPos) + this.pageSize)) * this.trackSize;
this.thumbMid_mc = this.scrollThumb_mc.mc_sliderMid;
this.thumbTop_mc = this.scrollThumb_mc.mc_sliderTop;
this.thumbBot_mc = this.scrollThumb_mc.mc_sliderBot;
this.thumbHeight = Math.max(this.thumbHeight, 6);
this.midHeight = (this.thumbHeight - this.thumbTop_mc._height) - this.thumbBot_mc._height;
this.thumbMid_mc._yScale = (this.midHeight * 100) / this.thumbMid_mc._height;
this.thumbMid_mc._y = this.thumbTop_mc._height;
this.thumbBot_mc._y = this.thumbTop_mc._height + this.midHeight;
this.scrollTop = this.scrollThumb_mc._y;
this.trackHeight = this.trackSize - this.thumbHeight;
this.scrollBot = this.trackHeight + this.scrollTop;
_local2 = Math.min(_local2, this.maxPos);
this.setScrollPosition(Math.max(_local2, this.minPos));
}
};
FScrollBarClass.prototype.getScrollPosition = function () {
return(this.scrollPosition);
};
FScrollBarClass.prototype.setScrollPosition = function (pos) {
this.scrollPosition = pos;
if (this.scrollThumb_mc != undefined) {
pos = Math.min(pos, this.maxPos);
pos = Math.max(pos, this.minPos);
}
this.scrollThumb_mc._y = (((pos - this.minPos) * this.trackHeight) / (this.maxPos - this.minPos)) + this.scrollTop;
this.executeCallBack();
};
FScrollBarClass.prototype.setLargeScroll = function (lScroll) {
this.largeScroll = lScroll;
};
FScrollBarClass.prototype.setSmallScroll = function (sScroll) {
this.smallScroll = sScroll;
};
FScrollBarClass.prototype.setEnabled = function (enabledFlag) {
var _local3 = this.enable;
if (enabledFlag && (!_local3)) {
this.enable = enabledFlag;
if (this.textField != undefined) {
this.setScrollTarget(this.textField);
} else {
this.setScrollProperties(this.pageSize, this.cachedMinPos, this.cachedMaxPos);
this.setScrollPosition(this.cachedPos);
}
this.clickFilter = undefined;
} else if ((!enabledFlag) && (_local3)) {
this.textField.removeListener(this);
this.cachedPos = this.getScrollPosition();
this.cachedMinPos = this.minPos;
this.cachedMaxPos = this.maxPos;
if (this.clickFilter == undefined) {
this.setScrollProperties(this.pageSize, 0, 0);
} else {
this.clickFilter = true;
}
this.enable = enabledFlag;
}
};
FScrollBarClass.prototype.setSize = function (hgt) {
if (this._height == 1) {
return(undefined);
}
this.width = hgt;
this.scrollTrack_mc._yscale = 100;
this.scrollTrack_mc._yscale = (100 * this.width) / this.scrollTrack_mc._height;
if (this.upArrow_mc == undefined) {
this.attachMovie("UpArrow", "upArrow_mc", 1);
this.attachMovie("DownArrow", "downArrow_mc", 2);
this.downArrow_mc.controller = (this.upArrow_mc.controller = this);
this.upArrow_mc.useHandCursor = (this.downArrow_mc.useHandCursor = false);
this.upArrow_mc._x = (this.upArrow_mc._y = 0);
this.downArrow_mc._x = 0;
}
this.scrollTrack_mc.controller = this;
this.downArrow_mc._y = this.width - this.downArrow_mc._height;
this.trackSize = this.width - (2 * this.downArrow_mc._height);
if (this.textField != undefined) {
this.onTextChanged();
} else {
this.setScrollProperties(this.pageSize, this.minPos, this.maxPos);
}
};
FScrollBarClass.prototype.scrollIt = function (inc, mode) {
var _local3 = this.smallScroll;
if (inc != "one") {
_local3 = ((this.largeScroll == 0) ? (this.pageSize) : (this.largeScroll));
}
var _local2 = this.getScrollPosition() + (mode * _local3);
if (_local2 > this.maxPos) {
_local2 = this.maxPos;
} else if (_local2 < this.minPos) {
_local2 = this.minPos;
}
this.setScrollPosition(_local2);
};
FScrollBarClass.prototype.startDragThumb = function () {
this.lastY = this._ymouse;
this.onMouseMove = this.controller.dragThumb;
};
FScrollBarClass.prototype.dragThumb = function () {
this.scrollMove = this._ymouse - this.lastY;
this.scrollMove = this.scrollMove + this._y;
if (this.scrollMove < this.controller.scrollTop) {
this.scrollMove = this.controller.scrollTop;
} else if (this.scrollMove > this.controller.scrollBot) {
this.scrollMove = this.controller.scrollBot;
}
this._y = this.scrollMove;
var _local2 = this.controller;
_local2.scrollPosition = Math.round(((_local2.maxPos - _local2.minPos) * (this._y - _local2.scrollTop)) / _local2.trackHeight) + _local2.minPos;
this.controller.isScrolling = true;
updateAfterEvent();
this.controller.executeCallBack();
};
FScrollBarClass.prototype.stopDragThumb = function () {
this.controller.isScrolling = false;
this.onMouseMove = null;
};
FScrollBarClass.prototype.startTrackScroller = function () {
this.controller.trackScroller();
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "page", -1);
};
FScrollBarClass.prototype.scrollInterval = function (inc, mode) {
clearInterval(this.scrolling);
if (inc == "page") {
this.trackScroller();
} else {
this.scrollIt(inc, mode);
}
this.scrolling = setInterval(this, "scrollInterval", 35, inc, mode);
};
FScrollBarClass.prototype.trackScroller = function () {
if ((this.scrollThumb_mc._y + this.thumbHeight) < this._ymouse) {
this.scrollIt("page", 1);
} else if (this.scrollThumb_mc._y > this._ymouse) {
this.scrollIt("page", -1);
}
};
FScrollBarClass.prototype.stopScrolling = function () {
this.controller.downArrow_mc.gotoAndStop(1);
this.controller.upArrow_mc.gotoAndStop(1);
clearInterval(this.controller.scrolling);
};
FScrollBarClass.prototype.startUpScroller = function () {
this.controller.upArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", -1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", -1);
};
FScrollBarClass.prototype.startDownScroller = function () {
this.controller.downArrow_mc.gotoAndStop(2);
this.controller.scrollIt("one", 1);
this.controller.scrolling = setInterval(this.controller, "scrollInterval", 500, "one", 1);
};
FScrollBarClass.prototype.setScrollTarget = function (tF) {
if (tF == undefined) {
this.textField.removeListener(this);
delete this.textField[(this.horizontal ? "hScroller" : "vScroller")];
if ((this.textField.hScroller != undefined) && (this.textField.vScroller != undefined)) {
this.textField.unwatch("text");
this.textField.unwatch("htmltext");
}
}
this.textField = undefined;
if (!(tF instanceof TextField)) {
return(undefined);
}
this.textField = tF;
this.textField[(this.horizontal ? "hScroller" : "vScroller")] = this;
this.onTextChanged();
this.onChanged = function () {
this.onTextChanged();
};
this.onScroller = function () {
if (!this.isScrolling) {
if (!this.horizontal) {
this.setScrollPosition(this.textField.scroll);
} else {
this.setScrollPosition(this.textField.hscroll);
}
}
};
this.textField.addListener(this);
this.textField.watch("text", this.callback);
this.textField.watch("htmlText", this.callback);
};
FScrollBarClass.prototype.callback = function (prop, oldVal, newVal) {
clearInterval(this.hScroller.synchScroll);
clearInterval(this.vScroller.synchScroll);
this.hScroller.synchScroll = setInterval(this.hScroller, "onTextChanged", 50);
this.vScroller.synchScroll = setInterval(this.vScroller, "onTextChanged", 50);
return(newVal);
};
FScrollBarClass.prototype.onTextChanged = function () {
if ((!this.enable) || (this.textField == undefined)) {
return(undefined);
}
clearInterval(this.synchScroll);
if (this.horizontal) {
var _local3 = this.textField.hscroll;
this.setScrollProperties(this.textField._width, 0, this.textField.maxhscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxhscroll));
} else {
var _local3 = this.textField.scroll;
var _local2 = this.textField.bottomScroll - this.textField.scroll;
this.setScrollProperties(_local2, 1, this.textField.maxscroll);
this.setScrollPosition(Math.min(_local3, this.textField.maxscroll));
}
};
FScrollBarClass.prototype.executeCallBack = function () {
if (this.textField == undefined) {
super.executeCallBack();
} else if (this.horizontal) {
this.textField.hscroll = this.getScrollPosition();
} else {
this.textField.scroll = this.getScrollPosition();
}
};
Object.registerClass("FScrollBarSymbol", FScrollBarClass);
#endinitclip
Symbol 310 Button
on (release) {
getURL ("http://www.freeonlinegames.com/?MaximsSeaSideAdventure", "_blank");
}
Symbol 314 MovieClip Frame 1
stop();
Symbol 324 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 50
stop();
_parent.play();
Symbol 357 MovieClip Frame 1
stop();
Symbol 357 MovieClip Frame 28
gotoAndPlay ("loop");
Symbol 359 Button
on (release) {
targetul3 = "http://www.freegamesforyourwebsite.com/?" + _parent.wxnume;
getURL (targetul3, "_blank");
}
Symbol 360 Button
on (release) {
targetul2 = "http://www.freeonlinegames.com/?" + _parent.wxnume;
getURL (targetul2, "_blank");
}
Symbol 361 Button
on (release) {
_parent.mainMenuFunction();
}
Symbol 362 Button
on (release) {
targetul1 = ("http://www.freeonlinegames.com/downloads/" + _parent.wxnume) + ".exe";
getURL (targetul1);
}
Symbol 363 Button
on (release, keyPress "p") {
_parent.pauseFunction();
}
Symbol 364 Button
on (release, keyPress "s") {
_parent.soundFunction();
}
Symbol 375 MovieClip Frame 1
stop();
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
_parent.wxbutno = 6;
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == true)) {
this.gotoAndStop(2);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(3);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(4);
_parent.wxbutno = 5;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == true)) {
this.gotoAndStop(5);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == true)) && (_parent.wxsound == false)) {
this.gotoAndStop(6);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == true) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(7);
_parent.wxbutno = 4;
}
if (((_parent.wxdownload == false) && (_parent.wxpause == false)) && (_parent.wxsound == false)) {
this.gotoAndStop(8);
_parent.wxbutno = 3;
}
Symbol 375 MovieClip Frame 2
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 375 MovieClip Frame 3
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 375 MovieClip Frame 4
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 375 MovieClip Frame 5
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 375 MovieClip Frame 6
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 375 MovieClip Frame 7
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 375 MovieClip Frame 8
wxculoarea3 = new Color(but1);
wxculoarea4 = new Color(but2);
wxculoarea5 = new Color(but3);
wxculoarea6 = new Color(but4);
wxculoarea7 = new Color(but5);
wxculoarea8 = new Color(but6);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:_parent.xrtb5, ga:"100", gb:_parent.xgtb5, ba:"100", bb:_parent.xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
wxculoarea4.setTransform(myColorTransform2);
wxculoarea5.setTransform(myColorTransform2);
wxculoarea6.setTransform(myColorTransform2);
wxculoarea7.setTransform(myColorTransform2);
wxculoarea8.setTransform(myColorTransform2);
Symbol 380 Button
on (press) {
_parent.play();
}
Symbol 383 MovieClip Frame 1
stop();
if (_parent.wxaliniere == "Dreapta-Jos") {
this.gotoAndStop(2);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(3);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(5);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(6);
}
if ((_parent.wxaliniere == "Dreapta-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(7);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 6)) {
this.gotoAndStop(4);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 5)) {
this.gotoAndStop(8);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 4)) {
this.gotoAndStop(9);
}
if ((_parent.wxaliniere == "Stanga-Sus") && (_parent.wxbutno == 3)) {
this.gotoAndStop(10);
}
Symbol 383 MovieClip Frame 2
tg._x = 147;
tg._y = 1.1;
Symbol 383 MovieClip Frame 3
tg._x = 147;
tg._y = -174.9;
Symbol 383 MovieClip Frame 4
tg._x = 1.5;
tg._y = -174.9;
Symbol 383 MovieClip Frame 5
tg._x = 147;
tg._y = -152.4;
Symbol 383 MovieClip Frame 6
tg._x = 147;
tg._y = -128.9;
Symbol 383 MovieClip Frame 7
tg._x = 147;
tg._y = -104.9;
Symbol 383 MovieClip Frame 8
tg._x = 1.5;
tg._y = -151.4;
Symbol 383 MovieClip Frame 9
tg._x = 1.5;
tg._y = -128.4;
Symbol 383 MovieClip Frame 10
tg._x = 1.5;
tg._y = -104.9;
Symbol 402 MovieClip Frame 1
stop();
this.onRollOver = function () {
if (_parent._parent._currentframe <= 10) {
_parent._parent.gotoAndPlay(11);
}
};
if (_parent._parent.wxbutno == 5) {
this.gotoAndStop(2);
}
if (_parent._parent.wxbutno == 4) {
this.gotoAndStop(3);
}
if (_parent._parent.wxbutno == 3) {
this.gotoAndStop(4);
}
Symbol 403 MovieClip Frame 1
stop();
if ((_parent.wxaliniere == "Stanga-Sus") || (_parent.wxaliniere == "Dreapta-Sus")) {
this.gotoAndStop(2);
}
Symbol 404 MovieClip Frame 1
function pauseFunction() {
if (_root.pauza == false) {
_root.pauza = true;
_root.pauzza._visible = true;
_root.pauzza.swapDepths(1111);
} else {
_root.pauza = false;
_root.pauzza._visible = false;
}
trace(_root.pauza);
}
function soundFunction() {
if (_root.sunet == true) {
_root.sunet = false;
_root.stopLoop();
} else {
_root.sunet = true;
_root.startLoop();
}
trace(_root.sunet);
}
function mainMenuFunction() {
_root.gotoMainMenu();
}
stop();
wxnguides._alpha = 0;
my_color = new Color(my_mc);
my_color.setRGB(wxculoare);
myValue = my_color.getRGB().toString(16);
trace(myValue.length);
if (myValue.length == 5) {
myValue = "0" + myValue;
}
if (myValue.length == 4) {
myValue = "00" + myValue;
}
if (myValue.length == 3) {
myValue = "000" + myValue;
}
if (myValue.length == 2) {
myValue = "0000" + myValue;
}
if (myValue.length == 1) {
myValue = "00000" + myValue;
}
xtbcolor = myValue;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2)) - 1;
xgtb5 = Number("0x" + xtbcolor.slice(2, 4)) - 1;
xbtb5 = Number("0x" + xtbcolor.slice(4, 6)) - 1;
wxculoarea2 = new Color(wxnmenu.tg);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea2.setTransform(myColorTransform);
wxculoarea3 = new Color(wxnfer);
myColorTransform2 = new Object();
myColorTransform2 = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
wxculoarea3.setTransform(myColorTransform2);
Symbol 404 MovieClip Frame 10
stop();
Symbol 413 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 220);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
i = 1;
while (i <= 30) {
scoresScroll["n" + i].text = _root.monthnume[i];
scoresScroll["s" + i].text = _root.monthscor[i];
i++;
}
Symbol 420 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 725 MovieClip Frame 1
scroll1.setScrollProperties(130, 0, 915);
this.chHand1 = function () {
scoresScroll._y = -(scroll1.getScrollPosition() * 2);
};
scroll1.setChangeHandler("chHand1");
q = 1;
while (q <= 100) {
scoresScroll["n" + q].text = _root.evernume[q];
scoresScroll["s" + q].text = _root.everscor[q];
q++;
}
Instance of Symbol 308 MovieClip [FScrollBarSymbol] "scroll1" in Symbol 725 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
_targetInstanceName = "";
horizontal = false;
}
Symbol 731 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 747 Button
on (release) {
i = 1;
while (i <= 100) {
if (_root.best > _root.monthscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.monthscor[k] = _root.monthscor[k - 1];
_root.monthnume[k] = _root.monthnume[k - 1];
k--;
}
_root.monthscor[i] = _root.best;
_root.monthnume[i] = _root.nickname;
i = 31;
}
i++;
}
i = 1;
while (i <= 100) {
if (_root.best > _root.everscor[i]) {
k = 100;
while (k >= (i + 1)) {
_root.everscor[k] = _root.everscor[k - 1];
_root.evernume[k] = _root.evernume[k - 1];
k--;
}
_root.everscor[i] = _root.best;
_root.evernume[i] = _root.nickname;
i = 31;
}
i++;
}
gotoAndPlay ("submit");
}
Symbol 753 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 757 MovieClip Frame 1
stop();
Symbol 757 MovieClip Frame 9
stop();
Symbol 757 MovieClip Frame 22
stop();
Symbol 757 MovieClip Frame 34
var my_date = new Date();
codul = Math.round(my_date.getTime() / 1000) * _root.best;
cale = (((((("http://www.freeonlinegames.com/scoreboard/update.php?game=" + _root.gameid) + "&name=") + _root.nickname) + "&score=") + _root.best) + "&code=") + codul;
loadVariablesNum (cale, 0, "GET");
gotoAndPlay ("loop");
Symbol 757 MovieClip Frame 45
if (_root.updated != 1) {
gotoAndPlay ("loop");
} else {
_root.best = 0;
_root.score = 0;
_root.xdada = 1;
_root.gotoAndPlay("submitScore");
}