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);
}
function countDown() {
sec++;
}
function postMindJoltAPIConnect(success) {
trace("[MindJoltAPI] service successfully loaded");
}
__com_mochibot__("e53debbd", this, 10301, true);
stop();
var CPMStarContentSpotID = "1808Q0EAE57FB";
System.security.allowDomain("server.cpmstar.com");
loader.adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=" + CPMStarContentSpotID);
sec = 0;
countdown = setInterval(countDown, 45);
var MindJoltAPI;
if (MindJoltAPI == undefined) {
System.security.allowDomain("static.mindjolt.com");
MindJoltAPI = createEmptyMovieClip("MindJoltAPI", getNextHighestDepth());
var apiPath = ((_level0.mjPath != undefined) ? (_level0.mjPath) : "http://static.mindjolt.com/api/as2/api_as2_local.swf");
var apiLoader = new MovieClipLoader();
var apiLoadListener = new Object();
apiLoader.addListener(apiLoadListener);
apiLoadListener.onLoadInit = function () {
MindJoltAPI.service.connect(postMindJoltAPIConnect);
};
apiLoadListener.onLoadError = function () {
trace("[MindJoltAPI] failed to load.");
};
apiLoader.loadClip(apiPath, MindJoltAPI);
}
Frame 2
function onEnterFrame() {
blockeMove2();
expMove2();
if (awe._currentframe == 195) {
gotoAndStop (3);
}
}
function blockeMove2() {
i = lsers.length - 1;
while (i >= 0) {
lsers[i]._x = lsers[i]._x + lsX[i];
lsers[i]._y = lsers[i]._y + lsY[i];
lsY[i] = lsY[i] + grav;
lsX[i] = lsX[i] * airF;
if ((lsers[i]._x + (lsers[i]._width / 2)) >= Stage.width) {
lsX[i] = lsX[i] * -1;
}
if ((lsers[i]._x - (lsers[i]._width / 2)) <= 0) {
lsX[i] = lsX[i] * -1;
lsers[i]._x = lsers[i]._x + lsX[i];
}
if ((lsers[i]._y + (lsers[i]._height / 2)) >= Stage.height) {
lsY[i] = lsY[i] * -0.5;
lsers[i]._y = Stage.height - (lsers[i]._height / 2);
}
lsLive[i] = lsLive[i] - 1;
if (lsLive[i] <= 0) {
lsers[i]._alpha = lsers[i]._alpha - 2;
if (lsers[i]._alpha <= 0) {
removeBlock2();
}
}
i--;
}
}
function removeBlock2() {
lsers[i].removeMovieClip();
lsers.splice(i, 1);
lsX.splice(i, 1);
lsY.splice(i, 1);
lsLive.splice(i, 1);
}
function blockSplode2() {
b = 10;
while (b > 0) {
ls = attachMovie("aa", "lser" + depth2, depth2);
depth2++;
lsers.push(ls);
ls._x = random(Stage.width);
ls._y = random(Stage.height);
dire = random(180);
lsX.push(Math.cos((dire * Math.PI) / 180) * 20);
lsY.push((-Math.sin((dire * Math.PI) / 180)) * 20);
lsLive.push(30);
b--;
}
}
function expMove2() {
i = exp.length - 1;
while (i >= 0) {
exp[i]._x = exp[i]._x + expX[i];
exp[i]._y = exp[i]._y + expY[i];
expX[i] = expX[i] * 0.98;
expY[i] = expY[i] * 0.98;
exp[i]._alpha = exp[i]._alpha - 5;
if (exp[i]._alpha <= 0) {
removeExp2();
}
i--;
}
}
function explosion2() {
b = 3;
while (b >= 0) {
cna = attachMovie("pua", "cn" + depth2, depth2);
depth2++;
cna._x = _xmouse;
cna._y = _ymouse;
rotTemp = random(360);
exp.push(cna);
expX.push(random(10) - 5);
expY.push(random(10) - 5);
cna._xscale = (cna._yscale = random(50) + 25);
b--;
}
}
function removeExp2() {
exp[i].removeMovieClip();
exp.splice(i, 1);
expX.splice(i, 1);
expY.splice(i, 1);
}
stop();
depth2 = 103;
grav = 1;
airF = 0.9;
exp = new Array();
expX = new Array();
expY = new Array();
lsers = new Array();
lsY = new Array();
lsX = new Array();
lsLive = new Array();
dire = 0;
awe.onRelease = function () {
getURL ("http://agitatedferret.com/", "_blank");
};
Frame 3
stop();
createEmptyMovieClip("things", random(10000000) + 1000);
createEmptyMovieClip("bar", random(10000000) + 1000);
fader._alpha = 0;
onEnterFrame = function () {
if (playFade == true) {
fader._alpha = fader._alpha + 2;
if ((fader._alpha >= 80) && (_root._currentframe == 3)) {
gotoAndStop (4);
}
}
};
Frame 4
function place_line() {
x = 0;
while (x < 11) {
tiles_placed++;
if (field[x][0] != 0) {
push_blocks(x);
}
tile = things.attachMovie("tile", "tile_" + tiles_placed, tiles_placed, {_x:25 + (32 * x), _y:312});
if (level < 2) {
randomNum = random(98);
} else {
randomNum = random(100);
}
if ((randomNum != 99) && (randomNum != 50)) {
num = Math.floor(Math.random() * 4) + 1;
} else if (randomNum == 99) {
num = 5;
} else if (randomNum == 50) {
num = 6;
}
tile.gotoAndStop(num);
field[x][0] = tiles_placed;
x++;
}
}
function remove_tiles2(tx, ty) {
things["tile_" + field[tx][ty]].speedx = 2 + random(7);
things["tile_" + field[tx][ty]].speedy = random(22) + 12;
things["tile_" + field[tx][ty]].gravity = 0;
things["tile_" + field[tx][ty]].gravityrate = random(14) + 9;
things["tile_" + field[tx][ty]]._alpha = 50;
things["tile_" + field[tx][ty]].randomize = random(2);
if (things["tile_" + field[tx][ty]]._currentframe == 6) {
mult = mult + 1;
multiTxt.text = mult;
multiUp = true;
}
things["tile_" + field[tx][ty]].onEnterFrame = function () {
if (this.randomize == 0) {
this._x = this._x - this.speedx;
} else {
this._x = this._x + this.speedx;
}
this.gravity = this.gravity + (this.speedy / this.gravityrate);
this._y = this._y - (this.speedy - this.gravity);
this._alpha = this._alpha - 1;
if (this._alpha <= 10) {
this.removeMovieClip();
this.unloadMovie();
}
};
field[tx][ty] = 0;
removedVar++;
if (removedVar < 2) {
remove_tiles2(tx + 1, ty);
remove_tiles2(tx - 1, ty);
remove_tiles2(tx, ty + 1);
remove_tiles2(tx, ty - 1);
remove_tiles2(tx + 1, ty + 1);
remove_tiles2(tx - 1, ty - 1);
remove_tiles2(tx - 1, ty + 1);
remove_tiles2(tx + 1, ty - 1);
}
}
function remove_tiles(tx, ty, clicked) {
things["tile_" + field[tx][ty]].speedx = 2 + random(7);
things["tile_" + field[tx][ty]].speedy = random(22) + 12;
things["tile_" + field[tx][ty]].gravity = 0;
things["tile_" + field[tx][ty]].gravityrate = random(14) + 9;
things["tile_" + field[tx][ty]]._alpha = 50;
things["tile_" + field[tx][ty]].randomize = random(2);
if (removedNum > 1) {
if (removedNum > 1) {
things["tile_" + field[tx][ty]].onEnterFrame = function () {
if (this.randomize == 0) {
this._x = this._x - this.speedx;
} else {
this._x = this._x + this.speedx;
}
this.gravity = this.gravity + (this.speedy / this.gravityrate);
this._y = this._y - (this.speedy - this.gravity);
this._alpha = this._alpha - 1;
if (this._alpha <= 10) {
this.removeMovieClip();
this.unloadMovie();
}
};
field[tx][ty] = 0;
}
if ((field[tx + 1][ty] != 0) and (things["tile_" + field[tx + 1][ty]]._currentframe == tile_type)) {
remove_tiles(tx + 1, ty);
}
if ((field[tx - 1][ty] != 0) and (things["tile_" + field[tx - 1][ty]]._currentframe == tile_type)) {
remove_tiles(tx - 1, ty);
}
if ((field[tx][ty + 1] != 0) and (things["tile_" + field[tx][ty + 1]]._currentframe == tile_type)) {
remove_tiles(tx, ty + 1);
}
if ((field[tx][ty - 1] != 0) and (things["tile_" + field[tx][ty - 1]]._currentframe == tile_type)) {
remove_tiles(tx, ty - 1);
}
}
}
function secondTiles(tx, ty) {
if (things["tile_" + field[tx + i][ty]] != 0) {
if ((things["tile_" + field[tx + 1][ty]]._currentframe == tile_type) && (things["tile_" + field[tx + 1][ty]]._alpha > 70)) {
things["tile_" + field[tx + 1][ty]]._alpha = 50;
secondTiles(tx + 1, ty);
removedNum = removedNum + 1;
}
if ((things["tile_" + field[tx - 1][ty]]._currentframe == tile_type) && (things["tile_" + field[tx - 1][ty]]._alpha > 70)) {
things["tile_" + field[tx - 1][ty]]._alpha = 50;
secondTiles(tx - 1, ty);
removedNum = removedNum + 1;
}
if ((things["tile_" + field[tx][ty + 1]]._currentframe == tile_type) && (things["tile_" + field[tx][ty + 1]]._alpha > 70)) {
things["tile_" + field[tx][ty + 1]]._alpha = 50;
secondTiles(tx, ty + 1);
removedNum = removedNum + 1;
}
if ((things["tile_" + field[tx][ty - 1]]._currentframe == tile_type) && (things["tile_" + field[tx][ty - 1]]._alpha > 70)) {
things["tile_" + field[tx][ty - 1]]._alpha = 50;
secondTiles(tx, ty - 1);
removedNum = removedNum + 1;
}
}
}
function roll_tiles() {
i = 11;
while (i >= -1) {
b = 11;
while (b >= -1) {
things["tile_" + field[i][b]]._alpha = 100;
removedNum = 0;
multiCheck = false;
b--;
}
i--;
}
tx = -1;
ty = -1;
removedNum = removedNum + 1;
x_tile_clicked = Math.floor((_xmouse - 25) / 32);
y_tile_clicked = -Math.floor((_ymouse - 312) / 32);
if ((tile_type = things["tile_" + field[x_tile_clicked][y_tile_clicked]]._currentframe == 5)) {
tx = x_tile_clicked;
ty = y_tile_clicked;
things["tile_" + field[x_tile_clicked][y_tile_clicked]]._alpha = 50;
if (things["tile_" + field[tx + 1][ty]]._alpha > 70) {
things["tile_" + field[tx + 1][ty]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx - 1][ty]]._alpha > 70) {
things["tile_" + field[tx - 1][ty]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx][ty - 1]]._alpha > 70) {
things["tile_" + field[tx][ty - 1]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx][ty + 1]]._alpha > 70) {
things["tile_" + field[tx][ty + 1]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx + 1][ty + 1]]._alpha > 70) {
things["tile_" + field[tx + 1][ty + 1]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx - 1][ty + 1]]._alpha > 70) {
things["tile_" + field[tx - 1][ty + 1]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx + 1][ty - 1]]._alpha > 70) {
things["tile_" + field[tx + 1][ty - 1]]._alpha = 50;
removedNum = removedNum + 1;
}
if (things["tile_" + field[tx - 1][ty - 1]]._alpha > 70) {
things["tile_" + field[tx - 1][ty - 1]]._alpha = 50;
removedNum = removedNum + 1;
}
} else if ((tile_type = things["tile_" + field[x_tile_clicked][y_tile_clicked]]._currentframe == 6)) {
things["tile_" + field[x_tile_clicked][y_tile_clicked]]._alpha = 50;
multiCheck = true;
}
if ((((x_tile_clicked >= 0) and (x_tile_clicked <= 11)) and (y_tile_clicked >= 0)) and (y_tile_clicked <= 11)) {
if (field[x_tile_clicked][y_tile_clicked] != 0) {
tx = x_tile_clicked;
ty = y_tile_clicked;
}
}
tile_type = things["tile_" + field[tx][ty]]._currentframe;
if ((((things["tile_" + field[tx + 1][ty]]._currentframe == tile_type) && (things["tile_" + field[tx + 1][ty]]._alpha > 70)) && (tile_type != 6)) && (tile_type != 5)) {
things["tile_" + field[tx + 1][ty]]._alpha = 50;
secondTiles(tx + 1, ty);
}
if ((((things["tile_" + field[tx - 1][ty]]._currentframe == tile_type) && (things["tile_" + field[tx - 1][ty]]._alpha > 70)) && (tile_type != 6)) && (tile_type != 5)) {
things["tile_" + field[tx - 1][ty]]._alpha = 50;
secondTiles(tx - 1, ty);
}
if ((((things["tile_" + field[tx][ty + 1]]._currentframe == tile_type) && (things["tile_" + field[tx][ty + 1]]._alpha > 70)) && (tile_type != 6)) && (tile_type != 5)) {
things["tile_" + field[tx][ty + 1]]._alpha = 50;
secondTiles(tx, ty + 1);
}
if ((((things["tile_" + field[tx][ty - 1]]._currentframe == tile_type) && (things["tile_" + field[tx][ty - 1]]._alpha > 70)) && (tile_type != 6)) && (tile_type != 5)) {
things["tile_" + field[tx][ty - 1]]._alpha = 50;
secondTiles(tx, ty - 1);
}
}
function push_blocks(col_number) {
i = 10;
while (i >= 0) {
if (field[col_number][i] != 0) {
if (i != 10) {
field[col_number][i + 1] = field[col_number][i];
things["tile_" + field[col_number][i]]._y = things["tile_" + field[col_number][i]]._y - 32;
} else {
things._alpha = 50;
game_over = 1;
fader3._alpha = 0;
fader3.gotoAndStop(1);
scoreBox._visible = false;
}
}
i--;
}
}
function update_field() {
i = 0;
while (i < 11) {
j = 1;
while (j < 11) {
if ((field[i][j] != 0) and (field[i][j - 1] == 0)) {
falling = j - 1;
while ((field[i][falling] == 0) and (falling >= 0)) {
field[i][falling] = field[i][falling + 1];
things["tile_" + field[i][falling + 1]]._y = things["tile_" + field[i][falling + 1]]._y + 32;
field[i][falling + 1] = 0;
falling--;
}
}
j++;
}
i++;
}
}
aSound = new Sound(soundClip1);
aSound.attachSound("sound4");
aSound.setVolume(0);
aSound2 = new Sound(soundClip2);
aSound2.attachSound("sound3");
aSound2.setVolume(0);
field = Array();
fader._alpha = 0;
if (setOnce != true) {
fader3.swapDepths(random(100000000) + 10000000000);
setOnce = true;
}
pauseBox.swapDepths(random(100000000) + 10000000000);
scoreBox.swapDepths(random(100000000) + 10000000001);
levelTxtBox.swapDepths(random(100000000) + 10000000002);
MultiTxtBox.swapDepths(random(100000000) + 10000000003);
turnsUp = 0;
removedNum = 0;
level = 1;
levelSetter = true;
levelTxt.text = level;
levelUp = false;
score = 0;
interval = 1;
mult = 1;
game_over = 0;
delay = 0;
turns = 0;
fader3._alpha = 100;
tiles_placed = 0;
x = 0;
while (x < 11) {
field[x] = Array();
y = 0;
while (y < 11) {
field[x][y] = 0;
y++;
}
x++;
}
things._alpha = 100;
things._visible = true;
bar._visible = true;
levelTxtBox._visible = true;
MultiTxtBox._visible = true;
fader3._alpha = 100;
fader3.gotoAndStop(1);
fadeMe = true;
multiUp = false;
levelUp = false;
fader3.onEnterFrame = function () {
if (fadeMe == true) {
fader3._alpha = fader3._alpha - 2;
if (fader3._alpha < 5) {
playFade = false;
fadeMe = false;
fader3.gotoAndStop(3);
fader3._alpha = 100;
}
}
};
onEnterFrame = function () {
if (!game_over) {
if ((removedNum >= 2) || (multiCheck == true)) {
scoreBox._visible = true;
scoreBox._x = _xmouse;
scoreBox._y = _ymouse;
if (multiCheck == true) {
scoreI = "Multiplier Up";
} else {
scoreI = (removedNum * (removedNum * 5)) * mult;
}
scoreBox.scoreTxt = scoreI;
} else {
scoreBox._visible = false;
}
if (levelUp == true) {
if (levelTxtBox._alpha <= 6) {
levelTxtBox.gotoAndStop(1);
levelTxtBox._y = 160;
levelTxtBox._alpha = 100;
levelUp = false;
soundStarted = false;
} else {
if (soundStarted != true) {
aSound2.setVolume(100);
aSound2.start(0, 1);
soundStarted = true;
}
levelTxtBox.gotoAndStop(2);
levelTxtBox._alpha = levelTxtBox._alpha - 1;
levelTxtBox._y = levelTxtBox._y - 3;
}
}
if (multiUp == true) {
if (MultiTxtBox._alpha <= 6) {
MultiTxtBox.gotoAndStop(1);
MultiTxtBox._y = 160;
MultiTxtBox._alpha = 100;
multiUp = false;
soundStarted = false;
} else {
if (soundStarted != true) {
aSound2.setVolume(100);
aSound2.start(0, 1);
soundStarted = true;
}
MultiTxtBox.gotoAndStop(2);
MultiTxtBox._alpha = MultiTxtBox._alpha - 1;
MultiTxtBox._y = MultiTxtBox._y - 3;
}
}
}
if ((!game_over) && (paused != true)) {
interval--;
if (interval == 0) {
turns++;
turnsUp = turnsUp + 1;
if (turnsUp > 5) {
level = level + 1;
levelTxt.text = level;
levelUp = true;
turnsUp = 0;
}
levelSet = 250 - (level * 10);
if (levelSet < 50) {
levelSet = 50 - ((level - 19) * 2);
}
interval = levelSet;
place_line();
}
bar.clear();
bar.lineStyle(10, 15369216);
bar.moveTo(28, 382);
bar.lineTo(28 + ((475 * interval) / levelSet), 382);
roll_tiles();
}
if (game_over == 1) {
fader3._alpha = fader3._alpha + 2;
if (fader3._alpha >= 94) {
things.unloadMovie();
bar.unloadMovie();
playFade = false;
levelTxtBox._visible = false;
MultiTxtBox._visible = false;
game_over = 0;
fader3._alpha = 0;
setFade = false;
gotoAndStop (5);
}
}
};
onMouseDown = function () {
if ((!game_over) && (paused != true)) {
x_tile_clicked = Math.floor((_xmouse - 25) / 32);
y_tile_clicked = -Math.floor((_ymouse - 312) / 32);
if ((((x_tile_clicked >= 0) and (x_tile_clicked <= 11)) and (y_tile_clicked >= 0)) and (y_tile_clicked <= 11)) {
if (field[x_tile_clicked][y_tile_clicked] != 0) {
if (things["tile_" + field[x_tile_clicked][y_tile_clicked]]._currentframe < 5) {
remove_tiles(x_tile_clicked, y_tile_clicked, 1);
} else if (things["tile_" + field[x_tile_clicked][y_tile_clicked]]._currentframe == 5) {
remove_tiles2(x_tile_clicked, y_tile_clicked);
} else if (things["tile_" + field[x_tile_clicked][y_tile_clicked]]._currentframe == 6) {
things["tile_" + field[tx][ty]].speedx = 2 + random(7);
things["tile_" + field[tx][ty]].speedy = random(22) + 12;
things["tile_" + field[tx][ty]].gravity = 0;
things["tile_" + field[tx][ty]].gravityrate = random(14) + 9;
things["tile_" + field[tx][ty]]._alpha = 50;
things["tile_" + field[tx][ty]].randomize = random(2);
mult = mult + 1;
multiTxt.text = mult;
multiUp = true;
things["tile_" + field[tx][ty]].onEnterFrame = function () {
if (this.randomize == 0) {
this._x = this._x - this.speedx;
} else {
this._x = this._x + this.speedx;
}
this.gravity = this.gravity + (this.speedy / this.gravityrate);
this._y = this._y - (this.speedy - this.gravity);
this._alpha = this._alpha - 1;
if (this._alpha <= 10) {
this.removeMovieClip();
this.unloadMovie();
}
};
field[tx][ty] = 0;
}
update_field();
if ((removedNum > 1) && (game_over != 1)) {
aSound.setVolume(100);
aSound.start(0, 1);
removedVar = 0;
removedSet = ((removedNum * 5) * removedNum) * mult;
score = score + removedSet;
scoreTxt.text = score;
}
}
}
}
};
Frame 5
function sendScore(GameName, SubmitterName, ScoreVar, Type, Mode) {
if (Base64.Decode(sentScore) != ScoreVar.toString()) {
sentScore = ScoreVar.toString();
sentScore = Base64.Encode(sentScore);
GameName = GameName.split(" ");
GameName = GameName.join("_");
_root.loadVariables(((((("http://www.agitatedferret.com/send_score.php?game=" + GameName) + "&name=") + SubmitterName) + "&developer=agitatedferret") + "&mode=") + Mode, "POST");
getURL (((((("http://www.agitatedferret.com/scores.php?game=" + GameName) + "&type=") + Type) + "&developer=agitatedferret") + "&mode=") + Mode, "_blank");
}
}
stop();
fader2._alpha = 0;
game_over = 1;
scoreTxt.text = score;
aSound.stop();
aSound2.stop();
onEnterFrame = function () {
if ((playFade2 == true) && (_root._currentframe == 5)) {
fader2._alpha = fader2._alpha + 2;
if (fader2._alpha > 95) {
gotoAndStop (4);
playFade2 = false;
}
}
};
submit.onRelease = function () {
sendScore("Combination Cubes", name.text, score, "descending", "Standard");
};
Symbol 6 MovieClip Frame 1
stop();
Symbol 10 MovieClip Frame 1
stop();
Symbol 13 MovieClip Frame 1
stop();
Symbol 17 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 50 Button
on (release) {
_root.gotoAndStop(2);
}
Symbol 51 MovieClip Frame 1
_root.stop();
PercentLoaded = _root.sec / 2;
if (PercentLoaded < 100) {
bar._xscale = PercentLoaded;
} else {
gotoAndStop ("loaded");
}
Symbol 51 MovieClip Frame 2
gotoAndPlay (1);
Symbol 56 Button
on (release) {
getURL ("http://www.agitatedferret.com", "_blank");
}
Symbol 138 MovieClip [__Packages.Base64] Frame 0
class Base64 extends Object
{
static var _CharsReverseLookup;
var _base64Str, _base64Count;
function Base64 () {
super();
}
static function Encode(str) {
var _local1 = new Base64();
return(_local1.encodeBase64(str));
}
static function Decode(str) {
var _local1 = new Base64();
return(_local1.decodeBase64(str));
}
static function StringReplaceAll(source, find, replacement) {
return(source.split(find).join(replacement));
}
static function InitReverseChars() {
_CharsReverseLookup = new Array();
var _local1 = 0;
while (_local1 < _Chars.length) {
_CharsReverseLookup[_Chars[_local1]] = _local1;
_local1++;
}
return(true);
}
static function UrlDecode(str) {
str = StringReplaceAll(str, "\\", " ");
str = unescape(str);
return(str);
}
static function UrlEncode(str) {
str = escape(str);
str = StringReplaceAll(str, "\\", "%2B");
str = StringReplaceAll(str, "%20", "+");
return(str);
}
function setBase64Str(str) {
_base64Str = str;
_base64Count = 0;
}
function readBase64() {
if (!_base64Str) {
return(_EndOfInput);
}
if (_base64Count >= _base64Str.length) {
return(_EndOfInput);
}
var _local2 = _base64Str.charCodeAt(_base64Count) & 255;
_base64Count++;
return(_local2);
}
function encodeBase64(str) {
setBase64Str(str);
var _local3 = "";
var _local2 = new Array(3);
var _local5 = 0;
var _local4 = false;
while ((!_local4) && (((_local2[0] = readBase64())) != _EndOfInput)) {
_local2[1] = readBase64();
_local2[2] = readBase64();
_local3 = _local3 + _Chars[_local2[0] >> 2];
if (_local2[1] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[0] << 4) & 48) | (_local2[1] >> 4)];
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + _Chars[((_local2[1] << 2) & 60) | (_local2[2] >> 6)];
_local3 = _local3 + _Chars[_local2[2] & 63];
} else {
_local3 = _local3 + _Chars[(_local2[1] << 2) & 60];
_local3 = _local3 + "=";
_local4 = true;
}
} else {
_local3 = _local3 + _Chars[(_local2[0] << 4) & 48];
_local3 = _local3 + "=";
_local3 = _local3 + "=";
_local4 = true;
}
_local5 = _local5 + 4;
if (_local5 >= 76) {
_local3 = _local3 + newline;
_local5 = 0;
}
}
return(_local3);
}
function readReverseBase64() {
if (!_base64Str) {
return(_EndOfInput);
}
while (true) {
if (_base64Count >= _base64Str.length) {
return(_EndOfInput);
}
var _local2 = _base64Str.charAt(_base64Count);
_base64Count++;
if (_CharsReverseLookup[_local2]) {
return(_CharsReverseLookup[_local2]);
}
if (_local2 == "A") {
return(0);
}
}
}
function ntos(n) {
var _local1 = n.toString(16);
if (_local1.length == 1) {
_local1 = "0" + _local1;
}
_local1 = "%" + _local1;
return(unescape(_local1));
}
function decodeBase64(str) {
setBase64Str(str);
var _local3 = "";
var _local2 = new Array(4);
var _local4 = false;
while (((!_local4) && (((_local2[0] = readReverseBase64())) != _EndOfInput)) && (((_local2[1] = readReverseBase64())) != _EndOfInput)) {
_local2[2] = readReverseBase64();
_local2[3] = readReverseBase64();
_local3 = _local3 + ntos(((_local2[0] << 2) & 255) | (_local2[1] >> 4));
if (_local2[2] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[1] << 4) & 255) | (_local2[2] >> 2));
if (_local2[3] != _EndOfInput) {
_local3 = _local3 + ntos(((_local2[2] << 6) & 255) | _local2[3]);
} else {
_local4 = true;
}
} else {
_local4 = true;
}
}
return(_local3);
}
function toHex(n) {
var _local4 = "";
var _local3 = true;
var _local1 = 32;
while (_local1 > 0) {
_local1 = _local1 - 4;
var _local2 = (n >> _local1) & 15;
if ((!_local3) || (_local2 != 0)) {
_local3 = false;
_local4 = _local4 + _Digits[_local2];
}
}
return(((_local4 == "") ? "0" : (_local4)));
}
function pad(str, len, pad) {
var _local2 = str;
var _local1 = str.length;
while (_local1 < len) {
_local2 = pad + _local2;
_local1++;
}
return(_local2);
}
function encodeHex(str) {
var _local4 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local4 = _local4 + pad(toHex(str.charCodeAt(_local2) & 255), 2, "0");
_local2++;
}
return(_local4);
}
function decodeHex(str) {
var _local5 = "";
var _local3 = "";
var _local2 = 0;
while (_local2 < str.length) {
_local3 = _local3 + str.charAt(_local2);
if (_local3.length == 2) {
_local5 = _local5 + ntos(parseInt("0x" + _local3));
_local3 = "";
}
_local2++;
}
return(_local5);
}
static var _EndOfInput = -1;
static var _Chars = new Array("A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "+", "/");
static var _CharsReverseLookupInited = InitReverseChars();
static var _Digits = new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f");
}
Symbol 81 Button
on (release) {
_root.playFade = true;
}
Symbol 86 Button
on (release) {
getURL ("http://www.agitatedferret.com/scores.php?game=Combination_Cubes&developer=agitatedferret", "_blank");
}
Symbol 91 Button
on (release) {
getURL ("http://www.agitatedferret.com", "_blank");
}
Symbol 95 Button
on (release) {
_root.paused = false;
_root.fader.gotoAndStop(3);
}
Symbol 96 MovieClip Frame 1
stop();
Symbol 96 MovieClip Frame 2
stop();
Symbol 96 MovieClip Frame 3
stop();
Symbol 109 Button
on (keyPress "p") {
if ((_root.paused != true) && (_root.game_over != 1)) {
_root.paused = true;
_root.pauseBox.gotoAndStop(2);
} else {
_root.paused = false;
_root.pauseBox.gotoAndStop(1);
}
}
on (release) {
if ((_root.paused != true) && (_root.game_over != 1)) {
_root.paused = true;
_root.pauseBox.gotoAndStop(2);
} else {
_root.paused = false;
_root.pauseBox.gotoAndStop(1);
}
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 116 MovieClip Frame 1
stop();
Symbol 116 MovieClip Frame 2
stop();
Symbol 117 Button
on (release) {
_root.paused = false;
_root.pauseBox.gotoAndStop(1);
}
Symbol 118 MovieClip Frame 1
stop();
Symbol 118 MovieClip Frame 2
stop();
Symbol 131 Button
on (release) {
_root.playFade2 = true;
}
Symbol 134 Button
on (release) {
getURL ("http://www.agitatedferret.com", "_blank");
}