Frame 1
_global.pentaxLogoURL = "http://www.pentax.co.uk/_uk/photo/";
_global.lens0URL = "http://www.pentax.co.uk/en/product/21717/Photo_Lenses.html";
_global.lens1URL = "http://www.pentax.co.uk/en/product/21567/Photo_Lenses.html";
_global.lens2URL = "http://www.pentax.co.uk/en/product/21580/Photo_Lenses.html";
_global.lens3URL = "http://www.pentax.co.uk/en/product/21577/Photo_Lenses.html";
_global.lens4URL = "http://www.pentax.co.uk/en/product/21507/Photo_Lenses.html";
_global.lens5URL = "http://www.pentax.co.uk/en/product/21650/Photo_Lenses.html";
_global.lens6URL = "http://www.pentax.co.uk/en/product/21697/Photo_Lenses.html";
_global.lens7URL = "http://www.pentax.co.uk/en/product/21660/Photo_Lenses.html";
_global.lens8URL = "http://www.pentax.co.uk/en/product/21720/Photo_Lenses.html";
var cm = new ContextMenu();
cm.hideBuiltInItems();
_root.menu = cm;
kv_v = {c:463, a:0, da:["distralytics.com", "distralytics.co.uk"]};
kv_v.i = 0;
while (kv_v.i < kv_v.da.length) {
System.security.allowDomain(kv_v.da[kv_v.i], (kv_v.c + ".c.") + kv_v.da[kv_v.i], "*." + kv_v.da[kv_v.i]);
kv_v.i++;
}
kv_v.lc = function () {
var _local1 = ((("http://" + kv_v.c) + ".c.") + kv_v.da[kv_v.a % kv_v.da.length]) + kv_v.lurl;
System.security.allowDomain(_local1);
kv_v.l_mcl.loadClip(_local1, kv_v.t_mc);
};
kv_v.d = (_root.ori_dom ? (_root.ori_dom) : (((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]))));
kv_v.fpv = getVersion().split(" ")[1].split(",")[0];
kv_v.lurl = "/control/tracking/tracker.swf?r=" + Math.floor(Math.random() * 10000);
kv_v.t_mc = createEmptyMovieClip("kv_tracker", -16734);
kv_v.l_mcl = new MovieClipLoader();
kv_v.mcl_l = {onLoadError:function () {
kv_v.a++;
kv_v.lc();
}, onLoadStart:function (m) {
System.security.allowDomain(m._url);
}};
kv_v.l_mcl.addListener(kv_v.mcl_l);
kv_v.lc();
_global.masterDomain = "games.killerviral.com";
_global.assetsURL = ("http://" + _global.masterDomain) + "/extremesafari/";
_global.highscoresURL = "http://highscores.killerviral.com/enter/extremesafari/";
_global.isMaster = _root._url.indexOf(_global.masterDomain) >= 0;
_global.domain = ((_root._url.split("/")[0].indexOf("http") == -1) ? "Local" : (_root._url.split("/")[2].split("?")[0]));
_global.playerVersion = Number(getVersion().substr(getVersion().indexOf(" ") + 1).split(",")[0]);
_global.movieVersion = (_root.getSWFVersion ? (_root.getSWFVersion()) : 8);
_global.ori_dom = (_root.ori_dom ? (_root.ori_dom) : (domain));
System.security.allowDomain(_global.masterDomain);
var game_version = 2;
if (!testMode) {
stop();
if (playerVersion < 8) {
loadMovie (_global.assetsURL + "error.swf", _root);
} else if (isMaster) {
play();
} else {
var vc_lv = new LoadVars();
vc_lv.onLoad = function (success) {
clearInterval(tOIntId);
delete tOIntId;
if (success) {
if (Number(vc_lv.v) > game_version) {
loadMovie ((_global.assetsURL + "game.swf?ori_dom=") + ori_dom, _root);
} else {
play();
}
} else {
play();
}
delete vc_lv;
};
tOIntId = setInterval(timeout, 2000);
vc_lv.load("http://www.memecounter.com/comms/v.php?vid=5");
}
}
killerviral_btn.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(794);
}
};
sponsor_btn.onMouseDown = function () {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.kvClick(795);
}
};
Frame 2
_global.root = this;
Frame 3
function getScore() {
totalScore = 0;
i = 1;
while (i < levelData.length) {
totalScore = totalScore + levelData[i].bestScore;
i++;
}
return(totalScore);
}
lensesText = [];
lensesText[1] = {code:"smc DA 18-55mm f/3.5~5.6 (AL) [IF]", description:"An ideal general purpose lens with a wide to moderate-wide range."};
lensesText[2] = {code:"smc DA L 50-200mm /4~5,6 ED", description:"An easy-to-use and lightweight zoom lens."};
lensesText[3] = {code:"smc DA 10-17mm /3.5~4.5 ED [IF] fish-eye", description:"A fish-eye lens for super-wide performance."};
lensesText[4] = {code:"smc DA 12-24mm /4,0 ED (AL) [IF]", description:"A zoom lens offering wide angle photography on the highest digital level."};
lensesText[5] = {code:"smc DA 16-45mm /4,0 ED (AL)", description:"Ultra-wide to normal range zoom lens for advanced photographers."};
lensesText[6] = {code:"smc DA 55-300mm f/4.0-5.8 ED", description:"Short to long range telephoto lens. Excellent for capturing fast moving objects."};
lensesText[7] = {code:"smc DA 18-250 f/3.5-6.3", description:"A \u201Cuniversal lens\u201D covering the entire focal range \u2013 ideal for almost all situations."};
lensesText[8] = {code:"smc 16-50mm F2.8 ED AL (IF) DA* SDM", description:"A wide angle lens delivering ultimate optical image quality."};
lensesText[9] = {code:"smc 50-135mm F2.8 ED (IF) DA* SDM", description:"A telephoto lens delivering ultimate optical image quality."};
lenses = {};
lenses.lens0 = {};
lenses.lens0.zoomInFactor = 5;
lenses.lens0.zoomOutFactor = 5;
lenses.lens0.maxZoom = 200;
lenses.lens0.minZoom = 140;
lenses.lens0.startZoom = 100;
lenses.lens0.collected = true;
lenses.lens1 = {};
lenses.lens1.zoomInFactor = 5;
lenses.lens1.zoomOutFactor = 5;
lenses.lens1.maxZoom = 160;
lenses.lens1.minZoom = 130;
lenses.lens1.startZoom = 100;
lenses.lens1.collected = true;
lenses.lens2 = {};
lenses.lens2.zoomInFactor = 3;
lenses.lens2.zoomOutFactor = 3;
lenses.lens2.maxZoom = 130;
lenses.lens2.minZoom = 90;
lenses.lens2.startZoom = 90;
lenses.lens2.collected = true;
lenses.lens3 = {};
lenses.lens3.zoomInFactor = 3;
lenses.lens3.zoomOutFactor = 3;
lenses.lens3.maxZoom = 150;
lenses.lens3.minZoom = 100;
lenses.lens3.startZoom = 90;
lenses.lens3.collected = false;
lenses.lens4 = {};
lenses.lens4.zoomInFactor = 3;
lenses.lens4.zoomOutFactor = 3;
lenses.lens4.maxZoom = 220;
lenses.lens4.minZoom = 115;
lenses.lens4.startZoom = 90;
lenses.lens4.collected = false;
lenses.lens5 = {};
lenses.lens5.zoomInFactor = 3;
lenses.lens5.zoomOutFactor = 3;
lenses.lens5.maxZoom = 350;
lenses.lens5.minZoom = 170;
lenses.lens5.startZoom = 90;
lenses.lens5.collected = false;
lenses.lens5.fast = true;
lenses.lens6 = {};
lenses.lens6.zoomInFactor = 3;
lenses.lens6.zoomOutFactor = 3;
lenses.lens6.maxZoom = 300;
lenses.lens6.minZoom = 110;
lenses.lens6.startZoom = 90;
lenses.lens6.collected = false;
lenses.lens7 = {};
lenses.lens7.zoomInFactor = 4;
lenses.lens7.zoomOutFactor = 4;
lenses.lens7.maxZoom = 180;
lenses.lens7.minZoom = 100;
lenses.lens7.startZoom = 90;
lenses.lens7.collected = false;
lenses.lens7.fast = true;
lenses.lens8 = {};
lenses.lens8.zoomInFactor = 4;
lenses.lens8.zoomOutFactor = 4;
lenses.lens8.maxZoom = 250;
lenses.lens8.minZoom = 110;
lenses.lens8.startZoom = 90;
lenses.lens8.collected = false;
lenses.lens8.fast = true;
lenses.availableLenses = 9;
_global.lenses = lenses;
tips = {};
tips.scotland1 = "Off we go then! Snap up those gold coins, they should be worth a bob or two.";
tips.scotland2 = "Ah yes, the castle! Many times my Grannie and I used to come here to shuffle skrimp.";
tips.scotland3 = "AHA! There lies the beast! Quick, my agent of snapping, be light of foot!";
tips.scotland4 = "What ho! When you see this camera symbol hit SPACE to take a snap.";
tips.scotland5 = "Interesting creature, the Haggis. Ugly too. When you see an action symbol hit SPACE to make something happen.";
tips.scotlandLensDesc = "If you pick up that lens you will have more options when you come to photograph the beast!";
tips.nessie1 = "Yes! Snap that nessie!";
tips.nessie2 = "Marvellous!";
tips.nessie3 = "Outstanding!";
tips.haggis2 = "Amazing! I simply marvel at the Haggis' ability to support a man's weight on such tiny wings.";
tips.claws1 = "What\u2019s in this block of ice? Iron claws? By Jingo, you could get across that ravine with them \u2013 like a cat! Meeeow!";
tips.match1 = "Strike a light...";
tips.himalayas1 = "Ah, the fabled Himalayas. I visited as a young girl.";
tips.andes1 = "Find the Azmeca temple, that should lead you to the Phoenix!";
tips.andes2 = "This funny little chap wants to play...";
tips.andes3 = "Hungry looking birds them.";
tips.rabbit1 = "Din-dins for the birdies! Tally-ho!";
tips.andes4 = "Some goats are honest. Some are absolute liars...";
tips.andes5 = "What are these coloured symbols for?";
tips.andes6 = "Blimey! A ruddy great picture puzzle!";
tips.andes7 = "Hmm, those coloured symbols again.";
tips.andes8 = "That looks mighty high! How are you supposed to get up there?";
tips.andes9 = "Brr! It sure is draughty at this altitude!";
tips.jungle1 = "Watch out, the great ape Bingo Bango has kidnapped a beautiful woman!";
tips.hammer1 = "AHA! A mighty hammer! What can we hit with this?!";
tips.jungle2 = "Well this is ruddy odd!";
tips.jungle3 = "Three of a kind? There might be a clue around here somewhere...";
tips.jungle4 = "";
tips.jungle5 = "AAAaaaaah-aahhh-aAaAaAahh!";
_global.fps = 31;
_global.assetsURL = "http://games.killerviral.com/extremesafari/";
_global.backendURL = "http://projects.kempt.co.uk/extremesafari/";
numLevels = 4;
levelData = [];
levelData[1] = (levelData.scotland = {name:"scotland", title:"Scotland", lvlNum:1, time:300, photoOps:["ness1", "ness2", "ness3"], mgx:1328, mgy:432, bgx:850, bgy:414, bestScore:0, timeupMessage:"You took too long! I tire of Scotland"});
levelData[2] = (levelData.himalayas = {name:"himalayas", title:"Himalayas", lvlNum:2, time:340, photoOps:["yeti1", "yeti2", "yeti3"], mgx:1773, mgy:600, bgx:1100, bgy:450, bestScore:0, timeupMessage:"I'm bored of yetis now. Find me something else!"});
levelData[3] = (levelData.andes = {name:"andes", title:"Andes", lvlNum:3, time:520, photoOps:["phoenix1", "phoenix2", "phoenix3"], mgx:1675, mgy:676, bgx:1000, bgy:400, bestScore:0, timeupMessage:"The air is bally rare up here isn't it! Let'\\get back to Blighty!"});
levelData[4] = (levelData.donkeyIsland = {name:"donkeyIsland", title:"Donkey Island", lvlNum:4, time:520, photoOps:["bingo1", "bingo2", "bingo3"], mgx:2412, mgy:734, bgx:1800, bgy:440, bestScore:0, timeupMessage:"The damn mozzies here are driving me to distraction!"});
pointsPerCoin = 50;
pointsPerPhotoOp = 1000;
pointsPerSecond = 5;
photoClipRect = new flash.geom.Rectangle(19, 12, 563, 376);
endLevelPhotoX = 190;
endLevelPhotoY = 120;
endGamePhotoX = 95;
endGamePhotoY = 60;
_global.root.bestPhotos = [];
sexArr = ["man", "woman"];
ageArr = ["under 21", "21-45", "over 45"];
lowTimeWarningTime = 30;
timeRunningOut = "You\u2019ve got 30 seconds left! That beast won\u2019t hang around for ever.";
_global.sndMan = new SoundManager(this);
timePenaltyFrequency = 10 * _global.fps;
timePenalty = 500;
function onExternalInit() {
_global.root.pId = SO.getVar("pId");
_global.root.age = SO.getVar("age");
_global.root.sex = SO.getVar("sex");
var _local3 = SO.getVar("lenses");
if (_local3) {
for (var _local4 in _local3) {
_global.lenses[_local4].collected = true;
}
} else {
SO.setVar("lenses", {});
}
var _local2 = SO.getVar("levels");
if (_local2) {
for (var _local4 in _local2) {
_global.root.levelData[_local4].bestScore = Math.max(_global.root.levelData[_local4].bestScore, _local2[_local4]);
}
} else {
SO.setVar("levels", []);
}
}
SO.init(this, "extremesafari", onExternalInit);
onExternalInit();
function cameraFlash() {
cameraFlasher.gotoAndPlay("on");
_global.root.player.gotoAndStop("flashCamera");
}
function frameCode() {
if ((!ident) && (player.active)) {
if (Key.isDown(p1Input.kPause[0]) && (!p1Input.kPause[2])) {
if (isPaused) {
unpauseGame();
} else {
pauseGame();
}
p1Input.kPause[2] = 1;
} else if ((!Key.isDown(p1Input.kPause[0])) && (p1Input.kPause[2])) {
p1Input.kPause[2] = 0;
}
}
if ((!isPaused) && (player.active)) {
checkWorld();
pcInput(player, p1Input);
collisions(player, fg);
pcDisplay(player);
drawScreen(player.xVel, player.yVel);
levels.curTime--;
if ((levels.curTime < (lowTimeWarningTime * _global.fps)) && (!hasGivenTimeWarning)) {
hasGivenTimeWarning = true;
gui.showTip(timeRunningOut);
}
_global.perfMon.onEnterFrame();
gui.update(levels.curTime, fg.coinsCollected, fg.coinsTotal);
}
}
function collisions(pc) {
if (!pc.enterLevel) {
var _local8 = fg.floor;
var _local4 = fg.wall;
if ((pc.yVel >= 0) && (pc.climbDir == 0)) {
if (pc.yVel == 0) {
pc.yVel = 1;
}
var _local5 = 0;
var _local9 = pc._x;
var _local2;
var _local7 = false;
var _local6 = 0;
while (_local6 <= Math.ceil(pc.yVel / minTileHeight)) {
_local5 = _local6 * minTileHeight;
_local2 = (pc._y + pc.yOfs) + _local5;
if (_local8.hitTest(_local9, _local2, true) || (_local4.hitTest(_local9, _local2, true))) {
_local5 = _local5 - minTileHeight;
var _local3 = 0;
while (_local3 != 1) {
_local2 = (pc._y + pc.yOfs) + _local5;
if (_local8.hitTest(_local9, _local2, true) || (_local4.hitTest(_local9, _local2, true))) {
_local3 = 1;
} else {
_local5 = _local5 + 1;
}
}
_local7 = true;
_local6 = Math.ceil(pc.yVel / minTileHeight) + 1;
}
_local6++;
}
if (_local7) {
if (_local5 == (-minTileHeight)) {
pc.wasInThing = true;
} else if (pc.wasInThing) {
pc.wasInThing = false;
pc.yState = -1;
}
pc.ry = pc.ry + (_local5 - 1);
if (pc.yState == 3) {
pc.yState = -1;
}
if (pc.yVel > 1) {
pc.yState = -1;
}
pc.yVel = 0;
} else {
pc.yVel = pc.yVel + pc.grav;
if (pc.yVel > pc.yTermVel) {
pc.yVel = pc.yTermVel;
}
pc.yState = -3;
}
}
_local8 = fg.wall;
if (pc.climbDir == 0) {
var _local12 = pc._xscale / 100;
var _local10 = pc.xOfs * _local12;
var _local5 = pc.xVel;
var _local9 = pc._y + (pc.yOfs - 10);
var _local11 = -1 * _local12;
if (_local8.hitTest((pc._x + _local10) + _local5, _local9, true)) {
var _local6 = 0;
while (_local8.hitTest((pc._x + _local10) + _local5, _local9, true)) {
_local5 = _local5 + _local11;
}
pc.rx = pc.rx + _local5;
pc.xVel = 0;
pc.xState = 0;
}
}
}
}
function pcDisplay(pc) {
if (pc.enterLevel) {
pc._visible = true;
pc.gotoAndStop("riseUp");
} else {
if (pc.isHit) {
pc.dft = pc.dfd;
}
if (pc.hp <= 0) {
pc.gotoAndStop("die");
gui.hp_txt.text = "0%";
gui.battery.mask._width = 0;
pc.active = false;
pc.blendMode = "normal";
} else {
pc.hp = pc.hp + pc.hrr;
pc.hp = ((pc.hp > pc.mhp) ? (pc.mhp) : (pc.hp));
gui.hp_txt.text = Math.floor(pc.hp) + "%";
gui.score_txt.text = pc.score;
gui.battery.mask._width = gui.battery.mask.width * (pc.hp / pc.mhp);
gui.mega_txt.text = player.currentMega;
pc.dft = ((pc.dft > 0) ? (pc.dft - 1) : 0);
if (pc.dft > 0) {
if ((pc.dft % 2) == 0) {
pc.blendMode = "add";
} else {
pc.blendMode = "normal";
}
}
if (pc.yState <= 0) {
if (pc.climbDir != 0) {
pc.gotoAndStop("climb");
if (pc.yVel != 0) {
pc.sprite.play();
} else {
pc.sprite.stop();
}
} else if (pc.attack && (pc.yState == -3)) {
if (pc.weapon == 1) {
pc.gotoAndStop("jumpAttack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenJumpAttack");
}
} else if (pc.yState == -3) {
pc.gotoAndStop("fall");
} else if ((pc.attack && (Math.abs(pc.xState) == pc.runPoint)) && (Math.abs(pc.xVel) == pc.xMax)) {
if (pc.weapon == 1) {
pc.gotoAndStop("attack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenAttack");
}
pc.sprite.skid.gotoAndStop("on");
} else if ((Math.abs(pc.xState) == pc.runPoint) && (Math.abs(pc.xVel) == pc.xMax)) {
pc.gotoAndStop("run");
} else if (pc.attack && (Math.abs(pc.xVel) == pc.walk)) {
if (pc.weapon == 1) {
pc.gotoAndStop("attack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenAttack");
}
pc.sprite.skid.gotoAndStop("off");
} else if (Math.abs(pc.xVel) > 0) {
pc.gotoAndStop("walk");
} else if ((pc.attack && (Math.abs(pc.xVel) > pc.walk)) && (pc.yState > -1)) {
if (pc.weapon == 1) {
pc.gotoAndStop("attack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenAttack");
}
pc.sprite.skid.gotoAndStop("on");
} else if ((Math.abs(pc.xVel) > pc.walk) && (pc.yState > -1)) {
pc.gotoAndStop("skid");
} else if (pc.megaAttack) {
pc.gotoAndStop("megaAttack");
} else if ((pc.attack && (Math.abs(pc.xVel) > pc.walk)) && (pc.yState <= -1)) {
if (pc.weapon == 1) {
pc.gotoAndStop("lowAttack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenLowAttack");
}
pc.sprite.skid.gotoAndStop("on");
} else if ((Math.abs(pc.xVel) > pc.walk) && (pc.yState <= -1)) {
pc.gotoAndStop("lowskid");
} else if (pc.xState == 0) {
if (pc.attack && (pc.yState <= -1)) {
if (pc.weapon == 1) {
pc.gotoAndStop("lowAttack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenLowAttack");
}
pc.sprite.skid.gotoAndStop("off");
} else if (pc.yState <= -1) {
pc.gotoAndStop("duck");
} else if (pc.attack) {
if (pc.weapon == 1) {
pc.gotoAndStop("attack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenAttack");
}
pc.sprite.skid.gotoAndStop("off");
} else if (pc.standCount < pc.idle) {
pc.gotoAndStop("stand");
} else {
pc.gotoAndStop("idle");
}
}
} else if (pc.yState > 0) {
if (pc.attack && (pc.yState == 3)) {
if (pc.weapon == 1) {
pc.gotoAndStop("jumpAttack");
} else if (pc.weapon == 2) {
pc.gotoAndStop("grenJumpAttack");
}
} else if (pc.yState == 3) {
pc.gotoAndStop("inJump");
} else {
pc.gotoAndStop("jump");
}
}
if (pc.xVel > 0) {
pc._xscale = pc.baseXScale;
} else if (pc.xVel < 0) {
pc._xscale = -pc.baseXScale;
}
}
pc.isHit = false;
}
}
function pcInput(pc, input) {
if ((!pc.enterLevel) && (pc.active)) {
var _local5 = Key.isDown(input.kRight[0]) - Key.isDown(input.kLeft[0]);
var _local4 = Key.isDown(input.kUp[0]) - Key.isDown(input.kDown[0]);
if ((_local5 || (_local4)) || (attack)) {
pc.standCount = 0;
}
if ((fg.ladder.hitTest(pc._x, pc._y, true) && ((_local4 != 0) || (pc.climbDir != 0))) && (!gettingOffLadder)) {
if (pc.climbDir == 0) {
onLadderX = _local5;
onLadderY = _local4;
var _local2 = 5;
while (fg.ladder.hitTest(pc._x + _local2, pc._y, true)) {
_local2 = _local2 + 5;
}
var _local3 = 5;
while (fg.ladder.hitTest(pc._x - _local3, pc._y, true)) {
_local3 = _local3 + 5;
}
pc.xVel = (_local2 - _local3) / 2;
} else {
pc.xVel = 0;
}
if (_local5 == 0) {
onLadderX = 0;
}
if (_local4 == 0) {
onLadderY = 0;
}
var _local8 = pc._y + ((_local4 * -1) * (pc.yOfs + pc.climbSpeed));
if ((_local5 > onLadderX) || (_local5 < onLadderX)) {
pc.climbDir = 0;
pc.xVel = pc.walk * _local5;
pc.yState = 2;
gettingOffLadder = true;
} else if (!fg.ladder.hitTest(pc._x, _local8)) {
if (_local4 == onLadderY) {
pc.climbDir = 1;
pc.yVel = 0;
pc.xVel = 0;
pc.yState = 0;
} else if (_local4 == -1) {
gettingOffLadder = true;
pc.climbDir = 0;
pc.yVel = 2;
pc.yState = 2;
} else if (_local4 == 1) {
gettingOffLadder = true;
pc.climbDir = 0;
pc.yState = 2;
}
} else if (_local4 != 0) {
pc.climbDir = _local4 * -1;
pc.yVel = (_local4 * -1) * pc.climbSpeed;
pc.yState = 0;
} else {
pc.yVel = 0;
}
} else if (pc.climbDir != 0) {
pc.climbDir = 0;
pc.yVel = -20;
pc.xVel = 3;
pc.yState = 2;
gettingOffLadder = false;
} else {
pc.climbDir = 0;
gettingOffLadder = false;
}
if ((pc.yState <= 0) && (_local4 <= 0)) {
if ((pc.yState == 0) && (_local4 == -1)) {
pc.yState = -1;
} else if (pc.yState == -1) {
pc.yState = -2;
} else if (_local4 != -1) {
pc.yState = 0;
}
if (((pc.xState * _local5) > 0) && (_local4 != -1)) {
if (Math.abs(pc.xState) < pc.runPoint) {
pc.xState = pc.xState + _local5;
}
} else if ((Math.abs(pc.xVel) <= pc.walk) && (_local4 != -1)) {
pc.xState = _local5;
}
if (((pc.xState * _local5) == 0) && (attack == 0)) {
pc.standCount++;
}
if ((Math.abs(pc.xVel) > 1) && (((pc.xState * _local5) <= 0) || (_local4 == -1))) {
if (Math.abs(pc.xVel) > 1) {
pc.xVel = pc.xVel * 0.5;
} else {
pc.xVel = 0;
}
} else if (_local4 == -1) {
pc.xVel = 0;
pc.xState = 0;
} else if (pc.climbDir == 0) {
targetXVel = (_local5 * pc.walk) + (_local5 * (Math.floor(Math.abs(pc.xState) / pc.runPoint) * pc.runMod));
if ((Math.abs(targetXVel) - Math.abs(pc.xVel)) > 1) {
pc.xVel = pc.xVel + ((targetXVel - pc.xVel) / 3);
} else {
pc.xVel = targetXVel;
}
}
} else if ((((pc.yState > 0) || (_local4 == 1)) && (pc.yVel <= 0)) && (pc.climbDir == 0)) {
var _local9;
if ((_local4 == 0) && (pc.yState > 0)) {
pc.jumpStillDown = 0;
} else if (pc.yState == 0) {
pc.jumpStillDown = 1;
}
if ((pc.yState == -1) && (_local5 == 0)) {
pc.xState = 0;
pc.xVel = 0;
}
if (pc.yState < 2) {
if (Math.abs(pc.xVel) >= pc.xMax) {
pc.jumpXMax = pc.xMax;
} else {
pc.jumpXMax = pc.walk;
}
pc.yState = pc.yState + 1;
} else if (pc.yState == 2) {
pc.yVel = -pc.jump;
pc.yState = 3;
} else if (pc.yVel < 0) {
if (pc.yVel > (-pc.jumpApex)) {
pc.yVel = pc.yVel * -1;
} else if (pc.jumpStillDown == 1) {
pc.yVel = pc.yVel * pc.highJumpDrag;
} else if (pc.jumpStillDown != 1) {
pc.yVel = pc.yVel * pc.lowJumpDrag;
}
var _local6 = pc.xVel + (_local5 * pc.jumpMoveSpeed);
if (Math.abs(_local6) <= pc.jumpXMax) {
pc.xVel = _local6;
}
} else {
pc.yVel = 0;
}
var _local6 = pc.xVel + (_local5 * pc.jumpMoveSpeed);
if (Math.abs(_local6) <= pc.jumpXMax) {
pc.xVel = _local6;
}
} else if ((((pc.yState > 0) || (_local4 == 1)) && (pc.yVel > 0)) && (pc.climbDir == 0)) {
var _local6 = pc.xVel + (_local5 * pc.jumpMoveSpeed);
if (Math.abs(_local6) <= pc.jumpXMax) {
pc.xVel = _local6;
}
}
}
}
function setInitVars(lvl) {
isPaused = false;
gui.gotoAndStop("game");
hasGivenTimeWarning = false;
_global.perfMon = new PerformanceController();
killedEnemies = 0;
_global.levelVars = {};
player._visible = false;
if (!levels) {
levels = new Array();
levels.numLvls = 5;
}
if (!levels[lvl]) {
levels[lvl] = new Array();
var _local2 = 0;
while (fg["cp" + _local2]) {
levels[lvl][_local2] = {x:fg["cp" + _local2]._x, y:fg["cp" + _local2]._y};
_local2++;
}
levels[lvl].ws = {w:fg.width, h:fg.height};
}
if (levels[lvl].pcp) {
levels[lvl].ccp = levels[lvl].pcp;
} else {
levels[lvl].ccp = 0;
}
_global.levelData = levelData[lvl];
levels.initTime = (levels.curTime = levelData[lvl].time * _global.fps);
gui.init(levelData[lvl]);
levels.lvl = lvl;
arrFTimes = new Array();
fAvg = 5;
targetFps = 50;
fRate = 1 / targetFps;
keyRecord = new Array();
minTileHeight = 10;
if (!vp) {
vp = new Object();
vp.t = vpTop._y;
vp.r = vpRight._x;
vp.l = vpLeft._x;
vp.b = vpBottom._y;
vp.w = vp.r - vp.l;
vp.h = vp.b - vp.t;
}
if (!pb) {
pb = {t:pTop._y, r:pRight._x, b:pBottom._y, l:pLeft._x, w:pRight._x - pLeft._x, h:pBottom._y - pTop._y};
}
player.enterLevel = 1;
player.active = true;
player.hp = 100;
player.mhp = 100;
player.hrr = 0.1;
player.sDam = 10;
player.gDam = 4;
player.lpc = null;
player.dfd = 20;
player.dft = 0;
player.isHit = false;
player.weapon = 1;
player.pco = new Color(player);
player.sct = pco.getTransform();
player.xVel = 0;
player.yVel = 0;
player.attack = 0;
player.attackStillDown = 0;
player.maxMega = 4;
player.currentMega = player.maxMega;
player.megaAttack = 0;
player.walk = 12;
player.jumpMoveSpeed = 2;
player.normDrag = 0.93;
player.revDrag = 0.87;
player.runPoint = 10;
player.runMod = 1;
player.xState = 0;
player.standCount = 0;
player.idle = 50;
player.xOfs = 30;
player.xMod = 0;
player.yMod = 0;
player.baseXScale = 50;
player.yState = 0;
player.jump = 27;
player.yTermVel = 80;
player.lowJumpDrag = 0.2;
player.highJumpDrag = 0.73;
player.jumpStillDown = 0;
player.jumpApex = 2;
player.xJumpMod = 5;
player.grav = 0.75;
player.yOfs = 34;
player.climbDir = 0;
player.climbSpeed = 10;
player.jumpXMax = 10;
player.xMax = player.walk + player.runMod;
player.yMax = 70;
dfx = 10;
dfy = 5;
dxMin = 100;
dyMin = 0;
player.pxo = 0;
player.pyo = 0;
if (px == undefined) {
px = pDefPos._x;
py = pDefPos._y;
}
player._x = px;
player._y = py;
fg.x = ((levels[lvl][levels[lvl].ccp].x - px) - dxMin) * -1;
fg.y = (levels[lvl][levels[lvl].ccp].y - py) * -1;
fg._x = Math.round(fg.x);
fg._y = Math.round(fg.y);
player.rx = px - fg._x;
player.ry = py - fg._y;
if (!mo) {
mo = {t:py - pb.t, r:pb.r - px, b:pb.b - py, l:px - pb.l};
}
}
System.security.allowDomain("www.superwalkland.com");
version = System.capabilities.version.split(",")[0].split(" ")[1];
curscore = 0;
controlSet1 = {kLeft:[37, "Left"], kUp:[38, "Up"], kRight:[39, "Right"], kDown:[40, "Down"], kAttack:[32, "Space"], kPause:[80, "P", 0], kAction:[32, "Space", true]};
controlSet2 = {kLeft:[65, "A"], kUp:[87, "W"], kRight:[68, "D"], kDown:[83, "s"], kAttack:[32, "Space"], kPause:[80, "P", 0], kAction:[32, "Enter", true]};
p1Input = controlSet1;
gameStart = true;
visiblePlatforms = false;
function drawScreen(nx, ny) {
player.rx = player.rx + nx;
player.ry = player.ry + ny;
var _local7 = nx / player.xMax;
var _local6 = ny / player.yMax;
if (_local7 > 0) {
var _local2 = mo.r * _local7;
} else if (_local7 < 0) {
var _local2 = mo.l * _local7;
} else {
var _local2 = 0;
}
var _local2 = ((Math.abs(_local2) < dxMin) ? (dxMin * (player._xscale / 100)) : (_local2));
if (_local6 > 0) {
var _local5 = mo.t * _local6;
} else if (_local6 < 0) {
var _local5 = mo.b * _local6;
} else {
var _local5 = 0;
}
_local2 = Math.floor(((_local2 - player.pxo) / dfx) + player.pxo);
var _local5 = Math.floor(((_local5 - player.pyo) / dfy) + player.pyo);
if (Math.abs(_local2) < dxMin) {
_local2 = 0;
}
if (Math.abs(_local5) < dyMin) {
_local5 = 0;
}
var _local4 = (-player.rx) + (px - _local2);
var _local3 = (-player.ry) + (py - _local5);
if (_local4 > 0) {
_local4 = 0;
player._x = player.rx;
} else if ((-_local4) > (levels[levels.lvl].ws.w - vp.w)) {
_local4 = -(levels[levels.lvl].ws.w - vp.w);
player._x = player.rx + _local4;
} else {
player._x = px - _local2;
}
if (_local3 > 0) {
_local3 = 0;
player._y = player.ry;
} else if ((-_local3) > (levels[levels.lvl].ws.h - vp.h)) {
_local3 = -(levels[levels.lvl].ws.h - vp.h);
player._y = player.ry + _local3;
} else {
player._y = py - _local5;
}
var _local9 = (((ny * player.grav) < 64) ? 64 : (ny * player.grav));
_local4 = Math.round(_local4);
_local3 = Math.round(_local3);
fg.scrll(_local4, _local3, _local9);
if (_global.perfMon.cdl != 1) {
mg.scrll(_local4, _local3);
bg.scrll(_local4, _local3);
}
player.pxo = _local2;
player.pyo = _local5;
}
function goToMap() {
gotoAndStop ("map");
}
function startLevel(lvlNum) {
control.removeMovieClip();
setInitVars(lvlNum);
player.score = curscore;
pause_mc.gotoPage("loadLevel");
fg.beginInit(vp, World.TILE_WIDTH, World.TILE_HEIGHT, foregroundInitComplete, setLoadProgress);
}
function foregroundInitComplete() {
pause_mc.hide();
var _local1 = levelData[levels.lvl];
var _local2 = _local1.lvlNum;
mg.setVars(vp.w, vp.h, new flash.geom.Rectangle(0, 0, _local1.mgx, _local1.mgy), fg.width, fg.height);
bg.setVars(vp.w, vp.h, new flash.geom.Rectangle(0, 0, _local1.bgx, _local1.bgy), fg.width, fg.height);
transition.goto(beginLevel);
}
function beginLevel() {
createEmptyMovieClip("control", getNextHighestDepth());
control.onEnterFrame = frameCode;
map_mc.gotoAndStop("hide");
_global.menuMusic.fadeTo(10, 10);
if (!_global.windSound) {
_global.windSound = _global.sndMan.playAndRemove("windSound", 0, 9999999);
_global.windSound.setVolume(0);
}
_global.windSound.fadeTo(40, 20);
}
function setLoadProgress(n) {
pause_mc.cont.progress.setProgress(n);
}
function levelOver() {
isPaused = true;
player.active = false;
stopPlayerClips();
control.removeMovieClip();
_global.submitScore = player.score;
transition.goto(nextLevel);
}
function nextLevel() {
_global.root.coinsCollected = fg.coinsCollected;
_global.root.timeRemaining = levels.curTime;
_global.root.photoOps = gui.gottenPhotoOps;
gotoAndStop ("cameraMode");
cameraMode.startCameraMode(levelData[levels.lvl].name);
}
function toEndPage(photoScore, bestPhoto) {
_global.root.submitScore = calculateScore(photoScore, _global.root.coinsCollected, _global.root.timeRemaining, _global.root.photoOps);
_global.root.bestPhoto = bestPhoto;
_global.music.fadeOut(10);
transition.goto(openEndPage);
}
function openEndPage() {
gotoAndStop ("startpage");
cameraMode.gotoAndStop(1);
startpage.gotoAndPlay("endLevel");
}
function calculateScore(photoScore, coinsCollected, timeRemaining, photoOps) {
var _local1 = photoScore;
_local1 = _local1 + (coinsCollected * pointsPerCoin);
_local1 = _local1 + (photoOps * pointsPerPhotoOp);
if (timeRemaining >= 0) {
_local1 = _local1 + (timeRemaining * pointsPerSecond);
} else {
_local1 = _local1 + (Math.floor(timeRemaining / timePenaltyFrequency) * timePenalty);
}
return(_local1);
}
function timeUp() {
gui.showTip(levelData[levels.lvl].timeupMessage);
control.removeMovieClip();
player.active = false;
player.sprite.stop();
setTimeout(showPauseMenuAfterTimeUp, 3000);
}
function showPauseMenuAfterTimeUp() {
pause_mc.show("timesUp");
}
function pauseGame() {
stopPlayerClips();
isPaused = true;
pause_mc.show("paused");
}
function lenseCollected(f) {
stopPlayerClips();
isPaused = true;
pause_mc.show("lenseCollected");
pause_mc.cont.lenses.gotoAndStop(f);
}
function unpauseGame() {
startPlayerClips();
pause_mc.hide(setGameUnpaused);
}
function stopPlayerClips() {
player.sprite.stop();
}
function startPlayerClips() {
player.sprite.play();
}
function setGameUnpaused() {
isPaused = false;
}
function fromGameToMap() {
transition.goto(goToMap);
pause_mc.hide();
}
function goToMap() {
gotoAndStop ("map");
}
function retryMission() {
transition.goto(goToRetry);
pause_mc.cont.gotoAndStop("loadLevel");
}
function goToRetry() {
gotoAndPlay ("retry");
}
Frame 4
stop();
Frame 5
transition.fadeUp();
map_mc.gotoAndStop("show");
stop();
Frame 11
startLevel(1);
stop();
Frame 13
startLevel(2);
stop();
Frame 15
startLevel(3);
stop();
Instance of Symbol 1468 MovieClip [andes midground] "mg" in Frame 15
/* no clip actions */
Frame 17
startLevel(4);
stop();
Frame 20
transition.stop();
Frame 21
var lvlInfo = levelData[levels.lvl];
gotoAndStop(lvlInfo.name);
transition.play();
Symbol 10 MovieClip [kvSpark] Frame 70
stop();
Symbol 24 MovieClip Frame 100
gotoAndPlay (1);
Symbol 43 MovieClip Frame 1
function onEnterFrame() {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
if (getTimer() >= (startTime + 4000)) {
animDone = true;
}
if ((Math.ceil(bar._width) >= width) && (animDone)) {
stopSparks = true;
delete onEnterFrame;
gotoAndPlay ("out");
} else {
setProgress(_local2);
}
}
function fadeOut() {
setProgress(progress);
this._alpha = this._alpha - 5;
if (this._alpha <= -50) {
this._visible = false;
_parent.play();
}
}
function makeSpark() {
if (!stopSparks) {
attachMovie("kvSpark", "spark" + i, this.getNextHighestDepth());
this["spark" + i]._x = bar._x + bar._width;
this["spark" + i]._y = bar._y + (Math.random() * 20);
this["spark" + i].grav = 0.1;
this["spark" + i].wind = (Math.random() * 4) - 3;
this["spark" + i].spin = Math.random() * 10;
this["spark" + i].onEnterFrame = sparkControl;
i++;
}
}
function sparkControl() {
if (!stopSparks) {
this._y = this._y + this.grav;
this._x = this._x + this.wind;
this.grav = this.grav * gravity;
this._alpha = this._alpha - this.grav;
this._rotation = this._rotation + this.spin;
if (this._alpha <= 0) {
this.removeMovieClip();
}
} else {
this.removeMovieClip();
}
}
function setProgress(p) {
bar._width = ((bar._width * 2) + (p * width)) / 3;
if (progress != 1) {
makeSpark();
}
}
width = 200;
i = 0;
gravity = 1.3;
startTime = getTimer();
if (this._name == "loader_mc") {
myName = _global.language.loadingAssets;
} else {
myName = _global.language.initLevel;
}
setProgress(0);
_parent.stop();
Symbol 43 MovieClip Frame 13
stop();
Symbol 43 MovieClip Frame 40
_parent.play();
Symbol 49 MovieClip Frame 1
stop();
Symbol 50 MovieClip [transition] Frame 1
#initclip 91
Object.registerClass("transition", Transition);
#endinitclip
stop();
Symbol 50 MovieClip [transition] Frame 10
changePage();
Symbol 1743 MovieClip [__Packages.Snd] Frame 0
class Snd extends Sound
{
var target, manager, position, start, duration, onFadeComplete, fId, getVolume, setVolume, setPan;
function Snd (targ, sndman) {
super(targ);
target = (targ ? (targ) : _root);
manager = sndman;
}
function switchSound(id, loops) {
var _local3 = position;
super.stop();
super.attachSound(id);
start((_local3 % duration) / 1000, loops);
}
function fade(dVol, tVol, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), tVol, true);
}
function fadeBy(dVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
fId = setInterval(this, "changeVolTowards", FADE_RATE, dVol * (FADE_RATE / 1000), dVol * t, true);
}
}
function fadeTo(tVol, t, handler) {
onFadeComplete = handler;
if (fId) {
stopFade(fId);
}
if (t > 0) {
var _local3 = (tVol - getVolume()) / t;
fId = setInterval(this, "changeVolTowards", FADE_RATE, _local3, tVol, true);
} else {
setVolume(tVol);
}
}
function fadeOut(t) {
fadeTo(0, t, remove);
}
function changeVolTowards(dVol, tVol, fading) {
var _local2 = getVolume();
if (Math.abs(dVol) < Math.abs(tVol - _local2)) {
changeVolume(dVol);
} else {
setVolume(tVol);
if (fading) {
stopFade();
}
}
}
function stopFade() {
if (fId) {
clearInterval(fId);
delete fId;
onFadeComplete();
delete onFadeComplete;
}
}
function positionSound(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
d = ((d < 1) ? 1 : (d));
var _local4 = 1 / ((d / f) * 100);
setVolume(Math.ceil(_local4 * t));
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function positionSoundLinear(a, d, f, t) {
if (d < f) {
t = (isNaN(t) ? 100 : (((t < 0) ? 0 : (t))));
setVolume(((f - d) / f) * t);
setPan((-Math.sin(a)) * 100);
} else {
setVolume(0);
}
}
function changeVolume(n) {
setVolume(getVolume() + n);
}
function remove() {
super.stop();
delete manager.sounds[target.getDepth()];
target.removeMovieClip();
}
function toString() {
return(("(target=" + target) + ")");
}
function get volume() {
return(getVolume());
}
function set volume(n) {
setVolume(n);
//return(volume);
}
static var FADE_RATE = 100;
}
Symbol 1744 MovieClip [__Packages.SoundManager] Frame 0
class SoundManager extends Snd
{
var sounds, mc_holder, getVolume;
function SoundManager (hld_mc) {
super();
sounds = new Object();
mc_holder = (hld_mc ? (hld_mc) : _root);
}
function playAndRemove(snd_id, offset, loops) {
offset = (isNaN(offset) ? 0 : (offset));
loops = (isNaN(loops) ? 0 : (loops));
var _local2 = newSound(snd_id);
_local2.start(offset, loops);
_local2.onSoundComplete = _local2.remove;
return(_local2);
}
function clearAllSounds() {
for (var _local2 in sounds) {
sounds[_local2].remove();
}
}
function newSound() {
var _local5 = mc_holder.getNextHighestDepth();
var _local6 = mc_holder.createEmptyMovieClip("sh_mc" + _local5, _local5);
var _local4 = new Snd(_local6, this);
var _local3 = 0;
while (_local3 < arguments.length) {
if (arguments[_local3] != undefined) {
_local4.attachSound(arguments[_local3]);
}
_local3++;
}
sounds[_local5] = _local4;
return(_local4);
}
function deleteSound(snd) {
snd.remove();
}
function setVolume(vol) {
if (muted) {
curVol = vol;
} else {
super.setVolume(vol);
}
}
function get mute() {
return(muted);
}
function set mute(b) {
muted = b;
if (b) {
curVol = getVolume();
super.setVolume(0);
} else {
super.setVolume(curVol);
}
//return(mute);
}
var muted = false;
var curVol = 100;
}
Symbol 1745 MovieClip [__Packages.SO] Frame 0
class SO
{
static var root, onExternalInit, externalSOPath, lso, mcl, eso;
function SO () {
}
static function init(r, name, oei) {
root = r;
onExternalInit = oei;
System.security.allowDomain(externalSODomain);
externalSOPath = (externalSODomain + name) + externalSOPathEnd;
lso = SharedObject.getLocal(name, "/");
mcl = new MovieClipLoader();
mcl.addListener(SO);
mcl.loadClip(externalSOPath, root.createEmptyMovieClip("eso_mc", root.getNextHighestDepth()));
}
static function onLoadComplete(targ) {
eso = targ.getSO();
if (eso.data._setData) {
for (var _local1 in eso.data) {
lso.data[_local1] = eso.data[_local1];
}
lso.flush();
} else if (lso.data._setData) {
for (var _local1 in lso.data) {
eso.data[_local1] = lso.data[_local1];
}
eso.flush();
}
onExternalInit();
}
static function getVar(n) {
return(lso.data[n]);
}
static function setVar(n, v) {
if (eso) {
eso.data._setData = true;
eso.data[n] = v;
eso.flush();
}
lso.data._setData = true;
lso.data[n] = v;
lso.flush();
}
static function clearSO() {
for (var _local1 in lso.data) {
delete lso.data[_local1];
}
lso.flush();
for (var _local1 in eso.data) {
delete eso.data[_local1];
}
lso.flush();
}
static var externalSODomain = "http://projects.kempt.co.uk/";
static var externalSOPathEnd = "/swf/so.swf";
}
Symbol 1746 MovieClip [__Packages.PerformanceController] Frame 0
class PerformanceController
{
var aFrmTms;
function PerformanceController () {
aFrmTms = [];
nLFT = getTimer();
}
function onEnterFrame() {
var _local4 = getTimer();
aFrmTms.push(_local4 - nLFT);
if (aFrmTms.length > nFA) {
var _local3 = 1000 / arrMean(aFrmTms);
_global.root.performanceDisplay.text = ((("fps=" + _local3) + newline) + "detailLevel=") + cdl;
if (_local3 > uf) {
if (cdl < mdl) {
setDetailLvl(cdl + 1);
}
} else if (_local3 < lf) {
if (cdl > 1) {
setDetailLvl(cdl - 1);
}
}
aFrmTms.length = 0;
}
nLFT = _local4;
}
function arrMean(arr) {
var _local3 = 0;
var _local1 = 0;
while (_local1 < arr.length) {
_local3 = _local3 + arr[_local1];
_local1++;
}
return(_local3 / arr.length);
}
function setDetailLvl(l) {
switch (l) {
case 1 :
_root._quality = "LOW";
break;
case 2 :
_root._quality = "LOW";
break;
case 3 :
_root._quality = "MEDIUM";
break;
case 4 :
_root._quality = "HIGH";
}
cdl = l;
}
static var nFA = 30;
var nLFT = 0;
var cdl = 4;
static var lf = 20;
static var uf = 29;
static var mdl = 4;
}
Symbol 1747 MovieClip [__Packages.World] Frame 0
class World extends MovieClip
{
var _x, _y, getBounds, width, height, g, vp, gx, gy, aso, abo, awo, ago, alo, afo, aeo, initCompleteCallback, progressCallback, allProps, totalProps, onEnterFrame, xl, yl, xm, ym, createEmptyMovieClip, getNextHighestDepth, front, _parent, cwo, cgo, cbo, cfo, clo, ceo, wall, floor, back, ladder, escalator;
function World () {
super();
x = _x;
y = _y;
var _local3 = getBounds(this);
width = _local3.xMax;
height = _local3.yMax;
}
function beginInit(ivp, igx, igy, iinitCompleteCallback, iProgressCallback) {
delete g;
g = new Array();
vp = ivp;
gx = igx * 5;
gy = igy * 5;
rx = 1;
ry = 1;
aso = [];
abo = new Object();
awo = new Object();
ago = new Object();
alo = new Object();
afo = new Object();
aeo = new Object();
initCompleteCallback = iinitCompleteCallback;
progressCallback = iProgressCallback;
allProps = [];
for (var _local2 in this) {
if (this[_local2] instanceof MovieClip) {
allProps.push(_local2);
}
}
totalProps = allProps.length;
doInit();
onEnterFrame = doInit;
}
function endInit() {
delete onEnterFrame;
xl = Math.floor(vp.l / gx);
yl = Math.floor(vp.t / gy);
xm = Math.ceil(vp.w / gx);
ym = Math.ceil(vp.h / gy);
createEmptyMovieClip(BACK, getNextHighestDepth());
createEmptyMovieClip(WALL, getNextHighestDepth());
createEmptyMovieClip(FLOOR, getNextHighestDepth());
createEmptyMovieClip(LADDER, getNextHighestDepth());
front = _parent.front;
createEmptyMovieClip(ESCALATOR, getNextHighestDepth());
bcl();
scrll(x, y);
initCompleteCallback();
}
function doInit() {
var _local2;
var _local3;
var _local4;
var _local5 = 0;
do {
_local4 = allProps.pop();
if (!_local4) {
break;
}
_local2 = this[_local4];
if (_local2 instanceof Floor) {
_local3 = new SceneryItem(_local2, FLOOR);
ago[_local4] = _local3;
addToGrid(_local3);
} else if (_local2 instanceof Wall) {
_local3 = new SceneryItem(_local2, WALL);
awo[_local4] = _local3;
addToGrid(_local3);
} else if (_local2 instanceof Ladder) {
_local3 = new SceneryItem(_local2, LADDER);
alo[_local4] = _local3;
addToGrid(_local3);
} else if (_local2 instanceof Escalator) {
_local3 = new SceneryItem(_local2, ESCALATOR);
aeo[_local4] = _local3;
addToGrid(_local3);
} else if (_local2 instanceof BackItem) {
_local3 = new SceneryItem(_local2, BACK);
abo[_local4] = _local3;
addToGrid(_local3);
} else if (_local2 instanceof FrontItem) {
_local3 = new SceneryItem(_local2, FRONT);
afo[_local4] = _local3;
addToGrid(_local3);
} else if (_local2._name.substr(0, BACK.length) == BACK) {
sliceUpClip(_local2, BACK);
} else if (_local2._name.substr(0, FRONT.length) == FRONT) {
sliceUpClip(_local2, FRONT);
}
_local2.swapDepths(getNextHighestDepth());
_local2.removeMovieClip();
} while ((_local5++) <= CLIPS_PER_LOOP);
if (allProps.length == 0) {
endInit();
} else {
progressCallback(1 - (allProps.length / totalProps));
}
}
function sliceUpClip(mc, c) {
var _local6;
var _local2;
var _local3;
var _local5 = new flash.geom.Rectangle(0, 0, BITMAP_SLICE_WIDTH, BITMAP_SLICE_HEIGHT);
var _local4 = (mc.mask ? (mc.mask) : (mc)).getBounds(mc);
if (((mc._x % 1) != 0) || ((mc._y % 1) != 0)) {
}
_local6 = _local4.xMin;
while (_local6 <= _local4.xMax) {
_local2 = _local4.yMin;
while (_local2 <= _local4.yMax) {
_local5.x = Math.floor(_local6);
_local5.y = Math.floor(_local2);
_local3 = new SceneryItemBitmap(mc, c, _local5);
aso.push(_local3);
if (!_local3.__get__isImageBlank()) {
addToGrid(_local3);
}
_local2 = _local2 + BITMAP_SLICE_HEIGHT;
}
_local6 = _local6 + BITMAP_SLICE_WIDTH;
}
}
function addToGrid(curItem) {
var _local2;
var _local8 = Math.floor(curItem.x / gx);
var _local7 = Math.ceil((curItem.x + curItem.w) / gx);
var _local6 = Math.floor(curItem.y / gy);
var _local5 = Math.ceil((curItem.y + curItem.h) / gy);
var _local3 = _local8;
while (_local3 < _local7) {
if (!g[_local3]) {
g[_local3] = new Array();
}
_local2 = _local6;
while (_local2 < _local5) {
if (!g[_local3][_local2]) {
g[_local3][_local2] = new Object();
}
g[_local3][_local2][curItem.name] = curItem;
_local2++;
}
_local3++;
}
}
function bcl() {
var _local6 = cwo;
cwo = new Object();
var _local11 = cgo;
cgo = new Object();
var _local8 = cbo;
cbo = new Object();
var _local10 = cfo;
cfo = new Object();
var _local9 = clo;
clo = new Object();
var _local7 = ceo;
ceo = new Object();
var _local4;
var _local2;
var _local3;
var _local5 = xl;
while (_local5 < xm) {
_local4 = yl;
while (_local4 < ym) {
for (_local2 in g[_local5][_local4]) {
_local3 = g[_local5][_local4][_local2];
switch (_local3.c) {
case WALL :
cwo[_local2] = _local3;
break;
case FLOOR :
cgo[_local2] = _local3;
break;
case BACK :
cbo[_local2] = _local3;
break;
case FRONT :
cfo[_local2] = _local3;
break;
case LADDER :
clo[_local2] = _local3;
break;
case ESCALATOR :
ceo[_local2] = _local3;
}
}
_local4++;
}
_local5++;
}
compareLists(_local6, cwo, wall);
compareLists(_local11, cgo, floor);
compareLists(_local10, cfo, front);
compareLists(_local8, cbo, back);
compareLists(_local9, clo, ladder);
compareLists(_local7, ceo, escalator);
}
function compareLists(old, current, clip) {
for (var _local3 in old) {
if (!current[_local3]) {
if (clip[_local3]) {
clip[_local3].removeMovieClip();
}
}
}
}
function scrll(nx, ny, yp) {
x = nx;
y = ny;
front._x = (_x = Math.round(x * rx));
front._y = (_y = Math.round(y * ry));
var _local4 = Math.floor((vp.l - _x) / gx) - 1;
var _local6 = Math.floor((vp.t - _y) / gy) - 1;
var _local3 = Math.ceil((vp.w - _x) / gx);
var _local5 = Math.ceil(((vp.h + ((yp > 0) ? (yp) : 0)) - _y) / gy);
if ((((xl != _local4) || (yl != _local6)) || (xm != _local3)) || (ym != _local5)) {
xl = _local4;
yl = _local6;
xm = _local3;
ym = _local5;
bcl();
}
yp = 0;
var _local2 = {x:vp.l - _x, y:vp.t - _y, w:vp.w, h:vp.h};
attachDetachClip(cwo, wall, _local2);
attachDetachClip(cgo, floor, _local2);
attachDetachClip(cbo, back, _local2);
attachDetachClip(cfo, front, _local2);
attachDetachClip(clo, ladder, _local2);
attachDetachClip(ceo, escalator, _local2);
}
function attachDetachClip(current, clip, rect) {
for (var _local3 in current) {
if (intersect(rect, current[_local3])) {
if (!clip[_local3]) {
current[_local3].addClip();
}
} else if (clip[_local3]) {
clip[_local3].removeMovieClip();
}
}
}
function tidyUp() {
var _local3;
var _local2;
_local2 = 0;
while (_local2 < aso.length) {
aso[_local2].die();
_local2++;
}
delete aso;
delete awo;
wall.removeMovieClip();
delete ago;
floor.removeMovieClip();
delete abo;
back.removeMovieClip();
delete alo;
ladder.removeMovieClip();
delete afo;
for (_local3 in front) {
if (front[_local3] instanceof MovieClip) {
front[_local3].removeMovieClip();
}
}
delete aeo;
escalator.removeMovieClip();
}
function onUnload() {
tidyUp();
}
static function intersect(rect1, rect2) {
if (((rect1.x >= rect2.x) && (rect1.x <= (rect2.x + rect2.w))) || ((rect2.x >= rect1.x) && (rect2.x <= (rect1.x + rect1.w)))) {
if (((rect1.y >= rect2.y) && (rect1.y <= (rect2.y + rect2.h))) || ((rect2.y >= rect1.y) && (rect2.y <= (rect1.y + rect1.h)))) {
return(true);
}
}
return(false);
}
var rx = 1;
var ry = 1;
var coinsCollected = 0;
var coinsTotal = 0;
var x = 0;
var y = 0;
static var CLIPS_PER_LOOP = 1;
static var WALL = "wall";
static var FLOOR = "floor";
static var FRONT = "front";
static var BACK = "back";
static var LADDER = "ladder";
static var ESCALATOR = "escalator";
static var TILE_WIDTH = 250;
static var TILE_HEIGHT = 180;
static var BITMAP_SLICE_WIDTH = 250;
static var BITMAP_SLICE_HEIGHT = 180;
}
Symbol 1748 MovieClip [__Packages.SceneryItem] Frame 0
class SceneryItem
{
var world, name, x, y, w, h, c, t, matrix, colorTransform, depth, props;
function SceneryItem (i, ic) {
init(i, ic);
}
function init(i, ic) {
world = i._parent;
var _local3 = i.getBounds(i._parent);
name = i._name;
x = _local3.xMin;
y = _local3.yMin;
w = _local3.xMax - _local3.xMin;
h = _local3.yMax - _local3.yMin;
c = ic;
t = i.t;
matrix = i.transform.matrix;
colorTransform = i.transform.colorTransform;
depth = i.getDepth();
props = {};
for (var _local4 in i) {
if (!(i[_local4] instanceof MovieClip)) {
props[_local4] = i[_local4];
}
}
}
function addClip() {
var _local2 = world[c].attachMovie(t, name, depth + 20000, {si:this});
if (matrix) {
_local2.transform.matrix = matrix;
}
if (colorTransform) {
_local2.transform.colorTransform = colorTransform;
}
_local2.cacheAsBitmap = true;
return(_local2);
}
}
Symbol 1749 MovieClip [__Packages.SceneryItemMc] Frame 0
class SceneryItemMc extends MovieClip
{
function SceneryItemMc () {
super();
}
}
Symbol 1750 MovieClip [__Packages.Floor] Frame 0
class Floor extends SceneryItemMc
{
var _visible;
function Floor () {
super();
_visible = _global.root.visiblePlatforms;
}
var t = "floor";
}
Symbol 1751 MovieClip [__Packages.Wall] Frame 0
class Wall extends SceneryItemMc
{
var _visible;
function Wall () {
super();
}
function onLoad() {
_visible = _global.root.visiblePlatforms;
}
var t = "wall";
}
Symbol 1752 MovieClip [__Packages.Ladder] Frame 0
class Ladder extends SceneryItemMc
{
var _visible;
function Ladder () {
super();
}
function onLoad() {
_visible = _global.root.visiblePlatforms;
}
var t = "ladder";
}
Symbol 1753 MovieClip [__Packages.Escalator] Frame 0
class Escalator extends MovieClip
{
var game, si, dc, _height, hitTest;
function Escalator () {
super();
game = _global.root;
if (!si.props.mSpeed) {
si.props.mSpeed = mSpeed;
}
if (!si.props.dir) {
si.props.dir = dir;
}
dc = si.props.mSpeed / Math.pow(_height, 2);
}
function onEnterFrame() {
if (hitTest(game.player.hitbox)) {
var _local2 = si.props.dir * mSpeed;
_local2 = _local2 + ((myo * Math.sin((f * 180) / Math.PI)) * si.props.dir);
game.player.yVel = 0;
game.player.ry = game.player.ry + _local2;
game.player._y = game.player._y + _local2;
game.player.levitate._visible = true;
f = (f + dys) % 180;
}
}
var t = "escalator";
var f = 0;
static var myo = 5;
static var dys = 1;
static var mSpeed = 10;
static var dir = -1;
}
Symbol 1754 MovieClip [__Packages.BackItem] Frame 0
class BackItem extends SceneryItemMc
{
function BackItem () {
super();
}
}
Symbol 1755 MovieClip [__Packages.FrontItem] Frame 0
class FrontItem extends SceneryItemMc
{
function FrontItem () {
super();
}
}
Symbol 1756 MovieClip [__Packages.SceneryItemBitmap] Frame 0
class SceneryItemBitmap extends SceneryItem
{
var bmp, init, c, world, name, depth, matrix;
function SceneryItemBitmap (i, ic, rect) {
super();
var _local4 = i._parent.createEmptyMovieClip((((i._name + "_slice") + Math.floor(rect.x)) + "_") + Math.floor(rect.y), DEPTH++);
bmp = new flash.display.BitmapData(rect.width, rect.height, true, 0);
var _local6 = new flash.geom.Matrix();
_local6.translate(-rect.x, -rect.y);
_local4._x = i._x + rect.x;
_local4._y = i._y + rect.y;
rect.x = 0;
rect.y = 0;
bmp.draw(i, _local6, new flash.geom.ColorTransform(), "normal", rect, true);
_local4.attachBitmap(bmp, 1);
init(_local4, ic);
_local4.removeMovieClip();
}
function addClip() {
var _local2 = world[c].createEmptyMovieClip(name, depth);
_local2.si = this;
_local2.cacheAsBitmap = true;
_local2.transform.matrix = matrix;
_local2.attachBitmap(bmp, 1);
return(_local2);
}
function die() {
bmp.dispose();
}
function get isImageBlank() {
return(bmp.getColorBoundsRect(4278190080, 0, false).isEmpty());
}
static var DEPTH = 0;
}
Symbol 1757 MovieClip [__Packages.Transition] Frame 0
class Transition extends MovieClip
{
var transitionHandler, gotoAndPlay;
function Transition () {
super();
}
function changePage() {
transitionHandler();
}
function goto(h) {
transitionHandler = h;
gotoAndPlay(START_TRANSITION);
}
function fadeUp() {
gotoAndPlay(FADE_UP);
}
static var START_TRANSITION = "startTransition";
static var FADE_UP = "fadeUp";
}
Symbol 1758 MovieClip [__Packages.Format] Frame 0
class Format
{
function Format () {
}
static function zerofill(n, z) {
var _local2 = String(n);
var _local1 = _local2.length;
while (_local1 < z) {
_local2 = "0" + _local2;
_local1++;
}
return(_local2);
}
static function time(t, minp, maxp) {
var _local1 = Math.round((t % 1000) / 10);
var _local2 = Math.round(Math.floor(t / 1000) % 60);
var _local4 = Math.floor(t / 60000);
var _local5 = (((_local4 + ":") + ((_local2 < 10) ? ("0" + _local2) : (_local2))) + ":") + ((_local1 < 10) ? ("0" + _local1) : (_local1));
return(_local5);
}
static function number(n, d, c, l) {
n = (isNaN(n) ? 0 : (n));
d = (isNaN(d) ? undefined : (d));
c = ((c == undefined) ? "," : (c));
var _local1 = String(n).split(".");
if (!(d === undefined)) {
if (_local1[1]) {
var _local3 = String(Math.round(Number("." + _local1[1]) * Math.pow(10, d)) * Math.pow(10, -d));
_local3 = ((_local3.indexOf(".") < 0) ? (_local3) : (_local3.split(".")[1]));
} else {
var _local3 = "";
}
var _local2 = 0;
while (_local3.length < d) {
var _local3 = _local3 + "0";
_local2++;
}
_local1[1] = _local3;
}
var _local6 = false;
if (_local1[0].charAt(0) == "-") {
_local6 = true;
_local1[0] = _local1[0].substr(1);
}
var _local2 = 3;
while (_local1[0].length > _local2) {
_local1[0] = (_local1[0].substring(0, _local1[0].length - _local2) + c) + _local1[0].substring(_local1[0].length - _local2);
_local2 = _local2 + 4;
}
if (!isNaN(l)) {
_local1[0] = zerofill(_local1[0], l);
}
if (_local6) {
_local1[0] = "-" + _local1[0];
}
if ((_local1.length > 1) && (d > 0)) {
return((_local1[0] + ".") + _local1[1]);
}
return(_local1[0]);
}
static function ordinal(n) {
if (((n % 100) >= 11) && ((n % 100) <= 13)) {
return("th");
}
if ((n % 10) == 1) {
return("st");
}
if ((n % 10) == 2) {
return("nd");
}
if ((n % 10) == 3) {
return("rd");
}
return("th");
}
static function truncate(s, l, r) {
l = (isNaN(l) ? 20 : (l));
r = ((r == undefined) ? "..." : (r));
if (s.length > l) {
s = s.substr(0, l - r.length);
s = s + r;
}
return(s);
}
}
Symbol 1759 MovieClip [__Packages.cust.GUI.RadioGroup] Frame 0
class cust.GUI.RadioGroup extends Array
{
var name, _instanceIndex, push, length, _selectedIndex;
function RadioGroup (n) {
super();
name = n;
_instanceIndex = {};
cust.events.EventBroadcaster.initialise(this);
}
function addBtn(btn) {
if (_instanceIndex[btn._name] === undefined) {
push(btn);
_instanceIndex[btn._name] = length - 1;
} else {
this[_instanceIndex[btn._name]] = btn;
}
this[btn._name] = btn;
btn.addEventListener(cust.GUI.UIBtn.RELEASE, this);
}
function release(obj) {
var _local2 = 0;
while (_local2 < length) {
if (this[_local2] == obj.target) {
break;
}
_local2++;
}
if (_local2 == length) {
selectedIndex = (-1);
} else if (_local2 != _selectedIndex) {
selectedIndex = (_local2);
}
}
function get value() {
return(this[_selectedIndex].value);
}
function get selectedIndex() {
return(_selectedIndex);
}
function set selectedIndex(n) {
if (n != _selectedIndex) {
var _local2 = {target:this, type:CHANGE, oldVal:_selectedIndex, newVal:n};
this[_selectedIndex].select(false);
_selectedIndex = n;
this[_selectedIndex].select(true);
dispatchEvent(_local2);
}
//return(selectedIndex);
}
static function GET_RADIO_GROUP(n) {
if (RADIO_GROUPS[n]) {
return(RADIO_GROUPS[n]);
}
return((RADIO_GROUPS[n] = new cust.GUI.RadioGroup(n)));
}
static var RADIO_GROUPS = {};
static var CHANGE = "change";
}
Symbol 1760 MovieClip [__Packages.cust.events.EventBroadcaster] Frame 0
class cust.events.EventBroadcaster
{
var __events;
function EventBroadcaster () {
}
static function _removeEventListener(queue, event, handler) {
if (queue != undefined) {
var _local4 = queue.length;
var _local1;
_local1 = 0;
while (_local1 < _local4) {
var _local2 = queue[_local1];
if (_local2 == handler) {
queue.splice(_local1, 1);
return(undefined);
}
_local1++;
}
}
}
static function initialise(object) {
if (_fEventBroadcaster == undefined) {
_fEventBroadcaster = new cust.events.EventBroadcaster();
}
object.addEventListener = _fEventBroadcaster.addEventListener;
object.removeEventListener = _fEventBroadcaster.removeEventListener;
object.dispatchEvent = _fEventBroadcaster.dispatchEvent;
object.dispatchQueue = _fEventBroadcaster.dispatchQueue;
object.getEventListeners = _fEventBroadcaster.getEventListeners;
object.getEvents = _fEventBroadcaster.getEvents;
object.removeEventListeners = _fEventBroadcaster.removeEventListeners;
object.removeAllEventListeners = _fEventBroadcaster.removeAllEventListeners;
object.__events = new Array();
_global.ASSetPropFlags(object, "__events", 1);
}
function dispatchQueue(queueObj, eventObj) {
var _local6 = 0;
var _local8 = "__q_" + eventObj.type;
var _local5 = queueObj[_local8].concat([]);
if (_local5 != undefined) {
var _local3 = 0;
while (_local3 < _local5.length) {
var _local1 = _local5[_local3];
var _local4 = typeof(_local1);
if ((_local4 == "object") || (_local4 == "movieclip")) {
if (_local1.handleEvent != undefined) {
_local1.handleEvent(eventObj);
}
if (_local1[eventObj.type] != undefined) {
if (exceptions[eventObj.type] == undefined) {
_local1[eventObj.type](eventObj);
}
}
} else {
_local1.apply(queueObj, [eventObj]);
}
_local6++;
_local3++;
}
}
return(_local6);
}
function dispatchEvent(eventObj) {
if (eventObj.target == undefined) {
eventObj.target = this;
}
this[eventObj.type + "Handler"](eventObj);
return(eventObj.target.dispatchQueue(eventObj.target, eventObj));
}
function addEventListener(event, handler) {
var _local3 = "__q_" + event;
if (this[_local3] == undefined) {
this[_local3] = new Array();
__events.push(event);
}
_global.ASSetPropFlags(this, _local3, 1);
_removeEventListener(this[_local3], event, handler);
this[_local3].push(handler);
return(true);
}
function removeEventListener(event, handler) {
var _local2 = "__q_" + event;
_removeEventListener(this[_local2], event, handler);
}
function getEventListeners(type) {
return(this["__q_" + type]);
}
function getEvents() {
return(__events);
}
function removeEventListeners(type) {
var _local4 = "__q_" + type;
var _local2 = this[_local4];
while (_local2.length) {
_removeEventListener(_local2, type, _local2[0]);
}
}
function removeAllEventListeners() {
var _local5 = getEvents();
var _local6;
var _local2;
var _local4;
var _local3 = 0;
while (_local3 < _local5.length) {
_local4 = _local5[_local3];
_local6 = "__q_" + _local4;
_local2 = this[_local6];
while (_local2.length) {
_removeEventListener(_local2, _local4, _local2[0]);
}
_local3++;
}
}
static var _fEventBroadcaster = undefined;
static var exceptions = {move:1, draw:1, load:1};
}
Symbol 1761 MovieClip [__Packages.cust.GUI.UIBtn] Frame 0
class cust.GUI.UIBtn extends MovieClip
{
var stop, _focusrect, gotoAndStop, dispatchEvent;
function UIBtn () {
super();
cust.events.EventBroadcaster.initialise(this);
stop();
_focusrect = false;
}
function update() {
if (isDown) {
gotoAndStop(DOWN);
} else if (isOver) {
gotoAndStop(OVER);
} else {
gotoAndStop(UP);
}
}
function onSetFocus() {
Key.addListener(this);
}
function onKillFocus() {
Key.removeListener(this);
}
function onKeyDown() {
if (Key.getCode() == 13) {
onPress();
}
}
function onKeyUp() {
if (Key.getCode() == 13) {
onRelease();
}
}
function onUnload() {
onKillFocus();
}
function onRollOver() {
isOver = true;
dispatchEvent({target:this, type:ROLLOVER});
update();
}
function onRollOut() {
isOver = false;
dispatchEvent({target:this, type:ROLLOUT});
update();
}
function onPress() {
isDown = true;
dispatchEvent({target:this, type:PRESS});
update();
}
function onRelease() {
isDown = false;
dispatchEvent({target:this, type:RELEASE});
update();
}
function onDragOver() {
isOver = true;
isDown = true;
dispatchEvent({target:this, type:DRAGOVER});
update();
}
function onDragOut() {
isOver = false;
isDown = false;
dispatchEvent({target:this, type:DRAGOUT});
update();
}
var isOver = false;
var isDown = false;
static var UP = "up";
static var OVER = "over";
static var DOWN = "down";
static var ROLLOVER = "rollOver";
static var ROLLOUT = "rollOut";
static var PRESS = "press";
static var RELEASE = "release";
static var DRAGOUT = "dragOut";
static var DRAGOVER = "dragOver";
}
Symbol 1762 MovieClip [__Packages.cust.GUI.RadioBtn] Frame 0
class cust.GUI.RadioBtn extends cust.GUI.UIBtn
{
var _name, value, group, selected_mc;
function RadioBtn () {
super();
var _local3 = _name.split(DIVIDER);
value = _local3[1];
group = cust.GUI.RadioGroup.GET_RADIO_GROUP(_local3[0]);
group.addBtn(this);
selected_mc._visible = false;
}
function select(b) {
selected_mc._visible = b;
}
function get selected() {
return(selected_mc._visible);
}
function set selected(b) {
if (selected_mc._visible != b) {
if (b) {
group.release({target:this});
} else {
group.release({target:null});
}
}
selected_mc._visible = b;
//return(selected);
}
static var DIVIDER = "_";
}
Symbol 1763 MovieClip [__Packages.PVTarget] Frame 0
class PVTarget extends MovieClip
{
var _visible;
function PVTarget () {
super();
}
function onLoad() {
_visible = false;
_global.root.pv.addToTargetArray(this);
}
var value = 100;
}
Symbol 1764 MovieClip [__Packages.PVTargetMove] Frame 0
class PVTargetMove extends PVTarget
{
function PVTargetMove () {
super();
}
var value = 500;
var movement = true;
}
Symbol 1765 MovieClip [__Packages.PVTarget500] Frame 0
class PVTarget500 extends PVTarget
{
function PVTarget500 () {
super();
}
var value = 500;
}
Symbol 1766 MovieClip [__Packages.cust.GUI.CheckBox] Frame 0
class cust.GUI.CheckBox extends cust.GUI.UIBtn
{
var selected_mc;
function CheckBox () {
super();
}
function RadioBtn() {
super();
selected_mc._visible = false;
}
function onRelease() {
super.onRelease();
selected_mc._visible = !selected_mc._visible;
}
function get checked() {
return(selected_mc._visible);
}
}
Symbol 1767 MovieClip [__Packages.ClickBlocker] Frame 0
class ClickBlocker extends MovieClip
{
function ClickBlocker () {
super();
}
function onPress() {
}
var useHandCursor = false;
}
Symbol 1768 MovieClip [__Packages.PauseMenu] Frame 0
class PauseMenu extends MovieClip
{
var shownHandler, gotoAndPlay, cont, hiddenHandler, gotoAndStop, stop;
function PauseMenu () {
super();
}
function show(page, sh) {
shownHandler = sh;
gotoAndPlay(SHOW);
cont.gotoAndStop(page);
}
function hide(hh) {
hiddenHandler = hh;
gotoAndPlay(HIDE);
}
function gotoPage(page) {
gotoAndStop(SHOWN);
cont.gotoAndStop(page);
}
function shown() {
stop();
shownHandler();
delete shownHandler;
}
function hidden() {
stop();
hiddenHandler();
delete hiddenHandler;
}
static var SHOWN = "shown";
static var SHOW = "show";
static var HIDDEN = "hidden";
static var HIDE = "hide";
}
Symbol 1769 MovieClip [__Packages.Progress] Frame 0
class Progress extends MovieClip
{
var w, bar;
function Progress () {
super();
w = bar._width;
bar._width = 0;
}
function setProgress(n) {
n = ((n > 1) ? 1 : (n));
bar._width = w * n;
}
}
Symbol 1770 MovieClip [__Packages.Background] Frame 0
class Background extends MovieClip
{
var cacheAsBitmap, totalArea, sr, scrollRect;
function Background () {
super();
cacheAsBitmap = true;
}
function setVars(vw, vh, ta, ww, wh) {
totalArea = ta;
sr = new flash.geom.Rectangle(0, 0, vw, vh);
scrollRect = sr;
rx = (ta.width - vw) / (ww - vw);
ry = (ta.height - vh) / (wh - vh);
}
function scrll(wx, wy) {
sr.x = (-wx) * rx;
sr.y = (-wy) * ry;
scrollRect = sr;
}
var rx = 1;
var ry = 1;
}
Symbol 1771 MovieClip [__Packages.WallMoat] Frame 0
class WallMoat extends Wall
{
function WallMoat () {
super();
}
function onLoad() {
}
var t = "wall moat";
}
Symbol 1772 MovieClip [__Packages.FloorRopeBridge] Frame 0
class FloorRopeBridge extends Floor
{
function FloorRopeBridge () {
super();
}
var t = "ropeBridge";
}
Symbol 1773 MovieClip [__Packages.HaggisFloor] Frame 0
class HaggisFloor extends Floor
{
var _visible, si, gotoAndStop;
function HaggisFloor () {
super();
_visible = true;
if (si) {
if (!_global.levelVars.haggisReleased) {
gotoAndStop("off");
return;
}
}
}
var t = "haggisFloor";
}
Symbol 1774 MovieClip [__Packages.Switch] Frame 0
class Switch extends BackItem
{
var game, _parent, player, key, _name, onSwitch;
function Switch () {
super();
game = _parent._parent._parent;
player = game.player;
key = game.p1Input.kAction;
Key.addListener(this);
}
function stopPlayer() {
_global.root.player.active = false;
_global.root.player.gotoAndStop("stand");
}
function startPlayer() {
_global.root.player.active = true;
}
function checkForTip() {
if (_global.root.tips[_name]) {
_global.root.gui.showTip(_global.root.tips[_name]);
}
}
function onKeyDown() {
var _local2 = Key.getCode();
if ((_local2 == key[0]) && (!kt)) {
if (player.yState == 0) {
if (player.hitTest(this)) {
onSwitch();
}
}
kt = true;
}
}
function onKeyUp() {
var _local2 = Key.getCode();
if (kt && (_local2 == key[0])) {
kt = false;
}
}
function setPlayerDir(n) {
player.xVel = 0;
player._xscale = n * player.baseXScale;
}
var t = "switch";
var kt = false;
}
Symbol 1775 MovieClip [__Packages.SwitchHaggisPen] Frame 0
class SwitchHaggisPen extends Switch
{
var si, gotoAndStop, _name;
function SwitchHaggisPen () {
super();
}
function onLoad() {
if (si.props.isOn) {
gotoAndStop("on");
}
}
function onSwitch() {
if (!si.props.isOn) {
if (_global.root.tips[_name]) {
_global.root.gui.showTip(_global.root.tips[_name]);
}
_global.root.player.active = false;
_global.root.player.xState = 0;
_global.root.player.gotoAndStop("stand");
gotoAndStop("on");
si.props.isOn = true;
_global.levelVars.haggisReleased = true;
}
}
var t = "haggisPen";
}
Symbol 1776 MovieClip [__Packages.SwitchNessiePhoto1] Frame 0
class SwitchNessiePhoto1 extends Switch
{
var si, gotoAndStop, setPlayerDir, _name, stopPlayer, gotoAndPlay, startPlayer;
function SwitchNessiePhoto1 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
if (_global.root.tips[_name]) {
_global.root.gui.showTip(_global.root.tips[_name]);
}
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(1);
startPlayer();
}
var t = "nessiePhoto1";
}
Symbol 1777 MovieClip [__Packages.CheckPoint] Frame 0
class CheckPoint extends BackItem
{
var _visible, game, _parent, player, hitTest, removeMovieClip;
function CheckPoint () {
super();
_visible = false;
game = _parent._parent._parent;
player = game.player;
}
function onEnterFrame() {
if (hitTest(player.hitbox) && (player.yState == 0)) {
game.levelOver();
removeMovieClip();
}
}
var n = 0;
var t = "checkPoint";
}
Symbol 1778 MovieClip [__Packages.Pickup] Frame 0
class Pickup extends FrontItem
{
var game, world, player, collected, si, gotoAndStop, hitTest, gotoAndPlay;
function Pickup () {
super();
game = _global.root;
world = game.fg;
player = game.player;
if ((collected = Boolean(si.props.collected))) {
gotoAndStop(HIDING);
} else {
gotoAndStop(SHOWING);
}
}
function onEnterFrame() {
if (!game.isPaused) {
if (!collected) {
if (hitTest(player.hitbox)) {
si.props.collected = (collected = true);
pickedUp();
gotoAndPlay(COLLECTED);
}
}
}
}
function pickedUp() {
}
var t = "coin";
static var SHOWING = "show";
static var HIDING = "hide";
static var COLLECTED = "collected";
}
Symbol 1779 MovieClip [__Packages.PickupCoin] Frame 0
class PickupCoin extends Pickup
{
var si, world;
function PickupCoin () {
super();
if (!si) {
world.coinsTotal++;
}
}
function pickedUp() {
world.coinsCollected++;
}
}
Symbol 1780 MovieClip [__Packages.SwitchNessiePhoto3] Frame 0
class SwitchNessiePhoto3 extends Switch
{
var si, gotoAndStop, setPlayerDir, _name, stopPlayer, gotoAndPlay, startPlayer;
function SwitchNessiePhoto3 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
if (_global.root.tips[_name]) {
_global.root.gui.showTip(_global.root.tips[_name]);
}
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(3);
startPlayer();
}
var t = "nessiePhoto3";
}
Symbol 1781 MovieClip [__Packages.SwitchNessiePhoto2] Frame 0
class SwitchNessiePhoto2 extends Switch
{
var si, gotoAndStop, setPlayerDir, _name, stopPlayer, gotoAndPlay, startPlayer;
function SwitchNessiePhoto2 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
if (_global.root.tips[_name]) {
_global.root.gui.showTip(_global.root.tips[_name]);
}
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(2);
startPlayer();
}
var t = "nessiePhoto2";
}
Symbol 1782 MovieClip [__Packages.TipPoint] Frame 0
class TipPoint extends BackItem
{
var _visible, player, hitTest, si, _name;
function TipPoint () {
super();
_visible = false;
player = _global.root.player;
}
function onEnterFrame() {
if (hitTest(player.hitbox) && (!si.props.done)) {
si.props.done = true;
_global.root.gui.showTip(_global.root.tips[_name]);
}
}
var t = "tipPoint";
}
Symbol 1783 MovieClip [__Packages.PickupLens] Frame 0
class PickupLens extends Pickup
{
var _name;
function PickupLens () {
super();
}
function pickedUp() {
_global.root.lenses[_name].collected = true;
_global.root.pause_mc.show("lenseCollected");
_global.root.pause_mc.cont.lenses.gotoAndStop(_name);
var _local3 = SO.getVar("lenses");
_local3[_name] = true;
SO.setVar("lenses", _local3);
}
var t = "pickupLens";
}
Symbol 1784 MovieClip [__Packages.GUI] Frame 0
class GUI extends MovieClip
{
var tips, itemsIcon, photoScore_txt, TIPS_SHOWN_FOR, oppIcon1, oppIcon2, oppIcon3, levelCoins_txt, timerText_txt, tr, tipsOpenUntil, nextTipStr, nextTipShowFor, tipToShow;
function GUI () {
super();
tips.speechBubble.onRelease = Delegate.create(this, hideTip);
itemsIcon.stop();
photoScore_txt.text = "0";
TIPS_SHOWN_FOR = 5 * _global.fps;
}
function init(info) {
var _local2 = info.photoOps;
if (_local2[0]) {
totalPhotoOps++;
oppIcon1.gotoAndStop(_local2[0]);
} else {
oppIcon1.gotoAndStop("nothing");
}
if (_local2[1]) {
totalPhotoOps++;
oppIcon2.gotoAndStop(_local2[1]);
} else {
oppIcon2.gotoAndStop("nothing");
}
if (_local2[2]) {
totalPhotoOps++;
oppIcon3.gotoAndStop(_local2[2]);
} else {
oppIcon3.gotoAndStop("nothing");
}
oppIcon1.tick._visible = false;
oppIcon2.tick._visible = false;
oppIcon3.tick._visible = false;
}
function update(timeRemaining, coinsCollected, coinsTotal) {
levelCoins_txt.text = (coinsCollected + "/") + coinsTotal;
var _local4 = Math.floor(timeRemaining / (_global.fps * 60));
var _local5 = Math.abs(Math.floor((timeRemaining / _global.fps) % 60));
var _local6;
if (_local4 < 0) {
_local6 = "-" + Math.abs(_local4 + 1);
} else {
_local6 = _local4.toString();
}
timerText_txt.text = (_local6 + ":") + ((_local5 < 10) ? ("0" + _local5) : (_local5));
timerText_txt.textColor = ((timeRemaining >= 0) ? 16777215 : 16711680);
var _local7 = _global.root.calculateScore(0, _global.root.fg.coinsCollected, Math.min(0, timeRemaining), gottenPhotoOps);
photoScore_txt.text = Format.number(_local7);
photoScore_txt.textColor = ((_local7 >= 0) ? 16777215 : 16711680);
tr = timeRemaining;
if (!(tipsOpenUntil === undefined)) {
if (timeRemaining < tipsOpenUntil) {
hideTip();
}
}
}
function takePhoto(n) {
this["oppIcon" + n].tick._visible = true;
gottenPhotoOps++;
}
function setItem(n) {
itemsIcon.gotoAndStop(n);
}
function showTip(str, showTipFor) {
if (!(tipsOpenUntil === undefined)) {
hideTip();
nextTipStr = str;
nextTipShowFor = showTipFor;
} else {
tips.gotoAndPlay("play");
tipToShow = str;
if (showTipFor) {
tipsOpenUntil = tr - showTipFor;
} else {
tipsOpenUntil = tr - (str.length * 3);
}
}
}
function tipShowing() {
tips.tip_txt.text = tipToShow;
}
function hideTip() {
tips.gotoAndPlay("out");
delete tipsOpenUntil;
}
function getRidOfTips() {
if (!(tipsOpenUntil === undefined)) {
hideTip();
delete nextTipStr;
delete nextTipShowFor;
}
}
function checkForNextTip() {
if (nextTipStr) {
showTip(nextTipStr, nextTipShowFor);
delete nextTipStr;
delete nextTipShowFor;
} else {
tips.stop();
}
}
var totalPhotoOps = 0;
var gottenPhotoOps = 0;
}
Symbol 1785 MovieClip [__Packages.Delegate] Frame 0
class Delegate
{
function Delegate () {
}
static function create(target, handler) {
var _local3 = arguments.slice(2);
var _local2 = function () {
return(arguments.callee.handler.apply(arguments.callee.target, arguments.concat(arguments.callee.extraArgs)));
};
_local2.extraArgs = _local3;
_local2.handler = handler;
_local2.target = target;
return(_local2);
}
}
Symbol 1786 MovieClip [__Packages.LadderForRope] Frame 0
class LadderForRope extends Ladder
{
var _visible, gotoAndStop;
function LadderForRope () {
super();
}
function onLoad() {
_visible = false;
if (!_global.levelVars.gotRope) {
gotoAndStop("off");
} else {
gotoAndStop(1);
}
}
function onEnterFrame() {
_visible = false;
if (!_global.levelVars.gotRope) {
gotoAndStop("off");
} else {
gotoAndStop(1);
}
}
var t = "ladderForRope";
}
Symbol 1787 MovieClip [__Packages.SwitchClaws] Frame 0
class SwitchClaws extends Switch
{
var si, gotoAndStop, gotoAndPlay;
function SwitchClaws () {
super();
}
function onLoad() {
if (si.props.melted) {
gotoAndStop("unfrozen");
}
if (_global.levelVars.gotRope) {
gotoAndStop("on");
}
}
function onEnterFrame() {
if ((_global.levelVars.litFire && (!si.props.melted)) && (!si.props.meltOnce)) {
si.props.meltOnce = true;
gotoAndPlay("melt");
}
}
function onSwitch() {
if ((!si.props.isOn) && (si.props.melted)) {
_global.root.gui.setItem("claws");
gotoAndStop("on");
si.props.isOn = true;
_global.levelVars.gotRope = true;
}
}
var t = "switchClaws";
}
Symbol 1788 MovieClip [__Packages.SwitchMeltClawsLeft] Frame 0
class SwitchMeltClawsLeft extends Switch
{
var si, gotoAndStop, onEnterFrame;
function SwitchMeltClawsLeft () {
super();
}
function onLoad() {
if (si) {
if (_global.levelVars.clawsMelted) {
gotoAndStop("off");
} else if (_global.levelVars.gotFire) {
gotoAndStop("on");
} else {
gotoAndStop("off");
}
} else {
gotoAndStop("on");
}
if (!onEnterFrame) {
onEnterFrame = onLoad;
}
}
function onSwitch() {
if (((_global.levelVars.gotFire && (_global.root.player._xscale > 0)) && (!si.props.done)) && (!_global.levelVars.clawsMelted)) {
_global.levelVars.clawsMelted = true;
si.props.done = true;
_global.root.player.active = false;
_global.root.player.gotoAndStop("strikeMatch");
}
}
var t = "switchMeltClawsLeft";
}
Symbol 1789 MovieClip [__Packages.SwitchMeltClawsRight] Frame 0
class SwitchMeltClawsRight extends Switch
{
var si, gotoAndStop, onEnterFrame;
function SwitchMeltClawsRight () {
super();
}
function onLoad() {
if (si) {
if (_global.levelVars.clawsMelted) {
gotoAndStop("off");
} else if (_global.levelVars.gotFire) {
gotoAndStop("on");
} else {
gotoAndStop("off");
}
} else {
gotoAndStop("on");
}
if (!onEnterFrame) {
onEnterFrame = onLoad;
}
}
function onSwitch() {
if (((_global.levelVars.gotFire && (_global.root.player._xscale < 0)) && (!si.props.done)) && (!_global.levelVars.clawsMelted)) {
_global.levelVars.clawsMelted = true;
si.props.done = true;
_global.root.player.active = false;
_global.root.player.gotoAndStop("strikeMatch");
}
}
var t = "switchMeltClawsRight";
}
Symbol 1790 MovieClip [__Packages.SwitchYetiPhoto2] Frame 0
class SwitchYetiPhoto2 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchYetiPhoto2 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(-1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(2);
startPlayer();
}
var t = "yetiPhoto2";
}
Symbol 1791 MovieClip [__Packages.SwitchYetiPhoto3] Frame 0
class SwitchYetiPhoto3 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchYetiPhoto3 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(3);
startPlayer();
}
var t = "yetiPhoto3";
}
Symbol 1792 MovieClip [__Packages.SwitchYetiPhoto1] Frame 0
class SwitchYetiPhoto1 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchYetiPhoto1 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(1);
startPlayer();
}
var t = "yetiPhoto1";
}
Symbol 1793 MovieClip [__Packages.SwitchMatch] Frame 0
class SwitchMatch extends Switch
{
var si, gotoAndStop, checkForTip;
function SwitchMatch () {
super();
}
function onLoad() {
if (si.props.isOn) {
gotoAndStop("on");
}
}
function onSwitch() {
if (!si.props.isOn) {
checkForTip();
_global.root.gui.setItem("match");
gotoAndStop("on");
si.props.isOn = true;
_global.levelVars.gotFire = true;
}
}
var t = "switchMatch";
}
Symbol 1794 MovieClip [__Packages.SwitchRockPaperScissors] Frame 0
class SwitchRockPaperScissors extends Switch
{
var troll, si, gotoAndStop, gameOver, setPlayerDir, yourGoTaken, gotoAndPlay, keys, thoughtBubble, yourChoice, trollChoice, youScore, trollScore, onEnterFrame;
function SwitchRockPaperScissors () {
super();
troll.hand.stop();
}
function onLoad() {
if (si.props.done) {
gotoAndStop(DONE);
}
}
function onSwitch() {
if (!si.props.isOn) {
if (!gameOver) {
setPlayerDir(1);
_global.root.player.active = false;
gotoAndStop(ON);
startUp();
si.props.isOn = true;
}
} else {
action();
}
}
function gameFailed() {
si.props.isOn = false;
gotoAndStop(OFF);
_global.root.player.active = true;
startUp();
delete gameOver;
delete yourGoTaken;
}
function gameWon() {
si.props.isOn = false;
gotoAndPlay(DONE_OUT);
si.props.done = true;
_global.root.player.active = true;
_global.levelVars.rockPaperScissorsCompleted = true;
troll.stop();
delete gameLoop;
gameOver = true;
}
function gameLoop() {
if ((!yourGoTaken) && (!gameOver)) {
if (Key.isDown(39) && (!keys[39])) {
choose(1);
keys[39] = true;
} else if (!Key.isDown(39)) {
delete keys[39];
}
if (Key.isDown(37) && (!keys[37])) {
choose(-1);
keys[37] = true;
} else if (!Key.isDown(37)) {
delete keys[37];
}
}
}
function action() {
if ((!yourGoTaken) && (!gameOver)) {
makeYourMove();
}
}
function choose(c) {
if ((thoughtBubble._currentframe + c) <= 0) {
thoughtBubble.gotoAndStop(1);
} else if ((thoughtBubble._currentframe + c) >= 4) {
thoughtBubble.gotoAndStop(3);
} else {
thoughtBubble.gotoAndStop(thoughtBubble._currentframe + c);
}
yourChoice = thoughtBubble._currentframe;
}
function makeYourMove() {
yourGoTaken = true;
troll.gotoAndPlay(REVEAL);
troll.hand.gotoAndStop(trollChoice);
if (thoughtBubble._currentframe == 1) {
_global.root.player.gotoAndStop(PAPER);
} else if (thoughtBubble._currentframe == 2) {
_global.root.player.gotoAndStop(ROCK);
} else {
_global.root.player.gotoAndStop(SCISSORS);
}
if (trollChoice == yourChoice) {
doResult(DRAW);
} else if (((trollChoice == 1) && (yourChoice == 3)) || (trollChoice == (yourChoice + 1))) {
doResult(WIN);
} else {
doResult(LOSE);
}
}
function doResult(s) {
if (s == DRAW) {
} else if (s == WIN) {
youScore++;
troll.sprite.gotoAndPlay(SAD);
} else if (s == LOSE) {
trollScore++;
troll.sprite.gotoAndPlay(HAPPY);
}
if (youScore >= WIN_SCORE) {
troll.trollState = LOSE;
gameOver = true;
} else if (trollScore >= WIN_SCORE) {
troll.trollState = WIN;
gameOver = true;
}
}
function reset() {
if (!gameOver) {
trollThink();
_global.root.player.gotoAndStop(THINKING);
delete yourGoTaken;
}
troll.gotoAndPlay(HIDE);
}
function trollThink() {
trollChoice = Math.ceil(Math.random() * 3);
}
function startUp() {
yourChoice = 1;
trollThink();
youScore = 0;
trollScore = 0;
yourGoTaken = false;
troll.trollState = false;
onEnterFrame = gameLoop;
keys = [];
}
var t = "rockPaperScissors";
static var WIN_SCORE = 2;
static var DRAW = "draw";
static var WIN = "win";
static var LOSE = "lose";
static var PAPER = "paper";
static var ROCK = "rock";
static var SCISSORS = "scissors";
static var DONE = "done";
static var DONE_OUT = "doneOut";
static var ON = "on";
static var OFF = "off";
static var SAD = "sad";
static var HAPPY = "happy";
static var REVEAL = "reveal";
static var THINKING = "thinking";
static var HIDE = "hide";
}
Symbol 1795 MovieClip [__Packages.FloorTileGame] Frame 0
class FloorTileGame extends Floor
{
var _visible, onEnterFrame, si, gotoAndStop;
function FloorTileGame () {
super();
checkState();
_visible = true;
onEnterFrame = checkState;
}
function checkState() {
if (si) {
if (!_global.levelVars.tileGameComplete) {
gotoAndStop("off");
return(undefined);
}
delete onEnterFrame;
}
gotoAndStop("on");
}
var t = "floorTileGame";
}
Symbol 1796 MovieClip [__Packages.SwitchOrgan] Frame 0
class SwitchOrgan extends Switch
{
var t, _name, game, _parent, n, si, gotoAndPlay;
function SwitchOrgan () {
super();
t = "switchOrgan" + _name;
game = _parent._parent._parent;
n = Number(_name.substr(-1, 1));
if (!_global.levelVars.organSequence) {
_global.levelVars.organSequence = [3, 5, 4, 2, 3];
_global.levelVars.organIndex = 0;
}
}
function onLoad() {
}
function onSwitch() {
if (!si.props.isOn) {
gotoAndPlay("on");
if (_global.levelVars.organSequence[_global.levelVars.organIndex] == n) {
_global.levelVars.organIndex++;
if (_global.levelVars.organIndex >= _global.levelVars.organSequence.length) {
_global.levelVars.organIndex = 0;
game.levelOver();
}
} else {
_global.levelVars.organIndex = 0;
}
}
}
}
Symbol 1797 MovieClip [__Packages.WarpGateExit] Frame 0
class WarpGateExit extends BackItem
{
var _visible;
function WarpGateExit () {
super();
_visible = false;
}
var t = "warpGateExit";
}
Symbol 1798 MovieClip [__Packages.TileGameTimer] Frame 0
class TileGameTimer extends BackItem
{
function TileGameTimer () {
super();
}
var t = "tileGameTimer";
}
Symbol 1799 MovieClip [__Packages.TileGame] Frame 0
class TileGame extends Switch
{
var scrollRect, action;
function TileGame () {
super();
scrollRect = new flash.geom.Rectangle(0, 0, 85, 85);
}
function onSwitch() {
action();
}
var t = "t1";
}
Symbol 1800 MovieClip [__Packages.SwitchPhoenixPhoto1] Frame 0
class SwitchPhoenixPhoto1 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchPhoenixPhoto1 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(1);
startPlayer();
}
var t = "phoenixPhoto1";
}
Symbol 1801 MovieClip [__Packages.SwitchPhoenixPhoto3] Frame 0
class SwitchPhoenixPhoto3 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchPhoenixPhoto3 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(3);
startPlayer();
}
var t = "phoenixPhoto3";
}
Symbol 1802 MovieClip [__Packages.SwitchPhoenixPhoto2] Frame 0
class SwitchPhoenixPhoto2 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchPhoenixPhoto2 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(2);
startPlayer();
}
var t = "phoenixPhoto2";
}
Symbol 1803 MovieClip [__Packages.WarpGate] Frame 0
class WarpGate extends Switch
{
var game, _parent, player, exitClipName, _name;
function WarpGate () {
super();
game = _parent._parent._parent;
player = game.player;
exitClipName = _name + "_exit";
}
function onSwitch() {
if (player.active) {
if (!(_parent._parent.abo[exitClipName] === undefined)) {
player.active = false;
player.gotoAndStop("teleportOut");
player.rx = _parent._parent.abo[exitClipName].x;
player.ry = _parent._parent.abo[exitClipName].y;
}
}
}
var t = "warpGate";
}
Symbol 1804 MovieClip [__Packages.WallSmallRock] Frame 0
class WallSmallRock extends Wall
{
function WallSmallRock () {
super();
}
function onLoad() {
}
var t = "smallRock";
}
Symbol 1805 MovieClip [__Packages.WallTriggerable] Frame 0
class WallTriggerable extends Wall
{
var _visible, si, _name, gotoAndStop;
function WallTriggerable () {
super();
_visible = _global.root.visiblePlatforms;
checkHide();
}
function checkHide() {
if (si) {
if (_global.levelVars[_name]) {
gotoAndStop("off");
} else {
gotoAndStop("on");
}
} else {
gotoAndStop("on");
}
}
function onEnterFrame() {
checkHide();
}
var t = "wallTriggerable";
}
Symbol 1806 MovieClip [__Packages.WallCondor] Frame 0
class WallCondor extends WallTriggerable
{
var checkHide, _visible, si, gotoAndPlay;
function WallCondor () {
super();
checkHide();
}
function onLoad() {
_visible = true;
checkHide();
}
function onEnterFrame() {
if (_global.levelVars.fedCondors && (!si.props.condorMoved)) {
si.props.condorMoved = true;
gotoAndPlay("move");
}
}
var t = "condor";
}
Symbol 1807 MovieClip [__Packages.SwitchRabbit] Frame 0
class SwitchRabbit extends Switch
{
var si, gotoAndStop, gotoAndPlay, checkForTip, rabbit;
function SwitchRabbit () {
super();
}
function onLoad() {
if (si.props.isOn) {
gotoAndStop("on");
} else {
gotoAndPlay(1);
}
}
function onSwitch() {
if (!si.props.isOn) {
checkForTip();
rabbit.gotoAndPlay("caught");
si.props.isOn = true;
_global.root.gui.setItem("rabbit");
_global.levelVars.condorCompleted = true;
}
}
var t = "switchRabbit";
}
Symbol 1808 MovieClip [__Packages.SwitchCondors] Frame 0
class SwitchCondors extends Switch
{
var gotoAndStop, si;
function SwitchCondors () {
super();
}
function onLoad() {
if (_global.levelVars.fedCondors) {
gotoAndStop("on");
} else if (_global.levelVars.condorCompleted) {
gotoAndStop("action");
} else {
gotoAndStop("off");
}
}
function onEnterFrame() {
if (_global.levelVars.fedCondors) {
gotoAndStop("on");
} else if (_global.levelVars.condorCompleted) {
gotoAndStop("action");
} else {
gotoAndStop("off");
}
}
function onSwitch() {
if ((!si.props.isOn) && (_global.levelVars.condorCompleted == true)) {
_global.root.gui.setItem("none");
gotoAndStop("on");
si.props.isOn = true;
_global.levelVars.fedCondors = true;
}
}
var t = "switchCondors";
}
Symbol 1809 MovieClip [__Packages.GoatGoodYes] Frame 0
class GoatGoodYes extends BackItem
{
function GoatGoodYes () {
super();
}
var t = "goatGoodYes";
}
Symbol 1810 MovieClip [__Packages.GoatBadYes] Frame 0
class GoatBadYes extends BackItem
{
function GoatBadYes () {
super();
}
var t = "goatBadYes";
}
Symbol 1811 MovieClip [__Packages.GoatGoodNo] Frame 0
class GoatGoodNo extends BackItem
{
function GoatGoodNo () {
super();
}
var t = "goatGoodNo";
}
Symbol 1812 MovieClip [__Packages.GoatBadNo] Frame 0
class GoatBadNo extends BackItem
{
function GoatBadNo () {
super();
}
var t = "goatBadNo";
}
Symbol 1813 MovieClip [__Packages.SwitchBingoPhoto3] Frame 0
class SwitchBingoPhoto3 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchBingoPhoto3 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(3);
startPlayer();
}
var t = "bingoPhoto3";
}
Symbol 1814 MovieClip [__Packages.SwitchBingoPhoto2] Frame 0
class SwitchBingoPhoto2 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchBingoPhoto2 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(-1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(2);
startPlayer();
}
var t = "bingoPhoto2";
}
Symbol 1815 MovieClip [__Packages.SwitchBingoPhoto1] Frame 0
class SwitchBingoPhoto1 extends Switch
{
var si, gotoAndStop, setPlayerDir, stopPlayer, gotoAndPlay, startPlayer;
function SwitchBingoPhoto1 () {
super();
}
function onLoad() {
if (si.props.isDone) {
gotoAndStop("done");
}
}
function onSwitch() {
if (!si.props.isDone) {
setPlayerDir(1);
stopPlayer();
_global.root.player.gotoAndStop("getCamera");
gotoAndPlay("on");
si.props.isDone = true;
}
}
function animDone() {
_global.root.gui.takePhoto(1);
startPlayer();
}
var t = "bingoPhoto1";
}
Symbol 1816 MovieClip [__Packages.MovingPlatform] Frame 0
class MovingPlatform extends MovieClip
{
var ox, _x, oy, _y, game, _parent, player, play, platform, hitTest, stop;
function MovingPlatform () {
super();
ox = _x;
oy = _y;
game = _parent._parent._parent;
player = game.player;
}
function onEnterFrame() {
if (!game.isPaused) {
if (pt) {
play();
pt = false;
}
dx = platform._x - ox;
dy = platform._y - oy;
var _local2 = ((dy >= 0) ? 1 : -1);
if (hitTest(player._x + dx, ((player._y + player.yOfs) + dy) + 10)) {
wasStoodOn = true;
} else {
wasStoodOn = false;
}
if (wasStoodOn) {
player.rx = player.rx + dx;
player.ry = player.ry + dy;
if (dy > 0) {
player._y = player._y + dy;
}
} else {
dx = 0;
dy = 0;
}
ox = platform._x;
oy = platform._y;
} else {
stop();
pt = true;
}
}
var wasStoodOn = false;
var isMP = true;
var dx = 0;
var dy = 0;
var pt = false;
}
Symbol 1817 MovieClip [__Packages.FloorMoving] Frame 0
class FloorMoving extends Floor
{
function FloorMoving () {
super();
for (var _local3 in this) {
if (this[_local3] instanceof MovieClip) {
this[_local3].stop();
}
}
}
}
Symbol 1818 MovieClip [__Packages.FloorMoving2] Frame 0
class FloorMoving2 extends FloorMoving
{
function FloorMoving2 () {
super();
}
var t = "moving2";
}
Symbol 1819 MovieClip [__Packages.FloorMoving1] Frame 0
class FloorMoving1 extends FloorMoving
{
function FloorMoving1 () {
super();
}
var t = "moving1";
}
Symbol 1820 MovieClip [__Packages.FloorMoving6] Frame 0
class FloorMoving6 extends FloorMoving
{
function FloorMoving6 () {
super();
}
var t = "moving6";
}
Symbol 1821 MovieClip [__Packages.FloorMoving11] Frame 0
class FloorMoving11 extends FloorMoving
{
function FloorMoving11 () {
super();
}
var t = "moving11";
}
Symbol 1822 MovieClip [__Packages.FloorMoving12] Frame 0
class FloorMoving12 extends FloorMoving
{
function FloorMoving12 () {
super();
}
var t = "moving12";
}
Symbol 1823 MovieClip [__Packages.FloorMoving13] Frame 0
class FloorMoving13 extends FloorMoving
{
function FloorMoving13 () {
super();
}
var t = "moving13";
}
Symbol 1824 MovieClip [__Packages.FloorMoving7] Frame 0
class FloorMoving7 extends FloorMoving
{
function FloorMoving7 () {
super();
}
var t = "moving7";
}
Symbol 1825 MovieClip [__Packages.FloorMoving8] Frame 0
class FloorMoving8 extends FloorMoving
{
function FloorMoving8 () {
super();
}
var t = "moving8";
}
Symbol 1826 MovieClip [__Packages.BackItemSmallHead] Frame 0
class BackItemSmallHead extends BackItem
{
var gotoAndStop;
function BackItemSmallHead () {
super();
}
function onEnterFrame() {
if (_global.levelVars.hammeredHead) {
gotoAndStop(_global.levelVars.hammeredHead + 1);
}
}
var t = "backItemSmallHead";
}
Symbol 1827 MovieClip [__Packages.SwitchHammer] Frame 0
class SwitchHammer extends Switch
{
var si, gotoAndStop;
function SwitchHammer () {
super();
}
function onLoad() {
if (si.props.isOn) {
gotoAndStop("on");
}
}
function onSwitch() {
if (!si.props.isOn) {
_global.root.gui.setItem("hammer");
gotoAndStop("on");
si.props.isOn = true;
_global.levelVars.gotHammer = true;
}
}
var t = "switchHammer";
}
Symbol 1828 MovieClip [__Packages.SwitchSmallHeadLeft] Frame 0
class SwitchSmallHeadLeft extends Switch
{
var gotoAndStop;
function SwitchSmallHeadLeft () {
super();
}
function onLoad() {
if (!_global.levelVars.hammeredHead) {
_global.levelVars.hammeredHead = 0;
}
if (_global.levelVars.hammeredHead >= 4) {
gotoAndStop("off");
}
}
function onEnterFrame() {
if (_global.levelVars.hammeredHead >= 4) {
gotoAndStop("off");
}
}
function onSwitch() {
if (((_global.levelVars.hammeredHead < 4) && (_global.levelVars.gotHammer)) && (_global.root.player._xscale > 0)) {
_global.root.player.active = false;
_global.root.player.gotoAndStop("hammer");
}
}
var t = "switchSmallHeadLeft";
}
Symbol 1829 MovieClip [__Packages.SwitchSmallHeadRight] Frame 0
class SwitchSmallHeadRight extends Switch
{
var gotoAndStop;
function SwitchSmallHeadRight () {
super();
}
function onLoad() {
if (!_global.levelVars.hammeredHead) {
_global.levelVars.hammeredHead = 0;
}
if (_global.levelVars.hammeredHead >= 4) {
gotoAndStop("off");
}
}
function onEnterFrame() {
if (_global.levelVars.hammeredHead >= 4) {
gotoAndStop("off");
}
}
function onSwitch() {
if (((_global.levelVars.hammeredHead < 4) && (_global.levelVars.gotHammer)) && (_global.root.player._xscale < 0)) {
_global.root.player.active = false;
_global.root.player.gotoAndStop("hammer");
} else if (_global.levelVars.hammeredHead < 4) {
gotoAndStop("off");
}
}
var t = "switchSmallHeadRight";
}
Symbol 1830 MovieClip [__Packages.BackItemBigHead] Frame 0
class BackItemBigHead extends BackItem
{
var si, gotoAndPlay;
function BackItemBigHead () {
super();
}
function onLoad() {
}
function onEnterFrame() {
if ((_global.levelVars.hammeredHead == 4) && (!si.props.out)) {
gotoAndPlay("out");
si.props.out = true;
}
}
var t = "backItemBigHead";
}
Symbol 1831 MovieClip [__Packages.SwitchSlotMachine] Frame 0
class SwitchSlotMachine extends Switch
{
var action;
function SwitchSlotMachine () {
super();
}
function onSwitch() {
action();
}
var t = "slotMachine";
}
Symbol 1832 MovieClip [__Packages.WallTriggerableMonkey] Frame 0
class WallTriggerableMonkey extends Wall
{
var _name, gotoAndStop;
function WallTriggerableMonkey () {
super();
}
function onLoad() {
checkHide();
}
function checkHide() {
if (_global.levelVars[_name]) {
gotoAndStop("off");
} else {
gotoAndStop("on");
}
}
function onEnterFrame() {
checkHide();
}
var t = "wallTriggerableMonkey";
}
Symbol 54 MovieClip [targetScore] Frame 1
stop();
Symbol 54 MovieClip [targetScore] Frame 12
gotoAndStop (1);
Symbol 79 MovieClip Frame 1
iAmAClipToStop(this);
Symbol 79 MovieClip Frame 9
gotoAndPlay (1);
Symbol 81 MovieClip [pvTarget] Frame 1
#initclip 101
Object.registerClass("pvTarget", PVTarget);
#endinitclip
Symbol 86 MovieClip [pvTargetMove] Frame 1
#initclip 92
Object.registerClass("pvTargetMove", PVTargetMove);
#endinitclip
Symbol 89 MovieClip [pvTarget500] Frame 1
#initclip 93
Object.registerClass("pvTarget500", PVTarget500);
#endinitclip
Symbol 116 MovieClip Frame 1
stop();
iAmAClipToStop(this);
Instance of Symbol 83 MovieClip in Symbol 116 MovieClip Frame 1
onClipEvent (load) {
_global.root.pv.setTriggerClip(this);
}
Symbol 116 MovieClip Frame 218
_parent._y = _parent._y + 4;
Symbol 116 MovieClip Frame 219
_parent._y = _parent._y - 7;
Symbol 116 MovieClip Frame 220
_parent._y = _parent._y + 6;
Symbol 116 MovieClip Frame 221
_parent._y = _parent._y - 5;
Symbol 116 MovieClip Frame 222
_parent._y = _parent._y + 4;
Symbol 116 MovieClip Frame 223
_parent._y = _parent._y - 3;
Symbol 116 MovieClip Frame 224
_parent._y = _parent._y + 2;
Symbol 116 MovieClip Frame 225
_parent._y = _parent._y - 1;
Symbol 116 MovieClip Frame 259
_parent._parent.donePhotoOpp();
stop();
Symbol 116 MovieClip Frame 313
stop();
Symbol 120 MovieClip Frame 1
_global.root.pv.setLeftMarker(this);
stop();
Symbol 122 MovieClip Frame 1
_global.root.pv.setRightMarker(this);
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 2
_parent.shutterClosed();
play();
Symbol 127 MovieClip Frame 5
_parent.shutterOpen();
gotoAndStop ("off");
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 4
stop();
Symbol 138 MovieClip Frame 16
stop();
Symbol 149 MovieClip Frame 1
function displayText() {
productCode.text = lensesText[_currentframe].code;
productDescription.text = lensesText[_currentframe].description;
}
lensesText = _global.root.lensesText;
displayText();
stop();
Symbol 149 MovieClip Frame 2
displayText();
stop();
Symbol 149 MovieClip Frame 3
displayText();
stop();
Symbol 149 MovieClip Frame 4
displayText();
stop();
Symbol 149 MovieClip Frame 5
displayText();
stop();
Symbol 149 MovieClip Frame 6
displayText();
stop();
Symbol 149 MovieClip Frame 7
displayText();
stop();
Symbol 149 MovieClip Frame 8
displayText();
stop();
Symbol 149 MovieClip Frame 9
displayText();
stop();
Symbol 164 MovieClip Frame 1
stop();
Symbol 164 MovieClip Frame 2
stop();
Symbol 164 MovieClip Frame 3
stop();
Symbol 168 MovieClip Frame 1
stop();
Symbol 168 MovieClip Frame 2
stop();
Symbol 168 MovieClip Frame 3
stop();
Symbol 172 MovieClip Frame 1
stop();
Symbol 172 MovieClip Frame 2
stop();
Symbol 172 MovieClip Frame 3
stop();
Symbol 176 MovieClip Frame 1
stop();
Symbol 176 MovieClip Frame 2
stop();
Symbol 176 MovieClip Frame 3
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 2
stop();
Symbol 180 MovieClip Frame 3
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 184 MovieClip Frame 2
stop();
Symbol 184 MovieClip Frame 3
stop();
Symbol 188 MovieClip Frame 1
stop();
Symbol 188 MovieClip Frame 2
stop();
Symbol 188 MovieClip Frame 3
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
stop();
Symbol 192 MovieClip Frame 3
stop();
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 2
stop();
Symbol 196 MovieClip Frame 3
stop();
Symbol 200 MovieClip Frame 1
_visible = false;
Symbol 201 MovieClip Frame 1
function gameLoop() {
if (!lensChosen) {
if (Key.isDown(39) && (!keys[39])) {
choose(1);
keys[39] = true;
} else if (!Key.isDown(39)) {
delete keys[39];
}
if (Key.isDown(37) && (!keys[37])) {
choose(-1);
keys[37] = true;
} else if (!Key.isDown(37)) {
delete keys[37];
}
if (Key.isDown(32)) {
if (!spaceToggle) {
spaceToggle = true;
selectLens();
}
} else {
spaceToggle = false;
}
}
lensHolder._x = Math.round((lensHolder._x * ease) + targetX) / (ease + 1);
}
function choose(n) {
if (((currentLens + n) < availableLenses) && ((currentLens + n) >= 0)) {
if (_global.lenses["lens" + currentLens].collected) {
lensHolder["lens" + currentLens].gotoAndStop("off");
}
currentLens = currentLens + n;
if (_global.lenses["lens" + currentLens].collected) {
lensHolder["lens" + currentLens].gotoAndStop("on");
}
lensDescriptions.gotoAndStop(currentLens + 1);
}
targetX = (lensCentre._x - (lensWidth * 0.5)) - lensHolder["lens" + currentLens]._x;
}
function selectLens() {
if (_global.lenses["lens" + currentLens].collected) {
_global.root.selectedLens = currentLens;
lensChosen = true;
_parent.play();
}
}
if (_global.root.selectedLens == undefined) {
_global.root.selectedLens = 1;
}
currentLens = (defaultLens = _global.root.selectedLens);
maxLenses = 9;
availableLenses = _global.lenses.availableLenses;
ease = 5;
targetX = 0;
lensWidth = 66;
keys = [];
i = 0;
while (i < maxLenses) {
if (i >= availableLenses) {
lensHolder["lens" + i]._visible = false;
}
if (!_global.lenses["lens" + i].collected) {
lensHolder["lens" + i].gotoAndStop("locked");
} else if (i != currentLens) {
lensHolder["lens" + i].gotoAndStop("off");
}
i++;
}
targetX = (lensCentre._x - (lensWidth * 0.5)) - lensHolder["lens" + currentLens]._x;
lensHolder._x = targetX;
choose(0);
onEnterFrame = gameLoop;
stop();
Symbol 215 MovieClip Frame 65
_parent.play();
stop();
Symbol 216 MovieClip Frame 1
function waitForReg() {
count++;
if (count >= 90) {
_global.root.gui.getRidOfTips();
delete onEnterFrame;
}
}
_global.root.gui.getRidOfTips();
_global.root.gui.showTip("Choose the lens you wish to take your photograph with!", 30);
count = 0;
this.onEnterFrame = waitForReg;
Symbol 216 MovieClip Frame 11
stop();
Symbol 216 MovieClip Frame 22
_global.root.gui.showTip("Now remember I only want 3 photos! Make them good!", 30);
count = 0;
this.onEnterFrame = waitForReg;
stop();
Symbol 216 MovieClip Frame 23
_parent.go();
_global.root.cameraMode.phoenixOn = true;
stop();
Symbol 235 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip in Symbol 235 MovieClip Frame 1
onClipEvent (load) {
_global.root.pv.setTriggerClip(this);
}
Symbol 235 MovieClip Frame 36
_parent.hoops.play();
Symbol 235 MovieClip Frame 44
stop();
Instance of Symbol 238 MovieClip in Symbol 239 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 226 MovieClip in Symbol 239 MovieClip Frame 10
onClipEvent (load) {
gotoAndPlay(Math.ceil(Math.random() * this._totalframes));
}
Symbol 239 MovieClip Frame 141
stop();
Symbol 240 MovieClip Frame 1
stop();
Symbol 240 MovieClip Frame 233
_parent._parent.mfg.play();
Symbol 240 MovieClip Frame 344
stop();
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 23
stop();
_parent._parent.donePhotoOpp();
Symbol 251 MovieClip Frame 1
stop();
Symbol 251 MovieClip Frame 3
mg.nessieTail.play();
Symbol 251 MovieClip Frame 25
stop();
Symbol 258 MovieClip [smoke] Frame 7
stop();
this.removeMovieClip();
Symbol 267 MovieClip Frame 21
gotoAndPlay (1);
Symbol 304 MovieClip Frame 9
stop();
Symbol 316 MovieClip Frame 1
stop();
if (!onEnterFrame) {
count = 0;
this.onEnterFrame = function () {
if (this._parent.smokeOften != -1) {
this.count++;
if (this.count >= this._parent.smokeOften) {
mc = _parent.smokeHolder.attachMovie("smoke", "smoke" + _parent.smokeHolder.getNextHighestDepth(), _parent.smokeHolder.getNextHighestDepth(), {_x:this._x - 30, _y:this._y + (Math.random() * 40)});
mc.xDist = 26 - (this._parent.smokeOften * 3);
mc._rotation = Math.random() * 360;
mc.onEnterFrame = function () {
this._x = this._x - this.xDist;
this.xDist = this.xDist * 1.2;
};
this.count = 0;
}
}
};
}
Symbol 316 MovieClip Frame 2
stop();
Symbol 337 MovieClip Frame 1
smokeOften = -1;
stop();
Symbol 337 MovieClip Frame 69
bird.gotoAndStop("fire1");
smokeOften = 6;
Symbol 337 MovieClip Frame 149
bird.gotoAndStop("fire2");
smokeOften = 4;
Symbol 337 MovieClip Frame 177
bird.gotoAndStop("fire3");
smokeOften = 2;
Symbol 337 MovieClip Frame 220
_parent._y = _parent._y - 3;
Symbol 337 MovieClip Frame 221
_parent._y = _parent._y + 5;
Symbol 337 MovieClip Frame 222
_parent._y = _parent._y - 4;
Symbol 337 MovieClip Frame 223
_parent._y = _parent._y + 3;
Symbol 337 MovieClip Frame 224
_parent._y = _parent._y - 2;
Symbol 337 MovieClip Frame 225
_parent._y = _parent._y + 1;
Symbol 337 MovieClip Frame 237
_parent._parent.donePhotoOpp();
stop();
Symbol 345 MovieClip Frame 198
bird.gotoAndStop("fire3");
smokeOften = 2;
Symbol 345 MovieClip Frame 243
stop();
Symbol 382 MovieClip Frame 1
stop();
Symbol 382 MovieClip Frame 21
_parent._parent._parent.donePhotoOpp();
stop();
Symbol 383 MovieClip Frame 1
stop();
Instance of Symbol 83 MovieClip in Symbol 383 MovieClip Frame 1
onClipEvent (load) {
_global.root.pv.setTriggerClip(this);
}
Symbol 383 MovieClip Frame 118
tree.play();
Symbol 383 MovieClip Frame 200
stop();
Instance of Symbol 399 MovieClip "mg" in Symbol 402 MovieClip Frame 1
/* no clip actions */
Symbol 422 MovieClip Frame 11
stop();
Symbol 433 MovieClip Frame 147
_parent.gotoAndStop("andesCamera");
Symbol 434 MovieClip Frame 1
function setUpLenses() {
activeLens = _global.lenses["lens" + _global.root.selectedLens];
}
function setTriggerClip(t) {
triggerClip = t;
}
function setLeftMarker(t) {
leftMarker = t;
}
function setRightMarker(t) {
rightMarker = t;
}
function iAmAClipToStop(t) {
if (!clipsToStop) {
clipsToStop = [];
}
clipAlreadyInArray = false;
i = 0;
while (i < clipsToStop.length) {
if (t == clipsToStop[i]) {
clipAlreadyInArray = true;
break;
}
i++;
}
if (!clipAlreadyInArray) {
clipsToStop.push(t);
}
}
function pauseClips() {
clipsPaused = true;
i = 0;
while (i < clipsToStop.length) {
clipsToStop[i].stop();
i++;
}
}
function addToTargetArray(t) {
if (!targetArray) {
targetArray = [];
}
targetArray.push(t);
}
function unpauseClips() {
clipsPaused = false;
i = 0;
while (i < clipsToStop.length) {
clipsToStop[i].play();
i++;
}
}
function edgeStopping() {
reachedEdge = false;
if (leftMarker && (rightMarker)) {
if (xVel > 0) {
point = new Object();
point.x = 0;
point.y = 0;
leftMarker.localToGlobal(point);
if (point.x >= 10) {
reachedEdge = "left";
xVel = xVel * 0.5;
}
} else if (xVel < 0) {
point = new Object();
point.x = 0;
point.y = 0;
rightMarker.localToGlobal(point);
if (point.x <= 590) {
reachedEdge = "right";
xVel = xVel * 0.5;
}
}
}
}
function takePhoto() {
if (photosTaken < photoLimit) {
snap.gotoAndPlay("on");
}
if ((photosTaken + 1) >= photoLimit) {
cameraHUD.crosshair.gotoAndStop("off");
}
}
function shutterClosed() {
checkTargets();
pauseClips();
cameraHUD._visible = false;
snap._visible = false;
scorer._visible = false;
var _local3 = _global.root.photoClipRect;
var _local5 = (_global.root.photos[photosTaken] = new flash.display.BitmapData(_local3.width, _local3.height, false, 0));
var _local4 = new flash.geom.Matrix();
_local4.translate(-_local3.x, -_local3.y);
_local5.draw(this, _local4);
cameraHUD._visible = true;
snap._visible = true;
scorer._visible = true;
photosTaken++;
}
function checkTargets() {
if ((!scoreArray) || (scoreArray.length == photoLimit)) {
scoreArray = [];
}
thisShotScore = 0;
numberOfTargetsInShot = 0;
i = 0;
while (i < targetArray.length) {
g = {x:0, y:0};
targetArray[i].localToGlobal(g);
if ((((g.x <= 575) && (g.x >= 25)) && (g.y >= 25)) && (g.y <= 575)) {
if (!targetArray[i].movement) {
awardedScore = Math.floor(targetArray[i].value);
thisShotScore = thisShotScore + awardedScore;
} else if (activeLens.fast) {
awardedScore = Math.floor(targetArray[i].value);
thisShotScore = thisShotScore + awardedScore;
}
numberOfTargetsInShot++;
}
i++;
}
scoreArray.push(Math.floor((thisShotScore * (numberOfTargetsInShot * numberOfTargetsFactorToScore)) * (photoOpp._xscale / 100)));
scorer.gotoAndPlay("on");
scorer.sprite.textBox.text = scoreArray[scoreArray.length - 1];
}
function shutterOpen() {
unpauseClips();
}
function genericSetup() {
gameOn = true;
pvScore = 0;
photosTaken = 0;
photoLimit = 3;
numberOfTargetsFactorToScore = 0.2;
setUpLenses();
targetScale = activeLens.minZoom;
_global.root.photos = [];
}
function control() {
if (gameOn) {
if (Key.isDown(32)) {
if (!spaceToggle) {
takePhoto();
spaceToggle = true;
}
} else {
spaceToggle = false;
}
if (Key.isDown(38)) {
if (photoOpp._xscale < activeLens.maxZoom) {
zVel = zVel + ((photoOpp._xscale * 0.01) * activeLens.zoomInFactor);
}
} else if (Key.isDown(40)) {
if (photoOpp._xscale > activeLens.minZoom) {
zVel = zVel - ((photoOpp._xscale * 0.01) * activeLens.zoomOutFactor);
} else {
zVel = 0;
}
}
}
}
function horizontalControl() {
if (Key.isDown(37) && (reachedEdge != "left")) {
xVel = xVel + (2 * (photoOpp._xscale / 100));
} else if (Key.isDown(39) && (reachedEdge != "right")) {
xVel = xVel - (2 * (photoOpp._xscale / 100));
}
}
function setUpPhotoOpp() {
genericSetup();
waitToGo = 10;
xVel = 0;
zVel = 0;
bgStart = photoOpp.bg._x;
bbgStart = photoOpp.bbg._x;
mbgStart = photoOpp.mbg._x;
mgStart = photoOpp.mg._x;
mfgStart = photoOpp.mfg._x;
fgStart = photoOpp.fg._x;
photoOpp.horiz = 0;
photoOpp.onEnterFrame = function () {
control();
edgeStopping();
horizontalControl();
zVel = zVel * 0.25;
xVel = xVel * 0.9;
targetScale = targetScale + zVel;
photoOpp._xscale = (photoOpp._yscale = ((photoOpp._yscale * 4) + targetScale) / 5);
photoOpp.horiz = photoOpp.horiz + xVel;
photoOpp.bbg._x = bbgStart + (photoOpp.horiz * 0.1);
photoOpp.bg._x = bgStart + (photoOpp.horiz * 0.25);
photoOpp.mbg._x = mbgStart + (photoOpp.horiz * 0.5);
photoOpp.mg._x = mgStart + photoOpp.horiz;
photoOpp.mfg._x = mfgStart + (photoOpp.horiz * 1.75);
photoOpp.fg._x = fgStart + (photoOpp.horiz * 2);
point = new Object();
point.x = 0;
point.y = 0;
triggerClip.localToGlobal(point);
if ((point.x >= 200) && (point.x <= 400)) {
waitToGo--;
if (waitToGo == 0) {
triggerClip._parent.play();
}
}
};
}
function setUpPhotoOppPhoenix() {
genericSetup();
xVel = 0;
zVel = 0;
bgStart = photoOpp.bg._x;
bbgStart = photoOpp.bbg._x;
mbgStart = photoOpp.mbg._x;
mgStart = photoOpp.mg._x;
mfgStart = photoOpp.mfg._x;
fgStart = photoOpp.fg._x;
photoOpp.bg.onEnterFrame = function () {
this._x--;
};
photoOpp.lavaSteam.onEnterFrame = function () {
this._x = this._x - 2;
};
photoOpp.horiz = 0;
photoOpp.onEnterFrame = function () {
control();
edgeStopping();
horizontalControl();
if (phoenixOn) {
zVel = zVel * 0.25;
xVel = xVel * 0.9;
targetScale = targetScale + zVel;
photoOpp._xscale = (photoOpp._yscale = ((photoOpp._yscale * 4) + targetScale) / 5);
photoOpp.horiz = photoOpp.horiz + xVel;
photoOpp.bbg._x = bbgStart + (photoOpp.horiz * 0.1);
photoOpp.bg._x = bgStart + (photoOpp.horiz * 0.25);
photoOpp.mbg._x = mbgStart + (photoOpp.horiz * 0.5);
photoOpp._x = (photoOpp.mg._x = mgStart + photoOpp.horiz);
photoOpp.mfg._x = mfgStart + (photoOpp.horiz * 1.75);
photoOpp.fg._x = fgStart + (photoOpp.horiz * 2);
}
};
photoOpp.mg.play();
}
function donePhotoOpp() {
count = 0;
this.onEnterFrame = function () {
if (count >= 60) {
topScore = 0;
i = 0;
while (i < scoreArray.length) {
if (scoreArray[i] > topScore) {
topScore = scoreArray[i];
topPhoto = i;
}
i++;
}
_parent.toEndPage(pvScore, topPhoto);
delete photoOpp.onEnterFrame;
delete scoreArray;
delete onEnterFrame;
}
count++;
};
}
if (!_global.root) {
_global.root = {};
}
_global.root.pv = this;
_global.iAmAClipToStop = iAmAClipToStop;
function startCameraMode(f) {
gotoAndStop(f);
}
stop();
Symbol 434 MovieClip Frame 2
function go() {
setUpPhotoOpp();
}
stop();
Symbol 434 MovieClip Frame 3
stop();
zoomYAdjust = -1;
function go() {
setUpPhotoOpp();
}
stop();
Symbol 434 MovieClip Frame 5
stop();
function go() {
setUpPhotoOppPhoenix();
}
stop();
Symbol 434 MovieClip Frame 6
stop();
function go() {
setUpPhotoOpp();
}
stop();
Symbol 439 MovieClip Frame 1
loadMovie (_global.assetsURL + "external/compButton.swf", createEmptyMovieClip("holder", 0));
Symbol 470 Button
on (release) {
getURL (_global.pentaxLogoURL, "_blank");
_root.kvClick(797);
}
Symbol 471 Button
on (release) {
getURL ("http://www.killerviral.com", "_blank");
_root.kvClick(796);
}
Symbol 484 Button
on (release) {
setNextPage("product");
}
Symbol 489 MovieClip Frame 1
stop();
Symbol 489 MovieClip Frame 5
stop();
Symbol 497 Button
on (release) {
setNextPage("goToGame");
}
Symbol 507 Button
on (release) {
_parent.transition.goto(_parent.goToMap);
}
Symbol 511 MovieClip Frame 1
loadMovie ((_global.assetsURL + "external/voucher.swf?country=") + _root.kvCountry(), createEmptyMovieClip("holder", 0));
Symbol 519 Button
on (release) {
_global.root.retryMission();
}
Symbol 525 MovieClip [maleBtn] Frame 1
#initclip 94
Object.registerClass("maleBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 528 MovieClip [femaleBtn] Frame 1
#initclip 95
Object.registerClass("femaleBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 531 MovieClip [ageChildBtn] Frame 1
#initclip 96
Object.registerClass("ageChildBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 535 MovieClip [ageAdultBtn] Frame 1
#initclip 97
Object.registerClass("ageAdultBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 538 MovieClip [ageOAPBtn] Frame 1
#initclip 98
Object.registerClass("ageOAPBtn", cust.GUI.RadioBtn);
#endinitclip
Symbol 556 MovieClip [checkbox] Frame 1
#initclip 99
Object.registerClass("checkbox", cust.GUI.CheckBox);
#endinitclip
Symbol 557 MovieClip [click blocker] Frame 1
#initclip 100
Object.registerClass("click blocker", ClickBlocker);
#endinitclip
Symbol 562 MovieClip Frame 1
stop();
Symbol 562 MovieClip Frame 30
stop();
_parent.gotoAndStop("saved");
Symbol 567 MovieClip Frame 1
function createUser() {
var _local3 = new LoadVars();
_local3.lId = _global.root.levels.lvl;
_local3.name = (_global.root.name = name_txt.text);
_local3.age = (_global.root.age = age.selectedIndex);
_local3.sex = (_global.root.sex = sex.selectedIndex);
_local3.fanOf = (_root.fanOf ? (_root.fanOf) : 0);
SO.setVar("age", age.selectedIndex);
SO.setVar("sex", sex.selectedIndex);
SO.setVar("fanOf", _local3.fanOf);
_local3.score = _global.root.submitScore;
_local3.r = Math.random();
_global.root.autosave = autosave.checked;
submitAndShowThrobber(_local3);
}
function updateScore() {
var _local2 = new LoadVars();
_local2.lId = _global.root.levels.lvl;
_local2.pId = _global.root.pId;
_local2.score = _global.root.submitScore;
_local2.r = Math.random();
submitAndShowThrobber(_local2);
}
function submitAndShowThrobber(lv) {
lv.onLoad = scoreSubmitted;
gotoAndStop ("saving");
lv.sendAndLoad(_global.backendURL + "comms/submitscore.comms.php", lv, "GET");
}
function scoreSubmitted(success) {
if (success) {
if (this.result == "success") {
if (!_global.root.pId) {
_global.root.pId = Number(this.pId);
if (_global.root.autosave) {
SO.setVar("pId", _global.root.pId);
}
}
throbber.play();
} else {
gotoAndStop ("error");
}
} else {
gotoAndStop ("error");
}
}
Symbol 567 MovieClip Frame 2
stop();
if (_global.root.pId) {
updateScore();
} else {
name_txt.restrict = "a-zA-Z";
var age = cust.GUI.RadioGroup.GET_RADIO_GROUP("age");
var sex = cust.GUI.RadioGroup.GET_RADIO_GROUP("sex");
age.__set__selectedIndex(0);
sex.__set__selectedIndex(0);
save_btn.onRelease = createUser;
}
Symbol 576 Button
on (release) {
gotoAndPlay ("highScores");
}
Symbol 596 Button
on (release) {
populateScores(me);
}
Symbol 600 Button
on (release) {
_parent.setNextPage("endLevel");
}
Symbol 604 Button
on (release) {
getScores("country");
}
Symbol 606 Button
on (release) {
getScores("sex");
}
Symbol 608 Button
on (release) {
getScores("age");
}
Symbol 610 Button
on (release) {
getScores("fanOf");
}
Symbol 617 Button
on (release) {
_parent.selectLevel(1);
}
Symbol 620 Button
on (release) {
_parent.selectLevel(2);
}
Symbol 623 Button
on (release) {
_parent.selectLevel(4);
}
Symbol 626 Button
on (release) {
_parent.selectLevel(3);
}
Symbol 629 Button
on (release) {
_parent.selectLevel(0);
}
Symbol 631 Button
on (release) {
play();
}
Symbol 633 Button
on (release) {
play();
}
Symbol 636 MovieClip Frame 1
stop();
Symbol 636 MovieClip Frame 8
stop();
Symbol 638 Button
on (release) {
populateScores(top10);
}
Symbol 644 MovieClip [highscoresItem] Frame 1
stop();
Symbol 648 MovieClip Frame 1
stop();
Symbol 649 MovieClip Frame 1
function getScores(mode) {
throbber.gotoAndStop("throb");
xml = new XML();
xml.ignoreWhite = true;
var _local2;
switch (mode) {
case "level" :
case "cheats" :
_local2 = (((_global.backendURL + "comms/getscores.comms.php?lId=") + lId) + "&mode=") + mode;
break;
case "sex" :
case "age" :
case "fanOf" :
case "country" :
_local2 = ((_global.backendURL + "cache/leagues/") + mode.toLowerCase()) + ".xml?";
}
if (_global.root.pId) {
_local2 = _local2 + ("&pId=" + _global.root.pId);
}
_local2 = _local2 + ("&r=" + Math.random());
xml.onLoad = gotScores;
xml.load(_local2);
}
function gotScores(success) {
if (success) {
var _local5 = this.firstChild;
var _local3;
best_txt.text = "";
top10 = [];
me = [];
var _local4 = 0;
while (_local4 < _local5.childNodes.length) {
_local3 = _local5.childNodes[_local4];
switch (_local3.nodeName) {
case "top10" :
top10 = nodeToArray(_local3);
break;
case "me" :
me = nodeToArray(_local3);
break;
case "best" :
best_txt.text = (((("You are the " + _local3.attributes.rank) + " highest scoring ") + _global.root.sexArr[_global.root.sex]) + " player who is ") + _global.root.ageArr[_global.root.age];
}
_local4++;
}
if (_global.root.pId && (me.length)) {
populateScores(me);
findYou_btn._visible = true;
} else {
populateScores(top10);
findYou_btn._visible = false;
}
switch (_local5.attributes.mode) {
case "level" :
var _local6 = (lId ? (_global.root.levelData[lId].title) : "All Levels");
scoresFor_txt.htmlText = "Scores: " + _local6;
break;
case "country" :
scoresFor_txt.htmlText = "Scores: Country";
break;
case "sex" :
scoresFor_txt.htmlText = "Scores: Gender";
break;
case "age" :
scoresFor_txt.htmlText = "Scores: Age Group";
break;
case "band" :
scoresFor_txt.htmlText = "Scores: Fave Band";
break;
case "cheats" :
scoresFor_txt.htmlText = "Scores: Cheats";
}
}
throbber.gotoAndPlay("throbOut");
}
function nodeToArray(node) {
arr = [];
i = 0;
while (i < node.childNodes.length) {
arr.push(node.childNodes[i].attributes);
i++;
}
if (node.attributes.mypos) {
arr.mypos = Number(node.attributes.mypos);
}
return(arr);
}
function populateScores(arr) {
var _local5 = 17;
var _local4 = 0;
for (var _local6 in highscores_mc) {
if (highscores_mc[_local6] instanceof MovieClip) {
highscores_mc[_local6].removeMovieClip();
}
}
var _local3;
var _local1 = 0;
while ((_local1 < arr.length) && (_local1 < 10)) {
_local3 = highscores_mc.attachMovie("highscoresItem", "hsi" + _local1, _local1);
_local3._y = _local4;
_local3.pos_txt.text = arr[_local1].pos;
_local3.name_txt.text = (checkSwear(arr[_local1].name) ? (checkSwear(arr[_local1].name)) : "anonymous");
_local3.score_txt.text = Format.number(arr[_local1].score);
_local4 = _local4 + _local5;
if ((!(arr.mypos === undefined)) && ((arr.mypos + 1) == arr[_local1].pos)) {
_local3.gotoAndStop("you");
}
_local1++;
}
}
function selectLevel(n) {
lId = n;
getScores("level");
selectLevel_mc.gotoAndPlay("hideLevels");
}
swearArray = new Array("fuck", "shit", "cunt", "fuk", "kunt", "phuk", "phuck");
checkSwear = function (mytext, peek) {
findMe = swearArray;
peek = 1;
myTotal = 0;
myWords = 0;
while (myWords <= (findMe.length - 1)) {
look = 0;
while (look < mytext.length) {
j = 0;
fill = "";
mySmall = mytext.substr(look, findMe[myWords].length).toLowerCase();
wordSmall = findMe[myWords].toLowerCase();
if (mySmall == wordSmall) {
while (j < (findMe[myWords].length - (2 * peek))) {
fill = fill + "*";
j++;
}
mytext = (mytext.substr(0, look + peek) + fill) + mytext.substr((look - peek) + findMe[myWords].length);
myTotal++;
}
look++;
}
myWords++;
}
return(mytext);
};
lId = 0;
if (!(_global.root.levels.lvl === undefined)) {
lId = _global.root.levels.lvl;
} else {
lId = 0;
}
getScores("level");
if (!_global.root.pId) {
findYou_btn._visible = false;
}
Symbol 659 Button
on (release) {
getURL ("http://www.pentax.co.uk/_uk/photo/", "_blank");
}
Symbol 704 Button
on (release) {
getURL (_global.lens0URL, "_blank");
_root.kvClick(798);
}
on (rollOver) {
lensRollOver(1);
}
on (rollOut) {
lensRollOut();
}
Symbol 705 Button
on (release) {
getURL (_global.lens1URL, "_blank");
_root.kvClick(799);
}
on (rollOver) {
lensRollOver(2);
}
on (rollOut) {
lensRollOut();
}
Symbol 706 Button
on (release) {
getURL (_global.lens2URL, "_blank");
_root.kvClick(800);
}
on (rollOver) {
lensRollOver(3);
}
on (rollOut) {
lensRollOut();
}
Symbol 707 Button
on (release) {
getURL (_global.lens3URL, "_blank");
_root.kvClick(801);
}
on (rollOver) {
lensRollOver(4);
}
on (rollOut) {
lensRollOut();
}
Symbol 708 Button
on (release) {
getURL (_global.lens4URL, "_blank");
_root.kvClick(802);
}
on (rollOver) {
lensRollOver(5);
}
on (rollOut) {
lensRollOut();
}
Symbol 709 Button
on (release) {
getURL (_global.lens5URL, "_blank");
_root.kvClick(803);
}
on (rollOver) {
lensRollOver(8);
}
on (rollOut) {
lensRollOut();
}
Symbol 710 Button
on (release) {
getURL (_global.lens6URL, "_blank");
_root.kvClick(804);
}
on (rollOver) {
lensRollOver(7);
}
on (rollOut) {
lensRollOut();
}
Symbol 711 Button
on (release) {
getURL (_global.lens7URL, "_blank");
_root.kvClick(805);
}
on (rollOver) {
lensRollOver(9);
}
on (rollOut) {
lensRollOut();
}
Symbol 713 Button
on (release) {
getURL (_global.lens8URL, "_blank");
_root.kvClick(806);
}
on (rollOver) {
lensRollOver(6);
}
on (rollOut) {
lensRollOut();
}
Symbol 714 Button
on (release) {
_parent.goBack();
}
Symbol 715 MovieClip Frame 37
function lensRollOver(n) {
lensInfo.text = (_global.root.lensesText[n].code + " - ") + _global.root.lensesText[n].description;
}
function lensRollOut() {
lensInfo.text = "";
}
stop();
Symbol 716 MovieClip Frame 1
function inMenu() {
_global.menuMusic.fadeTo(20, 10);
_global.windSound.fadeOut(10);
}
function doNextPage() {
gotoAndPlay(nextPage);
curPage = nextPage;
delete nextPage;
if (nextPageHandler) {
if (nextPageHandlerArgs) {
nextPageHandler.apply(this, nextPageHandlerArgs);
} else {
nextPageHandler();
}
delete nextPageHandler;
}
}
function goBack() {
setNextPage(lastPage);
}
function setNextPage(p, onNewPageHandler, onNewPageHandlerArgs) {
lastPage = curPage;
nextPage = p;
play();
nextPageHandler = onNewPageHandler;
nextPageHandlerArgs = onNewPageHandlerArgs;
}
function goToSubPage(mc, frame) {
this[mc].gotoAndStop(frame);
}
function doMenuMusic() {
if (!_global.menuMusic) {
_global.menuMusic = _global.sndMan.playAndRemove("mainMusic", 0, 999999999);
_global.menuMusic.setVolume(30);
}
_global.menuMusic.fadeTo(30, 10);
}
curPage = "start";
_root._quality = "BEST";
doMenuMusic();
Instance of Symbol 489 MovieClip "mute" in Symbol 716 MovieClip Frame 38
onClipEvent (load) {
if (_global.sndMan.mute) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (_global.sndMan.mute) {
gotoAndStop ("on");
_global.isMuted = false;
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndMan.mute = false;
} else {
gotoAndStop ("off");
_global.isMuted = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
_global.sndMan.mute = true;
}
};
}
Symbol 716 MovieClip Frame 41
stop();
Symbol 716 MovieClip Frame 42
inMenu();
Symbol 716 MovieClip Frame 60
doNextPage();
Symbol 716 MovieClip Frame 61
var mat = (new flash.geom.Matrix());
mat.scale(_global.root.endLevelPhotoX / _global.root.photoClipRect.width, _global.root.endLevelPhotoY / _global.root.photoClipRect.height);
photoScore_txt.text = Format.number(_global.root.submitScore);
bmp = new flash.display.BitmapData(_global.root.endLevelPhotoX, _global.root.endLevelPhotoY, false, 0);
bmp.draw(_global.root.photos[_global.root.bestPhoto], mat, new flash.geom.ColorTransform(), "normal", bmp.rectangle, true);
photoHolder_mc.attachBitmap(bmp, photoHolder_mc.getNextHighestDepth());
lvlNum = _global.root.levels.lvl;
if (_global.root.submitScore > _global.root.levelData[lvlNum].bestScore) {
_global.root.levelData[lvlNum].bestScore = _global.root.submitScore;
_global.root.bestPhotos[lvlNum].dispose();
_global.root.bestPhotos[lvlNum] = _global.root.photos[_global.root.bestPhoto];
var levels = SO.getVar("levels");
levels[lvlNum] = ((levels[lvlNum] > _global.root.submitScore) ? (levels[lvlNum]) : (_global.root.submitScore));
SO.setVar("levels", levels);
}
isEndGame = true;
var i = 1;
while (i <= _global.root.numLevels) {
if (!_global.root.bestPhotos[i]) {
isEndGame = false;
break;
}
i++;
}
if (isEndGame) {
gotoAndPlay ("endGame");
}
score_txt.text = Format.number(_global.root.getScore());
Symbol 716 MovieClip Frame 62
inMenu();
Symbol 716 MovieClip Frame 66
stop();
Symbol 716 MovieClip Frame 72
var i = 0;
while (i < _global.root.photos.length) {
if (_global.root.photos[i] != _global.root.bestPhoto[lvlNum]) {
_global.root.photos[i].dispose();
}
i++;
}
bmp.dispose();
doNextPage();
Symbol 716 MovieClip Frame 73
var mat = (new flash.geom.Matrix());
mat.scale(_global.root.endGamePhotoX / _global.root.photoClipRect.width, _global.root.endGamePhotoY / _global.root.photoClipRect.height);
var totalScore = 0;
tempEndPhotos = [];
var bmp;
var i = 1;
while (i <= _global.root.numLevels) {
bmp = (tempEndPhotos[i] = new flash.display.BitmapData(_global.root.endGamePhotoX, _global.root.endGamePhotoY, false, 0));
bmp.draw(_global.root.bestPhotos[i], mat, new flash.geom.ColorTransform(), "normal", bmp.rectangle, true);
this[("photoHolder" + i) + "_mc"].attachBitmap(bmp, 0);
totalScore = totalScore + _global.root.levelData[i].bestScore;
i++;
}
score_txt.text = Format.number(totalScore);
Symbol 716 MovieClip Frame 74
inMenu();
Symbol 716 MovieClip Frame 78
stop();
Symbol 716 MovieClip Frame 84
var i = 1;
while (i <= _global.root.numLevels) {
tempEndPhotos[i].dispose();
i++;
}
delete tempEndPhotos;
doNextPage();
Symbol 716 MovieClip Frame 90
stop();
Symbol 716 MovieClip Frame 96
doNextPage();
Symbol 716 MovieClip Frame 97
menuMusic.fadeTo(30, 10);
Symbol 716 MovieClip Frame 102
stop();
Symbol 716 MovieClip Frame 108
doNextPage();
Symbol 716 MovieClip Frame 109
_parent.play();
Symbol 729 Button
on (rollOver) {
gotoAndPlay ("scotland");
}
Symbol 730 Button
on (rollOver) {
gotoAndPlay ("andes");
}
Symbol 731 Button
on (rollOver) {
gotoAndPlay ("himalayas");
}
Symbol 732 Button
on (rollOver) {
gotoAndPlay ("lostIsland");
}
Symbol 740 MovieClip Frame 10
gotoAndPlay (1);
Symbol 753 Button
on (rollOut) {
_parent.gotoAndPlay("scotOut");
}
on (release) {
_parent._parent.setMission("scotland");
_parent.gotoAndPlay("scotOut");
}
Symbol 756 MovieClip Frame 1
stop();
Symbol 756 MovieClip Frame 2
stop();
Symbol 767 Button
on (rollOut) {
_parent.gotoAndPlay("andesOut");
}
on (release) {
_parent._parent.setMission("andes");
_parent.gotoAndPlay("andesOut");
}
Symbol 768 Button
on (rollOut) {
_parent.gotoAndPlay("andesOut");
}
Symbol 769 MovieClip Frame 1
stop();
play_btn._alpha = 100;
Symbol 769 MovieClip Frame 2
stop();
play_btn._alpha = 0;
Symbol 769 MovieClip Frame 3
stop();
play_btn._alpha = 100;
Symbol 775 Button
on (rollOut) {
_parent.gotoAndPlay("himOut");
}
on (release) {
_parent._parent.setMission("himalayas");
_parent.gotoAndPlay("himOut");
}
Symbol 776 Button
on (rollOut) {
_parent.gotoAndPlay("himOut");
}
Symbol 777 MovieClip Frame 1
stop();
play_btn._alpha = 100;
Symbol 777 MovieClip Frame 2
stop();
play_btn._alpha = 0;
Symbol 777 MovieClip Frame 3
stop();
play_btn._alpha = 100;
Symbol 783 Button
on (rollOut) {
_parent.gotoAndPlay("lostOut");
}
on (release) {
_parent._parent.setMission("donkeyIsland");
_parent.gotoAndPlay("lostOut");
}
Symbol 784 Button
on (rollOut) {
_parent.gotoAndPlay("lostOut");
}
Symbol 785 MovieClip Frame 1
stop();
play_btn._alpha = 100;
Symbol 785 MovieClip Frame 2
stop();
play_btn._alpha = 0;
Symbol 785 MovieClip Frame 3
stop();
play_btn._alpha = 100;
Symbol 786 MovieClip Frame 1
stop();
_parent.isMissionChosen();
Symbol 786 MovieClip Frame 6
stop();
Instance of Symbol 756 MovieClip in Symbol 786 MovieClip Frame 6
onClipEvent (load) {
if (_global.root.levelData[1].bestScore != 0) {
gotoAndStop ("played");
}
}
Symbol 786 MovieClip Frame 14
gotoAndStop ("wait");
Symbol 786 MovieClip Frame 19
stop();
Instance of Symbol 769 MovieClip in Symbol 786 MovieClip Frame 19
onClipEvent (load) {
if (_global.root.levelData[1].bestScore == 0) {
gotoAndStop ("locked");
} else if (_global.root.levelData[3].bestScore != 0) {
gotoAndStop ("played");
}
}
Symbol 786 MovieClip Frame 27
gotoAndStop ("wait");
Symbol 786 MovieClip Frame 32
stop();
Instance of Symbol 777 MovieClip in Symbol 786 MovieClip Frame 32
onClipEvent (load) {
if (_global.root.levelData[1].bestScore == 0) {
gotoAndStop ("locked");
} else if (_global.root.levelData[2].bestScore != 0) {
gotoAndStop ("played");
}
}
Symbol 786 MovieClip Frame 40
gotoAndStop ("wait");
Symbol 786 MovieClip Frame 45
stop();
Instance of Symbol 785 MovieClip in Symbol 786 MovieClip Frame 45
onClipEvent (load) {
if (_global.root.levelData[1].bestScore == 0) {
gotoAndStop ("locked");
} else if (_global.root.levelData[4].bestScore != 0) {
gotoAndStop ("played");
}
}
Symbol 786 MovieClip Frame 53
gotoAndStop ("wait");
Symbol 786 MovieClip Frame 61
stop();
Symbol 787 MovieClip Frame 1
function setMission(miss) {
mission = miss;
}
function isMissionChosen() {
if (mission) {
bossMenu.gotoAndPlay("selected");
_parent.selectedLevel = mission;
_parent.pause_mc.show("loadLevel", beginLoadingLevel);
}
}
function beginLoadingLevel() {
_parent.gotoAndStop(mission);
delete mission;
}
stop();
Symbol 790 Button
on (release) {
_parent.openURL("http://www.killerviral.com/redir.php?urlId=76");
}
Symbol 792 Button
on (release) {
gotoAndPlay ("load");
}
Symbol 796 Button
on (release) {
_global.root.unpauseGame();
}
Symbol 802 Button
on (release) {
gotoAndPlay ("howTo");
}
Symbol 805 Button
on (release) {
_global.root.fromGameToMap();
}
Symbol 809 Button
on (release) {
gotoAndPlay ("paused");
}
Symbol 823 Button
on (release) {
gotoAndPlay ("pause2");
}
Symbol 830 Button
on (release) {
gotoAndPlay ("pause3");
}
Symbol 831 Button
on (release) {
gotoAndPlay ("pause1");
}
Symbol 842 MovieClip Frame 1
stop();
Symbol 842 MovieClip Frame 2
stop();
Symbol 842 MovieClip Frame 3
stop();
Symbol 847 Button
on (release) {
_global.root.retryMission();
}
Symbol 849 Button
on (release) {
contBtn();
}
Symbol 850 MovieClip Frame 1
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 2
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 3
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 4
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 5
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 6
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 7
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 8
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 850 MovieClip Frame 9
lensDescriptions.gotoAndStop(_currentframe);
stop();
Symbol 856 MovieClip [progress] Frame 1
#initclip 103
Object.registerClass("progress", Progress);
#endinitclip
Symbol 859 MovieClip Frame 1
stop();
Instance of Symbol 791 MovieClip in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
var so = SharedObject.getLocal("savegame");
if (!so.data.levels) {
this._visible = false;
}
}
Instance of Symbol 489 MovieClip "mute" in Symbol 859 MovieClip Frame 1
onClipEvent (load) {
if (_global.sndMan.mute) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (_global.sndMan.mute) {
gotoAndStop ("on");
_global.isMuted = false;
if (_global.root.unmuteEvent) {
_root.kvEvent(_global.root.unmuteEvent);
}
_global.sndMan.mute = false;
} else {
gotoAndStop ("off");
_global.isMuted = true;
if (_global.root.muteEvent) {
_root.kvEvent(_global.root.muteEvent);
}
_global.sndMan.mute = true;
}
};
}
Symbol 859 MovieClip Frame 7
stop();
Symbol 859 MovieClip Frame 21
function runWhenReady() {
_global.root.player.active = false;
contBtn = function () {
_global.root.player.active = true;
_global.root.unpauseGame();
delete onEnterFrame;
gotoAndStop ("lenseCollected2");
};
onEnterFrame = function () {
if (Key.isDown(32)) {
contBtn();
}
};
}
Symbol 859 MovieClip Frame 31
delete runWhenReady;
Symbol 860 MovieClip [pauseMenuAnim] Frame 1
#initclip 102
Object.registerClass("pauseMenuAnim", PauseMenu);
#endinitclip
hidden();
Instance of Symbol 859 MovieClip "cont" in Symbol 860 MovieClip [pauseMenuAnim] Frame 1
onClipEvent (load) {
if (_parent.menuState) {
gotoAndPlay(_parent.menuState);
}
}
Symbol 860 MovieClip [pauseMenuAnim] Frame 11
shown();
if (cont.runWhenReady) {
cont.runWhenReady();
}
Symbol 862 MovieClip [scotland background] Frame 1
#initclip 121
Object.registerClass("scotland background", Background);
#endinitclip
Symbol 863 MovieClip [scotland midground] Frame 1
#initclip 104
Object.registerClass("scotland midground", Background);
#endinitclip
Symbol 910 MovieClip Frame 1
stop();
Symbol 916 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 1
this._visible = false;
Symbol 919 MovieClip Frame 2
this.swapDepths(_parent.getNextHighestDepth());
this.removeMovieClip();
Symbol 921 MovieClip [floor] Frame 1
#initclip 105
Object.registerClass("floor", Floor);
#endinitclip
Symbol 923 MovieClip [wall] Frame 1
#initclip 106
Object.registerClass("wall", Wall);
#endinitclip
Symbol 925 MovieClip [ladder] Frame 1
#initclip 107
Object.registerClass("ladder", Ladder);
#endinitclip
Symbol 927 MovieClip [wall moat] Frame 1
#initclip 108
Object.registerClass("wall moat", WallMoat);
#endinitclip
Symbol 929 MovieClip [ropeBridge] Frame 1
#initclip 109
Object.registerClass("ropeBridge", FloorRopeBridge);
#endinitclip
Symbol 937 MovieClip [haggisFloor] Frame 1
#initclip 110
Object.registerClass("haggisFloor", HaggisFloor);
#endinitclip
stop();
Symbol 937 MovieClip [haggisFloor] Frame 7
stop();
Symbol 940 MovieClip Frame 1
_parent._visible = true;
stop();
Symbol 949 MovieClip Frame 1
if (_parent.si.props.bamfDone) {
_visible = false;
stop();
}
Symbol 949 MovieClip Frame 9
stop();
_parent.si.props.bamfDone = true;
Symbol 951 MovieClip Frame 2
_parent.si.props.animDone = true;
Symbol 951 MovieClip Frame 13
_global.root.player.active = true;
stop();
Symbol 954 MovieClip Frame 1
if (_parent.si.props.actionDone) {
_visible = false;
stop();
}
Symbol 954 MovieClip Frame 12
_parent.si.props.actionDone = true;
stop();
Symbol 956 MovieClip [haggisPen] Frame 1
#initclip 111
Object.registerClass("haggisPen", SwitchHaggisPen);
#endinitclip
stop();
Symbol 956 MovieClip [haggisPen] Frame 6
if (si.props.animDone) {
gotoAndStop ("animDone");
}
stop();
Symbol 956 MovieClip [haggisPen] Frame 13
stop();
Instance of Symbol 238 MovieClip in Symbol 958 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 226 MovieClip in Symbol 958 MovieClip Frame 10
onClipEvent (load) {
gotoAndPlay(Math.ceil(Math.random() * this._totalframes));
}
Symbol 958 MovieClip Frame 63
_global.root.cameraFlash();
Symbol 958 MovieClip Frame 141
stop();
_parent.animDone();
Symbol 959 MovieClip [nessiePhoto1] Frame 1
#initclip 112
Object.registerClass("nessiePhoto1", SwitchNessiePhoto1);
#endinitclip
Symbol 959 MovieClip [nessiePhoto1] Frame 3
stop();
Symbol 959 MovieClip [nessiePhoto1] Frame 7
stop();
Symbol 959 MovieClip [nessiePhoto1] Frame 10
stop();
Symbol 961 MovieClip [checkPoint] Frame 1
#initclip 113
Object.registerClass("checkPoint", CheckPoint);
#endinitclip
Symbol 965 MovieClip Frame 36
stop();
Symbol 966 MovieClip Frame 1
if (_parent.si.props.actionDone) {
_visible = false;
stop();
}
Symbol 966 MovieClip Frame 12
_parent.si.props.actionDone = true;
stop();
Symbol 968 MovieClip [coin] Frame 1
#initclip 114
Object.registerClass("coin", PickupCoin);
#endinitclip
stop();
Symbol 968 MovieClip [coin] Frame 18
stop();
Symbol 969 MovieClip [nessiePhoto3] Frame 1
#initclip 115
Object.registerClass("nessiePhoto3", SwitchNessiePhoto3);
#endinitclip
Symbol 969 MovieClip [nessiePhoto3] Frame 3
stop();
Symbol 969 MovieClip [nessiePhoto3] Frame 7
stop();
Symbol 969 MovieClip [nessiePhoto3] Frame 10
stop();
Symbol 970 MovieClip [nessiePhoto2] Frame 1
#initclip 116
Object.registerClass("nessiePhoto2", SwitchNessiePhoto2);
#endinitclip
Symbol 970 MovieClip [nessiePhoto2] Frame 3
stop();
Symbol 970 MovieClip [nessiePhoto2] Frame 7
stop();
Symbol 970 MovieClip [nessiePhoto2] Frame 10
stop();
Symbol 972 MovieClip [tipPoint] Frame 1
#initclip 117
Object.registerClass("tipPoint", TipPoint);
#endinitclip
Symbol 976 MovieClip [pickupLens] Frame 1
#initclip 118
Object.registerClass("pickupLens", PickupLens);
#endinitclip
stop();
Symbol 976 MovieClip [pickupLens] Frame 18
stop();
Symbol 979 MovieClip [level1] Frame 1
#initclip 119
Object.registerClass("level1", World);
#endinitclip
Symbol 980 MovieClip Frame 1
_visible = false;
Symbol 994 MovieClip Frame 1
stop();
this._visible = false;
Symbol 994 MovieClip Frame 5
_parent.sprite.stop();
this._visible = true;
Symbol 994 MovieClip Frame 17
_parent._parent.drawScreen(0, 0);
Symbol 994 MovieClip Frame 30
_parent.sprite.play();
_parent.active = true;
Symbol 994 MovieClip Frame 31
gotoAndStop ("off");
Symbol 1005 MovieClip Frame 9
_global.levelVars.litFire = true;
Symbol 1005 MovieClip Frame 13
gotoAndPlay ("loop");
Symbol 1017 MovieClip Frame 13
_global.root.player.active = true;
_parent.gotoAndStop("stand");
Symbol 1019 MovieClip Frame 8
_global.levelVars.hammeredHead++;
Symbol 1019 MovieClip Frame 15
_parent.active = true;
_parent.gotoAndStop("stand");
Symbol 1027 MovieClip Frame 6
gotoAndPlay ("skip");
Symbol 1027 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 1028 MovieClip Frame 13
_parent._parent.drawScreen(0, 0);
_parent.gotoAndStop("teleportIn");
stop();
Symbol 1033 MovieClip Frame 6
gotoAndPlay ("skip");
Symbol 1033 MovieClip Frame 12
gotoAndPlay ("loop");
Symbol 1034 MovieClip Frame 14
_parent.active = true;
stop();
Symbol 1037 MovieClip Frame 7
stop();
Symbol 1038 MovieClip Frame 7
stop();
Symbol 1040 MovieClip Frame 7
stop();
Symbol 1042 MovieClip Frame 5
stop();
Symbol 1046 MovieClip Frame 11
_parent.gotoAndStop("putAwayCamera");
stop();
Symbol 1047 MovieClip Frame 5
stop();
Symbol 1050 MovieClip Frame 4
stop();
Instance of Symbol 1052 MovieClip in Symbol 1057 MovieClip Frame 2
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Instance of Symbol 1052 MovieClip in Symbol 1057 MovieClip Frame 4
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Instance of Symbol 1052 MovieClip in Symbol 1057 MovieClip Frame 9
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1057 MovieClip Frame 17
_parent._parent.playerDie();
Symbol 1057 MovieClip Frame 43
gotoAndPlay (1);
Symbol 1058 MovieClip Frame 13
gotoAndPlay (1);
Symbol 1069 MovieClip Frame 1
count = 0;
Instance of Symbol 993 MovieClip in Symbol 1069 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay ("start");
}
Symbol 1069 MovieClip Frame 39
count++;
if (count < 5) {
gotoAndPlay ("loop");
}
Symbol 1069 MovieClip Frame 40
count = 0;
Symbol 1069 MovieClip Frame 64
gotoAndPlay ("loop");
Symbol 1074 MovieClip Frame 1
stop();
Symbol 1074 MovieClip Frame 5
stop();
Instance of Symbol 1074 MovieClip "skid" in Symbol 1111 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
Instance of Symbol 1082 MovieClip "attack" in Symbol 1111 MovieClip Frame 2
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1111 MovieClip Frame 7
_parent.attack = 0;
gotoAndPlay (1);
Instance of Symbol 1095 MovieClip in Symbol 1111 MovieClip Frame 17
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Instance of Symbol 993 MovieClip in Symbol 1111 MovieClip Frame 30
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1108 MovieClip in Symbol 1111 MovieClip Frame 31
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1111 MovieClip Frame 53
_parent.attacking = 0;
Instance of Symbol 1095 MovieClip in Symbol 1112 MovieClip Frame 6
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1112 MovieClip Frame 19
_parent.megaStarted = 1;
Instance of Symbol 993 MovieClip in Symbol 1112 MovieClip Frame 19
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1108 MovieClip "attack" in Symbol 1112 MovieClip Frame 20
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1112 MovieClip Frame 34
_parent._parent.flashScreen();
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 35
_parent._parent.flashScreen();
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 36
_parent._parent.flashScreen();
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 37
_parent._parent.flashScreen();
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 38
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 39
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 40
_parent._parent.killEmAll();
Symbol 1112 MovieClip Frame 41
_parent.attack = 0;
_parent.megaAttack = 0;
_parent.megaStarted = 0;
_parent.currentMega--;
Symbol 1114 MovieClip Frame 1
stop();
Symbol 1114 MovieClip Frame 4
stop();
Instance of Symbol 1114 MovieClip "skid" in Symbol 1122 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
Instance of Symbol 1119 MovieClip "attack" in Symbol 1122 MovieClip Frame 2
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1122 MovieClip Frame 7
if (_parent.attackStillDown && (_parent.currentMega > 0)) {
_parent.megaAttack = 1;
} else {
_parent.attack = 0;
gotoAndPlay (1);
}
Instance of Symbol 1131 MovieClip "attack" in Symbol 1142 MovieClip Frame 3
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1142 MovieClip Frame 7
_parent.attack = 0;
gotoAndPlay (1);
Instance of Symbol 1149 MovieClip "attack" in Symbol 1151 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Symbol 1151 MovieClip Frame 6
_parent._parent.grenGen(1);
Symbol 1151 MovieClip Frame 8
_parent.attack = 0;
gotoAndPlay (1);
Symbol 1156 MovieClip Frame 1
stop();
Symbol 1156 MovieClip Frame 4
stop();
Instance of Symbol 1155 MovieClip "attack" in Symbol 1158 MovieClip Frame 1
onClipEvent (load) {
_parent._parent.setBlend(this);
}
Instance of Symbol 1156 MovieClip "skid" in Symbol 1158 MovieClip Frame 1
onClipEvent (load) {
this.gotoAndStop("off");
}
Symbol 1158 MovieClip Frame 6
if (low) {
_parent._parent.grenGen(-1);
} else {
_parent._parent.grenGen(0);
}
Symbol 1158 MovieClip Frame 8
if (_parent.attackStillDown && (_parent.currentMega > 0)) {
if (low) {
_parent.megaAttack = 1;
}
} else {
_parent.attack = 0;
gotoAndPlay (1);
}
Symbol 1177 MovieClip Frame 1
stop();
Instance of Symbol 1176 MovieClip in Symbol 1177 MovieClip Frame 1
onClipEvent (load) {
spin = _parent._parent.jumpRot;
}
onClipEvent (enterFrame) {
_rotation = (_rotation + spin);
spin = spin * _parent._parent.spinDecay;
}
Symbol 1178 MovieClip Frame 14
Symbol 1180 MovieClip Frame 2
stop();
Symbol 1183 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1184 MovieClip Frame 5
gotoAndPlay (1);
Symbol 1189 MovieClip Frame 9
stop();
Symbol 1191 MovieClip Frame 9
stop();
Instance of Symbol 993 MovieClip "sprite" in Symbol 1192 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay ("start");
}
Symbol 1192 MovieClip Frame 2
_parent.enterLevel = 0;
_parent.active = true;
Instance of Symbol 993 MovieClip "sprite" in Symbol 1193 MovieClip Frame 1
onClipEvent (load) {
gotoAndPlay ("start");
}
Symbol 1193 MovieClip Frame 3
_parent._parent.nextLevel();
stop();
Symbol 1197 MovieClip [hero] Frame 1
function setBlend(t) {
if (!_parent.flashOn) {
t.blendMode = "add";
} else {
t.blendMode = "multiply";
}
}
Instance of Symbol 993 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 1
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 994 MovieClip "teleporter" in Symbol 1197 MovieClip [hero] Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 1005 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 5
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1017 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 13
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1019 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 20
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 993 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 47
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1042 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 64
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1047 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 78
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1057 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 82
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1058 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 91
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1069 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 96
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1111 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 100
/* no clip actions */
Instance of Symbol 1112 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 105
onClipEvent (enterFrame) {
if ((!_parent.megaStarted) && (!_parent.attackStillDown)) {
_parent.attack = 0;
_parent.megaAttack = 0;
}
}
Instance of Symbol 1122 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 114
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1142 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 122
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1151 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 130
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1158 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 152
onClipEvent (load) {
low = true;
}
Instance of Symbol 1173 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 162
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1183 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 206
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1184 MovieClip "sprite" in Symbol 1197 MovieClip [hero] Frame 211
onClipEvent (load) {
gotoAndPlay ("start");
}
Instance of Symbol 1187 MovieClip "levitate" in Symbol 1197 MovieClip [hero] Frame 218
onClipEvent (load) {
_visible = false;
}
Symbol 1202 MovieClip Frame 1
_parent.checkForNextTip();
Symbol 1202 MovieClip Frame 11
_parent.tipShowing();
Symbol 1202 MovieClip Frame 15
stop();
Symbol 1221 MovieClip [gui] Frame 1
#initclip 120
Object.registerClass("gui", GUI);
#endinitclip
Symbol 1233 Button
on (release) {
gotoAndPlay ("keys");
}
Symbol 1237 Button
on (release) {
getURL ("http://highscores.killerviral.com/superwalkland/highscores.php", "_blank");
_root.kvClick(411);
}
Symbol 1240 Button
on (release) {
gotoAndStop ("howToPlay");
}
Symbol 1243 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/superwalkland", "_blank");
_root.kvClick(410);
}
Symbol 1245 MovieClip Frame 1
stop();
Symbol 1248 MovieClip Frame 3
stop();
Symbol 1248 MovieClip Frame 6
stop();
Symbol 1249 Button
on (release) {
gotoAndPlay ("load");
}
Symbol 1250 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/superwalkland", "_blank");
_root.kvClick(410);
}
Symbol 1256 Button
on (release) {
gotoAndStop(rootMenu);
}
Symbol 1260 Button
on (release) {
if (_root.loadgame()) {
_root.theMenu.menuState = "pause";
_root.theMenu.gotoAndPlay("close");
} else {
for (var i in this.load_btn) {
if (this.load_btn[i].text) {
this.load_btn[i].text = "Load failed - no savegame found";
}
}
}
}
Symbol 1263 Button
on (release) {
_root.savegame();
for (var i in this.save_btn) {
if (this.save_btn[i].text) {
this.save_btn[i].text = "Saved";
}
}
}
Symbol 1282 Button
on (release) {
_root.p1Input = _root.controlSet2;
gotoAndStop ("wasd");
}
Symbol 1285 Button
on (release) {
_root.p1Input = _root.controlSet1;
gotoAndStop ("cursor");
}
Symbol 1287 MovieClip Frame 1
stop();
Symbol 1287 MovieClip Frame 7
stop();
Symbol 1288 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/superwalkland", "_blank");
_root.kvClick(410);
}
Symbol 1291 Button
on (release) {
_parent.gotoAndStop("submitScore");
}
Symbol 1292 MovieClip Frame 1
stop();
Symbol 1292 MovieClip Frame 2
stop();
Symbol 1297 Button
on (release) {
_parent.gotoAndPlay("closeAndPlay");
}
Symbol 1304 Button
on (release) {
_root.savegame(true);
for (var i in this.save_btn) {
if (this.save_btn[i].text) {
this.save_btn[i].text = "Saved";
}
}
}
Symbol 1305 Button
on (release) {
getURL ("http://highscores.killerviral.com/enter/superwalkland", "_blank");
_root.kvClick(410);
}
Symbol 1308 Button
on (release) {
_parent.gotoAndPlay("closeAndRestart");
}
Symbol 1315 Button
on (release) {
_root.theMenu.menuState = "pause";
_parent.gotoAndPlay("close");
}
Symbol 1318 Button
on (release) {
_parent.openURL("http://www.killerviral.com/redir.php?urlId=77");
}
Symbol 1319 Button
on (release) {
_root.theMenu.openURL("http://www.superwalkland.com/hscompetition.php" + _root.buildQS(_root.player.score));
}
Symbol 1324 Button
on (release) {
gotoAndStop ("attacking");
}
Symbol 1327 Button
on (release) {
gotoAndStop ("movement");
}
Symbol 1330 Button
on (release) {
gotoAndStop ("objects");
}
Symbol 1333 Button
on (release) {
gotoAndStop ("enemies");
}
Symbol 1334 Button
on (release) {
_parent.gotoAndStop(_parent.rootMenu);
}
Symbol 1337 Button
on (release) {
gotoAndStop ("start");
}
Symbol 1338 MovieClip Frame 1
stop();
Symbol 1338 MovieClip Frame 5
stop();
Symbol 1345 MovieClip Frame 1
stop();
Symbol 1345 MovieClip Frame 7
stop();
Instance of Symbol 1338 MovieClip in Symbol 1345 MovieClip Frame 7
onClipEvent (load) {
if (_root.p1Input.kUp[0] == 87) {
gotoAndStop ("wasd");
} else {
gotoAndStop ("cursor");
}
}
onClipEvent (enterFrame) {
if (_root.p1Input.kUp[0] == 87) {
gotoAndStop ("wasd");
} else {
gotoAndStop ("cursor");
}
}
Symbol 1345 MovieClip Frame 15
stop();
Symbol 1345 MovieClip Frame 21
stop();
Symbol 1345 MovieClip Frame 28
stop();
Symbol 1351 Button
on (release) {
_root.theMenu.menuState = "pause";
_parent.gotoAndPlay("close");
}
Symbol 1369 MovieClip Frame 1
function onRelease() {
play();
_value = !_value;
}
stop();
Symbol 1369 MovieClip Frame 2
stop();
Symbol 1373 Button
on (release) {
_parent.openURL("http://www.killerviral.com/redir.php?urlId=77");
}
Symbol 1374 MovieClip Frame 1
function onhttpstatus(httpStatus) {
var _local1;
if (httpStatus < 100) {
_local1 = "flashError";
} else if (httpStatus < 200) {
_local1 = "informational";
} else if (httpStatus < 300) {
_local1 = "successful";
} else if (httpStatus < 400) {
_local1 = "redirection";
} else if (httpStatus < 500) {
_local1 = "clientError";
} else if (httpStatus < 600) {
_local1 = "serverError";
}
}
function onload(success) {
if (success) {
if (this.status == "saved") {
_parent.gotoAndStop("submitted");
} else {
feedback_txt.text = this.feedback;
}
} else {
feedback_txt.text = "unable to save game - please check your internet connection";
}
}
save_btn.onRelease = function () {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.score = (isNaN(_global.submitScore) ? 0 : (_global.submitScore));
_local2.level = (isNaN(_global.submitLevel) ? 1 : (_global.submitLevel));
_local2.email = email_txt.text;
_local2.username = username_txt.text;
_local2.optIn1st = (optIn1st_mc._value ? true : false);
_local2.optInKV = (optInKV_mc._value ? true : false);
_local3.onLoad = onload;
_local3.onHTTPStatus = onhttpstatus;
_local2.sendAndLoad((_global.highscoresURL + "save.php?var=") + Math.random(), _local3);
};
Symbol 1377 Button
on (release) {
gotoAndStop(lastPage);
}
Symbol 1380 Button
on (release) {
gotoAndStop(lastPage);
}
Symbol 1382 MovieClip Frame 1
rootMenu = "start";
stop();
Instance of Symbol 1245 MovieClip "qual" in Symbol 1382 MovieClip Frame 1
onClipEvent (load) {
switch (_root._quality) {
case "BEST" :
this.qual_txt.text = "Best Detail";
break;
case "HIGH" :
this.qual_txt.text = "High Detail";
break;
case "MEDIUM" :
this.qual_txt.text = "Medium Detail";
break;
case "LOW" :
this.qual_txt.text = "Low Detail";
}
this.onRelease = function () {
switch (_root._quality) {
case "BEST" :
_root._quality = "LOW";
this.qual_txt.text = "Low Detail";
break;
case "HIGH" :
_root._quality = "BEST";
this.qual_txt.text = "Best Detail";
break;
case "MEDIUM" :
_root._quality = "HIGH";
this.qual_txt.text = "High Detail";
break;
case "LOW" :
_root._quality = "MEDIUM";
this.qual_txt.text = "Medium Detail";
}
};
}
Instance of Symbol 1248 MovieClip "soundStatus" in Symbol 1382 MovieClip Frame 1
onClipEvent (load) {
if (new Sound().getVolume() == 0) {
gotoAndStop ("off");
}
this.onRelease = function () {
if (new Sound().getVolume() == 0) {
gotoAndStop ("on");
new Sound().setVolume(100);
} else {
gotoAndStop ("off");
new Sound().setVolume(0);
}
};
}
Instance of Symbol 791 MovieClip in Symbol 1382 MovieClip Frame 1
onClipEvent (load) {
var so = SharedObject.getLocal("savegame");
if (!so.data.levels) {
this._visible = false;
}
}
Symbol 1382 MovieClip Frame 6
rootMenu = "pause";
stop();
Symbol 1382 MovieClip Frame 11
stop();
Symbol 1382 MovieClip Frame 16
stop();
Instance of Symbol 1287 MovieClip in Symbol 1382 MovieClip Frame 16
onClipEvent (load) {
if (_root.p1Input.kUp[0] == 87) {
gotoAndStop ("wasd");
} else {
gotoAndStop ("cursor");
}
}
onClipEvent (enterFrame) {
if (_root.p1Input.kUp[0] == 87) {
gotoAndStop ("wasd");
} else {
gotoAndStop ("cursor");
}
}
Symbol 1382 MovieClip Frame 21
rootMenu = "level";
lastPage = "levelEnd";
stop();
Instance of Symbol 1292 MovieClip in Symbol 1382 MovieClip Frame 21
onClipEvent (load) {
if (_parent.scoreSubmitted) {
gotoAndStop ("off");
} else {
gotoAndStop (1);
}
}
Symbol 1382 MovieClip Frame 28
rootMenu = "game";
lastPage = "gameEnd";
stop();
Instance of Symbol 1292 MovieClip in Symbol 1382 MovieClip Frame 28
onClipEvent (load) {
if (_parent.scoreSubmitted) {
gotoAndStop ("off");
} else {
gotoAndStop (1);
}
}
Symbol 1382 MovieClip Frame 35
if (_root.player.score == 0) {
submit_score_btn._visible = false;
}
stop();
Symbol 1382 MovieClip Frame 44
stop();
Symbol 1382 MovieClip Frame 53
stop();
Instance of Symbol 1338 MovieClip in Symbol 1382 MovieClip Frame 53
onClipEvent (load) {
if (_root.p1Input.kUp[0] == 87) {
gotoAndStop ("wasd");
} else {
gotoAndStop ("cursor");
}
}
onClipEvent (enterFrame) {
if (_root.p1Input.kUp[0] == 87) {
gotoAndStop ("wasd");
} else {
gotoAndStop ("cursor");
}
}
Symbol 1382 MovieClip Frame 62
stop();
Symbol 1382 MovieClip Frame 72
scoreSubmitted = true;
Symbol 1384 Button
on (release) {
if ((menuState != "levelEnd") && (menuState != "gameEnd")) {
play();
}
}
Symbol 1385 MovieClip Frame 1
function openURL(link, dontPopup) {
if (((_root._url.indexOf("superwalkland.com") >= 0) && (!dontPopup)) && (_root.site == "master")) {
getURL (("javascript:void window.open(\"" + link) + "\", \"window\", \"scrollbars=yes,width=490,height=500\" );");
} else {
getURL (link, "_blank");
}
}
_parent.startContent._visible = true;
stop();
Instance of Symbol 1225 MovieClip in Symbol 1385 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 1385 MovieClip Frame 2
_root.startClip.contentClip.dontShowMe = true;
_root.setVol(60);
_root.isPaused = true;
Symbol 1385 MovieClip Frame 6
_parent.gui.indicator.gotoAndStop("exitMenu");
stop();
Instance of Symbol 1382 MovieClip "menuContent" in Symbol 1385 MovieClip Frame 6
onClipEvent (load) {
if (_parent.menuState) {
gotoAndPlay(_parent.menuState);
}
}
Symbol 1385 MovieClip Frame 13
_root.startClip.contentClip.dontShowMe = false;
_root.setVol(35);
_root.isPaused = false;
gotoAndStop ("off");
Symbol 1385 MovieClip Frame 14
gotoAndStop ("off");
Symbol 1385 MovieClip Frame 15
function openURL(link) {
getURL (link, "_blank");
}
Symbol 1385 MovieClip Frame 20
_parent.startClip.contentClip.dontShowMe = false;
_root.isPaused = false;
_root.play();
gotoAndStop ("off");
Symbol 1385 MovieClip Frame 21
gotoAndStop ("off");
Symbol 1385 MovieClip Frame 22
function openURL(link) {
getURL (link, "_blank");
}
Symbol 1385 MovieClip Frame 27
_parent.startClip.contentClip.dontShowMe = false;
_root.isPaused = false;
_root.player.score = 0;
_root.curscore = 0;
delete _root.levels;
_root.gotoAndPlay("restart");
Symbol 1385 MovieClip Frame 28
menuState = null;
gotoAndStop ("off");
Symbol 1386 MovieClip Frame 1
stop();
Symbol 1386 MovieClip Frame 7
gotoAndStop ("off");
Symbol 1388 MovieClip [background4] Frame 1
#initclip 133
Object.registerClass("background4", Background);
#endinitclip
Symbol 1389 MovieClip [background3] Frame 1
#initclip 122
Object.registerClass("background3", Background);
#endinitclip
Symbol 1434 MovieClip [escalator] Frame 1
#initclip 123
Object.registerClass("escalator", Escalator);
#endinitclip
Symbol 1437 MovieClip [ladderForRope] Frame 1
#initclip 124
Object.registerClass("ladderForRope", LadderForRope);
#endinitclip
stop();
Symbol 1444 MovieClip [switchClaws] Frame 1
#initclip 125
Object.registerClass("switchClaws", SwitchClaws);
#endinitclip
stop();
Symbol 1444 MovieClip [switchClaws] Frame 18
si.props.melted = true;
_global.root.player.gotoAndStop("putOutMatch");
gotoAndStop ("unfrozen");
stop();
Symbol 1444 MovieClip [switchClaws] Frame 19
stop();
Symbol 1444 MovieClip [switchClaws] Frame 22
stop();
Symbol 1446 MovieClip [switchMeltClawsLeft] Frame 1
#initclip 126
Object.registerClass("switchMeltClawsLeft", SwitchMeltClawsLeft);
#endinitclip
stop();
Symbol 1447 MovieClip [switchMeltClawsRight] Frame 1
#initclip 127
Object.registerClass("switchMeltClawsRight", SwitchMeltClawsRight);
#endinitclip
stop();
Symbol 1450 MovieClip Frame 66
_global.root.cameraFlash();
Symbol 1450 MovieClip Frame 149
stop();
_parent.animDone();
Symbol 1451 MovieClip [yetiPhoto2] Frame 1
#initclip 128
Object.registerClass("yetiPhoto2", SwitchYetiPhoto2);
#endinitclip
Symbol 1451 MovieClip [yetiPhoto2] Frame 3
stop();
Symbol 1451 MovieClip [yetiPhoto2] Frame 7
stop();
Symbol 1451 MovieClip [yetiPhoto2] Frame 10
stop();
Symbol 1452 MovieClip [yetiPhoto3] Frame 1
#initclip 129
Object.registerClass("yetiPhoto3", SwitchYetiPhoto3);
#endinitclip
Symbol 1452 MovieClip [yetiPhoto3] Frame 3
stop();
Symbol 1452 MovieClip [yetiPhoto3] Frame 7
stop();
Symbol 1452 MovieClip [yetiPhoto3] Frame 10
stop();
Symbol 1453 MovieClip [yetiPhoto1] Frame 1
#initclip 130
Object.registerClass("yetiPhoto1", SwitchYetiPhoto1);
#endinitclip
Symbol 1453 MovieClip [yetiPhoto1] Frame 3
stop();
Symbol 1453 MovieClip [yetiPhoto1] Frame 7
stop();
Symbol 1453 MovieClip [yetiPhoto1] Frame 10
stop();
Symbol 1457 MovieClip [switchMatch] Frame 1
#initclip 131
Object.registerClass("switchMatch", SwitchMatch);
#endinitclip
stop();
Symbol 1457 MovieClip [switchMatch] Frame 3
stop();
Symbol 1462 MovieClip [level2] Frame 1
#initclip 132
Object.registerClass("level2", World);
#endinitclip
Symbol 1467 MovieClip [andes background] Frame 1
#initclip 159
Object.registerClass("andes background", Background);
#endinitclip
stop();
Symbol 1468 MovieClip [andes midground] Frame 1
#initclip 134
Object.registerClass("andes midground", Background);
#endinitclip
Symbol 1503 MovieClip [floorTileGame] Frame 1
#initclip 135
Object.registerClass("floorTileGame", FloorTileGame);
#endinitclip
stop();
Symbol 1503 MovieClip [floorTileGame] Frame 5
stop();
Symbol 1507 MovieClip [switchOrganO1] Frame 1
#initclip 136
Object.registerClass("switchOrganO1", SwitchOrgan);
#endinitclip
Symbol 1507 MovieClip [switchOrganO1] Frame 2
stop();
Symbol 1507 MovieClip [switchOrganO1] Frame 10
gotoAndStop ("off");
Symbol 1509 MovieClip [switchOrganO2] Frame 1
#initclip 137
Object.registerClass("switchOrganO2", SwitchOrgan);
#endinitclip
Symbol 1509 MovieClip [switchOrganO2] Frame 2
stop();
Symbol 1509 MovieClip [switchOrganO2] Frame 10
gotoAndStop ("off");
Symbol 1511 MovieClip [switchOrganO3] Frame 1
#initclip 138
Object.registerClass("switchOrganO3", SwitchOrgan);
#endinitclip
Symbol 1511 MovieClip [switchOrganO3] Frame 2
stop();
Symbol 1511 MovieClip [switchOrganO3] Frame 10
gotoAndStop ("off");
Symbol 1513 MovieClip [switchOrganO4] Frame 1
#initclip 139
Object.registerClass("switchOrganO4", SwitchOrgan);
#endinitclip
Symbol 1513 MovieClip [switchOrganO4] Frame 2
stop();
Symbol 1513 MovieClip [switchOrganO4] Frame 10
gotoAndStop ("off");
Symbol 1515 MovieClip [switchOrganO5] Frame 1
#initclip 140
Object.registerClass("switchOrganO5", SwitchOrgan);
#endinitclip
Symbol 1515 MovieClip [switchOrganO5] Frame 2
stop();
Symbol 1515 MovieClip [switchOrganO5] Frame 10
gotoAndStop ("off");
Symbol 1517 MovieClip [warpGateExit] Frame 1
#initclip 141
Object.registerClass("warpGateExit", WarpGateExit);
#endinitclip
Instance of Symbol 993 MovieClip in Symbol 1517 MovieClip [warpGateExit] Frame 1
onClipEvent (load) {
_visible = false;
stop();
}
Symbol 1529 MovieClip [tileGameTimer] Frame 1
#initclip 142
Object.registerClass("tileGameTimer", TileGameTimer);
#endinitclip
egg.sand1.gotoAndStop(1);
egg.sand2.gotoAndStop(egg.sand2._totalframes);
if (!endTime) {
endTime = 6000;
endTimeChange = 1000;
} else {
endTime = endTime + endTimeChange;
}
startTime = getTimer();
onEnterFrame = function () {
if ((!stopMe) && ((!_global.levelVars.tileGameComplete) == true)) {
if (getTimer() < (startTime + endTime)) {
egg.sand1.gotoAndStop(Math.ceil(((getTimer() - startTime) / endTime) * egg.sand1._totalframes));
egg.sand2.gotoAndStop(egg.sand2._totalframes - Math.ceil(((getTimer() - startTime) / endTime) * egg.sand2._totalframes));
} else {
this.gotoAndPlay("spin");
_parent.t1.shuffle();
delete this.onEnterFrame;
}
}
};
stop();
Symbol 1529 MovieClip [tileGameTimer] Frame 20
gotoAndStop (1);
Symbol 1529 MovieClip [tileGameTimer] Frame 37
gotoAndPlay ("success");
Symbol 1536 MovieClip Frame 1
stop();
Symbol 1536 MovieClip Frame 2
stop();
Symbol 1537 MovieClip Frame 1
stop();
Symbol 1538 MovieClip Frame 1
onEnterFrame = function () {
if (_global.levelVars.tileGameComplete) {
_visible = false;
delete onEnterFrame;
}
};
stop();
Symbol 1538 MovieClip Frame 10
gotoAndStop (1);
Symbol 1538 MovieClip Frame 11
stop();
Symbol 1539 MovieClip [t1] Frame 1
#initclip 143
Object.registerClass("t1", TileGame);
#endinitclip
function action() {
if (!_parent.eggTimer.stopMe) {
if (!onEnterFrame) {
onEnterFrame = spinShut;
}
}
}
function traceAllTiles() {
}
function changeImage() {
if (_global.levelVars.tileGame[this._name + "Image"] == 1) {
image.gotoAndStop(2);
_global.levelVars.tileGame[this._name + "Image"] = 2;
} else {
image.gotoAndStop(1);
_global.levelVars.tileGame[this._name + "Image"] = 1;
}
}
function checkSolution() {
solutionCount = 0;
i = 0;
while (i <= 15) {
if (_global.levelVars.tileGame[("t" + i) + "Image"] == 2) {
solutionCount++;
}
i++;
}
if (solutionCount == 16) {
} else if (solutionCount == 0) {
_global.levelVars.tileGameComplete = true;
_parent.floorTileGame.gotoAndStop("on");
stopEggTimer();
}
}
function stopEggTimer() {
delete _parent.eggTimer.onEnterFrame;
_parent.eggTimer.stopMe = true;
_parent.eggTimer.gotoAndPlay("success");
}
function shuffle() {
i = 0;
while (i <= 15) {
_parent["t" + i].image._x = (-(_parent["t" + i].masker._width * (i % columns))) - ((_global.levelVars.tileGame.gutter * i) % (_global.levelVars.tileGame.gutter * columns));
_parent["t" + i].image._y = -((_parent["t" + i].masker._height * Math.floor(i / columns)) + (_global.levelVars.tileGame.gutter * Math.floor(i / columns)));
if (Math.random() <= 0.5) {
if (_parent["t" + i]) {
_parent["t" + i].action();
} else if (_global.levelVars.tileGame[this._name + "Image"] == 1) {
_global.levelVars.tileGame[this._name + "Image"] = 2;
} else {
_global.levelVars.tileGame[this._name + "Image"] = 1;
}
}
i++;
}
}
function spinShut() {
if (!ease) {
ease = 5;
}
if ((_xscale - ease) > 0) {
_x = (startX + (startWidth - (startWidth * (_xscale / 100))));
_xscale = (_xscale - ease);
ease = ease * 2;
} else {
ease = ease * 2;
changeImage();
this.onEnterFrame = spinOpen;
}
}
function spinOpen() {
if ((_xscale + ease) < 100) {
_x = (startX + (startWidth - (startWidth * (_xscale / 100))));
_xscale = (_xscale + ease);
ease = ease * 0.5;
} else {
_x = startX;
_xscale = 100;
checkSolution();
delete ease;
delete this.onEnterFrame;
}
action.gotoAndPlay("doAction");
}
if (!_global.levelVars.tileGame) {
_global.levelVars.tileGame = {};
_global.levelVars.tileGame.gutter = 16;
}
startX = _x;
startWidth = masker._width;
if (!_global.levelVars.tileGame[this._name + "Image"]) {
_global.levelVars.tileGame[this._name + "Image"] = Math.ceil(Math.random() * 2);
}
columns = 4;
image.gotoAndStop(_global.levelVars.tileGame[this._name + "Image"]);
i = Number(this._name.substr(1, 2));
image._x = (-(masker._width * (i % columns))) - ((_global.levelVars.tileGame.gutter * i) % (_global.levelVars.tileGame.gutter * columns));
image._y = -((masker._height * Math.floor(i / columns)) + (_global.levelVars.tileGame.gutter * Math.floor(i / columns)));
stop();
if (_name == "t1") {
columns = 4;
}
Symbol 1565 MovieClip Frame 40
_global.root.cameraFlash();
Symbol 1565 MovieClip Frame 80
stop();
_parent.animDone();
Symbol 1566 MovieClip [phoenixPhoto1] Frame 1
#initclip 144
Object.registerClass("phoenixPhoto1", SwitchPhoenixPhoto1);
#endinitclip
Symbol 1566 MovieClip [phoenixPhoto1] Frame 3
stop();
Symbol 1566 MovieClip [phoenixPhoto1] Frame 7
stop();
Symbol 1566 MovieClip [phoenixPhoto1] Frame 10
stop();
Symbol 1567 MovieClip [phoenixPhoto3] Frame 1
#initclip 145
Object.registerClass("phoenixPhoto3", SwitchPhoenixPhoto3);
#endinitclip
Symbol 1567 MovieClip [phoenixPhoto3] Frame 3
stop();
Symbol 1567 MovieClip [phoenixPhoto3] Frame 7
stop();
Symbol 1567 MovieClip [phoenixPhoto3] Frame 10
stop();
Symbol 1568 MovieClip [phoenixPhoto2] Frame 1
#initclip 146
Object.registerClass("phoenixPhoto2", SwitchPhoenixPhoto2);
#endinitclip
Symbol 1568 MovieClip [phoenixPhoto2] Frame 3
stop();
Symbol 1568 MovieClip [phoenixPhoto2] Frame 7
stop();
Symbol 1568 MovieClip [phoenixPhoto2] Frame 10
stop();
Symbol 1570 MovieClip [warpGate] Frame 1
#initclip 147
Object.registerClass("warpGate", WarpGate);
#endinitclip
Symbol 1572 MovieClip [smallRock] Frame 1
#initclip 148
Object.registerClass("smallRock", WallSmallRock);
#endinitclip
_visible = false;
Symbol 1585 MovieClip [condor] Frame 1
#initclip 149
Object.registerClass("condor", WallCondor);
#endinitclip
Symbol 1585 MovieClip [condor] Frame 2
stop();
Symbol 1585 MovieClip [condor] Frame 3
stop();
Symbol 1585 MovieClip [condor] Frame 20
gotoAndStop ("off");
Symbol 1592 MovieClip Frame 2
stop();
Symbol 1592 MovieClip Frame 21
gotoAndStop (1);
Symbol 1592 MovieClip Frame 39
gotoAndStop (1);
Symbol 1599 MovieClip Frame 1
stop();
delete _parent.yourGoTaken;
Symbol 1599 MovieClip Frame 39
_parent.reset();
Symbol 1599 MovieClip Frame 44
if (trollState == SwitchRockPaperScissors.LOSE) {
gotoAndPlay ("trollLose");
} else if (trollState == SwitchRockPaperScissors.WIN) {
gotoAndPlay ("trollWin");
} else {
gotoAndStop ("idle");
}
Symbol 1599 MovieClip Frame 57
_parent.gameWon();
Symbol 1599 MovieClip Frame 74
_parent.gameFailed();
Symbol 1604 MovieClip Frame 5
stop();
Symbol 1605 MovieClip Frame 5
stop();
Symbol 1606 MovieClip Frame 5
stop();
Symbol 1607 MovieClip Frame 1
stop();
Symbol 1608 MovieClip [rockPaperScissors] Frame 1
#initclip 150
Object.registerClass("rockPaperScissors", SwitchRockPaperScissors);
#endinitclip
stop();
Symbol 1608 MovieClip [rockPaperScissors] Frame 2
stop();
Symbol 1608 MovieClip [rockPaperScissors] Frame 12
stop();
Symbol 1609 MovieClip Frame 1
stop();
Symbol 1609 MovieClip Frame 3
stop();
Symbol 1609 MovieClip Frame 9
_parent.stop();
_parent.stop();
Symbol 1609 MovieClip Frame 19
stop();
_parent.gotoAndStop("on");
Symbol 1610 MovieClip [switchRabbit] Frame 1
#initclip 151
Object.registerClass("switchRabbit", SwitchRabbit);
#endinitclip
Symbol 1610 MovieClip [switchRabbit] Frame 5
rabbit.gotoAndStop("action");
Symbol 1610 MovieClip [switchRabbit] Frame 10
rabbit.gotoAndStop("noAction");
Symbol 1610 MovieClip [switchRabbit] Frame 19
rabbit.gotoAndStop("action");
Symbol 1610 MovieClip [switchRabbit] Frame 24
rabbit.gotoAndStop("noAction");
Symbol 1610 MovieClip [switchRabbit] Frame 33
rabbit.gotoAndStop("action");
Symbol 1610 MovieClip [switchRabbit] Frame 38
rabbit.gotoAndStop("noAction");
Symbol 1610 MovieClip [switchRabbit] Frame 42
gotoAndPlay (1);
Symbol 1610 MovieClip [switchRabbit] Frame 43
stop();
Symbol 1612 MovieClip [wallTriggerable] Frame 1
#initclip 152
Object.registerClass("wallTriggerable", WallTriggerable);
#endinitclip
stop();
Symbol 1612 MovieClip [wallTriggerable] Frame 3
stop();
Symbol 1616 MovieClip Frame 9
gotoAndPlay (1);
Symbol 1617 MovieClip [switchCondors] Frame 1
#initclip 153
Object.registerClass("switchCondors", SwitchCondors);
#endinitclip
stop();
Symbol 1617 MovieClip [switchCondors] Frame 3
stop();
Symbol 1617 MovieClip [switchCondors] Frame 5
stop();
Symbol 1622 MovieClip [goatGoodYes] Frame 1
#initclip 154
Object.registerClass("goatGoodYes", GoatGoodYes);
#endinitclip
Symbol 1622 MovieClip [goatGoodYes] Frame 29
gotoAndPlay (1);
Symbol 1627 MovieClip [goatBadYes] Frame 1
#initclip 155
Object.registerClass("goatBadYes", GoatBadYes);
#endinitclip
Symbol 1627 MovieClip [goatBadYes] Frame 29
gotoAndPlay (1);
Symbol 1628 MovieClip [goatGoodNo] Frame 1
#initclip 156
Object.registerClass("goatGoodNo", GoatGoodNo);
#endinitclip
Symbol 1628 MovieClip [goatGoodNo] Frame 29
gotoAndPlay (1);
Symbol 1629 MovieClip [goatBadNo] Frame 1
#initclip 157
Object.registerClass("goatBadNo", GoatBadNo);
#endinitclip
Symbol 1629 MovieClip [goatBadNo] Frame 29
gotoAndPlay (1);
Symbol 1636 MovieClip [level3] Frame 1
#initclip 158
Object.registerClass("level3", World);
#endinitclip
Symbol 1638 MovieClip [donkey island background] Frame 1
#initclip 188
Object.registerClass("donkey island background", Background);
#endinitclip
Symbol 1641 MovieClip [donkey island midground] Frame 1
#initclip 160
Object.registerClass("donkey island midground", Background);
#endinitclip
Symbol 1670 MovieClip Frame 25
_global.root.cameraFlash();
Symbol 1670 MovieClip Frame 37
stop();
_parent.animDone();
Symbol 1671 MovieClip [bingoPhoto3] Frame 1
#initclip 161
Object.registerClass("bingoPhoto3", SwitchBingoPhoto3);
#endinitclip
Symbol 1671 MovieClip [bingoPhoto3] Frame 3
stop();
Symbol 1671 MovieClip [bingoPhoto3] Frame 7
stop();
Symbol 1671 MovieClip [bingoPhoto3] Frame 10
stop();
Symbol 1673 MovieClip Frame 33
_global.root.cameraFlash();
Symbol 1673 MovieClip Frame 87
stop();
_parent.animDone();
Symbol 1674 MovieClip [bingoPhoto2] Frame 1
#initclip 162
Object.registerClass("bingoPhoto2", SwitchBingoPhoto2);
#endinitclip
Symbol 1674 MovieClip [bingoPhoto2] Frame 3
stop();
Symbol 1674 MovieClip [bingoPhoto2] Frame 7
stop();
Symbol 1674 MovieClip [bingoPhoto2] Frame 10
stop();
Symbol 1676 MovieClip Frame 28
_global.root.cameraFlash();
Symbol 1676 MovieClip Frame 41
stop();
_parent.animDone();
Symbol 1677 MovieClip [bingoPhoto1] Frame 1
#initclip 163
Object.registerClass("bingoPhoto1", SwitchBingoPhoto1);
#endinitclip
Symbol 1677 MovieClip [bingoPhoto1] Frame 3
stop();
Symbol 1677 MovieClip [bingoPhoto1] Frame 7
stop();
Symbol 1677 MovieClip [bingoPhoto1] Frame 10
stop();
Symbol 1683 MovieClip [moving2] Frame 1
#initclip 164
Object.registerClass("moving2", MovingPlatform);
#endinitclip
Symbol 1684 MovieClip [moving2_ph] Frame 1
#initclip 165
Object.registerClass("moving2_ph", FloorMoving2);
#endinitclip
Symbol 1685 MovieClip [moving1] Frame 1
#initclip 166
Object.registerClass("moving1", MovingPlatform);
#endinitclip
Symbol 1686 MovieClip [moving1_ph] Frame 1
#initclip 167
Object.registerClass("moving1_ph", FloorMoving1);
#endinitclip
Symbol 1687 MovieClip [moving6] Frame 1
#initclip 168
Object.registerClass("moving6", MovingPlatform);
#endinitclip
Symbol 1688 MovieClip [moving6_ph ] Frame 1
#initclip 169
Object.registerClass("moving6_ph ", FloorMoving6);
#endinitclip
Symbol 1689 MovieClip [moving11] Frame 1
#initclip 170
Object.registerClass("moving11", MovingPlatform);
#endinitclip
Symbol 1690 MovieClip [moving11_ph] Frame 1
#initclip 171
Object.registerClass("moving11_ph", FloorMoving11);
#endinitclip
Symbol 1691 MovieClip [moving12] Frame 1
#initclip 172
Object.registerClass("moving12", MovingPlatform);
#endinitclip
Symbol 1692 MovieClip [moving12_ph] Frame 1
#initclip 173
Object.registerClass("moving12_ph", FloorMoving12);
#endinitclip
Symbol 1693 MovieClip [moving13] Frame 1
#initclip 174
Object.registerClass("moving13", MovingPlatform);
#endinitclip
Symbol 1694 MovieClip [moving13_ph] Frame 1
#initclip 175
Object.registerClass("moving13_ph", FloorMoving13);
#endinitclip
Symbol 1695 MovieClip [moving7] Frame 1
#initclip 176
Object.registerClass("moving7", MovingPlatform);
#endinitclip
Symbol 1696 MovieClip [moving7_ph] Frame 1
#initclip 177
Object.registerClass("moving7_ph", FloorMoving7);
#endinitclip
Symbol 1697 MovieClip [moving8] Frame 1
#initclip 178
Object.registerClass("moving8", MovingPlatform);
#endinitclip
Symbol 1698 MovieClip [moving8_ph] Frame 1
#initclip 179
Object.registerClass("moving8_ph", FloorMoving8);
#endinitclip
Symbol 1704 MovieClip [backItemSmallHead] Frame 1
#initclip 180
Object.registerClass("backItemSmallHead", BackItemSmallHead);
#endinitclip
stop();
Symbol 1705 MovieClip [switchHammer] Frame 1
#initclip 181
Object.registerClass("switchHammer", SwitchHammer);
#endinitclip
stop();
Symbol 1705 MovieClip [switchHammer] Frame 6
stop();
Symbol 1707 MovieClip [switchSmallHeadLeft] Frame 1
#initclip 182
Object.registerClass("switchSmallHeadLeft", SwitchSmallHeadLeft);
#endinitclip
stop();
Instance of Symbol 940 MovieClip in Symbol 1707 MovieClip [switchSmallHeadLeft] Frame 1
onClipEvent (load) {
if (!_global.levelVars.gotHammer) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (!_global.levelVars.gotHammer) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 1708 MovieClip [switchSmallHeadRight] Frame 1
#initclip 183
Object.registerClass("switchSmallHeadRight", SwitchSmallHeadRight);
#endinitclip
stop();
Instance of Symbol 940 MovieClip in Symbol 1708 MovieClip [switchSmallHeadRight] Frame 1
onClipEvent (load) {
if (!_global.levelVars.gotHammer) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (!_global.levelVars.gotHammer) {
_visible = false;
} else {
_visible = true;
}
}
Symbol 1712 MovieClip [backItemBigHead] Frame 1
#initclip 184
Object.registerClass("backItemBigHead", BackItemBigHead);
#endinitclip
if (_global.levelVars.hammeredHead >= 3) {
gotoAndStop ("off");
}
stop();
Symbol 1712 MovieClip [backItemBigHead] Frame 2
v = 2;
onEnterFrame = function () {
this._x = this._x + v;
v = v * -1;
};
Symbol 1712 MovieClip [backItemBigHead] Frame 22
_global.levelVars.bigHeadCompleted = true;
Symbol 1712 MovieClip [backItemBigHead] Frame 44
delete onEnterFrame;
stop();
Symbol 1730 MovieClip Frame 1
stop();
Symbol 1730 MovieClip Frame 7
stop();
Symbol 1733 MovieClip Frame 1
function checkForHit() {
globalHitMarker = {x:hitMarker._x, y:hitMarker._y};
localToGlobal(globalHitMarker);
i = 0;
while (i <= 6) {
if (images["pic" + i].hitTest(globalHitMarker.x, globalHitMarker.y)) {
hitClip = i;
break;
}
i++;
}
return(hitClip);
}
function stopMe() {
myState = "stopping";
n = Number(_name.substr(-1, 1));
_parent["roller" + (n + 1)].inActive.gotoAndStop("next");
inActive.gotoAndStop("on");
}
yVel = 0;
yPos = 0;
startY = images._y;
startImage = Math.floor(Math.random() * images.pic1._totalframes);
i = 0;
while (i <= 6) {
images["pic" + i].gotoAndStop(((i + startImage) % images.pic1._totalframes) + 1);
i++;
}
myState = "started";
maxYVel = 8;
accel = 0.3;
brakes = 0.85;
onEnterFrame = function () {
if (myState == "started") {
if (yVel < maxYVel) {
yVel = yVel + accel;
} else {
myState = "rolling";
}
yPos = yPos + yVel;
images._y = (yPos % 300) + startY;
} else if (myState == "rolling") {
yPos = yPos + yVel;
images._y = (yPos % 300) + startY;
} else if (myState == "stopping") {
yVel = yVel * brakes;
yPos = yPos + yVel;
images._y = (yPos % 300) + startY;
if (Math.floor(yVel) == 0) {
yVel = 0;
hitClip = checkForHit();
myState = false;
}
} else {
yVel = 0;
targetY = (hitMarker._y - (images["pic" + hitClip]._height * 0.5)) - (images["pic" + hitClip]._height * hitClip);
lastY = images._y;
images._y = ((images._y * 4) + targetY) / 5;
inActive.gotoAndStop("off");
if (Math.round(lastY * 1) == Math.round(images._y * 1)) {
namesOfImages = ["snake", "banana", "cherries", "gold", "monkey"];
image = images["pic" + hitClip]._currentframe;
imageName = namesOfImages[images["pic" + hitClip]._currentframe - 1];
_parent.checkResults();
delete onEnterFrame;
}
}
};
Symbol 1734 MovieClip [slotMachine] Frame 1
#initclip 185
Object.registerClass("slotMachine", SwitchSlotMachine);
#endinitclip
function action() {
if (roller1.myState == "rolling") {
roller1.stopMe();
} else if (roller2.myState == "rolling") {
roller2.stopMe();
} else if (roller3.myState == "rolling") {
roller3.stopMe();
}
}
function checkResults() {
if ((roller1.image && (roller2.image)) && (roller3.image)) {
if ((roller1.image == roller2.image) && (roller2.image == roller3.image)) {
if (roller1.image == 5) {
_global.levelVars.fruitMachineCompleted = true;
}
} else if (((roller1.image == roller2.image) || (roller2.image == roller3.image)) || (roller1.image == roller3.image)) {
if (roller1.image == roller2.image) {
prize = namesOfImages[roller1.image - 1];
} else if (roller2.image == roller3.image) {
prize = namesOfImages[roller2.image - 1];
} else if (roller1.image == roller3.image) {
prize = namesOfImages[roller1.image - 1];
}
}
}
}
namesOfImages = ["snake", "banana", "cherries", "gold", "monkey"];
roller1.inActive.gotoAndStop("next");
stop();
Symbol 1736 MovieClip Frame 1
stop();
Symbol 1736 MovieClip Frame 2
stop();
Symbol 1737 MovieClip [wallTriggerableMonkey] Frame 1
#initclip 186
Object.registerClass("wallTriggerableMonkey", WallTriggerableMonkey);
#endinitclip
stop();
_visible = true;
Symbol 1737 MovieClip [wallTriggerableMonkey] Frame 3
stop();
Symbol 1742 MovieClip [level5] Frame 1
#initclip 187
Object.registerClass("level5", World);
#endinitclip