Frame 1
function __com_mochibot__(swfid, mc, lv) {
var x;
var g;
var s;
var fv;
var sb;
var u;
var res;
var mb;
var mbc;
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);
}
u = ((((((((((("http://" + mbc) + "/my/core.swf?mv=5&fv=") + fv) + "&v=") + escape(getVersion())) + "&swfid=") + escape(swfid)) + "&l=") + lv) + "&f=") + mc) + (sb ? ("&sb=" + sb) : "");
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__("227efde5", this, 10301);
Instance of Symbol 31 MovieClip in Frame 1
/* no clip actions */
Frame 32
_root.loadedBytes = _root.getBytesLoaded();
_root.totalBytes = _root.getBytesTotal();
if (_root.loadedBytes == _root.totalBytes) {
gotoAndPlay ("startFrame");
} else {
_root.percentageOutput = int((_root.getBytesLoaded() / _root.getBytesTotal()) * 100);
_root.loadedkbytes._x = _root.pbar._x + (4 * _root.percentageOutput);
_root.BytesSec = _root.loadedBytes / (getTimer() / 1000);
_root.timeRemaining = Math.floor((_root.totalBytes - _root.loadedBytes) / _root.BytesSec);
_root.pbar._xscale = _root.percentageOutput;
if (getTimer() > 500) {
_root.totalkbytes.text = (_root.loadedBytes + "/") + _root.totalBytes;
_root.loadedkbytes.text = _root.percentageOutput + "%";
_root.timeRemain.text = ((_root.timeRemaining + " seconds remaining @ ") + (Math.floor((_root.BytesSec / 1024) * 100) / 100)) + "Kb/sec";
}
}
Frame 33
gotoAndPlay ("preloadFrame");
Frame 43
stop();
_root.winTotal = 1;
_root.totalGameTime = 0;
_root.muted = false;
_root.paused = false;
Instance of Symbol 68 MovieClip in Frame 43
onClipEvent (load) {
a = 0;
}
onClipEvent (keyDown) {
if (Key.isDown(77) && (a == 0)) {
a = 1;
if (_root.muted == false) {
_root.muted = true;
_root.music.setVolume(0);
} else {
_root.muted = false;
if (_root.paused == false) {
_root.music.setVolume(40);
}
}
}
}
onClipEvent (keyUp) {
a = 0;
}
Frame 44
Mouse.hide();
Frame 84
_root.music = new Sound(this);
_root.music.attachSound("m" + (_root.winTotal % 5));
if (_root.muted == false) {
_root.music.setVolume(40);
} else {
_root.music.setVolume(0);
}
_root.music.start(0, 999);
Mouse.hide();
_root.gameTime = 0;
_root.gameEnd = 0;
_root.rightWin = 0;
_root.leftWin = 0;
_root.paused = false;
Frame 85
stop();
_root.levelT.text = "Level " + _root.winTotal;
cFrame = _root.winTotal % 7;
i = 0;
while (i < _root.winTotal) {
_root.attachMovie("blueball", "b" + i, _root.getNextHighestDepth());
eval ("_root.b" + i).inner.gotoAndStop(cFrame);
_root.leftSide.gotoAndStop(cFrame);
_root.attachMovie("greenball", "g" + i, _root.getNextHighestDepth());
eval ("_root.g" + i).inner.gotoAndStop(cFrame);
_root.rightSide.gotoAndStop(cFrame);
i++;
}
_root.createEmptyMovieClip("pauseMC", _root.getNextHighestDepth());
_root.pauseMC._visible = false;
_root.pauseMC.attachMovie("pause", "p", _root.pauseMC.getNextHighestDepth());
_root.pauseMC._x = 275 - (_root.pauseMC._width / 2);
_root.pauseMC._y = 200 - (_root.pauseMC._height / 2);
Instance of Symbol 84 MovieClip "leftSide" in Frame 85
onClipEvent (enterFrame) {
myTotal = 0;
f = 0;
i = 0;
while (i < _root.winTotal) {
if (eval ("_root.b" + i).hitTest(_root.leftSide) && (!eval ("_root.b" + i).hitTest(_root.rightSide))) {
myTotal++;
}
i++;
}
if (_root.winTotal == myTotal) {
_root.leftWin = 1;
} else {
_root.leftWin = 0;
}
_root.blueScore.text = myTotal;
}
Instance of Symbol 93 MovieClip "rightSide" in Frame 85
onClipEvent (enterFrame) {
myTotal = 0;
f = 0;
i = 0;
while (i < _root.winTotal) {
if (eval ("_root.g" + i).hitTest(_root.rightSide) && (!eval ("_root.g" + i).hitTest(_root.leftSide))) {
myTotal++;
}
i++;
}
if (_root.winTotal == myTotal) {
_root.rightWin = 1;
} else {
_root.rightWin = 0;
}
_root.greenScore.text = myTotal;
}
Instance of Symbol 75 MovieClip "centerwall" in Frame 85
onClipEvent (mouseMove) {
if ((_root.gameEnd == 0) && (_root.paused == false)) {
_y = _root._ymouse;
}
}
onClipEvent (enterFrame) {
if ((_root.rightWin == 1) && (_root.leftWin == 1)) {
_root.gameEnd = 1;
_root.gotoAndStop(87);
} else if (_root.paused == false) {
_root.pauseMC._visible = false;
_root.gameTime++;
} else {
_root.pauseMC._visible = true;
}
if ((_root.gameType == 3) && (Math.round(_root.gameTime / 30) >= 300)) {
_root.gameEnd = 1;
_root.gotoAndStop(87);
}
if (_root.gameType == 3) {
_root.timeT.text = 300 - (Math.round(_root.gameTime / 30) + Math.round(_root.totalGameTime / 30));
} else {
_root.timeT.text = Math.round(_root.gameTime / 30);
}
}
Instance of Symbol 98 MovieClip in Frame 85
onClipEvent (load) {
a = 0;
}
onClipEvent (keyDown) {
if (Key.isDown(80) && (a == 0)) {
a = 1;
if (_root.paused == false) {
_root.music.setVolume(0);
_root.paused = true;
} else {
if (_root.muted == false) {
_root.music.setVolume(40);
}
_root.paused = false;
}
}
}
onClipEvent (keyUp) {
a = 0;
}
Instance of Symbol 67 MovieClip [pause] "XpauseMC" in Frame 85
onClipEvent (load) {
_visible = false;
}
Frame 86
Frame 87
stop();
_root.pauseMC.removeMovieClip();
_root.music.stop();
_root.winSnd = new Sound(this);
_root.winSnd.attachSound("lvlup");
if (_root.muted == false) {
_root.winSnd.setVolume(100);
} else {
_root.winSnd.setVolume(0);
}
_root.winSnd.start(0, 1);
_root.winTime.text = ("You cleared the board in " + Math.round(_root.gameTime / 30)) + " seconds.";
_root.totalGameTime = _root.totalGameTime + _root.gameTime;
_root.tgTime.text = ("You've been playing for " + Math.round(_root.totalGameTime / 30)) + " seconds.";
_root.winTotal++;
Mouse.show();
_root.resetB._visible = false;
_root.congrats.gotoAndStop(1);
done = 0;
if ((_root.gameType == 1) && (_root.winTotal == 9)) {
done = 1;
_root.tgTime.text = ("Total game time was " + Math.round(_root.totalGameTime / 30)) + " seconds.";
}
if ((_root.gameType == 2) && (_root.winTotal == 21)) {
done = 1;
_root.tgTime.text = ("Total game time was " + Math.round(_root.totalGameTime / 30)) + " seconds.";
}
if (_root.gameType == 3) {
if (Math.round(_root.gameTime / 30) >= 300) {
_root.winTime._visible = false;
_root.tgTime.text = ("You've reached level " + (_root.winTotal - 1)) + " in 5 minutes.";
done = 1;
} else {
_root.tgTime.text = ("You have " + (300 - Math.round(_root.totalGameTime / 30))) + " seconds left.";
}
}
if (_root.gameType == 4) {
_root.tgTime._visible = false;
done = 1;
}
if (done == 1) {
_root.congrats.gotoAndStop(2);
_root.NextLvlB._visible = false;
_root.resetB._visible = true;
}
Instance of Symbol 101 MovieClip "resetB" in Frame 87
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.music.stop();
_root.gotoAndPlay("startFrame");
}
}
}
Instance of Symbol 103 MovieClip "NextLvlB" in Frame 87
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.music.stop();
_root.gotoAndPlay("lvlStartFrame");
}
}
}
Frame 88
stop();
Frame 91
stop();
Frame 103
stop();
Symbol 9 MovieClip Frame 1
stop();
Symbol 9 MovieClip Frame 2
stop();
Symbol 9 MovieClip Frame 3
stop();
Symbol 9 MovieClip Frame 4
stop();
Symbol 9 MovieClip Frame 5
stop();
Symbol 9 MovieClip Frame 6
stop();
Symbol 9 MovieClip Frame 7
stop();
Symbol 9 MovieClip Frame 8
stop();
Symbol 10 MovieClip [greenball] Frame 1
function onEnterFrame() {
if (_root.gameEnd == 0) {
if (_root.paused == false) {
this._x = this._x + (speed * xdir);
nextX = this._x + (speed * xdir);
if ((nextX < 0) || ((nextX + this._width) > width)) {
xdir = xdir * -1;
}
this._y = this._y + (speed * ydir);
nextY = this._y + (speed * ydir);
if ((nextY < 0) || ((nextY + this._height) > height)) {
ydir = ydir * -1;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.centerwall)) {
xdir = xdir * -1;
do {
this._x = this._x + (speed * xdir);
} while (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.centerwall));
}
}
} else {
this.removeMovieClip();
}
}
width = 550;
height = 400;
speed = (Math.random() * 4) + 2;
x = (this._x = (Math.random() * 225) + 25);
y = (this._y = (Math.random() * (height - 30)) + 15);
if (random(2)) {
xdir = -1;
} else {
xdir = 1;
}
if (random(2)) {
ydir = -1;
} else {
ydir = 1;
}
Symbol 19 MovieClip Frame 1
stop();
Symbol 19 MovieClip Frame 2
stop();
Symbol 19 MovieClip Frame 3
stop();
Symbol 19 MovieClip Frame 4
stop();
Symbol 19 MovieClip Frame 5
stop();
Symbol 19 MovieClip Frame 6
stop();
Symbol 19 MovieClip Frame 7
stop();
Symbol 19 MovieClip Frame 8
stop();
Symbol 20 MovieClip [blueball] Frame 1
function onEnterFrame() {
if (_root.gameEnd == 0) {
if (_root.paused == false) {
this._x = this._x + (speed * xdir);
nextX = this._x + (speed * xdir);
if ((nextX < 0) || ((nextX + this._width) > width)) {
xdir = xdir * -1;
}
this._y = this._y + (speed * ydir);
nextY = this._y + (speed * ydir);
if ((nextY < 0) || ((nextY + this._height) > height)) {
ydir = ydir * -1;
}
if (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.centerwall)) {
xdir = xdir * -1;
do {
this._x = this._x + (speed * xdir);
} while (com.gskinner.sprites.CollisionDetection.checkForCollision(this, _root.centerwall));
}
}
} else {
this.removeMovieClip();
}
}
width = 550;
height = 400;
speed = (Math.random() * 4) + 2;
x = (this._x = (Math.random() * 225) + 300);
y = (this._y = (Math.random() * (height - 30)) + 15);
if (random(2)) {
xdir = -1;
} else {
xdir = 1;
}
if (random(2)) {
ydir = -1;
} else {
ydir = 1;
}
Instance of Symbol 26 MovieClip in Symbol 29 MovieClip [introText] Frame 1
on (release) {
getURL ("http://AlbinoBlacksheep.com/", "_blank");
}
Instance of Symbol 28 MovieClip in Symbol 29 MovieClip [introText] Frame 1
on (release) {
getURL ("http://FlashSandbox.com/", "_blank");
}
Symbol 31 MovieClip Frame 1
function deadClick() {
}
function gotoMySite() {
getURL ("http://www.FlashSandbox.com", "_top");
}
stop();
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
var ABS = new ContextMenuItem("Authorized for use on AlbinoBlacksheep.com", deadClick);
var copyrightNotice = new ContextMenuItem("\u00A9 2006 FlashSandbox.com", deadClick);
var mySiteLink = new ContextMenuItem("FlashSandbox.com", gotoMySite);
myMenu.customItems.push(mySiteLink, copyrightNotice, ABS);
copyrightNotice.separatorBefore = true;
ABS.separatorBefore = true;
_root.menu = myMenu;
Symbol 109 MovieClip [__Packages.com.gskinner.sprites.CollisionDetection] Frame 0
class com.gskinner.sprites.CollisionDetection
{
function CollisionDetection () {
}
static function checkForCollision(p_clip1, p_clip2, p_alphaTolerance, p_scope) {
if (p_alphaTolerance == undefined) {
p_alphaTolerance = 255;
}
if (p_scope == undefined) {
p_scope = _root;
}
var _local4 = p_clip1.getBounds(p_scope);
var _local3 = p_clip2.getBounds(p_scope);
if (((_local4.xMax < _local3.xMin) || (_local3.xMax < _local4.xMin)) || ((_local4.yMax < _local3.yMin) || (_local3.yMax < _local4.yMin))) {
return(null);
}
var _local2 = {};
_local2.xMin = Math.max(_local4.xMin, _local3.xMin);
_local2.xMax = Math.min(_local4.xMax, _local3.xMax);
_local2.yMin = Math.max(_local4.yMin, _local3.yMin);
_local2.yMax = Math.min(_local4.yMax, _local3.yMax);
var _local9 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local5 = p_clip1.transform.matrix;
_local5.tx = p_clip1._x - _local2.xMin;
_local5.ty = p_clip1._y - _local2.yMin;
_local9.draw(p_clip1, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, p_alphaTolerance));
_local5 = p_clip2.transform.matrix;
_local5.tx = p_clip2._x - _local2.xMin;
_local5.ty = p_clip2._y - _local2.yMin;
_local9.draw(p_clip2, _local5, new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, p_alphaTolerance), "difference");
var _local6 = _local9.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
_local6.x = _local6.x + _local2.xMin;
_local6.y = _local6.y + _local2.yMin;
return(_local6);
}
}
Symbol 52 MovieClip Frame 1
stop();
Symbol 52 MovieClip Frame 2
stop();
Instance of Symbol 52 MovieClip in Symbol 53 MovieClip Frame 1
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gameType = 4;
if (((_parent.lvlInput.text != "0") && (_parent.lvlInput.text != "")) && (_parent.lvlInput.text < 21)) {
_root.winTotal = _parent.lvlInput.text;
_root.gotoAndPlay(84);
}
}
}
}
Symbol 55 MovieClip Frame 1
stop();
Symbol 55 MovieClip Frame 2
stop();
Symbol 57 MovieClip Frame 1
stop();
Symbol 57 MovieClip Frame 2
stop();
Symbol 59 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 2
stop();
Symbol 61 MovieClip Frame 1
stop();
Symbol 61 MovieClip Frame 2
stop();
Instance of Symbol 55 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gameType = 1;
_root.gotoAndPlay(44);
}
}
}
Instance of Symbol 57 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gameType = 2;
_root.gotoAndPlay(44);
}
}
}
Instance of Symbol 59 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_root.gameType = 3;
_root.gotoAndPlay(44);
}
}
}
Instance of Symbol 61 MovieClip in Symbol 62 MovieClip Frame 1
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
this.gotoAndStop(2);
} else {
this.gotoAndStop(1);
}
}
onClipEvent (mouseUp) {
if (this._visible) {
if (this.hitTest(_root._xmouse, _root._ymouse)) {
_parent._visible = false;
_parent._parent.levelSelect._visible = true;
}
}
}
Instance of Symbol 53 MovieClip "levelSelect" in Symbol 65 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
_root.levelSelect.lvlInput.restrict = "0-9";
}
Symbol 84 MovieClip Frame 1
stop();
Symbol 84 MovieClip Frame 2
stop();
Symbol 84 MovieClip Frame 3
stop();
Symbol 84 MovieClip Frame 4
stop();
Symbol 84 MovieClip Frame 5
stop();
Symbol 84 MovieClip Frame 6
stop();
Symbol 84 MovieClip Frame 7
stop();
Symbol 84 MovieClip Frame 8
stop();
Symbol 93 MovieClip Frame 1
stop();
Symbol 93 MovieClip Frame 2
stop();
Symbol 93 MovieClip Frame 3
stop();
Symbol 93 MovieClip Frame 4
stop();
Symbol 93 MovieClip Frame 5
stop();
Symbol 93 MovieClip Frame 6
stop();
Symbol 93 MovieClip Frame 7
stop();
Symbol 93 MovieClip Frame 8
stop();
Symbol 108 MovieClip Frame 1
stop();
Symbol 108 MovieClip Frame 2
stop();