Frame 1
_focusrect = false;
Stage.showMenu = false;
Frame 2
ifFrameLoaded (4) {
bing = true;
gotoAndStop (4);
}
if (!bing) {
gotoAndPlay (1);
}
Frame 3
stop();
Frame 4
stop();
_focusrect = false;
Stage.showMenu = false;
frame_mc.swapDepths(10000000000000);
allLines.setMask(maskMC);
Frame 5
mochi.as2.MochiAd.showPreGameAd({id:"1411257360602ce8", res:"550x400"});
stop();
Frame 6
function stopSounds() {
allSounds.setVolume(0);
}
function restoreSounds() {
allSounds.setVolume(normalVolume);
}
function fadeInSound(channel, maxV, inc) {
var _local2 = this;
var myS = _local2["sound_" + channel];
_local2["s_" + channel].onEnterFrame = function () {
enters++;
var _local1 = myS.getVolume();
if (_local1 < maxV) {
myS.setVolume(_local1 + inc);
} else {
delete this["s_" + channel].onEnterFrame;
}
};
}
function fadeOutSound(channel, inc, sname) {
var _local2 = this;
var myS = _local2["sound_" + channel];
_local2["s_" + channel].onEnterFrame = function () {
enters++;
var _local1 = myS.getVolume();
if (_local1 > 0) {
myS.setVolume(_local1 - inc);
} else {
trace("***********stoped!********");
StopSound(channel, sname);
delete this.onEnterFrame;
}
};
}
function StopSound(channel, sname) {
this["sound_" + channel].stop([sname]);
this["s_" + channel].removeMovieClip();
}
function startSound(channel, sname, vol, loop, myLoc) {
var _local1 = channel;
var _local2 = this;
StopSound(_local1, sname);
theStageW = 680;
var tempPan = ((myLoc / theStageW) * 200);
var _local3 = tempPan - 100;
_local2.createEmptyMovieClip("s_" + _local1, 4030400 + _local1);
_local2["sound_" + _local1] = new Sound("s_" + _local1);
_local2["sound_" + _local1].attachSound(sname);
_local2["sound_" + _local1].setVolume(vol);
_local2["sound_" + _local1].stop([sname]);
if (myLoc != Void) {
_local2["sound_" + _local1].setPan(_local3);
} else {
_local2["sound_" + _local1].setPan(0);
}
_local2["sound_" + _local1].start(0, loop);
}
function startBadSound(channel, sname, vol, loop, myLoc) {
var _local1 = channel;
var _local2 = this;
StopSound(_local1, sname);
theStageW = 680;
var tempPan = ((myLoc / theStageW) * 200);
var _local3 = tempPan - 100;
_local2.createEmptyMovieClip("s_" + _local1, 4030400 + _local1);
_local2["sound_" + _local1] = new Sound("s_" + _local1);
_local2["sound_" + _local1].attachSound(sname);
_local2["sound_" + _local1].setVolume(vol);
_local2["sound_" + _local1].stop([sname]);
if (myLoc != Void) {
_local2["sound_" + _local1].setPan(_local3);
} else {
_local2["sound_" + _local1].setPan(0);
}
_local2["sound_" + _local1].start(0, loop);
}
function changeVolume(channel, vol) {
return(this["sound_" + channel].setVolume(vol));
}
function mixTo(music, vol) {
fadeOutSound(activeSound + 1, 3, oldname);
activeSound = !activeSound;
startSound(activeSound + 1, music, 0, 99999999);
fadeInSound(activeSound + 1, 70, 2);
oldname = music;
}
function fadeDownSound(channel, inc, sname) {
var _local2 = this;
var myS = _local2["sound_" + channel];
_local2["s_" + channel].onEnterFrame = function () {
var _local1 = myS.getVolume();
if (_local1 > 0) {
myS.setVolume(_local1 - inc);
} else {
delete this.onEnterFrame;
}
};
}
_quality = "LOW";
_global.allSounds = new Sound(this);
_global.normalVolume = 100;
Frame 7
function playerStart(startCode) {
var _local1 = startCode;
codeLevel = 0;
i = 0;
while (i < levelCodes.length) {
if (levelCodes[i] == _local1) {
trace(levelCodes[i]);
codeLevel = i;
}
i++;
}
if (_local1 == "cats") {
theTile = "tile_cat";
changeSound = "cat_change";
chooseSound = "cat_choose";
}
trace("code" + codeLevel);
gotoAndStop ("game");
}
function startBalloon() {
}
function showInstructions() {
var _local1 = _root;
trace("show instructions");
_local1.intro_mc.gotoAndPlay("instruct_start");
_local1.intro_mc.menu_mc.gotoAndStop("instruct");
_local1.gotoAndStop("instructions");
}
function mainMenu() {
var _local1 = _root;
_local1.gotoAndStop("intro");
_local1.intro_mc.gotoAndStop("idle");
_local1.intro_mc.menu_mc.gotoAndPlay(1);
_local1.flash_mc.gotoAndPlay(2);
}
stop();
_quality = "LOW";
theTile = "tile";
changeSound = "change";
chooseSound = "choose";
levelCodes = ["no code", "sidewalk", "lamppost", "statepen", "parklane", "msoffice", "dwelling", "glassbox", "raadmaan", "toyblocs", "bladerun", "pavement", "sealevel", "autoshop", "highrise", "omnicorp", "surfshaq", "seashell", "fishtank", "deadends"];
levelTimes = [60, 50, 50, 30, 45, 40, 40, 40, 40, 50, 50, 50, 70, 50, 70, 90, 90, 90, 90, 90];
Frame 9
function playerStart() {
codeLevel = 0;
i = 0;
while (i < levelCodes.length) {
if (levelCodes[i] == startCode) {
trace(levelCodes[i]);
codeLevel = i;
}
i++;
}
trace("code" + codeLevel);
gotoAndStop ("game");
}
function startBalloon() {
}
stop();
levelCodes = ["nocode", "iain", "lee", "john", "steve", "rick", "yawming", "tom", "eleanor", "keith", "liz", "lobb", "wong", "denton", "palmer", "hayes", "wilson", "jennings", "vaughan", "pennington"];
levelTimes = [30, 30, 30, 30, 30, 30, 30, 50, 50, 50, 50, 90, 90, 90, 90, 90, 90, 90, 90, 90];
Frame 10
function smoothTween(target_mc, params_obj, doNext) {
var _local1 = this;
var _local2 = target_mc;
_local2.createEmptyMovieClip("tweener", 10000);
_local2.tweener.myX = _local2._x;
_local2.tweener.myY = _local2._y;
if (params_obj.targetx != undefined) {
_local2.tweener.targetX = params_obj.targetx;
} else {
_local2.tweener.targetX = _local2._x;
}
if (params_obj.targety != undefined) {
_local2.tweener.targetY = params_obj.targety;
} else {
_local2.tweener.targetY = _local2._y;
}
_local2.tweener.speed = params_obj.speed;
_local2.tweener.onEnterFrame = function () {
var _local1 = this;
_local1.myX = _local1.myX + ((_local1.targetX - _local1.myX) / _local1.speed);
var _local2 = (_local1.targetY - _local1.myY) / _local1.speed;
if ((_local2 > 0) && (_local2 < 0.5)) {
_local2 = 0.5;
} else if ((_local2 < 0) && (_local2 > -0.5)) {
_local2 = -0.5;
}
_local1.myY = _local1.myY + _local2;
_local1._parent._x = Math.round(_local1.myX);
_local1._parent._y = Math.round(_local1.myY);
if ((_local1._parent._y == _local1.targetY) && (_local1._parent._x == _local1.targetX)) {
delete _local1.onEnterFrame;
trace("reached!");
doNext();
}
};
}
function Stack(playerName) {
var _local1 = this;
_local1.playername = playerName;
_local1.intervalID = undefined;
_local1.tileWidth = 75;
_local1.tileHeight = 38;
_local1.alpha = 100;
_local1.run = false;
_local1.createSounds();
_local1.main();
}
function generateRandom(theLevel) {
var _local2 = theLevel;
var numSquares = 0;
i = 0;
while (i < _local2.length) {
j = 0;
while (j < _local2[i].length) {
numSquares = numSquares + _local2[i][j];
j++;
}
i++;
}
var _local1 = [];
i = 0;
while (i < _local2.length) {
_local1.push([]);
j = 0;
while (j < _local2[i].length) {
_local1[i].push(0);
j++;
}
i++;
}
var numRows = _local2.length;
var numCols = _local2[0].length;
i = 0;
while (i < numSquares) {
var _local3 = random(numRows);
var randCol = random(numCols);
_local1[_local3][randCol] = _local1[_local3][randCol] + 1;
numRandTiles++;
i++;
}
var numSquares = 0;
i = 0;
while (i < _local1.length) {
j = 0;
while (j < _local1[i].length) {
numSquares = numSquares + _local1[i][j];
j++;
}
i++;
}
return(_local1);
}
function generateBluePrint(theLevel) {
var _local1 = theLevel;
i = 0;
while (i < _local1.length) {
j = 0;
while (j < _local1[i].length) {
bluePrint_mc["row" + j]["square" + (5 - i)].gotoAndStop(_local1[i][j] + 1);
j++;
}
i++;
}
}
function startDistrict() {
clearInterval(startInt);
title_mc.gotoAndPlay(2);
title_mc.levelNum_mc.levelNum = "Level " + (_global.game.Level + 1);
title_mc.districtName_mc.districtName = districtNames[theDistrict - 1];
title_mc.levelCode_mc.levelNum = "CODE: " + levelCodes[_global.game.Level];
}
function startLevel() {
hideFences(showGrid);
}
function hideFences(doNext) {
var _local1 = this;
fences_mc.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 6;
levels_mc._alpha = levels_mc._alpha - 6;
if (_local1._alpha < 1) {
delete _local1.onEnterFrame;
_local1._visible = false;
levels_mc._visible = false;
doNext();
}
};
}
function showGrid() {
var _local1 = this;
grid_mc._visible = true;
grid_mc._alpha = 0;
grid_mc.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 6;
if (_local1._alpha > 100) {
_local1._alpha = 100;
delete _local1.onEnterFrame;
game.begin();
}
};
}
function showWellDone() {
var _local1 = this;
code_mc.theCode = levelCodes[game.level + 1];
code_mc._visible = true;
wellDone_mc._visible = true;
wellDone_mc.gotoAndPlay(2);
wellDone_mc._alpha = 100;
levels_mc.gotoAndStop("level" + (game.level + 1));
levels_mc._visible = true;
levels_mc._alpha = 0;
levels_mc.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 5;
if (_local1._alpha >= 100) {
_local1._alpha = 100;
delete _local1.onEnterFrame;
}
};
grid_mc._alpha = 0;
grid_mc._visible = 0;
container.onEnterFrame = function () {
container._alpha = container._alpha - 5;
if (container._alpha < 0) {
container._alpha = 0;
delete this.onEnterFrame;
this._visible = false;
}
};
artists_mc._visible = false;
artists_mc.nextFrame();
}
function arrangeBuilding() {
var _local1 = this;
clearInterval(arrangeInt);
fadeInSound(2, 100, 5);
levels_mc.play();
wellDone_mc.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 5;
if (_local1._alpha < 0) {
_local1._alpha = 0;
_local1._visible = false;
delete _local1.onEnterFrame;
}
};
fences_mc._visible = true;
fences_mc.gotoAndStop(game.level + 2);
fences_mc.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha + 3;
if (_local1._alpha > 100) {
var _local2 = game.map.length;
if (game.level < (_local2 - 1)) {
game.level++;
game.nextLevel();
startInt = setInterval(startDistrict, 1000);
_local1._alpha = 100;
} else {
game.lose(true);
}
delete _local1.onEnterFrame;
}
};
}
function liftCity() {
clearInterval(liftint);
var _local1 = {targety:-300, speed:4};
smoothTween(cities_mc, _local1);
}
function showMainMenu() {
scoreSubmitter.sendScores();
_root.gotoAndStop("intro");
_root.intro_mc.gotoAndStop("idle");
}
function fib(n) {
var _local1 = n;
prev = -1;
varresult = 1;
while (_local1 >= 0) {
sum = prev + varresult;
prev = varresult;
varresult = sum;
_local1--;
}
return(varresult);
}
function checkParamsLoaded() {
var _local1 = _root;
trace("-------------");
for (i in _local1.scoreSubmitter) {
trace((i + ": ") + _local1.scoreSubmitter[i]);
}
trace("-------------");
}
function tint(col) {
my_color = new Color(container);
if (col == 1) {
my_color.setTransform({ra:64, rb:-6, ga:71, gb:-26, ba:71, bb:0, aa:100, ab:0});
} else if (col == 2) {
my_color.setTransform({ra:6, rb:0, ga:46, gb:0, ba:50, bb:0, aa:100, ab:0});
balloon_color = new Color(balloon);
balloon_color.setTransform({ra:6, rb:0, ga:46, gb:0, ba:50, bb:0, aa:100, ab:0});
}
}
function untint() {
my_color.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
balloon_color.setTransform({ra:100, rb:0, ga:100, gb:0, ba:100, bb:0, aa:100, ab:0});
}
function startBalloon() {
_root.balloon.gotoAndPlay(2);
balloon.onEnterFrame = function () {
_root.balloonTime = Math.round(displayCounter);
};
}
function resetBalloon() {
balloon.gotoAndStop(1);
balloon._y = -168;
balloonStarted = false;
}
function startGameTimer(chosenPeriod) {
gameLength = chosenPeriod * 1000;
gameStartDate = new Date();
gameStartTime = gameStartDate.getTime();
clearInterval(gameTimer);
gameTimer = setInterval(updateTimer, 10);
}
function updateTimer() {
var _local2 = new Date();
gamecounter = _local2.getTime() - gamestartTime;
realTime = gameLength - gamecounter;
displayCounter = int((realTime / 1000) * 1000) / 1000;
if (displayCounter < 14) {
if (!balloonStarted) {
_root.startBalloon();
balloonStarted = true;
}
}
if (displayCounter <= 0.1) {
clearInterval(gameTimer);
startSound(8, "chime", 100, 1);
game.stopTimer();
game.lose(false);
}
if (displayCounter < 6) {
balloon.balloon.red_bg._visible = true;
var _local1 = new TextFormat();
colCount++;
if (colCount > 5) {
colCount = 0;
col = !col;
}
if (col) {
startSound(8, "alarm", 100, 1);
balloon.balloon.red_bg._visible = false;
_local1.color = 16711680 /* 0xFF0000 */;
} else {
balloon.balloon.red_bg._visible = true;
_local1.color = 16777215 /* 0xFFFFFF */;
}
time_txt.setTextFormat(_local1);
}
if (gamecounter >= gameLength) {
clearInterval(gameTimer);
startSound(8, "chime", 100, 1);
game.stopTimer();
game.lose(false);
}
}
function showMessage(aMessage, theInt) {
clearInterval(theInt);
clearInterval(timeInt);
clearInterval(messageInt);
vizMessage = "";
messNum = 0;
message_array = aMessage.split("");
messageInt = setInterval(typeMessage, 20);
}
function typeMessage() {
vizMessage = vizMessage + message_array[messNum];
messNum++;
if (messNum > message_array.length) {
clearInterval(messageInt);
if (textStage == 0) {
messageInt = setInterval(showMessage, 1000, levelscore_msg, messageInt);
textStage = 1;
} else if (textStage == 1) {
clearInterval(messageInt);
textStage = 2;
} else if (textStage == 2) {
clearInterval(timeInt);
hideInt = setInterval(hideText, 3000);
}
}
}
function hideText() {
clearInterval(hideInt);
clearInterval(pieInt);
vizMessage = "";
}
rootURL = _root._url.split("/");
if (rootURL[0] == "file:") {
_global.mainURL = "http://www.stackopolis";
} else {
_global.mainURL = "http://" + rootURL[2];
}
_global.scoreURL = _global.mainURL + "/scores.php?";
scoreURL = _global.scoreURL;
varToSend = new LoadVars();
stop();
Movieclip.prototype.fade = function (ratio, friction, alpha) {
var _local1 = this;
if (_local1._alpha != alpha) {
_local1.ratio = "." + ratio;
_local1.friction = "." + friction;
_local1.alpha = alpha;
_local1.speedX = ((_local1.alpha - _local1._alpha) * _local1.ratio) + (_local1.speedX * _local1.friction);
_local1._alpha = _local1._alpha + _local1.speedX;
}
};
Stack.prototype.createSounds = function () {
var _local1 = this;
_local1.tick = new Sound();
_local1.choose = new Sound();
_local1.change = new Sound();
_local1.winsound = new Sound();
_local1.tick.attachSound("tick");
_local1.choose.attachSound(chooseSound);
_local1.change.attachSound(changeSound);
_local1.winsound.attachSound("win");
};
Stack.prototype.main = function () {
var _local1 = this;
_local1.getMaps();
_local1.mode = "choose";
_local1.moves = 0;
_local1.timer = levelTimes[_local1.level];
_local1.currentTime = _local1.timer;
_root.levels.gotoAndStop(1);
};
Stack.prototype.win = function () {
var _local1 = _global;
var _local3 = this;
displayCounter = "";
levelscore = realTime / 1000;
scoreToRecord = (gameLength / 1000) - levelscore;
if (scoreToRecord <= 0) {
clearInterval(gameTimer);
startSound(8, "chime", 100, 1);
game.stopTimer();
game.lose(false);
} else {
levelscore_msg = "Level time: " + (int(scoreToRecord * 1000) / 1000);
timeBonus_msg = "";
levelForRecord = int(_local1.game.Level) + 1;
_local1.stringServer = _local1.stringServer + ((("&score" + levelForRecord) + "=") + (scoreToRecord * 1000));
trace("stringServer=" + _local1.stringServer);
score_msg = "";
clearInterval(gameTimer);
var _local2 = {targety:-300, speed:20};
smoothTween(balloon, _local2, resetBalloon);
_local3.show("welldone");
_root.startSound(9, "win", 100, 1);
_root.fadeDownSound(2, 10, themeSound);
_local3.end();
_local3.displayRender();
showWellDone();
bluePrint_mc._visible = false;
timer = "";
arrangeInt = setInterval(arrangeBuilding, 7000);
textStage = 0;
showMessage(timeBonus_msg, 100);
if (game.level >= 19) {
comnpleted = true;
}
}
};
Stack.prototype.lose = function (won) {
var _local1 = this;
fadeOutSound(1, 2, areaSound);
fadeOutSound(2, 3, themeSound);
startSound(6, "loop", 0, 999999999);
fadeInSound(6, 100, 4);
gameIsOver = true;
lose_mc.gotoAndPlay(2);
if (won) {
lose_mc.districtName_mc.districtName = "You have completed all 20 levels of Stackopolis";
lose_mc.levelNum_mc.levelNum = "CONGRATULATIONS!";
lose_mc.levelCode_mc.levelNum = "";
lose_mc.click_mc.districtName = "CLICK TO CONTINUE";
} else {
lose_mc.districtName_mc.districtName = "CODE: " + levelCodes[_global.game.Level];
lose_mc.levelNum_mc.levelNum = "GAME OVER";
lose_mc.levelCode_mc.levelNum = "";
lose_mc.click_mc.districtName = "CLICK TO CONTINUE";
}
_local1.main();
_local1.end();
_local1.show("gameover");
_root.gameover.gotoAndPlay(2);
};
Stack.prototype.showNext = function () {
_root.nextLevel._visible = true;
};
Stack.prototype.hideNext = function () {
_root.nextLevel._visible = false;
};
Stack.prototype.displayRender = function () {
var _local1 = "render" + this.level;
_root.renders.gotoAndPlay(_local1);
};
Stack.prototype.toggleMode = function () {
var _local1 = this;
if (_local1.mode == "choose") {
_local1.choose.start(0, 0);
_local1.mode = "change";
} else if (_local1.mode == "change") {
_local1.change.start(0, 0);
_local1.mode = "choose";
}
};
Stack.prototype.pushBlock = function (name) {
var _local1 = this;
if (_local1.checkActive()) {
var tmp_name = name;
var location = tmp_name.split(",", 2);
var tmp_i = location[0];
var _local3 = location[1];
var _local2 = _local1.currentMap[tmp_i][_local3];
if (_local1.mode == "choose") {
if (_local2 == 0) {
} else {
_local1.toggleMode();
_local1.currentMap[tmp_i][_local3] = _local2 - 1;
_root.container[name].prevFrame();
}
} else if ((_local1.mode == "change") && (_local2 != 9)) {
_local1.currentMap[tmp_i][_local3] = _local2 + 1;
_root.container[name].nextFrame();
_local1.moves++;
_local1.toggleMode();
if (_local1.currentMap.toString() == _local1.currentWinMap.toString()) {
_local1.win();
}
}
}
};
Stack.prototype.removeBlocks = function () {
var mapWidth = this.currentMap[0].length;
var mapHeight = this.currentMap.length;
var _local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapHeight) {
var _local3 = (_local2 + ",") + _local1;
_root.container[_local3].removeMovieClip();
_local1++;
}
_local2++;
}
return(true);
};
Stack.prototype.resetScreen = function () {
var _local1 = _root;
if (this.removeBlocks()) {
_local1.container._x = 274;
_local1.container._y = 152;
this._visible = true;
_local1.container._visible = true;
_local1.container.onEnterFrame = function () {
_root.container.fade(4, 1, game.alpha);
};
}
};
Stack.prototype.nextLevel = function () {
var _local1 = this;
_local1.hide("welldone");
_local1.hide("nextLevel");
if (_local1.level < 4) {
theDistrict = 1;
} else if (_local1.level < 8) {
theDistrict = 2;
} else if (_local1.level < 12) {
theDistrict = 3;
} else if (_local1.level < 16) {
theDistrict = 4;
} else if (_local1.level < 20) {
theDistrict = 5;
}
if ((((_local1.level == 4) || (_local1.level == 8)) || (_local1.level == 12)) || (_local1.level == 16)) {
_root.untint();
cities_mc.play();
slab.play();
levels_mc.play();
}
_local1.timer = levelTimes[_local1.level];
_local1.currentTime = _local1.timer;
};
Stack.prototype.buildMap = function () {
this.toggle = "choose";
this.getMaps();
this.currentMap = this.map[this.level];
this.currentWinMap = this.winmap[this.level];
var mapWidth = this.currentMap[0].length;
var mapHeight = this.currentMap.length;
var _local2 = 0;
while (_local2 < mapHeight) {
var _local1 = 0;
while (_local1 < mapHeight) {
var _local3 = (_local2 + ",") + _local1;
_root.container.attachMovie(theTile, _local3, ++d);
_root.container[_local3]._x = (this.tileWidth / 2) * (_local1 - _local2);
_root.container[_local3]._y = (this.tileHeight / 2) * (_local1 + _local2);
_root.container[_local3].gotoAndStop(this.currentMap[_local2][_local1] + 1);
_local1++;
}
_local2++;
}
};
Stack.prototype.begin = function () {
var _local1 = this;
_local1.resetScreen();
_local1.buildMap();
_local1.run = true;
_local1.alpha = 100;
_local1.resetTimer();
_local1.startTimer();
generateBluePrint(_local1.currentWinMap);
blueprint_mc._visible = true;
artists_mc.gotoAndStop(game.level + 1);
artists_mc._visible = true;
code_mc._visible = false;
};
Stack.prototype.end = function () {
this.run = false;
this.stopTimer();
_root.displaycounter = "";
};
Stack.prototype.checkActive = function () {
if (this.run == true) {
return(true);
}
return(false);
};
Stack.prototype.getMaps = function () {
var _local1 = this;
_local1.mastermap = new Array();
_local1.map = new Array();
_local1.winmap = new Array();
_local1.mastermap[0] = [[0, 1, 2, 1, 2, 2], [0, 1, 3, 4, 1, 3], [1, 0, 3, 2, 1, 1], [3, 0, 2, 2, 1, 2], [1, 1, 1, 1, 0, 2], [2, 1, 1, 1, 5, 2]];
_local1.mastermap[1] = [[0, 4, 0, 2, 2, 1], [0, 2, 1, 3, 0, 0], [4, 2, 5, 3, 2, 1], [0, 2, 0, 2, 2, 1], [1, 3, 0, 2, 0, 2], [0, 1, 2, 1, 1, 0]];
_local1.mastermap[2] = [[1, 2, 3, 2, 2, 2], [1, 0, 1, 1, 3, 1], [1, 1, 0, 1, 3, 0], [3, 0, 2, 1, 0, 3], [1, 0, 2, 1, 0, 1], [2, 3, 0, 0, 3, 3]];
_local1.mastermap[3] = [[3, 0, 0, 1, 0, 1], [1, 2, 3, 1, 1, 2], [0, 0, 2, 1, 2, 0], [1, 1, 2, 0, 1, 0], [2, 1, 1, 1, 1, 0], [1, 3, 0, 1, 1, 3]];
_local1.mastermap[4] = [[2, 0, 3, 0, 1, 1], [0, 2, 0, 2, 0, 1], [2, 3, 3, 2, 2, 0], [0, 4, 2, 2, 1, 0], [0, 0, 3, 2, 0, 0], [1, 0, 0, 4, 2, 1]];
_local1.mastermap[5] = [[1, 0, 4, 2, 2, 1], [1, 1, 1, 3, 2, 0], [2, 1, 2, 0, 2, 0], [1, 1, 1, 0, 3, 0], [0, 3, 0, 1, 0, 0], [2, 2, 2, 1, 2, 0]];
_local1.mastermap[6] = [[1, 1, 0, 1, 0, 2], [0, 2, 1, 1, 1, 0], [1, 0, 2, 0, 1, 0], [1, 3, 1, 1, 2, 0], [3, 0, 1, 1, 0, 1], [1, 0, 0, 1, 0, 2]];
_local1.mastermap[7] = [[1, 2, 1, 1, 3, 2], [1, 3, 1, 3, 3, 0], [4, 2, 1, 2, 1, 2], [2, 3, 3, 0, 0, 2], [2, 2, 0, 2, 3, 1], [3, 1, 0, 0, 4, 2]];
_local1.mastermap[8] = [[1, 1, 0, 1, 1, 2], [1, 1, 3, 1, 2, 1], [2, 1, 2, 1, 1, 1], [4, 1, 2, 1, 1, 1], [1, 0, 2, 1, 1, 1], [2, 0, 1, 0, 1, 1]];
_local1.mastermap[9] = [[1, 1, 2, 0, 3, 1], [1, 0, 0, 1, 1, 1], [1, 0, 1, 2, 2, 0], [1, 2, 0, 0, 3, 3], [2, 0, 0, 2, 0, 1], [0, 2, 2, 1, 0, 2]];
_local1.mastermap[10] = [[2, 1, 4, 2, 1, 1], [2, 1, 0, 0, 0, 2], [1, 3, 3, 1, 1, 5], [2, 1, 3, 1, 2, 2], [2, 4, 1, 1, 1, 1], [1, 2, 0, 1, 5, 0]];
_local1.mastermap[11] = [[0, 0, 0, 1, 1, 1], [1, 1, 2, 2, 2, 3], [1, 1, 0, 0, 0, 0], [0, 4, 1, 5, 0, 3], [4, 0, 2, 2, 2, 3], [5, 2, 1, 3, 0, 2]];
_local1.mastermap[12] = [[2, 2, 1, 0, 2, 0], [1, 1, 1, 1, 2, 1], [1, 3, 1, 0, 0, 3], [2, 4, 0, 2, 1, 7], [1, 0, 1, 1, 0, 2], [3, 1, 1, 1, 2, 1]];
_local1.mastermap[13] = [[2, 2, 2, 2, 1, 2], [0, 4, 4, 1, 1, 0], [4, 3, 1, 6, 2, 1], [3, 1, 0, 2, 2, 2], [1, 1, 1, 0, 4, 1], [4, 0, 2, 2, 1, 3]];
_local1.mastermap[14] = [[2, 1, 4, 2, 0, 0], [1, 1, 0, 1, 2, 1], [3, 1, 2, 2, 4, 0], [2, 3, 1, 3, 1, 2], [1, 2, 1, 1, 0, 1], [0, 1, 1, 3, 0, 0]];
_local1.mastermap[15] = [[9, 1, 2, 2, 2, 3], [1, 2, 3, 0, 3, 6], [1, 1, 3, 2, 2, 4], [3, 6, 4, 2, 2, 2], [4, 4, 3, 1, 2, 2], [8, 3, 1, 1, 3, 8]];
_local1.mastermap[16] = [[0, 1, 2, 0, 4, 2], [2, 0, 3, 1, 3, 1], [3, 0, 2, 1, 1, 0], [0, 0, 0, 6, 2, 1], [3, 1, 5, 3, 3, 0], [1, 1, 3, 0, 3, 2]];
_local1.mastermap[17] = [[1, 3, 1, 4, 1, 2], [0, 2, 0, 1, 2, 2], [1, 0, 1, 1, 2, 3], [1, 2, 2, 3, 1, 3], [3, 3, 1, 5, 4, 1], [3, 1, 0, 1, 1, 4]];
_local1.mastermap[18] = [[2, 4, 2, 2, 1, 2], [5, 0, 1, 1, 2, 2], [3, 4, 1, 3, 2, 0], [1, 0, 3, 3, 0, 2], [4, 3, 2, 1, 2, 0], [3, 0, 0, 3, 3, 1]];
_local1.mastermap[19] = [[4, 1, 6, 5, 1, 3], [1, 2, 1, 4, 1, 2], [3, 1, 0, 1, 2, 6], [9, 2, 1, 0, 1, 2], [1, 1, 2, 1, 2, 5], [3, 1, 9, 5, 2, 5]];
_local1.winmap[0] = [[1, 1, 1, 1, 1, 1], [1, 2, 2, 2, 2, 1], [1, 2, 3, 3, 2, 1], [1, 2, 3, 3, 2, 1], [1, 2, 2, 2, 2, 1], [1, 1, 1, 1, 1, 1]];
_local1.winmap[1] = [[2, 2, 1, 1, 1, 0], [2, 2, 1, 1, 1, 0], [3, 3, 2, 2, 2, 0], [3, 3, 2, 2, 2, 0], [2, 2, 1, 1, 1, 0], [2, 2, 1, 1, 1, 0]];
_local1.winmap[2] = [[3, 3, 3, 0, 1, 1], [3, 2, 3, 0, 1, 1], [3, 3, 3, 0, 1, 1], [0, 0, 0, 0, 1, 1], [1, 1, 1, 1, 2, 2], [1, 1, 1, 1, 2, 2]];
_local1.winmap[3] = [[2, 1, 1, 1, 1, 2], [1, 0, 0, 0, 0, 1], [1, 0, 4, 4, 0, 1], [1, 0, 4, 4, 0, 1], [1, 0, 0, 0, 0, 1], [2, 1, 1, 1, 1, 2]];
_local1.winmap[4] = [[1, 2, 0, 2, 0, 2], [2, 3, 0, 2, 0, 2], [0, 0, 0, 2, 0, 2], [2, 2, 2, 3, 0, 2], [0, 0, 0, 0, 0, 2], [2, 2, 2, 2, 2, 3]];
_local1.winmap[5] = [[0, 0, 0, 0, 4, 4], [0, 1, 1, 1, 1, 4], [0, 1, 2, 2, 1, 0], [0, 1, 2, 2, 1, 0], [4, 1, 1, 1, 1, 0], [4, 4, 0, 0, 0, 0]];
_local1.winmap[6] = [[0, 1, 0, 0, 1, 0], [1, 5, 1, 1, 5, 1], [0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0], [1, 5, 1, 1, 5, 1], [0, 1, 0, 0, 1, 0]];
_local1.winmap[7] = [[1, 1, 1, 1, 1, 1], [1, 4, 4, 4, 3, 1], [1, 4, 0, 0, 3, 1], [1, 4, 0, 0, 3, 1], [1, 3, 3, 3, 5, 1], [1, 1, 1, 1, 1, 1]];
_local1.winmap[8] = [[0, 1, 5, 5, 1, 0], [0, 0, 3, 3, 0, 0], [0, 0, 2, 2, 0, 0], [0, 0, 2, 2, 0, 0], [0, 0, 3, 3, 0, 0], [0, 1, 5, 5, 1, 0]];
_local1.winmap[9] = [[0, 0, 0, 0, 1, 5], [0, 0, 0, 0, 1, 4], [1, 1, 1, 1, 1, 3], [1, 4, 3, 2, 1, 2], [1, 3, 0, 0, 0, 0], [1, 2, 0, 0, 0, 0]];
_local1.winmap[10] = [[1, 2, 3, 4, 5, 6], [0, 0, 0, 0, 0, 0], [6, 5, 4, 3, 2, 1], [0, 0, 0, 0, 0, 0], [2, 1, 2, 1, 2, 1], [1, 2, 1, 2, 1, 2]];
_local1.winmap[11] = [[1, 2, 0, 0, 0, 0], [2, 3, 2, 3, 0, 0], [0, 2, 1, 3, 0, 0], [0, 3, 3, 4, 2, 4], [0, 0, 0, 2, 1, 4], [0, 0, 0, 4, 4, 5]];
_local1.winmap[12] = [[1, 1, 0, 0, 1, 1], [1, 3, 0, 0, 3, 1], [1, 7, 0, 0, 5, 1], [1, 5, 0, 0, 7, 1], [1, 3, 0, 0, 3, 1], [1, 1, 0, 0, 1, 1]];
_local1.winmap[13] = [[1, 1, 1, 1, 1, 1], [1, 2, 3, 4, 3, 1], [1, 3, 4, 4, 2, 1], [1, 4, 4, 4, 2, 1], [1, 3, 2, 2, 2, 1], [1, 1, 1, 1, 1, 1]];
_local1.winmap[14] = [[2, 1, 0, 0, 0, 0], [1, 3, 5, 1, 2, 0], [0, 5, 3, 6, 1, 0], [0, 1, 6, 0, 1, 1], [0, 2, 1, 1, 0, 3], [0, 0, 0, 1, 3, 0]];
_local1.winmap[15] = [[1, 1, 2, 3, 5, 6], [1, 0, 2, 3, 5, 6], [2, 2, 2, 3, 5, 6], [3, 3, 3, 9, 0, 0], [5, 5, 5, 0, 0, 0], [6, 6, 6, 0, 0, 0]];
_local1.winmap[16] = [[1, 1, 1, 1, 1, 1], [1, 0, 3, 0, 3, 1], [1, 3, 2, 2, 0, 0], [1, 0, 2, 2, 3, 2], [1, 3, 0, 3, 0, 4], [1, 1, 0, 2, 4, 9]];
_local1.winmap[17] = [[2, 1, 1, 2, 1, 2], [1, 0, 0, 0, 0, 1], [2, 4, 7, 7, 4, 1], [1, 0, 0, 0, 1, 0], [1, 0, 0, 0, 1, 0], [2, 7, 4, 4, 7, 2]];
_local1.winmap[18] = [[4, 1, 2, 0, 0, 1], [1, 0, 1, 0, 0, 2], [2, 1, 2, 1, 2, 3], [0, 0, 1, 4, 1, 4], [0, 0, 2, 1, 1, 6], [1, 2, 3, 4, 6, 9]];
_local1.winmap[19] = [[3, 1, 6, 6, 1, 3], [1, 2, 1, 2, 1, 1], [6, 1, 0, 1, 2, 2], [6, 2, 1, 0, 1, 5], [1, 1, 2, 1, 2, 9], [3, 1, 2, 5, 9, 5]];
trace(generateRandom(_local1.winmap[19]));
_local1.map[0] = _local1.mastermap[0];
_local1.map[1] = _local1.mastermap[1];
_local1.map[2] = _local1.mastermap[2];
_local1.map[3] = _local1.mastermap[3];
_local1.map[4] = _local1.mastermap[4];
_local1.map[5] = _local1.mastermap[5];
_local1.map[6] = _local1.mastermap[6];
_local1.map[7] = _local1.mastermap[7];
_local1.map[8] = _local1.mastermap[8];
_local1.map[9] = _local1.mastermap[9];
_local1.map[10] = _local1.mastermap[10];
_local1.map[11] = _local1.mastermap[11];
_local1.map[12] = _local1.mastermap[12];
_local1.map[13] = _local1.mastermap[13];
_local1.map[14] = _local1.mastermap[14];
_local1.map[15] = _local1.mastermap[15];
_local1.map[16] = _local1.mastermap[16];
_local1.map[17] = _local1.mastermap[17];
_local1.map[18] = _local1.mastermap[18];
_local1.map[19] = _local1.mastermap[19];
};
Stack.prototype.resetTimer = function () {
var _local1 = this;
_local1.currentTime = _local1.timer;
_local1.displayTimer();
};
Stack.prototype.displayTimer = function () {
_root.timer = this.currentTime;
};
Stack.prototype.startTimer = function () {
startGameTimer(game.timer);
};
Stack.prototype.stopTimer = function () {
clearInterval(this.intervalID);
};
Stack.prototype.show = function (clipname) {
_root[clipname]._visible = true;
};
Stack.prototype.hide = function (clipname) {
_root[clipname]._visible = false;
};
_global.game = new Stack();
generateRandom(game.winmap[19]);
score = 0;
_quality = "LOW";
stopSound(6, "loop");
game.level = codeLevel;
gameIsOver = false;
game.nextLevel();
code_mc._visible = false;
blueprint_mc._visible = false;
welldone_mc._visible = false;
grid_mc._visible = false;
artists_mc._visible = false;
grid_mc._alpha = 0;
levels_mc.gotoAndStop("prog" + game.level);
balloonStarted = true;
balloonStarted = false;
districtNames = ["OLD METROPOLIS", "GOTHAM PARK", "NEO SQUARE", "CIRCUIT VALLEY", "TERRASTAK 5"];
cities_mc.gotoAndPlay("drop" + theDistrict);
slab.gotoAndPlay("drop" + theDistrict);
nextTitleEvent = function () {
startLevel();
};
startInt = setInterval(startDistrict, 2000);
title_mc.districtname_mc.title = "";
title_mc.subTitle = "";
fences_mc.gotoAndStop(game.level + 1);
scoreSubmitter.sendScores = function () {
var _local1 = this;
var _local2 = _global;
n = "";
_local1.name = _root.playername;
varToSend = new LoadVars();
varToReceive = new LoadVars();
varToSend.onLoad = function (success) {
var _local1 = this;
if (success) {
x = 0;
while (x < 47) {
if (fib(x) == _local1.fn) {
n = x;
break;
}
x++;
}
trace(">>>>>>>>>>>" + n);
varToSendR = new LoadVars();
answer = (((("&hvd=" + escape(_local1.hvd)) + "&fn=") + _local1.fn) + "&n=") + n;
varToSendR.load((((_global.scoreURL + "action=addscore&name=") + escape(scoreSubmitter.name)) + _global.stringServer) + answer);
} else {
trace("failure");
}
};
varToSend.load(((_local2.scoreURL + "action=addscore&name=") + escape(scoreSubmitter.name)) + _local2.stringServer);
};
Frame 11
stop();
Symbol 1078 MovieClip [__Packages.mochi.as2.MochiAd] Frame 0
class mochi.as2.MochiAd
{
function MochiAd () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
static function showPreGameAd(options) {
//var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, no_progress_bar:false, ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}, ad_progress:function (percent) {
}};
options = _parseOptions(options, DEFAULTS);
if ("c862232051e0a94e1c3609b3916ddb17".substr(0) == "dfeada81ac97cde83665f81c12da7def") {
options.ad_started();
options.ad_finished();
} else {
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
if (options.skip) {
ad_timeout = 0;
}
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var _local3 = wh[0];
var h = wh[1];
mc._x = _local3 * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk._x = _local3 * -0.5;
chk._y = h * -0.5;
var bar = chk.createEmptyMovieClip("_mochiad_bar", 4);
if (options.no_progress_bar) {
bar._visible = false;
delete options.no_progress_bar;
} else {
bar._x = 10;
bar._y = h - 20;
}
var bar_color = options.color;
delete options.color;
var bar_background = options.background;
delete options.background;
var bar_outline = options.outline;
delete options.outline;
var backing = bar.createEmptyMovieClip("_outline", 1);
backing.beginFill(bar_background);
backing.moveTo(0, 0);
backing.lineTo(_local3 - 20, 0);
backing.lineTo(_local3 - 20, 10);
backing.lineTo(0, 10);
backing.lineTo(0, 0);
backing.endFill();
var _local2 = bar.createEmptyMovieClip("_inside", 2);
_local2.beginFill(bar_color);
_local2.moveTo(0, 0);
_local2.lineTo(_local3 - 20, 0);
_local2.lineTo(_local3 - 20, 10);
_local2.lineTo(0, 10);
_local2.lineTo(0, 0);
_local2.endFill();
_local2._xscale = 0;
var outline = bar.createEmptyMovieClip("_outline", 3);
outline.lineStyle(0, bar_outline, 100);
outline.moveTo(0, 0);
outline.lineTo(_local3 - 20, 0);
outline.lineTo(_local3 - 20, 10);
outline.lineTo(0, 10);
outline.lineTo(0, 0);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.last_pcnt = 0;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
var sendHostProgress = false;
mc.lc.sendHostLoadProgress = function (lc_name) {
sendHostProgress = true;
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var _clip = _local1._parent._parent;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local3 = false;
var clip_total = _clip.getBytesTotal();
var clip_loaded = _clip.getBytesLoaded();
var _local2 = (100 * clip_loaded) / clip_total;
var ad_pcnt = ((100 * elapsed) / chk.ad_msec);
var _inside = _local1._mochiad_bar._inside;
var pcnt = Math.min(100, Math.min(_local2 || 0, ad_pcnt));
pcnt = Math.max(_local1.last_pcnt, pcnt);
_local1.last_pcnt = pcnt;
_inside._xscale = pcnt;
options.ad_progress(pcnt);
if (sendHostProgress) {
mochi.as2.MochiAd.containerNotify(clip, {id:"hostLoadPcnt", pcnt:_local2}, clip._mochiad._containerLCName);
if (_local2 == 100) {
sendHostProgress = false;
}
}
if (!chk.showing) {
var total = ad_clip.getBytesTotal();
if ((total > 0) || (typeof(total) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if ((elapsed > chk.ad_timeout) && (_local2 == 100)) {
options.ad_failed();
_local3 = true;
}
}
if (elapsed > chk.ad_msec) {
_local3 = true;
}
if (((clip_total > 0) && (clip_loaded >= clip_total)) && (_local3)) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = chk.fadeFunction;
}
}
};
}
}
}
static function showClickAwayAd(options) {
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showClickAwayAd", res:"300x250", no_bg:true, ad_started:function () {
}, ad_finished:function () {
}, ad_loaded:function (width, height) {
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_skipped:function () {
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var _local2 = _getRes(options);
var w = _local2[0];
var h = _local2[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
var sendHostProgress = false;
mc.lc.regContLC = function (lc_name) {
mc._containerLCName = lc_name;
};
chk.onEnterFrame = function () {
var ad_clip = this._parent._mochiad_ctr;
var _local3 = getTimer() - this.started;
var _local1 = false;
if (!chk.showing) {
var _local2 = ad_clip.getBytesTotal();
if ((_local2 > 0) || (typeof(_local2) == "undefined")) {
_local1 = true;
chk.showing = true;
chk.started = getTimer();
} else if (_local3 > chk.ad_timeout) {
options.ad_failed();
_local1 = true;
}
}
if (_local1) {
delete this.onEnterFrame;
}
};
}
}
static function showInterLevelAd(options) {
//var _local1 = this;
var DEFAULTS = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () {
this.clip.stop();
}, ad_finished:function () {
this.clip.play();
}, ad_failed:function () {
trace("[MochiAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software");
}, ad_loaded:function (width, height) {
}, ad_skipped:function () {
}};
options = _parseOptions(options, DEFAULTS);
var clip = options.clip;
var ad_msec = 11000;
var ad_timeout = options.ad_timeout;
delete options.ad_timeout;
var fadeout_time = options.fadeout_time;
delete options.fadeout_time;
if (!load(options)) {
options.ad_failed();
options.ad_finished();
} else {
options.ad_started();
var mc = clip._mochiad;
mc.onUnload = function () {
options.ad_finished();
};
var wh = _getRes(options);
var w = wh[0];
var h = wh[1];
mc._x = w * 0.5;
mc._y = h * 0.5;
var chk = mc.createEmptyMovieClip("_mochiad_wait", 3);
chk.ad_msec = ad_msec;
chk.ad_timeout = ad_timeout;
chk.started = getTimer();
chk.showing = false;
chk.fadeout_time = fadeout_time;
chk.fadeFunction = function () {
var _local1 = this;
var _local2 = 100 * (1 - ((getTimer() - _local1.fadeout_start) / _local1.fadeout_time));
if (_local2 > 0) {
_local1._parent._alpha = _local2;
} else {
var _local3 = _local1._parent._parent;
mochi.as2.MochiAd.unload(_local3);
delete _local1.onEnterFrame;
}
};
mc.lc.adLoaded = options.ad_loaded;
mc.lc.adSkipped = options.ad_skipped;
mc.lc.adjustProgress = function (msec) {
var _local1 = this.mc._mochiad_wait;
_local1.server_control = true;
_local1.started = getTimer();
_local1.ad_msec = msec - 250;
};
mc.lc.rpc = function (callbackID, arg) {
mochi.as2.MochiAd.rpc(clip, callbackID, arg);
};
mc.rpcTestFn = function (s) {
trace("[MOCHIAD rpcTestFn] " + s);
return(s);
};
chk.onEnterFrame = function () {
var _local1 = this;
var ad_clip = _local1._parent._mochiad_ctr;
var elapsed = (getTimer() - _local1.started);
var _local2 = false;
if (!chk.showing) {
var _local3 = ad_clip.getBytesTotal();
if ((_local3 > 0) || (typeof(_local3) == "undefined")) {
chk.showing = true;
chk.started = getTimer();
} else if (elapsed > chk.ad_timeout) {
options.ad_failed();
_local2 = true;
}
}
if (elapsed > chk.ad_msec) {
_local2 = true;
}
if (_local2) {
if (_local1.server_control) {
delete _local1.onEnterFrame;
} else {
_local1.fadeout_start = getTimer();
_local1.onEnterFrame = _local1.fadeFunction;
}
}
};
}
}
static function showPreloaderAd(options) {
trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0");
showPreGameAd(options);
}
static function showTimedAd(options) {
trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0");
showInterLevelAd(options);
}
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 load(options) {
var _local1 = options;
var DEFAULTS = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"};
_local1 = _parseOptions(_local1, DEFAULTS);
_local1.swfv = _local1.clip.getSWFVersion() || 6;
_local1.mav = getVersion();
var clip = _local1.clip;
if (!_isNetworkAvailable()) {
return(null);
}
if (clip._mochiad_loaded) {
return(null);
}
var depth = _local1.depth;
delete _local1.depth;
var mc = clip.createEmptyMovieClip("_mochiad", depth);
var wh = _getRes(_local1);
_local1.res = (wh[0] + "x") + wh[1];
_local1.server = _local1.server + _local1.id;
delete _local1.id;
clip._mochiad_loaded = true;
if (clip._url.indexOf("http") != 0) {
trace("[MochiAd] NOTE: Security Sandbox Violation errors below are normal");
}
var _local2 = mc.createEmptyMovieClip("_mochiad_ctr", 1);
for (var k in _local1) {
_local2[k] = _local1[k];
}
var server = _local2.server;
delete _local2.server;
var hostname = _allowDomains(server);
mc.onEnterFrame = function () {
var _local1 = this;
if (_local1._mochiad_ctr._url != _local1._url) {
_local1.onEnterFrame = function () {
var _local1 = this;
if (!_local1._mochiad_ctr) {
delete _local1.onEnterFrame;
mochi.as2.MochiAd.unload(_local1._parent);
}
};
}
};
var _local3 = new Object();
var name = ["", Math.floor(new Date().getTime()), random(999999)].join("_");
_local3.mc = mc;
_local3.name = name;
_local3.hostname = hostname;
_local3.allowDomain = function (d) {
return(true);
};
_local3.allowInsecureDomain = _local3.allowDomain;
_local3.connect(name);
mc.lc = _local3;
_local2.lc = name;
_local2.st = getTimer();
if (!_local1.skip) {
_local2.loadMovie(server + ".swf", "POST");
}
return(mc);
}
static function unload(clip) {
var _local1 = clip;
if (typeof(_local1) == "undefined") {
_local1 = _root;
}
if (_local1.clip && (_local1.clip._mochiad)) {
_local1 = _local1.clip;
}
if (!_local1._mochiad) {
return(false);
}
containerNotify(_local1, {id:"unload"}, _local1._mochiad._containerLCName);
_local1._mochiad.removeMovieClip();
delete _local1._mochiad_loaded;
delete _local1._mochiad;
return(true);
}
static function _isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function _getRes(options) {
var _local3 = options.clip.getBounds();
var _local2 = 0;
var _local1 = 0;
if (typeof(options.res) != "undefined") {
var xy = options.res.split("x");
_local2 = parseFloat(xy[0]);
_local1 = parseFloat(xy[1]);
} else {
_local2 = _local3.xMax - _local3.xMin;
_local1 = _local3.yMax - _local3.yMin;
}
if ((_local2 == 0) || (_local1 == 0)) {
_local2 = Stage.width;
_local1 = Stage.height;
}
return([_local2, _local1]);
}
static function _parseOptions(options, defaults) {
var _local3 = {};
for (var k in defaults) {
_local3[k] = defaults[k];
}
if (options) {
for (var k in options) {
_local3[k] = options[k];
}
}
if (_root.mochiad_options) {
var pairs = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < pairs.length) {
var _local2 = pairs[_local1].split("=");
_local3[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
if (_local3.id == "test") {
trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!");
}
return(_local3);
}
static function rpc(clip, callbackID, arg) {
var _local1 = clip;
var _local2 = arg;
switch (_local2.id) {
case "setValue" :
setValue(_local1, _local2.objectName, _local2.value);
return;
case "getValue" :
var val = getValue(_local1, _local2.objectName);
containerRpcResult(_local1, callbackID, val, _local1._mochiad._containerLCName);
return;
case "runMethod" :
var _local3 = runMethod(_local1, _local2.method, _local2.args);
containerRpcResult(_local1, callbackID, _local3, _local1._mochiad._containerLCName);
return;
default :
trace("[mochiads rpc] unknown rpc id: " + _local2.id);
}
}
static function setValue(base, objectName, value) {
var _local3 = base;
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((_local3[_local2[_local1]] == undefined) || (_local3[_local2[_local1]] == null)) {
return;
}
_local3 = _local3[_local2[_local1]];
_local1++;
}
_local3[_local2[_local1]] = value;
}
static function getValue(base, objectName) {
var _local3 = base;
var _local2 = objectName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((_local3[_local2[_local1]] == undefined) || (_local3[_local2[_local1]] == null)) {
return(undefined);
}
_local3 = _local3[_local2[_local1]];
_local1++;
}
return(_local3[_local2[_local1]]);
}
static function runMethod(base, methodName, argsArray) {
var _local3 = base;
var _local2 = methodName.split(".");
var _local1;
_local1 = 0;
while (_local1 < (_local2.length - 1)) {
if ((_local3[_local2[_local1]] == undefined) || (_local3[_local2[_local1]] == null)) {
return(undefined);
}
_local3 = _local3[_local2[_local1]];
_local1++;
}
if (typeof(_local3[_local2[_local1]]) == "function") {
return(_local3[_local2[_local1]].apply(_local3, argsArray));
}
return(undefined);
}
static function containerNotify(clip, args, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.notify) {
_local1.notify(args);
} else {
new LocalConnection().send(lcName, "notify", args);
}
}
static function containerRpcResult(clip, callbackID, val, lcName) {
var _local1 = clip._mochiad._mochiad_ctr.ad.app;
if (_local1.rpcResult) {
_local1.rpcResult(callbackID, val);
} else {
new LocalConnection().send(lcName, "rpcResult", callbackID, val);
}
}
}
Symbol 1079 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);
return;
case SYNC_PROPERTY :
_syncContainer[args.name] = args.value;
}
}
static var SYNC_REQUEST = "SyncRequest";
static var SYNC_PROPERTY = "UpdateProperty";
}
Symbol 1080 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.7 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) {
var _local1 = val;
if (_local1 != undefined) {
if (_local1.length > 3) {
_sendChannelName = _local1 + "_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 clipname = ("_mochiservices_com_" + id);
var _local3 = new MovieClipLoader();
var _local1 = {};
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servURL) {
_servURL = urlOptions().servURL;
}
var _local2 = _servURL + _services;
if (urlOptions().servicesURL) {
_local2 = urlOptions().servicesURL;
}
allowDomains(_local2);
_clip = clip.createEmptyMovieClip(clipname, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
if (_local1.waitInterval != null) {
clearInterval(_local1.waitInterval);
}
_local1.onLoadError = loadError;
_local1.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_local1.onLoadComplete = function (target_mc) {
target_mc.MochiServices = mochi.as2.MochiServices;
};
_local1.startTime = getTimer();
_local1.wait = function () {
var _local1 = this;
if ((getTimer() - _local1.startTime) > 10000) {
if (!_local1.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(_local1.waitInterval);
}
};
_local1.waitInterval = setInterval(_local1, "wait", 1000);
_local3.addListener(_local1);
_local3.loadClip((((((_local2 + "?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, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var cb = pkg.callbackID;
var _local3 = this._callbacks[cb];
if (!_local3) {
} else {
var _local1 = _local3.callbackMethod;
var _local2 = _local3.callbackObject;
if (_local2 && (typeof(_local1) == "string")) {
_local1 = _local2[_local1];
}
if (_local1 != undefined) {
_local1.apply(_local2, pkg.args);
}
delete this._callbacks[cb];
}
};
_listenChannel.onEvent = function (pkg) {
var _local1 = pkg;
switch (_local1.target) {
case "events" :
mochi.as2.MochiEvents.triggerEvent(_local1.event, _local1.args);
return;
case "coins" :
mochi.as2.MochiSocial.triggerEvent(_local1.event, _local1.args);
return;
case "sync" :
mochi.as2.MochiServices.servicesSync.triggerEvent(_local1.event, _local1.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 _local3 = 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 (_local3) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
var _local1 = args;
var _local2 = callbackMethod;
if (_local1 != null) {
if (_local1.onError != null) {
_local1.onError.apply(null, ["NotConnected"]);
}
if ((_local1.options != null) && (_local1.options.onError != null)) {
_local1.options.onError.apply(null, ["NotConnected"]);
}
}
if (_local2 != null) {
_local1 = {};
_local1.error = true;
_local1.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(_local2) == "string")) {
callbackObject[_local2](_local1);
} else if (_local2 != null) {
_local2.apply(_local1);
}
}
}
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 opts = {};
var options;
if (_root._url.indexOf("mochiad_options") != -1) {
var _local1 = (_root._url.indexOf("mochiad_options") + "mochiad_options".length) + 1;
options = _root._url.substr(_local1, _root._url.length);
} else if (_root.mochiad_options) {
options = _root.mochiad_options;
}
if (options) {
var _local3 = _root.mochiad_options.split("&");
var _local1 = 0;
while (_local1 < _local3.length) {
var _local2 = _local3[_local1].split("=");
opts[unescape(_local2[0])] = unescape(_local2[1]);
_local1++;
}
}
return(opts);
}
static function warnID(bid, leaderboard) {
var _local2 = bid;
var _local3 = leaderboard;
_local2 = _local2.toLowerCase();
if (_local2.length != 16) {
trace(("WARNING: " + (_local3 ? "board" : "game")) + " ID is not the appropriate length");
} else if (_local2 == "1e113c7239048b3f") {
if (_local3) {
trace("WARNING: Using testing board ID");
} else {
trace("WARNING: Using testing board ID as game ID");
}
} else if (_local2 == "84993a1de4031cd8") {
if (_local3) {
trace("WARNING: Using testing game ID as board ID");
} else {
trace("WARNING: Using testing game ID");
}
} else {
var _local1 = 0;
while (_local1 < _local2.length) {
switch (_local2.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: " + _local2);
return;
}
_local1++;
}
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local1 = new Object();
_local1.mav = getVersion();
_local1.swfv = btn.getSWFVersion() || 6;
_local1.swfurl = btn._url;
_local1.fv = System.capabilities.version;
_local1.os = System.capabilities.os;
_local1.lang = System.capabilities.language;
_local1.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local2 = 0;
for (var x in _local1) {
if (_local2 != 0) {
s = s + "&";
}
_local2++;
s = ((s + x) + "=") + escape(_local1[x]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var nettest = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
nettest.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 _local3 = btn.createEmptyMovieClip("clk", 1001);
_local3._alpha = 0;
_local3.beginFill(1044735);
_local3.moveTo(0, 0);
_local3.lineTo(0, btn._height);
_local3.lineTo(btn._width, btn._height);
_local3.lineTo(btn._width, 0);
_local3.lineTo(0, 0);
_local3.endFill();
_local3.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 1081 MovieClip [__Packages.mochi.as2.MochiEventDispatcher] Frame 0
class mochi.as2.MochiEventDispatcher
{
var eventTable;
function MochiEventDispatcher () {
eventTable = {};
}
function buildDelegate(thisObject, thatObject) {
var _local1 = thatObject;
var _local2 = {thisObject:thisObject, thatObject:_local1};
if (_local1 != undefined) {
var funct = ((typeof(_local1) == "string") ? (thisObject[_local1]) : (_local1));
_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) {
var _local1 = this;
_local1.removeEventListener(event, thisObject, thatObject);
_local1.eventTable[event].push(_local1.buildDelegate(thisObject, thatObject));
}
function removeEventListener(event, thisObject, thatObject) {
var _local1 = this;
var _local2 = event;
var _local3 = _local1.buildDelegate(thisObject, thatObject);
if (_local1.eventTable[_local2] == undefined) {
_local1.eventTable[_local2] = [];
} else {
for (var s in _local1.eventTable[_local2]) {
if (!_local1.compareDelegate(_local1.eventTable[_local2][s], _local3)) {
continue;
}
_local1.eventTable[_local2].splice(Number(s), 1);
}
}
}
function triggerEvent(event, args) {
var _local1 = event;
var _local2 = this;
var _local3 = args;
if (_local2.eventTable[_local1] == undefined) {
} else {
for (var i in _local2.eventTable[_local1]) {
_local2.eventTable[_local1][i].delegate(_local3);
}
}
}
}
Symbol 1082 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) {
var _local1 = obj;
if (_local1 == undefined) {
_local1 = {};
} else if (_local1.kind != undefined) {
trace("WARNING: optional arguements package contains key 'id', it will be overwritten");
_local1.kind = kind;
}
mochi.as2.MochiServices.send("events_triggerEvent", {eventObject:_local1}, null, null);
}
static function setNotifications(clip, style) {
var _local1 = style;
var _local2 = {};
for (var _local3 in _local1) {
_local2[_local3] = _local1[_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 1083 MovieClip [__Packages.mochi.as2.MochiSocial] Frame 0
class mochi.as2.MochiSocial
{
function MochiSocial () {
}
static function getVersion() {
return(mochi.as2.MochiServices.getVersion());
}
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 requestLogin() {
mochi.as2.MochiServices.send("coins_requestLogin");
}
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 LOGIN_SHOWN = "LoginShown";
static var PROFILE_SHOW = "ProfileShow";
static var PROFILE_HIDE = "ProfileHide";
static var PROPERTIES_SAVED = "PropertySaved";
static var WIDGET_LOADED = "WidgetLoaded";
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 16 MovieClip Frame 90
_root.nextFrame();
Symbol 18 MovieClip Frame 100
_root.nextFrame();
Symbol 24 Button
on (release) {
getURL ("http://www.thegameslist.com");
}
Symbol 32 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 16
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
stop();
Symbol 49 MovieClip Frame 3
stop();
Symbol 49 MovieClip Frame 4
stop();
Symbol 49 MovieClip Frame 5
stop();
Symbol 49 MovieClip Frame 6
stop();
Symbol 49 MovieClip Frame 7
stop();
Symbol 49 MovieClip Frame 8
stop();
Symbol 49 MovieClip Frame 9
stop();
Instance of Symbol 44 MovieClip in Symbol 49 MovieClip Frame 9
onClipEvent (enterFrame) {
if (_alpha > 0) {
_alpha = (_alpha - 3);
}
}
Symbol 51 MovieClip [player] Frame 1
this.onLoad = (this.speed = 2);
sinY = (cosY = 0.707);
cosX = 0.866;
this.onLoad = (this.render = function () {
_x = (((-ypos) * sinY) + (xpos * cosY));
_y = ((height * cosX) - ((((-ypos) * cosY) - (xpos * sinY)) / 2));
var _local1 = (centerY * mapH) + (centerX + 1);
this.swapDepths(_local1);
});
this.onEnterFrame = (this.control = function () {
if (Key.isDown(38)) {
ypos = ypos - speed;
}
if (Key.isDown(40)) {
ypos = ypos + speed;
}
if (Key.isDown(37)) {
xpos = xpos - speed;
}
if (Key.isDown(39)) {
xpos = xpos + speed;
}
var _local3 = Math.floor((ypos + 7) / tileH);
var _local1 = Math.floor((ypos - 7) / tileH);
var _local2 = Math.floor((xpos - 7) / tileW);
var rightX = Math.floor((xpos + 7) / tileW);
centerX = Math.floor(xpos / tileW);
centerY = Math.floor(ypos / tileH);
if ((cMap[_local1][_local2] > 0) || (cMap[_local1][rightX] > 0)) {
ypos = ypos + speed;
}
if ((cMap[_local3][_local2] > 0) || (cMap[_local3][rightX] > 0)) {
ypos = ypos - speed;
}
if ((cMap[_local3][_local2] > 0) || (cMap[_local1][_local2] > 0)) {
xpos = xpos + speed;
}
if ((cMap[_local3][rightX] > 0) || (cMap[_local1][rightX] > 0)) {
xpos = xpos - speed;
}
this.render();
});
Symbol 53 Button
on (press) {
game.pushBlock(this._name, 0, this.tileX, this.tileY);
rollTile._visible = false;
}
on (rollOver) {
if (game.mode == "change") {
rollTile._visible = true;
}
}
on (rollOut) {
rollTile._visible = false;
}
Symbol 56 Button
on (press) {
game.pushBlock(this._name, 0, this.tileX, this.tileY);
rollTile._visible = false;
}
on (rollOver) {
if (game.mode == "change") {
rollTile._visible = true;
}
}
on (rollOut) {
rollTile._visible = false;
}
Symbol 58 MovieClip [tile] Frame 1
function initialize() {
}
this.onLoad = this.initialize();
Instance of Symbol 54 MovieClip "rollTile" in Symbol 58 MovieClip [tile] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 69 MovieClip [tile_cat] Frame 1
function initialize() {
}
this.onLoad = this.initialize();
Instance of Symbol 54 MovieClip "rollTile" in Symbol 69 MovieClip [tile_cat] Frame 1
onClipEvent (load) {
_visible = false;
}
Symbol 99 MovieClip Frame 1
function smoothTween(target_mc, params_obj, doNext) {
var _local1 = this;
var _local2 = target_mc;
_local2.createEmptyMovieClip("tweener", 10000);
_local2.tweener.myX = _local2._x;
_local2.tweener.myY = _local2._y;
if (params_obj.targetx != undefined) {
_local2.tweener.targetX = params_obj.targetx;
} else {
_local2.tweener.targetX = _local2._x;
}
if (params_obj.targety != undefined) {
_local2.tweener.targetY = params_obj.targety;
} else {
_local2.tweener.targetY = _local2._y;
}
_local2.tweener.speed = params_obj.speed;
_local2.tweener.onEnterFrame = function () {
var _local1 = this;
_local1.myX = _local1.myX + ((_local1.targetX - _local1.myX) / _local1.speed);
var _local2 = (_local1.targetY - _local1.myY) / _local1.speed;
if ((_local2 > 0) && (_local2 < 0.5)) {
_local2 = 0.5;
} else if ((_local2 < 0) && (_local2 > -0.5)) {
_local2 = -0.5;
}
_local1.myY = _local1.myY + _local2;
_local1._parent._x = Math.round(_local1.myX);
_local1._parent._y = Math.round(_local1.myY);
if ((_local1._parent._y == _local1.targetY) && (_local1._parent._x == _local1.targetX)) {
delete _local1.onEnterFrame;
doNext();
}
};
}
Symbol 99 MovieClip Frame 61
var aParams_obj = {targetx:130, targety:20, speed:18};
smoothTween(cloud_01, aParams_obj);
var aParams_obj = {targetx:-241, targety:20, speed:18};
smoothTween(cloud_03, aParams_obj);
Symbol 99 MovieClip Frame 65
var aParams_obj = {targetx:197, targety:20, speed:8};
smoothTween(cloud_02, aParams_obj);
var aParams_obj = {targetx:-241, targety:20, speed:8};
smoothTween(cloud_04, aParams_obj);
Symbol 99 MovieClip Frame 80
stop();
Symbol 106 MovieClip Frame 1
function smoothTween(target_mc, params_obj, doNext) {
var _local1 = this;
var _local2 = target_mc;
_local2.createEmptyMovieClip("tweener", 10000);
_local2.tweener.myX = _local2._x;
_local2.tweener.myY = _local2._y;
if (params_obj.targetx != undefined) {
_local2.tweener.targetX = params_obj.targetx;
} else {
_local2.tweener.targetX = _local2._x;
}
if (params_obj.targety != undefined) {
_local2.tweener.targetY = params_obj.targety;
} else {
_local2.tweener.targetY = _local2._y;
}
_local2.tweener.speed = params_obj.speed;
_local2.tweener.onEnterFrame = function () {
var _local1 = this;
_local1.myX = _local1.myX + ((_local1.targetX - _local1.myX) / _local1.speed);
var _local2 = (_local1.targetY - _local1.myY) / _local1.speed;
if ((_local2 > 0) && (_local2 < 0.5)) {
_local2 = 0.5;
} else if ((_local2 < 0) && (_local2 > -0.5)) {
_local2 = -0.5;
}
_local1.myY = _local1.myY + _local2;
_local1._parent._x = Math.round(_local1.myX);
_local1._parent._y = Math.round(_local1.myY);
if ((_local1._parent._y == _local1.targetY) && (_local1._parent._x == _local1.targetX)) {
delete _local1.onEnterFrame;
doNext();
}
};
}
var aParams_obj = {targetx:600, targety:20, speed:8};
smoothTween(sunshine, aParams_obj);
Symbol 288 MovieClip Frame 45
stop();
Symbol 380 MovieClip Frame 58
stop();
Symbol 392 MovieClip Frame 1
function smoothTween(target_mc, params_obj, doNext) {
var _local1 = this;
var _local2 = target_mc;
_local2.createEmptyMovieClip("tweener", 10000);
_local2.tweener.myX = _local2._x;
_local2.tweener.myY = _local2._y;
if (params_obj.targetx != undefined) {
_local2.tweener.targetX = params_obj.targetx;
} else {
_local2.tweener.targetX = _local2._x;
}
if (params_obj.targety != undefined) {
_local2.tweener.targetY = params_obj.targety;
} else {
_local2.tweener.targetY = _local2._y;
}
_local2.tweener.speed = params_obj.speed;
_local2.tweener.onEnterFrame = function () {
var _local1 = this;
_local1.myX = _local1.myX + ((_local1.targetX - _local1.myX) / _local1.speed);
var _local2 = (_local1.targetY - _local1.myY) / _local1.speed;
if ((_local2 > 0) && (_local2 < 0.5)) {
_local2 = 0.5;
} else if ((_local2 < 0) && (_local2 > -0.5)) {
_local2 = -0.5;
}
_local1.myY = _local1.myY + _local2;
_local1._parent._x = Math.round(_local1.myX);
_local1._parent._y = Math.round(_local1.myY);
if ((_local1._parent._y == _local1.targetY) && (_local1._parent._x == _local1.targetX)) {
delete _local1.onEnterFrame;
doNext();
}
};
}
var aParams_obj = {targetx:580, targety:20, speed:50};
smoothTween(car_01, aParams_obj);
var aParams_obj = {targetx:700, targety:20, speed:50};
smoothTween(car_02, aParams_obj);
var aParams_obj = {targetx:-70, targety:20, speed:51};
smoothTween(car_03, aParams_obj);
var aParams_obj = {targetx:-100, targety:20, speed:51};
smoothTween(car_04, aParams_obj);
Symbol 392 MovieClip Frame 10
var aParams_obj = {targetx:600, targety:20, speed:51};
smoothTween(car_05, aParams_obj);
Symbol 392 MovieClip Frame 19
var aParams_obj = {targetx:-200, targety:20, speed:801};
smoothTween(airship_01, aParams_obj);
Symbol 392 MovieClip Frame 32
var aParams_obj = {targetx:-100, targety:20, speed:101};
smoothTween(car_07, aParams_obj);
Symbol 392 MovieClip Frame 59
gotoAndPlay (1);
Symbol 411 Button
on (release) {
_root.showInstructions();
}
Symbol 416 Button
on (release) {
_global.stringServer = "";
_root.playerStart(daCode);
}
Symbol 423 Button
on (release) {
_root.playerStart(daCode);
}
Symbol 428 Button
on (release) {
_root.intro_mc.menu_mc.gotoAndStop("hi_score_view");
}
Symbol 432 Button
on (press) {
_root.stopSounds();
_root.isMute = true;
gotoAndStop ("mute");
}
Symbol 435 Button
on (press) {
_root.restoreSounds();
_root.isMute = false;
gotoAndStop ("loud");
}
Symbol 436 MovieClip Frame 1
stop();
if (_root.isMute) {
gotoAndStop (2);
}
Symbol 436 MovieClip Frame 2
stop();
Symbol 444 Button
on (release) {
_root.mainMenu();
}
Symbol 505 MovieClip Frame 1
gotoAndStop ("l_01");
stop();
Symbol 505 MovieClip Frame 6
stop();
Symbol 505 MovieClip Frame 11
stop();
Symbol 505 MovieClip Frame 16
stop();
Symbol 505 MovieClip Frame 21
stop();
Symbol 505 MovieClip Frame 26
stop();
Symbol 505 MovieClip Frame 31
stop();
Symbol 505 MovieClip Frame 36
stop();
Symbol 505 MovieClip Frame 41
stop();
Symbol 505 MovieClip Frame 46
stop();
Symbol 505 MovieClip Frame 51
stop();
Symbol 505 MovieClip Frame 56
stop();
Symbol 505 MovieClip Frame 61
stop();
Symbol 505 MovieClip Frame 66
stop();
Symbol 505 MovieClip Frame 71
stop();
Symbol 505 MovieClip Frame 76
stop();
Symbol 505 MovieClip Frame 81
stop();
Symbol 505 MovieClip Frame 86
stop();
Symbol 505 MovieClip Frame 91
stop();
Symbol 505 MovieClip Frame 97
stop();
Symbol 505 MovieClip Frame 102
stop();
Symbol 506 Button
on (press) {
gotoAndStop ("select");
}
Symbol 528 Button
on (release) {
gotoAndStop ("idle");
this.selected_no;
gotoAndStop ("00");
}
Symbol 529 Button
on (rollOver) {
gotoAndStop ("20");
}
on (release) {
this.selected_no.gotoAndStop("l_20");
gotoAndStop ("idle");
_parent.levelSelect = 20;
_parent.gotoAndPlay(1);
}
Symbol 530 Button
on (rollOver) {
gotoAndStop ("19");
}
on (release) {
this.selected_no.gotoAndStop("l_19");
gotoAndStop ("idle");
_parent.levelSelect = 19;
_parent.gotoAndPlay(1);
}
Symbol 531 Button
on (rollOver) {
gotoAndStop ("18");
}
on (release) {
this.selected_no.gotoAndStop("l_18");
gotoAndStop ("idle");
_parent.levelSelect = 18;
_parent.gotoAndPlay(1);
}
Symbol 532 Button
on (rollOver) {
gotoAndStop ("17");
}
on (release) {
this.selected_no.gotoAndStop("l_17");
gotoAndStop ("idle");
_parent.levelSelect = 17;
_parent.gotoAndPlay(1);
}
Symbol 533 Button
on (rollOver) {
gotoAndStop ("16");
}
on (release) {
this.selected_no.gotoAndStop("l_16");
gotoAndStop ("idle");
_parent.levelSelect = 16;
_parent.gotoAndPlay(1);
}
Symbol 534 Button
on (rollOver) {
gotoAndStop ("15");
}
on (release) {
this.selected_no.gotoAndStop("l_15");
gotoAndStop ("idle");
_parent.levelSelect = 15;
_parent.gotoAndPlay(1);
}
Symbol 535 Button
on (rollOver) {
gotoAndStop ("14");
}
on (release) {
this.selected_no.gotoAndStop("l_14");
gotoAndStop ("idle");
_parent.levelSelect = 14;
_parent.gotoAndPlay(1);
}
Symbol 536 Button
on (rollOver) {
gotoAndStop ("13");
}
on (release) {
this.selected_no.gotoAndStop("l_13");
gotoAndStop ("idle");
_parent.levelSelect = 13;
_parent.gotoAndPlay(1);
}
Symbol 537 Button
on (rollOver) {
gotoAndStop ("12");
}
on (release) {
this.selected_no.gotoAndStop("l_12");
gotoAndStop ("idle");
_parent.levelSelect = 12;
_parent.gotoAndPlay(1);
}
Symbol 538 Button
on (rollOver) {
gotoAndStop ("11");
}
on (release) {
this.selected_no.gotoAndStop("l_11");
gotoAndStop ("idle");
_parent.levelSelect = 11;
_parent.gotoAndPlay(1);
}
Symbol 539 Button
on (rollOver) {
gotoAndStop ("10");
}
on (release) {
this.selected_no.gotoAndStop("l_10");
gotoAndStop ("idle");
_parent.levelSelect = 10;
_parent.gotoAndPlay(1);
}
Symbol 540 Button
on (rollOver) {
gotoAndStop ("09");
}
on (release) {
this.selected_no.gotoAndStop("l_09");
gotoAndStop ("idle");
_parent.levelSelect = 9;
_parent.gotoAndPlay(1);
}
Symbol 541 Button
on (rollOver) {
gotoAndStop ("08");
}
on (release) {
this.selected_no.gotoAndStop("l_08");
gotoAndStop ("idle");
_parent.levelSelect = 8;
_parent.gotoAndPlay(1);
}
Symbol 542 Button
on (rollOver) {
gotoAndStop ("07");
}
on (release) {
this.selected_no.gotoAndStop("l_07");
gotoAndStop ("idle");
_parent.levelSelect = 7;
_parent.gotoAndPlay(1);
}
Symbol 543 Button
on (rollOver) {
gotoAndStop ("06");
}
on (release) {
this.selected_no.gotoAndStop("l_06");
gotoAndStop ("idle");
_parent.levelSelect = 6;
_parent.gotoAndPlay(1);
}
Symbol 544 Button
on (rollOver) {
gotoAndStop ("05");
}
on (release) {
this.selected_no.gotoAndStop("l_05");
gotoAndStop ("idle");
_parent.levelSelect = 5;
_parent.gotoAndPlay(1);
}
Symbol 545 Button
on (rollOver) {
gotoAndStop ("04");
}
on (release) {
this.selected_no.gotoAndStop("l_04");
gotoAndStop ("idle");
_parent.levelSelect = 4;
_parent.gotoAndPlay(1);
}
Symbol 546 Button
on (rollOver) {
gotoAndStop ("03");
}
on (release) {
this.selected_no.gotoAndStop("l_03");
gotoAndStop ("idle");
_parent.levelSelect = 3;
_parent.gotoAndPlay(1);
}
Symbol 547 Button
on (rollOver) {
gotoAndStop ("02");
}
on (release) {
this.selected_no.gotoAndStop("l_02");
gotoAndStop ("idle");
_parent.levelSelect = 2;
_parent.gotoAndPlay(1);
}
Symbol 548 Button
on (rollOver) {
gotoAndStop ("01");
}
on (press) {
this.selected_no.gotoAndStop("l_01");
gotoAndStop ("idle");
_parent.levelSelect = 1;
_parent.gotoAndPlay(1);
}
Symbol 549 MovieClip Frame 1
stop();
Symbol 549 MovieClip Frame 2
stop();
Symbol 549 MovieClip Frame 7
stop();
Symbol 549 MovieClip Frame 11
stop();
Symbol 549 MovieClip Frame 15
stop();
Symbol 549 MovieClip Frame 19
stop();
Symbol 549 MovieClip Frame 23
stop();
Symbol 549 MovieClip Frame 27
stop();
Symbol 549 MovieClip Frame 31
stop();
Symbol 549 MovieClip Frame 35
stop();
Symbol 549 MovieClip Frame 39
stop();
Symbol 549 MovieClip Frame 43
stop();
Symbol 549 MovieClip Frame 47
stop();
Symbol 549 MovieClip Frame 51
stop();
Symbol 549 MovieClip Frame 55
stop();
Symbol 549 MovieClip Frame 59
stop();
Symbol 549 MovieClip Frame 63
stop();
Symbol 549 MovieClip Frame 67
stop();
Symbol 549 MovieClip Frame 72
stop();
Symbol 549 MovieClip Frame 76
stop();
Symbol 549 MovieClip Frame 80
stop();
Symbol 549 MovieClip Frame 84
stop();
Symbol 570 MovieClip Frame 1
if (levelSelect == undefined) {
levelSelect = 1;
}
Symbol 570 MovieClip Frame 2
function displayScores() {
var _local2 = this;
var _local1 = 1;
while (_local1 <= 10) {
_local2["nameweek" + _local1] = HighScores["week_name" + _local1];
_local2["scoreweek" + _local1] = HighScores["week_score" + _local1] / 1000;
_local2["namemonth" + _local1] = HighScores["month_name" + _local1];
_local2["scoremonth" + _local1] = HighScores["month_score" + _local1] / 1000;
_local1++;
}
}
trace(levelSelect);
var tr = random(1000);
var getscoreURL = ((((_global.mainURL + "/scores.php?a=") + tr) + "&action=getscores&levelSelect=") + levelSelect);
HighScores = new LoadVars();
HighScores.load(getscoreURL);
HighScores.onLoad = function (success) {
if (success) {
trace("cool");
displayScores();
} else {
trace("notscool");
}
};
stop();
Symbol 571 Button
on (release) {
_quality = "LOW";
_root.mainMenu();
}
Symbol 573 Button
on (release) {
_parent.gotoAndStop("idle");
this.gotoAndStop("idle");
}
Symbol 575 MovieClip Frame 25
stop();
Symbol 575 MovieClip Frame 31
Symbol 575 MovieClip Frame 37
stop();
_quality = "HIGH";
trace(hi_score_table);
Symbol 575 MovieClip Frame 42
stop();
_quality = "HIGH";
Symbol 575 MovieClip Frame 47
stop();
Symbol 575 MovieClip Frame 58
stop();
Symbol 575 MovieClip Frame 64
stop();
Symbol 576 MovieClip Frame 133
_root.startSound(6, "loop", 100, 99999999);
Symbol 576 MovieClip Frame 150
stop();
Symbol 576 MovieClip Frame 157
play();
Symbol 576 MovieClip Frame 162
stop();
Symbol 576 MovieClip Frame 173
play();
Symbol 576 MovieClip Frame 178
stop();
Symbol 579 MovieClip Frame 1
stop();
Symbol 579 MovieClip Frame 2
play();
Symbol 579 MovieClip Frame 6
Symbol 612 MovieClip Frame 31
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 46
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 61
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 76
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 91
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 106
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 121
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 136
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 151
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 166
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 181
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 196
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 211
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 226
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 241
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 256
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 271
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 286
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 301
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 316
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 331
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 346
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 361
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 376
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 391
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 406
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 420
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 435
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 451
_root.startSound(3, "choose", 100);
Symbol 612 MovieClip Frame 466
_root.startSound(3, "change", 100);
Symbol 612 MovieClip Frame 480
stop();
Symbol 622 Button
on (press) {
playerStart();
}
Symbol 714 MovieClip Frame 9
stop();
Symbol 714 MovieClip Frame 25
stop();
Symbol 714 MovieClip Frame 41
stop();
_root.tint(1);
Symbol 714 MovieClip Frame 42
Symbol 714 MovieClip Frame 57
stop();
Symbol 714 MovieClip Frame 73
stop();
_root.tint(2);
Symbol 767 MovieClip Frame 9
stop();
_root.startSound(2, "jazz", 0, 99999999);
_root.fadeInSound(2, 100, 3);
_root.areaSound = "jam";
_root.themeSound = "jazz";
Symbol 767 MovieClip Frame 10
_root.fadeOutSound(1, 3, "jam");
_root.fadeOutSound(2, 20, "jazz");
Symbol 767 MovieClip Frame 25
stop();
_root.startSound(1, "park", 0, 99999999);
_root.fadeInSound(1, 95, 3);
_root.startSound(2, "chilled", 0, 99999999);
_root.fadeInSound(2, 70, 3);
_root.areaSound = "park";
_root.themeSound = "chilled";
Symbol 767 MovieClip Frame 26
_root.StopSound(1, "park");
_root.fadeOutSound(2, 10, "chilled");
Symbol 767 MovieClip Frame 41
stop();
_root.startSound(1, "neo", 0, 99999999);
_root.fadeInSound(1, 50, 3);
_root.startSound(2, "tokyo", 0, 99999999);
_root.fadeInSound(2, 85, 3);
_root.areaSound = "neo";
_root.themeSound = "tokyo";
Symbol 767 MovieClip Frame 42
_root.fadeOutSound(1, 10, "neo");
_root.fadeOutSound(2, 10, "tokyo");
Symbol 767 MovieClip Frame 57
stop();
_root.startSound(2, "futur", 0, 99999999);
_root.fadeInSound(2, 70, 3);
_root.areaSound = "jam";
_root.themeSound = "futur";
Symbol 767 MovieClip Frame 58
_root.fadeOutSound(1, 10, "jam");
_root.fadeOutSound(2, 10, "futur");
Symbol 767 MovieClip Frame 73
stop();
_root.startSound(1, "water", 0, 99999999);
_root.fadeInSound(1, 65, 3);
_root.startSound(2, "aqua", 0, 99999999);
_root.fadeInSound(2, 70, 3);
_root.areaSound = "water";
_root.themeSound = "aqua";
Symbol 774 MovieClip Frame 1
stop();
Symbol 774 MovieClip Frame 2
stop();
Symbol 774 MovieClip Frame 3
stop();
Symbol 774 MovieClip Frame 4
stop();
Symbol 774 MovieClip Frame 5
stop();
Symbol 774 MovieClip Frame 6
stop();
Symbol 774 MovieClip Frame 7
stop();
Symbol 774 MovieClip Frame 8
stop();
Symbol 774 MovieClip Frame 9
stop();
Symbol 774 MovieClip Frame 10
stop();
Symbol 774 MovieClip Frame 11
stop();
Symbol 774 MovieClip Frame 12
stop();
Symbol 774 MovieClip Frame 13
stop();
Symbol 774 MovieClip Frame 14
stop();
Symbol 774 MovieClip Frame 15
stop();
Symbol 774 MovieClip Frame 16
stop();
Symbol 774 MovieClip Frame 17
stop();
Symbol 774 MovieClip Frame 18
stop();
Symbol 774 MovieClip Frame 19
stop();
Symbol 774 MovieClip Frame 20
stop();
Symbol 783 MovieClip Frame 1
stop();
Symbol 783 MovieClip Frame 2
stop();
Symbol 783 MovieClip Frame 3
stop();
Symbol 783 MovieClip Frame 4
stop();
Symbol 783 MovieClip Frame 5
stop();
Symbol 783 MovieClip Frame 6
stop();
Symbol 783 MovieClip Frame 7
stop();
Symbol 783 MovieClip Frame 8
stop();
Symbol 783 MovieClip Frame 9
stop();
Symbol 783 MovieClip Frame 10
stop();
Symbol 813 MovieClip Frame 1
stop();
Symbol 813 MovieClip Frame 2
stop();
Symbol 813 MovieClip Frame 3
stop();
Symbol 813 MovieClip Frame 4
stop();
Symbol 813 MovieClip Frame 5
stop();
Symbol 813 MovieClip Frame 6
stop();
Symbol 813 MovieClip Frame 7
stop();
Symbol 813 MovieClip Frame 8
stop();
Symbol 813 MovieClip Frame 9
stop();
Symbol 813 MovieClip Frame 10
stop();
Symbol 813 MovieClip Frame 11
stop();
Symbol 813 MovieClip Frame 12
stop();
Symbol 813 MovieClip Frame 13
stop();
Symbol 813 MovieClip Frame 14
stop();
Instance of Symbol 790 MovieClip "red_bg" in Symbol 814 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 813 MovieClip in Symbol 814 MovieClip Frame 1
onClipEvent (enterFrame) {
this.gotoAndStop(_root.balloonTime + 1);
}
Symbol 815 MovieClip Frame 1
stop();
Symbol 819 Button
on (press) {
getURL ("http://www.blocmedia.com", "_blank");
}
Symbol 822 MovieClip Frame 1
stop();
Symbol 822 MovieClip Frame 11
stop();
Symbol 1003 MovieClip Frame 1
stop();
Symbol 1003 MovieClip Frame 2
stop();
Symbol 1003 MovieClip Frame 11
stop();
Symbol 1003 MovieClip Frame 12
stop();
Symbol 1003 MovieClip Frame 21
stop();
Symbol 1003 MovieClip Frame 22
stop();
Symbol 1003 MovieClip Frame 31
stop();
Symbol 1003 MovieClip Frame 32
stop();
Symbol 1003 MovieClip Frame 41
stop();
Symbol 1003 MovieClip Frame 50
stop();
Symbol 1003 MovieClip Frame 51
stop();
Symbol 1003 MovieClip Frame 60
stop();
Symbol 1003 MovieClip Frame 61
stop();
Symbol 1003 MovieClip Frame 70
stop();
Symbol 1003 MovieClip Frame 71
stop();
Symbol 1003 MovieClip Frame 80
stop();
Symbol 1003 MovieClip Frame 81
stop();
Symbol 1003 MovieClip Frame 90
stop();
Symbol 1003 MovieClip Frame 98
stop();
Symbol 1003 MovieClip Frame 99
stop();
Symbol 1003 MovieClip Frame 108
stop();
Symbol 1003 MovieClip Frame 109
stop();
Symbol 1003 MovieClip Frame 118
stop();
Symbol 1003 MovieClip Frame 119
stop();
Symbol 1003 MovieClip Frame 128
stop();
Symbol 1003 MovieClip Frame 129
stop();
Symbol 1003 MovieClip Frame 138
stop();
Symbol 1003 MovieClip Frame 146
stop();
Symbol 1003 MovieClip Frame 147
stop();
Symbol 1003 MovieClip Frame 156
stop();
Symbol 1003 MovieClip Frame 157
stop();
Symbol 1003 MovieClip Frame 166
stop();
Symbol 1003 MovieClip Frame 167
stop();
Symbol 1003 MovieClip Frame 176
stop();
Symbol 1003 MovieClip Frame 177
stop();
Symbol 1003 MovieClip Frame 186
stop();
Symbol 1003 MovieClip Frame 195
stop();
Symbol 1003 MovieClip Frame 196
stop();
Symbol 1003 MovieClip Frame 205
stop();
Symbol 1003 MovieClip Frame 206
stop();
Symbol 1003 MovieClip Frame 215
stop();
Symbol 1003 MovieClip Frame 216
stop();
Symbol 1003 MovieClip Frame 225
stop();
Symbol 1003 MovieClip Frame 226
stop();
Symbol 1003 MovieClip Frame 235
stop();
Symbol 1044 MovieClip Frame 1
stop();
Symbol 1044 MovieClip Frame 2
stop();
Symbol 1044 MovieClip Frame 3
stop();
Symbol 1044 MovieClip Frame 4
stop();
Symbol 1044 MovieClip Frame 5
stop();
Symbol 1044 MovieClip Frame 6
stop();
Symbol 1044 MovieClip Frame 7
stop();
Symbol 1044 MovieClip Frame 8
stop();
Symbol 1044 MovieClip Frame 9
stop();
Symbol 1044 MovieClip Frame 10
stop();
Symbol 1044 MovieClip Frame 11
stop();
Symbol 1044 MovieClip Frame 12
stop();
Symbol 1044 MovieClip Frame 13
stop();
Symbol 1044 MovieClip Frame 14
stop();
Symbol 1044 MovieClip Frame 15
stop();
Symbol 1044 MovieClip Frame 16
stop();
Symbol 1044 MovieClip Frame 17
stop();
Symbol 1044 MovieClip Frame 18
stop();
Symbol 1044 MovieClip Frame 19
stop();
Symbol 1044 MovieClip Frame 20
stop();
Symbol 1058 MovieClip Frame 1
stop();
Symbol 1058 MovieClip Frame 31
stop();
onPress = function () {
delete onPress;
play();
};
Symbol 1058 MovieClip Frame 64
stop();
if (_root.gameIsOver) {
_root.showMainMenu();
} else {
_root.nextTitleEvent();
}
Symbol 1069 MovieClip Frame 1
submitButton.onPress = function () {
if ((this._parent.playerNameField.length >= 3) && (_root.playername != "")) {
this._parent._parent.play();
}
};
Symbol 1077 MovieClip Frame 1
stop();
Symbol 1077 MovieClip Frame 31
stop();
onPress = function () {
if (_global.game.Level != 0) {
delete onPress;
play();
} else {
_root.gotoAndStop("intro");
_root.intro_mc.gotoAndStop("idle");
}
};
Symbol 1077 MovieClip Frame 49
stop();
Symbol 1077 MovieClip Frame 88
stop();
if (_root.gameIsOver) {
_root.showMainMenu();
} else {
_root.nextTitleEvent();
}