Frame 1
currentDomain = _root._url.split("/");
currentDomain = currentDomain[2];
Stage.showMenu = false;
if (((((((((((((((((currentDomain == "www8.agame.com") || (currentDomain == "dev.addictinggames.com")) || (currentDomain == "www.addictinggames.com")) || (currentDomain == "farm.addictinggames.com")) || (currentDomain == "addictinggames.com")) || (currentDomain == "agstage.shockwave.com")) || (currentDomain == "agpublish.shockwave.com")) || (currentDomain == "chat.kongregate.com")) || (currentDomain == "www.shockwave.com")) || (currentDomain == "cdn.kaisergames.de")) || (currentDomain == "3.xiaoyouxi.cn")) || (currentDomain == "files.game.com.cn")) || (currentDomain == "files.game.asia")) || (currentDomain == "www.gamezhero.com")) || (currentDomain == "www.shockwave.com")) || (currentDomain.indexOf("andkon.com") != -1)) || (currentDomain.indexOf("agame.com") != -1)) {
adBox._visible = false;
adbackground._visible = false;
} else {
var rjAdCode = "1834Q889FBB6C";
var rdAdCode = "1866QD14EB6A8";
System.security.allowDomain("server.cpmstar.com");
var randAd = (Math.random() * 100);
if (randAd < 50) {
trace("robotJAM advert");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + rjAdCode);
} else {
trace("donkin advert");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + rdAdCode);
}
}
playBtn._visible = false;
adDelay = 100;
counter = 0;
this.createEmptyMovieClip("loaderHolder", this.getNextHighestDepth());
loaderHolder.onEnterFrame = function () {
loadprogress = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
loader.loadBar._xscale = loadprogress;
if (loadprogress >= 100) {
counter++;
if (counter == adDelay) {
playBtn._visible = true;
loader._visible = false;
delete this.onEnterFrame;
}
}
};
stop();
playBtn.onRelease = function () {
play();
};
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5b5c1f27", this, 10301, true);
Frame 6
function checkCollision(mc1, mc2) {
trace("check for item collision");
var _local1 = com.gskinner.sprites.CollisionDetection.checkForCollision(mc1, mc2);
if (_local1) {
trace((("collision between " + mc1) + " and ") + mc2);
collided = true;
collided2 = true;
}
}
function checkCursorCollision(mc1, mc2) {
var _local1 = com.gskinner.sprites.CollisionDetection.checkForCollision(mc1, mc2);
if (_local1) {
cursorcollided = true;
}
}
function pandaStop() {
if ((currentwaypoint == twonames) && (!carrying)) {
if (!defeatedtwonames) {
talktotwonames = true;
}
}
if (!usingitem) {
if ((currentwaypoint == stall) or (currentwaypoint == stallholder)) {
if (readytoplay == true) {
if (currentwaypoint == stall) {
readytoplay = false;
gotcoin = false;
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
}
_root.attachMovie("stallgame", "stallgame", _root.getNextHighestDepth(), {_x:0, _y:0});
itemarray.push([_root.stallgame.backbutton, "Back", 0, "", 1, ""]);
itemarray.push([_root.stallgame.startbutton, "Start", 0, "", 1, ""]);
itemname = "";
currentitem = undefined;
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
} else {
stallspeech = "Make your way to the front of the stall to start the game.";
stallspeechwait = getTimer();
setstallspeech();
}
} else if (wonstall && (!gothat)) {
stallspeech = "Congratulations on winning the game! Help yourself to a huge novelty hat as your prize.";
stallspeechwait = getTimer();
setstallspeech();
} else {
stallspeech = "Roll up, roll up! Shoot 10 ducks and win a prize. One coin per play.";
stallspeechwait = getTimer();
setstallspeech();
}
}
}
if (carrying == false) {
cursor._visible = true;
}
pandamoving = false;
panda.walk = false;
wait.removeMovieClip();
panda.gotoAndPlay("idle");
if (goingthroughdoor) {
gotoAndStop ("toilet");
}
if (goingthroughbonddoor) {
gotoAndStop ("gangster");
}
if (goingthroughgangsterdoor) {
gotoAndStop ("bond");
}
if (((((itemarray[currentwaypointid][5] != "") && (usingitem != true)) && (!goingthroughdoor)) && (!goingthroughbonddoor)) && (!goingthroughgangsterdoor)) {
if (((currentwaypoint == panel) && (panelcanbemoved)) && (!panelmoved)) {
panelmoved = true;
panel.play();
} else if ((currentwaypoint == ryan) && (ryanshaved)) {
pandaspeech = (((("He's got a tattoo on his chin! Strange place for a tattoo. Even stranger that it's a number: '" + beardnumber1) + beardnumber2) + beardnumber3) + beardnumber4) + "'";
panda.head.gotoAndPlay("talk");
speechwait = getTimer();
setpandaspeech();
} else if ((currentwaypoint == twonames) && (defeatedtwonames)) {
pandaspeech = "I think I'd better just leave him to recover by himself.";
speechwait = getTimer();
setpandaspeech();
} else {
pandaspeech = itemarray[currentwaypointid][5];
panda.head.gotoAndPlay("talk");
speechwait = getTimer();
setpandaspeech();
}
}
if (((currentwaypoint == tap4) && (!taploose)) && (!usingitem)) {
pandaspeech = "It's too stiff. I can't turn it.";
speechwait = getTimer();
setpandaspeech();
}
if (itemarray[currentwaypointid][2] == 1) {
if (_root["gotitem" + currentwaypointid] != true) {
picking = true;
if ((currentwaypoint == bread) && (givensmokes != true)) {
picking = false;
}
if ((currentwaypoint == hat) && (wonstall != true)) {
picking = false;
stallspeech = "That's yours if you can win the game. Only one coin per play.";
stallspeechwait = getTimer();
setstallspeech();
}
if (picking) {
var i = 1;
while (i <= 10) {
if (currentwaypoint == _root["critter" + i]) {
_root["critter" + i].removeMovieClip();
crittersfound++;
crittersfounddisplay = crittersfound + "/9";
crittersfoundanim.play();
}
i++;
}
if ((currentwaypoint == hat) && (wonstall)) {
gothat = true;
}
var i = 1;
while (i <= 4) {
if (currentwaypoint == _root["coin" + i]) {
coinorigx = _root["coin" + i]._x;
coinorigy = _root["coin" + i]._y;
coinorigdepth = _root["coin" + i].getDepth();
gotcoin = true;
}
i++;
}
if (currentwaypoint == scrap) {
scrap.gotoAndStop(2);
}
trace("pickup");
pickupitem(currentwaypoint, currentwaypointid);
}
}
}
if ((currentwaypoint == timemachine) && (!tardislocked)) {
if (carrying == true) {
panda.head.gotoAndPlay("talk");
pandaspeech = "Better not be carrying that during time travel. You can put items in the inventory at the bottom if you didn't know already.";
speechwait = getTimer();
setpandaspeech();
} else {
travel.play();
}
} else if (currentwaypoint == timemachine) {
panda.head.gotoAndPlay("talk");
pandaspeech = "I can't get inside because someone has put this pesky lock in the way.";
speechwait = getTimer();
setpandaspeech();
}
if (((currentwaypoint == prisondoor) && (!circuitfixed)) && (!usingitem)) {
elvistalking = true;
elvisspeech = "If you can get me the circuit board from the panel in the wall over there then I can recalibrate the time drive so that you can reach some new locations...";
elvisspeechwait = getTimer();
setelvisspeech();
}
if ((((currentwaypoint == prisondoor) && (circuitfixed)) && (!usingitem)) && (!circuitinplace)) {
elvisspeech = "I've recalibrated the circuit board for you. If you insert it into the console in the time machine you should be able to travel to some new locations.";
elvisspeechwait = getTimer();
setelvisspeech();
}
if ((((currentwaypoint == prisondoor) && (circuitfixed)) && (!usingitem)) && (circuitinplace)) {
if (gotfish) {
elvisspeech = "Ah I see you've found Leonardo's code-cod! Excellent work. All we need now is a way to input the code into this machine and I'll be free!";
elvisspeechwait = getTimer();
setelvisspeech();
} else {
elvisspeech = "Have you found the code to get me out of here yet? Remember, it's an ancient Italian design.";
elvisspeechwait = getTimer();
setelvisspeech();
}
}
if (currentwaypoint == juicerbutton) {
panda.gotoAndPlay("pushbutton");
pandacrawl = false;
}
if ((currentwaypoint == lastsupper) && (!sandwichclicked)) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
sandwichclicked = true;
critter7.play();
}
if (((currentwaypoint == prisonlock) && (enigmainplace)) && (!enigmaonscreen)) {
enigmaonscreen = true;
buttonsinenigmaarray = false;
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
}
_root.attachMovie("enigmaLarge", "enigmaLarge", _root.getNextHighestDepth(), {_x:0, _y:0});
for (i in itemarray) {
if (itemarray[i][0] == _root.enigmaLarge.but1) {
buttonsinenigmaarray = true;
}
}
enigmadisplay = "";
if (buttonsinenigmaarray == false) {
j = 1;
while (j <= 9) {
itemarray.push([_root.enigmaLarge["but" + j], "Button", 0, "", 1, ""]);
j++;
}
itemarray.push([_root.enigmaLarge.but1, "Button", 0, "", 1, ""]);
itemarray.push([_root.enigmaLarge.backbutton, "Back", 0, "", 1, ""]);
}
itemname = "";
currentitem = undefined;
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
}
if ((currentwaypoint == twonameshat) && (!twonameshatmoved)) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
critter8.play();
twonameshat.gotoAndStop(2);
twonameshatmoved = true;
}
if (currentwaypoint == cord) {
darkness.play();
blind.play();
cord.play();
}
if ((currentwaypoint == flush) && (!flushed)) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
flushed = true;
flush.play();
critter4.play();
}
if (currentwaypoint == bondlever) {
if (blodown) {
pandaspeech = "I don't want to annoy this Blofeld guy by messing around with that.";
speechwait = getTimer();
setpandaspeech();
} else {
blofeld.gotoAndPlay("down");
bondlever.bondlever.gotoAndPlay("on");
blodown = true;
}
}
if ((currentwaypoint == bread) && (givensmokes != true)) {
specspeech = "Hands off my bread! I'll only let you have it if you've got some smokes for me.";
specspeechwait = getTimer();
setspecspeech();
}
if (cabinetopen && (currentwaypoint == cabinet)) {
cabinetonscreen = true;
pipesinarray = false;
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
}
_root.attachMovie("pipemaze", "pipemaze", _root.getNextHighestDepth(), {_x:0, _y:0});
if (pipesinarray == false) {
itemarray.push([_root.pipemaze.backbutton, "Back", 0, "", 1, ""]);
}
itemname = "";
currentitem = undefined;
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
}
if ((currentwaypoint == crate) && (lockunlocked)) {
if (gotenigma != true) {
gotenigma = true;
_root.attachMovie("enigma", "enigma", _root.getNextHighestDepth(), {_x:0, _y:0});
updateitems();
for (i in itemarray) {
if (itemarray[i][0] == enigma) {
enigmaid = i;
}
}
pickupitem(enigma, enigmaid);
}
}
if ((currentwaypoint == combinationlock) && (lockonscreen != true)) {
lockonscreen = true;
buttonsinlockarray = false;
for (i in itemarray) {
if (itemarray[i][1] == "Number") {
buttonsinlockarray = true;
}
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
}
_root.attachMovie("lock2", "lock2", _root.getNextHighestDepth(), {_x:0, _y:0});
lock2.number1.gotoAndStop(number1);
lock2.number2.gotoAndStop(number2);
lock2.number3.gotoAndStop(number3);
lock2.number4.gotoAndStop(number4);
if (buttonsinlockarray == false) {
itemarray.push([_root.lock2.number1, "Number", 0, "", 1, ""]);
itemarray.push([_root.lock2.number2, "Number", 0, "", 1, ""]);
itemarray.push([_root.lock2.number3, "Number", 0, "", 1, ""]);
itemarray.push([_root.lock2.number4, "Number", 0, "", 1, ""]);
itemarray.push([_root.lock2.backbutton, "Back", 0, "", 1, ""]);
}
itemname = "";
currentitem = undefined;
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
}
if ((currentwaypoint == clock) && (clockonscreen != true)) {
if (doorunlocked) {
pandaspeech = "I've already fiddled with that enough. It unlocked the door remember? I'm sure it doesn't do anything else.";
speechwait = getTimer();
setpandaspeech();
} else {
clockonscreen = true;
buttonsinclockarray = false;
for (i in itemarray) {
if (itemarray[i][1] == "Small Hand") {
buttonsinclockarray = true;
}
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
}
_root.attachMovie("clock2", "clock2", _root.getNextHighestDepth(), {_x:0, _y:0});
clock2.smallhand._rotation = smallangle;
clock2.bighand._rotation = bigangle;
if (buttonsinclockarray == false) {
itemarray.push([_root.clock2.smallhand, "Small Hand", 0, "", 1, ""]);
itemarray.push([_root.clock2.bighand, "Big Hand", 0, "", 1, ""]);
itemarray.push([_root.clock2.backbutton, "Back", 0, "", 1, ""]);
}
itemname = "";
currentitem = undefined;
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
}
}
if ((currentwaypoint == box) && (boxonscreen != true)) {
boxonscreen = true;
buttonsinarray = false;
if (boxopened == true) {
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
if ((itemarray[i][1] == "Hook") or (itemarray[i][1] == "Piece of String")) {
itemarray[i][0]._visible = true;
}
}
_root.attachMovie("box2", "box2", _root.getNextHighestDepth(), {_x:0, _y:0});
for (i in itemarray) {
if (itemarray[i][0] == _root.box2.backbutton) {
trace("buttons in array");
buttonsinarray = true;
}
}
box2.gotoAndStop(28);
if (buttonsinarray == false) {
itemarray.push([_root.box2.backbutton, "Back", 0, "", 1, ""]);
}
} else {
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = false;
}
}
_root.attachMovie("box2", "box2", _root.getNextHighestDepth(), {_x:0, _y:0});
for (i in itemarray) {
if (itemarray[i][0] == _root.box2.backbutton) {
trace("buttons in array");
buttonsinarray = true;
}
}
i = 1;
while (i <= 16) {
if (_root["pressed" + i] == true) {
_root.box2["button" + i].gotoAndStop(2);
} else {
_root["pressed" + i] = false;
}
i++;
}
if (buttonsinarray == false) {
i = 1;
while (i <= 17) {
itemarray.push([_root.box2["button" + i], "Button", 0, "", 1, ""]);
i++;
}
itemarray.push([_root.box2.backbutton, "Back", 0, "", 1, ""]);
}
}
itemname = "";
currentitem = undefined;
hookorigdepth = hook.getDepth();
stringorigdepth = stringpiece.getDepth();
hook.swapDepths(_root.getNextHighestDepth());
stringpiece.swapDepths(_root.getNextHighestDepth());
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
}
if ((currentwaypoint == tap1) && (pipecomplete1)) {
trace("tap1 on");
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
tapSound = new Sound(panda);
tapSound.attachSound("tap");
tapSound.start(0, 1);
if (firstpipe == 1) {
waterbarrel++;
trace("Water amount in barrel =" + waterbarrel);
}
if (firstpipe == 2) {
greasebarrel++;
trace("Grease amount in barrel =" + greasebarrel);
}
if (firstpipe == 3) {
alcoholbarrel++;
trace("Alcohol amount in barrel =" + alcoholbarrel);
}
} else if (currentwaypoint == tap1) {
trace("Pipe1 not connected");
pandaspeech = "Nothing's coming through...";
speechwait = getTimer();
setpandaspeech();
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
}
if ((currentwaypoint == tap2) && (pipecomplete2)) {
trace("tap2 on");
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
tapSound = new Sound(panda);
tapSound.attachSound("tap");
tapSound.start(0, 1);
if (secondpipe == 1) {
waterbarrel++;
trace("Water amount in barrel =" + waterbarrel);
}
if (secondpipe == 2) {
greasebarrel++;
trace("Grease amount in barrel =" + greasebarrel);
}
if (secondpipe == 3) {
alcoholbarrel++;
trace("Alcohol amount in barrel =" + alcoholbarrel);
}
} else if (currentwaypoint == tap2) {
trace("Pipe2 not connected");
pandaspeech = "Nothing's coming through...";
speechwait = getTimer();
setpandaspeech();
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
}
if ((currentwaypoint == tap3) && (pipecomplete3)) {
trace("tap3 on");
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
tapSound = new Sound(panda);
tapSound.attachSound("tap");
tapSound.start(0, 1);
if (thirdpipe == 1) {
waterbarrel++;
trace("Water amount in barrel =" + waterbarrel);
}
if (thirdpipe == 2) {
greasebarrel++;
trace("Grease amount in barrel =" + greasebarrel);
}
if (thirdpipe == 3) {
alcoholbarrel++;
trace("Alcohol amount in barrel =" + alcoholbarrel);
}
} else if (currentwaypoint == tap3) {
trace("Pipe3 not connected");
pandaspeech = "Nothing's coming through...";
speechwait = getTimer();
setpandaspeech();
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
}
if (((currentwaypoint == tap4) && (taploose)) && (!usingitem)) {
if (((waterbarrel == 0) && (alcoholbarrel == 0)) && (greasebarrel == 0)) {
pandaspeech = "The barrel's empty...";
speechwait = getTimer();
setpandaspeech();
} else if (bottletap && (!bottlefull)) {
trace("tap4 on");
tap4.play();
pandamoving = true;
tapsqueekSound = new Sound(panda);
tapsqueekSound.attachSound("tapsqueek");
tapsqueekSound.start(0, 1);
tapSound = new Sound(panda);
tapSound.attachSound("tap");
tapSound.start(0, 1);
} else if (bottlefull) {
pandaspeech = "I think I'm all set with my one bottle of moonshine thanks.";
speechwait = getTimer();
setpandaspeech();
} else {
pandaspeech = "If I turn that tap then I'll just pour our little concoction all over my paws.";
speechwait = getTimer();
setpandaspeech();
}
}
if (usingitem) {
if ((itembeingcarried == gun) && (currentwaypoint == twonames)) {
if (!gunbullets) {
twonamesspeech = "You can't really fight if your gun's not loaded...";
twonamesspeechwait = getTimer();
settwonamesspeech();
} else if (!haton) {
twonamesspeech = "I don't really feel a need to fight you partner. Why don't you just put that gun away?";
twonamesspeechwait = getTimer();
settwonamesspeech();
} else if (!defeatedtwonames) {
winSound = new Sound(itembeingcarried);
winSound.attachSound("gling");
winSound.start(0, 1);
fadeout.play();
gun._x = gunx;
gun._y = guny;
gun.off = true;
var i = 1;
while (i <= slots) {
if (_root["itemSlot" + i].hitTest(gun._x + gun.carrypoint._x, gun._y + gun.carrypoint._y, true)) {
_root["occupied" + i] = true;
}
i++;
}
gun.stopDrag();
carrying = false;
cursor._visible = true;
twonamesspeech = "It's gunfight time!";
twonamesspeechwait = getTimer();
settwonamesspeech();
} else {
pandaspeech = "I think I'll just leave him alone for now.";
speechwait = getTimer();
setpandaspeech();
}
} else if (itembeingcarried == screwdriver) {
var i = 1;
while (i <= 4) {
if (_root["screw" + i] == currentwaypoint) {
if (_root["screwoiled" + i]) {
_root["donescrew" + i] = true;
currentwaypoint.oiled = true;
}
}
i++;
}
if (currentwaypoint.oiled) {
currentwaypoint._visible = false;
screwsdone++;
if (screwsdone == 4) {
panelcanbemoved = true;
}
winSound = new Sound(itembeingcarried);
winSound.attachSound("gling");
winSound.start(0, 1);
} else {
pandaspeech = "It's too stiff. I can't turn it.";
speechwait = getTimer();
setpandaspeech();
}
} else {
winSound = new Sound(itembeingcarried);
winSound.attachSound("gling");
winSound.start(0, 1);
}
if (itembeingcarried == enigma) {
enigmainplace = true;
prisonlock.enigma._visible = true;
enigma.removeMovieClip();
carrying = false;
cursor._visible = true;
}
if ((itembeingcarried == bottle2) && (currentwaypoint == twonames)) {
trace("Two Names is drunk!");
twonamesdrunk = true;
bottle2.removeMovieClip();
carrying = false;
cursor._visible = true;
twonames.gotoAndStop("drink");
}
if (itembeingcarried == bonekey) {
bonekey.removeMovieClip();
carrying = false;
cursor._visible = true;
bonelock.gotoAndStop(2);
tardislocked = false;
}
if (itembeingcarried == oilcan) {
var i = 1;
while (i <= 4) {
if (_root["screw" + i] == currentwaypoint) {
_root["screwoiled" + i] = true;
}
i++;
}
}
if (itembeingcarried == rock) {
givingrock = true;
carrying = false;
cursor._visible = true;
rock.removeMovieClip();
elvisspeech = "A rock! Just what I always wanted... Actually this has given me an idea for a song that I shall call 'Jailhouse Rock.'";
elvisspeechwait = getTimer();
setelvisspeech();
}
if ((itembeingcarried == circuit) && (!circuitfixed)) {
trace("circuit board fixed");
circuitfixed = true;
canclick = false;
panda.gotoAndPlay("givecircuit");
circuit._visible = false;
elvis.gotoAndPlay("fixcircuit");
}
if (itembeingcarried == razor) {
ryanshaved = true;
razor.removeMovieClip();
carrying = false;
cursor._visible = true;
ryan.ryan.head.beard._visible = false;
pandaspeech = (((("He's got a tattoo on his chin! Strange place for a tattoo. Even stranger that it's a number: '" + beardnumber1) + beardnumber2) + beardnumber3) + beardnumber4) + "'";
speechwait = getTimer();
setpandaspeech();
}
if (itembeingcarried == paintbrush) {
trace("paint frown on Mona Lisa");
lisapainted = true;
paintbrush.removeMovieClip();
carrying = false;
cursor._visible = true;
panda.gotoAndPlay("painting");
}
if (itembeingcarried == grenade) {
trace("throw grenade");
exploded = true;
panda.gotoAndPlay("grenade");
grenade.removeMovieClip();
carrying = false;
cursor._visible = true;
}
if (itembeingcarried == fork) {
trace("give fork to specs");
forkgiven = true;
specspeech = "There is no fork...";
specspeechwait = getTimer();
setspecspeech();
fork.removeMovieClip();
carrying = false;
cursor._visible = true;
critter3.play();
}
if (itembeingcarried == cigar) {
trace("give cigar to specs");
givensmokes = true;
specspeech = "Thanks for the cigar! You can help yourself to some bread now if you'd like.";
specspeechwait = getTimer();
setspecspeech();
cigar.removeMovieClip();
carrying = false;
cursor._visible = true;
specs.gotoAndStop("smoking");
}
if (itembeingcarried == stringpiece) {
trace("catch fish");
stringpiece.removeMovieClip();
for (i in itemarray) {
if (itemarray[i][0] == fish) {
fishid = i;
}
}
panda.gotoAndPlay("fish");
canclick = false;
}
if (itembeingcarried == key) {
trace("unlock padlock");
lock.unloadMovie();
cabinet.gotoAndStop(2);
s = 0;
maze = [[1, 3, 3, 3, 1], [3, 2, 3, 3, 3], [1, 3, 2, 2, 3], [3, 2, 3, 1, 1], [1, 3, 3, 3, 1]];
y = 0;
while (y <= 4) {
x = 0;
while (x <= 4) {
s++;
pipecontainer.attachMovie("pipe" + maze[y][x], "pipe" + s, pipecontainer.getNextHighestDepth(), {_x:72 + ((x * 46) / 2), _y:221 + ((y * 46) / 2)});
_root.pipecontainer["pipe" + s]._xscale = (_root.pipecontainer["pipe" + s]._yscale = 50);
_root.pipecontainer["pipe" + s].pipetype = maze[y][x];
x++;
}
y++;
}
var i = 1;
while (i <= 25) {
if (_root["rottype" + i] != undefined) {
_root.pipecontainer["pipe" + i]._rotation = _root["rottype" + i];
} else {
_root.pipecontainer["pipe" + i].rottype = random(4);
if (_root.pipecontainer["pipe" + i].rottype == 0) {
_root.pipecontainer["pipe" + i]._rotation = 0;
_root["rottype" + i] = 0;
}
if (_root.pipecontainer["pipe" + i].rottype == 1) {
_root.pipecontainer["pipe" + i]._rotation = -90;
_root["rottype" + i] = -90;
}
if (_root.pipecontainer["pipe" + i].rottype == 2) {
_root.pipecontainer["pipe" + i]._rotation = 90;
_root["rottype" + i] = 90;
}
if (_root.pipecontainer["pipe" + i].rottype == 3) {
_root.pipecontainer["pipe" + i]._rotation = 180;
_root["rottype" + i] = 180;
}
}
this.rottype = this._rotation;
i++;
}
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
cabinetopen = true;
key.removeMovieClip();
carrying = false;
cursor._visible = true;
}
if (itembeingcarried == bottle) {
trace("put bottle down");
bottle.removeMovieClip();
bottle2._visible = true;
bottletap = true;
carrying = false;
cursor._visible = true;
}
if (itembeingcarried == spanner) {
if (!taploose) {
trace("tap loosened");
taploose = true;
pandaspeech = "That's done the trick. I should be able to turn that tap by hand now.";
speechwait = getTimer();
setpandaspeech();
}
}
var i = 1;
while (i <= 4) {
if (itembeingcarried == _root["coin" + i]) {
itembeingcarried.stopDrag();
itembeingcarried.swapDepths(coinorigdepth);
stallspeech = "Thank you young sir. That gives you one play.";
stallspeechwait = getTimer();
setstallspeech();
trace("give coin to stall holder");
itembeingcarried._visible = false;
itembeingcarried._x = coinorigx;
itembeingcarried._y = coinorigy;
carrying = false;
cursor._visible = true;
readytoplay = true;
_root["gotitem" + itembeingcarriedid] = false;
}
i++;
}
}
usingitem = false;
}
function calcDistance(object, destObject, speed) {
var _local2 = object._x - destObject._x;
var _local1 = object._y - destObject._y;
var _local4 = Math.sqrt((_local2 * _local2) + (_local1 * _local1));
var _local3 = _local4 / speed;
return(_local3);
}
function sortItOut(object) {
for (i in itemarray) {
if ((itemarray[i][0] != undefined) && (itemarray[i][1] != "Coin")) {
if (((((pandahighdepth != true) && (object != hook)) && (object != stringpiece)) && (itemarray[i][0] != hook)) && (itemarray[i][0] != stringpiece)) {
if (object.hitTest(itemarray[i][0])) {
if (object._y < itemarray[i][0]._y) {
if (((object.getDepth() > itemarray[i][0].getDepth()) && (_root["gotitem" + i] != true)) && (_root["gotitem" + objectid] != true)) {
object.swapDepths(itemarray[i][0]);
}
} else if (((object.getDepth() < itemarray[i][0].getDepth()) && (_root["gotitem" + i] != true)) && (_root["gotitem" + objectid] != true)) {
object.swapDepths(itemarray[i][0]);
}
}
}
}
}
}
function pickupbottle() {
pandaspeech = "Wow! That'll put hairs on your chest. I don't think I need any more though so I'll stop there.";
speechwait = getTimer();
setpandaspeech();
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
bottlefull = true;
bottle2.gotoAndStop(2);
currentwaypoint = bottle2;
for (i in itemarray) {
if (itemarray[i][0] == bottle2) {
currentwaypointid = i;
}
}
currentwaypoint._x = _xmouse - currentwaypoint.carrypoint._x;
currentwaypoint._y = _ymouse - currentwaypoint.carrypoint._y;
_root["gotitem" + currentwaypointid] = true;
cursor._visible = false;
currentwaypoint.originaldepth = currentwaypoint.getDepth();
currentwaypoint.swapDepths(_root.getNextHighestDepth());
itemarrows.swapDepths(_root.getNextHighestDepth());
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
currentwaypoint.startDrag();
itembeingcarried = currentwaypoint;
itembeingcarriedid = currentwaypointid;
carrying = true;
}
function failtastetest() {
if ((alcoholbarrel == 0) && (greasebarrel == 0)) {
pandaspeech = "Yugh! That water's been lying around for a while. And it's certainly not moonshine. Back to the drawing board. I'll empty the barrel for you so that you can start again.";
} else {
pandaspeech = "Glurk! Eugh. That's horrible. Back to the drawing board. I'll empty the barrel for you so that you can start again.";
}
speechwait = getTimer();
setpandaspeech();
waterbarrel = 0;
alcoholbarrel = 0;
greasebarrel = 0;
tap4.gotoAndPlay("empty");
tapSound = new Sound(panda);
tapSound.attachSound("tap");
tapSound.start(0, 1);
}
function removeclock() {
for (i in itemarray) {
if (((_root["gotitem" + i] != true) && (itemarray[i][1] != "Hook")) && (itemarray[i][1] != "Piece of String")) {
itemarray[i][0]._visible = true;
}
}
clock.smallhand._rotation = clock2.smallhand._rotation;
clock.bighand._rotation = clock2.bighand._rotation;
clock2.removeMovieClip();
clockonscreen = false;
if (doorunlocked) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
toiletDoor.gotoAndStop(2);
}
}
function removeenigma() {
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = true;
}
}
enigmaLarge.removeMovieClip();
enigmaonscreen = false;
}
function removelock() {
for (i in itemarray) {
if (_root["gotitem" + i] != true) {
itemarray[i][0]._visible = true;
}
}
lock2.removeMovieClip();
lockonscreen = false;
if (lockunlocked) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
combinationlock._visible = false;
crate.gotoAndStop(2);
}
}
function pickupitem(theitem, theitemid) {
theitem._x = _xmouse - theitem.carrypoint._x;
theitem._y = _ymouse - theitem.carrypoint._y;
_root["gotitem" + theitemid] = true;
winSound = new Sound(theitem);
winSound.attachSound("gling");
winSound.start(0, 1);
cursor._visible = false;
theitem.originaldepth = theitem.getDepth();
theitem.swapDepths(_root.getNextHighestDepth());
itemarrows.swapDepths(_root.getNextHighestDepth());
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
theitem.startDrag();
itembeingcarried = theitem;
itembeingcarriedid = theitemid;
carrying = true;
var _local2 = 1;
while (_local2 <= 10) {
if (theitem == _root["critter" + _local2]) {
trace("Critter");
_root["critter" + _local2].removeMovieClip();
carrying = false;
cursor._visible = true;
}
_local2++;
}
}
function switchlights(light1, light2) {
if (_root["juicelight" + light1].green != true) {
_root["juicelight" + light1].green = true;
_root["juicelight" + light1].gotoAndStop(2);
greens = 0;
var _local2 = 1;
while (_local2 <= 6) {
if (_root["juicelight" + _local2].green == true) {
greens++;
}
_local2++;
}
if (greens == 6) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
juicer.terminator.gotoAndStop("juiced");
canclick = false;
}
} else {
_root["juicelight" + light1].green = false;
_root["juicelight" + light1].gotoAndStop(1);
}
if (_root["juicelight" + light2].green != true) {
_root["juicelight" + light2].green = true;
_root["juicelight" + light2].gotoAndStop(2);
greens = 0;
var _local2 = 1;
while (_local2 <= 6) {
if (_root["juicelight" + _local2].green == true) {
greens++;
}
_local2++;
}
if (greens == 6) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
juicer.terminator.gotoAndStop("juiced");
canclick = false;
}
} else {
_root["juicelight" + light2].green = false;
_root["juicelight" + light2].gotoAndStop(1);
}
}
updateitems = function () {
itemarray = [[panda, "Panda", 0, "", 0, ["Stop prodding me!", "Heehee that tickles.", "Please just leave me alone.", "Poking me is not going to help you win this game.", "Sorry, you're not my type."]], [timemachine, "Time Machine", 0, "", 1, ""], [bonekey, "Bone", 1, "This bone looks almost like a key...", 1, "", "intro", bonelock, [panda, "Hmmm, that looks like it might unlock something..."]], [bonelock, "Lock", 0, "", 1, "Someone's been messing with my time machine! I can't get in!"], [screwdriver, "Screwdriver", 1, "I wonder what that could be for...", 1, "", "prison", [screw1, screw2, screw3, screw4], [panda, "Oi! Leave me alone!"]], [oilcan, "Oil Can", 1, "It's full of lubricating oil.", 1, "", "prison", [screw1, screw2, screw3, screw4], [panda, "No thanks, I don't need any oil.", tap4, "Good idea but oil won't help me this time I'm afraid."]], [screw1, "Screw", 0, "", 1, ""], [screw2, "Screw", 0, "", 1, ""], [screw3, "Screw", 0, "", 1, ""], [screw4, "Screw", 0, "", 1, ""], [prisondoor, "Imprisoned Elvis", 0, "", 1, ""], [prisonlock, "Machine", 0, "", 1, "That looks complicated."], [elvis, "Imprisoned Elvis", 0, "", 1, ""], [panel, "Panel", 0, "", 1, "I can't budge it."], [camera, "Security Camera", 0, "", 0, "They're watching us!"], [circuit, "Circuit Board", 1, "Looks complicated...", 1, "", "prison", prisondoor], [critter5, "Critter", 1, "", 1, "Ooh a Critter!", "prison"], [powerlever, "Power Lever", 0, "", 0, ""], [critter9, "Critter", 1, "", 1, "Ooh a Critter!", "tardis"], [pirate, "Cap'n Blackbeard", 0, "", 0, "Grrrr, I'll never do what he says! Actually, wait, he's got a sword! Maybe just do what he says!"], [core, "Core", 0, "", 0, "I'm not going near that. Looks dangerous."], [circuitreplace, "Circuit", 0, "", 0, "It looks broken..."], [parrot, "Parrot", 0, "", 0, "That parrot is not my friend..."], [bones, "Bones", 0, "", 0, "I'd better not run into that pirate again if this is how he treats his guests!"], [console, "Console", 0, "", 0, "You fixed that in the first game remember? No? Then play the first game now!"], [screen, "Screen", 0, "", 0, "I don't know what that's for and frankly I don't really care."], [toilet, "Toilet", 0, "", 0, "Handy if you get caught short whilst travelling through time."], [critter2, "Critter", 1, "", 1, "Ooh a Critter!", "leonardo"], [critter7, "Critter", 1, "", 1, "Ooh a Critter!", "leonardo"], [fishtank, "Fish Tank", 0, "", 1, ""], [lastsupper, "Food", 0, "", 1, "Oh, that must be Leonardo's last supper."], [fish, "Fish", 0, "It's some sort of mechanical fish.", 1, "", "leonardo"], [blind, "Blind", 0, "", 1, "I can't reach all the way up there. Besides, that's what that handy cord is for."], [cord, "Cord", 0, "", 1, ""], [fork, "Fork", 1, "Looks like Leonardo left this lying around after his last supper.", 1, "", "leonardo", specs, [panda, "Ouch! That hurt."]], [paintbrush, "Paintbrush", 1, "A paintbrush. Do I really need to describe this to you?", 1, "", "leonardo", painting, [panda, "What? I'm not colourful enough for you as I am? Well tough, pandas only come in black and white!", nomansland, "You're right, it is lacking a bit of colour out there. I don't think I can do much with just a small paintbrush though.", ryan, "No, I don't think it's wise to try and paint him.", specs, "I don't think he'd react too well if I tried to paint him."], ["Nope, that doesn't need painting.", "I don't want to paint that thank you."]], [scrap, "Scrap of Paper", 1, "It has words written on it. Could it be Leonardo Da Vinci's shopping list?", 1, "", "leonardo", nothing, [panda, "It says dinner on it. That reminds me, I'm getting hungry. Hurry up and solve this would you?"]], [box, "Box", 0, "", 1, ""], [painting, "Painting", 0, "", 1, "Looks like a work in progress."], [bookcase, "Bookcase", 0, "", 1, "A nice selection of books."], [book, "Book", 1, "One of Leonardo Da Vinci's sketchbooks.", 1, "", "leonardo", nothing, [panda, "No thanks, I don't like reading."]], [clock, "Clock", 0, "", 1, ""], [toiletDoor, "Door", 0, "", 1, "That might lead somewhere interesting. It seems to be locked though."], [hook, "Hook", 1, "Don't touch the pointy part... I learnt the hard way.", 0, "", "leonardo", [stringpiece, 1], [panda, "Careful, you could have my eye out with that!", fish, "The hook needs some line on it before I can even think about fishing with it."], ""], [stringpiece, "Piece of String", 1, "A small piece of string.", 0, "", "leonardo", [[hook, bread, fish], 1, "Now it's got a hook on the end.", "That's a lovely makeshift fishing line, well done. I don't want it.", "Fish don't just hop onto hooks for the fun of it. You need some bait!", "A fishing line complete with bait."], [panda, "No, it's kittens that like playing with string. I'm a panda.", fish, "I'll need a hook on that piece of string before I can catch anything with it."], ""], [razor, "Razor", 1, "A razor. Careful of the sharp end.", 1, "", "toilet", ryan, [panda, "Don't come near me with that razor! Panda's do NOT need to shave.", specs, "He's not the one that needs shaving!"], ["Whoa! Watch what you're doing with that razor!", "No, I don't want to shave that thanks.", "It's sharp. Probably best you put it away before you have someone's eye out."]], [toiletpaper, "Toilet Paper", 0, "", 1, "Word of the day toilet paper. Interesting, today's word is 'Vetruvian'. Maybe this is where Leonardo gets all his inspiration?"], [flush, "Flush", 0, "", 1, ""], [exit, "Exit", 0, "", 0, ""], [critter4, "Critter", 1, "", 1, "Ooh a Critter!", "toilet"], [bullets, "Bullets", 1, "Ammunition!", 1, "", "trench", [gun, 1], [panda, "I don't want those."]], [enigma, "Enigmatendo", 1, "It's a mystery to me...", 1, "", "", prisonlock, [panda, "It's a mystery to me..."]], [cat, "Cat", 1, "It's a cat!", 1, "", "trench", [[paint, blofeld], 1, "Now it's a white cat.", "I still don't trust it..."], [panda, "I don't trust it..."]], [bread, "Bread", 1, "You'd better use that soon before I eat it.", 1, "", "trench", [[bugfix, stringpiece], 1], [panda, "I'm resisting the urge to eat that because I get the feeling it may come in useful.", nomansland, "I have a cunning plan. If we throw the bread into no man's land then... we won't have any bread. Maybe not such a good idea.", fish, "Good idea! It was about time you were due one of those. If only we had a hook that we could catch the fish on...", fishtank, "Good idea! It was about time you were due one of those. If only we had a hook that we could catch the fish on...", hook, "That could work. Fish love bread. You'll need some fishing line though..."]], [grenade, "Grenade", 1, "Directions: 1.Pull out pin. 2.Throw. 3.Run away!", 1, "", "trench", nomansland, [panda, "No thanks. I'd rather not mess with powerful explosives.", ryan, "This grenade might be his. I don't want him to ask for it back. What if I want to blow something up?", specs, "This grenade might be his. I don't want him to ask for it back. What if I want to blow something up?", crate, "No that would most likely blow the crate up not help me open it!", combinationlock, "Getting into that crate is going to be a bit trickier than just blowing it up!"], ["You can't solve all your troubles by blowing them up you know!", "Yeah let's blow it up! Oh no hold on a sec... better not. Sorry, just got a bit carried away for a second there."]], [nomansland, "No Man's Land", 0, "", 0, "You want me to go out there? One of these days I'll break out of this game and find a way to trap you inside it and really have some fun."], [ryan, "Private Ryan", 0, "", 1, "He looks like he could do with a shave! I didn't think they let you in the army if you looked like that."], [specs, "Radar", 0, "", 1, "I don't really want to talk to him to be honest."], [combinationlock, "Lock", 0, "", 1, ""], [crate, "Crate", 0, "", 1, ""], [critter1, "Critter", 1, "", 1, "Ooh a Critter!", "trench"], [critter3, "Critter", 1, "", 1, "Ooh a Critter!", "trench"], [cigar, "Cigar", 1, "Smoking's bad for you. Just look at what happened to the Man with Two names!", 1, "", "western", specs, [panda, "Panda's don't smoke."]], [rock, "Rock", 1, "A rock.", 1, "", "western", prisondoor, [panda, "Er... thanks. Sorry, I didn't get you anything."]], [twonames, "The Man with Two Names.", 0, "", 1, "Hi there."], [stall, "Stall", 0, "", 1, ""], [coin1, "Coin", 1, "Shiny!", 1, "", "western", stallholder, [panda, "I'd hang on to that if I were you.", stall, "Maybe try giving the coin to the stallholder..."]], [coin2, "Coin", 1, "Shiny!", 1, "", "western", stallholder, [panda, "I'd hang on to that if I were you.", stall, "Maybe try giving the coin to the stallholder..."]], [coin3, "Coin", 1, "Shiny!", 1, "", "western", stallholder, [panda, "I'd hang on to that if I were you.", stall, "Maybe try giving the coin to the stallholder..."]], [coin4, "Coin", 1, "Shiny!", 1, "", "western", stallholder, [panda, "I'd hang on to that if I were you.", stall, "Maybe try giving the coin to the stallholder..."]], [hat, "Novelty Hat", 1, "A huge 10 gallon hat.", 1, "", "western", panda], [stallholder, "Stall Owner", 0, "", 1, ""], [twonameshat, "Hat", 0, "", 1, ""], [gun, "Gun", 1, "For shooting things with.", 1, "", "western", [[bullets, twonames], 1, "A loaded gun. Not sure it's a good idea for Panda to have this...", "Watch where you're pointing that!"], [panda, "It's not much use to me without any bullets."], ["Please stop trying to shoot things.", "Not a good idea..."]], [critter6, "Critter", 1, "", 1, "Ooh a Critter!", "western"], [critter8, "Critter", 1, "", 1, "Ooh a Critter!", "western"], [bondlever, "Lever", 0, "", 1, ""], [blofeld, "Dr Blowers", 0, "", 0, ""], [bonddoor, "Door", 0, "", 1, ""], [moonbook, "Moonshine Recipe", 1, "Just what I need if I want to make some moonshine.", 1, "", "bond", nothing], [gangsterdoor, "Door", 0, "", 1, ""], [cabinet, "Cabinet", 0, "", 1, "Aha! A cabinet!"], [tap1, "Tap", 0, "", 1, ""], [tap2, "Tap", 0, "", 1, ""], [tap3, "Tap", 0, "", 1, ""], [tap4, "Tap", 0, "", 1, ""], [barrel1, "Barrel", 0, "", 1, "It says 'Water' on it."], [barrel2, "Barrel", 0, "", 1, "That one says 'Engine Grease' on it."], [barrel3, "Barrel", 0, "", 1, "It says 'Fermenting Barrel' on it."], [barrel4, "Barrel", 0, "", 1, "That seems to be where all these pipes are leading."], [pipe, "Pipe", 0, "", 1, ""], [lock, "Lock", 0, "", 1, "I guess I'll need a key for that..."], [bottle, "Bottle", 1, "A bottle.", 1, "", "gangster", tap4, [panda, "Are you implying I'm some sort of alcoholic?"]], [bottle2, "Bottle", 0, "A bottle full of moonshine.", 1, "", "gangster", twonames, [panda, "I've already tested it. It's got quite a kick!", tap4, "It's already full of moonshine.", barrel, "I've got all the moonshine I need."]], [spanner, "Spanner", 1, "A cunning device used to unscrew things that are too tight to manage by hand.", 1, "", "gangster", tap4, [panda, "No thanks.", tap1, "I can turn that tap easily enough by hand.", tap2, "I can turn that tap easily enough by hand.", tap3, "I can turn that tap easily enough by hand."]], [paint, "Paint Can", 1, "A tin of white paint. Handy if I need to paint something white...", 1, "", "gangster", [cat, 1], [panda, "I'm a panda, not a polar bear and I plan to keep it that way!"]], [key, "Key", 1, "A small key.", 1, "", "gangster", lock, [panda, "Hmmm, that looks like it might unlock something... sometimes I amaze myself with my detectivising abilities.", toiletDoor, "There doesn't seem to be a keyhole anywhere... guess this key must be for something else."]], [timemachinehq, "Time Machine", 0, "", 0, "I can't get inside, the pirate has me pinned down."], [juicer.terminator, "Terminator", 0, "", 0, ""], [juicerbutton, "Button", 0, "", 0, ""], [juicerbutton1, "Button", 0, "", 0, ""], [juicerbutton2, "Button", 0, "", 0, ""], [juicerbutton3, "Button", 0, "", 0, ""], [juicerbutton4, "Button", 0, "", 0, ""], [juicerbutton5, "Button", 0, "", 0, ""], [juicerbutton6, "Button", 0, "", 0, ""], [juicerbox, "Box", 0, "", 0, ""], [juicerpanel, "Box", 0, "", 0, ""], [juicer, "Juicer", 0, "", 0, "My juicer has a terminator pirate in it! I wonder if they accept refunds."]];
};
beardnumber1 = random(9);
beardnumber2 = random(9);
beardnumber3 = random(9);
beardnumber4 = random(9);
beardnumber = (((((beardnumber1 + "") + beardnumber2) + "") + beardnumber3) + "") + beardnumber4;
trace(((("beard number: " + beardnumber1) + beardnumber2) + beardnumber3) + beardnumber4);
symbol1 = random(5) + 1;
symbol2 = random(5) + 1;
symbol3 = random(5) + 1;
symbol4 = random(5) + 1;
symbol5 = random(5) + 1;
symbol6 = random(5) + 1;
var i = 1;
while (i <= 6) {
if (_root["symbol" + i] == 1) {
_root["symbolnumber" + i] = 1;
}
if (_root["symbol" + i] == 2) {
_root["symbolnumber" + i] = 2;
}
if (_root["symbol" + i] == 3) {
_root["symbolnumber" + i] = 3;
}
if (_root["symbol" + i] == 4) {
_root["symbolnumber" + i] = 5;
}
if (_root["symbol" + i] == 5) {
_root["symbolnumber" + i] = 8;
}
i++;
}
symbolnumber = (((((((((symbolnumber1 + "") + symbolnumber2) + "") + symbolnumber3) + "") + symbolnumber4) + "") + symbolnumber5) + "") + symbolnumber6;
trace(((((("Enigma number: " + symbolnumber1) + symbolnumber2) + symbolnumber3) + symbolnumber4) + symbolnumber5) + symbolnumber6);
Mouse.hide();
_root.attachMovie("itemnames", "itemnames", _root.getNextHighestDepth());
_root.attachMovie("speech", "speech", _root.getNextHighestDepth());
_root.attachMovie("cursor", "cursor", _root.getNextHighestDepth());
var i = 1;
while (i <= 4) {
_root["screwoiled" + i] = false;
_root["donescrew" + i] = false;
i++;
}
greaseparts = random(3) + 1;
alcoholparts = random(3) + 1;
waterparts = random(3) + 1;
trace("grease: " + greaseparts);
trace("alcohol: " + alcoholparts);
trace("water: " + waterparts);
scrollspeed = 15;
smallangle = 0;
bigangle = 0;
pandascale = 4;
waterbarrel = 0;
alcoholbarrel = 0;
greasebarrel = 0;
crittersfound = 0;
tardislocked = true;
twonamesdrunk = false;
elvispirate = false;
parroteaten = false;
pandacrawling = false;
pandacrawl = false;
doorpicked = false;
termshooting = false;
timesshot = 0;
termready = false;
canclick = true;
goinghome = false;
enigmaonscreen = false;
enigmainplace = false;
sandwichclicked = false;
beentogangster = false;
defeatedtwonames = false;
shotinten = false;
brokenrules = false;
forkgiven = false;
givingrock = false;
givenrock = false;
exploded = false;
flushed = false;
blodown = false;
givencat = false;
catpainted = false;
twonameshatmoved = false;
bottletap = false;
bottlefull = false;
parrotspeaking = false;
taploose = false;
gunbullets = false;
lisapainted = false;
circuitfixed = false;
circuitinplace = false;
cabinetonscreen = false;
boxonscreen = false;
clockonscreen = false;
lockonscreen = false;
gotfish = false;
doorunlocked = false;
lockunlocked = false;
elvistalking = false;
carrying = false;
gunfightwon = false;
cabinetopen = false;
tardispoweron = true;
blindopen = false;
boxopened = false;
stringhook = false;
stringbread = false;
usingitem = false;
gotenigma = false;
givensmokes = false;
talktotwonames = false;
talktotwonames2 = false;
ryanshaved = false;
enteredtoilet = false;
wonstall = false;
gotcoin = false;
gothat = false;
haton = false;
readytoplay = false;
gameinprogress = false;
gunfight = false;
panelcanbemoved = false;
panelmoved = false;
pandaspeech = "";
elvisspeech = "";
parrotspeech = "";
piratespeech = "";
blospeech = "";
enigmadisplay = "";
wheelspeed = 3;
var pandaMoveSpeed = 150;
duckcount = 0;
shotcount = 0;
screwsdone = 0;
slots = 20;
var i = 1;
while (i <= slots) {
_root["occupied" + i] = false;
i++;
}
wrongitemspeech = ["No, try something else.", "Nope.", "Not your best idea...", "Really? You think that's going to work?"];
updateitems();
for (i in itemarray) {
_root["gotitem" + i] = false;
}
itemclicked = function () {
this=clickeditem;//parameter overwritten
justcombined = false;
trace("Clicked on " + this);
currentitemid = clickeditemid;
if (((itemarray[currentitemid][4] == 1) && (_root["gotitem" + currentitemid] == false)) && (carrying == false)) {
if (pandachained) {
pandaspeech = "You need to get me outta these chains before I can do anything!";
speechwait = getTimer();
setpandaspeech();
} else {
currentwaypoint = this;
currentwaypointid = currentitemid;
cursor._visible = false;
if ((this == toiletDoor) && (doorunlocked)) {
trace("walking to door");
goingthroughdoor = true;
} else {
goingthroughdoor = false;
}
if (this == bonddoor) {
trace("walking to door");
goingthroughbonddoor = true;
} else {
goingthroughbonddoor = false;
}
if (this == gangsterdoor) {
trace("walking to door");
goingthroughgangsterdoor = true;
} else {
goingthroughgangsterdoor = false;
}
movetowaypoint();
}
} else if ((itemarray[currentitemid][5] != "") && (carrying == false)) {
if (this == panda) {
pandaspeech = itemarray[currentitemid][5][random(5)];
} else if ((this == circuitreplace) && (circuitinplace)) {
pandaspeech = "Looks like Elvis' tweaking did the job - the time drive is working again!";
} else if ((this == timemachinehq) && (timesshot == 3)) {
if (!doorpicked) {
trace("crawl");
doorpicked = true;
pandacrawling = true;
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
timemachinehq.gotoAndStop("doorPicked");
panda.gotoAndStop("crawl");
}
} else {
pandaspeech = itemarray[currentitemid][5];
}
speechwait = getTimer();
setpandaspeech();
} else if (carrying == false) {
if (this == exit) {
leavingtoilet = true;
gotoAndStop ("leonardo");
} else {
leavingtoilet = false;
}
if (this == clock2.smallhand) {
holdingsmallhand = true;
}
if (this == clock2.bighand) {
holdingbighand = true;
}
if (this == blofeld) {
if (givencat) {
blospeech = "Thanks for finding my cat.";
blospeechwait = getTimer();
setblospeech();
} else if (!blodown) {
blospeech = "Get me down from here!";
blospeechwait = getTimer();
setblospeech();
} else {
blospeech = "Find me my cat and I'll give you my secret moonshine recipe. He's white and fluffy if that helps.";
blospeechwait = getTimer();
setblospeech();
}
}
if (this == juicerbutton1) {
trace("button1");
light1 = 2;
light2 = 5;
switchlights(light1, light2);
}
if (this == juicerbutton2) {
trace("button2");
light1 = 1;
light2 = 3;
switchlights(light1, light2);
}
if (this == juicerbutton3) {
trace("button3");
light1 = 2;
light2 = 6;
switchlights(light1, light2);
}
if (this == juicerbutton4) {
trace("button4");
light1 = 4;
light2 = 1;
switchlights(light1, light2);
}
if (this == juicerbutton5) {
trace("button5");
light1 = 5;
light2 = 4;
switchlights(light1, light2);
}
if (this == juicerbutton6) {
trace("button6");
light1 = 1;
light2 = 6;
switchlights(light1, light2);
}
if ((this == juicerbutton) && (!termshooting)) {
if ((timesshot == 3) && (pandacrawling)) {
pandacrawling = false;
pandacrawl = true;
panda.gotoAndPlay("crawl");
currentwaypoint = this;
currentwaypointid = currentitemid;
cursor._visible = false;
movetowaypoint();
} else if (timesshot != 3) {
termshooting = true;
timesshot++;
juicer.terminator.gotoAndStop("shoot");
}
}
if (this == powerlever) {
if (tardispoweron != true) {
tardispoweron = true;
trapdoor.gotoAndPlay("closedoor");
core.play();
levelimg.levimg.gotoAndStop(levframe);
powerlever.gotoAndPlay("on");
} else {
tardispoweron = false;
core.stop();
if (!elvispirate) {
pandaspeech = "Ooh, a trapdoor leading into space-time. That pirate has made some devilish additions to the time machine.";
speechwait = getTimer();
setpandaspeech();
}
trapdoor.gotoAndPlay("opendoor");
powerlever.gotoAndStop(1);
levelimg.levimg.gotoAndStop("off");
}
}
if ((this == hook) or (this == stringpiece)) {
if (_root["gotitem" + currentitemid] != true) {
this.gotoAndStop(2);
currentitem._x = _xmouse - currentitem.carrypoint._x;
currentitem._y = _ymouse - currentitem.carrypoint._y;
_root["gotitem" + currentitemid] = true;
winSound = new Sound(currentitem);
winSound.attachSound("gling");
winSound.start(0, 1);
cursor._visible = false;
currentitem.originaldepth = currentitem.getDepth();
currentitem.swapDepths(_root.getNextHighestDepth());
itemarrows.swapDepths(_root.getNextHighestDepth());
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
currentitem.startDrag();
itembeingcarried = currentitem;
itembeingcarriedid = currentitemid;
carrying = true;
}
}
var _local3 = 1;
while (_local3 <= 4) {
_root["number" + _local3] = _root.lock2["number" + _local3]._currentframe;
if (this == _root.lock2["number" + _local3]) {
buttonSound = new Sound(this);
buttonSound.attachSound("button2");
buttonSound.start(0, 1);
if (this._currentframe == 10) {
this.gotoAndStop(1);
} else {
this.nextFrame();
}
_root["number" + _local3] = this._currentframe;
trace(number1);
if ((((number1 == (beardnumber1 + 1)) && (number2 == (beardnumber2 + 1))) && (number3 == (beardnumber3 + 1))) && (number4 == (beardnumber4 + 1))) {
trace("Lock Unlocked");
lockunlocked = true;
removelock();
}
}
_local3++;
}
_local3 = 1;
while (_local3 <= 9) {
if (this == _root.enigmaLarge["but" + _local3]) {
if (enigmadisplay == "Error") {
enigmadisplay = "";
}
buttonSound = new Sound(this);
buttonSound.attachSound("button2");
buttonSound.start(0, 1);
enigmadisplay = enigmadisplay + _local3;
if (enigmadisplay.length > 6) {
enigmadisplay = "Error";
}
if (enigmadisplay == symbolnumber) {
trace("enigma code cracked");
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
removeenigma();
prisondoor.play();
pandamoving = true;
}
}
_local3++;
}
if (!boxopened) {
_local3 = 1;
while (_local3 <= 16) {
if (this == _root.box2["button" + _local3]) {
buttonSound = new Sound(this);
buttonSound.attachSound("button2");
buttonSound.start(0, 1);
if (this._currentframe == 1) {
this.gotoAndStop(2);
_root["pressed" + _local3] = true;
} else {
this.gotoAndStop(1);
_root["pressed" + _local3] = false;
}
}
_local3++;
}
if (this == box2.button17) {
buttonSound = new Sound(this);
buttonSound.attachSound("button1");
buttonSound.start(0, 1);
buttonspressed = 0;
_local3 = 1;
while (_local3 <= 16) {
if (_root["pressed" + _local3] == true) {
buttonspressed++;
}
_local3++;
}
if ((((buttonspressed == 3) && (pressed2 == true)) && (pressed11 == true)) && (pressed15 == true)) {
trace("box opened");
winSound = new Sound(box2);
winSound.attachSound("gling");
winSound.start(0, 1);
boxopened = true;
box2.gotoAndStop(2);
} else {
_local3 = 1;
while (_local3 <= 16) {
_root.box2["button" + _local3].gotoAndStop(1);
_root["pressed" + _local3] = false;
_local3++;
}
}
}
}
if (this == lock2.backbutton) {
removelock();
}
if (this == enigmaLarge.backbutton) {
removeenigma();
}
if (this == clock2.backbutton) {
removeclock();
}
if (this == box2.backbutton) {
for (_local3 in itemarray) {
if (((_root["gotitem" + _local3] != true) && (itemarray[_local3][1] != "Hook")) && (itemarray[_local3][1] != "Piece of String")) {
itemarray[_local3][0]._visible = true;
}
if ((_root["gotitem" + _local3] != true) && ((itemarray[_local3][1] == "Hook") or (itemarray[_local3][1] == "Piece of String"))) {
itemarray[_local3][0]._visible = false;
if (itemarray[_local3][1] == "Hook") {
hook.swapDepths(hookorigdepth);
}
if (itemarray[_local3][1] == "Piece of String") {
stringpiece.swapDepths(stringorigdepth);
}
}
}
box2.removeMovieClip();
boxonscreen = false;
}
if (this == pipemaze.backbutton) {
_local3 = 1;
while (_local3 <= 25) {
if (_root["rottype" + _local3] != undefined) {
_root.pipecontainer["pipe" + _local3]._rotation = _root["rottype" + _local3];
}
_local3++;
}
for (_local3 in itemarray) {
if (_root["gotitem" + _local3] != true) {
if (itemarray[_local3][0] == bottle2) {
if (bottletap) {
itemarray[_local3][0]._visible = true;
}
} else {
itemarray[_local3][0]._visible = true;
}
}
}
pipemaze.removeMovieClip();
cabinetonscreen = false;
}
if (this == stallgame.backbutton) {
for (_local3 in itemarray) {
if ((_root["gotitem" + _local3] != true) && (itemarray[_local3][1] != "Coin")) {
itemarray[_local3][0]._visible = true;
}
}
if (gotcoin == false) {
cointype = random(4) + 1;
}
if (!defeatedtwonames) {
cigar._visible = false;
twonameshat._visible = false;
}
_local3 = 1;
while (_local3 <= 4) {
_root["coin" + _local3]._visible = false;
_local3++;
}
_root["coin" + cointype]._visible = true;
stallgame.removeMovieClip();
}
if (this == stallgame.startbutton) {
shotcount = 0;
cursor._visible = false;
_root.attachMovie("crosshair", "crosshair", _root.getNextHighestDepth());
gameinprogress = true;
stallgame.gotoAndStop(2);
}
} else if (carrying == true) {
itemshit = 0;
collided = false;
thisitem = this;
for (var _local3 in itemarray) {
if ((itemarray[_local3][0].hitTest(thisitem) && (thisitem != itemarray[_local3][0])) && (itemarray[_local3][0]._visible == true)) {
itemshit++;
_root["itemdepth" + itemshit] = itemarray[_local3][0].getDepth();
_root["itemtocheck" + itemshit] = itemarray[_local3][0];
_root["itemtocheck" + itemshit].done = false;
_root["itemtocheckid" + itemshit] = _local3;
}
}
itemdepthcheck = function () {
seconditemdepth = -1E16;
j = 1;
while (j <= itemshit) {
if ((_root["itemdepth" + j] > seconditemdepth) && (_root["itemtocheck" + j].done != true)) {
seconditemdepth = _root["itemdepth" + j];
itemtocheck = _root["itemtocheck" + j];
itemtocheckid = _root["itemtocheckid" + j];
}
j++;
}
checkCollision(itemtocheck, thisitem);
if (((!collided) && (itemshit > 0)) && (itemtocheck.done != true)) {
trace("items not touching");
itemtocheck.done = true;
itemdepthcheck();
}
};
if (itemshit > 0) {
itemdepthcheck();
}
itemhit = itemtocheck;
itemhitid = itemtocheckid;
if (collided) {
if (((itemhit == panda) && (currentitem == screwdriver)) && (pandachained)) {
trace("get Panda out of chains");
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
justcombined = true;
bustingchains = true;
pandachained = false;
panda.gotoAndPlay("idle");
pandaspeech = "Phew, thanks for busting me out of there!";
speechwait = getTimer();
setpandaspeech();
}
if (((itemhit == circuitreplace) && (currentitem == circuit)) && (circuitfixed)) {
trace("put circuit in place");
placingcircuit = true;
justcombined = true;
circuit.removeMovieClip();
circuitreplace.gotoAndStop(2);
cursor._visible = true;
carrying = false;
circuitinplace = true;
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
pandaspeech = "That's the new circuit board in place. I should be able to travel to some new locations now!";
speechwait = getTimer();
setpandaspeech();
}
var _local3 = 1;
while (_local3 <= 4) {
if ((itemhit == _root["screw" + _local3]) && ((currentitem == oilcan) or (currentitem == screwdriver))) {
currentwaypoint = itemhit;
currentwaypointid = itemhitid;
usingitem = true;
movetowaypoint();
}
_local3++;
}
if (((itemhit == itemarray[currentitemid][7]) or ((itemhit == twonames) && (currentitem == gun))) && (_root["gotitem" + itemhitid] != true)) {
if ((itemhit == panda) && (this == hat)) {
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
trace("put hat on");
justcombined = true;
haton = true;
hat.removeMovieClip();
carrying = false;
cursor._visible = true;
} else if (((itemhit == tap4) && (this == spanner)) && (taploose)) {
pandaspeech = "Been there, done that and if there's a T-shirt then I really don't want it.";
speechwait = getTimer();
setpandaspeech();
} else {
currentwaypoint = itemhit;
currentwaypointid = itemhitid;
usingitem = true;
movetowaypoint();
}
} else if ((((itemhit == itemarray[currentitemid][7][0]) or (itemhit == itemarray[currentitemid][7][0][0])) or ((itemhit == itemarray[currentitemid][7][0][1]) && (stringhook))) && (_root["gotitem" + itemhitid] == true)) {
if (this == paint) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
paint.removeMovieClip();
carrying = false;
cursor._visible = true;
catpainted = true;
cat.gotoAndStop(2);
}
if (this == cat) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
_local3 = 1;
while (_local3 <= slots) {
if (_root["itemSlot" + _local3].hitTest(paint._x + paint.carrypoint._x, paint._y + paint.carrypoint._y, true)) {
_root["occupied" + _local3] = false;
}
_local3++;
}
paint.removeMovieClip();
catpainted = true;
cat.gotoAndStop(2);
}
if (this == bullets) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
bullets.removeMovieClip();
carrying = false;
cursor._visible = true;
gunbullets = true;
}
if (this == gun) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
_local3 = 1;
while (_local3 <= slots) {
if (_root["itemSlot" + _local3].hitTest(bullets._x + bullets.carrypoint._x, bullets._y + bullets.carrypoint._y, true)) {
_root["occupied" + _local3] = false;
}
_local3++;
}
bullets.removeMovieClip();
gunbullets = true;
}
if (!stringhook) {
if (this == hook) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
hook.removeMovieClip();
carrying = false;
cursor._visible = true;
stringpiece.gotoAndStop(3);
stringhook = true;
}
if ((this == stringpiece) && (itemhit == hook)) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
_local3 = 1;
while (_local3 <= slots) {
if (_root["itemSlot" + _local3].hitTest(hook._x + hook.carrypoint._x, hook._y + hook.carrypoint._y, true)) {
_root["occupied" + _local3] = false;
}
_local3++;
}
hook.removeMovieClip();
stringpiece.gotoAndStop(3);
this._x = _xmouse - this.carrypoint._x;
this._y = _ymouse - this.carrypoint._y;
stringhook = true;
}
} else if (stringhook) {
justcombined = true;
trace((("combine " + this) + " with ") + itemhit);
winSound = new Sound(itemhit);
winSound.attachSound("gling");
winSound.start(0, 1);
if (this == bread) {
bread.removeMovieClip();
carrying = false;
cursor._visible = true;
stringpiece.gotoAndStop(4);
stringbread = true;
}
if (this == stringpiece) {
vari = 1;
while (_local3 <= slots) {
if (_root["itemSlot" + _local3].hitTest(bread._x + bread.carrypoint._x, bread._y + bread.carrypoint._y, true)) {
_root["occupied" + _local3] = false;
}
_local3++;
}
bread.removeMovieClip();
stringpiece.gotoAndStop(4);
this._x = _xmouse - this.carrypoint._x;
this._y = _ymouse - this.carrypoint._y;
stringbread = true;
}
}
} else if ((itemhit == blofeld) && (currentitem == cat)) {
if (blodown) {
trace("give cat to blofeld");
if (catpainted) {
givencat = true;
blospeech = "Mr Bigglesworth! You found him! Thank you so much. Here's the moonshine recipe as promised.";
blospeechwait = getTimer();
setblospeech();
blofeld.blowers.gotoAndStop("cat");
cat.removeMovieClip();
_root.attachMovie("moonbook", "moonbook", _root.getNextHighestDepth(), {_x:0, _y:0});
updateitems();
for (_local3 in itemarray) {
if (itemarray[_local3][0] == moonbook) {
moonbookid = _local3;
}
}
pickupitem(moonbook, moonbookid);
} else {
blospeech = "Er... that's not my cat. I told you, my cat is white!";
blospeechwait = getTimer();
setblospeech();
}
} else {
blospeech = "You found my cat! Get me down from here and I'll give you Al Copop's secret book!";
blospeechwait = getTimer();
setblospeech();
}
} else if ((currentitem == cat) && (itemhit == parrot)) {
trace("eat parrot");
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
critter9.play();
parroteaten = true;
parrotspeech = "";
parrot._visible = false;
} else if (((((itemhit != itemarray[currentitemid][7]) && (boxonscreen != true)) && (!usingitem)) && (!placingcircuit)) && (!bustingchains)) {
knownitem = false;
for (_local3 in itemarray[currentitemid][8]) {
if (itemarray[currentitemid][8][_local3] == itemhit) {
if ((this == stringpiece) && (stringhook == true)) {
if (itemhit == panda) {
pandaspeech = itemarray[currentitemid][7][3];
} else if ((itemhit == fish) && (!stringbread)) {
pandaspeech = itemarray[currentitemid][7][4];
} else {
currentwaypoint = itemhit;
currentwaypointid = itemhitid;
usingitem = true;
movetowaypoint();
}
} else if ((this == gun) && (gunbullets == true)) {
if (itemhit == panda) {
pandaspeech = itemarray[currentitemid][7][3];
}
} else if ((this == cat) && (catpainted == true)) {
if (itemhit == panda) {
pandaspeech = itemarray[currentitemid][7][3];
}
} else {
pandaspeech = itemarray[currentitemid][8][(_local3 - 1) + 2];
}
knownitem = true;
}
}
if (knownitem == false) {
if ((itemarray[currentitemid][9] != undefined) && (itemarray[currentitemid][9] != "")) {
speechnumber = 0;
for (_local3 in itemarray[currentitemid][9]) {
speechnumber++;
}
pandaspeech = itemarray[currentitemid][9][random(speechnumber)];
} else {
pandaspeech = wrongitemspeech[random(4)];
}
}
panda.head.gotoAndPlay("talk");
speechwait = getTimer();
setpandaspeech();
}
}
}
if (((_root["gotitem" + currentitemid] == true) && (carrying == false)) && (justcombined != true)) {
if (this == moonbook) {
if (moonbookonscreen != true) {
moonbookonscreen = true;
_root.attachMovie("moonbook2", "moonbook2", _root.getNextHighestDepth(), {_x:30, _y:15});
moonbook2.partsGrease.text = greaseparts;
moonbook2.partsAlcohol.text = alcoholparts;
moonbook2.partsWater.text = waterparts;
cursor.swapDepths(_root.getNextHighestDepth());
} else {
moonbookonscreen = false;
moonbook2.removeMovieClip();
}
} else if (this == scrap) {
if (scraponscreen != true) {
scraponscreen = true;
_root.attachMovie("scrap2", "scrap2", _root.getNextHighestDepth(), {_x:30, _y:15});
cursor.swapDepths(_root.getNextHighestDepth());
} else {
scraponscreen = false;
scrap2.removeMovieClip();
}
} else if (this == fish) {
if (fishonscreen != true) {
fishonscreen = true;
_root.attachMovie("fish2", "fish2", _root.getNextHighestDepth(), {_x:0, _y:0});
cursor.swapDepths(_root.getNextHighestDepth());
} else {
fishonscreen = false;
fish2.removeMovieClip();
}
} else if (this == book) {
if (bookonscreen != true) {
bookonscreen = true;
_root.attachMovie("book2", "book2", _root.getNextHighestDepth(), {_x:0, _y:0});
cursor.swapDepths(_root.getNextHighestDepth());
} else {
bookonscreen = false;
book2.removeMovieClip();
}
} else {
if ((this == gun) && (gunbullets)) {
gunx = gun._x;
guny = gun._y;
}
var _local3 = 1;
while (_local3 <= slots) {
if (_root["itemSlot" + _local3].hitTest(this._x + this.carrypoint._x, this._y + this.carrypoint._y, true)) {
_root["occupied" + _local3] = false;
}
_local3++;
}
this._x = _xmouse - this.carrypoint._x;
this._y = _ymouse - this.carrypoint._y;
cursor._visible = false;
this.swapDepths(_root.getNextHighestDepth());
itemarrows.swapDepths(_root.getNextHighestDepth());
itemnames.swapDepths(_root.getNextHighestDepth());
cursor.swapDepths(_root.getNextHighestDepth());
this.startDrag();
itembeingcarried = this;
itembeingcarriedid = currentitemid;
carrying = true;
trace(("picked up " + this) + " from inventory");
}
}
var _local3 = 1;
while (_local3 <= slots) {
if (_root["itemSlot" + _local3].hitTest(this._x + this.carrypoint._x, this._y + this.carrypoint._y, true)) {
if (((_root["occupied" + _local3] != true) && (carrying == true)) && (pandamoving == false)) {
if (this.off != true) {
this.off = true;
this.stopDrag();
carrying = false;
_root["occupied" + _local3] = true;
cursor._visible = true;
this._x = _root["itemSlot" + _local3]._x + (_root["itemSlot" + _local3]._width / 2);
this._y = _root["itemSlot" + _local3]._y + (_root["itemSlot" + _local3]._height / 2);
this._x = this._x - this.carrypoint._x;
this._y = this._y - this.carrypoint._y;
trace(this + " returned to inventory");
} else if (this.off == true) {
this.off = false;
}
}
}
_local3++;
}
placingcircuit = false;
bustingchains = false;
};
onEnterFrame = function () {
if (_ymouse > 440) {
if ((_xmouse > 600) && (_root["itemSlot" + slots]._x > 585)) {
var _local2 = 1;
while (_local2 <= slots) {
_root["itemSlot" + _local2]._x = _root["itemSlot" + _local2]._x - scrollspeed;
if (_root["occupied" + _local2]) {
for (j in itemarray) {
if (_root["itemSlot" + _local2].hitTest(itemarray[j][0]._x + itemarray[j][0].carrypoint._x, itemarray[j][0]._y + itemarray[j][0].carrypoint._y, true)) {
if (!carrying) {
itemarray[j][0]._x = itemarray[j][0]._x - scrollspeed;
} else if (itemarray[j][0] != itembeingcarried) {
itemarray[j][0]._x = itemarray[j][0]._x - scrollspeed;
}
}
}
}
_local2++;
}
}
if ((_xmouse < 40) && (itemSlot1._x < 8.1)) {
var _local2 = 1;
while (_local2 <= slots) {
_root["itemSlot" + _local2]._x = _root["itemSlot" + _local2]._x + scrollspeed;
if (_root["occupied" + _local2]) {
for (j in itemarray) {
if (_root["itemSlot" + _local2].hitTest(itemarray[j][0]._x + itemarray[j][0].carrypoint._x, itemarray[j][0]._y + itemarray[j][0].carrypoint._y, true)) {
if (!carrying) {
itemarray[j][0]._x = itemarray[j][0]._x + scrollspeed;
} else if (itemarray[j][0] != itembeingcarried) {
itemarray[j][0]._x = itemarray[j][0]._x + scrollspeed;
}
}
}
}
_local2++;
}
}
}
if (((((frame == "tardis") && (random(150) == 0)) && (!parrotspeaking)) && (canclick)) && (!parroteaten)) {
trace("parrot talk");
parrotspeaking = true;
parrotspeechtype = random(6);
if (parrotspeechtype == 0) {
parrotspeech = "Squaaaaaaaaaaark!";
}
if (parrotspeechtype == 1) {
parrotspeech = "Who's a pretty boy then?";
}
if (parrotspeechtype == 2) {
parrotspeech = "Argh shiver me timbers.";
}
if (parrotspeechtype == 3) {
parrotspeech = "Panda's a yellow-bellied coward!";
}
if (parrotspeechtype == 4) {
parrotspeech = "Polly wants a cracker!";
}
if (parrotspeechtype == 5) {
parrotspeech = "Pieces of eight, pieces of eight!";
}
parrotspeechwait = getTimer();
setparrotspeech();
}
if (holdingsmallhand) {
smalldist_x = clock2.smallhand._x - _xmouse;
smalldist_y = clock2.smallhand._y - _ymouse;
smallangle = 90 + (Math.atan2(-smalldist_y, -smalldist_x) * 57.2957795);
clock2.smallhand._rotation = smallangle;
}
if (holdingbighand) {
bigdist_x = clock2.bighand._x - _xmouse;
bigdist_y = clock2.bighand._y - _ymouse;
bigangle = Math.atan2(-bigdist_y, -bigdist_x) * 57.2957795;
clock2.bighand._rotation = bigangle;
}
if (haton == true) {
panda.hat._visible = true;
reflection.panda.hat._visible = true;
} else {
panda.hat._visible = false;
reflection.panda.hat._visible = false;
}
if (gameinprogress == true) {
crosshair._x = _xmouse;
crosshair._y = _ymouse;
stallgame.wheel._rotation = stallgame.wheel._rotation - wheelspeed;
}
if (frame != "leonardo") {
panda._xscale = (panda._yscale = panda._y / pandascale);
} else {
panda._xscale = (panda._yscale = 100);
}
if (pandamoving == true) {
wait._x = _xmouse;
wait._y = _ymouse;
}
cursor._x = _xmouse;
cursor._y = _ymouse;
cursorcollided = false;
checkCursorCollision(currentitem, cursor);
if (cursorcollided) {
} else {
currentitem = undefined;
currentitem2 = undefined;
itemdescription = "";
itemname = "";
}
itemdepth = -1E16;
for (var _local2 in itemarray) {
if (itemarray[_local2][0] != undefined) {
cursorcollided = false;
if (itemarray[_local2][0].hitTest(cursor) && (itemarray[_local2][0]._visible == true)) {
checkCursorCollision(itemarray[_local2][0], cursor);
if (cursorcollided) {
if (itemarray[_local2][0].getDepth() > itemdepth) {
itemdepth = itemarray[_local2][0].getDepth();
currentitem = itemarray[_local2][0];
currentitemid = _local2;
if (_root["gotitem" + currentitemid] == true) {
currentitem2 = currentitem;
}
}
}
}
objectid = _local2;
if (itemarray[_local2][1] != "Coin") {
}
}
}
if ((currentitem2 != undefined) && (carrying == false)) {
if (((currentitem2 == stringpiece) && (stringhook == true)) && (stringbread != true)) {
itemdescription = itemarray[currentitemid][7][2];
} else if ((currentitem2 == stringpiece) && (stringbread == true)) {
itemdescription = itemarray[currentitemid][7][5];
} else if ((currentitem2 == gun) && (gunbullets == true)) {
itemdescription = itemarray[currentitemid][7][2];
} else if ((currentitem2 == cat) && (catpainted == true)) {
itemdescription = itemarray[currentitemid][7][2];
} else {
itemdescription = itemarray[currentitemid][3];
}
} else {
itemdescription = "";
}
if (currentitem != undefined) {
if (carrying == false) {
itemname = itemarray[currentitemid][1];
} else {
itemname = "";
}
}
itemwidth = itemnames.itemnametext.textWidth;
itemnamesx = _xmouse - (itemwidth / 2);
itemnames._y = _ymouse - 30;
if (itemnamesx < 0) {
itemnamesx = itemnamesx - itemnamesx;
}
if ((itemnamesx + itemwidth) > 635) {
itemnamesx = itemnamesx - ((itemnamesx + itemwidth) - 635);
}
itemnames._x = itemnamesx;
if ((getTimer() - speechwait) > (1000 + (waitlength * 50))) {
pandaspeech = "";
if (goinghome) {
goinghome = false;
fadeouttardis.play();
}
if (termready) {
termready = false;
pandaspeech = "What the... ?";
speechwait = getTimer();
setpandaspeech();
juicer.terminator.appear.play();
}
speech.bubble._visible = false;
if (talktotwonames) {
talktotwonames = false;
talktotwonames2 = true;
twonamesspeech = "Howdy partner.";
twonamesspeechwait = getTimer();
settwonamesspeech();
}
}
if ((getTimer() - blospeechwait) > (1000 + (blowaitlength * 50))) {
blospeech = "";
}
if ((getTimer() - specspeechwait) > (1000 + (specwaitlength * 50))) {
specspeech = "";
}
if ((getTimer() - parrotspeechwait) > (1000 + (parrotwaitlength * 50))) {
parrotspeaking = false;
parrotspeech = "";
}
if ((getTimer() - piratespeechwait) > (1000 + (piratewaitlength * 50))) {
piratespeaking = false;
piratespeech = "";
}
if ((getTimer() - stallspeechwait) > (1000 + (stallwaitlength * 50))) {
stallspeech = "";
}
if ((getTimer() - elvisspeechwait) > (1000 + (elviswaitlength * 50))) {
elvisspeech = "";
if (givingrock) {
givingrock = false;
givenrock = true;
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
critter5.play();
}
if (elvistalking) {
elvistalking = false;
elvisspeech = "... I am the owner of that time machine you've been using and I need your help to get me out of here. The code to my prison is based on an ancient Italian encryption system so I'm going to need you to go back in time to get it for me.";
elvisspeechwait = getTimer();
setelvisspeech();
}
}
if ((getTimer() - twonamesspeechwait) > (1000 + (twonameswaitlength * 50))) {
twonamesspeech = "";
if (talktotwonames2) {
if (!haton) {
twonamesspeech = "I'm the best shooter in the West. You ain't worth fightin' - you don't even got a big hat!";
} else {
twonamesspeech = "Wow, now that's what I call a hat! I guess you want a duel then. This town ain't big enough for both our hats. Come here with a loaded gun and I'll teach you a lesson!";
}
talktotwonames2 = false;
twonamesspeechwait = getTimer();
settwonamesspeech();
}
}
waitlength = length(pandaspeech);
tW = speech.dynamicspeech.textWidth + 40;
tH = speech.dynamicspeech.textHeight + 15;
speech._y = (panda._y - panda._yscale) - tH;
speech._x = panda._x - (tW / 2);
if ((speech._x + tW) > 640) {
speech._x = (panda._x - (tW / 2)) - ((speech._x + tW) - 640);
}
if (speech._x < 0) {
speech._x = (panda._x - (tW / 2)) - speech._x;
}
};
onMouseDown = function () {
if ((!goinghome) && (!termready)) {
pandaspeech = "";
}
specspeech = "";
twonamesspeech = "";
stallspeech = "";
elvisspeech = "";
blospeech = "";
if (givingrock) {
givingrock = false;
givenrock = true;
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
critter5.play();
}
if (elvistalking) {
elvistalking = false;
elvisspeech = "... I am the owner of that time machine you've been using and I need your help to get me out of here. The code to my prison is based on an ancient Italian encryption system so I'm going to need you to go back in time to get it for me.";
elvisspeechwait = getTimer();
setelvisspeech();
}
if (fightstarted) {
gunSound = new Sound(pandafight);
gunSound.attachSound("gun");
gunSound.start(0, 1);
pandafight.gotoAndPlay("shoot");
if (againstrules) {
brokenrules = true;
fadeout.play();
} else {
twonamesshot = true;
twonamesfight.gotoAndPlay("hatfall");
}
}
if (gameinprogress) {
gunSound = new Sound(crosshair);
gunSound.attachSound("gun");
gunSound.start(0, 1);
shotcount++;
var _local2 = 1;
while (_local2 <= 6) {
if (stallgame.wheel["duckbad" + _local2].hitTest(_xmouse, _ymouse, true)) {
gameinprogress = false;
wonstall = false;
wheelspeed = 3;
duckcount = 0;
stallgame.removeMovieClip();
crosshair.removeMovieClip();
cursor._visible = true;
for (_local2 in itemarray) {
if ((_root["gotitem" + _local2] != true) && (itemarray[_local2][1] != "Coin")) {
itemarray[_local2][0]._visible = true;
}
}
if (!defeatedtwonames) {
cigar._visible = false;
twonameshat._visible = false;
}
if (gotcoin == false) {
cointype = random(4) + 1;
}
_local2 = 1;
while (_local2 <= 4) {
_root["coin" + _local2]._visible = false;
_local2++;
}
_root["coin" + cointype]._visible = true;
stallgame.removeMovieClip();
stallspeech = "Aw too bad, you lost. It'll cost you another coin if you want to play again.";
stallspeechwait = getTimer();
setstallspeech();
}
_local2++;
}
_local2 = 1;
while (_local2 <= 10) {
if (stallgame.wheel["duck" + _local2].hitTest(_xmouse, _ymouse, true)) {
wheelspeed = wheelspeed + 0.5;
duckcount++;
stallgame.wheel["duck" + _local2].unloadMovie();
if (duckcount == 10) {
winSound = new Sound(panda);
winSound.attachSound("gling");
winSound.start(0, 1);
gameinprogress = false;
duckcount = 0;
wheelspeed = 3;
wonstall = true;
stallgame.removeMovieClip();
crosshair.removeMovieClip();
cursor._visible = true;
for (_local2 in itemarray) {
if ((_root["gotitem" + _local2] != true) && (itemarray[_local2][1] != "Coin")) {
itemarray[_local2][0]._visible = true;
}
}
if (!defeatedtwonames) {
cigar._visible = false;
twonameshat._visible = false;
}
if (gotcoin == false) {
cointype = random(4) + 1;
}
_local2 = 1;
while (_local2 <= 4) {
_root["coin" + _local2]._visible = false;
_local2++;
}
_root["coin" + cointype]._visible = true;
if (gothat) {
if (shotcount == 10) {
critter6.play();
shotinten = true;
stallspeech = "Wow! You got them all in 10 shots! Even the Man with Two Names has only ever managed 11. Impressive!";
} else if (shotcount < 15) {
stallspeech = ("Nice! Only " + shotcount) + " shots.";
} else {
stallspeech = "Well done, that was some impressive shooting.";
}
} else if (shotcount == 10) {
critter6.play();
shotinten = true;
stallspeech = "Wow! You got them all in 10 shots! Even the Man with Two Names has only ever managed 11. Impressive! Help yourself to a hat my little friend.";
} else if (shotcount < 15) {
stallspeech = ("Nice! Only " + shotcount) + " shots. Help yourself to a hat my little friend.";
} else {
stallspeech = "Well done, that was some impressive shooting. Help yourself to a hat my little friend.";
}
stallspeechwait = getTimer();
setstallspeech();
}
}
_local2++;
}
}
if (talktotwonames2) {
if (!haton) {
twonamesspeech = "I'm the best shooter in the West. You ain't worth fightin' - you don't even got a big hat!";
} else {
twonamesspeech = "Wow, now that's what I call a hat! I guess you want a duel then. This town ain't big enough for both our hats. Come here with a loaded gun and I'll teach you a lesson!";
}
talktotwonames2 = false;
twonamesspeechwait = getTimer();
settwonamesspeech();
}
if (talktotwonames) {
talktotwonames = false;
talktotwonames2 = true;
twonamesspeech = "Howdy partner.";
twonamesspeechwait = getTimer();
settwonamesspeech();
}
cursor.paw.gotoAndStop(2);
clicked = false;
if (itemname != "") {
clicked = true;
clickeditem = currentitem;
clickeditemid = currentitemid;
} else if (carrying == true) {
clickeditem = itembeingcarried;
clickeditemid = itembeingcarriedid;
clicked = true;
}
if ((clicked == true) && (pandamoving == false)) {
if ((clickeditem != moonbook) && (moonbookonscreen == true)) {
moonbookonscreen = false;
moonbook2.removeMovieClip();
}
if ((clickeditem != scrap) && (scraponscreen == true)) {
scraponscreen = false;
scrap2.removeMovieClip();
}
if ((clickeditem != fish) && (fishonscreen == true)) {
fishonscreen = false;
fish2.removeMovieClip();
}
if ((clickeditem != book) && (bookonscreen == true)) {
bookonscreen = false;
book2.removeMovieClip();
}
if (canclick) {
itemclicked();
}
}
if ((clicked == false) && (moonbookonscreen == true)) {
moonbookonscreen = false;
moonbook2.removeMovieClip();
}
if ((clicked == false) && (scraponscreen == true)) {
scraponscreen = false;
scrap2.removeMovieClip();
}
if ((clicked == false) && (fishonscreen == true)) {
fishonscreen = false;
fish2.removeMovieClip();
}
if ((clicked == false) && (bookonscreen == true)) {
bookonscreen = false;
book2.removeMovieClip();
}
};
onMouseUp = function () {
cursor.paw.gotoAndStop(1);
if (holdingsmallhand) {
holdingsmallhand = false;
trace("Small Hand angle: " + clock2.smallhand._rotation);
if ((90 < (clock2.smallhand._rotation + 5)) && (90 > (clock2.smallhand._rotation - 5))) {
smallhandinplace = true;
trace("small hand in place");
} else {
smallhandinplace = false;
}
if (smallhandinplace && (bighandinplace)) {
doorunlocked = true;
removeclock();
}
}
if (holdingbighand) {
holdingbighand = false;
trace("Big Hand angle: " + clock2.bighand._rotation);
if ((55 < (clock2.bighand._rotation + 5)) && (55 > (clock2.bighand._rotation - 5))) {
bighandinplace = true;
trace("big hand in place");
} else {
bighandinplace = false;
}
if (smallhandinplace && (bighandinplace)) {
doorunlocked = true;
removeclock();
}
}
};
setpandaspeech = function () {
trace("Panda: " + pandaspeech);
panda.head.gotoAndPlay("talk");
waitlength = length(pandaspeech);
tW = speech.dynamicspeech.textWidth + 40;
tH = speech.dynamicspeech.textHeight + 15;
speech._y = (panda._y - panda._yscale) - tH;
speech._x = panda._x - (tW / 2);
if ((speech._x + tW) > 640) {
speech._x = (panda._x - (tW / 2)) - ((speech._x + tW) - 640);
}
if (speech._x < 0) {
speech._x = (panda._x - (tW / 2)) - speech._x;
}
};
setblospeech = function () {
blowaitlength = length(blospeech);
htH = blospeechmc.dynamicspeech.textHeight + 40;
blospeechmc._y = (blofeld.blowers._y + blofeld._y) - htH;
};
setspecspeech = function () {
specwaitlength = length(specspeech);
htH = specspeechmc.dynamicspeech.textHeight + 40;
specspeechmc._y = (specs._y - htH) - specs._height;
htW = specspeechmc.dynamicspeech.textWidth + 45;
specspeechmc._x = (specs._x - (htW / 2)) - 30;
};
setstallspeech = function () {
stallwaitlength = length(stallspeech);
htH = stallspeechmc.dynamicspeech.textHeight + 60;
stallspeechmc._y = (stallholder._y - htH) - stallholder._height;
};
setelvisspeech = function () {
elviswaitlength = length(elvisspeech);
htH = elvisspeechmc.dynamicspeech.textHeight + 60;
elvisspeechmc._y = (elvis._y - htH) - elvis._height;
};
setparrotspeech = function () {
parrotwaitlength = length(parrotspeech);
htH = parrotspeechmc.dynamicspeech.textHeight + 60;
parrotspeechmc._y = (parrot._y - htH) - parrot._height;
htW = parrotspeechmc.dynamicspeech.textWidth + 45;
parrotspeechmc._x = (parrot._x - (htW / 2)) - 30;
};
setpiratespeech = function () {
piratewaitlength = length(piratespeech);
htH = piratespeechmc.dynamicspeech.textHeight + 60;
piratespeechmc._y = pirate._y - htH;
htW = piratespeechmc.dynamicspeech.textWidth + 45;
piratespeechmc._x = (pirate._x - (htW / 2)) - 30;
};
settwonamesspeech = function () {
twonameswaitlength = length(twonamesspeech) * 1.5;
htH = twonamesspeechmc.dynamicspeech.textHeight + 60;
twonamesspeechmc._y = (twonames._y - htH) - twonames._height;
htW = twonamesspeechmc.dynamicspeech.textWidth + 45;
twonamesspeechmc._x = (twonames._x - (htW / 2)) - 30;
};
this.createEmptyMovieClip("bond_musicholder", this.getNextHighestDepth());
bond_music = new Sound(bond_musicholder);
bond_music.attachSound("bond_music");
bond_music.setVolume(0);
bond_music.start(0, 999);
_root.createEmptyMovieClip("gangster_musicholder", this.getNextHighestDepth());
gangster_music = new Sound(gangster_musicholder);
gangster_music.attachSound("gangster_music");
gangster_music.setVolume(0);
gangster_music.start(0, 999);
this.createEmptyMovieClip("island_musicholder", this.getNextHighestDepth());
island_music = new Sound(island_musicholder);
island_music.attachSound("island_music");
island_music.setVolume(0);
island_music.start(0, 999);
this.createEmptyMovieClip("leonardo_musicholder", this.getNextHighestDepth());
leonardo_music = new Sound(leonardo_musicholder);
leonardo_music.attachSound("leonardo_music");
leonardo_music.setVolume(0);
leonardo_music.start(0, 999);
this.createEmptyMovieClip("spaceprison_musicholder", this.getNextHighestDepth());
spaceprison_music = new Sound(spaceprison_musicholder);
spaceprison_music.attachSound("spaceprison_music");
spaceprison_music.setVolume(0);
spaceprison_music.start(0, 999);
this.createEmptyMovieClip("timemachine_musicholder", this.getNextHighestDepth());
timemachine_music = new Sound(timemachine_musicholder);
timemachine_music.attachSound("timemachine_music");
timemachine_music.setVolume(0);
timemachine_music.start(0, 999);
this.createEmptyMovieClip("western_musicholder", this.getNextHighestDepth());
western_music = new Sound(western_musicholder);
western_music.attachSound("western_music");
western_music.setVolume(0);
western_music.start(0, 999);
this.createEmptyMovieClip("trenches_musicholder", this.getNextHighestDepth());
trenches_music = new Sound(trenches_musicholder);
trenches_music.attachSound("trenches_music");
trenches_music.setVolume(0);
trenches_music.start(0, 999);
Frame 19
stop();
Frame 29
stop();
globalSound = new Sound();
pandaBig.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=playPandaAdventure&action=play_1416", "_blank");
};
mutebutton.onRelease = function () {
if (muted != true) {
muted = true;
_root.globalSound.setVolume(0);
} else {
muted = false;
_root.globalSound.setVolume(100);
}
};
if (muted == true) {
mutebutton.gotoAndStop("off");
}
if (muted == false) {
mutebutton.gotoAndStop("on");
}
pandamoving = false;
updateitems();
gs.TweenFilterLite.to(island_musicholder, 3, {volume:30});
movetowaypoint = function () {
if (pandamoving != true) {
_root.attachMovie("wait", "wait", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
}
pandamoving = true;
pandatime = calcDistance(panda, currentwaypoint, pandaMoveSpeed);
time = pandatime;
for (i in waypointarray) {
if (waypointarray[i].visited != true) {
if (currentpoint == undefined) {
_root["time" + i] = calcDistance(panda, waypointarray[i], pandaMoveSpeed);
if (_root["time" + i] < time) {
_root["distfromwaypoint" + i] = calcDistance(currentwaypoint, waypointarray[i], pandaMoveSpeed);
if (_root["distfromwaypoint" + i] < pandatime) {
time = _root["time" + i];
nextpoint = i;
}
}
} else if ((waypointarray[currentpoint].waypointarray[i] == true) or (waypointarray[i].waypointarray[currentpoint] == true)) {
_root["distfromwaypoint" + i] = calcDistance(currentwaypoint, waypointarray[i], pandaMoveSpeed);
if (_root["distfromwaypoint" + i] < pandatime) {
_root["time" + i] = calcDistance(panda, waypointarray[i], pandaMoveSpeed);
pandatime = _root["distfromwaypoint" + i];
time = _root["time" + i];
nextpoint = i;
}
}
}
}
if (time == calcDistance(panda, currentwaypoint, pandaMoveSpeed)) {
nextpoint = undefined;
currentpoint = undefined;
for (i in waypointarray) {
waypointarray[i].visited = false;
}
endx = currentwaypoint._x;
endy = currentwaypoint._y + 5;
gs.TweenMax.to(panda, time, {_x:endx, _y:endy, ease:mx.transitions.easing.None.easeNone, onComplete:pandaStop, onCompleteParams:[]});
panda.walk = true;
if (Math.abs(panda._x - currentwaypoint._x) < 5) {
} else if (currentwaypoint._x > panda._x) {
panda.gotoAndPlay("walkRight");
} else if (currentwaypoint._x < panda._x) {
panda.gotoAndPlay("walkLeft");
} else {
panda.gotoAndPlay("shuffle");
}
} else {
currentpoint = nextpoint;
endx = waypointarray[nextpoint]._x;
endy = waypointarray[nextpoint]._y;
waypointarray[nextpoint].visited = true;
gs.TweenMax.to(panda, time, {_x:endx, _y:endy, ease:mx.transitions.easing.None.easeNone, onComplete:movetowaypoint, onCompleteParams:[]});
panda.walk = true;
if (Math.abs(panda._x - waypointarray[nextpoint]._x) < 5) {
} else if (waypointarray[nextpoint]._x > panda._x) {
if ((waypointarray[nextpoint]._y < panda._y) && ((waypointarray[nextpoint]._x - panda._x) < 40)) {
panda.gotoAndPlay("shuffleUp");
} else if ((waypointarray[nextpoint]._y > panda._y) && ((waypointarray[nextpoint]._x - panda._x) < 40)) {
panda.gotoAndPlay("shuffle");
} else {
panda.gotoAndPlay("walkRight");
}
} else if (waypointarray[nextpoint]._x < panda._x) {
if ((waypointarray[nextpoint]._y < panda._y) && ((panda._x - waypointarray[nextpoint]._x) < 40)) {
panda.gotoAndPlay("shuffleUp");
} else if ((waypointarray[nextpoint]._y > panda._y) && ((panda._x - waypointarray[nextpoint]._x) < 40)) {
panda.gotoAndPlay("shuffle");
} else {
panda.gotoAndPlay("walkLeft");
}
} else {
panda.gotoAndPlay("shuffle");
}
}
};
levframe = 5;
placename = "A very small island in the middle of nowhere...";
Frame 39
stop();
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:60});
gs.TweenFilterLite.to(bond_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(gangster_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(island_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(leonardo_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(spaceprison_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(western_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(trenches_musicholder, 2, {volume:0});
placename = "Inside the Time Machine";
placename2.gotoAndPlay(1);
pandamoving = false;
frame = "tardis";
updateitems();
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
}
pandascale = 2;
levelimg.levimg.gotoAndStop(levframe);
if (!circuitfixed) {
levelimg.levimg.gotoAndStop(5);
}
if (tardispoweron) {
powerlever.gotoAndStop(5);
} else {
levelimg.levimg.gotoAndStop("off");
}
movetowaypoint = function () {
if (pandacrawl) {
pandaMoveSpeed = 75;
} else {
pandaMoveSpeed = 150;
}
if (pandamoving != true) {
_root.attachMovie("wait", "wait", _root.getNextHighestDepth(), {_x:_xmouse, _y:_ymouse});
}
pandamoving = true;
pandatime = calcDistance(panda, currentwaypoint, pandaMoveSpeed);
time = pandatime;
for (i in waypointarray) {
if (waypointarray[i].visited != true) {
if (currentpoint == undefined) {
_root["time" + i] = calcDistance(panda, waypointarray[i], pandaMoveSpeed);
if (_root["time" + i] < time) {
_root["distfromwaypoint" + i] = calcDistance(currentwaypoint, waypointarray[i], pandaMoveSpeed);
if (_root["distfromwaypoint" + i] < pandatime) {
time = _root["time" + i];
nextpoint = i;
}
}
} else if ((waypointarray[currentpoint].waypointarray[i] == true) or (waypointarray[i].waypointarray[currentpoint] == true)) {
_root["distfromwaypoint" + i] = calcDistance(currentwaypoint, waypointarray[i], pandaMoveSpeed);
if (_root["distfromwaypoint" + i] < pandatime) {
_root["time" + i] = calcDistance(panda, waypointarray[i], pandaMoveSpeed);
pandatime = _root["distfromwaypoint" + i];
time = _root["time" + i];
nextpoint = i;
}
}
}
}
if (time == calcDistance(panda, currentwaypoint, pandaMoveSpeed)) {
nextpoint = undefined;
currentpoint = undefined;
for (i in waypointarray) {
waypointarray[i].visited = false;
}
endx = currentwaypoint._x;
endy = currentwaypoint._y + 5;
gs.TweenMax.to(panda, time, {_x:endx, _y:endy, ease:mx.transitions.easing.None.easeNone, onComplete:pandaStop, onCompleteParams:[]});
panda.walk = true;
if (!pandacrawl) {
if (Math.abs(panda._x - currentwaypoint._x) < 5) {
} else if (currentwaypoint._x > panda._x) {
panda.gotoAndPlay("walkRight");
} else if (currentwaypoint._x < panda._x) {
panda.gotoAndPlay("walkLeft");
} else {
panda.gotoAndPlay("shuffle");
}
}
} else {
currentpoint = nextpoint;
endx = waypointarray[nextpoint]._x;
endy = waypointarray[nextpoint]._y;
waypointarray[nextpoint].visited = true;
gs.TweenMax.to(panda, time, {_x:endx, _y:endy, ease:mx.transitions.easing.None.easeNone, onComplete:movetowaypoint, onCompleteParams:[]});
panda.walk = true;
if (!pandacrawl) {
if (Math.abs(panda._x - waypointarray[nextpoint]._x) < 5) {
} else if (waypointarray[nextpoint]._x > panda._x) {
if ((waypointarray[nextpoint]._y < panda._y) && ((waypointarray[nextpoint]._x - panda._x) < 40)) {
panda.gotoAndPlay("shuffleUp");
} else if ((waypointarray[nextpoint]._y > panda._y) && ((waypointarray[nextpoint]._x - panda._x) < 40)) {
panda.gotoAndPlay("shuffle");
} else {
panda.gotoAndPlay("walkRight");
}
} else if (waypointarray[nextpoint]._x < panda._x) {
if ((waypointarray[nextpoint]._y < panda._y) && ((panda._x - waypointarray[nextpoint]._x) < 40)) {
panda.gotoAndPlay("shuffleUp");
} else if ((waypointarray[nextpoint]._y > panda._y) && ((panda._x - waypointarray[nextpoint]._x) < 40)) {
panda.gotoAndPlay("shuffle");
} else {
panda.gotoAndPlay("walkLeft");
}
} else {
panda.gotoAndPlay("shuffle");
}
}
}
};
nextWorld.onRelease = function () {
if ((!clicked) && (canclick)) {
if (tardispoweron && (circuitinplace)) {
if ((levelimg.levimg._currentframe != 5) && (levelimg.levimg._currentframe != 6)) {
levelimg.levimg.nextFrame();
levframe = levelimg.levimg._currentframe;
}
} else if ((!circuitfixed) && (tardispoweron)) {
pandaspeech = "It's not working. I think it might have something to do with that broken circuit board.";
speechwait = getTimer();
setpandaspeech();
} else if (circuitfixed && (tardispoweron)) {
pandaspeech = "It's not working. I think I need to do something with this circuit board.";
speechwait = getTimer();
setpandaspeech();
} else {
pandaspeech = "Nothing's working. Is it plugged in?";
speechwait = getTimer();
setpandaspeech();
}
}
};
prevWorld.onRelease = function () {
if ((!clicked) && (canclick)) {
if (tardispoweron && (circuitinplace)) {
if (levelimg.levimg._currentframe != 6) {
levelimg.levimg.prevFrame();
levframe = levelimg.levimg._currentframe;
}
} else if ((!circuitfixed) && (tardispoweron)) {
pandaspeech = "It's not working. I think that broken circuit board may be something to do with that...";
speechwait = getTimer();
setpandaspeech();
} else if (circuitfixed && (tardispoweron)) {
pandaspeech = "It's not working. I think I need to do something with this circuit board.";
speechwait = getTimer();
setpandaspeech();
} else {
pandaspeech = "Nothing's working. Is it plugged in?";
speechwait = getTimer();
setpandaspeech();
}
}
};
levelimg.onRelease = function () {
if ((!clicked) && (canclick)) {
if (carrying == true) {
panda.head.gotoAndPlay("talk");
pandaspeech = "Better not be carrying that during time travel. You can put items in the inventory at the bottom if you didn't know already.";
speechwait = getTimer();
setpandaspeech();
} else if (tardispoweron) {
if (elvispirate) {
piratespeech = "I don't want to go there! Take me back to my ship so's I can make ye walk the plank properly this time!";
piratespeechwait = getTimer();
setpiratespeech();
} else {
gs.TweenFilterLite.to(tardisHolder, 2, {volume:0});
if (_root.levelimg.levimg._currentframe == 1) {
gs.TweenFilterLite.to(prehistoricHolder, 2, {volume:100});
}
if (_root.levelimg.levimg._currentframe == 2) {
gs.TweenFilterLite.to(medievalHolder, 2, {volume:100});
}
if (_root.levelimg.levimg._currentframe == 3) {
gs.TweenFilterLite.to(egyptianHolder, 2, {volume:100});
}
if (_root.levelimg.levimg._currentframe == 4) {
gs.TweenFilterLite.to(labHolder, 2, {volume:100});
}
if (_root.levelimg.levimg._currentframe == 5) {
gs.TweenFilterLite.to(pirateHolder, 2, {volume:100});
}
travel2.play();
}
} else {
pandaspeech = "Nothing's working. Is it plugged in?";
speechwait = getTimer();
setpandaspeech();
}
}
};
if (elvispirate) {
pirate._visible = true;
piratespeech = "Argh, 'tis I, Cap'n Blackbeard. I can't believe you fell for all of that Elvis rubbish! Now take me back in time or you'll feel the cold steel of my cutlass!";
piratespeechwait = getTimer();
setpiratespeech();
} else {
pirate._visible = false;
}
if (circuitinplace) {
circuitreplace.gotoAndStop(2);
}
if (parroteaten) {
parrot._visible = false;
critter9.gotoAndStop(30);
}
Frame 49
stop();
pandascale = 3.69;
frame = "leonardo";
placename = "1493: Leonardo Da Vinci's Workshop";
placename2.gotoAndPlay(1);
updateitems();
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
if ((_root["gotitem" + i] == false) && ((itemarray[i][0] == hook) or (itemarray[i][0] == stringpiece))) {
itemarray[i][0]._visible = false;
}
}
if (blindopen == true) {
blind.gotoAndStop("open");
darkness.gotoAndStop("open");
}
if (doorunlocked) {
toiletDoor.gotoAndStop(2);
}
clock.smallhand._rotation = smallangle;
clock.bighand._rotation = bigangle;
if (lisapainted) {
painting.gotoAndStop(2);
critter2.gotoAndStop(30);
}
if (sandwichclicked) {
critter7.gotoAndStop(30);
}
gs.TweenFilterLite.to(leonardo_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 59
stop();
pandascale = 3;
frame = "toilet";
placename = "1493: Leonardo Da Vinci's Toilet";
placename2.gotoAndPlay(1);
updateitems();
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
}
if (!enteredtoilet) {
pandaspeech = "Ooh... Leonardo Da Vinci's toilet! I wonder why he keeps it so hidden away? Not exactly ideal if you're in a hurry...";
speechwait = getTimer();
setpandaspeech();
enteredtoilet = true;
}
if (flushed) {
critter4.gotoAndStop(20);
}
Frame 69
stop();
pandascale = 4;
frame = "trench";
placename = "1944: World War 2 Trench";
placename2.gotoAndPlay(1);
updateitems();
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
}
if (ryanshaved) {
ryan.ryan.head.beard._visible = false;
}
if (lockunlocked) {
combinationlock._visible = false;
crate.gotoAndStop(2);
}
if (exploded) {
critter1.gotoAndStop(31);
}
if (forkgiven) {
critter3.gotoAndStop(30);
}
gs.TweenFilterLite.to(trenches_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 79
stop();
pandascale = 4;
frame = "gangster";
placename = "1924: Al Copop's Secret Warehouse";
placename2.gotoAndPlay(1);
updateitems();
if (!bottletap) {
bottle2._visible = false;
}
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
}
if (cabinetopen) {
cabinet.gotoAndStop(2);
lock.unloadMovie();
s = 0;
maze = [[1, 3, 3, 3, 1], [3, 2, 3, 3, 3], [1, 3, 2, 2, 3], [3, 2, 3, 1, 1], [1, 3, 3, 3, 1]];
y = 0;
while (y <= 4) {
x = 0;
while (x <= 4) {
s++;
pipecontainer.attachMovie("pipe" + maze[y][x], "pipe" + s, pipecontainer.getNextHighestDepth(), {_x:72 + ((x * 46) / 2), _y:221 + ((y * 46) / 2)});
_root.pipecontainer["pipe" + s]._xscale = (_root.pipecontainer["pipe" + s]._yscale = 50);
_root.pipecontainer["pipe" + s].pipetype = maze[y][x];
_root.pipecontainer["pipe" + s]._rotation = _root["rottype" + s];
x++;
}
y++;
}
}
panda._x = 565.75;
panda._y = 360.6;
waypointarray = [point1];
gs.TweenFilterLite.to(gangster_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(bond_musicholder, 2, {volume:0});
Frame 89
stop();
pandascale = 4;
frame = "bond";
placename = "1924: Al Copop's Super Secret Enemy Dispatchment Room";
placename2.gotoAndPlay(1);
updateitems();
if (!beentogangster) {
panda.gotoAndPlay("chained");
pandachained = true;
beentogangster = true;
} else {
bonddoor.gotoAndStop(2);
panda._x = bonddoor._x + 1;
panda._y = bonddoor._y + 1;
}
if (blodown) {
blofeld.gotoAndStop("downfinished");
bondlever.bondlever.gotoAndStop(5);
}
if (givencat) {
blofeld.blowers.gotoAndStop("cat");
}
gs.TweenFilterLite.to(bond_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
gs.TweenFilterLite.to(gangster_musicholder, 2, {volume:0});
Frame 99
stop();
pandascale = 4;
frame = "western";
placename = "1884: The Not So Wild West";
placename2.gotoAndPlay(1);
updateitems();
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
}
if (gotcoin == false) {
cointype = random(4) + 1;
}
i = 1;
while (i <= 4) {
_root["coin" + i]._visible = false;
i++;
}
if (!readytoplay) {
_root["coin" + cointype]._visible = true;
}
cigar._visible = false;
fightstarted = false;
if (justfought) {
justfought = false;
if (brokenrules) {
_root.stallspeech = "You've got to wait until I give the signal before you start shooting. Cheating will not be tolerated!";
_root.stallspeechwait = getTimer();
_root.setstallspeech();
} else if (_root.fightlost) {
if (!twonamesdrunk) {
_root.stallspeech = "Oh dear, the Man with Two Names is clearly quicker on the draw than you. If you get him drunk you might stand a chance though...";
_root.stallspeechwait = getTimer();
_root.setstallspeech();
} else {
_root.stallspeech = "You got him drunk and he still beat you! Oh dear... you'd better try again. And be quicker this time!";
_root.stallspeechwait = getTimer();
_root.setstallspeech();
}
} else {
defeatedtwonames = true;
twonames.gotoAndStop("passedout");
cigar._visible = true;
_root.stallspeech = "Well done! Getting him drunk did the trick. He seems to have passed out now - that must have been some strong stuff you gave him!";
_root.stallspeechwait = getTimer();
_root.setstallspeech();
}
}
twonameshat._visible = false;
if (defeatedtwonames) {
twonames.gotoAndStop("passedout");
twonameshat._visible = true;
cigar._visible = true;
} else if (twonamesdrunk) {
twonames.gotoAndStop("drunk");
}
if (shotinten) {
critter6.gotoAndStop(30);
}
if (twonameshatmoved) {
critter8.gotoAndStop(30);
twonameshat.gotoAndStop(2);
}
waypointarray = [point1];
gs.TweenFilterLite.to(western_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 110
stop();
pandascale = 4;
frame = "prison";
placename = "2187: Robo-Fortress Prison";
placename2.gotoAndPlay(1);
updateitems();
for (i in itemarray) {
if ((_root["gotitem" + i] == true) && (itemarray[i][6] == frame)) {
itemarray[i][0]._name = ["deleteme" + i];
_root["deleteme" + i].unloadMovie();
}
}
i = 1;
while (i <= 4) {
if (_root["donescrew" + i]) {
_root["screw" + i]._visible = false;
}
i++;
}
if (panelmoved) {
panel.gotoAndStop(20);
}
if (givenrock) {
critter5.gotoAndStop(30);
}
if (!enigmainplace) {
prisonlock.enigma._visible = false;
}
i = 1;
while (i <= 6) {
prisonlock["symbol" + i].gotoAndStop(_root["symbol" + i]);
i++;
}
waypointarray = [point1];
gs.TweenFilterLite.to(spaceprison_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 120
stop();
TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 121
gotoAndStop ("terminator");
Frame 130
twonamesshot = false;
fightlost = false;
justfought = false;
brokenrules = false;
Frame 139
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 149
stop();
pandascale = 4;
frame = "terminator";
placename = "Present Day: Panda's HQ";
placename2.gotoAndPlay(1);
updateitems();
termready = true;
pandaspeech = "Aha! My juicer's here!";
speechwait = getTimer();
setpandaspeech();
gs.TweenFilterLite.to(gangster_musicholder, 2, {volume:70});
gs.TweenFilterLite.to(timemachine_musicholder, 2, {volume:0});
Frame 160
stop();
panda1.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=playPanda1&action=play_1174", "_blank");
};
panda2.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=playPanda2&action=play_1237", "_blank");
};
pandaBig.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=playPandaAdventure&action=play_1416", "_blank");
};
moreGamesBtn.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=endscreen", "_blank");
};
for (var i in itemarray) {
itemarray[i][0].unloadMovie();
}
itemarrows.removeMovieClip();
itemarrows.unloadMovie();
Symbol 15 MovieClip [carrypoint] Frame 1
this._visible = false;
Symbol 38 MovieClip Frame 1
stop();
Symbol 44 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 64 MovieClip [stallgame] Frame 1
stop();
Symbol 73 MovieClip Frame 1
stop();
Symbol 78 MovieClip [speech] Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.pandaspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 110 MovieClip [pipemaze] Frame 1
stop();
s = 0;
maze = [[1, 3, 3, 3, 1], [3, 2, 3, 3, 3], [1, 3, 2, 2, 3], [3, 2, 3, 1, 1], [1, 3, 3, 3, 1]];
y = 0;
while (y <= 4) {
x = 0;
while (x <= 4) {
s++;
attachMovie("pipe" + maze[y][x], "pipe" + s, this.getNextHighestDepth(), {_x:228 + (x * 46), _y:123 + (y * 46)});
_root.pipemaze["pipe" + s].pipetype = maze[y][x];
x++;
}
y++;
}
i = 1;
while (i <= 25) {
if (_root["rottype" + i] != undefined) {
_root.pipemaze["pipe" + i]._rotation = _root["rottype" + i];
} else {
_root.pipemaze["pipe" + i].rottype = random(4);
if (_root.pipemaze["pipe" + i].rottype == 0) {
_root.pipemaze["pipe" + i]._rotation = 0;
_root["rottype" + i] = 0;
}
if (_root.pipemaze["pipe" + i].rottype == 1) {
_root.pipemaze["pipe" + i]._rotation = -90;
_root["rottype" + i] = -90;
}
if (_root.pipemaze["pipe" + i].rottype == 2) {
_root.pipemaze["pipe" + i]._rotation = 90;
_root["rottype" + i] = 90;
}
if (_root.pipemaze["pipe" + i].rottype == 3) {
_root.pipemaze["pipe" + i]._rotation = 180;
_root["rottype" + i] = 180;
}
}
this.rottype = this._rotation;
_root.pipemaze["pipe" + i].i = i;
_root.pipemaze["pipe" + i].onRelease = function () {
this._rotation = this._rotation + 90;
_root["rottype" + this.i] = this._rotation;
i = 1;
while (i <= 25) {
_root["checked" + i] = false;
i++;
}
_root.pipecomplete1 = false;
exitpoint = 1;
systemended = false;
prevpipe = undefined;
_root.endpipe1 = undefined;
pipenumber = 1;
pathcheck(pipe21);
_root.pipecomplete2 = false;
i = 1;
while (i <= 25) {
_root["checked" + i] = false;
i++;
}
exitpoint = 1;
systemended = false;
prevpipe = undefined;
_root.endpipe2 = undefined;
pipenumber = 2;
pathcheck(pipe23);
_root.pipecomplete3 = false;
i = 1;
while (i <= 25) {
_root["checked" + i] = false;
i++;
}
exitpoint = 1;
systemended = false;
prevpipe = undefined;
_root.endpipe3 = undefined;
pipenumber = 3;
pathcheck(pipe25);
};
i++;
}
pathcheck = function (pipetocheck) {
checkfailed = false;
if (exitpoint == 1) {
entrypoint = 3;
}
if (exitpoint == 2) {
entrypoint = 4;
}
if (exitpoint == 3) {
entrypoint = 1;
}
if (exitpoint == 4) {
entrypoint = 2;
}
if (pipetocheck.pipetype == 1) {
if (entrypoint == 1) {
if ((_root["rottype" + pipetocheck.i] == 0) or (_root["rottype" + pipetocheck.i] == 180)) {
exitpoint = 3;
nextpipe = pipetocheck.i + 5;
if (nextpipe < 25) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
} else if (entrypoint == 2) {
if ((_root["rottype" + pipetocheck.i] == 90) or (_root["rottype" + pipetocheck.i] == -90)) {
exitpoint = 4;
nextpipe = pipetocheck.i - 1;
if (((((nextpipe != 5) && (nextpipe != 10)) && (nextpipe != 15)) && (nextpipe != 20)) && (nextpipe != 25)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
} else if (entrypoint == 3) {
if ((_root["rottype" + pipetocheck.i] == 0) or (_root["rottype" + pipetocheck.i] == 180)) {
exitpoint = 1;
nextpipe = pipetocheck.i - 5;
if (nextpipe > 0) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
} else if (entrypoint == 4) {
if ((_root["rottype" + pipetocheck.i] == 90) or (_root["rottype" + pipetocheck.i] == -90)) {
exitpoint = 2;
nextpipe = pipetocheck.i + 1;
if (((((nextpipe != 6) && (nextpipe != 11)) && (nextpipe != 16)) && (nextpipe != 21)) && (nextpipe != 26)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
}
}
if (pipetocheck.pipetype == 2) {
if (entrypoint == 1) {
exitpoint = 3;
nextpipe = pipetocheck.i + 5;
if (nextpipe < 25) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (entrypoint == 2) {
exitpoint = 4;
nextpipe = pipetocheck.i - 1;
if (((((nextpipe != 5) && (nextpipe != 10)) && (nextpipe != 15)) && (nextpipe != 20)) && (nextpipe != 25)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (entrypoint == 3) {
exitpoint = 1;
nextpipe = pipetocheck.i - 5;
if (nextpipe > 0) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (entrypoint == 4) {
exitpoint = 2;
nextpipe = pipetocheck.i + 1;
if (((((nextpipe != 6) && (nextpipe != 11)) && (nextpipe != 16)) && (nextpipe != 21)) && (nextpipe != 26)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
}
}
if (pipetocheck.pipetype == 3) {
if (entrypoint == 1) {
if (_root["rottype" + pipetocheck.i] == 180) {
exitpoint = 2;
nextpipe = pipetocheck.i + 1;
if (((((nextpipe != 6) && (nextpipe != 11)) && (nextpipe != 16)) && (nextpipe != 21)) && (nextpipe != 26)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (_root["rottype" + pipetocheck.i] == 90) {
exitpoint = 4;
nextpipe = pipetocheck.i - 1;
if (((((nextpipe != 5) && (nextpipe != 10)) && (nextpipe != 15)) && (nextpipe != 20)) && (nextpipe != 25)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
} else if (entrypoint == 2) {
if (_root["rottype" + pipetocheck.i] == 180) {
exitpoint = 1;
nextpipe = pipetocheck.i - 5;
if (nextpipe > 0) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (_root["rottype" + pipetocheck.i] == -90) {
exitpoint = 3;
nextpipe = pipetocheck.i + 5;
if (nextpipe < 25) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
} else if (entrypoint == 3) {
if (_root["rottype" + pipetocheck.i] == -90) {
exitpoint = 2;
nextpipe = pipetocheck.i + 1;
if (((((nextpipe != 6) && (nextpipe != 11)) && (nextpipe != 16)) && (nextpipe != 21)) && (nextpipe != 26)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (_root["rottype" + pipetocheck.i] == 0) {
exitpoint = 4;
nextpipe = pipetocheck.i - 1;
if (((((nextpipe != 5) && (nextpipe != 10)) && (nextpipe != 15)) && (nextpipe != 20)) && (nextpipe != 25)) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
} else if (entrypoint == 4) {
if (_root["rottype" + pipetocheck.i] == 90) {
exitpoint = 1;
nextpipe = pipetocheck.i - 5;
if (nextpipe > 0) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else if (_root["rottype" + pipetocheck.i] == 0) {
exitpoint = 3;
nextpipe = pipetocheck.i + 5;
if (nextpipe < 25) {
_root["checked" + pipetocheck.i] = true;
if (_root["checked" + nextpipe] != true) {
prevpipe = pipetocheck;
pathcheck(_root.pipemaze["pipe" + nextpipe]);
}
} else {
prevpipe = pipetocheck;
checkfailed = true;
}
} else {
checkfailed = true;
}
}
}
if ((checkfailed && (!systemended)) && (exitpoint == 1)) {
systemended = true;
_root["endpipe" + pipenumber] = prevpipe;
trace((("End Pipe " + pipenumber) + ": ") + _root["endpipe" + pipenumber]);
if (((_root.endpipe1 == pipe1) or (_root.endpipe1 == pipe3)) or (_root.endpipe1 == pipe5)) {
_root.pipecomplete1 = true;
trace("pipe1 complete");
if (_root.endpipe1 == pipe1) {
_root.firstpipe = 1;
}
if (_root.endpipe1 == pipe3) {
_root.firstpipe = 2;
}
if (_root.endpipe1 == pipe5) {
_root.firstpipe = 3;
}
}
if (((_root.endpipe2 == pipe1) or (_root.endpipe2 == pipe3)) or (_root.endpipe2 == pipe5)) {
_root.pipecomplete2 = true;
trace("pipe2 complete");
if (_root.endpipe2 == pipe1) {
_root.secondpipe = 1;
}
if (_root.endpipe2 == pipe3) {
_root.secondpipe = 2;
}
if (_root.endpipe2 == pipe5) {
_root.secondpipe = 3;
}
}
if (((_root.endpipe3 == pipe1) or (_root.endpipe3 == pipe3)) or (_root.endpipe3 == pipe5)) {
_root.pipecomplete3 = true;
trace("pipe3 complete");
if (_root.endpipe3 == pipe1) {
_root.thirdpipe = 1;
}
if (_root.endpipe3 == pipe3) {
_root.thirdpipe = 2;
}
if (_root.endpipe3 == pipe5) {
_root.thirdpipe = 3;
}
}
}
};
Symbol 127 MovieClip Frame 1
stop();
Symbol 128 MovieClip [lock2] Frame 1
stop();
Symbol 150 MovieClip [clock2] Frame 1
stop();
if (!_root.blindopen) {
clockover._visible = false;
}
Symbol 161 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 1
stop();
Symbol 174 MovieClip [box2] Frame 1
stop();
Symbol 174 MovieClip [box2] Frame 2
play();
Symbol 174 MovieClip [box2] Frame 28
stop();
_root.hook._visible = true;
_root.stringpiece._visible = true;
Symbol 213 MovieClip [herbspeech] Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.specspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1851 MovieClip [__Packages.gs.TweenLite] Frame 0
class gs.TweenLite
{
static var timerClip, _classInitted, currentTime, _gcInterval, overwriteManager;
var vars, duration, delay, combinedTimeScale, active, target, ease, tweens, _subTweens, _hst, initted, initTime, startTime, endTargetID, _hasUpdate, started, gc;
function TweenLite ($target, $duration, $vars) {
if ((timerClip._visible != false) || (!_classInitted)) {
currentTime = getTimer();
var _local3 = 999;
while (_root.getInstanceAtDepth(_local3) != undefined) {
_local3++;
}
timerClip = _root.createEmptyMovieClip("__tweenLite_mc", _local3);
timerClip._visible = false;
clearInterval(_gcInterval);
_gcInterval = setInterval(killGarbage, 2000);
timerClip.onEnterFrame = updateAll;
if (overwriteManager == undefined) {
overwriteManager = {mode:1, enabled:false};
}
_classInitted = true;
}
vars = $vars;
duration = $duration || 0.001;
delay = $vars.delay || 0;
combinedTimeScale = $vars.timeScale || 1;
active = Boolean(($duration == 0) && (delay == 0));
target = $target;
if (typeof(vars.ease) != "function") {
vars.ease = defaultEase;
}
if (vars.easeParams != undefined) {
vars.proxiedEase = vars.ease;
vars.ease = easeProxy;
}
ease = vars.ease;
if (typeof(vars.autoAlpha) == "number") {
vars._alpha = vars.autoAlpha;
vars._visible = Boolean(vars._alpha > 0);
}
tweens = [];
_subTweens = [];
_hst = (initted = false);
initTime = currentTime;
startTime = initTime + (delay * 1000);
endTargetID = getID($target, true);
var _local6 = ((($vars.overwrite == undefined) || ((!overwriteManager.enabled) && ($vars.overwrite > 1))) ? (overwriteManager.mode) : (Number($vars.overwrite)));
if ((_local6 == 1) && ($target != undefined)) {
delete masterList[endTargetID];
masterList[endTargetID] = {target:$target, tweens:[]};
}
masterList[endTargetID].tweens.push(this);
if (active || ((vars.runBackwards == true) && (vars.renderOnStart != true))) {
initTweenVals();
if (active) {
render(startTime + 1);
} else {
render(startTime);
}
if ((vars._visible != undefined) && (vars.runBackwards == true)) {
target._visible = vars._visible;
}
}
}
function initTweenVals($hrp, $reservedProps) {
var _local6 = typeof(target) == "movieclip";
var _local2;
var _local3;
if (($hrp != true) && (overwriteManager.enabled)) {
overwriteManager.manageOverwrites(this, masterList[endTargetID].tweens);
}
if (target instanceof Array) {
var _local5 = vars.endArray || ([]);
_local3 = 0;
while (_local3 < _local5.length) {
if ((target[_local3] != _local5[_local3]) && (target[_local3] != undefined)) {
tweens[tweens.length] = [target, _local3.toString(), target[_local3], _local5[_local3] - target[_local3], _local3.toString()];
}
_local3++;
}
} else {
if (((vars.tint != undefined) || (vars.removeTint == true)) && (_local6 || (target instanceof TextField))) {
var _local10 = new Color(target);
var _local7 = vars._alpha;
if (_local7 != undefined) {
delete vars._alpha;
} else {
_local7 = target._alpha;
}
if (((vars.removeTint == true) || (vars.tint == null)) || (vars.tint == "")) {
addSubTween("tint", tintProxy, _local10.getTransform(), {rb:0, gb:0, bb:0, ab:0, ra:_local7, ga:_local7, ba:_local7, aa:_local7}, {color:_local10});
} else {
addSubTween("tint", tintProxy, _local10.getTransform(), {rb:vars.tint >> 16, gb:(vars.tint >> 8) & 255, bb:vars.tint & 255, ra:0, ga:0, ba:0, aa:_local7}, {color:_local10});
}
}
if ((vars.frame != undefined) && (_local6)) {
addSubTween("frame", frameProxy, {frame:target._currentframe}, {frame:vars.frame}, {mc:target});
}
if ((vars.volume != undefined) && (_local6 || (target instanceof Sound))) {
var _local11 = (_local6 ? (new Sound(target)) : (Sound(target)));
addSubTween("volume", volumeProxy, {volume:_local11.getVolume()}, {volume:vars.volume}, {sound:_local11});
}
if ((vars._visible != undefined) && (_local6 || (target instanceof TextField))) {
addSubTween("_visible", visibleProxy, {}, {}, {tween:this});
}
for (_local2 in vars) {
if ((((((((((((((((((((_local2 == "ease") || (_local2 == "delay")) || (_local2 == "overwrite")) || (_local2 == "onComplete")) || (_local2 == "onCompleteParams")) || (_local2 == "onCompleteScope")) || (_local2 == "runBackwards")) || (_local2 == "onUpdate")) || (_local2 == "onUpdateParams")) || (_local2 == "onUpdateScope")) || (_local2 == "persist")) || (_local2 == "volume")) || ((_local2 == "timeScale") && (!(target instanceof gs.TweenLite)))) || (_local2 == "onStart")) || (_local2 == "onStartParams")) || (_local2 == "onStartScope")) || (_local2 == "renderOnStart")) || (_local2 == "proxiedEase")) || (_local2 == "easeParams")) || ($hrp && ($reservedProps.indexOf((" " + _local2) + " ") != -1))) {
} else if ((!(_local6 && (((((_local2 == "_visible") || (_local2 == "autoAlpha")) || (_local2 == "tint")) || (_local2 == "removeTint")) || (_local2 == "frame")))) && (target[_local2] != undefined)) {
if (typeof(vars[_local2]) == "number") {
tweens[tweens.length] = [target, _local2, target[_local2], vars[_local2] - target[_local2], _local2];
} else {
tweens[tweens.length] = [target, _local2, target[_local2], Number(vars[_local2]), _local2];
}
}
}
}
if (vars.runBackwards == true) {
var _local4;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local4 = tweens[_local3];
_local4[2] = _local4[2] + _local4[3];
_local4[3] = _local4[3] * -1;
_local3--;
}
}
if (vars.onUpdate != null) {
_hasUpdate = true;
}
initted = true;
}
function addSubTween($name, $proxy, $target, $props, $info) {
_subTweens[_subTweens.length] = {name:$name, proxy:$proxy, target:$target, info:$info};
for (var _local5 in $props) {
if (typeof($props[_local5]) == "number") {
tweens[tweens.length] = [$target, _local5, $target[_local5], $props[_local5] - $target[_local5], $name];
} else {
tweens[tweens.length] = [$target, _local5, $target[_local5], Number($props[_local5]), $name];
}
}
_hst = true;
}
static function to($target, $duration, $vars) {
return(new gs.TweenLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenLite($target, $duration, $vars));
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope) {
return(new gs.TweenLite($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, overwrite:0}));
}
function render($t) {
var _local4 = ($t - startTime) * 0.001;
var _local5;
var _local3;
var _local2;
if (_local4 >= duration) {
_local4 = duration;
_local5 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local5 = ease(_local4, 0, 1, duration);
}
_local2 = tweens.length - 1;
while (_local2 > -1) {
_local3 = tweens[_local2];
_local3[0][_local3[1]] = _local3[2] + (_local5 * _local3[3]);
_local2--;
}
if (_hst) {
_local2 = _subTweens.length - 1;
while (_local2 > -1) {
_subTweens[_local2].proxy(_subTweens[_local2], _local4);
_local2--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local4 == duration) {
complete(true);
}
}
static function updateAll() {
var _local4 = (currentTime = getTimer());
var _local5 = masterList;
var _local6;
var _local3;
var _local2;
var _local1;
for (_local6 in _local5) {
_local3 = _local5[_local6].tweens;
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if (_local1.active) {
_local1.render(_local4);
} else if (_local1.gc) {
_local3.splice(_local2, 1);
} else if (_local4 >= _local1.startTime) {
_local1.activate();
_local1.render(_local4);
}
_local2--;
}
}
}
function activate() {
started = (active = true);
if (!initted) {
initTweenVals();
}
if (vars.onStart != undefined) {
vars.onStart.apply(vars.onStartScope, vars.onStartParams);
}
if (duration == 0.001) {
startTime = startTime - 1;
}
}
function complete($skipRender) {
if ($skipRender != true) {
if (!initted) {
initTweenVals();
}
startTime = currentTime - ((duration * 1000) / combinedTimeScale);
render(currentTime);
return(undefined);
}
if (vars.persist != true) {
enabled = (false);
}
if (vars.onComplete) {
vars.onComplete.apply(vars.onCompleteScope, vars.onCompleteParams);
}
}
static function removeTween($t, $clear) {
if ($clear != false) {
$t.clear();
}
$t.__set__enabled(false);
}
function clear() {
tweens = [];
_subTweens = [];
vars = {};
_hst = (_hasUpdate = false);
}
static function killTweensOf($target, $complete) {
var _local5 = getID($target, true);
var _local3 = masterList[_local5];
var _local2;
var _local1;
if (_local3 != undefined) {
_local2 = _local3.length - 1;
while (_local2 > -1) {
_local1 = _local3[_local2];
if ($complete && (!_local1.gc)) {
_local1.complete(false);
}
_local1.clear();
_local2--;
}
delete masterList[_local5];
}
}
function killVars($vars) {
if (overwriteManager.enabled) {
overwriteManager.killVars($vars, vars, tweens, _subTweens, []);
}
}
static function getID($target, $lookup) {
var _local3;
if ($lookup) {
var _local1 = masterList;
if (typeof($target) == "movieclip") {
if (_local1[String($target)] != undefined) {
return(String($target));
}
_local3 = String($target);
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
for (var _local4 in _local1) {
if (_local1[_local4].target == $target) {
return(_local4);
}
}
}
_cnt++;
_local3 = "t" + _cnt;
masterList[_local3] = {target:$target, tweens:[]};
return(_local3);
}
static function killGarbage() {
var _local1 = masterList;
var _local2;
var _local3;
for (_local2 in _local1) {
if (_local1[_local2].tweens.length == 0) {
delete _local1[_local2];
}
}
}
static function defaultEase($t, $b, $c, $d) {
$t = $t / $d;
return((((-$c) * $t) * ($t - 2)) + $b);
}
function easeProxy($t, $b, $c, $d) {
return(vars.proxiedEase.apply(null, arguments.concat(vars.easeParams)));
}
static function tintProxy($o) {
$o.info.color.setTransform($o.target);
}
static function frameProxy($o) {
$o.info.mc.gotoAndStop(Math.round($o.target.frame));
}
static function volumeProxy($o) {
$o.info.sound.setVolume($o.target.volume);
}
static function visibleProxy($o, $time) {
var _local1 = $o.info.tween;
if (_local1.duration == $time) {
if ((_local1.vars.runBackwards != true) && (_local1.ease == _local1.vars.ease)) {
_local1.target._visible = _local1.vars._visible;
}
} else if (_local1.target._visible != true) {
_local1.target._visible = true;
}
}
function get enabled() {
return((gc ? false : true));
}
function set enabled($b) {
if ($b) {
if (masterList[endTargetID] == undefined) {
masterList[endTargetID] = {target:target, tweens:[this]};
} else {
var _local3 = masterList[endTargetID].tweens;
var _local4;
var _local2;
_local2 = _local3.length - 1;
while (_local2 > -1) {
if (_local3[_local2] == this) {
_local4 = true;
break;
}
_local2--;
}
if (!_local4) {
masterList[endTargetID].tweens.push(this);
}
}
}
gc = ($b ? false : true);
if (gc) {
active = false;
} else {
active = started;
}
//return(enabled);
}
static var version = 9.29;
static var killDelayedCallsTo = killTweensOf;
static var masterList = new Object();
static var _cnt = -16000;
static var _hrp = false;
}
Symbol 1852 MovieClip [__Packages.gs.TweenFilterLite] Frame 0
class gs.TweenFilterLite extends gs.TweenLite
{
var combinedTimeScale, target, _timeScale, delay, startTime, initTime, endTargetID, _clrsa, _filters, _matrix, _roundProps, vars, _cmf, _endMatrix, tweens, duration, ease, _hst, _subTweens, _hasUpdate, complete, __get__enabled;
function TweenFilterLite ($target, $duration, $vars) {
super($target, $duration, $vars);
if ((combinedTimeScale != 1) && (target instanceof gs.TweenFilterLite)) {
_timeScale = 1;
combinedTimeScale = _globalTimeScale;
} else {
_timeScale = combinedTimeScale;
combinedTimeScale = combinedTimeScale * _globalTimeScale;
}
if ((combinedTimeScale != 1) && (delay != 0)) {
startTime = initTime + (delay * (1000 / combinedTimeScale));
}
if (gs.TweenLite.version < 9.29) {
trace("TweenFilterLite error: Please update your TweenLite class or try clearing your ASO files. TweenFilterLite requires a more recent version. Download updates at http://www.TweenLite.com.");
}
}
static function to($target, $duration, $vars) {
return(new gs.TweenFilterLite($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenFilterLite($target, $duration, $vars));
}
function initTweenVals($hrp, $reservedProps) {
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(this, gs.TweenLite.masterList[endTargetID].tweens);
}
_clrsa = [];
_filters = [];
_matrix = _idMatrix.slice();
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " blurFilter glowFilter colorMatrixFilter dropShadowFilter bevelFilter roundProps ";
_roundProps = Boolean(vars.roundProps instanceof Array);
var _local3;
var _local6;
if ((typeof(target) == "movieclip") || (target instanceof TextField)) {
if (vars.blurFilter != undefined) {
_local6 = vars.blurFilter;
addFilter("blurFilter", _local6, flash.filters.BlurFilter, ["blurX", "blurY", "quality"], new flash.filters.BlurFilter(0, 0, _local6.quality || 2));
}
if (vars.glowFilter != undefined) {
_local6 = vars.glowFilter;
addFilter("glowFilter", _local6, flash.filters.GlowFilter, ["alpha", "blurX", "blurY", "color", "quality", "strength", "inner", "knockout"], new flash.filters.GlowFilter(16777215, 0, 0, 0, _local6.strength || 1, _local6.quality || 2, _local6.inner, _local6.knockout));
}
if (vars.colorMatrixFilter != undefined) {
_local6 = vars.colorMatrixFilter;
var _local9 = addFilter("colorMatrixFilter", _local6, flash.filters.ColorMatrixFilter, [], new flash.filters.ColorMatrixFilter(_matrix));
_cmf = _local9.filter;
_matrix = _cmf.matrix;
if ((_local6.matrix != undefined) && (_local6.matrix instanceof Array)) {
_endMatrix = _local6.matrix;
} else {
if (_local6.relative == true) {
_endMatrix = _matrix.slice();
} else {
_endMatrix = _idMatrix.slice();
}
_endMatrix = setBrightness(_endMatrix, _local6.brightness);
_endMatrix = setContrast(_endMatrix, _local6.contrast);
_endMatrix = setHue(_endMatrix, _local6.hue);
_endMatrix = setSaturation(_endMatrix, _local6.saturation);
_endMatrix = setThreshold(_endMatrix, _local6.threshold);
if (!isNaN(_local6.colorize)) {
_endMatrix = colorize(_endMatrix, _local6.colorize, _local6.amount);
} else if (!isNaN(_local6.color)) {
_endMatrix = colorize(_endMatrix, _local6.color, _local6.amount);
}
}
_local3 = 0;
while (_local3 < _endMatrix.length) {
if ((_matrix[_local3] != _endMatrix[_local3]) && (_matrix[_local3] != undefined)) {
tweens[tweens.length] = [_matrix, _local3.toString(), _matrix[_local3], _endMatrix[_local3] - _matrix[_local3], "colorMatrixFilter"];
}
_local3++;
}
}
if (vars.dropShadowFilter != undefined) {
_local6 = vars.dropShadowFilter;
addFilter("dropShadowFilter", _local6, flash.filters.DropShadowFilter, ["alpha", "angle", "blurX", "blurY", "color", "distance", "quality", "strength", "inner", "knockout", "hideObject"], new flash.filters.DropShadowFilter(0, 45, 0, 0, 0, 0, 1, _local6.quality || 2, _local6.inner, _local6.knockout, _local6.hideObject));
}
if (vars.bevelFilter != undefined) {
_local6 = vars.bevelFilter;
addFilter("bevelFilter", _local6, flash.filters.BevelFilter, ["angle", "blurX", "blurY", "distance", "highlightAlpha", "highlightColor", "quality", "shadowAlpha", "shadowColor", "strength"], new flash.filters.BevelFilter(0, 0, 16777215, 0.5, 0, 0.5, 2, 2, 0, _local6.quality || 2));
}
if (vars.runBackwards == true) {
var _local4;
_local3 = 0;
while (_local3 < _clrsa.length) {
_local4 = _clrsa[_local3];
_local4.sr = _local4.sr + _local4.cr;
_local4.cr = _local4.cr * -1;
_local4.sg = _local4.sg + _local4.cg;
_local4.cg = _local4.cg * -1;
_local4.sb = _local4.sb + _local4.cb;
_local4.cb = _local4.cb * -1;
_local4.f[_local4.p] = ((_local4.sr << 16) | (_local4.sg << 8)) | _local4.sb;
_local3++;
}
}
super.initTweenVals(true, $reservedProps);
} else {
super.initTweenVals($hrp, $reservedProps);
}
if (_roundProps) {
var _local5;
var _local7;
_local3 = vars.roundProps.length - 1;
while (_local3 > -1) {
_local7 = vars.roundProps[_local3];
_local5 = tweens.length - 1;
while (_local5 > -1) {
if ((tweens[_local5][1] == _local7) && (tweens[_local5][0] == target)) {
tweens[_local5][5] = true;
break;
}
_local5--;
}
_local3--;
}
}
}
function addFilter($name, $fv, $filterType, $props, $defaultFilter) {
var _local5 = {type:$filterType, name:$name};
var _local8 = target.filters;
var _local3;
var _local2;
var _local9;
var _local4;
var _local7;
_local3 = 0;
while (_local3 < _local8.length) {
if (_local8[_local3] instanceof $filterType) {
_local5.filter = _local8[_local3];
break;
}
_local3++;
}
if (_local5.filter == undefined) {
_local5.filter = $defaultFilter;
_local8[_local8.length] = _local5.filter;
target.filters = _local8;
}
_local3 = 0;
while (_local3 < $props.length) {
_local2 = $props[_local3];
if ($fv[_local2] != undefined) {
if (((_local2 == "color") || (_local2 == "highlightColor")) || (_local2 == "shadowColor")) {
_local4 = HEXtoRGB(_local5.filter[_local2]);
_local7 = HEXtoRGB($fv[_local2]);
_clrsa[_clrsa.length] = {f:_local5.filter, p:_local2, sr:_local4.rb, cr:_local7.rb - _local4.rb, sg:_local4.gb, cg:_local7.gb - _local4.gb, sb:_local4.bb, cb:_local7.bb - _local4.bb};
} else if ((((_local2 == "quality") || (_local2 == "inner")) || (_local2 == "knockout")) || (_local2 == "hideObject")) {
_local5.filter[_local2] = $fv[_local2];
} else {
if (typeof($fv[_local2]) == "number") {
_local9 = $fv[_local2] - _local5.filter[_local2];
} else {
_local9 = Number($fv[_local2]);
}
tweens[tweens.length] = [_local5.filter, _local2, _local5.filter[_local2], _local9, $name];
}
}
_local3++;
}
_filters[_filters.length] = _local5;
_hf = true;
return(_local5);
}
function render($t) {
var _local10 = (($t - startTime) * 0.001) * combinedTimeScale;
var _local5;
var _local2;
var _local3;
if (_local10 >= duration) {
_local10 = duration;
_local5 = (((ease == vars.ease) || (duration == 0.001)) ? 1 : 0);
} else {
_local5 = ease(_local10, 0, 1, duration);
}
if (!_roundProps) {
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local2[0][_local2[1]] = _local2[2] + (_local5 * _local2[3]);
_local3--;
}
} else {
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
if (_local2[5]) {
_local2[0][_local2[1]] = Math.round(_local2[2] + (_local5 * _local2[3]));
} else {
_local2[0][_local2[1]] = _local2[2] + (_local5 * _local2[3]);
}
_local3--;
}
}
if (_hf) {
var _local4;
var _local8;
var _local9;
var _local7;
_local3 = _clrsa.length - 1;
while (_local3 > -1) {
_local2 = _clrsa[_local3];
_local8 = _local2.sr + (_local5 * _local2.cr);
_local9 = _local2.sg + (_local5 * _local2.cg);
_local7 = _local2.sb + (_local5 * _local2.cb);
_local2.f[_local2.p] = ((_local8 << 16) | (_local9 << 8)) | _local7;
_local3--;
}
if (_cmf) {
_cmf.matrix = _matrix;
}
var _local6 = target.filters;
_local3 = 0;
while (_local3 < _filters.length) {
_local4 = _local6.length - 1;
while (_local4 > -1) {
if (_local6[_local4] instanceof _filters[_local3].type) {
_local6.splice(_local4, 1, _filters[_local3].filter);
break;
}
_local4--;
}
_local3++;
}
target.filters = _local6;
}
if (_hst) {
_local3 = _subTweens.length - 1;
while (_local3 > -1) {
_subTweens[_local3].proxy(_subTweens[_local3], _local10);
_local3--;
}
}
if (_hasUpdate) {
vars.onUpdate.apply(vars.onUpdateScope, vars.onUpdateParams);
}
if (_local10 == duration) {
complete(true);
}
}
function killVars($vars) {
if (gs.TweenLite.overwriteManager.enabled) {
gs.TweenLite.overwriteManager.killVars($vars, vars, tweens, _subTweens, _filters || ([]));
}
}
static function setGlobalTimeScale($scale) {
if ($scale < 1E-5) {
$scale = 1E-5;
}
var _local3 = gs.TweenLite.masterList;
var _local4;
var _local1;
var _local2;
_globalTimeScale = $scale;
for (_local4 in _local3) {
_local2 = _local3[_local4].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (_local2[_local1] instanceof gs.TweenFilterLite) {
_local2[_local1].timeScale = _local2[_local1].timeScale * 1;
}
_local1--;
}
}
}
function HEXtoRGB($n) {
return({rb:$n >> 16, gb:($n >> 8) & 255, bb:$n & 255});
}
static function colorize($m, $color, $amount) {
if (($color == undefined) || (isNaN($color))) {
return($m);
}
if ($amount == undefined) {
$amount = 1;
}
var _local3 = (($color >> 16) & 255) / 255;
var _local5 = (($color >> 8) & 255) / 255;
var _local2 = ($color & 255) / 255;
var _local4 = 1 - $amount;
var _local7 = [_local4 + (($amount * _local3) * _lumR), ($amount * _local3) * _lumG, ($amount * _local3) * _lumB, 0, 0, ($amount * _local5) * _lumR, _local4 + (($amount * _local5) * _lumG), ($amount * _local5) * _lumB, 0, 0, ($amount * _local2) * _lumR, ($amount * _local2) * _lumG, _local4 + (($amount * _local2) * _lumB), 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local7, $m));
}
static function setThreshold($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local2 = [_lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, _lumR * 256, _lumG * 256, _lumB * 256, 0, -256 * $n, 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function setHue($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n * (Math.PI/180);
var _local1 = Math.cos($n);
var _local2 = Math.sin($n);
var _local4 = [(_lumR + (_local1 * (1 - _lumR))) + (_local2 * (-_lumR)), (_lumG + (_local1 * (-_lumG))) + (_local2 * (-_lumG)), (_lumB + (_local1 * (-_lumB))) + (_local2 * (1 - _lumB)), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * 0.143), (_lumG + (_local1 * (1 - _lumG))) + (_local2 * 0.14), (_lumB + (_local1 * (-_lumB))) + (_local2 * -0.283), 0, 0, (_lumR + (_local1 * (-_lumR))) + (_local2 * (-(1 - _lumR))), (_lumG + (_local1 * (-_lumG))) + (_local2 * _lumG), (_lumB + (_local1 * (1 - _lumB))) + (_local2 * _lumB), 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1];
return(applyMatrix(_local4, $m));
}
static function setBrightness($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = ($n * 100) - 100;
return(applyMatrix([1, 0, 0, 0, $n, 0, 1, 0, 0, $n, 0, 0, 1, 0, $n, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], $m));
}
static function setSaturation($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
var _local4 = 1 - $n;
var _local3 = _local4 * _lumR;
var _local5 = _local4 * _lumG;
var _local2 = _local4 * _lumB;
var _local6 = [_local3 + $n, _local5, _local2, 0, 0, _local3, _local5 + $n, _local2, 0, 0, _local3, _local5, _local2 + $n, 0, 0, 0, 0, 0, 1, 0];
return(applyMatrix(_local6, $m));
}
static function setContrast($m, $n) {
if (($n == undefined) || (isNaN($n))) {
return($m);
}
$n = $n + 0.01;
var _local2 = [$n, 0, 0, 0, 128 * (1 - $n), 0, $n, 0, 0, 128 * (1 - $n), 0, 0, $n, 0, 128 * (1 - $n), 0, 0, 0, 1, 0];
return(applyMatrix(_local2, $m));
}
static function applyMatrix($m, $m2) {
if (((($m == undefined) || (!($m instanceof Array))) || ($m2 == undefined)) || (!($m2 instanceof Array))) {
return($m2);
}
var _local7 = [];
var _local2 = 0;
var _local5 = 0;
var _local6;
var _local1;
_local6 = 0;
while (_local6 < 4) {
_local1 = 0;
while (_local1 < 5) {
if (_local1 == 4) {
_local5 = $m[_local2 + 4];
} else {
_local5 = 0;
}
_local7[_local2 + _local1] = (((($m[_local2] * $m2[_local1]) + ($m[_local2 + 1] * $m2[_local1 + 5])) + ($m[_local2 + 2] * $m2[_local1 + 10])) + ($m[_local2 + 3] * $m2[_local1 + 15])) + _local5;
_local1++;
}
_local2 = _local2 + 5;
_local6++;
}
return(_local7);
}
function get timeScale() {
return(_timeScale);
}
function set timeScale($n) {
if ($n < 1E-5) {
$n = (_timeScale = 1E-5);
} else {
_timeScale = $n;
$n = $n * _globalTimeScale;
}
initTime = (gs.TweenLite.currentTime - ((((gs.TweenLite.currentTime - initTime) - (delay * (1000 / combinedTimeScale))) * combinedTimeScale) * (1 / $n))) - (delay * (1000 / $n));
if (startTime != 999999999999999) {
startTime = initTime + (delay * (1000 / $n));
}
combinedTimeScale = $n;
//return(timeScale);
}
function set enabled($b) {
super.__set__enabled($b);
if ($b) {
combinedTimeScale = _timeScale * _globalTimeScale;
}
//return(__get__enabled());
}
static function set globalTimeScale($n) {
setGlobalTimeScale($n);
//return(globalTimeScale);
}
static function get globalTimeScale() {
return(_globalTimeScale);
}
static var version = 9.29;
static var delayedCall = gs.TweenLite.delayedCall;
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killTweensOf;
static var _globalTimeScale = 1;
static var _idMatrix = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0];
static var _lumR = 0.212671;
static var _lumG = 0.71516;
static var _lumB = 0.072169;
var _hf = false;
}
Symbol 1853 MovieClip [__Packages.com.gskinner.sprites.CollisionDetection] Frame 0
class com.gskinner.sprites.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
var _local10 = getClipRect(p_clip1, _root);
var _local9 = getClipRect(p_clip2, _root);
if (!_local10.intersects(_local9)) {
return(null);
}
var _local4 = _local10.intersection(_local9);
var _local6 = new flash.display.BitmapData(Math.ceil(_local4.width), Math.ceil(_local4.height), false);
var _local3 = p_clip1.transform.matrix;
var _local2 = p_clip1._parent;
while (_local2 != _root) {
_local3.concat(_local2.transform.matrix);
_local2 = _local2._parent;
}
_local3.tx = _local3.tx - _local4.left;
_local3.ty = _local3.ty - _local4.top;
_local6.draw(p_clip1, _local3, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local3 = p_clip2.transform.matrix;
_local2 = p_clip2._parent;
while (_local2 != _root) {
_local3.concat(_local2.transform.matrix);
_local2 = _local2._parent;
}
_local3.tx = _local3.tx - _local4.left;
_local3.ty = _local3.ty - _local4.top;
_local6.draw(p_clip2, _local3, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local5 = _local6.getColorBoundsRect(4294967295, 4278255615);
_local6.dispose();
if (_local5.width == 0) {
return(null);
}
_local5.x = _local5.x + _local4.left;
_local5.y = _local5.y + _local4.top;
return(_local5);
}
static function getClipRect(clip, reference) {
if (reference == undefined) {
reference = clip._parent;
}
var _local1 = clip.getBounds(reference);
return(new flash.geom.Rectangle(_local1.xMin, _local1.yMin, _local1.xMax - _local1.xMin, _local1.yMax - _local1.yMin));
}
}
Symbol 1854 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}
Symbol 1855 MovieClip [__Packages.gs.OverwriteManager] Frame 0
class gs.OverwriteManager
{
static var mode, enabled;
function OverwriteManager () {
}
static function init($mode) {
if (gs.TweenLite.version < 9.29) {
trace("TweenLite warning: Your TweenLite class needs to be updated to work with OverwriteManager (or you may need to clear your ASO files). Please download and install the latest version from http://www.tweenlite.com.");
}
gs.TweenLite.overwriteManager = gs.OverwriteManager;
mode = (($mode == undefined) ? 2 : ($mode));
enabled = true;
return(mode);
}
static function manageOverwrites($tween, $targetTweens) {
var _local8 = $tween.vars;
var _local10 = ((_local8.overwrite == undefined) ? (mode) : (Number(_local8.overwrite)));
if ((_local10 < 2) || ($targetTweens == undefined)) {
return(undefined);
}
var _local6 = $tween.startTime;
var _local4 = [];
var _local2;
var _local1;
var _local3;
_local2 = $targetTweens.length - 1;
while (_local2 > -1) {
_local3 = $targetTweens[_local2];
if (((_local3 != $tween) && (_local3.startTime <= _local6)) && ((_local3.startTime + ((_local3.duration * 1000) / _local3.combinedTimeScale)) > _local6)) {
_local4[_local4.length] = _local3;
}
_local2--;
}
if (_local4.length == 0) {
return(undefined);
}
if (_local10 == AUTO) {
var _local5 = {};
for (_local1 in _local8) {
if (((((((((((((((((((_local1 == "ease") || (_local1 == "delay")) || (_local1 == "overwrite")) || (_local1 == "onComplete")) || (_local1 == "onCompleteParams")) || (_local1 == "runBackwards")) || (_local1 == "persist")) || (_local1 == "onUpdate")) || (_local1 == "onUpdateParams")) || (_local1 == "timeScale")) || (_local1 == "onStart")) || (_local1 == "onStartParams")) || (_local1 == "renderOnStart")) || (_local1 == "proxiedEase")) || (_local1 == "easeParams")) || (_local1 == "onCompleteAll")) || (_local1 == "onCompleteAllParams")) || (_local1 == "yoyo")) || (_local1 == "loop")) {
} else {
_local5[_local1] = 1;
if (_local1 == "shortRotate") {
_local5._rotation = 1;
} else if (_local1 == "removeTint") {
_local5.tint = 1;
} else if (_local1 == "autoAlpha") {
_local5.alpha = 1;
_local5._visible = 1;
}
}
}
_local2 = _local4.length - 1;
while (_local2 > -1) {
_local4[_local2].killVars(_local5);
_local2--;
}
} else {
_local2 = _local4.length - 1;
while (_local2 > -1) {
_local4[_local2].enabled = false;
_local2--;
}
}
}
static function killVars($killVars, $vars, $tweens, $subTweens, $filters) {
var _local1;
var _local6;
_local1 = $subTweens.length - 1;
while (_local1 > -1) {
if ($killVars[$subTweens[_local1].name] != undefined) {
$subTweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $tweens.length - 1;
while (_local1 > -1) {
if ($killVars[$tweens[_local1][4]] != undefined) {
$tweens.splice(_local1, 1);
}
_local1--;
}
_local1 = $filters.length - 1;
while (_local1 > -1) {
if ($killVars[$filters[_local1].name] != undefined) {
$filters.splice(_local1, 1);
}
_local1--;
}
for (_local6 in $killVars) {
delete $vars[_local6];
}
}
static var version = 0.992;
static var NONE = 0;
static var ALL = 1;
static var AUTO = 2;
static var CONCURRENT = 3;
}
Symbol 1856 MovieClip [__Packages.gs.TweenMax] Frame 0
class gs.TweenMax extends gs.TweenFilterLite
{
var _thisReverseEase, _repeatCount, vars, endTargetID, target, addSubTween, tweens, pauseTime, startTime, __set__enabled, initTime, combinedTimeScale, delay, started, activate, active, render, ease, duration, initted, _subTweens, _timeScale, killVars;
function TweenMax ($target, $duration, $vars) {
super($target, $duration, $vars);
_thisReverseEase = mx.utils.Delegate.create(this, reverseEase);
_repeatCount = 0;
if ((!isNaN(vars.yoyo)) || (!isNaN(vars.loop))) {
vars.persist = true;
}
if (gs.TweenFilterLite.version < 9.29) {
trace("TweenMax error! Please update your TweenFilterLite class or try deleting your ASO files. TweenMax requires a more recent version. Download updates at http://www.TweenMax.com.");
}
}
function initTweenVals($hrp, $reservedProps) {
$reservedProps = $reservedProps || "";
$reservedProps = $reservedProps + " hexColors bezier bezierThrough shortRotation orientToBezier quaternions onCompleteAll onCompleteAllParams yoyo loop ";
var _local3;
var _local4;
var _local16;
var _local14;
var _local5;
var _local10 = bezierProxy;
if (($hrp != true) && (gs.TweenLite.overwriteManager.enabled)) {
gs.TweenLite.overwriteManager.manageOverwrites(this, gs.TweenLite.masterList[endTargetID].tweens);
}
if (vars.orientToBezier == true) {
vars.orientToBezier = [["_x", "_y", "_rotation", 0]];
_local10 = bezierProxy2;
} else if (vars.orientToBezier instanceof Array) {
_local10 = bezierProxy2;
}
if (vars.bezier != undefined) {
_local14 = {};
_local5 = vars.bezier;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local14[_local3] == undefined) {
_local14[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local14[_local3].push(_local5[_local4][_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local14) {
if (typeof(vars[_local3]) == "number") {
_local14[_local3].push(vars[_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezier", _local10, {t:0}, {t:1}, {props:parseBeziers(_local14, false), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.bezierThrough != undefined) {
_local14 = {};
_local5 = vars.bezierThrough;
_local4 = 0;
while (_local4 < _local5.length) {
for (_local3 in _local5[_local4]) {
if (_local14[_local3] == undefined) {
_local14[_local3] = [target[_local3]];
}
if (typeof(_local5[_local4][_local3]) == "number") {
_local14[_local3].push(_local5[_local4][_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(_local5[_local4][_local3]));
}
}
_local4++;
}
for (_local3 in _local14) {
if (typeof(vars[_local3]) == "number") {
_local14[_local3].push(vars[_local3]);
} else {
_local14[_local3].push(target[_local3] + Number(vars[_local3]));
}
delete vars[_local3];
}
addSubTween("bezierThrough", _local10, {t:0}, {t:1}, {props:parseBeziers(_local14, true), target:target, orientToBezier:vars.orientToBezier});
}
if (vars.shortRotation != undefined) {
var _local9 = (vars.shortRotation - target._rotation) % 360;
if (_local9 != (_local9 % 180)) {
_local9 = ((_local9 < 0) ? (_local9 + 360) : (_local9 - 360));
}
tweens[tweens.length] = [target, "_rotation", target._rotation, _local9, "_rotation"];
}
if ((vars.hexColors != undefined) && (typeof(vars.hexColors) == "object")) {
for (_local3 in vars.hexColors) {
addSubTween("hexColors", hexColorsProxy, {r:target[_local3] >> 16, g:(target[_local3] >> 8) & 255, b:target[_local3] & 255}, {r:vars.hexColors[_local3] >> 16, g:(vars.hexColors[_local3] >> 8) & 255, b:vars.hexColors[_local3] & 255}, {prop:_local3, target:target});
}
}
super.initTweenVals(true, $reservedProps);
}
function pause() {
if (isNaN(pauseTime)) {
pauseTime = gs.TweenLite.currentTime;
startTime = 999999999999999;
_pausedTweens[endTargetID] = this;
__set__enabled(false);
}
}
function resume() {
__set__enabled(true);
if (!isNaN(pauseTime)) {
initTime = initTime + (gs.TweenLite.currentTime - pauseTime);
startTime = initTime + (delay * (1000 / combinedTimeScale));
pauseTime = NaN;
if ((!started) && (gs.TweenLite.currentTime >= startTime)) {
activate();
} else {
active = started;
}
delete _pausedTweens[endTargetID];
}
}
function restart($includeDelay) {
if ($includeDelay == true) {
initTime = gs.TweenLite.currentTime;
startTime = gs.TweenLite.currentTime + (delay * (1000 / combinedTimeScale));
} else {
startTime = gs.TweenLite.currentTime;
initTime = gs.TweenLite.currentTime - (delay * (1000 / combinedTimeScale));
}
_repeatCount = 0;
if (target != vars.onComplete) {
render(startTime);
}
pauseTime = NaN;
__set__enabled(true);
}
function reverse($adjustDuration, $forcePlay) {
ease = ((vars.ease == ease) ? (_thisReverseEase) : (vars.ease));
var _local2 = progress;
if (($adjustDuration != false) && (_local2 > 0)) {
startTime = gs.TweenLite.currentTime - ((((1 - _local2) * duration) * 1000) / combinedTimeScale);
initTime = startTime - (delay * (1000 / combinedTimeScale));
}
if ($forcePlay != false) {
if (_local2 < 1) {
resume();
} else {
restart();
}
}
}
function reverseEase($t, $b, $c, $d) {
return(vars.ease($d - $t, $b, $c, $d));
}
function invalidate($adjustStartValues) {
if (initted) {
var _local2 = progress;
if (($adjustStartValues != true) && (_local2 != 0)) {
progress = (0);
}
tweens = [];
_subTweens = [];
initTweenVals();
_timeScale = vars.timeScale || 1;
combinedTimeScale = _timeScale * gs.TweenFilterLite._globalTimeScale;
delay = vars.delay || 0;
if (isNaN(pauseTime)) {
startTime = initTime + ((delay * 1000) / combinedTimeScale);
}
if (_local2 != 0) {
if ($adjustStartValues) {
adjustStartValues();
} else {
progress = (_local2);
}
}
}
}
function setDestination($property, $value, $adjustStartValues) {
var _local6 = progress;
if ((vars[$property] != undefined) && (initted)) {
if (($adjustStartValues == false) && (_local6 != 0)) {
var _local2 = tweens.length - 1;
while (_local2 > -1) {
if (tweens[_local2][4] == $property) {
tweens[_local2][0][tweens[_local2][1]] = tweens[_local2][2];
}
_local2--;
}
}
var _local5 = {};
_local5[$property] = 1;
killVars(_local5);
}
vars[$property] = $value;
if (initted) {
var _local4 = vars;
var _local8 = tweens;
var _local7 = _subTweens;
vars = {};
tweens = [];
_subTweens = [];
vars[$property] = $value;
initTweenVals();
if ((ease != _thisReverseEase) && (typeof(_local4.ease) == "function")) {
ease = _local4.ease;
}
if (($adjustStartValues != false) && (_local6 != 0)) {
adjustStartValues();
}
vars = _local4;
tweens = _local8.concat(tweens);
_subTweens = _local7.concat(_subTweens);
}
}
function adjustStartValues() {
var _local6 = progress;
if (_local6 != 0) {
var _local5 = 1 / (1 - ease(_local6 * duration, 0, 1, duration));
var _local4;
var _local2;
var _local3;
_local3 = tweens.length - 1;
while (_local3 > -1) {
_local2 = tweens[_local3];
_local4 = _local2[2] + _local2[3];
_local2[3] = (_local4 - _local2[0][_local2[1]]) * _local5;
_local2[2] = _local4 - _local2[3];
_local3--;
}
}
}
function killProperties($names) {
var _local4 = {};
var _local2;
_local2 = $names.length - 1;
while (_local2 > -1) {
if (vars[$names[_local2]] != undefined) {
_local4[$names[_local2]] = 1;
}
_local2--;
}
killVars(_local4);
}
function complete($skipRender) {
if (((!isNaN(vars.yoyo)) && ((_repeatCount < vars.yoyo) || (vars.yoyo == 0))) || ((!isNaN(vars.loop)) && ((_repeatCount < vars.loop) || (vars.loop == 0)))) {
_repeatCount++;
if (!isNaN(vars.yoyo)) {
ease = ((vars.ease == ease) ? (reverseEase) : (vars.ease));
}
startTime = ($skipRender ? (startTime + (duration * (1000 / combinedTimeScale))) : (gs.TweenLite.currentTime));
initTime = startTime - (delay * (1000 / combinedTimeScale));
} else if (vars.persist == true) {
pause();
}
super.complete($skipRender);
}
static function to($target, $duration, $vars) {
return(new gs.TweenMax($target, $duration, $vars));
}
static function from($target, $duration, $vars) {
$vars.runBackwards = true;
return(new gs.TweenMax($target, $duration, $vars));
}
static function allTo($targets, $duration, $vars) {
trace("WARNING: TweenMax.allTo() and TweenMax.allFrom() have been deprecated in favor of the much more powerful and flexible TweenGroup class. See http://blog.greensock.com/tweengroup/ for more details. Future versions of TweenMax may not include allTo() and allFrom() (to conserve file size).");
if ($targets.length == 0) {
return([]);
}
var _local4;
var _local3;
var _local1;
var _local10;
var _local7;
var _local5 = [];
var _local9 = $vars.delayIncrement || 0;
delete $vars.delayIncrement;
if ($vars.onCompleteAll == undefined) {
_local7 = $vars;
} else {
_local7 = {};
for (_local1 in $vars) {
_local7[_local1] = $vars[_local1];
}
_local7.onCompleteParams = [[$vars.onComplete, $vars.onCompleteAll], [$vars.onCompleteParams, $vars.onCompleteAllParams], [$vars.onCompleteScope, $vars.onCompleteAllScope]];
_local7.onComplete = callbackProxy;
delete $vars.onCompleteAll;
}
delete $vars.onCompleteAllParams;
delete $vars.onCompleteAllScope;
if (_local9 == 0) {
_local5[_local5.length] = new gs.TweenMax($targets[0], $duration, _local7);
_local4 = 1;
while (_local4 < $targets.length) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
} else {
_local10 = $vars.delay || 0;
_local4 = 0;
while (_local4 < ($targets.length - 1)) {
_local3 = {};
for (_local1 in $vars) {
_local3[_local1] = $vars[_local1];
}
_local3.delay = _local10 + (_local4 * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[_local4], $duration, _local3);
_local4++;
}
_local7.delay = _local10 + (($targets.length - 1) * _local9);
_local5[_local5.length] = new gs.TweenMax($targets[$targets.length - 1], $duration, _local7);
}
return(_local5);
}
static function allFrom($targets, $duration, $vars) {
$vars.runBackwards = true;
return(allTo($targets, $duration, $vars));
}
static function callbackProxy($functions, $params, $scopes) {
var _local1 = 0;
while (_local1 < $functions.length) {
if ($functions[_local1] != undefined) {
$functions[_local1].apply($scopes[_local1], $params[_local1]);
}
_local1++;
}
}
static function sequence($target, $tweens) {
var _local1 = 0;
while (_local1 < $tweens.length) {
$tweens[_local1].target = $target;
_local1++;
}
return(multiSequence($tweens));
}
static function multiSequence($tweens) {
trace("WARNING: TweenMax.multiSequence() and TweenMax.sequence() have been deprecated in favor of the much more powerful and flexible TweenGroup class. See http://blog.greensock.com/tweengroup/ for more details. Future versions of TweenMax may not include sequence() and multiSequence() (to conserve file size).");
var _local3 = [];
var _local11 = [];
var _local14 = gs.TweenLite.overwriteManager.mode;
var _local12 = 0;
var _local4;
var _local6;
var _local9;
var _local10;
var _local7;
var _local1;
var _local5;
var _local8;
var _local2;
_local7 = 0;
while (_local7 < $tweens.length) {
_local4 = $tweens[_local7];
_local10 = _local4.time || 0;
_local1 = {};
for (_local5 in _local4) {
_local1[_local5] = _local4[_local5];
}
delete _local1.time;
_local9 = _local1.delay || 0;
_local1.delay = _local12 + _local9;
_local6 = _local1.target;
delete _local1.target;
if (_local14 == 1) {
_local8 = false;
_local2 = 0;
while (_local2 < _local3.length) {
if (_local3[_local2] == _local6) {
_local8 = true;
break;
}
_local2++;
}
if ((!_local8) && (_local1.overwrite == undefined)) {
_local3[_local3.length] = _local6;
} else {
_local1.overwrite = 2;
}
}
_local11[_local11.length] = new gs.TweenMax(_local6, _local10, _local1);
_local12 = _local12 + (_local10 + _local9);
_local7++;
}
return(_local11);
}
static function delayedCall($delay, $onComplete, $onCompleteParams, $onCompleteScope, $persist) {
return(new gs.TweenMax($onComplete, 0, {delay:$delay, onComplete:$onComplete, onCompleteParams:$onCompleteParams, onCompleteScope:$onCompleteScope, persist:$persist, overwrite:0}));
}
static function parseBeziers($props, $through) {
var _local2;
var _local1;
var _local3;
var _local4;
var _local6 = {};
if ($through) {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 2) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1] - ((_local1[2] - _local1[0]) / 4), e:_local1[1]};
_local2 = 1;
while (_local2 < (_local1.length - 1)) {
_local3[_local3.length] = {s:_local1[_local2], cp:_local1[_local2] + (_local1[_local2] - _local3[_local2 - 1].cp), e:_local1[_local2 + 1]};
_local2++;
}
} else {
_local3[_local3.length] = {s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]};
}
}
} else {
for (_local4 in $props) {
_local1 = $props[_local4];
_local3 = [];
_local6[_local4] = _local3;
if (_local1.length > 3) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1], e:(_local1[1] + _local1[2]) / 2};
_local2 = 2;
while (_local2 < (_local1.length - 2)) {
_local3[_local3.length] = {s:_local3[_local2 - 2].e, cp:_local1[_local2], e:(_local1[_local2] + _local1[_local2 + 1]) / 2};
_local2++;
}
_local3[_local3.length] = {s:_local3[_local3.length - 1].e, cp:_local1[_local1.length - 2], e:_local1[_local1.length - 1]};
} else if (_local1.length == 3) {
_local3[_local3.length] = {s:_local1[0], cp:_local1[1], e:_local1[2]};
} else if (_local1.length == 2) {
_local3[_local3.length] = {s:_local1[0], cp:(_local1[0] + _local1[1]) / 2, e:_local1[1]};
}
}
}
return(_local6);
}
static function getTweensOf($target) {
var _local2 = gs.TweenLite.masterList[gs.TweenLite.getID($target, true)].tweens;
var _local3 = [];
if (_local2 != undefined) {
var _local1 = _local2.length - 1;
while (_local1 > -1) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
_local1--;
}
}
return(_local3);
}
static function isTweening($target) {
var _local2 = getTweensOf($target);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].active && (!_local2[_local1].gc)) {
return(true);
}
_local1++;
}
return(false);
}
static function getAllTweens() {
var _local5 = gs.TweenLite.masterList;
var _local3 = [];
var _local2;
var _local4;
var _local1;
for (_local4 in _local5) {
_local2 = _local5[_local4].tweens;
_local1 = _local2.length - 1;
while (_local1 > -1) {
if (!_local2[_local1].gc) {
_local3[_local3.length] = _local2[_local1];
}
_local1--;
}
}
for (_local4 in _pausedTweens) {
_local3[_local3.length] = _pausedTweens[_local4];
}
return(_local3);
}
static function killAllTweens($complete) {
killAll($complete, true, false);
}
static function killAllDelayedCalls($complete) {
killAll($complete, false, true);
}
static function killAll($complete, $tweens, $delayedCalls) {
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local3 == $delayedCalls) || (_local3 != $tweens)) {
if ($complete) {
_local2[_local1].complete(false);
_local2[_local1].clear();
} else {
gs.TweenLite.removeTween(_local2[_local1], true);
}
}
_local1--;
}
}
static function pauseAll($tweens, $delayedCalls) {
changePause(true, $tweens, $delayedCalls);
}
static function resumeAll($tweens, $delayedCalls) {
changePause(false, $tweens, $delayedCalls);
}
static function changePause($pause, $tweens, $delayedCalls) {
if ($pause == undefined) {
$pause = true;
}
if ($tweens == undefined) {
$tweens = true;
}
if ($delayedCalls == undefined) {
$delayedCalls = false;
}
var _local2 = getAllTweens();
var _local3;
var _local1 = _local2.length - 1;
while (_local1 > -1) {
_local3 = _local2[_local1].target == _local2[_local1].vars.onComplete;
if ((_local2[_local1] instanceof gs.TweenMax) && ((_local3 == $delayedCalls) || (_local3 != $tweens))) {
_local2[_local1].paused = $pause;
}
_local1--;
}
}
static function hexColorsProxy($o, $time) {
$o.info.target[$o.info.prop] = (($o.target.r << 16) | ($o.target.g << 8)) | $o.target.b;
}
static function bezierProxy($o, $time) {
var _local6 = $o.target.t;
var _local3 = $o.info.props;
var _local8 = $o.info.target;
var _local2;
var _local1;
var _local4;
var _local7;
var _local5;
if (_local6 == 1) {
for (_local1 in _local3) {
_local2 = _local3[_local1].length - 1;
_local8[_local1] = _local3[_local1][_local2].e;
}
} else {
for (_local1 in _local3) {
_local5 = _local3[_local1].length;
if (_local6 < 0) {
_local2 = 0;
} else if (_local6 >= 1) {
_local2 = _local5 - 1;
} else {
_local2 = (_local5 * _local6) >> 0;
}
_local7 = (_local6 - (_local2 * (1 / _local5))) * _local5;
_local4 = _local3[_local1][_local2];
_local8[_local1] = _local4.s + (_local7 * (((2 * (1 - _local7)) * (_local4.cp - _local4.s)) + (_local7 * (_local4.e - _local4.s))));
}
}
}
static function bezierProxy2($o, $time) {
bezierProxy($o, $time);
var _local4 = {};
var _local3 = $o.info.target;
$o.info.target = _local4;
$o.target.t = $o.target.t + 0.01;
bezierProxy($o);
var _local5 = $o.info.orientToBezier;
var _local10;
var _local7;
var _local6;
var _local1;
var _local8;
var _local2;
_local2 = 0;
while (_local2 < _local5.length) {
_local1 = _local5[_local2];
_local8 = _local1[3] || 0;
_local7 = _local4[_local1[0]] - _local3[_local1[0]];
_local6 = _local4[_local1[1]] - _local3[_local1[1]];
_local3[_local1[2]] = (Math.atan2(_local6, _local7) * RAD2DEG) + _local8;
_local2++;
}
$o.info.target = _local3;
$o.target.t = $o.target.t - 0.01;
}
function get paused() {
return(!isNaN(pauseTime));
}
function set paused($b) {
if ($b) {
pause();
} else {
resume();
}
//return(paused);
}
function get reversed() {
return(ease == _thisReverseEase);
}
function set reversed($b) {
if (reversed != $b) {
reverse();
}
//return(reversed);
}
static function set globalTimeScale($n) {
gs.TweenFilterLite.setGlobalTimeScale($n);
//return(globalTimeScale);
}
static function get globalTimeScale() {
return(gs.TweenFilterLite._globalTimeScale);
}
function get progress() {
var _local3 = ((!isNaN(pauseTime)) ? (pauseTime) : (gs.TweenLite.currentTime));
var _local2 = ((((_local3 - initTime) * 0.001) - (delay / combinedTimeScale)) / duration) * combinedTimeScale;
if (_local2 > 1) {
return(1);
}
if (_local2 < 0) {
return(0);
}
return(_local2);
}
function set progress($n) {
startTime = gs.TweenLite.currentTime - ((duration * $n) * 1000);
initTime = startTime - (delay * (1000 / combinedTimeScale));
if (!started) {
activate();
}
render(gs.TweenLite.currentTime);
if (!isNaN(pauseTime)) {
pauseTime = gs.TweenLite.currentTime;
startTime = 999999999999999;
active = false;
}
//return(progress);
}
static var version = 3.5;
static var RAD2DEG = 57.2957795130823;
static var _overwriteMode = (gs.OverwriteManager.enabled ? (gs.OverwriteManager.mode) : (gs.OverwriteManager.init()));
static var killTweensOf = gs.TweenLite.killTweensOf;
static var killDelayedCallsTo = gs.TweenLite.killTweensOf;
static var removeTween = gs.TweenLite.removeTween;
static var _pausedTweens = {};
}
Symbol 1857 MovieClip [__Packages.mx.utils.Delegate] Frame 0
class mx.utils.Delegate extends Object
{
var func;
function Delegate (f) {
super();
func = f;
}
static function create(obj, func) {
var _local2 = function () {
var _local2 = arguments.callee.target;
var _local3 = arguments.callee.func;
return(_local3.apply(_local2, arguments));
};
_local2.target = obj;
_local2.func = func;
return(_local2);
}
function createDelegate(obj) {
return(create(obj, func));
}
}
Symbol 250 MovieClip Frame 1
stop();
Symbol 262 MovieClip [soundTracks] Frame 1
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 10
stop();
Symbol 298 MovieClip Frame 1
this._parent.stop();
this.link.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=splash", "_blank");
};
Symbol 298 MovieClip Frame 161
stop();
this._parent.play();
Symbol 303 Button
on (release) {
gotoAndStop ("Menu");
}
Symbol 447 MovieClip Frame 1
stop();
Symbol 447 MovieClip Frame 19
gotoAndStop ("idle");
Symbol 447 MovieClip Frame 29
gotoAndStop ("idle");
Symbol 447 MovieClip Frame 39
gotoAndStop ("idle");
Symbol 447 MovieClip Frame 49
gotoAndStop ("idle");
Symbol 449 MovieClip Frame 3
stop();
Symbol 454 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
stop();
Symbol 454 MovieClip Frame 8
play();
Symbol 471 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 570 MovieClip Frame 106
stop();
Symbol 584 MovieClip Frame 1
stop();
Symbol 584 MovieClip Frame 2
stop();
Symbol 589 MovieClip Frame 1
stop();
Symbol 589 MovieClip Frame 2
_root.item38._visible = true;
_root.canmove38 = true;
_root.timepiece2 = true;
Symbol 589 MovieClip Frame 40
stop();
Symbol 611 MovieClip Frame 21
stop();
Symbol 627 MovieClip Frame 1
if (_root.flamefix == true) {
this.gotoAndPlay(35);
}
Symbol 627 MovieClip Frame 36
if (_root.torchesout == true) {
this._parent.gotoAndStop(1);
} else {
gotoAndPlay (35);
}
Symbol 632 MovieClip Frame 1
stop();
Symbol 634 MovieClip Frame 1
this._visible = false;
Symbol 641 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 672 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 400));
Symbol 672 MovieClip Frame 2928
gotoAndPlay (2);
Symbol 677 MovieClip Frame 1
this._visible = false;
Symbol 677 MovieClip Frame 2
this._visible = true;
gotoAndPlay(Math.round(Math.random() * 15));
Symbol 677 MovieClip Frame 65
gotoAndPlay (2);
Symbol 693 MovieClip Frame 25
if (!this.walk) {
gotoAndPlay ("idle");
}
Symbol 693 MovieClip Frame 39
if (this.walk) {
gotoAndPlay ("shuffle");
} else {
gotoAndPlay ("idle");
}
Symbol 693 MovieClip Frame 55
if (this.walk) {
gotoAndPlay ("shuffleUp");
} else {
gotoAndPlay ("idle");
}
Symbol 693 MovieClip Frame 77
if (this.walk) {
gotoAndPlay ("walkRight");
} else {
gotoAndPlay ("idle");
}
Symbol 693 MovieClip Frame 99
if (this.walk) {
gotoAndPlay ("walkLeft");
} else {
gotoAndPlay ("idle");
}
Symbol 699 MovieClip [TMPdojq8zhb2r] Frame 1076
stop();
_parent.play();
Symbol 703 MovieClip Frame 1
if (_root.leavingtoilet) {
_root.leavingtoilet = false;
this.gotoAndStop("31");
}
Symbol 703 MovieClip Frame 31
stop();
_root.pandamoving = false;
Symbol 703 MovieClip Frame 32
_root.pandamoving = true;
Symbol 703 MovieClip Frame 60
_root.gotoAndStop("tardis");
Symbol 707 MovieClip Frame 1
this._visible = false;
Symbol 707 MovieClip Frame 2
this._visible = true;
gotoAndPlay(Math.round(Math.random() * 15));
Symbol 707 MovieClip Frame 65
gotoAndPlay (2);
Symbol 719 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 1
stop();
Symbol 728 MovieClip Frame 19
gotoAndStop ("idle");
Symbol 728 MovieClip Frame 29
gotoAndStop ("idle");
Symbol 728 MovieClip Frame 39
gotoAndStop ("idle");
Symbol 728 MovieClip Frame 49
gotoAndStop ("idle");
Symbol 730 MovieClip Frame 3
stop();
Symbol 738 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
stop();
Symbol 738 MovieClip Frame 8
play();
Symbol 740 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 754 MovieClip Frame 164
gotoAndPlay (1);
Symbol 754 MovieClip Frame 165
stop();
Symbol 775 MovieClip [panda] Frame 25
if (!this.walk) {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 47
if (this.walk) {
gotoAndPlay ("shuffle");
} else {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 63
if (this.walk) {
gotoAndPlay ("shuffleUp");
} else {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 85
if (this.walk) {
gotoAndPlay ("walkRight");
} else {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 107
if (this.walk) {
gotoAndPlay ("walkLeft");
} else {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 171
_root.fish._visible = false;
Symbol 775 MovieClip [panda] Frame 190
if (!this.walk) {
gotoAndPlay ("idle");
}
_root.canclick = true;
_root.fish.gotoAndStop("stopped");
_root.gotfish = true;
_root.fish._visible = true;
_root.pickupitem(_root.fish, _root.fishid);
Symbol 775 MovieClip [panda] Frame 285
if (((_root.waterbarrel == _root.waterparts) && (_root.alcoholbarrel == _root.alcoholparts)) && (_root.greasebarrel == _root.greaseparts)) {
trace("Taste test passed!");
_root.pickupbottle();
} else {
trace("Taste test failed");
_root.failtastetest();
}
_root.bottle2._visible = true;
_root.pandamoving = false;
Symbol 775 MovieClip [panda] Frame 286
gotoAndPlay ("idle");
Symbol 775 MovieClip [panda] Frame 296
_root.pandamoving = true;
Symbol 775 MovieClip [panda] Frame 314
gotoAndPlay ("idle");
_root.painting.gotoAndStop(2);
_root.critter2.play();
Symbol 775 MovieClip [panda] Frame 319
_root.pandamoving = true;
Symbol 775 MovieClip [panda] Frame 362
gotoAndPlay ("idle");
_root.explosion.play();
Symbol 775 MovieClip [panda] Frame 429
if (!this.walk) {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 454
if (_root.pandachained) {
gotoAndPlay ("chained");
} else if (!this.walk) {
gotoAndPlay ("idle");
}
Symbol 775 MovieClip [panda] Frame 470
gotoAndPlay ("crawl");
Symbol 775 MovieClip [panda] Frame 495
_root.juicerpanel.play();
Symbol 775 MovieClip [panda] Frame 524
gotoAndPlay ("finalIdle");
Symbol 790 MovieClip Frame 1
stop();
Symbol 790 MovieClip Frame 10
stop();
Symbol 795 Button
on (release) {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=walkthrough&action=walkthrough_1729", "_blank");
}
Symbol 800 MovieClip Frame 1
stop();
Symbol 800 MovieClip Frame 5
stop();
Symbol 803 MovieClip Frame 1
placeName.placeNameText.text = _root.placename;
Symbol 803 MovieClip Frame 81
stop();
Symbol 806 MovieClip Frame 1
_root.pandamoving = true;
Symbol 806 MovieClip Frame 31
stop();
_root.pandamoving = false;
Symbol 806 MovieClip Frame 32
_root.pandamoving = true;
Symbol 806 MovieClip Frame 60
if (_root.levelimg.levimg._currentframe == 1) {
_root.gotoAndStop("leonardo");
}
if (_root.levelimg.levimg._currentframe == 2) {
_root.gotoAndStop("trench");
}
if (_root.levelimg.levimg._currentframe == 3) {
if (_root.beentogangster == false) {
_root.gotoAndStop("gangsterscene");
} else {
_root.gotoAndStop("gangster");
}
}
if (_root.levelimg.levimg._currentframe == 4) {
_root.gotoAndStop("western");
}
if (_root.levelimg.levimg._currentframe == 5) {
_root.gotoAndStop("prison");
}
Symbol 848 MovieClip [prelevel] Frame 1
stop();
Symbol 849 MovieClip Frame 1
stop();
Symbol 851 MovieClip Frame 1
stop();
this._visible = false;
Symbol 851 MovieClip Frame 2
this._visible = true;
Symbol 854 MovieClip Frame 1
stop();
Symbol 855 MovieClip Frame 1
stop();
Symbol 856 MovieClip Frame 1
stop();
this._visible = false;
Symbol 856 MovieClip Frame 2
this._visible = true;
Symbol 863 MovieClip [medlevimg] Frame 1
stop();
Symbol 866 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 100));
Symbol 866 MovieClip Frame 477
gotoAndPlay (2);
Symbol 876 MovieClip [tardislever] Frame 1
stop();
Symbol 876 MovieClip [tardislever] Frame 5
stop();
Symbol 882 Button
on (release) {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1729&subid=logotardis", "_blank");
}
Symbol 960 MovieClip Frame 384
var rand = Math.round(Math.random() * 100);
if (rand > 90) {
gotoAndPlay(("quote" + Math.round(Math.random() * 2)) + 1);
} else {
gotoAndPlay (1);
}
Symbol 960 MovieClip Frame 420
gotoAndPlay (1);
Symbol 960 MovieClip Frame 443
gotoAndPlay (1);
Symbol 960 MovieClip Frame 470
gotoAndPlay (1);
Symbol 968 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 976 MovieClip Frame 1
stop();
Symbol 976 MovieClip Frame 8
stop();
Symbol 982 MovieClip Frame 1
stop();
Symbol 982 MovieClip Frame 2
if (_root.elvispirate) {
_root.canclick = false;
}
Symbol 982 MovieClip Frame 20
stop();
if (_root.elvispirate) {
_root.pirate.gotoAndPlay("fall");
}
Symbol 992 MovieClip Frame 1
stop();
Symbol 1028 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 1
stop();
Symbol 1033 MovieClip Frame 10
pirate.head.gotoAndstop(45);
_root.piratespeech = "";
Symbol 1033 MovieClip Frame 31
stop();
_root.goinghome = true;
_root.pandaspeech = "Haha! I think that's the last we'll see of him! I think it's time to go home and crack open a packet of hobnobs. I wonder if my new juicer will have arrived yet...";
_root.speechwait = getTimer();
_root.setpandaspeech();
Symbol 1044 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.parrotspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1046 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.piratespeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1055 MovieClip Frame 1
stop();
Symbol 1055 MovieClip Frame 30
stop();
Symbol 1056 MovieClip Frame 1
stop();
Symbol 1056 MovieClip Frame 29
_root.gotoAndStop("credits");
Symbol 1059 MovieClip Frame 1
stop();
Symbol 1073 MovieClip Frame 1
stop();
Symbol 1082 MovieClip Frame 1
stop();
Symbol 1092 MovieClip Frame 1
stop();
Symbol 1095 MovieClip Frame 1
stop();
Symbol 1095 MovieClip Frame 26
stop();
_root.painting1down();
Symbol 1103 MovieClip Frame 1
stop();
Symbol 1103 MovieClip Frame 30
stop();
_root.blindopen = true;
Symbol 1103 MovieClip Frame 40
_root.blindopen = false;
Symbol 1106 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 1
stop();
Symbol 1110 MovieClip Frame 29
_root.pandamoving = false;
Symbol 1110 MovieClip Frame 30
stop();
Symbol 1113 MovieClip Frame 1
stop();
Symbol 1113 MovieClip Frame 30
stop();
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 30
stop();
Symbol 1124 MovieClip Frame 1
stop();
Symbol 1124 MovieClip Frame 20
stop();
Symbol 1127 MovieClip Frame 1
stop();
Symbol 1145 MovieClip Frame 1
gotoAndPlay(Math.round(Math.random() * 400));
Symbol 1145 MovieClip Frame 1653
gotoAndPlay (2);
Symbol 1159 MovieClip Frame 1
stop();
Symbol 1160 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1172 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1179 MovieClip Frame 1
stop();
Symbol 1183 MovieClip Frame 1
stop();
Symbol 1205 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1205 MovieClip Frame 2
this._visible = true;
Symbol 1205 MovieClip Frame 10
_root.critter1.play();
Symbol 1205 MovieClip Frame 74
stop();
this._visible = false;
Symbol 1208 MovieClip Frame 1
stop();
Symbol 1209 MovieClip Frame 23
stop();
Symbol 1210 MovieClip Frame 1
stop();
this._visible = false;
Symbol 1210 MovieClip Frame 2
this._visible = true;
Symbol 1210 MovieClip Frame 30
_root.pandamoving = false;
Symbol 1210 MovieClip Frame 31
stop();
this._visible = true;
Symbol 1211 MovieClip Frame 1
stop();
Symbol 1211 MovieClip Frame 30
stop();
Symbol 1225 MovieClip Frame 1
stop();
Symbol 1247 MovieClip Frame 1
stop();
Symbol 1247 MovieClip Frame 60
_root.panda.gotoAndPlay("drink");
_root.bottle2._visible = false;
_root.pandamoving = true;
gotoAndStop (1);
Symbol 1251 MovieClip Frame 1
stop();
Symbol 1253 MovieClip Frame 1
stop();
Symbol 1258 MovieClip Frame 1
stop();
Symbol 1262 MovieClip Frame 1
this._visible = false;
Symbol 1284 MovieClip Frame 1
stop();
Symbol 1285 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1292 MovieClip Frame 1
stop();
Symbol 1294 MovieClip Frame 1
stop();
Symbol 1294 MovieClip Frame 49
_root.blospeech = "Thanks for getting me down from there. Sadly I seem to have lost my cat. If you can find him for me I'll give you the recipe for the world's strongest moonshine!";
_root.blospeechwait = getTimer();
_root.setblospeech();
Symbol 1294 MovieClip Frame 50
stop();
Symbol 1297 MovieClip Frame 1
stop();
Symbol 1299 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.blospeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1306 MovieClip Frame 1
this._visible = false;
Symbol 1306 MovieClip Frame 2
gotoAndPlay(Math.round(Math.random() * 200));
this._visible = true;
Symbol 1306 MovieClip Frame 209
gotoAndPlay (3);
Symbol 1318 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.twonamesspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1344 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1352 MovieClip Frame 84
_root.twonames.gotoAndStop("drunk");
Symbol 1363 MovieClip Frame 1
stop();
Symbol 1365 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.stallspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1369 MovieClip Frame 1
stop();
Symbol 1369 MovieClip Frame 30
stop();
Symbol 1374 MovieClip Frame 1
stop();
Symbol 1375 MovieClip Frame 1
stop();
Symbol 1375 MovieClip Frame 29
_root.gotoAndStop("fight");
Symbol 1433 MovieClip Frame 1
stop();
Symbol 1434 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1473 MovieClip Frame 1
stop();
Symbol 1482 MovieClip Frame 1
stop();
Symbol 1482 MovieClip Frame 39
gotoAndStop (1);
_root.circuit._visible = true;
_root.canclick = true;
Symbol 1482 MovieClip Frame 151
_root.fadeoutprison.play();
Symbol 1482 MovieClip Frame 164
stop();
Symbol 1485 MovieClip Frame 1
stop();
Symbol 1485 MovieClip Frame 20
stop();
Symbol 1509 MovieClip Frame 1
stop();
Symbol 1514 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.elvisspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 50;
this.bubble._width = tW + 20;
}
};
Symbol 1517 MovieClip Frame 1
stop();
Symbol 1517 MovieClip Frame 6
_parent.elvis.gotoAndPlay("elvispirate");
Symbol 1517 MovieClip Frame 18
stop();
Symbol 1518 MovieClip Frame 1
stop();
Symbol 1518 MovieClip Frame 29
_root.elvispirate = true;
_root.gotoAndStop("tardis");
Symbol 1652 MovieClip [TMPqxi7pyz8wf] Frame 402
stop();
_parent.play();
Symbol 1661 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1662 MovieClip Frame 1
stop();
Symbol 1662 MovieClip Frame 10
gunSound = new Sound(this);
gunSound.attachSound("gun");
gunSound.start(0, 1);
_root.fightstarted = false;
Symbol 1662 MovieClip Frame 14
_root.pandafight.gotoAndPlay("hatfall");
Symbol 1662 MovieClip Frame 26
stop();
Symbol 1662 MovieClip Frame 27
_root.gunfightwon = true;
Symbol 1662 MovieClip Frame 36
_root.fadeout.play();
stop();
Symbol 1663 MovieClip Frame 1
stop();
Symbol 1663 MovieClip Frame 45
stop();
Symbol 1663 MovieClip Frame 61
stop();
_root.fadeout.play();
_root.fightlost = true;
Symbol 1667 MovieClip Frame 100
stop();
_root.fightstarted = true;
_root.againstrules = true;
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
play();
}
};
Symbol 1667 MovieClip Frame 116
stop();
_root.againstrules = false;
if (_root.twonamesdrunk) {
var blink = Math.round(20 + (Math.random() * 20));
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if ((counter == blink) && (!_root.twonamesshot)) {
_root.twonamesfight.gotoAndPlay("shoot");
}
};
} else {
_root.twonamesfight.gotoAndPlay("shoot");
}
Symbol 1668 MovieClip Frame 1
stop();
Symbol 1668 MovieClip Frame 2
_root.gunfight = false;
Symbol 1668 MovieClip Frame 29
_root.justfought = true;
_root.gotoAndStop("western");
Symbol 1690 MovieClip Frame 1
stop();
Symbol 1696 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1699 MovieClip Frame 78
gotoAndPlay (1);
Symbol 1699 MovieClip Frame 103
gotoAndPlay ("gun");
Symbol 1707 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1712 MovieClip Frame 116
gotoAndPlay (1);
Symbol 1712 MovieClip Frame 144
gotoAndPlay ("gun");
Symbol 1734 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.parrotspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1739 MovieClip Frame 1
stop();
Symbol 1739 MovieClip Frame 19
gotoAndStop ("idle");
Symbol 1739 MovieClip Frame 29
gotoAndStop ("idle");
Symbol 1739 MovieClip Frame 39
gotoAndStop ("idle");
Symbol 1739 MovieClip Frame 49
gotoAndStop ("idle");
Symbol 1740 MovieClip Frame 3
stop();
Symbol 1744 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
stop();
Symbol 1744 MovieClip Frame 8
play();
Symbol 1746 MovieClip Frame 1
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1748 MovieClip Frame 25
if (!this.walk) {
gotoAndPlay ("idle");
}
Symbol 1748 MovieClip Frame 47
if (this.walk) {
gotoAndPlay ("shuffle");
} else {
gotoAndPlay ("idle");
}
Symbol 1748 MovieClip Frame 63
if (this.walk) {
gotoAndPlay ("shuffleUp");
} else {
gotoAndPlay ("idle");
}
Symbol 1748 MovieClip Frame 98
if (_root.pandachained) {
gotoAndPlay ("chained");
} else if (!this.walk) {
gotoAndPlay ("idle");
}
Symbol 1751 MovieClip Frame 1
this.bubble._visible = false;
this.onEnterFrame = function () {
if (_root.parrotspeech == "") {
this.bubble._visible = false;
} else {
this.bubble._visible = true;
tW = this.dynamicspeech.textWidth;
tH = this.dynamicspeech.textHeight;
this.bubble._height = tH + 30;
this.bubble._width = tW + 20;
}
};
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 59
gangster_henchman.head.gotoAndPlay("talk");
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 173
gangster_boss.head.gotoAndPlay("talk");
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 332
gangster_boss.head.gotoAndPlay("talk");
gangster_henchman.head.gotoAndPlay("talk");
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 413
panda.gotoAndPlay("shuffle");
panda.walk = true;
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 428
panda.walk = false;
gangster_boss.gotoAndPlay("gun");
gangster_henchman.gotoAndPlay("gun");
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 440
panda.head.gotoAndPlay("fart");
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 474
gangster_boss.head.gotoAndPlay("talk");
Symbol 1755 MovieClip [TMP4helqz40e9] Frame 666
_parent.gotoAndStop("bond");
stop();
Symbol 1768 MovieClip Frame 9
stop();
Symbol 1772 MovieClip Frame 1
stop();
Symbol 1772 MovieClip Frame 2
sparks.gotoAndPlay(1);
Symbol 1772 MovieClip Frame 3
sparks.gotoAndPlay(1);
Symbol 1772 MovieClip Frame 4
sparks.gotoAndPlay(1);
Symbol 1772 MovieClip Frame 20
stop();
Symbol 1787 MovieClip Frame 1
stop();
Symbol 1789 MovieClip Frame 1
stop();
eyelids.play();
var blink = Math.round(Math.random() * 200);
var counter = 1;
this.createEmptyMovieClip("blinker", this.getNextHighestDepth());
blinker.onEnterFrame = function () {
counter++;
if (counter == blink) {
eyelids.play();
counter = 0;
blink = Math.round(Math.random() * 200);
}
};
Symbol 1794 MovieClip Frame 1
this._visible = false;
stop();
Symbol 1794 MovieClip Frame 2
this._visible = true;
Symbol 1794 MovieClip Frame 79
head.gotoAndPlay("talk");
_root.canclick = true;
Symbol 1794 MovieClip Frame 360
_parent.gotoAndStop("idle");
Symbol 1797 MovieClip Frame 16
if (_root.timesshot == 1) {
_root.timemachinehq.gotoAndStop("shot1");
}
if (_root.timesshot == 2) {
_root.timemachinehq.gotoAndStop("shot2");
}
if (_root.timesshot == 3) {
_root.timemachinehq.gotoAndPlay("shot3");
}
_root.termshooting = false;
this._parent.gotoAndStop("idle");
Symbol 1806 MovieClip Frame 225
stop();
_root.fadeoutend.play();
Symbol 1807 MovieClip Frame 1
stop();
Symbol 1807 MovieClip Frame 9
stop();
Symbol 1807 MovieClip Frame 18
pirate.head.gotoAndstop(45);
Symbol 1812 MovieClip Frame 1
stop();
Symbol 1828 MovieClip Frame 1
stop();
Symbol 1828 MovieClip Frame 10
stop();
_root.pandaspeech = "Blimey! I never had time to read the instruction manual. What heppened to just a simple on/off button?";
_root.speechwait = getTimer();
_root.setpandaspeech();
Symbol 1831 MovieClip Frame 1
stop();
Symbol 1837 MovieClip Frame 1
stop();
Symbol 1837 MovieClip Frame 260
_root.gotoAndStop("endgame");