Frame 1
function fsaveGame() {
localSave = SharedObject.getLocal("Mk52Save");
if (localSave.data.myObj == undefined) {
}
myObj = {};
myObj.objArray = new Array();
myObj.objArray[0] = gameLvl;
myObj.objArray[1] = score;
localSave.data.myObj = myObj;
localSave.flush();
}
function loadGame() {
localSave = SharedObject.getLocal("Mk52Save");
if (localSave.data.myObj == undefined) {
} else {
gameLvl = localSave.data.myObj.objArray[0];
score = localSave.data.myObj.objArray[1];
if (gameLvl > 40) {
gameLvl = 1;
score = 0;
}
score = score - 10000;
}
}
function gotoMySite() {
getURL ("http://www.clockworkmonster.com", "_blank");
}
function clic() {
f1Snd = new Sound();
f1Snd.attachSound("Btn2");
f1Snd.setVolume(30);
f1Snd.start(0.04, 1);
}
function clic2() {
f2Snd = new Sound();
f2Snd.attachSound("Btn1");
f2Snd.start(0.02, 1);
}
stop();
var gameLvl = 1;
var loadOk = false;
var english = true;
var sfx = true;
var sound = true;
this._lockroot = true;
var loadTime = false;
playBtn._visible = false;
var CPMStarPoolID = 8179;
var CPMStarSubPoolID = 4;
System.security.allowDomain("server.cpmstar.com");
AdScreen.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
onEnterFrame = function () {
already_loaded = _root.getBytesLoaded() / _root.getBytesTotal();
if ((already_loaded == 1) && (loadTime)) {
delete onEnterFrame;
playBtn._visible = true;
preloader_mc._visible = false;
}
};
playBtn.onRelease = function () {
removeMovieClip(AdScreen.adBox);
removeMovieClip(AdScreen);
clearInterval(nInterval);
_root.gotoAndStop("Splash");
};
var copyrightNotice = new ContextMenuItem("\u00A9 2009 Javier L\u00E1zaro", gotoMySite);
copyrightNotice.separatorBefore = true;
var mySiteLink = new ContextMenuItem("ClockworkMonster Game Design", gotoMySite);
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
Instance of Symbol 145 MovieClip [CWMIntro] in Frame 1
on (release) {
getURL ("http://www.clockworkmonster.com/?Mk5II-Loader", "_blank");
}
Frame 2
_root.gotoAndStop("MenuEng");
Frame 3
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("de17955b", this, 10301, true);
var _mochiads_game_id = "aadf518e0a9695a9";
mochi.as2.MochiServices.connect("aadf518e0a9695a9");
Instance of Symbol 567 MovieClip in Frame 3
on (release) {
getURL ("http://www.clockworkmonster.com/?Mk5II-Splash", "_blank");
}
Frame 4
function fBtn1() {
f1Snd = new Sound();
f1Snd.attachSound("Btn1");
f1Snd.start(0.02, 1);
}
function fBtn2() {
f2Snd = new Sound();
f2Snd.attachSound("Btn2");
f2Snd.start(0.02, 1);
}
stop();
english = true;
this.createEmptyMovieClip("F1", 41);
this.createEmptyMovieClip("F2", 42);
_root.localSave = SharedObject.getLocal("Mk52Save");
if (_root.localSave.data.myObj == undefined) {
NewBtn._visible = false;
} else {
playBtn._visible = false;
}
NewBtn.onRollOver = function () {
fBtn2();
_root.localSave = SharedObject.getLocal("Mk52Save");
if (_root.localSave.data.myObj == undefined) {
} else {
_root.attachMovie("saveDet", "saveDetSpa", 100, {_x:405, _y:280});
}
};
NewBtn.onRollOut = function () {
_root.saveDetSpa.removeMovieClip();
};
NewBtn.onPress = function () {
fBtn1();
_root.gotoAndStop("Game");
_root.saveDetSpa.removeMovieClip();
_root.loadOk = false;
};
playBtn.onRollOver = function () {
fBtn2();
};
playBtn.onPress = function () {
fBtn1();
_root.gotoAndStop("Game");
_root.saveDetSpa.removeMovieClip();
_root.loadOk = false;
};
loadBtn.onRollOver = function () {
fBtn2();
_root.localSave = SharedObject.getLocal("Mk52Save");
if (_root.localSave.data.myObj == undefined) {
_root.attachMovie("saveDet2", "saveDetSpa", 100, {_x:405, _y:318});
}
};
loadBtn.onRollOut = function () {
_root.saveDetSpa.removeMovieClip();
};
loadBtn.onPress = function () {
fBtn1();
_root.loadOk = true;
_root.saveDetSpa.removeMovieClip();
_root.gotoAndStop("Game");
};
langBtn.onRollOver = function () {
fBtn2();
};
langBtn.onPress = function () {
_root.gotoAndStop("MenuSpa");
fBtn1();
};
AddSite.onRollOver = function () {
fBtn2();
};
AddSite.onRelease = function () {
fBtn1();
getURL ("http://flashgamedistribution.com/game/Mk5:_WorkBot/play", "_blank");
getURL ("http://flashgamedistribution.com/download_zip.php?game=7538", "_blank");
};
scoBtn.onRollOver = function () {
fBtn2();
};
scoBtn.onPress = function () {
_root.gotoAndStop("Scores");
fBtn1();
};
morBtn.onRollOver = function () {
fBtn2();
};
morBtn.onRelease = function () {
fBtn1();
getURL ("http://www.clockworkmonster.com/?Mk5II-MoreGames", "_blank");
};
Frame 7
function fBtn1() {
f1Snd = new Sound();
f1Snd.attachSound("Btn1");
f1Snd.start(0.02, 1);
}
function fBtn2() {
f2Snd = new Sound();
f2Snd.attachSound("Btn2");
f2Snd.start(0.02, 1);
}
stop();
english = false;
_root.createEmptyMovieClip("F1", 41);
_root.createEmptyMovieClip("F2", 42);
_root.localSave = SharedObject.getLocal("Mk52Save");
if (_root.localSave.data.myObj == undefined) {
NewBtn._visible = false;
} else {
playBtn._visible = false;
}
NewBtn.onRollOver = function () {
fBtn2();
_root.localSave = SharedObject.getLocal("Mk52Save");
if (_root.localSave.data.myObj == undefined) {
} else {
_root.attachMovie("saveDetSpa", "saveDetSpa", 100, {_x:405, _y:280});
}
};
NewBtn.onRollOut = function () {
_root.saveDetSpa.removeMovieClip();
};
NewBtn.onPress = function () {
fBtn1();
_root.gotoAndStop("Game");
_root.saveDetSpa.removeMovieClip();
_root.loadOk = false;
};
playBtn.onRollOver = function () {
fBtn2();
};
playBtn.onPress = function () {
fBtn1();
_root.gotoAndStop("Game");
_root.saveDetSpa.removeMovieClip();
_root.loadOk = false;
};
loadBtn.onRollOver = function () {
fBtn2();
_root.localSave = SharedObject.getLocal("Mk52Save");
if (_root.localSave.data.myObj == undefined) {
_root.attachMovie("saveDetSpa2", "saveDetSpa", 100, {_x:405, _y:318});
}
};
loadBtn.onRollOut = function () {
_root.saveDetSpa.removeMovieClip();
};
loadBtn.onPress = function () {
fBtn1();
_root.loadOk = true;
_root.saveDetSpa.removeMovieClip();
_root.gotoAndStop("Game");
};
langBtn.onRollOver = function () {
fBtn2();
};
langBtn.onPress = function () {
_root.gotoAndStop("MenuEng");
fBtn1();
};
AddSite.onRollOver = function () {
fBtn2();
};
AddSite.onRelease = function () {
fBtn1();
getURL ("http://flashgamedistribution.com/game/Mk5:_WorkBot/play", "_blank");
getURL ("http://flashgamedistribution.com/download_zip.php?game=7538", "_blank");
};
scoBtn.onRollOver = function () {
fBtn2();
};
scoBtn.onPress = function () {
_root.gotoAndStop("Scores");
fBtn1();
};
morBtn.onRollOver = function () {
fBtn2();
};
morBtn.onRelease = function () {
fBtn1();
getURL ("http://www.clockworkmonster.com/?Mk5II-MoreGames", "_blank");
};
Frame 10
var introSnd = new Sound();
introSnd.attachSound("intro");
var teleSnd = new Sound();
teleSnd.attachSound("teleport");
Frame 15
var introSnd = new Sound();
introSnd.attachSound("intro");
var teleSnd = new Sound();
teleSnd.attachSound("teleport");
if (!english) {
_root.skipBtn.gotoAndStop(15);
}
Frame 20
function fcounter() {
if (!teleporting) {
if (!gPause) {
timer--;
if (timer < 1) {
fcrash();
insMc._alpha = 100;
ins = insMc.attachMovie("insTimeOver", "insLvl", 12000, {_x:350, _y:285});
}
}
}
}
function fgameClean() {
bot.glow.removeMovieClip();
bot.boom.removeMovieClip();
cargo0.removeMovieClip();
cargo1.removeMovieClip();
cargo2.removeMovieClip();
cargo3.removeMovieClip();
cargo4.removeMovieClip();
fan1.removeMovieClip();
fan2.removeMovieClip();
fan3.removeMovieClip();
fan4.removeMovieClip();
powerup1.removeMovieClip();
powerup2.removeMovieClip();
powerup3.removeMovieClip();
powerup4.removeMovieClip();
powerup5.removeMovieClip();
base.removeMovieClip();
wall.removeMovieClip();
bg.removeMovieClip();
ins.removeMovieClip();
Dark.removeMovieClip();
playAgain.removeMovieClip();
playAgainSpa.removeMovieClip();
insPause.removeMovieClip();
bgInsMc.removeMovieClip();
_root.createEmptyMovieClip("wallMc", 1000);
_root.createEmptyMovieClip("insMc", 10000);
_root.createEmptyMovieClip("bgMc", 2);
_root.createEmptyMovieClip("bgInsMc", 3);
}
function finitGame() {
this.createEmptyMovieClip("wallMc", 1000);
this.createEmptyMovieClip("insMc", 10000);
this.createEmptyMovieClip("bgMc", 2);
this.createEmptyMovieClip("bgInsMc", 3);
fgameLvl(gameLvl);
attachMovie("bot2", "bot", 4000, {_x:BotInitX, _y:BotInitY});
attachMovie("scoreMc", "scoreMc", 5979, {_x:0, _y:0});
if (!english) {
scoreMc.gotoAndStop("Spa");
}
scoreMc.noMusicBtn._visible = false;
scoreMc.noSfxBtn._visible = false;
scoreMc.PauseBtn.onRelease = function () {
if (!gameOver) {
if (!teleporting) {
if (!gPause) {
gPause = true;
attachMovie("insPause", "insPause", 9600, {_x:350, _y:265});
bot.gotoAndPlay("paused");
if (!english) {
insPause.gotoAndStop("Spa");
}
} else {
gPause = false;
bot.gotoAndPlay("Normal");
bot.glow.removeMovieClip();
removeMovieClip("insPause");
}
}
}
};
scoreMc.musicBtn.onRelease = function () {
sound = false;
musicSnd.stop();
scoreMc.musicBtn._visible = false;
scoreMc.noMusicBtn._visible = true;
};
scoreMc.noMusicBtn.onRelease = function () {
sound = true;
if (!gameOver) {
musicSnd.start(0.02, 999);
}
scoreMc.noMusicBtn._visible = false;
scoreMc.musicBtn._visible = true;
};
scoreMc.sfxBtn.onRelease = function () {
sfx = false;
scoreMc.sfxBtn._visible = false;
scoreMc.noSfxBtn._visible = true;
};
scoreMc.noSfxBtn.onRelease = function () {
sfx = true;
scoreMc.noSfxBtn._visible = false;
scoreMc.sfxBtn._visible = true;
};
if (sound) {
musicSnd.start(0.02, 999);
}
}
function fteleport() {
if (sfx) {
teleSnd.start(0.02, 1);
}
teleporting = true;
bot._rotation = 0;
bot.Ojo.gotoAndStop("happy");
bot.Ojo._rotation = 0;
bot.attachMovie("glow", "glow", 1001);
bot.glow._alpha = 82;
gPause = true;
}
function fgameStart() {
fgameClean();
fgameLvl(gameLvl);
bot._x = BotInitX;
bot._y = BotInitY;
bot._alpha = 100;
xSpd = 0;
ySpd = 0;
cellScore = 0;
cellsLost = 0;
lvlBonus = false;
dead = false;
smCount = 0;
if (sound) {
musicSnd.start(0.02, 999);
}
if (gameLvl < 41) {
fteleport();
}
}
function fgameLvl(number) {
musicSnd.stop();
Dark.removeMovieClip();
switch (number) {
case 1 :
wall = wallMc.attachMovie("wall1", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:560, _y:85});
attachMovie("base", "base", 888, {_x:560, _y:514});
bgInsMc.attachMovie("insControls", "insControls", 2, {_x:145, _y:80});
bgInsMc.attachMovie("insConPause", "insConPause", 3, {_x:145, _y:445});
bgInsMc.attachMovie("insConPick", "insConPick", 4, {_x:560, _y:65});
bgInsMc.attachMovie("insConPlace", "insConPlace", 5, {_x:560, _y:445});
bgInsMc.attachMovie("insConAvoid", "insConAvoid", 6, {_x:350, _y:282});
if (!english) {
bgInsMc.insControls.gotoAndStop("Spa");
bgInsMc.insConPause.gotoAndStop("Spa");
bgInsMc.insConPick.gotoAndStop("Spa");
bgInsMc.insConPlace.gotoAndStop("Spa");
bgInsMc.insConAvoid.gotoAndStop("Spa");
}
bg = bgMc.attachMovie("bg3Mc", "bg1Mc", 1, {_x:350, _y:250});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 145;
BotInitY = 128;
cellMax = 1;
break;
case 2 :
wall = wallMc.attachMovie("wall33", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:64});
attachMovie("base", "base", 888, {_x:90, _y:514});
bg = bgMc.attachMovie("bg11Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:460});
attachMovie("powerup2", "powerup2", 902, {_x:610, _y:460});
attachMovie("powerup3", "powerup3", 903, {_x:610, _y:80});
bgInsMc.attachMovie("insPow", "insSave3", 8, {_x:88, _y:115});
bgInsMc.attachMovie("insPow1", "insConAvoid", 3, {_x:350, _y:495});
bgInsMc.attachMovie("insPow2", "insSave", 2, {_x:610, _y:495});
bgInsMc.attachMovie("insPow3", "insSave2", 4, {_x:610, _y:115});
bgInsMc.attachMovie("insSave", "insSave4", 5, {_x:98, _y:350});
bgInsMc.attachMovie("insSave2", "insSave5", 6, {_x:350, _y:350});
bgInsMc.attachMovie("insTime", "insSave6", 7, {_x:600, _y:350});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
bgInsMc.insSave.gotoAndStop("Spa");
bgInsMc.insSave2.gotoAndStop("Spa");
bgInsMc.insSave3.gotoAndStop("Spa");
bgInsMc.insSave4.gotoAndStop("Spa");
bgInsMc.insSave5.gotoAndStop("Spa");
bgInsMc.insSave6.gotoAndStop("Spa");
}
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 90;
BotInitY = 85;
cellMax = 1;
break;
case 3 :
wall = wallMc.attachMovie("wall11", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:455});
attachMovie("cargo", "cargo2", 802, {_x:350, _y:75});
attachMovie("cargo", "cargo3", 803, {_x:595, _y:75});
attachMovie("base", "base", 888, {_x:595, _y:514});
bgInsMc.attachMovie("insConLv2", "insConAvoid", 3, {_x:365, _y:230});
bgInsMc.attachMovie("insDest", "insDest", 2, {_x:365, _y:340});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
bgInsMc.insDest.gotoAndStop("Spa");
}
bg = bgMc.attachMovie("bg1Mc", "bg1Mc", 1, {_x:350, _y:250});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 90;
BotInitY = 85;
cellMax = 3;
break;
case 4 :
wall = wallMc.attachMovie("wall22", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:610, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:463});
attachMovie("cargo", "cargo1", 801, {_x:610, _y:280});
bg = bgMc.attachMovie("bg7Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:90, _y:480});
attachMovie("powerup2", "powerup2", 902, {_x:350, _y:292});
attachMovie("powerup3", "powerup3", 903, {_x:610, _y:88});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:88});
attachMovie("powerup5", "powerup5", 905, {_x:90, _y:292});
bgInsMc.attachMovie("insBadPow", "insConAvoid", 3, {_x:90, _y:125});
bgInsMc.attachMovie("insPow4", "insSave", 2, {_x:350, _y:125});
bgInsMc.attachMovie("insPow5", "insSave2", 4, {_x:90, _y:330});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
bgInsMc.insSave.gotoAndStop("Spa");
bgInsMc.insSave2.gotoAndStop("Spa");
}
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 90;
BotInitY = 85;
cellMax = 2;
break;
case 5 :
wall = wallMc.attachMovie("wall3", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:73});
attachMovie("cargo", "cargo1", 801, {_x:85, _y:400});
bgInsMc.attachMovie("insDark", "insConAvoid", 3, {_x:90, _y:150});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
}
bg = bgMc.attachMovie("bg4Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:85, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:610, _y:470});
attachMovie("powerup3", "powerup3", 902, {_x:435, _y:470});
attachMovie("powerup2", "powerup2", 903, {_x:610, _y:90});
attachMovie("powerup4", "powerup4", 904, {_x:85, _y:280});
attachMovie("powerup5", "powerup5", 905, {_x:255, _y:470});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 85;
BotInitY = 70;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 2;
break;
case 6 :
wall = wallMc.attachMovie("wall10", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:370});
attachMovie("cargo", "cargo1", 801, {_x:615, _y:59});
bg = bgMc.attachMovie("bg9Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("windR", "fan1", 700, {_x:355, _y:275});
fan1._width = 650;
fan1._height = 340;
windSpd = 0.15;
bgInsMc.attachMovie("insFan", "insConAvoid", 3, {_x:350, _y:280});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
}
attachMovie("powerup1", "powerup1", 901, {_x:110, _y:485});
attachMovie("powerup2", "powerup2", 902, {_x:110, _y:75});
attachMovie("powerup3", "powerup3", 903, {_x:615, _y:485});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:175});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 85;
cellMax = 2;
break;
case 7 :
wall = wallMc.attachMovie("wall28", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:175, _y:262});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:262});
attachMovie("cargo", "cargo2", 802, {_x:525, _y:262});
bg = bgMc.attachMovie("bg6Mc", "bg1Mc", 2, {_x:350, _y:250});
bgInsMc.attachMovie("insTurbo", "insConAvoid", 3, {_x:350, _y:120});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
}
attachMovie("base", "base", 888, {_x:350, _y:38});
base._yscale = -100;
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:465});
attachMovie("powerup2", "powerup2", 902, {_x:525, _y:465});
attachMovie("powerup3", "powerup3", 903, {_x:175, _y:465});
attachMovie("powerup4", "powerup4", 904, {_x:175, _y:90});
attachMovie("powerup5", "powerup5", 905, {_x:525, _y:90});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 350;
BotInitY = 85;
cellMax = 3;
break;
case 8 :
wall = wallMc.attachMovie("wall5", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:258});
attachMovie("cargo", "cargo1", 801, {_x:110, _y:458});
attachMovie("cargo", "cargo2", 802, {_x:590, _y:458});
bg = bgMc.attachMovie("bg2Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:110, _y:70});
attachMovie("powerup2", "powerup2", 902, {_x:590, _y:70});
attachMovie("powerup4", "powerup4", 904, {_x:230, _y:276});
attachMovie("powerup5", "powerup5", 905, {_x:470, _y:276});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 85;
cellMax = 3;
break;
case 9 :
wall = wallMc.attachMovie("wall7", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:175, _y:258});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:258});
attachMovie("cargo", "cargo2", 802, {_x:525, _y:258});
bg = bgMc.attachMovie("bg0Mc", "bg1Mc", 2, {_x:350, _y:250});
bgInsMc.attachMovie("insTurbo", "insConAvoid", 3, {_x:350, _y:120});
if (!english) {
bgInsMc.insConAvoid.gotoAndStop("Spa");
}
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:50, _y:277});
attachMovie("powerup3", "powerup3", 902, {_x:650, _y:277});
attachMovie("powerup4", "powerup4", 904, {_x:175, _y:480});
attachMovie("powerup5", "powerup5", 905, {_x:525, _y:480});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 85;
cellMax = 3;
break;
case 10 :
wall = wallMc.attachMovie("wall12", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:90, _y:455});
attachMovie("cargo", "cargo1", 801, {_x:360, _y:455});
attachMovie("cargo", "cargo2", 802, {_x:360, _y:65});
attachMovie("powerup1", "powerup1", 901, {_x:480, _y:277});
attachMovie("powerup2", "powerup2", 902, {_x:595, _y:85});
attachMovie("powerup4", "powerup4", 904, {_x:90, _y:277});
attachMovie("powerup5", "powerup5", 905, {_x:360, _y:277});
attachMovie("base", "base", 888, {_x:595, _y:514});
bg = bgMc.attachMovie("bg5Mc", "bg1Mc", 1, {_x:350, _y:250});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 90;
BotInitY = 85;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 3;
break;
case 11 :
wall = wallMc.attachMovie("wall13", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:90, _y:262});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:262});
attachMovie("cargo", "cargo2", 802, {_x:610, _y:262});
bg = bgMc.attachMovie("bg8Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("fan1", "fan1", 700, {_x:253, _y:173});
attachMovie("fan2", "fan2", 701, {_x:447, _y:386});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:90, _y:480});
attachMovie("powerup3", "powerup3", 902, {_x:610, _y:480});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
windSpd = 0.25;
BotInitX = 350;
BotInitY = 85;
cellMax = 3;
break;
case 12 :
wall = wallMc.attachMovie("wall4", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:265, _y:80});
attachMovie("cargo", "cargo1", 801, {_x:440, _y:247});
attachMovie("cargo", "cargo2", 802, {_x:615, _y:414});
attachMovie("cargo", "cargo3", 803, {_x:265, _y:247});
bg = bgMc.attachMovie("bg1Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:85, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:615, _y:97});
attachMovie("powerup2", "powerup2", 902, {_x:615, _y:266});
attachMovie("powerup3", "powerup3", 903, {_x:440, _y:97});
attachMovie("powerup4", "powerup4", 904, {_x:265, _y:430});
attachMovie("powerup5", "powerup5", 905, {_x:440, _y:430});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 85;
BotInitY = 95;
cellMax = 4;
break;
case 13 :
wall = wallMc.attachMovie("wall8", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:40, _y:265});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:265});
attachMovie("cargo", "cargo2", 802, {_x:660, _y:265});
bg = bgMc.attachMovie("bg11Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:535, _y:390});
attachMovie("powerup2", "powerup2", 902, {_x:165, _y:170});
attachMovie("powerup4", "powerup4", 904, {_x:165, _y:282});
attachMovie("powerup5", "powerup5", 905, {_x:535, _y:282});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 350;
BotInitY = 85;
cellMax = 3;
break;
case 14 :
wall = wallMc.attachMovie("wall23", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:560, _y:38});
base._yscale = -100;
attachMovie("cargo", "cargo0", 800, {_x:350, _y:470});
attachMovie("cargo", "cargo1", 801, {_x:140, _y:470});
attachMovie("cargo", "cargo2", 802, {_x:560, _y:470});
bg = bgMc.attachMovie("bg3Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:354});
attachMovie("powerup2", "powerup2", 902, {_x:140, _y:354});
attachMovie("powerup3", "powerup3", 903, {_x:560, _y:354});
attachMovie("powerup4", "powerup4", 904, {_x:140, _y:222});
attachMovie("powerup5", "powerup5", 905, {_x:560, _y:222});
attachMovie("windR", "fan1", 700, {_x:199, _y:354});
attachMovie("windL", "fan2", 701, {_x:496, _y:354});
fan1._height = 280;
fan2._height = 280;
windSpd = 0.2;
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 140;
BotInitY = 85;
cellMax = 3;
break;
case 15 :
wall = wallMc.attachMovie("wall13", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:90, _y:262});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:424});
attachMovie("cargo", "cargo2", 802, {_x:610, _y:262});
attachMovie("cargo", "cargo3", 803, {_x:350, _y:58});
bg = bgMc.attachMovie("bg8Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("fan1", "fan1", 700, {_x:253, _y:173});
attachMovie("fan2", "fan2", 701, {_x:447, _y:386});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:90, _y:480});
attachMovie("powerup3", "powerup3", 902, {_x:610, _y:480});
attachMovie("powerup4", "powerup4", 904, {_x:60, _y:85});
attachMovie("powerup5", "powerup5", 905, {_x:640, _y:85});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
windSpd = 0.22;
BotInitX = 350;
BotInitY = 280;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 4;
break;
case 16 :
wall = wallMc.attachMovie("wall26", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:97, _y:102});
attachMovie("cargo", "cargo1", 801, {_x:603, _y:102});
attachMovie("cargo", "cargo2", 802, {_x:350, _y:382});
bg = bgMc.attachMovie("bg11Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:350, _y:38});
base._yscale = -100;
attachMovie("powerup1", "powerup1", 901, {_x:97, _y:400});
attachMovie("powerup2", "powerup2", 902, {_x:603, _y:400});
attachMovie("powerup4", "powerup4", 904, {_x:190, _y:120});
attachMovie("powerup5", "powerup5", 905, {_x:510, _y:120});
attachMovie("windUp", "fan4", 700, {_x:131, _y:270});
fan4._width = 124;
fan4._height = 408;
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
windSpd = 0.19;
BotInitX = 350;
BotInitY = 120;
cellMax = 3;
break;
case 17 :
wall = wallMc.attachMovie("wall101", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo1", 801, {_x:630, _y:70});
attachMovie("cargo", "cargo0", 800, {_x:630, _y:436});
attachMovie("cargo", "cargo2", 802, {_x:630, _y:190});
bg = bgMc.attachMovie("bg8Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:70, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:205});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:455});
attachMovie("powerup4", "powerup4", 904, {_x:70, _y:205});
attachMovie("powerup5", "powerup5", 905, {_x:70, _y:455});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 70;
BotInitY = 85;
cellMax = 3;
break;
case 18 :
wall = wallMc.attachMovie("wall3", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:420, _y:195});
attachMovie("cargo", "cargo1", 801, {_x:420, _y:330});
attachMovie("cargo", "cargo2", 802, {_x:610, _y:330});
attachMovie("cargo", "cargo3", 803, {_x:610, _y:195});
attachMovie("fan1", "fan1", 821, {_x:5, _y:346});
attachMovie("fan2", "fan2", 822, {_x:695, _y:346});
attachMovie("fan3", "fan3", 823, {_x:252, _y:31});
attachMovie("fan4", "fan4", 824, {_x:252, _y:520});
attachMovie("base", "base", 888, {_x:85, _y:514});
bg = bgMc.attachMovie("bg4Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("powerup3", "powerup3", 901, {_x:610, _y:470});
attachMovie("powerup2", "powerup2", 902, {_x:420, _y:470});
attachMovie("powerup1", "powerup1", 903, {_x:610, _y:90});
attachMovie("powerup4", "powerup4", 904, {_x:420, _y:90});
attachMovie("powerup5", "powerup5", 905, {_x:253, _y:470});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
windSpd = 0.22;
BotInitX = 80;
BotInitY = 85;
cellMax = 4;
break;
case 19 :
wall = wallMc.attachMovie("wall31", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:455});
attachMovie("cargo", "cargo1", 801, {_x:195, _y:65});
attachMovie("cargo", "cargo2", 802, {_x:505, _y:455});
attachMovie("cargo", "cargo4", 804, {_x:350, _y:65});
bg = bgMc.attachMovie("bg8Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("windL", "fan2", 700, {_x:440, _y:443});
fan2._width = 484;
fan2._height = 130;
attachMovie("base", "base", 888, {_x:60, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:505, _y:350});
attachMovie("powerup3", "powerup3", 902, {_x:195, _y:200});
attachMovie("powerup4", "powerup4", 904, {_x:505, _y:410});
attachMovie("powerup5", "powerup5", 905, {_x:195, _y:140});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
windSpd = 0.25;
BotInitX = 350;
BotInitY = 280;
cellMax = 4;
break;
case 20 :
wall = wallMc.attachMovie("wall101", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo1", 801, {_x:630, _y:190});
attachMovie("cargo", "cargo0", 800, {_x:630, _y:442});
attachMovie("cargo", "cargo2", 802, {_x:70, _y:70});
bg = bgMc.attachMovie("bg3Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:70, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:630, _y:60});
attachMovie("powerup2", "powerup2", 902, {_x:350, _y:205});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:460});
attachMovie("powerup4", "powerup4", 904, {_x:70, _y:205});
attachMovie("powerup5", "powerup5", 905, {_x:70, _y:460});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 630;
BotInitY = 280;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 3;
break;
case 21 :
wall = wallMc.attachMovie("wall9", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:620, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:447, _y:53});
attachMovie("cargo", "cargo1", 801, {_x:447, _y:470});
attachMovie("cargo", "cargo2", 802, {_x:275, _y:53});
attachMovie("cargo", "cargo3", 803, {_x:275, _y:470});
bg = bgMc.attachMovie("bg9Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("windR", "fan1", 700, {_x:355, _y:275});
fan1._width = 630;
fan1._height = 340;
attachMovie("powerup1", "powerup1", 901, {_x:105, _y:490});
attachMovie("powerup2", "powerup2", 902, {_x:105, _y:70});
attachMovie("powerup4", "powerup4", 904, {_x:275, _y:275});
attachMovie("powerup5", "powerup5", 905, {_x:447, _y:275});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
windSpd = 0.21;
BotInitX = 615;
BotInitY = 80;
cellMax = 4;
break;
case 22 :
wall = wallMc.attachMovie("wall24", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:600, _y:514});
attachMovie("cargo", "cargo1", 801, {_x:600, _y:56});
attachMovie("cargo", "cargo2", 802, {_x:100, _y:460});
bg = bgMc.attachMovie("bg1Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:100, _y:74});
attachMovie("powerup2", "powerup2", 902, {_x:600, _y:278});
attachMovie("powerup3", "powerup3", 903, {_x:100, _y:278});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:74});
attachMovie("powerup5", "powerup5", 905, {_x:350, _y:478});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 350;
BotInitY = 275;
cellMax = 2;
break;
case 23 :
wall = wallMc.attachMovie("wall14", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:185, _y:191});
attachMovie("cargo", "cargo1", 801, {_x:515, _y:191});
attachMovie("cargo", "cargo2", 802, {_x:515, _y:317});
attachMovie("cargo", "cargo3", 803, {_x:185, _y:317});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:275});
attachMovie("powerup2", "powerup2", 902, {_x:660, _y:85});
attachMovie("powerup3", "powerup3", 903, {_x:40, _y:85});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:208});
attachMovie("powerup5", "powerup5", 905, {_x:350, _y:338});
bg = bgMc.attachMovie("bg7Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 85;
cellMax = 4;
break;
case 24 :
wall = wallMc.attachMovie("wall20", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:175, _y:262});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:422});
attachMovie("cargo", "cargo2", 802, {_x:525, _y:262});
attachMovie("cargo", "cargo3", 803, {_x:350, _y:103});
bg = bgMc.attachMovie("bg0Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:350, _y:38});
base._yscale = -100;
attachMovie("powerup1", "powerup1", 901, {_x:175, _y:440});
attachMovie("powerup2", "powerup2", 902, {_x:525, _y:440});
attachMovie("powerup4", "powerup4", 904, {_x:175, _y:120});
attachMovie("powerup5", "powerup5", 905, {_x:525, _y:120});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 280;
cellMax = 4;
break;
case 25 :
wall = wallMc.attachMovie("wall8", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:31, _y:85});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:380});
attachMovie("cargo", "cargo2", 802, {_x:669, _y:85});
attachMovie("powerup1", "powerup1", 901, {_x:669, _y:420});
attachMovie("powerup3", "powerup3", 903, {_x:31, _y:420});
attachMovie("powerup4", "powerup4", 902, {_x:220, _y:275});
attachMovie("powerup2", "powerup2", 904, {_x:350, _y:275});
attachMovie("powerup5", "powerup5", 905, {_x:480, _y:275});
bg = bgMc.attachMovie("bg3Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 350;
BotInitY = 85;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 3;
break;
case 26 :
wall = wallMc.attachMovie("wall17", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:185, _y:201});
attachMovie("cargo", "cargo1", 801, {_x:515, _y:201});
attachMovie("cargo", "cargo2", 802, {_x:515, _y:327});
attachMovie("cargo", "cargo3", 803, {_x:185, _y:327});
attachMovie("powerup1", "powerup1", 901, {_x:50, _y:285});
attachMovie("powerup2", "powerup2", 902, {_x:650, _y:285});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:285});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:175});
attachMovie("powerup5", "powerup5", 905, {_x:350, _y:395});
bg = bgMc.attachMovie("bg11Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 85;
cellMax = 4;
break;
case 27 :
wall = wallMc.attachMovie("wall19", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:595, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:46});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:258});
attachMovie("cargo", "cargo2", 802, {_x:350, _y:467});
attachMovie("powerup1", "powerup1", 901, {_x:660, _y:64});
attachMovie("powerup2", "powerup2", 902, {_x:40, _y:485});
bg = bgMc.attachMovie("bg7Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 105;
BotInitY = 85;
cellMax = 3;
break;
case 28 :
wall = wallMc.attachMovie("wall25", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:175, _y:262});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:422});
attachMovie("cargo", "cargo2", 802, {_x:525, _y:262});
attachMovie("cargo", "cargo3", 803, {_x:350, _y:102});
bg = bgMc.attachMovie("bg1Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:350, _y:38});
base._yscale = -100;
attachMovie("powerup1", "powerup1", 901, {_x:175, _y:439});
attachMovie("powerup2", "powerup2", 902, {_x:525, _y:439});
attachMovie("powerup4", "powerup4", 904, {_x:175, _y:120});
attachMovie("powerup5", "powerup5", 905, {_x:525, _y:120});
attachMovie("windDown", "fan3", 700, {_x:131, _y:250});
fan3._width = 124;
fan3._height = 428;
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
windSpd = 0.25;
BotInitX = 350;
BotInitY = 280;
cellMax = 4;
break;
case 29 :
wall = wallMc.attachMovie("wall6", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:180, _y:50});
attachMovie("cargo", "cargo1", 801, {_x:180, _y:463});
attachMovie("cargo", "cargo2", 802, {_x:520, _y:463});
attachMovie("cargo", "cargo3", 803, {_x:520, _y:50});
bg = bgMc.attachMovie("bg3Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("windL", "fan2", 700, {_x:350, _y:275});
fan2._width = 600;
fan2._height = 290;
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:590, _y:275});
attachMovie("powerup2", "powerup2", 902, {_x:110, _y:275});
attachMovie("powerup4", "powerup4", 903, {_x:225, _y:275});
attachMovie("powerup3", "powerup3", 904, {_x:350, _y:275});
attachMovie("powerup5", "powerup5", 905, {_x:475, _y:275});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
windSpd = 0.22;
BotInitX = 350;
BotInitY = 85;
cellMax = 4;
break;
case 30 :
wall = wallMc.attachMovie("wall14", "wall", 10000, {_x:0, _y:0});
bgInsMc.attachMovie("insCareful", "insCareful", 2, {_x:350, _y:130});
if (!english) {
bgInsMc.insCareful.gotoAndStop("Spa");
}
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:185, _y:191});
attachMovie("cargo", "cargo1", 801, {_x:515, _y:191});
attachMovie("cargo", "cargo2", 802, {_x:515, _y:317});
attachMovie("cargo", "cargo3", 803, {_x:185, _y:317});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:275});
attachMovie("powerup2", "powerup2", 902, {_x:650, _y:485});
attachMovie("powerup3", "powerup3", 903, {_x:50, _y:485});
bg = bgMc.attachMovie("bg1Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 85;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 4;
break;
case 31 :
wall = wallMc.attachMovie("wall30", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:195, _y:201});
attachMovie("cargo", "cargo1", 801, {_x:505, _y:201});
attachMovie("cargo", "cargo2", 802, {_x:505, _y:327});
attachMovie("cargo", "cargo3", 803, {_x:195, _y:327});
attachMovie("powerup1", "powerup1", 901, {_x:70, _y:285});
attachMovie("powerup2", "powerup2", 902, {_x:630, _y:285});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:285});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:175});
attachMovie("powerup5", "powerup5", 905, {_x:350, _y:395});
bg = bgMc.attachMovie("bg11Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 350;
BotInitY = 85;
cellMax = 4;
break;
case 32 :
wall = wallMc.attachMovie("wall18", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:655, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:45, _y:47});
attachMovie("cargo", "cargo1", 801, {_x:655, _y:47});
attachMovie("cargo", "cargo2", 802, {_x:350, _y:47});
bg = bgMc.attachMovie("bg7Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:45, _y:490});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:490});
attachMovie("powerup4", "powerup4", 904, {_x:165, _y:275});
attachMovie("powerup5", "powerup5", 905, {_x:535, _y:275});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 275;
cellMax = 3;
break;
case 33 :
wall = wallMc.attachMovie("wall2", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:400});
attachMovie("cargo", "cargo0", 800, {_x:610, _y:400});
bg = bgMc.attachMovie("bg6Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:90, _y:514});
attachMovie("powerup1", "powerup1", 901, {_x:610, _y:90});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:90});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:275});
attachMovie("powerup5", "powerup5", 905, {_x:610, _y:275});
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 90;
BotInitY = 85;
cellMax = 2;
break;
case 34 :
wall = wallMc.attachMovie("wall21", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:38});
base._yscale = -100;
attachMovie("cargo", "cargo0", 800, {_x:46, _y:90});
attachMovie("cargo", "cargo1", 801, {_x:46, _y:420});
attachMovie("cargo", "cargo2", 802, {_x:654, _y:90});
attachMovie("cargo", "cargo3", 803, {_x:654, _y:420});
bg = bgMc.attachMovie("bg3Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:495});
attachMovie("powerup2", "powerup2", 902, {_x:654, _y:305});
attachMovie("powerup3", "powerup3", 903, {_x:46, _y:305});
attachMovie("powerup4", "powerup4", 904, {_x:350, _y:210});
attachMovie("powerup5", "powerup5", 905, {_x:350, _y:400});
attachMovie("windUp", "fan4", 700, {_x:131, _y:270});
fan4._width = 124;
fan4._height = 408;
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
windSpd = 0.25;
BotInitX = 350;
BotInitY = 305;
cellMax = 4;
break;
case 35 :
wall = wallMc.attachMovie("wall32", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:560, _y:513});
attachMovie("cargo", "cargo0", 800, {_x:350, _y:90});
attachMovie("cargo", "cargo1", 801, {_x:140, _y:90});
attachMovie("cargo", "cargo2", 802, {_x:560, _y:90});
bg = bgMc.attachMovie("bg8Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:195});
attachMovie("powerup2", "powerup2", 902, {_x:140, _y:195});
attachMovie("powerup3", "powerup3", 903, {_x:560, _y:195});
attachMovie("powerup4", "powerup4", 904, {_x:140, _y:322});
attachMovie("powerup5", "powerup5", 905, {_x:560, _y:322});
attachMovie("windR", "fan1", 700, {_x:193, _y:195});
attachMovie("windL", "fan2", 701, {_x:500, _y:195});
fan1._height = 270;
fan2._height = 270;
windSpd = 0.28;
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
BotInitX = 140;
BotInitY = 475;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 3;
break;
case 36 :
wall = wallMc.attachMovie("wall16", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:645, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:645, _y:261});
attachMovie("cargo", "cargo1", 801, {_x:55, _y:261});
attachMovie("cargo", "cargo2", 802, {_x:350, _y:181});
attachMovie("cargo", "cargo3", 803, {_x:350, _y:326});
bg = bgMc.attachMovie("bg2Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:645, _y:95});
attachMovie("powerup2", "powerup2", 902, {_x:55, _y:95});
attachMovie("powerup3", "powerup3", 903, {_x:55, _y:455});
attachMovie("windUp", "fan4", 700, {_x:205, _y:265});
fan4._width = 220;
fan4._height = 408;
attachMovie("windDown", "fan3", 701, {_x:495, _y:280});
fan3._width = 220;
fan3._height = 408;
windSpd = 0.25;
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 280;
cellMax = 4;
break;
case 37 :
wall = wallMc.attachMovie("wall15", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:185, _y:191});
attachMovie("cargo", "cargo1", 801, {_x:515, _y:191});
attachMovie("cargo", "cargo2", 802, {_x:515, _y:317});
attachMovie("cargo", "cargo3", 803, {_x:185, _y:317});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:275});
attachMovie("powerup2", "powerup2", 902, {_x:650, _y:86});
attachMovie("powerup3", "powerup3", 903, {_x:50, _y:86});
attachMovie("powerup4", "powerup4", 904, {_x:181, _y:86});
attachMovie("powerup5", "powerup5", 905, {_x:515, _y:86});
bg = bgMc.attachMovie("bg0Mc", "bg1Mc", 2, {_x:350, _y:250});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
BotInitX = 350;
BotInitY = 85;
cellMax = 4;
break;
case 38 :
wall = wallMc.attachMovie("wall29", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:41, _y:100});
attachMovie("cargo", "cargo1", 801, {_x:41, _y:420});
attachMovie("cargo", "cargo2", 802, {_x:659, _y:100});
attachMovie("cargo", "cargo3", 803, {_x:659, _y:420});
bg = bgMc.attachMovie("bg1Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup4", "powerup4", 901, {_x:41, _y:275});
attachMovie("powerup5", "powerup5", 904, {_x:659, _y:275});
attachMovie("powerup1", "powerup1", 905, {_x:165, _y:275});
attachMovie("powerup2", "powerup2", 902, {_x:535, _y:275});
attachMovie("powerup3", "powerup3", 903, {_x:350, _y:275});
attachMovie("windUp", "fan4", 700, {_x:535, _y:275});
fan4._width = 220;
fan4._height = 408;
attachMovie("windDown", "fan3", 701, {_x:165, _y:275});
musicSnd.attachSound("music4");
musicSnd.setVolume(45);
fan3._width = 220;
fan3._height = 408;
windSpd = 0.21;
BotInitX = 350;
BotInitY = 85;
cellMax = 4;
break;
case 39 :
wall = wallMc.attachMovie("wall27", "wall", 10000, {_x:0, _y:0});
attachMovie("cargo", "cargo0", 800, {_x:175, _y:258});
attachMovie("cargo", "cargo1", 801, {_x:350, _y:408});
attachMovie("cargo", "cargo2", 802, {_x:525, _y:258});
attachMovie("cargo", "cargo3", 803, {_x:350, _y:102});
bg = bgMc.attachMovie("bg9Mc", "bg1Mc", 1, {_x:350, _y:250});
attachMovie("base", "base", 888, {_x:350, _y:38});
base._yscale = -100;
attachMovie("powerup1", "powerup1", 901, {_x:175, _y:427});
attachMovie("powerup2", "powerup2", 902, {_x:525, _y:427});
attachMovie("powerup4", "powerup4", 904, {_x:175, _y:120});
attachMovie("powerup5", "powerup5", 905, {_x:525, _y:120});
attachMovie("windR", "fan1", 700, {_x:199, _y:274});
attachMovie("windL", "fan2", 701, {_x:496, _y:274});
fan1._height = 290;
fan2._height = 290;
windSpd = 0.26;
musicSnd.attachSound("music2");
musicSnd.setVolume(45);
BotInitX = 350;
BotInitY = 280;
cellMax = 4;
break;
case 40 :
wall = wallMc.attachMovie("wall8", "wall", 10000, {_x:0, _y:0});
attachMovie("base", "base", 888, {_x:350, _y:514});
attachMovie("cargo", "cargo0", 800, {_x:48, _y:108});
attachMovie("cargo", "cargo1", 801, {_x:48, _y:410});
attachMovie("cargo", "cargo2", 802, {_x:652, _y:108});
attachMovie("cargo", "cargo3", 803, {_x:652, _y:410});
bg = bgMc.attachMovie("bg4Mc", "bg1Mc", 2, {_x:350, _y:250});
attachMovie("powerup1", "powerup1", 901, {_x:350, _y:180});
attachMovie("powerup3", "powerup3", 904, {_x:350, _y:370});
attachMovie("powerup4", "powerup4", 905, {_x:350, _y:275});
attachMovie("windUp", "fan4", 700, {_x:535, _y:275});
fan4._width = 220;
fan4._height = 408;
attachMovie("windDown", "fan3", 701, {_x:165, _y:275});
musicSnd.attachSound("music3");
musicSnd.setVolume(65);
fan3._width = 220;
fan3._height = 408;
windSpd = 0.22;
BotInitX = 350;
BotInitY = 85;
attachMovie("Dark", "Dark", 5001, {_x:BotInitX, _y:BotInitY - 3});
cellMax = 4;
break;
case 41 :
clearInterval(nFramInt);
clearInterval(nTimeInt);
fgameClean();
_root.musicSnd.stop();
if (sfx) {
fanSnd.start(0, 1);
}
bot.removeMovieClip();
livesMc.removeMovieClip();
scoreMc.removeMovieClip();
timerMc.removeMovieClip();
_root.gotoAndStop("EndSpa");
_root.gotoAndStop("EndEng");
}
bg.cacheAsBitmap = true;
cellsLeft = cellMax;
}
function fcrash() {
lives--;
xSpd = xSpd * -1.2;
ySpd = ySpd * -1.1;
bot.attachMovie("boom", "boom", 1001);
dead = true;
if (loadB > 0) {
attachMovie("boom2", "boom2", 1002, {_x:_root["cargo" + cHit]._x, _y:_root["cargo" + cHit]._y});
_root["cargo" + cHit].removeMovieClip();
insMc._alpha = 100;
ins = insMc.attachMovie("insClost", "insLvl", 12000, {_x:350, _y:285});
if (!english) {
insMc.insLvl.gotoAndStop("Spa");
}
cellScore++;
cellsLost++;
loadB = 0;
if (cellScore >= cellMax) {
if (!lvlBonus) {
lvlBonus = true;
timeBonus = timer * 100;
lifeBonus = lives * 1000;
score = score + (timeBonus + lifeBonus);
insMc._alpha = 150;
ins = insMc.attachMovie("insBonus", "insBonus", 12001, {_x:350, _y:144});
}
ins = insMc.attachMovie("insClost2", "insLvl2", 12000, {_x:350, _y:300});
if (!english) {
insMc.insLvl2.gotoAndStop("Spa");
}
}
}
if (sfx) {
deadSnd.start(0.22, 2);
expSnd.start(0.4, 1);
}
}
function onEnterFrame() {
score = score;
lives = lives;
gameLvl = gameLvl;
if (teleporting) {
if (cellScore < cellMax) {
bot.glow._alpha = bot.glow._alpha - 2;
Dark._alpha = Dark._alpha + 2.5;
if (bot.glow._alpha < 2) {
_root.teleporting = false;
bot.Ojo.gotoAndStop("normal");
bot.glow.removeMovieClip();
Dark._alpha = 100;
bot.gotoAndPlay("paused");
}
} else {
bot.glow._alpha = bot.glow._alpha + 4;
bot._alpha = bot._alpha - 1;
Dark._alpha = Dark._alpha - 3;
if (!lvlBonus) {
lvlBonus = true;
timeBonus = timer * 100;
lifeBonus = lives * 1000;
score = score + (timeBonus + lifeBonus);
insMc._alpha = 150;
ins = insMc.attachMovie("insBonus", "insBonus", 12001, {_x:350, _y:140});
if (cellsLost < 1) {
ins = insMc.attachMovie("insPerfect", "insPerfect", 12002, {_x:350, _y:285});
score = score + 10000;
if (sfx) {
wowSnd.start(0.5, 1);
}
if (!english) {
insMc.insPerfect.gotoAndStop("Spa");
}
}
}
if (bot._alpha < -10) {
gameLvl++;
Dark.removeMovieClip();
timer = 99;
fgameStart();
}
}
}
if (dead) {
bot._alpha = bot._alpha - 4;
Dark._alpha = Dark._alpha - 3;
if (smCount < 20) {
attachMovie("humo", "humo" + smCount, 3900 + smCount, {_x:(bot._x + random(16)) - 8, _y:(bot._y + random(16)) - 8});
smCount++;
}
if (bot._x < 25) {
bot._x = 25;
}
if (bot._x > 675) {
bot._x = 675;
}
if (bot._y < 56) {
bot._y = 56;
}
if (bot._y > 500) {
bot._y = 500;
}
if (bot._alpha < -20) {
loadB = 0;
if ((lives <= 0) or (timer <= 0)) {
fgameClean();
bot.removeMovieClip();
livesMc.removeMovieClip();
scoreMc.removeMovieClip();
timerMc.removeMovieClip();
Dark._alpha = 100;
Dark.removeMovieClip();
musicSnd.stop();
clearInterval(nFramInt);
clearInterval(nTimeInt);
fsaveGame();
_root.gotoAndStop("gameOver");
} else {
bot._x = BotInitX;
bot._y = BotInitY;
Dark._x = BotInitX;
Dark._y = BotInitY;
bot._alpha = 100;
xSpd = 0;
ySpd = 0;
smCount = 0;
dead = false;
fteleport();
}
}
}
if (!gPause) {
_root.insMc._alpha = _root.insMc._alpha - 1;
if (_root.insMc._alpha < 5) {
ins.removeMovieClip();
}
}
if (Key.isDown(80)) {
if (!teleporting) {
gPause = true;
bot.gotoAndPlay("paused");
attachMovie("insPause", "insPause", 11000, {_x:350, _y:265});
if (!english) {
insPause.gotoAndStop("Spa");
}
}
}
if (gPause) {
if (!teleporting) {
if (((((((Key.isDown(38) or Key.isDown(40)) or Key.isDown(37)) or Key.isDown(39)) or Key.isDown(68)) or Key.isDown(83)) or Key.isDown(87)) or Key.isDown(65)) {
gPause = false;
bot.gotoAndPlay("Normal");
removeMovieClip("insPause");
bot.glow.removeMovieClip();
}
}
}
if (!gPause) {
if (!teleporting) {
if (!dead) {
xSpd = xSpd * friction;
ySpd = ySpd * friction;
if (Key.isDown(37) || (Key.isDown(65))) {
xSpd = xSpd - power;
ySpd = ySpd - (power / 5);
bot.Ojo._rotation = 180;
if (xSpd < (-spdLimit)) {
xSpd = -spdLimit;
}
}
if (Key.isDown(39) || (Key.isDown(68))) {
xSpd = xSpd + power;
ySpd = ySpd - (power / 5);
bot.Ojo._rotation = 0;
if (xSpd > spdLimit) {
xSpd = spdLimit;
}
}
if (Key.isDown(38) || (Key.isDown(87))) {
ySpd = ySpd - power;
bot.Ojo._rotation = -90;
if (ySpd < (-spdLimit)) {
ySpd = -spdLimit;
}
}
if (Key.isDown(40) || (Key.isDown(83))) {
ySpd = ySpd + (power / 2);
bot.Ojo._rotation = 90;
}
if (Key.isDown(32)) {
if (loadB > 0) {
power = 0.8;
spdLimit = 6;
} else {
power = 1;
spdLimit = 8;
}
} else if (loadB > 0) {
power = 0.4;
spdLimit = 3;
} else {
power = 0.6;
spdLimit = 4;
}
}
if (bot.hitTest(fan1)) {
xSpd = xSpd + windSpd;
}
if (bot.hitTest(fan2)) {
xSpd = xSpd - windSpd;
}
if (bot.hitTest(fan3)) {
ySpd = ySpd + windSpd;
}
if (bot.hitTest(fan4)) {
ySpd = ySpd - windSpd;
}
ySpd = ySpd + gravity;
bot._y = bot._y + ySpd;
bot._x = bot._x + xSpd;
Dark._x = bot._x;
Dark._y = bot._y - 3;
if (dead) {
bot._rotation = bot._rotation - 15;
} else {
bot._rotation = xSpd * 5;
}
rota = xSpd * 1.4;
angle = bot._rotation * 0.0174533;
coseno = Math.cos(angle);
}
if (!dead) {
if (loadB < 1) {
i = 0;
while (i <= 4) {
if (bot._x < (_root["cargo" + i]._x + 25)) {
if (bot._x > (_root["cargo" + i]._x - 25)) {
if (bot._y < (_root["cargo" + i]._y + 27)) {
if (bot._y > (_root["cargo" + i]._y - 25)) {
loadB = 1;
cHit = i;
gravity = 0.14;
friction = 0.98;
power = 0.4;
bot.gotoAndStop("Load");
insMc._alpha = 60;
cellsLeft--;
ins = insMc.attachMovie("cellMsg", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
if (sfx) {
pickSnd.start(0.03, 1);
}
}
}
}
}
i++;
}
} else {
_root["cargo" + cHit]._x = bot._x;
_root["cargo" + cHit]._y = bot._y;
_root["cargo" + cHit]._rotation = bot._rotation;
if (_root["cargo" + cHit].hitTest(base)) {
cellScore++;
gravity = 0.11;
friction = 0.96;
power = 0.6;
loadB = 0;
score = score + 1000;
insMc._alpha = 60;
_root.base.gotoAndPlay("CellOk");
ins = insMc.attachMovie("ins1000", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
_root["cargo" + cHit].removeMovieClip();
if (sfx) {
baseSnd.start(0.05, 1);
}
if (cellScore >= cellMax) {
fteleport();
}
}
}
if (bot._x < (powerup1._x + 27)) {
if (bot._x > (powerup1._x - 27)) {
if (bot._y < (powerup1._y + 28)) {
if (bot._y > (powerup1._y - 26)) {
if (sfx) {
bonusSnd.start(0.03, 1);
}
insMc._alpha = 60;
removeMovieClip("powerup1");
ins = insMc.attachMovie("pow1Msg", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
lives++;
}
}
}
}
if (bot._x < (powerup2._x + 27)) {
if (bot._x > (powerup2._x - 27)) {
if (bot._y < (powerup2._y + 28)) {
if (bot._y > (powerup2._y - 26)) {
if (sfx) {
bonusSnd.start(0.03, 1);
}
insMc._alpha = 65;
removeMovieClip("powerup2");
ins = insMc.attachMovie("pow2Msg", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
score = score + 2000;
}
}
}
}
if (bot._x < (powerup3._x + 27)) {
if (bot._x > (powerup3._x - 27)) {
if (bot._y < (powerup3._y + 28)) {
if (bot._y > (powerup3._y - 26)) {
if (sfx) {
bonusSnd.start(0.03, 1);
}
insMc._alpha = 65;
removeMovieClip("powerup3");
ins = insMc.attachMovie("pow3Msg", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
timer = timer + 15;
if (timer > 99) {
timer = 99;
}
timerMc.timerTxt.text = timer;
}
}
}
}
if (bot._x < (powerup4._x + 27)) {
if (bot._x > (powerup4._x - 27)) {
if (bot._y < (powerup4._y + 28)) {
if (bot._y > (powerup4._y - 26)) {
if (sfx) {
beepSnd.start(0.03, 1);
}
insMc._alpha = 65;
removeMovieClip("powerup4");
ins = insMc.attachMovie("pow4Msg", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
score = score - 2000;
}
}
}
}
if (bot._x < (powerup5._x + 27)) {
if (bot._x > (powerup5._x - 27)) {
if (bot._y < (powerup5._y + 28)) {
if (bot._y > (powerup5._y - 26)) {
if (sfx) {
beepSnd.start(0.03, 1);
}
insMc._alpha = 65;
removeMovieClip("powerup5");
ins = insMc.attachMovie("pow5Msg", "pow1Msg", 12000, {_x:bot._x, _y:bot._y - 30});
timer = timer - 10;
}
}
}
}
if (bot._x < 18) {
fcrash();
}
if (bot._x > 682) {
fcrash();
}
if (bot._y < 46) {
fcrash();
}
if (bot._y > 510) {
fcrash();
}
if ((((wall.hitTest(bot._x, bot._y, true) or wall.hitTest(bot._x + (22 * coseno), (bot._y - 15) + rota, true)) or wall.hitTest(bot._x - (22 * coseno), (bot._y - 15) - rota, true)) or wall.hitTest(bot._x + (12 * coseno), bot._y + 13, true)) or wall.hitTest(bot._x - (12 * coseno), bot._y + 13, true)) {
if (!teleporting) {
fcrash();
}
}
}
if (!english) {
ins.gotoAndStop("Spa");
insPause.gotoAndStop("Spa");
}
}
}
stop();
this.createEmptyMovieClip("SFX1", 31);
this.createEmptyMovieClip("SFX2", 32);
this.createEmptyMovieClip("SFX3", 33);
this.createEmptyMovieClip("SFX4", 34);
this.createEmptyMovieClip("SFX5", 35);
this.createEmptyMovieClip("SFX6", 36);
this.createEmptyMovieClip("SFX7", 37);
this.createEmptyMovieClip("SFX8", 38);
this.createEmptyMovieClip("SFX9", 39);
this.createEmptyMovieClip("MusicFX", 40);
var musicSnd = new Sound(MusicFX);
musicSnd.attachSound("music4");
var deadSnd = new Sound(SFX1);
deadSnd.attachSound("dead");
var pickSnd = new Sound(SFX2);
pickSnd.attachSound("notify");
var teleSnd = new Sound(SFX3);
teleSnd.attachSound("teleport");
var expSnd = new Sound(SFX4);
expSnd.attachSound("explosion");
var baseSnd = new Sound(SFX5);
baseSnd.attachSound("Ding5");
var bonusSnd = new Sound(SFX6);
bonusSnd.attachSound("bonus2");
var wowSnd = new Sound(SFX7);
wowSnd.attachSound("wow");
var beepSnd = new Sound(SFX8);
beepSnd.attachSound("Beep");
var fanSnd = new Sound(SFX9);
fanSnd.attachSound("bravo1");
var lives = 4;
var cellScore = 0;
var gravity = 0.11;
var power = 0.6;
var friction = 0.96;
var spdLimit = 4;
var ySpd = 0;
var xSpd = 0;
var windSpd = 0.1;
var gPause = false;
var BotInitX = 145;
var BotInitY = 120;
var angle = 0;
var rota = 0;
var coseno = 0;
var laserX = 0;
var laserY = 0;
var laserRot = 0;
var dead = false;
var teleporting = false;
var trapX = 2;
var cellMax = 1;
var cellsLeft = 0;
var cellsLost = 0;
var cHit = 9;
var timer = 99;
var timeBonus = 0;
var lifeBonus = 0;
var lvlBonus = false;
var score = 0;
var powCount = 0;
var loadB = 0;
var smCount = 0;
var saves = 0;
var totalSaves = 0;
gameLvl = 1;
if (loadOk) {
loadGame();
}
var nTimeInt = setInterval(fcounter, 1000);
finitGame();
fteleport();
Frame 24
stop();
Mouse.show();
score = score;
var CPMStarPoolID = 8179;
var CPMStarSubPoolID = 4;
System.security.allowDomain("server.cpmstar.com");
GameOverAnim.AdScreen.adBox.loadMovie((("http://server.cpmstar.com/adviewas2.swf?poolid=" + CPMStarPoolID) + "&subpoolid=") + CPMStarSubPoolID);
if (!english) {
GameOverAnim.PlayAgain.gotoAndStop("Spa");
}
GameOverAnim.PlayAgain.PlayAgainBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
GameOverAnim.PlayAgain.PlayAgainBtn.onPress = function () {
if (sfx) {
clic2();
}
removeMovieClip(GameOverAnim.AdScreen.adBox);
removeMovieClip(GameOverAnim.AdScreen);
loadOk = true;
_root.gotoAndStop("Game");
};
GameOverAnim.PlayAgain.BackMenuBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
GameOverAnim.PlayAgain.BackMenuBtn.onPress = function () {
if (sfx) {
clic2();
}
removeMovieClip(GameOverAnim.AdScreen.adBox);
removeMovieClip(GameOverAnim.AdScreen);
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
};
GameOverAnim.PlayAgain.SubmitBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
GameOverAnim.PlayAgain.SubmitBtn.onPress = function () {
if (sfx) {
clic2();
}
removeMovieClip(GameOverAnim.AdScreen.adBox);
removeMovieClip(GameOverAnim.AdScreen);
_root.gotoAndStop("Submit");
};
GameOverAnim.PlayAgain.MoreGamesBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
GameOverAnim.PlayAgain.MoreGamesBtn.onRelease = function () {
if (sfx) {
clic2();
}
getURL ("http://www.clockworkmonster.com/?Mk5II-MoreGames", "_blank");
};
Frame 29
stop();
musicSnd.stop();
Mouse.show();
score = score;
if (!english) {
_root.PlayAgain.gotoAndStop("Spa");
}
if (!english) {
PlayAgain.gotoAndStop("Spa");
}
PlayAgain.PlayAgainBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
PlayAgain.PlayAgainBtn.onPress = function () {
if (sfx) {
clic2();
}
_root.gotoAndStop("Game");
loadOk = true;
};
PlayAgain.BackMenuBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
PlayAgain.BackMenuBtn.onPress = function () {
if (sfx) {
clic2();
}
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
};
PlayAgain.SubmitBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
PlayAgain.SubmitBtn.onPress = function () {
if (sfx) {
clic2();
}
_root.gotoAndStop("Submit");
};
PlayAgain.MoreGamesBtn.onRollOver = function () {
if (sfx) {
clic();
}
};
PlayAgain.MoreGamesBtn.onRelease = function () {
if (sfx) {
clic2();
}
getURL ("http://www.clockworkmonster.com/?Mk5II-MoreGames", "_blank");
};
Frame 33
stop();
musicSnd.stop();
Mouse.show();
if (!english) {
_root.skipBtn.gotoAndStop(15);
}
var fanSnd = new Sound();
fanSnd.attachSound("fanfare1");
var teleSnd = new Sound();
teleSnd.attachSound("teleport");
Frame 37
stop();
Mouse.hide();
insGameOver._visible = true;
var typing = false;
if (!english) {
_root.insGameOver.gotoAndStop("Spa");
}
insGameOver.onEnterFrame = function () {
if (!typing) {
if (Key.isDown(32)) {
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
} else if (Key.isDown(13)) {
Mouse.show();
typing = true;
insGameOver._visible = false;
if (!hardMode) {
mochi.MochiScores.showLeaderboard({boardID:"9b68ab6125ad9573", score:score, onClose:function () {
typing = false;
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
}});
} else {
mochi.MochiScores.showLeaderboard({boardID:"6df574c6feceb567", score:score, onClose:function () {
typing = false;
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
}});
}
} else if (Key.isDown(40) or Key.isDown(83)) {
_root.gotoAndStop("Game");
}
}
};
Frame 42
function fFart2() {
f1Snd = new Sound(F1);
f1Snd.attachSound("Btn2");
f1Snd.setVolume(30);
f1Snd.start(0.02, 1);
}
function fFart1() {
f2Snd = new Sound(F2);
f2Snd.attachSound("Btn1");
f2Snd.start(0.02, 1);
}
stop();
Mouse.show();
var o = {n:[11, 12, 11, 8, 4, 10, 4, 13, 2, 5, 6, 0, 12, 10, 3, 8], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, score:score, res:"988x666", denyFriends:true, onClose:function () {
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
}});
if (!english) {
_root.morBtn._visible = false;
_root.morSpaBtn._visible = true;
} else {
_root.morBtn._visible = true;
_root.morSpaBtn._visible = false;
}
this.createEmptyMovieClip("F1", 41);
this.createEmptyMovieClip("F2", 42);
BackMenuBtn.onRollOver = function () {
fFart2();
};
BackMenuBtn.onRelease = function () {
fFart1();
mochi.as2.MochiScores.closeLeaderboard();
if (english) {
_root.gotoAndStop("MenuEng");
} else {
_root.gotoAndStop("MenuSpa");
}
};
morBtn.onRollOver = function () {
fFart2();
};
morBtn.onRelease = function () {
fFart1();
if (_root._url.indexOf("flashgamelicense") > -1) {
} else {
getURL ("http://www.clockworkmonster.com", "_blank");
}
};
morSpaBtn.onRollOver = function () {
fFart2();
};
morSpaBtn.onRelease = function () {
fFart1();
if (_root._url.indexOf("flashgamelicense") > -1) {
} else {
getURL ("http://www.clockworkmonster.com/?Mk5II-MoreGames", "_blank");
}
};
Frame 46
function fFart2() {
f1Snd = new Sound(F1);
f1Snd.attachSound("Btn2");
f1Snd.setVolume(30);
f1Snd.start(0.02, 1);
}
function fFart1() {
f2Snd = new Sound(F2);
f2Snd.attachSound("Btn1");
f2Snd.start(0.02, 1);
}
stop();
Mouse.show();
var o = {n:[11, 12, 11, 8, 4, 10, 4, 13, 2, 5, 6, 0, 12, 10, 3, 8], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, res:"988x666", denyFriends:true, onClose:function () {
if (!english) {
_root.gotoAndStop("MenuSpa");
} else {
_root.gotoAndStop("MenuEng");
}
}});
if (!english) {
_root.morBtn._visible = false;
_root.morSpaBtn._visible = true;
} else {
_root.morBtn._visible = true;
_root.morSpaBtn._visible = false;
}
this.createEmptyMovieClip("F1", 41);
this.createEmptyMovieClip("F2", 42);
BackMenuBtn.onRollOver = function () {
fFart2();
};
BackMenuBtn.onRelease = function () {
fFart1();
mochi.as2.MochiScores.closeLeaderboard();
if (english) {
_root.gotoAndStop("MenuEng");
} else {
_root.gotoAndStop("MenuSpa");
}
};
morBtn.onRollOver = function () {
fFart2();
};
morBtn.onRelease = function () {
fFart1();
if (_root._url.indexOf("flashgamelicense") > -1) {
} else {
getURL ("http://www.clockworkmonster.com", "_blank");
}
};
morSpaBtn.onRollOver = function () {
fFart2();
};
morSpaBtn.onRelease = function () {
fFart1();
if (_root._url.indexOf("flashgamelicense") > -1) {
} else {
getURL ("http://www.clockworkmonster.com/?Mk5II-MoreGames", "_blank");
}
};
Instance of Symbol 567 MovieClip in Frame 54
on (release) {
getURL ("http://www.clockworkmonster.com", "_blank");
}
Symbol 19 MovieClip [laserGun] Frame 94
gotoAndPlay ("Off");
Symbol 23 MovieClip Frame 7
_root.Dark._alpha = _root.Dark._alpha + 20;
Symbol 23 MovieClip Frame 8
_root.Dark._alpha = _root.Dark._alpha + 20;
Symbol 23 MovieClip Frame 9
_root.Dark._alpha = _root.Dark._alpha + 20;
Symbol 23 MovieClip Frame 10
_root.Dark._alpha = _root.Dark._alpha + 20;
Symbol 23 MovieClip Frame 11
_root.Dark._alpha = 100;
Symbol 23 MovieClip Frame 68
_root.Dark._alpha = _root.Dark._alpha - 20;
Symbol 23 MovieClip Frame 69
_root.Dark._alpha = _root.Dark._alpha - 20;
Symbol 23 MovieClip Frame 70
_root.Dark._alpha = _root.Dark._alpha - 20;
Symbol 23 MovieClip Frame 71
_root.Dark._alpha = _root.Dark._alpha - 20;
Symbol 23 MovieClip Frame 72
_root.Dark._alpha = 0;
Symbol 23 MovieClip Frame 95
gotoAndPlay ("Off");
Symbol 30 MovieClip Frame 1
stop();
Symbol 40 MovieClip [Ojo2] Frame 1
stop();
Symbol 40 MovieClip [Ojo2] Frame 2
stop();
Instance of Symbol 30 MovieClip in Symbol 47 MovieClip [wall7] Frame 1
onClipEvent (load) {
var spd = 3;
var turnRate = 2;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
this._y = this._y + movY;
this._rotation = movX * 6;
if (_root.dead) {
this._y = 485;
this._x = 645;
}
}
}
Instance of Symbol 30 MovieClip in Symbol 47 MovieClip [wall7] Frame 1
onClipEvent (load) {
var spd = 2;
var turnRate = 1;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
this._y = this._y + movY;
this._rotation = movX * 6;
if (_root.dead) {
this._y = 485;
this._x = 50;
}
}
}
Instance of Symbol 46 MovieClip [bBot] in Symbol 47 MovieClip [wall7] Frame 1
onClipEvent (load) {
var spd = 3;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
this._x = this._x + spd;
if (this._x > 750) {
this._xscale = -100;
this.spd = spd * -1;
}
if (this._x < -50) {
this._xscale = 100;
this.spd = spd * -1;
}
}
}
Symbol 55 MovieClip [pow3Msg] Frame 1
stop();
Symbol 57 MovieClip [pow2Msg] Frame 1
stop();
Symbol 59 MovieClip [pow1Msg] Frame 1
stop();
Symbol 63 MovieClip [saveDetSpa2] Frame 1
stop();
Symbol 65 MovieClip [saveDet2] Frame 1
stop();
Symbol 67 MovieClip [saveDetSpa] Frame 1
stop();
Symbol 69 MovieClip [saveDet] Frame 1
stop();
Symbol 111 MovieClip [introMc] Frame 1
if (_root.sound) {
_root.introSnd.start(0.023, 3);
}
Symbol 111 MovieClip [introMc] Frame 319
if (_root.sound) {
_root.teleSnd.start(0.02, 3);
}
Symbol 111 MovieClip [introMc] Frame 386
_root.introSnd.stop();
_root.gotoAndStop("Game");
Symbol 138 MovieClip [Ojo] Frame 1
stop();
Symbol 138 MovieClip [Ojo] Frame 2
stop();
Symbol 158 MovieClip Frame 390
_root.loadTime = true;
stop();
Symbol 802 MovieClip [__Packages.mochi.as2.MochiSync] Frame 0
class mochi.as2.MochiSync
{
var _syncContainer;
function MochiSync () {
_syncContainer = {};
}
function getProp(name) {
return(_syncContainer[name]);
}
function setProp(name, value) {
if (_syncContainer[name] == value) {
return(undefined);
}
_syncContainer[name] = value;
mochi.as2.MochiServices.send("sync_propUpdate", {name:name, value:value});
}
function triggerEvent(eventType, args) {
switch (eventType) {
case SYNC_REQUEST :
mochi.as2.MochiServices.send("sync_syncronize", _syncContainer);
break;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 803 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.3 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.as2.MochiServices.onError = onError;
} else if (mochi.as2.MochiServices.onError == undefined) {
mochi.as2.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local6 = "_mochiservices_com_" + id;
var _local5 = new MovieClipLoader();
var _local3 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local4 = _servURL + _services;
if (urlOptions().servicesURL) {
_local4 = urlOptions().servicesURL;
}
allowDomains(_local4);
_clip = clip.createEmptyMovieClip(_local6, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local3.waitInterval != null) {
clearInterval(_local3.waitInterval);
}
_local3.onLoadError = loadError;
_local3.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local3.startTime = getTimer();
_local3.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_local3.waitInterval = setInterval(_local3, "wait", 1000);
_local5.addListener(_local3);
_local5.loadClip((((((_local4 + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options)) + "&api_version=") + getVersion(), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function loadError(target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
disconnect();
onError.apply(null, [errorCode]);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onEvent = function (pkg) {
switch (pkg.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(pkg.event, pkg.args);
break;
case "coins" :
mochi.as2.MochiCoins.triggerEvent(pkg.event, pkg.args);
break;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(pkg.event, pkg.args);
}
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
trace("[SERVICES_API] connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
trace("Error: MochiServices not connected. Please call MochiServices.connect(). Function: " + methodName);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
var _local6;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local2 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
_local6 = _root._url.substr(_local2, _root._url.length);
} else if (_root.mochiad_options) {
_local6 = _root.mochiad_options;
}
if (_local6) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
trace(("WARNING: " + (leaderboard ? "board" : "game")) + " ID is not the appropriate length");
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
trace("WARNING: Board ID contains illegal characters: " + bid);
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static function setContainer(clip) {
}
static function stayOnTop(clip) {
}
static var _servURL = "http://www.mochiads.com/static/lib/services/";
static var _services = "services.swf";
static var _mochiLC = "MochiLC.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
static var servicesSync = new mochi.as2.MochiSync();
}
Symbol 804 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local2 = {thisObject:thisObject, thatObject:thatObject};
if (thatObject != undefined) {
var funct = ((typeof(thatObject) == "string") ? (thisObject[thatObject]) : (thatObject));
_local2.delegate = function (args) {
funct.call(thisObject, args);
};
} else {
_local2.delegate = thisObject;
}
return(_local2);
}
function compareDelegate(d_A, d_B) {
if ((d_A.thisObject != d_B.thisObject) || (d_A.thatObject != d_B.thatObject)) {
return(false);
}
return(true);
}
function addEventListener(event, thisObject, thatObject) {
removeEventListener(event, thisObject, thatObject);
eventTable[event].push(buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local3 = buildDelegate(thisObject, thatObject);
if (eventTable[event] == undefined) {
eventTable[event] = [];
return(undefined);
}
for (var _local4 in eventTable[event]) {
if (!compareDelegate(eventTable[event][_local4], _local3)) {
continue;
}
eventTable[event].splice(Number(_local4), 1);
}
}
function triggerEvent(event, args) {
if (eventTable[event] == undefined) {
return(undefined);
}
for (var _local4 in eventTable[event]) {
eventTable[event][_local4].delegate(args);
}
}
}
Symbol 805 MovieClip [__Packages.mochi.as2.MochiEvents] Frame 0
class mochi.as2.MochiEvents
{
static var gameStart, levelStart;
function MochiEvents () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function startSession(achievementID) {
mochi.as2.MochiServices.send("events_beginSession", {achievementID:achievementID}, null, null);
}
static function trigger(kind, obj) {
if (obj == undefined) {
obj = {};
} else if (obj.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
obj.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:obj}, null, null);
}
static function setNotifications(clip, style) {
var _local2 = {};
for (var _local3 in style) {
_local2[_local3] = style[_local3];
}
_local2.clip = clip;
mochi.as2.MochiServices.send("events_setNotifications", _local2, null, null);
}
static function addEventListener(eventType, thisObject, thatObject) {
_dispatcher.addEventListener(eventType, thisObject, thatObject);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, thisObject, thatObject) {
_dispatcher.removeEventListener(eventType, thisObject, thatObject);
}
static function startGame() {
gameStart = new Date().getTime();
trigger("start_game");
}
static function endGame() {
var _local1 = new Date().getTime() - gameStart;
trigger("end_game", {time:_local1});
}
static function startLevel() {
levelStart = new Date().getTime();
trigger("start_level");
}
static function endLevel() {
var _local1 = new Date().getTime() - levelStart;
trigger("end_level", {time:_local1});
}
static var ACHIEVEMENT_RECEIVED = "AchievementReceived";
static var ALIGN_TOP_LEFT = "ALIGN_TL";
static var ALIGN_TOP = "ALIGN_T";
static var ALIGN_TOP_RIGHT = "ALIGN_TR";
static var ALIGN_LEFT = "ALIGN_L";
static var ALIGN_CENTER = "ALIGN_C";
static var ALIGN_RIGHT = "ALIGN_R";
static var ALIGN_BOTTOM_LEFT = "ALIGN_BL";
static var ALIGN_BOTTOM = "ALIGN_B";
static var ALIGN_BOTTOM_RIGHT = "ALIGN_BR";
static var FORMAT_SHORT = "ShortForm";
static var FORMAT_LONG = "LongForm";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 806 MovieClip [__Packages.mochi.as2.MochiCoins] Frame 0
class mochi.as2.MochiCoins
{
function MochiCoins () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showStore(options) {
mochi.as2.MochiServices.send("coins_showStore", {options:options}, null, null);
}
static function showItem(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showItem call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showItem", {options:options}, null, null);
}
static function showVideo(options) {
if ((options == undefined) || (typeof(options.item) != "string")) {
trace("ERROR: showVideo call must pass an Object with an item key");
return(undefined);
}
mochi.as2.MochiServices.send("coins_showVideo", {options:options}, null, null);
}
static function showLoginWidget(options) {
mochi.as2.MochiServices.setContainer();
mochi.as2.MochiServices.stayOnTop();
mochi.as2.MochiServices.send("coins_showLoginWidget", {options:options});
}
static function hideLoginWidget() {
mochi.as2.MochiServices.send("coins_hideLoginWidget");
}
static function getStoreItems() {
mochi.as2.MochiServices.send("coins_getStoreItems");
}
static function getUserInfo() {
mochi.as2.MochiServices.send("coins_getUserInfo");
}
static function saveUserProperties(properties) {
mochi.as2.MochiServices.send("coins_saveUserProperties", properties);
}
static function addEventListener(eventType, delegate) {
_dispatcher.addEventListener(eventType, delegate);
}
static function triggerEvent(eventType, args) {
_dispatcher.triggerEvent(eventType, args);
}
static function removeEventListener(eventType, delegate) {
_dispatcher.removeEventListener(eventType, delegate);
}
static var LOGGED_IN = "LoggedIn";
static var LOGGED_OUT = "LoggedOut";
static var LOGIN_SHOW = "LoginShow";
static var LOGIN_HIDE = "LoginHide";
static var STORE_SHOW = "StoreShow";
static var STORE_HIDE = "StoreHide";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
static var ITEM_OWNED = "ItemOwned";
static var ITEM_NEW = "ItemNew";
static var STORE_ITEMS = "StoreItems";
static var USER_INFO = "UserInfo";
static var ERROR = "Error";
static var IO_ERROR = "IOError";
static var NO_USER = "NoUser";
static var PROPERTIES_SIZE = "PropertiesSize";
static var _dispatcher = new mochi.as2.MochiEventDispatcher();
}
Symbol 807 MovieClip [__Packages.mochi.MochiScores] Frame 0
class mochi.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.MochiScores.boardID = boardID;
mochi.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.MochiServices.clip;
}
if ((options.clip != mochi.MochiServices.__get__clip()) || (mochi.MochiServices.__get__childClip()._target == undefined)) {
mochi.MochiServices.disconnect();
mochi.MochiServices.connect(mochi.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 808 MovieClip [__Packages.mochi.MochiServices] Frame 0
class mochi.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("1.43");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
if ((!_connected) && (_clip == undefined)) {
trace("MochiServices Connecting...");
_connecting = true;
init(id, clip);
}
if (onError != undefined) {
mochi.MochiServices.onError = onError;
} else if (mochi.MochiServices.onError == undefined) {
mochi.MochiServices.onError = function (errorCode) {
trace(errorCode);
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
trace("MochiServices could not load.");
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.MochiServices.disconnect();
mochi.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
listen();
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
trace("Waiting for MochiAds services to connect...");
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.MochiServices.onError.apply(null, ["IOError"]);
};
trace("connected!");
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 809 MovieClip [__Packages.mochi.MochiDigits] Frame 0
class mochi.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 810 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
options.clip = mochi.as2.MochiServices.clip;
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
trace("WARNING! This application is attempting to connect to MochiServices inside a showLeaderboard call!");
trace("make sure MochiServices.connect is called as early in the application runtime as possible.");
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is 'Not a Number'");
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + options.score) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(_local1) != _local1) {
trace(("WARNING: Submitted score '" + options.score) + "' will be truncated");
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
trace("[MochiScores] NOTE: Security Sandbox Violation errors below are normal");
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is 'Not a Number'");
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
trace(("ERROR: Submitted score '" + String(score)) + "' will be rejected, score is an infinite");
} else {
if (Math.floor(score) != score) {
trace(("WARNING: Submitted score '" + String(score)) + "' will be truncated");
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 811 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 186 MovieClip [bot2] Frame 1
stop();
Symbol 186 MovieClip [bot2] Frame 2
stop();
Symbol 186 MovieClip [bot2] Frame 75
gotoAndPlay ("paused");
Symbol 191 MovieClip [cellMsg] Frame 1
stop();
Symbol 191 MovieClip [cellMsg] Frame 2
stop();
Symbol 197 MovieClip [insControls] Frame 1
stop();
Symbol 197 MovieClip [insControls] Frame 2
stop();
Symbol 203 MovieClip [insPause] Frame 1
stop();
Symbol 203 MovieClip [insPause] Frame 2
stop();
Symbol 208 MovieClip Frame 1
stop();
Symbol 216 MovieClip [insConPause] Frame 1
stop();
Symbol 216 MovieClip [insConPause] Frame 2
stop();
Symbol 219 MovieClip [insConAvoid] Frame 1
stop();
Symbol 219 MovieClip [insConAvoid] Frame 2
stop();
Symbol 222 MovieClip [insConPick] Frame 1
stop();
Symbol 222 MovieClip [insConPick] Frame 2
stop();
Symbol 225 MovieClip [insConPlace] Frame 1
stop();
Symbol 225 MovieClip [insConPlace] Frame 2
stop();
Symbol 232 MovieClip [base] Frame 16
gotoAndPlay (1);
Symbol 241 MovieClip [Boom] Frame 33
this.removeMovieClip();
Symbol 245 MovieClip [Boom2] Frame 16
this.removeMovieClip();
Symbol 248 MovieClip [insConLv2] Frame 1
stop();
Symbol 248 MovieClip [insConLv2] Frame 2
stop();
Symbol 251 MovieClip [insSave] Frame 1
stop();
Symbol 251 MovieClip [insSave] Frame 2
stop();
Symbol 286 MovieClip [humo] Frame 16
removeMovieClip(this);
Symbol 311 MovieClip Frame 1
stop();
Symbol 319 MovieClip [insFan] Frame 1
stop();
Symbol 319 MovieClip [insFan] Frame 2
stop();
Symbol 322 MovieClip [insCLost] Frame 1
stop();
Symbol 322 MovieClip [insCLost] Frame 2
stop();
Symbol 333 MovieClip Frame 1
stop();
Symbol 336 MovieClip Frame 1
stop();
Instance of Symbol 339 MovieClip [CWMAd] in Symbol 342 MovieClip [adBlock] Frame 1
on (rollOver) {
f2Snd = new Sound();
f2Snd.attachSound("fart2");
f2Snd.start(0.02, 1);
}
on (release) {
_root.english = true;
f3Snd = new Sound();
f3Snd.attachSound("fart3");
f3Snd.start(0.02, 1);
getURL ("http://www.clockworkmonster.com", "_blank");
}
Symbol 356 Button
on (press) {
_root.gameLvl++;
_root.fgameStart();
}
Symbol 362 MovieClip Frame 1
stop();
Symbol 362 MovieClip Frame 2
stop();
Symbol 362 MovieClip Frame 3
stop();
Symbol 362 MovieClip Frame 4
stop();
Symbol 367 MovieClip Frame 1
stop();
Symbol 367 MovieClip Frame 2
stop();
Symbol 367 MovieClip Frame 3
stop();
Symbol 367 MovieClip Frame 4
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 2
stop();
Symbol 372 MovieClip Frame 3
stop();
Symbol 372 MovieClip Frame 4
stop();
Symbol 377 MovieClip Frame 1
stop();
Symbol 377 MovieClip Frame 2
stop();
Symbol 377 MovieClip Frame 3
stop();
Symbol 377 MovieClip Frame 4
stop();
Symbol 384 MovieClip [botPanel] Frame 1
stop();
Symbol 384 MovieClip [botPanel] Frame 2
stop();
Symbol 384 MovieClip [botPanel] Frame 3
stop();
Symbol 384 MovieClip [botPanel] Frame 4
stop();
Symbol 384 MovieClip [botPanel] Frame 5
stop();
Symbol 384 MovieClip [botPanel] Frame 6
stop();
Instance of Symbol 362 MovieClip "saveMedal1" in Symbol 392 MovieClip [resultsMc] Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.saves + 1);
if (_root.saves > 4) {
this.gotoAndStop(4);
}
_root.score = _root.score + (15000 - (this._currentframe * 5000));
}
Instance of Symbol 367 MovieClip "cellMedal" in Symbol 392 MovieClip [resultsMc] Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.cellsLost + 1);
if (_root.cellsLost > 4) {
this.gotoAndStop(4);
}
_root.score = _root.score + (6000 - (this._currentframe * 2000));
}
Instance of Symbol 372 MovieClip "livesMedal" in Symbol 392 MovieClip [resultsMc] Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.livesLost + 1);
if (_root.livesLost > 4) {
this.gotoAndStop(4);
}
_root.score = _root.score + (9000 - (this._currentframe * 3000));
}
Instance of Symbol 377 MovieClip "saveMedal2" in Symbol 392 MovieClip [resultsMc] Frame 1
onClipEvent (load) {
this.gotoAndStop(_root.totalSaves + 1);
if (_root.totalSaves > 4) {
this.gotoAndStop(4);
}
_root.score = _root.score + (30000 - (this._currentframe * 10000));
}
Symbol 394 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 1
stop();
Instance of Symbol 394 MovieClip in Symbol 398 MovieClip [wall5] Frame 1
onClipEvent (load) {
spd = random(2) + 3;
this._rotation = spd * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x + spd;
if (this._x > 800) {
this._x = -110;
this._y = random(230) + 150;
spd = random(2) + 3;
this._rotation = spd * 5;
}
}
Instance of Symbol 394 MovieClip in Symbol 398 MovieClip [wall5] Frame 1
onClipEvent (load) {
spd = random(2) + 3;
this._rotation = spd * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x + spd;
if (this._x > 800) {
this._x = -110;
this._y = random(230) + 150;
spd = random(2) + 3;
this._rotation = spd * 5;
}
}
Instance of Symbol 336 MovieClip in Symbol 398 MovieClip [wall5] Frame 1
onClipEvent (load) {
spd = random(2) + 3;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x + spd;
if (this._x > 800) {
this._x = -110;
this._y = random(210) + 150;
spd = random(2) + 3;
}
}
Instance of Symbol 396 MovieClip in Symbol 398 MovieClip [wall5] Frame 1
onClipEvent (load) {
spd = random(2) + 3;
this._rotation = spd * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x + spd;
if (this._x > 800) {
this._x = -110;
this._y = random(230) + 150;
spd = random(2) + 3;
this._rotation = spd * 5;
}
}
Instance of Symbol 336 MovieClip in Symbol 401 MovieClip [wall6] Frame 1
onClipEvent (load) {
spd = random(2) + 3;
this._rotation = (-spd) * 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x - spd;
if (this._x < -110) {
this._x = 800;
this._y = random(210) + 150;
spd = random(2) + 3;
this._rotation = (-spd) * 2;
}
}
Instance of Symbol 394 MovieClip in Symbol 401 MovieClip [wall6] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this._rotation = (-spd) * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x - spd;
if (this._x < -110) {
this._x = 800;
this._y = random(230) + 150;
spd = random(3) + 2;
this._rotation = (-spd) * 5;
}
}
Instance of Symbol 396 MovieClip in Symbol 401 MovieClip [wall6] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this._rotation = (-spd) * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x - spd;
if (this._x < -110) {
this._x = 800;
this._y = random(230) + 150;
spd = random(3) + 2;
this._rotation = (-spd) * 5;
}
}
Instance of Symbol 394 MovieClip in Symbol 401 MovieClip [wall6] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this._rotation = (-spd) * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x - spd;
if (this._x < -110) {
this._x = 800;
this._y = random(230) + 150;
spd = random(3) + 2;
this._rotation = (-spd) * 5;
}
}
Instance of Symbol 396 MovieClip in Symbol 401 MovieClip [wall6] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this._rotation = (-spd) * 5;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._x = this._x - spd;
if (this._x < -110) {
this._x = 800;
this._y = random(230) + 150;
spd = random(3) + 2;
this._rotation = (-spd) * 5;
}
}
Symbol 404 MovieClip [insDark] Frame 1
stop();
Symbol 404 MovieClip [insDark] Frame 2
stop();
Symbol 407 MovieClip [insTurbo] Frame 1
stop();
Symbol 407 MovieClip [insTurbo] Frame 2
stop();
Symbol 416 MovieClip [insBonus] Frame 1
stop();
Symbol 416 MovieClip [insBonus] Frame 2
stop();
Symbol 419 MovieClip [insPerfect] Frame 1
stop();
Symbol 419 MovieClip [insPerfect] Frame 2
stop();
Instance of Symbol 394 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y - spd;
if (this._y < 30) {
this._y = 510;
this._x = random(170) + 450;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Instance of Symbol 394 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y - spd;
if (this._y < 30) {
this._y = 510;
this._x = random(170) + 450;
spd = random(3) + 2;
}
}
Instance of Symbol 394 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y - spd;
if (this._y < 30) {
this._y = 510;
this._x = random(170) + 450;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 424 MovieClip [wall8] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Symbol 434 MovieClip [insPow3] Frame 1
stop();
Symbol 434 MovieClip [insPow3] Frame 2
stop();
Symbol 437 MovieClip [insPow1] Frame 1
stop();
Symbol 437 MovieClip [insPow1] Frame 2
stop();
Symbol 440 MovieClip [insPow2] Frame 1
stop();
Symbol 440 MovieClip [insPow2] Frame 2
stop();
Symbol 443 MovieClip [insDest] Frame 1
stop();
Symbol 443 MovieClip [insDest] Frame 2
stop();
Symbol 445 MovieClip [ins1000] Frame 1
stop();
Symbol 445 MovieClip [ins1000] Frame 2
stop();
Symbol 449 MovieClip [insPow] Frame 1
stop();
Symbol 449 MovieClip [insPow] Frame 2
stop();
Symbol 452 MovieClip [insTimeOver] Frame 1
stop();
Symbol 452 MovieClip [insTimeOver] Frame 2
stop();
Instance of Symbol 19 MovieClip [laserGun] in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(23);
}
Instance of Symbol 23 MovieClip in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(69);
}
Instance of Symbol 19 MovieClip [laserGun] in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(55);
}
Instance of Symbol 19 MovieClip [laserGun] in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(7);
}
Instance of Symbol 23 MovieClip in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(38);
}
Instance of Symbol 19 MovieClip [laserGun] in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(39);
}
Instance of Symbol 23 MovieClip in Symbol 453 MovieClip [wall15] Frame 1
onClipEvent (load) {
this.gotoAndPlay(7);
}
Instance of Symbol 30 MovieClip in Symbol 454 MovieClip [wall17] Frame 1
onClipEvent (load) {
var spd = 5;
var turnRate = 0.5;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
this._y = this._y + movY;
this._rotation = movX * 6;
if (_root.dead) {
this._y = 485;
this._x = 650;
}
}
}
Instance of Symbol 30 MovieClip in Symbol 454 MovieClip [wall17] Frame 1
onClipEvent (load) {
var spd = 4;
var turnRate = 1;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
this._y = this._y + movY;
this._rotation = movX * 6;
if (_root.dead) {
this._y = 485;
this._x = 50;
}
}
}
Instance of Symbol 30 MovieClip in Symbol 454 MovieClip [wall17] Frame 1
onClipEvent (load) {
var spd = 2;
var turnRate = 3;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
this._y = this._y + movY;
this._rotation = movX * 6;
if (_root.dead) {
this._y = 65;
this._x = 50;
}
}
}
Instance of Symbol 30 MovieClip in Symbol 454 MovieClip [wall17] Frame 1
onClipEvent (load) {
var spd = 3;
var turnRate = 2;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
this._y = this._y + movY;
this._rotation = movX * 6;
if (_root.dead) {
this._y = 65;
this._x = 650;
}
}
}
Instance of Symbol 46 MovieClip [bBot] in Symbol 454 MovieClip [wall17] Frame 1
onClipEvent (load) {
var spd = -5;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
this._x = this._x + spd;
if (this._x > 750) {
this._xscale = 100;
this.spd = spd * -1;
}
if (this._x < -50) {
this._xscale = -100;
this.spd = spd * -1;
}
}
}
Instance of Symbol 46 MovieClip [bBot] in Symbol 454 MovieClip [wall17] Frame 1
onClipEvent (load) {
var spd = 3;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
this._x = this._x + spd;
if (this._x > 750) {
this._xscale = -100;
this.spd = spd * -1;
}
if (this._x < -50) {
this._xscale = 100;
this.spd = spd * -1;
}
}
}
Instance of Symbol 473 MovieClip in Symbol 475 MovieClip [wall18] Frame 1
onClipEvent (load) {
this.gotoAndPlay(168);
}
Instance of Symbol 473 MovieClip in Symbol 475 MovieClip [wall18] Frame 1
onClipEvent (load) {
this.gotoAndPlay(168);
}
Instance of Symbol 473 MovieClip in Symbol 479 MovieClip [wall19] Frame 1
onClipEvent (load) {
this.gotoAndPlay(168);
}
Instance of Symbol 481 MovieClip in Symbol 482 MovieClip [wall20] Frame 1
onClipEvent (load) {
var spd = 4;
var turnRate = 2;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
if (_root.dead) {
this._x = 100;
}
}
}
Instance of Symbol 487 MovieClip in Symbol 489 MovieClip [wall21] Frame 1
onClipEvent (load) {
var spd = 3;
var turnRate = 1;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
_root.fan4._x = this._x + 31;
if (_root.dead) {
this._x = 100;
_root.fan4._x = this._x + 31;
}
}
}
Symbol 494 MovieClip [insCLost2] Frame 1
stop();
Symbol 494 MovieClip [insCLost2] Frame 2
stop();
Symbol 516 MovieClip [insPow5] Frame 1
stop();
Symbol 516 MovieClip [insPow5] Frame 2
stop();
Symbol 519 MovieClip [insBadPow] Frame 1
stop();
Symbol 519 MovieClip [insBadPow] Frame 2
stop();
Symbol 522 MovieClip [insPow4] Frame 1
stop();
Symbol 522 MovieClip [insPow4] Frame 2
stop();
Symbol 524 MovieClip [pow4Msg] Frame 1
stop();
Symbol 526 MovieClip [pow5Msg] Frame 1
stop();
Instance of Symbol 487 MovieClip in Symbol 529 MovieClip [wall25] Frame 1
onClipEvent (load) {
var spd = 3;
var turnRate = 1;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
_root.fan3._x = this._x + 31;
if (_root.dead) {
this._x = 100;
_root.fan3._x = this._x + 31;
}
}
}
Instance of Symbol 487 MovieClip in Symbol 530 MovieClip [wall26] Frame 1
onClipEvent (load) {
var spd = 3;
var turnRate = 1;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
_root.fan4._x = this._x + 31;
if (_root.dead) {
this._x = 100;
_root.fan4._x = this._x + 31;
}
}
}
Instance of Symbol 481 MovieClip in Symbol 534 MovieClip [wall27] Frame 1
onClipEvent (load) {
var spd = 4;
var turnRate = 2;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
if (_root.dead) {
this._x = 100;
}
}
}
Instance of Symbol 537 MovieClip in Symbol 538 MovieClip [wall28] Frame 1
onClipEvent (load) {
var spd = 4;
var turnRate = 2;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = (_root.bot._y - this._y);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._x = this._x + movX;
if (_root.dead) {
this._x = 100;
}
}
}
Instance of Symbol 394 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y - spd;
if (this._y < 30) {
this._y = 510;
this._x = random(170) + 450;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Instance of Symbol 394 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y - spd;
if (this._y < 30) {
this._y = 510;
this._x = random(170) + 450;
spd = random(3) + 2;
}
}
Instance of Symbol 394 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y - spd;
if (this._y < 30) {
this._y = 510;
this._x = random(170) + 450;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Instance of Symbol 396 MovieClip in Symbol 540 MovieClip [wall29] Frame 1
onClipEvent (load) {
spd = random(3) + 2;
this.cacheAsBitmap = true;
}
onClipEvent (enterFrame) {
this._y = this._y + spd;
if (this._y > 510) {
this._y = 30;
this._x = random(170) + 80;
spd = random(3) + 2;
}
}
Symbol 543 MovieClip [insCareful] Frame 1
stop();
Symbol 543 MovieClip [insCareful] Frame 2
stop();
Instance of Symbol 546 MovieClip in Symbol 547 MovieClip [wall30] Frame 1
onClipEvent (load) {
var spd = 5;
var turnRate = 1;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = ((_root.bot._y - this._y) + 20);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._y = this._y + movY;
if (_root.dead) {
this._y = 420;
}
}
}
Instance of Symbol 551 MovieClip in Symbol 552 MovieClip [wall31] Frame 1
onClipEvent (load) {
var spd = 5;
var turnRate = 3;
var movX = 0;
var movY = 0;
}
onClipEvent (enterFrame) {
if (!_root.gPause) {
var distX = (_root.bot._x - this._x);
var distY = ((_root.bot._y - this._y) + 40);
distanceTotal = Math.sqrt((distX * distX) + (distY * distY));
var movedistX = ((turnRate * distX) / distanceTotal);
var movedistY = ((turnRate * distY) / distanceTotal);
movX = movX + movedistX;
movY = movY + movedistY;
var totalmove = Math.sqrt((movX * movX) + (movY * movY));
movX = (spd * movX) / totalmove;
movY = (spd * movY) / totalmove;
this._y = this._y + movY;
_root.fan2._y = this._y + 23;
if (_root.dead) {
this._y = 420;
_root.fan2._y = this._y + 23;
}
}
}
Symbol 557 MovieClip [insSave2] Frame 1
stop();
Symbol 557 MovieClip [insSave2] Frame 2
stop();
Symbol 560 MovieClip [insTime] Frame 1
stop();
Symbol 560 MovieClip [insTime] Frame 2
stop();
Symbol 567 MovieClip Frame 1
_root.stop();
Symbol 567 MovieClip Frame 165
_root.gotoAndPlay("MenuEng");
Symbol 582 MovieClip Frame 18
stop();
Symbol 597 MovieClip Frame 12
stop();
Symbol 602 Button
on (release) {
getURL ("http://www.clockworkmonster.com/?Mk5II-LogoBtn", "_blank");
}
Symbol 606 Button
on (release) {
getURL ("http://www.clockworkmonster.com?Mk5II", "_blank");
}
Symbol 610 Button
on (release) {
getURL ("http://djsc00p.newgrounds.com/", "_blank");
}
Symbol 706 MovieClip Frame 1
stop();
Symbol 706 MovieClip Frame 5
stop();
Symbol 706 MovieClip Frame 10
stop();
Symbol 706 MovieClip Frame 15
stop();
Symbol 706 MovieClip Frame 20
stop();
Symbol 706 MovieClip Frame 25
stop();
Symbol 713 MovieClip Frame 1
if (_root.sound) {
_root.introSnd.start(0.023, 3);
}
Symbol 713 MovieClip Frame 319
if (_root.sound) {
_root.teleSnd.start(0.02, 3);
}
Symbol 713 MovieClip Frame 386
_root.introSnd.stop();
_root.gotoAndStop("Game");
Symbol 720 MovieClip Frame 1
stop();
Symbol 722 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 1
stop();
Symbol 763 MovieClip Frame 2
stop();
Symbol 765 MovieClip [PlayAgain] Frame 1
stop();
Symbol 765 MovieClip [PlayAgain] Frame 2
stop();
Symbol 766 MovieClip Frame 33
stop();
Symbol 776 MovieClip Frame 123
gotoAndPlay (1);
Symbol 789 MovieClip Frame 1
stop();
Symbol 789 MovieClip Frame 2
stop();
Symbol 791 Button
on (release) {
getURL ("http://www.clockworkmonster.com?Mk5II", "_blank");
}