Frame 1
function goto(str) {
if (str == "game") {
gotoAndStop (57);
} else if (str == "clearCache") {
gotoAndStop (53);
} else if (str == "menu") {
gotoAndStop (55);
} else if (str == "userLevels") {
gotoAndStop (56);
}
}
var myMenu = new ContextMenu();
myMenu.hideBuiltInItems();
_root.menu = myMenu;
stop();
Instance of Symbol 985 MovieClip in Frame 1
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
status.text = framesLoaded + " % completed";
if (framesLoaded >= 100) {
}
}
Frame 2
stop();
Instance of Symbol 985 MovieClip in Frame 25
onClipEvent (enterFrame) {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
framesLoaded = Math.ceil((loaded / total) * 100);
gotoAndStop(framesLoaded);
status.text = framesLoaded + " % completed";
if (framesLoaded >= 100) {
this.play();
}
}
Frame 50
stop();
Instance of Symbol 1019 MovieClip in Frame 52
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 53
var ach1 = false;
var ach2 = false;
var ach3 = false;
var ach4 = false;
var ach5 = false;
var ach6 = false;
var ach7 = false;
var ach8 = false;
var ach9 = false;
var ach10 = false;
var oldLevel = 1;
var oldDeaths = 0;
var oldName;
var oldMili = 0;
var oldSeconds = 0;
var oldMinutes = 0;
var oldMiliRec = 99;
var oldSecondsRec = 99;
var oldMinutesRec = 999;
var oldDeathsRec = 0;
var oldWinsRec = 0;
var oldLevelsRec = 0;
var levSet1 = false;
var levSet2 = false;
var levSet3 = false;
var levSet4 = false;
var levSet5 = false;
var levSet6 = false;
var levSet7 = false;
var levSet8 = false;
var levSet9 = false;
var levSet10 = false;
var prog = 0;
var savefile = SharedObject.getLocal("br5");
if (savefile.data.oldName == undefined) {
savefile.data.ach1 = ach1;
savefile.data.ach2 = ach2;
savefile.data.ach3 = ach3;
savefile.data.ach4 = ach4;
savefile.data.ach5 = ach5;
savefile.data.ach6 = ach6;
savefile.data.ach7 = ach7;
savefile.data.ach8 = ach8;
savefile.data.ach9 = ach9;
savefile.data.ach10 = ach10;
savefile.data.oldLevel = oldLevel;
savefile.data.oldDeaths = oldDeaths;
savefile.data.oldMili = oldMili;
savefile.data.oldSeconds = oldSeconds;
savefile.data.oldMinutes = oldMinutes;
savefile.data.oldMiliRec = oldMiliRec;
savefile.data.oldSecondsRec = oldSecondsRec;
savefile.data.oldMinutesRec = oldMinutesRec;
savefile.data.oldDeathsRec = oldDeathsRec;
savefile.data.oldWinsRec = oldWinsRec;
savefile.data.oldLevelsRec = oldLevelsRec;
savefile.data.levSet1 = levSet1;
savefile.data.levSet2 = levSet2;
savefile.data.levSet3 = levSet3;
savefile.data.levSet4 = levSet4;
savefile.data.levSet5 = levSet5;
savefile.data.levSet6 = levSet6;
savefile.data.levSet7 = levSet7;
savefile.data.levSet8 = levSet8;
savefile.data.levSet9 = levSet9;
savefile.data.levSet10 = levSet10;
savefile.data.prog = prog;
savefile.flush();
gotoAndStop (54);
} else {
ach1 = savefile.data.ach1;
ach2 = savefile.data.ach2;
ach3 = savefile.data.ach3;
ach4 = savefile.data.ach4;
ach5 = savefile.data.ach5;
ach6 = savefile.data.ach6;
ach7 = savefile.data.ach7;
ach8 = savefile.data.ach8;
ach9 = savefile.data.ach9;
ach10 = savefile.data.ach10;
oldLevel = savefile.data.oldLevel;
oldDeaths = savefile.data.oldDeaths;
oldName = savefile.data.oldName;
oldMili = savefile.data.oldMili;
oldSeconds = savefile.data.oldSeconds;
oldMinutes = savefile.data.oldMinutes;
oldMiliRec = savefile.data.oldMiliRec;
oldSecondsRec = savefile.data.oldSecondsRec;
oldMinutesRec = savefile.data.oldMinutesRec;
oldDeathsRec = savefile.data.oldDeathsRec;
oldWinsRec = savefile.data.oldWinsRec;
oldLevelsRec = savefile.data.oldLevelsRec;
prog = savefile.data.prog;
levSet1 = savefile.data.levSet1;
levSet2 = savefile.data.levSet2;
levSet3 = savefile.data.levSet3;
levSet4 = savefile.data.levSet4;
levSet5 = savefile.data.levSet5;
levSet6 = savefile.data.levSet6;
levSet7 = savefile.data.levSet7;
levSet8 = savefile.data.levSet8;
levSet9 = savefile.data.levSet9;
levSet10 = savefile.data.levSet10;
gotoAndStop (55);
}
Frame 54
stop();
Frame 55
stop();
Frame 56
function expand(str) {
str = str.split("");
var _local1 = 0;
while (_local1 < str.length) {
if (str[_local1] == "^") {
var _local5 = str[_local1 - 1];
var _local6 = (isNaN(str[_local1 + 1]) ? (num[str[_local1 + 1]]) : (str[_local1 + 1]));
var _local4 = [];
var _local2 = 0;
while (_local2 < _local6) {
_local4.push(_local5);
_local2++;
}
_local4 = _local4.join("");
str.splice(_local1 - 1, 3, _local4);
}
_local1++;
}
return(str.join(""));
}
function compact(str) {
var _local5 = 0;
while (_local5 <= 35) {
var _local4 = ((_local5 < 10) ? (_local5) : (hex[_local5]));
var _local1 = 35;
while (_local1 >= 3) {
var _local6 = ((_local1 < 10) ? (_local1) : (hex[_local1]));
var _local2 = [];
var _local3 = 0;
while (_local3 < _local1) {
_local2.push(_local4);
_local3++;
}
_local2 = _local2.join("");
var _local7 = [_local4, "^", _local6].join("");
str = str.split(_local2).join(_local7);
_local1--;
}
_local5++;
}
return(str);
}
function loadData(dat) {
container.removeMovieClip();
createEmptyMovieClip("container", depth.container);
container.attachMovie("TileBackground", "tileBackground", container.getNextHighestDepth());
container.createEmptyMovieClip("tiles", container.getNextHighestDepth());
container.tileBackground.setMask(container.tiles);
container.createEmptyMovieClip("objects", container.getNextHighestDepth());
var _local13 = new flash.filters.DropShadowFilter(4, 45, 0, 1, 5, 5, 0.72, 1, false, false, false);
container.filters = [_local13];
metadat = [];
var _local5 = dat.split("|");
var _local1 = 0;
while (_local1 < _local5.length) {
_local5[_local1] = _local5[_local1].split(":");
metadat[_local5[_local1][0]] = _local5[_local1][1];
_local1++;
}
metadat.r = (metadat.r ? (metadat.r) : (defaultRealm));
metadat.n = (metadat.n ? (metadat.n) : (defaultLevelName));
metadat.a = (metadat.a ? (metadat.a) : (defaultLevelAuthor));
attachMovie("Background", "bg", depth.bg);
bg.gotoAndStop(metadat.r);
container.tileBackground.gotoAndStop(metadat.r);
metadat.t = (metadat.t ? (metadat.t) : (defaultLevelTiles));
var _local11 = expand(metadat.t);
tile = [];
if (_local11.length != (numRows * numCollumns)) {
throw new Error("Invalid level data.");
_local11 = expand(defaultLevelTiles);
}
_local1 = 0;
while (_local1 < _local11.length) {
var _local8 = _local11.substr(_local1, numCollumns);
tile.push(_local8);
_local1 = _local1 + numCollumns;
}
_local1 = 0;
while (_local1 < tile.length) {
tile[_local1] = tile[_local1].split("");
var _local6 = 0;
while (_local6 < tile[_local1].length) {
if (tile[_local1][_local6] != 0) {
tile[_local1][_local6] = (isNaN(tile[_local1][_local6]) ? (num[tile[_local1][_local6]]) : (tile[_local1][_local6]));
var _local2 = container.tiles.attachMovie("Tile" + tile[_local1][_local6], "tile" + container.tiles.getNextHighestDepth(), container.tiles.getNextHighestDepth());
_local2._x = _local6 * tileWidth;
_local2._y = _local1 * tileHeight;
_local2._xscale = tileScaleX;
_local2._yscale = tileScaleY;
_local2.num = tile[_local1][_local6];
tile[_local1][_local6] = _local2;
}
_local6++;
}
_local1++;
}
objects = [];
if (metadat.o) {
var _local12 = expand(metadat.o);
var _local6 = 0;
while (_local6 < _local12.length) {
var _local3 = _local12.substr(_local6, 3);
_local3 = _local3.split("");
var _local7 = (isNaN(_local3[0]) ? (num[_local3[0]]) : (_local3[0]));
var _local10 = (isNaN(_local3[1]) ? (num[_local3[1]]) : (_local3[1]));
var _local9 = (isNaN(_local3[2]) ? (num[_local3[2]]) : (_local3[2]));
var _local4 = container.objects.attachMovie("Object" + _local7, "object" + container.objects.getNextHighestDepth(), container.objects.getNextHighestDepth());
_local4._x = (_local10 * tileWidth) + (tileWidth / 2);
_local4._y = (_local9 * tileHeight) + (tileHeight / 2);
_local4.num = _local7;
objects.push(_local4);
_local6 = _local6 + 3;
}
}
}
function saveData() {
var _local10 = [];
var _local14 = 0;
while (_local14 < tile.length) {
_local10[_local14] = [];
var _local2 = 0;
while (_local2 < tile[_local14].length) {
var _local5 = (tile[_local14][_local2].num ? (tile[_local14][_local2].num) : 0);
_local10[_local14][_local2] = ((_local5 < 10) ? (_local5) : (hex[_local5]));
_local2++;
}
_local10[_local14] = _local10[_local14].join("");
_local14++;
}
_local10 = compact(_local10.join(""));
metadat.t = _local10;
var _local12 = [];
_local14 = 0;
while (_local14 < objects.length) {
var _local11 = ((objects[_local14].num < 10) ? (objects[_local14].num) : (hex[objects[_local14].num]));
var _local2 = 0;
while (_local2 < numCollumns) {
var _local1 = 0;
while (_local1 < numRows) {
var _local4 = _local2 * tileWidth;
var _local3 = _local1 * tileHeight;
var _local7 = _local4 + tileWidth;
var _local6 = _local3 + tileHeight;
if ((((objects[_local14]._x > _local4) && (objects[_local14]._x < _local7)) && (objects[_local14]._y > _local3)) && (objects[_local14]._y < _local6)) {
var _local9 = ((_local2 < 10) ? (_local2) : (hex[_local2]));
var _local8 = ((_local1 < 10) ? (_local1) : (hex[_local1]));
}
_local1++;
}
_local2++;
}
_local12.push([_local11, _local9, _local8].join(""));
_local14++;
}
_local12 = _local12.join("");
_local12 = compact(_local12);
if (_local12) {
metadat.o = _local12;
}
var _local13 = [];
for (_local14 in metadat) {
_local13.push([_local14, metadat[_local14]].join(":"));
}
_local13 = _local13.join("|");
return(_local13);
}
function outlineTiles() {
var _local7 = 0;
while (_local7 < numCollumns) {
var _local4 = 0;
while (_local4 < numRows) {
var _local3 = _local7 * tileWidth;
var _local2 = _local4 * tileHeight;
var _local6 = _local3 + tileWidth;
var _local5 = _local2 + tileHeight;
if ((((_xmouse > _local3) && (_xmouse < _local6)) && (_ymouse > _local2)) && (_ymouse < _local5)) {
var _local1 = attachMovie("Outline", "outline" + getNextHighestDepth(), getNextHighestDepth());
_local1._x = _local3;
_local1._y = _local2;
_local1._xscale = tileScaleX;
_local1._yscale = tileScaleY;
outline = _local1;
}
_local4++;
}
_local7++;
}
}
function swapTiles() {
var _local3 = 0;
while (_local3 < numCollumns) {
var _local2 = 0;
while (_local2 < numRows) {
var _local5 = _local3 * tileWidth;
var _local4 = _local2 * tileHeight;
var _local7 = _local5 + tileWidth;
var _local6 = _local4 + tileHeight;
if ((((_xmouse > _local5) && (_xmouse < _local7)) && (_ymouse > _local4)) && (_ymouse < _local6)) {
if (choose != 0) {
var _local1 = container.tiles.attachMovie("Tile" + choose, "tile" + container.tiles.getNextHighestDepth(), container.tiles.getNextHighestDepth());
_local1._x = _local5;
_local1._y = _local4;
_local1._xscale = tileScaleX;
_local1._yscale = tileScaleY;
_local1.num = choose;
tile[_local2][_local3].removeMovieClip();
tile[_local2][_local3] = _local1;
} else {
tile[_local2][_local3].removeMovieClip();
}
}
_local2++;
}
_local3++;
}
}
function outlineObjects() {
var _local1 = 0;
while (_local1 < objects.length) {
if (objects[_local1].hitTest(_xmouse, _ymouse, true)) {
outline.removeMovieClip();
var _local2 = attachMovie("Outline", "outline" + getNextHighestDepth(), getNextHighestDepth());
_local2._x = objects[_local1]._x;
_local2._y = objects[_local1]._y;
_local2._width = (objects[_local1].fakeWidth ? (objects[_local1].fakeWidth) : (objects[_local1]._width)) + 5;
_local2._height = (objects[_local1].fakeHeight ? (objects[_local1].fakeHeight) : (objects[_local1]._height)) + 5;
_local2._x = _local2._x - (_local2._width / 2);
_local2._y = _local2._y - (_local2._height / 2);
outline = _local2;
}
_local1++;
}
}
function moveObjects() {
var _local1 = 0;
while (_local1 < objects.length) {
if (objects[_local1].hitTest(_xmouse, _ymouse, true)) {
startPlace(objects[_local1].num);
objects[_local1].removeMovieClip();
objects.splice(_local1, 1);
return(true);
}
_local1++;
}
return(false);
}
function startPlace(num) {
if (!placing) {
lastPlace = num;
var _local2 = container.objects.attachMovie("Object" + num, "object" + container.objects.getNextHighestDepth(), container.objects.getNextHighestDepth());
_local2._x = _xmouse;
_local2._y = _ymouse;
_local2.num = num;
placing = true;
objects.push(_local2);
Mouse.hide();
_local2.onEnterFrame = function () {
this._x = (Math.round(_xmouse / tileWidth) * tileWidth) - (tileWidth / 2);
this._y = (Math.round(_ymouse / tileHeight) * tileHeight) - (tileHeight / 2);
if (Key.isDown(46)) {
deleteObject(this);
}
};
dragobj = _local2;
}
}
function stopPlace() {
placing = false;
delete dragobj.onEnterFrame;
Mouse.show();
}
function deleteObject(obj) {
stopPlace();
var _local1 = 0;
while (_local1 < objects.length) {
if (objects[_local1] == obj) {
objects.splice(_local1, 1);
}
_local1++;
}
obj.removeMovieClip();
}
function editLevel() {
pauseScreen.removeMovieClip();
ballDeathAnim.removeMovieClip();
ballSpawnAnim.removeMovieClip();
ballWinAnim.removeMovieClip();
resetPowerups();
onEnterFrame = function () {
outline.removeMovieClip();
if (mouse && (!dialog.hitTest(_xmouse, _ymouse, true))) {
swapTiles();
}
if (((((!placing) && (!tools.hitTest(_xmouse, _ymouse, true))) && (!loginBar.hitTest(_xmouse, _ymouse, true))) && (!window.hitTest(_xmouse, _ymouse, true))) && (!mouse)) {
outlineTiles();
outlineObjects();
}
};
onMouseDown = function () {
if (((!tools.hitTest(_xmouse, _ymouse, true)) && (!loginBar.hitTest(_xmouse, _ymouse, true))) && (!window.hitTest(_xmouse, _ymouse, true))) {
if (placing) {
stopPlace();
if (Key.isDown(16)) {
startPlace(lastPlace);
}
} else if (!moveObjects()) {
mouse = true;
}
}
};
onMouseUp = function () {
mouse = false;
};
choose = defaultTile;
if (!tools) {
attachMovie("Tools", "tools", depth.tools);
tools._x = (tools._y = 25);
}
ball.removeMovieClip();
ballFollow.removeMovieClip();
}
function resetPowerups() {
for (var _local1 in objects) {
objects[_local1].onReset();
}
}
function spawnBall() {
spawnBallX = 50;
spawnBallY = 50;
for (var _local1 in objects) {
objects[_local1].onReset();
objects[_local1].onBallSpawn();
}
gamePaused = false;
var _local2 = attachMovie("BallSpawn", "ballSpawnAnim", depth.ballSpawn);
var sx = spawnBallX;
var sy = spawnBallY;
_local2._x = sx;
_local2._y = sy;
ballXV = (ballYV = 0);
_local2.onFinish = function () {
var _local1 = attachMovie("Ball", "ball", depth.ball);
_local1._x = sx;
_local1._y = sy;
};
}
function ballMovement() {
if (!ball) {
return(undefined);
}
if (ballControl) {
if (Key.isDown(37) || (Key.isDown(65))) {
ballXV = ballXV - ballSpeedX;
}
if (Key.isDown(39) || (Key.isDown(68))) {
ballXV = ballXV + ballSpeedX;
}
if (Key.isDown(38) || (Key.isDown(87))) {
ballYV = ballYV - ballSpeedY;
}
if (Key.isDown(40) || (Key.isDown(83))) {
ballYV = ballYV + ballSpeedY;
}
}
ballXV = ballXV * ballDrag;
ballYV = ballYV * ballDrag;
ballYV = ballYV + ballGravity;
ballXV = ((ballXV < 0) ? (Math.max(-ballMaxVelocity, ballXV)) : (Math.min(ballMaxVelocity, ballXV)));
ballYV = ((ballYV < 0) ? (Math.max(-ballMaxVelocity, ballYV)) : (Math.min(ballMaxVelocity, ballYV)));
ball._x = ball._x + (ballXV / ballVDiv);
ball._y = ball._y + (ballYV / ballVDiv);
ballFollow._x = ball._x;
ballFollow._y = ball._y;
ballFollow._xscale = ball._xscale;
ballFollow._yscale = ball._yscale;
ball._rotation = ball._rotation + ballXV;
if (ballFollow.rot) {
ballFollow._rotation = ball._rotation;
}
ball.peligro._rotation = ball.peligro._rotation + (ballXV * 4);
ball.peligro._alpha = Math.abs(ballXV * 5);
}
function checkColl(mc1, mc2) {
var _local9 = 255;
var _local4 = mc1.getBounds(_root);
var _local3 = mc2.getBounds(_root);
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 _local8 = new flash.display.BitmapData(_local2.xMax - _local2.xMin, _local2.yMax - _local2.yMin, false);
var _local5 = mc1.transform.concatenatedMatrix;
_local5.tx = _local5.tx - _local2.xMin;
_local5.ty = _local5.ty - _local2.yMin;
var _local7 = new flash.geom.ColorTransform(1, 1, 1, 1, 255, -255, -255, _local9);
_local8.draw(mc1, _local5, _local7);
_local5 = mc2.transform.concatenatedMatrix;
_local5.tx = _local5.tx - _local2.xMin;
_local5.ty = _local5.ty - _local2.yMin;
_local7 = new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, _local9);
_local8.draw(mc2, _local5, _local7, "difference");
var _local6 = _local8.getColorBoundsRect(4294967295, 4278255615);
if (_local6.width == 0) {
return(null);
}
if (!_local6) {
return(null);
}
_local6.x = _local6.x + _local2.xMin;
_local6.y = _local6.y + _local2.yMin;
return(_local6);
}
function ballCollisions() {
for (var _local2 in objects) {
var _local1 = objects[_local2];
if (_local1.collMode == "bitmap") {
if (checkColl(_local1, ball)) {
_local1.onBallCollision();
}
} else if (_local1.collMode == "ballPoint") {
if (_local1.hitTest(ball._x, ball._y, true)) {
_local1.onBallCollision();
}
} else if (_local1.collMode == "objPoint") {
if (ball.hitTest(_local1._x, _local1._y, true)) {
_local1.onBallCollision();
}
} else if (_local1.collMode == "none") {
} else if (ball.hitTest(_local1)) {
_local1.onBallCollision();
}
}
if ((ball._x + ballRad) > stageWidth) {
die();
return(undefined);
}
if ((ball._x - ballRad) < 0) {
die();
return(undefined);
}
if ((ball._y + ballRad) > stageHeight) {
die();
return(undefined);
}
if ((ball._y - ballRad) < 0) {
die();
return(undefined);
}
container.tileBackground.setMask(null);
var _local3 = ball.filters;
ball.filters = [];
if (checkColl(ball, container.tiles)) {
die();
}
ball.filters = _local3;
container.tileBackground.setMask(container.tiles);
}
function ballAttach(link, rotate) {
ballFollow.removeMovieClip();
if (!link) {
return(undefined);
}
createEmptyMovieClip("ballFollow", depth.ballFollow);
ballFollow.link = link;
ballFollow.rot = rotate;
var _local2 = ballFollow.attachMovie(link, "attach" + ballFollow.getNextHighestDepth(), ballFollow.getNextHighestDepth());
for (var _local1 in objects) {
objects[_local1].onBallAttachChange();
}
return(_local2);
}
function die(hideAnim) {
for (var _local1 in objects) {
objects[_local1].onBallDeath();
}
if (!hideAnim) {
var _local2 = attachMovie("BallDeath", "ballDeathAnim", depth.ballDeathWin);
_local2._x = ball._x;
_local2._y = ball._y;
}
ball.removeMovieClip();
ballFollow.removeMovieClip();
spawnBall();
}
function win(x, y) {
for (var _local1 in objects) {
objects[_local1].onReset();
objects[_local1].onLevelWin();
}
var _local2 = attachMovie("BallWin", "ballWinAnim", depth.ballDeathWin);
_local2._x = x;
_local2._y = y;
ball.removeMovieClip();
ballFollow.removeMovieClip();
levelExit.removeMovieClip();
gamePaused = true;
if (bredMode == "userlevels") {
attachMovie("LevelWinWindow", "window2", depth.window2);
} else {
spawnBall();
}
}
function pauseGame() {
if (gamePaused) {
return(undefined);
}
gamePaused = true;
var _local3 = new flash.display.BitmapData(stageWidth, stageHeight);
_local3.draw(this);
attachMovie("Pause", "pauseScreen", getNextHighestDepth());
levelExit.swapDepths(getNextHighestDepth());
pauseScreen.attachBitmap(_local3, -100);
pauseScreen.onEnterFrame = function () {
this.swapDepths(getNextHighestDepth());
};
for (var _local2 in objects) {
objects[_local2].onGamePause();
}
}
function unPauseGame() {
if (!gamePaused) {
return(undefined);
}
gamePaused = false;
pauseScreen.removeMovieClip();
for (var _local1 in objects) {
objects[_local1].onGameUnPause();
}
}
function formatTime(t) {
var _local2 = Math.round((t / frameRate) * 100);
var _local1 = 0;
var _local3 = 0;
while (_local2 >= 100) {
_local1++;
_local2 = _local2 - 100;
}
while (_local1 >= 60) {
_local3++;
_local1 = _local1 - 60;
}
if (_local1 < 10) {
_local1 = "0" + _local1;
}
if (_local3 < 10) {
_local3 = "0" + _local3;
}
if (_local2 < 10) {
_local2 = "0" + _local2;
}
return((((_local3 + ":") + _local1) + ":") + _local2);
}
function playLevel() {
time = 0;
onEnterFrame = function () {
if (!(window || (window2))) {
if (Key.isDown(80) && (!phold)) {
phold = true;
if (gamePaused) {
unPauseGame();
} else {
pauseGame();
}
}
}
if (!Key.isDown(80)) {
phold = false;
}
if (gamePaused) {
return(undefined);
}
ballCollisions();
ballMovement();
time++;
};
delete onMouseDown;
delete onMouseUp;
outline.removeMovieCLip();
setTimeout(spawnBall, 1);
}
function openLoginBar() {
if (loginBarOpen) {
return(undefined);
}
loginBarOpen = true;
loginBar.removeMovieClip();
attachMovie("LoginBar", "loginBar", depth.loginBar);
}
function closeLoginBar() {
if (!loginBarOpen) {
return(undefined);
}
loginBarOpen = false;
loginBar.gotoAndPlay("close");
}
function sharedObjectInit() {
so = SharedObject.getLocal("BRED");
if (so.data.setup) {
return(undefined);
}
so.data.setup = true;
so.data.loggedIn = false;
so.data.username = undefined;
so.data.userID = undefined;
so.data.password = undefined;
so.data.moderator = undefined;
}
function handleError(err) {
if (err == "CONNECTION_ERROR") {
var _local2 = attachMovie("Error", "error" + getNextHighestDepth(), getNextHighestDepth());
_local2.err = "There was an error connecting to the server. Please try again later.";
}
if (err == "USER_BANNED") {
var _local2 = attachMovie("Error", "error" + getNextHighestDepth(), getNextHighestDepth());
_local2.err = "Your account has been banned from Ball Revamped. Please wait until your ban has been lifted.";
}
trace(err);
}
function login(callbackMC, user, pass) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.username = user;
_local3.password = pass;
_local4.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
so.data.userID = this.user_id;
so.data.moderator = this.moderator;
so.data.username = user;
so.data.password = pass;
so.data.loggedIn = true;
if (loginBar) {
closeLoginBar();
openLoginBar();
}
for (var _local2 in loginSuscriptions) {
checkLoggedIn(loginSuscriptions[_local2]);
}
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local3.sendAndLoad(serverURL + "login.php", _local4, "POST");
}
function register(callbackMC, user, pass, email) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.username = user;
_local2.password = pass;
_local2.email = email;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "register.php", _local3, "POST");
}
function resetPassword(callbackMC, username, email) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.username = username;
_local2.email = email;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "forgot-password.php", _local3, "POST");
}
function getAccountInfo(callbackMC, id) {
var _local3 = new LoadVars();
var _local4 = new LoadVars();
_local3.username = so.data.username;
_local3.password = so.data.password;
_local3.info_user_id = (id ? (id) : (so.data.userID));
_local4.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onReceive({}, this.error);
handleError(this.error);
} else {
var _local2 = {};
if (this.email) {
_local2.email = this.email;
}
_local2.location = this.location;
_local2.realName = this.real_name;
_local2.description = this.description;
_local2.username = this.username;
if (this.ip) {
_local2.ip = this.ip;
}
callbackMC.onReceive(_local2, false);
}
} else {
callbackMC.onReceive({}, "CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local3.sendAndLoad(serverURL + "user-info.php", _local4, "POST");
}
function banUser(callbackMC, id, len) {
var _local3 = new LoadVars();
var _local2 = new LoadVars();
_local2.ban_user_id = id;
_local2.ban_length = len;
_local2.username = so.data.username;
_local2.password = so.data.password;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onBanSend(this.error);
handleError(this.error);
} else {
callbackMC.onBanSend(false);
}
} else {
callBackMC.onBanSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "ban-user.php", _local3, "POST");
}
function changeAccountDetails(callbackMC, pass, newPass, email, realName, location, description, id) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.username = so.data.username;
_local2.password = pass;
_local2.edit_user_id = (id ? (id) : (so.data.userID));
_local2.new_password = newPass;
_local2.email = email;
_local2.real_name = realName;
_local2.location = location;
_local2.description = description;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
if (newPass) {
so.data.password = newPass;
}
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "edit-user.php", _local3, "POST");
}
function logout() {
so.data.loggedIn = false;
so.data.username = undefined;
so.data.userID = undefined;
so.data.password = undefined;
so.data.moderator = undefined;
if (loginBar) {
closeLoginBar();
openLoginBar();
}
for (var _local1 in loginSuscriptions) {
checkLoggedIn(loginSuscriptions[_local1]);
}
}
function checkLoggedIn(callbackMC, suscribe) {
if (so.data.loggedIn) {
callbackMC.onCheck(true, so.data.username);
} else {
callbackMC.onCheck(false, undefined);
}
if (suscribe) {
loginSuscriptions.push(callbackMC);
}
}
function submitLevel(callbackMC) {
var _local3 = new LoadVars();
var _local2 = new LoadVars();
_local2.data = saveData();
_local2.username = so.data.username;
_local2.password = so.data.password;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "submit-level.php", _local3, "POST");
}
function openLoginWindow() {
window.removeMovieClip();
attachMovie("LoginWindow", "window", depth.window);
}
function openAccountWindow() {
window.removeMovieClip();
attachMovie("AccountWindow", "window", depth.window);
}
function openRegisterWindow() {
window.removeMovieClip();
attachMovie("RegisterWindow", "window", depth.window);
}
function openForgotPasswordWindow() {
window.removeMovieClip();
attachMovie("ForgotPasswordWindow", "window", depth.window);
}
function openUserProfileWindow(userID) {
window.removeMovieClip();
attachMovie("UserProfileWindow", "window", depth.window);
window.userID = userID;
}
function getLevelBitmapData(dat) {
loadData(dat);
var _local2 = new flash.display.BitmapData(stageWidth, stageHeight);
levelList._visible = false;
loginBar._visible = false;
window._visible = false;
_local2.draw(this);
loginBar._visible = true;
window._visible = true;
levelList._visible = true;
return(_local2);
}
function loadLevelListData(callbackMC, page, limit, orderBy, order) {
var _local5 = new LoadVars();
var _local6 = new LoadVars();
_local5.page = page;
_local5.limit = limit;
_local5.order_by = orderBy;
_local5.order = order;
_local6.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onReceive(this.error);
handleError(this.error);
} else {
var _local4 = [];
var _local2 = 1;
while (_local2 <= this.num) {
var _local3 = [];
_local3.name = this[("l" + _local2) + "_name"];
_local3.data = this[("l" + _local2) + "_data"];
_local3.date = this[("l" + _local2) + "_date"];
_local3.views = this[("l" + _local2) + "_views"];
_local3.rating = this[("l" + _local2) + "_rating"];
_local3.difficulty_rating = this[("l" + _local2) + "_difficulty_rating"];
_local3.flagged = this[("l" + _local2) + "_flagged"];
_local3.flagger = this[("l" + _local2) + "_flagger"];
_local3.flag_reason = this[("l" + _local2) + "_flag_reason"];
_local3.author = this[("l" + _local2) + "_author"];
_local3.author_id = this[("l" + _local2) + "_author_id"];
_local3.id = this[("l" + _local2) + "_level_id"];
_local4.push(_local3);
_local2++;
}
callbackMC.onReceive(false, _local4, this.pages);
}
} else {
callbackMC.onReceive("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local5.sendAndLoad(serverURL + "level-list.php", _local6, "POST");
}
function getTimes(callbackMC, id) {
var _local5 = new LoadVars();
var _local6 = new LoadVars();
_local5.level_id = id;
_local6.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onReceive(this.error);
handleError(this.error);
} else {
var _local4 = [];
var _local2 = 1;
while (_local2 <= this.num) {
var _local3 = {};
_local3.name = this[("l" + _local2) + "_name"];
_local3.time = this[("l" + _local2) + "_time"];
_local3.date = this[("l" + _local2) + "_date"];
_local3.userID = this[("l" + _local2) + "_user_id"];
_local4.push(_local3);
_local2++;
}
callbackMC.onReceive(false, _local4);
}
} else {
callbackMC.onReceive("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local5.sendAndLoad(serverURL + "get-times.php", _local6, "POST");
}
function deleteLevel(callbackMC, id) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.username = so.data.username;
_local2.password = so.data.password;
_local2.level_id = id;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onDeleteLevel(this.error);
handleError(this.error);
} else {
callbackMC.onDeleteLevel(false);
}
} else {
callbackMC.onDeleteLevel("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "delete-level.php", _local3, "POST");
}
function rateLevel(callbackMC, id, rating, difficulty) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.username = so.data.username;
_local2.password = so.data.password;
_local2.level_id = id;
_local2.rating = rating;
_local2.difficulty_rating = difficulty;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "rate-level.php", _local3, "POST");
}
function recordTime(callbackMC, id, time) {
var _local2 = new LoadVars();
var _local3 = new LoadVars();
_local2.username = so.data.username;
_local2.password = so.data.password;
_local2.level_id = id;
_local2.time = time;
_local3.onLoad = function (success) {
if (success) {
if (this.error) {
callbackMC.onSend(this.error);
handleError(this.error);
} else {
callbackMC.onSend(false);
}
} else {
callbackMC.onSend("CONNECTION_ERROR");
handleError("CONNECTION_ERROR");
}
};
_local2.sendAndLoad(serverURL + "record-time.php", _local3, "POST");
}
function playUserLevel(dat, id) {
levelID = id;
levelList._visible = false;
levelList._x = stageWidth;
loadData(dat);
playLevel();
attachMovie("LevelExit", "levelExit", depth.tools);
var _local1 = new LoadVars();
_local1.level_id = id;
_local1.sendAndLoad(serverURL + "inc-views.php", new LoadVars(), "POST");
}
function exitUserLevel() {
resetPowerups();
gamePaused = true;
levelExit.removeMovieClip();
pauseScreen.removeMovieClip();
attachMovie("LevelLooseWindow", "window2", depth.window2);
}
function openUserLevels() {
pauseScreen.removeMovieClip();
ballDeathAnim.removeMovieClip();
ballSpawnAnim.removeMovieClip();
ballWinAnim.removeMovieClip();
delete onEnterFrame;
delete onMouseDown;
delete onMouseUp;
window2.removeMovieClip();
outline.removeMovieClip();
ball.removeMovieClip();
ballFollow.removeMovieClip();
if (!levelList) {
attachMovie("LevelList", "levelList", depth.levelList);
} else {
levelList._visible = true;
levelList._x = 0;
}
openLoginBar();
}
function exit() {
delete onMouseDown;
delete onMouseUp;
delete onEnterFrame;
for (var _local3 in this) {
this[_local3].removeMovieClip();
}
_root.goto("menu");
}
var num = [];
num.A = 10;
num.B = 11;
num.C = 12;
num.D = 13;
num.E = 14;
num.F = 15;
num.G = 16;
num.H = 17;
num.I = 18;
num.J = 19;
num.K = 20;
num.L = 21;
num.M = 22;
num.N = 23;
num.O = 24;
num.P = 25;
num.Q = 26;
num.R = 27;
num.S = 28;
num.T = 29;
num.U = 30;
num.V = 31;
num.W = 32;
num.X = 33;
num.Y = 34;
num.Z = 35;
var hex = [];
hex[10] = "A";
hex[11] = "B";
hex[12] = "C";
hex[13] = "D";
hex[14] = "E";
hex[15] = "F";
hex[16] = "G";
hex[17] = "H";
hex[18] = "I";
hex[19] = "J";
hex[20] = "K";
hex[21] = "L";
hex[22] = "M";
hex[23] = "N";
hex[24] = "O";
hex[25] = "P";
hex[26] = "Q";
hex[27] = "R";
hex[28] = "S";
hex[29] = "T";
hex[30] = "U";
hex[31] = "V";
hex[32] = "W";
hex[33] = "X";
hex[34] = "Y";
hex[35] = "Z";
var numCollumns = 20;
var numRows = 25;
var stageWidth = 400;
var stageHeight = 550;
var tileDrawnWidth = 50;
var tileDrawnHeight = 50;
var tileWidth = (stageWidth / numCollumns);
var tileHeight = (stageHeight / numRows);
var tileScaleX = ((tileWidth / tileDrawnWidth) * 100);
var tileScaleY = ((tileHeight / tileDrawnHeight) * 100);
var defaultRealm = 1;
var defaultLevelName = "Level Name";
var defaultLevelAuthor = "Level Author";
var defaultLevelTiles = "0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^Z0^P0^K";
var realmNames = ["Realm 1", "Realm 2", "Realm 3", "Realm 4", "Realm 5", "Realm 6", "Realm 7", "Realm 8", "Realm 9", "Realm 10"];
var numRealms = realmNames.length;
var defaultTile = 1;
var ballRad = 17;
var ballXV = 0;
var ballYV = 0;
var ballGravity = 0.3;
var ballDrag = 1;
var ballSpeedX = 0.5;
var ballSpeedY = 1;
var ballMaxVelocity = 30;
var gamePaused = false;
var time = 0;
var frameRate = 38;
var ballVDiv = 1;
var ballControl = true;
var depth = [];
depth.bg = 10;
depth.container = 11;
depth.ball = 12;
depth.ballFollow = 13;
depth.ballDeathWin = 14;
depth.ballSpawn = 15;
depth.tools = 16;
depth.levelList = 17;
depth.window2 = 18;
depth.loginBar = 19;
depth.window = 20;
var loginBarOpen = false;
var serverURL = "http://www.tastylamp.net/flashback/brv/";
var loginSuscriptions = [];
var metadat;
var tile;
var objects;
var outline;
var placing;
var mouse;
var choose;
var dragobj;
var dat;
var so;
var spawnBallX;
var spawnBallY;
var phold;
var levelID;
var lastPlace;
sharedObjectInit();
if (bredMode == "editor") {
loadData();
editLevel();
} else if (bredMode == "userlevels") {
openUserLevels();
}
stop();
Frame 57
function achievements() {
if (xMov > 40) {
trace("HI");
}
if ((!ach1) && (combo == 3)) {
topBar.achScreen.removeMovieClip();
ach1 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "HAT TRICK";
shel.reasoning = "Beat three levels without dying";
}
if (((!ach4) && ((xMov > 40) || (yMov > 40))) && (currentPowerUp != "mud")) {
topBar.achScreen.removeMovieClip();
ach4 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "LUDICROUS SPEED";
shel.reasoning = "Reach 2.5 kph";
shel.achPatches.gotoAndStop(4);
}
if (((((((((((!ach7) && (levSet1)) && (levSet2)) && (levSet3)) && (levSet4)) && (levSet5)) && (levSet6)) && (levSet7)) && (levSet8)) && (levSet9)) && (levSet10)) {
topBar.achScreen.removeMovieClip();
ach7 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "COMPLETIONIST";
shel.reasoning = "Play every level set";
shel.achPatches.gotoAndStop(7);
}
if ((!ach9) && (deathBlooms == 10)) {
topBar.achScreen.removeMovieClip();
ach9 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "SHE LOVES ME NOT";
shel.reasoning = "Die 10 times with flower";
shel.achPatches.gotoAndStop(9);
}
}
function timer() {
tMili = tMili + (100 / frameRate);
if (tMili >= 100) {
tMili = tMili - 100;
tSeconds++;
}
if (tSeconds >= 60) {
tSeconds = tSeconds - 60;
tMinutes++;
}
tMiliDisp = String(Math.floor(tMili));
tSecondsDisp = String(Math.floor(tSeconds));
tMinutesDisp = String(Math.floor(tMinutes));
if (tMili < 10) {
tMiliDisp = "0" + tMiliDisp;
}
if (tSeconds < 10) {
tSecondsDisp = "0" + tSecondsDisp;
}
if (tMinutes < 10) {
tMinutesDisp = "0" + tMinutesDisp;
}
timerDisp = (((tMinutesDisp + ":") + tSecondsDisp) + ":") + tMiliDisp;
}
function levelTimer() {
lMili = lMili + (100 / frameRate);
if (lMili >= 100) {
lMili = lMili - 100;
lSeconds++;
}
if (lSeconds >= 60) {
lSeconds = lSeconds - 60;
lMinutes++;
}
lMiliDisp = String(Math.floor(lMili));
lSecondsDisp = String(Math.floor(lSeconds));
lMinutesDisp = String(Math.floor(lMinutes));
if (lMili < 10) {
lMiliDisp = "0" + lMiliDisp;
}
if (lSeconds < 10) {
lSecondsDisp = "0" + lSecondsDisp;
}
if (lMinutes < 10) {
lMinutesDisp = "0" + lMinutesDisp;
}
levelTimeDisp = (((lMinutesDisp + ":") + lSecondsDisp) + ":") + lMiliDisp;
}
function movement() {
if (currentPowerUp != "ice") {
if (Key.isDown(37) || (Key.isDown(65))) {
xMov = xMov - xTravel;
} else if (Key.isDown(39) || (Key.isDown(68))) {
xMov = xMov + xTravel;
}
if (Key.isDown(40) || (Key.isDown(83))) {
yMov = yMov + yTravel;
} else if (Key.isDown(38) || (Key.isDown(87))) {
yMov = yMov - yTravel;
}
}
if (currentPowerUp == "mud") {
ball._x = ball._x + (xMov / 8);
ball._y = ball._y + (yMov / 8);
} else {
ball._x = ball._x + xMov;
ball._y = ball._y + yMov;
}
if (currentPowerUp != "ice") {
yMov = yMov + gravity;
}
ball._rotation = ball._rotation + xMov;
ball.peligro._rotation = ball.peligro._rotation + (xMov * 4);
ball.peligro._alpha = Math.abs(xMov * 5);
}
function scrollCam() {
topBar._x = camera._x - 200;
topBar._y = camera._y - 275;
if ((viewMode == "scrolling") && (ballActive)) {
camera._x = camera._x - (0.3 * ((camera._x - ball._x) / 2));
camera._y = camera._y - (0.3 * ((camera._y - ball._y) / 2));
} else if ((viewMode == "scrolling") && (!ballActive)) {
camera._x = camera._x - (0.3 * ((camera._x - starter._x) / 2));
camera._y = camera._y - (0.3 * ((camera._y - starter._y) / 2));
}
}
function collision() {
if (((hitFocus == "ball") && (dynamicHitTest(ball, _root["level" + level]))) && (ballActive == true)) {
spawnBall();
} else if (((hitFocus == "powerUp") && (dynamicHitTest(follower, _root["level" + level]))) && (ballActive == true)) {
spawnBall();
}
}
function topBarStuff() {
if (ballActive) {
topBar.bigBall._rotation = topBar.bigBall._rotation + (xMov / 4);
topBar.bigBall._x = ball._x;
topBar.bigBall._y = ball._y;
} else {
topBar.bigBall._rotation = topBar.bigBall._rotation - (0.5 * (topBar.bigBall._rotation / 2));
topBar.bigBall._x = topBar.bigBall._x - (0.5 * ((topBar.bigBall._x - starter._y) / 2));
topBar.bigBall._y = topBar.bigBall._y - (0.5 * ((topBar.bigBall._y - starter._y) / 2));
}
}
function dynamicHitTest(mover, station) {
if (ballActive) {
with (mover) {
if (((station.hitTest(getBounds(_root).xMax, mover._y, true) || (station.hitTest(getBounds(_root).xMin, mover._y, true))) || (station.hitTest(mover._x, getBounds(_root).yMax, true))) || (station.hitTest(mover._x, getBounds(_root).yMin, true))) {
return(true);
}
return(false);
}
}
}
function spawnBall() {
death();
spawnBallGoal();
}
function spawnBallGoal() {
shel = attachMovie("ball_spawn", "ball_spawn" + k, k++);
shel._x = starter._x;
shel._y = starter._y;
}
function attachBall() {
shel = _root.attachMovie("ball", "ball", k++);
shel._x = starter._x;
shel._y = starter._y;
shel = _root.attachMovie("follower", "follower", k++);
ballActive = true;
}
function hitGoal() {
if (dynamicHitTest(ball, goal)) {
ballActive = false;
commonSpawn();
shel = attachMovie("ball_goal", "ball_goal", k++);
shel._x = goal._x;
shel._y = goal._y;
addMessage((("Level " + level) + " finished, time: ") + levelTimeDisp);
if ((!ach2) && (lSeconds < 3)) {
topBar.achScreen.removeMovieClip();
ach2 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "SPEED DEMON";
shel.reasoning = "Level in less than 3 seconds";
shel.achPatches.gotoAndStop(2);
}
lMili = 0;
lSeconds = 0;
lMinutes = 0;
combo++;
deathBlooms = 0;
levelDeaths = 0;
shel = topBar.attachMovie("transition", "transition", k++);
}
if (dynamicHitTest(ball, goalA)) {
stopAllSounds();
if (_root.level == 10) {
nextLevel = 10;
}
if (_root.level == 20) {
nextLevel = 20;
}
if (_root.level == 30) {
nextLevel = 30;
}
if (_root.level == 40) {
nextLevel = 90;
}
if (_root.level == 50) {
nextLevel = 20;
}
if (_root.level == 60) {
nextLevel = 30;
}
if (_root.level == 70) {
nextLevel = 20;
}
if (_root.level == 80) {
nextLevel = 90;
}
if (_root.level == 90) {
nextLevel = 90;
}
ballActive = false;
commonSpawn();
shel = attachMovie("ball_goal", "ball_goal", k++);
shel._x = goalA._x;
shel._y = goalA._y;
addMessage((("Level " + level) + " finished, time: ") + levelTimeDisp);
lMili = 0;
lSeconds = 0;
lMinutes = 0;
deathBlooms = 0;
shel = topBar.attachMovie("transition", "transition", k++);
if ((!ach3) && (levelDeaths == 0)) {
topBar.achScreen.removeMovieClip();
ach3 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "Big Safe Level";
shel.reasoning = "Beat a huge level without dying";
shel.achPatches.gotoAndStop(3);
}
}
if (dynamicHitTest(ball, goalB)) {
stopAllSounds();
if (_root.level == 10) {
nextLevel = 40;
}
if (_root.level == 20) {
nextLevel = 50;
}
if (_root.level == 30) {
nextLevel = 70;
}
if (_root.level == 50) {
nextLevel = 50;
}
if (_root.level == 60) {
nextLevel = 80;
}
if (_root.level == 70) {
nextLevel = 50;
}
ballActive = false;
commonSpawn();
shel = attachMovie("ball_goal", "ball_goal", k++);
shel._x = goalB._x;
shel._y = goalB._y;
addMessage((("Level " + level) + " finished, time: ") + levelTimeDisp);
lMili = 0;
lSeconds = 0;
lMinutes = 0;
deathBlooms = 0;
shel = topBar.attachMovie("transition", "transition", k++);
if ((!ach3) && (levelDeaths == 0)) {
topBar.achScreen.removeMovieClip();
ach3 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "SAFE";
shel.reasoning = "Beat a huge level without dying";
shel.achPatches.gotoAndStop(3);
}
}
if (dynamicHitTest(ball, goalC)) {
stopAllSounds();
if (_root.level == 10) {
nextLevel = 60;
}
ballActive = false;
commonSpawn();
shel = attachMovie("ball_goal", "ball_goal", k++);
shel._x = goalC._x;
shel._y = goalC._y;
addMessage((("Level " + level) + " finished, time: ") + levelTimeDisp);
lMili = 0;
lSeconds = 0;
lMinutes = 0;
shel = topBar.attachMovie("transition", "transition", k++);
if ((!ach3) && (levelDeaths == 0)) {
topBar.achScreen.removeMovieClip();
ach3 = true;
shel = topBar.attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "SAFE";
shel.reasoning = "Beat a huge level without dying";
shel.achPatches.gotoAndStop(3);
}
}
}
function death() {
if (currentPowerUp == "flower") {
deathBlooms++;
}
ballActive = false;
shel = attachMovie("ball_die", "ball_die" + k, k++);
shel._x = ball._x;
shel._y = ball._y;
shel._xscale = ball._xscale;
shel._yscale = ball._yscale;
shel._rotation = ball._rotation;
deaths++;
levelDeaths++;
shel = _root.attachMovie("monkeyPoo", "g" + _root.k, _root.k++);
shel._visible = false;
globalReset = true;
oldDeathsRec++;
torch.removeMovieClip();
combo = 0;
addMessage(((("deaths: " + deaths) + " (") + levelDeaths) + " this level)");
commonSpawn();
}
function commonSpawn() {
follower.removeMovieClip();
ball.removeMovieClip();
powerUp.removeMovieClip();
_root["level" + _root.level]._rotation = 0;
currentPowerUp = "nothing";
xMov = 0;
gravity = origGrav;
yMov = 0;
_xscale = 100;
_yscale = 100;
bActive = false;
pActive = false;
rActive = false;
gActive = false;
hitFocus = "ball";
}
function changeLevel() {
if ((level % 10) == 0) {
level = nextLevel;
trace(nextLevel);
if (!bossMode) {
level++;
}
prog = prog + 2;
trace(prog);
oldLevelsRec++;
gotoAndStop(level +56);
globalReset = true;
levelName = levelArray[level - 1];
} else {
if (!bossMode) {
level++;
}
prog = prog + 2;
oldLevelsRec++;
levelName = levelArray[level - 1];
_root.nextFrame();
globalReset = true;
}
}
function changePowerUp(mc, newClip) {
mc.powerUpGrabbed = true;
shel = mc.attachMovie("powerUp_ring", "prR" + _root.k, _root.k++);
powerUp.removeMovieClip();
follower.powerUp.removeMovieClip();
switch (newClip) {
case "b" :
bActive = true;
follower.blue.play();
break;
case "r" :
rActive = true;
follower.red.play();
break;
case "g" :
gActive = true;
follower.green.play();
break;
case "p" :
pActive = true;
follower.purple.play();
}
ball._xscale = 100;
ball._yscale = 100;
gravity = origGrav;
if (((bActive && (rActive)) && (gActive)) && (pActive)) {
for (obj in _root) {
if (typeof(_root[obj]) == "movieclip") {
_root[obj].removeMovieClip();
}
}
onEnterFrame = null;
stopAllSounds();
gotoAndPlay (158);
} else if ((((!bActive) && (rActive)) && (gActive)) && (pActive)) {
tap = 6710886 /* 0x666666 */;
shel = attachMovie("screenShrink", "powerUp", _root.k++);
shel._x = ball._x;
shel._y = ball._x;
hitFocus = "ball";
currentPowerUp = "screenShrink";
} else if (((bActive && (!rActive)) && (gActive)) && (pActive)) {
addMessage("Jellyfish Power Up!");
tap = 6710886 /* 0x666666 */;
shel = attachMovie("jelly", "powerUp", _root.k++);
shel._x = ball._x;
shel._y = ball._x;
hitFocus = "ball";
currentPowerUp = "jellyfish";
} else if (((bActive && (rActive)) && (!gActive)) && (pActive)) {
addMessage("Rotation Power Up!");
tap = 6710886 /* 0x666666 */;
shel = follower.attachMovie("rotateMe", "powerUp", _root.k++);
shel._x = 0;
shel._y = 0;
hitFocus = "ball";
currentPowerUp = "rotation";
} else if (((bActive && (rActive)) && (gActive)) && (!pActive)) {
addMessage("Wall Hugger Power Up!");
tap = 10401744 /* 0x9EB7D0 */;
currentPowerUp = "wallHugger";
hitFocus = "ball";
} else if ((((!bActive) && (!rActive)) && (gActive)) && (pActive)) {
addMessage("Rock Power Up!");
tap = 6710886 /* 0x666666 */;
shel = follower.attachMovie("rock", "powerUp", _root.k++);
shel._x = 0;
shel._y = 0;
hitFocus = "ball";
} else if ((((!bActive) && (rActive)) && (!gActive)) && (pActive)) {
addMessage("Forest Fire Power Up!");
tap = 60928;
shel = follower.attachMovie("bigFire", "powerUp", _root.k++);
shel._x = 0;
shel._y = 0;
hitFocus = "ball";
} else if ((((!bActive) && (rActive)) && (gActive)) && (!pActive)) {
addMessage("Bomb Power Up!");
tap = 60928;
shel = follower.attachMovie("bombRing", "powerUp", _root.k++);
shel._x = 0;
shel._y = 0;
hitFocus = "ball";
} else if (((bActive && (!rActive)) && (!gActive)) && pActive) {
addMessage("Ice Power Up!");
tap = 16777215 /* 0xFFFFFF */;
shel = follower.attachMovie("snowBall", "powerUp", _root.k++);
shel._x = 0;
shel._y = 0;
hitFocus = "ball";
currentPowerUp = "ice";
} else if (((bActive && (!rActive)) && gActive) && (!pActive)) {
currentPowerUp = "mud";
shel = attachMovie("mudBall", "powerUp", _root.k++);
shel._x = ball._x;
shel._y = ball._y;
tap = 255;
hitFocus = "ball";
addMessage("Mud Power Up!");
} else if (((bActive && rActive) && (!gActive)) && (!pActive)) {
currentPowerUp = "shrink";
shel = attachMovie("shrink", "powerUp", _root.k++);
tap = 255;
hitFocus = "ball";
addMessage("Shrink Power Up!");
} else if ((((!bActive) && (!rActive)) && (!gActive)) && pActive) {
currentPowerUp = "wind";
hitFocus = "ball";
tap = 6697932 /* 0x6633CC */;
shel = attachMovie("leafer", "powerUp", _root.k++);
shel._x = 0;
shel._y = 0;
addMessage("Wind Power Up!");
} else if ((((!bActive) && (!rActive)) && gActive) && (!pActive)) {
currentPowerUp = "flower";
attachMovie("flower", "powerUp", _root.k++);
tap = 65280;
hitFocus = "ball";
addMessage("Flower Power Up!");
} else if ((((!bActive) && rActive) && (!gActive)) && (!pActive)) {
currentPowerUp = "fire";
attachMovie("fire", "powerUp", _root.k++);
tap = 16711680 /* 0xFF0000 */;
hitFocus = "ball";
addMessage("Fire Power Up!");
} else if (((bActive && (!rActive)) && (!gActive)) && (!pActive)) {
currentPowerUp = "water";
shel = attachMovie("bubble", "powerUp", _root.k++);
shel._x = ball._x;
shel._y = ball._y;
tap = 255;
hitFocus = "ball";
addMessage("Bubble Power Up!");
}
i = 0;
while (i < 20) {
shel = mc.attachMovie("powerUpStar", "prR" + _root.k, _root.k++);
shel._rotation = random(360);
shel._xscale = random(50) + 150;
shel._yscale = shel._xscale;
var _local2 = new Color(shel);
_local2.setRGB(tap);
i++;
}
}
function checkPause(mov) {
if (gamePaused) {
mov.stop();
} else {
mov.play();
}
}
function pForPause() {
if ((Key.isDown(80) && (popDown == true)) && (!menuOpen)) {
if (gamePaused) {
gamePaused = false;
addMessage("game resumed");
topBar.pauser.gotoAndStop(1);
} else {
gamePaused = true;
addMessage("game is paused (p or click 'pause' to resume)");
topBar.pauser.gotoAndStop(7);
}
}
}
function popper() {
popDown = false;
if (Key.isDown(80) && (pChanged == "up")) {
popDown = true;
pChanged = "down";
} else if ((!Key.isDown(80)) && (pChanged == "down")) {
popDown = true;
pChanged = "up";
}
}
function followMe() {
if (ballActive) {
follower._x = ball._x;
follower._y = ball._y;
follower._rotation = ball._rotation;
follower._xscale = ball._xscale;
follower._yscale = ball._yscale;
}
}
function textColorChange(num) {
i = 0;
while (i < 6) {
tap = Math.round(num);
var _local1 = new Color(topBar["line" + i]);
_local1.setRGB(tap);
i++;
}
}
function resetView() {
_root._x = 0;
_root._y = 0;
topBar._x = 0;
topBar._y = 0;
camera._x = 200;
camera._y = 275;
}
function addMessage(msg) {
if (topBar.line0._currentframe == 1) {
topBar.line0.ballLiner.textQual.text = msg;
topBar.line0.nextFrame();
} else if (topBar.line1._currentframe == 1) {
topBar.line1.ballLiner.textQual.text = topBar.line0.ballLiner.textQual.text;
topBar.line0.ballLiner.textQual.text = msg;
topBar.line1.gotoAndPlay(topBar.line0._currentframe);
topBar.line0.gotoAndPlay(2);
topBar.line0.nextFrame();
} else if (topBar.line2._currentframe == 1) {
topBar.line2.ballLiner.textQual.text = topBar.line1.ballLiner.textQual.text;
topBar.line1.ballLiner.textQual.text = topBar.line0.ballLiner.textQual.text;
topBar.line0.ballLiner.textQual.text = msg;
topBar.line2.gotoAndPlay(topBar.line1._currentframe);
topBar.line1.gotoAndPlay(topBar.line0._currentframe);
topBar.line0.gotoAndPlay(2);
topBar.line0.nextFrame();
} else if (topBar.line3._currentframe == 1) {
topBar.line3.ballLiner.textQual.text = topBar.line2.ballLiner.textQual.text;
topBar.line2.ballLiner.textQual.text = topBar.line1.ballLiner.textQual.text;
topBar.line1.ballLiner.textQual.text = topBar.line0.ballLiner.textQual.text;
topBar.line0.ballLiner.textQual.text = msg;
topBar.line3.gotoAndPlay(topBar.line2._currentframe);
topBar.line2.gotoAndPlay(topBar.line1._currentframe);
topBar.line1.gotoAndPlay(topBar.line0._currentframe);
topBar.line0.gotoAndPlay(2);
topBar.line0.nextFrame();
} else if (topBar.line4._currentframe == 1) {
topBar.line4.ballLiner.textQual.text = topBar.line3.ballLiner.textQual.text;
topBar.line3.ballLiner.textQual.text = topBar.line2.ballLiner.textQual.text;
topBar.line2.ballLiner.textQual.text = topBar.line1.ballLiner.textQual.text;
topBar.line1.ballLiner.textQual.text = topBar.line0.ballLiner.textQual.text;
topBar.line0.ballLiner.textQual.text = msg;
topBar.line4.gotoAndPlay(topBar.line3._currentframe);
topBar.line3.gotoAndPlay(topBar.line2._currentframe);
topBar.line2.gotoAndPlay(topBar.line1._currentframe);
topBar.line1.gotoAndPlay(topBar.line0._currentframe);
topBar.line0.gotoAndPlay(2);
topBar.line0.nextFrame();
} else {
topBar.line5.ballLiner.textQual.text = topBar.line4.ballLiner.textQual.text;
topBar.line4.ballLiner.textQual.text = topBar.line3.ballLiner.textQual.text;
topBar.line3.ballLiner.textQual.text = topBar.line2.ballLiner.textQual.text;
topBar.line2.ballLiner.textQual.text = topBar.line1.ballLiner.textQual.text;
topBar.line1.ballLiner.textQual.text = topBar.line0.ballLiner.textQual.text;
topBar.line0.ballLiner.textQual.text = msg;
topBar.line5.gotoAndPlay(2);
topBar.line4.gotoAndPlay(topBar.line3._currentframe);
topBar.line3.gotoAndPlay(topBar.line2._currentframe);
topBar.line2.gotoAndPlay(topBar.line1._currentframe);
topBar.line1.gotoAndPlay(topBar.line0._currentframe);
topBar.line0.gotoAndPlay(2);
topBar.line0.nextFrame();
}
}
function colorPart(mov, mov2, af, rot) {
shel = _root.attachMovie("fireSpark", "fire" + k, k++);
shel._x = mov._x;
shel._y = mov._y;
shel._xscale = random(200) + 50;
shel._yscale = shel._xscale;
shel._x = shel._x + (random(mov2._width) - (mov2._width / 2));
shel._y = shel._y + (random(mov2._height) - (mov2._height / 2));
shel._rotation = random(rot);
var _local3 = new Color(shel);
_local3.setRGB(af);
}
function queueMusic(num) {
stopAllSounds();
if (num <= 10) {
music.gotoAndStop(2);
}
if ((num >= 11) && (num <= 20)) {
music.gotoAndStop(3);
}
if ((num >= 21) && (num <= 30)) {
music.gotoAndStop(4);
}
if ((num >= 31) && (num <= 40)) {
music.gotoAndStop(5);
}
if ((num >= 41) && (num <= 50)) {
music.gotoAndStop(6);
}
if ((num >= 51) && (num <= 60)) {
music.gotoAndStop(7);
}
if ((num >= 61) && (num <= 70)) {
music.gotoAndStop(8);
}
if ((num >= 71) && (num <= 80)) {
music.gotoAndStop(9);
}
if ((num >= 81) && (num <= 90)) {
music.gotoAndStop(10);
}
if ((num >= 91) && (num <= 100)) {
music.gotoAndStop(11);
}
}
onEnterFrame = function () {
globalReset = false;
if (!gamePaused) {
topBarStuff();
timer();
levelTimer();
if (ballActive) {
movement();
collision();
hitGoal();
}
scrollCam();
}
pForPause();
popper();
followMe();
achievements();
};
var bossMode = false;
var menuOpen = false;
var combo = 0;
var hitting;
var gravity = 0.3;
var origGrav = gravity;
var xTravel = 0.5;
var yTravel = 1;
var xMov = 0;
var yMov = 0;
var viewMode = "fixed";
var ballActive = false;
var k = 1;
var deathBlooms = 0;
var globalVolume = new Sound();
var globalBouncyness = -0.08;
var levelDeaths = 0;
_quality = "MEDIUM";
var timerDisp;
var tMiliDisp;
var tSecondsDisp;
var audioOn = true;
if (loadSaved) {
var level = _root.savefile.data.oldLevel;
if (((((((((level != 11) && (level != 21)) && (level != 31)) && (level != 41)) && (level != 51)) && (level != 61)) && (level != 71)) && (level != 81)) && (level != 91)) {
queueMusic(level);
}
var tMili = _root.savefile.data.oldMili;
var tSeconds = _root.savefile.data.oldSeconds;
var tMinutes = _root.savefile.data.oldMinutes;
var deaths = _root.savefile.data.oldDeaths;
addMessage("Welcome back!");
addMessage("Loading level " + level);
addMessage("Good luck!");
if (((level == 100) || ((level >= 1) && (level <= 20))) || ((level >= 31) && (level <= 60))) {
textColorChange(16777215);
}
if (((level >= 21) && (level <= 30)) || ((level >= 61) && (level <= 99))) {
textColorChange(0);
}
} else {
var level = 1;
var tSeconds = 0;
var tMili = 0;
var tMinutes = 0;
var deaths = 0;
queueMusic(level);
addMessage("Welcome to Ball Revamped 5!");
addMessage("by John Cooney");
addMessage("jmtb02 Studios");
}
var levelArray = new Array("the beginning", "curves", "splash", "sunrise shock", "flower power", "zig zag", "force of spring", "waterfall", "landmines", "a twist", "the caves", "fuses are useful", "roadblock", "two points", "corridor explosive", "bigger is better", "hexagon sides", "period", "crossfire", "breath of life", "spiked", "frozen", "biew biew", "more terrible walls", "alleyways", "demoted", "star power", "trisectional", "drainage ditch", "BIEW BIEW!", "seeing spots", "padding", "use them wisely", "don't be hasty", "diagon drop", "alternate mind", "the wall", "plinko!", "ode to France", "take it sloowww", "purple is pretty", "tradewinds", "hook and cross", "barriers", "spiker", "expect more", "the current", "out of the way", "stargate", "rat maze", "forest of light", "heavy hitter", "ramsack", "disjointed objective", "cyclone", "triangula", "capital h", "radius", "sidewinder", "perpetual motion", "on edge", "muddy water", "corridor", "syllogism", "handicap", "obstacles for the slow", "BR94", "pinnacle", "barrier extrodinaire", "circumnavigation", "here it comes", "on your guard", "keep in the loop", "angry monster", "clouds and corners", "peanut butter", "floating on", "to your advantage", "cubet", "grating", "dotted spots", "canyon rift", "canyon rise", "persimmon", "mr kite", "run quick", "cornering", "two three", "shortcut", "chameleon", "battle ground", "cause way", "pipe", "longer fuse and run!", "five", "four", "three", "two", "one", "point zero");
var levelName = levelArray[level - 1];
trace(level);
shel = _root.attachMovie("whiteFadeIn", "r" + _root.k, _root.k++);
gotoAndStop(level +56);
var tMinutesDisp;
var frameRate = 32;
var gamePaused = false;
var lMinutesDisp;
var lMiliDisp;
var lSecondsDisp;
var lMili = 0;
var lSeconds = 0;
var audioOn = true;
var lMinutes = 0;
var currentPowerUp = "nothing";
var myPowerUps = new Array();
var globalReset = false;
var bActive = false;
var pActive = false;
var rActive = false;
var gActive = false;
var hitFocus = "ball";
var popDown = false;
pChanged = "down";
topBar.qualityToggle.onRelease = function () {
if (_quality == "HIGH") {
_quality = "MEDIUM";
addMessage("quality: medium");
} else if (_quality == "MEDIUM") {
_quality = "LOW";
addMessage("quality: low");
} else if (_quality == "LOW") {
_quality = "HIGH";
addMessage("quality: high");
}
};
topBar.audioToggle.onRelease = function () {
};
onMouseDown = function () {
mDown = true;
};
onMouseUp = function () {
mDown = false;
};
topBar.pauser.onRollOver = function () {
if (gamePaused) {
topBar.pauser.gotoAndStop(5);
} else {
topBar.pauser.gotoAndStop(3);
}
};
topBar.pauser.onRollOut = function () {
if (gamePaused) {
topBar.pauser.gotoAndStop(7);
} else {
topBar.pauser.gotoAndStop(1);
}
};
topBar.pauser.onRelease = function () {
if (bossMode) {
addMessage("Cannot pause during boss mode!");
} else if (gamePaused && (!menuOpen)) {
gamePaused = false;
addMessage("game resumed");
topBar.pauser.gotoAndStop(3);
} else if (!gamePaused) {
gamePaused = true;
addMessage("game is paused (p or click 'pause' to resume)");
topBar.pauser.gotoAndStop(5);
}
};
spawnBallGoal();
textColorChange(16777215);
stop();
function inc() {
fps = "Frames per Second: " + aad;
nmbr = aad;
aad = 0;
}
nmbr = 0;
fps = 0;
aad = 0;
setInterval(inc, 1000);
stop();
levSet1 = true;
Frame 66
viewMode = "scrolling";
Frame 67
viewMode = "fixed";
resetView();
textColorChange(16777215);
queueMusic(level);
levSet2 = true;
Frame 76
viewMode = "scrolling";
Frame 77
viewMode = "fixed";
resetView();
textColorChange(0);
queueMusic(level);
levSet3 = true;
Frame 86
viewMode = "scrolling";
Frame 87
viewMode = "fixed";
resetView();
textColorChange(16777215);
queueMusic(level);
levSet4 = true;
Frame 96
viewMode = "scrolling";
Frame 97
viewMode = "fixed";
resetView();
textColorChange(16777215);
queueMusic(level);
levSet5 = true;
Frame 106
viewMode = "scrolling";
Frame 107
viewMode = "fixed";
resetView();
textColorChange(16777215);
queueMusic(level);
levSet6 = true;
Frame 116
viewMode = "scrolling";
Frame 117
viewMode = "fixed";
resetView();
textColorChange(0);
queueMusic(level);
levSet7 = true;
Frame 126
viewMode = "scrolling";
Frame 127
viewMode = "fixed";
resetView();
textColorChange(0);
queueMusic(level);
levSet8 = true;
Frame 136
viewMode = "scrolling";
Frame 137
viewMode = "fixed";
resetView();
textColorChange(0);
queueMusic(level);
levSet9 = true;
Frame 146
viewMode = "scrolling";
Frame 147
viewMode = "fixed";
resetView();
textColorChange(0);
queueMusic(level);
levSet10 = true;
Frame 156
viewMode = "scrolling";
textColorChange(16777215);
queueMusic(level);
Frame 157
viewMode = "fixed";
resetView();
Frame 158
if (!ach6) {
topBar.achScreen.removeMovieClip();
ach6 = true;
shel = attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "EPIC COMBO";
shel.reasoning = "All four power ups at once";
shel.achPatches.gotoAndStop(6);
}
viewMode = "fixed";
_x = 0;
_y = 0;
bossMode = true;
Frame 467
stopAllSounds();
gotoAndStop (468);
Frame 468
function boss() {
if (ballActive) {
shel = _root.attachMovie("starG", "st" + _root.k, _root.k++);
shel._x = (ball._x - (ball._width / 2)) + random(ball._width);
shel._y = ball._y;
shel._xscale = random(50) + 25;
shel._yscale = shel._xscale;
shel._alpha = random(25) + 50;
if (dynamicHitTest(ball, looper.sword) || (dynamicHitTest(ball, looper.shield))) {
spawnBall();
}
}
}
function bossGoal() {
if (ballActive) {
if (dynamicHitTest(ball, looper.goal)) {
ballActive = false;
commonSpawn();
shel = attachMovie("ball_goal", "ball_goal", k++);
shel._x = looper._x + looper.goal._x;
shel._y = looper._y + looper.goal._y;
looper.sword.play();
looper.shield.play();
step++;
addMessage(("Damage dealt (" + step) + " times so far!!!)");
}
}
}
function taptap() {
if ((step >= 6) && (step <= 10)) {
looper.sword.flashy.gotoAndStop(2);
starCounter++;
if (starCounter > 20) {
starCounter = 0;
shel = attachMovie("starBoss", "s" + _root.k, _root.k++);
shel._y = 540;
shel._x = random(400);
}
}
if (step >= 11) {
looper.sword.flashy.gotoAndStop(3);
starCounter++;
if (starCounter > 20) {
starCounter = 0;
shel = attachMovie("starBoss", "s" + _root.k, _root.k++);
shel._y = 540;
shel._x = random(400);
}
}
if (step == 15) {
for (obj in _root) {
if (typeof(_root[obj]) == "movieclip") {
_root[obj].removeMovieClip();
}
}
onEnterFrame = null;
gotoAndStop (469);
}
}
onEnterFrame = function () {
globalReset = false;
if (!gamePaused) {
topBarStuff();
timer();
levelTimer();
if (ballActive) {
movement();
collision();
bossGoal();
}
scrollCam();
}
taptap();
popper();
followMe();
achievements();
boss();
};
spawnBallGoal();
level = 101;
levelName = "Finale";
xMov = 0;
starCounter = 0;
yMov = 0;
var step = 0;
Frame 469
stopAllSounds();
play();
Frame 1191
if (!ach5) {
topBar.achScreen.removeMovieClip();
ach5 = true;
shel = attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "BEAT GAME";
shel.reasoning = "Congrats, you win!";
shel.achPatches.gotoAndStop(5);
}
Frame 1373
if ((!ach8) && (deaths < 100)) {
topBar.achScreen.removeMovieClip();
ach8 = true;
shel = attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "SURVIVOR";
shel.reasoning = "Die less than 100 times";
shel.achPatches.gotoAndStop(8);
}
Frame 1489
if ((!ach10) && (tMinutes < 10)) {
topBar.achScreen.removeMovieClip();
ach10 = true;
shel = attachMovie("achievement", "achScreen", _root.k++);
shel._x = 19;
shel._y = 188;
shel.title = "MASTER TIME";
shel.reasoning = "Beat creator's time";
shel.achPatches.gotoAndStop(10);
}
Frame 1809
oldWinsRec++;
if (tMinutes == oldMinutesRec) {
if (tSeconds < oldSecondsRec) {
oldMinutesRec = tMinutes;
oldSecondsRec = tSeconds;
}
}
if (tMinutes < oldMinutesRec) {
oldMinutesRec = tMinutes;
oldSecondsRec = tSeconds;
}
Frame 1863
stop();
Symbol 23 MovieClip Frame 1
onEnterFrame = function () {
if ((_currentframe + 3) >= _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 3);
}
};
stop();
Symbol 34 MovieClip Frame 1
stop();
onCheck = function (loggedIn, u) {
if (loggedIn) {
username = u;
gotoAndStop (2);
} else {
gotoAndStop (3);
}
};
_root.checkLoggedIn(this);
Symbol 34 MovieClip Frame 2
logout.onRelease = function () {
_parent.gotoAndPlay("close");
_parent.onExit = function () {
_root.logout();
};
};
account.onRelease = function () {
_root.openAccountWindow();
};
Symbol 34 MovieClip Frame 3
login.onRelease = function () {
_root.openLoginWindow();
};
register.onRelease = function () {
_root.openRegisterWindow();
};
Symbol 35 MovieClip [LoginBar] Frame 1
var gf = (new flash.filters.GlowFilter(0, 1, 2, 2, 1, 2));
filters = [gf];
Symbol 35 MovieClip [LoginBar] Frame 10
stop();
Symbol 35 MovieClip [LoginBar] Frame 20
onExit();
this.removeMovieClip();
Symbol 48 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 71 MovieClip [UserProfileWindow] Frame 1
onReceive = function (vars, error) {
if (error) {
if (error == "INCORRECT_USERPASS") {
_root.logout();
}
this.removeMovieClip();
} else {
usernameV = vars.username;
emailV = vars.email;
realNameV = vars.realName;
locationV = vars.location;
descriptionV = vars.description;
bannedV = vars.banned;
ipV = vars.ip;
nextFrame();
}
};
_root.getAccountInfo(this, userID);
stop();
bg.onPress = function () {
};
bg.useHandCursor = false;
moderator = _root.so.data.moderator;
c.onRelease = function () {
this._parent.removeMovieClip();
};
Symbol 71 MovieClip [UserProfileWindow] Frame 2
function onBanSend(error) {
if (error) {
modTools.errorField.text = error;
modTools.day._visible = (modTools.hour._visible = (modTools.week._visible = (modTools.month._visible = (modTools.year._visible = true))));
} else {
modTools.errorField.text = "User Banned";
}
modTools.spinner._visible = false;
}
if (moderator == 1) {
modTools._visible = true;
modTools.spinner._visible = false;
modTools.hour.onRelease = function () {
_root.banUser(this._parent._parent, userID, "hour");
modTools.spinner._visible = true;
modTools.day._visible = (modTools.hour._visible = (modTools.week._visible = (modTools.month._visible = (modTools.year._visible = false))));
modTools.errorField.text = "";
};
modTools.day.onRelease = function () {
_root.banUser(this._parent._parent, userID, "day");
modTools.spinner._visible = true;
modTools.day._visible = (modTools.hour._visible = (modTools.week._visible = (modTools.month._visible = (modTools.year._visible = false))));
modTools.errorField.text = "";
};
modTools.week.onRelease = function () {
_root.banUser(this._parent._parent, userID, "week");
modTools.spinner._visible = true;
modTools.day._visible = (modTools.hour._visible = (modTools.week._visible = (modTools.month._visible = (modTools.year._visible = false))));
modTools.errorField.text = "";
};
modTools.month.onRelease = function () {
_root.banUser(this._parent._parent, userID, "month");
modTools.spinner._visible = true;
modTools.day._visible = (modTools.hour._visible = (modTools.week._visible = (modTools.month._visible = (modTools.year._visible = false))));
modTools.errorField.text = "";
};
modTools.year.onRelease = function () {
_root.banUser(this._parent._parent, userID, "year");
modTools.spinner._visible = true;
modTools.day._visible = (modTools.hour._visible = (modTools.week._visible = (modTools.month._visible = (modTools.year._visible = false))));
modTools.errorField.text = "";
};
} else {
modTools._visible = false;
}
modTools.errorField.text = "";
c.onRelease = function () {
this._parent.removeMovieClip();
};
Symbol 82 MovieClip Frame 1
onRollOver = function () {
over = true;
};
onRollOut = (onReleaseOutside = function () {
over = false;
});
onMouseDown = function () {
if (!over) {
return(undefined);
}
changed = true;
onEnterFrame = function () {
var _local1 = _xmouse / _width;
gotoAndStop(Math.round(_local1 * 99) + 1);
};
};
onMouseUp = function () {
delete onEnterFrame;
};
stop();
changed = false;
Symbol 90 MovieClip Frame 1
stop();
onCheck = function (loggedIn, u) {
if (loggedIn) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
};
_root.checkLoggedIn(this, true);
Symbol 90 MovieClip Frame 3
spinner._visible = false;
errorMsg._visible = false;
ok.onRelease = function () {
errorMsg._visible = false;
if (!rating.changed) {
errorMsg.text = "You must select an 'Awesomeness' rating.";
errorMsg._visible = true;
return(undefined);
}
if (!difficulty.changed) {
errorMsg.text = "You must select a Difficulty rating.";
errorMsg._visible = true;
return(undefined);
}
this._visible = false;
spinner._visible = true;
_root.rateLevel(this._parent, _root.levelID, (rating._currentframe / 100) * 5, (difficulty._currentframe / 100) * 5);
};
onSend = function (error) {
if (error) {
errorMsg._visible = true;
ok._visible = true;
if (error == "ALREADY_RATED") {
errorMsg.text = "You have already voted for this level today.";
} else {
errorMsg.text = error;
}
} else {
_visible = false;
}
spinner._visible = false;
};
Symbol 93 MovieClip [LevelLooseWindow] Frame 13
_root.openLoginBar();
Symbol 93 MovieClip [LevelLooseWindow] Frame 28
stop();
c.onRelease = function () {
_root.openUserLevels();
};
Symbol 101 MovieClip Frame 1
function go() {
clr();
_root.getTimes(this, id);
spinner._visible = true;
delete itms.onEnterFrame;
itms._y = 5;
}
function clr() {
for (var _local1 in itms) {
itms[_local1].removeMovieClip();
}
}
onReceive = function (error, times) {
spinner._visible = false;
if (error) {
} else {
var _local4 = 0;
while (_local4 < times.length) {
var _local3 = itms.attachMovie("TimesItem", "it" + itms.getNextHighestDepth(), itms.getNextHighestDepth());
_local3.num = "#" + (_local4 + 1);
_local3.name = times[_local4].name;
_local3.date = times[_local4].date;
_local3.time = _root.formatTime(times[_local4].time);
if (times[_local4].userID == _root.so.data.userID) {
_local3.gotoAndStop(2);
} else {
_local3.gotoAndStop(1);
}
_local3.userID = times[_local4].userID;
_local3.nameButton.onRelease = function () {
_root.openUserProfileWindow(this._parent.userID);
};
_local3._y = _local4 * _local3._height;
_local3.cacheAsBitmap = true;
_local4++;
}
mo = true;
if ((itms._y + itms._height) > 170) {
itms.onEnterFrame = function () {
if (mo) {
this._y = this._y - 0.5;
if ((this._y + this._height) < 160) {
mo = false;
}
} else {
this._y = this._y - ((this._y - 20) / 10);
if (Math.abs(this._y - 20) < 5) {
mo = true;
}
}
};
}
}
};
Symbol 102 MovieClip Frame 1
stop();
onCheck = function (loggedIn, u) {
if (loggedIn) {
gotoAndStop (3);
} else {
gotoAndStop (2);
}
};
_root.checkLoggedIn(this, true);
Symbol 102 MovieClip Frame 3
if (done) {
nextFrame();
} else {
_root.recordTime(this, _root.levelID, _root.time);
}
onSend = function (error) {
done = true;
nextFrame();
};
Symbol 102 MovieClip Frame 4
t.id = _root.levelID;
setTimeout(function () {
t.go();
}, 1);
Symbol 103 MovieClip [LevelWinWindow] Frame 35
_root.openLoginBar();
Symbol 103 MovieClip [LevelWinWindow] Frame 50
stop();
c.onRelease = function () {
_root.openUserLevels();
};
Symbol 120 MovieClip [AccountWindow] Frame 1
onReceive = function (vars, error) {
if (error) {
if (error == "INCORRECT_USERPASS") {
_root.logout();
}
this.removeMovieClip();
} else {
emailV = vars.email;
realNameV = vars.realName;
locationV = vars.location;
descriptionV = vars.description;
nextFrame();
}
};
_root.getAccountInfo(this);
stop();
bg.onPress = function () {
};
bg.useHandCursor = false;
c.onRelease = function () {
this._parent.removeMovieClip();
};
Symbol 120 MovieClip [AccountWindow] Frame 2
function match(haystack, needle) {
haystack = haystack.split(needle);
return(haystack.length > 1);
}
pass.tabIndex = 1;
newPass.tabIndex = 2;
newPass2.tabIndex = 3;
email.tabIndex = 4;
realName.tabIndex = 5;
location.tabIndex = 6;
description.tabIndex = 7;
ok.tabIndex = 8;
passField.stop();
newPassField.stop();
newPass2Field.stop();
emailField.stop();
realNameField.stop();
locationField.stop();
descriptionField.stop();
c.onRelease = function () {
this._parent.removeMovieClip();
};
errorMsg.text = "";
errorMsg._visible = false;
spinner._visible = false;
ok.onRelease = function () {
passField.gotoAndStop(1);
newPassField.gotoAndStop(1);
newPass2Field.gotoAndStop(1);
emailField.gotoAndStop(1);
realNameField.gotoAndStop(1);
locationField.gotoAndStop(1);
descriptionField.gotoAndStop(1);
errorMsg.text = "";
errorMsg._visible = false;
forgot._visible = true;
if (!(pass.text && (email.text))) {
errorMsg.text = "You must fill out all required fields.";
if (!pass.text) {
passField.gotoAndStop(2);
}
if (!email.text) {
emailField.gotoAndStop(2);
}
errorMsg._visible = true;
return(undefined);
}
if (pass.text.length < 6) {
passField.gotoAndStop(2);
errorMsg.text = "Password must be 6 characters or more.";
errorMsg._visible = true;
return(undefined);
}
if (newPass.text || (newPass2.text)) {
if (newPass.text.length < 6) {
newPassField.gotoAndStop(2);
newPass2Field.gotoAndStop(2);
errorMsg.text = "New password must be 6 characters or more.";
errorMsg._visible = true;
return(undefined);
}
if (newPass.text != newPass2.text) {
newPassField.gotoAndStop(2);
newPass2Field.gotoAndStop(2);
errorMsg.text = "You must enter the same new password twice.";
errorMsg._visible = true;
return(undefined);
}
}
if ((!match(email.text, "@")) || (!match(email.text, "."))) {
emailField.gotoAndStop(2);
errorMsg.text = "You must enter a valid email address.";
errorMsg._visible = true;
return(undefined);
}
_root.changeAccountDetails(this._parent, pass.text, newPass.text, email.text, realName.text, location.text, description.text);
this._visible = false;
spinner._visible = true;
};
onSend = function (error) {
if (error) {
spinner._visible = false;
errorMsg._visible = true;
if (error == "INCORRECT_USERPASS") {
errorMsg.text = "The password you entered is incorrect.";
ok._visible = true;
passField.gotoAndStop(2);
} else {
errorMsg.text = error;
}
} else {
this.removeMovieClip();
}
};
forgot.onRelease = function () {
_root.openForgotPasswordWindow();
};
Symbol 127 MovieClip [ForgotPasswordWindow] Frame 1
function valid(txt, allowed) {
allowed = allowed.split("");
var _local1 = [];
var _local2 = 0;
while (_local2 < txt.length) {
_local1[_local2] = false;
j = 0;
while (j < allowed.length) {
if (txt.charAt(_local2) == allowed[j]) {
_local1[_local2] = true;
}
j++;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.length) {
if (!_local1[_local2]) {
return(false);
}
_local2++;
}
return(true);
}
function match(haystack, needle) {
haystack = haystack.split(needle);
return(haystack.length > 1);
}
name.textField = 1;
email.textField = 2;
ok.textField = 3;
nameField.gotoAndStop(1);
emailField.gotoAndStop(1);
c.onRelease = function () {
this._parent.removeMovieClip();
};
stop();
var alphanumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_";
errorMsg.text = "";
errorMsg._visible = false;
spinner._visible = false;
ok.onRelease = function () {
nameField.gotoAndStop(1);
emailField.gotoAndStop(1);
errorMsg.text = "";
errorMsg._visible = false;
if (!(name.text && (email.text))) {
errorMsg.text = "You must fill out all fields.";
if (!name.text) {
nameField.gotoAndStop(2);
}
if (!email.text) {
emailField.gotoAndStop(2);
}
errorMsg._visible = true;
return(undefined);
}
if (!valid(name.text, alphanumeric)) {
nameField.gotoAndStop(2);
errorMsg.text = "Username must contain only A-Z, a-z, 0-9 and underscores (_).";
errorMsg._visible = true;
return(undefined);
}
if ((!match(email.text, "@")) || (!match(email.text, "."))) {
emailField.gotoAndStop(2);
errorMsg.text = "You must enter a valid email address.";
errorMsg._visible = true;
return(undefined);
}
_root.resetPassword(this._parent, name.text, email.text);
this._visible = false;
spinner._visible = true;
};
onSend = function (error) {
if (error) {
spinner._visible = false;
errorMsg._visible = true;
errorMsg.text = error;
} else {
nextFrame();
}
};
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 136 MovieClip [RegisterWindow] Frame 1
function valid(txt, allowed) {
allowed = allowed.split("");
var _local1 = [];
var _local2 = 0;
while (_local2 < txt.length) {
_local1[_local2] = false;
j = 0;
while (j < allowed.length) {
if (txt.charAt(_local2) == allowed[j]) {
_local1[_local2] = true;
}
j++;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.length) {
if (!_local1[_local2]) {
return(false);
}
_local2++;
}
return(true);
}
function match(haystack, needle) {
haystack = haystack.split(needle);
return(haystack.length > 1);
}
name.tabIndex = 1;
pass.tabIndex = 2;
pass2.tabIndex = 3;
email.tabIndex = 4;
ok.tabIndex = 5;
nameField.stop();
passField.stop();
pass2Field.stop();
emailField.stop();
c.onRelease = function () {
this._parent.removeMovieClip();
};
var alphanumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_";
errorMsg.text = "";
errorMsg._visible = false;
spinner._visible = false;
ok.onRelease = function () {
nameField.gotoAndStop(1);
passField.gotoAndStop(1);
pass2Field.gotoAndStop(1);
emailField.gotoAndStop(1);
errorMsg.text = "";
errorMsg._visible = false;
if (!(((name.text && (pass.text)) && (pass2.text)) && (email.text))) {
errorMsg.text = "You must fill out all fields.";
if (!name.text) {
nameField.gotoAndStop(2);
}
if (!pass.text) {
passField.gotoAndStop(2);
}
if (!pass2.text) {
pass2Field.gotoAndStop(2);
}
if (!email.text) {
emailField.gotoAndStop(2);
}
errorMsg._visible = true;
return(undefined);
}
if (!valid(name.text, alphanumeric)) {
nameField.gotoAndStop(2);
errorMsg.text = "Username must contain only A-Z, a-z, 0-9 and underscores (_).";
errorMsg._visible = true;
return(undefined);
}
if (pass.text.length < 6) {
passField.gotoAndStop(2);
pass2Field.gotoAndStop(2);
errorMsg.text = "Password must be 6 characters or more.";
errorMsg._visible = true;
return(undefined);
}
if (pass.text != pass2.text) {
passField.gotoAndStop(2);
pass2Field.gotoAndStop(2);
errorMsg.text = "You must enter the same password twice.";
errorMsg._visible = true;
return(undefined);
}
if ((!match(email.text, "@")) || (!match(email.text, "."))) {
emailField.gotoAndStop(2);
errorMsg.text = "You must enter a valid email address.";
errorMsg._visible = true;
return(undefined);
}
_root.register(this._parent, name.text, pass.text, email.text);
this._visible = false;
spinner._visible = true;
};
onSend = function (error) {
if (error) {
spinner._visible = false;
errorMsg._visible = true;
if (error == "USERNAME_TAKEN") {
errorMsg.text = "The username you have entered has already been taken.";
ok._visible = true;
nameField.gotoAndStop(2);
} else {
errorMsg.text = error;
}
} else {
onSend = function (error) {
this.removeMovieClip();
};
_root.login(this, name.text, pass.text);
}
};
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 144 MovieClip [LoginWindow] Frame 1
function valid(txt, allowed) {
allowed = allowed.split("");
var _local1 = [];
var _local2 = 0;
while (_local2 < txt.length) {
_local1[_local2] = false;
j = 0;
while (j < allowed.length) {
if (txt.charAt(_local2) == allowed[j]) {
_local1[_local2] = true;
}
j++;
}
_local2++;
}
_local2 = 0;
while (_local2 < _local1.length) {
if (!_local1[_local2]) {
return(false);
}
_local2++;
}
return(true);
}
name.tabIndex = 1;
pass.tabIndex = 2;
ok.tabIndex = 3;
nameField.stop();
passField.stop();
c.onRelease = function () {
this._parent.removeMovieClip();
};
var alphanumeric = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890_";
errorMsg.text = "";
errorMsg._visible = false;
spinner._visible = false;
ok.onRelease = function () {
nameField.gotoAndStop(1);
passField.gotoAndStop(1);
errorMsg.text = "";
errorMsg._visible = false;
if (!(name.text && (pass.text))) {
errorMsg.text = "You must enter a username and password.";
if (!name.text) {
nameField.gotoAndStop(2);
}
if (!pass.text) {
passField.gotoAndStop(2);
}
errorMsg._visible = true;
return(undefined);
}
if (!valid(name.text, alphanumeric)) {
nameField.gotoAndStop(2);
errorMsg.text = "Username must contain only A-Z, a-z, 0-9 and underscores (_).";
errorMsg._visible = true;
return(undefined);
}
if (pass.text.length < 6) {
passField.gotoAndStop(2);
errorMsg.text = "Password must be 6 characters or more.";
errorMsg._visible = true;
return(undefined);
}
_root.login(this._parent, name.text, pass.text);
this._visible = false;
spinner._visible = true;
};
onSend = function (error) {
if (error) {
spinner._visible = false;
errorMsg._visible = true;
if (error == "INCORRECT_USERPASS") {
errorMsg.text = "Incorrect username or password.";
ok._visible = true;
nameField.gotoAndStop(2);
passField.gotoAndStop(2);
} else {
errorMsg.text = error;
}
} else {
this.removeMovieClip();
}
};
forgot.onRelease = function () {
_root.openForgotPasswordWindow();
};
create.onRelease = function () {
_root.openRegisterWindow();
};
bg.onPress = function () {
};
bg.useHandCursor = false;
Symbol 175 MovieClip Frame 1
stop();
onRollOver = function () {
gotoAndStop (2);
};
onRollOut = (onReleaseOutside = function () {
gotoAndStop (1);
});
Symbol 180 MovieClip Frame 1
onEnterFrame = function () {
if ((_parent._visible == false) || (Math.round(_parent._alpha) == 0)) {
onPress = {};
useHandCursor = false;
} else {
delete onPress;
useHandCursor = false;
}
};
Symbol 181 MovieClip Frame 1
bg.onPress = function () {
};
bg.useHandCursor = false;
var gf = (new flash.filters.GlowFilter(0, 1, 4, 4, 1.5, 2));
filters = [gf];
Symbol 182 MovieClip [LevelList] Frame 1
function spinnerOn() {
var _local2 = 1;
while (_local2 < 10) {
this["l" + _local2]._visible = false;
_local2++;
}
spinner._visible = true;
options._visible = false;
}
function loadList() {
_root.loadLevelListData(this, page, 9, order, sort);
spinnerOn();
}
function maxThis(t) {
if (maxed) {
return(undefined);
}
maxed = true;
maxedIcon = t;
t.swapDepths(getNextHighestDepth());
options.swapDepths(getNextHighestDepth());
t.onEnterFrame = function () {
this._x = this._x - ((this._x - maxedIconX) / zoomSpeed);
this._y = this._y - ((this._y - maxedIconY) / zoomSpeed);
this._width = this._width - ((this._width - (iconWidth * maxedIconSizeMult)) / zoomSpeed);
this._height = this._height - ((this._height - (iconHeight * maxedIconSizeMult)) / zoomSpeed);
};
var _local3 = 1;
while (_local3 < 10) {
if (this["l" + _local3] != t) {
this["l" + _local3].onEnterFrame = function () {
this._x = this._x - ((this._x - unmaxedIconX) / zoomSpeed);
this._y = this._y - ((this._y - unmaxedIconY) / zoomSpeed);
};
}
_local3++;
}
details._visible = true;
details._alpha = -1500;
details.swapDepths(getNextHighestDepth());
options.swapDepths(getNextHighestDepth());
details.onEnterFrame = function () {
this._alpha = this._alpha - ((this._alpha - 100) / (zoomSpeed * 2));
};
details.times.id = t.id;
details.times.go();
if (t.name.length > 15) {
details.name = t.name.substr(0, 15);
details.name = details.name + "...";
} else {
details.name = t.name;
}
details.author = t.author;
details.authorButton.onRollOver = function () {
authorRolledOver = true;
};
details.authorButton.onRollOut = (details.author.onReleaseOutside = function () {
authorRolledOver = false;
});
details.authorButton.onRelease = function () {
_root.openUserProfileWindow(t.authorID);
};
details.date = t.date;
details.views = t.views;
details.rating.gotoAndStop(Math.round((t.rating / 5) * 99) + 1);
details.spinner._visible = false;
if (_root.so.data.moderator == 1) {
details.deleteLevel._visible = true;
} else {
details.deleteLevel._visible = false;
}
details.deleteLevel.gotoAndStop(1);
details.deleteLevel.onRollOver = function () {
this.gotoAndStop(2);
authorRolledOver = true;
};
details.deleteLevel.onRollOut = (details.deleteLevel.onReleaseOutside = function () {
this.gotoAndStop(1);
authorRolledOver = false;
});
details.deleteLevel.txt = "Delete Level";
details.deleteLevel.onRelease = function () {
this.txt = "Sure?";
this.onRelease = function () {
this.txt = "Really Sure?";
this.onRelease = function () {
this._visible = false;
details.spinner._visible = true;
_root.deleteLevel(thisthis, t.id);
};
};
};
var _local4 = Math.round(t.difficulty);
if (_local4 == 0) {
details.difficulty = "Sinch";
} else if (_local4 == 1) {
details.difficulty = "Very Easy";
} else if (_local4 == 2) {
details.difficulty = "Easy";
} else if (_local4 == 3) {
details.difficulty = "Average";
} else if (_local4 == 4) {
details.difficulty = "Hard";
} else if (_local4 == 5) {
details.difficulty = "Extreme";
}
options.onEnterFrame = function () {
this._alpha = this._alpha - ((this._alpha - 0) / (zoomSpeed * 0.75));
};
t.onRelease = function () {
loadLevel(this, this.dat);
};
onMouseDown = function () {
if (((((!t.hitTest(_xmouse, _ymouse, true)) && (!authorRolledOver)) && (!_root.window)) && (!_root.loginBar.hitTest(_root._xmouse, _root._ymouse, true))) && (!details.times.hitTest(details._xmouse, details._ymouse, true))) {
unMaxThis(t);
delete onMouseDown;
}
};
}
function unMaxThis(t) {
if (!maxed) {
return(undefined);
}
maxed = false;
details.onEnterFrame = function () {
this._alpha = this._alpha - ((this._alpha - 0) / (zoomSpeed * 0.5));
if (Math.round(this._alpha) == 0) {
this._visible = false;
delete this.onEnterFrame;
}
};
options.onEnterFrame = function () {
this._alpha = this._alpha - ((this._alpha - 100) / (zoomSpeed * 0.75));
};
t.onEnterFrame = function () {
this._x = this._x - ((this._x - this.ox) / zoomSpeed);
this._y = this._y - ((this._y - this.oy) / zoomSpeed);
this._width = this._width - ((this._width - iconWidth) / zoomSpeed);
this._height = this._height - ((this._height - iconHeight) / zoomSpeed);
};
var _local2 = 1;
while (_local2 < 10) {
if (this["l" + _local2] != t) {
this["l" + _local2].onEnterFrame = function () {
this._x = this._x - ((this._x - this.ox) / zoomSpeed);
this._y = this._y - ((this._y - this.oy) / zoomSpeed);
};
}
_local2++;
}
t.onRelease = function () {
maxThis(this);
};
}
function loadLevel(t, dat) {
loadingLevel = true;
t.trans.colorTransform = t.oldTrans;
t.swapDepths(getNextHighestDepth());
options.swapDepths(getNextHighestDepth());
_root.closeLoginBar();
t.onEnterFrame = function () {
this._x = this._x - ((this._x - 0) / zoomSpeed);
this._y = this._y - ((this._y - 0) / zoomSpeed);
this._width = this._width - ((this._width - _root.stageWidth) / zoomSpeed);
this._height = this._height - ((this._height - _root.stageHeight) / zoomSpeed);
if (Math.round(this._x) == 0) {
this._x = this.ox;
this._y = this.oy;
this._width = iconWidth;
this._height = iconHeight;
this.onRelease = function () {
maxThis(this);
};
var _local4 = 1;
while (_local4 < 10) {
var _local3 = this._parent["l" + _local4];
if (_local3 != this) {
_local3._x = _local3.ox;
_local3._y = _local3.oy;
_local3._width = iconWidth;
_local3._height = iconHeight;
_local3.onRelease = function () {
maxThis(this);
};
delete _local3.onEnterFrame;
}
_local4++;
}
maxed = false;
_root.playUserLevel(dat, this.id);
loadingLevel = false;
details._visible = false;
options._visible = true;
delete options.onEnterFrame;
options._alpha = 100;
delete this.onEnterFrame;
}
};
}
function onReceive(error, levels, p) {
spinner._visible = false;
if (error) {
} else {
options._visible = true;
pages = p;
options.page = (("Page " + page) + " of ") + pages;
var _local4 = 0;
while (_local4 < levels.length) {
var _local3 = this["l" + (_local4 + 1)];
_local3._visible = true;
var _local6 = levels[_local4].data;
var _local7 = _root.getLevelBitmapData(_local6);
_local3.attachBitmap(_local7, -100);
_local3._width = iconWidth;
_local3._height = iconHeight;
_local3.ox = _local3._x;
_local3.oy = _local3._y;
_local3.onRelease = function () {
maxThis(this);
};
_local3.onRollOver = function () {
if (loadingLevel) {
return(undefined);
}
this.trans = new flash.geom.Transform(this);
this.oldTrans = this.trans.colorTransform;
this.trans.colorTransform = new flash.geom.ColorTransform(0.5, 0.5, 0.5, 1, 0, 0, 0, 0);
};
_local3.onRollOut = (_local3.onReleaseOutside = function () {
this.trans.colorTransform = this.oldTrans;
});
_local3.dat = _local6;
_local3.name = levels[_local4].name;
_local3.date = levels[_local4].date;
_local3.views = levels[_local4].views;
_local3.rating = levels[_local4].rating;
_local3.difficulty = levels[_local4].difficulty_rating;
_local3.flagged = levels[_local4].flagged;
_local3.flagger = levels[_local4].flagger;
_local3.flagReason = levels[_local4].flag_reason;
_local3.author = levels[_local4].author;
_local3.authorID = levels[_local4].author_id;
_local3.id = levels[_local4].id;
_local4++;
}
}
}
stop();
iconWidth = 108.9;
iconHeight = 149.8;
maxedIconX = 20;
maxedIconY = 20;
unmaxedIconX = maxedIconX + (iconWidth / 2);
unmaxedIconY = maxedIconY + (iconHeight / 2);
maxedIconSizeMult = 2;
zoomSpeed = 5;
details._visible = false;
options.prev.onPress = function () {
startpage = page;
if (page > 1) {
page--;
options.page = "Page " + page;
}
prevTimeout = setTimeout(function () {
options.bg.onEnterFrame = function () {
if (page > 1) {
page--;
options.page = "Page " + page;
}
};
}, 500);
};
options.prev.onRelease = (options.prev.onReleaseOutside = function () {
clearTimeout(prevTimeout);
delete options.bg.onEnterFrame;
if (page != startpage) {
loadList();
}
});
options.next.onPress = function () {
startpage = page;
if (page < pages) {
page++;
options.page = "Page " + page;
}
nextTimeout = setTimeout(function () {
options.bg.onEnterFrame = function () {
if (page < pages) {
page++;
options.page = "Page " + page;
}
};
}, 500);
};
options.next.onRelease = (options.next.onReleaseOutside = function () {
clearTimeout(nextTimeout);
delete options.bg.onEnterFrame;
if (startpage != page) {
loadList();
}
});
options.orderToggle.onRelease = function () {
if (order == "name") {
order = "time";
options.orderToggle.txt = "Date";
loadList();
} else if (order == "time") {
order = "views";
options.orderToggle.txt = "Views";
loadList();
} else if (order == "views") {
order = "rating";
options.orderToggle.txt = "Rating";
loadList();
} else if (order == "rating") {
order = "difficulty_rating";
options.orderToggle.txt = "Difficulty";
loadList();
} else if (order == "difficulty_rating") {
order = "name";
options.orderToggle.txt = "Name";
loadList();
}
};
options.sortToggle.onRelease = function () {
if (sort == "asc") {
sort = "desc";
options.sortToggle.txt = "Descending";
loadList();
} else if (sort == "desc") {
sort = "asc";
options.sortToggle.txt = "Ascending";
loadList();
}
};
thisthis = this;
page = 1;
order = "time";
options.orderToggle.txt = "Date";
sort = "desc";
options.sortToggle.txt = "Descending";
loadList();
onDeleteLevel = function (error) {
if (error) {
unMaxThis(maxedIcon);
loadList();
} else {
unMaxThis(maxedIcon);
loadList();
}
};
onCheck = function (li, u) {
if (so.data.moderator == 1) {
details.deleteLevel._visible = true;
} else {
details.deleteLevel._visible = false;
}
};
_root.checkLoggedIn(this, true);
options.menu.onRelease = function () {
_root.exit();
};
Symbol 185 Button
on (release) {
_root.exitUserLevel();
}
Symbol 186 MovieClip [LevelExit] Frame 39
stop();
Symbol 203 MovieClip [Error] Frame 1
onMouseDown = function () {
this.removeMovieClip();
};
Symbol 325 MovieClip Frame 1
i = 0;
while (i <= 33) {
this["choose" + i].i = i;
this["choose" + i].onRelease = function () {
_root.choose = this.i;
_parent.gotoAndStop("none");
};
this["choose" + i].onRollOver = function () {
o = attachMovie("outline", "outline", getNextHighestDepth());
o._x = this._x;
o._y = this._y;
o._width = this._width;
o._height = this._height;
};
this["choose" + i].onRollOut = (this["choose" + i].onReleaseOutside = function () {
o.removeMovieClip();
});
i++;
}
Symbol 329 MovieClip [Object0] Frame 1
collMode = "none";
onBallSpawn = function () {
_root.spawnBallX = _x;
_root.spawnBallY = _y;
};
Symbol 343 MovieClip [Object1] Frame 1
collMode = "ballPoint";
onBallCollision = function () {
_root.win(_x, _y);
};
fakeWidth = 59.5;
fakeHeight = 59.5;
Symbol 347 MovieClip Frame 1
stop();
Symbol 348 MovieClip [Object2] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "none";
fuse = true;
fuseUp = function () {
if (!fuse) {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 351 MovieClip [Object3] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "none";
fuse = true;
fuseUp = function () {
if (!fuse) {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 354 MovieClip [Object4] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "none";
fuse = true;
fuseUp = function () {
if (!fuse) {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 358 MovieClip [Object5] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "none";
fuse = true;
fuseUp = function () {
if (!fuse) {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 362 MovieClip [Object6] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "none";
fuse = true;
fuseUp = function () {
if (!fuse) {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 366 MovieClip [Object7] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "none";
fuse = true;
fuseUp = function () {
if (!fuse) {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 373 MovieClip [Object8] Frame 1
stop();
fuse = true;
fuseUp = function () {
nextFrame();
fuse = false;
trace("fuse boom");
for (var _local6 in _root.objects) {
var _local3 = _root.objects[_local6];
if (_local3.block) {
var _local4 = _local3._x - _x;
var _local5 = _local3._y - _y;
var _local7 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local7 < 100) {
_local3.blow();
}
}
}
var _local6 = 0;
while (_local6 < 10) {
shel = _root.attachMovie("SparkRed", "prR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._rotation = random(360);
shel._xscale = random(450) + 150;
shel._yscale = shel._xscale;
shel._x = (this._x - (this._width / 2)) + random(_width);
shel._y = (this._y - (this._height / 2)) + random(_height);
var _local8 = new Color(shel);
_local8.setRGB(16711680);
shel = _root.attachMovie("SparkRed", "prR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._rotation = random(360);
shel._xscale = random(450) + 150;
shel._yscale = shel._xscale;
shel._x = (this._x - (this._width / 1.5)) + random(_width + 50);
shel._y = (this._y - (this._height / 1.5)) + random(_height + 50);
_local8 = new Color(shel);
_local8.setRGB(16763904);
shel = _root.attachMovie("SparkRed", "prR" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._rotation = random(360);
shel._xscale = random(450) + 150;
shel._yscale = shel._xscale;
shel._x = (this._x - (this._width / 2)) + random(_width);
shel._y = (this._y - (this._height / 2)) + random(_height);
_local8 = new Color(shel);
_local8.setRGB(13395456);
_local6++;
}
};
onReset = function () {
gotoAndStop (1);
fuse = true;
};
Symbol 373 MovieClip [Object8] Frame 2
stop();
Symbol 376 MovieClip [Object9] Frame 1
fakeWidth = 20;
fakeHeight = 22;
collMode = "square";
fuse = true;
onBallCollision = function () {
if (!fuse) {
return(undefined);
}
if (_root.ballFollow.link != "BallFire") {
return(undefined);
}
fuse = false;
ftimeout = setTimeout(search, 250);
onGamePause = function () {
clearTimeout(ftimeout);
};
onGameUnPause = function () {
clearTimeout(ftimeout);
ftimeout = setTimeout(this, "search", 250);
};
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("FuseSpark", "fuseSpark" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = (_x + random(20)) - 10;
_local3._y = (_y + random(20)) - 10;
_local3._rotation = random(360);
_local3.onComplete = function () {
if (fuse) {
return(undefined);
}
_visible = false;
};
_local4++;
}
ts.play();
};
search = function () {
delete onGamePause;
delete onGameUnPause;
var _local6 = 99999 /* 0x01869F */;
var _local7 = null;
for (var _local8 in _root.objects) {
var _local2 = _root.objects[_local8];
if (_local2.fuse) {
var _local4 = _local2._x - _x;
var _local5 = _local2._y - _y;
var _local3 = Math.sqrt((_local4 * _local4) + (_local5 * _local5));
if (_local3 < _local6) {
_local6 = _local3;
_local7 = _local2;
}
}
}
if (_local7 == null) {
trace("fuse end");
} else {
_local7.fuseUp();
}
};
onReset = function () {
fuse = true;
_visible = true;
clearTimeout(ftimeout);
};
Symbol 380 MovieClip [Object10] Frame 1
fakeHeight = 22;
fakeWidth = 20;
block = true;
createEmptyMovieClip("mcmc", getNextHighestDepth());
colls = true;
collMode = "none";
mcmc.onEnterFrame = function () {
if (colls) {
if (_root.ball.hitTest(_x, _y, true)) {
_root.die();
}
}
};
blow = function () {
xv = random(20) - 10;
yv = random(30) - 30;
ox = _x;
oy = _y;
onEnterFrame = function () {
_x = (_x + xv);
_y = (_y + yv);
yv = yv + 2;
xv = xv * 0.98;
yv = yv * 0.98;
_rotation = (_rotation + xv);
if (_y > _root.stageHeight) {
_visible = false;
delete onEnterFrame;
}
};
colls = false;
};
onReset = function () {
_x = (ox ? (ox) : (_x));
_y = (oy ? (oy) : (_y));
_rotation = 0;
_visible = true;
colls = true;
delete onEnterFrame;
};
Symbol 388 MovieClip [Object11] Frame 1
onBallSpawn = function () {
onEnterFrame = function () {
var _local2 = attachMovie("FireSpit", "fireSpit" + getNextHighestDepth(), getNextHighestDepth());
_local2._y = _y + 5;
_local2._x = (_x + random(20)) - 10;
_local2.v = 1;
_local2._rotation = 270;
_local2._xscale = (_local2._yscale = 50);
_local2._x = _local2._x - _x;
_local2._y = _local2._y - _y;
_local2.onEnterFrame = function () {
this._y = this._y - this.v;
this.v = this.v + 1;
this._alpha = this._alpha - 10;
if (this._alpha <= 20) {
this.removeMovieClip();
}
};
};
};
onReset = function () {
delete onEnterFrame;
};
collMode = "objPoint";
onBallCollision = function () {
if (_root.ballFollow.link == "BallFire") {
return(undefined);
}
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ballAttach("BallFire");
used = true;
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(14483456);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local4++;
}
};
Symbol 404 MovieClip [Object12] Frame 1
collMode = "objPoint";
onBallCollision = function () {
if (_root.ballFollow.link == "BallBubble") {
return(undefined);
}
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ballAttach("BallBubble");
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(255);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local4++;
}
};
Symbol 407 MovieClip [Object13] Frame 1
onBallSpawn = function () {
onEnterFrame = function () {
var _local4 = 0;
while (_local4 < 3) {
var _local3 = attachMovie("FireSpit", "fireSpit" + getNextHighestDepth(), getNextHighestDepth());
_local3._y = random(20) - 10;
_local3._x = random(20) - 10;
_local3.v = 1;
_local3._rotation = 270;
_local3._xscale = (_local3._yscale = random(75) + 25);
_local3.onEnterFrame = function () {
this._y = this._y - this.v;
this.v = this.v + 1;
this._alpha = this._alpha - 10;
if (this._alpha <= 20) {
this.removeMovieClip();
}
};
_local4++;
}
if ((_root.ballFollow.link == "BallBubble") && (_root.ballFollow.hitTest(_x, _y, true))) {
delete onEnterFrame;
}
};
};
onReset = function () {
delete onEnterFrame;
};
collMode = "ballPoint";
onBallCollision = function () {
if (_root.ballFollow.link == "BallBubble") {
} else {
_root.die();
}
};
Symbol 423 MovieClip [Object14] Frame 1
collMode = "objPoint";
onBallCollision = function () {
if (_root.ballFollow.link == "BallMud") {
return(undefined);
}
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ballAttach("BallMud");
_root.ballVDiv = 4;
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(5060356);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local4++;
}
};
onReset = (onBallAttachChange = function () {
_root.ballVDiv = 1;
});
Symbol 437 MovieClip [Object15] Frame 1
collMode = "objPoint";
onBallCollision = function () {
if (used) {
return(undefined);
}
var _local10 = _root.ballAttach("BallBomb");
used = true;
_local10.onComplete = function () {
_root.ballAttach();
var _local7 = _root.attachMovie("GiantExplosion", "giantExplosion" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local7._x = _root.ball._x;
_local7._y = _root.ball._y;
for (var _local6 in _root.objects) {
var _local2 = _root.objects[_local6];
if (_local2.block) {
var _local3 = _local2._x - _root.ball._x;
var _local4 = _local2._y - _root.ball._y;
var _local5 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (_local5 < 250) {
_local2.blow();
}
}
}
};
attachMovie("Collect", "collect", getNextHighestDepth());
var _local7 = 0;
while (_local7 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(3355443);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local7++;
}
};
onReset = function () {
used = false;
};
Symbol 458 MovieClip [Object17] Frame 1
collMode = "objPoint";
onBallCollision = function () {
if (_root.ballFollow.link == "BallRock") {
return(undefined);
}
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ballAttach("BallRock", true);
_root.ballGravity = 0.6;
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(7829367);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local4++;
}
};
oldGrav = _root.ballGravity;
onReset = (onBallAttachChange = function () {
_root.ballGravity = oldGrav;
});
Symbol 473 MovieClip [Object18] Frame 1
collMode = "objPoint";
onBallCollision = function () {
if (_root.ballFollow.link == "BallSnow") {
return(undefined);
}
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ballAttach("BallSnow", true);
_root.ballGravity = 0;
_root.ballControl = false;
var _local4 = 0;
while (_local4 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(16777215);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local4++;
}
};
oldGrav = _root.ballGravity;
onReset = (onBallAttachChange = function () {
_root.ballGravity = oldGrav;
_root.ballControl = true;
});
Symbol 491 MovieClip [Object20] Frame 1
collMode = "objPoint";
scale = 50;
oldRad = _root.ballRad;
onBallCollision = function () {
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
if (_root.ball.shrink) {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ball.shrink = true;
_root.ball.grown = false;
_root.ballRad = scale / 2;
for (var _local5 in _root.objects) {
var _local4 = _root.objects[_local5];
if (_local4.portal) {
_local4.nxs = scale;
}
}
_root.ball.onEnterFrame = function () {
this._xscale = this._xscale - ((this._xscale - scale) / 5);
this._yscale = this._xscale;
if (Math.abs(this._xscale - scale) < 2) {
this._xscale = scale;
this._yscale = scale;
_root.ballRad = _root.ballRad * (scale / 100);
delete this.onEnterFrame;
}
};
var _local5 = 0;
while (_local5 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(10027008);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local5++;
}
};
onReset = function () {
_root.ballRad = oldRad;
};
Symbol 501 MovieClip [Object21] Frame 1
collMode = "objPoint";
scale = 400;
oldRad = _root.ballRad;
onBallCollision = function () {
if (_root.ballFollow.link == "BallBomb") {
return(undefined);
}
if (_root.ball.grown) {
return(undefined);
}
attachMovie("Collect", "collect", getNextHighestDepth());
_root.ball.shrink = false;
_root.ball.grown = true;
for (var _local5 in _root.objects) {
var _local4 = _root.objects[_local5];
if (_local4.portal) {
_local4.nxs = scale;
}
}
_root.ball.onEnterFrame = function () {
this._xscale = this._xscale - ((this._xscale - scale) / 5);
this._yscale = this._xscale;
if (Math.abs(this._xscale - scale) < 2) {
this._xscale = scale;
this._yscale = scale;
_root.ballRad = _root.ballRad * (scale / 100);
delete this.onEnterFrame;
}
};
var _local5 = 0;
while (_local5 < 20) {
var _local3 = _root.attachMovie("PowerupStar", "powerupStar" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_local3._x = _x;
_local3._y = _y;
_local3._rotation = random(360);
_local3._xscale = (_local3._yscale = 150);
_local3._alpha = 150;
_local3.c = new Color(_local3);
_local3.c.setRGB(30720);
_local3.onEnterFrame = function () {
this._x = this._x + (Math.cos((this._rotation / Math.PI) * 180) * 10);
this._y = this._y + (Math.sin((this._rotation / Math.PI) * 180) * 10);
this._alpha = this._alpha - 15;
if (this._alpha < 0) {
this.removeMovieClip();
}
};
_local5++;
}
};
onReset = function () {
_root.ballRad = oldRad;
};
Symbol 506 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.globalReset) {
this.gotoAndStop(1);
_parent.used = false;
}
};
Symbol 506 MovieClip Frame 15
stop();
Symbol 507 MovieClip [Object22] Frame 1
collMode = "ballPoint";
onBallCollision = function () {
if (used) {
return(undefined);
}
used = true;
center.play();
};
onReset = function () {
center.gotoAndStop(1);
used = false;
};
fakeWidth = 59.5;
fakeHeight = 59.5;
Symbol 509 MovieClip Frame 1
i = 0;
while (i <= 33) {
this["place" + i].i = i;
this["place" + i].onRelease = function () {
_root.startPlace(this.i);
_parent.gotoAndStop("none");
};
this["place" + i].onRollOver = function () {
o = attachMovie("outline", "outline", getNextHighestDepth());
o._x = this._x;
o._y = this._y;
o._width = 25;
o._height = 25;
};
this["place" + i].onRollOut = (this["place" + i].onReleaseOutside = function () {
o.removeMovieClip();
});
i++;
}
Symbol 514 MovieClip Frame 1
stop();
Symbol 570 MovieClip Frame 1
function valid(txt) {
var _local2 = 0;
while (_local2 < txt.length) {
var _local1 = 0;
while (_local1 < disallowed.length) {
if (txt.charAt(_local2) == disallowed[_local1]) {
return(false);
}
_local1++;
}
_local2++;
}
return(true);
}
function updateRealmInfo(killObjects) {
var _local2 = _root.metadat.r;
realmName.text = _root.realmNames[_local2 - 1];
realmBackground.bg.gotoAndStop(_local2);
tileBackground.bg.gotoAndStop(_local2);
_root.bg.gotoAndStop(_local2);
_root.container.tileBackground.gotoAndStop(_local2);
}
var disallowed = ["^", ":", "|"];
name.text = _root.metadat.n;
author.text = _root.metadat.a;
onEnterFrame = function () {
if (valid(name.text)) {
_root.metadat.n = name.text;
nameField.gotoAndStop(1);
} else {
nameField.gotoAndStop(2);
}
if (valid(author.text)) {
_root.metadat.a = author.text;
authorField.gotoAndStop(1);
} else {
authorField.gotoAndStop(2);
}
};
realmLeft.onRelease = function () {
if (_root.metadat.r > 1) {
_root.metadat.r--;
} else {
_root.metadat.r = _root.numRealms;
}
updateRealmInfo(true);
};
realmRight.onRelease = function () {
if (_root.metadat.r < _root.numRealms) {
_root.metadat.r++;
} else {
_root.metadat.r = 1;
}
updateRealmInfo(true);
};
updateRealmInfo(false);
Symbol 577 MovieClip Frame 2
stop();
code.text = _root.saveData();
Symbol 579 MovieClip Frame 1
onEnterFrame = function () {
if ((_currentframe + 3) >= _totalframes) {
gotoAndStop (1);
} else {
gotoAndStop(_currentframe + 3);
}
};
stop();
Symbol 586 MovieClip Frame 1
stop();
onCheck = function (loggedIn, u) {
if (loggedIn) {
gotoAndStop (2);
} else {
gotoAndStop (3);
}
};
_root.checkLoggedIn(this, true);
Symbol 586 MovieClip Frame 2
spinner._visible = false;
submit.onRelease = function () {
spinner._visible = true;
this._visible = false;
_root.submitLevel(this._parent);
};
onSend = function (error) {
gotoAndPlay (4);
};
Symbol 586 MovieClip Frame 50
_root.closeLoginBar();
_parent.gotoAndStop(1);
Symbol 593 MovieClip Frame 1
loadLvl.onRelease = function () {
_root.loadData(code.text);
_parent.gotoAndStop("none");
};
Symbol 598 MovieClip Frame 1
newLvl.onRelease = function () {
_root.loadData();
_parent.gotoAndStop("none");
};
Symbol 600 MovieClip Frame 1
newLvl.onRelease = function () {
_root.exit();
};
Symbol 604 MovieClip [Tools] Frame 1
stop();
var gf = (new flash.filters.GlowFilter(0, 1, 2, 2, 1, 2));
filters = [gf];
var posLeft = -174.6;
var posRight = 30.4;
bar.onPress = function () {
onMouseMove = function () {
_alpha = 50;
};
this._parent.startDrag();
};
bar.onRelease = (bar.onReleaseOutside = function () {
if (_alpha == 100) {
prev = _currentframe;
gotoAndStop ("compact");
} else {
section._x = posRight;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
}
_alpha = 100;
delete onMouseMove;
this._parent.stopDrag();
});
if (prev) {
gotoAndStop(prev);
delete prev;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 2
stop();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("none");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 3
stop();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("none");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 4
stop();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("none");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 5
stop();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("none");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 6
stop();
_root.openLoginBar();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
_root.closeLoginBar();
};
objects.onRelease = function () {
gotoAndStop ("objects");
_root.closeLoginBar();
};
config.onRelease = function () {
gotoAndStop ("config");
_root.closeLoginBar();
};
save.onRelease = function () {
gotoAndStop ("save");
_root.closeLoginBar();
};
submit.onRelease = function () {
gotoAndStop ("none");
_root.closeLoginBar();
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
_root.closeLoginBar();
};
newLvl.onRelease = function () {
gotoAndStop ("new");
_root.closeLoginBar();
};
test.onRelease = function () {
gotoAndStop ("test");
_root.closeLoginBar();
};
exit.onRelease = function () {
gotoAndStop ("exit");
_root.closeLoginBar();
};
Symbol 604 MovieClip [Tools] Frame 7
stop();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("none");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 8
stop();
var posLeft = -174.6;
var posRight = 30.4;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
} else {
section._x = posRight;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("none");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("exit");
};
Symbol 604 MovieClip [Tools] Frame 9
stop();
var posLeft = -174.6;
if ((_x + _width) > _root.stageWidth) {
section._x = posLeft;
}
tiles.onRelease = function () {
gotoAndStop ("tiles");
};
objects.onRelease = function () {
gotoAndStop ("objects");
};
config.onRelease = function () {
gotoAndStop ("config");
};
save.onRelease = function () {
gotoAndStop ("save");
};
submit.onRelease = function () {
gotoAndStop ("submit");
};
loadLvl.onRelease = function () {
gotoAndStop ("load");
};
newLvl.onRelease = function () {
gotoAndStop ("new");
};
test.onRelease = function () {
gotoAndStop ("test");
};
exit.onRelease = function () {
gotoAndStop ("none");
};
Symbol 604 MovieClip [Tools] Frame 10
stop();
_root.playLevel();
bar.onPress = function () {
onMouseMove = function () {
_alpha = 50;
};
this._parent.startDrag();
};
bar.onRelease = (bar.onReleaseOutside = function () {
if (_alpha == 100) {
_root.editLevel();
gotoAndStop ("none");
}
_alpha = 100;
delete onMouseMove;
this._parent.stopDrag();
});
Symbol 604 MovieClip [Tools] Frame 11
stop();
bar.onPress = function () {
onMouseMove = function () {
_alpha = 50;
};
this._parent.startDrag();
};
bar.onRelease = (bar.onReleaseOutside = function () {
if (_alpha == 100) {
gotoAndStop ("none");
}
_alpha = 100;
delete onMouseMove;
this._parent.stopDrag();
});
Symbol 610 MovieClip Frame 60
_parent._parent.removeMovieClip();
Symbol 620 MovieClip [BallWin] Frame 1
i = 0;
while (i < 20) {
shel = _root.attachMovie("BallSpawnPulse1", "star" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._x = _root.goal._x;
shel._y = _root.goal._y;
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel._rotation = random(360);
i++;
}
onEnterFrame = function () {
_root.checkPause(this);
i = 0;
while (i < 2) {
shel = _root.attachMovie("BallSpawnPulse1", "tp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel = _root.attachMovie("BallSpawnPulse2", "tp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
i++;
}
};
Symbol 620 MovieClip [BallWin] Frame 30
this.removeMovieClip();
Symbol 623 MovieClip [BallSpawnPulse2] Frame 1
speed = random(3) + 1;
onEnterFrame = function () {
_root.checkPause(this);
this._y = this._y - speed;
this._alpha = this._alpha - 20;
};
Symbol 623 MovieClip [BallSpawnPulse2] Frame 9
this.removeMovieClip();
Symbol 624 MovieClip [BallSpawnPulse1] Frame 1
speed = random(8) + 1;
onEnterFrame = function () {
_root.checkPause(this);
this._y = this._y - speed;
this._alpha = this._alpha - 20;
};
Symbol 624 MovieClip [BallSpawnPulse1] Frame 9
this.removeMovieClip();
Symbol 627 MovieClip [BallSpawn] Frame 1
onEnterFrame = function () {
_root.checkPause(this);
shel = _root.attachMovie("BallSpawnPulse1", "tp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel = _root.attachMovie("BallSpawnPulse2", "tp" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
};
Symbol 627 MovieClip [BallSpawn] Frame 15
this.onFinish();
this.removeMovieClip();
Symbol 631 MovieClip [BallDeath] Frame 1
onEnterFrame = function () {
_root.checkPause(this);
spinner._xscale = spinner._xscale + 30;
spinner._yscale = spinner._xscale;
spinner._rotation = spinner._rotation - 20;
spinner._alpha = spinner._alpha - 10;
};
Symbol 631 MovieClip [BallDeath] Frame 8
this.removeMovieClip();
Symbol 633 MovieClip [Ball] Frame 1
var ds = (new flash.filters.DropShadowFilter(5, 45, 6684774, 1, 5, 5, 0.72, 1));
filters = [ds];
Symbol 636 MovieClip Frame 1
gotoAndPlay(random(59) + 1);
Symbol 645 MovieClip [Object19] Frame 1
fakeWidth = 70;
fakeHeight = 70;
onBallSpawn = function () {
onEnterFrame = function () {
if (_root.gamePaused) {
return(undefined);
}
var _local6 = Math.atan2(_root.ball._y - _y, _root.ball._x - _x);
var _local3 = _root.ball._x - _x;
var _local4 = _root.ball._y - _y;
var _local2 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (_local2 < 500) {
var _local7 = 500 - _local2;
var _local5 = 0.3 * (_local7 / 500);
_root.ballXV = _root.ballXV - (Math.cos(_local6) * _local5);
_root.ballYV = _root.ballYV - (Math.sin(_local6) * _local5);
}
if (_local2 < 100) {
_root.ball._xscale = Math.max((nxs * _local2) / 100, 0);
trace(nxs);
_root.ball._yscale = _root.ball._xscale;
}
if (_local2 < 20) {
_root.ball._x = _x;
_root.ball._y = _y;
_root.ball._visible = false;
count = count - 5;
if (count <= 0) {
_root.die(true);
}
}
};
};
nxs = 100;
portal = true;
onReset = function () {
delete onEnterFrame;
_yscale = 100;
_xscale = 100;
_visible = true;
_root.ballControl = true;
count = 200;
nxs = 100;
};
Symbol 651 MovieClip [Object16] Frame 1
fakeWidth = 70;
fakeHeight = 70;
onBallSpawn = function () {
onEnterFrame = function () {
if (_root.gamePaused) {
return(undefined);
}
var _local6 = Math.atan2(_root.ball._y - _y, _root.ball._x - _x);
var _local3 = _root.ball._x - _x;
var _local4 = _root.ball._y - _y;
var _local2 = Math.sqrt((_local3 * _local3) + (_local4 * _local4));
if (_local2 < 125) {
var _local7 = 125 - _local2;
var _local5 = 5 * (_local7 / 125);
_root.ballXV = _root.ballXV + (Math.cos(_local6) * _local5);
_root.ballYV = _root.ballYV + (Math.sin(_local6) * _local5);
}
};
};
onReset = function () {
delete onEnterFrame;
};
Symbol 655 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 659 MovieClip Frame 1
stop();
Symbol 661 MovieClip Frame 1
stop();
Symbol 663 MovieClip Frame 1
stop();
Symbol 665 MovieClip [BallBomb] Frame 1
timerDisp = 10;
timer = 0;
onEnterFrame = function () {
if (_root.gamePaused) {
stop();
}
if (!_root.gamePaused) {
play();
}
if (!_root.gamePaused) {
timer++;
if (timer == 20) {
timer = 0;
timerDisp--;
}
if (timerDisp <= 3) {
ring1.play();
}
if (timerDisp <= 2) {
ring2.play();
}
if (timerDisp <= 1) {
ring3.play();
}
if (timerDisp == 0) {
onComplete();
}
}
};
Symbol 665 MovieClip [BallBomb] Frame 200
stop();
Symbol 675 MovieClip [FireSpit] Frame 1
gotoAndStop(random(2) + 1);
Symbol 676 MovieClip [BallFire] Frame 1
onEnterFrame = function () {
var _local3 = 0;
while (_local3 < 1) {
var _local2 = attachMovie("FireSpit", "fireSpit" + getNextHighestDepth(), getNextHighestDepth());
_local2._y = (_y + random(40)) - 20;
_local2._x = (_x + random(40)) - 20;
_local2.v = 1;
_local2._rotation = 270;
_local2._xscale = (_local2._yscale = random(75) + 25);
_local2._x = _local2._x - _x;
_local2._y = _local2._y - _y;
_local2.onEnterFrame = function () {
this._y = this._y - this.v;
this.v = this.v + 1;
this._x = this._x + 0.5;
this._alpha = this._alpha - 8;
if (this._alpha <= 20) {
this.removeMovieClip();
}
};
_local3++;
}
};
Symbol 678 MovieClip Frame 1
gotoAndStop(random(3) + 1);
Symbol 679 MovieClip [FuseSpark] Frame 7
onComplete();
this.removeMovieClip();
Symbol 682 MovieClip [SparkRed] Frame 1
starter = random(10);
timer = 0;
onEnterFrame = function () {
timer++;
if (timer == starter) {
play();
}
};
stop();
Symbol 682 MovieClip [SparkRed] Frame 10
this.removeMovieClip();
Symbol 684 MovieClip [GiantExplosion] Frame 1
onEnterFrame = function () {
shel = attachMovie("ExplosionBit", "exp" + getNextHighestDepth(), getNextHighestDepth());
shel._x = random(400) - 200;
shel._y = random(400) - 200;
shel._xscale = random(200) + 50;
shel._yscale = shel._xscale;
var _local1 = new Color(shel);
tak = random(3);
if (tak == 0) {
_local1.setRGB(16777215);
} else if (tak == 2) {
_local1.setRGB(13734710);
} else if (tak == 1) {
_local1.setRGB(13841460);
}
shel = attachMovie("ExplosionBit", "exp" + getNextHighestDepth(), getNextHighestDepth());
shel._x = random(50) - 25;
shel._y = random(50) - 25;
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
_local1 = new Color(shel);
tak = random(3);
if (tak == 0) {
_local1.setRGB(16777215);
} else if (tak == 2) {
_local1.setRGB(13734710);
} else if (tak == 1) {
_local1.setRGB(13841460);
}
};
Symbol 684 MovieClip [GiantExplosion] Frame 19
onEnterFrame = null;
Symbol 684 MovieClip [GiantExplosion] Frame 29
stop();
this.removeMovieClip();
Symbol 687 MovieClip [ExplosionBit] Frame 6
this.removeMovieClip();
Symbol 700 MovieClip [jelly] Frame 1
onEnterFrame = function () {
this._x = _root.ball._x;
this._y = _root.ball._y;
this._xscale = 100 + (_root.yMov * 2);
this._rotation = _root.xMov / 5;
};
_root.gravity = 0.1;
Symbol 713 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 714 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 715 MovieClip [leaf] Frame 1
speedX = random(20) + 10;
speedY = random(6) - 3;
onEnterFrame = function () {
_root.checkPause(this);
if (!_root.gamePaused) {
this._x = this._x + speedX;
this._y = this._y + speedY;
if (this._x > 410) {
this.removeMovieClip();
}
}
};
Symbol 716 MovieClip [leafer] Frame 1
onEnterFrame = function () {
if (!_root.gamePaused) {
shel = attachMovie("leaf", "l" + _root.k, _root.k++);
shel._y = random(550);
shel._x = -10;
_root.ball._x = _root.ball._x + 7;
}
};
Symbol 720 MovieClip Frame 1
onEnterFrame = function () {
if (_root.bossMode) {
gotoAndStop (2);
}
};
stop();
Symbol 722 MovieClip [ball_goal] Frame 1
if (!_root.bossMode) {
i = 0;
while (i < 20) {
shel = _root.attachMovie("star", "star" + _root.k, _root.k++);
shel._x = _root.goal._x;
shel._y = _root.goal._y;
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel._rotation = random(360);
i++;
}
} else {
i = 0;
while (i < 20) {
shel = _root.attachMovie("star", "star" + _root.k, _root.k++);
shel._x = _root.looper._x + _root.looper.goal._x;
shel._y = _root.looper._y + _root.looper.goal._y;
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel._rotation = random(360);
i++;
}
}
onEnterFrame = function () {
_root.checkPause(this);
if (!_root.gamePaused) {
if (!_root.bossMode) {
i = 0;
while (i < 2) {
shel = _root.attachMovie("triangle_pulse", "tp" + _root.k, _root.k++);
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel = _root.attachMovie("triangle_pulse2", "tp" + _root.k, _root.k++);
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
i++;
}
} else {
i = 0;
while (i < 2) {
shel = _root.attachMovie("triangle_pulse", "tp" + _root.k, _root.k++);
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel = _root.attachMovie("triangle_pulse2", "tp" + _root.k, _root.k++);
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
i++;
}
}
}
};
Symbol 722 MovieClip [ball_goal] Frame 25
if (_root.bossMode) {
_root.spawnBallGoal();
}
Symbol 722 MovieClip [ball_goal] Frame 30
this.removeMovieClip();
Symbol 724 MovieClip [ball_spawn] Frame 1
onEnterFrame = function () {
_root.checkPause(this);
if (!_root.gamePaused) {
shel = _root.attachMovie("triangle_pulse", "tp" + _root.k, _root.k++);
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
shel = _root.attachMovie("triangle_pulse2", "tp" + _root.k, _root.k++);
shel._x = (this._x + random(this._width)) - (this._width / 2);
shel._y = (this._y + random(this._height)) - (this._height / 2);
shel.burst._rotation = random(360);
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
}
};
Symbol 724 MovieClip [ball_spawn] Frame 15
_root.attachBall();
this.removeMovieClip();
Symbol 728 MovieClip [ball_die] Frame 1
onEnterFrame = function () {
_root.checkPause(this);
spinner._xscale = spinner._xscale + 30;
spinner._yscale = spinner._xscale;
spinner._rotation = spinner._rotation - 20;
spinner._alpha = spinner._alpha - 10;
};
Symbol 728 MovieClip [ball_die] Frame 8
this.removeMovieClip();
Symbol 734 MovieClip Frame 1
stop();
Symbol 734 MovieClip Frame 150
gotoAndPlay (2);
Symbol 739 MovieClip Frame 1
stop();
Symbol 739 MovieClip Frame 150
gotoAndPlay (2);
Symbol 744 MovieClip Frame 1
stop();
Symbol 744 MovieClip Frame 150
gotoAndPlay (2);
Symbol 749 MovieClip Frame 1
stop();
Symbol 749 MovieClip Frame 150
gotoAndPlay (2);
Symbol 784 MovieClip [ball_bubble] Frame 35
_root.ball._x = this._x + ball._x;
_root.ball._y = this._y + ball._y;
_root.xMov = 0;
_root.yMov = 0;
_root.ball._rotation = 0;
this.removeMovieClip();
Symbol 786 MovieClip [triangle_pulse2] Frame 1
speed = random(3) + 1;
onEnterFrame = function () {
_root.checkPause(this);
if (!_root.gamePaused) {
this._y = this._y - speed;
this._alpha = this._alpha - 20;
}
};
Symbol 786 MovieClip [triangle_pulse2] Frame 9
this.removeMovieClip();
Symbol 787 MovieClip [triangle_pulse] Frame 1
speed = random(8) + 1;
onEnterFrame = function () {
_root.checkPause(this);
if (!_root.gamePaused) {
this._y = this._y - speed;
this._alpha = this._alpha - 20;
}
};
Symbol 787 MovieClip [triangle_pulse] Frame 9
this.removeMovieClip();
Symbol 790 MovieClip [starG] Frame 10
this.removeMovieClip();
Symbol 792 MovieClip [star] Frame 1
life = random(20) + 20;
onEnterFrame = function () {
_root.checkPause(this);
star._y = star._y + 5;
if (life < 10) {
star._alpha = life * 10;
}
life--;
};
Symbol 799 MovieClip Frame 1
tap = Math.round(Math.random() * 16777215);
var colorChange = new Color(this);
colorChange.setRGB(tap);
Symbol 801 MovieClip [transition] Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
this.cacheAsBitmap = true;
Symbol 801 MovieClip [transition] Frame 20
_root.changeLevel();
Symbol 801 MovieClip [transition] Frame 30
_root.spawnBallGoal();
Symbol 801 MovieClip [transition] Frame 41
this.removeMovieClip();
Symbol 804 MovieClip [powerUpStar] Frame 1
life = random(10) + 10;
onEnterFrame = function () {
_root.checkPause(this);
star._y = star._y + 4;
if (life < 10) {
star._alpha = life * 10;
}
life--;
};
Symbol 812 MovieClip [powerUp_ring] Frame 40
this.removeMovieClip();
Symbol 825 MovieClip Frame 19
stop();
Symbol 829 MovieClip Frame 21
stop();
Symbol 830 MovieClip [flower] Frame 1
onEnterFrame = function () {
if (!_root.gamePaused) {
this._x = _root.ball._x;
this._y = _root.ball._y;
if (_root.ball._xscale < 300) {
_root.ball._xscale = _root.ball._xscale + 10;
_root.ball._yscale = _root.ball._yscale + 10;
}
this._rotation = _root.ball._rotation;
}
};
Symbol 831 MovieClip [fire] Frame 1
var oldX;
var oldY;
var newX = 0;
var newY = 0;
var h;
var a;
var angle;
onEnterFrame = function () {
this._x = _root.ball._x;
this._y = _root.ball._y;
newX = Number(_root.ball._x);
newY = Number(_root.ball._y);
tac = random(3);
if (tac == 0) {
_root.colorPart(this, _root.ball, 13369344, 10 - random(20));
_root.colorPart(this, _root.ball, 16711680, 10 - random(20));
}
if (tac == 1) {
_root.colorPart(this, _root.ball, 13408512, 10 - random(20));
_root.colorPart(this, _root.ball, 13369344, 10 - random(20));
}
if (tac == 2) {
_root.colorPart(this, _root.ball, 16711680, 10 - random(20));
_root.colorPart(this, _root.ball, 13408512, 10 - random(20));
}
oldX = _root.ball._x;
oldY = _root.ball._y;
};
Symbol 833 MovieClip [rock] Frame 1
_root.gravity = 0.6;
Symbol 835 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 837 MovieClip Frame 1
stop();
Symbol 838 MovieClip Frame 1
stop();
Symbol 839 MovieClip Frame 1
stop();
Symbol 841 MovieClip [bombRing] Frame 1
timerDisp = 10;
timer = 0;
onEnterFrame = function () {
_root.checkPause(this);
if (!_root.gamePaused) {
this._rotation = _root.ball._rotation * -1;
timer++;
if (timer == 20) {
timer = 0;
timerDisp--;
}
if (timerDisp <= 3) {
ring1.play();
}
if (timerDisp <= 2) {
ring2.play();
}
if (timerDisp <= 1) {
ring3.play();
}
if (timerDisp == 0) {
_root.torch.removeMovieClip();
shel = _root.attachMovie("torcher", "torch", _root.k++);
shel._x = _root.ball._x - 15;
shel._y = _root.ball._y;
shel._height = this._height * 1.5;
shel._width = this._width * 1.5;
shel = _root.attachMovie("giantExplosion", "g" + _root.k, _root.k++);
shel._x = _root.ball._x;
shel._y = _root.ball._y;
this._visible = false;
timerDisp = -1;
this.removeMovieClip();
}
}
};
Symbol 841 MovieClip [bombRing] Frame 200
stop();
Symbol 848 MovieClip [mudBall] Frame 1
onEnterFrame = function () {
this._x = _root.ball._x;
this._y = _root.ball._y;
};
Symbol 855 MovieClip [bubble] Frame 1
onEnterFrame = function () {
this._x = _root.ball._x;
this._y = _root.ball._y;
};
Symbol 859 MovieClip [spewWater2] Frame 15
this.removeMovieClip();
Symbol 860 MovieClip [spewWater] Frame 25
this.removeMovieClip();
Symbol 863 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 865 MovieClip [fireSpark] Frame 1
life = random(10) + 4;
onEnterFrame = function () {
spark._y = spark._y - 2;
life--;
if (life < 5) {
this._alpha = life * 5;
}
if (life == 0) {
this.removeMovieClip();
}
};
Symbol 867 MovieClip Frame 1
this._visible = false;
Symbol 868 MovieClip [torcher] Frame 1
onEnterFrame = function () {
_root.checkPause(this);
if (_root.globalReset) {
this.removeMovieClip();
}
};
Symbol 868 MovieClip [torcher] Frame 12
this.removeMovieClip();
Symbol 874 MovieClip [stoneExplode] Frame 1
life = 100;
myLife = random(60) + 20;
rot = random(40) - 20;
stone._rotation = random(360);
stone._xscale = random(200) + 10;
stone._yscale = stone._xscale;
this._rotation = random(360);
yMov = 0;
gravity = 0.4;
onEnterFrame = function () {
life--;
if (life < 0) {
this.removeMovieClip();
}
if (life < 5) {
this._alpha = life * 20;
}
stone._y = stone._y + (myLife / 4);
stone._rotation = stone._rotation + rot;
this._y = this._y + yMov;
yMov = yMov + gravity;
};
Symbol 877 MovieClip [spark_red] Frame 1
starter = random(10);
timer = 0;
onEnterFrame = function () {
timer++;
if (timer == starter) {
play();
}
};
stop();
Symbol 877 MovieClip [spark_red] Frame 10
this.removeMovieClip();
Symbol 881 MovieClip [explosion_bit] Frame 1
trace("bomb");
Symbol 881 MovieClip [explosion_bit] Frame 6
this.removeMovieClip();
Symbol 884 MovieClip [whiteFadeIn] Frame 10
this.removeMovieClip();
Symbol 886 MovieClip [monkeyPoo] Frame 1
onEnterFrame = function () {
_root.globalReset = true;
};
Symbol 886 MovieClip [monkeyPoo] Frame 6
this.removeMovieClip();
Symbol 892 MovieClip [snowBall] Frame 15
stop();
Symbol 893 MovieClip [shrink] Frame 1
onEnterFrame = function () {
if (!_root.gamePaused) {
if (_root.ball._xscale > 20) {
_root.ball._xscale = _root.ball._xscale - 10;
_root.ball._yscale = _root.ball._yscale - 10;
_root.follower._xscale = _root.follower._xscale - 10;
_root.follower._yscale = _root.follower._yscale - 10;
}
}
};
Symbol 894 MovieClip [bigFire] Frame 1
onEnterFrame = function () {
if (!_root.gamePaused) {
shel = _root.attachMovie("miniFire", "mi" + _root.k, _root.k++);
shel._x = random(410) - 10;
shel._y = 560;
}
};
_root.gravity = -0.05;
Symbol 895 MovieClip [miniFire] Frame 1
gotoAndStop(random(3) + 1);
speed = random(12) + 7;
this._xscale = random(100) + 50;
this._yscale = this._xscale;
onEnterFrame = function () {
if (!_root.gamePaused) {
this._y = this._y - speed;
}
if (_y < 10) {
this.removeMovieClip();
}
if (_root.globalReset) {
this.removeMovieClip();
}
};
Symbol 896 MovieClip [rotateMe] Frame 1
onEnterFrame = function () {
if (!_root.gamePaused) {
_root["level" + _root.level]._rotation = _root["level" + _root.level]._rotation + 1;
}
};
Symbol 897 MovieClip [screenShrink] Frame 1
onEnterFrame = function () {
if (!_root.gamePaused) {
_root._xscale = _root._xscale * 0.995;
_root._yscale = _root._xscale;
_root.ball._xscale = _root.ball._xscale * 1.00502512562814;
_root.ball._yscale = _root.ball._xscale;
}
};
Symbol 909 MovieClip Frame 1
stop();
Symbol 914 MovieClip Frame 1
stop();
Symbol 919 MovieClip Frame 1
stop();
Symbol 924 MovieClip Frame 1
stop();
Symbol 928 MovieClip [ball] Frame 1
stop();
Symbol 932 MovieClip Frame 1
stop();
Symbol 938 MovieClip Frame 1
stop();
Symbol 943 MovieClip Frame 1
stop();
Symbol 948 MovieClip Frame 1
stop();
Symbol 953 MovieClip Frame 1
stop();
Symbol 956 MovieClip Frame 1
stop();
Symbol 957 MovieClip Frame 1
stop();
Symbol 959 MovieClip [achievement] Frame 133
this.removeMovieClip();
Symbol 962 MovieClip [starBoss] Frame 1
onEnterFrame = function () {
if (_root.dynamicHitTest(_root.ball, this)) {
_root.spawnBall();
}
};
Symbol 962 MovieClip [starBoss] Frame 102
this.removeMovieClip();
Symbol 964 MovieClip [giantExplosion] Frame 1
onEnterFrame = function () {
shel = attachMovie("explosion_bit", "exp" + _root.k, _root.k++);
shel._x = random(400) - 200;
shel._y = random(400) - 200;
shel._xscale = random(200) + 50;
shel._yscale = shel._xscale;
var _local2 = new Color(shel);
tak = random(3);
if (tak == 0) {
_local2.setRGB(16777215);
} else if (tak == 2) {
_local2.setRGB(13734710);
} else if (tak == 1) {
_local2.setRGB(13841460);
}
shel = attachMovie("explosion_bit", "exp" + _root.k, _root.k++);
shel._x = random(50) - 25;
shel._y = random(50) - 25;
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
_local2 = new Color(shel);
tak = random(3);
if (tak == 0) {
_local2.setRGB(16777215);
} else if (tak == 2) {
_local2.setRGB(13734710);
} else if (tak == 1) {
_local2.setRGB(13841460);
}
};
Symbol 964 MovieClip [giantExplosion] Frame 19
onEnterFrame = null;
Symbol 964 MovieClip [giantExplosion] Frame 29
this.removeMovieClip();
Symbol 964 MovieClip [giantExplosion] Frame 30
stop();
Symbol 967 MovieClip [dashers] Frame 1
speedX = random(10) + 5;
speedY = random(4) - 2;
onEnterFrame = function () {
if (_root.globalReset) {
dd._x = 0;
dd._y = 0;
}
if (_root.ballActive && (_root.dynamicHitTest(_root.ball, this))) {
_root.spawnBall();
dd._x = 0;
dd._y = 0;
}
if ((_root.currentPowerUp == "wind") && (!_root.gamePaused)) {
dd._x = dd._x + speedX;
dd._y = dd._y + speedY;
}
};
Symbol 971 Button [highScoresButton]
on (release) {
getURL ("http://www.tastylamp.net/flashback/brv/highscores.php", "_blank");
}
Symbol 978 Button
on (release) {
getURL ("http://www.jmtb02.com/", "_blank");
}
Symbol 982 Button
on (release) {
getURL ("http://www.armorgames.com/", "_blank");
}
Symbol 985 MovieClip Frame 100
_root.nextFrame();
stop();
Symbol 994 Button
on (release) {
play();
}
Symbol 1005 MovieClip Frame 1
var wd1 = new Sound();
wd1.attachSound("Anaconda");
wd1.start(0, 99);
Symbol 1005 MovieClip Frame 151
_root.nextFrame();
Symbol 1011 MovieClip Frame 20
bol = -200;
bor = 200;
bot = -275;
bob = 275;
bits = [];
var i = 0;
while (i < 100) {
var b = attachMovie("Bit", "bit" + getNextHighestDepth(), getNextHighestDepth());
bits.push(b);
var ang = ((Math.random() * Math.PI) * 2);
var spd = (random(5) + 5);
b.vx = Math.cos(ang) * spd;
b.vy = Math.sin(ang) * spd;
var bf = (new flash.filters.BlurFilter(random(5) + 5, random(5) + 5, 1));
var gf = (new flash.filters.GlowFilter(16777215, 1, 5, 5, 2, 1, false, false));
b.filters = [bf, gf];
b.onEnterFrame = function () {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
if (this._x < bol) {
this._x = bol;
this.vx = -this.vx;
}
if (this._x > bor) {
this._x = bor;
this.vx = -this.vx;
}
if (this._y < bot) {
this._y = bot;
this.vy = -this.vy;
}
if (this._y > bob) {
this._y = bob;
this.vy = -this.vy;
}
};
i++;
}
Symbol 1011 MovieClip Frame 94
for (var i in bits) {
bits[i].onEnterFrame = function () {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this._y = this._y - ((this._y - 0) / 20);
this._x = this._x - ((this._x - 0) / 20);
};
}
Symbol 1011 MovieClip Frame 177
for (var i in bits) {
bits[i].vy = 0;
bits[i].onEnterFrame = function () {
this._x = this._x + this.vx;
this._y = this._y + this.vy;
this.vy = this.vy + 2;
if (this._y > bob) {
this.removeMovieClip();
}
};
}
Symbol 1011 MovieClip Frame 190
_root.nextFrame();
Symbol 1019 MovieClip Frame 135
_root.play();
Symbol 1035 Button
on (release) {
_root.savefile.data.oldName = _root.oldName;
play();
}
Symbol 1037 Button
on (release) {
play();
}
Symbol 1040 MovieClip Frame 1
_root.oldName = "Me";
Symbol 1040 MovieClip Frame 10
stop();
Symbol 1040 MovieClip Frame 51
_root.play();
Symbol 1061 MovieClip Frame 1
stop();
i = 1;
while (i < 11) {
if (_root["ach" + i] == true) {
this["ach" + i].nextFrame();
}
i++;
}
if (_root.tMili != undefined) {
_root.oldMili = _root.tMili;
if (_root.tSeconds <= 9) {
oldSecondsDisp = "0" + _root.tSeconds;
} else {
oldSecondsDisp = _root.tSeconds;
}
if (_root.tMinutes <= 9) {
oldMinutesDisp = "0" + _root.tMinutes;
} else {
oldMinutesDisp = _root.tMinutes;
}
_root.oldLevel = _root.level;
_root.oldDeaths = _root.deaths;
} else {
if (_root.oldSeconds <= 9) {
oldSecondsDisp = "0" + _root.oldSeconds;
} else {
oldSecondsDisp = _root.oldSeconds;
}
if (_root.tMinutes <= 9) {
oldMinutesDisp = "0" + _root.oldMinutes;
} else {
oldMinutesDisp = _root.oldMinutes;
}
}
Symbol 1069 Button
on (release) {
_root.menuChoice = "loadSaved";
menuChooser.play();
}
Symbol 1081 Button
on (release) {
_root.prog = 0;
_root.menuChoice = "new";
menuChooser.play();
}
Symbol 1092 MovieClip Frame 1
stop();
Symbol 1092 MovieClip Frame 2
stopAllSounds();
Symbol 1092 MovieClip Frame 25
if (_root.menuChoice == "loadSaved") {
stopAllSounds();
_root.loadSaved = true;
_root.goto("game");
}
Symbol 1092 MovieClip Frame 80
_root.loadSaved = false;
stopAllSounds();
_root.goto("game");
Symbol 1093 Button
on (release) {
_root.menuChoice = "loadSaved";
menuChooser.play();
}
Symbol 1099 Button
on (release) {
stopAllSounds();
_root.bredMode = "userlevels";
_root.goto("userLevels");
}
Symbol 1100 Button
on (release) {
stopAllSounds();
_root.bredMode = "editor";
_root.goto("userLevels");
}
Symbol 1101 Button
on (release) {
if (_root.select == false) {
_root.select = true;
achPop.play();
}
}
Symbol 1102 Button
on (release) {
if (_root.select == false) {
_root.select = true;
cc.play();
}
}
Symbol 1103 Button
on (release) {
getURL ("http://armorgames.com/", "_blank");
}
Symbol 1104 Button
on (release) {
getURL ("http://fikreesprojects.deviantart.com/", "_blank");
}
Symbol 1110 Button
on (release) {
delete _root.savefile.data.oldName;
_root.goto("clearCache");
}
Symbol 1113 Button
on (release) {
play();
}
Symbol 1115 MovieClip Frame 1
stop();
Symbol 1115 MovieClip Frame 10
stop();
Symbol 1115 MovieClip Frame 24
_root.select = false;
Symbol 1121 Button
on (release) {
play();
}
Symbol 1132 MovieClip Frame 1
stop();
Symbol 1132 MovieClip Frame 2
i = 1;
while (i < 11) {
if (_root["ach" + i] == true) {
this["ach" + i].nextFrame();
}
i++;
}
Symbol 1132 MovieClip Frame 9
stop();
Symbol 1132 MovieClip Frame 23
_root.select = false;
Symbol 1133 MovieClip Frame 1
_root.select = false;
_root.loadSaved = false;
_root.tempLevel = 1;
Symbol 1133 MovieClip Frame 29
stop();
Symbol 1167 MovieClip Frame 10
stop();
Symbol 1168 MovieClip Frame 5
stop();
Symbol 1169 MovieClip Frame 1
stop();
Symbol 1169 MovieClip Frame 3
stop();
Symbol 1169 MovieClip Frame 5
stop();
Symbol 1169 MovieClip Frame 7
stop();
Symbol 1181 Button
on (release) {
if (_root.audioOn) {
_root.globalVolume.setVolume(0);
_root.addMessage("Sounds muted");
} else {
_root.globalVolume.setVolume(100);
_root.addMessage("Sounds unmuted");
}
_root.audioOn = !_root.audioOn;
}
Symbol 1185 Button
on (release) {
if (!_root.bossMode) {
_root.savefile.data.ach1 = _root.ach1;
_root.savefile.data.ach2 = _root.ach2;
_root.savefile.data.ach3 = _root.ach3;
_root.savefile.data.ach4 = _root.ach4;
_root.savefile.data.ach5 = _root.ach5;
_root.savefile.data.ach6 = _root.ach6;
_root.savefile.data.ach7 = _root.ach7;
_root.savefile.data.ach8 = _root.ach8;
_root.savefile.data.ach9 = _root.ach9;
_root.savefile.data.ach10 = _root.ach10;
_root.savefile.data.oldLevel = _root.level;
_root.savefile.data.oldDeaths = _root.deaths;
_root.savefile.data.oldName = _root.oldName;
_root.savefile.data.oldMili = _root.tMili;
_root.savefile.data.oldSeconds = _root.tSeconds;
_root.savefile.data.oldMinutes = _root.tMinutes;
_root.savefile.data.oldMiliRec = _root.oldMiliRec;
_root.savefile.data.oldSecondsRec = _root.oldSecondsRec;
_root.savefile.data.oldMinutesRec = _root.oldMinutesRec;
_root.savefile.data.oldDeathsRec = _root.oldDeathsRec;
_root.savefile.data.oldWinsRec = _root.oldWinsRec;
_root.savefile.data.oldLevelsRec = _root.oldLevelsRec;
_root.savefile.data.levSet1 = _root.levSet1;
_root.savefile.data.levSet2 = _root.levSet2;
_root.savefile.data.levSet3 = _root.levSet3;
_root.savefile.data.levSet4 = _root.levSet4;
_root.savefile.data.levSet5 = _root.levSet5;
_root.savefile.data.levSet6 = _root.levSet6;
_root.savefile.data.levSet7 = _root.levSet7;
_root.savefile.data.levSet8 = _root.levSet8;
_root.savefile.data.levSet9 = _root.levSet9;
_root.savefile.data.levSet10 = _root.levSet10;
_root.savefile.data.prog = _root.prog;
_root.savefile.flush();
_root.addMessage("Game saved successfully!");
} else {
_root.addMessage("Cannot Save in Boss Level!");
}
}
Symbol 1192 MovieClip Frame 1
onEnterFrame = function () {
ef._xscale = _root.prog;
};
Symbol 1194 Button
on (release) {
if (!_root.gamePaused) {
_root.gamePaused = true;
pauser.gotoAndStop(5);
holdOn.play();
} else if (holdOn._currentframe == 1) {
holdOn.play();
}
}
Symbol 1201 Button
on (release) {
if (!_root.bossMode) {
_root.savefile.data.ach1 = _root.ach1;
_root.savefile.data.ach2 = _root.ach2;
_root.savefile.data.ach3 = _root.ach3;
_root.savefile.data.ach4 = _root.ach4;
_root.savefile.data.ach5 = _root.ach5;
_root.savefile.data.ach6 = _root.ach6;
_root.savefile.data.ach7 = _root.ach7;
_root.savefile.data.ach8 = _root.ach8;
_root.savefile.data.ach9 = _root.ach9;
_root.savefile.data.ach10 = _root.ach10;
_root.savefile.data.oldLevel = _root.level;
_root.savefile.data.oldDeaths = _root.deaths;
_root.savefile.data.oldName = _root.oldName;
_root.savefile.data.oldMili = _root.tMili;
_root.savefile.data.oldSeconds = _root.tSeconds;
_root.savefile.data.oldMinutes = _root.tMinutes;
_root.savefile.data.oldMiliRec = _root.oldMiliRec;
_root.savefile.data.oldSecondsRec = _root.oldSecondsRec;
_root.savefile.data.oldMinutesRec = _root.oldMinutesRec;
_root.savefile.data.oldDeathsRec = _root.oldDeathsRec;
_root.savefile.data.oldWinsRec = _root.oldWinsRec;
_root.savefile.data.oldLevelsRec = _root.oldLevelsRec;
_root.savefile.data.levSet1 = _root.levSet1;
_root.savefile.data.levSet2 = _root.levSet2;
_root.savefile.data.levSet3 = _root.levSet3;
_root.savefile.data.levSet4 = _root.levSet4;
_root.savefile.data.levSet5 = _root.levSet5;
_root.savefile.data.levSet6 = _root.levSet6;
_root.savefile.data.levSet7 = _root.levSet7;
_root.savefile.data.levSet8 = _root.levSet8;
_root.savefile.data.levSet9 = _root.levSet9;
_root.savefile.data.levSet10 = _root.levSet10;
_root.savefile.data.prog = _root.prog;
_root.savefile.flush();
}
stopAllSounds();
_root.menuOpen = false;
for (obj in _root) {
if (typeof(_root[obj]) == "movieclip") {
_root[obj].removeMovieClip();
}
}
_root.onEnterFrame = null;
_root._x = 0;
_root._y = 0;
_root.goto("menu");
}
Symbol 1204 Button
on (release) {
stopAllSounds();
for (obj in _root) {
if (typeof(_root[obj]) == "movieclip") {
_root[obj].removeMovieClip();
}
}
_root.menuOpen = false;
_root.onEnterFrame = null;
_root._x = 0;
_root._y = 0;
_root.goto("menu");
}
Symbol 1207 Button
on (release) {
_root.menuOpen = false;
gotoAndStop (1);
}
Symbol 1208 MovieClip Frame 1
stop();
Symbol 1208 MovieClip Frame 2
_root.menuOpen = true;
Symbol 1208 MovieClip Frame 10
stop();
Symbol 1212 MovieClip Frame 1
stop();
active = false;
Symbol 1212 MovieClip Frame 2
play();
Symbol 1212 MovieClip Frame 100
ballLiner.textQual.text = " ";
Symbol 1213 MovieClip Frame 1
stop();
active = false;
Symbol 1213 MovieClip Frame 2
play();
Symbol 1213 MovieClip Frame 10
ballLiner.textQual.text = " ";
Symbol 1216 MovieClip Frame 1
function camControl() {
parentColor.setTransform(camColor.getTransform());
var _local4 = sX / this._width;
var _local3 = sY / this._height;
_parent._x = cX - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
this._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
var camColor = new Color(this);
var parentColor = new Color(_parent);
onEnterFrame = function () {
if (_root.viewMode == "scrolling") {
camControl();
}
};
camControl();
this.onUnload = resetStage;
Symbol 1229 MovieClip Frame 1
stop();
Symbol 1238 MovieClip Frame 1
powerUpGrabbed = false;
onEnterFrame = function () {
if ((this.powerUp.hitTest(_root.ball) && (_root.ballActive)) && (powerUpGrabbed == false)) {
_root.changePowerUp(this, "b");
}
if (_root.globalReset) {
powerUpGrabbed = false;
}
};
Symbol 1244 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (_root.ballActive == false) {
used = false;
}
if (_root.dynamicHitTest(_root.ball, this)) {
if (this.used == true) {
this.used = false;
_root.spawnBall();
} else if (_root.currentPowerUp == "water") {
shel = _root.attachMovie("ball_bubble", "bb", _root.k++);
shel._x = _root.ball._x;
shel._y = _root.ball._y;
_root.xMov = 0;
_root.yMov = 0;
_root.ball._x = 400000 /* 0x061A80 */;
play();
this.used = true;
} else {
this.used = false;
_root.spawnBall();
}
}
if ((_currentframe > 5) && (_currentframe < 26)) {
_root.xMov = 0;
_root.yMov = 0;
i = 0;
while (i < 4) {
shel = _root.attachMovie("spewWater", "s" + _root.k, _root.k++);
shel._x = (_root.bb._x + random(20)) - 10;
shel._y = _root.bb._y + random(20);
shel._xscale = 100 - random(200);
shel._yscale = 50 + random(50);
shel._rotation = random(40) - 20;
i++;
}
shel = _root.attachMovie("spewWater2", "s" + _root.k, _root.k++);
shel._x = (_root.bb._x + random(20)) - 10;
shel._y = _root.bb._y + random(4);
shel._xscale = 100 - random(200);
shel._yscale = 50 + random(100);
shel._rotation = random(40) - 20;
}
};
stop();
Symbol 1244 MovieClip Frame 36
gotoAndStop (2);
Symbol 1249 MovieClip Frame 1
stop();
onEnterFrame = function () {
if (_root.globalReset) {
this.gotoAndStop(1);
_parent.used = false;
}
};
Symbol 1249 MovieClip Frame 15
stop();
Symbol 1250 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (this.hitTest(_root.ball) && (used == false)) {
used = true;
center.play();
}
};
Symbol 1257 MovieClip Frame 1
powerUpGrabbed = false;
onEnterFrame = function () {
if ((this.powerUp.hitTest(_root.ball) && (_root.ballActive)) && (powerUpGrabbed == false)) {
_root.changePowerUp(this, "g");
}
if (_root.globalReset) {
powerUpGrabbed = false;
}
};
Symbol 1282 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (_root.globalReset) {
used = false;
this._visible = true;
}
if (((used == false) && (_root.ballActive)) && (_root.dynamicHitTest(_root.ball, this))) {
_root.spawnBall();
_root.globalReset = true;
torch.removeMovieClip();
}
if (this.hitTest(_root.torch) && (used == false)) {
used = true;
this._visible = false;
i = 0;
while (i < 20) {
shel = _root.attachMovie("stoneExplode", "s" + _root.k, _root.k++);
shel._x = (this._x - (this._width / 2)) + random(this._width);
shel._y = (this._y - (this._height / 2)) + random(this._height);
shel._xscale = random(50) + 100;
shel._yscale = shel._xscale;
i++;
}
this.removeMovieClip();
}
};
Symbol 1287 MovieClip Frame 1
powerUpGrabbed = false;
onEnterFrame = function () {
if ((this.powerUp.hitTest(_root.ball) && (_root.ballActive)) && (powerUpGrabbed == false)) {
_root.changePowerUp(this, "r");
}
if (_root.globalReset) {
powerUpGrabbed = false;
}
};
Symbol 1289 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (_root.globalReset) {
used = false;
this._visible = true;
}
if (this.hitTest(_root.torch) && (used == false)) {
used = true;
this._visible = false;
_root.torch.removeMovieClip();
shel = _root.attachMovie("torcher", "torch", _root.k++);
shel._x = this._x;
shel._y = this._y;
i = 0;
while (i < 10) {
_root.colorPart(this, this, 16724736, random(360));
_root.colorPart(this, this, 16777215, random(360));
_root.colorPart(this, this, 16777215, random(360));
i++;
}
mySound = new Sound();
mySound.attachSound("tick");
mySound.start(0, 1);
}
};
Symbol 1291 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (_root.globalReset) {
used = false;
this._visible = true;
}
if (this.hitTest(_root.torch) && (used == false)) {
used = true;
this._visible = false;
_root.torch.removeMovieClip();
shel = _root.attachMovie("torcher", "torch", _root.k++);
shel._x = this._x;
shel._y = this._y;
i = 0;
while (i < 10) {
_root.colorPart(this, this, 16724736, random(360));
_root.colorPart(this, this, 16777215, random(360));
_root.colorPart(this, this, 16777215, random(360));
i++;
}
}
};
Symbol 1293 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (_root.globalReset) {
used = false;
this._visible = true;
}
if ((_root.ball.hitTest(this) && (used == false)) && (_root.currentPowerUp == "fire")) {
used = true;
this._visible = false;
shel = _root.attachMovie("torcher", "torch", _root.k++);
shel._x = this._x;
shel._y = this._y;
i = 0;
while (i < 15) {
_root.colorPart(this, this, 13369344, random(360));
_root.colorPart(this, this, 16777215, random(360));
_root.colorPart(this, this, 16777215, random(360));
i++;
}
}
};
Symbol 1297 MovieClip Frame 1
used = false;
onEnterFrame = function () {
if (_root.globalReset) {
used = false;
this._visible = true;
gotoAndStop (1);
}
if (this.hitTest(_root.torch) && (used == false)) {
used = true;
this._visible = false;
_root.torch.removeMovieClip();
shel = _root.attachMovie("torcher", "torch", _root.k++);
shel._x = this._x - 15;
shel._y = this._y;
shel._height = this._height * 2;
shel._width = this._width * 2;
i = 0;
while (i < 10) {
play();
shel = _root.attachMovie("spark_red", "prR" + _root.k, _root.k++);
shel._rotation = random(360);
shel._xscale = random(450) + 150;
shel._yscale = shel._xscale;
shel._x = (this._x - (this._width / 2)) + random(_width);
shel._y = (this._y - (this._height / 2)) + random(_height);
var _local3 = new Color(shel);
_local3.setRGB(16711680);
shel = _root.attachMovie("spark_red", "prR" + _root.k, _root.k++);
shel._rotation = random(360);
shel._xscale = random(450) + 150;
shel._yscale = shel._xscale;
shel._x = (this._x - (this._width / 1.5)) + random(_width + 50);
shel._y = (this._y - (this._height / 1.5)) + random(_height + 50);
_local3 = new Color(shel);
_local3.setRGB(16763904);
shel = _root.attachMovie("spark_red", "prR" + _root.k, _root.k++);
shel._rotation = random(360);
shel._xscale = random(450) + 150;
shel._yscale = shel._xscale;
shel._x = (this._x - (this._width / 2)) + random(_width);
shel._y = (this._y - (this._height / 2)) + random(_height);
_local3 = new Color(shel);
_local3.setRGB(13395456);
i++;
}
}
};
stop();
Symbol 1297 MovieClip Frame 2
stop();
Symbol 1332 MovieClip Frame 1
powerUpGrabbed = false;
onEnterFrame = function () {
if ((this.powerUp.hitTest(_root.ball) && (_root.ballActive)) && (powerUpGrabbed == false)) {
_root.changePowerUp(this, "p");
}
if (_root.globalReset) {
powerUpGrabbed = false;
}
};
Symbol 1339 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 1340 MovieClip Frame 1
onEnterFrame = function () {
if (_root.ballActive && (_root.dynamicHitTest(_root.ball, this))) {
_root.spawnBall();
}
};
Symbol 1372 MovieClip Frame 10
stop();
Symbol 1373 MovieClip Frame 1
onEnterFrame = function () {
if (_root.dynamicHitTest(_root.ball, this)) {
_root.xMov = _root.xMov * _root.globalBouncyness;
}
if (_root.currentPowerUp == "wallHugger") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
stop();
Symbol 1374 MovieClip Frame 1
onEnterFrame = function () {
if (_root.dynamicHitTest(_root.ball, this)) {
_root.yMov = _root.yMov * _root.globalBouncyness;
}
if (_root.currentPowerUp == "wallHugger") {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
};
stop();
Symbol 1544 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
};
Symbol 1545 MovieClip Frame 1
onEnterFrame = function () {
if (_root.ballActive && (_root.dynamicHitTest(_root.ball, this))) {
_root.spawnBall();
}
};
Symbol 1561 MovieClip Frame 1
this.cacheAsBitmap = true;
Symbol 1573 MovieClip Frame 1
stop();
Symbol 1580 MovieClip Frame 1
stop();
Symbol 1591 MovieClip Frame 1
stop();
Symbol 1594 MovieClip Frame 1
onEnterFrame = function () {
_root.checkPause(this);
if ((_root.step > 10) && (_currentframe < 913)) {
gotoAndPlay(_currentframe + 1);
}
};
Symbol 1596 MovieClip Frame 11
stop();
Symbol 1601 MovieClip Frame 1
onEnterFrame = function () {
shel = attachMovie("explosion_bit", "exp" + _root.k, _root.k++);
shel._x = random(400) - 200;
shel._y = random(400) - 200;
shel._xscale = random(300) + 100;
shel._yscale = shel._xscale;
var _local2 = new Color(shel);
tak = random(3);
if (tak == 0) {
_local2.setRGB(16777215);
} else if (tak == 2) {
_local2.setRGB(13734710);
} else if (tak == 1) {
_local2.setRGB(13841460);
}
shel = attachMovie("explosion_bit", "exp" + _root.k, _root.k++);
shel._x = random(50) - 25;
shel._y = random(50) - 25;
shel._xscale = random(100) + 50;
shel._yscale = shel._xscale;
_local2 = new Color(shel);
tak = random(3);
if (tak == 0) {
_local2.setRGB(16777215);
} else if (tak == 2) {
_local2.setRGB(13734710);
} else if (tak == 1) {
_local2.setRGB(13841460);
}
};
Symbol 1601 MovieClip Frame 19
onEnterFrame = null;
Symbol 1601 MovieClip Frame 29
this.removeMovieClip();
Symbol 1601 MovieClip Frame 30
stop();
Symbol 1614 Button
on (release) {
var slv = new LoadVars();
var rlv = new LoadVars();
slv.name = _root.oldName;
slv.score = (tMinutes * 60) + tSeconds;
rlv.onLoad = function (success) {
if (success) {
if (this.error) {
trace(this.error);
} else {
ewe._x = 500000 /* 0x07A120 */;
}
} else {
trace("Could not connect.");
}
};
slv.sendAndLoad("http://www.tastylamp.net/flashback/brv/highscore.php", rlv, "POST");
}
Symbol 1617 Button
on (release) {
getURL ("http://www.tastylamp.net/flashback/brv/highscores.php", "_blank");
}
Symbol 1620 Button
on (release) {
_root.savefile.data.ach1 = _root.ach1;
_root.savefile.data.ach2 = _root.ach2;
_root.savefile.data.ach3 = _root.ach3;
_root.savefile.data.ach4 = _root.ach4;
_root.savefile.data.ach5 = _root.ach5;
_root.savefile.data.ach6 = _root.ach6;
_root.savefile.data.ach7 = _root.ach7;
_root.savefile.data.ach8 = _root.ach8;
_root.savefile.data.ach9 = _root.ach9;
_root.savefile.data.ach10 = _root.ach10;
_root.savefile.data.oldLevel = 1;
_root.savefile.data.oldDeaths = 0;
_root.savefile.data.oldName = _root.oldName;
_root.savefile.data.oldMili = 0;
_root.savefile.data.oldSeconds = 0;
_root.savefile.data.oldMinutes = 0;
_root.savefile.data.oldMiliRec = _root.oldMiliRec;
_root.savefile.data.oldSecondsRec = _root.oldSecondsRec;
_root.savefile.data.oldMinutesRec = _root.oldMinutesRec;
_root.savefile.data.oldDeathsRec = _root.oldDeathsRec;
_root.savefile.data.oldWinsRec = _root.oldWinsRec;
_root.savefile.data.oldLevelsRec = _root.oldLevelsRec;
_root.savefile.data.levSet1 = _root.levSet1;
_root.savefile.data.levSet2 = _root.levSet2;
_root.savefile.data.levSet3 = _root.levSet3;
_root.savefile.data.levSet4 = _root.levSet4;
_root.savefile.data.levSet5 = _root.levSet5;
_root.savefile.data.levSet6 = _root.levSet6;
_root.savefile.data.levSet7 = _root.levSet7;
_root.savefile.data.levSet8 = _root.levSet8;
_root.savefile.data.levSet9 = _root.levSet9;
_root.savefile.data.levSet10 = _root.levSet10;
_root.savefile.data.prog = 0;
tMili = 0;
tSeconds = 0;
tMinutes = 0;
level = 1;
deaths = 0;
_root.savefile.flush();
_root.goto("menu");
}