Frame 1
function __com_mochibot__(swfid, mc, lv, trk) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
var pv;
mb = "__mochibot__";
mbc = "mochibot.com";
g = (_global ? (_global) : (_level0._root));
if (g[mb + swfid]) {
return(g[mb + swfid]);
}
s = System.security;
x = mc._root.getSWFVersion;
fv = (x ? (mc.getSWFVersion()) : ((_global ? 6 : 5)));
if (!s) {
s = {};
}
sb = s.sandboxType;
if (sb == "localWithFile") {
return(null);
}
x = s.allowDomain;
if (x) {
s.allowDomain(mbc);
}
x = s.allowInsecureDomain;
if (x) {
s.allowInsecureDomain(mbc);
}
pv = ((fv == 5) ? (getVersion()) : (System.capabilities.version));
u = (((((((((((("http://" + mbc) + "/my/core.swf?mv=8&fv=") + fv) + "&v=") + escape(pv)) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "")) + (trk ? "&t=1" : "");
lv = ((fv > 6) ? (mc.getNextHighestDepth()) : ((g[mb + "level"] ? (g[mb + "level"] + 1) : (lv))));
g[mb + "level"] = lv;
if (fv == 5) {
res = "_level" + lv;
if (!eval (res)) {
loadMovieNum (u, lv);
}
} else {
res = mc.createEmptyMovieClip(mb + swfid, lv);
res.loadMovie(u);
}
return(res);
}
__com_mochibot__("5a7c6c9c", this, 10301, true);
function checkState() {
onMouseDown = function () {
};
if (Key.isDown(32)) {
}
sound.setPan(Math.round((player._x - 250) * 0.4) / 4);
if (State == "falling") {
if (ground.hitTest(player._x, (player._y + 4) + 2, true)) {
fixPosition();
State = "standing";
player._y = player._y + 1;
djump = "fresh";
downfall = "fresh";
yforce = 0;
} else if (((ground.hitTest((player._x - 4) - 1, player._y, true) && (Left)) && (!ground.hitTest(player._x, (player._y + 4) + 3, true))) && (player._y > 0)) {
State = "hanging";
djump = "fresh";
} else if (((ground.hitTest((player._x + 4) + 1, player._y, true) && (Right)) && (!ground.hitTest(player._x, (player._y + 4) + 3, true))) && (player._y > 0)) {
State = "hanging";
djump = "fresh";
} else if ((Down && (downfall == "fresh")) && (!ground.hitTest(player._x, player._y + 10, true))) {
yforce = 7;
downfall = "used";
} else if ((player._y < 0) && (ground.hitTest(player._x - 8, player._y, true))) {
player._x = player._x + 5;
player._y = player._y + 5;
} else if ((player._y < 0) && (ground.hitTest(player._x + 8, player._y, true))) {
player._x = player._x - 5;
player._y = player._y + 5;
} else {
fall();
applySpeed();
fallHit();
}
} else if (State == "hanging") {
fixPosition();
getKeys();
if ((ground.hitTest((player._x + 4) + 4, player._y, true) && (!Right)) && (!Up)) {
State = "falling";
player._x--;
yforce = 0;
} else if ((ground.hitTest((player._x - 4) - 4, player._y, true) && (!Left)) && (!Up)) {
State = "falling";
player._x++;
yforce = 0;
} else if (ground.hitTest((player._x + 4) + 4, player._y, true) && ((Right && (Up)) || ((!Right) && (Up)))) {
fixPosition();
State = "jumping";
player._x = player._x - 3;
yforce = -7;
xforce = -5;
} else if (ground.hitTest((player._x - 4) - 4, player._y, true) && ((Left && (Up)) || ((!Left) && (Up)))) {
fixPosition();
State = "jumping";
player._x = player._x + 3;
yforce = -7;
xforce = 5;
} else if (((!Left) && (!Right)) && (!Up)) {
State = "falling";
} else {
hangHit();
hang();
checkSide();
}
} else if (State == "jumping") {
if (yforce >= 0) {
State = "falling";
} else if (((ground.hitTest((player._x - 4) - 1, player._y, true) && (Left)) && (!ground.hitTest(player._x, (player._y + 4) + 3, true))) && (player._y > 0)) {
if (!Up) {
State = "hanging";
} else {
yforce = 0;
}
} else if (((ground.hitTest((player._x + 4) + 1, player._y, true) && (Right)) && (!ground.hitTest(player._x, (player._y + 4) + 3, true))) && (player._y > 0)) {
if (!Up) {
State = "hanging";
} else {
yforce = 0;
}
} else if (Down && (downfall == "fresh")) {
yforce = 7;
downfall = "used";
} else {
jump();
applySpeed();
jumpHit();
}
} else if (State == "standing") {
fixPosition();
if (!ground.hitTest(player._x, (player._y + 4) + 1, true)) {
State = "falling";
} else if (Up) {
State = "jumping";
player._y = player._y - 1;
yforce = -7;
} else {
stand();
applySpeed();
standHit();
}
}
}
function fall() {
if (yforce < 10) {
yforce = yforce + 0.5;
}
run(0.5);
if (Up && (djump == "fresh")) {
yforce = -5;
djump = "used";
}
}
function hang() {
yforce = 0;
if (Down) {
player._y = player._y + 2;
} else {
player._y = player._y + 0.5;
}
if ((!ground.hitTest(player._x - 9, player._y + 2, true)) && (hangside == "left")) {
state = "falling";
} else if ((!ground.hitTest(player._x + 9, player._y + 2, true)) && (hangside == "right")) {
state = "falling";
}
if (ground.hitTest(player._x, player._y + 7, true) && (hangside == "left")) {
player._x = player._x + 4;
state = "standing";
} else if (ground.hitTest(player._x, player._y + 7, true) && (hangside == "right")) {
player._x = player._x - 4;
state = "standing";
}
}
function jump() {
yforce = yforce + 0.5;
run(0.5);
}
function stand() {
run(1);
player._y++;
}
function applySpeed() {
player._x = player._x + xforce;
player._y = player._y + yforce;
}
function fallHit() {
while ((ground.hitTest(player._x - 4, player._y + 4, true) && (!ground.hitTest(player._x + 4, player._y, true))) && (!ground.hitTest(player._x, player._y + 4, true))) {
player._x = player._x + 1;
}
while ((ground.hitTest(player._x + 4, player._y, true) && (!ground.hitTest(player._x - 4, player._y, true))) && (!ground.hitTest(player._x, player._y + 4, true))) {
player._x = player._x - 1;
}
while (ground.hitTest(player._x, player._y - 4, true) && (!ground.hitTest(player._x, player._y + 4, true))) {
player._y = player._y + 0.1;
}
while ((ground.hitTest(player._x, player._y + 4, true) && (!ground.hitTest(player._x + 8, player._y - 7, true))) && (!ground.hitTest(player._x + 8, player._y - 7, true))) {
fixPosition();
player._y = player._y - 0.1;
}
}
function hangHit() {
while ((!ground.hitTest((player._x - 4) - 1, player._y, true)) && (ground.hitTest((player._x - 4) - 4, player._y, true))) {
player._x = player._x - 0.001;
}
if ((hangside == "right") && (!ground.hitTest((player._x + 4) + 4, player._y, true))) {
State = "falling";
djump = "used";
player._x = player._x + 2;
} else if ((hangside == "left") && (!ground.hitTest((player._x - 4) - 4, player._y, true))) {
State = "falling";
djump = "used";
player._x = player._x - 2;
}
}
function jumpHit() {
while (ground.hitTest((player._x - 4) + 1, player._y, true) && (!ground.hitTest((player._x + 4) - 1, player._y, true))) {
xforce = 0;
applySpeed();
player._x = player._x + 1;
}
while (ground.hitTest((player._x + 4) - 1, player._y, true) && (!ground.hitTest((player._x - 4) + 1, player._y, true))) {
xforce = 0;
applySpeed();
player._x = player._x - 1;
}
while (ground.hitTest(player._x, (player._y - 4) - 1, true)) {
player._y = player._y + 0.1;
yforce = 0;
player._y = player._y + yforce;
djump = "used";
}
while (ground.hitTest(player._x, player._y + 4, true)) {
player._y = player._y - 0.1;
yforce = 0;
djump = "used";
}
}
function standHit() {
while (ground.hitTest(player._x - 4, player._y, true) && (!ground.hitTest(player._x + 4, player._y, true))) {
player._x = player._x + 0.1;
xforce = Math.abs(xforce);
applySpeed();
}
while (ground.hitTest(player._x + 4, player._y, true) && (!ground.hitTest(player._x - 4, player._y, true))) {
player._x = player._x - 0.01;
xforce = -Math.abs(xforce);
applySpeed();
}
while (ground.hitTest(player._x, player._y + 4, true)) {
player._y = player._y - 0.001;
if (ground.hitTest(player._x + 5, player._y, true) && (!ground.hitTest(player._x - 5, player._y, true))) {
player._x = player._x - 0.1;
} else if (ground.hitTest(player._x - 5, player._y, true) && (!ground.hitTest(player._x + 5, player._y, true))) {
player._x = player._x + 0.1;
}
}
while (ground.hitTest(player._x, player._y + 3, true)) {
player._y = player._y - 1;
}
}
function getKeys() {
Up = Key.isDown(38);
Down = Key.isDown(40);
Left = Key.isDown(37);
Right = Key.isDown(39);
if (Left) {
if (((ltap < 5) && (ltap > 0)) && (!Up)) {
tele("left");
}
ltap = 5;
} else {
ltap = ltap - int(ltap > 0);
}
if (Right) {
if (((rtap < 5) && (rtap > 0)) && (!Up)) {
tele("right");
}
rtap = 5;
} else {
rtap = rtap - int(rtap > 0);
}
}
function run(amt) {
if ((Right || (Left)) && (Math.abs(xforce) < maxspeed)) {
xforce = xforce - (amt * Left);
xforce = xforce + (amt * Right);
} else {
xforce = xforce * 0.995;
xforce = xforce * (0.6 * friction);
}
}
function seed(caller) {
if (!ground.hitTest(caller._x, caller._x + 5)) {
caller._xscale = (caller._yscale = caller._yscale + 3);
}
}
function checkSide() {
if (ground.hitTest((player._x + 4) + 4, player._y, true)) {
hangside = "right";
} else if (ground.hitTest((player._x - 4) - 4, player._y, true)) {
hangside = "left";
}
}
function animState() {
if (State == "falling") {
player.gotoAndStop(3);
if (!ground.hitTest(player._x, (player._y + 4) + 5, true)) {
if (Math.abs(yforce) > 5) {
player._xscale = 80 - yforce;
} else {
player._xscale = 100 - yforce;
}
if (Math.abs(yforce) < 10) {
player._rotation = (-xforce) * 5;
}
}
player.gotoAndStop(1);
} else if (State == "standing") {
fixPosition();
player.gotoAndStop(2);
framenum = framenum + (xforce / 2);
if (Math.abs(Math.round(framenum)) >= 1) {
if (player.stand._currentframe < 20) {
player.stand.nextFrame();
} else {
player.stand.gotoAndStop(1);
}
framenum = 0;
}
if (xforce > 0) {
player.stand._xscale = 12.97;
} else if (xforce <= 0) {
player.stand._xscale = -12.97;
}
} else if (State == "jumping") {
player.gotoAndStop(3);
if (!ground.hitTest(player._x, (player._y + 4) + 5, true)) {
if (Math.abs(yforce) > 5) {
player._xscale = 80 + yforce;
} else {
player._xscale = 100 - yforce;
}
if (Math.abs(yforce) < 10) {
player._rotation = xforce * 5;
}
}
} else if (State == "hanging") {
fixPosition();
checkSide();
if (hangside == "left") {
player.gotoAndStop(4);
} else if (hangside == "right") {
player.gotoAndStop(5);
}
}
if (((State == "falling") || (State == "jumping")) || (State == "hanging")) {
if (State == "hanging") {
if (hands._y >= (player._y - 3)) {
hands._y = hands._y - ((player._y - hands._y) / 8);
} else if (hands._y <= (player._y - 3)) {
hands._y = hands._y + ((player._y - hands._y) / 8);
}
} else {
hands._visible = true;
if (xforce > 0) {
hands._x = player._x + 2;
} else {
hands._x = player._x;
}
hands._y = player._y;
}
} else {
hands._visible = false;
}
}
function fixPosition() {
player._rotation = 0;
player._xscale = 100;
}
function playerReset() {
if (player._y > stagey) {
player._y = initialY;
if (initialX > (stagex - 10)) {
player._x = initialX - 5;
} else if (initialX < (stagex - 10)) {
player._x = initialX + 5;
}
yforce = 0;
xforce = 0;
}
}
function playerMenu() {
if (player._y > 480) {
playerscore = 0;
var _local1 = 0;
while (_local1 < 22) {
stagevisited[_local1] = 0;
_local1++;
}
nextFrame();
}
}
function jumpPad(caller, amount, forced) {
if (caller.hitTest(player._x, (player._y + 4) + 2, true) || (forced == true)) {
State = "jumping";
yforce = -amount;
applySpeed();
caller.play();
}
}
function watchState() {
if (watchStatee.length == 3) {
watchStatee.pop(0);
}
watchStatee.unshift(State);
if (((watchStatee[0] == "standing") && (watchStatee[1] == "falling")) && (watchStatee[2] == "standing")) {
sfError++;
}
if ((((watchStatee[0] == "standing") && (watchStatee[1] == "falling")) && (watchStatee[2] == "standing")) && (sfError >= 3)) {
State = "falling";
player._y = player._y - 5;
sfError = 0;
}
}
function fan(caller) {
if (caller.hitTest(player)) {
xforce = xforce - 3;
yforce = yforce * 0.3;
applySpeed();
}
}
function swapFrames(up, down, left, right, menu) {
if (menu) {
if (player._y > stagey) {
nextFrame();
}
} else if ((((!up) && (!down)) && (left)) && (right)) {
if (player._x > stagex) {
nextFrame();
} else if (player._x < 0) {
prevFrame();
}
} else if ((((!up) && (down)) && (left)) && (!right)) {
if (player._x < 0) {
prevFrame();
}
if (player._y > stagey) {
nextFrame();
}
} else if (((up && (!down)) && (!left)) && (right)) {
if (player._x > stagex) {
nextFrame();
}
if (player._y < 0) {
prevFrame();
}
} else if (((up && (!down)) && (left)) && (!right)) {
if (player._x < 0) {
prevFrame();
}
if (player._y < 0) {
nextFrame();
}
} else if ((((!up) && (down)) && (!left)) && (right)) {
if (player._x > stagex) {
nextFrame();
}
if (player._y > stagey) {
prevFrame();
}
}
}
function playerInit() {
initialY = player._y;
initialX = player._x;
}
function fixLevel(vert, hori, lvl) {
stagevisited[level] = 1;
level = lvl;
if (hori) {
initialY = player._y;
if (player._x > (stagex - 10)) {
initialX = 0;
player._x = 0;
} else if (player._x < 10) {
initialX = stagex - 2;
player._x = stagex - 2;
} else {
initialX = player._x;
initialY = 478;
player._y = 478;
}
} else if (vert) {
if (player._x < 5) {
initialX = 598;
player._x = 598;
initialY = player._y;
} else if (player._x > 595) {
initialX = 2;
player._x = 2;
initialY = player._y;
} else {
initialX = player._x;
if (player._y > (stagey - 10)) {
initialY = 0;
player._y = 0;
} else {
initialY = stagey - 2;
player._y = stagey - 2;
}
}
}
}
function fixLevelFirst() {
initialY = 0;
if (player._x > 600) {
initialX = player._x + 2;
} else {
initialX = player._x - 2;
}
if (player._x < 15) {
player._x = 600;
}
}
function time() {
playerscore = playerscore + 28.5714285714286;
timer = Math.round(playerscore / 10).toString();
if (timer.length == 2) {
timer = "time = 0." + timer.charAt(0);
} else if (timer.length == 3) {
timer = ((("time = " + timer.charAt(0)) + ".") + timer.charAt(1)) + timer.charAt(2);
} else if (timer.length == 4) {
timer = (((("time = " + timer.charAt(0)) + timer.charAt(1)) + ".") + timer.charAt(2)) + timer.charAt(3);
} else if (timer.length == 5) {
timer = (((("time = " + timer.charAt(0)) + timer.charAt(1)) + timer.charAt(2)) + ".") + timer.charAt(3);
}
}
function ballPhysics(caller) {
if ((Math.abs(caller.byforce) < 2) && (ground.hitTest(caller._x, caller._y + 13, true))) {
caller.byforce = 0;
}
ballReset(caller);
caller.bdist = Math.sqrt(Math.pow(player._x - caller._x, 2) + Math.pow(player._y - caller._y, 2));
ballHit(caller);
caller._y = caller._y + caller.byforce;
caller._x = caller._x + caller.bxforce;
caller.bxforce = caller.bxforce * 0.9;
caller._rotation = caller._rotation + (7.5398223686155 * caller.bxforce);
while (ground.hitTest(caller._x - 12.5, caller._y, true)) {
caller._x++;
caller.bxforce = 0;
}
while (ground.hitTest(caller._x + 12.5, caller._y, true)) {
caller._x--;
caller.bxforce = 0;
if (caller._y > player._y) {
} else {
caller.byforce = -5;
}
}
if (ground.hitTest(caller._x + 13, caller._y, true) || (ground.hitTest(caller._x - 13, caller._y, true))) {
caller.bdist = Math.sqrt(Math.pow(player._x - caller._x, 2) + Math.pow(player._y - caller._y, 2));
if (caller.bdist < 17.5) {
if (caller._y > player._y) {
} else {
caller._y--;
caller.byforce = -5;
}
}
}
if (ground.hitTest(caller._x + 12.6, caller._y, true)) {
caller._x = caller._x - 0.02;
} else if (ground.hitTest(caller._x - 12.6, caller._y, true)) {
caller._x = caller._x + 0.02;
}
if (ground.hitTest(caller._x, caller._y + 12.5, true)) {
while (ground.hitTest(caller._x, caller._y + 12, true)) {
caller._y--;
}
caller.byforce = (-caller.byforce) / 2;
if (Math.abs(caller.byforce) < 2) {
if ((!ground.hitTest(caller._x + 15, caller._y, true)) && (!ground.hitTest(caller._x - 15, caller._y, true))) {
caller.byforce = 0;
}
}
} else {
caller.byforce++;
}
}
function ballHit(caller) {
if (caller.bdist < 17.5) {
if (player._x < caller._x) {
caller.bxforce = caller.bxforce + 2;
} else {
caller.bxforce = caller.bxforce - 2;
}
if (caller._y > player._y) {
yforce = yforce - 3;
}
}
if (caller.bdist < 17.5) {
caller.bdist = Math.sqrt(Math.pow(player._x - caller._x, 2) + Math.pow(player._y - caller._y, 2));
if (player._x < caller._x) {
caller._x = caller._x + 0.05;
} else {
caller._x = caller._x - 0.05;
}
}
}
function ballReset(caller) {
if ((caller._y + 10) > 495) {
caller._x = caller.initialX;
caller._y = caller.initialY;
caller.bxforce = 0;
caller.byforce = 0;
caller._rotation = Math.round(Math.random() * 360);
}
}
function fixBall(bx, by, caller) {
caller._x = bx;
caller._y = by;
caller.initialX = caller._x;
caller.initialY = caller._y;
}
function buttonPress(caller, victim) {
if (caller.hitTest(player) || (caller.hitTest(victim))) {
if (caller.debounce != 10) {
caller.debounce++;
}
} else if (caller.debounce != 0) {
caller.debounce--;
}
if ((caller.debounce >= 5) && (caller.debounce <= 10)) {
caller.nextFrame();
} else {
caller.prevFrame();
}
}
function attachFrames(caller) {
caller.gotoAndStop(ground.button._currentframe);
}
function oilSlick(caller) {
if (caller.hitTest(player._x, player._y + 13, true)) {
friction = 1.66666666666667;
} else {
friction = 1;
}
}
function affectPad(caller, victim) {
if (player.hitTest(caller)) {
victim.nextFrame();
return(true);
}
return(false);
}
function groundFall(caller) {
if (player.hitTest(caller)) {
caller.play();
}
}
function lowGravity() {
if (ground.button._currentframe != 1) {
yforce = yforce / 0.95;
}
}
function controlVolume() {
if (vol == 100) {
vol = 0;
} else {
vol = 100;
}
sound.setVolume(vol);
}
function reset() {
gotoAndStop ("menu");
player._x = 400;
player._y = 167;
sound.start(1);
var _local1 = 0;
while (_local1 < 22) {
stagevisited[_local1] = 0;
_local1++;
}
}
function energy(caller) {
if (caller.hitTest(player)) {
caller.fader = true;
}
if (stagevisited[level] == 1) {
caller.gotoAndStop(15);
caller.fader = true;
}
if (caller.fader) {
caller.nextFrame();
if (caller._currentframe == 2) {
playerscore = playerscore - 500;
slaps++;
shoutpercent = Math.round((slaps / shouts) * 100);
}
}
}
function attachBrightness(caller) {
caller.gotoAndStop(Math.floor(shoutpercent / 10));
}
function rightPush(caller) {
while (caller.hitTest(player)) {
player._x = player._x + 5;
}
}
function leftPush(caller) {
while (caller.hitTest(player._x + 6, player._y, true)) {
player._x--;
}
}
function upPush(caller) {
if (caller.hitTest(player._x, player._y + 4, true)) {
player._y--;
}
}
function playerKill(who) {
if (who.hitTest(player)) {
whiteflash.play();
if (initialX > (stagex - 10)) {
player._x = initialX - 5;
} else if (initialX < (stagex - 10)) {
player._x = initialX + 5;
}
player._y = initialY;
yforce = 0;
xforce = 0;
}
}
function fireBall(caller) {
caller.shootBall = Math.round(Math.random() * 2);
if (caller.shootBall == 1) {
caller.play();
}
}
function slam(caller, nu, ex) {
var _local1 = Math.round((ex / 12) + 50);
if (caller.init == true) {
caller.gotoAndPlay(_local1);
}
}
function finalScore() {
seconds = playerscore / 1000;
minutes = seconds / 60;
seconds = Math.floor((minutes - Math.floor(minutes)) * 60);
minutes = Math.floor(minutes) * 10000;
seconds = Math.floor(seconds) * 100;
ms = Math.floor(Math.random() * 100);
score = (minutes + seconds) + ms;
}
urlStart = _url.indexOf("://") + 3;
urlEnd = _url.indexOf("/", urlStart);
domain = _url.substring(urlStart, urlEnd);
domain = domain.substring(domEnd, domain.length);
if (domain != "www.bubblebox.com") {
}
mochi.as2.MochiServices.connect("5ed625700534d3c8");
Stage.showMenu = false;
var State = "falling";
var xforce = 0;
var yforce = 0;
var maxspeed = 5;
var djump = "fresh";
var downfall = "fresh";
var hangside = "left";
var watchStatee = new Array();
var sfError = 0;
var where = 2;
var playerscore = 0;
var timer;
var friction = 1;
var vol = 100;
var sound = new Sound(song);
var shouts = 0;
var shoutpercent = 0;
var slaps = 0;
var shaker = 11;
var ltap = 0;
var rtap = 0;
var lvlsel = 0;
var stagevisited = new Array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
var level = 0;
var framenum = 0;
var stagex = 640;
var stagey = 480;
var score = 0;
Frame 2
stop();
timer = "";
var lvl = 0;
onEnterFrame = function () {
playerMenu();
getKeys();
animState();
checkState();
watchState();
};
Instance of Symbol 68 MovieClip in Frame 2
on (release) {
getURL ("http://broove.newgrounds.com/", "_blank");
}
Instance of Symbol 70 MovieClip in Frame 2
on (release) {
getURL ("mailto:ianadam.games@gmail.com", "_blank");
}
Instance of Symbol 121 MovieClip in Frame 2
on (release) {
getURL ("http://www.bubblebox.com/highscores/1522.htm", "_blank");
}
Instance of Symbol 128 MovieClip in Frame 2
on (release) {
getURL ("http://www.bubblebox.com/game/skill/1100.htm", "_blank");
}
Frame 3
stop();
fixLevel(true, false, 1);
if (_currentframe != 3) {
}
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 4
stop();
fixLevel(false, true, 2);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 5
stop();
fixLevel(false, true, 3);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 6
stop();
fixLevel(false, true, 4);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 7
stop();
fixLevel(false, true, 5);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 8
stop();
fixLevel(false, true, 6);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 9
stop();
fixLevel(false, true, 7);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 10
stop();
fixLevel(false, true, 8);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 11
stop();
fixLevel(false, true, 9);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 12
stop();
fixLevel(false, true, 10);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 13
stop();
fixLevel(false, true, 11);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 14
stop();
fixLevel(false, true, 12);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 15
stop();
fixLevel(false, true, 13);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 16
stop();
fixLevel(false, true, 14);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 17
stop();
fixLevel(false, true, 15);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 18
stop();
fixLevel(false, true, 16);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 19
stop();
fixLevel(false, true, 17);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 20
stop();
fixLevel(false, true, 18);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 21
stop();
fixLevel(false, true, 19);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 22
stop();
fixLevel(false, true, 20);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 23
stop();
fixLevel(false, true, 21);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 24
stop();
fixLevel(false, true, 22);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 25
stop();
fixLevel(false, true, 23);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 26
stop();
fixLevel(false, true, 24);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 27
stop();
fixLevel(false, true, 25);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Instance of Symbol 260 MovieClip in Frame 27
onClipEvent (enterFrame) {
_root.attachFrames(this);
}
Frame 28
stop();
fixLevel(false, true, 26);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 29
stop();
fixLevel(false, true, 27);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 30
stop();
fixLevel(false, true, 28);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 31
stop();
fixLevel(false, true, 29);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 32
stop();
fixLevel(false, true, 30);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 33
stop();
fixLevel(false, true, 31);
onEnterFrame = function () {
time();
playerReset();
getKeys();
animState();
checkState();
watchState();
swapFrames(false, false, true, true, false);
};
Frame 34
stop();
finalScore();
Instance of Symbol 316 MovieClip in Frame 34
on (release) {
_root.nextFrame();
}
Frame 35
gotoAndStop ("menu");
Frame 36
var o = {n:[15, 4, 1, 10, 9, 13, 5, 14, 5, 14, 8, 4, 7, 8, 2, 10], f:function (i, s) {
if (s.length == 16) {
return(s);
}
return(this.f(i + 1, s + this.n[i].toString(16)));
}};
var boardID = o.f(0, "");
mochi.as2.MochiScores.showLeaderboard({boardID:boardID, res:"640x480"});
Frame 37
gotoAndStop ("menu");
Symbol 9 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1522&subid=preloader", "_blank");
};
Symbol 14 MovieClip Frame 1
function timerHandler() {
if (!loadingComplete) {
var _local4 = _root.getBytesLoaded() / _root.getBytesTotal();
bar._xscale = 100 * _local4;
if (_local4 == 1) {
loadingComplete = true;
if (AUTO_PLAY) {
startMovie();
} else {
gotoAndStop ("loaded");
}
return(undefined);
}
}
dt = getTimer() - time;
time = time + dt;
frameAccum = frameAccum + dt;
var _local3 = 0;
while ((frameAccum >= FRAME_TIME) && (_local3 < MAX_FRAME_SKIP)) {
advanceFrame(tankLogo, true, true);
advanceFrame(loadingText, false, true);
advanceFrame(barGfx, false, true);
if (loadingComplete) {
advanceFrame(this, false, false);
}
(frameAccum = frameAccum - FRAME_TIME);
_local3++;
}
updateAfterEvent();
}
function advanceFrame(clip, recurse, loop) {
if (!clip) {
return(undefined);
}
clip.stop();
if (clip._currentframe == clip._totalframes) {
if (loop) {
clip.gotoAndStop(1);
}
} else {
clip.nextFrame();
}
if (recurse) {
for (childName in clip) {
if (typeof(clip[childName]) == "movieclip") {
advanceFrame(clip[childName], recurse, loop);
}
}
}
}
function startMovie() {
clearInterval(intervalId);
_root.play();
}
_root.stop();
stop();
var FRAME_TIME = 33.3333333333333;
var AUTO_PLAY = false;
var MAX_FRAME_SKIP = 5;
var loadingComplete;
var intervalId;
var time;
var frameAccum;
loadingComplete = false;
intervalId = setInterval(this, "timerHandler", FRAME_TIME / 2);
frameAccum = 0;
time = getTimer();
timerHandler();
Symbol 14 MovieClip Frame 24
_root.menububble.play();
Symbol 47 MovieClip Frame 1
stop();
Symbol 47 MovieClip Frame 10
stop();
Symbol 49 MovieClip Frame 1
stop();
Symbol 49 MovieClip Frame 2
this._parent.stop();
this.link.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1522&subid=splash", "_blank");
};
Symbol 49 MovieClip Frame 152
this._parent.stop();
this.link.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=XXXX&subid=splash", "_blank");
};
Symbol 49 MovieClip Frame 162
stop();
this._parent.play();
Symbol 317 MovieClip [__Packages.mochi.as2.MochiServices] Frame 0
class mochi.as2.MochiServices
{
static var _id, _container, _clip, _sendChannelName, __get__comChannelName, onError, _listenChannel, _loader, _loaderListener, _sendChannel;
function MochiServices () {
}
static function get id() {
return(_id);
}
static function get clip() {
return(_container);
}
static function get childClip() {
return(_clip);
}
static function getVersion() {
return("3.02 as2");
}
static function allowDomains(server) {
var _local1 = server.split("/")[2].split(":")[0];
if (System.security) {
if (System.security.allowDomain) {
System.security.allowDomain("*");
System.security.allowDomain(_local1);
}
if (System.security.allowInsecureDomain) {
System.security.allowInsecureDomain("*");
System.security.allowInsecureDomain(_local1);
}
}
return(_local1);
}
static function get isNetworkAvailable() {
if (System.security) {
var _local1 = System.security;
if (_local1.sandboxType == "localWithFile") {
return(false);
}
}
return(true);
}
static function set comChannelName(val) {
if (val != undefined) {
if (val.length > 3) {
_sendChannelName = val + "_fromgame";
initComChannels();
}
}
//return(__get__comChannelName());
}
static function get connected() {
return(_connected);
}
static function connect(id, clip, onError) {
warnID(id, false);
if ((!_connected) && (_clip == undefined)) {
_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) {
};
}
}
static function disconnect() {
if (_connected || (_connecting)) {
_connecting = (_connected = false);
flush(true);
if (_clip != undefined) {
_clip.removeMovieClip();
delete _clip;
}
_listenChannel.close();
}
}
static function init(id, clip) {
_id = id;
if (clip != undefined) {
_container = clip;
} else {
_container = _root;
}
loadCommunicator(id, _container);
}
static function loadCommunicator(id, clip) {
var _local3 = "_mochiservices_com_" + id;
if (_clip != null) {
return(_clip);
}
if (!isNetworkAvailable) {
return(null);
}
if (urlOptions().servicesURL != undefined) {
_servicesURL = urlOptions().servicesURL;
}
allowDomains(_servicesURL);
_clip = clip.createEmptyMovieClip(_local3, 10336, false);
_listenChannelName = _listenChannelName + ((Math.floor(new Date().getTime()) + "_") + Math.floor(Math.random() * 99999));
listen();
_loader = new MovieClipLoader();
if (_loaderListener.waitInterval != null) {
clearInterval(_loaderListener.waitInterval);
}
_loaderListener = {};
_loaderListener.onLoadError = function (target_mc, errorCode, httpStatus) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, [errorCode]);
};
_loaderListener.onLoadStart = function (target_mc) {
this.isLoading = true;
};
_loaderListener.startTime = getTimer();
_loaderListener.wait = function () {
if ((getTimer() - this.startTime) > 10000) {
if (!this.isLoading) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
}
clearInterval(this.waitInterval);
}
};
_loaderListener.waitInterval = setInterval(_loaderListener, "wait", 1000);
_loader.addListener(_loaderListener);
_loader.loadClip((((_servicesURL + "?listenLC=") + _listenChannelName) + "&mochiad_options=") + escape(_root.mochiad_options), _clip);
_sendChannel = new LocalConnection();
_sendChannel._queue = [];
return(_clip);
}
static function onStatus(infoObject) {
if (!(infoObject.level === "error")) {
} else {
_connected = false;
_listenChannel.connect(_listenChannelName);
}
}
static function listen() {
_listenChannel = new LocalConnection();
_listenChannel.handshake = function (args) {
mochi.as2.MochiServices.__set__comChannelName(args.newChannel);
};
_listenChannel.allowDomain = function (d) {
return(true);
};
_listenChannel.allowInsecureDomain = _listenChannel.allowDomain;
_listenChannel._nextcallbackID = 0;
_listenChannel._callbacks = {};
_listenChannel.connect(_listenChannelName);
}
static function initComChannels() {
if (!_connected) {
_sendChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"handshakeDone"});
_sendChannel.send(_sendChannelName, "onReceive", {methodName:"registerGame", id:_id, clip:_clip, version:getVersion()});
_listenChannel.onStatus = function (infoObject) {
mochi.as2.MochiServices.onStatus(infoObject);
};
_listenChannel.onReceive = function (pkg) {
var _local5 = pkg.callbackID;
var _local4 = this._callbacks[_local5];
if (!_local4) {
return(undefined);
}
var _local2 = _local4.callbackMethod;
var _local3 = _local4.callbackObject;
if (_local3 && (typeof(_local2) == "string")) {
_local2 = _local3[_local2];
}
if (_local2 != undefined) {
_local2.apply(_local3, pkg.args);
}
delete this._callbacks[_local5];
};
_listenChannel.onError = function () {
mochi.as2.MochiServices.onError.apply(null, ["IOError"]);
};
_connecting = false;
_connected = true;
while (_sendChannel._queue.length > 0) {
_sendChannel.send(_sendChannelName, "onReceive", _sendChannel._queue.shift());
}
}
}
static function flush(error) {
var _local1;
var _local2;
while (_sendChannel._queue.length > 0) {
_local1 = _sendChannel._queue.shift();
if (_local1.callbackID != null) {
_local2 = _listenChannel._callbacks[_local1.callbackID];
}
delete _listenChannel._callbacks[_local1.callbackID];
if (error) {
handleError(_local1.args, _local2.callbackObject, _local2.callbackMethod);
}
}
}
static function handleError(args, callbackObject, callbackMethod) {
if (args != null) {
if (args.onError != null) {
args.onError.apply(null, ["NotConnected"]);
}
if ((args.options != null) && (args.options.onError != null)) {
args.options.onError.apply(null, ["NotConnected"]);
}
}
if (callbackMethod != null) {
args = {};
args.error = true;
args.errorCode = "NotConnected";
if ((callbackObject != null) && (typeof(callbackMethod) == "string")) {
callbackObject[callbackMethod](args);
} else if (callbackMethod != null) {
callbackMethod.apply(args);
}
}
}
static function send(methodName, args, callbackObject, callbackMethod) {
if (_connected) {
_sendChannel.send(_sendChannelName, "onReceive", {methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
} else {
if ((_clip == undefined) || (!_connecting)) {
onError.apply(null, ["NotConnected"]);
handleError(args, callbackObject, callbackMethod);
flush(true);
return(undefined);
}
_sendChannel._queue.push({methodName:methodName, args:args, callbackID:_listenChannel._nextcallbackID});
}
_listenChannel._callbacks[_listenChannel._nextcallbackID] = {callbackObject:callbackObject, callbackMethod:callbackMethod};
_listenChannel._nextcallbackID++;
}
static function urlOptions() {
var _local5 = {};
if (_root.mochiad_options) {
var _local4 = _root.mochiad_options.split("&");
var _local2 = 0;
while (_local2 < _local4.length) {
var _local3 = _local4[_local2].split("=");
_local5[unescape(_local3[0])] = unescape(_local3[1]);
_local2++;
}
}
return(_local5);
}
static function warnID(bid, leaderboard) {
bid = bid.toLowerCase();
if (bid.length != 16) {
return(undefined);
}
if (bid == "1e113c7239048b3f") {
if (leaderboard) {
}
return(undefined);
}
if (bid == "84993a1de4031cd8") {
if (leaderboard) {
}
return(undefined);
}
var _local1 = 0;
while (_local1 < bid.length) {
switch (bid.charAt(_local1)) {
case "0" :
case "1" :
case "2" :
case "3" :
case "4" :
case "5" :
case "6" :
case "7" :
case "8" :
case "9" :
case "a" :
case "b" :
case "c" :
case "d" :
case "e" :
case "f" :
break;
default :
return(undefined);
}
_local1++;
}
}
static function addLinkEvent(url, burl, btn, onClick) {
var timeout = 1500;
var t0 = getTimer();
var _local2 = new Object();
_local2.mav = getVersion();
_local2.swfv = btn.getSWFVersion() || 6;
_local2.swfurl = btn._url;
_local2.fv = System.capabilities.version;
_local2.os = System.capabilities.os;
_local2.lang = System.capabilities.language;
_local2.scres = (System.capabilities.screenResolutionX + "x") + System.capabilities.screenResolutionY;
var s = "?";
var _local3 = 0;
for (var _local6 in _local2) {
if (_local3 != 0) {
s = s + "&";
}
_local3++;
s = ((s + _local6) + "=") + escape(_local2[_local6]);
}
if (!(netupAttempted || (_connected))) {
var ping = btn.createEmptyMovieClip("ping", 777);
var _local7 = btn.createEmptyMovieClip("nettest", 778);
netupAttempted = true;
ping.loadMovie("http://x.mochiads.com/linkping.swf?t=" + getTimer());
_local7.onEnterFrame = function () {
if ((ping._totalframes > 0) && (ping._totalframes == ping._framesloaded)) {
delete this.onEnterFrame;
} else if ((getTimer() - t0) > timeout) {
delete this.onEnterFrame;
mochi.as2.MochiServices.netup = false;
}
};
}
var _local4 = btn.createEmptyMovieClip("clk", 1001);
_local4._alpha = 0;
_local4.beginFill(1044735);
_local4.moveTo(0, 0);
_local4.lineTo(0, btn._height);
_local4.lineTo(btn._width, btn._height);
_local4.lineTo(btn._width, 0);
_local4.lineTo(0, 0);
_local4.endFill();
_local4.onRelease = function () {
if (mochi.as2.MochiServices.netup) {
getURL (url + s, "_blank");
} else {
getURL (burl, "_blank");
}
if (onClick != undefined) {
onClick();
}
};
}
static var _servicesURL = "http://www.mochiads.com/static/lib/services/services.swf";
static var _listenChannelName = "__ms_";
static var _connecting = false;
static var _connected = false;
static var netup = true;
static var netupAttempted = false;
}
Symbol 318 MovieClip [__Packages.mochi.as2.MochiScores] Frame 0
class mochi.as2.MochiScores
{
static var boardID, onClose, onError;
function MochiScores () {
}
static function setBoardID(boardID) {
mochi.as2.MochiServices.warnID(boardID, true);
mochi.as2.MochiScores.boardID = boardID;
mochi.as2.MochiServices.send("scores_setBoardID", {boardID:boardID});
}
static function showLeaderboard(options) {
if ((options.clip == null) || (options.clip == undefined)) {
options.clip = mochi.as2.MochiServices.clip;
}
if ((options.clip != mochi.as2.MochiServices.__get__clip()) || (mochi.as2.MochiServices.__get__childClip()._target == undefined)) {
mochi.as2.MochiServices.disconnect();
mochi.as2.MochiServices.connect(mochi.as2.MochiServices.__get__id(), options.clip);
}
delete options.clip;
if (options.name != null) {
if (typeof(options.name) == "object") {
if (options.name.text != undefined) {
options.name = options.name.text;
}
}
}
if (options.score != null) {
if (options.score instanceof TextField) {
if (options.score.text != undefined) {
options.score = options.score.text;
}
} else if (options.score instanceof mochi.as2.MochiDigits) {
options.score = options.score.value;
}
var _local1 = Number(options.score);
if (isNaN(_local1)) {
} else if ((_local1 == Number.NEGATIVE_INFINITY) || (_local1 == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(_local1) != _local1) {
}
options.score = _local1;
}
}
if (options.onDisplay != null) {
options.onDisplay();
} else {
mochi.as2.MochiServices.__get__clip().stop();
}
if (options.onClose != null) {
onClose = options.onClose;
} else {
onClose = function () {
mochi.as2.MochiServices.__get__clip().play();
};
}
if (options.onError != null) {
onError = options.onError;
} else {
onError = onClose;
}
if (options.boardID == null) {
if (boardID != null) {
options.boardID = boardID;
}
}
mochi.as2.MochiServices.warnID(options.boardID, true);
mochi.as2.MochiServices.send("scores_showLeaderboard", {options:options}, null, doClose);
}
static function closeLeaderboard() {
mochi.as2.MochiServices.send("scores_closeLeaderboard");
}
static function getPlayerInfo(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_getPlayerInfo", null, callbackObj, callbackMethod);
}
static function submit(score, name, callbackObj, callbackMethod) {
score = Number(score);
if (isNaN(score)) {
} else if ((score == Number.NEGATIVE_INFINITY) || (score == Number.POSITIVE_INFINITY)) {
} else {
if (Math.floor(score) != score) {
}
score = Number(score);
}
mochi.as2.MochiServices.send("scores_submit", {score:score, name:name}, callbackObj, callbackMethod);
}
static function requestList(callbackObj, callbackMethod) {
mochi.as2.MochiServices.send("scores_requestList", null, callbackObj, callbackMethod);
}
static function scoresArrayToObjects(scores) {
var _local5 = {};
var _local1;
var _local4;
var _local2;
var _local6;
for (var _local8 in scores) {
if (typeof(scores[_local8]) == "object") {
if ((scores[_local8].cols != null) && (scores[_local8].rows != null)) {
_local5[_local8] = [];
_local2 = scores[_local8];
_local4 = 0;
while (_local4 < _local2.rows.length) {
_local6 = {};
_local1 = 0;
while (_local1 < _local2.cols.length) {
_local6[_local2.cols[_local1]] = _local2.rows[_local4][_local1];
_local1++;
}
_local5[_local8].push(_local6);
_local4++;
}
} else {
_local5[_local8] = {};
for (var _local7 in scores[_local8]) {
_local5[_local8][_local7] = scores[_local8][_local7];
}
}
} else {
_local5[_local8] = scores[_local8];
}
}
return(_local5);
}
static function doClose(args) {
if (args.error == true) {
if (args.errorCode == undefined) {
args.errorCode = "IOError";
}
onError.apply(null, [args.errorCode]);
} else {
onClose.apply();
}
}
}
Symbol 319 MovieClip [__Packages.mochi.as2.MochiDigits] Frame 0
class mochi.as2.MochiDigits
{
var Encoder, Fragment, Sibling;
function MochiDigits (digit, index) {
Encoder = 0;
setValue(digit, index);
}
function get value() {
return(Number(toString()));
}
function set value(v) {
setValue(v);
//return(value);
}
function addValue(v) {
value = value + v;
}
function setValue(digit, index) {
var _local3 = digit.toString();
if ((index == undefined) || (isNaN(index))) {
index = 0;
}
Fragment = _local3.charCodeAt(index++) ^ Encoder;
if (index < _local3.length) {
Sibling = new mochi.as2.MochiDigits(digit, index);
} else {
Sibling = null;
}
reencode();
}
function reencode() {
var _local2 = int(2147483647 * Math.random());
Fragment = Fragment ^ (_local2 ^ Encoder);
Encoder = _local2;
}
function toString() {
var _local2 = String.fromCharCode(Fragment ^ Encoder);
return(((Sibling != null) ? (_local2.concat(Sibling.toString())) : (_local2)));
}
}
Symbol 57 MovieClip Frame 1
stop();
Instance of Symbol 57 MovieClip in Symbol 58 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 15);
}
Symbol 107 MovieClip Frame 1
stop();
Symbol 116 Button
on (release) {
_root.controlVolume();
}
Symbol 117 MovieClip Frame 1
stop();
Symbol 125 MovieClip Frame 1
stop();
Symbol 126 MovieClip Frame 1
this.onRollOver = function () {
this.logo_ro.gotoAndStop(2);
};
this.onRollOut = function () {
this.logo_ro.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.logo_ro.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1522&subid=menu", "_blank");
};
Instance of Symbol 57 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 10);
}
Instance of Symbol 57 MovieClip in Symbol 130 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 10);
}
Symbol 135 Button
on (release) {
_root.reset();
}
Symbol 137 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root._currentframe == 3) {
nextFrame();
}
};
Symbol 141 MovieClip Frame 1
stop();
onEnterFrame = function () {
_root.groundFall(this);
};
Instance of Symbol 57 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 10);
}
Instance of Symbol 57 MovieClip in Symbol 142 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 10);
}
Instance of Symbol 57 MovieClip in Symbol 145 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 13);
}
Symbol 151 MovieClip Frame 1
onEnterFrame = function () {
_root.playerKill(this);
};
Symbol 161 MovieClip Frame 1
if ((init != true) && (init != false)) {
init = true;
}
onEnterFrame = function () {
_root.slam(this, init, _x);
init = false;
};
Instance of Symbol 57 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 163 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 15);
}
Symbol 165 MovieClip Frame 1
onEnterFrame = function () {
_root.playerKill(this);
};
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 20);
}
Instance of Symbol 57 MovieClip in Symbol 171 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 18);
}
Instance of Symbol 57 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 18);
}
Instance of Symbol 57 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 18);
}
Instance of Symbol 57 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 18);
}
Instance of Symbol 57 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 18);
}
Instance of Symbol 57 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 18);
}
Instance of Symbol 57 MovieClip in Symbol 177 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 15);
}
Instance of Symbol 57 MovieClip in Symbol 190 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 12);
}
Symbol 193 MovieClip Frame 1
onEnterFrame = function () {
_root.playerKill(this);
};
Symbol 209 MovieClip Frame 1
stop();
if ((!beenthere) == true) {
gotoAndPlay(int(Math.random() * 20));
}
var shootBall = 0;
onEnterFrame = function () {
_root.fireBall(this);
};
Symbol 209 MovieClip Frame 39
beenthere = true;
Instance of Symbol 209 MovieClip in Symbol 211 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.playerKill(this);
}
Instance of Symbol 57 MovieClip in Symbol 213 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 15);
}
Instance of Symbol 57 MovieClip in Symbol 215 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 12);
}
Instance of Symbol 57 MovieClip in Symbol 217 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 13);
}
Symbol 224 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
this.onRelease = function () {
getURL ("http://www.bubblebox.com/clickreg.php?type=gamestats&id=1522&subid=level", "_blank");
};
Instance of Symbol 57 MovieClip in Symbol 230 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 233 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 15);
}
Symbol 236 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 1
stop();
Symbol 241 MovieClip Frame 2
onEnterFrame = function () {
play();
};
Symbol 241 MovieClip Frame 60
delete onEnterFrame;
stop();
Instance of Symbol 236 MovieClip in Symbol 242 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.affectPad(this, _root.ground.pillar23)) {
nextFrame();
} else if (_currentframe == 15) {
gotoAndStop (1);
} else if (_currentframe > 1) {
nextFrame();
}
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Instance of Symbol 57 MovieClip in Symbol 244 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.jumpPad(this, 17);
}
Symbol 247 MovieClip Frame 1
stop();
Symbol 247 MovieClip Frame 2
onEnterFrame = function () {
play();
};
Symbol 247 MovieClip Frame 15
delete onEnterFrame;
stop();
Symbol 251 MovieClip Frame 1
stop();
var foreward = false;
var debounce = 0;
Symbol 253 MovieClip Frame 1
stop();
onEnterFrame = function () {
_root.attachFrames(this);
};
Instance of Symbol 236 MovieClip in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.affectPad(this, _root.ground.gate1)) {
nextFrame();
} else if (_currentframe == 15) {
gotoAndStop (1);
} else if (_currentframe > 1) {
nextFrame();
}
}
Instance of Symbol 251 MovieClip "button" in Symbol 254 MovieClip Frame 1
onClipEvent (enterFrame) {
_root.buttonPress(this, _root.ball);
}
Symbol 256 MovieClip Frame 1
var bxforce = 0;
var byforce = 3;
var bdist = 0;
var initialX = _x;
var initialY = _y;
onEnterFrame = function () {
_root.ballPhysics(this);
};
Symbol 268 MovieClip Frame 1
stop();
Symbol 268 MovieClip Frame 2
onEnterFrame = function () {
play();
};
Symbol 268 MovieClip Frame 30
delete onEnterFrame;
stop();
Instance of Symbol 236 MovieClip in Symbol 269 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.affectPad(this, _root.ground.gate1)) {
nextFrame();
} else if (_currentframe == 15) {
gotoAndStop (1);
} else if (_currentframe > 1) {
nextFrame();
}
}
Symbol 272 MovieClip Frame 1
stop();
Symbol 272 MovieClip Frame 2
onEnterFrame = function () {
play();
};
Symbol 272 MovieClip Frame 30
delete onEnterFrame;
stop();
Instance of Symbol 272 MovieClip "gate1" in Symbol 273 MovieClip Frame 1
/* no clip actions */
Instance of Symbol 236 MovieClip in Symbol 273 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.affectPad(this, _root.ground.gate1)) {
nextFrame();
} else if (_currentframe == 15) {
gotoAndStop (1);
} else if (_currentframe > 1) {
nextFrame();
}
}
Symbol 279 MovieClip Frame 1
onEnterFrame = function () {
_root.playerKill(this);
};
Symbol 294 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
Symbol 305 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
Symbol 312 MovieClip Frame 1
stop();
this.onRollOver = function () {
this.gotoAndStop(2);
};
this.onRollOut = function () {
this.gotoAndStop(1);
};
this.onReleaseOutside = function () {
this.gotoAndStop(1);
};
Symbol 314 MovieClip Frame 1
function rhex(num) {
str = "";
j = 0;
while (j <= 3) {
str = str + (hex_chr.charAt(MathbitAND(num >> ((j * 8) + 4), 15)) + hex_chr.charAt(MathbitAND(num >> (j * 8), 15)));
j++;
}
return(str);
}
function str2blks_MD5(str) {
nblk = ((str.length + 8) >> 6) + 1;
blks = new Array(nblk * 16);
i = 0;
while (i < (nblk * 16)) {
blks[i] = 0;
i++;
}
i = 0;
while (i < str.length) {
blks[i >> 2] = blks[i >> 2] | (str.charCodeAt(i) << ((i % 4) * 8));
i++;
}
blks[i >> 2] = blks[i >> 2] | (128 << ((i % 4) * 8));
blks[(nblk * 16) - 2] = str.length * 8;
return(blks);
}
function addme(x, y) {
var _local1 = MathbitAND(x, 65535) + MathbitAND(y, 65535);
var _local2 = ((x >> 16) + (y >> 16)) + (_local1 >> 16);
return((_local2 << 16) | MathbitAND(_local1, 65535));
}
function rol(num, cnt) {
return((num << cnt) | (num >>> (32 - cnt)));
}
function cmn(q, a, b, x, s, t) {
return(addme(rol(addme(addme(a, q), addme(x, t)), s), b));
}
function ff(a, b, c, d, x, s, t) {
return(cmn(MathbitAND(b, c) | MathbitAND(~b, d), a, b, x, s, t));
}
function gg(a, b, c, d, x, s, t) {
return(cmn(MathbitAND(b, d) | MathbitAND(c, ~d), a, b, x, s, t));
}
function hh(a, b, c, d, x, s, t) {
return(cmn((b ^ c) ^ d, a, b, x, s, t));
}
function ii(a, b, c, d, x, s, t) {
return(cmn(c ^ (b | (~d)), a, b, x, s, t));
}
MathbitAND = function (a, b) {
if ((a < 0) && (b < 0)) {
var _local3 = (a & 1) & (b & 1);
var _local4 = (a >>> 1) & (b >>> 1);
return((_local4 << 1) | _local3);
}
return(a & b);
};
var hex_chr = "0123456789abcdef";
String.prototype.MD5 = function () {
var _local2 = this;
x = str2blks_MD5(_local2);
a = 1732584193 /* 0x67452301 */;
b = -271733879;
c = -1732584194;
d = 271733878 /* 0x10325476 */;
i = 0;
while (i < x.length) {
olda = a;
oldb = b;
oldc = c;
oldd = d;
a = ff(a, b, c, d, x[i + 0], 7, -680876936);
d = ff(d, a, b, c, x[i + 1], 12, -389564586);
c = ff(c, d, a, b, x[i + 2], 17, 606105819);
b = ff(b, c, d, a, x[i + 3], 22, -1044525330);
a = ff(a, b, c, d, x[i + 4], 7, -176418897);
d = ff(d, a, b, c, x[i + 5], 12, 1200080426);
c = ff(c, d, a, b, x[i + 6], 17, -1473231341);
b = ff(b, c, d, a, x[i + 7], 22, -45705983);
a = ff(a, b, c, d, x[i + 8], 7, 1770035416);
d = ff(d, a, b, c, x[i + 9], 12, -1958414417);
c = ff(c, d, a, b, x[i + 10], 17, -42063);
b = ff(b, c, d, a, x[i + 11], 22, -1990404162);
a = ff(a, b, c, d, x[i + 12], 7, 1804603682);
d = ff(d, a, b, c, x[i + 13], 12, -40341101);
c = ff(c, d, a, b, x[i + 14], 17, -1502002290);
b = ff(b, c, d, a, x[i + 15], 22, 1236535329);
a = gg(a, b, c, d, x[i + 1], 5, -165796510);
d = gg(d, a, b, c, x[i + 6], 9, -1069501632);
c = gg(c, d, a, b, x[i + 11], 14, 643717713);
b = gg(b, c, d, a, x[i + 0], 20, -373897302);
a = gg(a, b, c, d, x[i + 5], 5, -701558691);
d = gg(d, a, b, c, x[i + 10], 9, 38016083);
c = gg(c, d, a, b, x[i + 15], 14, -660478335);
b = gg(b, c, d, a, x[i + 4], 20, -405537848);
a = gg(a, b, c, d, x[i + 9], 5, 568446438);
d = gg(d, a, b, c, x[i + 14], 9, -1019803690);
c = gg(c, d, a, b, x[i + 3], 14, -187363961);
b = gg(b, c, d, a, x[i + 8], 20, 1163531501);
a = gg(a, b, c, d, x[i + 13], 5, -1444681467);
d = gg(d, a, b, c, x[i + 2], 9, -51403784);
c = gg(c, d, a, b, x[i + 7], 14, 1735328473);
b = gg(b, c, d, a, x[i + 12], 20, -1926607734);
a = hh(a, b, c, d, x[i + 5], 4, -378558);
d = hh(d, a, b, c, x[i + 8], 11, -2022574463);
c = hh(c, d, a, b, x[i + 11], 16, 1839030562);
b = hh(b, c, d, a, x[i + 14], 23, -35309556);
a = hh(a, b, c, d, x[i + 1], 4, -1530992060);
d = hh(d, a, b, c, x[i + 4], 11, 1272893353);
c = hh(c, d, a, b, x[i + 7], 16, -155497632);
b = hh(b, c, d, a, x[i + 10], 23, -1094730640);
a = hh(a, b, c, d, x[i + 13], 4, 681279174);
d = hh(d, a, b, c, x[i + 0], 11, -358537222);
c = hh(c, d, a, b, x[i + 3], 16, -722521979);
b = hh(b, c, d, a, x[i + 6], 23, 76029189);
a = hh(a, b, c, d, x[i + 9], 4, -640364487);
d = hh(d, a, b, c, x[i + 12], 11, -421815835);
c = hh(c, d, a, b, x[i + 15], 16, 530742520);
b = hh(b, c, d, a, x[i + 2], 23, -995338651);
a = ii(a, b, c, d, x[i + 0], 6, -198630844);
d = ii(d, a, b, c, x[i + 7], 10, 1126891415);
c = ii(c, d, a, b, x[i + 14], 15, -1416354905);
b = ii(b, c, d, a, x[i + 5], 21, -57434055);
a = ii(a, b, c, d, x[i + 12], 6, 1700485571);
d = ii(d, a, b, c, x[i + 3], 10, -1894986606);
c = ii(c, d, a, b, x[i + 10], 15, -1051523);
b = ii(b, c, d, a, x[i + 1], 21, -2054922799);
a = ii(a, b, c, d, x[i + 8], 6, 1873313359);
d = ii(d, a, b, c, x[i + 15], 10, -30611744);
c = ii(c, d, a, b, x[i + 6], 15, -1560198380);
b = ii(b, c, d, a, x[i + 13], 21, 1309151649);
a = ii(a, b, c, d, x[i + 4], 6, -145523070);
d = ii(d, a, b, c, x[i + 11], 10, -1120210379);
c = ii(c, d, a, b, x[i + 2], 15, 718787259);
b = ii(b, c, d, a, x[i + 9], 21, -343485551);
a = addme(a, olda);
b = addme(b, oldb);
c = addme(c, oldc);
d = addme(d, oldd);
i = i + 16;
}
return(((rhex(a) + rhex(b)) + rhex(c)) + rhex(d));
};
stop();
this.bubbleboxGameID = 1522;
scoreMc = this;
sendBubbleBoxScore = function (gameID) {
userData = new LoadVars();
var _local3 = (((bubbleboxGameID + "_") + _root.score) + "_") + _root.bubblebox_name;
var _local4 = (((((((((bubbleboxGameID + "_") + "4234232143214421") + "_") + _root.score) + "_") + "2537625476251") + "_") + _root.bubblebox_name) + "_") + "desleutelistessa";
var _local2 = _local4.MD5();
userData.datastring = _local3;
userData.hashstring = _local2;
var result_lv = new LoadVars();
result_lv.onLoad = function (success) {
if (success) {
result_scoreID = result_lv.id;
result_weeklyID = result_lv.weekly_id;
result_scorepos = result_lv.scorepos;
result_weeklyScorepos = result_lv.weeklyScorepos;
scoreMc.gotoAndStop("success");
} else {
scoreMc.gotoAndStop("tryagain");
}
};
userData.sendAndLoad("http://www.bubblebox.com/scripts/insertscore2009.php", result_lv, "POST");
};
this.send_btn.onRelease = function () {
if ((_root.bubblebox_name != "YOUR NAME") && (_root.bubblebox_name.length > 0)) {
sendBubbleBoxScore(this._parent.bubbleboxGameID);
this._parent.gotoAndStop("saving");
}
};
Selection.setFocus("instertname");
Symbol 314 MovieClip Frame 2
stop();
Symbol 314 MovieClip Frame 3
this.bubblebox_view_score.onRelease = function () {
getURL (("http://www.bubblebox.com/highscores/" + this._parent.bubbleboxGameID) + ".htm", "_blank");
};
var vartext = "";
var validScore = true;
var validWeeklyScore = true;
if (isNaN(result_scorepos)) {
validScore = false;
}
if (isNaN(result_scorepos)) {
validWeeklyScore = false;
}
if ((validScore == true) && (result_scorepos <= 1000)) {
vartext = ("Congratulations, you're ranked nr " + result_scorepos) + " in the alltime highscores!!";
} else if ((validWeeklyScore == true) && (result_weeklyScorepos <= 1000)) {
vartext = ("Congratulations, you're ranked nr " + result_weeklyScorepos) + " in the weekly highscores.";
} else {
vartext = "Sorry, you did not make it into the weekly or alltime top 1000.";
}
this.postext.text = vartext;
Symbol 314 MovieClip Frame 4
this.try_again.onRelease = function () {
this._parent.gotoAndStop(1);
};