Frame 1
block._visible = false;
btn._visible = false;
btn.enabled = false;
stop();
this.onEnterFrame = function () {
var _local1 = this;
sofar = _local1.getBytesLoaded();
total = _local1.getBytesTotal();
percent = Math.ceil((sofar / total) * 100);
percentDisplay = ("Game Loading: " + percent) + "%";
bar_mc._xscale = percent;
if (total == sofar) {
percentDisplay = "Loading Complete - Press Play";
block._visible = true;
btn._visible = true;
btn.enabled = true;
delete _local1.onEnterFrame;
delete sofar;
delete total;
delete percent;
}
};
Instance of Symbol 853 MovieClip "bar_mc" in Frame 1
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
_root.loadingMessage = percentLoaded + "%";
if (amountLoaded >= 1) {
_root.gotoAndStop("complete");
}
}
Frame 2
Level1 = {currentMap:1, map2:[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1]], map1:[[1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], startPos:[4, 9], levelExit:[2, 15, 4], levelTime:40, myEnemies:[[[{speed:2, xMove:1, yMove:0}, 12, 3, 1]], [[{speed:2, xMove:-1, yMove:0}, 4, 7, 1]]], myPickups:[[[1, 3, 5], [1, 6, 5], [1, 10, 3], [1, 13, 3]], [[1, 2, 2], [1, 2, 4]]]};
Level2 = {currentMap:1, map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1, 1, 1, 1, 1, 1]], startPos:[4, 8], levelExit:[3, 3, 4], levelTime:60, myEnemies:[[[{speed:2, xMove:-1, yMove:0}, 4, 5, 1], [{speed:2, xMove:1, yMove:0}, 12, 5, 1]], [[{speed:2, xMove:-1, yMove:0}, 15, 10, 4], [{speed:2, xMove:-1, yMove:0}, 13, 4, 1], [{speed:2, xMove:1, yMove:0}, 6, 2, 1]], [[{speed:2, xMove:1, yMove:0}, 9, 4, 1], [{speed:2, xMove:1, yMove:0}, 16, 7, 1]]], myPickups:[[[2, 3, 8], [2, 6, 8], [2, 12, 8], [2, 15, 8], [2, 5, 4], [2, 13, 4], [2, 9, 2]], [[2, 12, 9], [2, 14, 9], [2, 16, 9], [2, 6, 8], [2, 4, 7], [2, 11, 4], [2, 14, 4], [2, 8, 2], [2, 5, 2]], [[2, 2, 8], [2, 4, 8], [2, 16, 7], [2, 9, 3]]]};
Level3 = {currentMap:1, map3:[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 1, 1, 1, 1, 3, 0, 7, 0, 2, 1, 1, 1, 1, 0, 0, 1], [1, 0, 0, 4, 4, 4, 4, 4, 1, 1, 1, 4, 4, 4, 4, 4, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 1, 1, 1, 0, 0, 0, 0,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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 1, 1], [1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], startPos:[4, 8], levelExit:[3, 9, 4], levelTime:70, myEnemies:[[[{speed:2, xMove:1, yMove:0}, 7, 10, 1], [{speed:2, xMove:-1, yMove:0}, 5, 4, 1]], [[{speed:2, xMove:-1, yMove:0}, 4, 2, 1], [{speed:2, xMove:1, yMove:0}, 16, 2, 1]], [[{speed:2, xMove:1, yMove:1}, 9, 9, 5], [{speed:2, xMove:1, yMove:0}, 5, 3, 1], [{speed:2, xMove:1, yMove:0}, 13, 3, 1]]], myPickups:[[[3, 2, 1], [3, 2, 3], [3, 2, 5], [3, 7, 3], [3, 12, 2]], [[3, 9, 10], [3, 2, 6], [3, 4, 6], [3, 14, 6], [3, 16, 6], [3, 7, 3], [3, 11, 3], [3, 3, 1], [3, 15, 1]], [[3, 9, 9], [3, 4, 7], [3, 14, 7], [3, 4, 2], [3, 14, 2]]]};
Level4 = {currentMap:1, map3:[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0,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 7, 10, 1], [{speed:2, xMove:0, yMove:0}, 1, 4, 6], [{speed:2, xMove:1, yMove:0}, 6, 1, 5]], [[{speed:2, xMove:-1, yMove:1}, 4, 2, 5], [{speed:2, xMove:1, yMove:1}, 11, 5, 5]], [[{speed:2, xMove:0, yMove:1}, 8, 2, 5], [{speed:2, xMove:0, yMove:0}, 3, 7, 6], [{speed:2, xMove:0, yMove:0}, 15, 7, 6]]], myPickups:[[[4, 2, 3], [4, 4, 3], [4, 6, 3], [4, 8, 3], [4, 13, 9], [4, 15, 9]], [[4, 3, 4], [4, 6, 2], [4, 6, 6], [4, 9, 3], [4, 12, 4], [4, 15, 4]], [[4, 4, 1], [4, 4, 6], [4, 6, 6], [4, 11, 6], [4, 13, 6]]]};
Level5 = {currentMap:1, map4:[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [1, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], startPos:[4, 7], levelExit:[4, 9, 4], levelTime:80, myEnemies:[[[{speed:4, xMove:1, yMove:0}, 13, 10, 4], [{speed:4, xMove:0, yMove:1}, 11, 2, 3], [{speed:2, xMove:0, yMove:1}, 3, 3, 5]], [[{speed:2, xMove:-1, yMove:0}, 11, 10, 1], [{speed:2, xMove:0, yMove:1}, 3, 2, 5], [{speed:4, xMove:1, yMove:0}, 8, 2, 4]], [[{speed:2, xMove:0, yMove:1}, 3, 7, 2], [{speed:2, xMove:0, yMove:1}, 8, 7, 2], [{speed:2, xMove:0, yMove:1}, 13, 7, 2], [{speed:2, xMove:-1, yMove:0}, 5, 3, 5], [{speed:2, xMove:1, yMove:0}, 11, 3, 5]], [[{speed:2, xMove:-1, yMove:0}, 7, 8, 5], [{speed:2, xMove:1, yMove:0}, 11, 8, 5], [{speed:2, xMove:0, yMove:-1}, 8, 1, 2], [{speed:2, xMove:0, yMove:-1}, 10, 1, 2]]], myPickups:[[[5, 3, 6], [5, 9, 9], [5, 12, 9], [5, 15, 9], [5, 11, 3], [5, 14, 3]], [[5, 2, 1], [5, 2, 4], [5, 8, 1], [5, 14, 4], [5, 16, 4], [5, 10, 5], [5, 12, 7], [5, 14, 8], [5, 16, 8]], [[5, 3, 5], [5, 8, 5], [5, 13, 5], [5, 8, 1]], [[5, 2, 10], [5, 5, 8], [5, 9, 8], [5, 13, 8], [5, 16, 10]]]};
Level6 = {currentMap:1, map6:[[1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 1], [1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1], [1, 1, 1, 1, 1, 8, 8, 8, 8, 8, 8, 8, 8, 8, 1, 1, 1, 1, 1]], map1:[[1, 1, 1, 1, 1, 9, 9, 9, 9, 9, 9, 9, 9, 9, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [1, 4, 4, 4, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 4, 4, 4, 1], [1, 0, 0, 0, 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 0, 2, 1, 3, 0, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 2, 1, 1, 1, 3, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 2, 1, 1, 1, 1, 1, 1, 1, 3, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]], startPos:[4, 8], levelExit:[6, 3, 4], levelTime:99, myEnemies:[[[{speed:3, xMove:1, yMove:0}, 3, 1, 5]], [[{speed:2, xMove:1, yMove:0}, 9, 3, 5]], [[{speed:2, xMove:1, yMove:0}, 3, 10, 1], [{speed:2, xMove:1, yMove:0}, 17, 10, 1], [{speed:2, xMove:0, yMove:1}, 6, 4, 3], [{speed:2, xMove:0, yMove:1}, 12, 4, 3]], [[{speed:2, xMove:-1, yMove:0}, 4, 7, 4], [{speed:2, xMove:1, yMove:0}, 9, 4, 5], [{speed:2, xMove:0, yMove:-1}, 17, 2, 2]], [[{speed:2, xMove:0, yMove:1}, 10, 5, 3], [{speed:2, xMove:1, yMove:0}, 5, 1, 5], [{speed:2, xMove:0, yMove:1}, 3, 7, 2], [{speed:2, xMove:0, yMove:1}, 6, 7, 2]], [[{speed:2, xMove:0, yMove:0}, 1, 10, 6]]], myPickups:[[[6, 2, 6], [6, 4, 6], [6, 14, 6], [6, 16, 6], [6, 9, 3]], [[6, 2, 3], [6, 16, 3], [6, 6, 9], [6, 9, 9], [6, 12, 9]], [[6, 7, 1], [6, 11, 1], [6, 7, 5], [6, 9, 5], [6, 11, 5]], [[6, 1, 4], [6, 3, 1], [6, 8, 4], [6, 11, 4], [6, 17, 4]], [[6, 1, 6], [6, 6, 6], [6, 10, 6], [6, 17, 8], [6, 17, 5], [6, 1, 3], [6, 10, 1], [6, 17, 2]], [[6, 2, 9], [6, 5, 9], [6, 6, 2], [6, 9, 2], [6, 12, 2], [6, 15, 2]]]};
_global.Timer = function () {
this.init();
};
Timer.prototype.init = function () {
var _local1 = this;
_local1.delay = 1000;
_local1.initialDelay = 0;
_local1.ticksCounter = 0;
_local1.hiddenTicksCounter = 0;
_local1.alarm = 0;
_local1.alarms = [];
_local1.sentAlarms = 0;
_local1._listeners = [];
_local1.mcs = [];
_local1.running = false;
_local1.paused = false;
_local1.controlling = false;
_local1.scheduled = false;
};
Timer.prototype.setDelay = function (delay) {
var _local1 = delay;
_local1 = parseInt(_local1);
if (isNaN(_local1) || (_local1 < 1)) {
trace("Debugger ::\t(setDelay)\tThe delay value has to be a number greater than 1.");
return(0);
}
this.delay = _local1;
return(undefined);
};
Timer.prototype.setInitialDelay = function (initialDelay) {
var _local1 = initialDelay;
_local1 = parseInt(_local1);
if (isNaN(_local1) || (_local1 < 0)) {
trace("Debugger ::\t(setInitialDelay)\tThe initial delay value has to be a number greater than 0.");
return(0);
}
this.initialDelay = _local1;
return(undefined);
};
Timer.prototype.getDelay = function () {
return(this.delay);
};
Timer.prototype.getInitialDelay = function () {
return(this.initialDelay);
};
Timer.prototype.addListener = function (reference) {
this._listeners[reference] = reference;
};
Timer.prototype.removeListener = function (reference) {
delete this._listeners[reference];
};
Timer.prototype.sendEvent = function (functionName, params) {
var _local1 = this;
var _local2 = functionName;
var _local3 = params;
for (var i in _local1._listeners) {
_local1._listeners[i][_local2](_local3);
}
};
Timer.prototype.isRunning = function () {
return(this.running);
};
Timer.prototype.isPaused = function () {
return(this.paused);
};
Timer.prototype.hasSchedule = function () {
return(this.scheduled);
};
Timer.prototype.hasControl = function () {
return(this.controlling);
};
Timer.prototype.getControlledMovieclips = function () {
return(this.mcs);
};
Timer.prototype.start = function () {
var _local1 = this;
if (_local1.intervalID) {
clearInterval(_local1.intervalID);
}
_local1.intervalID = setInterval(_local1, "tick", _local1.delay);
_local1.running = true;
_local1.paused = false;
_local1.sendEvent("onTimerStart");
_local1.startTime = getTimer();
};
Timer.prototype.stop = function () {
var _local1 = this;
clearInterval(_local1.intervalID);
_local1.running = false;
_local1.sendEvent("onTimerStop");
};
Timer.prototype.pause = function () {
var _local1 = this;
if (_local1.isRunning()) {
_local1.paused = true;
_local1.sendEvent("onTimerPause");
}
};
Timer.prototype.sleep = function (sleepPeriod) {
var _local1 = this;
var _local2 = sleepPeriod;
_local2 = parseInt(_local2);
if (isNaN(_local2) || (_local2 < 1)) {
trace("Debugger ::\t(sleep)\tThe sleepPeriod value has to be a number greater than 1.");
return(0);
}
if (_local1.isRunning()) {
_local1.paused = true;
_local1.sleepDuration = _local1.getTicksDifference() + _local2;
_local1.sendEvent("onTimerSleep");
}
return(undefined);
};
Timer.prototype.resume = function () {
var _local1 = this;
if (_local1.isRunning() && (_local1.isPaused())) {
_local1.paused = false;
_local1.sendEvent("onTimerResume");
}
};
Timer.prototype.reset = function () {
var _local1 = this;
_local1.ticksCounter = 0;
_local1.hiddenTicksCounter = 0;
_local1.sentAlarms = 0;
_local1.sendEvent("onTimerReset");
};
Timer.prototype.getTicksCount = function () {
return(this.ticksCounter);
};
Timer.prototype.getHiddenTicksCount = function () {
return(this.hiddenTicksCounter);
};
Timer.prototype.getTicksDifference = function () {
var _local1 = this;
_local1.ticksDifference = _local1.getHiddenTicksCount() - _local1.getTicksCount();
return(_local1.ticksDifference);
};
Timer.prototype.setAlarm = function (alarm) {
var _local1 = alarm;
_local1 = parseInt(_local1);
if (isNaN(_local1) || (_local1 < 1)) {
trace("Debugger ::\t(setAlarm)\tThe alarm value has to be a number greater than 1.");
return(0);
}
this.alarm = _local1;
this.hasAlarm = true;
return(undefined);
};
Timer.prototype.getAlarm = function () {
return(this.alarm + 1);
};
Timer.prototype.setAlarms = function () {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
_local2[_local1] = parseInt(_local2[_local1]);
if (isNaN(_local2[_local1]) || (_local2[_local1] < 1)) {
trace("Debugger ::\t(setAlarms)\tThe alarm value has to be a number greater than 1.");
return(0);
}
_local3.alarms.push(_local2[_local1]);
_local1++;
}
_local3.hasMultipleAlarms = true;
return(undefined);
};
Timer.prototype.getAlarms = function () {
return(this.alarms);
};
Timer.prototype.getAccuracy = function () {
var _local1 = this;
return(((getTimer() - _local1.startTime) / _local1.getHiddenTicksCount()) - _local1.getDelay());
};
Timer.prototype.controlTimelineOf = function () {
var _local2 = arguments;
var _local3 = this;
var _local1 = 0;
while (_local1 < _local2.length) {
if ((_local2[_local1] instanceof movieclip) != 1) {
trace("Debugger::\t(controlTimelineOf)\tThe parameter has to be the instance name of a movie-clip.");
return(0);
}
_local3.mcs.push(_local2[_local1]);
_local2[_local1].stop();
_local1++;
}
_local3.controlling = true;
return(undefined);
};
Timer.prototype.releaseTimelineOf = function (mc, stopMC) {
var _local2 = this;
var _local3 = mc;
var _local1 = 0;
while (_local1 < _local2.mcs.length) {
if (_local2.mcs[_local1] == _local3) {
delete _local2.mcs[_local1];
}
_local1++;
}
(stopMC ? (_local3.stop()) : (_local3.play()));
if (_local2.mcs.length < 1) {
_local2.controlling = false;
}
};
Timer.prototype.schedule = function (handler, methodName, param) {
var _local1 = this;
_local1.handler = handler;
_local1.methodName = methodName;
_local1.param = param;
_local1.scheduled = true;
};
Timer.prototype.clearSchedule = function () {
this.scheduled = false;
};
Timer.prototype.execute = function () {
var _local1 = this;
_local1.handler[_local1.methodName](_local1.param);
};
Timer.prototype.tick = function () {
var _local1 = this;
if (_local1.hasAlarm) {
if (_local1.getTicksCount() == _local1.alarm) {
_local1.sendEvent("onTimerAlarm");
}
}
if (_local1.hasMultipleAlarms) {
var _local3 = 0;
while (_local3 < _local1.alarms.length) {
if (_local1.getTicksCount() == _local1.alarms[_local1.sentAlarms]) {
_local1.sendEvent("onTimerAlarms", _local1.sentAlarms++);
}
_local3++;
}
}
if (_local1.isPaused() && (_local1.getTicksDifference() == _local1.sleepDuration)) {
_local1.resume();
}
if (_local1.hasControl()) {
var _local2 = 0;
while (_local2 < _local1.mcs.length) {
_local1.mc = _local1.mcs[_local2];
if (!_local1.isPaused()) {
(_local1.mc.gotoAndStop(((_local1.mc._currentframe == _local1.mc._totalframes) ? ((_local1.mc._currentframe - _local1.mc._totalframes) + 1) : (_local1.mc._currentframe + 1))));// not popped
} else {
(_local1.mc.stop());// not popped
}
_local2++;
}
updateAfterEvent();
}
if (_local1.getHiddenTicksCount() >= _local1.initialDelay) {
if ((!_local1.isPaused()) && (_local1.isRunning())) {
_local1.sendEvent("onTimerTick", ++_local1.ticksCounter);
}
}
if (_local1.isRunning()) {
_local1.hiddenTicksCounter++;
}
if (_local1.hasSchedule() && (_local1.getHiddenTicksCount() >= _local1.initialDelay)) {
_local1.execute();
}
};
MovieClip.prototype.queueSounds = function () {
var _local1 = this;
_local1.nameArray = ((_local1.nameArray == undefined) ? ([]) : (_local1.nameArray));
var nArL = _local1.nameArray.length;
var _local3 = 0;
while (_local3 < arguments[0].length) {
var _local2 = arguments[0][_local3].split(" ").join("_");
_local1.nameArray[nArl + _local3] = _local2 + nArL;
_local1[("sound_" + _local2) + nArL] = new Sound();
_local1[("sound_" + _local2) + nArL].attachSound(arguments[0][_local3]);
_local1[("sound_" + _local2) + nArL].t = _local1;
_local1[("sound_" + _local2) + nArL].onSoundComplete = function () {
var _local1 = this;
_local1.t.nameArray.shift();
if (_local1.t.nameArray.length > 0) {
_local1.t["sound_" + _local1.t.nameArray[0]].start();
} else {
_local1.t.playing = false;
}
};
_local3++;
}
if (!_local1.playin) {
_local1["sound_" + _local1.nameArray[0]].start();
_local1.playin = true;
}
};
Sound.prototype.atcPlay = function (id, loops) {
var _local1 = this;
var _local2 = loops;
_local1.attachSound(id);
if (_local1.position <= 0) {
if ((_local2 <= 0) || (_local2 == undefined)) {
_local1.start();
} else {
_local1.start(0, _local2);
}
}
_local1.onSoundComplete = function () {
trace("sound is complete");
delete this;
};
};
snapEase = {};
snapEase.pts = [{Mx:0, My:0, Nx:54, Ny:82, Px:-1, Py:-72}, {Mx:53, My:10, Nx:32, Ny:-26, Px:-16, Py:-84}, {Mx:69, My:-100, Nx:0, Ny:-136, Px:10, Py:46}, {Mx:79, My:-190, Nx:0, Ny:-22, Px:121, Py:12}, {Mx:200, My:-200}];
snapEase.ease = function (t, b, c, d, pl) {
var _local3 = pl;
var _local1;
var _local2;
_local2 = (200 * t) / d;
_local1 = 0;
while (_local2 > _local3[_local1 + 1].Mx) {
_local1++;
}
_local1 = _local3[_local1];
if (_local1.Px != 0) {
_local2 = ((-_local1.Nx) + Math.sqrt((_local1.Nx * _local1.Nx) - ((4 * _local1.Px) * (_local1.Mx - _local2)))) / (2 * _local1.Px);
} else {
_local2 = (-(_local1.Mx - _local2)) / _local1.Nx;
}
return(b - (c * (((_local1.My + (_local1.Ny * _local2)) + ((_local1.Py * _local2) * _local2)) / 200)));
};
elasto = {};
elasto.pts = [{Mx:0, My:0, Nx:18, Ny:-236, Px:2, Py:-19}, {Mx:20, My:-255, Nx:16, Ny:-96, Px:2, Py:119}, {Mx:38, My:-232, Nx:30, Ny:186, Px:3, Py:-148}, {Mx:71, My:-194, Nx:22, Ny:-46, Px:8, Py:37}, {Mx:101, My:-203, Nx:30, Ny:24, Px:1, Py:-21}, {Mx:132, My:-200, Nx:28, Ny:-6, Px:4, Py:6}, {Mx:164, My:-200, Nx:40, Ny:2, Px:-4, Py:-2}, {Mx:200, My:-200}];
elasto.ease = function (t, b, c, d, pl) {
var _local3 = pl;
var _local1;
var _local2;
_local2 = (200 * t) / d;
_local1 = 0;
while (_local2 > _local3[_local1 + 1].Mx) {
_local1++;
}
_local1 = _local3[_local1];
if (_local1.Px != 0) {
_local2 = ((-_local1.Nx) + Math.sqrt((_local1.Nx * _local1.Nx) - ((4 * _local1.Px) * (_local1.Mx - _local2)))) / (2 * _local1.Px);
} else {
_local2 = (-(_local1.Mx - _local2)) / _local1.Nx;
}
return(b - (c * (((_local1.My + (_local1.Ny * _local2)) + ((_local1.Py * _local2) * _local2)) / 200)));
};
String.prototype.isEmail = function () {
var ref = arguments.callee;
if (this.indexOf("@") == -1) {
return(false);
}
if (!isNaN(this.charAt(0))) {
return(false);
}
var email;
var user;
var domain;
var user_dots;
var domain_dots;
if (((email = this.split("@"))).length == 2) {
if (((domain = email[1])).split(".").pop().length > 4) {
return(false);
}
if (domain.split(".").length < 2) {
return(false);
}
if (((user = email[0])).indexOf(".") && (domain.indexOf("."))) {
if ((user.length == 1) || (domain.length == 1)) {
return(false);
}
if (domain.lastIndexOf(".") > (domain.length - 3)) {
return(false);
}
var _local1;
var _local3;
var _local2 = ((user_dots = user.split("."))).length;
while (_local2--) {
_local1 = user_dots[_local2];
_local3 = !ref.$_text.call(_local1, "-", ".", "_");
if (_local3 || (!isNaN(_local1))) {
return(false);
}
}
_local2 = ((domain_dots = domain.split("."))).length;
while (_local2--) {
_local1 = domain_dots[_local2];
_local3 = !ref.$_text.call(_local1, "-", ".");
if (_local3 || (!isNaN(_local1))) {
return(false);
}
}
return(true);
return(false);
}
}
return(false);
return(false);
};
String.prototype.isEmail.$_punctuation = function () {
var _local2 = this;
var _local3 = arguments;
if (_local2 == "") {
return(false);
}
var _local1 = _local3.length;
while (_local1--) {
if (_local2.indexOf(_local3[_local1]) == 0) {
return(false);
}
if (_local2.indexOf(_local3[_local1]) == (_local2.length - 1)) {
return(false);
}
}
return(true);
};
String.prototype.isEmail.$_text = function () {
var ref = arguments.caller;
if (!ref.$_punctuation.apply(this, arguments)) {
return(false);
}
var others = arguments;
var checkOthers = function (str) {
var _local2 = str;
var _local1 = others.length;
while (_local1--) {
if (_local2 == others[_local1]) {
return(true);
}
}
return(false);
};
var _local1;
var alpha;
var _local3;
var _local2 = this.length;
while (_local2--) {
_local1 = this.charAt(_local2).toLowerCase();
alpha = (_local1 <= "z") && (_local1 >= "a");
_local3 = (_local1 <= "9") && (_local1 >= "0");
if (((!alpha) && (!_local3)) && (!checkOthers(_local1))) {
return(false);
}
}
return(true);
};
var _trace = function (address) {
return((("(" + address) + "): ") + address.isEmail());
};
function encrypt(encScore) {
var _local2 = encScore;
_local2 = _local2.toString();
my_date = new Date();
my_date.hours = my_date.getUTCHours();
my_date.minutes = my_date.getUTCMinutes();
my_date.seconds = my_date.getUTCSeconds();
if (my_date.seconds < 10) {
my_date.seconds = "0" + my_date.seconds;
}
if (my_date.minutes < 10) {
my_date.minutes = "0" + my_date.minutes;
}
if (my_date.hours < 10) {
my_date.hours = "0" + my_date.hours;
}
seed = ((((my_date.hours + ":") + my_date.minutes) + ":") + my_date.seconds) + ":28";
charList = new Array(2, 8, 10, 5, 4, 1, 11, 7);
keyChars = new Array();
i = 0;
while (i < 8) {
var _local1 = charList[i];
keyChars.push(seed.charAt(_local1 - 1));
i++;
}
snafuText = "";
i = 0;
while (i < _local2.length) {
tempHolder = keyChars.shift();
keyChars.push(tempHolder);
tempName = "ascii" + i;
tempName = _local2.charCodeAt(i) + Math.round(tempHolder);
snafuText = snafuText add String.fromCharCode(tempName);
i++;
}
return(snafuText);
}
gk1 = "BubbleGumRun";
if (!gotKey) {
loadVariables (userInfoURL, this.getNextHighestDepth());
gotKey = true;
}
loadScores = function () {
home.highscores.removeMovieClip();
home.createEmptyMovieClip("highscores", 5050);
home.highscores.done = 0;
home.inty = 0;
home.highscores.loadVariables((highScoresURL + "?gk=") + gk1);
};
updateTotal = function (jumpScore) {
var _local1 = jumpScore;
trace("updateTHis score " + _local1);
home.highscores.removeMovieClip();
home.createEmptyMovieClip("highscores", 5050);
home.highscores.done = 0;
home.inty = 0;
home.highscores.loadVariables((((((((((home.highScoresURL + "?gk=") + home.gk1) + "&uk=") + home.userKey) + "&s=") + _local1) + "&es=") + home.encrypt(_local1)) + "&sd=") + seed);
};
function tweenManager() {
var _local1 = this;
_local1.playing = false;
_local1.autoStop = false;
_local1.broadcastEvents = false;
_local1.autoOverwrite = true;
_local1.tweenList = new Array();
_local1.ints = new Array();
_local1.lockedTweens = new Object();
_local1.now = 0;
_local1.isPaused = false;
_local1.pausedTime = 0;
}
function checkInvul() {
trace("INVULNERABLITLIY STARTED");
invulLoop = invulLoop + (invulLoopTime / 1000);
home.display.char._alpha = 75;
home.display.char.brightnessTo(50, 0, "easeOutQuad", 0);
if (invulLoop >= invulLimit) {
home.display.char.brightnessTo(0, 0.25, "easeOutQuad", 0);
home.display.char._alpha = 100;
trace("Invulnerability loop cleared");
invulLoop = 0;
home.invul = false;
clearInterval(invul_interval);
}
}
function buildMap(map) {
trace(" Current Map: " + home.currentMap);
trace("Current Level: " + home.currentLevel);
home.treadmill = false;
treadmill_snd.stop("treadmill");
home.createEmptyMovieClip("display", 15);
home.display._x = orgX;
home.display._y = orgY;
var bkgName = ((("bkg" + home.currentLevel) + "_") + home.currentMap);
home.display.attachMovie(bkgName, "bkg_mc", 14);
mapW = map[0].length;
mapH = map.length;
cMap = map;
var _local3 = -1;
while (_local3 < mapH) {
var _local1 = -1;
while (_local1++ , _local1 < mapW) {
if ((map[_local3][_local1] == 5) || (map[_local3][_local1] == 6)) {
home.treadmill = true;
}
if (((home["Level" + currentLevel].levelExit[0] == home.currentMap) && (_local3 == home["Level" + currentLevel].levelExit[2])) && (_local1 == home["Level" + currentLevel].levelExit[1])) {
home.display.attachMovie("exit", "exit_mc", 200);
if (home.exit) {
home.display.exit_mc.gotoAndStop(2);
}
home.display.exit_mc._x = (_local1 * TILE_W) + (TILE_W / 2);
home.display.exit_mc._y = (_local3 * TILE_H) + (TILE_H / 2);
trace((("Exit found, placing at coordinates - " + _local3) + " ") + _local1);
}
if (map[_local3][_local1] == 10) {
home.display.attachMovie("spring", (("spring_mc_" + _local3) + "_") + _local1, 200 + (_local3 + _local1));
home.display[(("spring_mc_" + _local3) + "_") + _local1]._x = (_local1 * TILE_W) + (TILE_W / 2);
home.display[(("spring_mc_" + _local3) + "_") + _local1]._y = (_local3 * TILE_H) + (TILE_H / 2);
}
}
}
enCol = [];
var ens = home["Level" + home.currentLevel].myEnemies[home.currentMap - 1];
home.totalEnemy = ens.length;
var _local2 = -1;
while (_local2++ , _local2 < home.totalEnemy) {
enCol.push(false);
home.display.attachMovie("enemy" + home["Level" + home.currentLevel].myEnemies[home.currentMap - 1][_local2][3], "enemy" + _local2, 1500 + _local2);
var namey = ("enemy" + _local2);
home.display[namey].id = _local2;
home.display[namey].eType = home["Level" + home.currentLevel].myEnemies[home.currentMap - 1][_local2][3];
home.display[namey].xpos = (ens[_local2][1] * TILE_W) + (TILE_W / 2);
home.display[namey].ypos = (ens[_local2][2] * TILE_W) + (TILE_W / 2);
home.display[namey].orgX = ens[_local2][1];
home.display[namey].orgY = ens[_local2][2];
home.display[namey].speed = ens[_local2][0].speed;
home.display[namey].xMove = ens[_local2][0].xMove;
home.display[namey].yMove = ens[_local2][0].yMove;
}
if (starting) {
twinkle_snd = new Sound();
twinkle_snd.atcPlay("twinkle");
trace("======= Setting pickup data for the current Level =======");
home.itemsGrabbed = 0;
home.totalPickups = 0;
_local3 = 0;
while (_local3 < home["Level" + home.currentLevel].myPickups.length) {
home["pu_" + (Number(_local3) + 1)] = new Array();
_local2 = 0;
while (_local2 < home["Level" + home.currentLevel].myPickups[_local3].length) {
home.totalPickups++;
var tempy = new Array();
tempy = home["Level" + home.currentLevel].myPickups[_local3][_local2];
home["pu_" + (Number(_local3) + 1)].push(tempy);
_local2++;
}
_local3++;
}
trace("total pickups on Level = " + home.totalPickups);
trace("=======");
}
var pus = home["pu_" + home.currentMap];
home.totalMapPickups = pus.length;
trace("Total pickups upon rendering map = " + pus.length);
_local2 = 0;
while (_local2 < home["pu_" + home.currentMap].length) {
if (home["pu_" + home.currentMap][_local2] != undefined) {
home.display.attachMovie("pickup", "pickup" + _local2, 1600 + _local2);
var namey = ("pickup" + _local2);
home.display[namey].gotoAndStop(home["pu_" + home.currentMap][_local2][0]);
home.display[namey].id = _local2;
home.display[namey]._alpha = 100;
home.display[namey]._x = (home["pu_" + home.currentMap][_local2][1] * TILE_W) + (TILE_W / 2);
home.display[namey]._y = (home["pu_" + home.currentMap][_local2][2] * TILE_W) + (TILE_W / 2);
}
_local2++;
}
if (starting) {
home.music.stop("music1");
home.music = new Sound();
home.music.attachSound("music1");
home.music.start(0, 999);
charHits = 0;
resetHudHits();
home.invul = true;
home.respawn = true;
home.display.attachMovie("char", "char", 11000);
invul_interval = setInterval(checkInvul, invulLoopTime);
home.display.char.xpos = (home["Level" + currentLevel].startPos[0] * TILE_W) + (TILE_W / 2);
home.display.char.ypos = (home["Level" + currentLevel].startPos[1] * TILE_H) + (TILE_H / 2);
} else {
home.display.attachMovie("char", "char", 11000);
home.display.char._y = -200;
home.display.char.gummed = home.gummed;
home.display.char.bubble = home.bubble;
home.display.char.ypos = home.ypos;
home.display.char.xpos = home.xpos;
home.display.char.xspeed = home.xspeed;
home.display.char.yspeed = home.yspeed;
delete home.xspeed;
delete home.yspeed;
}
if (home.treadmill) {
treadmill_snd = new Sound();
treadmill_snd.atcPlay("treadmill", 999);
}
_local3 = _local3++;
}
function nextMap(xpos, ypos, gummed, bubble, entry) {
var _local1 = xpos;
home.xspeed = home.display.char.xspeed;
home.yspeed = home.display.char.yspeed;
home.xpos = _local1;
home.ypos = 364;
home.gummed = gummed;
home.bubble = bubble;
home.starting = false;
if (_local1 < 45) {
home.xpos = 55;
}
if (_local1 > 530) {
home.xpos = 560;
}
home.currentMap++;
var _local2 = home["Level" + home.currentLevel]["map" + home.currentMap];
buildMap(_local2);
}
function prevMap(xpos, ypos, gummed, bubble, entry) {
var _local1 = xpos;
home.xspeed = home.display.char.xspeed;
home.yspeed = home.display.char.yspeed;
home.xpos = _local1;
home.ypos = 10;
home.gummed = gummed;
home.bubble = bubble;
home.starting = false;
if (_local1 < 45) {
home.xpos = 55;
}
if (_local1 > 530) {
home.xpos = 560;
}
home.currentMap--;
var _local2 = home["Level" + home.currentLevel]["map" + home.currentMap];
buildMap(_local2);
}
function nextLevel() {
home.endLevel_mc.removeMovieClip();
clearInterval(home.timeInt);
clearInterval(home.invul_interval);
home.starting = true;
home.exit = false;
home.currentLevel++;
home.charAlive = true;
if (home.currentLevel > home.totalLevels) {
trace("GAME COMPLETED");
gameComplete();
} else {
home.initTimer();
home.currentMap = home["Level" + home.currentLevel].currentMap;
var _local1 = home["Level" + home.currentLevel]["map" + home["Level" + home.currentLevel].currentMap];
buildMap(_local1);
}
}
function gameComplete() {
trace("Running End Screen function");
home.display.char.removeMovieClip();
home.attachMovie("endScreen", "endScreen_mc", 9999);
endScreen_mc.gotoAndStop(3);
win_snd = new Sound();
win_snd.atcPlay("fanfare");
home.endScreen_mc._x = Stage.width / 2;
home.endScreen_mc._y = Stage.height / 2;
}
function fpsInt() {
fps = (ticks - oldticks) + "/48";
oldticks = ticks;
}
function levelTimer() {
trace("levelTimer called: " + home.hud_BKG.timer_mc.timer);
if ((home["Level" + home.currentLevel].levelTime - home.hud_BKG.timer_mc.timer) == 0) {
clearInterval(home.timeInt);
trace("timeUp!");
home.endGame(2);
} else {
home.hud_BKG.timer_mc.timer++;
home.hud_BKG.timer_mc.timeDisplay = home["Level" + home.currentLevel].levelTime - home.hud_BKG.timer_mc.timer;
}
if ((home["Level" + home.currentLevel].levelTime - home.hud_BKG.timer_mc.timer) == 5) {
home.alrtsAdd("hurryUp");
}
}
function initTimer() {
trace("Level Timer Initiated");
home.hud_BKG.timer_mc.timer = 0;
home.hud_BKG.timer_mc.timeDisplay = home["Level" + home.currentLevel].levelTime;
home.timeInt = setInterval(levelTimer, 1000);
}
function endGame(type) {
death_snd = new Sound();
death_snd.atcPlay("death");
trace("End Game Started");
clearInterval(home.timeInt);
clearInterval(home.invul_interval);
charArt.splat_mc._visible = false;
if (type == 1) {
trace("GAME OVER: Too Many Enemy Hits!");
home.alrtsAdd("totallyChomped");
} else {
trace("GAME OVER: Out Of Time!");
home.alrtsAdd("timeIsUp");
}
delayItStart(2, home.alrtsAdd, "guhObj", "guhObj2", "gameOver");
delayItStart(7, home.endScreen, "guhObj", "guhObj2");
home.charAlive = false;
home.charHits = 0;
home.exit = false;
currentLevel = 1;
home.display.char.bubble_mc._visible = false;
home.display.char.charArt.gotoAndStop("death");
}
function endScreen() {
trace("Running End Screen function");
home.display.char.removeMovieClip();
home.attachMovie("endScreen", "endScreen_mc", 9999);
home.endScreen_mc._x = Stage.width / 2;
home.endScreen_mc._y = Stage.height / 2;
}
function mainMenu() {
home.music.stop("music1");
home.hud_BKG.removeMovieClip();
home.display.removeMovieClip();
trace("Loading Main Menu");
home.attachMovie("mainMenu", "mainMenu_mc", 9999);
home.mainMenu_mc._x = Stage.width / 2;
home.mainMenu_mc._y = Stage.height / 2;
}
function respawn() {
trace("Respawn Invoked");
clearInterval(home.timeInt);
home.charAlive = true;
home.charHits = 0;
home.starting = true;
home.currentMap = home["Level" + home.currentLevel].currentMap;
buildMap(home["Level" + home.currentLevel]["map" + home["Level" + home.currentLevel].currentMap]);
}
function resetHudHits() {
trace("Resetting HUD hits");
var _local1 = 1;
while (_local1 <= 5) {
home.hud_BKG.health_mc["mark" + _local1].gotoAndStop(1);
_local1++;
}
}
function endLevel() {
function endLevel2() {
home.alrts_mc.removeMovieClip();
home.attachMovie("endLevel", "endLevel_mc", 9999);
home.endLevel_mc.level.gotoAndStop(home.currentLevel);
home.endLevel_mc._x = Stage.width / 2;
home.endLevel_mc._y = Stage.height / 2;
var _local3 = home.itemsGrabbed;
var puMax = home.totalPickups;
var timeLeft = (int(home["Level" + home.currentLevel].levelTime) - int(home.hud_BKG.timer_mc.timer));
var puPoints = (puMax * home.puValue);
var _local1 = timeLeft * home.timeBonus;
var healthLeft = (home.charHealth - home.CharHits);
var _local2 = healthLeft * home.healthBonus;
var total = ((_local1 + puPoints) + _local2);
CumulativePoints["level" + home.currentLevel] = total;
CumulativePoints["puLevel" + home.currentLevel] = _local3;
home.endLevel_mc.healthPointsT = (((healthLeft + " x ") + home.healthBonus) + " = ") + _local2;
home.endLevel_mc.timePointsT = (((timeLeft + " x ") + home.timeBonus) + " = ") + _local1;
home.endLevel_mc.puPointsT = (((_local3 + " x ") + home.puValue) + " = ") + puPoints;
home.endLevel_mc.total = total;
home.hud_BKG.points = home.hud_BKG.points + (_local1 + _local2);
}
home.music.stop();
endlevel_snd = new Sound();
endLevel_snd.atcPlay("levelEnd_snd");
trace("Ending Level");
clearInterval(home.timeInt);
clearInterval(home.invul_interval);
home.charAlive = false;
home.display.char.charArt.gotoAndStop("idle");
home.display.char.scaleTo(0, 2, snapEase, 0);
home.display.char.rotateTo(720, 1.75, "", 0.25);
home.display.char.slideTo(home.display.exit_mc._x - 10, home.display.exit_mc._y - 50, 1.75, "", 0.25, endLevel2);
}
function alrtsAdd(type) {
var _local1 = type;
if ((_local1 == "portalOpen") || (_local1 == "gameOver")) {
var _local2 = 5;
} else if (_local1 == "timeIsUp") {
var _local2 = 3;
} else {
var _local2 = 1;
}
home.alrts_mc.alrt_mc.stopTween();
home.alrts_mc.stopTween();
home.attachMovie("alrts", "alrts_mc", 9959);
home.alrts_mc.gotoAndStop(_local1);
home.alrts_mc.alrt_mc.stopTween();
home.alrts_mc.alrt_mc.scaleTo(100, 1, home.elasto, 0.25);
home.alrts_mc.alphaTo(10, 1, "easeInQuad", _local2, home.alrtsRem);
}
function alrtsRem() {
home.alrts_mc.removeMovieClip();
}
function muteAll() {
if (home.music.getVolume() == 0) {
home.music.setVolume(100);
} else {
home.music.setVolume(0);
}
}
Math.linearTween = function (t, b, c, d) {
return(((c * t) / d) + b);
};
Math.easeInQuad = function (t, b, c, d) {
return(((c * ((t = t / d))) * t) + b);
};
Math.easeOutQuad = function (t, b, c, d) {
return((((-c) * ((t = t / d))) * (t - 2)) + b);
};
Math.easeInOutQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((c / 2) * _local1) * _local1) + b);
}
_local1--;
return((((-c) / 2) * ((_local1 * (_local1 - 2)) - 1)) + b);
};
Math.easeOutInQuad = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return((((-c) / 2) * ((_local1 * _local1) - 1)) + b);
}
_local1--;
return(((c / 2) * ((_local1 * _local1) + 1)) + b);
};
Math.easeInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((c * _local1) * _local1) * _local1) + b);
};
Math.easeOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInOutCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((c / 2) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((_local1 * _local1) * _local1) + 2)) + b);
};
Math.easeOutInCubic = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
_local1--;
return(((c / 2) * (((_local1 * _local1) * _local1) + 1)) + b);
};
Math.easeInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return(((((c * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return(((-c) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
};
Math.easeInOutQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((((c / 2) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + b);
};
Math.easeOutInQuart = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return((((-c) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + b);
}
_local1--;
return(((c / 2) * ((((_local1 * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / d;
return((((((c * _local1) * _local1) * _local1) * _local1) * _local1) + b);
};
Math.easeOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInOutQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((((((c / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + b);
};
Math.easeOutInQuint = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
_local1--;
return(((c / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + b);
};
Math.easeInSine = function (t, b, c, d) {
return((((-c) * Math.cos((t / d) * (Math.PI/2))) + c) + b);
};
Math.easeOutSine = function (t, b, c, d) {
return((c * Math.sin((t / d) * (Math.PI/2))) + b);
};
Math.easeInOutSine = function (t, b, c, d) {
return((((-c) / 2) * (Math.cos((Math.PI * t) / d) - 1)) + b);
};
Math.easeOutInSine = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((c / 2) * Math.sin((Math.PI * _local1) / 2)) + b);
}
_local1--;
return((((-c) / 2) * (Math.cos((Math.PI * _local1) / 2) - 2)) + b);
};
Math.easeInExpo = function (t, b, c, d) {
return(((t == 0) ? (b) : ((c * Math.pow(2, 10 * ((t / d) - 1))) + b)));
};
Math.easeOutExpo = function (t, b, c, d) {
return(((t == d) ? (b + c) : ((c * ((-Math.pow(2, (-10 * t) / d)) + 1)) + b)));
};
Math.easeInOutExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local2);
}
_local1--;
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local2);
};
Math.easeOutInExpo = function (t, b, c, d) {
var _local1 = t;
var _local2 = b;
var _local3 = c;
if (_local1 == 0) {
return(_local2);
}
if (_local1 == d) {
return(_local2 + _local3);
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return(((_local3 / 2) * ((-Math.pow(2, -10 * _local1)) + 1)) + _local2);
}
return(((_local3 / 2) * (Math.pow(2, 10 * (_local1 - 2)) + 1)) + _local2);
};
Math.easeInCirc = function (t, b, c, d) {
return(((-c) * (Math.sqrt(1 - (((t = t / d)) * t)) - 1)) + b);
};
Math.easeOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = (_local1 / d) - 1;
return((c * Math.sqrt(1 - (_local1 * _local1))) + b);
};
Math.easeInOutCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
return((((-c) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + b);
}
_local1 = _local1 - 2;
return(((c / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + b);
};
Math.easeOutInCirc = function (t, b, c, d) {
var _local1 = t;
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
return(((c / 2) * Math.sqrt(1 - (_local1 * _local1))) + b);
}
_local1--;
return(((c / 2) * (2 - Math.sqrt(1 - (_local1 * _local1)))) + b);
};
Math.easeInElastic = function (t, b, c, d, a, p) {
var _local1 = p;
var _local2 = t;
var _local3 = c;
if (_local2 == 0) {
return(b);
}
_local2 = _local2 / d;
if (_local2 == 1) {
return(b + _local3);
}
if (!_local1) {
_local1 = d * 0.3;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local1 / 4);
} else {
var s = ((_local1 / (Math.PI*2)) * Math.asin(_local3 / a));
}
_local2 = _local2 - 1;
return((-((a * Math.pow(2, 10 * _local2)) * Math.sin((((_local2 * d) - s) * (Math.PI*2)) / _local1))) + b);
};
Math.easeOutElastic = function (t, b, c, d, a, p) {
var _local1 = c;
var _local2 = p;
var _local3 = t;
if (_local3 == 0) {
return(b);
}
_local3 = _local3 / d;
if (_local3 == 1) {
return(b + _local1);
}
if (!_local2) {
_local2 = d * 0.3;
}
if (a < Math.abs(_local1)) {
a = _local1;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local1 / a));
}
return((((a * Math.pow(2, -10 * _local3)) * Math.sin((((_local3 * d) - s) * (Math.PI*2)) / _local2)) + _local1) + b);
};
Math.easeInOutElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = p;
var _local3 = c;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local3);
}
if (!_local2) {
_local2 = d * 0.45;
}
if (a < Math.abs(_local3)) {
a = _local3;
var s = (_local2 / 4);
} else {
var s = ((_local2 / (Math.PI*2)) * Math.asin(_local3 / a));
}
if (_local1 < 1) {
_local1--;
return((-0.5 * ((a * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2))) + b);
}
_local1--;
return(((((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local2)) * 0.5) + _local3) + b);
};
Math.easeOutInElastic = function (t, b, c, d, a, p) {
var _local1 = t;
var _local2 = c;
var _local3 = p;
if (_local1 == 0) {
return(b);
}
_local1 = _local1 / (d / 2);
if (_local1 == 2) {
return(b + _local2);
}
if (!_local3) {
_local3 = d * 0.45;
}
if (a < Math.abs(_local2)) {
a = _local2;
var s = (_local3 / 4);
} else {
var s = ((_local3 / (Math.PI*2)) * Math.asin(_local2 / a));
}
if (_local1 < 1) {
return(((0.5 * ((a * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3))) + (_local2 / 2)) + b);
}
return(((_local2 / 2) + (0.5 * ((a * Math.pow(2, 10 * (_local1 - 2))) * Math.sin((((_local1 * d) - s) * (Math.PI*2)) / _local3)))) + b);
};
Math.easeInBack = function (t, b, c, d, s) {
var _local1 = s;
var _local2 = t;
if (_local1 == undefined) {
_local1 = 1.70158;
}
_local2 = _local2 / d;
return((((c * _local2) * _local2) * (((_local1 + 1) * _local2) - _local1)) + b);
};
Math.easeOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = (_local1 / d) - 1;
return((c * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
};
Math.easeInOutBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local2 = _local2 * 1.525;
return(((c / 2) * ((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2))) + b);
}
_local1 = _local1 - 2;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 2)) + b);
};
Math.easeOutInBack = function (t, b, c, d, s) {
var _local1 = t;
var _local2 = s;
if (_local2 == undefined) {
_local2 = 1.70158;
}
_local1 = _local1 / (d / 2);
if (_local1 < 1) {
_local1--;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) + _local2)) + 1)) + b);
}
_local1--;
_local2 = _local2 * 1.525;
return(((c / 2) * (((_local1 * _local1) * (((_local2 + 1) * _local1) - _local2)) + 1)) + b);
};
Math.easeInBounce = function (t, b, c, d) {
return((c - Math.easeOutBounce(d - t, 0, c, d)) + b);
};
Math.easeOutBounce = function (t, b, c, d) {
var _local1 = t;
var _local2 = c;
var _local3 = b;
_local1 = _local1 / d;
if (_local1 < 0.363636363636364) {
return((_local2 * ((7.5625 * _local1) * _local1)) + _local3);
}
if (_local1 < 0.727272727272727) {
_local1 = _local1 - 0.545454545454545;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local3);
}
if (_local1 < 0.909090909090909) {
_local1 = _local1 - 0.818181818181818;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local3);
}
_local1 = _local1 - 0.954545454545455;
return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local3);
};
Math.easeInOutBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeInBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeOutBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
Math.easeOutInBounce = function (t, b, c, d) {
var _local1 = d;
var _local2 = t;
var _local3 = c;
if (_local2 < (_local1 / 2)) {
return((Math.easeOutBounce(_local2 * 2, 0, _local3, _local1) * 0.5) + b);
}
return(((Math.easeInBounce((_local2 * 2) - _local1, 0, _local3, _local1) * 0.5) + (_local3 * 0.5)) + b);
};
var Mp = MovieClip.prototype;
Mp.addListener = function () {
var _local1 = this;
if (!_local1._listeners) {
AsBroadcaster.initialize(_local1);
}
_local1.addListener.apply(_local1, arguments);
};
ASSetPropFlags(Mp, "addListener", 1, 0);
var tp = tweenManager.prototype;
tp.setupdateInterval = function (time) {
var _local1 = this;
if (_local1.playing) {
_local1.deinit();
_local1.updateTime = time;
_local1.init();
} else {
_local1.updateTime = time;
}
};
tp.getupdateInterval = function () {
return(this.updateTime);
};
tp.addProperty("updateInterval", tp.getupdateInterval, tp.setupdateInterval);
tp.init = function () {
var tm = this;
if (tm.updateTime > 0) {
tm.updateIntId = setInterval(tm, "update", tm.updateTime);
} else {
if (tm.tweenHolder._name == undefined) {
tm.tweenHolder = _root.createEmptyMovieClip("_th_", -6789);
}
tm.tweenHolder.onEnterFrame = function () {
tm.update.call(tm);
};
}
tm.playing = true;
tm.now = getTimer();
};
tp.deinit = function () {
var _local1 = this;
_local1.playing = false;
clearInterval(_local1.updateIntId);
delete _local1.tweenHolder.onEnterFrame;
};
tp.update = function () {
var i;
var _local1;
var _local2;
var _local3;
i = this.tweenList.length;
if (this.broadcastEvents) {
var ut = {};
var et = {};
}
while (i--) {
_local1 = this.tweenList[i];
if ((_local1.ts + _local1.d) > this.now) {
if (_local1.ctm == undefined) {
_local1.mc[_local1.pp] = _local1.ef(this.now - _local1.ts, _local1.ps, _local1.ch, _local1.d, _local1.e1, _local1.e2);
} else {
_local3 = {};
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.ef(this.now - _local1.ts, _local1.stm[_local2], _local1.ctm[_local2], _local1.d, _local1.e1, _local1.e2);
}
_local1.c.setTransform(_local3);
}
if (this.broadcastEvents && (ut[targetPath(_local1.mc)] == undefined)) {
ut[targetPath(_local1.mc)] = _local1.mc;
}
if (_local1.cb.updfunc != undefined) {
_local1.cb.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
} else {
if (_local1.ctm == undefined) {
_local1.mc[_local1.pp] = _local1.ps + _local1.ch;
} else {
_local3 = {};
for (_local2 in _local1.ctm) {
_local3[_local2] = _local1.stm[_local2] + _local1.ctm[_local2];
}
_local1.c.setTransform(_local3);
}
if (this.broadcastEvents) {
if (ut[targetPath(_local1.mc)] == undefined) {
ut[targetPath(_local1.mc)] = _local1.mc;
}
if (et[targetPath(_local1.mc)] == undefined) {
et[targetPath(_local1.mc)] = _local1.mc;
}
}
if (_local1.cb.updfunc != undefined) {
_local1.cb.updfunc.apply(_local1.cb.updscope, _local1.cb.updargs);
}
if (endt == undefined) {
var endt = new Array();
}
endt.push(i);
}
}
for (_local2 in ut) {
ut[_local2].broadcastMessage("onTweenUpdate");
}
if (endt != undefined) {
this.endTweens(endt);
}
for (_local2 in et) {
et[_local2].broadcastMessage("onTweenEnd");
}
this.now = getTimer();
if (this.updateTime > 0) {
updateAfterEvent();
}
};
tp.endTweens = function (tid_arr) {
var cb_arr;
var tl;
var i;
var cb;
var j;
cb_arr = [];
tl = tid_arr.length;
with (this) {
i = 0;
while (i < tl) {
cb = tweenList[tid_arr[i]].cb;
if (cb != undefined) {
var exec = true;
for (j in cb_arr) {
if (cb_arr[j] == cb) {
exec = false;
break;
}
}
if (exec) {
cb_arr.push(cb);
}
}
tweenList.splice(tid_arr[i], 1);
i++;
}
i = 0;
while (i < cb_arr.length) {
cb_arr[i].func.apply(cb_arr[i].scope, cb_arr[i].args);
i++;
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.addTween = function (mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
var i;
var pp;
var addnew;
var j;
var t;
with (this) {
if (!playing) {
init();
}
for (i in props) {
pp = props[i];
addnew = true;
if (pp.substr(0, 4) != "_ct_") {
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.pp == pp)) {
t.ps = mc[pp];
t.ch = pEnd[i] - mc[pp];
t.ts = now;
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
addnew = false;
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, pp:pp, ps:mc[pp], ch:pEnd[i] - mc[pp], ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
} else {
var c = new Color(mc);
var stm = c.getTransform();
var ctm = {};
for (j in pEnd[i]) {
if ((pEnd[i][j] != stm[j]) && (pEnd[i][j] != undefined)) {
ctm[j] = pEnd[i][j] - stm[j];
}
}
if (autoOverwrite) {
for (j in tweenList) {
t = tweenList[j];
if ((t.mc == mc) && (t.ctm != undefined)) {
t.c = c;
t.stm = stm;
(t.ctm = ctm);
(t.ts = now);
t.d = sec * 1000;
t.ef = eqFunc;
t.cb = callback;
t.e1 = extra1;
t.e2 = extra2;
addnew = false;
break;
}
}
}
if (addnew) {
tweenList.unshift({mc:mc, c:c, stm:stm, ctm:ctm, ts:now, d:sec * 1000, ef:eqFunc, cb:callback, e1:extra1, e2:extra2});
}
}
}
if (broadcastEvents) {
mc.broadcastMessage("onTweenStart");
}
if (callback.startfunc != undefined) {
callback.startfunc.apply(callback.startscope, callback.startargs);
}
}
};
tp.addTweenWithDelay = function (delay, mc, props, pEnd, sec, eqFunc, callback, extra1, extra2) {
with (this) {
var il;
var intid;
il = ints.length;
intid = setInterval(function (obj) {
var _local1 = obj;
var _local3;
var _local2;
_local1.addTween(mc, props, pEnd, sec, eqFunc, callback, extra1, extra2);
clearInterval(_local1.ints[il].intid);
_local1.ints[il] = undefined;
_local3 = true;
for (_local2 in _local1.ints) {
if (_local1.ints[_local2] != undefined) {
_local3 = false;
break;
}
}
if (_local3) {
_local1.ints = [];
}
}, delay * 1000, this);
ints[il] = {mc:mc, props:props, pend:pEnd, intid:intid, st:this.now, delay:delay * 1000, args:arguments.slice(1)};
}
};
tp.removeTween = function (mc, props) {
with (this) {
var all;
var i;
var j;
all = false;
if (props == undefined) {
all = true;
}
i = tweenList.length;
while (i--) {
if (tweenList[i].mc == mc) {
if (all) {
tweenList.splice(i, 1);
} else {
for (j in props) {
if (tweenList[i].pp == props[j]) {
tweenList.splice(i, 1);
} else if ((props[j] == "_ct_") && (tweenList[i].ctm != undefined)) {
tweenList.splice(i, 1);
}
}
}
}
}
i = ints.length;
while (i--) {
if (ints[i].mc == mc) {
if (all) {
clearInterval(ints[i].intid);
ints[i] = undefined;
} else {
for (j in props) {
for (var k in ints[i].props) {
if (ints[i].props[k] == props[j]) {
ints[i].props.splice(k, 1);
ints[i].pend.splice(k, 1);
}
}
if (ints[i].props.length == 0) {
clearInterval(ints[i].intid);
ints[i] = undefined;
}
}
}
}
}
if (tweenList.length == 0) {
deinit();
}
}
};
tp.isTweening = function (mc) {
with (this) {
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
return(true);
}
}
return(false);
}
};
tp.getTweens = function (mc) {
with (this) {
var count = 0;
for (var i in tweenList) {
if (tweenList[i].mc == mc) {
count++;
}
}
return(count);
}
};
tp.lockTween = function (mc, bool) {
this.lockedTweens[targetPath(mc)] = bool;
};
tp.isTweenLocked = function (mc) {
if (this.lockedTweens[targetPath(mc)] == undefined) {
return(false);
}
return(this.lockedTweens[targetPath(mc)]);
};
tp.pauseAll = function () {
var _local1 = this;
if (_local1.isPaused) {
} else {
_local1.isPaused = true;
_local1.pausedTime = _local1.now;
for (var _local2 in _local1.ints) {
clearInterval(_local1.ints[_local2].intid);
}
_local1.deinit();
}
};
tp.unpauseAll = function () {
var _local1 = this;
if (!_local1.isPaused) {
} else {
var _local2;
var t;
_local1.isPaused = false;
_local1.now = getTimer();
for (_local2 in _local1.tweenList) {
t = _local1.tweenList[_local2];
t.ts = _local1.now - (_local1.pausedTime - t.ts);
}
_local1.init();
for (_local2 in _local1.ints) {
if (_local1.ints[_local2] == undefined) {
continue;
}
var _local3 = _local1.ints[_local2].delay - (_local1.pausedTime - _local1.ints[_local2].st);
var intid = setInterval(function (obj, id) {
var _local1 = obj;
var _local2 = id;
_local1.addTween.apply(_local1, _local1.ints[_local2].args);
clearInterval(_local1.ints[_local2].intid);
_local1.ints[_local2] = undefined;
}, _local3, _local1, _local2);
_local1.ints[_local2].intid = intid;
_local1.ints[_local2].st = _local1.now;
_local1.ints[_local2].delay = _local3;
}
}
};
tp.toString = function () {
return("[AS1 tweenManager 1.1.8]");
};
delete tp;
if (_global.$tweenManager == undefined) {
_global.$tweenManager = new tweenManager();
} else {
_global.$tweenManager.playing = false;
}
Mp.tween = function (props, pEnd, seconds, animType, delay, callback, extra1, extra2) {
if (_global.$tweenManager.isTweenLocked(this)) {
trace("error: this movieclip is locked");
return(undefined);
}
if (arguments.length < 2) {
trace("error: props & pEnd must be defined");
return(undefined);
}
if (typeof(props) == "string") {
props = [props];
}
if (pEnd.length == undefined) {
pEnd = [pEnd];
}
if (seconds == undefined) {
seconds = 2;
} else if (seconds < 0.01) {
seconds = 0;
}
if ((delay < 0.01) || (delay == undefined)) {
delay = 0;
}
switch (typeof(animType)) {
case "string" :
if (animType.toLowerCase() == "linear") {
var eqf = Math.linearTween;
} else {
var eqf = Math[animType];
}
break;
case "function" :
var eqf = animType;
break;
case "object" :
if (!((animType.pts != undefined) && (animType.ease != undefined))) {
break;
}
var eqf = animType.ease;
var extra1 = animType.pts;
}
if (eqf == undefined) {
var eqf = Math.easeOutExpo;
}
switch (typeof(callback)) {
case "function" :
callback = {func:callback, scope:this._parent};
break;
case "string" :
var ilp = callback.indexOf("(");
var funcp = callback.slice(0, ilp);
var scope = eval (funcp.slice(0, funcp.lastIndexOf(".")));
var func = eval (funcp);
var args = callback.slice(ilp + 1, callback.lastIndexOf(")")).split(",");
var i = 0;
while (i < args.length) {
var a = eval (args[i]);
if (a != undefined) {
args[i] = a;
}
i++;
}
callback = {func:func, scope:scope, args:args};
}
if (_global.$tweenManager.autoStop) {
_global.$tweenManager.removeTween(this, props);
}
if (delay > 0) {
_global.$tweenManager.addTweenWithDelay(delay, this, props, pEnd, seconds, eqf, callback, extra1, extra2);
} else {
_global.$tweenManager.addTween(this, props, pEnd, seconds, eqf, callback, extra1, extra2);
}
};
ASSetPropFlags(Mp, "tween", 1, 0);
Mp.stopTween = function (props) {
var _local1 = props;
if (typeof(_local1) == "string") {
_local1 = [_local1];
}
_global.$tweenManager.removeTween(this, _local1);
};
ASSetPropFlags(Mp, "stopTween", 1, 0);
Mp.isTweening = function () {
return(_global.$tweenManager.isTweening(this));
};
ASSetPropFlags(Mp, "isTweening", 1, 0);
Mp.getTweens = function () {
return(_global.$tweenManager.getTweens(this));
};
ASSetPropFlags(Mp, "getTweens", 1, 0);
Mp.lockTween = function () {
_global.$tweenManager.lockTween(this, true);
};
ASSetPropFlags(Mp, "lockTween", 1, 0);
Mp.unlockTween = function () {
_global.$tweenManager.lockTween(this, false);
};
ASSetPropFlags(Mp, "unlockTween", 1, 0);
Mp.isTweenLocked = function () {
return(_global.$tweenManager.isTweenLocked(this));
};
ASSetPropFlags(Mp, "isTweenLocked", 1, 0);
Mp.alphaTo = function (destAlpha, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_alpha"], [destAlpha], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "alphaTo", 1, 0);
Mp.brightnessTo = function (bright, seconds, animType, delay, callback, extra1, extra2) {
var _local3 = bright;
var _local2 = 100 - Math.abs(_local3);
var _local1 = 0;
if (_local3 > 0) {
_local1 = 256 * (_local3 / 100);
}
var destCt = {ra:_local2, rb:_local1, ga:_local2, gb:_local1, ba:_local2, bb:_local1};
this.tween(["_ct_"], [destCt], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightnessTo", 1, 0);
Mp.colorTo = function (destColor, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = destColor;
var _local2;
if ((_local1 == undefined) || (_local1 == null)) {
_local2 = {rb:0, ra:100, gb:0, ga:100, bb:0, ba:100};
} else {
_local2 = {rb:_local1 >> 16, ra:0, gb:(_local1 & 65280) >> 8, ga:0, bb:_local1 & 255, ba:0};
}
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTo", 1, 0);
Mp.colorTransformTo = function (ra, rb, ga, gb, ba, bb, aa, ab, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = {ra:ra, rb:rb, ga:ga, gb:gb, ba:ba, bb:bb, aa:aa, ab:ab};
this.tween(["_ct_"], [_local1], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "colorTransformTo", 1, 0);
Mp.scaleTo = function (destScale, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_xscale", "_yscale"], [destScale, destScale], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "scaleTo", 1, 0);
Mp.slideTo = function (destX, destY, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_x", "_y"], [destX, destY], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "slideTo", 1, 0);
Mp.rotateTo = function (destRotation, seconds, animType, delay, callback, extra1, extra2) {
this.tween(["_rotation"], [destRotation], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "rotateTo", 1, 0);
Mp.getFrame = function () {
return(this._currentframe);
};
ASSetPropFlags(Mp, "getFrame", 1, 0);
Mp.setFrame = function (fr) {
this.gotoAndStop(Math.round(fr));
};
ASSetPropFlags(Mp, "setFrame", 1, 0);
Mp.addProperty("_frame", Mp.getFrame, Mp.setFrame);
ASSetPropFlags(Mp, "_frame", 1, 0);
Mp.frameTo = function (endframe, duration, animType, delay, callback, extra1, extra2) {
var _local1 = endframe;
if (_local1 == undefined) {
_local1 = this._totalframes;
}
this.tween("_frame", _local1, duration, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "frameTo", 1, 0);
Mp.brightOffsetTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = 256 * (percent / 100);
var _local2 = {ra:100, rb:_local1, ga:100, gb:_local1, ba:100, bb:_local1};
this.tween(["_ct_"], [_local2], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "brightOffsetTo", 1, 0);
Mp.contrastTo = function (percent, seconds, animType, delay, callback, extra1, extra2) {
var _local1 = {};
_local1.ra = (_local1.ga = (_local1.ba = percent));
_local1.rb = (_local1.gb = (_local1.bb = 128 - (1.28 * percent)));
this.tween(["_ct_"], [_local1], seconds, animType, delay, callback, extra1, extra2);
};
ASSetPropFlags(Mp, "contrastTo", 1, 0);
delete Mp;
_global.home = this;
invulLimit = 1.5;
invulLoop = 0;
invulLoopTime = 250;
puValue = 150;
timeBonus = 25;
healthBonus = 200;
CumulativePoints = {level1:0, level2:0, level3:0, level4:0, level5:0, level6:0, puLevel1:0, puLevel2:0, puLevel3:0, puLevel4:0, puLevel5:0, puLevel6:0, collected:0};
charHealth = 5;
charHits = 0;
totalLevels = 6;
TILE_W = 32;
TILE_H = 32;
orgX = 11.5;
orgY = 0;
enPts = 100;
ticks = 0;
if (fpsUpdater == undefined) {
fpsUpdater = setInterval(fpsInt, 1000);
}
newGame = function () {
home.addGamePlay();
CumulativePoints = {level1:0, level2:0, level3:0, level4:0, level5:0, level6:0, puLevel1:0, puLevel2:0, puLevel3:0, puLevel4:0, puLevel5:0, puLevel6:0, collected:0};
home.attachMovie("hud_BKG", "hud_BKG", 99999);
trace("New Game Started");
home.mainMenu_mc.removeMovieClip();
clearInterval(home.timeInt);
home.charAlive = true;
home.charHits = 0;
home.itemsGrabbed = 0;
home.totalPickups = 0;
home.hud_BKG.points = 0;
home.exit = false;
currentLevel = 1;
home.initTimer();
starting = true;
home.currentMap = home["Level" + home.currentLevel].currentMap;
buildMap(home["Level" + home.currentLevel]["map" + home["Level" + home.currentLevel].currentMap]);
};
_global.delayItStart = function (time, func, timeName, objName, paramArg) {
timeName = new Timer();
timeName.setDelay(1000);
timeName.setAlarm(arguments[0]);
objName = new Object();
timeName.addListener(objName);
objName.onTimerAlarm = function () {
trace(((("Launching delayed function now: " + func) + " ") + time) + " second delay");
trace(paramArg);
timeName.stop();
delete objName;
func.call(null, paramArg);
};
objName.onTimerTick = function () {
};
objName.onTimerStop = function () {
};
timeName.start();
};
mainMenu();
home._quality = "HIGH";
var trackerVars_get = new LoadVars();
var trackerVars_send = new LoadVars();
trackerVars_send.gameID = home.gameID;
home.trackerVars_get.onLoad = function (success) {
if (success) {
trace("Your gameplay has been tracked succesfully");
} else {
trace("there was an error submitted a gameplay report, this gameplay has NOT been recorded.");
}
};
addGamePlay = function () {
trace("ADD GAMEPLAY NOW!");
trace(arguments[0]);
trace("Game ID: " + trackerVars_send.gameID);
trackerVars_send.sendAndLoad(trackerURL, trackerVars_get, "POST");
};
Symbol 23 MovieClip [spring] Frame 1
stop();
Symbol 164 MovieClip [pickup] Frame 1
stop();
Symbol 173 MovieClip Frame 25
stop();
Symbol 174 MovieClip [exit] Frame 1
stop();
Symbol 184 MovieClip Frame 1
stop();
Symbol 187 MovieClip [enemy5] Frame 1
function render() {
_y = mRound(ypos);
_x = mRound(xpos);
}
function updateEdges() {
downY = mFloor((ypos + 15) / TILE_H);
upY = mFloor((ypos - 15) / TILE_H);
leftX = mFloor((xpos - 15) / TILE_W);
rightX = mFloor((xpos + 15) / TILE_W);
downY2 = mFloor((ypos + 13) / TILE_H);
upY2 = mFloor((ypos - 13) / TILE_H);
centerX = mFloor(xpos / TILE_W);
}
var xSpeed = speed;
var ySpeed = speed;
var cMap = home.cMap;
var TILE_W = home.TILE_W;
var TILE_H = home.TILE_H;
var groundFriction = 0.7;
var mFloor = Math.floor;
var mRound = Math.round;
trace("Movex = " + xMove);
trace("Movey = " + yMove);
this.onEnterFrame = function () {
updateEdges();
if (xMove == 1) {
enArt.gotoAndStop("right");
if (cMap[downY2][rightX] == 1) {
xMove = -1;
trace("turn LEFT");
}
}
if (xMove == -1) {
enArt.gotoAndStop("left");
if (cMap[downY2][leftX] == 1) {
xMove = 1;
trace("turn RIGHT");
}
}
if (yMove == -1) {
if (cMap[upY][centerX] == 1) {
yMove = 1;
}
if (cMap[upY][centerX] == 5) {
yMove = 1;
}
if (cMap[upY][centerX] == 6) {
yMove = 1;
}
if (cMap[upY][centerX] == 8) {
yMove = 1;
}
if (cMap[upY][centerX] == 9) {
yMove = 1;
}
} else if (yMove == 1) {
if (cMap[downY][centerX] == 1) {
trace("was going down now going up");
yMove = -1;
}
if (cMap[downY][centerX] == 5) {
yMove = -1;
}
if (cMap[downY][centerX] == 6) {
yMove = -1;
}
if (cMap[downY][centerX] == 8) {
yMove = -1;
}
if (cMap[downY][centerX] == 9) {
yMove = -1;
}
}
var _local2 = speed * xMove;
if (xMove != 0) {
xpos = xpos + _local2;
}
var _local1 = speed * yMove;
if (yMove != 0) {
ypos = ypos + _local1;
}
this.render();
};
Symbol 214 MovieClip Frame 1
stop();
Symbol 215 MovieClip [enemy4] Frame 1
function render() {
_y = mRound(ypos);
_x = mRound(xpos);
}
function updateEdges() {
downY = mFloor((ypos + 15) / TILE_H);
upY = mFloor((ypos - 15) / TILE_H);
leftX = mFloor((xpos - 15) / TILE_W);
rightX = mFloor((xpos + 15) / TILE_W);
downY2 = mFloor((ypos + 13) / TILE_H);
upY2 = mFloor((ypos - 13) / TILE_H);
}
var xSpeed = speed;
var ySpeed = speed;
var cMap = home.cMap;
var TILE_W = home.TILE_W;
var TILE_H = home.TILE_H;
var groundFriction = 0.7;
var mFloor = Math.floor;
var mRound = Math.round;
this.onEnterFrame = function () {
updateEdges();
if (xMove == 1) {
enArt.gotoAndStop("right");
if ((cMap[downY + 1][rightX] != 1) || (cMap[downY2][rightX] == 1)) {
xMove = -1;
}
}
if (xMove == -1) {
enArt.gotoAndStop("left");
if ((cMap[downY + 1][leftX] != 1) || (cMap[downY2][leftX] == 1)) {
xMove = 1;
}
}
xSpeed = speed * xMove;
if (xMove != 0) {
xpos = xpos + xSpeed;
}
if (yMove != 0) {
ypos = ypos + ySpeed;
}
this.render();
};
Symbol 221 MovieClip Frame 1
stop();
Symbol 222 MovieClip [enemy6] Frame 1
function render() {
_y = mRound(ypos);
_x = mRound(xpos);
}
function updateEdges() {
downY = mFloor((ypos + 15) / TILE_H);
upY = mFloor((ypos - 15) / TILE_H);
leftX = mFloor((xpos - 15) / TILE_W);
rightX = mFloor((xpos + 15) / TILE_W);
downY2 = mFloor((ypos + 13) / TILE_H);
upY2 = mFloor((ypos - 13) / TILE_H);
}
var xSpeed = speed;
var ySpeed = speed;
var cMap = home.cMap;
var TILE_W = home.TILE_W;
var TILE_H = home.TILE_H;
var groundFriction = 0.7;
var mFloor = Math.floor;
var mRound = Math.round;
this.onEnterFrame = function () {
updateEdges();
if (xMove == 1) {
enArt.gotoAndStop("right");
if ((cMap[downY + 1][rightX] != 1) || (cMap[downY2][rightX] == 1)) {
xMove = -1;
}
}
if (xMove == -1) {
enArt.gotoAndStop("left");
if ((cMap[downY + 1][leftX] != 1) || (cMap[downY2][leftX] == 1)) {
xMove = 1;
}
}
var _local2 = speed * xMove;
if (xMove != 0) {
xpos = xpos + _local2;
}
var _local1 = speed * yMove;
if (yMove != 0) {
ypos = ypos + _local1;
}
this.render();
};
Symbol 297 MovieClip Frame 1
sup_mc._quality = "Best";
stop();
Symbol 297 MovieClip Frame 6
sup_mc._quality = "Best";
Symbol 297 MovieClip Frame 10
sup_mc._quality = "Best";
Symbol 298 MovieClip [enemy1] Frame 1
function render() {
_y = mRound(ypos);
_x = mRound(xpos);
}
function updateEdges() {
downY = mFloor((ypos + 15) / TILE_H);
upY = mFloor((ypos - 15) / TILE_H);
leftX = mFloor((xpos - 15) / TILE_W);
rightX = mFloor((xpos + 15) / TILE_W);
downY2 = mFloor((ypos + 13) / TILE_H);
upY2 = mFloor((ypos - 13) / TILE_H);
}
var xSpeed = speed;
var ySpeed = speed;
var cMap = home.cMap;
var TILE_W = home.TILE_W;
var TILE_H = home.TILE_H;
var groundFriction = 0.7;
var mFloor = Math.floor;
var mRound = Math.round;
this.onEnterFrame = function () {
updateEdges();
if (xMove == 1) {
enArt.gotoAndStop("right");
if ((cMap[downY + 1][rightX] != 1) || (cMap[downY2][rightX] == 1)) {
xMove = -1;
}
}
if (xMove == -1) {
enArt.gotoAndStop("left");
if ((cMap[downY + 1][leftX] != 1) || (cMap[downY2][leftX] == 1)) {
xMove = 1;
}
}
var _local2 = speed * xMove;
if (xMove != 0) {
xpos = xpos + _local2;
}
var _local1 = speed * yMove;
if (yMove != 0) {
ypos = ypos + _local1;
}
this.render();
};
Symbol 371 MovieClip Frame 42
home.respawn = false;
_parent.gotoAndStop("idle");
Symbol 389 MovieClip Frame 14
home.landing = false;
_parent.gotoAndStop("idle");
Symbol 396 MovieClip Frame 27
_parent._parent.gummed = false;
_parent.gotoAndStop("idle");
Symbol 406 MovieClip Frame 54
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 2
stop();
Instance of Symbol 308 MovieClip "splat_mc" in Symbol 407 MovieClip Frame 2
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if (_parent._parent.gummed) {
this._visible = true;
}
}
Symbol 407 MovieClip Frame 6
stop();
Symbol 407 MovieClip Frame 10
stop();
Symbol 407 MovieClip Frame 15
stop();
Symbol 407 MovieClip Frame 20
stop();
Symbol 407 MovieClip Frame 25
stop();
Symbol 407 MovieClip Frame 30
stop();
Symbol 407 MovieClip Frame 35
stop();
Symbol 407 MovieClip Frame 40
stop();
Symbol 407 MovieClip Frame 45
stop();
Symbol 407 MovieClip Frame 50
stop();
Symbol 407 MovieClip Frame 55
stop();
Symbol 407 MovieClip Frame 60
stop();
Symbol 407 MovieClip Frame 65
stop();
Symbol 418 MovieClip Frame 1
stop();
Symbol 419 MovieClip [char] Frame 1
function render() {
if (xpos < 50) {
xpos = 55;
trace("RETURN TO SENDER!");
}
if (xpos > 550) {
xpos = 550;
}
_y = mRound(ypos);
_x = mRound(xpos);
}
function setY(traction) {
onGround = true;
onTraction = true;
var _local1 = (downY3 * TILE_H) - TILE_H;
ypos = _local1 + mAbs(gravity);
yspeed = 0;
}
function updateEdges() {
downY = mFloor((ypos + 31) / TILE_H);
upY = mFloor((ypos - 31) / TILE_H);
leftX = mFloor((xpos - 15) / TILE_W);
rightX = mFloor((xpos + 15) / TILE_W);
downY2 = mFloor((ypos + 26) / TILE_H);
upY2 = mFloor((ypos - 26) / TILE_H);
downY3 = mFloor((ypos + 32) / TILE_H);
centerY = mFloor(ypos / TILE_H);
centerX = mFloor(xpos / TILE_W);
}
if (home.starting) {
bubble = 0;
}
var speed = 6.5;
var jumpspeed = 12;
var jPad = 35;
var health;
var mFloor = Math.floor;
var mAbs = Math.abs;
var mRound = Math.round;
var KDN = Key.isDown;
var kL = 37;
var kR = 39;
var kU = 38;
var kD = 40;
var kS = 32;
var cMap = home.cMap;
var TILE_W = home.TILE_W;
var TILE_H = home.TILE_H;
var baseGrav = ((gravity = 0.9));
var groundFriction = 0.8;
var airFriction = 0.9;
this.onEnterFrame = function () {
var _local2 = this;
if (home.charAlive) {
if (((xspeed < 0.5) && (xspeed > 0)) || ((xspeed > -0.5) && (xspeed < 0))) {
xspeed = 0;
}
if ((gummed && (onGround)) && (!home.respawn)) {
trace("DE-GUM YOURSELF");
gummed = false;
charArt.splat_mc._visible = false;
charArt.gotoAndStop("degum");
}
if (KDN(kS)) {
if (!gummed) {
if (!home.respawn) {
yspeed = (-speed) + 2;
if (bubble < 100) {
bubble = bubble + 5;
if ((bubble_snd == undefined) || (bubble_snd.position == bubble_snd.duration)) {
bubble_snd = new Sound();
bubble_snd.atcPlay("bubbleUp2");
}
}
flying = true;
traction = 0;
gravity = -1 * (bubble / 100);
}
}
} else {
if (bubble > 0) {
bubble = bubble - 5;
}
flying = false;
if (gravity < 0) {
gravity = gravity * (bubble / 100);
} else {
gravity = baseGrav;
}
}
bubble_mc._xscale = (bubble_mc._yscale = bubble);
if (KDN(kU)) {
if (onGround) {
if (!home.respawn) {
if (!flying) {
jump_snd = new Sound();
jump_snd.atcPlay("jump");
}
jt = getTimer();
yspeed = -jumpspeed;
charArt.gotoAndStop("jump");
}
}
}
if ((KDN(kL) && (!gummed)) && (!home.respawn)) {
if (!gummed) {
if (!home.respawn) {
xspeed = (-speed) + traction;
dirX = -1;
hitbox._yscale = 100;
if (!onGround) {
if (flying) {
charArt.gotoAndStop("flyLeft");
} else {
charArt.gotoAndStop("airLeft");
}
anim = "airLeft";
bubble_mc._x = -10;
} else {
home.landing = false;
charArt.gotoAndStop("left");
anim = "left";
}
}
}
} else if (KDN(kR)) {
if (!gummed) {
if (!home.respawn) {
xspeed = speed + traction;
dirX = 1;
hitbox._yscale = 100;
if (!onGround) {
if (flying) {
charArt.gotoAndStop("flyRight");
} else {
charArt.gotoAndStop("airRight");
}
anim = "airRight";
bubble_mc._x = 10;
} else {
home.landing = false;
charArt.gotoAndStop("right");
anim = "right";
}
}
}
} else if (KDN(kD)) {
if (!gummed) {
if (!home.respawn) {
if (onGround) {
hitbox._yscale = 50;
charArt.gotoAndStop("duck");
anim = "duck";
} else {
charArt.gotoAndStop("fall");
anim = "fall";
}
}
}
} else {
dirX = 0;
hitbox._yscale = 100;
bubble_mc._x = 0;
if (onGround) {
if (home.respawn) {
charArt.gotoAndStop("respawn");
anim = "respawn";
} else if (!home.landing) {
if (!home.respawn) {
charArt.gotoAndStop("idle");
anim = "idle";
}
}
} else if (flying) {
charArt.gotoAndStop("fly");
anim = "fly";
} else if (!home.respawn) {
charArt.gotoAndStop("fall");
anim = "fall";
}
}
if (!onGround) {
yspeed = yspeed + gravity;
yspeed = yspeed * airFriction;
traction = 0;
}
if (onGround) {
xspeed = xspeed * groundFriction;
}
if (cMap[downY + 1][centerX] == 9) {
home.nextMap(xpos, ypos, gummed, bubble);
trace("CHANGE MAP");
}
if (cMap[upY - 1][centerX] == 8) {
home.prevMap(xpos, ypos, gummed, bubble);
trace("CHANGE MAP");
}
if (cMap[DownY][centerX] == 7) {
if (home.exit) {
home.endLevel();
trace("NEXT LEVEL!");
}
}
if (cMap[DownY][centerX] == 10) {
home.display[(("spring_mc_" + DownY) + "_") + centerX].gotoAndPlay(2);
yspeed = -jPad;
if (gummed) {
gummed = false;
charArt.splat_mc._visible = false;
}
}
if (cMap[upY][centerX] == 4) {
if (flying) {
trace("Setting Gummed to TRUE");
charArt.splat_mc._visible = true;
gummed = true;
bubble = 0;
bubble_pop.gotoAndPlay(2);
trace("SPIKES!");
flying = false;
}
}
ypos = ypos + yspeed;
xpos = xpos + (xspeed + (traction * 3));
updateEdges();
if (!home.invul) {
var _local3 = 0;
while (_local3 < home.totalEnemy) {
if (_local2.hitBox.hitTest(home.display["enemy" + _local3].hitbox)) {
home.alrtsAdd("chomped");
xspeed = 0;
hit = new Sound();
hit.atcPlay("hit1");
if (flying) {
flying = false;
trace("Setting Gummed to TRUE");
charArt.splat_mc._visible = true;
gummed = true;
bubble = 0;
bubble_pop.gotoAndPlay(2);
} else {
yspeed = -2;
}
if (home.display["enemy" + _local3]._x > xpos) {
trace("enemy right");
} else {
trace("enemy left");
}
ypos = ypos + yspeed;
xpos = xpos + xspeed;
_local2.render();
home.hud_BKG.health_mc["mark" + (home.charHits + 1)].gotoAndStop(2);
trace("collision");
home.charHits++;
if (home.charHits >= home.charHealth) {
trace("You Are Now Dead");
home.charAlive = false;
home.endGame(1);
break;
}
home.enCol[home.display["enemy" + _local3].id] = true;
home.invul = true;
home.invul_interval = setInterval(home.checkInvul, home.invulLoopTime);
home.display.char.rotateTo(720, 0.5, "easeOutQuad");
} else {
home.enCol[home.display["enemy" + _local3].id] = false;
}
_local3++;
}
}
var _local3 = 0;
while (_local3 < home["pu_" + home.currentMap].length) {
var _local1 = "pickup" + _local3;
if (_local2.hitBox.hitTest(home.display[_local1])) {
pu_snd = new Sound();
pu_snd.atcPlay("eat");
home.CumulativePoints.collected++;
home.hud_BKG.points = home.hud_BKG.points + home.puValue;
trace("\n =========");
trace("you just picked up pickup #" + home.display[_local1].id);
trace("you just picked up pickup #" + home["pu_" + home.currentMap][home.display[_local1].id]);
home.display[_local1].removeMovieClip();
home.itemsGrabbed++;
trace((home.itemsGrabbed + " / ") + home.totalPickups);
if (home.itemsGrabbed >= home.totalPickups) {
home.alrtsAdd("portalOpen");
trace("Level Complete!");
home.display.exit_mc.gotoAndStop(2);
home.exit = true;
}
trace(newline);
trace("BEFORE: " + home["pu_" + home.currentMap]);
delete home["pu_" + home.currentMap][_local3];
trace(" AFTER: " + home["pu_" + home.currentMap]);
trace(newline);
}
_local3++;
}
if (!home.invul) {
for (_local3 in home.enCol) {
if (home.enCol[_local3]) {
_local2._alpha = 25;
break;
}
_local2._alpha = 100;
}
}
if (!onSlope) {
if (((cMap[downY2][leftX] == 1) || (cMap[upY2][leftX] == 1)) || (cMap[centerY][leftX] == 1)) {
xpos = xpos - xspeed;
xspeed = 0;
updateEdges();
}
if (((cMap[downY2][rightX] == 1) || (cMap[upY2][rightX] == 1)) || (cMap[centerY][rightX] == 1)) {
xpos = xpos - xspeed;
xspeed = 0;
updateEdges();
}
}
if (!onGround) {
if ((((cMap[upY][leftX] == 1) || (cMap[upY][rightX] == 1)) || ((cMap[upY][leftX] == 5) || (cMap[upY][rightX] == 5))) || ((cMap[upY][leftX] == 6) || (cMap[upY][rightX] == 6))) {
var roof = ((upY * TILE_H) + (TILE_H * 2));
if (!onSlope) {
ypos = roof - mAbs(gravity);
yspeed = 0;
}
xspeed = xspeed * groundFriction;
updateEdges();
}
}
updateEdges();
if (!flying) {
if (cMap[downY][centerX] == 2) {
if (!onGround) {
if (!home.respawn) {
home.landing = true;
charArt.gotoAndStop("land");
}
}
onGround = true;
onSlope = true;
var ground = ((downY * TILE_H) - TILE_H);
var xp = ((centerX * TILE_W) - _local2._x);
if (ypos > ((ground + TILE_H) + xp)) {
ypos = (ground + TILE_H) + xp;
}
} else if (cMap[downY][centerX] == 3) {
if (!onGround) {
if (!home.respawn) {
home.landing = true;
charArt.gotoAndStop("land");
}
}
onGround = true;
onSlope = true;
var ground = (downY * TILE_H);
var xp = (_local2._x - (centerX * TILE_W));
if (ypos > ((ground + xp) - TILE_W)) {
ypos = (ground + xp) - TILE_W;
}
} else {
onSlope = false;
}
} else {
onSlope = false;
}
if ((cMap[downY3][leftX] == 1) || (cMap[downY3][rightX] == 1)) {
if (!onGround) {
home.landing = true;
if (!home.respawn) {
charArt.gotoAndStop("land");
}
jlt = getTimer();
}
if (!onSlope) {
traction = 0;
setY(traction);
}
} else if ((cMap[downY3][leftX] == 5) || (cMap[downY3][rightX] == 5)) {
if (!flying) {
if (!onGround) {
home.landing = true;
charArt.gotoAndStop("land");
jlt = getTimer();
}
traction = -1;
setY(traction);
}
} else if ((cMap[downY3][leftX] == 6) || (cMap[downY3][rightX] == 6)) {
if (!flying) {
if (!onGround) {
home.landing = true;
charArt.gotoAndStop("land");
jlt = getTimer();
}
traction = 1;
setY(traction);
}
} else if (!onSlope) {
jt = getTimer();
onGround = false;
}
_local2.render();
_parent._parent.ticks++;
}
};
Symbol 430 MovieClip [enemy3] Frame 1
var mRound = Math.round;
with (this) {
_y = mRound(ypos);
_x = mRound(xpos);
}
if (yMove != 1) {
this._rotation = 180;
}
Symbol 437 MovieClip [enemy2] Frame 1
var mRound = Math.round;
with (this) {
_y = mRound(ypos);
_x = mRound(xpos);
}
if (yMove != 1) {
this._rotation = 180;
}
Symbol 453 MovieClip Frame 1
stop();
Symbol 474 Button
on (press) {
home.nextLevel();
delete this.onEnterFrame;
}
Symbol 475 MovieClip [endLevel] Frame 1
var KDN = Key.isDown;
var kS = 32;
var kR = 13;
this.onEnterFrame = function () {
if (KDN(kS) || (KDN(kR))) {
home.nextLevel();
delete this.onEnterFrame;
}
};
Symbol 481 Button
on (press) {
home.newGame();
}
Symbol 483 Button
on (press) {
gotoAndStop (2);
}
Symbol 505 Button
on (press) {
gotoAndStop (2);
}
Symbol 507 Button
on (press) {
home.newGame();
}
Symbol 510 Button
on (press) {
home.loadScores();
gotoAndStop (5);
}
Symbol 515 Button
on (press) {
var jsURL = (("javascript:openTellAFriendWindow('" + home.tellURL) + "', 450, 650)");
getURL (jsURL);
}
Symbol 517 Button
on (press) {
gotoAndStop (1);
}
Symbol 532 Button
on (release) {
nextFrame();
}
Symbol 616 Button
on (release) {
gotoAndStop (1);
}
Symbol 622 Button
on (press) {
gotoAndStop (1);
}
Symbol 626 Button
on (press) {
getURL ("http://www.kaboose.com/registration/login.php", "_blank");
}
Symbol 654 MovieClip [mainMenu] Frame 1
stop();
Symbol 654 MovieClip [mainMenu] Frame 5
function checkParamsLoaded() {
if (home.highscores.done == 0) {
inty = inty + 0.2;
if (inty > 10) {
clearInterval(param_interval);
total_1 = "Timed Out";
}
trace("not yet scores1. " + inty);
} else {
total_1 = (home.highscores.hs_1_score + " pts - ") + home.highscores.hs_1_username;
total_2 = (home.highscores.hs_2_score + " pts - ") + home.highscores.hs_2_username;
total_3 = (home.highscores.hs_3_score + " pts - ") + home.highscores.hs_3_username;
total_4 = (home.highscores.hs_4_score + " pts - ") + home.highscores.hs_4_username;
total_5 = (home.highscores.hs_5_score + " pts - ") + home.highscores.hs_5_username;
total_6 = (home.highscores.hs_6_score + " pts - ") + home.highscores.hs_6_username;
total_7 = (home.highscores.hs_7_score + " pts - ") + home.highscores.hs_7_username;
total_8 = (home.highscores.hs_8_score + " pts - ") + home.highscores.hs_8_username;
total_9 = (home.highscores.hs_9_score + " pts - ") + home.highscores.hs_9_username;
total_10 = (home.highscores.hs_10_score + " pts - ") + home.highscores.hs_10_username;
}
updateAfterEvent();
}
var param_interval = setInterval(checkParamsLoaded, 200);
stop();
Symbol 659 Button
on (press) {
home.updateTotal(totalPoints);
trace("totalPoints = " + totalPoints);
gotoAndStop (4);
}
Symbol 660 Button
on (press) {
getURL (("JavaScript:openTellAFriendWindow('" + home.tellURL) + "', 450, 650);");
}
Symbol 675 Button
on (press) {
home.mainMenu();
}
Symbol 677 Button
on (press) {
getURL ("http://network.kaboose.com/clicks/go.php?url=http://www.bubbletape.com", "_blank");
}
Symbol 766 Button
on (press) {
getURL (("JavaScript:openTellAFriendWindow('" + home.tellURL) + "', 450, 650);");
}
Symbol 790 Button
on (press) {
gotoAndStop (2);
}
Symbol 792 MovieClip [endScreen] Frame 1
trace("+++++");
trace(home.CumulativePoints);
trace(home.CumulativePoints.puLevel1);
trace(home.CumulativePoints.level1);
var totalItems = 0;
var userItems = home.CumulativePoints.collected;
var h = 1;
while (h <= home.totalLevels) {
var i = 0;
while (i < home["Level" + h].myPickups.length) {
var k = 0;
while (k < home["Level" + h].myPickups[i].length) {
totalItems++;
k++;
}
i++;
}
h++;
}
totalPoints = home.hud_BKG.points;
pu = (userItems + " / ") + totalItems;
trace("totalItems = " + totalItems);
stop();
Symbol 792 MovieClip [endScreen] Frame 3
trace("+++++");
trace(home.CumulativePoints);
trace(home.CumulativePoints.puLevel1);
trace(home.CumulativePoints.level1);
var totalItems = 0;
var userItems = home.CumulativePoints.collected;
var h = 1;
while (h <= home.totalLevels) {
var i = 0;
while (i < home["Level" + h].myPickups.length) {
var k = 0;
while (k < home["Level" + h].myPickups[i].length) {
totalItems++;
k++;
}
i++;
}
h++;
}
totalPoints = home.hud_BKG.points;
pu = (userItems + " / ") + totalItems;
trace("totalItems = " + totalItems);
stop();
Symbol 792 MovieClip [endScreen] Frame 4
function checkParamsLoaded() {
if (home.highscores.done == 0) {
inty = inty + 0.2;
if (inty > 10) {
clearInterval(param_interval);
total_1 = "Timed Out";
}
trace("not yet scores1. " + inty);
} else {
total_1 = (home.highscores.hs_1_score + " pts - ") + home.highscores.hs_1_username;
total_2 = (home.highscores.hs_2_score + " pts - ") + home.highscores.hs_2_username;
total_3 = (home.highscores.hs_3_score + " pts - ") + home.highscores.hs_3_username;
total_4 = (home.highscores.hs_4_score + " pts - ") + home.highscores.hs_4_username;
total_5 = (home.highscores.hs_5_score + " pts - ") + home.highscores.hs_5_username;
total_6 = (home.highscores.hs_6_score + " pts - ") + home.highscores.hs_6_username;
total_7 = (home.highscores.hs_7_score + " pts - ") + home.highscores.hs_7_username;
total_8 = (home.highscores.hs_8_score + " pts - ") + home.highscores.hs_8_username;
total_9 = (home.highscores.hs_9_score + " pts - ") + home.highscores.hs_9_username;
total_10 = (home.highscores.hs_10_score + " pts - ") + home.highscores.hs_10_username;
}
updateAfterEvent();
}
var param_interval = setInterval(checkParamsLoaded, 200);
stop();
Symbol 798 Button
on (press) {
home.muteAll();
gotoAndStop (2);
}
Symbol 802 Button
on (press) {
home.muteAll();
gotoAndStop (1);
}
Symbol 804 MovieClip Frame 1
stop();
Symbol 827 MovieClip Frame 1
stop();
Symbol 828 MovieClip Frame 1
stop();
Symbol 850 MovieClip [Alrts] Frame 1
stop();
Instance of Symbol 834 MovieClip "alrt_mc" in Symbol 850 MovieClip [Alrts] Frame 1
onClipEvent (load) {
this._yscale = (this._xscale = 0);
}
Instance of Symbol 837 MovieClip "alrt_mc" in Symbol 850 MovieClip [Alrts] Frame 5
onClipEvent (load) {
this._yscale = (this._xscale = 0);
}
Instance of Symbol 840 MovieClip "alrt_mc" in Symbol 850 MovieClip [Alrts] Frame 10
onClipEvent (load) {
this._yscale = (this._xscale = 0);
}
Instance of Symbol 843 MovieClip "alrt_mc" in Symbol 850 MovieClip [Alrts] Frame 15
onClipEvent (load) {
this._yscale = (this._xscale = 0);
}
Instance of Symbol 846 MovieClip "alrt_mc" in Symbol 850 MovieClip [Alrts] Frame 20
onClipEvent (load) {
this._yscale = (this._xscale = 0);
}
Instance of Symbol 849 MovieClip "alrt_mc" in Symbol 850 MovieClip [Alrts] Frame 25
onClipEvent (load) {
this._yscale = (this._xscale = 0);
}
Symbol 872 Button
on (release) {
home.preloader.removeMovieClip();
home.mainMenu();
}
Symbol 873 MovieClip [preloader] Frame 1
stop();
Instance of Symbol 853 MovieClip "bar" in Symbol 873 MovieClip [preloader] Frame 1
onClipEvent (load) {
totalFileSize = _root.getBytesTotal();
this._xscale = 0;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
_root.loadingMessage = percentLoaded + "%";
if (amountLoaded >= 1) {
_root.gotoAndStop("complete");
}
}
Symbol 879 Button
on (release) {
gotoAndStop (2);
}