Frame 1
stop();
Instance of Symbol 61 MovieClip "bar" in Frame 1
onClipEvent (enterFrame) {
b_loaded = _root.getBytesLoaded();
b_total = _root.getBytesTotal();
percent = (b_loaded / b_total) * 100;
frame = Math.round(percent);
_root.LoadMc.gotoAndStop(frame);
_root.display = Math.round(percent) + "%";
if (percent >= 100) {
_root.four.nextFrame();
_root.play();
} else if (percent >= 75) {
_root.three.nextFrame();
} else if (percent >= 50) {
_root.two.nextFrame();
} else if (percent >= 25) {
_root.one.nextFrame();
}
}
Frame 29
stopAllSounds();
loadMovieNum ("music.swf", 1);
loadMovieNum ("hsmodule.swf", 5);
_level5._x = 100;
_level5._y = 100;
gamename = "Extreme Pinball";
hsURL = "http://www.superdudes.net";
function showLight(score) {
if (_root[("light" + score) + "a"]._currentframe == 1) {
_root[("light" + score) + "a"].gotoAndPlay(2);
} else {
_root[("light" + score) + "b"].gotoAndPlay(2);
}
}
fps = 85;
fpsPower = fps / 100;
ballDiameter = ball._width;
ballRadius = ballDiameter / 2;
flipperPower = 15;
totalbumpers = 3;
bumperPower = 6;
grav = 0.08;
bounce = -0.6;
dtr = (Math.PI/180);
slingshotpower = 7;
savesLeft = 1;
defaultMultiplier = (multiplier = 0.5);
totalBalls = (ballsleft = 5);
score = 0;
scoreBonus = 0;
BonusHold = 0;
bonusThreshhold = 3000;
gameInPlay = false;
ballinplay = false;
_quality = "medium";
function newBall() {
tilted = false;
crashlight.gotoAndStop(1);
ball._visible = false;
ballinplay = false;
Xspeed = 0;
Yspeed = 0;
ball._y = plunger._y - 10;
ball._x = plunger._x;
ballsLeft--;
savesleft = 1;
cratesBroke = 0;
a = 0;
while (a < 3) {
_root["box" + a].gotoAndStop(1);
a++;
}
_root.stopLight.gotoAndStop(1);
airlights.gotoAndStop(1);
airlights.anim.play();
grindlights.gotoAndStop(1);
grindlights.anim.play();
boguslight.play();
shootAgainlight.play();
ball.gotoAndStop(1);
pylonTotal = 0;
a = 0;
while (a < 9) {
_root["pylon" + a].gotoAndStop(1);
a++;
}
electrifyMc.gotoAndStop(1);
ball._visible = true;
if (ballsLeft <= 0) {
gameInPlay = false;
ball._visible = false;
gameinplay = false;
submitScore = Math.floor(score);
_level5.dosubmit(submitScore, 4);
blackback2._visible = true;
}
}
function wallCheck() {
if (ballinplay) {
if (ball._y > 600) {
newBall();
} else if (ball._y < 5) {
ball._y = 5;
Yspeed = Yspeed * bounce;
}
if ((ballinplay && ((ball._x + ballradius) > rightwall._x)) && (ball._y > rightwall._y)) {
ball._x = rightwall._x - ballradius;
Xspeed = Xspeed * bounce;
} else if (((ball._x - ballradius) < leftwall._x) && (ball._y > leftwall._y)) {
ball._x = leftwall._x + ballradius;
Xspeed = Xspeed * bounce;
}
if (electrify) {
if ((((ball._x + ballradius) > superballwall._x) && (ball._y > superballwall._y)) && (ball._y < 300)) {
ball.gotoAndPlay("superball");
}
}
} else {
if ((ball._y + ballradius) > (plunger._y + plunger.mc._y)) {
ball._y = (plunger._y + plunger.mc._y) - ballradius;
Yspeed = Yspeed * bounce;
}
if ((ball._x + ballradius) > gutterwall._x) {
ball._x = gutterwall._x - ballradius;
Xspeed = Xspeed * bounce;
} else if (((ball._x - ballradius) < leftgutter._x) && (ball._y > leftgutter._y)) {
ball._x = leftgutter._x + ballradius;
Xspeed = Xspeed * bounce;
}
if (ball.hitTest(activatebox)) {
ballinplay = true;
}
}
}
function genericCircleHit(Start, End, Prefix, bumperPower, constant, animate) {
i = Start;
while (i < End) {
bTarg = _root[Prefix + i];
if (btarg._currentframe == 1) {
if (ball.hitTest(btarg)) {
if (animate) {
btarg.play();
}
if (constant) {
angle = Math.atan2(y_leg, x_leg);
xspeed = (-Math.cos(angle)) * bumperPower;
yspeed = (-Math.sin(angle)) * bumperPower;
} else {
x_leg = _root.bTarg._x - ball._x;
y_leg = _root.bTarg._y - ball._y;
distanceSquared = (x_leg * x_leg) + (y_leg * y_leg);
sum_Radii = ballradius + (bTarg._width / 2);
sum_RadiiSquared = sum_Radii * sum_Radii;
hypotenuse = Math.sqrt(distanceSquared);
if (hypotenuse == 0) {
hypotenuse = 1;
}
cosa = x_leg / hypotenuse;
sina = y_leg / hypotenuse;
vx1 = -((cosa * Xspeed) + (sina * Yspeed));
vy1 = -((cosa * Yspeed) - (sina * Xspeed));
Xspeed = ((cosa * vx1) + (sina * vy1)) * bumperPower;
Yspeed = (-((cosa * vy1) - (sina * vx1))) * bumperPower;
}
}
}
i++;
}
}
function circleHit(Start, End, Prefix, bumperPower, constant, animate, altMc) {
i = Start;
while (i < End) {
bTarg = _root[Prefix + i];
if (btarg._currentframe == 1) {
x_leg = _root.bTarg._x - ball._x;
y_leg = _root.bTarg._y - ball._y;
distanceSquared = (x_leg * x_leg) + (y_leg * y_leg);
sum_Radii = ballradius + (bTarg._width / 2);
sum_RadiiSquared = sum_Radii * sum_Radii;
if (distanceSquared < sum_RadiiSquared) {
if (animate) {
if (!altMc) {
btarg.play();
} else {
_root[(Prefix + i) + "mc"].play();
}
}
if (constant) {
angle = Math.atan2(y_leg, x_leg);
xspeed = (-Math.cos(angle)) * bumperPower;
yspeed = (-Math.sin(angle)) * bumperPower;
xspeed = xspeed + random(2);
yspeed = yspeed + random(2);
} else {
hypotenuse = Math.sqrt(distanceSquared);
if (hypotenuse == 0) {
hypotenuse = 1;
}
cosa = x_leg / hypotenuse;
sina = y_leg / hypotenuse;
vx1 = -((cosa * Xspeed) + (sina * Yspeed));
vy1 = -((cosa * Yspeed) - (sina * Xspeed));
Xspeed = ((cosa * vx1) + (sina * vy1)) * bumperPower;
Yspeed = (-((cosa * vy1) - (sina * vx1))) * bumperPower;
}
arcTangent = Math.atan(Math.abs(y_leg) / Math.abs(x_leg));
if (x_leg > -1) {
x = (Math.cos(arcTangent) * sum_Radii) * -1.02;
} else if (x_leg < 0) {
x = (Math.cos(arcTangent) * sum_Radii) * 1.02;
} else {
x = 1;
}
if (y_leg > -1) {
y = (Math.sin(arcTangent) * sum_Radii) * -1.02;
} else if (y_leg < 0) {
y = (Math.sin(arcTangent) * sum_Radii) * 1.02;
} else {
y = 1;
}
ball._x = x + btarg._x;
ball._y = y + btarg._y;
}
}
i++;
}
}
function speedCalc(sina, cosa, paddle, xDif) {
var vx1 = ((cosa * Xspeed) + (sina * Yspeed));
var vy1 = ((cosa * Yspeed) - (sina * Xspeed));
if (!paddle.moving) {
vy1 = vy1 * bounce;
} else {
vy1 = ((-flipperpower) * Math.abs(xDif)) / paddle._width;
}
Xspeed = (cosa * vx1) - (sina * vy1);
Yspeed = (cosa * vy1) + (sina * vx1);
}
function coordcalc(sina, cosa, xpos, ypos, paddle) {
var x = ((cosa * xpos) - (sina * ypos));
var y = ((cosa * ypos) + (sina * xpos));
ball._x = x + paddle._x;
ball._y = y + paddle._y;
}
function saveMe(side) {
if (((savesLeft > 0) && (ballinplay)) && (!_root.tilted)) {
savesLeft = savesLeft - 0.5;
if (side != undefined) {
if (_root[side + "gutterMc"]._currentframe == 1) {
_root[side + "gutterMc"].play();
}
}
yspeed = random(4) - 8;
xspeed = 0;
}
if (savesLeft <= 0) {
_root.stopLight.gotoAndStop(2);
}
}
function slingshot(paddle) {
if (paddle == leftslingslope) {
var ydif = (ball._y - lsc2._y);
var xdif = (ball._x - lsc2._x);
if ((ydif > -35) && (ydif < 5)) {
angle = Math.atan2(ydif, xdif);
xspeed = Math.cos(angle) * slingshotpower;
yspeed = Math.sin(angle) * slingshotpower;
slingleft.play();
return(true);
}
} else if (paddle == rightslingslope) {
var ydif = (ball._y - rsc2._y);
var xdif = (ball._x - rsc2._x);
if ((ydif > -35) && (ydif < 5)) {
angle = Math.atan2(ydif, xdif);
xspeed = Math.cos(angle) * slingshotpower;
yspeed = Math.sin(angle) * slingshotpower;
slingright.play();
return(true);
}
}
}
function extraBall() {
soundsMC.gotoAndPlay("new ball");
ballsleft++;
}
function phatAir() {
airborder.play();
}
function redlights1() {
red0.play();
red1.play();
}
function redlights2() {
red2.play();
red3.play();
}
function angleCheck(wall) {
if (ball.hitTest(wall)) {
var cosa = wall.cosa;
var sina = wall.sina;
var xDif = (ball._x - wall._x);
var yDif = (ball._y - wall._y);
var ypos = ((cosa * yDif) - (sina * xDif));
var xpos = ((cosa * xDif) + (sina * yDif));
if (ypos > (-ballRadius)) {
speedCalc(sina, cosa);
coordcalc(sina, cosa, xpos, -ballRadius, wall);
if (wall == airwall) {
phatAir();
}
}
}
}
function hitCheck(paddle, margin) {
checkPos = true;
if ((paddle == leftflipper) || (paddle == rightflipper)) {
var fb = paddle.getBounds(_root);
var proceedX = (((ball._x + xspeed) > fb.xmin) && ((ball._x + xspeed) < fb.xmax));
var proceedY = ((ball._y + Yspeed) > fb.ymin);
var proceed = (proceedX && (proceedY));
} else {
var proceed = ball.hitTest(paddle);
}
if (proceed) {
var cosa = paddle.cosa;
var sina = paddle.sina;
var xDif = (ball._x - paddle._x);
var yDif = (ball._y - paddle._y);
var ypos = ((cosa * yDif) - (sina * xDif));
var xpos = ((cosa * xDif) + (sina * yDif));
if (paddle.above) {
if (ypos > (-ballRadius)) {
checkPos = false;
if (!slingshot(paddle)) {
speedCalc(sina, cosa, paddle, xDif);
}
coordcalc(sina, cosa, xpos, -ballRadius, paddle);
}
} else if (ypos < (ballRadius + margin)) {
checkPos = false;
if (!slingshot(paddle)) {
speedCalc(sina, cosa, paddle, xDif);
}
coordcalc(sina, cosa, xpos, ballRadius + margin, paddle);
}
}
if (checkPos) {
var difX = (paddle._x - ball._x);
var difY = (paddle._y - ball._y);
var pRotation = paddle._rotation;
var rot = (Math.atan2(difY, difX) / dtr);
var rot2 = (pRotation - rot);
if (pRotation > 0) {
if ((rot2 > 0) && (rot2 < 180)) {
paddle.above = false;
} else {
paddle.above = true;
}
} else if ((rot2 < 0) && (rot2 > -180)) {
paddle.above = true;
} else {
paddle.above = false;
}
}
}
function moveball() {
if (!gravityoff) {
Yspeed = Yspeed + grav;
}
ball._x = ball._x + (Xspeed / fpsPower);
ball._y = ball._y + (Yspeed / fpsPower);
wallCheck();
if (ballinplay) {
if (((ball._y > 90) && (ball._y < 210)) && (ball._x < 120)) {
genericCircleHit(0, 3, "box", 0.8, false, true);
if (cratesBroke >= 3) {
CircleHit(0, 1, "target", bumperpower, true, true, true);
}
} else if (((ball._y > 200) && (ball._y < 320)) && (ball._x > 230)) {
if (!superball) {
genericCircleHit(0, 4, "pylon", 0.8, false, true);
}
}
if (ball._y < 130) {
anglecheck(arch1);
anglecheck(arch2);
anglecheck(arch3);
anglecheck(arch4);
anglecheck(arch5);
anglecheck(arch6);
anglecheck(arch7);
anglecheck(arch8);
anglecheck(arch9);
anglecheck(arch10);
anglecheck(stopper0);
anglecheck(stopper1);
anglecheck(gw0);
anglecheck(gw1);
anglecheck(ta0);
anglecheck(ta1);
anglecheck(ta2);
anglecheck(ta3);
anglecheck(ta4);
anglecheck(ta5);
anglecheck(trainwall1);
anglecheck(trainwall2);
anglecheck(leftslope1);
circleHit(0, 6, "top", 0.7);
circleHit(0, 2, "round", bumperpower, true, true, true);
if (ball.hitTest(green1)) {
green1.play();
} else if (ball.hitTest(green2)) {
green2.play();
} else if (ball.hitTest(green3)) {
green3.play();
} else if (ball.hitTest(green4)) {
green4.play();
}
} else if (ball._y < 250) {
if (ball._x > 150) {
anglecheck(gw2);
anglecheck(rightslope0);
anglecheck(rightslope1);
anglecheck(rightslope2);
anglecheck(rightslope3);
if (ball.hitTest(grindsMc) && (grindsMc.grindable)) {
grindsMc.play();
}
circleHit(0, 2, "rightb", bumperpower, true, true, true);
} else {
anglecheck(leftslope2);
anglecheck(leftslope3);
}
circleHit(0, 4, "b", bumperpower, true, true);
} else if (ball._y < 400) {
if (ball._x > 150) {
anglecheck(rightslope3);
anglecheck(rightslope4);
anglecheck(rightslope5);
anglecheck(rightslope6);
circleHit(1, 3, "rightb", bumperpower, true, true, true);
} else {
anglecheck(leftslope4);
anglecheck(leftslope5);
anglecheck(air0);
anglecheck(airwall);
circleHit(2, 3, "round", bumperpower, true, true, true);
circleHit(0, 2, "aircap", 0.5);
}
} else {
if (ball._x > 170) {
hitcheck(rightshelf, 4);
hitcheck(rightvert, 4);
hitcheck(rightbottom);
hitcheck(rightslingvert);
hitcheck(rightslingbottom);
circleHit(1, 4, "rsc", 0.8);
} else {
hitcheck(leftshelf, 4);
hitcheck(leftvert, 4);
hitcheck(leftbottom);
hitcheck(leftslingvert);
hitcheck(leftslingbottom);
circleHit(1, 4, "lsc", 0.8);
}
hitcheck(leftslingslope);
hitcheck(rightslingslope);
hitcheck(leftflipper, 10);
hitcheck(rightflipper, 10);
circleHit(1, 3, "vertcap", 0.8);
}
} else if (ball._y < 160) {
anglecheck(curve0);
anglecheck(curve1);
anglecheck(curve2);
anglecheck(curve3);
anglecheck(curve4);
anglecheck(curve5);
anglecheck(curve6);
anglecheck(curve7);
anglecheck(curve0b);
anglecheck(curve1b);
anglecheck(curve2b);
anglecheck(curve3b);
anglecheck(curve4b);
anglecheck(curve5b);
anglecheck(curve6b);
anglecheck(curve7b);
}
}
Instance of Symbol 241 MovieClip "rightflipper" in Frame 29
onClipEvent (load) {
function detectAngle() {
angle = _rotation * _root.dtr;
cosa = Math.cos(angle);
sina = Math.sin(angle);
}
_rotation = -30;
detectAngle();
}
onClipEvent (enterFrame) {
if (Key.isDown(191) && (!_root.tilted)) {
if (_rotation < 30) {
_rotation = (_rotation + 15);
if (!moving) {
_root.soundsMc.gotoAndPlay("flippers");
}
moving = true;
detectAngle();
} else {
moving = false;
}
} else if (_rotation > -30) {
_rotation = (_rotation - 15);
moving = false;
detectAngle();
}
}
Instance of Symbol 242 MovieClip "leftflipper" in Frame 29
onClipEvent (load) {
function detectAngle() {
angle = _rotation * _root.dtr;
cosa = Math.cos(angle);
sina = Math.sin(angle);
}
_rotation = 30;
detectAngle();
}
onClipEvent (enterFrame) {
if (Key.isDown(90) && (!_root.tilted)) {
if (_rotation > -30) {
_rotation = (_rotation - 15);
if (!moving) {
_root.soundsMc.gotoAndPlay("flippers");
}
moving = true;
detectAngle();
} else {
moving = false;
}
} else if (_rotation < 30) {
_rotation = (_rotation + 15);
moving = false;
detectAngle();
}
}
Instance of Symbol 265 MovieClip "b0" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 20;
}
Instance of Symbol 265 MovieClip "b1" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 20;
}
Instance of Symbol 265 MovieClip "b2" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 20;
}
Instance of Symbol 274 MovieClip "plunger" in Frame 29
onClipEvent (enterFrame) {
if (((_root.gameInPlay && (!_root.ballinplay)) && (Key.isDown(40))) && (_currentframe < 21)) {
play();
} else {
stop();
}
}
onClipEvent (keyUp) {
if ((_root.gameInPlay && (!_root.BallInPlay)) && (Key.getCode() == 40)) {
if ((_currentframe > 1) && ((_parent.ball._y + _root.ballradius) >= ((_y - mc._y) - 5))) {
_root.soundsMc.gotoAndPlay("plunger");
_root.ball._y = ((_y + mc._y) - _root.ballradius) - 5;
_parent.yspeed = (-_currentframe) / 1.5;
_root.shootAgainlight.gotoAndStop(1);
ran = Math.random() - (_parent.yspeed / 3);
_parent.yspeed = _parent.yspeed - ran;
}
gotoAndPlay(_totalframes +28);
}
}
Instance of Symbol 291 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 0;
clickhandler = "saveme";
Side = "Left";
}
Instance of Symbol 291 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 0;
clickhandler = "saveme";
Side = "Right";
}
Instance of Symbol 291 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 20;
clickhandler = "";
Side = "undefined";
}
Instance of Symbol 291 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 20;
clickhandler = "";
Side = "undefined";
}
Instance of Symbol 291 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
clickhandler = "redlights1";
Side = "undefined";
}
Instance of Symbol 291 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
clickhandler = "redlights2";
Side = "undefined";
}
Instance of Symbol 296 MovieClip "box2" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
}
Instance of Symbol 296 MovieClip "box1" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
}
Instance of Symbol 296 MovieClip "box0" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
}
Instance of Symbol 320 MovieClip "ball" in Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 338 MovieClip "airborder" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
}
Instance of Symbol 346 MovieClip "grindsmc" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 100;
}
Instance of Symbol 356 MovieClip in Frame 29
onClipEvent (keyDown) {
if (_root.ballinplay) {
if (!_root.tilted) {
if (Key.isDown(32) && (!pressed)) {
_root.yspeed = _root.yspeed - 2;
tilt++;
this.gotoAndPlay(2);
if (tilt > 2) {
_root.tilted = true;
_root.crashlight.play();
}
pressed = true;
}
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 32) {
pressed = false;
}
}
Instance of Symbol 356 MovieClip in Frame 29
onClipEvent (keyDown) {
if (_root.ballinplay) {
if (!_root.tilted) {
if ((Key.getCode() == 190) && (!pressed)) {
_root.xspeed = _root.xspeed + 1;
tilt++;
this.gotoAndPlay(2);
if (tilt > 2) {
_root.tilted = true;
_root.crashlight.play();
}
pressed = true;
}
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 190) {
pressed = false;
}
}
Instance of Symbol 356 MovieClip in Frame 29
onClipEvent (keyDown) {
if (_root.ballinplay) {
if (!_root.tilted) {
if ((Key.getCode() == 88) && (!pressed)) {
_root.xspeed = _root.xspeed - 1;
tilt++;
this.gotoAndPlay(2);
if (tilt > 2) {
_root.tilted = true;
_root.crashlight.play();
}
pressed = true;
}
}
}
}
onClipEvent (keyUp) {
if (Key.getCode() == 88) {
pressed = false;
}
}
Instance of Symbol 368 MovieClip "restartConfirmMC" in Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 421 MovieClip "optionsMC" in Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 433 MovieClip "fpsMC" in Frame 29
onClipEvent (load) {
elapsed = getTimer() - time;
_visible = false;
}
Frame 30
this.onEnterFrame = function () {
if (gameInPlay) {
if (!paused) {
moveball();
}
if (score != 0) {
scoreBonus = Math.floor(score / bonusThreshhold);
if (scoreBonus != BonusHold) {
extraBall();
}
BonusHold = scoreBonus;
}
}
};
stop();
Symbol 3 Button
on (press) {
startDrag ("", false, 0, 0, 0, 200);
_parent.isDraggingSlide = true;
gotoAndStop (2);
}
on (release, releaseOutside) {
_parent.isDraggingSlide = false;
stopDrag();
gotoAndStop (1);
}
Symbol 7 MovieClip Frame 1
stop();
Instance of Symbol 7 MovieClip "slide" in Symbol 10 MovieClip [Slider] Frame 1
onClipEvent (mouseMove) {
diff = Number(_parent.high_end) - Number(_parent.low_end);
_parent.value = (((200 - _y) / 200) * Number(diff)) + Number(_parent.low_end);
Set(_parent.targetvar, _parent.value);
per = int((_parent.value / _parent.high_end) * 100) + "%";
}
onClipEvent (load) {
diff = Number(_parent.high_end) - Number(_parent.low_end);
_y = int(200 - ((200 * (eval (_parent.defaultValue) - Number(_parent.low_end))) / diff));
}
Symbol 57 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 1
stop();
Symbol 70 MovieClip Frame 55
gotoAndStop (1);
Symbol 75 MovieClip Frame 1
stop();
Symbol 75 MovieClip Frame 75
gotoAndStop (1);
Symbol 80 MovieClip Frame 1
stop();
Symbol 80 MovieClip Frame 41
gotoAndStop (1);
Symbol 83 MovieClip Frame 1
stop();
Symbol 85 MovieClip Frame 1
angle = _rotation * (Math.PI/180);
cosa = Math.cos(angle);
sina = Math.sin(angle);
Symbol 87 MovieClip Frame 1
stop();
Symbol 90 MovieClip Frame 1
angle = _rotation * (Math.PI/180);
cosa = Math.cos(angle);
sina = Math.sin(angle);
Symbol 92 MovieClip Frame 1
angle = _rotation * (Math.PI/180);
cosa = Math.cos(angle);
sina = Math.sin(angle);
Symbol 94 MovieClip Frame 1
this.onPress = function () {
};
this.useHandCursor = false;
Symbol 99 Button
on (release) {
if (!gameInPlay) {
ballsLeft = totalBalls;
gameInPlay = true;
newBall();
score = 0;
ballsLeft = totalBalls;
savesLeft = 2;
multiplier = defaultMultiplier;
} else {
paused = true;
restartConfirmMC._visible = true;
}
}
on (keyPress "p") {
if (ballinplay) {
if (paused) {
paused = false;
} else {
paused = true;
}
}
}
Symbol 103 Button
on (release) {
paused = true;
instructionsMC._visible = !instructionsMC._visible;
}
Symbol 107 Button
on (release) {
paused = true;
optionsMC._visible = !optionsMC._visible;
}
Symbol 111 Button
on (release) {
_level5._x = 40;
_level5._y = 80;
lastQuality = _quality;
_quality = "high";
paused = true;
_level5.clearscores();
_level5.stopped = false;
_level5.doGetScores(4);
blackBack._visible = true;
}
Symbol 119 MovieClip Frame 81
stop();
Symbol 147 MovieClip Frame 1
stop();
Symbol 147 MovieClip Frame 83
if (_root.score > 0) {
_root.soundsMc.gotoAndPlay("bogus");
}
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 2
_root.soundsMc.gotoAndPlay("superball_1");
Symbol 159 MovieClip Frame 1
stop();
Symbol 166 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 1
stop();
Symbol 191 MovieClip Frame 35
loops++;
if (loops > 3) {
gotoAndStop (1);
} else {
gotoAndPlay (2);
}
Symbol 192 MovieClip Frame 1
stop();
_root.allgrinded = false;
Symbol 192 MovieClip Frame 6
_root.grindHerelight.gotoAndStop(1);
_root.allgrinded = true;
_root.score = _root.score + (200 * _root.multiplier);
_root.showLight(100);
_root.showLight(100);
Symbol 208 MovieClip Frame 1
stop();
Symbol 208 MovieClip Frame 63
loops++;
if (loops > 3) {
gotoAndStop (1);
loops = 0;
} else {
gotoAndPlay (2);
}
Symbol 209 MovieClip Frame 1
stop();
_root.allair = false;
Symbol 209 MovieClip Frame 4
_root.allair = true;
_root.score = _root.score + (100 * _root.multiplier);
_root.showLight(100);
Symbol 214 MovieClip Frame 1
stop();
Symbol 220 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 135
if ((_root.score > 0) && (_root.ballsleft > 0)) {
_root.soundsMc.gotoAndPlay("shootagain");
}
Symbol 225 MovieClip Frame 150
stop();
Symbol 228 MovieClip Frame 1
stop();
Symbol 231 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 1
stop();
Symbol 236 MovieClip Frame 2
_root.soundsMc.gotoAndPlay("tilt");
Symbol 236 MovieClip Frame 103
stop();
Symbol 238 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 1
stop();
Symbol 249 MovieClip Frame 2
_root.soundsMc.gotoAndPlay("slingshot");
Symbol 254 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 1
stop();
Symbol 265 MovieClip Frame 2
_root.score = _root.score + (score * _root.multiplier);
_root.showLight(score);
_root.soundsMc.gotoAndPlay("bumper");
Symbol 274 MovieClip Frame 21
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 2
stop();
_root.pylonTotal++;
_root.soundsMc.gotoAndPlay("cone");
if (_root.pylonTotal > 3) {
_root.electrifyMC.play();
}
Symbol 281 MovieClip Frame 1
stop();
Symbol 281 MovieClip Frame 2
_root.score = _root.score + (150 * _root.multiplier);
_root.savesLeft++;
_root.stopLight.play();
_root.showLight(100);
_root.showLight(50);
_root.targethitlight.play();
_root.etnieslight.gotoAndPlay(2);
Symbol 289 MovieClip Frame 1
stop();
Symbol 291 MovieClip Frame 1
laststate = hitting;
if (this.hitTest(_root.ball)) {
hitting = true;
} else {
hitting = false;
}
Symbol 291 MovieClip Frame 2
if ((!hitting) && (laststate)) {
_root.score = _root.score + (score * _root.multiplier);
_root.soundsMc.gotoAndPlay("triggerR");
_root.showLight(score);
if (this.clickhandler != undefined) {
_root[this.clickHandler].call(this, this.side);
}
}
Symbol 296 MovieClip Frame 1
stop();
Symbol 296 MovieClip Frame 2
stop();
_root.cratesBroke++;
_root.score = _root.score + (score * _root.multiplier);
_root.showLight(score);
Symbol 300 MovieClip Frame 1
stop();
Symbol 304 MovieClip Frame 1
stop();
Symbol 307 MovieClip Frame 1
stop();
Symbol 310 MovieClip Frame 1
stop();
Symbol 316 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 1
stop();
loop = 0;
_root.superball = false;
_root.multiplier = _root.defaultMultiplier;
_root.superballlight.gotoAndStop(1);
_root.multiplierLight.gotoAndStop(1);
Symbol 320 MovieClip Frame 4
_root.multiplier = _root.defaultMultiplier * 2;
_root.superball = true;
_root.electrifyMc.gotoAndPlay("reset");
_root.superballlight.gotoAndStop(2);
_root.multiplierLight.gotoAndStop(2);
Symbol 320 MovieClip Frame 19
if (!_root.paused) {
loop++;
}
if (loop > 100) {
gotoAndStop (1);
} else {
gotoAndPlay (6);
}
Symbol 338 MovieClip Frame 1
stop();
Symbol 338 MovieClip Frame 2
if (_root.airLights._currentframe != _root.airLights._totalframes) {
_root.airLights.nextFrame();
}
if (_root.airlights._currentframe != _root.airlights._totalframes) {
_root.score = _root.score + (score * _root.multiplier);
_root.showLight(score);
} else {
_root.score = _root.score + ((score * 2) * _root.multiplier);
_root.showLight(score);
_root.showLight(score);
}
_root.animating++;
if (_root.lowAnimations) {
lastquality = _quality;
_quality = "low";
}
Symbol 338 MovieClip Frame 37
_root.soundsMC.gotoAndPlay("bigtarget");
Symbol 338 MovieClip Frame 95
if (_root.animating > 0) {
_root.animating--;
}
if (_root.lowAnimations && (_root.animating <= 0)) {
_quality = lastquality;
}
Symbol 346 MovieClip Frame 1
grindable = true;
stop();
Symbol 346 MovieClip Frame 2
grindable = false;
if (_root.grindlights._currentframe != _root.grindlights._totalframes) {
_root.grindlights.nextFrame();
}
if (_root.grindlights._currentframe != _root.grindlights._totalframes) {
_root.score = _root.score + (score * _root.multiplier);
_root.showLight(score);
} else {
_root.score = _root.score + ((score * 2) * _root.multiplier);
_root.showLight(score);
_root.showLight(score);
}
_root.animating++;
if (_root.lowAnimations) {
lastquality = _quality;
_quality = "low";
}
Symbol 346 MovieClip Frame 66
if (_root.animating > 0) {
_root.animating--;
}
if (_root.lowAnimations && (_root.animating <= 0)) {
_quality = lastquality;
}
Symbol 352 MovieClip Frame 1
if (_root.animating > 0) {
_root.animating--;
}
if (_root.lowAnimations && (_root.animating <= 0)) {
_quality = lastquality;
}
loop = 0;
maxloops = 25;
_root.pylonTotal = 0;
_root.electrify = false;
stop();
Symbol 352 MovieClip Frame 18
_root.animating++;
if (_root.lowAnimations) {
lastquality = _quality;
_quality = "low";
}
_root.soundsMc.gotoAndPlay("electriied");
Symbol 352 MovieClip Frame 68
_root.electrify = true;
Symbol 352 MovieClip Frame 128
gotoAndPlay (69);
if (_root.ballinplay && (!_root.paused)) {
loop++;
}
if (loop > maxloops) {
a = 0;
while (a < 9) {
_root["pylon" + a].gotoAndStop(1);
a++;
}
loop = 0;
trace("loop=" + loop);
gotoAndStop (1);
}
Symbol 352 MovieClip Frame 149
a = 0;
while (a < 9) {
_root["pylon" + a].gotoAndStop(1);
a++;
}
gotoAndStop (1);
Symbol 356 MovieClip Frame 1
stop();
Symbol 356 MovieClip Frame 32
tilt = 0;
Symbol 363 Button
on (release) {
_visible = false;
_root.paused = false;
}
Symbol 367 Button
on (release) {
_visible = false;
_root.paused = false;
_root.gotoAndPlay("restart");
}
Symbol 371 MovieClip Frame 1
stop();
Symbol 372 MovieClip Frame 1
stop();
Symbol 379 Button
on (release) {
_visible = false;
_root.paused = false;
}
Symbol 384 Button
on (release) {
_quality = "Best";
checkMc.gotoAndStop(2);
}
Symbol 389 Button
on (release) {
_quality = "High";
checkMc.gotoAndStop(3);
}
Symbol 394 Button
on (release) {
_quality = "medium";
checkMc.gotoAndStop(4);
}
Symbol 399 Button
on (release) {
_quality = "low";
checkMc.gotoAndStop(1);
}
Symbol 404 Button
on (release) {
with (_root.backgroundMC) {
if (_visible) {
_visible = false;
} else {
_visible = true;
}
}
}
Symbol 409 Button
on (release) {
if (!lightsoff) {
a = 0;
while (a < lights.length) {
_root[lights[a]]._visible = false;
trace(_root[lights[a]]);
a++;
}
lightsoff = true;
} else {
a = 0;
while (a < lights.length) {
_root[lights[a]]._visible = true;
a++;
}
lightsoff = false;
}
}
Symbol 413 Button
on (release) {
with (_root.fpsmc) {
if (_visible) {
_visible = false;
} else {
_visible = true;
}
}
}
Symbol 418 Button
on (release) {
if (_root.lowAnimations) {
_root.lowAnimations = false;
lowercheck.gotoAndStop(1);
} else {
_root.lowAnimations = true;
lowercheck.gotoAndStop(2);
}
}
Symbol 421 MovieClip Frame 1
lights = ["stoplight", "boguslight", "light25a", "light25b", "light50a", "light50b", "light100a", "light100b", "shootagainlight", "multiplierlight", "superballlight", "targethitlight", "grindherelight"];
Symbol 426 MovieClip Frame 1
_visible = false;
lights = ["stoplight", "boguslight", "light25a", "light25b", "light50a", "light50b", "light100a", "light100b", "shootagainlight", "multiplierlight", "superballlight", "targethitlight", "grindherelight"];
Symbol 429 MovieClip Frame 1
_visible = false;
lights = ["stoplight", "boguslight", "light25a", "light25b", "light50a", "light50b", "light100a", "light100b", "shootagainlight", "multiplierlight", "superballlight", "targethitlight", "grindherelight"];
Symbol 433 MovieClip Frame 2
elapsed = getTimer() - time;
rate = int(1000 / elapsed) * 5;
time = getTimer();
Symbol 439 Button
on (release) {
_level5.stopGetScores();
_level5.clear_screen();
_quality = _root.lastQuality;
_root.paused = false;
_visible = false;
}
Symbol 440 MovieClip Frame 1
_visible = false;
Symbol 441 Button
on (release) {
_level5.clear_screen();
_quality = _root.lastQuality;
_visible = false;
}
Symbol 442 MovieClip Frame 1
_visible = false;