Frame 1
function pmgHandler() {
if (_root.lang == "eng") {
getURL ("http://www.gamesheep.com", "_blank");
} else {
getURL ("http://www.ejocuri.ro", "_blank");
}
}
function atgHandler() {
if (_root.lang == "eng") {
getURL ("http://www.gamesheep.com/free-games-for-website.php", "_blank");
} else {
getURL ("http://www.ejocuri.ro/jocuri-pentru-site.php", "_blank");
}
}
_root.lang = "eng";
instructiuni = "Wako The Hamster is trying to escape from the sewer. Click him to bounce him as high as you can :)";
_root.locatie = _url;
Stage.scaleMode = "noScale";
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
if (_root.lang == "eng") {
var menuItem_cmi = new ContextMenuItem("Play More Games", pmgHandler);
myMenu.customItems.push(menuItem_cmi);
var menuItem_cmi = new ContextMenuItem("Add This Game Your Website", atgHandler);
myMenu.customItems.push(menuItem_cmi);
} else {
var menuItem_cmi = new ContextMenuItem("Mai multe jocuri", pmgHandler);
myMenu.customItems.push(menuItem_cmi);
var menuItem_cmi = new ContextMenuItem("Adauga jocul pe site-ul tau", atgHandler);
myMenu.customItems.push(menuItem_cmi);
}
this.menu = myMenu;
Instance of Symbol 72 MovieClip in Frame 3
//component parameters
onClipEvent (construct) {
instructiuni = "instructiunile jocului";
_root.locked = false;
}
Frame 4
if (_root.lang == "rom") {
_root.locatie = _url;
if (_root.locatie.slice(0, 21) == "http://www.ejocuri.ro") {
play();
} else {
gotoAndPlay ("preloadFinished");
}
} else {
_root.locatie = _url;
if (_root.locatie.slice(0, 24) == "http://www.gamesheep.com") {
play();
} else {
gotoAndPlay ("preloadFinished");
}
}
Instance of Symbol 101 MovieClip in Frame 8
onClipEvent (load) {
this.onPress = function () {
};
}
Frame 9
stageheight = 400;
sunet = 1;
muzica = 1;
s_muzica = new Sound(soundmc);
s_muzica.attachSound("muzica");
s_teava1 = new Sound();
s_teava1.attachSound("teava1");
s_teava2 = new Sound();
s_teava2.attachSound("teava2");
s_teava3 = new Sound();
s_teava3.attachSound("teava3");
s_fat = new Sound();
s_fat.attachSound("fat");
s_icnit1 = new Sound();
s_icnit1.attachSound("icnit1");
s_icnit2 = new Sound();
s_icnit2.attachSound("icnit2");
s_icnit3 = new Sound();
s_icnit3.attachSound("icnit3");
s_peanut = new Sound();
s_peanut.attachSound("peanut");
s_boost = new Sound();
s_boost.attachSound("boost");
s_slow = new Sound();
s_slow.attachSound("slow");
s_window = new Sound();
s_window.attachSound("window");
s_muzica.start(0, 9999);
s_muzica.setVolume(80);
Frame 10
stop();
s_muzica.setVolume(80);
if (_root.lang == "eng") {
startb = "START GAME";
top50 = "TOP 50";
instructions = "INSTRUCTIONS";
playmore = "PLAY MORE GAMES";
addgame = "ADD TO WEBSITE";
} else {
startb = "START JOC";
top50 = "SCORURI";
instructions = "INSTRUCTIUNI";
playmore = "MAI MULTE JOCURI";
addgame = "ADAUGA PE SITE-UL TAU";
}
Frame 11
gotoAndStop ("coperta");
Frame 12
if (_root.lang == "eng") {
clicktolaunchtxt = "CLICK ANYWHERE TO LAUNCH";
gameovertxt = "YOU LOST THE HAMSTER!";
heightbonustxt = "HEIGHT BONUS";
peanutsbonustxt = "PEANUTS BONUS";
finalscoretxt = "FINAL SCORE";
submitscoretxt = "SUBMIT SCORE";
playagaintxt = "PLAY AGAIN";
} else {
clicktolaunchtxt = "CLICK ORIUNDE CA SA PORNESTI";
gameovertxt = "AI PIERDUT HAMSTERUL!";
heightbonustxt = "BONUS INALTIME";
peanutsbonustxt = "BONUS ALUNE";
finalscoretxt = "SCOR FINAL";
submitscoretxt = "TRIMITE SCORUL";
playagaintxt = "JOACA DIN NOU";
}
Frame 14
intertiles = 40;
skytiles = 24;
middletypes = 4;
skytypes = 2;
powertypes = 6;
pudensity = 7;
camelast = (camelastini = 14);
camelastvariation = 14;
gravity = (gravityini = 2);
basespeed = 20;
gamestarted = false;
xfriction = 0.95;
maxrotstep = 40;
rotstepdecay = 0.95;
bufferzone = 100;
tricktypes = 5;
hamsterradius = 30;
P2204 = 0;
L2204 = 0;
launchspeed = 80;
endtime = 12;
power = "none";
left = 86;
right = 466;
tilewidth = 550;
tileheight = 500;
gameended = false;
slowcap = 2;
exit = (intertiles * tileheight) / 100;
function generateTerrain() {
terrain = new Array();
terrain[1] = 1;
i = 2;
while (i <= (intertiles + 1)) {
terrain[i] = 11 + random(middletypes);
i++;
}
terrain[intertiles + 2] = 3;
i = intertiles + 3;
while (i <= ((intertiles + 3) + skytiles)) {
terrain[i] = 21 + random(skytypes);
i++;
}
terrain[(intertiles + 4) + skytiles] = 18;
i = (intertiles + 5) + skytiles;
while (i <= 1000) {
terrain[i] = 19;
i++;
}
powerups = new Array();
powerupsx = new Array();
powerupsy = new Array();
i = 6;
while (i <= 1000) {
var _local1 = random(10 - pudensity);
if (_local1 == 0) {
powerups[i] = random(powertypes) + 1;
powerupsx[i] = (left + 20) + random((right - left) - 40);
powerupsy[i] = 50 + random(tileheight - 100);
i++;
powerups[i] = 0;
} else {
powerups[i] = 0;
}
i++;
}
}
function startGame() {
game.hamster.swapDepths(10000);
s2204 = 0;
timer.gotoAndStop(1);
generateTerrain();
game.hamster.vx = 0;
game.hamster.vy = 0;
game.hamster.xtemp = game.hamster._x;
game.hamster.ytemp = game.hamster._y;
camelast = 5;
timertxt = "";
L2204txt = "-2.26 m";
}
function launch() {
game.hamster.activearea.onPress = function () {
if (_root.sunet == 1) {
var _local3 = random(3) + 1;
_root["s_icnit" + _local3].start();
}
delete _root.game.hamster.onEnterFrame;
var _local4 = random(_root.tricktypes) + 1;
if (_root.power != "fat") {
_root.game.hamster.gotoAndPlay("trick" + _local4);
}
_root.game.hamster.vx = 1.5 * ((_root.game.hamster._x + (4 - random(9))) - _root._xmouse);
_root.game.hamster.vy = (-basespeed) - Math.round(this._ymouse / 2);
_root.game.hamster.rotstep = maxrotstep - random((2 * maxrotstep) + 1);
_root.camelast = _root.camelastini + random(_root.camelastvariation);
if (_root.power == "fat") {
_root.camelast = _root.camelastini;
}
};
if (_root.sunet == 1) {
_root.s_boost.start();
}
_root.game.hamster.gotoAndPlay("boost");
game.hamster.vy = -launchspeed;
gamestarted = true;
}
function moveHamster() {
if (_root.power == "boost") {
placeStars();
if (Math.abs(_root._xmouse - game.hamster._x) > 2) {
var _local2 = (_root._xmouse - game.hamster._x) / Math.abs(_root._xmouse - game.hamster._x);
game.hamster.vx = _local2 * 2;
} else {
game.hamster.vx = 0;
}
if (isNaN(game.hamster.vx)) {
game.hamster.vx = 0;
}
if (Math.abs(game.hamster.vy) < 20) {
_root.power = "none";
}
}
game.hamster.vx = Math.round(game.hamster.vx * 100) / 100;
game.hamster.vy = Math.round(game.hamster.vy * 100) / 100;
game.hamster.xtemp = game.hamster.xtemp + game.hamster.vx;
game.hamster.ytemp = game.hamster.ytemp + game.hamster.vy;
game.hamster.vx = game.hamster.vx * xfriction;
game.hamster.vy = game.hamster.vy + gravity;
game.hamster._rotation = game.hamster._rotation + Math.round(game.hamster.rotstep);
if (game.hamster.rotstep != 0) {
game.hamster.rotstep = game.hamster.rotstep * rotstepdecay;
if (Math.abs(game.hamster.rotstep) < 0.6) {
game.hamster.rotstep = 0;
}
}
}
function checkWalls() {
var _local2 = Math.floor((-(game.hamster.ytemp - tileheight)) / tileheight) + 1;
trace(_local2);
if (((terrain[_local2] < 17) && (terrain[_local2] != null)) && (terrain[_local2] != 3)) {
if ((game.hamster.xtemp - (game.hamster._width / 2)) < left) {
if (_root.sunet == 1) {
var _local4 = random(3) + 1;
_root["s_teava" + _local4].start();
}
game.hamster.xtemp = left + (game.hamster._width / 2);
game.hamster.vx = Math.abs(game.hamster.vx);
} else if ((game.hamster.xtemp + (game.hamster._width / 2)) > right) {
if (_root.sunet == 1) {
var _local4 = random(3) + 1;
_root["s_teava" + _local4].start();
}
game.hamster.xtemp = right - (game.hamster._width / 2);
game.hamster.vx = -Math.abs(game.hamster.vx);
}
}
if (terrain[_local2] == 3) {
var _local3 = ((-(_local2 - 1)) * tileheight) + 70;
if ((((game.hamster.ytemp + game.hamster.vy) + hamsterradius) > _local3) && ((game.hamster.xtemp < left) || (game.hamster.xtemp > right))) {
game.hamster.ytemp = _local3 - hamsterradius;
game.hamster.vy = (-Math.abs(game.hamster.vy)) * 0.7;
if (_root.sunet == 1) {
var _local4 = random(3) + 1;
_root["s_teava" + _local4].start();
}
endGame();
} else if ((game.hamster.ytemp + hamsterradius) > _local3) {
if ((game.hamster.xtemp - (game.hamster._width / 2)) < left) {
if (_root.sunet == 1) {
var _local4 = random(3) + 1;
_root["s_teava" + _local4].start();
}
game.hamster.xtemp = left + (game.hamster._width / 2);
game.hamster.vx = Math.abs(game.hamster.vx);
} else if ((game.hamster.xtemp + (game.hamster._width / 2)) > right) {
if (_root.sunet == 1) {
var _local4 = random(3) + 1;
_root["s_teava" + _local4].start();
}
game.hamster.xtemp = right - (game.hamster._width / 2);
game.hamster.vx = -Math.abs(game.hamster.vx);
}
}
}
}
function endGame() {
if (!gameended) {
endcounter = 0;
gameended = true;
}
}
function renderHamster() {
game.hamster._x = game.hamster.xtemp;
game.hamster._y = game.hamster.ytemp;
if (game.hamster.vy < 0) {
var _local2 = Math.round(-game.hamster._y) / 100;
if (_local2 > L2204) {
L2204 = _local2;
L2204txt = L2204 + " m";
if (L2204txt.indexOf(".") > (length(L2204txt) - 5)) {
L2204txt = L2204 + "0 m";
} else if (L2204txt.indexOf(".") < 0) {
L2204txt = L2204 + ".00 m";
}
}
}
var _local1 = game.hamster._y + game._y;
if (_local1 < -40) {
arrowmc._y = 2;
arrowmc._x = game.hamster._x;
} else {
arrowmc._x = -1000;
}
if ((_local1 > (stageheight + 60)) && (!gameended)) {
endGame();
}
}
function moveCamera(targ) {
ytarg = (-targ._y) + (tileheight / 2);
ycam = game._y;
camvy = Math.round(ytarg - ycam) / camelast;
game._y = game._y + camvy;
}
function setupTerrain() {
var _local2 = game.tile1._y + game._y;
var _local1 = game.tile2._y + game._y;
if (oldcamvy != camvy) {
activetile = null;
}
oldcamvy = camvy;
if (((_local2 > (-bufferzone)) && (_local2 < 0)) && (activetile != game.tile1)) {
activetile = game.tile1;
activeno = Math.floor((-game.tile1._y) / tileheight) + 1;
if (camvy > 0) {
game.tile2._y = game.tile1._y - tileheight;
if (((powerups[activeno + 1] != 0) && (powerups[activeno + 1] != null)) && (power == "none")) {
game.powerup2._x = game.tile2._x + powerupsx[activeno + 1];
game.powerup2._y = game.tile2._y + powerupsy[activeno + 1];
game.powerup2.gotoAndStop(powerups[activeno + 1] + 1);
game.powerup2.cod = activeno + 1;
} else {
game.powerup2._x = -1000;
game.powerup2.gotoAndStop(1);
}
if ((terrain[activeno + 1] > 10) && (terrain[activeno + 1] < 17)) {
game.tile2.gotoAndStop(2);
game.tile2.pipes.gotoAndStop(terrain[activeno + 1] - 10);
} else if (terrain[activeno + 1] != null) {
game.tile2.gotoAndStop(terrain[activeno + 1]);
} else {
game.tile2.gotoAndStop("empty");
}
if (terrain[activeno + 1] > 20) {
game.tile2.gotoAndStop("sky");
game.tile2.pipes.gotoAndStop(terrain[activeno + 1] - 20);
}
} else {
game.tile2._y = game.tile1._y + tileheight;
game.powerup2._x = -1000;
game.powerup2.gotoAndStop(1);
if ((terrain[activeno - 1] > 10) && (terrain[activeno - 1] < 17)) {
game.tile2.gotoAndStop(2);
game.tile2.pipes.gotoAndStop(terrain[activeno - 1] - 10);
} else if (terrain[activeno - 1] != null) {
game.tile2.gotoAndStop(terrain[activeno - 1]);
} else {
game.tile2.gotoAndStop("empty");
}
if (terrain[activeno - 1] > 20) {
game.tile2.gotoAndStop("sky");
game.tile2.pipes.gotoAndStop(terrain[activeno - 1] - 20);
}
}
} else if (((_local1 > (-bufferzone)) && (_local1 < 0)) && (activetile != game.tile2)) {
activetile = game.tile2;
activeno = Math.floor((-game.tile2._y) / tileheight) + 1;
if (camvy > 0) {
game.tile1._y = game.tile2._y - tileheight;
if (((powerups[activeno + 1] != 0) && (powerups[activeno + 1] != null)) && (power == "none")) {
game.powerup1._x = game.tile1._x + powerupsx[activeno + 1];
game.powerup1._y = game.tile1._y + powerupsy[activeno + 1];
game.powerup1.gotoAndStop(powerups[activeno + 1] + 1);
game.powerup1.cod = activeno + 1;
} else {
game.powerup1._x = -1000;
game.powerup1.gotoAndStop(1);
}
if ((terrain[activeno + 1] > 10) && (terrain[activeno + 1] < 17)) {
game.tile1.gotoAndStop(2);
game.tile1.pipes.gotoAndStop(terrain[activeno + 1] - 10);
} else if (terrain[activeno + 1] != null) {
game.tile1.gotoAndStop(terrain[activeno + 1]);
} else {
game.tile1.gotoAndStop("empty");
}
if (terrain[activeno + 1] > 20) {
game.tile1.gotoAndStop("sky");
game.tile1.pipes.gotoAndStop(terrain[activeno + 1] - 20);
}
} else {
game.tile1._y = game.tile2._y + tileheight;
game.powerup1._x = -1000;
game.powerup1.gotoAndStop(1);
if ((terrain[activeno - 1] > 10) && (terrain[activeno - 1] < 17)) {
game.tile1.gotoAndStop(2);
game.tile1.pipes.gotoAndStop(terrain[activeno - 1] - 10);
} else if (terrain[activeno - 1] != null) {
game.tile1.gotoAndStop(terrain[activeno - 1]);
} else {
game.tile1.gotoAndStop("empty");
}
if (terrain[activeno - 1] > 20) {
game.tile1.gotoAndStop("sky");
game.tile1.pipes.gotoAndStop(terrain[activeno - 1] - 20);
}
}
}
game.powerup1.xtemp = game.powerup1._x;
game.powerup1.ytemp = game.powerup1._y;
game.powerup2.xtemp = game.powerup2._x;
game.powerup2.ytemp = game.powerup2._y;
}
function step() {
if (gamestarted) {
if (_root.power != "slow") {
moveHamster();
checkWalls();
renderHamster();
setupTerrain();
checkPowerUp();
moveCamera(game.hamster);
} else {
slowcounter++;
if ((slowcounter % slowcap) == 0) {
moveHamster();
checkWalls();
renderHamster();
setupTerrain();
checkPowerUp();
moveCamera(game.hamster);
if ((slowcounter % slowcap) == 0) {
trailcounter++;
duplicateMovieClip (game.fakehamster, "fake" + trailcounter, trailcounter);
game["fake" + trailcounter].gotoAndStop(game.hamster._currentframe);
game["fake" + trailcounter]._x = game.hamster._x;
game["fake" + trailcounter]._y = game.hamster._y;
game["fake" + trailcounter]._rotation = game.hamster._rotation;
}
}
}
}
if (gameended) {
if (gamestarted) {
endcounter++;
if (endcounter >= endtime) {
gameoverwnd.play();
if (_root.sunet == 1) {
_root.s_window.start();
}
gamestarted = false;
}
}
}
}
stop();
s_muzica.setVolume(20);
game.checkCollision = function (b1, b2) {
var _local4 = b1.xtemp;
var _local2 = b2.xtemp;
var _local3 = b1.ytemp;
var _local1 = b2.ytemp;
var _local6 = b1._width / 2;
var _local5 = b2._width / 2;
var _local9 = Math.sqrt(((_local4 - _local2) * (_local4 - _local2)) + ((_local3 - _local1) * (_local3 - _local1)));
if (_local9 < (_local6 + _local5)) {
return(true);
}
return(false);
};
startGame();
Instance of Symbol 331 MovieClip "stepper" in Frame 14
onClipEvent (enterFrame) {
_parent.step();
}
Frame 15
gotoAndStop ("coperta");
Frame 16
lang = "eng";
showads = true;
targetURL = "http://www.gamesheep.com/game/sewer-escape/";
v_gameid = "sewer-escape";
v_scorevar = _root.S2204;
v_color = "92A62B";
Frame 18
_root.gotoAndPlay(_currentframe - 1);
Frame 25
if (_root.lang == "rom") {
_root.locatie = _url;
if (_root.locatie.slice(0, 21) == "http://www.ejocuri.ro") {
play();
} else {
gotoAndPlay ("finad");
}
} else {
_root.locatie = _url;
if (_root.locatie.slice(0, 24) == "http://www.gamesheep.com") {
play();
} else {
gotoAndPlay ("finad");
}
}
Frame 27
gotoAndStop ("coperta");
Symbol 2 MovieClip Frame 1
this._visible = false;
Symbol 10 MovieClip Frame 1
stop();
if (_root.lang == "rom") {
gotoAndStop (2);
}
Symbol 11 MovieClip Frame 1
_root.stop();
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = Math.round(stageWidth / 2);
var centerStageY = Math.round(stageHeight / 2);
this._x = centerStageX;
this._y = centerStageY;
Symbol 11 MovieClip Frame 3
xyb1 = _root.getBytesLoaded();
xyb2 = _root.getBytesTotal();
xytgFrame = Math.round((xyb1 / xyb2) * 100) + 1;
prelbar.gotoAndStop(xytgFrame);
Symbol 11 MovieClip Frame 5
if ((xyb1 > 40000) && (xyb2 > 50)) {
stop();
_root.play();
} else {
gotoAndPlay ("xloop1");
}
Symbol 14 MovieClip Frame 1
this._visible = false;
Symbol 17 Button
on (release) {
if (_root.lang == "eng") {
getURL ("http://www.gamesheep.com", "_blank");
} else {
getURL ("http://www.ejocuri.ro", "_blank");
}
}
Symbol 32 MovieClip Frame 10
this.gotoAndPlay(1);
Symbol 56 MovieClip Frame 33
stop();
Symbol 67 MovieClip Frame 1
stop();
Symbol 67 MovieClip Frame 102
stop();
_parent._parent.gotoAndPlay("loopi");
Symbol 67 MovieClip Frame 103
stop();
Symbol 67 MovieClip Frame 202
stop();
_parent._parent.gotoAndPlay("loopi");
Symbol 70 MovieClip Frame 14
stop();
Symbol 72 MovieClip Frame 1
_root.stop();
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = Math.round(stageWidth / 2);
var centerStageY = Math.round(stageHeight / 2);
if (_root.lang == "rom") {
this._x = centerStageX;
this._y = centerStageY;
} else {
this._x = centerStageX;
this._y = centerStageY - 50;
}
Symbol 72 MovieClip Frame 3
xPos = _x;
yPos = _y;
backbuton._x = backbuton._x - xPos;
backbuton._y = backbuton._y - yPos;
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = (stageWidth / 2);
var centerStageY = (stageHeight / 2);
backbuton._width = stageWidth;
backbuton._height = stageHeight;
xyb1 = _root.getBytesLoaded();
xyb2 = _root.getBytesTotal();
if (xyb1 >= xyb2) {
stop();
if (_root.lang == "eng") {
prelbar2.bar.gotoAndPlay(2);
} else {
prelbar2.bar.gotoAndPlay(104);
}
} else {
play();
}
Symbol 72 MovieClip Frame 4
xyb1 = _root.getBytesLoaded();
xyb2 = _root.getBytesTotal();
xytgFrame = Math.round((xyb1 / xyb2) * 100) + 1;
if (_root.lang == "eng") {
prelbar2.bar.gotoAndStop(xytgFrame);
} else {
prelbar2.bar.gotoAndStop(xytgFrame + 102);
}
Symbol 72 MovieClip Frame 6
if (xyb1 >= xyb2) {
play();
} else {
gotoAndPlay ("xloop2");
}
Symbol 72 MovieClip Frame 28
_root.play();
Symbol 76 MovieClip Frame 1
stop();
if (_root._lang == "rom") {
gotoAndStop (2);
}
Symbol 79 MovieClip Frame 1
this._visible = 0;
Symbol 82 MovieClip Frame 1
_root.stop();
this._x = -10000;
errors = 0;
Symbol 82 MovieClip Frame 4
var loadListener = new Object();
loadListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace(">> loadListener.onLoadError()");
trace(">> ==========================");
trace(">> errorCode: " + errorCode);
trace(">> httpStatus: " + httpStatus);
errors++;
if (errors < 5) {
gotoAndPlay ("reset");
} else {
_root.gotoAndPlay("preloadFinished");
}
};
var mcLoader = new MovieClipLoader();
mcLoader.addListener(loadListener);
mcLoader.loadClip("ad.swf", loader);
Symbol 82 MovieClip Frame 7
b1 = loader.getBytesLoaded();
b2 = loader.getBytesTotal();
if ((b1 >= b2) && (b1 > 50)) {
play();
} else {
gotoAndPlay ("loop");
}
Symbol 82 MovieClip Frame 8
loader._x = loader._x - Math.round(loader._width / 2);
loader._y = loader._y - Math.round(loader._height / 2);
if (_root._currentframe <= 10) {
if (_root.adtype == "preloader") {
loader.play();
} else {
stop();
_root.play();
}
} else if (_root.adtype == "preloader") {
stop();
_root.play();
} else {
loader.play();
}
Symbol 82 MovieClip Frame 9
stop();
var stageWidth = Stage.width;
var stageHeight = Stage.height;
var centerStageX = Math.round(stageWidth / 2);
var centerStageY = Math.round(stageHeight / 2);
this._x = centerStageX;
this._y = centerStageY;
Symbol 95 MovieClip Frame 1
stop();
Symbol 97 Button
on (release, keyPress "s") {
if (_root.sunet == 1) {
_root.sunet = 0;
} else {
_root.sunet = 1;
}
}
on (release, keyPress "S") {
if (_root.sunet == 1) {
_root.sunet = 0;
} else {
_root.sunet = 1;
}
}
Symbol 98 Button
on (release, keyPress "q") {
_root.gotoAndStop("coperta");
}
on (release, keyPress "Q") {
_root.gotoAndStop("coperta");
}
Symbol 99 Button
on (release, keyPress "m") {
if (_root.muzica == 1) {
_root.muzica = 0;
_root.s_muzica.stop();
} else {
_root.muzica = 1;
_root.s_muzica.start(0, 9999);
}
}
on (release, keyPress "M") {
if (_root.muzica == 1) {
_root.muzica = 0;
_root.s_muzica.stop();
} else {
_root.muzica = 1;
_root.s_muzica.start(0, 9999);
}
}
Symbol 105 Button
on (release) {
if (_root.lang == "eng") {
getURL ("http://www.gamesheep.com", "_blank");
} else {
getURL ("http://www.ejocuri.ro", "_blank");
}
}
Symbol 113 Button
on (release) {
gotoAndPlay ("play");
}
Symbol 117 Button
on (release) {
_root.vsubmit = false;
_root.gotoAndPlay("submitscore");
}
Symbol 121 Button
on (release) {
instrmc.gotoAndStop(_root.lang);
}
Symbol 125 Button
on (release) {
if (_root.lang == "eng") {
getURL ("http://www.gamesheep.com", "_blank");
} else {
getURL ("http://www.ejocuri.ro", "_blank");
}
}
Symbol 129 Button
on (release) {
if (_root.lang == "eng") {
getURL ("http://www.gamesheep.com/free-games-for-website.php", "_blank");
} else {
getURL ("http://www.ejocuri.ro/jocuri-pentru-site.php", "_blank");
}
}
Symbol 131 MovieClip Frame 1
this.useHandCursor = false;
this.onRelease = function () {
};
Symbol 144 Button
on (release) {
gotoAndStop (1);
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 1
stop();
Symbol 158 MovieClip Frame 2
_root.game.hamster.gotoAndPlay("start");
Symbol 158 MovieClip Frame 6
_root.launch();
Symbol 171 MovieClip Frame 32
gotoAndPlay ("loop");
Symbol 171 MovieClip Frame 46
_parent.trambulina.play();
Symbol 186 Button
on (release) {
doctor.gotoAndPlay("launch");
this.button._x = -1000;
}
Symbol 196 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 44
stop();
Symbol 214 MovieClip Frame 1
stop();
delete this.onEnterFrame;
Symbol 214 MovieClip Frame 2
this.onPress = function () {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_fat.start();
}
_root.power = "fat";
_root.game.hamster.gotoAndPlay("fat");
_root.timer.ctime = 9;
if (_root.lang == "eng") {
_root.powtxt = "INFLATE ";
} else {
_root.powtxt = "UMFLAT ";
}
_root.powmessage.play();
_root.timer.play();
_root.gravity = _root.gravity / 4;
gotoAndPlay ("remove");
}
};
this.onEnterFrame = function () {
if (_parent.checkCollision(this, _parent.hamster)) {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_fat.start();
}
_root.power = "fat";
_root.game.hamster.gotoAndPlay("fat");
_root.timer.ctime = 9;
if (_root.lang == "eng") {
_root.powtxt = "INFLATE ";
} else {
_root.powtxt = "UMFLAT ";
}
_root.powmessage.play();
_root.timer.play();
_root.gravity = _root.gravity / 4;
gotoAndPlay ("remove");
}
}
};
Symbol 214 MovieClip Frame 3
this.onPress = function () {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_boost.start();
}
_root.power = "boost";
_root.game.hamster.gotoAndPlay("boost");
_root.game.hamster.vy = -_root.launchspeed;
_root.game.hamster.vx = 0;
_root.game.hamster.rotstep = 0;
_root.game.hamster._rotation = 0;
_root.camelast = _root.camelastini - 10;
if (_root.lang == "eng") {
_root.powtxt = "BOOST ";
} else {
_root.powtxt = "REACTIE ";
}
_root.powmessage.play();
gotoAndPlay ("remove");
}
};
this.onEnterFrame = function () {
if (_parent.checkCollision(this, _parent.hamster)) {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_boost.start();
}
_root.power = "boost";
_root.game.hamster.gotoAndPlay("boost");
if (_root.lang == "eng") {
_root.powtxt = "BOOST ";
} else {
_root.powtxt = "REACTIE ";
}
_root.powmessage.play();
_root.game.hamster.vy = -_root.launchspeed;
_root.game.hamster.vx = 0;
_root.game.hamster.rotstep = 0;
_root.game.hamster._rotation = 0;
_root.camelast = _root.camelastini - 10;
gotoAndPlay ("remove");
}
}
};
Symbol 214 MovieClip Frame 4
this.onPress = function () {
if (!_root.gameended) {
_root.power = "slow";
if (_root.sunet == 1) {
_root.s_slow.start();
}
_root.slowcounter = 0;
_root.timer.ctime = 15;
if (_root.lang == "eng") {
_root.powtxt = "SLOW ";
} else {
_root.powtxt = "INCETINIT ";
}
_root.powmessage.play();
_root.trailcounter = 100;
_root.timer.play();
gotoAndPlay ("remove");
}
};
this.onEnterFrame = function () {
if (_parent.checkCollision(this, _parent.hamster)) {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_slow.start();
}
_root.power = "slow";
if (_root.lang == "eng") {
_root.powtxt = "SLOW ";
} else {
_root.powtxt = "INCETINIT ";
}
_root.powmessage.play();
_root.trailcounter = 100;
_root.slowcounter = 0;
_root.timer.ctime = 15;
_root.timer.play();
gotoAndPlay ("remove");
}
}
};
Symbol 214 MovieClip Frame 5
this.onPress = function () {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_peanut.start();
}
_root.power = "none";
if (_root.lang == "eng") {
_root.powtxt = "PEANUT ";
} else {
_root.powtxt = "ALUNA ";
}
_root.powmessage.play();
_root.P2204++;
gotoAndPlay ("remove");
}
};
this.onEnterFrame = function () {
if (_parent.checkCollision(this, _parent.hamster)) {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_peanut.start();
}
if (_root.lang == "eng") {
_root.powtxt = "PEANUT ";
} else {
_root.powtxt = "ALUNA ";
}
_root.powmessage.play();
_root.power = "none";
_root.P2204++;
gotoAndPlay ("remove");
}
}
};
Symbol 214 MovieClip Frame 6
this.onPress = function () {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_peanut.start();
}
_root.power = "none";
if (_root.lang == "eng") {
_root.powtxt = "PEANUT ";
} else {
_root.powtxt = "ALUNA ";
}
_root.powmessage.play();
_root.P2204++;
gotoAndPlay ("remove");
}
};
this.onEnterFrame = function () {
if (_parent.checkCollision(this, _parent.hamster)) {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_peanut.start();
}
if (_root.lang == "eng") {
_root.powtxt = "PEANUT ";
} else {
_root.powtxt = "ALUNA ";
}
_root.powmessage.play();
_root.power = "none";
_root.P2204++;
gotoAndPlay ("remove");
}
}
};
Symbol 214 MovieClip Frame 7
this.onPress = function () {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_peanut.start();
}
_root.power = "none";
if (_root.lang == "eng") {
_root.powtxt = "PEANUT ";
} else {
_root.powtxt = "ALUNA ";
}
_root.powmessage.play();
_root.P2204++;
gotoAndPlay ("remove");
}
};
this.onEnterFrame = function () {
if (_parent.checkCollision(this, _parent.hamster)) {
if (!_root.gameended) {
if (_root.sunet == 1) {
_root.s_peanut.start();
}
if (_root.lang == "eng") {
_root.powtxt = "PEANUT ";
} else {
_root.powtxt = "ALUNA ";
}
_root.powmessage.play();
_root.power = "none";
_root.P2204++;
gotoAndPlay ("remove");
}
}
};
Symbol 214 MovieClip Frame 8
_root.powerups[cod] = 0;
delete this.onEnterFrame;
Symbol 214 MovieClip Frame 17
stop();
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 6
stop();
Symbol 297 MovieClip Frame 7
linecounter = 300;
this.onEnterFrame = function () {
duplicateMovieClip (_parent.line, "line" + linecounter, linecounter);
_parent["line" + linecounter]._y = (this._y + 10) + random(21);
_parent["line" + linecounter]._x = this._x - random(16);
linecounter++;
duplicateMovieClip (_parent.line, "line" + linecounter, linecounter);
_parent["line" + linecounter]._y = (this._y + 10) + random(21);
_parent["line" + linecounter]._x = this._x + random(16);
linecounter++;
};
Symbol 297 MovieClip Frame 39
delete this.onEnterFrame;
Symbol 297 MovieClip Frame 57
Symbol 297 MovieClip Frame 78
gotoAndPlay ("default");
Symbol 297 MovieClip Frame 84
stop();
Symbol 297 MovieClip Frame 89
gotoAndPlay ("default");
Symbol 297 MovieClip Frame 99
gotoAndPlay ("default");
Symbol 297 MovieClip Frame 109
gotoAndPlay ("default");
Symbol 297 MovieClip Frame 120
gotoAndPlay ("default");
Symbol 297 MovieClip Frame 141
gotoAndPlay ("default");
Symbol 297 MovieClip Frame 153
gotoAndPlay ("default");
Symbol 298 MovieClip Frame 1
if (this._name != "fakehamster") {
this._alpha = 50;
this.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
removeMovieClip(this);
}
};
}
Symbol 301 MovieClip Frame 8
stop();
removeMovieClip(this);
Instance of Symbol 297 MovieClip "hamster" in Symbol 302 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 298 MovieClip "fakehamster" in Symbol 302 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 316 Button
on (release) {
_root.vsubmit = true;
var gname = "SewerEscapeV2PC";
var gscore = _root.S2204;
getURL ("index.php?act=Arcade&do=newscore", "_self", "POST");
}
Symbol 320 Button
on (release) {
_root.gotoAndStop("coperta");
}
Symbol 322 MovieClip Frame 1
stop();
Symbol 322 MovieClip Frame 2
limit = (_root.L2204 * 1300) + 1;
current = 0;
pas = 4939;
Symbol 322 MovieClip Frame 5
if ((current + pas) < limit) {
current = current + pas;
_parent.fscore = _parent.fscore + pas;
_parent.heightbonus = (_root.L2204 + " m = ") + current;
gotoAndPlay ("loop");
} else {
_parent.fscore = _parent.fscore + (limit - current);
current = limit;
_parent.heightbonus = (_root.L2204 + " m = ") + current;
gotoAndStop (1);
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
limit = _root.P2204 * 5915;
current = 0;
pas = 1459;
Symbol 323 MovieClip Frame 5
if ((current + pas) < limit) {
current = current + pas;
_parent.fscore = _parent.fscore + pas;
if (_root.lang == "eng") {
_parent.peanutsbonus = (_root.P2204 + " peanuts = ") + current;
} else {
_parent.peanutsbonus = (_root.P2204 + " alune = ") + current;
}
gotoAndPlay ("loop");
} else {
_parent.fscore = _parent.fscore + (limit - current);
current = limit;
if (_root.lang == "eng") {
_parent.peanutsbonus = (_root.P2204 + " peanuts = ") + current;
} else {
_parent.peanutsbonus = (_root.P2204 + " alune = ") + current;
}
gotoAndStop (1);
}
Symbol 325 MovieClip Frame 1
stop();
Symbol 325 MovieClip Frame 2
_root.S2204 = ((_root.L2204 * 1300) + (_root.P2204 * 5915)) + 1;
Symbol 325 MovieClip Frame 15
stop();
fwindow.pusher1.play();
fwindow.pusher2.play();
fwindow.fscore = 0;
Symbol 328 MovieClip Frame 1
stop();
Symbol 334 MovieClip Frame 24
ctime--;
_parent.timertxt = (_root.powtxt + ctime) + " s";
if (ctime == 0) {
if (_root.power == "fat") {
_root.game.hamster.play();
}
_parent.power = "none";
_parent.timertxt = "";
_parent.gravity = _parent.gravityini;
gotoAndStop (1);
}
Symbol 338 MovieClip Frame 1
this._visible = false;
Symbol 345 Button
on (release) {
_root.gotoAndPlay("coperta");
}
Symbol 350 MovieClip Frame 1
if (_root.lang == "eng") {
txttrimite = "Cancel";
numele = "Loading Core...";
} else {
txttrimite = "Anuleaza";
numele = "Incarc Motorul...";
}
Symbol 350 MovieClip Frame 2
stop();
Symbol 353 MovieClip Frame 1
my_color1 = new Color(contur1);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:_parent._parent._parent.xrtb5, ga:"100", gb:_parent._parent._parent.xgtb5, ba:"100", bb:_parent._parent._parent.xbtb5, aa:"100", ab:"0"};
my_color1.setTransform(myColorTransform);
Symbol 365 Button
on (release) {
if (!_root.vsubmit) {
_root.gotoAndPlay("coperta");
} else if (_root.showads) {
_root.gotoAndPlay("showad");
} else {
_root.gotoAndPlay("coperta");
}
}
Symbol 369 Button
on (release) {
getURL (_root.targetURL, "_blank");
}
Symbol 381 Button
on (release) {
if (!_root.vsubmit) {
_root.gotoAndPlay("coperta");
} else if (_root.showads) {
_root.gotoAndPlay("showad");
} else {
_root.gotoAndPlay("coperta");
}
}
Symbol 384 Button
on (release) {
getURL (_root.targetURL, "_blank");
}
Symbol 385 MovieClip Frame 1
_root.stop();
Symbol 385 MovieClip Frame 2
locatie = _root._url;
if (_root.lang == "eng") {
if (locatie.slice(0, 24) == "http://www.gamesheep.com") {
play();
} else {
gotoAndPlay ("noscoreboarden");
}
} else if (locatie.slice(0, 21) == "http://www.ejocuri.ro") {
play();
} else {
gotoAndPlay ("noscoreboardro");
}
Symbol 385 MovieClip Frame 3
coreloader.loadMovie("../scoreboardcore.swf");
conterror = 0;
culoaretema = _root.v_color;
xtbcolor = culoaretema;
xrtb5 = Number("0x" + xtbcolor.slice(0, 2));
xgtb5 = Number("0x" + xtbcolor.slice(2, 4));
xbtb5 = Number("0x" + xtbcolor.slice(4, 6));
my_color1 = new Color(xtabla.contur1);
my_color2 = new Color(xtabla.contur2);
myColorTransform = new Object();
myColorTransform = {ra:"100", rb:xrtb5, ga:"100", gb:xgtb5, ba:"100", bb:xbtb5, aa:"100", ab:"0"};
my_color1.setTransform(myColorTransform);
my_color2.setTransform(myColorTransform);
Symbol 385 MovieClip Frame 4
if (_root.lang == "eng") {
xtabla.numele = "Loading Core.";
} else {
xtabla.numele = "Incarc Motorul.";
}
Symbol 385 MovieClip Frame 5
if (_root.lang == "eng") {
xtabla.numele = "Loading Core..";
} else {
xtabla.numele = "Incarc Motorul..";
}
Symbol 385 MovieClip Frame 6
if (_root.lang == "eng") {
xtabla.numele = "Loading Core...";
} else {
xtabla.numele = "Incarc Motorul...";
}
Symbol 385 MovieClip Frame 7
if ((coreloader.getBytesLoaded() >= coreloader.getBytesTotal()) && (coreloader.getBytesLoaded() > 100)) {
if (coreloader.getBytesLoaded() < 100) {
conterror++;
if (conterror > 50) {
gotoAndPlay ("startLoad");
}
}
this.play();
} else {
gotoAndPlay ("loop");
}
Symbol 385 MovieClip Frame 10
stop();
coreloader.sbc.gotoAndPlay("go");
Symbol 385 MovieClip Frame 12
stop();
Instance of Symbol 357 MovieClip in Symbol 385 MovieClip Frame 12
on (release) {
_root.getURL("http://www.gamesheep.com", "_blank");
}
Symbol 385 MovieClip Frame 13
gotoAndPlay(_currentframe - 1);
Symbol 385 MovieClip Frame 15
stop();
Instance of Symbol 378 MovieClip in Symbol 385 MovieClip Frame 15
on (release) {
getURL ("http://www.ejocuri.ro", "_blank");
}
Symbol 385 MovieClip Frame 16
gotoAndPlay(_currentframe - 1);