Frame 1
stop();
Instance of Symbol 116 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.gotoAndStop(2);
_root.play();
} else if (percent >= 75) {
_root.three.gotoAndStop(2);
} else if (percent >= 50) {
_root.two.gotoAndStop(2);
} else if (percent >= 25) {
_root.one.gotoAndStop(2);
}
}
Frame 29
function restartSuperdudesGame() {
_level1._visible = true;
}
function endCurrentGameSession() {
_level1._visible = false;
gameOver();
}
loadMovieNum ("hsmodule.swf", 5);
_level5._x = 100;
_level5._y = 100;
gamename = "Extreme Pinball";
hsURL = "";
function loadtheSound() {
if ((soundVolume > 0) || (musicVolume > 0)) {
musicLoopsMc.loadMovie("music.swf");
}
}
pinball_SO = SharedObject.getLocal("SD_pinball");
firstmusicVolume = 100;
musicVolume = pinball_SO.data.musicVolume;
if (musicVolume == undefined) {
musicVolume = firstmusicVolume;
}
soundVolume = pinball_SO.data.soundVolume;
if (soundVolume == undefined) {
soundVolume = 100;
}
stopAllSounds();
this.createEmptyMovieClip("musicLoopsMc", -500);
loadtheSound();
fps = 85;
fpsPower = fps / 100;
ballDiameter = ball._width;
ballRadius = ballDiameter / 2;
flipperPower = 15;
totalbumpers = 3;
bumperPower = 6;
grav = 0.07;
bounce = -0.6;
dtr = (Math.PI/180);
slingshotpower = 7;
savesLeft = 1;
defaultMultiplier = (multiplier = 1);
totalBalls = (ballsleft = 5);
score = 0;
scoreBonus = 0;
BonusHold = 0;
bonusThreshhold = 10000;
gameInPlay = false;
ballinplay = false;
_quality = "medium";
function showLight(score) {
var _local1 = _root;
var _local2 = score;
if (_local1[("light" + _local2) + "a"]._currentframe == 1) {
_local1[("light" + _local2) + "a"].gotoAndPlay(2);
} else {
_local1[("light" + _local2) + "b"].gotoAndPlay(2);
}
}
function newBall() {
var _local1 = _root;
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) {
_local1["box" + a].gotoAndStop(1);
a++;
}
_local1.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) {
_local1["pylon" + a].gotoAndStop(1);
a++;
}
electrifyMc.gotoAndStop(1);
ball._visible = true;
if (ballsLeft <= 0) {
gameOver();
}
}
function gameOver() {
gameInPlay = false;
ball._visible = false;
trace(superdudesSessionActive);
if (superdudesSessionActive) {
submitScore = Math.floor(score);
blackback2._visible = true;
_level5._visible = true;
_level5.dosubmit(submitScore, 4);
}
}
function wallCheck() {
if (ballinplay) {
if (ball._y > 600) {
newBall();
} else if (ball._y < 5) {
ball._y = 5;
Yspeed = Yspeed * bounce;
}
if (((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 (((ball._x + ballradius) > extraWall._x) && (ball._y > extraWall._y)) {
ball._x = extraWall._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) {
var _local1 = bumperPower;
var _local2 = _root;
var _local3 = constant;
i = Start;
while (i < End) {
bTarg = _local2[Prefix + i];
if (btarg._currentframe == 1) {
if (ball.hitTest(btarg)) {
if (animate) {
btarg.play();
}
if (_local3) {
angle = Math.atan2(y_leg, x_leg);
xspeed = (-Math.cos(angle)) * _local1;
yspeed = (-Math.sin(angle)) * _local1;
} else {
x_leg = _local2.bTarg._x - ball._x;
y_leg = _local2.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)) * _local1;
Yspeed = (-((cosa * vy1) - (sina * vx1))) * _local1;
}
}
}
i++;
}
}
function circleHit(Start, End, Prefix, bumperPower, constant, animate, altMc) {
var _local1 = bumperPower;
var _local2 = _root;
var _local3 = Prefix;
i = Start;
while (i < End) {
bTarg = _local2[_local3 + i];
if (btarg._currentframe == 1) {
x_leg = _local2.bTarg._x - ball._x;
y_leg = _local2.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 {
_local2[(_local3 + i) + "mc"].play();
}
}
if (constant) {
angle = Math.atan2(y_leg, x_leg);
xspeed = (-Math.cos(angle)) * _local1;
yspeed = (-Math.sin(angle)) * _local1;
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)) * _local1;
Yspeed = (-((cosa * vy1) - (sina * vx1))) * _local1;
}
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 _local2 = sina;
var _local3 = cosa;
var vx1 = ((_local3 * Xspeed) + (_local2 * Yspeed));
var _local1 = (_local3 * Yspeed) - (_local2 * Xspeed);
if (!paddle.moving) {
_local1 = _local1 * bounce;
} else {
_local1 = ((-flipperpower) * Math.abs(xDif)) / paddle._width;
}
Xspeed = (_local3 * vx1) - (_local2 * _local1);
Yspeed = (_local3 * _local1) + (_local2 * vx1);
}
function coordcalc(sina, cosa, xpos, ypos, paddle) {
var _local2 = (cosa * xpos) - (sina * ypos);
var _local1 = (cosa * ypos) + (sina * xpos);
ball._x = _local2 + paddle._x;
ball._y = _local1 + paddle._y;
}
function saveMe(side) {
var _local1 = _root;
var _local2 = side;
if (((savesLeft > 0) && (ballinplay)) && (!_local1.tilted)) {
savesLeft = savesLeft - 0.5;
if (_local2 != undefined) {
if (_local1[_local2 + "gutterMc"]._currentframe == 1) {
_local1[_local2 + "gutterMc"].play();
}
}
yspeed = random(4) - 8;
xspeed = 0;
}
if (savesLeft <= 0) {
_local1.stopLight.gotoAndStop(2);
}
}
function slingshot(paddle) {
if (paddle == leftslingslope) {
var _local1 = ball._y - lsc2._y;
var _local2 = ball._x - lsc2._x;
if ((_local1 > -35) && (_local1 < 5)) {
angle = Math.atan2(_local1, _local2);
xspeed = Math.cos(angle) * slingshotpower;
yspeed = Math.sin(angle) * slingshotpower;
slingleft.play();
return(true);
}
} else if (paddle == rightslingslope) {
var _local1 = ball._y - rsc2._y;
var _local2 = ball._x - rsc2._x;
if ((_local1 > -35) && (_local1 < 5)) {
angle = Math.atan2(_local1, _local2);
xspeed = Math.cos(angle) * slingshotpower;
yspeed = Math.sin(angle) * slingshotpower;
slingright.play();
return(true);
}
}
return(undefined);
}
function extraBall() {
soundsMC.newBall();
ballsleft++;
}
function phatAir() {
airborder.play();
}
function redlights1() {
red0.play();
red1.play();
}
function redlights2() {
red2.play();
red3.play();
}
function angleCheck(wall) {
var _local1 = wall;
if (ball.hitTest(_local1)) {
var _local3 = _local1.cosa;
var _local2 = _local1.sina;
var xDif = (ball._x - _local1._x);
var yDif = (ball._y - _local1._y);
var ypos = ((_local3 * yDif) - (_local2 * xDif));
var xpos = ((_local3 * xDif) + (_local2 * yDif));
if (ypos > (-ballRadius)) {
speedCalc(_local2, _local3);
coordcalc(_local2, _local3, xpos, -ballRadius, _local1);
if (_local1 == airwall) {
phatAir();
}
}
}
}
function hitCheck(paddle, margin) {
var _local1 = paddle;
checkPos = true;
if ((_local1 == leftflipper) || (_local1 == rightflipper)) {
var fb = _local1.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(_local1);
}
if (proceed) {
var _local3 = _local1.cosa;
var _local2 = _local1.sina;
var xDif = (ball._x - _local1._x);
var yDif = (ball._y - _local1._y);
var ypos = ((_local3 * yDif) - (_local2 * xDif));
var xpos = ((_local3 * xDif) + (_local2 * yDif));
if (_local1.above) {
if (ypos > (-ballRadius)) {
checkPos = false;
if (!slingshot(_local1)) {
speedCalc(_local2, _local3, _local1, xDif);
}
coordcalc(_local2, _local3, xpos, -ballRadius, _local1);
}
} else if (ypos < (ballRadius + margin)) {
checkPos = false;
if (!slingshot(_local1)) {
speedCalc(_local2, _local3, _local1, xDif);
}
coordcalc(_local2, _local3, xpos, ballRadius + margin, _local1);
}
}
if (checkPos) {
var difX = (_local1._x - ball._x);
var difY = (_local1._y - ball._y);
var pRotation = _local1._rotation;
var rot = (Math.atan2(difY, difX) / dtr);
var rot2 = (pRotation - rot);
if (pRotation > 0) {
if ((rot2 > 0) && (rot2 < 180)) {
_local1.above = false;
} else {
_local1.above = true;
}
} else if ((rot2 < 0) && (rot2 > -180)) {
_local1.above = true;
} else {
_local1.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);
anglecheck(gw2);
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, 3, "b", bumperpower, true, true);
} else if (ball._y < 402) {
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);
}
circleHit(2, 4, "b", bumperpower, true, true);
circleHit(1, 3, "vertcap", 0.8);
} 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 285 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.flippers();
}
moving = true;
detectAngle();
} else {
moving = false;
}
} else if (_rotation > -30) {
_rotation = (_rotation - 15);
moving = false;
detectAngle();
}
}
Instance of Symbol 286 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.flippers();
}
moving = true;
detectAngle();
} else {
moving = false;
}
} else if (_rotation < 30) {
_rotation = (_rotation + 15);
moving = false;
detectAngle();
}
}
Instance of Symbol 308 MovieClip "b0" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
}
Instance of Symbol 308 MovieClip "b1" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
}
Instance of Symbol 308 MovieClip "b2" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
}
Instance of Symbol 308 MovieClip "b3" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
}
Instance of Symbol 317 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.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 332 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 0;
clickhandler = "saveme";
Side = "Left";
}
Instance of Symbol 332 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 0;
clickhandler = "saveme";
Side = "Right";
}
Instance of Symbol 332 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
clickhandler = "";
Side = "undefined";
}
Instance of Symbol 332 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
clickhandler = "";
Side = "undefined";
}
Instance of Symbol 332 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
clickhandler = "redlights1";
Side = "undefined";
}
Instance of Symbol 332 MovieClip in Frame 29
//component parameters
onClipEvent (initialize) {
score = 50;
clickhandler = "redlights2";
Side = "undefined";
}
Instance of Symbol 335 MovieClip "box2" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 100;
}
Instance of Symbol 335 MovieClip "box1" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 100;
}
Instance of Symbol 335 MovieClip "box0" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 100;
}
Instance of Symbol 359 MovieClip "ball" in Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 376 MovieClip "airborder" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 25;
}
Instance of Symbol 382 MovieClip "grindsmc" in Frame 29
//component parameters
onClipEvent (initialize) {
score = 100;
}
Instance of Symbol 391 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 391 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 391 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 403 MovieClip "restartConfirmMC" in Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 469 MovieClip "optionsMC" in Frame 29
onClipEvent (load) {
_visible = false;
}
Instance of Symbol 481 MovieClip "fpsMC" in Frame 29
onClipEvent (load) {
elapsed = getTimer() - time;
_visible = false;
}
Instance of Symbol 489 MovieClip "upsellModuleMC" in Frame 29
//component parameters
onClipEvent (initialize) {
game_id = "xtreme_pinball";
timeLimit = 120;
levelLimit = 5;
zSorted = true;
zDepth = 100000001 /* 0x5F5E101 */;
backColor = 997247 /* 0x0F377F */;
urlLink = "/bin/redirCount.php?http://www.superdudes.net/join/index.php%3Fref=";
hsURL = "/bin/getSessionStatus.php";
forcelogin = "Off";
}
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 22 Button
on (release) {
_root.restartSuperdudesGame();
_parent.clearScreen();
}
Symbol 25 Button
on (release) {
getURL (_parent.urlLink + _parent.game_id, "_blank");
}
Symbol 53 MovieClip Frame 25
gotoAndPlay ("superdudes");
Symbol 58 Button
on (press) {
startDrag ("", false, 0, 0, 0, 200);
_parent.isDraggingSlide = true;
gotoAndStop (2);
}
on (release, releaseOutside) {
_parent.isDraggingSlide = false;
stopDrag();
gotoAndStop (1);
}
Symbol 62 MovieClip Frame 1
stop();
Instance of Symbol 62 MovieClip "slide" in Symbol 65 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 112 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 1
stop();
Symbol 123 MovieClip Frame 75
gotoAndStop (1);
Symbol 128 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 55
gotoAndStop (1);
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 41
gotoAndStop (1);
Symbol 139 MovieClip Frame 1
angle = _rotation * (Math.PI/180);
cosa = Math.cos(angle);
sina = Math.sin(angle);
Symbol 141 MovieClip Frame 1
stop();
Symbol 144 MovieClip Frame 1
angle = _rotation * (Math.PI/180);
cosa = Math.cos(angle);
sina = Math.sin(angle);
Symbol 146 MovieClip Frame 1
angle = _rotation * (Math.PI/180);
cosa = Math.cos(angle);
sina = Math.sin(angle);
Symbol 148 MovieClip Frame 1
this.onPress = function () {
};
this.useHandCursor = false;
Symbol 152 Button
on (rollOver) {
musicLoopsMc.soundsMc.cone();
}
on (release) {
if (!gameInPlay) {
ballsLeft = totalBalls;
gameInPlay = true;
newBall();
score = 0;
ballsLeft = totalBalls;
savesLeft = 2;
multiplier = defaultMultiplier;
upsellModuleMC.startTimer();
} else {
paused = true;
restartConfirmMC._visible = true;
}
}
on (keyPress "p") {
if (ballinplay) {
upsellModuleMC.pauseTimer();
if (paused) {
paused = false;
} else {
paused = true;
}
}
}
Symbol 155 Button
on (release) {
paused = (instructionsMC._visible = !instructionsMC._visible);
}
on (rollOver) {
musicLoopsMc.soundsMc.cone();
}
Symbol 158 Button
on (release) {
paused = (optionsMC._visible = !optionsMC._visible);
}
on (rollOver) {
musicLoopsMc.soundsMc.cone();
}
Symbol 161 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;
}
on (rollOver) {
musicLoopsMc.soundsMc.cone();
}
Symbol 165 MovieClip Frame 3
Symbol 165 MovieClip Frame 38
Symbol 165 MovieClip Frame 81
stop();
Symbol 192 MovieClip Frame 1
stop();
Symbol 192 MovieClip Frame 2
_root.soundsMc.ballLost();
Symbol 192 MovieClip Frame 83
if (_root.score > 0) {
_root.soundsMc.bogus();
}
Symbol 193 MovieClip Frame 1
stop();
Symbol 193 MovieClip Frame 55
gotoAndStop (1);
Symbol 195 MovieClip Frame 1
stop();
Symbol 195 MovieClip Frame 75
gotoAndStop (1);
Symbol 196 MovieClip Frame 1
stop();
Symbol 196 MovieClip Frame 41
gotoAndStop (1);
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
_root.soundsMc.superball_1();
_root.soundsMc.supercharged();
_root.soundsMc.supercharged();
Symbol 207 MovieClip Frame 1
stop();
Symbol 214 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 1
stop();
Symbol 239 MovieClip Frame 35
loops++;
if (loops > 3) {
gotoAndStop (1);
} else {
gotoAndPlay ("loop");
}
Symbol 240 MovieClip Frame 1
stop();
_root.allgrinded = false;
Symbol 240 MovieClip Frame 6
_root.grindHerelight.gotoAndStop(1);
_root.allgrinded = true;
_root.score = _root.score + (200 * _root.multiplier);
_root.showLight(100);
_root.showLight(100);
Symbol 256 MovieClip Frame 1
stop();
Symbol 256 MovieClip Frame 63
loops++;
if (loops > 3) {
gotoAndStop (1);
loops = 0;
} else {
gotoAndPlay ("loop");
}
Symbol 257 MovieClip Frame 1
stop();
_root.allair = false;
Symbol 257 MovieClip Frame 4
_root.allair = true;
_root.score = _root.score + (100 * _root.multiplier);
_root.showLight(100);
Symbol 261 MovieClip Frame 1
stop();
Symbol 261 MovieClip Frame 2
_root.score = _root.score + (25 * _root.multiplier);
_root.showLight(25);
_root.soundsMc.Switch01();
Symbol 266 MovieClip Frame 1
stop();
Symbol 266 MovieClip Frame 2
_root.soundsMc.dude();
Symbol 271 MovieClip Frame 1
stop();
Symbol 271 MovieClip Frame 135
if ((_root.score > 0) && (_root.ballsleft > 0)) {
_root.soundsMc.gotoAndPlay("shootagain");
}
Symbol 271 MovieClip Frame 150
stop();
Symbol 274 MovieClip Frame 1
stop();
Symbol 277 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 1
stop();
Symbol 282 MovieClip Frame 2
_root.soundsMc.tilt();
Symbol 282 MovieClip Frame 103
stop();
Symbol 293 MovieClip Frame 1
stop();
Symbol 293 MovieClip Frame 2
_root.soundsMc.slingshot();
_root.score = _root.score + (25 * _root.multiplier);
_root.showLight(25);
Symbol 297 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 2
_root.soundsMc.hammer();
_root.score = _root.score + (25 * _root.multiplier);
_root.showLight(25);
Symbol 308 MovieClip Frame 1
stop();
Symbol 308 MovieClip Frame 2
_root.score = _root.score + (score * _root.multiplier);
_root.showLight(score);
_root.soundsMc.bumper();
Symbol 317 MovieClip Frame 21
stop();
Symbol 320 MovieClip Frame 1
stop();
Symbol 320 MovieClip Frame 2
stop();
_root.score = _root.score + (50 * _root.multiplier);
_root.showLight(50);
_root.pylonTotal++;
_root.soundsMc.cone();
if (_root.pylonTotal > 3) {
_root.electrifyMC.play();
}
Symbol 323 MovieClip Frame 1
stop();
Symbol 323 MovieClip Frame 2
_root.score = _root.score + (300 * _root.multiplier);
_root.savesLeft++;
_root.stopLight.play();
_root.showLight(100);
_root.showLight(100);
_root.showLight(50);
_root.showLight(50);
_root.targethitlight.play();
_root.soundsMc.zap();
Symbol 330 MovieClip Frame 1
stop();
Symbol 330 MovieClip Frame 2
_root.soundsMc.switch01();
Symbol 330 MovieClip Frame 6
_root.soundsMc.switch00();
Symbol 332 MovieClip Frame 1
laststate = hitting;
if (this.hitTest(_root.ball)) {
hitting = true;
} else {
hitting = false;
}
Symbol 332 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 335 MovieClip Frame 1
stop();
Symbol 335 MovieClip Frame 2
stop();
_root.cratesBroke++;
_root.score = _root.score + (score * _root.multiplier);
_root.showLight(score);
_root.soundsMc.bell();
Symbol 339 MovieClip Frame 1
stop();
Symbol 343 MovieClip Frame 1
stop();
Symbol 346 MovieClip Frame 1
stop();
Symbol 349 MovieClip Frame 1
stop();
Symbol 355 MovieClip Frame 1
stop();
Symbol 359 MovieClip Frame 1
stop();
loop = 0;
_root.superball = false;
_root.multiplier = _root.defaultMultiplier;
_root.superballlight.gotoAndStop(1);
_root.multiplierLight.gotoAndStop(1);
Symbol 359 MovieClip Frame 4
_root.multiplier = _root.defaultMultiplier * 2;
_root.superball = true;
_root.electrifyMc.gotoAndPlay("reset");
_root.superballlight.gotoAndStop(2);
_root.multiplierLight.gotoAndStop(2);
Symbol 359 MovieClip Frame 6
stop();
Symbol 359 MovieClip Frame 19
if (!_root.paused) {
loop++;
}
if (loop > 100) {
gotoAndStop (1);
} else {
gotoAndPlay ("loop");
}
Symbol 376 MovieClip Frame 1
stop();
Symbol 376 MovieClip Frame 2
_root.soundsMc.air();
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 376 MovieClip Frame 37
_root.soundsMC.gotoAndPlay("bigtarget");
Symbol 376 MovieClip Frame 95
if (_root.animating > 0) {
_root.animating--;
}
if (_root.lowAnimations && (_root.animating <= 0)) {
_quality = lastquality;
}
Symbol 382 MovieClip Frame 1
grindable = true;
stop();
Symbol 382 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 382 MovieClip Frame 3
_root.soundsMc.grinding();
Symbol 382 MovieClip Frame 19
_root.soundsMc.grind();
Symbol 382 MovieClip Frame 66
if (_root.animating > 0) {
_root.animating--;
}
if (_root.lowAnimations && (_root.animating <= 0)) {
_quality = lastquality;
}
Symbol 387 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 387 MovieClip Frame 18
_root.animating++;
if (_root.lowAnimations) {
lastquality = _quality;
_quality = "low";
}
_root.soundsMc.gotoAndPlay("electriied");
Symbol 387 MovieClip Frame 68
_root.electrify = true;
_root.soundsMc.electrifiedvoice();
Symbol 387 MovieClip Frame 128
gotoAndPlay ("loop");
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 387 MovieClip Frame 149
a = 0;
while (a < 9) {
_root["pylon" + a].gotoAndStop(1);
a++;
}
gotoAndStop (1);
Symbol 391 MovieClip Frame 1
stop();
Symbol 391 MovieClip Frame 32
tilt = 0;
Symbol 398 Button
on (release) {
_visible = false;
_root.paused = false;
}
Symbol 402 Button
on (release) {
_visible = false;
_root.paused = false;
_root.gotoAndPlay("restart");
}
Symbol 407 MovieClip Frame 1
stop();
Symbol 408 MovieClip Frame 1
stop();
Symbol 414 Button
on (release) {
gotoAndStop ("on");
}
Symbol 418 Button
on (release) {
gotoAndStop ("off");
}
Symbol 419 MovieClip Frame 1
stop();
if (typeof(valueArray[1]) == "string") {
if (eval (item) == eval (valueArray[1])) {
gotoAndStop ("off");
} else {
gotoAndStop ("on");
}
} else if (eval (item) == valueArray[1]) {
gotoAndStop ("off");
} else {
gotoAndStop ("on");
}
Symbol 419 MovieClip Frame 3
if (typeof(valueArray[0]) == "string") {
Set(item, eval (valueArray[0]));
} else {
Set(item, valueArray[0]);
}
_parent[changeHandler]();
Symbol 419 MovieClip Frame 7
if (typeof(valueArray[1]) == "string") {
Set(item, eval (valueArray[1]));
} else {
Set(item, valueArray[1]);
}
_parent[changeHandler]();
Symbol 427 Button
on (release) {
_visible = false;
_root.paused = false;
}
Symbol 432 Button
on (release) {
_quality = "Best";
checkMc.gotoAndStop(2);
}
Symbol 437 Button
on (release) {
_quality = "High";
checkMc.gotoAndStop(3);
}
Symbol 442 Button
on (release) {
_quality = "medium";
checkMc.gotoAndStop(4);
}
Symbol 447 Button
on (release) {
_quality = "low";
checkMc.gotoAndStop(1);
}
Symbol 452 Button
on (release) {
with (_root.backgroundMC) {
if (_visible) {
_visible = false;
} else {
_visible = true;
}
}
}
Symbol 457 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 461 Button
on (release) {
with (_root.fpsmc) {
if (_visible) {
_visible = false;
} else {
_visible = true;
}
}
}
Symbol 466 Button
on (release) {
if (_root.lowAnimations) {
_root.lowAnimations = false;
lowercheck.gotoAndStop(1);
} else {
_root.lowAnimations = true;
lowercheck.gotoAndStop(2);
}
}
Symbol 469 MovieClip Frame 1
function menuLoopVol() {
var _local1 = _root;
_local1.musicLoopsMc.musicloop.setVolume(_local1.musicVolume);
_local1.pinball_SO.data.musicVolume = _local1.musicVolume;
if (!_local1.musicLoopsMc.loadedV) {
_local1.loadtheSound();
}
}
function soundsFunction() {
var _local1 = _root;
_local1.pinball_SO.data.soundVolume = _local1.soundVolume;
if (!_local1.musicLoopsMc.loadedV) {
_local1.loadtheSound();
}
}
lights = ["stoplight", "boguslight", "light25a", "light25b", "light50a", "light50b", "light100a", "light100b", "light20a", "light20b", "shootagainlight", "multiplierlight", "superballlight", "targethitlight", "grindherelight"];
Instance of Symbol 419 MovieClip in Symbol 469 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
item = "_root.musicVolume";
valueArray = [];
valueArray[0] = "_root.firstMusicVolume";
valueArray[1] = 0;
changeHandler = "menuLoopVol";
}
Instance of Symbol 419 MovieClip in Symbol 469 MovieClip Frame 1
//component parameters
onClipEvent (initialize) {
item = "_root.soundVolume";
valueArray = [];
valueArray[0] = 100;
valueArray[1] = 0;
changeHandler = "soundsFunction";
}
Symbol 474 MovieClip Frame 1
_visible = false;
lights = ["stoplight", "boguslight", "light25a", "light25b", "light50a", "light50b", "light100a", "light100b", "shootagainlight", "multiplierlight", "superballlight", "targethitlight", "grindherelight"];
Symbol 477 MovieClip Frame 1
_visible = false;
lights = ["stoplight", "boguslight", "light25a", "light25b", "light50a", "light50b", "light100a", "light100b", "shootagainlight", "multiplierlight", "superballlight", "targethitlight", "grindherelight"];
Symbol 481 MovieClip Frame 2
elapsed = getTimer() - time;
rate = int(1000 / elapsed) * 5;
time = getTimer();
Symbol 487 Button
on (release) {
_level5.stopGetScores();
_level5.clear_screen();
_level5._visible = false;
_quality = _root.lastQuality;
_root.paused = false;
_visible = false;
}
Symbol 488 MovieClip Frame 1
_visible = false;
Symbol 489 MovieClip Frame 1
function createUpsellPage() {
attachMovie("superdudes_UpsellScreen", "upsellMC", 1);
upsellMC._x = Stage.width / 2;
upsellMC._y = Stage.height / 2;
upsellMC._visible = false;
}
function createBackground() {
this.createEmptyMovieClip("backgroundMC", 0);
backgroundMC._alpha = 0;
with (backgroundMC) {
beginFill(backColor, 100);
lineTo(Stage.width, 0);
lineTo(Stage.width, Stage.height);
lineTo(0, Stage.height);
lineTo(0, 0);
endFill();
}
backgroundMC.onPress = function () {
};
backgroundMC.useHandCursor = false;
}
function clearScreen() {
removeMovieClip("upsellMC");
removeMovieClip("backgroundMC");
_quality = prevQuality;
backgroundMC._visible = false;
backgroundMC._alpha = 0;
upsellMC._visible = false;
if (this.onEnterFrame != undefined) {
delete this.onEnterFrame;
}
}
function displayUpsellPage() {
createUpsellPage();
createBackground();
prevQuality = _quality;
_quality = "Low";
this.onEnterFrame = function () {
if (backgroundMC._alpha < 100) {
backgroundMC._alpha = backgroundMC._alpha + 5;
} else {
upsellMC._visible = true;
_quality = "High";
delete this.onEnterFrame;
}
};
_root.endCurrentGameSession();
}
function checkLevel(currentLevel) {
if ((!_root.superdudesSessionActive) && (currentLevel > levelLimit)) {
displayUpsellPage();
return(true);
}
}
function pauseTimer(bypass) {
if ((!timerPaused) || (bypass)) {
timerPaused = true;
startPausedTime = getTimer() / 1000;
} else {
timerPaused = false;
totalPausedTime = totalPausedTime + ((getTimer() / 1000) - startPausedTime);
}
}
function startTimer() {
if (!_root.superdudesSessionActive) {
startTime = getTimer() / 1000;
timeCheck = setInterval(checkTime, 1000);
totalPausedTime = 0;
}
}
function checkTime() {
if (_root.superdudesSessionActive) {
clearInterval(timeCheck);
}
elapsedTime = ((getTimer() / 1000) - startTime) - totalPausedTime;
if ((elapsedTime > timeLimit) && (!timerPaused)) {
displayUpsellPage();
clearInterval(timeCheck);
}
}
sessionVars = new LoadVars();
if (forceLogin == "True") {
_root.superdudesSessionActive = true;
} else if (forceLogin == "False") {
_root.superdudesSessionActive = false;
} else {
sessionVars.load(hsurl);
}
sessionVars.onLoad = function (success) {
var _local1 = _root;
if (success) {
if (sessionVars.result == 0) {
_local1.superdudesSessionActive = false;
} else if (sessionVars.result == 1) {
_local1.superdudesSessionActive = true;
}
} else {
_local1.superdudesSessionActive = false;
}
};
if (zsorted) {
this.swapDepths(zDepth);
}
Symbol 490 Button
on (release) {
_level5.clear_screen();
_quality = _root.lastQuality;
_visible = false;
}
Symbol 491 MovieClip Frame 1
_visible = false;