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 onEnterFrame() {
if ((this._currentframe == 1) || (this._currentframe == 2)) {
bytes_loaded = Math.round(this.getBytesLoaded());
bytes_total = Math.round(this.getBytesTotal());
getPercent = bytes_loaded / bytes_total;
loader._xscale = getPercent * 100;
if (bytes_loaded == bytes_total) {
gotoAndStop (3);
}
}
}
_lockroot = true;
ps.onRollOver = function () {
ps._alpha = 50;
};
ps.onRollOut = function () {
ps._alpha = 100;
};
ps.onReleaseOutside = function () {
ps._alpha = 100;
};
ps.onRelease = function () {
getURL ("http://portalstrike.com/", "_blank");
};
stop();
wasHere = 0;
__com_mochibot__("5ca3cbb8", this, 10301, true);
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
myMenu.customItems.push(mySiteLink, copyrightNotice);
_root.menu = myMenu;
barSelected = 1;
backGroundSelected = 1;
sObject = SharedObject.getLocal("objectName3");
bar1 = 1;
if (sObject.data.bar1 > 0) {
bar1 = sObject.data.bar1;
}
bar2 = 0;
if (sObject.data.bar2 > 0) {
bar2 = sObject.data.bar2;
}
bar3 = 0;
if (sObject.data.bar3 > 0) {
bar3 = sObject.data.bar3;
}
bar4 = 0;
if (sObject.data.bar4 > 0) {
bar4 = sObject.data.bar4;
}
bar5 = 0;
if (sObject.data.bar5 > 0) {
bar5 = sObject.data.bar5;
}
bg1 = 1;
if (sObject.data.bg1 > 0) {
bg1 = sObject.data.bg1;
}
bg2 = 0;
if (sObject.data.bg2 > 0) {
bg2 = sObject.data.bg2;
}
bg3 = 0;
if (sObject.data.bg3 > 0) {
bg3 = sObject.data.bg3;
}
bg4 = 0;
if (sObject.data.bg4 > 0) {
bg4 = sObject.data.bg4;
}
Frame 2
stop();
ps.onRollOver = function () {
ps._alpha = 50;
};
ps.onRollOut = function () {
ps._alpha = 100;
};
ps.onReleaseOutside = function () {
ps._alpha = 100;
};
ps.onRelease = function () {
getURL ("http://portalstrike.com/", "_blank");
};
Frame 3
function onEnterFrame() {
counter = counter + 1;
if (counter == 35) {
buttonHover(playBtn);
buttonHover(extras);
buttonHover(credits);
buttonHover(mj);
}
}
function buttonHover(button) {
button.onRollOver = function () {
button.gotoAndStop(2);
};
button.onRollOut = function () {
button.gotoAndStop(1);
button.inner.gotoAndStop(35);
};
button.onReleaseOutside = function () {
button.gotoAndStop(1);
button.inner.gotoAndStop(35);
};
}
function bgSelect(button, num) {
button.onRollOver = function () {
if (button.blah._currentframe == 2) {
button.blah.gotoAndStop(3);
}
};
button.onRollOut = function () {
if (button.blah._currentframe == 3) {
button.blah.gotoAndStop(2);
}
};
button.onReleaseOutside = function () {
if (button.blah._currentframe == 3) {
button.blah.gotoAndStop(2);
}
};
button.onRelease = function () {
if (button.blah._currentframe == 3) {
i = bgs.length - 1;
while (i >= 0) {
if (bgImg[i].blah._currentframe == 4) {
bgImg[i].blah.gotoAndStop(2);
}
i--;
}
backGroundSelected = num + 1;
background3.gotoAndStop(num + 1);
if (backGroundSelected == 3) {
bt.gotoAndStop(2);
} else {
bt.gotoAndStop(1);
}
button.blah.gotoAndStop(4);
}
};
}
function mjer(button) {
button.onRollOver = function () {
button._alpha = 50;
};
button.onRollOut = function () {
button._alpha = 100;
};
button.onRelease = function () {
getURL ("http://www.mindjolt.com/", "_blank");
};
}
stop();
playBtn.onRelease = function () {
gi = attachMovie("glowIn", "glowIn", 10000);
wasHere = 1;
};
extras.onRelease = function () {
gotoAndStop (7);
};
credits.onRelease = function () {
gotoAndStop (8);
};
counter = 0;
playBtn.gotoAndStop(1);
extras.gotoAndStop(1);
credits.gotoAndStop(1);
mj.onRelease = function () {
getURL ("http://www.allgamesallfree.com/BTLiPhone", "_blank");
};
if (backGroundSelected == 3) {
bt.gotoAndStop(2);
} else {
bt.gotoAndStop(1);
}
bgs = new Array("bg1", "bg2", "bg3", "bg4");
bgImg = new Array(b1, b2, b3, b4);
i = bgs.length - 1;
while (i >= 0) {
if (_root[bgs[i]] == 1) {
bgImg[i].blah.gotoAndStop(2);
bgSelect(bgImg[i], i);
}
i--;
}
bgImg[backGroundSelected - 1].blah.gotoAndStop(4);
Frame 4
stop();
cont.onRelease = function () {
gotoAndStop (5);
};
cont.onRollOver = function () {
cont._alpha = 80;
};
cont.onRollOut = function () {
cont._alpha = 100;
};
bigButton.onRelease = function () {
getURL ("http://www.allgamesallfree.com/BTLiPhone", "_blank");
};
if (wasHere == 0) {
gotoAndStop (3);
}
Frame 5
function setUp() {
sp._x = random((Stage.width - dist) - 4) + 2;
ep._x = sp._x + dist;
}
function onEnterFrame() {
if (gameDone == 1) {
gameFinishedDelay = gameFinishedDelay - 1;
if (gameFinishedDelay <= 0) {
gotoAndStop (6);
}
} else {
if (right == 1) {
block._x = block._x + 10;
} else if (right == 0) {
block._x = block._x - 10;
}
if (block._x >= Stage.width) {
right = 0;
}
if (block._x <= 0) {
right = 1;
}
blockeMove();
}
}
function blockeMove() {
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) {
removeBlock();
}
}
i--;
}
}
function removeBlock() {
lsers[i].removeMovieClip();
lsers.splice(i, 1);
lsX.splice(i, 1);
lsY.splice(i, 1);
lsLive.splice(i, 1);
}
stop();
muteOn = false;
mute.onRelease = function () {
if (mute._currentframe == 1) {
mute.gotoAndStop(2);
muteOn = true;
my_sound2.stop();
} else {
mute.gotoAndStop(1);
muteOn = false;
my_sound2.start(0, 100);
}
};
var my_sound2 = new Sound();
my_sound2.attachSound("song");
my_sound2.start(0, 100);
var my_sound = new Sound();
my_sound.attachSound("Big_clun-Public_D-348.wav");
var death = new Sound();
death.attachSound("Wooden_o-kayden_r-8979.wav");
sp.gotoAndStop(backGroundSelected);
ep.gotoAndStop(backGroundSelected);
gameFinishedDelay = 40;
gameDone = 0;
pBest = 0;
if (sObject.data.pBest > 0) {
pBest = sObject.data.pBest;
}
pBestTxt = pBest;
if (sObject.data.barSelected > 0) {
barSelected = sObject.data.barSelected;
}
block.gotoAndStop(barSelected);
dist = 150;
right = 1;
score = 0;
scoreTxt = score;
lsers = new Array();
lsX = new Array();
lsY = new Array();
lsLive = new Array();
grav = 0.5;
airF = 0.95;
depth = 103;
Key.removeListener(keyListener);
barNames = new Array("Standard", "Robotic", "Stylish", "Insanity", "Devil Bar");
barsOwned = new Array("bar1", "bar2", "bar3", "bar4", "bar5");
backGroundNames = new Array("Wood", "Brick", "Stone", "Bamboo");
bgs = new Array("bg1", "bg2", "bg3", "bg4");
barScoreNeeded = new Array(0, 5, 15, 30, 50);
backGroundScoreNeeded = new Array(0, 10, 20, 40);
var keyListener = new Object();
keyListener.onKeyDown = function () {
num = Key.getCode();
if ((num == 32) && (gameDone == 0)) {
if ((block._x >= sp._x) && (block._x <= ep._x)) {
right = 0;
if (dist >= 80) {
dist = dist - 10;
} else if (dist >= 50) {
dist = dist - 5;
} else if (dist >= 13) {
dist = dist - 1;
}
if (dist <= 12) {
dist = 12;
}
setUp();
aw.gotoAndPlay(2);
aw.aw.gotoAndStop(random(4) + 1);
aw._x = random(300) + 75;
aw._y = random(100) + 25;
score = score + 1;
i = barNames.length - 1;
while (i >= 0) {
if ((score == barScoreNeeded[i]) && (_root[barsOwned[i]] == 0)) {
aBox.ul.name.htmlText = barNames[i];
aBox.ul.desc.htmlText = "Bar";
aBox.gotoAndPlay(2);
_root[barsOwned[i]] = 1;
}
i--;
}
sObject.data.bar1 = bar1;
sObject.flush();
sObject.data.bar2 = bar2;
sObject.flush();
sObject.data.bar3 = bar3;
sObject.flush();
sObject.data.bar4 = bar4;
sObject.flush();
sObject.data.bar5 = bar5;
sObject.flush();
i = backGroundNames.length - 1;
while (i >= 0) {
if ((score == backGroundScoreNeeded[i]) && (_root[bgs[i]] == 0)) {
aBox.ul.name.htmlText = backGroundNames[i];
aBox.ul.desc.htmlText = "Background";
aBox.gotoAndPlay(2);
_root[bgs[i]] = 1;
}
i--;
}
sObject.data.bg1 = bg1;
sObject.flush();
sObject.data.bg2 = bg2;
sObject.flush();
sObject.data.bg3 = bg3;
sObject.flush();
sObject.data.bg4 = bg4;
sObject.flush();
if (score >= pBest) {
pBest = score;
pBestTxt = pBest;
}
scoreTxt = score;
flashq.gotoAndPlay(2);
disa.swapDepths(50000);
disa.removeMovieClip();
my_sound.start();
i = score;
while (i > 0) {
ls = attachMovie("lSquare", "lser" + depth, depth);
depth++;
lsers.push(ls);
ls._x = block._x;
ls._y = block._y;
dire = random(180);
lsX.push(Math.cos((dire * Math.PI) / 180) * 10);
lsY.push((-Math.sin((dire * Math.PI) / 180)) * 10);
lsLive.push(50);
i--;
}
} else {
gameDone = 1;
xD = attachMovie("xD", "xD" + depth, depth++);
xD._x = block._x;
xD._y = block._y;
death.start();
}
}
};
Key.addListener(keyListener);
setUp();
Frame 6
function gotoMenu() {
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
gotoAndStop (3);
wasHere = 0;
if (called == 0) {
MindJoltAPI.service.submitScore(score, null, gotoMenu);
called = 1;
}
}
function onEnterFrame() {
if ((300 - (score * 5)) <= ranker._y) {
ranker._y = ranker._y - 1;
ranker.rankTxt = Math.floor((300 - ranker._y) / 5);
if (Math.floor((300 - ranker._y) / 5) >= rankNumbers[rankNameRank + 1]) {
rankNameRank = rankNameRank + 1;
}
rankNameTxt.htmlText = rankNames[rankNameRank];
} else if (called == 0) {
MindJoltAPI.service.submitScore(score, null, gotoMenu);
called = 1;
}
if (ranker._y <= 35) {
ranker._y = 35;
ranker.rankTxt = score;
if (called == 0) {
MindJoltAPI.service.submitScore(score, null, gotoMenu);
called = 1;
}
}
blockeMove();
}
function daButton(button) {
button.onRollOver = function () {
button.gotoAndStop(2);
};
button.onRollOut = function () {
button.gotoAndStop(1);
};
button.onReleaseOutside = function () {
button.gotoAndStop(1);
};
}
Key.removeListener(keyListener);
mjer(mj);
ps.onRollOver = function () {
ps._alpha = 50;
};
ps.onRollOut = function () {
ps._alpha = 100;
};
ps.onReleaseOutside = function () {
ps._alpha = 100;
};
ps.onRelease = function () {
getURL ("http://portalstrike.com/", "_blank");
};
sObject.data.pBest = pBest;
Object.flush();
if (pBest >= 10) {
a1.gotoAndStop(2);
}
if (pBest >= 30) {
a2.gotoAndStop(2);
}
if (pBest >= 50) {
a3.gotoAndStop(2);
}
my_sound2.stop();
delete my_sound2;
rankNames = new Array("Failure", "Pathetic", "Bad", "Beginner", "Amateur", "Novice", "Fair", "Average", "Acceptable", "Intermediate", "Good", "Satisfying", "Rad", "Great", "Superb", "Splendid", "Advanced", "Amazing", "Pro", "Veteran", "Inhuman");
rankNumbers = new Array(0, 1, 2, 3, 4, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 30, 35, 40, 45, 50, 1000, 10200);
var keyListener = new Object();
keyListener.onKeyDown = function () {
num = Key.getCode();
if (num == 32) {
gotoAndStop (5);
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
if (called == 0) {
MindJoltAPI.service.submitScore(score, null, gotoMenu);
called = 1;
}
}
};
Key.addListener(keyListener);
ta.onRollOver = function () {
ta.gotoAndStop(2);
};
ta.onRollOut = function () {
ta.gotoAndStop(1);
};
ta.onRelease = function () {
gotoAndStop (5);
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
};
scoreTxt = score;
rankNameRank = 0;
called = 0;
shopBtn.onRelease = function () {
gotoAndStop (7);
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
if (called == 0) {
MindJoltAPI.service.submitScore(score, null, gotoMenu);
called = 1;
}
};
daButton(shopBtn);
daButton(backBtn);
backBtn.onRelease = function () {
i = lsers.length - 1;
while (i >= 0) {
removeBlock();
i--;
}
gotoAndStop (3);
if (called == 0) {
MindJoltAPI.service.submitScore(score, null, gotoMenu);
called = 1;
}
};
Frame 7
function makeButton(button, num) {
button.onRollOver = function () {
if (button._alpha < 95) {
button._alpha = 75;
button._x = 65;
}
};
button.onRollOut = function () {
if (button._alpha < 95) {
button._alpha = 50;
button._x = 60;
}
};
button.onRelease = function () {
i = barButtons.length - 1;
while (i >= 0) {
if (barButtons[i]._currentframe != 1) {
barButtons[i]._alpha = 50;
barButtons[i]._x = 60;
}
i--;
}
button._x = 120;
barSelected = num + 1;
button._alpha = 100;
nameTxt.htmlText = barNames[num];
descriptionTxt.htmlText = barDescriptions[num];
block.gotoAndStop(num + 1);
};
}
barsOwned = new Array("bar1", "bar2", "bar3", "bar4", "bar5");
barButtons = new Array(b1, b2, b3, b4, b5);
barNames = new Array("Standard", "Robotic", "Stylish", "Insanity", "Devil Bar");
barDescriptions = new Array("Although this bar comes with no special looks it works and functions just fine.", "This is the amazing Robotic bar", "This is the amazing Stylish bar", "This is the amazing Insanity bar", "This is the amazing Devil bar");
i = barsOwned.length - 1;
while (i >= 0) {
barButtons[i]._alpha = 50;
if (_root[barsOwned[i]] == 1) {
barButtons[i].gotoAndStop(2);
barButtons[i]._x = 60;
}
if (_root[barsOwned[i]] == 1) {
makeButton(barButtons[i], i);
}
i--;
}
barButtons[barSelected - 1]._alpha = 100;
barButtons[barSelected - 1]._x = 120;
nameTxt.htmlText = barNames[barSelected - 1];
descriptionTxt.htmlText = barDescriptions[barSelected - 1];
block.gotoAndStop(barSelected);
backBtn.onRelease = function () {
gotoAndStop (3);
};
daButton(backBtn);
Frame 8
backBtn.onRelease = function () {
gotoAndStop (3);
};
daButton(backBtn);
mjer(mj);
ps.onRollOver = function () {
ps._alpha = 50;
};
ps.onRollOut = function () {
ps._alpha = 100;
};
ps.onReleaseOutside = function () {
ps._alpha = 100;
};
ps.onRelease = function () {
getURL ("http://portalstrike.com/", "_blank");
};
Symbol 10 MovieClip [bga] Frame 1
stop();
Symbol 13 MovieClip [glowIn] Frame 40
_root.gotoAndStop(4);
Symbol 13 MovieClip [glowIn] Frame 70
this.removeMovieClip();
Symbol 16 MovieClip [xD] Frame 40
this.removeMovieClip();
Symbol 25 MovieClip Frame 35
stop();
Symbol 35 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 40
stop();
Symbol 63 MovieClip Frame 1
stop();
Symbol 64 MovieClip Frame 40
stop();
Symbol 69 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 40
stop();
Symbol 74 MovieClip Frame 1
stop();
Symbol 76 MovieClip Frame 1
stop();
Symbol 77 MovieClip Frame 40
stop();
Symbol 80 MovieClip Frame 35
stop();
Symbol 85 MovieClip Frame 35
stop();
Symbol 89 MovieClip Frame 50
stop();
Symbol 96 MovieClip Frame 1
stop();
Symbol 100 MovieClip Frame 35
stop();
Symbol 101 MovieClip Frame 1
stop();
Symbol 127 MovieClip Frame 1
stop();
Symbol 128 MovieClip Frame 1
stop();
Symbol 139 MovieClip Frame 1
stop();
Symbol 145 MovieClip Frame 1
stop();
Symbol 146 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 97
gotoAndStop (1);
Symbol 171 MovieClip Frame 1
stop();
Symbol 180 MovieClip Frame 1
stop();
Symbol 187 MovieClip Frame 1
stop();
Symbol 189 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 211 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 234 MovieClip Frame 1
stop();
Symbol 237 MovieClip Frame 1
stop();