Frame 1
function cineFIn() {
cineMask.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 5;
} else {
delete this.onEnterFrame;
_root.nextFrame();
}
};
}
var qual = 2;
var fxLevel = 50;
var maxMLevel = 50;
var mPlay = false;
var iLevel = 60;
atSplash.onRelease = function () {
getURL ("http://www.arcadetown.com/index.asp?gameid=bugbuginskytower", "_blank");
};
stop();
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;
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);
}
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=7&fv=") + fv) + "&v=") + escape(getVersion())) + "&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__("8f1d9160", this, 10301, true);
Instance of Symbol 42 MovieClip "cineMask" in Frame 1
onClipEvent (load) {
this._alpha = 0;
this.stop();
}
Frame 2
onEnterFrame = function () {
var _local2 = _root.getBytesLoaded() / _root.getBytesTotal();
var _local3 = Math.round(_local2 * 100);
pLoader.loadTxt.text = ((Math.ceil(_root.getBytesLoaded() / 1000) + " / ") + Math.ceil(_root.getBytesTotal() / 1000)) + "Kb";
if (_local2 == 1) {
pLoader.loadTxt.text = "";
if (pLoader._alpha > 0) {
pLoader._alpha = pLoader._alpha - 10;
} else {
delete onEnterFrame;
nextFrame();
}
} else {
pLoader.pBar._xscale = _local3;
}
};
stop();
Frame 3
cineMask._alpha = 100;
var fxOn = false;
var introSnd = new Sound(iSnd);
var mButSnd = new Sound(iSnd);
mButSnd.attachSound("button3");
introSnd.attachSound("themeintro");
introSnd.setVolume(iLevel);
mButSnd.setVolume(fxLevel);
introSnd.start(0, 999);
cineMask.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
}
};
onEnterFrame = function () {
if (menuStart.stat) {
menuStart.play();
} else {
delete onEnterFrame;
sMenuButs();
}
};
sMenuButs = function () {
menuStart.newGBut.onRollOver = function () {
mButSnd.start();
};
menuStart.newGBut.onRelease = function () {
disButs();
menuStart.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
cineMask.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
contGame = false;
gotoAndPlay (14);
}
};
}
};
};
menuStart.contGBut.onRollOver = function () {
mButSnd.start();
};
menuStart.contGBut.onRelease = function () {
disButs();
intro._visible = false;
menuStart.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
cineMask.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
cineMask.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
contGame = true;
gotoAndPlay (15);
}
};
}
};
}
};
};
menuStart.instructBut.onRollOver = function () {
mButSnd.start();
};
menuStart.instructBut.onRelease = function () {
disButs();
sMenuCont.attachMovie("helpMC", "sMC", 500);
};
menuStart.optionsBut.onRollOver = function () {
mButSnd.start();
};
menuStart.optionsBut.onRelease = function () {
disButs();
sMenuCont.attachMovie("optionsMC", "sMC", 500);
};
menuStart.creditsBut.onRollOver = function () {
mButSnd.start();
};
menuStart.creditsBut.onRelease = function () {
disButs();
sMenuCont.attachMovie("creditsMC", "sMC", 500);
};
menuStart.mGamesBut.onRollOver = function () {
mButSnd.start();
};
menuStart.mGamesBut.onRelease = function () {
getURL ("http://www.arcadetown.com/index.asp?gameid=bugbuginskytower", "_blank");
};
cineMask.addGameBut.onRelease = function () {
getURL ("http://dl.arcadetown.com/downloads/bugbuginskytower_at.exe", "_blank");
};
cineMask.aTownBut.onRelease = function () {
getURL ("http://www.arcadetown.com/index.asp?gameid=bugbuginskytower", "_blank");
};
};
disButs = function () {
menuStart.newGBut.enabled = false;
menuStart.contGBut.enabled = false;
menuStart.instructBut.enabled = false;
menuStart.optionsBut.enabled = false;
menuStart.creditsBut.enabled = false;
menuStart.mGamesBut.enabled = false;
};
enabButs = function () {
menuStart.newGBut.enabled = true;
menuStart.contGBut.enabled = true;
menuStart.instructBut.enabled = true;
menuStart.optionsBut.enabled = true;
menuStart.creditsBut.enabled = true;
menuStart.mGamesBut.enabled = true;
};
stop();
Instance of Symbol 141 MovieClip "intro" in Frame 3
onClipEvent (load) {
this.stop();
}
Instance of Symbol 164 MovieClip "menuStart" in Frame 3
onClipEvent (load) {
stop();
}
Frame 14
intro._visible = true;
onEnterFrame = function () {
if (intro.stat) {
intro.play();
} else if (intro._alpha > 0) {
intro._alpha = intro._alpha - 10;
} else if (cineMask.stat == false) {
cineMask.play();
} else {
delete this.onEnterFrame;
_root.nextFrame();
}
};
stop();
Frame 15
play();
Frame 29
function fader(a) {
if (!mPlay) {
mPlay = true;
currentMSnd = a;
_root[a].start(0, 999);
fading = setInterval(mFaderU, 100, a);
}
}
function mFaderDIntro(c) {
if (iLevel > 0) {
iLevel = iLevel - 5;
c.setVolume(iLevel);
} else {
c.stop();
clearInterval(fadingIntro);
}
}
function mFaderU(b) {
if (mLevel < maxMLevel) {
mLevel = mLevel + 1;
_root[b].setVolume(mLevel);
} else {
clearInterval(fading);
}
}
function h2Effect(x, y) {
main.effectCont.attachMovie("h2effect", "effect", 20);
main.effectCont.effect._x = x;
main.effectCont.effect._y = y + hRad;
main.effectCont.effect.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
main.effectCont.effect.removeMovieClip();
delete this.onEnterFrame;
}
};
}
function transLR(a) {
removeTimer();
if (inOut == 1) {
inOut = 0;
prevInOut = 1;
} else {
inOut = 1;
prevInOut = 0;
}
updateArray(lvl, col - a, prevInOut);
p.pSubCont["s" + col].attachMovie((("p" + lvl) + col) + inOut, "p", scrnDpth);
bg["s" + col].attachMovie((("pBG" + lvl) + col) + inOut, "pBG", bgDpth);
fg["s" + col].attachMovie((("pFG" + lvl) + col) + inOut, "pFG", fgDpth);
main.onEnterFrame = function () {
if (px < 575) {
p.pSubCont._x = p.pSubCont._x - (a * 25);
bg._x = bg._x - (a * 25);
fg._x = fg._x - (a * 25);
px = px + 25;
h._x = h._x - ((a * 215) / 10);
hx = hx - ((a * 215) / 10);
hC.body._rotation = hC.body._rotation + (a * 5);
} else {
delete this.onEnterFrame;
if (inOut == 1) {
mainBgSnd.setVolume(maxWLevel);
} else {
mainBgSnd.setVolume(wLevel);
}
savePos(hx, hy, hyCount, p.pSubCont._y);
p.pSubCont["s" + (col - a)].p.removeMovieClip();
bg["s" + (col - a)].pBG.removeMovieClip();
fg["s" + (col - a)].pFG.removeMovieClip();
px = 0;
hAccel = 0;
vAccel = 0;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
}
function transOLR(a, b, c, d) {
removeTimer();
hx = d;
h._x = d;
updateArray(lvl, col - a, inOut);
p.pSubCont["s" + col].attachMovie((("p" + lvl) + col) + inOut, "p", scrnDpth);
bg["s" + col].attachMovie((("pBG" + lvl) + col) + inOut, "pBG", bgDpth);
fg["s" + col].attachMovie((("pFG" + lvl) + col) + inOut, "pFG", fgDpth);
main.onEnterFrame = function () {
if (px < 575) {
p.pSubCont._x = p.pSubCont._x - (a * 25);
bg._x = bg._x - (a * 25);
fg._x = fg._x - (a * 25);
px = px + 25;
h._x = h._x + b;
hx = hx + b;
hC.body._rotation = hC.body._rotation + c;
} else {
delete this.onEnterFrame;
savePos(hx, hy, hyCount, p.pSubCont._y);
p.pSubCont["s" + (col - a)].p.removeMovieClip();
bg["s" + (col - a)].pBG.removeMovieClip();
fg["s" + (col - a)].pFG.removeMovieClip();
px = 0;
hAccel = 0;
vAccel = 0;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
}
function transUD(a, b, c, d, e) {
removeTimer();
p.pSubCont["st" + col]._y = p.pSubCont["st" + col]._y + a;
bg["st" + col]._y = bg["st" + col]._y + a;
fg["st" + col]._y = fg["st" + col]._y + a;
updateArray(lvl - b, col, inOut);
p.pSubCont["st" + col].attachMovie((("p" + lvl) + col) + inOut, "p", scrnDpth + 100);
bg["st" + col].attachMovie((("pBG" + lvl) + col) + inOut, "pBG", bgDpth + 100);
fg["st" + col].attachMovie((("pFG" + lvl) + col) + inOut, "pFG", fgDpth + 100);
main.onEnterFrame = function () {
if (py < 275) {
p.pSubCont._y = p.pSubCont._y + (b * 27.5);
bg._y = bg._y + (b * 27.5);
fg._y = fg._y + (b * 27.5);
py = py + 27.5;
} else {
delete this.onEnterFrame;
p.pSubCont["st" + col].p.removeMovieClip();
bg["st" + col].pBG.removeMovieClip();
fg["st" + col].pFG.removeMovieClip();
p.pSubCont["st" + col]._y = p.pSubCont["st" + col]._y - a;
bg["st" + col]._y = bg["st" + col]._y - a;
fg["st" + col]._y = fg["st" + col]._y - a;
p.pSubCont["s" + col].p.removeMovieClip();
bg["s" + col].pBG.removeMovieClip();
fg["s" + col].pFG.removeMovieClip();
p.pSubCont["s" + col].attachMovie((("p" + lvl) + col) + inOut, "p", scrnDpth);
bg["s" + col].attachMovie((("pBG" + lvl) + col) + inOut, "pBG", bgDpth);
fg["s" + col].attachMovie((("pFG" + lvl) + col) + inOut, "pFG", fgDpth);
p.pSubCont._y = p.pSubCont._y + a;
bg._y = bg._y + a;
fg._y = fg._y + a;
py = 0;
h._y = c;
hy = c;
hyCount = d;
savePos(hx, hy, hyCount, p.pSubCont._y);
hAccel = 0;
vAccel = 0;
elevUn = false;
warpD.start();
if (((lvl - b) == 5) && (lvl == 6)) {
fading = setInterval(fader, 100, 5, bgSnd1, "down", bgSnd3, "up");
} else if (((lvl - b) == 6) && (lvl == 5)) {
fading = setInterval(fader, 100, 5, bgSnd3, "down", bgSnd1, "up");
} else if (((lvl - b) == 2) && (lvl == 1)) {
fading = setInterval(fader, 100, 5, bgSnd1, "down", bgSnd2, "up");
} else if (((lvl - b) == 1) && (lvl == 2)) {
fading = setInterval(fader, 100, 5, bgSnd2, "down", bgSnd1, "up");
} else if ((((lvl - b) == 0) && (lvl == 1)) && (col == 2)) {
fading = setInterval(fader, 100, 5, bgSnd5, "down", bgSnd2, "up");
} else if (((lvl - b) == 7) && (lvl == 8)) {
fading = setInterval(fader, 100, 1, bgSnd3, "down");
} else if (((lvl - b) == 8) && (lvl == 7)) {
fading = setInterval(fader, 100, 5, bgSnd3, "up");
}
main.onEnterFrame = function () {
if (bg["s" + col].pBG[("c" + e) + hGridx].stat) {
if (h._alpha < 100) {
bg["s" + col].pBG[("c" + e) + hGridx].play();
} else {
delete main.onEnterFrame;
bg["s" + col].pBG[("c" + e) + hGridx].stop();
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
} else if (h._alpha < 100) {
h._alpha = h._alpha + 10;
} else {
h._alpha = 100;
}
};
}
};
}
function pSubMoveI(a, b) {
memPY = p.pSubCont._y;
p.pSubCont.onEnterFrame = function () {
if ((a * this._y) > b) {
this._y = this._y - (a * 5);
bg._y = bg._y - (a * 5);
fg._y = fg._y - (a * 5);
_root.h._y = _root.h._y - (a * 5);
} else {
delete this.onEnterFrame;
_root["switch" + bgCompName.fType]();
}
};
}
function pSubMoveF(a, b) {
p.pSubCont.onEnterFrame = function () {
if (this._y != b) {
this._y = this._y + (a * 5);
bg._y = bg._y + (a * 5);
fg._y = fg._y + (a * 5);
_root.h._y = _root.h._y + (a * 5);
} else {
delete this.onEnterFrame;
gPause = false;
if (bgCompName.timer != null) {
beginTimer(bgCompName);
}
main.onEnterFrame = function () {
cHero();
};
}
};
}
function switch0() {
p.pSubCont["s" + col].p[bgCompName.affected].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
if (bgCompName.mov != 0) {
pSubMoveF(bgCompName.mov, memPY);
} else {
gPause = false;
if (bgCompName.timer != null) {
beginTimer(bgCompName);
}
main.onEnterFrame = function () {
cHero();
};
}
}
};
}
function switch1() {
p.pSubCont["s" + col].p[bgCompName.affected].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
if (bgCompName.mov != 0) {
pSubMoveF(bgCompName.mov, memPY);
} else {
gPause = false;
startPulse(bgCompName.eArray);
if (bgCompName.timer != null) {
beginTimer(bgCompName);
}
main.onEnterFrame = function () {
cHero();
};
}
}
};
}
function switch2() {
bg["s" + col].pBG[bgCompName.affected].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
}
function switch3() {
initArray[lvl][col][inOut][bgCompName.i - 1] = 1;
initArray[lvl][col][inOut][4]++;
if ((initArray[lvl][col][1][0] + (30 * bgCompName.i)) > 360) {
initArray[lvl][col][1][0] = initArray[lvl][col][1][0] + ((30 * bgCompName.i) - 360);
} else {
initArray[lvl][col][1][0] = initArray[lvl][col][1][0] + (30 * bgCompName.i);
}
var stCompRot = (30 * bgCompName.i);
var counter = 0;
bg["s" + col].pBG[bgCompName.affected].onEnterFrame = function () {
if (counter < stCompRot) {
this._rotation = this._rotation + 2;
counter = counter + 2;
} else {
delete this.onEnterFrame;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
}
function elecHitTB(a) {
b = p.pSubCont["s" + col].p["stComp" + a];
var _local2 = b.hitTest(hx, hy + hRad, true);
var _local1 = b.hitTest(hx, hy - hRad, true);
var _local3 = b.hitTest(hx, hy, true);
if ((_local2 || (_local1)) || (_local3)) {
hReset();
}
}
function elecHitLR(a) {
b = p.pSubCont["s" + col].p["stComp" + a];
var _local3 = b.hitTest(hx - hRad, hy, true);
var _local1 = b.hitTest(hx + hRad, hy, true);
var _local2 = b.hitTest(hx, hy, true);
if ((_local1 || (_local3)) || (_local2)) {
hReset();
}
}
function resetTower(c) {
delete main.onEnterFrame;
var loopCount = c.fArray.length;
i = 0;
while (i < c.fArray.length) {
tmpC = bg["s" + col].pBG[c.fArray[i]];
tmpC.hit = false;
tmpC.off = false;
tmpC.onEnterFrame = function () {
if (this.xCount < 6) {
this._x = this._x + this.dir;
this.xCount++;
} else {
delete this.onEnterFrame;
this.gotoAndStop(1);
if (!goal) {
bg["s" + col].pBG["s" + this.num].onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
loopCount--;
if (loopCount == 0) {
c.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
this.off = true;
initArray[lvl][col][inOut][0] = 0;
main.onEnterFrame = function () {
cHero();
};
}
};
}
}
};
} else {
bg["s" + col].pBG["s" + this.num]._visible = false;
loopCount--;
if (loopCount == 0) {
splitTower();
}
}
}
};
i++;
}
}
function beginTimer(a) {
timer["timer" + a.timer].attachMovie("tBar" + a.timer, "tBar", timerDepth + c);
timer["timer" + a.timer].tBar._xscale = 100 * a.mult;
timer["timer" + a.timer].tBar.onEnterFrame = function () {
if (!gPause) {
if (this._xscale > 0) {
this._xscale = this._xscale - 0.5;
} else {
this.removeMovieClip();
delete this.onEnterFrame;
if (!goal) {
if (a.fType == 4) {
resetTower(a);
} else if (a.fType == 5) {
resetE(a);
} else {
p.pSubCont["s" + col].p[a.affected].onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
if (a.fType == 1) {
stopPulse(a.eArray);
}
if (a.fType == 8) {
stopPulse2(a.eArray);
stopBlockers(a.stArray);
}
a.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
this.off = true;
}
};
}
};
}
}
}
}
};
}
function compSub14(b) {
i = 0;
while (i < b.pArray.length) {
if (bg["s" + col].pBG[b.pArray[i]].xCount == 0) {
bg["s" + col].pBG[b.pArray[i]].onEnterFrame = function () {
if (this.xCount < 6) {
this._x = this._x + this.dir;
this.xCount++;
} else {
delete this.onEnterFrame;
this.hit = false;
}
};
} else {
bg["s" + col].pBG[b.pArray[i]].onEnterFrame = function () {
if (this.xCount > 0) {
this._x = this._x - this.dir;
this.xCount--;
} else {
delete this.onEnterFrame;
this.hit = true;
}
};
}
i++;
}
}
function barricade(a) {
bg["s" + col].pBG["stComp" + a].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
}
};
}
function instructLoad(a) {
main.iCont.attachMovie("iDisp", "iDisp", iDpth);
main.iCont.iDisp.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
this.cont.attachMovie("instruct" + a, "instruct", iDpth + 10);
this.onEnterFrame = function () {
toggleKey();
if (iToggle) {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
iToggle = false;
enableBut();
this.removeMovieClip();
}
}
};
}
};
}
function mapOpen() {
iToggle = true;
if (!gPause) {
delete main.onEnterFrame;
gPause = true;
disableBut();
main.mapCont.attachMovie("mapMC", "map", mapDpth);
loadMap(inOut);
main.mapCont.map.lMap.rCont.attachMovie("robotMC", "robotMC", mapDpth + 20);
i = 0;
while (i < 9) {
if (itemArray[i]) {
main.mapCont.map.lMap.rCont.robotMC["r" + i].gotoAndStop(2);
}
i++;
}
main.mapCont.map.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
mOpen = true;
delete this.onEnterFrame;
actMBut();
}
};
}
}
function iKeyDown() {
if (Key.getCode() == 77) {
if ((!mOpen) && (!gPause)) {
mapOpen();
} else if (mOpen) {
mapClose();
}
}
}
function loadMap(h) {
main.mapCont.map.rMap.mCont.attachMovie("map" + h, "subMap", mapDpth + 10);
if (h != inOut) {
main.mapCont.map.rMap.mCont.subMap.loc._visible = false;
} else {
main.mapCont.map.rMap.mCont.subMap.loc._x = main.mapCont.map.rMap.mCont.subMap.loc._x + (col * 50);
main.mapCont.map.rMap.mCont.subMap.loc._y = main.mapCont.map.rMap.mCont.subMap.loc._y - (lvl * 31);
}
j = 0;
while (j < itemArray.length) {
if (itemArray[j]) {
main.mapCont.map.rMap.mCont.subMap["b" + j]._visible = false;
}
j++;
}
}
function hKeyDown() {
if (Key.getCode() == 65) {
if (hType != 0) {
disableBut();
if (hTypeTrack[1] == 0) {
changeType(0, 1);
} else {
changeType(0, 2);
}
}
}
if (Key.getCode() == 83) {
if ((hType != 1) && (hTypeArray[1])) {
disableBut();
if (hTypeTrack[1] == 1) {
changeType(1, 1);
} else {
changeType(1, 2);
}
}
}
if (Key.getCode() == 68) {
if ((hType != 2) && (hTypeArray[2])) {
disableBut();
if (hTypeTrack[1] == 2) {
changeType(2, 1);
} else {
changeType(2, 2);
}
}
}
}
function hChnAnim(o, p) {
menuMC.hChn.onEnterFrame = function () {
if (this.anim.h0.stat) {
if (this.anim.h0.stat1) {
this.anim.h0.play();
this.anim["h" + p].play();
} else {
delete this.onEnterFrame;
}
} else {
hTypeTrack[0] = o;
hTypeTrack[p] = hType;
this.hC0.attachMovie("hC" + o, "grphc", menuDepth);
this["hC" + p].attachMovie("hC" + hType, "grphc", menuDepth + p);
this.anim["gear" + p].gotoAndPlay(2);
}
};
}
function changeType(l, q) {
if (!gPause) {
delete main.onEnterFrame;
gPause = true;
Key.removeListener(hKeyListener);
hChnAnim(l, q);
hRot = hC.body._rotation;
hC.attachMovie(("h" + hType) + l, "body", 10);
hC.body._rotation = hRot;
main.onEnterFrame = function () {
if (hC.body.stat) {
hC.body.play();
} else {
hC.attachMovie("h" + l, "body", 10);
hC.body._rotation = hRot;
_root[("h" + l) + "Vars"]();
hType = l;
if (hType == 1) {
h.effectCont.attachMovie("h1effect", "effect", 20);
h.effectCont.effect.hEffect._alpha = 0;
hEC = h.effectCont.effect.charge;
hEC._alpha = 0;
hEC._visible = false;
} else {
delete h.effectCont.effect.onEnterFrame;
h.effectCont.effect.removeMovieClip();
}
Key.addListener(hKeyListener);
enableBut();
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
}
}
var gPause = false;
var fIn = false;
var fOut = false;
var firstRun = true;
var iToggle = false;
var mOpen = false;
var dSnd = true;
var hTypeArray = [true, false, false];
var hTypeTrack = [0, 1, 2];
var menuDepth = 400;
var hChnInd = 0;
var col = 0;
var lvl = 3;
var scrnDpth = 100;
var bgDpth = 90;
var fgDpth = 110;
var mapDpth = 200;
var iDpth = 300;
var borderL = 225;
var borderR = 75;
var B = 225;
var T = 25;
var R = 607.5;
var L = 32.5;
var hyCount = 0;
var px = 0;
var py = 0;
var hy = 0;
var hx = 0;
var hGridx = 0;
var hGridy = 0;
var subLock = false;
var mainLock = false;
var compName;
var hType = 0;
var prevH = 0;
var hRot = 0;
var dJump = false;
var chargeNum = 0;
var charge = false;
var chargeHit = false;
var lastDir = null;
var right = false;
var left = false;
var air = true;
var vAccel = 0;
var vDec = 0;
var vInc = 1;
var vSpd = 10;
var hAccel = 0;
var hDec = 0.5;
var hSpd = 10;
var hSpdAir = 6;
var hMin = (-hSpd);
var hMax = hSpd;
var hMinAir = (-hSpdAir);
var hMaxAir = hSpdAir;
var jumpConst = -12;
var jMin = -7;
var jumpAccel = jMin;
var hRad = 12;
var dToR = (Math.PI/180);
var rToD = 57.2957795130823;
var hAngle = (45 * dToR);
var hRady = (Math.round((hRad * Math.sin(hAngle)) * 10) / 10);
var hRadx = (Math.round((hRad * Math.cos(hAngle)) * 10) / 10);
var hRadB = (hRadx - 1);
var elevUn = false;
var platHit = false;
var platAccel = 0;
var memPY = 0;
var timerDepth = 420;
var goal = false;
var cloudHit = false;
var cAttach = false;
var inOut = 1;
var cArray = [[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]];
var replArray = [[[[null, null], [[9, 2, 3], [8, 2, 5], [8, 1, 5], [10, 2, 5], [10, 1, 5], [3, 9, 15], [4, 9, 15]]], [[null, null], [[6, 10, 7], null]], [[null, null], [[5, 2, 3], [4, 2, 5], [4, 1, 5], [12, 3, 18], [3, 9, 18], [21, 8, 18], [15, 15, 19]]]], [[[null, null], [[22, 6, 1], [9, 17, 4], [8, 17, 5], [8, 16, 5], [10, 17, 5], [10, 16, 5]]], [[[21, 18, 8], [1, 6, 2], [22, 3, 1], [4, 2, 3], [3, 2, 5], [3, 1, 5], [5, 2, 5], [5, 1, 5], [18, 2, 3], [17, 2, 5], [17, 1, 5], [19, 2, 5], [19, 1, 5]], [null, null]], [[null, null], [[5, 17, 4], [4, 17, 5], [4, 16, 5], [6, 17, 5], [6, 16, 5], [1, 3, 2]]]], [[[null, null], [[22, 10, 1], [21, 6, 9], [5, 9, 8]]], [[[1, 10, 2], [22, 10, 1], [2, 13, 7], [21, 2, 7], [8, 18, 7], [14, 18, 7], [18, 17, 4], [17, 17, 5], [17, 16, 5], [19, 17, 5], [19, 16, 5], [4, 17, 4], [3, 17, 5], [3, 16, 5], [5, 17, 5], [5, 16, 5]], [null, null]], [[null, null], [[1, 10, 2], [14, 2, 3], [13, 2, 5], [15, 2, 5], [13, 1, 5], [15, 1, 5]]]], [[[null, null], [[22, 18, 1], [16, 14, 8]]], [[[20, 18, 6], [1, 18, 2], [22, 18, 1], [12, 2, 3], [11, 2, 5], [13, 2, 5], [11, 1, 5], [13, 1, 5]], [[11, 12, 8], null]], [[null, null], [[13, 9, 8], [1, 18, 2], [14, 17, 4], [13, 17, 5], [15, 17, 5], [13, 16, 5], [15, 16, 5]]]], [[[[19, 5, 6], [13, 2, 7], [4, 2, 3], [5, 2, 5], [5, 1, 5], [9, 6, 7], [22, 2, 10], [16, 2, 16], [18, 2, 17]], [[3, 2, 3], [2, 2, 5], [2, 1, 5], [4, 2, 5], [4, 1, 5]]], [[[20, 6, 8], [22, 18, 1], [12, 17, 4], [11, 17, 5], [13, 17, 5], [11, 16, 5], [13, 16, 5], [22, 6, 11], [1, 2, 12], [20, 10, 13]], [[20, 12, 7], [2, 2, 8]]], [[null, null], [[1, 18, 2], [17, 2, 3], [18, 2, 5], [18, 1, 5]]]], [[[[4, 17, 4], [3, 17, 5], [3, 16, 5], [5, 17, 5], [5, 16, 5], [4, 10, 7], [4, 14, 7], [15, 10, 7], [15, 14, 7]], [[3, 17, 4], [2, 17, 5], [2, 16, 5], [4, 17, 5], [4, 16, 5], [5, 11, 7], [22, 13, 1]]], [[[1, 13, 2], [22, 18, 1], [21, 18, 10], [2, 18, 7], [8, 6, 14], [8, 9, 14], [8, 12, 14], [8, 15, 14], [15, 6, 14], [15, 9, 14], [15, 12, 14], [15, 15, 14], [11, 10, 15], [12, 10, 15]], [[10, 11, 8], null]], [[null, null], [[5, 14, 16], [7, 14, 17], [1, 18, 2], [17, 17, 4], [16, 17, 5], [16, 16, 5], [18, 17, 5], [18, 16, 5], [19, 2, 3], [18, 2, 5], [18, 1, 5], [20, 2, 5], [20, 1, 5]]]], [[[null, null], [[3, 2, 3], [2, 2, 5], [2, 1, 5], [4, 2, 5], [4, 1, 5], [7, 18, 8]]], [[null, null], [null, null]], [[null, null], [[19, 17, 4], [18, 16, 5], [18, 17, 5], [20, 17, 5], [20, 16, 5], [19, 2, 3], [18, 2, 5], [18, 1, 5], [20, 2, 5], [20, 1, 5]]]], [[[null, null], [[7, 2, 3], [8, 2, 5], [8, 1, 5], [3, 17, 4], [2, 17, 5], [2, 16, 5], [4, 17, 5], [4, 16, 5], [22, 6, 1], [22, 2, 1], [22, 18, 1], [21, 9, 7], [21, 12, 11], [19, 6, 10], [15, 6, 16], [17, 6, 17]]], [[[1, 2, 2], [1, 6, 2], [1, 18, 2], [22, 2, 1], [22, 6, 1], [22, 18, 1], [3, 15, 7], [19, 11, 7], [11, 7, 8]], [null, null]], [[null, null], [[19, 14, 8], [19, 17, 4], [18, 16, 5], [18, 17, 5], [20, 17, 5], [20, 16, 5], [1, 2, 2], [1, 6, 2], [1, 18, 2]]]], [[[null, null], [[7, 17, 4], [8, 17, 5], [8, 16, 5], [6, 17, 5], [6, 16, 5]]], [[null, null], [[16, 11, 20], null]], [[null, null], [null, null]]]];
var initArray = [[[[null, null], [0, 0]], [[null, null], [0, null]], [[null, null], [0, null]]], [[[null, null], [null, null]], [[0, null], [null, null]], [[null, null], [null, null]]], [[[null, null], [0, null]], [[0, null], [null, null]], [[null, null], [null, null]]], [[[0, 0], [0, null]], [[0, 0], [0, null]], [[null, null], [0, null]]], [[[0, 0], [null, null]], [[0, null], [0, 0]], [[null, null], [null, null]]], [[[0, 0, 0, 0, 0], [30, 0]], [[0, 0, 0], [0, null]], [[null, null], [null, null]]], [[[null, null], [0, null]], [[null, null], [null, null]], [[null, null], [null, null]]], [[[null, null], [0, 0]], [[0, 0], [null, null]], [[null, null], [0, null]]], [[[null, null], [null, null]], [[null, null], [null, null]], [[null, null], [null, null]]]];
var resetArray = [325, 104, -96, 0];
var itemArray = [false, false, false, false, false, false, false, false, false, false, false, false, false];
fxOn = true;
var currentMSnd = "bgSnd1";
var fxArray = new Array("warpU", "warpD", "eOpen", "robot1", "die1", "lSnd", "pckupSnd", "butSnd");
var mainBgSnd = new Sound(wSnd);
var bgSnd1 = new Sound(mSnd);
var warpU = new Sound(fSnd);
var warpD = new Sound(fSnd);
var eOpen = new Sound(fSnd);
var robot1 = new Sound(fSnd);
var die1 = new Sound(fSnd);
var lSnd = new Sound(fSnd);
var jSnd = new Sound(fSnd);
var landSnd = new Sound(fSnd);
var pckupSnd = new Sound(fSnd);
var butSnd = new Sound(fSnd);
var qButSnd = new Sound(fSnd);
var laserSnd = new Sound(fSnd);
var zrrOSnd = new Sound(fSnd);
var zrrCSnd = new Sound(fSnd);
var slideOSnd = new Sound(fSnd);
var slideCSnd = new Sound(fSnd);
var kDoorSnd = new Sound(fSnd);
var wLevel = 20;
var maxWLevel = 70;
var mLevel = 0;
jSnd.attachSound("jump");
warpU.attachSound("warpUp");
warpD.attachSound("warpDown");
eOpen.attachSound("electric");
robot1.attachSound("robot");
die1.attachSound("die");
lSnd.attachSound("Ltrans");
pckupSnd.attachSound("pickup");
butSnd.attachSound("button2");
qButSnd.attachSound("button");
laserSnd.attachSound("laserShot");
kDoorSnd.attachSound("keyDoorSnd");
slideOSnd.attachSound("slideo");
slideCSnd.attachSound("slidec");
zrrOSnd.attachSound("zrr2");
zrrCSnd.attachSound("zrr");
jSnd.setVolume(fxLevel);
lSnd.setVolume(fxLevel);
die.setVolume(fxLevel);
robot1.setVolume(fxLevel);
eOpen.setVolume(fxLevel);
warpU.setVolume(fxLevel);
pckupSnd.setVolume(fxLevel);
warpD.setVolume(fxLevel);
butSnd.setVolume(fxLevel);
qButSnd.setVolume(fxLevel);
laserSnd.setVolume(fxLevel);
kDoorSnd.setVolume(fxLevel);
slideOSnd.setVolume(fxLevel);
slideCSnd.setVolume(fxLevel);
zrrOSnd.setVolume(fxLevel);
zrrCSnd.setVolume(fxLevel);
mainBgSnd.attachSound("windbg");
bgSnd1.attachSound("ambientfill");
mainBgSnd.setVolume(maxWLevel);
bgSnd1.setVolume(mLevel);
mainBgSnd.start(0, 999);
fadingIntro = setInterval(mFaderDIntro, 100, introSnd);
fader(currentMSnd);
reset = function () {
_root[currentMSnd].stop();
mainBgSnd.stop();
gotoAndPlay (30);
};
bBounds = function () {
bC = p.pSubCont.hitTest(h._x, hy + hRad, true);
lL = p.hitTest(h._x - hRadB, hy + hRad, true);
lR = p.hitTest(h._x + hRadB, hy + hRad, true);
rC = p.hitTest(h._x + hRad, hy, true);
lC = p.hitTest(h._x - hRad, hy, true);
};
tBounds = function () {
tC = p.hitTest(h._x, h._y - hRad, true);
uL = p.hitTest(h._x - hRadx, h._y - hRady, true);
uR = p.hitTest(h._x + hRadx, h._y - hRady, true);
lC = p.hitTest(h._x - hRad, h._y - hRady, true);
rC = p.hitTest(h._x + hRad, h._y - hRady, true);
};
rBounds = function () {
rC = p.hitTest(h._x + hRad, h._y, true);
tC = p.hitTest(h._x, h._y - hRad, true);
uR = p.hitTest(h._x + hRadx, h._y - hRady, true);
};
lBounds = function () {
lC = p.hitTest(h._x - hRad, h._y, true);
tC = p.hitTest(h._x, h._y - hRad, true);
uL = p.hitTest(h._x - hRadx, h._y - hRady, true);
};
gCheck = function () {
if ((((hyCount + hRad) + vDec) < B) && (((hyCount + hRad) + vDec) > T)) {
vTemp = (Math.abs((hy - 40) - ((B - hyCount) % 25)) % 25) - 1;
} else {
vTemp = (((hy - 40) + hRad) % 25) - 1;
}
hy = hy - vTemp;
vDec = vDec - vTemp;
};
hPlace = function () {
if ((hyCount + hRad) > B) {
if ((hy + hRad) > B) {
h._y = h._y + vDec;
hyCount = hyCount + vDec;
} else {
tempY = B - (hyCount + hRad);
hyCount = hyCount + vDec;
vDec = vDec - tempY;
hy = hy - vDec;
h._y = h._y + tempY;
p.pSubCont._y = p.pSubCont._y - vDec;
bg._y = bg._y - vDec;
fg._y = fg._y - vDec;
}
} else if ((hyCount + hRad) > T) {
if (vDec <= 0) {
if (((hyCount + hRad) + vDec) < T) {
tempY = T - (hyCount + hRad);
hyCount = hyCount + vDec;
vDec = vDec - tempY;
hy = hy - tempY;
p.pSubCont._y = p.pSubCont._y - tempY;
bg._y = bg._y - tempY;
fg._y = fg._y - tempY;
h._y = h._y + vDec;
} else {
p.pSubCont._y = p.pSubCont._y - vDec;
bg._y = bg._y - vDec;
fg._y = fg._y - vDec;
hy = hy - vDec;
hyCount = hyCount + vDec;
}
} else if (((hyCount + hRad) + vDec) > B) {
tempY = B - (hyCount + hRad);
hyCount = hyCount + vDec;
vDec = vDec - tempY;
hy = hy - tempY;
p.pSubCont._y = p.pSubCont._y - tempY;
bg._y = bg._y - tempY;
fg._y = fg._y - tempY;
h._y = h._y + vDec;
} else {
p.pSubCont._y = p.pSubCont._y - vDec;
bg._y = bg._y - vDec;
fg._y = fg._y - vDec;
hy = hy - vDec;
hyCount = hyCount + vDec;
}
} else if (((hyCount + hRad) + vDec) < T) {
h._y = h._y + vDec;
hyCount = hyCount + vDec;
} else {
tempY = T - (hyCount + hRad);
hyCount = hyCount + vDec;
vDec = vDec - tempY;
hy = hy - vDec;
h._y = h._y + tempY;
p.pSubCont._y = p.pSubCont._y - vDec;
bg._y = bg._y - vDec;
fg._y = fg._y - vDec;
}
};
hGrid = function () {
hGridx = Math.floor((hx - 20) / 25);
hGridy = Math.floor((hyCount + 160) / 25);
};
updateArray = function (f, g, h) {
i = 0;
while (i < replArray[f][g][h].length) {
replx = replArray[f][g][h][i][0];
reply = replArray[f][g][h][i][1];
cArray[reply][replx] = 0;
i++;
}
i = 0;
while (i < replArray[lvl][col][inOut].length) {
replx = replArray[lvl][col][inOut][i][0];
reply = replArray[lvl][col][inOut][i][1];
replt = replArray[lvl][col][inOut][i][2];
cArray[reply][replx] = replt;
i++;
}
};
cCheck = function () {
if (cArray[hGridy][hGridx] == 0) {
subLock = false;
} else {
compName = p.pSubCont["s" + col].p[("c" + hGridy) + hGridx];
bgCompName = bg["s" + col].pBG[("c" + hGridy) + hGridx];
this["comp" + cArray[hGridy][hGridx]]();
}
};
cHero = function () {
if (h._y < 350) {
keyRight();
keyLeft();
hGrid();
cCheck();
if (air) {
if (hType == 2) {
if (vAccel > (jumpConst / 2)) {
keyJump();
}
}
if (vAccel < vSpd) {
if (vAccel == 0) {
if (hType == 1) {
if (charge) {
vInc = 0;
}
}
vAccel = vAccel + vInc;
}
vAccel = vAccel + vInc;
} else {
vAccel = vSpd;
}
hy = hy + vAccel;
vDec = vAccel;
tBounds();
if ((tC || (uL)) || (uR)) {
if (vAccel < 0) {
if (lC || (rC)) {
hy = hy + (4 - vAccel);
vDec = vDec + (4 - vAccel);
vAccel = vAccel + (4 - vAccel);
} else {
hy = hy + (2 - vAccel);
vDec = vDec + (2 - vAccel);
vAccel = vAccel + (2 - vAccel);
}
}
}
if (vAccel > 0.5) {
bBounds();
if ((bC || (lR && (!rC))) || (lL && (!lC))) {
vAccel = 0;
gCheck();
air = false;
}
}
hPlace();
} else {
if (firstRun) {
firstRun = false;
instructLoad(0);
}
vDec = 0;
if (hType == 2) {
dJump = true;
} else {
dJump = false;
}
bBounds();
if (((!bC) && (!lR)) && (!lL)) {
air = true;
platHit = false;
}
keyJump();
}
if (hAccel > 0) {
rBounds();
if (rC || (uR && (!tC))) {
if (hAccel > 1) {
if (!platHit) {
hAccel = hAccel + platAccel;
}
hAccel = hAccel * -0.5;
} else if (hAccel > 0) {
if (platHit) {
hx = hx - (hAccel + platAccel);
}
hAccel = 0;
}
} else if ((!left) && (!right)) {
if ((hAccel > 1) || (hAccel < -1)) {
hAccel = hAccel - hDec;
} else {
hAccel = 0;
}
}
} else if (hAccel < 0) {
lBounds();
if (lC || (uL && (!tC))) {
if (hAccel < -1) {
if (!platHit) {
hAccel = hAccel + platAccel;
}
hAccel = hAccel * -0.5;
} else if (hAccel < 0) {
if (platHit) {
hx = hx - (hAccel + platAccel);
}
hAccel = 0;
}
} else if ((!left) && (!right)) {
if ((hAccel > 1) || (hAccel < -1)) {
hAccel = hAccel + hDec;
} else {
hAccel = 0;
}
}
} else if (!platHit) {
hAccel = 0;
} else {
rBounds();
lBounds();
if (rC) {
if (platAccel > 0) {
hx = hx - platAccel;
} else {
hx = hx + platAccel;
}
} else if (lC) {
if (platAccel < 0) {
hx = hx - platAccel;
} else {
hx = hx + platAccel;
}
}
}
if (hType == 1) {
hCharge();
if (inOut == 0) {
h1Effect();
} else {
delete h.effectCont.effect.hEffect.onEnterFrame;
h.effectCont.effect.hEffect._visible = false;
}
}
cEffect();
hx = hx + hAccel;
if (col < 2) {
if (hx >= R) {
tRight();
}
}
if (col > 0) {
if (hx <= L) {
tLeft();
}
}
h._x = hx;
hC.body._rotation = hC.body._rotation + (hAccel * 2);
} else {
hReset();
}
};
keyRight = function () {
if (!firstRun) {
if (Key.isDown(39)) {
rBounds();
if (!rC) {
lastDir = true;
right = true;
left = false;
if (!air) {
if (hAccel < hMax) {
hAccel = hAccel + 1;
}
} else if (hAccel < hMaxAir) {
hAccel = hAccel + 1;
}
}
} else {
right = false;
}
}
};
keyLeft = function () {
if (!firstRun) {
if (Key.isDown(37)) {
lBounds();
if (!lC) {
lastDir = false;
left = true;
right = false;
if (!air) {
if (hAccel > hMin) {
hAccel = hAccel - 1;
}
} else if (hAccel > hMinAir) {
hAccel = hAccel - 1;
}
}
} else {
left = false;
}
}
};
keyJump = function () {
if (!firstRun) {
if (Key.isDown(38)) {
platHit = false;
if (air) {
if (dJump) {
if (hType == 2) {
jSnd.start();
dJump = false;
h2Effect(h._x, h._y);
vAccel = jumpConst;
}
}
} else {
air = true;
jSnd.start();
h.onEnterFrame = function () {
if (Key.isDown(38)) {
if (jumpAccel > jumpConst) {
jumpAccel = jumpAccel - 2;
vAccel = jumpAccel;
} else {
jumpAccel = jumpConst;
vAccel = jumpAccel;
delete this.onEnterFrame;
jumpAccel = jMin;
}
} else {
delete this.onEnterFrame;
jumpAccel = jMin;
}
};
}
}
}
};
toggleKey = function () {
if (Key.getCode() == 88) {
iToggle = true;
}
};
h1Effect = function () {
if (!air) {
h.effectCont.effect.hEffect.onEnterFrame = function () {
if (hAccel != 0) {
this._visible = true;
this._xscale = 30 * hAccel;
this._alpha = 10 * Math.abs(hAccel);
} else {
this._visible = false;
}
};
} else {
delete h.effectCont.effect.hEffect.onEnterFrame;
h.effectCont.effect.hEffect._visible = false;
}
};
hCharge = function () {
if (Key.isDown(32)) {
if (hAccel >= 1.5) {
hAccel = hAccel - 1.5;
} else if (hAccel <= -1.5) {
hAccel = hAccel + 1.5;
} else {
hAccel = 0;
}
hEC._visible = true;
hEC.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 2;
if (this._alpha > 40) {
charge = true;
chargeHit = true;
chargeNum = Math.round(this._alpha / 8);
jumpConst = -8;
if ((vAccel < 0) || (!air)) {
vInc = 0.5;
}
}
}
};
} else {
hEC.onEnterFrame = function () {
if (charge) {
if (!air) {
if (lastDir) {
hAccel = chargeNum + 6;
} else if (!lastDir) {
hAccel = -1 * (chargeNum + 6);
}
hDec = 2;
} else {
vSpd = 20;
vInc = 1.5;
vAccel = 18;
jumpConst = -10;
}
chargeNum = 0;
charge = false;
} else if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
delete this.onEnterFrame;
chargeHit = false;
h1Vars();
this._visible = false;
}
};
}
};
cEffect = function () {
if (cloudHit && (!cAttach)) {
h.cEffect.attachMovie("hCeffect", "effect", 30);
cAttach = true;
h.cEffect.effect._alpha = 40;
cloudDeg();
h.cEffect.effect.onEnterFrame = function () {
if ((hAccel == 0) && (vAccel == 0)) {
this._visible = false;
} else {
this._visible = true;
}
this._rotation = tempDeg;
if (!fg["s" + col].pFG.hitTest(hx, hy, true)) {
cloudDeg();
cloudHit = false;
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
delete this.onEnterFrame;
this.removeMovieClip();
cAttach = false;
}
}
};
}
};
cloudDeg = function () {
if (vAccel > 0) {
tempDeg = 180;
if (hAccel > 2) {
tempDeg = tempDeg - 45;
} else if (hAccel < -2) {
tempDeg = tempDeg + 45;
}
} else {
tempDeg = 0;
if (hAccel > 2) {
tempDeg = tempDeg + 45;
} else if (hAccel < -2) {
tempDeg = tempDeg - 45;
}
}
};
comp1 = function () {
delete main.onEnterFrame;
saveGame();
gPause = true;
goal = false;
col++;
transLR(1);
};
comp2 = function () {
delete main.onEnterFrame;
saveGame();
gPause = true;
goal = false;
col--;
transLR(-1);
};
tRight = function () {
delete main.onEnterFrame;
saveGame();
gPause = true;
goal = false;
col++;
if (col != 2) {
transOLR(1, -24, 2.5, R);
} else {
transOLR(1, -22.5, 2.5, R);
}
};
tLeft = function () {
delete main.onEnterFrame;
saveGame();
gPause = true;
goal = false;
col--;
if (col != 0) {
transOLR(-1, 24, -2.5, L);
} else {
transOLR(-1, 22.5, -2.5, L);
}
};
comp3 = function () {
if (elevUn) {
delete main.onEnterFrame;
saveGame();
goal = false;
gPause = true;
warpU.start();
main.onEnterFrame = function () {
if (bgCompName.stat) {
if (h._alpha > 0) {
bgCompName.play();
} else {
delete main.onEnterFrame;
lvl++;
transUD(-475, 1, 279, 279, 17);
}
} else if (h._alpha > 0) {
h._alpha = h._alpha - 10;
} else {
h._alpha = 0;
bgCompName.play();
}
};
}
};
comp4 = function () {
if (elevUn) {
delete main.onEnterFrame;
saveGame();
goal = false;
gPause = true;
warpU.start();
main.onEnterFrame = function () {
if (bgCompName.stat) {
if (h._alpha > 0) {
bgCompName.play();
} else {
delete main.onEnterFrame;
lvl--;
transUD(475, -1, 104, -96, 2);
}
} else if (h._alpha > 0) {
h._alpha = h._alpha - 10;
} else {
h._alpha = 0;
bgCompName.play();
}
};
}
};
comp5 = function () {
elevUn = true;
};
comp6 = function () {
if (bgCompName.off) {
if (itemArray[bgCompName.type]) {
delete main.onEnterFrame;
gPause = true;
bgCompName.off = false;
bgCompName.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
compName.gotoAndStop(2);
initArray[lvl][col][inOut][this.i] = 1;
cArray[hGridy][hGridx] = 0;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
}
}
};
comp19 = function () {
if (bgCompName.off) {
delete main.onEnterFrame;
buttonSnd.start();
bgCompName.off = false;
hAccel = 0;
vAccel = 0;
gPause = true;
bg["s" + col].pBG.stComp0.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
}
};
bgCompName.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
pSubMoveI(-1, this.pyArray[this.stPointer]);
}
};
}
};
comp7 = function () {
if (bgCompName.off) {
buttonSnd.start();
delete main.onEnterFrame;
bgCompName.off = false;
hAccel = 0;
gPause = true;
bgCompName.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
if (this.mov != 0) {
pSubMoveI(this.mov, this.py);
} else {
_root["switch" + this.fType]();
}
}
};
}
};
switch4 = function () {
i = 0;
while (i < bgCompName.fArray.length) {
bg["s" + col].pBG[bgCompName.fArray[i]].off = true;
i++;
}
j = 0;
while (j < bgCompName.pArray.length) {
bg["s" + col].pBG[bgCompName.pArray[j]].onEnterFrame = function () {
if (this.xCount > 0) {
this._x = this._x - this.dir;
this.xCount--;
} else {
delete this.onEnterFrame;
this.hit = true;
}
};
j++;
}
gPause = false;
beginTimer(bgCompName);
main.onEnterFrame = function () {
cHero();
};
};
switch5 = function () {
i = 0;
while (i < 3) {
bg["s" + col].pBG["e" + i].onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 5;
} else {
delete this.onEnterFrame;
bg["s" + col].pBG.char.off = false;
bg["s" + col].pBG.char.suck = true;
}
};
i++;
}
bg["s" + col].pBG[bgCompName.eArray[bgCompName.stPointer]].onEnterFrame = function () {
if (this.yCount > 0) {
this._y++;
this.yCount--;
} else {
delete this.onEnterFrame;
pSubMoveF(-1, memPY);
}
};
};
switch6 = function () {
bg["s" + col].pBG[bgCompName.affected].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
p.pSubCont["s" + col].p[bgCompName.affected].gotoAndStop(2);
initArray[lvl][col][inOut][0] = 2;
initArray[0][0][1][0] = 1;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
}
};
};
switch7 = function () {
initArray[7][1][0][0] = 1;
gPause = false;
main.onEnterFrame = function () {
cHero();
};
};
switch8 = function () {
p.pSubCont["s" + col].p[bgCompName.affected].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
gPause = false;
startBlockers(bgCompName.stArray);
startPulse2(bgCompName.eArray);
beginTimer(bgCompName);
main.onEnterFrame = function () {
cHero();
};
}
};
};
startPulse = function (a) {
i = 0;
while (i < a.length) {
j = a[i];
p.pSubCont["s" + col].p["stComp" + j].play();
p.pSubCont["s" + col].p["stComp" + j].onEnterFrame = function () {
var _local3 = this.hitTest(hx, hy + hRad, true);
var _local2 = this.hitTest(hx, hy - hRad, true);
var _local4 = this.hitTest(hx, hy, true);
if ((_local3 || (_local2)) || (_local4)) {
hReset();
}
};
i++;
}
};
startPulse2 = function (a) {
i = 0;
while (i < a.length) {
j = a[i];
p.pSubCont["s" + col].p["stComp" + j].play();
p.pSubCont["s" + col].p["stComp" + j].onEnterFrame = function () {
var _local4 = this.hitTest(hx + hRad, hy, true);
var _local2 = this.hitTest(hx - hRad, hy, true);
var _local3 = this.hitTest(hx, hy, true);
if ((_local4 || (_local2)) || (_local3)) {
hReset();
}
};
i++;
}
};
startBlockers = function (b) {
i = 0;
while (i < b.length) {
p.pSubCont["s" + col].p["stComp" + b[i]].play();
p.pSubCont["s" + col].p["stComp" + b[i]].onEnterFrame = function () {
if (this.stat) {
var _local3 = this.hitTest(hx, hy + hRad, true);
var _local2 = this.hitTest(hx, hy - hRad, true);
var _local4 = this.hitTest(hx, hy, true);
if ((_local3 || (_local2)) || (_local4)) {
hReset();
}
}
};
i++;
}
};
stopPulse = function (a) {
i = 0;
while (i < a.length) {
j = a[i];
p.pSubCont["s" + col].p["stComp" + j].gotoAndStop(36);
delete p.pSubCont["s" + col].p["stComp" + j].onEnterFrame;
i++;
}
};
stopPulse2 = function (a) {
i = 0;
while (i < a.length) {
j = a[i];
p.pSubCont["s" + col].p["stComp" + j].gotoAndStop(1);
delete p.pSubCont["s" + col].p["stComp" + j].onEnterFrame;
i++;
}
};
stopBlockers = function (b) {
i = 0;
while (i < b.length) {
j = b[i];
if ((j == 2) || (j == 4)) {
p.pSubCont["s" + col].p["stComp" + j].gotoAndStop(40);
} else {
p.pSubCont["s" + col].p["stComp" + j].gotoAndStop(1);
}
delete p.pSubCont["s" + col].p["stComp" + j].onEnterFrame;
i++;
}
};
splitTower = function () {
var movCount = 0;
main.onEnterFrame = function () {
if (movCount < 25) {
bg["s" + col].pBG.tL._x--;
bg["s" + col].pBG.tR._x++;
p.pSubCont["s" + col].p.tL._x--;
p.pSubCont["s" + col].p.tR._x++;
if (h.hitTest(p.pSubCont["s" + col].p.tL)) {
h._x--;
hx--;
}
if (h.hitTest(p.pSubCont["s" + col].p.tR)) {
h._x++;
hx++;
}
movCount++;
} else {
delete this.onEnterFrame;
main.onEnterFrame = function () {
cHero();
};
}
};
};
resetE = function (a) {
i = 0;
while (i < 3) {
bg["s" + col].pBG["e" + i].onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
} else {
delete this.onEnterFrame;
if (a.stPointer == 3) {
bg["s" + col].pBG.eDisch.gotoAndPlay(2);
}
bg["s" + col].pBG.char.off = true;
bg["s" + col].pBG.char.suck = true;
}
};
i++;
}
if (bg["s" + col].pBG[a.eArray[a.stPointer]].yCount == 0) {
bg["s" + col].pBG[a.eArray[a.stPointer]].onEnterFrame = function () {
if (this.yCount < 10) {
this._y--;
this.yCount++;
} else {
delete this.onEnterFrame;
}
};
}
bg["s" + col].pBG.stComp0.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
a.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
this.off = true;
}
};
}
};
};
removeTimer = function () {
i = 0;
while (i < 4) {
timer["timer" + i].tBar.removeMovieClip();
i++;
}
};
comp8 = function () {
bgc = bg["s" + col].pBG[("c" + hGridy) + hGridx];
if (itemArray[bgc.j] == false) {
pckupSnd.start();
initArray[lvl][col][inOut][bgc.i] = 1;
itemArray[bgc.j] = true;
saveGame();
cArray[hGridy][hGridx] = 0;
bgc.onEnterFrame = function () {
if (this._alpha > 0) {
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
this.go();
}
};
}
};
comp9 = function () {
if (hType == 1) {
if (vSpd == 20) {
vSpd = 12;
cArray[hGridy][hGridx] = 0;
compName.gotoAndStop(2);
bgCompName.play();
}
}
};
comp10 = function () {
if (hType == 1) {
if (chargeHit && ((compName.dir * hAccel) > 10)) {
cArray[hGridy][hGridx] = 0;
initArray[lvl][col][inOut][compName.i] = 1;
compName.gotoAndStop(2);
bgCompName.play();
}
}
};
comp11 = function () {
compName.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
cArray[hGridy][hGridx] = 0;
}
};
};
comp12 = function () {
fg["s" + col].pFG.onEnterFrame = function () {
if (this._alpha > 0) {
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
}
};
};
comp13 = function () {
fg["s" + col].pFG.onEnterFrame = function () {
if (this._alpha < 100) {
this._alpha = this._alpha + 10;
} else {
delete this.onEnterFrame;
this._alpha = 100;
}
};
};
comp14 = function () {
if (bgCompName.hit) {
bgCompName.hit = false;
if (bgCompName.off) {
bgCompName.off = false;
} else {
bgCompName.off = true;
}
bgCompName.onEnterFrame = function () {
if (this.off == false) {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
bg["s" + col].pBG["s" + this.num].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
initArray[lvl][col][inOut][0]++;
if (initArray[lvl][col][inOut][0] < 8) {
compSub14(bgCompName);
} else {
goal = true;
hAccel = 0;
delete main.onEnterFrame;
cArray[18][2] = 0;
removeTimer();
resetTower(bg["s" + col].pBG.c182);
}
}
};
}
} else if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
bg["s" + col].pBG["s" + this.num].onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
initArray[lvl][col][inOut][0]--;
compSub14(bgCompName);
}
};
}
};
}
};
comp15 = function () {
bgc = bg["s" + col].pBG.bIcon;
if (itemArray[bgc.j] == false) {
initArray[lvl][col][inOut][bgc.i] = 1;
itemArray[bgc.j] = true;
saveGame();
cArray[hGridy][hGridx] = 0;
cArray[hGridy][hGridx + 1] = 0;
cArray[hGridy][hGridx - 1] = 0;
delete main.onEnterFrame;
bgc.onEnterFrame = function () {
if (this._alpha > 0) {
this._xscale = this._xscale + 1;
this._yscale = this._yscale + 1;
this._alpha = this._alpha - 10;
} else {
delete this.onEnterFrame;
this.go();
}
};
}
};
comp16 = function () {
if (hType == 1) {
if (chargeHit && (hAccel > 10)) {
cArray[hGridy][hGridx] = 0;
cArray[hGridy][hGridx + 2] = 0;
p.pSubCont["s" + col].p[("c" + hGridy) + (hGridx + 1)].gotoAndStop(2);
bg["s" + col].pBG[("c" + hGridy) + (hGridx + 1)].play();
}
}
};
comp17 = function () {
if (hType == 1) {
if (chargeHit && (hAccel < -10)) {
cArray[hGridy][hGridx] = 0;
cArray[hGridy][hGridx - 2] = 0;
p.pSubCont["s" + col].p[("c" + hGridy) + (hGridx - 1)].gotoAndStop(2);
bg["s" + col].pBG[("c" + hGridy) + (hGridx - 1)].play();
}
}
};
comp18 = function () {
if (bgCompName.off) {
if (bgCompName.yCount == 0) {
bgCompName.off = false;
bgCompName.onEnterFrame = function () {
if (this.stat) {
this.play();
} else if (this.yCount < 10) {
this._y--;
this.yCount++;
} else {
delete this.onEnterFrame;
bg["s" + col].pBG.c1515.stPointer++;
bg["s" + col].pBG.char.pointer++;
cArray[hGridy][hGridx] = 0;
timer["timer" + bg["s" + col].pBG.c1515.timer].tBar.removeMovieClip();
delete timer["timer" + bg["s" + col].pBG.c1515.timer].tBar.onEnterFrame;
if (bg["s" + col].pBG.c1515.stPointer == 3) {
initArray[lvl][col][inOut][0] = 1;
initArray[0][1][1][0] = 1;
cArray[15][15] = 0;
}
resetE(bg["s" + col].pBG.c1515);
}
};
bg["s" + col].pBG["stComp" + bgCompName.num].onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
}
};
}
}
};
comp20 = function () {
delete main.onEnterFrame;
fOut = false;
dCover.onEnterFrame = function () {
if (!fOut) {
fadeOut(100, 5);
} else {
delete this.onEnterFrame;
endCont.attachMovie("end", "end", 400);
}
};
};
laserFlash = function () {
fIn = true;
fOut = false;
dCover.onEnterFrame = function () {
if (!fOut) {
fadeOut(70, 10);
} else if (fIn) {
fadeIn();
} else {
delete this.onEnterFrame;
fOut = false;
}
};
};
comp777 = function () {
p.pSubCont["s" + col].p.removeMovieClip();
bg["s" + col].pBG.removeMovieClip();
p.pSubCont._x = p.pSubCont._x - 575;
bg._x = bg._x - 575;
fg._x = fg._x - 575;
savePos(565, 104, -96, 0);
lvl = 4;
col = 1;
inOut = 1;
updateArray(3, 0, 1);
initiate();
};
initMap = function () {
menuMC.navLens.onRollOver = function () {
this._alpha = 70;
};
menuMC.navLens.onRollOut = function () {
this._alpha = 100;
};
menuMC.navLens.onRelease = function () {
mapOpen();
};
};
mapClose = function () {
main.mapCont.map.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
mOpen = false;
enableBut();
gPause = false;
main.onEnterFrame = function () {
cHero();
};
this.removeMovieClip();
}
};
};
actMBut = function () {
main.mapCont.map.rMap.inBut.onRelease = function () {
loadMap(0);
};
main.mapCont.map.rMap.outBut.onRelease = function () {
loadMap(1);
};
main.mapCont.map.rMap.closeBut.onRelease = function () {
mapClose();
};
};
savePos = function (a, b, c, d) {
resetArray[0] = a;
resetArray[1] = b;
resetArray[2] = c;
resetArray[3] = d;
};
hReset = function () {
if (dSnd) {
die1.start();
dSnd = false;
}
saveGame();
delete main.onEnterFrame;
main.onEnterFrame = function () {
if (!fOut) {
fadeOut(100, 10);
} else {
delete this.onEnterFrame;
gPause = true;
removeTimer();
p.pSubCont["s" + col].p.removeMovieClip();
bg["s" + col].pBG.removeMovieClip();
fIn = true;
fOut = false;
dSnd = true;
initiate();
}
};
};
hStart = function () {
elevUn = false;
hx = resetArray[0];
h._x = hx;
hy = resetArray[1];
h._y = hy;
hyCount = resetArray[2];
p.pSubCont._y = resetArray[3];
bg._y = resetArray[3];
fg._y = resetArray[3];
hAccel = 0;
vAccel = 0;
vDec = 0;
};
fadeIn = function () {
if (dCover._alpha > 0) {
dCover._alpha = dCover._alpha - 10;
} else {
dCover._alpha = 0;
fIn = false;
}
};
fadeOut = function (a, b) {
if (dCover._alpha < a) {
dCover._alpha = dCover._alpha + b;
} else {
dCover._alpha = a;
fOut = true;
}
};
menuPause = function () {
if (gPause == false) {
gPause = true;
delete main.onEnterFrame;
}
};
resume = function () {
gPause = false;
main.onEnterFrame = function () {
controller();
};
};
controller = function () {
cHero();
};
initiate = function () {
p = main.pCont;
bg = main.bgCont;
fg = main.fgCont;
updateArray(lvl, col, inOut);
p.pSubCont["s" + col].attachMovie((("p" + lvl) + col) + inOut, "p", scrnDpth);
bg["s" + col].attachMovie((("pBG" + lvl) + col) + inOut, "pBG", bgDpth);
fg["s" + col].attachMovie((("pFG" + lvl) + col) + inOut, "pFG", fgDpth);
hStart();
main.onEnterFrame = function () {
if (fIn) {
fadeIn();
} else {
gPause = false;
controller();
}
};
};
hChnLoad = function () {
i = 0;
while (i < hTypeArray.length) {
if (hTypeArray[i]) {
menuMC.hChn["hC" + i].attachMovie("hC" + i, "grphc", menuDepth + i);
menuMC.hChn["hC" + i].enabled;
} else {
menuMC.hChn["hC" + i].enabled = false;
}
menuMC.hChn.anim["h" + i].gotoAndPlay(2);
i++;
}
};
h0Vars = function () {
vSpd = 10;
vInc = 1;
hDec = 0.5;
hSpd = 10;
hMin = -hSpd;
hMax = hSpd;
hMinAir = -hSpdAir;
hMaxAir = hSpdAir;
jumpConst = -12;
};
h1Vars = function () {
vSpd = 12;
vInc = 1.5;
hDec = 0.5;
hSpd = 8;
hMin = -hSpd;
hMax = hSpd;
hMinAir = -hSpdAir;
hMaxAir = hSpdAir;
jumpConst = -10;
};
h2Vars = function () {
vSpd = 8;
vInc = 1;
hDec = 0.5;
hSpd = 12;
hMin = -hSpd;
hMax = hSpd;
hMinAir = -hSpdAir;
hMaxAir = hSpdAir;
jumpConst = -14;
};
menu.hChn.hC1.onRollOver = function () {
this._alpha = 70;
};
menuMC.hChn.hC1.onRollOut = function () {
this._alpha = 100;
};
menuMC.hChn.hC1.onRelease = function () {
disableBut();
changeType(hTypeTrack[1], 1);
this._alpha = 100;
};
menuMC.hChn.hC2.onRollOver = function () {
this._alpha = 70;
};
menuMC.hChn.hC2.onRollOut = function () {
this._alpha = 100;
};
menuMC.hChn.hC2.onRelease = function () {
disableBut();
changeType(hTypeTrack[2], 2);
this._alpha = 100;
};
disableBut = function () {
menuMC.hChn.hC1.enabled = false;
menuMC.hChn.hC2.enabled = false;
menuMC.navLens.enabled = false;
menuMC.help2But.enabled = false;
menuMC.options2But.enabled = false;
menuMC.quitBut.enabled = false;
};
enableBut = function () {
if (hTypeArray[1]) {
menuMC.hChn.hC1.enabled = true;
}
if (hTypeArray[2]) {
menuMC.hChn.hC2.enabled = true;
}
menuMC.navLens.enabled = true;
menuMC.help2But.enabled = true;
menuMC.options2But.enabled = true;
menuMC.quitBut.enabled = true;
};
var hKeyListener = new Object();
hKeyListener.onKeyDown = hKeyDown;
var iKeyListener = new Object();
iKeyListener.onKeyDown = iKeyDown;
Key.addListener(hKeyListener);
main.hCont.attachMovie("hero", "hero", 0);
h = main.hCont.hero;
h.bodyCont.attachMovie("h" + hType, "body", 10);
hC = h.bodyCont;
MovieClip.prototype.setCookie = function (dataFile, varName, value) {
var _local1;
_local1.clear(dataFile);
_local1 = SharedObject.getLocal(dataFile);
_local1.data[varName] = value;
_local1.flush();
};
MovieClip.prototype.getCookie = function (dataFile, varName) {
var _local1 = SharedObject.getLocal(dataFile);
return(_local1.data[varName]);
};
saveGame = function () {
setCookie("arrayCookie", "iArray", initArray);
setCookie("arrayCookie", "itArray", itemArray);
setCookie("arrayCookie", "bArray", hTypeArray);
};
if (contGame) {
firstRun = false;
initArray = getCookie("arrayCookie", "iArray");
itemArray = getCookie("arrayCookie", "itArray");
hTypeArray = getCookie("arrayCookie", "bArray");
if (itemArray[12]) {
menuMC.navLens.gotoAndStop(25);
initMap();
Key.addListener(iKeyListener);
}
if (itemArray[9]) {
menuMC.keyLens.gotoAndStop(25);
}
}
initiate();
hChnLoad();
stop();
Instance of Symbol 1136 MovieClip "dCover" in Frame 29
onClipEvent (load) {
this._alpha = 0;
}
Frame 30
gotoAndStop (3);
Symbol 24 MovieClip Frame 54
_root.cineFIn();
stop();
Instance of Symbol 34 MovieClip in Symbol 35 MovieClip Frame 1
on (release) {
getURL ("http://www.arcadetown.com/index.asp?gameid=enqbate", "_blank");
}
Symbol 42 MovieClip Frame 1
stat = false;
Symbol 42 MovieClip Frame 18
stat = true;
stop();
Symbol 42 MovieClip Frame 26
stat = false;
stop();
Symbol 42 MovieClip Frame 42
stat = true;
stop();
Symbol 141 MovieClip Frame 1
this.stat = true;
Symbol 141 MovieClip Frame 290
this.stat = false;
stop();
Symbol 164 MovieClip Frame 1
stat = true;
Symbol 164 MovieClip Frame 25
stat = false;
stop();
Symbol 230 MovieClip [helpMC] Frame 1
closeBut.onRelease = function () {
_root.enabButs();
_root.enableBut();
this._parent.removeMovieClip();
};
nextBut.onRelease = function () {
this._parent.nextFrame();
};
stop();
Symbol 230 MovieClip [helpMC] Frame 2
prevBut.onRelease = function () {
this._parent.prevFrame();
};
closeBut.onRelease = function () {
_root.enabButs();
_root.enableBut();
this._parent.removeMovieClip();
};
nextBut.onRelease = function () {
this._parent.nextFrame();
};
Symbol 230 MovieClip [helpMC] Frame 3
prevBut.onRelease = function () {
this._parent.prevFrame();
};
closeBut.onRelease = function () {
_root.enabButs();
_root.enableBut();
this._parent.removeMovieClip();
};
Symbol 239 MovieClip [creditsMC] Frame 1
closeBut.onRelease = function () {
_root.enabButs();
this._parent.removeMovieClip();
};
Symbol 264 MovieClip [optionsMC] Frame 1
var hlArray = new Array(266, 311, 355);
qButHL._x = hlArray[_root.qual];
closeBut.onRelease = function () {
_root.enabButs();
_root.enableBut();
this._parent.removeMovieClip();
};
lowBut.onRelease = function () {
_root._quality = "LOW";
_root.qual = 0;
qButHL._x = hlArray[_root.qual];
};
medBut.onRelease = function () {
_root._quality = "MEDIUM";
_root.qual = 1;
qButHL._x = hlArray[_root.qual];
};
highBut.onRelease = function () {
_root._quality = "HIGH";
_root.qual = 2;
qButHL._x = hlArray[_root.qual];
};
close.onPress = function () {
this._parent.removeMovieClip();
};
mKnob.top = mKnob._y;
mKnob.bottom = mKnob._y;
mKnob.left = mKnob._x;
mKnob.right = mKnob._x + 100;
mKnob._x = mKnob._x + _root.maxMLevel;
fxKnob.top = fxKnob._y;
fxKnob.bottom = fxKnob._y;
fxKnob.left = fxKnob._x;
fxKnob.right = fxKnob._x + 100;
fxKnob._x = fxKnob._x + _root.fxLevel;
mKnob.onPress = function () {
startDrag (this, false, this.left, this.top, this.right, this.bottom);
};
fxKnob.onPress = function () {
startDrag (this, false, this.left, this.top, this.right, this.bottom);
};
mKnob.onRelease = function () {
stopDrag();
slide1();
};
mKnob.onReleaseOutside = function () {
stopDrag();
slide1();
};
fxKnob.onRelease = function () {
stopDrag();
slide2();
};
fxKnob.onReleaseOutside = function () {
stopDrag();
slide2();
};
slide1 = function () {
level = _root.maxMLevel;
level = Math.ceil(mKnob._x - mKnob.left);
_root.maxMLevel = level;
if (_root.mPlay) {
_root[_root.currentMSnd].setVolume(level);
}
};
slide2 = function () {
level = _root.fxLevel;
level = Math.ceil(fxKnob._x - fxKnob.left);
_root.fxLevel = level;
if (_root.fxOn) {
i = 0;
while (i < _root.fxArray.length) {
_root[_root.fxArray[i]].setVolume(level);
i++;
}
}
};
stop();
Symbol 331 MovieClip Frame 1
_root.chargeSnd.start();
Symbol 335 MovieClip [h2effect] Frame 1
this.stat = true;
Symbol 335 MovieClip [h2effect] Frame 6
this.stat = false;
Symbol 344 MovieClip [h01] Frame 1
this.stat = true;
_root.robot1.start();
Symbol 344 MovieClip [h01] Frame 40
this.stat = false;
stop();
Symbol 366 MovieClip [h02] Frame 1
this.stat = true;
Symbol 366 MovieClip [h02] Frame 15
_root.lSnd.start();
Symbol 366 MovieClip [h02] Frame 49
this.stat = false;
this.stop();
Symbol 371 MovieClip [h10] Frame 1
this.stat = true;
Symbol 371 MovieClip [h10] Frame 2
_root.robot1.start();
Symbol 371 MovieClip [h10] Frame 50
this.stat = false;
stop();
Symbol 392 MovieClip [h12] Frame 1
this.stat = true;
Symbol 392 MovieClip [h12] Frame 15
_root.lSnd.start();
Symbol 392 MovieClip [h12] Frame 49
this.stat = false;
stop();
Symbol 401 MovieClip [h20] Frame 1
this.stat = true;
Symbol 401 MovieClip [h20] Frame 8
_root.lSnd.start();
Symbol 401 MovieClip [h20] Frame 39
this.stat = false;
stop();
Symbol 403 MovieClip [h21] Frame 1
this.stat = true;
Symbol 403 MovieClip [h21] Frame 8
_root.lSnd.start();
Symbol 403 MovieClip [h21] Frame 39
this.stat = false;
stop();
Symbol 405 MovieClip Frame 2
stop();
Instance of Symbol 405 MovieClip in Symbol 408 MovieClip [p001] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(2);
}
this._visible = false;
stop();
}
Instance of Symbol 407 MovieClip in Symbol 408 MovieClip [p001] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 413 MovieClip Frame 2
this.stop();
Instance of Symbol 410 MovieClip in Symbol 414 MovieClip [p011] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 413 MovieClip "stComp0" in Symbol 414 MovieClip [p011] Frame 1
onClipEvent (load) {
this._visible = false;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 2) {
this.gotoAndStop(2);
}
stop();
}
Symbol 418 MovieClip Frame 2
stop();
Instance of Symbol 416 MovieClip in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 418 MovieClip in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa6.play();
} else {
_root.bg["s" + _root.col].pBG.fa6.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa4" in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa4.play();
} else {
_root.bg["s" + _root.col].pBG.fa4.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa5" in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa5.play();
} else {
_root.bg["s" + _root.col].pBG.fa5.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa3" in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa3.play();
} else {
_root.bg["s" + _root.col].pBG.fa3.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa2" in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa2.play();
} else {
_root.bg["s" + _root.col].pBG.fa2.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa1" in Symbol 419 MovieClip [p021] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa1.play();
} else {
_root.bg["s" + _root.col].pBG.fa1.stop();
}
};
}
Symbol 423 MovieClip Frame 2
stop();
Symbol 428 MovieClip Frame 1
this.stat = true;
Symbol 428 MovieClip Frame 22
this.stat = false;
Symbol 428 MovieClip Frame 38
this.stat = true;
stop();
Instance of Symbol 423 MovieClip in Symbol 433 MovieClip [pBG001] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(2);
} else {
this._visible = false;
}
stop();
}
Instance of Symbol 428 MovieClip "c29" in Symbol 433 MovieClip [pBG001] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 432 MovieClip "bIcon" in Symbol 433 MovieClip [pBG001] Frame 1
onClipEvent (load) {
var i = 1;
var j = 11;
if (_root.itemArray[this.j]) {
this._visible = false;
_root.cArray[9][3] = 0;
_root.cArray[9][4] = 0;
}
go = function () {
_root.hTypeArray[2] = true;
if (_root.hTypeTrack[1] == 2) {
_root.changeType(2, 1);
} else {
_root.changeType(2, 2);
}
_root.iToggle = false;
_root.instructLoad(3);
};
}
Symbol 437 MovieClip Frame 1
stat = true;
this.bridge.gotoAndStop(2);
Symbol 437 MovieClip Frame 41
stat = false;
stop();
Symbol 441 MovieClip Frame 1
stat = true;
stop();
Symbol 441 MovieClip Frame 2
_root.butSnd.start();
Symbol 441 MovieClip Frame 4
stat = false;
stop();
Instance of Symbol 437 MovieClip "stComp0" in Symbol 442 MovieClip [pBG011] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 2) {
this.gotoAndStop(41);
}
this.stop();
}
Instance of Symbol 441 MovieClip "c106" in Symbol 442 MovieClip [pBG011] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
affected = "stComp0";
fType = 6;
mov = 0;
off = true;
} else {
_root.cArray[10][6] = 0;
}
}
Symbol 495 MovieClip Frame 1
stat = true;
stop();
Symbol 495 MovieClip Frame 28
stat = false;
stop();
Symbol 496 MovieClip Frame 1
stat = true;
this.stop();
Symbol 496 MovieClip Frame 2
_root.butSnd.start();
Symbol 496 MovieClip Frame 4
stat = false;
this.stop();
Symbol 524 MovieClip Frame 12
delete _root.p.pSubCont["s" + _root.col].p[this.partner].onEnterFrame;
_root.p.pSubCont["s" + _root.col].p[this.partner].gotoAndStop(2);
play();
Symbol 524 MovieClip Frame 29
stop();
Symbol 528 MovieClip Frame 1
stat = true;
stop();
Symbol 528 MovieClip Frame 12
stat = false;
stop();
Symbol 548 MovieClip Frame 2
play();
Symbol 548 MovieClip Frame 41
stop();
Symbol 554 MovieClip Frame 21
if (_parent._parent.tOff) {
this.gotoAndPlay(15);
}
Symbol 554 MovieClip Frame 35
stop();
Instance of Symbol 554 MovieClip "t1" in Symbol 555 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 554 MovieClip "t2" in Symbol 555 MovieClip Frame 1
onClipEvent (load) {
stop();
}
Symbol 564 MovieClip Frame 1
stat = true;
stop();
Symbol 564 MovieClip Frame 10
stat = false;
stop();
Symbol 567 MovieClip Frame 1
stat = true;
stop();
Symbol 567 MovieClip Frame 10
stat = false;
stop();
Symbol 569 MovieClip Frame 1
this.stat = true;
stop();
Symbol 569 MovieClip Frame 2
this.tOff = true;
this.turb.t1.play();
this.turb.t2.play();
this.armL.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
}
};
this.armR.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
}
};
Symbol 569 MovieClip Frame 15
this.stat = false;
stop();
Symbol 569 MovieClip Frame 16
this.stat = true;
play();
Symbol 569 MovieClip Frame 19
this.tOff = false;
this.armL.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
}
};
this.armR.onEnterFrame = function () {
if (this.stat == false) {
this.play();
} else {
delete this.onEnterFrame;
}
};
Instance of Symbol 495 MovieClip "stComp0" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 496 MovieClip "c93" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
var off = true;
var num = 1;
var yCount = 10;
this.stop();
}
Instance of Symbol 496 MovieClip "c821" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
var off = true;
var num = 2;
var yCount = 10;
this.stop();
}
Instance of Symbol 496 MovieClip "c312" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
var off = true;
var num = 3;
var yCount = 10;
this.stop();
}
Instance of Symbol 496 MovieClip "c1515" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
var off = true;
var stPointer = 0;
var mult = 2;
var timer = 0;
var pyArray = [0, 0, 0];
var fType = 5;
var eArray = ["c93", "c821", "c312"];
this.stop();
} else {
_root.cArray[15][15] = 0;
}
}
Instance of Symbol 524 MovieClip "fa6" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
partner = "fa6";
this.stop();
}
Instance of Symbol 524 MovieClip "fa4" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
partner = "fa4";
this.stop();
}
Instance of Symbol 524 MovieClip "fa2" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
partner = "fa2";
this.stop();
}
Instance of Symbol 524 MovieClip "fa1" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
partner = "fa1";
this.stop();
}
Instance of Symbol 524 MovieClip "fa3" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
partner = "fa3";
this.stop();
}
Instance of Symbol 524 MovieClip "fa5" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
partner = "fa5";
this.stop();
}
Instance of Symbol 528 MovieClip "stComp1" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(12);
}
}
Instance of Symbol 528 MovieClip "stComp2" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(12);
}
}
Instance of Symbol 528 MovieClip "stComp3" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(12);
}
}
Instance of Symbol 428 MovieClip "c25" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 548 MovieClip "eDisch" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 569 MovieClip "char" in Symbol 570 MovieClip [pBG021] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
var coordArray = [[43, 122.5], [493, 97.5], [268, -27.5], [343, -97.5]];
var stLoc = [343, 257.5];
var suck = false;
var off = false;
var pointer = 0;
var v = 5;
var dist = 0;
var xToGo = 0;
var yToGo = 0;
var xRatio = 0;
var yRatio = 0;
this.mov = function () {
this.onEnterFrame = function () {
if (this.off) {
this.xToGo = this.coordArray[this.pointer][0] - this._x;
this.yToGo = this.coordArray[this.pointer][1] - this._y;
} else {
this.xToGo = this.stLoc[0] - this._x;
this.yToGo = this.stLoc[1] - this._y;
}
this.dist = Math.sqrt(Math.pow(this.xToGo, 2) + Math.pow(this.yToGo, 2));
this.xRatio = this.xToGo / (Math.abs(this.xToGo) + Math.abs(this.yToGo));
this.yRatio = this.yToGo / (Math.abs(this.xToGo) + Math.abs(this.yToGo));
if (this.dist > 10) {
this._x = this._x + (this.xRatio * this.v);
this._y = this._y + (this.yRatio * this.v);
} else {
if (this.off) {
this._x = this.coordArray[this.pointer][0];
this._y = this.coordArray[this.pointer][1];
} else {
this._x = this.stLoc[0];
this._y = this.stLoc[1];
}
this.xToGo = 0;
this.yToGo = 0;
delete this.onEnterFrame;
this.suck = false;
this.init();
}
};
};
this.init = function () {
this.onEnterFrame = function () {
if (this.suck) {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
this.mov();
}
} else if (this.stat == false) {
this.gotoAndPlay(16);
}
};
};
this.init();
} else {
this._visible = false;
}
this.stop();
}
Instance of Symbol 572 MovieClip in Symbol 573 MovieClip [p101] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 583 MovieClip Frame 26
_root.zrrOSnd.start();
Symbol 583 MovieClip Frame 49
_root.zrrCSnd.start();
Instance of Symbol 575 MovieClip in Symbol 586 MovieClip [p110] Frame 1
onClipEvent (load) {
this.count = 0;
this.cMax = -300;
}
onClipEvent (enterFrame) {
if ((_root.hType == 1) && (_root.gPause == false)) {
if (_root.chargeHit) {
if (this.hitTest(_root.h)) {
if ((count + _root.hAccel) <= 0) {
if ((count + _root.hAccel) >= cMax) {
this._x = this._x + _root.hAccel;
count = count + _root.hAccel;
} else {
delete this.onEnterFrame;
}
}
}
}
}
}
Instance of Symbol 575 MovieClip in Symbol 586 MovieClip [p110] Frame 1
onClipEvent (load) {
this.count = 0;
this.cMax = -250;
}
onClipEvent (enterFrame) {
if ((_root.hType == 1) && (_root.gPause == false)) {
if (_root.chargeHit) {
if (this.hitTest(_root.h)) {
if ((count + _root.hAccel) <= 0) {
if ((count + _root.hAccel) >= cMax) {
this._x = this._x + _root.hAccel;
count = count + _root.hAccel;
} else {
delete this.onEnterFrame;
}
}
}
}
}
}
Instance of Symbol 583 MovieClip in Symbol 586 MovieClip [p110] Frame 1
onClipEvent (enterFrame) {
var rH = this.hitTest(_root.hx + _root.hRad, _root.hy, true);
var lH = this.hitTest(_root.hx - _root.hRad, _root.hy, true);
var cH = this.hitTest(_root.hx, _root.hy);
if ((lH || (rH)) || (cH)) {
_root.hReset();
}
}
Instance of Symbol 583 MovieClip in Symbol 586 MovieClip [p110] Frame 1
onClipEvent (load) {
this.gotoAndPlay(24);
}
onClipEvent (enterFrame) {
var rH = this.hitTest(_root.hx + _root.hRad, _root.hy, true);
var lH = this.hitTest(_root.hx - _root.hRad, _root.hy, true);
var cH = this.hitTest(_root.hx, _root.hy);
if ((lH || (rH)) || (cH)) {
_root.hReset();
}
}
Instance of Symbol 583 MovieClip in Symbol 586 MovieClip [p110] Frame 1
onClipEvent (enterFrame) {
var rH = this.hitTest(_root.hx + _root.hRad, _root.hy, true);
var lH = this.hitTest(_root.hx - _root.hRad, _root.hy, true);
var cH = this.hitTest(_root.hx, _root.hy);
if ((lH || (rH)) || (cH)) {
_root.hReset();
}
}
Instance of Symbol 585 MovieClip in Symbol 586 MovieClip [p110] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 588 MovieClip in Symbol 589 MovieClip [p121] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 428 MovieClip "c179" in Symbol 592 MovieClip [pBG101] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 428 MovieClip "c24" in Symbol 597 MovieClip [pBG110] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 428 MovieClip "c218" in Symbol 597 MovieClip [pBG110] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 596 MovieClip "c1821" in Symbol 597 MovieClip [pBG110] Frame 1
onClipEvent (load) {
var i = 0;
var j = 3;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Instance of Symbol 428 MovieClip "c175" in Symbol 600 MovieClip [pBG121] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 604 MovieClip Frame 2
stop();
Instance of Symbol 604 MovieClip "c621" in Symbol 609 MovieClip [p201] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
}
Instance of Symbol 606 MovieClip in Symbol 609 MovieClip [p201] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 300;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 606 MovieClip in Symbol 609 MovieClip [p201] Frame 1
onClipEvent (load) {
var mX = 250;
var accel = 2.5;
var xMax = 250;
var m = false;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 608 MovieClip in Symbol 609 MovieClip [p201] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 610 MovieClip Frame 1
this.stat = true;
stop();
Symbol 610 MovieClip Frame 10
_root.eOpen.start();
Symbol 610 MovieClip Frame 20
this._visible = false;
this.stat = false;
stop();
Symbol 610 MovieClip Frame 21
this._visible = true;
_root.eOpen.start();
Instance of Symbol 610 MovieClip "stComp0" in Symbol 613 MovieClip [p210] Frame 1
onClipEvent (enterFrame) {
var rH = this.hitTest(_root.hx + _root.hRad, _root.hy, true);
var lH = this.hitTest(_root.hx - _root.hRad, _root.hy, true);
var cH = this.hitTest(_root.hx, _root.hy);
if ((lH || (rH)) || (cH)) {
_root.hReset();
}
}
Instance of Symbol 610 MovieClip "stComp2" in Symbol 613 MovieClip [p210] Frame 1
onClipEvent (enterFrame) {
var bH = this.hitTest(_root.hx, _root.hy + _root.hRad, true);
var tH = this.hitTest(_root.hx, _root.hy - _root.hRad, true);
var cH = this.hitTest(_root.hx, _root.hy);
if ((bH || (tH)) || (cH)) {
_root.hReset();
}
}
Instance of Symbol 610 MovieClip "stComp1" in Symbol 613 MovieClip [p210] Frame 1
onClipEvent (enterFrame) {
var bH = this.hitTest(_root.hx, _root.hy + _root.hRad, true);
var tH = this.hitTest(_root.hx, _root.hy - _root.hRad, true);
var cH = this.hitTest(_root.hx, _root.hy);
if ((bH || (tH)) || (cH)) {
_root.hReset();
}
}
Instance of Symbol 612 MovieClip in Symbol 613 MovieClip [p210] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 615 MovieClip in Symbol 616 MovieClip [p211] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 618 MovieClip in Symbol 619 MovieClip [p221] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 640 MovieClip Frame 9
stop();
Instance of Symbol 640 MovieClip "c621" in Symbol 643 MovieClip [pBG201] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 642 MovieClip "c95" in Symbol 643 MovieClip [pBG201] Frame 1
onClipEvent (load) {
var i = 0;
var j = 1;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Instance of Symbol 428 MovieClip "c174" in Symbol 646 MovieClip [pBG210] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 428 MovieClip "c1718" in Symbol 646 MovieClip [pBG210] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 441 MovieClip "c1814" in Symbol 646 MovieClip [pBG210] Frame 1
onClipEvent (load) {
affected = "stComp2";
fType = 0;
mov = 0;
off = true;
timer = null;
}
Instance of Symbol 441 MovieClip "c221" in Symbol 646 MovieClip [pBG210] Frame 1
onClipEvent (load) {
affected = "stComp1";
py = -200;
fType = 0;
mov = 1;
off = true;
mult = 0.8;
timer = 1;
}
Instance of Symbol 441 MovieClip "c132" in Symbol 646 MovieClip [pBG210] Frame 1
onClipEvent (load) {
fType = 0;
affected = "stComp0";
py = 0;
mov = -1;
off = true;
mult = 1.8;
timer = 0;
}
Instance of Symbol 441 MovieClip "c188" in Symbol 646 MovieClip [pBG210] Frame 1
onClipEvent (load) {
affected = "stComp1";
fType = 0;
mov = 0;
off = true;
timer = null;
}
Instance of Symbol 428 MovieClip "c214" in Symbol 652 MovieClip [pBG221] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 656 MovieClip in Symbol 657 MovieClip [p301] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 661 MovieClip Frame 2
stop();
Instance of Symbol 659 MovieClip in Symbol 662 MovieClip [p310] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 661 MovieClip "c1820" in Symbol 662 MovieClip [p310] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(2);
}
this.stop();
this._visible = false;
}
Instance of Symbol 664 MovieClip in Symbol 665 MovieClip [p311] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 667 MovieClip in Symbol 668 MovieClip [p321] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 670 MovieClip "c1416" in Symbol 671 MovieClip [pBG301] Frame 1
onClipEvent (load) {
var i = 0;
var j = 12;
if (_root.itemArray[this.j]) {
this._visible = false;
_root.cArray[14][16] = 0;
}
go = function () {
_root.menuMC.navLens.play();
_root.initMap();
Key.addListener(_root.iKeyListener);
_root.instructLoad(1);
};
}
Symbol 684 MovieClip Frame 1
this.stat = true;
Symbol 684 MovieClip Frame 2
_root.kDoorSnd.start();
Symbol 684 MovieClip Frame 43
this.stat = false;
this.stop();
Instance of Symbol 684 MovieClip "c1820" in Symbol 685 MovieClip [pBG310] Frame 1
onClipEvent (load) {
var i = 1;
var type = 9;
var off = true;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.off = false;
this.gotoAndStop(38);
_root.p["s" + _root.col].p.c1820.gotoAndStop(2);
}
stop();
}
Instance of Symbol 428 MovieClip "c212" in Symbol 685 MovieClip [pBG310] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 689 MovieClip "c1211" in Symbol 690 MovieClip [pBG311] Frame 1
onClipEvent (load) {
var i = 0;
var j = 8;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
_root.savePos(_root.hx, _root.hy, _root.hyCount, _root.p.pSubCont._y);
};
}
Instance of Symbol 428 MovieClip "c1714" in Symbol 695 MovieClip [pBG321] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 694 MovieClip "c913" in Symbol 695 MovieClip [pBG321] Frame 1
onClipEvent (load) {
var i = 0;
var j = 4;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Symbol 698 MovieClip Frame 2
this.stop();
Instance of Symbol 610 MovieClip "stComp0" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (enterFrame) {
_root.elecHitTB(0);
if (this.stat == false) {
_parent.c69.off = false;
_parent.c213.off = false;
} else {
_parent.c69.off = true;
_parent.c213.off = true;
}
}
Instance of Symbol 583 MovieClip "stComp3" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
this.gotoAndStop(36);
}
Instance of Symbol 583 MovieClip "stComp2" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
this.gotoAndStop(36);
}
Instance of Symbol 583 MovieClip "stComp1" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
this.gotoAndStop(36);
}
Instance of Symbol 698 MovieClip "c217" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
this._visible = false;
stop();
}
Instance of Symbol 698 MovieClip "c222" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
this._visible = false;
this.dir = 1;
this.i = 1;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(2);
_root.cArray[22][2] = 0;
}
stop();
}
Instance of Symbol 661 MovieClip "c519" in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(2);
}
this.stop();
this._visible = false;
}
Instance of Symbol 700 MovieClip in Symbol 701 MovieClip [p400] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 703 MovieClip in Symbol 704 MovieClip [p401] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 713 MovieClip Frame 1
this.stat = true;
Symbol 713 MovieClip Frame 11
this.stat = false;
stop();
Instance of Symbol 706 MovieClip in Symbol 714 MovieClip [p410] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 708 MovieClip in Symbol 714 MovieClip [p410] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 375;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 583 MovieClip "stComp0" in Symbol 714 MovieClip [p410] Frame 1
onClipEvent (enterFrame) {
_root.elecHitTB(0);
}
Instance of Symbol 713 MovieClip "c622" in Symbol 714 MovieClip [p410] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 606 MovieClip in Symbol 717 MovieClip [p411] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 225;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 606 MovieClip in Symbol 717 MovieClip [p411] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 350;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 606 MovieClip in Symbol 717 MovieClip [p411] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 150;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 610 MovieClip "stComp0" in Symbol 717 MovieClip [p411] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
this.onEnterFrame = function () {
var _local4 = this.hitTest(_root.hx, _root.hy + _root.hRad, true);
var _local3 = this.hitTest(_root.hx, _root.hy - _root.hRad, true);
var _local5 = this.hitTest(_root.hx, _root.hy);
if ((_local4 || (_local3)) || (_local5)) {
_root.hReset();
}
};
} else {
delete this.onEnterFrame;
this.gotoAndStop(20);
}
}
Instance of Symbol 610 MovieClip "stComp1" in Symbol 717 MovieClip [p411] Frame 1
onClipEvent (load) {
this.gotoAndPlay(20);
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
this.onEnterFrame = function () {
var _local4 = this.hitTest(_root.hx + _root.hRad, _root.hy, true);
var _local6 = this.hitTest(_root.hx - _root.hRad, _root.hy, true);
var _local5 = this.hitTest(_root.hx, _root.hy);
if ((_local6 || (_local4)) || (_local5)) {
_root.hReset();
}
if (_parent.stComp0.stat) {
if (this.stat) {
this.play();
}
} else if (this.stat == false) {
this.play();
}
};
} else {
delete this.onEnterFrame;
this.gotoAndStop(20);
}
}
Instance of Symbol 716 MovieClip in Symbol 717 MovieClip [p411] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 606 MovieClip in Symbol 720 MovieClip [p421] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 300;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 606 MovieClip in Symbol 720 MovieClip [p421] Frame 1
onClipEvent (load) {
var mX = 275;
var accel = 2.5;
var xMax = 275;
var m = false;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 606 MovieClip in Symbol 720 MovieClip [p421] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 275;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 719 MovieClip in Symbol 720 MovieClip [p421] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 742 MovieClip Frame 9
stop();
Instance of Symbol 742 MovieClip "c217" in Symbol 743 MovieClip [pBG400] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 742 MovieClip "c222" in Symbol 743 MovieClip [pBG400] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this._visible = false;
}
this.stop();
}
Instance of Symbol 684 MovieClip "c519" in Symbol 743 MovieClip [pBG400] Frame 1
onClipEvent (load) {
var i = 0;
var type = 9;
var off = true;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][i] == 1) {
this.off = false;
this.gotoAndStop(38);
_root.p["s" + col].p.c519.gotoAndStop(2);
}
stop();
}
Instance of Symbol 441 MovieClip "c213" in Symbol 743 MovieClip [pBG400] Frame 1
onClipEvent (load) {
affected = "stComp0";
fType = 1;
mov = 0;
off = true;
mult = 1.8;
timer = 0;
var eArray = [1, 2, 3];
}
Instance of Symbol 441 MovieClip "c69" in Symbol 743 MovieClip [pBG400] Frame 1
onClipEvent (load) {
affected = "stComp0";
fType = 0;
mov = 0;
off = true;
timer = null;
}
Instance of Symbol 428 MovieClip "c24" in Symbol 743 MovieClip [pBG400] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 428 MovieClip "c23" in Symbol 746 MovieClip [pBG401] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 428 MovieClip "c1712" in Symbol 751 MovieClip [pBG410] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 750 MovieClip "c620" in Symbol 751 MovieClip [pBG410] Frame 1
onClipEvent (load) {
var i = 0;
var j = 5;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Instance of Symbol 755 MovieClip "c22" in Symbol 756 MovieClip [pBG411] Frame 1
onClipEvent (load) {
i = 1;
j = 9;
if (_root.itemArray[this.j] == true) {
this._visible = false;
}
go = function () {
_root.removeTimer();
_root.goal = true;
_root.menuMC.keyLens.play();
_root.initArray[_root.lvl][_root.col][_root.inOut][0] = 1;
_root.cArray[12][20] = 0;
_root.p.pSubCont.s1.p.stComp0.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
this.gotoAndStop(20);
}
};
delete _root.p.pSubCont.s1.p.stComp1.onEnterFrame;
_root.p.pSubCont.s1.p.stComp1.onEnterFrame = function () {
if (this.stat) {
this.play();
} else {
delete this.onEnterFrame;
this.gotoAndStop(20);
}
};
};
}
Instance of Symbol 441 MovieClip "c1220" in Symbol 756 MovieClip [pBG411] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
affected = "stComp0";
py = 0;
fType = 0;
mov = -1;
off = true;
mult = 2;
timer = 0;
} else {
_root.cArray[12][20] = 0;
}
}
Instance of Symbol 428 MovieClip "c217" in Symbol 759 MovieClip [pBG421] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 763 MovieClip in Symbol 764 MovieClip [p500] Frame 1
onClipEvent (load) {
this._visible = false;
}
Symbol 767 MovieClip Frame 2
stop();
Instance of Symbol 767 MovieClip "stComp1" in Symbol 770 MovieClip [p501] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(2);
}
this.stop();
this._visible = false;
}
Instance of Symbol 769 MovieClip in Symbol 770 MovieClip [p501] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 772 MovieClip in Symbol 777 MovieClip [p510] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 774 MovieClip "tR" in Symbol 777 MovieClip [p510] Frame 1
onClipEvent (load) {
this._visible = false;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._x = this._x + 25;
}
}
Instance of Symbol 698 MovieClip "c1821" in Symbol 777 MovieClip [p510] Frame 1
onClipEvent (load) {
this._visible = false;
this.dir = 1;
this.i = 2;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][2] == 1) {
this.gotoAndStop(2);
_root.cArray[18][21] = 0;
}
stop();
}
Instance of Symbol 776 MovieClip "tL" in Symbol 777 MovieClip [p510] Frame 1
onClipEvent (load) {
this._visible = false;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._x = this._x - 25;
}
}
Instance of Symbol 779 MovieClip in Symbol 780 MovieClip [p511] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 418 MovieClip "stComp2" in Symbol 783 MovieClip [p521] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.stComp2.play();
} else {
_root.bg["s" + _root.col].pBG.stComp2.stop();
}
};
}
Instance of Symbol 418 MovieClip "stComp3" in Symbol 783 MovieClip [p521] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.stComp3.play();
} else {
_root.bg["s" + _root.col].pBG.stComp3.stop();
}
};
}
Instance of Symbol 418 MovieClip "stComp4" in Symbol 783 MovieClip [p521] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.stComp4.play();
} else {
_root.bg["s" + _root.col].pBG.stComp4.stop();
}
};
}
Instance of Symbol 418 MovieClip "stComp5" in Symbol 783 MovieClip [p521] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.stComp5.play();
} else {
_root.bg["s" + _root.col].pBG.stComp5.stop();
}
};
}
Instance of Symbol 698 MovieClip "c146" in Symbol 783 MovieClip [p521] Frame 1
onClipEvent (load) {
this._visible = false;
stop();
}
Instance of Symbol 782 MovieClip in Symbol 783 MovieClip [p521] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 787 MovieClip "stComp0" in Symbol 789 MovieClip [pBG500] Frame 1
onClipEvent (load) {
this._rotation = this._rotation + _root.initArray[_root.lvl][_root.col][1][0];
}
Instance of Symbol 428 MovieClip "c174" in Symbol 789 MovieClip [pBG500] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 441 MovieClip "c1415" in Symbol 789 MovieClip [pBG500] Frame 1
onClipEvent (load) {
affected = "stComp0";
fType = 3;
mov = 0;
i = 4;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][3] == 1) {
off = false;
this.gotoAndStop(4);
} else {
off = true;
}
}
Instance of Symbol 441 MovieClip "c1015" in Symbol 789 MovieClip [pBG500] Frame 1
onClipEvent (load) {
affected = "stComp0";
fType = 3;
mov = 0;
i = 3;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][2] == 1) {
off = false;
this.gotoAndStop(4);
} else {
off = true;
}
}
Instance of Symbol 441 MovieClip "c144" in Symbol 789 MovieClip [pBG500] Frame 1
onClipEvent (load) {
var affected = "stComp0";
var fType = 3;
var mov = 0;
var i = 2;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
off = false;
this.gotoAndStop(4);
} else {
off = true;
}
}
Instance of Symbol 441 MovieClip "c104" in Symbol 789 MovieClip [pBG500] Frame 1
onClipEvent (load) {
affected = "stComp0";
fType = 3;
mov = 0;
i = 1;
temp = _root.initArray[_root.lvl][_root.col][_root.inOut];
if (temp[0] == 1) {
if (temp[4] == 4) {
off = true;
this.gotoAndStop(1);
c144.off = true;
c144.gotoAndStop(1);
c1015.off = true;
c1015.gotoAndStop(1);
c1415.off = true;
c1415.gotoAndStop(1);
temp[0] = 0;
temp[1] = 0;
temp[2] = 0;
temp[3] = 0;
temp[4] = 0;
} else {
off = false;
this.gotoAndStop(4);
}
} else {
off = true;
}
}
Symbol 807 MovieClip Frame 1
this.stat = true;
Symbol 807 MovieClip Frame 2
_parent.iris.gotoAndPlay(2);
Symbol 807 MovieClip Frame 92
_root.laserSnd.start();
Symbol 807 MovieClip Frame 110
_root.laserFlash();
Symbol 807 MovieClip Frame 118
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 180) {
_root.initArray[_root.lvl][_root.col][_root.inOut][1] = 1;
_root.p.pSubCont["s" + _root.col].p.stComp1.gotoAndStop(2);
_root.barricade(1);
}
Symbol 807 MovieClip Frame 205
_parent.iris.play();
Symbol 807 MovieClip Frame 218
stat = false;
stop();
Symbol 810 MovieClip Frame 2
play();
Symbol 810 MovieClip Frame 11
stop();
Symbol 810 MovieClip Frame 12
play();
Symbol 810 MovieClip Frame 22
stop();
Symbol 825 MovieClip Frame 1
stat = true;
Symbol 825 MovieClip Frame 13
stat = false;
stop();
Instance of Symbol 807 MovieClip "stComp0" in Symbol 826 MovieClip [pBG501] Frame 1
onClipEvent (load) {
this.stop();
this._rotation = this._rotation + _root.initArray[_root.lvl][_root.col][_root.inOut][0];
}
Instance of Symbol 810 MovieClip "iris" in Symbol 826 MovieClip [pBG501] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 441 MovieClip "c115" in Symbol 826 MovieClip [pBG501] Frame 1
onClipEvent (load) {
affected = "stComp0";
fType = 2;
mov = 0;
off = true;
}
Instance of Symbol 825 MovieClip "stComp1" in Symbol 826 MovieClip [pBG501] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(13);
}
this.stop();
}
Instance of Symbol 428 MovieClip "c173" in Symbol 826 MovieClip [pBG501] Frame 1
onClipEvent (load) {
stop();
}
Symbol 849 MovieClip Frame 8
stop();
Symbol 858 MovieClip Frame 1
stat = true;
this.stop();
Symbol 858 MovieClip Frame 4
stat = false;
this.stop();
Instance of Symbol 830 MovieClip "bIcon" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var i = 1;
var j = 10;
if (_root.itemArray[this.j]) {
this._visible = false;
_root.cArray[10][11] = 0;
_root.cArray[10][12] = 0;
}
go = function () {
_root.hTypeArray[1] = true;
if (_root.hTypeTrack[1] == 1) {
_root.changeType(1, 1);
} else {
_root.changeType(1, 2);
}
_root.iToggle = false;
_root.instructLoad(2);
};
}
Instance of Symbol 849 MovieClip "c1821" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][2] == 1) {
this._visible = false;
}
this.stop();
}
Instance of Symbol 496 MovieClip "c68" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 0;
var xCount = 6;
var dir = 1;
var pArray = ["c68", "c128", "c615", "c1215"];
this.stop();
}
Instance of Symbol 496 MovieClip "c98" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 1;
var xCount = 6;
var dir = 1;
var pArray = ["c98", "c128", "c158", "c915", "c1515"];
this.stop();
}
Instance of Symbol 496 MovieClip "c128" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 2;
var xCount = 6;
var dir = 1;
var pArray = ["c68", "c98", "c128", "c615", "c915", "c1215", "c1515"];
this.stop();
}
Instance of Symbol 496 MovieClip "c158" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 3;
var xCount = 6;
var dir = 1;
var pArray = ["c98", "c158", "c1515"];
this.stop();
}
Instance of Symbol 496 MovieClip "c1515" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 7;
var xCount = 6;
var dir = -1;
var pArray = ["c98", "c128", "c158", "c615", "c915", "c1515"];
this.stop();
}
Instance of Symbol 496 MovieClip "c1215" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 6;
var xCount = 6;
var dir = -1;
var pArray = ["c68", "c128", "c615", "c1215"];
this.stop();
}
Instance of Symbol 496 MovieClip "c915" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 5;
var xCount = 6;
var dir = -1;
var pArray = ["c98", "c128", "c915", "c1515"];
this.stop();
}
Instance of Symbol 496 MovieClip "c615" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var hit = false;
var off = true;
var num = 4;
var xCount = 6;
var dir = -1;
var pArray = ["c68", "c128", "c615", "c1215", "c1515"];
this.stop();
}
Instance of Symbol 441 MovieClip "c182" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
var off = true;
var mov = 0;
var fType = 4;
var timer = 0;
var mult = 6;
var fArray = ["c68", "c98", "c128", "c158", "c615", "c915", "c1215", "c1515"];
var pArray = ["c68", "c128", "c1215"];
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this.off = false;
} else {
_root.initArray[_root.lvl][_root.col][_root.inOut][0] = 0;
}
this.stop();
}
Instance of Symbol 851 MovieClip "tR" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._x = this._x + 25;
}
}
Instance of Symbol 853 MovieClip "tL" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._x = this._x - 25;
}
}
Instance of Symbol 858 MovieClip "s0" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s1" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s4" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s5" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s2" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s3" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s7" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 858 MovieClip "s6" in Symbol 859 MovieClip [pBG510] Frame 1
onClipEvent (load) {
this.stop();
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 8) {
this._visible = false;
}
}
Instance of Symbol 863 MovieClip "c1110" in Symbol 864 MovieClip [pBG511] Frame 1
onClipEvent (load) {
var i = 0;
var j = 6;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Instance of Symbol 742 MovieClip "c146" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 524 MovieClip "stComp3" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
partner = "stComp3";
this.stop();
}
Instance of Symbol 524 MovieClip "stComp4" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
partner = "stComp4";
this.stop();
}
Instance of Symbol 524 MovieClip "stComp5" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
partner = "stComp5";
this.stop();
}
Instance of Symbol 524 MovieClip "stComp2" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
partner = "stComp2";
this.stop();
}
Instance of Symbol 428 MovieClip "c1717" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 428 MovieClip "c219" in Symbol 867 MovieClip [pBG521] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 869 MovieClip in Symbol 870 MovieClip [p601] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 872 MovieClip in Symbol 873 MovieClip [p611] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 606 MovieClip in Symbol 876 MovieClip [p621] Frame 1
onClipEvent (load) {
var mX = 0;
var accel = 2.5;
var xMax = 150;
var m = true;
moveR = function () {
if (mX < xMax) {
mX = mX + accel;
this._x = this._x + accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = accel;
_root.hx = _root.hx + accel;
}
}
} else {
m = false;
}
};
moveL = function () {
if (mX > 0) {
mX = mX - accel;
this._x = this._x - accel;
if (this.hitTest(_root.h.hPlatHit)) {
if (_root.air) {
_root.platHit = false;
} else {
_root.platHit = true;
_root.platAccel = -1 * accel;
_root.hx = _root.hx - accel;
}
}
} else {
m = true;
}
};
this.onEnterFrame = function () {
if (_root.gPause == false) {
if (m) {
moveR();
} else {
moveL();
}
}
};
}
Instance of Symbol 875 MovieClip in Symbol 876 MovieClip [p621] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 428 MovieClip "c23" in Symbol 881 MovieClip [pBG601] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 880 MovieClip "c187" in Symbol 881 MovieClip [pBG601] Frame 1
onClipEvent (load) {
var i = 0;
var j = 0;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Instance of Symbol 428 MovieClip "c1719" in Symbol 887 MovieClip [pBG621] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 428 MovieClip "c219" in Symbol 887 MovieClip [pBG621] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 891 MovieClip Frame 1
stop();
Symbol 891 MovieClip Frame 2
stop();
Symbol 895 MovieClip Frame 1
stop();
Symbol 895 MovieClip Frame 2
stop();
Symbol 899 MovieClip Frame 1
stop();
Symbol 899 MovieClip Frame 2
stop();
Symbol 903 MovieClip Frame 1
stop();
Symbol 903 MovieClip Frame 2
stop();
Instance of Symbol 891 MovieClip in Symbol 904 MovieClip [pFG601] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 0;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 895 MovieClip in Symbol 904 MovieClip [pFG601] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 225;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 899 MovieClip in Symbol 904 MovieClip [pFG601] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 400;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 903 MovieClip in Symbol 904 MovieClip [pFG601] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 0;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 891 MovieClip in Symbol 905 MovieClip [pFG611] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 200;
this.nextFrame();
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 899 MovieClip in Symbol 905 MovieClip [pFG611] Frame 1
onClipEvent (load) {
var spd = 0.3;
this._alpha = 80;
this._x = 0;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 903 MovieClip in Symbol 905 MovieClip [pFG611] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 350;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 895 MovieClip in Symbol 906 MovieClip [pFG621] Frame 1
onClipEvent (load) {
var spd = 0.5;
this._alpha = 80;
this._x = 375;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 899 MovieClip in Symbol 906 MovieClip [pFG621] Frame 1
onClipEvent (load) {
var spd = 0.4;
this._alpha = 80;
this.nextFrame();
this._x = 0;
}
onClipEvent (enterFrame) {
if (this._alpha > 0) {
if (this._alpha > 40) {
if (this.hitTest(_root.hx, _root.hy, true)) {
_root.cloudHit = true;
if (_root.hType == 2) {
_root.dJump = true;
}
}
}
if (this._x > 600) {
this._alpha--;
} else if (this._alpha < 80) {
this._alpha++;
}
} else if (this._x > 700) {
this.nextFrame();
this._x = -100;
this._alpha++;
}
this._x = this._x + this.spd;
}
Instance of Symbol 908 MovieClip in Symbol 909 MovieClip [p701] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 698 MovieClip "c619" in Symbol 909 MovieClip [p701] Frame 1
onClipEvent (load) {
this._visible = false;
this.dir = -1;
this.i = 0;
if (_root.initArray[_root.lvl][_root.col][_root.inOut][this.i] == 1) {
this.gotoAndStop(2);
_root.cArray[6][19] = 0;
}
stop();
}
Instance of Symbol 698 MovieClip "c616" in Symbol 909 MovieClip [p701] Frame 1
onClipEvent (load) {
this._visible = false;
stop();
}
Instance of Symbol 713 MovieClip "c1221" in Symbol 909 MovieClip [p701] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 919 MovieClip Frame 1
stat = false;
Symbol 919 MovieClip Frame 25
_root.slideOSnd.start();
Symbol 919 MovieClip Frame 40
stat = false;
Symbol 919 MovieClip Frame 58
stat = true;
_root.zrrCSnd.start();
Symbol 919 MovieClip Frame 91
_root.zrrOSnd.start();
Symbol 919 MovieClip Frame 99
stat = false;
Symbol 919 MovieClip Frame 130
_root.slideCSnd.start();
Instance of Symbol 911 MovieClip in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
this.count = 0;
this.cMax = -250;
}
onClipEvent (enterFrame) {
if ((_root.hType == 1) && (_root.gPause == false)) {
if (_root.chargeHit) {
if (this.hitTest(_root.h)) {
if ((count + _root.hAccel) <= 0) {
if ((count + _root.hAccel) >= cMax) {
this._x = this._x + _root.hAccel;
count = count + _root.hAccel;
} else {
delete this.onEnterFrame;
}
}
}
}
}
}
Instance of Symbol 916 MovieClip "stComp10" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (enterFrame) {
_root.elecHitTB(10);
}
Instance of Symbol 610 MovieClip "stComp13" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(20);
}
}
onClipEvent (enterFrame) {
_root.elecHitLR(13);
}
Instance of Symbol 610 MovieClip "stComp11" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(20);
} else {
this.onEnterFrame = function () {
_root.elecHitLR(11);
};
}
}
Instance of Symbol 610 MovieClip "stComp15" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(20);
} else {
this.onEnterFrame = function () {
_root.elecHitTB(15);
};
}
}
Instance of Symbol 610 MovieClip "stComp12" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this.gotoAndStop(20);
} else {
this.onEnterFrame = function () {
_root.elecHitTB(12);
};
}
}
Instance of Symbol 610 MovieClip "stComp14" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.gotoAndStop(20);
}
}
onClipEvent (enterFrame) {
_root.elecHitTB(14);
}
Instance of Symbol 583 MovieClip "stComp1" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if ((_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) || (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0)) {
this.gotoAndStop(40);
}
this.stop();
}
onClipEvent (enterFrame) {
_root.elecHitLR(1);
}
Instance of Symbol 583 MovieClip "stComp0" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if ((_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) || (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0)) {
this.gotoAndStop(40);
}
this.stop();
}
onClipEvent (enterFrame) {
_root.elecHitLR(0);
}
Instance of Symbol 919 MovieClip "stComp8" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
this.gotoAndStop(40);
}
this.stop();
}
Instance of Symbol 919 MovieClip "stComp9" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
this.gotoAndStop(40);
}
this.stop();
}
Instance of Symbol 919 MovieClip "stComp3" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
this.gotoAndStop(40);
}
this.stop();
}
Instance of Symbol 919 MovieClip "stComp4" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] <= 1) {
this.gotoAndStop(40);
}
this.stop();
}
Instance of Symbol 919 MovieClip "stComp7" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 0) {
this.gotoAndStop(40);
}
this.stop();
}
Instance of Symbol 919 MovieClip "stComp2" in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] <= 1) {
this.gotoAndStop(40);
}
this.stop();
}
Instance of Symbol 921 MovieClip in Symbol 922 MovieClip [p710] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 924 MovieClip in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 418 MovieClip "fa8" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa8.play();
} else {
_root.bg["s" + _root.col].pBG.fa8.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa7" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa7.play();
} else {
_root.bg["s" + _root.col].pBG.fa7.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa6" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa6.play();
} else {
_root.bg["s" + _root.col].pBG.fa6.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa5" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa5.play();
} else {
_root.bg["s" + _root.col].pBG.fa5.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa4" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa4.play();
} else {
_root.bg["s" + _root.col].pBG.fa4.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa3" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa3.play();
} else {
_root.bg["s" + _root.col].pBG.fa3.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa2" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa2.play();
} else {
_root.bg["s" + _root.col].pBG.fa2.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa1" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa1.play();
} else {
_root.bg["s" + _root.col].pBG.fa1.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa9" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa9.play();
} else {
_root.bg["s" + _root.col].pBG.fa9.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa10" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa10.play();
} else {
_root.bg["s" + _root.col].pBG.fa10.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa11" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa11.play();
} else {
_root.bg["s" + _root.col].pBG.fa11.stop();
}
};
}
Instance of Symbol 418 MovieClip "fa12" in Symbol 925 MovieClip [p721] Frame 1
onClipEvent (load) {
this.stop();
this._visible = false;
this.onEnterFrame = function () {
if (this.hitTest(_root.h)) {
_root.bg["s" + _root.col].pBG.fa12.play();
} else {
_root.bg["s" + _root.col].pBG.fa12.stop();
}
};
}
Instance of Symbol 428 MovieClip "c27" in Symbol 928 MovieClip [pBG701] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 441 MovieClip "c921" in Symbol 928 MovieClip [pBG701] Frame 1
onClipEvent (load) {
var off = true;
var mov = 0;
var fType = 7;
}
Instance of Symbol 428 MovieClip "c173" in Symbol 928 MovieClip [pBG701] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 742 MovieClip "c619" in Symbol 928 MovieClip [pBG701] Frame 1
onClipEvent (load) {
if (_root.initArray[_root.lvl][_root.col][_root.inOut][0] == 1) {
this._visible = false;
}
this.stop();
}
Instance of Symbol 742 MovieClip "c616" in Symbol 928 MovieClip [pBG701] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 441 MovieClip "c153" in Symbol 933 MovieClip [pBG710] Frame 1
onClipEvent (load) {
var off = true;
var mov = 0;
var timer = 0;
var mult = 4;
var fType = 8;
var stArray = [2, 4, 8];
var eArray = [null, null];
var affected = "stComp13";
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.off = false;
}
}
Instance of Symbol 441 MovieClip "c1119" in Symbol 933 MovieClip [pBG710] Frame 1
onClipEvent (load) {
var off = true;
var mov = 0;
var timer = 1;
var mult = 4;
var fType = 8;
var stArray = [3, 7, 9];
var eArray = [0, 1];
var affected = "stComp14";
if (_root.initArray[_root.lvl][_root.col][_root.inOut][1] == 1) {
this.off = false;
}
}
Instance of Symbol 932 MovieClip "c711" in Symbol 933 MovieClip [pBG710] Frame 1
onClipEvent (load) {
var i = 1;
var j = 2;
var stArray = [15, 11, 14, 13];
var blArray = [2, 3, 4, 7, 8, 9];
var eArray = [0, 1];
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
_root.removeTimer();
_root.savePos(_root.hx, _root.hy, _root.hyCount, _root.p.pSubCont._y);
_root.goal = true;
_root.stopBlockers(this.blArray);
i = 0;
while (i < this.stArray.length) {
_root.p.pSubCont["s" + _root.col].p["stComp" + this.stArray[i]].gotoAndStop(20);
i++;
}
k = 0;
while (k < this.eArray.length) {
_root.p.pSubCont["s" + _root.col].p["stComp" + this.eArray[k]].gotoAndStop(40);
k++;
}
_parent.c153.off = false;
_parent.c1119.off = false;
};
}
Instance of Symbol 524 MovieClip "fa8" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa8";
this.stop();
}
Instance of Symbol 524 MovieClip "fa7" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa7";
this.stop();
}
Instance of Symbol 524 MovieClip "fa6" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa6";
this.stop();
}
Instance of Symbol 524 MovieClip "fa5" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa5";
this.stop();
}
Instance of Symbol 524 MovieClip "fa4" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa4";
this.stop();
}
Instance of Symbol 524 MovieClip "fa3" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa3";
this.stop();
}
Instance of Symbol 524 MovieClip "fa2" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa2";
this.stop();
}
Instance of Symbol 524 MovieClip "fa1" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa1";
this.stop();
}
Instance of Symbol 428 MovieClip "c1719" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
stop();
}
Instance of Symbol 524 MovieClip "fa9" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa9";
this.stop();
}
Instance of Symbol 524 MovieClip "fa10" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa10";
this.stop();
}
Instance of Symbol 524 MovieClip "fa11" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa11";
this.stop();
}
Instance of Symbol 524 MovieClip "fa12" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
partner = "fa12";
this.stop();
}
Instance of Symbol 937 MovieClip "c1419" in Symbol 938 MovieClip [pBG721] Frame 1
onClipEvent (load) {
var i = 0;
var j = 7;
if (_root.itemArray[this.j]) {
this._visible = false;
}
go = function () {
};
}
Instance of Symbol 940 MovieClip in Symbol 941 MovieClip [p801] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 943 MovieClip in Symbol 944 MovieClip [p811] Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 428 MovieClip "c177" in Symbol 947 MovieClip [pBG801] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 975 MovieClip [mapMC] Frame 1
stat = true;
stop();
Symbol 975 MovieClip [mapMC] Frame 14
stat = false;
stop();
Symbol 979 MovieClip Frame 2
stop();
Symbol 982 MovieClip Frame 2
stop();
Symbol 985 MovieClip Frame 2
stop();
Symbol 988 MovieClip Frame 2
stop();
Symbol 991 MovieClip Frame 2
stop();
Symbol 994 MovieClip Frame 2
stop();
Symbol 997 MovieClip Frame 2
stop();
Symbol 1000 MovieClip Frame 2
stop();
Symbol 1003 MovieClip Frame 2
stop();
Instance of Symbol 979 MovieClip "r0" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 982 MovieClip "r1" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 985 MovieClip "r2" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 988 MovieClip "r3" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 991 MovieClip "r6" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 994 MovieClip "r7" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 997 MovieClip "r4" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1000 MovieClip "r5" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1003 MovieClip "r8" in Symbol 1004 MovieClip [robotMC] Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1018 MovieClip [iDisp] Frame 1
stat = true;
Symbol 1018 MovieClip [iDisp] Frame 20
this.stat = false;
stop();
Symbol 1056 MovieClip Frame 1
var percent = 0;
var count = 0;
this.restartBut.enabled = false;
this.restartBut._visible = false;
this.congrats._visible = false;
this.restartBut.onRelease = function () {
_root.fOut = false;
_root.hReset();
_root.endCont.end.removeMovieClip();
};
i = 0;
while (i < 9) {
if (_root.itemArray[i]) {
this.count++;
this.robot["r" + i].gotoAndStop(2);
}
i++;
}
this.percent = Math.ceil((this.count / 9) * 100);
this.textHolder.text = this.percent;
if (this.percent < 100) {
this.restartBut._visible = true;
this.restartBut.enabled = true;
} else {
this.congrats._visible = true;
}
stop();
Instance of Symbol 1056 MovieClip "endMC" in Symbol 1057 MovieClip [end] Frame 1
onClipEvent (load) {
this.endMC._alpha = 0;
}
onClipEvent (enterFrame) {
if (this.endMC._alpha < 100) {
this.endMC._alpha = this.endMC._alpha + 10;
}
}
Symbol 1079 MovieClip Frame 1
stop();
Symbol 1090 MovieClip Frame 1
yes.onRelease = function () {
_root.qButSnd.start();
_root.reset();
};
no.onRelease = function () {
_root.qButSnd.start();
this._parent._visible = false;
_root.gPause = false;
_root.enableBut();
_root.main.onEnterFrame = function () {
_root.cHero();
};
};
Symbol 1093 MovieClip Frame 1
stop();
Symbol 1096 MovieClip Frame 1
stop();
Symbol 1100 MovieClip Frame 1
stop();
Symbol 1107 MovieClip Frame 1
this.stat = true;
Symbol 1107 MovieClip Frame 2
play();
Symbol 1107 MovieClip Frame 7
stat1 = false;
Symbol 1107 MovieClip Frame 8
this.stat = true;
this.stat1 = true;
stop();
Symbol 1107 MovieClip Frame 15
this.stat = false;
Symbol 1107 MovieClip Frame 16
this.stat = true;
Symbol 1111 MovieClip Frame 1
stop();
Instance of Symbol 1107 MovieClip "h0" in Symbol 1112 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1107 MovieClip "h2" in Symbol 1112 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1107 MovieClip "h1" in Symbol 1112 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Symbol 1121 MovieClip Frame 25
stop();
Symbol 1126 MovieClip Frame 1
quitBut.onRollOver = function () {
this.gotoAndStop(2);
};
quitBut.onRollOut = function () {
this.gotoAndStop(1);
};
quitBut.onRelease = function () {
_root.gPause = true;
_root.qButSnd.start();
_root.disableButs();
delete _root.main.onEnterFrame;
this._parent.quityn._visible = true;
};
options2But.onRollOver = function () {
this.gotoAndStop(2);
};
options2But.onRollOut = function () {
this.gotoAndStop(1);
};
options2But.onRelease = function () {
_root.disableBut();
_root.qButSnd.start();
_root.sMenuCont.attachMovie("optionsMC", "sMC", 500);
};
help2But.onRollOver = function () {
this.gotoAndStop(2);
};
help2But.onRollOut = function () {
this.gotoAndStop(1);
};
help2But.onRelease = function () {
_root.disableBut();
_root.qButSnd.start();
_root.sMenuCont.attachMovie("helpMC", "sMC", 500);
};
walkThruBut.onRollOver = function () {
this.gotoAndStop(2);
};
walkThruBut.onRollOut = function () {
this.gotoAndStop(1);
};
walkThruBut.onRelease = function () {
getURL ("http://www.arcadetown.com/downloads/bugbuginskytower_walkthrough.asp", "_blank");
_root.qButSnd.start();
};
Instance of Symbol 1090 MovieClip "quityn" in Symbol 1126 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
Instance of Symbol 1121 MovieClip "keyLens" in Symbol 1126 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 1121 MovieClip "navLens" in Symbol 1126 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}