Frame 1
System.security.allowDomain("panicball.com");
_root.createEmptyMovieClip("directionsMc", _root.getNextHighestDepth());
_root.directionsMc.loadMovie("http://panicball.com/directions.swf?dummy=" + random(1000000));
_root.url = _url;
_root.loadVariables("http://panicball.com/ministats.php", "GET");
Stage.scaleMode = "noScale";
_root._xscale = (_root._yscale = 87.5);
setInterval(function () {
Stage.scaleMode = "noScale";
}, 2000);
Instance of Symbol 3 MovieClip in Frame 1
onClipEvent (enterFrame) {
this._rotation++;
}
Frame 3
if (_framesloaded >= 5) {
gotoAndPlay (4);
} else {
gotoAndPlay (2);
}
Frame 5
_root.myBytesLoaded = _root.getBytesLoaded();
_root.myBytesTotal = _root.getBytesTotal();
loadFrame = int((myBytesLoaded / myBytesTotal) * 400);
percentLoaded = int(loadFrame / 4);
preloaderMc.gotoAndStop(loadFrame);
if (loadFrame > 399) {
startLevel = 1;
startScore = 0;
skill = 1;
chance = 6;
vol = 50;
gotoAndPlay ("loaded");
} else {
gotoAndPlay (4);
}
MovieClip.prototype.bounce = function (size) {
var _local1 = this;
_local1.end = size;
_local1.accel = 0.6;
_local1.convert = 0.4;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.xScale = (_local1.xScale * _local1.accel) + ((_local1.end - _local1._xscale) * _local1.convert);
_local1.yScale = (_local1.yScale * _local1.accel) + ((_local1.end - _local1._yscale) * _local1.convert);
_local1._xscale = _local1._xscale + _local1.xScale;
_local1._yscale = _local1._yscale + _local1.yScale;
if (Math.abs(_local1.xScale) < 0.01) {
delete _local1.onEnterFrame;
}
};
};
MovieClip.prototype.bob = function (xEnd, yEnd) {
var _local1 = this;
_local1.xEnd = xEnd;
_local1.yEnd = yEnd;
_local1.accel = 0.6;
_local1.convert = 0.4;
_local1.onEnterFrame = function () {
var _local1 = this;
_local1.x = (_local1.x * _local1.accel) + ((_local1.xEnd - _local1._x) * _local1.convert);
_local1.y = (_local1.y * _local1.accel) + ((_local1.yEnd - _local1._y) * _local1.convert);
_local1._x = _local1._x + _local1.x;
_local1._y = _local1._y + _local1.y;
if ((Math.abs(_local1.x) < 0.01) && (Math.abs(_local1.y) < 0.01)) {
delete _local1.onEnterFrame;
}
};
};
showFeatures = 1;
pups = new Array();
name = new Array();
info = new Array();
index = random(21);
pups = ["life", "bomb", "medKit", "largeBat", "smallBat", "slowBall", "fastBall", "kill", "timeBomb", "glue", "mace", "teleporter", "random", "gun", "magic", "ghost", "wall", "shield", "anvil", "key"];
allPowerUps = [[0, "life", 1, 2], [1, "bomb", 1, 2], [2, "medkit", 1, 2], [3, "largebat", 1, 1], [4, "smallbat", 1, -1], [5, "slowball", 1, 1], [6, "fastball", 1, -1], [7, "kill", 1, -2], [8, "timebomb", 0, 0], [9, "glue", 0, 1], [10, "mace", 0, 1], [11, "teleporter", 0, 2], [12, "random", 0, 0], [13, "gun", 0, 2], [14, "magic", 1, 4], [15, "ghost", 0, -1], [16, "wall", 0, 0], [17, "shield", 0, 1], [18, "anvil", 0, -1]];
defaultPups = new Array();
i = 0;
while (i < allPowerUps.length) {
defaultPups[i] = allPowerUps[i][2];
i++;
}
growSpeed = 6;
shrinkSpeed = 2;
grown = 125;
Frame 6
function startGame() {
gotoAndPlay ("start");
}
function slideIn() {
trace("slide nu in");
clearInterval(slideInInterval);
clearInterval(slideOutInterval);
var infoMcEasing = 2;
var infoMcEndY = 240;
slideInInterval = setInterval(function () {
var _local1 = infoMcEndY - infoMc._y;
infoMc._y = infoMc._y + (_local1 / infoMcEasing);
if (_local1 < 1) {
clearInterval(slideInInterval);
infoMc._y = infoMcEndY;
}
}, 25);
}
function slideOut() {
clearInterval(slideInInterval);
clearInterval(slideOutInterval);
var infoMcEasing = 2;
var infoMcEndY = -250;
slideOutInterval = setInterval(function () {
var _local1 = infoMc._y - infoMcEndY;
infoMc._y = infoMc._y - (_local1 / infoMcEasing);
if (_local1 < 1) {
clearInterval(slideOutInterval);
infoMc._y = infoMcEndY;
}
}, 25);
}
function visitPanicball() {
slideOut();
gotoAndStop ("ready");
monitorMc.minigameMc.gotoAndStop("off");
monitorMc.miniRaysMc.gotoAndStop("off");
getURL ("http://panicball.com", "_blank");
}
stop();
Mouse.show();
gotoAndStop ("ready");
Frame 7
stop();
function firstPup() {
nextPup = pups[index];
nextName = name[index];
pupPresMc.gotoAndPlay("in");
autoInterval = setInterval(autoChangePup, 2500);
}
function autoChangePup() {
trace("auto");
index = index + 1;
if (index == 20) {
index = 0;
}
nextPup = pups[index];
nextName = name[index];
pupPresMc.gotoAndPlay("out");
}
function changePup(index) {
var _local1 = index;
introFadeOutInterval = setInterval(function () {
pupIntroTxtMc._alpha = pupIntroTxtMc._alpha - 10;
if (pupIntroTxtMc._alpha <= 0) {
clearInterval(introFadeOutInterval);
}
}, 25);
nextPup = pups[_local1];
nextName = name[_local1];
nextInfo = info[_local1];
if (!_root.pupMoving) {
pupPresMc.gotoAndPlay("out");
}
}
name[0] = "1 up";
info[0] = "This gives you an extra ball. If you clear a level with no spare balls, you are rewarded with one extra ball as well. An extra ball is also achieved during the game for each 500 points.";
name[1] = "Bomb";
info[1] = "Collect up to five bombs and fire at will. Pressing 'B' will trigger an explosion where the ball is at. Any bricks within the blast radius will be destroyed.";
name[2] = "Medkit";
info[2] = "Use a medkit by pressing 'M' to neutralize the effects of all the mean power-ups or to repair a broken bat.";
name[3] = "Large bat";
info[3] = "Makes the bat grow bigger for a limited time.";
name[4] = "Small bat";
info[4] = "Makes the bat shrink for a limited time.";
name[5] = "Slow ball";
info[5] = "Slows the ball down for a limited time.";
name[6] = "Fast ball";
info[6] = "Makes the ball move faster for a short period of time.";
name[7] = "Sudden death";
info[7] = "By all means keep away from this evil item. Sudden death gives you exactly what it says. You will lose your ball immediately if you touch it.";
name[8] = "Time bomb";
info[8] = "This starts a countdown of 10 seconds. Make sure that the ball is far away from your bat when the time has run out.";
name[9] = "Super glue";
info[9] = "Super glue makes the ball stick to your bat for a limited time, letting you aim it where you want. Click your mouse to release the ball.";
name[10] = "Mace";
info[10] = "The mace, as you will experience, is a very efficient power-up. Works for a limited period of time.";
name[11] = "Teleporter";
info[11] = "The teleporter moves the ball anywhere you want it to. Extremely useful when combined with the time bomb, or just to catch your breath.";
name[12] = "Random";
info[12] = "This activates a random power-up. The odds of getting an extra ball, a medkit or the 'magic' power-up are doubled when you catch this.";
name[13] = "Gun";
info[13] = "This non-lethal weapon shoots lightweight table tennis balls that couldn't hurt a fly. They do, however, break the bricks on your screen. Works for a limited period of time.";
name[14] = "Magic";
info[14] = "Catch this single grain of magic dust, and a chain reaction of magic takes place. It clears the level completely and gives you the highest precision bonus possible.";
name[15] = "Ghost";
info[15] = "This friendly looking ghost isn't very friendly after all. Catch it and everything becomes almost invisible. Use a medkit to neutralize it before you lose the ball or your eyes start hurting.";
name[16] = "Wall";
info[16] = "A brick wall is built in the middle of the screen. If the ball is above the wall when it's done you're safe for a while. If the ball ends up on your side you are in deep trouble.";
name[17] = "Shield";
info[17] = "The shield protects you from any evil power-up as well as an explosion. You keep the shield until you use it or until you lose the ball.";
name[18] = "Anvil";
info[18] = "The anvil breaks right through your bat and destroys it completely. Fix your bat with a medkit or use your eminent skills to survive the level with a broken bat.";
name[19] = "Key";
info[19] = "Collect three golden keys to unlock a secret bonus level. (only at www.panicball.com)";
pupIntroTxtMc._alpha = 100;
clearInterval(introFadeOutInterval);
firstPup();
Instance of Symbol 45 MovieClip in Frame 7
/* no clip actions */
Instance of Symbol 130 MovieClip "pupPresMc" in Frame 7
onClipEvent (mouseDown) {
clearInterval(_root.autoInterval);
_root.nextInfo = "";
}
Frame 8
stop();
_quality = "high";
_quitting = 0;
Mouse.show();
_root._xscale = (_root._yscale = 87.5);
Instance of Symbol 198 MovieClip in Frame 8
onClipEvent (load) {
this.onRollOver = function () {
this.mouseIsOver = 1;
this.gotoAndPlay("in");
};
this.onRollOut = (this.onReleaseOutside = function () {
this.mouseIsOver = 0;
this.gotoAndStop("in");
});
this.onRelease = function () {
_root.visitPanicball();
};
}
Instance of Symbol 203 MovieClip "play" in Frame 8
onClipEvent (load) {
this.onRollOver = function () {
this.bounce(_root.grown);
};
this.onRollOut = function () {
this.bounce(100);
};
this.onRelease = function () {
_root.startGame();
};
}
Frame 9
function changeFeaturesTxt() {
_root.featuresTxtOffset = featuresTxtArray[featuresIndex][1] - 29.4;
featuresTxt = "<p align='center'>";
featuresTxt = featuresTxt + featuresTxtArray[featuresIndex][0];
featuresTxt = featuresTxt + "</p>";
featuresIndex++;
if (featuresIndex >= featuresTxtArray.length) {
featuresIndex = 0;
}
}
featuresTxtArray = new Array();
featuresTxtArray[0] = ["<font size='-1'>True<br>FULL-SCREEN<br>gameplay", -1];
featuresTxtArray[1] = ["<font size='+2'> 20+</font><font size='16'><br>thrilling<br>power-ups</font>", -4];
featuresTxtArray[2] = ["<br>Incredible<br><font size='+10'>SPEED", -10];
featuresTxtArray[3] = ["ONLINE <br>hiscore-<br>table", 2];
featuresTxtArray[4] = ["PERSONAL<br>hiscore-<br>table", 2];
featuresTxtArray[5] = ["<font size='-1'>AWESOME<br><font size='+5'>BONUS<font size='16'><br>LEVELS", 3];
featuresTxtArray[6] = ["<font size='+5'>Level<br>codes", 3];
featuresTxtArray[7] = ["<font size='-2'>unlimited<br><font size='+7'>FREE<font size='-7'><br>online play", 0];
featuresIndex = 0;
Instance of Symbol 303 MovieClip in Frame 10
onClipEvent (load) {
this.onRollOver = function () {
mouse.show();
this.bounce(115);
};
this.onRollOut = function () {
this.bounce(100);
};
this.onRelease = function () {
_root.visitPanicball();
};
}
Frame 11
function launchBall() {
v = (Math.PI/180) * ((20 - (level / 2)) + (Math.random() * (70 - (level * 2))));
if (v < 0.0872664625997165) {
v = (Math.PI/180) * (5 + (Math.random() * 5));
}
if (random(2) == 1) {
side = 1;
} else {
side = -1;
}
ball.xDif = (Math.cos(v) * speed) * side;
ball.yDif = (Math.sin(v) * speed) / -1;
levelMc._visible = 0;
}
function showStandardPups() {
showStandardPupsInterval = setInterval(function () {
standardPupsMc.gotoAndPlay(2);
clearInterval(showStandardPupsInterval);
}, 0);
}
function newGame() {
_root.bonusScore = "";
clearInterval(shiftInterval);
level = 1;
gotoAndStop ("level1");
bat._xScale = 65 + (35 / skill);
exploding = 0;
alive = 1;
batHit = 0;
maceActive = 0;
glueActive = 0;
gunActive = 0;
score = startScore;
scoreTxt = score + " ";
precision = 10;
precisionAchieved = 1;
precisionRequired = 10;
lives = 4;
bricks = 60;
bombs = 0;
medKits = 0;
ballOpacity = 100;
magicActive = 0;
magicChance = 1;
keys = 0;
levelKeyDropped = 0;
keysDropped = 0;
levelsPassed = 0;
keyFrequency = 8;
levelLifeDropped = 0;
bonusNum = 0;
avgWeight = 9;
newPupIntroduced = 0;
newPupAchieved = 0;
fullScreenInfoShowing = 0;
livesMc.gotoAndStop(lives);
bombsMc.gotoAndStop(bombs + 1);
medKitsMc.gotoAndStop(medKits + 1);
keysMc.gotoAndStop(keys + 1);
myScore10 = 0;
resetBat();
broken = 0;
batState = "m";
bat.gotoAndStop("m");
batDraggerMc.gotoAndStop("off");
precisionBonusMc._visible = 0;
resetLevelSpeed();
gameOverMc.gotoAndStop("in");
levelMc._visible = 1;
resetBricks();
i = 0;
while (i < allPowerUps.length) {
allPowerUps[i][2] = defaultPups[i];
i++;
}
initPups = allPowerUps;
showStandardPups();
}
function resetLevelSpeed() {
speed = (math.sqrt(level + 2) * 5) + 12;
levelSpeed = speed;
clearInterval(fastTimer);
clearInterval(slowTimer);
}
function resetBall() {
ball._visible = 0;
ball._alpha = 100;
ball.xDif = 0;
ball.yDif = 0;
ball._x = 512;
ball._y = 384;
}
function gameOver() {
resetInitPups();
lives = 1;
resetBall();
staticSoundsMc.gameOverSound.start();
gameOverMc._visible = 1;
gameOverMc.gotoAndPlay("in");
}
function showHiscore() {
scaleGame(100);
gotoAndStop (10);
}
function newBall() {
alive = 1;
inPlay = 1;
if (broken) {
fixBat();
} else {
resetBat();
}
resetMace();
ball._visible = 1;
ball.gotoAndPlay("newBall");
staticSoundsMc.newBallSound.start();
}
function readyToStart() {
if (!alive) {
if (lives <= 10) {
livesMc.prevFrame();
}
}
gameOverMc._visible = 0;
newBall();
clearInterval(startInterval);
}
function levelCleared() {
inPlay = 0;
bricks = 60;
ball.xDif = ball.xDif * 0.1;
ball.yDif = ball.yDif * 0.1;
resetTimeBomb();
if (!magicActive) {
staticSoundsMc.nextLevelSound.start();
}
resetMagic();
abortGun();
if (wallActive) {
resetWall();
}
if (maceActive) {
ball.gotoAndPlay("maceOut");
clearInterval(maceInterval);
} else {
ball.gotoAndPlay("out");
}
if (lives == 1) {
livesMc.nextFrame();
lives = lives + 1;
batSoundsMc.lifeSound.start();
}
levelLifeDropped = 0;
}
function quit() {
quitting = 1;
score = 0;
resetAll();
resetVip();
resetInitPups();
i = 1;
while (i <= 60) {
clearInterval(eval (("bricksMc.brick" + i) + ".fadeInterval"));
i++;
}
clearInterval(showInterval);
clearInterval(scoreInterval);
if (ripoff) {
gotoAndStop (10);
} else {
gotoAndStop ("ready");
}
}
function restart() {
clearInterval(gotoRipoffInterval);
clearInterval(showInterval);
clearInterval(scoreInterval);
score = 0;
resetAll();
resetVip();
resetInitPups();
gotoAndPlay (10);
}
function nextLevel() {
magicChance = 3;
resetBall();
if (precision >= 1) {
precisionBonus();
} else {
myActivePupsNum = 0;
i = 0;
while (i < allPowerUps.length) {
myActivePupsNum = myActivePupsNum + allPowerUps[i][2];
i++;
}
trace("myActivePupsNum=" + myActivePupsNum);
initPupsNum = 0;
i = 0;
while (i < allPowerUps.length) {
initPupsNum = initPupsNum + defaultPups[i];
i++;
}
trace("initPupsNum=" + initPupsNum);
wannabePups = initPupsNum + level;
trace("wannabePups=" + wannabePups);
trace("allPowerUps.length=" + allPowerUps.length);
trace("activePupsNum=" + myActivePupsNum);
if ((myActivePupsNum < wannabePups) && (allPowerUps.length > myActivePupsNum)) {
trace("s\u00E5 giv mig da en ny");
pupAdvance();
} else if ((level == 10) & (~level10infoShown)) {
level10infoShown = 1;
playBonusSound();
_root.level10info.gotoAndPlay(2);
} else {
level = level + 1;
levelMc._visible = 1;
readyToStart();
resetLevelSpeed();
precision = (level / 2) + 10;
showFrame = (level % 30) + 2;
trace("showframe=" + showFrame);
gotoAndStop(showFrame +9);
resetBricks();
}
}
}
function looseBall() {
alive = 0;
resetAll();
staticSoundsMc.looseBallSound.start();
lives = lives - 1;
if (lives > 0) {
resetBall();
startInterval = setInterval(readyToStart, 2000);
} else if (lives < 1) {
gameOver();
}
}
function resetAll() {
i = 1;
while (i <= 60) {
clearInterval(eval (("bricksMc.brick" + i) + ".fadeInterval"));
i++;
}
level10infoShown = 0;
clearInterval(scoreInterval);
clearInterval(speedTimer);
clearInterval(bombInterval);
staticSoundsMc.countDownSound.stop();
teleporterSoundsMc.teleportersound.stop();
clearInterval(bricksMc.brickInterval);
inPlay = 0;
fast = 0;
slow = 0;
resetLevelSpeed();
counting = 0;
if (shieldActive) {
shieldAniMc._x = bat._x;
shieldAniMc.play();
resetShield();
}
if (glueActive) {
resetGlue();
}
if (gunActive) {
abortGun();
}
if (maceActive) {
resetMace();
}
if (ghostActive) {
resetGhost();
}
if (wallActive) {
resetWall();
}
if (teleporting) {
abortTeleportation();
}
}
function precisionBonus() {
precisionScore = int(precision * 3) - 1;
precision = 0;
precisionBonusMc._visible = 1;
showInterval = setInterval(addPrecisionBonus, 1000);
}
function addPrecisionBonus() {
clearInterval(showInterval);
ballSoundsMc.wallSound.setPan(0);
scoreInterval = setInterval(function () {
ballSoundsMc.wallSound.start();
precisionScore--;
addPoint();
if (precisionScore == 0) {
clearInterval(scoreInterval);
precisionBonusMc._visible = 0;
nextLevel();
}
}, 75);
}
function batGrow() {
clearInterval(resetBatInterval);
if (batSize == "small") {
bat.gotoAndPlay("sl");
} else if (batSize == "medium") {
bat.gotoAndPlay("ml");
} else if (batSize == "large") {
}
resetBatInterval = setInterval(resetBat, 10000);
batSize = "large";
}
function batShrink() {
clearInterval(resetBatInterval);
if (batSize == "small") {
} else if (batSize == "medium") {
bat.gotoAndPlay("ms");
} else if (batSize == "large") {
bat.gotoAndPlay("ls");
}
resetBatInterval = setInterval(resetBat, 10000);
batSize = "small";
}
function breakBat() {
clearInterval(resetBatInterval);
resetGlue();
bat.gotoAndPlay("break");
broken = 1;
batDraggerMc.gotoAndStop("on");
evalPan();
batSoundsMc.setPan(_root.batPan);
batSoundsMc.breakBatSound.start();
}
function resetBat() {
clearInterval(resetBatInterval);
if (batSize == "small") {
bat.gotoAndPlay("sm");
} else if (batSize == "medium") {
} else if (batSize == "large") {
bat.gotoAndPlay("lm");
}
batSize = "medium";
}
function fixBat() {
broken = 0;
batSize = "medium";
batDraggerMc.gotoAndStop("off");
bat.gotoAndPlay("fix");
}
function magic() {
magicActive = 1;
inPlay = 0;
abortTeleportation();
resetTimeBomb();
ballMagicMc._x = ball._x;
ballMagicMc._y = ball._y;
ballMagicMc.gotoAndStop("on");
resetBall();
magicSoundMc.magicSound.start();
magicNum = 1;
magicCol = 1;
magicInterval = setInterval(function () {
Set(("bricksMc.brick" + magicNum) + ".hit", 1);
magicNum = magicNum + 15;
if (magicNum > 60) {
magicCol = magicCol + 1;
magicNum = magicCol;
}
}, 20);
}
function resetMagic() {
magicActive = 0;
clearInterval(magicInterval);
}
function glue() {
glueActive = 1;
clearInterval(glueInterval);
glueMc._x = _xmouse;
glueMc.gotoAndStop(2);
glueInterval = setInterval(resetGlue, 10000);
}
function resetGlue() {
glueActive = 0;
clearInterval(glueInterval);
if ((glueMc._currentframe == 2) | 3) {
glueMc.gotoAndStop(4);
}
if ((glueHoldingBall & (!teleporting)) & (bricks > 0)) {
v = (Math.PI/180) * (20 + (Math.random() * 140));
ball.xDif = Math.cos(v) * speed;
ball.yDif = (Math.sin(v) * speed) / -1;
}
}
function gun() {
gunActive = 1;
clearInterval(gunInterval);
gunMc.gotoAndStop("on");
gunInterval = setInterval(resetGun, 10000);
}
function resetGun() {
gunActive = 0;
gunMc.gotoAndStop("off");
clearInterval(gunInterval);
}
function abortGun() {
whiteBall.gotoAndStop("off");
resetGun();
}
function mace() {
maceActive = 1;
clearInterval(maceInterval);
ball.gotoAndStop("mace");
maceInterval = setInterval(resetMace, 10000);
}
function resetMace() {
maceActive = 0;
ball.gotoAndStop("normal");
clearInterval(maceInterval);
}
function teleporter() {
teleporting = 1;
batHit = 0;
teleTargetMc.gotoAndStop("on");
teleporterSoundsMc.teleporterSound.start(0, 999);
teleStart.gotoAndStop("on");
teleEnd.gotoAndStop("on");
tempX = ball.xDif;
tempY = ball.yDif;
ball.xDif = 0;
ball.yDif = 0;
if (ball._x <= 232) {
ball._x = 237;
}
if (ball._x >= 792) {
ball._x = 787;
}
if (ball._y <= 104) {
ball._y = 109;
}
teleStart._x = ball._x;
teleStart._y = ball._y;
teleStart._alpha = 100;
teleLine._visible = 1;
}
function abortTeleportation() {
teleporting = 0;
teleporterSoundsMc.teleporterSound.stop();
teleTargetMc.gotoAndStop("off");
teleLine._visible = 0;
teleStart._x = -100;
teleStart._y = -100;
teleEnd._x = -100;
teleEnd._y = -100;
teleLine._x = -100;
teleLine._y = -100;
teleTargetMc._x = -100;
teleTargetMc._y = -100;
teleStart.gotoAndStop("off");
teleEnd.gotoAndStop("off");
teleStart._alpha = 0;
teleEnd._alpha = 0;
clearInterval(ballFadeOutInterval);
clearInterval(ballFadeInInterval);
ball.xDif = tempX;
ball.yDif = tempY;
ball._alpha = 100;
}
function teleportation() {
teleTargetMc.gotoAndStop("off");
teleLine._visible = 0;
teleEnd._x = teleTargetMc._x;
teleEnd._y = teleTargetMc._y;
teleporterSoundsMc.teleporterSound.stop();
teleporterSoundsMc.teleportationSound.start();
ballFadeOut();
}
function ballFadeOut() {
ballFading = 1;
ballFadeOutInterval = setInterval(function () {
ball._alpha = ball._alpha - (ballOpacity / 25);
teleEnd._alpha = teleEnd._alpha + 3;
if (ball._alpha <= 0) {
clearInterval(ballFadeOutInterval);
ballFadeIn();
}
}, 25);
}
function ballFadeIn() {
ball._x = teleEnd._x;
ball._y = teleEnd._y;
ballFadeInInterval = setInterval(function () {
ball._alpha = ball._alpha + (ballOpacity / 25);
teleStart._alpha = teleStart._alpha - 3;
if (ball._alpha >= ballOpacity) {
clearInterval(ballFadeInInterval);
ballFading = 0;
resetTeleporter();
}
}, 25);
}
function resetTeleporter() {
var _local1 = _root;
teleporting = 0;
v = (Math.PI/180) * (160 + (Math.random() * 15));
if (random(2) == 1) {
side = 1;
} else {
side = -1;
}
_local1.ball.xDif = (Math.cos(v) * _local1.speed) * side;
if (random(2) == 1) {
side = 1;
} else {
side = -1;
}
_local1.ball.yDif = (Math.sin(v) * _local1.speed) * side;
teleStart._x = -100;
teleStart._y = -100;
teleEnd._x = -100;
teleEnd._y = -100;
teleLine._x = -100;
teleLine._y = -100;
teleTargetMc._x = -100;
teleTargetMc._y = -100;
teleStart.gotoAndStop("off");
teleEnd.gotoAndStop("off");
teleStart._alpha = 0;
teleEnd._alpha = 0;
}
function resetSpeed() {
resetLevelSpeed();
if (fast) {
ball.xDif = ball.xDif / 1.5;
ball.yDif = ball.yDif / 1.5;
fast = 0;
} else if (slow) {
ball.xDif = ball.xDif * 2;
ball.yDif = ball.yDif * 2;
slow = 0;
}
}
function fastBall() {
resetSpeed();
fast = 1;
ball.xDif = ball.xDif * 1.5;
ball.yDif = ball.yDif * 1.5;
speed = speed * 1.5;
fastTimer = setInterval(resetSpeed, 6000);
}
function slowBall() {
resetSpeed();
slow = 1;
ball.xDif = ball.xDif / 2;
ball.yDif = ball.yDif / 2;
speed = speed / 2;
slowTimer = setInterval(resetSpeed, 6000);
}
function bomb() {
var _local1 = _root;
if (exploding) {
exploding = 0;
} else {
chance = chance / 1.5;
}
exploding = 1;
bombSoundMc.bombSound.start();
setProperty(_local1.explosion, _x , getProperty(_local1.ball, _x));
setProperty(_local1.explosion, _y , getProperty(_local1.ball, _y));
explosion.gotoAndPlay("explode");
bombs = bombs - 1;
if (bombs <= 5) {
bombsMc.prevFrame();
}
}
function timeBomb() {
var _local1 = _root;
if (!exploding) {
chance = chance / 1.5;
}
exploding = exploding + 1;
clearInterval(bombInterval);
counting = 0;
staticSoundsMc.countDownSound.stop();
bombSoundMc.bombSound.start();
setProperty(_local1.explosion, _x , getProperty(_local1.ball, _x));
setProperty(_local1.explosion, _y , getProperty(_local1.ball, _y));
explosion.gotoAndPlay("explode");
}
function countDown() {
counting = 1;
staticSoundsMc.countDownSound.start();
bombInterval = setInterval(timeBomb, 10000);
}
function resetTimeBomb() {
counting = 0;
clearInterval(bombInterval);
staticSoundsMc.countDownSound.stop();
}
function ghost() {
ghostActive = 1;
clearInterval(ghostInterval);
clearInterval(ghostFadeInterval);
ball._alpha = 15;
ballOpacity = 15;
bat._alpha = 15;
i = 1;
while (i <= 60) {
setProperty("_root.bricksMc.brick" + i, _alpha , 15);
i++;
}
ghostInterval = setInterval(resetGhost, 10000);
}
function resetGhost() {
brickNum = 1;
ghostActive = 0;
clearInterval(ghostInterval);
ghostFadeInterval = setInterval(function () {
ball._alpha = ball._alpha + 3;
ballOpacity = ballOpacity + 3;
bat._alpha = bat._alpha + 3;
setProperty("_root.bricksMc.brick" + brickNum, _alpha , 100);
brickNum++;
if (brickNum > 60) {
clearInterval(ghostFadeInterval);
}
}, 40);
}
function evalPan() {
ballPan = ((ball._x / 1024) * 200) - 100;
batPan = ((bat._x / 1024) * 200) - 100;
}
function pupSound() {
var _local1 = _root;
_local1.evalPan();
_local1.batSoundsMc.lifeSound.setPan(_local1.batPan);
_local1.batSoundsMc.lifeSound.start();
}
function activateSound() {
var _local1 = _root;
_local1.evalPan();
_local1.staticSoundsMc.activateSound.stop();
_local1.staticSoundsMc.activateSound.start();
}
function volUp() {
clearInterval(volShowInterval);
clearInterval(volFadeOutInterval);
volMeterMc._alpha = 100;
if (visVol == 0) {
visVol = 1;
vol = 50;
globalSoundMc.globalSound.setVolume(50);
volMeterMc.gotoAndPlay("off-low");
} else if (visVol == 1) {
visVol = 2;
vol = 100;
globalSoundMc.globalSound.setVolume(100);
volMeterMc.gotoAndPlay("low-high");
} else if (visVol == 2) {
volMeterMc.gotoAndStop("high-low");
volShow();
}
}
function volDown() {
clearInterval(volShowInterval);
clearInterval(volFadeOutInterval);
volMeterMc._alpha = 100;
if (visVol == 2) {
visVol = 1;
vol = 50;
globalSoundMc.globalSound.setVolume(50);
volMeterMc.gotoAndPlay("high-low");
} else if (visVol == 1) {
visVol = 0;
vol = 0;
globalSoundMc.globalSound.setVolume(0);
volMeterMc.gotoAndPlay("low-off");
} else if (visVol == 0) {
volShow();
}
}
function volShow() {
volShowInterval = setInterval(volFadeOut, 3000);
}
function volFadeOut() {
clearInterval(volShowInterval);
volFadeOutInterval = setInterval(function () {
volMeterMc._alpha = volMeterMc._alpha - 5;
if (volMeterMc._alpha <= 0) {
clearInterval(volFadeOutInterval);
}
}, 40);
}
function playBonusSound() {
bonusSound1Mc.bonusSound.start();
bonusSound2Interval = setInterval(function () {
clearInterval(bonusSound2Interval);
bonusSound2Mc.bonusSound.setPan(-75);
bonusSound2Mc.bonusSound.setVolume(50);
bonusSound2Mc.bonusSound.start();
}, 500);
bonusSound3Interval = setInterval(function () {
clearInterval(bonusSound3Interval);
bonusSound3Mc.bonusSound.setPan(75);
bonusSound3Mc.bonusSound.setVolume(25);
bonusSound3Mc.bonusSound.start();
}, 1000);
}
function wall() {
wallActive = 1;
side = 1;
clearInterval(wallInterval);
clearInterval(wallBrickInterval);
wallMc.gotoAndStop("on");
wallBrickInterval = setInterval(function () {
wallMc.leftWallMc.nextFrame();
wallMc.rightWallMc.nextFrame();
wallMc.betweenWallsMc.nextFrame();
side = side * -1;
wallPan = side * ((1 - (wallMc.leftWallMc._currentframe / 32)) * 100);
wallSoundsMc.wallBrickSound.setPan(wallPan);
wallSoundsMc.wallBrickSound.start();
if (wallMc.leftWallMc._currentframe == 32) {
clearInterval(wallBrickInterval);
if (ball._y < 384) {
ballInsideWall = 1;
wallTime = 10000;
} else {
wallTime = 5000;
}
wallInterval = setInterval(resetWall, wallTime);
}
}, 100);
}
function resetWall() {
side = 1;
wallActive = 0;
ballInsideWall = 0;
clearInterval(wallInterval);
clearInterval(wallBrickInterval);
wallBrickInterval = setInterval(function () {
wallMc.betweenWallsMc.prevFrame();
wallMc.rightWallMc.prevFrame();
wallMc.leftWallMc.prevFrame();
side = side * -1;
wallPan = side * ((1 - (wallMc.leftWallMc._currentframe / 32)) * 100);
wallSoundsMc.wallBrickSound.setPan(wallPan);
if (wallMc.leftWallMc._currentframe > 1) {
wallSoundsMc.wallBrickSound.start();
}
if (wallMc.leftWallMc._currentframe == 1) {
clearInterval(wallBrickInterval);
wallMc.gotoAndStop("off");
}
}, 40);
}
function kill() {
_root.abortTeleportation();
_root.looseBall();
}
function shield() {
shieldAniMc.gotoAndStop(1);
bat.shield.gotoAndStop("on");
shieldActive = 1;
}
function useShield() {
evalPan();
batSoundsMc.shieldSound.setPan(_root.batPan);
batSoundsMc.shieldSound.start();
shieldAniMc._x = bat._x;
shieldAniMc.play();
}
function resetShield() {
bat.shield.gotoAndStop("off");
shieldActive = 0;
if (bonusMode) {
useShield();
}
}
function resetBricks() {
resetBricksInterval = setInterval(function () {
bricksMc.resetBricks();
clearInterval(resetBricksInterval);
}, 100);
}
function pupAdvance() {
trace("myWeight=" + myWeight);
avgWeight = 8;
probablePowerUps = new Array();
j = -1;
i = 0;
while (i < allPowerUps.length) {
newWeight = myWeight + allPowerUps[i][3];
if ((allPowerUps[i][2] == 0) & (Math.abs(avgWeight - newWeight) <= 2)) {
probablePowerUps[++j] = allPowerUps[i][0];
}
i++;
}
if (probablePowerUps.length == 0) {
if (myWeight < avgWeight) {
trace("fyld p\u00E5 af de gode");
i = 0;
while (i < allPowerUps.length) {
if ((allPowerUps[i][2] == 0) & (allPowerUps[i][3] > 0)) {
probablePowerUps[++j] = allPowerUps[i][0];
}
i++;
}
}
if (myWeight > avgWeight) {
trace("fyld p\u00E5 af de onde");
i = 0;
while (i < allPowerUps.length) {
if ((allPowerUps[i][2] == 0) & (allPowerUps[i][3] < 0)) {
probablePowerUps[++j] = allPowerUps[i][0];
}
i++;
}
}
}
if (probablePowerUps.length == 0) {
i = 0;
while (i < allPowerUps.length) {
if (allPowerUps[i][2] == 0) {
probablePowerUps[++j] = allPowerUps[i][0];
}
i++;
}
}
trace("probPups=" + probablePowerUps);
i = 0;
while (i < allPowerUps.length) {
if (allPowerUps[i][2] == 0) {
trace(allPowerUps[i][1] + " er ikke aktiv");
}
i++;
}
newPup = probablePowerUps[random(probablePowerUps.length)];
trace("newpup=" + newPup);
pupAdvanceMc.gotoAndStop(newPup + 2);
allPowerUps[newPup][2] = 1;
myWeight = myWeight + allPowerUps[newPup][3];
newPupAchieved = 1;
newPupIntroduced = 0;
showPupAdvance();
trace("myWeight=" + myWeight);
}
function showPupAdvance() {
activateSound();
pupFadeInInterval = setInterval(function () {
pupAdvanceMc._alpha = pupAdvanceMc._alpha + 4;
i = 1;
while (i < 12) {
eval ("bonusMc." + i).gotoAndStop("lo");
i++;
}
bonusMc._alpha = bonusMc._alpha - 8;
if (pupAdvanceMc._alpha >= 100) {
clearInterval(pupFadeInInterval);
pupStayInterval = setInterval(pupAdvanceFadeOut, 2000);
}
}, 25);
}
function pupAdvanceFadeOut() {
clearInterval(pupStayInterval);
pupFadeOutInterval = setInterval(function () {
pupAdvanceMc._alpha = pupAdvanceMc._alpha - 4;
if (pupAdvanceMc._alpha <= 0) {
clearInterval(pupFadeOutInterval);
pupAdvanceMc.gotoAndStop(1);
nextLevel();
}
}, 25);
}
function addPoint() {
score = score + 1;
scoreTxt = score + " ";
if ((score % 500) == 0) {
life();
}
}
function life() {
if (_root.lives < 10) {
pupSound();
lives = lives + 1;
livesMc.nextFrame();
}
}
function resetInitPups() {
allPowerUps = initPups;
}
globalSoundMc.globalSound.setVolume(vol);
level10info.gotoAndStop(1);
batState = "m";
if (vol == 100) {
visVol = 2;
} else if (vol == 50) {
visVol = 1;
} else if (vol == 0) {
visVol = 0;
}
myWeight = 0;
activePupsNum = 0;
i = 0;
while (i < allPowerUps.length) {
if (allPowerUps[i][2] == 1) {
myWeight = myWeight + allPowerUps[i][3];
activePupsNum++;
}
i++;
}
_root._xscale = (_root._yscale = 54.6875);
levelMc._visible = 0;
precisionBonusMc._visible = 0;
ball.gotoAndStop("newBall");
pupCheat = 0;
cheat = 0;
stop();
newGame();
Instance of Symbol 387 MovieClip "bat" in Frame 11
onClipEvent (load) {
if (_root.shieldActive) {
_root.shield();
}
}
onClipEvent (enterFrame) {
if (!_root.broken) {
if (!_root.mirrorActive) {
_x = _root._xmouse;
} else {
_x = (1024 - _root._xmouse);
}
if (this.hitTest(_root.explosion)) {
if (!_root.shieldActive) {
_root.breakBat();
} else {
_root.useShield();
_root.shieldBombed = 1;
}
}
} else if (_root.broken) {
var endX = _root.batDraggerMc._x;
_x = (_x + ((endX - _x) / 7));
}
if (_x < (212 + (_width / 2))) {
_x = (212 + (_width / 2));
}
if (_x > (812 - (_width / 2))) {
_x = (812 - (_width / 2));
}
}
Instance of Symbol 436 MovieClip "ball" in Frame 11
onClipEvent (mouseDown) {
if (_root.inPlay & _root.fullScreen) {
Mouse.hide();
}
}
onClipEvent (load) {
var top = 104;
var bottom = 704;
var left = 232;
var right = 792;
var xDif;
var yDif;
}
onClipEvent (enterFrame) {
if (_x <= left) {
_x = left;
if (_root.maceActive) {
_root.ballSoundsMc.maceHitWallSound.setPan(-60);
_root.ballSoundsMc.maceHitWallSound.start();
} else {
_root.ballSoundsMc.WallSound.setPan(-60);
_root.ballSoundsMc.wallSound.start();
}
xDif = xDif * -1;
if (yDif == 0) {
yDif = -1;
}
}
if (_x >= right) {
_x = right;
if (_root.maceActive) {
_root.ballSoundsMc.maceHitWallSound.setPan(60);
_root.ballSoundsMc.maceHitWallSound.start();
} else {
_root.ballSoundsMc.WallSound.setPan(60);
_root.ballSoundsMc.wallSound.start();
}
xDif = xDif * -1;
if (yDif == 0) {
yDif = -1;
}
}
if (_y <= top) {
_y = top;
_root.batHit = 0;
var panVar = (((_x / 1024) * 200) - 100);
if (_root.maceActive) {
_root.ballSoundsMc.maceHitWallSound.setPan(panVar);
_root.ballSoundsMc.maceHitWallSound.start();
} else {
_root.ballSoundsMc.wallSound.setPan(panVar);
_root.ballSoundsMc.wallSound.start();
}
yDif = yDif * -1;
}
if (_y > bottom) {
if (_root.inPlay & (!_root.clearing)) {
_root.looseBall();
}
}
if (hittest(_root.bat)) {
if (_root.inPlay) {
if (!_root.batHit) {
if (!_root.teleporting) {
_root.batHit = 1;
if (_root.brickHit) {
_root.brickHit = 0;
} else {
_root.precision = _root.precision - 1;
}
_root.evalPan();
if (_root.maceActive) {
_root.batSoundsMc.maceHitBatSound.setPan(_root.batPan);
_root.batSoundsMc.maceHitBatSound.start();
} else {
_root.batSoundsMc.batSound.setPan(_root.batPan);
_root.batSoundsMc.batSound.start();
}
xDif = ((_x - _root.bat._x) / ((_root.bat._width / 2) + (_width / 2))) * _root.speed;
if (xDif > (_root.speed * 0.995)) {
xDif = _root.speed * 0.995;
}
yDif = Math.sqrt((_root.speed * _root.speed) - (xDif * xDif)) / -1;
if (!_root.shieldActive) {
_root.bat.play();
}
}
}
}
}
_x = (_x + xDif);
_y = (_y + yDif);
}
Frame 42
gotoAndStop ("level1");
Symbol 13 MovieClip Frame 1
_rotation = random(360);
Symbol 15 MovieClip Frame 1
i = 1;
while (i <= 40) {
duplicateMovieClip (spark, "spark" + i, i);
setProperty("spark" + i, _xscale , random(100));
setProperty("spark" + i, _yscale , 50 + random(50));
setProperty("spark" + i, _alpha , 100);
i++;
}
this.onEnterFrame = function () {
duplicateMovieClip (spark, "spark" + i, i);
setProperty("spark" + i, _xscale , random(100));
setProperty("spark" + i, _yscale , 50 + random(50));
setProperty("spark" + i, _alpha , 100);
removeMovieClip("spark" + (i - 40));
i++;
};
Instance of Symbol 9 MovieClip "fuseMask" in Symbol 19 MovieClip Frame 1
onClipEvent (enterFrame) {
this._x = this._parent.sparksMc._x;
}
Symbol 25 MovieClip Frame 7
stop();
Symbol 40 MovieClip Frame 1
stop();
batSound = new Sound();
batSound.attachSound("batSnd");
wallSound = new Sound();
wallSound.attachSound("wallSnd");
brickSound = new Sound();
brickSound.attachSound("brickSnd");
looseBallSound = new Sound();
looseBallSound.attachSound("looseBallSnd");
newBallSound = new Sound();
newBallSound.attachSound("newBallSnd");
gameOverSound = new Sound();
gameOverSound.attachSound("gameOverSnd");
nextLevelSound = new Sound();
nextLevelSound.attachSound("nextLevelSnd");
lifeSound = new Sound();
lifeSound.attachSound("lifeSnd");
bombSound = new Sound();
bombSound.attachSound("bombSnd");
countDownSound = new Sound();
countDownSound.attachSound("countDownSnd");
breakBatSound = new Sound();
breakBatSound.attachSound("breakBatSnd");
teleporterSound = new Sound();
teleporterSound.attachSound("teleporterSnd");
teleportationSound = new Sound();
teleportationSound.attachSound("teleportationSnd");
maceHitBatSound = new Sound();
maceHitBatSound.attachSound("maceHitBatSnd");
maceHitWallSound = new Sound();
maceHitWallSound.attachSound("maceHitWallSnd");
maceHitBrickSound = new Sound();
maceHitBrickSound.attachSound("maceHitBrickSnd");
gunSound = new Sound();
gunSound.attachSound("gunSnd");
globalSound = new Sound();
Symbol 56 Button
on (release) {
infoMc.gotoAndStop("hiscore");
slideIn();
}
Symbol 60 Button
on (release) {
infoMc.gotoAndStop("instructions");
slideIn();
}
Symbol 64 Button
on (release) {
slideOut();
gotoAndStop ("powerups");
}
Symbol 68 Button
on (release) {
infoMc.gotoAndStop("blog");
slideIn();
}
Symbol 72 Button
on (release) {
gotoAndStop ("ready");
}
Instance of Symbol 93 MovieClip in Symbol 94 MovieClip Frame 1
/* no clip actions */
Symbol 99 Button
on (release) {
_root.changePup(3);
}
Symbol 100 Button
on (release) {
_root.changePup(4);
}
Symbol 101 Button
on (release) {
_root.changePup(5);
}
Symbol 102 Button
on (release) {
_root.changePup(6);
}
Symbol 103 Button
on (release) {
_root.changePup(0);
}
Symbol 104 Button
on (release) {
_root.changePup(7);
}
Symbol 105 Button
on (release) {
_root.changePup(1);
}
Symbol 106 Button
on (release) {
_root.changePup(8);
}
Symbol 107 Button
on (release) {
_root.changePup(9);
}
Symbol 108 Button
on (release) {
_root.changePup(2);
}
Symbol 109 Button
on (release) {
_root.changePup(18);
}
Symbol 110 Button
on (release) {
_root.changePup(11);
}
Symbol 111 Button
on (release) {
_root.changePup(10);
}
Symbol 112 Button
on (release) {
_root.changePup(12);
}
Symbol 113 Button
on (release) {
_root.changePup(15);
}
Symbol 114 Button
on (release) {
_root.changePup(14);
}
Symbol 115 Button
on (release) {
_root.changePup(16);
}
Symbol 116 Button
on (release) {
_root.changePup(14);
}
Symbol 117 Button
on (release) {
_root.changePup(17);
}
Symbol 118 Button
on (release) {
_root.changePup(19);
}
Symbol 129 MovieClip Frame 1
stop();
Symbol 129 MovieClip Frame 2
stop();
Symbol 130 MovieClip Frame 1
pupPres.gotoAndStop(_root.nextPup);
_root.pupInfo = _root.nextInfo;
_root.pupName = _root.nextName;
Symbol 130 MovieClip Frame 10
_root.pupMoving = 0;
stop();
Symbol 130 MovieClip Frame 11
_root.pupMoving = 1;
Symbol 145 Button
on (release) {
_root.slideOut(pupsMc);
_root.visitPanicball();
}
Symbol 146 Button
on (release) {
_root.slideOut(pupsMc);
_root.gotoAndStop("powerups");
}
Symbol 151 Button
on (release) {
_root.slideOut(pupsMc);
}
Symbol 157 Button
on (release) {
getURL ("http://panicball.com/download/panicball_mini.zip");
}
Symbol 159 MovieClip Frame 1
stop();
dummyButton.useHandCursor = 0;
Symbol 168 MovieClip Frame 1
stop();
Instance of Symbol 167 MovieClip in Symbol 168 MovieClip Frame 1
onClipEvent (enterFrame) {
_rotation = (_rotation - 1);
}
Symbol 174 MovieClip Frame 1
stop();
Symbol 174 MovieClip Frame 2
stop();
Instance of Symbol 172 MovieClip in Symbol 174 MovieClip Frame 2
onClipEvent (load) {
var fallSpeed = (4 + (Math.random() * 2));
}
onClipEvent (enterFrame) {
_y = (_y + fallSpeed);
if (this.hitTest(_root.bat)) {
if (_root.keys < 3) {
_root.key();
_parent.prevFrame();
}
}
}
Instance of Symbol 173 MovieClip in Symbol 174 MovieClip Frame 3
onClipEvent (load) {
dustSpeed = 10 - (math.random() * 8);
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 2);
_x = (_x + dustSpeed);
amplitude = 20;
wavelength = 40;
_y = (amplitude * Math.sin(_x / wavelength));
if (_alpha <= 0) {
_parent.gotoAndStop(1);
}
}
Symbol 175 MovieClip Frame 1
function disappear() {
var _local1 = _root;
if ((!_local1.magicActive) & (~remoteHit)) {
localChance = random(_local1.chance / (1 + (60 / _local1.bricks)));
directChance = random(_local1.chance);
if (directChance == 0) {
powerUp.play();
powerUp.fallSpeed = _local1.speed / (3 - (math.random() * 2));
} else if (remoteChance == 0) {
brickNum = random(60);
Set(("_parent.brick" + brickNum) + ".hit", 1);
Set(("_parent.brick" + brickNum) + ".remoteHit", 1);
}
goAway();
}
if (_local1.magicActive) {
goAway();
gotoAndStop ("magicDust");
}
if (bombHit) {
}
if (gunHit) {
_local1.whiteBall.gotoAndStop("off");
if (_local1.gunActive) {
_local1.gunMc.gotoAndStop("on");
}
}
if (ballHit) {
_local1.evalPan();
_local1.ballSoundsMc.brickSound.setPan(_local1.ballPan);
if (_local1.maceActive) {
_local1.ballSoundsMc.maceHitBrickSound.stop();
_local1.ballSoundsMc.maceHitBrickSound.start();
} else {
_local1.ballSoundsMc.brickSound.start();
}
_local1.brickHit = 1;
_local1.batHit = 0;
if ((_local1.ball._y - _y) > (_local1.ball._x - _x)) {
if (!_local1.maceActive) {
_local1.ball.yDif = _local1.ball.yDif / -1;
}
}
if ((_local1.ball._y - _y) < (_local1.ball._x - _x)) {
if (!_local1.maceActive) {
_local1.ball.xDif = _local1.ball.xDif / -1;
}
}
}
if (!_local1.levelKeyDropped) {
if ((_local1.keyFrequency - _local1.levelsPassed) > (3 - _local1.keysDropped)) {
keyChance = ((_local1.keysDropped - 3) * -1) / ((((Math.ceil(_local1.level / _local1.keyFrequency) * _local1.keyFrequency) - _local1.level) * 60) + _local1.bricks);
} else {
keyChance = 1 / _local1.bricks;
}
if (Math.random() < keyChance) {
keyMc.gotoAndStop(2);
droppingKey = 1;
_local1.levelKeyDropped = 1;
_local1.keysDropped = _local1.keysDropped + 1;
}
}
if (remoteHit) {
powerUp.play();
hit = 0;
remoteHit = 0;
remoteInterval = setInterval(function () {
powerUp.gotoAndStop(1);
clearInterval(remoteInterval);
}, 210000 / _local1.levelSpeed);
}
}
function goAway() {
var _local1 = _root;
clearInterval(remoteInterval);
powerUp.fallSpeed = _local1.speed / (3 - (math.random() * 2));
gotoAndPlay (2);
_local1.addPoint();
_local1.bricks = _local1.bricks - 1;
if (_local1.bricks < 1) {
_local1.levelCleared();
}
}
stop();
Instance of Symbol 171 MovieClip "target" in Symbol 175 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this.hitTest(_root.monitorMc.miniGameMc.miniGame.ball)) {
_root.monitorMc.miniGameMc.miniGame.ball.yDif = _root.monitorMc.miniGameMc.miniGame.ball.yDif * -1;
_root.bricks--;
_root.batHit = 0;
if (_root.bricks == 0) {
_root.monitorMc.miniGameMc.miniGame.ball._y = 25 + (Math.random() * 5);
_parent._parent.gotoAndPlay(1);
}
_parent.gotoAndStop("emptyFrame");
}
}
Symbol 175 MovieClip Frame 9
stop();
Instance of Symbol 173 MovieClip in Symbol 175 MovieClip Frame 10
onClipEvent (load) {
var amplitude = 20;
var wavelength = 40;
var dustSpeed = (10 - (math.random() * 8));
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 2);
_x = (_x + dustSpeed);
_y = (amplitude * Math.sin(_x / wavelength));
if (_alpha <= 0) {
_parent.gotoAndStop("emptyFrame");
}
}
Symbol 178 MovieClip Frame 2
_root.bricks = 60;
Symbol 178 MovieClip Frame 15
stop();
Instance of Symbol 179 MovieClip "ball" in Symbol 180 MovieClip Frame 1
onClipEvent (load) {
var top;
var bottom;
var left;
var right;
var xDif;
var yDif;
top = -50;
bottom = 50;
left = -50;
right = 50;
xDif = 4;
yDif = 3;
}
onClipEvent (enterFrame) {
if (_y <= top) {
_root.batHit = 0;
yDif = yDif * -1;
}
if (_y >= bottom) {
yDif = yDif * -1;
}
if (_x <= left) {
xDif = xDif * -1;
}
if (_x >= right) {
xDif = xDif * -1;
}
if (this.hitTest(_root.monitorMc.miniGameMc.batMc.bat)) {
if (!_root.batHit) {
_root.batHit = 1;
yDif = yDif * -1;
xDif = xDif + (Math.random() / 10);
}
}
_x = (_x + xDif);
_y = (_y + yDif);
}
Instance of Symbol 182 MovieClip "bat" in Symbol 183 MovieClip Frame 1
onClipEvent (load) {
var xDif;
var ballX;
var ballY;
var easing;
}
onClipEvent (enterFrame) {
if (!_root.batHit) {
ballY = _root.monitorMc.miniGameMc.miniGame.ball._y;
easing = (ballY + 50) / 100;
} else {
easing = 0.1;
}
ballX = _root.monitorMc.miniGameMc.miniGame.ball._x;
xDif = ballX - _x;
_x = (_x + (xDif * easing));
}
Symbol 184 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 16
stop();
Symbol 205 Button
on (rollOver) {
monitorMc.bounce(45);
}
on (rollOut) {
monitorMc.bounce(33);
}
on (release) {
_root.visitPanicball();
}
Symbol 222 MovieClip Frame 1
stop();
Symbol 222 MovieClip Frame 10
stop();
Symbol 237 MovieClip Frame 27
gotoAndPlay (1);
Symbol 238 MovieClip Frame 1
if (_root.showFeatures) {
play();
} else {
stop();
}
Symbol 238 MovieClip Frame 2
_root.changeFeaturesTxt();
featuresStar.txt._y = _root.featuresTxtOffset;
Symbol 238 MovieClip Frame 9
featuresStar.txt._y = _root.featuresTxtOffset;
Symbol 238 MovieClip Frame 78
featuresStar.txt._y = _root.featuresTxtOffset;
Symbol 245 MovieClip Frame 1
stop();
looseBallSound = new Sound(this);
looseBallSound.attachSound("looseBallSnd");
newBallSound = new Sound(this);
newBallSound.attachSound("newBallSnd");
gameOverSound = new Sound(this);
gameOverSound.attachSound("gameOverSnd");
nextLevelSound = new Sound(this);
nextLevelSound.attachSound("nextLevelSnd");
countDownSound = new Sound(this);
countDownSound.attachSound("countDownSnd");
magicSound = new Sound(this);
magicSound.attachSound("magicSnd");
keySound = new Sound(this);
keySound.attachSound("keySnd");
activateSound = new Sound(this);
activateSound.attachSound("activateSnd");
Symbol 250 MovieClip Frame 1
stop();
batSound = new Sound(this);
batSound.attachSound("batSnd");
lifeSound = new Sound(this);
lifeSound.attachSound("lifeSnd");
breakBatSound = new Sound(this);
breakBatSound.attachSound("breakBatSnd");
maceHitBatSound = new Sound(this);
maceHitBatSound.attachSound("maceHitBatSnd");
gunSound = new Sound(this);
gunSound.attachSound("gunSnd");
shieldSound = new Sound(this);
shieldSound.attachSound("shieldSnd");
Symbol 254 MovieClip Frame 1
stop();
wallSound = new Sound(this);
wallSound.attachSound("wallSnd");
maceHitWallSound = new Sound(this);
maceHitWallSound.attachSound("maceHitWallSnd");
brickSound = new Sound(this);
brickSound.attachSound("brickSnd");
maceHitBrickSound = new Sound(this);
maceHitBrickSound.attachSound("maceHitBrickSnd");
Symbol 256 MovieClip Frame 1
stop();
bombSound = new Sound(this);
bombSound.attachSound("bombSnd");
Symbol 260 MovieClip Frame 1
stop();
teleporterSound = new Sound(this);
teleporterSound.attachSound("teleporterSnd");
teleportationSound = new Sound(this);
teleportationSound.attachSound("teleportationSnd");
Symbol 262 MovieClip Frame 1
stop();
magicSound = new Sound(this);
magicSound.attachSound("magicSnd");
Symbol 265 MovieClip Frame 1
stop();
wallBrickSound = new Sound(this);
wallBrickSound.attachSound("wallBrickSnd");
Symbol 267 MovieClip Frame 1
globalSound = new Sound();
Symbol 269 MovieClip Frame 1
stop();
bonusSound = new Sound(this);
bonusSound.attachSound("bonusSnd");
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 2
stop();
Instance of Symbol 173 MovieClip in Symbol 271 MovieClip Frame 2
onClipEvent (load) {
var amplitude = 20;
var wavelength = 40;
var dustSpeed = (5 - (math.random() * 3));
_alpha = 100;
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 2);
_x = (_x + dustSpeed);
_y = (amplitude * Math.sin(_x / wavelength));
if (_alpha <= 0) {
_parent.gotoAndStop("off");
_parent._x = -10;
_parent._y = -10;
}
}
Symbol 275 MovieClip Frame 1
stop();
Symbol 275 MovieClip Frame 2
stop();
Instance of Symbol 274 MovieClip in Symbol 275 MovieClip Frame 2
onClipEvent (mouseDown) {
_root.evalPan();
_root.batSoundsMc.gunSound.setPan(_root.batPan);
_root.batSoundsMc.gunSound.start();
_root.whiteBall._x = _root.bat._x;
_root.whiteBall._y = _root.bat._y - 10;
_root.whiteBall.gotoAndStop("on");
_parent.prevFrame();
}
Symbol 278 MovieClip Frame 1
stop();
Symbol 278 MovieClip Frame 2
stop();
Instance of Symbol 277 MovieClip "whiteBall" in Symbol 278 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._y = _parent._y - 45;
if (_parent._y < 80) {
if (_root.gunActive) {
_root.gunMc.gotoAndStop("on");
}
_parent.gotoAndStop("off");
}
var i = 1;
while (i <= 60) {
if (this.hitTest("_root.bricksMc.brick" + i)) {
Set(("_root.bricksMc.brick" + i) + ".hit", 1);
Set(("_root.bricksMc.brick" + i) + ".gunHit", 1);
}
i++;
}
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
stop();
Instance of Symbol 280 MovieClip "teleTarget" in Symbol 281 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
_parent._y = _root._ymouse;
if (_parent._x < 237) {
_parent._x = 237;
}
if (_parent._x > 787) {
_parent._x = 787;
}
if (_parent._y < 109) {
_parent._y = 109;
}
if (_parent._y > 659) {
_parent._y = 659;
}
_root.teleLine._x = _root.teleStart._x;
_root.teleLine._y = _root.teleStart._y;
_root.teleLine._xscale = _parent._x - _root.teleStart._x;
_root.teleLine._yscale = _parent._y - _root.teleStart._y;
_root.evalPan();
_root.teleporterSoundsMc.teleporterSound.setPan(_root.batPan);
}
onClipEvent (mouseDown) {
_root.telePortation();
}
Symbol 288 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 1
stop();
Symbol 289 MovieClip Frame 2
stop();
Symbol 296 MovieClip Frame 1
stop();
Symbol 298 Button
on (release) {
visitPanicball();
}
Symbol 380 MovieClip Frame 1
stop();
Symbol 380 MovieClip Frame 2
stop();
Instance of Symbol 379 MovieClip in Symbol 380 MovieClip Frame 2
onClipEvent (enterFrame) {
_parent._x = _root._xmouse;
}
Symbol 386 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 1
stop();
Symbol 387 MovieClip Frame 22
gotoAndStop ("m");
Symbol 387 MovieClip Frame 56
gotoAndStop ("s");
Symbol 387 MovieClip Frame 87
gotoAndStop ("l");
Symbol 387 MovieClip Frame 137
gotoAndStop ("m");
Symbol 387 MovieClip Frame 157
gotoAndStop ("l");
Symbol 387 MovieClip Frame 177
gotoAndStop ("m");
Symbol 387 MovieClip Frame 197
gotoAndStop ("s");
Symbol 387 MovieClip Frame 217
gotoAndStop ("l");
Symbol 387 MovieClip Frame 237
gotoAndStop ("s");
Symbol 387 MovieClip Frame 259
prevFrame();
Symbol 387 MovieClip Frame 260
stop();
Symbol 387 MovieClip Frame 287
gotoAndStop ("m");
Symbol 389 MovieClip Frame 1
stop();
Symbol 389 MovieClip Frame 7
stop();
Symbol 390 MovieClip Frame 1
stop();
Symbol 390 MovieClip Frame 2
stop();
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 2
stop();
Symbol 393 MovieClip Frame 1
stop();
Symbol 393 MovieClip Frame 2
stop();
Symbol 394 MovieClip Frame 1
stop();
Symbol 394 MovieClip Frame 2
stop();
Symbol 395 MovieClip Frame 1
stop();
Symbol 395 MovieClip Frame 2
stop();
Symbol 396 MovieClip Frame 1
stop();
Symbol 396 MovieClip Frame 2
stop();
Symbol 399 MovieClip Frame 1
stop();
Symbol 399 MovieClip Frame 2
stop();
Symbol 401 MovieClip Frame 1
stop();
Symbol 401 MovieClip Frame 2
stop();
Symbol 402 MovieClip Frame 1
stop();
Symbol 402 MovieClip Frame 2
stop();
Symbol 403 MovieClip Frame 1
stop();
Symbol 403 MovieClip Frame 2
stop();
Symbol 405 MovieClip Frame 1
stop();
Symbol 405 MovieClip Frame 2
stop();
Symbol 407 MovieClip Frame 1
stop();
Symbol 407 MovieClip Frame 2
stop();
Symbol 409 MovieClip Frame 1
stop();
Symbol 409 MovieClip Frame 2
stop();
Symbol 410 MovieClip Frame 1
stop();
Symbol 410 MovieClip Frame 2
stop();
Symbol 411 MovieClip Frame 1
stop();
Symbol 411 MovieClip Frame 2
stop();
Symbol 412 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 1
stop();
Symbol 413 MovieClip Frame 2
stop();
Symbol 414 MovieClip Frame 1
stop();
Symbol 414 MovieClip Frame 2
stop();
Symbol 415 MovieClip Frame 1
stop();
Symbol 415 MovieClip Frame 2
stop();
Symbol 416 MovieClip Frame 1
stop();
Symbol 416 MovieClip Frame 2
trace("newPupAchieved=" + _root.newPupAchieved);
trace("newPupIntroduced=" + _root.newPupIntroduced);
if (_root.newPupAchieved & (~_root.newPupIntroduced)) {
gotoAndStop(_root.allPowerUps[_root.newPup][1]);
trace("den nyeste pup er " + _root.allPowerUps[_root.newPup][1]);
if (_root.newPup != 14) {
_root.newPupIntroduced = 1;
}
} else {
myPowerUps = new Array();
j = -1;
i = 0;
while (i < _root.allPowerUps.length) {
if (_root.allPowerUps[i][2] == 1) {
myPowerUps[++j] = _root.allPowerUps[i][1];
}
if (_root.level >= 12) {
myPowerUps.push("favourite");
}
i++;
}
trace("myPowerUps=" + myPowerUps);
myPupNum = random(myPowerUps.length);
gotoAndStop(myPowerUps[myPupNum]);
}
Instance of Symbol 390 MovieClip "pup" in Symbol 416 MovieClip Frame 3
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.broken)) {
nextFrame();
_root.pupSound();
_root.batGrow();
}
}
}
Instance of Symbol 391 MovieClip in Symbol 416 MovieClip Frame 9
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.broken)) {
nextFrame();
if (_root.shieldActive) {
_root.useShield();
_root.resetShield();
} else {
_root.pupSound();
_root.batShrink();
}
}
}
}
Instance of Symbol 393 MovieClip in Symbol 416 MovieClip Frame 15
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & _root.inPlay) {
nextFrame();
_root.pupSound();
_root.slowBall();
}
}
}
Instance of Symbol 394 MovieClip in Symbol 416 MovieClip Frame 21
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.broken)) {
nextFrame();
if (_root.shieldActive) {
_root.useShield();
_root.resetShield();
} else {
_root.pupSound();
_root.fastBall();
}
}
}
}
Symbol 416 MovieClip Frame 27
if (_root.randomActive) {
gotoAndStop ("reallife");
} else {
i = random(3);
if ((i == 0) & (~_root.levelLifeDropped)) {
_root.levelLifeDropped = 1;
gotoAndStop ("reallife");
}
}
Instance of Symbol 395 MovieClip in Symbol 416 MovieClip Frame 33
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.broken)) {
nextFrame();
if (_root.shieldActive) {
_root.useShield();
_root.resetShield();
} else {
_root.kill();
}
}
}
}
Instance of Symbol 396 MovieClip in Symbol 416 MovieClip Frame 38
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & (_root.bombs < 5)) {
nextFrame();
_root.pupSound();
_root.bombs = _root.bombs + 1;
_root.bombsMc.nextFrame();
}
}
}
Instance of Symbol 399 MovieClip in Symbol 416 MovieClip Frame 44
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.counting)) {
_root.pupSound();
nextFrame();
_root.countDown();
}
}
}
Symbol 416 MovieClip Frame 50
if (_root.randomActive) {
gotoAndStop ("medkit");
} else {
i = random(2);
if (i == 0) {
gotoAndStop ("realmedkit");
}
}
Instance of Symbol 401 MovieClip in Symbol 416 MovieClip Frame 56
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & _root.inPlay) {
nextFrame();
_root.pupSound();
_root.glue();
}
}
}
Instance of Symbol 402 MovieClip in Symbol 416 MovieClip Frame 62
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & _root.inPlay) {
nextFrame();
_root.pupSound();
_root.mace();
}
}
}
Instance of Symbol 403 MovieClip in Symbol 416 MovieClip Frame 69
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (((_root.alive & _root.inPlay) & (!_root.magicActive)) & (!_root.teleporting)) {
nextFrame();
_root.pupSound();
_root.teleporter();
}
}
}
Instance of Symbol 405 MovieClip in Symbol 416 MovieClip Frame 76
onClipEvent (load) {
var orgY = _parent._parent._y;
trace("orgY=" + orgY);
var myY;
var actY;
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
myY = (_parent._y = _parent._y + fallspeed);
actY = myY + orgY;
if (actY > 600) {
_root.randomActive = 1;
clearRandomInterval = setInterval(function () {
_root.randomActive = 0;
}, 100);
pup = random(_root.allPowerUps.length);
_parent.gotoAndStop(_root.allPowerUps[pup][1]);
}
}
Instance of Symbol 407 MovieClip "pup" in Symbol 416 MovieClip Frame 89
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & _root.inPlay) {
nextFrame();
_root.gun();
_root.pupSound();
}
}
}
Symbol 416 MovieClip Frame 95
if (_root.randomActive) {
gotoAndStop ("realmagic");
trace("magic udl\u00F8st af random");
} else if (_root.newPupAchieved & (~_root.newPupIntroduced)) {
gotoAndStop ("realmagic");
_root.newPupIntroduced = 1;
trace("magic udl\u00F8st som ny powerup");
} else {
trace("almindelig magic dvs odds er 25%");
i = random(_root.magicChance);
if (i < 1) {
gotoAndStop ("realmagic");
}
}
Instance of Symbol 409 MovieClip in Symbol 416 MovieClip Frame 102
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.broken)) {
nextFrame();
if (_root.shieldActive) {
_root.useShield();
_root.resetShield();
} else {
_root.pupSound();
_root.ghost();
}
}
}
}
Instance of Symbol 410 MovieClip in Symbol 416 MovieClip Frame 108
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & _root.inPlay) {
nextFrame();
_root.pupSound();
_root.wall();
}
}
}
Instance of Symbol 411 MovieClip in Symbol 416 MovieClip Frame 115
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hittest(_root.bat)) {
if ((_root.alive & (!_root.shieldActive)) & (!_root.broken)) {
nextFrame();
_root.pupSound();
_root.shield();
}
}
}
Instance of Symbol 412 MovieClip in Symbol 416 MovieClip Frame 122
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hittest(_root.bat)) {
if ((_root.alive & _root.inPlay) & (!_root.broken)) {
nextFrame();
if (_root.shieldActive) {
_root.useShield();
_root.resetShield();
} else {
_root.breakBat();
}
}
}
}
Instance of Symbol 413 MovieClip "powerUp" in Symbol 416 MovieClip Frame 130
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & (_root.lives < 10)) {
_root.pupSound();
nextFrame();
_root.lives = _root.lives + 1;
_root.livesMc.nextFrame();
}
}
}
Instance of Symbol 414 MovieClip in Symbol 416 MovieClip Frame 136
onClipEvent (load) {
var fallSpeed = _parent.fallSpeed;
}
onClipEvent (enterFrame) {
_y = (_y + fallspeed);
if (this.hitTest(_root.bat)) {
if (_root.alive & (_root.medKits < 3)) {
nextFrame();
_root.pupSound();
_root.medKits = _root.medKits + 1;
_root.medKitsMc.nextFrame();
}
}
}
Instance of Symbol 415 MovieClip in Symbol 416 MovieClip Frame 144
onClipEvent (load) {
var amplitude = 20;
var wavelength = 40;
var fallSpeed = (4 + (Math.random() * 2));
}
onClipEvent (enterFrame) {
_y = (_y + fallSpeed);
_x = (amplitude * Math.sin(_y / wavelength));
if (this.hitTest(_root.bat)) {
if (_root.alive & _root.inPlay) {
nextFrame();
_root.pupSound();
_root.magic();
}
}
}
Symbol 416 MovieClip Frame 153
gotoAndStop(_root.playersFavourite[1]);
Symbol 417 MovieClip Frame 1
function disappear() {
var _local1 = _root;
if ((!_local1.magicActive) & (~remoteHit)) {
localChance = random(_local1.chance / (1 + (60 / _local1.bricks)));
directChance = random(_local1.chance);
if (directChance == 0) {
powerUp.play();
powerUp.fallSpeed = _local1.speed / (3 - (math.random() * 2));
} else if (remoteChance == 0) {
brickNum = random(60);
Set(("_parent.brick" + brickNum) + ".hit", 1);
Set(("_parent.brick" + brickNum) + ".remoteHit", 1);
}
goAway();
}
if (_local1.magicActive) {
goAway();
gotoAndStop ("magicDust");
}
if (bombHit) {
}
if (gunHit) {
_local1.whiteBall.gotoAndStop("off");
if (_local1.gunActive) {
_local1.gunMc.gotoAndStop("on");
}
}
if (ballHit) {
_local1.evalPan();
_local1.ballSoundsMc.brickSound.setPan(_local1.ballPan);
if (_local1.maceActive) {
_local1.ballSoundsMc.maceHitBrickSound.stop();
_local1.ballSoundsMc.maceHitBrickSound.start();
} else {
_local1.ballSoundsMc.brickSound.start();
}
_local1.brickHit = 1;
_local1.batHit = 0;
if ((_local1.ball._y - _y) > (_local1.ball._x - _x)) {
if (!_local1.maceActive) {
_local1.ball.yDif = _local1.ball.yDif / -1;
}
}
if ((_local1.ball._y - _y) < (_local1.ball._x - _x)) {
if (!_local1.maceActive) {
_local1.ball.xDif = _local1.ball.xDif / -1;
}
}
}
if (remoteHit) {
powerUp.play();
hit = 0;
remoteHit = 0;
remoteInterval = setInterval(function () {
powerUp.gotoAndStop(1);
clearInterval(remoteInterval);
}, 210000 / _local1.levelSpeed);
}
}
function goAway() {
var _local1 = _root;
clearInterval(remoteInterval);
powerUp.fallSpeed = _local1.speed / (3 - (math.random() * 2));
gotoAndPlay (2);
_local1.addPoint();
_local1.bricks = _local1.bricks - 1;
if (_local1.bricks < 1) {
_local1.levelCleared();
}
}
stop();
Instance of Symbol 171 MovieClip "target" in Symbol 417 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_parent.hit) {
_parent.disappear();
}
if (this.hitTest(_root.ball)) {
_parent.ballHit = 1;
_parent.disappear();
}
}
Symbol 417 MovieClip Frame 9
stop();
Instance of Symbol 173 MovieClip in Symbol 417 MovieClip Frame 10
onClipEvent (load) {
var amplitude = 20;
var wavelength = 40;
var dustSpeed = (10 - (math.random() * 8));
}
onClipEvent (enterFrame) {
_alpha = (_alpha - 2);
_x = (_x + dustSpeed);
_y = (amplitude * Math.sin(_x / wavelength));
if (_alpha <= 0) {
_parent.gotoAndStop("emptyFrame");
}
}
Symbol 418 MovieClip Frame 1
function resetBricks() {
var num = 60;
var top = 124;
var left = 239;
var cols = 15;
var dist = 39;
var i = 1;
brickInterval = setInterval(function () {
duplicateMovieClip (brick, "brick" + i, i);
Set(("brick" + i) + ".myNum", i);
row = Math.floor((i - 1) / cols);
col = (i - 1) - (cols * row);
var _local1 = ((col / cols) * 200) - 100;
_root.wallSoundsMc.wallBrickSound.setPan(_local1);
_root.wallSoundsMc.wallBrickSound.start();
setProperty("brick" + i, _x , (col * dist) + left);
setProperty("brick" + i, _y , (row * dist) + top);
i++;
if (i > num) {
clearInterval(brickInterval);
}
}, 20);
}
Instance of Symbol 417 MovieClip "brick" in Symbol 418 MovieClip Frame 1
onClipEvent (load) {
_xscale = 60;
_yscale = 60;
_alpha = 100;
var end = 100;
var accel = 0.7;
var convert = 0.3;
var xScale;
var yScale;
fadeInterval = setInterval(function () {
xScale = (xScale * accel) + ((end - _xscale) * convert);
yScale = (yScale * accel) + ((end - _yscale) * convert);
_xscale = (_xscale + xScale);
_yscale = (_yscale + yScale);
if (Math.abs(xScale) < 0.1) {
clearInterval(fadeInterval);
}
}, 40);
}
Symbol 424 MovieClip Frame 10
stop();
Symbol 425 MovieClip Frame 1
stop();
Symbol 425 MovieClip Frame 2
trace("nu er jeg i frame 2");
stop();
Instance of Symbol 420 MovieClip in Symbol 425 MovieClip Frame 2
onClipEvent (load) {
_root.glueHoldingBall = 0;
}
onClipEvent (enterFrame) {
_parent._x = _root.bat._x;
if (_root.inPlay) {
if (hittest(_root.ball) & (~_root.teleporting)) {
_parent.nextFrame();
}
}
}
Symbol 425 MovieClip Frame 3
trace("nu er jeg i frame 3");
stop();
Instance of Symbol 420 MovieClip in Symbol 425 MovieClip Frame 3
onClipEvent (load) {
_root.glueHoldingBall = 1;
_root.ball.xDif = 0;
_root.ball.yDif = 0;
_root.ball._y = 600;
}
onClipEvent (enterFrame) {
_parent._x = _root.bat._x;
if (!_root.teleporting) {
_root.ball._x = _root.bat._x;
}
}
onClipEvent (mouseDown) {
if (!_root.teleporting) {
_root.ball._y = _root.ball._y - (_root.speed * 2);
_root.ball.yDif = _root.speed / -1;
}
_parent.prevFrame();
}
Symbol 425 MovieClip Frame 4
stop();
Symbol 429 MovieClip Frame 75
stop();
Symbol 436 MovieClip Frame 57
stop();
_root.clickToStart._visible = 1;
_root.clickToStart.gotoAndPlay("in");
Symbol 436 MovieClip Frame 140
stop();
_root.nextLevel();
Symbol 436 MovieClip Frame 263
stop();
_root.nextLevel();
Symbol 437 MovieClip Frame 1
stop();
Symbol 440 MovieClip Frame 1
stop();
Symbol 441 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 1
stop();
Symbol 442 MovieClip Frame 2
stop();
Instance of Symbol 437 MovieClip "leftWallMc" in Symbol 442 MovieClip Frame 2
onClipEvent (enterFrame) {
if (justHit & (~this.hitTest(_root.ball))) {
justHit = 0;
}
if (((this.hitTest(_root.ball) & (~_root.ball.hitTest(_parent.rightWallMc))) & (~justHit)) & (~_root.magicActive)) {
justHit = 1;
_root.brickHit = 1;
_root.batHit = 0;
_root.evalPan();
if (_root.maceActive) {
_root.ballSoundsMc.maceHitWallSound.setPan(_root.ballPan);
_root.ballSoundsMc.maceHitWallSound.start();
} else {
_root.ballSoundsMc.wallSound.setPan(_root.ballPan);
_root.ballSoundsMc.wallSound.start();
}
if (_root.ball.hitTest(_parent.betweenWallsMc)) {
_root.ball.xDif = _root.ball.xDif * -1;
} else {
_root.ball.yDif = _root.ball.yDif * -1;
}
}
}
Instance of Symbol 440 MovieClip "rightWallMc" in Symbol 442 MovieClip Frame 2
onClipEvent (enterFrame) {
if (justHit & (~this.hitTest(_root.ball))) {
justHit = 0;
}
if ((this.hitTest(_root.ball) & (~justHit)) & (~_root.magicActive)) {
justHit = 1;
_root.brickHit = 1;
_root.batHit = 0;
_root.evalPan();
if (_root.maceActive) {
_root.ballSoundsMc.maceHitWallSound.setPan(_root.ballPan);
_root.ballSoundsMc.maceHitWallSound.start();
} else {
_root.ballSoundsMc.wallSound.setPan(_root.ballPan);
_root.ballSoundsMc.wallSound.start();
}
if (_root.ball.hitTest(_parent.betweenWallsMc) & (_root.ball.xDif > 0)) {
_root.ball.xDif = _root.ball.xDif * -1;
} else {
_root.ball.yDif = _root.ball.yDif * -1;
}
}
}
Symbol 462 MovieClip Frame 1
stop();
Symbol 463 Button
on (keyPress "b") {
if (_root.alive & _root.inPlay) {
if (_root.bombs > 0) {
_root.bomb();
} else if (_root.bombs < 1) {
}
}
}
on (keyPress "m") {
if (_root.alive & _root.inPlay) {
if (_root.medkits > 0) {
_root.resetSpeed();
_root.resetGhost();
if (_root.mirrorActive) {
_root.resetMirror();
}
if (_root.wallActive & (~_root.ballInsideWall)) {
_root.resetWall();
}
if (_root.broken) {
_root.fixBat();
} else {
_root.resetBat();
}
_root.medkits = _root.medkits - 1;
if (_root.medkits <= 3) {
_root.medkitsMc.prevFrame();
}
}
}
}
Symbol 464 Button
on (keyPress "d") {
nextFrame();
}
Symbol 466 Button
on (keyPress "u") {
nextFrame();
}
Symbol 467 Button
on (keyPress "n") {
nextFrame();
}
Symbol 468 Button
on (keyPress "s") {
nextFrame();
}
Symbol 469 Button
on (keyPress "j") {
nextFrame();
}
Symbol 470 Button
on (keyPress "e") {
nextFrame();
}
Symbol 471 Button
on (keyPress "i") {
nextFrame();
}
Symbol 472 Button
on (keyPress "z") {
nextFrame();
}
Symbol 473 MovieClip Frame 1
stop();
Symbol 473 MovieClip Frame 9
_root.cheat = 1;
_root.lives = 10;
_root.bombs = 5;
_root.medkits = 3;
_root.livesMc.gotoAndStop(10);
_root.bombsMc.gotoAndStop(6);
_root.medKitsMc.gotoAndStop(4);
gotoAndStop (1);
Symbol 477 Button
on (release) {
_root.quit();
}
on (keyPress "q") {
_root.quit();
}
on (keyPress "Q") {
_root.quit();
}
Symbol 481 Button
on (release) {
if (_root.globalSoundMc.globalSound.getVolume() == 0) {
_root.globalSoundMc.globalSound.setVolume(50);
this.mute._visible = 0;
} else {
_root.globalSoundMc.globalSound.setVolume(0);
this.mute._visible = 1;
}
}
Symbol 484 MovieClip Frame 1
stop();
mute._visible = 0;
Symbol 487 MovieClip Frame 1
stop();
Instance of Symbol 486 MovieClip in Symbol 487 MovieClip Frame 2
onClipEvent (enterFrame) {
i = 1;
while (i <= 60) {
if (this.hitTest("_root.bricksMc.brick" + i)) {
Set(("_root.bricksMc.brick" + i) + ".hit", 1);
Set(("_root.bricksMc.brick" + i) + ".bombHit", 1);
}
i++;
}
}
Symbol 487 MovieClip Frame 18
if (_root.exploding) {
_root.chance = _root.chance * 1.5;
}
_root.exploding = 0;
if (_root.shieldBombed) {
_root.shieldBombed = 0;
_root.resetShield();
}
this.gotoAndStop(1);
Symbol 493 MovieClip Frame 1
stop();
Symbol 499 MovieClip Frame 1
stop();
Symbol 503 MovieClip Frame 1
stop();
Symbol 511 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 1
stop();
Symbol 512 MovieClip Frame 34
playAgain.bounce(100);
Instance of Symbol 499 MovieClip "playAgain" in Symbol 512 MovieClip Frame 34
onClipEvent (load) {
this.onRollOver = function () {
this.bounce(125);
};
this.onRollOut = function () {
this.bounce(100);
};
this.onRelease = function () {
_root.restart();
};
}
Symbol 512 MovieClip Frame 36
returnToTheMenu.bounce(100);
Instance of Symbol 503 MovieClip "returnToTheMenu" in Symbol 512 MovieClip Frame 36
onClipEvent (load) {
this.onRollOver = function () {
this.bounce(125);
};
this.onRollOut = function () {
this.bounce(100);
};
this.onRelease = function () {
_root.quit();
};
}
Symbol 512 MovieClip Frame 38
orMc.bounce(100);
Symbol 512 MovieClip Frame 40
theRealThing.bounce(100);
Instance of Symbol 511 MovieClip "theRealThing" in Symbol 512 MovieClip Frame 40
onClipEvent (load) {
this.onRollOver = function () {
this.bounce(125);
};
this.onRollOut = function () {
this.bounce(100);
};
this.onRelease = function () {
_root.visitPanicball();
};
}
Symbol 512 MovieClip Frame 69
stop();
Instance of Symbol 274 MovieClip in Symbol 512 MovieClip Frame 70
onClipEvent (mouseDown) {
_root.restart();
}
Symbol 516 MovieClip Frame 1
stop();
Symbol 516 MovieClip Frame 2
var start = getTimer();
Symbol 516 MovieClip Frame 20
_root.activateSound();
Symbol 516 MovieClip Frame 27
_root.activateSound();
Symbol 516 MovieClip Frame 34
_root.activateSound();
Symbol 516 MovieClip Frame 41
_root.activateSound();
Symbol 516 MovieClip Frame 48
_root.activateSound();
Symbol 516 MovieClip Frame 55
_root.activateSound();
Symbol 516 MovieClip Frame 62
_root.activateSound();
Symbol 516 MovieClip Frame 69
_root.activateSound();
Symbol 516 MovieClip Frame 76
_root.activateSound();
Symbol 516 MovieClip Frame 158
_root.resetBall();
_root.readyToStart();
Symbol 516 MovieClip Frame 187
_root.delay = getTimer() - start;
Symbol 516 MovieClip Frame 188
stop();
Symbol 531 MovieClip Frame 1
stop();
Symbol 531 MovieClip Frame 7
stop();
Instance of Symbol 530 MovieClip in Symbol 531 MovieClip Frame 7
onClipEvent (mouseDown) {
if ((!_root.mouseOverButton) & (~_root.fullScreenInfoShowing)) {
_parent.play();
_root.launchBall();
_root.bonusMc.bonusRelease();
}
}
Symbol 533 MovieClip Frame 1
stop();
Symbol 535 MovieClip Frame 1
stop();
Symbol 546 MovieClip Frame 1
function generatePassword() {
trace("gp");
timestamp = "";
var _local1 = new Date();
timestamp = _local1.getTime();
trace(timestamp);
timestamp = Math.round(timestamp / 60000);
timestamp = timestamp.toString();
timestamp = timestamp.substring(3);
passWord = "";
h = 0;
while (passWord.length < timestamp.length) {
passWord = passWord + chr(74 + Number(timestamp.substr(h, 1)));
h++;
}
trace(timestamp);
trace(passWord);
}
trace("jubiii");
generatePassword();
Symbol 550 MovieClip Frame 1
stop();
Symbol 550 MovieClip Frame 2
congratulations.bounce(100);
_root.staticSoundsMc.keySound.start();
Symbol 550 MovieClip Frame 5
text.bounce(100);
_root.staticSoundsMc.keySound.start();
Symbol 550 MovieClip Frame 9
continueMc.bounce(60);
_root.staticSoundsMc.keySound.start();
stop();
Instance of Symbol 549 MovieClip "continueMc" in Symbol 550 MovieClip Frame 9
onClipEvent (load) {
this.onRollOver = function () {
this.bounce(65);
};
this.onRollOut = function () {
this.bounce(60);
};
this.onRelease = function () {
_root.nextLevel();
_parent.gotoAndStop(1);
};
}