Frame 1
function checkSwearing(subject) {
var _local1 = subject;
swearwords = new Array("fuck", "pussy", "shit", "cunt", "dick", "prick", "cock", "dickhead", "blowjob", "wanker", "tits", "nigger", "twat", "bitch", "motherfucker", "asshole", "dyke", "fag", "poof", "whore", "slut", "penis", "vagina", "nipples", "testicles", "scrotum", "semen");
swear = false;
i = 0;
while (i < swearwords.length) {
if (_local1.indexOf(swearwords[i]) != -1) {
trace(swearwords[i]);
swear = true;
break;
}
i++;
}
((swear == true) ? true : false);
if (swear != true) {
return(false);
}
return(true);
}
function validateFormSendFriend() {
err = false;
if (((panels.firstname == "") || (panels.firstname == undefined)) || (checkSwearing(panels.firstname) == true)) {
err = true;
panels.sendfriendform.firstnameStar.gotoAndStop(2);
} else {
panels.sendfriendform.firstnameStar.gotoAndStop(1);
}
if (validateEmail(panels.email) == false) {
err = true;
panels.sendfriendform.emailStar.gotoAndStop(2);
} else {
panels.sendfriendform.emailStar.gotoAndStop(1);
}
oneDefined = false;
panels.exampleName = "";
j = 1;
while (j < 6) {
if (((panels["frfirstname" + j] != "") && (panels["frfirstname" + j] != undefined)) && (checkSwearing(panels["frfirstname" + j]) == true)) {
if (panels.exampleName == "") {
panels.exampleName = panels["frfirstname" + j];
}
oneDefined = true;
if (validateEmail(panels["fremail" + j]) == false) {
err = true;
panels.sendfriendform[("fremail" + j) + "Star"].gotoAndStop(2);
} else {
panels.sendfriendform[("fremail" + j) + "Star"].gotoAndStop(1);
}
} else {
panels.sendfriendform[("fremail" + j) + "Star"].gotoAndStop(1);
}
j++;
}
if (oneDefined == false) {
err = true;
panels.sendfriendform.fremail1Star.gotoAndStop(2);
}
if (err != true) {
sendfriendLV = new LoadVars();
sendfriendLV.frfirstname = panels.firstname;
sendfriendLV.fremail = panels.email;
sendfriendLV.comppoints = bestScore;
sendfriendLV.competition = "cube_sendfriend";
sendfriendLV.pubid = "1d7";
sendfriendLV["auto-mail"] = "/optusevents/cuberefer.email";
panels.exampleHtml = ("Hi " + panels.exampleName) + ",<br><br>";
panels.exampleHtml = panels.exampleHtml + (("This is an invitation for you to play the Optus \"Turbocharged\" game. Click on the link below and try to beat my score of " + bestScore) + ".<br><br>");
panels.exampleHtml = panels.exampleHtml + "Play the game<br><br>";
panels.exampleHtml = panels.exampleHtml + (("Rgds,<br>" + panels.firstName) + "<br><br>");
panels.exampleHtml = panels.exampleHtml + "PS \u2013 Please reply and let me know if you don\u2019t want me to send e-mails of commercial nature to you.";
return(true);
}
}
function sendFriend() {
var _local1 = _root;
j = 1;
while (j < 6) {
if ((panels["frfirstname" + j] != "") && (panels["frfirstname" + j] != undefined)) {
_local1.trackIt("sendfriend");
_local1["recieverLV" + j] = new LoadVars();
sendfriendLV.firstname = panels["frfirstname" + j];
sendfriendLV.email = panels["fremail" + j];
sendfriendLV.sendAndLoad("", _local1["recieverLV" + j], "POST");
}
j++;
}
}
function validateFormStart() {
err = false;
if ((panels.firstname == "") || (panels.firstname == undefined)) {
err = true;
panels.entryform.firstnameStar.gotoAndStop(2);
} else {
panels.entryform.firstnameStar.gotoAndStop(1);
validateFormEnd();
}
if (err != true) {
return(true);
}
return(false);
}
function validateFormEnd() {
registerLV = new LoadVars();
registerLV.firstname = panels.firstname;
registerLV.optin = panels.optin;
registerLV.trackid = _root.trackid;
registerLV.comppoints = bestScore;
registerLV.competition = "cube";
registerLV.pubid = "1d7";
recieverLV = new LoadVars();
registerLV.sendAndLoad("", recieverLV, "POST");
formToggle = true;
return(true);
}
function resubmit() {
registerLV.comppoints = bestScore;
recieverLV = new LoadVars();
registerLV.sendAndLoad("", recieverLV, "POST");
}
function validateEmail(em) {
var _local1 = em;
atPos = _local1.indexOf("@");
dotPos = _local1.indexOf(".");
disallowedChars = new Array(" ", "<", ">", ",", "`");
i = 0;
if (i < disallowedChars.length) {
i++;
}
return(true);
}
function popScores() {
}
function popTerms() {
}
function placeObjects(tileNumber) {
placementPoint = 0;
maxPlacementPoint = cliffTileHeight;
placementPoint = placementPoint + (100 + random(200));
holderBg = bg["t" + tileNumber].objectHolder;
objectNum = 0;
while (placementPoint < maxPlacementPoint) {
orig = ((random(100) > 50) ? (holderBg.objLeft) : (holderBg.objRight));
duplicateMovieClip (orig, "o" + objectNum, objectNum);
thisOb = holderBg["o" + objectNum];
thisOb.gotoAndStop(random(thisOb._totalframes - 1) + 1);
thisOb._y = placementPoint;
objectNum++;
placementPoint = placementPoint + (100 + random(200));
}
}
function placeBonuses(tileNumber) {
placementPoint = 0;
maxPlacementPoint = cliffTileHeight;
placementPoint = placementPoint + random(300);
holderBg = bg["t" + tileNumber].bonusHolder;
bonusNum = 0;
while (placementPoint < maxPlacementPoint) {
bonusChance = 65;
if (bg._y > 20000) {
bonusChance = bonusChance + ((bg._y - 20000) / 1000);
}
if (random(100) > bonusChance) {
duplicateMovieClip (holderBg.bonus, "bonus" + bonusNum, bonusNum);
thisBonus = holderBg["bonus" + bonusNum];
thisBonus.myStatus = (thisBonus.myStatus = "active");
if ((random(100) > 92) && (currentTurbos >= 1)) {
typeChance = random(100);
if (typeChance > 96) {
thisBonus.bonusType = 5;
} else if (typeChance > 90) {
thisBonus.bonusType = 4;
} else if (typeChance > 70) {
thisBonus.bonusType = 3;
} else {
thisBonus.bonusType = 2;
}
} else {
thisBonus.bonusType = 1;
}
thisBonus._y = placementPoint;
thisBonus._x = cliffWidth + random(screenWidth - (cliffWidth * 2));
if (turboClickedToggle == false) {
if (thisBonus._x > (screenWidth / 2)) {
thisBonus.clickme.gotoAndStop("onleft");
} else {
thisBonus.clickme.gotoAndStop("onright");
}
}
bonusNum++;
}
placementPoint = placementPoint + (100 + random(300));
}
}
function makeBgTile(num) {
var _local1 = num;
duplicateMovieClip (bg.tile, "t" + _local1, _local1 + 2);
if (_local1 == 0) {
bg["t" + _local1].cliffState = "leanin";
} else if (_local1 < maxCliffTiles) {
bg["t" + _local1].cliffState = "cliff";
} else if (_local1 == maxCliffTiles) {
bg["t" + _local1].nowalls.gotoAndStop(2);
bg["t" + _local1].cliffState = "leanout";
} else {
if (dontfallToggle == false) {
dontfallToggle = true;
dontFall.gotoAndPlay("in");
}
bg["t" + _local1].cliffState = "nocliff";
}
bg["t" + _local1].gotoAndStop(cliffState);
bg["t" + _local1]._y = (-_local1) * cliffTileHeight;
if ((bestScore != undefined) || (friendBest != undefined)) {
minScore = ((_local1 - 1) * cliffTileHeight) + 500;
maxScore = (_local1 * cliffTileHeight) + 500;
if (((bestScore > minScore) && (bestScore < maxScore)) && (bestScore != undefined)) {
bestScoreDisplay = addZeros(finalBest);
if (_local1 > maxCliffTiles) {
bg["t" + _local1].yourbest.gotoAndStop("nowalls");
} else {
bg["t" + _local1].yourbest.gotoAndStop("walls");
}
bg["t" + _local1].yourbest._y = cliffTileHeight - (bestScore - minScore);
}
if ((((friendBest > minScore) && (friendBest < maxScore)) && (friendBest != undefined)) && (friendName != undefined)) {
if (_local1 > maxCliffTiles) {
bg["t" + _local1].friendbest.gotoAndStop("nowalls");
} else {
bg["t" + _local1].friendbest.gotoAndStop("walls");
}
bg["t" + _local1].friendbest._y = cliffTileHeight - (friendBest - minScore);
}
}
}
function placeAndMakeBackground() {
bottomTile = Math.floor(bg._y / cliffTileHeight);
topTile = bottomTile + 1;
if (bg["t" + bottomTile] == undefined) {
makeBgTile(bottomTile);
}
if (bg["t" + topTile] == undefined) {
makeBgTile(topTile);
if (topTile > 2) {
placeBonuses(topTile);
}
}
if (bg["t" + (bottomTile - 1)] != undefined) {
removeMovieClip(bg["t" + (bottomTile - 1)]);
}
if (bg["t" + (topTile + 1)] != undefined) {
removeMovieClip(bg["t" + (topTile + 1)]);
}
if (penguinSpeedY < blurSpeed) {
bg["t" + bottomTile].leftCliffTile.gotoAndStop("blur");
bg["t" + bottomTile].rightCliffTile.gotoAndStop("blur");
bg["t" + topTile].leftCliffTile.gotoAndStop("blur");
bg["t" + topTile].rightCliffTile.gotoAndStop("blur");
} else {
bg["t" + bottomTile].leftCliffTile.gotoAndStop("normal");
bg["t" + bottomTile].rightCliffTile.gotoAndStop("normal");
bg["t" + topTile].leftCliffTile.gotoAndStop("normal");
bg["t" + topTile].rightCliffTile.gotoAndStop("normal");
}
bottomFarTile = Math.floor(farBg._y / farBgTileHeight);
topFarTile = bottomFarTile + 1;
if (farBg["farBgTile" + bottomFarTile] == undefined) {
duplicateMovieClip (farBg.farBgTile, "farBgTile" + bottomFarTile, 1000 - bottomFarTile);
farBg["farBgTile" + bottomFarTile]._y = (-(bottomFarTile - 1)) * farBgTileHeight;
tileNum = Math.round((bottomFarTile - 1) / farBgTilesPerChange) + 1;
if (tileNum >= farBg.farBgTile._totalframes) {
tileNum = farBg.farBgTile._totalframes;
}
farBg["farBgTile" + bottomFarTile].gotoAndStop(tileNum);
}
if (farBg["farBgTile" + topFarTile] == undefined) {
duplicateMovieClip (farBg.farBgTile, "farBgTile" + topFarTile, 1000 - topFarTile);
farBg["farBgTile" + topFarTile]._y = (-(topFarTile - 1)) * farBgTileHeight;
tileNum = Math.round((topFarTile - 1) / farBgTilesPerChange) + 1;
if (tileNum >= farBg.farBgTile._totalframes) {
tileNum = farBg.farBgTile._totalframes;
}
farBg["farBgTile" + topFarTile].gotoAndStop(tileNum);
}
if (farBg["farBgTile" + (topFarTile + 1)] != undefined) {
removeMovieClip(farBg["farBgTile" + (topFarTile + 1)]);
}
if (farBg["farBgTile" + (bottomFarTile - 1)] != undefined) {
removeMovieClip(farBg["farBgTile" + (bottomFarTile - 1)]);
}
}
function genIntFunc() {
if (gameon == true) {
applyGravity();
hitTestPenguin();
movePenguin();
placeAndMakeBackground();
checkGameOver();
}
if (flickNumbers == true) {
if (cm < aimCm) {
cm = cm + 10;
}
if (cm > aimCm) {
cm = cm - 10;
}
displayMeasure = cm / 100;
displayMeasure = displayMeasure.toString();
displayMeasure = addZeros(displayMeasure);
displayMeasure = displayMeasure + "m";
}
if ((cm > bestScore) && (bestToggle != true)) {
score.best.gotoAndPlay("in");
bestToggle = true;
} else if ((cm < bestScore) && (bestToggle == true)) {
score.best.gotoAndPlay("out");
bestToggle = false;
}
if (gameon == true) {
if (gameMusic.getVolume() < 100) {
gameMusic.setVolume(gameMusic.getVolume() + 1);
}
} else if (gameMusic.getVolume() > 0) {
gameMusic.setVolume(gameMusic.getVolume() - 1);
}
updateAfterEvent();
}
function deleteOldGameStuff() {
removeMovieClip(bg["t" + bottomTile]);
removeMovieClip(bg["t" + topTile]);
removeMovieClip(bg["t" + (bottomTile - 1)]);
removeMovieClip(bg["t" + (topTile + 1)]);
removeMovieClip(farBg["farBgTile" + topFarTile]);
removeMovieClip(farBg["farBgTile" + bottomFarTile]);
removeMovieClip(farBg["farBgTile" + (topFarTile - 1)]);
removeMovieClip(farBg["farBgTile" + (bottomFarTile + 1)]);
}
function checkGameOver() {
if (((penguin._y - (penguin._height / 2)) > gameOverLine._y) && (gamestarted == true)) {
gameOver = true;
} else if ((penguin._x + (penguin._width / 2)) < 0) {
gameOver = true;
} else if ((penguin._x - (penguin._width / 2)) > screenWidth) {
gameOver = true;
}
if ((gamestarted == false) && ((penguin._y - (penguin._height / 2)) < screenHeight)) {
gamestarted = true;
}
if (gameOver == true) {
currentTurbos = 0;
turbos.play();
finalScore = (cm / 100) + "";
gameon = false;
gotoAndPlay ("gameover");
}
}
function penguinHit() {
if (pengHitToggle != true) {
pengHitToggle = true;
dummies.gotoAndPlay("out");
}
if (turboMode == false) {
hypotenuse = Math.sqrt(Math.pow(penguin._x - _xmouse, 2) + Math.pow(penguin._y - _ymouse, 2));
hitPerc = hypotenuse / (penguin._height / 2);
hitSpeed = minSpeed + (hitPerc * defaultHitSpeed);
currentBoosterVal = boosterY;
penguinSpeedY = hitSpeed;
penguinXRandomness = 30 + Math.round(bg._y / 750);
xSensitivity = 5 - (Math.round(bg._y / 750) / 10);
if (xSensitivity < 1) {
xSensitivity = 1;
}
maxXRate = penguinXRandomness / 10;
penguinSpeedX = ((penguin._x - _xmouse) / xSensitivity) + ((random(penguinXRandomness) - (penguinXRandomness / 2)) / 10);
if (penguinSpeedX < (-maxXRate)) {
penguinSpeedX = -maxXRate;
}
if (penguinSpeedX > maxXRate) {
penguinSpeedX = maxXRate;
}
penguinRot = penguinMaxRot * (penguinSpeedX / 3);
if ((currentPengAnim == null) || (random(100) > 50)) {
currentPengAnim = random(12) + 1;
}
penguin.inner.gotoAndPlay("downfall" + currentPengAnim);
}
}
function addZeros(displayMeasure) {
var _local1 = displayMeasure;
len = _local1.length;
decpoint = _local1.indexOf(".");
if (_local1 == 0) {
_local1 = "0.00";
} else if (decpoint == -1) {
_local1 = _local1 + ".00";
} else if ((len - decpoint) == 2) {
_local1 = _local1 + "0";
}
return(_local1);
}
function movePenguin() {
if (penguinSpeedY > maxPenguinDropSpeed) {
penguinSpeedY = maxPenguinDropSpeed;
}
if (currentBoosterVal > 0) {
penguin._y = penguin._y - currentBoosterVal;
currentBoosterVal = currentBoosterVal - 0.25;
}
if (turboMode == "sustain") {
penguinSpeedX = (_xmouse - penguin._x) / 10;
}
penguin._x = penguin._x + penguinSpeedX;
penguin._y = penguin._y + penguinSpeedY;
if (turboMode != false) {
penguinMaxPoint = turboMaxLine._y;
if (((turboMode == "sustain") && (turboSustained == false)) && (penguin._y > sustainMinLine._y)) {
turboSustained = true;
}
if (turboMode == "speedup") {
screenMove = screenMove + screenMoveChange;
penguinMinPoint = speedUpMinLine._y;
} else if (turboMode == "sustain") {
if (turboSustained == true) {
penguinMinPoint = sustainMinLine._y;
} else {
screenMove = screenMove + screenMoveChange;
penguinMinPoint = speedUpMinLine._y;
}
} else if (turboMode == "slowdown") {
screenMove = screenMove - screenMoveSlowdown;
penguinMinPoint = false;
if (turboSustained != true) {
screenMove = screenMove + screenMoveChange;
}
if (screenMove < defaultScreenMove) {
screenMove = defaultScreenMove;
}
}
} else {
if (regularSustained == true) {
penguinMinPoint = regMinLine._y;
} else {
penguinMinPoint = false;
if (penguin._y > sustainMinLine._y) {
regularSustained = true;
}
}
penguinMaxPoint = false;
screenMove = defaultScreenMove;
}
penguin._y = penguin._y + screenMove;
bg._y = bg._y + screenMove;
farBg._y = farBg._y + (screenMove * parallaxRate);
framePos = Math.round(bg._y / 40);
if (framePos > fader._totalframes) {
framePos = fader._totalframes;
}
fader.gotoAndStop(framePos);
if ((penguin._y < -30) && (pointerStatus != true)) {
pointerStatus = true;
pointer.play();
} else if ((pointerStatus == true) && (penguin._y > 0)) {
pointerStatus = false;
pointer.play();
}
pointer._x = penguin._x;
newcm = Math.round(bg._y - penguin._y) + 500;
if (newcm > cm) {
cm = newcm;
}
if (cm < 500) {
cm = 500;
}
displayMeasure = cm / 100;
displayMeasure = displayMeasure.toString();
displayMeasure = addZeros(displayMeasure);
displayMeasure = displayMeasure + "m";
if ((penguinMinPoint != false) && (penguin._y < penguinMinPoint)) {
penguinYAdjust = penguinMinPoint - penguin._y;
screenMove = (-penguinSpeedY) + (screenMoveChange * 4);
} else if ((penguinMaxPoint != false) && (penguin._y > penguinMaxPoint)) {
penguinYAdjust = penguinMaxPoint - penguin._y;
screenMove = (-penguinSpeedY) - (screenMoveChange * 4);
} else {
penguinYAdjust = false;
}
if (penguinYAdjust != false) {
penguin._y = penguin._y + penguinYAdjust;
bg._y = bg._y + penguinYAdjust;
farBg._y = farBg._y + (penguinYAdjust * parallaxRate);
}
screenXAim = -penguinSpeedX;
if ((bg._x + screenXAim) > 0) {
screenXAim = -bg._x;
}
if ((bg._x + screenXAim) < (screenWidth - tileWidth)) {
screenXAim = (screenWidth - tileWidth) - bg._x;
}
screenXMove = screenXAim / screenXMoveRate;
penguin._x = penguin._x + screenXMove;
bg._x = bg._x + screenXMove;
farBg._x = farBg._x + (screenXMove * parallaxRate);
if (turboMode == false) {
penguinRot = penguinRot / rotSlowDown;
penguin.inner._rotation = penguin.inner._rotation + penguinRot;
}
}
function moveOffObject(moveObj, hitObj, xRate, yRate) {
var _local1 = moveObj;
var _local3 = xRate;
var _local2 = yRate;
while (_local1.hitTest(hitObj) == true) {
_local1._x = _local1._x + _local3;
_local1._y = _local1._y + _local2;
}
}
function hitTestPenguin() {
testWall(bottomTile);
testWall(topTile);
if (bg["t" + bottomTile] != undefined) {
testBonusHits(bottomTile);
testObjectHits(bottomTile);
}
if (bg["t" + topTile] != undefined) {
testBonusHits(topTile);
testObjectHits(topTile);
}
}
function testWall(id) {
var _local1 = id;
if (penguin.hitTest(bg["t" + _local1].leftCliffTile.inner) == true) {
moveOffObject(penguin, bg["t" + _local1].leftCliffTile.inner, 0.5, 0);
if (penguinSpeedX < 0) {
penguinSpeedX = (-penguinSpeedX) * 2;
}
wallHitSound.gotoAndPlay("hit");
}
if (penguin.hitTest(bg["t" + _local1].rightCliffTile.inner) == true) {
moveOffObject(penguin, bg["t" + _local1].rightCliffTile.inner, -0.25, 0);
if (penguinSpeedX > 0) {
penguinSpeedX = (-penguinSpeedX) * 2;
}
wallHitSound.gotoAndPlay("hit");
}
}
function testObjectHits(tileTest) {
holderDis = bg["t" + tileTest].objectHolder;
objectCount = 0;
while (holderDis["o" + objectCount] != undefined) {
thisObject = holderDis["o" + objectCount];
if ((thisObject.anim == true) && (penguin.inner.hitTest(thisObject) == true)) {
thisObject.animation.play();
thisObject.anim = false;
}
objectCount++;
}
}
function testBonusHits(tileTest) {
holderDis = bg["t" + tileTest].bonusHolder;
bonusCount = 0;
while (holderDis["bonus" + bonusCount] != undefined) {
thisBonus = holderDis["bonus" + bonusCount];
if (((thisBonus.myStatus == "active") && (penguin._y > -10)) && (penguin.inner.hitTest(thisBonus.inner) == true)) {
if (turboClickedToggle == false) {
turboClickedToggle = true;
}
thisBonus.clickme.play();
if (thisBonus.bonusType == 1) {
addTurboSpeed();
} else {
turboMultiplier(thisBonus.bonusType);
}
thisBonus.bonus.play();
thisBonus.butt.gotoAndStop("off");
thisBonus.myStatus = "inactive";
}
bonusCount++;
}
}
function useTurbos() {
penguinSpeedY = minSpeed + defaultHitSpeed;
if (currentTurbos > 1) {
currentBoosterVal = boosterY;
turboMode = "speedup";
penguin.inner.gotoAndPlay("blur");
turboSustain = (currentTurbos * 2) * sustainPerTurbo;
penguin.inner._rotation = 0;
penguinSpeedX = 0;
turboSustained = false;
regularSustained = false;
} else {
penguinSpeedY = penguinSpeedY * 2;
}
currentTurbos = 0;
turbos.play();
}
function addTurboSpeed() {
currentTurbos++;
turboDisplay = "x" + currentTurbos;
turbos.play();
turbos.display.play();
}
function turboMultiplier(by) {
currentTurbos = currentTurbos * by;
turboDisplay = "x" + currentTurbos;
turbos.play();
turbos.display.play();
}
function applyGravity() {
if (pengHitToggle != true) {
gravity = softGravity;
dummies._y = penguin._y;
dummies._x = penguin._x + 40;
} else {
minusGrav = (bg._y - 10000) / 100000;
gravity = ((minusGrav > 0) ? (defaultGravity - (bg._y / 100000)) : (defaultGravity));
if (gravity < 0.1) {
gravity = 0.1;
}
}
if (turboMode == false) {
penguinSpeedY = penguinSpeedY + gravity;
} else if (turboMode == "speedup") {
penguinSpeedY = penguinSpeedY - turboSpeedUpRate;
if (penguinSpeedY <= maxTurboSpeed) {
penguinSpeedY = maxTurboSpeed;
turboMode = "sustain";
}
} else if (turboMode == "sustain") {
turboSustain--;
if (turboSustain == 0) {
penguinSpeedX = 0;
turboMode = "slowdown";
}
} else if (turboMode == "slowdown") {
penguinSpeedY = penguinSpeedY + turboSlowDownRate;
if (penguinSpeedY > (defaultHitSpeed + minSpeed)) {
penguin.gotoAndPlay("decide");
penguinSpeedY = turboDoneSpeed;
turboMode = false;
}
}
}
function trackIt(action) {
var _local1 = action;
_local1 = "cubegame_" + _local1;
loadMovieNum ((((("" add CID) add "&url=") add _local1) add "&rnd=") add Math.ceil(Math.random() * 100000000), 100);
}
function initialise() {
screenHeight = 360;
screenWidth = 620;
parallaxRate = 0.75;
penguinSpeedY = -2;
penguinSpeedX = 0;
defaultGravity = 0.6;
softGravity = 0.2;
gameon = false;
minSpeed = -12;
defaultHitSpeed = -4;
turboDoneSpeed = -25;
screenMove = (defaultScreenMove = 5.5);
screenMoveChange = 0.75;
screenMoveSlowdown = 2;
screenXMoveRate = 5;
screenYMoveRate = 23;
minYScreenAim = null;
maxCliffTiles = 28;
farBgTilesPerChange = 1;
currentTurbos = 0;
turbos.play();
maxPenguinDropSpeed = 12.5;
boosterY = 10;
penguinMaxRot = 20;
rotSlowDown = 1.05;
maxTurboSpeed = -40;
firstTurbo = true;
turboToggle = false;
turboMode = false;
pengHitToggle = false;
regularSustained = false;
turboSustained = false;
dontfallToggle = false;
turboClickedToggle = false;
blurSpeed = -35;
turboSpeedUpRate = 0.75;
turboSlowDownRate = 0.7;
sustainPerTurbo = 4;
cm = 0;
gamestarted = false;
gameOver = false;
cliffTileHeight = 445;
farBgTileHeight = 725;
tileWidth = 630;
cliffWidth = 79;
penguin.inner.gotoAndPlay("downfall1");
bg._x = -10;
bg._y = -80;
farBg._x = 0;
farBg._y = 420;
penguin._x = 250 + ((chosenPenguin - 1) * 55);
penguin._y = -70;
fader.gotoAndStop(1);
if ((((friendName != undefined) && (friendName != "")) && (friendBest != undefined)) && (friendBest == Number(friendBest))) {
friendBestDisplay = (friendBest / 100) + "m";
trace(friendBestDisplay);
}
}
function playGame() {
gotoAndPlay ("playstart");
}
function checkSomethingsLoaded(loadItems, intervalName, doneFunc, doneParams) {
var _local1 = loadItems;
loadBytes = 0;
loadTotal = 0;
deferIt = false;
i = 0;
while (i < _local1.length) {
loadBytes = loadBytes + _local1[i].getBytesLoaded();
tot = _local1[i].getBytesTotal();
loadTotal = loadTotal + tot;
if (tot <= 0) {
deferIt = true;
}
i++;
}
perc = (loadBytes / loadTotal) * 100;
if ((perc == 100) && (deferIt != true)) {
clearInterval(_root[intervalName]);
_root[doneFunc](doneParams);
}
}
function doneLoading(false) {
play();
}
var MochiAd = {getVersion:function () {
return("2.6");
}, showPreGameAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var _local2 = (100 * clip_loaded) / clip_total;
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(_local2 || 0, ad_pcnt));
pcnt = Math.max(_local1.last_pcnt, pcnt);
_local1.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
clip._mochiad.lc.send(clip._mochiad._containerLCName, "notify", {id:"hostLoadPcnt", pcnt:_local2});
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}, showClickAwayAd:function (options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local2 = MochiAd._getRes(options);
var w = _local2[0];
var h = _local2[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local1 = false;
if (!chk.showing) {
var _local2 = ad_clip.getBytesTotal();
if ((_local2 > 0) || (typeof(_local2) == "undefined")) {
_local1 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
options.ad_failed();
_local1 = true;
}
}
if (_local1) {
delete this.onEnterFrame;
}
};
}
}, showInterLevelAd:function (options) {
var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = MochiAd._parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!MochiAd.load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = MochiAd._getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}, showPreloaderAd:function (options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
MochiAd.showPreGameAd(options);
}, showTimedAd:function (options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
MochiAd.showInterLevelAd(options);
}, _allowDomains:function (server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}, load:function (options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = MochiAd._parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = MochiAd.getVersion();
var clip = _local1.clip;
if (!MochiAd._isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = MochiAd._getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = MochiAd._allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new LocalConnection();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
_local2.loadMovie(server + ".swf", "POST");
return(mc);
}, unload:function (clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
if (_local1._mochiad._containerLCName != undefined) {
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "notify", {id:"unload"});
}
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}, _isNetworkAvailable:function () {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}, _getRes:function (options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}, _parseOptions:function (options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}, rpc:function (clip, callbackID, arg) {
var _local1 = clip;
var _local2 = arg;
switch (_local2.id) {
case "setValue" :
MochiAd.setValue(_local1, _local2.objectName, _local2.value);
return;
case "getValue" :
var val = MochiAd.getValue(_local1, _local2.objectName);
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "rpcResult", callbackID, val);
return;
case "runMethod" :
var _local3 = MochiAd.runMethod(_local1, _local2.method, _local2.args);
_local1._mochiad.lc.send(_local1._mochiad._containerLCName, "rpcResult", callbackID, _local3);
return;
default :
trace("[mochiads rpc] unknown rpc id: " + _local2.id);
}
}, setValue:function (base, objectName, value) {
var _local2 = base;
var nameArray:Array = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return;
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
_local2[nameArray[_local1]] = value;
}, getValue:function (base, objectName) {
var _local2 = base;
var nameArray:Array = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return(undefined);
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
return(_local2[nameArray[_local1]]);
}, runMethod:function (base, methodName, argsArray:Array) {
var _local2 = base;
var nameArray:Array = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (nameArray.length - 1)) {
if ((_local2[nameArray[_local1]] == undefined) || (_local2[nameArray[_local1]] == null)) {
return(undefined);
}
_local2 = _local2[nameArray[_local1]];
_local1++;
}
if (typeof(_local2[nameArray[_local1]]) == "function") {
return(_local2[nameArray[_local1]].apply(_local2, argsArray));
}
return(undefined);
}, _:null};
MochiAd.showPreGameAd({id:"97954389d6fd28b4", res:"620x360"});
genInt = setInterval(genIntFunc, 12);
du_start = getTimer();
CID = "au_optusmobile_0";
trackIt("pageimpression");
bestScore = 0;
flickNumbers = false;
gameMusic = new Sound(gameMusicMov);
gameMusic.setVolume(0);
genSound = new Sound();
formToggle = false;
Frame 39
function loadGame() {
perc = _root.getBytesLoaded() / _root.getBytesTotal();
LoadBarFill._xscale = Math.round(perc * 100);
if (perc == 1) {
clearInterval(loadInt);
play();
}
}
_quality = "BEST";
toadbut.useHandCursor = false;
loadInt = setInterval(loadGame, 10);
stop();
Frame 50
stop();
Frame 51
stop();
Frame 52
panels.goto = "start";
panels.play();
Frame 53
stop();
Frame 54
stop();
Frame 55
penguins.peng.gotoAndPlay(5);
Frame 56
playGame();
Frame 57
cm = 0;
displayMeasure = "0.00m";
aimCm = 500;
flickNumbers = true;
Frame 114
flickNumbers = false;
initialise();
_quality = "LOW";
gameon = true;
Frame 115
stop();
Frame 117
if (cm > 12000) {
if (bestScore < cm) {
panels.goto = ((formToggle == true) ? "resubmit" : "entryform");
bestScore = cm;
finalBest = (bestScore / 100) + "m";
} else {
panels.goto = "already";
}
} else {
panels.goto = "tryagain";
}
if (cm == 500) {
panels.gotoAndPlay("didntclick");
} else {
panels.gotoAndPlay("gameover");
}
Frame 127
_quality = "HIGH";
stop();
Frame 128
cm = 500;
displayMeasure = "5.00m";
aimCm = 0;
flickNumbers = true;
Frame 159
water.water.gotoAndPlay(13);
water.water2.gotoAndPlay(13);
Frame 160
penguins.peng.gotoAndPlay(5);
Frame 193
gotoAndStop ("choosepenguin");
Symbol 5 MovieClip Frame 1
stop();
Symbol 7 MovieClip Frame 1
stop();
Symbol 32 MovieClip Frame 1
timer = 1;
_parent.stop();
Symbol 32 MovieClip Frame 2
timer++;
Symbol 32 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
if (timer >= seconds) {
stop();
_parent.play();
} else {
_parent.stop();
}
Instance of Symbol 32 MovieClip in Symbol 34 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
seconds = 60;
}
//component parameters
onClipEvent (initialize) {
seconds = 60;
}
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
loop = random(30);
Symbol 35 MovieClip Frame 3
if (loop >= 29) {
play();
} else {
gotoAndPlay (2);
}
Symbol 35 MovieClip Frame 13
gotoAndPlay (2);
Symbol 38 MovieClip Frame 26
loop = random(4);
Symbol 38 MovieClip Frame 27
if (loop >= 3) {
play();
} else {
gotoAndPlay ("loop");
}
Symbol 86 MovieClip Frame 22
stop();
Symbol 109 Button
on (release) {
play();
}
Symbol 209 Button
on (release) {
goto = "play";
play();
}
Symbol 211 Button
on (release) {
_root.trackIt("playgame");
goto = "play";
play();
}
Symbol 231 Button
on (release) {
if (_root.gameover == true) {
_parent.goto = "restart";
} else {
_parent.goto = "start";
}
_parent.play();
_root.penguins._alpha = 100;
}
Symbol 235 Button
on (release) {
_root.trackIt("submitscore");
_root.resubmit();
_parent.goto = "submitted";
_parent.play();
}
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
stop();
Symbol 243 MovieClip Frame 1
congrats_txt.text = ("You reached " + _root.finalScore) + "m";
Symbol 263 Button
on (release) {
if (_root.validateFormStart() == true) {
_parent.play();
}
}
Symbol 316 Button
on (release) {
if (_name == "sendfriendbase") {
if (_root.validateFormSendFriend() == true) {
_parent.play();
}
} else if (_name == "sendfriendfinal") {
_parent.gotoAndPlay = false;
_root.sendFriend();
_parent.play();
} else if (_root.validateFormStart() == true) {
_root.trackIt("sendfriend");
_parent.play();
}
}
Symbol 319 Button
on (release) {
_parent.goto = "back";
_parent.play();
}
Symbol 336 MovieClip Frame 2
if ((goto == false) || (goto == undefined)) {
gotoAndStop (1);
} else {
gotoAndPlay(goto);
}
Symbol 336 MovieClip Frame 12
stop();
Symbol 336 MovieClip Frame 18
if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 33
stop();
Symbol 336 MovieClip Frame 43
if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 65
stop();
Symbol 336 MovieClip Frame 71
if (goto == "play") {
gotoAndStop (1);
_parent.gotoAndStop("choosepenguin");
} else if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 103
stop();
Symbol 336 MovieClip Frame 113
if (goto == "restart") {
gotoAndStop (1);
_root.gotoAndPlay("restart");
}
Symbol 336 MovieClip Frame 140
function wait() {
stop();
var myInterval = setInterval(function () {
play();
clearInterval(myInterval);
}, 3000);
}
wait();
Symbol 336 MovieClip Frame 150
stop();
sendscore = new LoadVars();
sendscore.gscore = _root.finalScore;
sendscore.gname = "turbopenguinsSte";
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
stopAllSounds();
_root._visible = false;
_root.enabled = false;
Symbol 336 MovieClip Frame 160
stop();
Symbol 336 MovieClip Frame 169
if (goto == "play") {
gotoAndStop (1);
_root.gotoAndPlay("restart");
} else if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 179
stop();
Symbol 336 MovieClip Frame 188
if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 205
stop();
Symbol 336 MovieClip Frame 211
if (goto == "restart") {
gotoAndStop (1);
_root.gotoAndPlay("restart");
} else if (goto == "start") {
gotoAndPlay ("start");
}
Symbol 336 MovieClip Frame 219
stop();
Symbol 336 MovieClip Frame 229
if (goto == "back") {
gotoAndPlay ("sendfriend");
}
Symbol 336 MovieClip Frame 272
if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 336 MovieClip Frame 297
stop();
Symbol 336 MovieClip Frame 305
playbutton.gotoAndPlay("out");
Symbol 336 MovieClip Frame 306
if (goto == "play") {
gotoAndStop (1);
_root.gotoAndPlay("restart");
} else if (goto != false) {
gotoAndPlay(goto);
} else {
gotoAndStop (1);
}
Symbol 340 MovieClip Frame 1
stop();
Symbol 340 MovieClip Frame 14
stop();
Symbol 348 MovieClip Frame 1
stop();
Symbol 348 MovieClip Frame 15
stop();
_parent.play();
Symbol 374 MovieClip Frame 1
stop();
Symbol 378 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 12
stop();
Symbol 387 MovieClip Frame 8
stop();
Instance of Symbol 32 MovieClip in Symbol 392 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
seconds = 20;
}
//component parameters
onClipEvent (initialize) {
seconds = 20;
}
Instance of Symbol 32 MovieClip in Symbol 392 MovieClip Frame 32
//component parameters
onClipEvent (initialize) {
seconds = 20;
}
//component parameters
onClipEvent (initialize) {
seconds = 20;
}
Instance of Symbol 32 MovieClip in Symbol 392 MovieClip Frame 40
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
Symbol 392 MovieClip Frame 41
head.play();
Instance of Symbol 32 MovieClip in Symbol 392 MovieClip Frame 41
//component parameters
onClipEvent (initialize) {
seconds = 20;
}
//component parameters
onClipEvent (initialize) {
seconds = 20;
}
Instance of Symbol 32 MovieClip in Symbol 392 MovieClip Frame 50
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
Symbol 392 MovieClip Frame 54
_parent.logo.play();
_parent.mask.play();
Symbol 392 MovieClip Frame 66
stop();
_parent.play();
Symbol 399 MovieClip Frame 22
stop();
Symbol 400 MovieClip Frame 26
stop();
_parent.play();
Symbol 400 MovieClip Frame 27
stop();
Instance of Symbol 32 MovieClip in Symbol 400 MovieClip Frame 28
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
Instance of Symbol 32 MovieClip in Symbol 400 MovieClip Frame 47
//component parameters
onClipEvent (initialize) {
seconds = 12;
}
//component parameters
onClipEvent (initialize) {
seconds = 12;
}
Instance of Symbol 32 MovieClip in Symbol 400 MovieClip Frame 48
//component parameters
onClipEvent (initialize) {
seconds = 120;
}
//component parameters
onClipEvent (initialize) {
seconds = 120;
}
Symbol 400 MovieClip Frame 61
_parent.play();
Symbol 450 MovieClip Frame 1
loop = random(50);
Symbol 450 MovieClip Frame 2
if (loop >= 49) {
play();
} else {
gotoAndPlay (1);
}
Symbol 451 MovieClip Frame 1
stop();
Symbol 451 MovieClip Frame 5
head.play();
Symbol 451 MovieClip Frame 11
_root.penguins.peng.play();
Symbol 451 MovieClip Frame 12
stop();
Symbol 452 MovieClip Frame 13
p3.play();
Symbol 452 MovieClip Frame 14
stop();
_root.snds.play();
Symbol 456 MovieClip Frame 1
gotoAndPlay(random(3) + 1);
Symbol 456 MovieClip Frame 2
stop();
Symbol 456 MovieClip Frame 3
stop();
Symbol 456 MovieClip Frame 4
stop();
Symbol 458 MovieClip Frame 1
stop();
Symbol 458 MovieClip Frame 2
head.play();
Symbol 458 MovieClip Frame 7
stop();
Symbol 458 MovieClip Frame 18
gotoAndStop (1);
Symbol 458 MovieClip Frame 23
stop();
Symbol 458 MovieClip Frame 25
_root.play();
_root.blurs.blur.play();
Symbol 458 MovieClip Frame 26
stop();
Instance of Symbol 32 MovieClip in Symbol 459 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
seconds = 190;
}
//component parameters
onClipEvent (initialize) {
seconds = 190;
}
Instance of Symbol 32 MovieClip in Symbol 459 MovieClip Frame 2
//component parameters
onClipEvent (initialize) {
seconds = 8;
}
//component parameters
onClipEvent (initialize) {
seconds = 8;
}
Symbol 459 MovieClip Frame 3
stop();
Symbol 459 MovieClip Frame 4
stop();
Symbol 459 MovieClip Frame 38
gotoAndPlay (5);
Symbol 462 MovieClip Frame 1
stop();
Symbol 462 MovieClip Frame 2
stop();
Symbol 462 MovieClip Frame 3
stop();
Symbol 462 MovieClip Frame 4
stop();
Symbol 462 MovieClip Frame 5
stop();
Symbol 462 MovieClip Frame 6
stop();
Symbol 462 MovieClip Frame 7
stop();
Symbol 462 MovieClip Frame 8
stop();
Symbol 462 MovieClip Frame 9
stop();
Symbol 462 MovieClip Frame 10
stop();
Symbol 462 MovieClip Frame 11
stop();
Symbol 462 MovieClip Frame 12
stop();
Symbol 462 MovieClip Frame 13
stop();
Symbol 467 Button
on (release) {
_parent.genSound.setVolume(0);
nextFrame();
}
Symbol 468 Button
on (release) {
_parent.genSound.setVolume(100);
prevFrame();
}
Symbol 469 MovieClip Frame 1
stop();
Symbol 469 MovieClip Frame 2
stop();
Symbol 470 Button
on (press) {
penguins.peng.p2.gotoAndPlay("charge");
blurs.gotoAndStop(2);
}
on (releaseOutside) {
penguins.peng.p2.gotoAndPlay("chargeout");
}
on (release) {
chosenPenguin = 2;
penguins.peng.p2.gotoAndPlay("launch");
launch._x = launch._x + 40;
launch.play();
}
on (rollOver) {
penguins.peng.p2.gotoAndPlay("over");
}
Symbol 471 Button
on (press) {
penguins.peng.p1.gotoAndPlay("charge");
blurs.gotoAndStop(1);
}
on (releaseOutside) {
penguins.peng.p1.gotoAndPlay("chargeout");
}
on (release) {
chosenPenguin = 1;
penguins.peng.p1.gotoAndPlay("launch");
launch.play();
}
on (rollOver) {
penguins.peng.p1.gotoAndPlay("over");
}
Symbol 472 Button
on (press) {
penguins.peng.p3.gotoAndPlay("charge");
blurs.gotoAndStop(3);
}
on (releaseOutside) {
penguins.peng.p3.gotoAndPlay("chargeout");
}
on (release) {
chosenPenguin = 3;
penguins.peng.p3.gotoAndPlay("launch");
launch._x = launch._x + 120;
launch.play();
}
on (rollOver) {
penguins.peng.p3.gotoAndPlay("over");
}
Symbol 480 MovieClip Frame 16
stop();
Symbol 482 MovieClip Frame 1
stop();
Symbol 482 MovieClip Frame 59
stop();
Symbol 483 MovieClip Frame 1
stop();
Symbol 483 MovieClip Frame 2
stop();
Symbol 483 MovieClip Frame 3
stop();
Instance of Symbol 32 MovieClip in Symbol 502 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
//component parameters
onClipEvent (initialize) {
seconds = 15;
}
Symbol 502 MovieClip Frame 172
stop();
Symbol 504 MovieClip Frame 1
stop();
Symbol 504 MovieClip Frame 2
stop();
Symbol 509 MovieClip Frame 1
stop();
Symbol 509 MovieClip Frame 5
stop();
Symbol 523 MovieClip Frame 1
stop();
Symbol 523 MovieClip Frame 500
stop();
Symbol 547 MovieClip Frame 1
if (_name == "farBgTile") {
stop();
}
Symbol 547 MovieClip Frame 2
stop();
Symbol 547 MovieClip Frame 3
stop();
Symbol 547 MovieClip Frame 4
stop();
Symbol 547 MovieClip Frame 5
stop();
Symbol 547 MovieClip Frame 6
stop();
Symbol 547 MovieClip Frame 7
stop();
Symbol 547 MovieClip Frame 8
stop();
Symbol 547 MovieClip Frame 9
stop();
Symbol 547 MovieClip Frame 10
stop();
Symbol 547 MovieClip Frame 11
stop();
Symbol 547 MovieClip Frame 12
stop();
Symbol 547 MovieClip Frame 13
stop();
Symbol 547 MovieClip Frame 14
stop();
Symbol 547 MovieClip Frame 15
stop();
Symbol 547 MovieClip Frame 16
stop();
Symbol 547 MovieClip Frame 17
stop();
Symbol 547 MovieClip Frame 18
stop();
Symbol 547 MovieClip Frame 19
stop();
Symbol 547 MovieClip Frame 20
stop();
Symbol 547 MovieClip Frame 21
stop();
Symbol 547 MovieClip Frame 22
stop();
Symbol 547 MovieClip Frame 23
stop();
Symbol 547 MovieClip Frame 24
stop();
Symbol 547 MovieClip Frame 25
stop();
Symbol 547 MovieClip Frame 26
stop();
Symbol 559 MovieClip Frame 1
stop();
Symbol 559 MovieClip Frame 2
gotoAndStop ("off");
Symbol 559 MovieClip Frame 3
stop();
Symbol 559 MovieClip Frame 9
gotoAndStop ("off");
Symbol 559 MovieClip Frame 10
stop();
Symbol 559 MovieClip Frame 16
gotoAndStop ("off");
Symbol 564 MovieClip Frame 19
stop();
Symbol 569 MovieClip Frame 1
stop();
Symbol 569 MovieClip Frame 13
stop();
Symbol 572 Button
on (release) {
if (_root.gameover != true) {
if (_parent.bonusType == 1) {
_root.addTurboSpeed();
} else if (_parent.bonusType == 2) {
_root.turboMultiplier(2);
} else if (_parent.bonusType == 3) {
_root.turboMultiplier(3);
}
gotoAndStop ("off");
_parent.bonus.play();
if (_root.turboClickedToggle != true) {
_root.turboClickedToggle = true;
}
_parent.clickme.play();
_parent.myStatus = "inactive";
}
}
Symbol 573 MovieClip Frame 1
stop();
Symbol 573 MovieClip Frame 2
stop();
Symbol 581 MovieClip Frame 1
stop();
Symbol 581 MovieClip Frame 13
stop();
Symbol 583 MovieClip Frame 19
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 11
stop();
Symbol 588 MovieClip Frame 1
stop();
Symbol 588 MovieClip Frame 13
stop();
Symbol 590 MovieClip Frame 1
stop();
Symbol 590 MovieClip Frame 10
stop();
Symbol 594 MovieClip Frame 1
stop();
Symbol 594 MovieClip Frame 13
stop();
Symbol 596 MovieClip Frame 1
stop();
Symbol 596 MovieClip Frame 10
stop();
Symbol 600 MovieClip Frame 1
stop();
Symbol 600 MovieClip Frame 13
stop();
Symbol 602 MovieClip Frame 1
stop();
Symbol 602 MovieClip Frame 10
stop();
Symbol 603 MovieClip Frame 1
if (_name == "bonus") {
stop();
} else {
gotoAndStop(bonusType + 1);
}
Symbol 603 MovieClip Frame 2
stop();
Symbol 608 MovieClip Frame 1
stop();
Symbol 616 MovieClip Frame 1
stop();
Symbol 622 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 1
stop();
Symbol 630 MovieClip Frame 2
stop();
Symbol 632 MovieClip Frame 1
stop();
Symbol 632 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 1
if (_name == "tile") {
gotoAndStop ("off");
} else {
gotoAndStop(cliffState);
}
Symbol 633 MovieClip Frame 2
stop();
Symbol 633 MovieClip Frame 3
stop();
Symbol 633 MovieClip Frame 4
stop();
Symbol 641 MovieClip Frame 1
stop();
Symbol 641 MovieClip Frame 5
stop();
Symbol 649 MovieClip Frame 1
stop();
Symbol 651 Button
on (release) {
if (_parent.currentTurbos > 0) {
_parent.useTurbos();
}
}
Symbol 652 MovieClip Frame 3
if ((_parent.currentTurbos < 1) || (_parent.currentTurbos == undefined)) {
gotoAndStop ("off");
} else if (_parent.firstTurbo == true) {
firstTurboNote.gotoAndPlay("in");
}
Symbol 652 MovieClip Frame 15
if (_parent.currentTurbos >= 1) {
gotoAndStop ("on");
} else if (_parent.firstTurbo == true) {
firstTurboNote.gotoAndPlay("out");
_parent.firstTurbo = false;
}
Symbol 654 MovieClip Frame 2
if (_parent.pointerStatus != true) {
gotoAndStop (1);
}
Symbol 654 MovieClip Frame 9
if (_parent.pointerStatus == true) {
gotoAndStop ("on");
}
Symbol 663 MovieClip Frame 166
gotoAndPlay ("slow");
Symbol 664 MovieClip Frame 39
stop();
Symbol 664 MovieClip Frame 46
gotoAndPlay ("downfall2");
Symbol 664 MovieClip Frame 82
stop();
Symbol 664 MovieClip Frame 83
head.gotoAndPlay(2);
Symbol 664 MovieClip Frame 86
head.gotoAndPlay(2);
Symbol 664 MovieClip Frame 109
stop();
Symbol 664 MovieClip Frame 110
head.gotoAndPlay(2);
Symbol 664 MovieClip Frame 115
head.gotoAndPlay(2);
Symbol 664 MovieClip Frame 130
gotoAndPlay ("downfall5");
Symbol 664 MovieClip Frame 146
gotoAndPlay ("downfall14");
Symbol 664 MovieClip Frame 147
stop();
Symbol 664 MovieClip Frame 148
stop();
Symbol 664 MovieClip Frame 157
gotoAndPlay ("downfall8");
Instance of Symbol 32 MovieClip in Symbol 664 MovieClip Frame 167
//component parameters
onClipEvent (initialize) {
seconds = 6;
}
//component parameters
onClipEvent (initialize) {
seconds = 6;
}
Symbol 664 MovieClip Frame 183
stop();
Symbol 664 MovieClip Frame 190
stop();
Symbol 664 MovieClip Frame 200
stop();
Symbol 664 MovieClip Frame 201
_parent._parent.expl._x = _parent._parent.penguin._x;
_parent._parent.expl._y = _parent._parent.penguin._y;
_parent._parent.expl.gotoAndPlay(2);
Instance of Symbol 32 MovieClip in Symbol 664 MovieClip Frame 218
//component parameters
onClipEvent (initialize) {
seconds = 50;
}
//component parameters
onClipEvent (initialize) {
seconds = 50;
}
Symbol 664 MovieClip Frame 219
stop();
Symbol 666 Button
on (press) {
_root.penguinHit();
_root.snds.gotoAndPlay(random(11) + 2);
_root.popSound.play();
inner.head.play();
}
Symbol 668 MovieClip Frame 1
stop();
Symbol 668 MovieClip Frame 33
stop();
Symbol 679 MovieClip Frame 1
stop();
Instance of Symbol 32 MovieClip in Symbol 679 MovieClip Frame 5
//component parameters
onClipEvent (initialize) {
seconds = 50;
}
//component parameters
onClipEvent (initialize) {
seconds = 50;
}
Symbol 680 MovieClip Frame 4
stop();
Symbol 680 MovieClip Frame 8
stop();