Frame 1
function getMyWeb() {
getURL ("http://jacobgrahn.com/", "_blank");
}
System.security.allowDomain("www.jacobgrahn.com");
myURL = _url;
if ((myURL.indexOf("newgrounds.com") != -1) || (myURL.indexOf("uploads.ungrounded") != -1)) {
badScreen._visible = false;
} else {
stop();
}
newMenu = new ContextMenu();
newMenu.hideBuiltInItems();
menuButton = new ContextMenuItem("JacobGrahn.com", getMyWeb);
newMenu.customItems.push(menuButton);
_root.menu = newMenu;
compInfo = getVersion();
spaceChar = compInfo.indexOf(" ");
versionNum = compInfo.charAt(spaceChar + 1);
if (((versionNum == "8") || (versionNum == "9")) || (versionNum == "1")) {
noFlash._visible = false;
} else {
noFlash.flashText.text = ("You have flash " + versionNum) + ".";
stop();
}
Frame 2
stop();
this.onEnterFrame = function () {
loaded = _root.getBytesLoaded();
total = _root.getBytesTotal();
preloader.bar._xscale = (loaded / total) * 100;
if (loaded == total) {
gotoAndPlay ("initialize");
delete this.onEnterFrame;
}
};
Frame 4
function startSong(songName) {
if (songName == "stop") {
gameSong.stop();
} else if (nowPlaying != songName) {
gameSong.stop();
gameSong.attachSound(songName);
gameSong.start(0, 100);
}
nowPlaying = songName;
}
function adjustMusic() {
target_so = gameSong;
var _local1 = target_so.getVolume();
_local1 = _local1 + ((Math.random() * volumeChange) - (volumeChange / 4));
if (_local1 < (musicVolume - (musicVolume / 4))) {
_local1 = musicVolume - (musicVolume / 4);
} else if (_local1 > (musicVolume + (musicVolume / 4))) {
_local1 = musicVolume + (musicVolume / 4);
}
target_so.setVolume(_local1);
tempPan = target_so.getPan();
tempPan = tempPan + ((Math.random() * panChange) - (panChange / 2));
if (tempPan > maxPan) {
tempPan = maxPan;
} else if (tempPan < (-maxPan)) {
tempPan = -maxPan;
}
target_so.setPan(tempPan);
}
function startSound(targetSound, variations) {
if (variations != 1) {
var _local2 = Math.ceil(Math.random() * variations);
_root.soundFX.attachSound(targetSound + _local2);
} else {
_root.soundFX.attachSound(targetSound);
}
_root.soundFX.setVolume(soundVolume + ((Math.random() * 60) - 30));
_root.soundFX.start(0, 1);
}
qualityLevel = "HIGH";
detail = true;
var keyListener = new Object();
Key.addListener(keyListener);
playerName = "your name here";
menuSong = false;
volumeChange = 20;
adjustMusicInterval = setInterval(adjustMusic, 500);
musicVolume = 80;
maxPan = 50;
panChange = 20;
nowPlaying = "stop";
_root.createEmptyMovieClip("mc1", _root.getNextHighestDepth());
gameSong = new Sound(mc1);
soundVolume = 100;
_root.createEmptyMovieClip("soundFXHolder", _root.getNextHighestDepth());
soundFX = new Sound(_root.soundFXHolder);
_root.gotoAndStop("menu");
Frame 9
stop();
startSong("gettinItDone");
Frame 14
stop();
Frame 20
stop();
delete this.onEnterFrame;
Frame 28
function resetMine(target) {
if (powerShot <= 0) {
target.mineTimer.gotoAndStop("reset");
if (ringPulse < 1) {
ringPulse = ringNum;
var _local3 = _root.effects.attachMovie("shockwaveAnim_mc", "shockwave" + _root.effects.getNextHighestDepth(), _root.effects.getNextHighestDepth());
_local3._x = target._x;
_local3._y = target._y;
_local3._xscale = (_local3._yscale = target._xscale);
mineArray.push(_local3);
createSparks(target);
targetMine = target;
}
hitCount++;
startSound("shoot", 3);
} else {
ringPulse = ringNum;
target.mineTimer.stop();
_root.startSound("powerShot", 1);
var _local3 = _root.effects.attachMovie("mineBoom_mc", "boom" + _root.effects.getNextHighestDepth(), _root.effects.getNextHighestDepth());
_local3._x = target._x;
_local3._y = target._y;
_local3._xscale = (_local3._yscale = target._xscale);
_local3.killTarget = target;
mineArray.push(_local3);
powerShot--;
mineCount--;
screen.mineBox.text = "mines: " + mineCount;
}
}
function removeObject(target) {
removeArrayVal(mineArray, target);
removeMovieClip(target);
}
function removePowerUp(pUp) {
removeArrayVal(mineArray, pUp);
mineDepthArray[pUp.getDepth()] = false;
removeMovieClip(pUp);
}
function removeArrayVal(targetArray, startVal) {
var _local1 = 0;
while (_local1 <= (targetArray.length - 1)) {
if (targetArray[_local1] == startVal) {
valFound = true;
break;
}
valFound = false;
_local1++;
}
while (_local1 < (targetArray.length - 1)) {
targetArray[_local1] = targetArray[_local1 + 1];
_local1++;
}
if (valFound) {
targetArray.pop();
}
}
function startBeep(beepMine) {
if (beepCounter <= 0) {
beepCounter = 2;
startSound("beep", 1);
}
var _local1 = ringArray[0];
var _local3 = _local1._x - beepMine._x;
var _local2 = _local1._y - beepMine._y;
var _local4 = _local1.attachMovie("arrow_mc", "arrow" + _local1.getNextHighestDepth(), _local1.getNextHighestDepth());
_local4._rotation = (Math.atan2(_local2, _local3) * RAD_DEG) - 90;
_local4._yscale = Math.sqrt((_local3 * _local3) + (_local2 * _local2));
}
function createMine() {
var _local3 = selectDepth();
m = _root.mineHolder.attachMovie("mine_mc", "mine" + _local3, _local3);
m._x = Math.random() * Stage.width;
m._y = Math.random() * Stage.height;
m._xscale = (m._yscale = (_local3 / 8) + 5);
m.spikeSpeed = (Math.random() * maxSpikeSpeed) - (maxSpikeSpeed / 2);
m.hitArea = m.hit;
m.hit._visible = false;
m._alpha = 0;
m.stop();
m.isMine = true;
mineArray.push(m);
m.onPress = function () {
if (!_root.isPaused) {
_root.resetMine(this);
}
};
m.onEnterFrame = function () {
this._alpha = this._alpha + 3;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
mineCount++;
screen.mineBox.text = "mines: " + mineCount;
if (!isPaused) {
startSound("appear", 1);
}
}
function createPowerUp() {
var _local3 = selectDepth();
var _local4 = Math.ceil(Math.random() * pUpNum);
m = _root.mineHolder.attachMovie("pUp" + _local4, "pUp" + _local3, _local3);
m._x = Math.random() * Stage.width;
m._y = Math.random() * Stage.height;
m._xscale = (m._yscale = (_local3 / 8) + 5);
m.spikeSpeed = (Math.random() * maxSpikeSpeed) - (maxSpikeSpeed / 2);
m._alpha = 0;
m.isMine = false;
mineArray.push(m);
m.onEnterFrame = function () {
this._alpha = this._alpha + 5;
if (this._alpha >= 100) {
this._alpha = 100;
delete this.onEnterFrame;
}
};
m.onPress = function () {
this.gotoAndPlay("leave");
delete this.onPress;
};
}
function stopGame() {
delete _root.onEnterFrame;
delete keyListener.onKeyDown;
clearInterval(runTimersInterval);
_root._quality = "HIGH";
}
function selectDepth() {
var _local2 = new Array();
var _local1 = mineDepthArray.length - 1;
while (_local1 >= 0) {
if (mineDepthArray[_local1] != true) {
_local2.push(_local1);
}
_local1--;
}
var _local3 = _local2[Math.floor(Math.random() * _local2.length)];
mineDepthArray[_local3] = true;
return(_local3);
}
function createSparks(sparkTarget) {
if (detail) {
var _local3 = _root.behind.createEmptyMovieClip("sparkHolder" + _root.behind.getNextHighestDepth(), _root.behind.getNextHighestDepth());
_local3._x = sparkTarget._x;
_local3._y = sparkTarget._y;
_local3._xscale = (_local3._yscale = sparkTarget._xscale);
_local3.life = 30;
_local3.onEnterFrame = function () {
this.life--;
if (this.life <= 0) {
_root.removeObject(this);
}
};
mineArray.push(_local3);
sparks = (Math.random() * sparkNum) + 5;
while (sparks > 0) {
sparks--;
var _local4 = _local3.attachMovie("sparkAnim_mc", "spark" + _local3.getNextHighestDepth(), _local3.getNextHighestDepth());
_local4._rotation = Math.random() * 360;
_local4.gotoAndPlay(Math.ceil(Math.random() * 6));
}
}
}
function runTimers() {
if ((!isPaused) && (timeFreeze <= 0)) {
mineTimer--;
if (mineTimer < 0) {
mineTimer = Math.random() * mineTimerReset;
createMine();
}
pUpTimer--;
if (pUpTimer < 0) {
pUpTimer = Math.random() * pUpTimerReset;
createPowerUp();
}
}
}
stop();
RAD_DEG = 57.2957795130823;
DEG_RAD = (Math.PI/180);
xCenter = 275;
yCenter = 150;
valFound = false;
sparkNum = 5;
beepCounter = 0;
gameTime = 0;
targetMine = null;
isPaused = true;
_root._quality = qualityLevel;
bonusPoints = 0;
_root.attachMovie("activatedMessage_mc", "message" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
missCount = 0;
hitCount = 0;
startSong("stop");
sensitivity = 0.006;
xMin = 0;
xMax = 550;
yMin = 0;
yMax = 300;
bgSpeed = 3;
bg2Speed = 30;
xMaxBG = xMax + xCenter;
xMinBG = xMin - xCenter;
yMaxBG = yMax + yCenter;
yMinBG = yMin - yCenter;
bg._visible = detail;
ringNum = 5;
ringArray = new Array();
ringFollowDist = 1;
ringFollowRate = 0.5;
ringMod = 2.1;
ringPulse = 0;
var t = 0;
while (t < ringNum) {
m = _root.rings.attachMovie("ring_mc", "ring" + _root.rings.getNextHighestDepth(), _root.rings.getNextHighestDepth());
m._x = xCenter;
m._y = yCenter;
if (t == 0) {
m._xscale = (m._yscale = 20);
} else {
m._xscale = (m._yscale = ringArray[t - 1]._xscale * ringMod);
}
ringArray.push(m);
t++;
}
pUpNum = 5;
pUpTimerReset = 50;
pUpTimer = pUpTimerReset;
timeFreeze = 0;
powerShot = 0;
electricCounter = 0;
electricCounterReset = 10;
secretLevel = 11;
mineCount = 0;
mineDepthArray = new Array(100);
maxDepth = 100;
mineArray = new Array();
startMines = 3;
maxSpikeSpeed = 10;
mineTimerReset = 45;
mineTimer = Math.random() * mineTimerReset;
var i = startMines;
while (i > 0) {
createMine();
i--;
}
maxLight = 80;
changeLight = 15;
curLight = Math.random() * maxLight;
runTimersInterval = setInterval(runTimers, 375);
onEnterFrame = function () {
if (!isPaused) {
beepCounter--;
if (mineCount >= secretLevel) {
secretLevel = 999999 /* 0x0F423F */;
pUpNum++;
}
if (Key.isDown(9)) {
_root.gotoAndStop("tab");
}
gameTime = gameTime + 0.04;
var _local10 = Math.round(gameTime * 10) / 10;
screen.timeBox.text = ("time: " + _local10) + " seconds";
curLight = curLight + ((Math.random() * changeLight) - (changeLight / 2));
if (curLight < 0) {
curLight = 0;
} else if (curLight > maxLight) {
curLight = maxLight;
}
mouseLight._x = _xmouse;
mouseLight._y = _ymouse;
mouseLight._alpha = 100 - curLight;
if (timeFreeze <= 0) {
xMove = (_xmouse - xCenter) * sensitivity;
yMove = (_ymouse - yCenter) * sensitivity;
mineShade = curLight + (100 - maxLight);
var _local5 = mineArray.length - 1;
while (_local5 >= 0) {
var _local2 = mineArray[_local5];
_local2.mineTimer.nextFrame();
_local2._x = _local2._x - (xMove * _local2._xscale);
_local2._y = _local2._y - (yMove * _local2._yscale);
_local2.spikes._rotation = _local2.spikes._rotation + _local2.spikeSpeed;
xMaxTemp = xMax + (_local2._width / 2);
xMinTemp = xMin - (_local2._width / 2);
yMaxTemp = yMax + (_local2._height / 2);
yMinTemp = yMin - (_local2._height / 2);
if (_local2._x <= xMinTemp) {
_local2._x = xMaxTemp;
} else if (_local2._x > xMaxTemp) {
_local2._x = xMinTemp;
}
if (_local2._y <= yMinTemp) {
_local2._y = yMaxTemp;
} else if (_local2._y > yMaxTemp) {
_local2._y = yMinTemp;
}
if (detail) {
var _local9 = _xmouse - _local2._x;
var _local8 = _ymouse - _local2._y;
var _local6 = 200 - Math.ceil(Math.abs(Math.sqrt((_local9 * _local9) + (_local8 * _local8))));
var _local7 = Math.atan2(_local8, _local9) * RAD_DEG;
_local2.shade._rotation = _local7;
_local2.shade.gotoAndStop(_local6);
_local2.shade._alpha = mineShade;
} else {
_local2.shade.gotoAndStop("off");
}
_local5--;
}
if (detail) {
bg._x = bg._x - (xMove * bgSpeed);
bg._y = bg._y - (yMove * bgSpeed);
if (bg._x <= xMin) {
bg._x = bg._x + xMax;
} else if (bg._x > xMax) {
bg._x = bg._x - xMax;
}
if (bg._y <= yMin) {
bg._y = bg._y + yMax;
} else if (bg._y > yMax) {
bg._y = bg._y - yMax;
}
}
}
tempFollowDist = ringFollowDist;
var _local4 = 0;
while (_local4 < ringNum) {
var _local3 = ringArray[_local4];
var _local9 = (_local3._x - _xmouse) * tempFollowDist;
var _local8 = (_local3._y - _ymouse) * tempFollowDist;
_local3._x = _local3._x - (_local9 * ringFollowRate);
_local3._y = _local3._y - (_local8 * ringFollowRate);
tempFollowDist = tempFollowDist / ringMod;
_local4++;
}
if (ringPulse > 0) {
ringArray[ringPulse - 1].play();
ringPulse = ringPulse - 1;
}
if (powerShot > 0) {
electricCounter--;
if (electricCounter < 0) {
electricCounter = Math.random() * electricCounterReset;
startSound("electric", 3);
}
}
}
};
bg_mc.onPress = function () {
if (!_root.isPaused) {
if (ringPulse < 1) {
ringPulse = ringNum;
targetMine = "miss";
missCount++;
if (powerShot > 0) {
_root.startSound("powerShot", 1);
powerShot--;
} else {
_root.startSound("shoot", 3);
}
}
}
};
bg_mc.useHandCursor = false;
keyListener.onKeyDown = function () {
if ((Key.getCode() == 32) || (Key.getCode() == 80)) {
if (!isPaused) {
isPaused = true;
screen.gotoAndStop("off");
} else {
isPaused = false;
screen.gotoAndStop("on");
}
}
};
Frame 33
stopGame();
gotoAndPlay ("game");
Frame 38
stop();
stopGame();
Frame 46
stop();
_root.scoretable.filename = "scores/mines2.sco";
_root.scoretable.scoresize = 21;
_root.scoretable.action = "VIEW";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = playerName;
_root.scoretable.winscore = gScore;
_root.scoretable.loadVariables("http://www.jacobgrahn.com/scores.php", "GET");
startSong("gettinItDone");
Frame 55
stop();
_root.scoretable.filename = "scores/mines2.sco";
_root.scoretable.scoresize = 21;
_root.scoretable.action = "INSERT";
_root.scoretable.viewtype = "FLASH";
_root.scoretable.winname = playerName;
_root.scoretable.winscore = gScore;
_root.scoretable.loadVariables("http://www.jacobgrahn.com/scores.php", "GET");
startSong("gettinItDone");
Frame 69
stopGame();
stop();
Symbol 7 Button
on (release) {
getURL ("http://www.macromedia.com/go/getflash/", "_blank");
}
Symbol 23 MovieClip Frame 1
_root.createSparks(this._parent);
Symbol 23 MovieClip Frame 62
stop();
Symbol 23 MovieClip Frame 65
stop();
Symbol 23 MovieClip Frame 357
stop();
Symbol 23 MovieClip Frame 362
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 381
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 396
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 408
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 418
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 426
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 429
stop();
Symbol 23 MovieClip Frame 432
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 436
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 438
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 440
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 441
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 442
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 443
_root.startBeep(this._parent);
Symbol 23 MovieClip Frame 444
_root.gotoAndStop("dead");
Symbol 42 MovieClip Frame 1
shake = 10;
this.onEnterFrame = function () {
r1._x = (Math.random() * shake) - (shake / 2);
r1._y = (Math.random() * shake) - (shake / 2);
r1.gotoAndPlay(Math.ceil(Math.random() * 2));
r1._alpha = Math.random() * 50;
r2._x = (Math.random() * shake) - (shake / 2);
r2._y = (Math.random() * shake) - (shake / 2);
r2.gotoAndPlay(Math.ceil(Math.random() * 2));
r2._alpha = Math.random() * 50;
};
Symbol 45 MovieClip [ring_mc] Frame 1
stop();
Symbol 45 MovieClip [ring_mc] Frame 2
if (_root.targetMine != "miss") {
xDist = this._x - _root.targetMine._x;
yDist = this._y - _root.targetMine._y;
ball._x = ball._x - ((xDist / (_root.ringPulse + 1)) * (100 / this._xscale));
ball._y = ball._y - ((yDist / (_root.ringPulse + 1)) * (100 / this._yscale));
}
Symbol 45 MovieClip [ring_mc] Frame 3
gotoAndPlay ("off");
Symbol 45 MovieClip [ring_mc] Frame 5
stop();
Symbol 45 MovieClip [ring_mc] Frame 6
if (_root.targetMine != "miss") {
xDist = this._x - _root.targetMine._x;
yDist = this._y - _root.targetMine._y;
ball._x = ball._x - ((xDist / (_root.ringPulse + 1)) * (100 / this._xscale));
ball._y = ball._y - ((yDist / (_root.ringPulse + 1)) * (100 / this._yscale));
}
Symbol 45 MovieClip [ring_mc] Frame 7
if (_root.powerShot <= 0) {
gotoAndPlay ("off");
} else {
gotoAndPlay ("power");
}
Symbol 48 MovieClip [shockwaveAnim_mc] Frame 7
_root.startSound("mineHit", 4);
Symbol 48 MovieClip [shockwaveAnim_mc] Frame 23
_root.removeObject(this);
Symbol 51 MovieClip [sparkAnim_mc] Frame 27
removeMovieClip(this);
Symbol 54 MovieClip [resetMessage_mc] Frame 42
removeMovieClip(this);
Symbol 57 MovieClip [powerShotMessage_mc] Frame 42
removeMovieClip(this);
Symbol 64 MovieClip [pUp3] Frame 1
stop();
Symbol 64 MovieClip [pUp3] Frame 2
spikes.onEnterFrame = function () {
this._rotation = this._rotation + 9;
this._alpha = this._alpha - 5;
this._xscale = (this._yscale = this._xscale * 1.05);
};
_root.createSparks(this);
_root.startSound("powerUpSound", 1);
Symbol 64 MovieClip [pUp3] Frame 22
_root.attachMovie("powerShotMessage_mc", "screen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.powerShot = _root.powerShot + 1;
var t = 0;
while (t < _root.ringNum) {
_root.ringArray[t].gotoAndStop("power");
t++;
}
_root.startSound("electric", 3);
_root.startSound("electric", 3);
_root.removePowerUp(this);
Symbol 65 MovieClip [mineBoom_mc] Frame 7
_root.removePowerUp(killTarget);
_root.startSound("boomMine", 1);
_root.createSparks(this);
Symbol 65 MovieClip [mineBoom_mc] Frame 16
_root.createSparks(this);
Symbol 65 MovieClip [mineBoom_mc] Frame 27
_root.createSparks(this);
Symbol 65 MovieClip [mineBoom_mc] Frame 67
_root.removeObject(this);
Symbol 71 MovieClip [activatedMessage_mc] Frame 16
_root.startSound("mineHit1", 1);
_root.startSound("mineHit1", 1);
Symbol 71 MovieClip [activatedMessage_mc] Frame 46
_root.startSound("mineHit1", 1);
Symbol 71 MovieClip [activatedMessage_mc] Frame 76
_root.startSound("mineHit1", 1);
Symbol 71 MovieClip [activatedMessage_mc] Frame 106
_root.isPaused = false;
_root.startSong("mines");
_root.startSound("startUp", 1);
counter = 0.7;
this.onEnterFrame = function () {
this._alpha = Math.random() * 100;
if (Math.random() > counter) {
_root.startSound("electric", 3);
}
counter = counter + 0.004;
};
Symbol 71 MovieClip [activatedMessage_mc] Frame 189
removeMovieClip(this);
Symbol 73 MovieClip [arrow_mc] Frame 2
this._alpha = 50;
Symbol 73 MovieClip [arrow_mc] Frame 3
removeMovieClip(this);
Symbol 76 MovieClip [mineFreezeMessage_mc] Frame 42
removeMovieClip(this);
Symbol 79 MovieClip [plusPointsMessage_mc] Frame 41
removeMovieClip(this);
Symbol 83 MovieClip [pUp6] Frame 1
_root.createSparks(this);
_root.pUpNum--;
Symbol 83 MovieClip [pUp6] Frame 11
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 21
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 31
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 41
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 51
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 61
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 71
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 81
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 91
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 101
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 111
_root.createSparks(this);
Symbol 83 MovieClip [pUp6] Frame 121
_root.createSparks(this);
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
};
Symbol 83 MovieClip [pUp6] Frame 142
_root.removePowerUp(this);
Symbol 83 MovieClip [pUp6] Frame 143
delete this.onEnterFrame;
spikes.onEnterFrame = function () {
this._rotation = this._rotation + 9;
this._alpha = this._alpha - 5;
this._xscale = (this._yscale = this._xscale * 1.05);
};
_root.createSparks(this);
_root.startSound("powerUpSound", 1);
Symbol 83 MovieClip [pUp6] Frame 163
_root.attachMovie("reliefMessage_mc", "screen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var i = (_root.mineArray.length - 1);
while (i >= 0) {
_root.mineArray[i].mineTimer.gotoAndStop("reset");
if ((Math.random() > 0.45) && (_root.mineArray[i].isMine == true)) {
_root.removePowerUp(_root.mineArray[i]);
_root.mineCount--;
_root.screen.mineBox.text = "mines: " + _root.mineCount;
}
i--;
}
_root.startSound("relief", 1);
_root.removePowerUp(this);
Symbol 87 MovieClip [pUp4] Frame 1
stop();
Symbol 87 MovieClip [pUp4] Frame 2
spikes.onEnterFrame = function () {
this._rotation = this._rotation + 9;
this._alpha = this._alpha - 5;
this._xscale = (this._yscale = this._xscale * 1.05);
};
_root.createSparks(this);
_root.startSound("powerUpSound", 1);
Symbol 87 MovieClip [pUp4] Frame 22
_root.attachMovie("plusPointsMessage_mc", "screen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bonusPoints = _root.bonusPoints + 1000;
_root.startSound("pointsUp", 1);
_root.removePowerUp(this);
Symbol 89 MovieClip [pUp5] Frame 790
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
};
Symbol 89 MovieClip [pUp5] Frame 811
_root.removePowerUp(this);
Symbol 89 MovieClip [pUp5] Frame 812
delete this.onEnterFrame;
this._alpha = 100;
spikes.onEnterFrame = function () {
this._rotation = this._rotation + 9;
this._alpha = this._alpha - 5;
this._xscale = (this._yscale = this._xscale * 1.05);
};
_root.createSparks(this);
_root.startSound("powerUpSound", 1);
Symbol 89 MovieClip [pUp5] Frame 832
_root.attachMovie("minusPointsMessage_mc", "screen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.bonusPoints = _root.bonusPoints - 1000;
_root.startSound("pointsDown", 1);
_root.removePowerUp(this);
Symbol 92 MovieClip [minusPointsMessage_mc] Frame 42
removeMovieClip(this);
Symbol 95 MovieClip [reliefMessage_mc] Frame 42
removeMovieClip(this);
Symbol 99 MovieClip [pUp1] Frame 1
stop();
Symbol 99 MovieClip [pUp1] Frame 2
spikes.onEnterFrame = function () {
this._rotation = this._rotation + 9;
this._alpha = this._alpha - 5;
this._xscale = (this._yscale = this._xscale * 1.05);
};
_root.createSparks(this);
_root.startSound("powerUpSound", 1);
Symbol 99 MovieClip [pUp1] Frame 22
stop();
_root.timeFreeze = _root.timeFreeze + 1;
counter = 200;
_root.attachMovie("mineFreezeMessage_mc", "screen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
_root.startSound("freezeStart", 1);
this.onEnterFrame = function () {
if (!_root.isPaused) {
counter--;
if (counter < 0) {
_root.timeFreeze = _root.timeFreeze - 1;
if (_root.timeFreeze <= 0) {
_root.startSound("freezeStop", 1);
}
_root.removePowerUp(this);
}
}
};
Symbol 103 MovieClip [pUp2] Frame 1
stop();
Symbol 103 MovieClip [pUp2] Frame 2
spikes.onEnterFrame = function () {
this._rotation = this._rotation + 9;
this._alpha = this._alpha - 5;
this._xscale = (this._yscale = this._xscale * 1.05);
};
_root.createSparks(this);
_root.startSound("powerUpSound", 1);
Symbol 103 MovieClip [pUp2] Frame 22
_root.attachMovie("resetMessage_mc", "screen" + _root.getNextHighestDepth(), _root.getNextHighestDepth());
var i = (_root.mineArray.length - 1);
while (i >= 0) {
_root.mineArray[i].mineTimer.gotoAndStop("reset");
i--;
}
_root.startSound("resetSound", 1);
_root.removePowerUp(this);
Symbol 137 MovieClip Frame 1
stop();
this.onEnterFrame = function () {
if (Math.random() > 0.98) {
play();
delete this.onEnterFrame;
}
};
Symbol 141 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 143 Button
on (release) {
_root.gotoAndStop("viewScores");
}
Symbol 145 Button
on (release) {
_root.gotoAndStop("options");
}
Symbol 147 Button
on (release) {
_root.gotoAndStop("instructions");
}
Symbol 149 MovieClip Frame 1
this.onEnterFrame = function () {
clouds._alpha = (Math.random() * 10) + 40;
};
Symbol 149 MovieClip Frame 37
stop();
Symbol 156 MovieClip Frame 1
this.onEnterFrame = function () {
gotoAndStop(_root.qualityLevel);
};
Symbol 158 Button
on (release) {
if (_root.qualityLevel == "LOW") {
_root.qualityLevel = "MEDIUM";
} else if (_root.qualityLevel == "MEDIUM") {
_root.qualityLevel = "HIGH";
} else {
_root.qualityLevel = "LOW";
}
_quality = _root.qualityLevel;
}
Symbol 160 MovieClip Frame 1
this.onEnterFrame = function () {
if (_root.detail) {
gotoAndStop ("high");
} else {
gotoAndStop ("low");
}
};
Symbol 161 Button
on (release) {
_root.detail = !_root.detail;
_root.bg._visible = _root.detail;
}
Symbol 166 MovieClip Frame 1
function moveSlider() {
slider._x = _xmouse;
if (slider._x > 85) {
slider._x = 85;
}
if (slider._x < 5) {
slider._x = 5;
}
_root.soundVolume = (slider._x - 5) * 1.25;
_root.soundFX.setVolume(_root.soundVolume);
}
stop();
dud._visible = false;
this.hitArea = dud;
onDragOver = (onRollOver = function () {
gotoAndStop ("on");
});
onRollOut = function () {
gotoAndStop ("off");
};
onDragOut = function () {
onMouseUp = function () {
gotoAndStop ("off");
delete slider.onEnterFrame;
delete onMouseUp;
};
};
onPress = function () {
moveSlider();
slider.onEnterFrame = function () {
moveSlider();
};
onMouseUp = function () {
delete slider.onEnterFrame;
};
};
Symbol 166 MovieClip Frame 2
stop();
slider._x = (_root.soundVolume * 0.8) + 5;
Symbol 169 MovieClip Frame 1
function moveSlider() {
slider._x = _xmouse;
if (slider._x > 85) {
slider._x = 85;
}
if (slider._x < 5) {
slider._x = 5;
}
_root.musicVolume = (slider._x - 5) * 1.25;
}
stop();
dud._visible = false;
this.hitArea = dud;
onDragOver = (onRollOver = function () {
gotoAndStop ("on");
});
onRollOut = function () {
gotoAndStop ("off");
};
onDragOut = function () {
onMouseUp = function () {
gotoAndStop ("off");
delete slider.onEnterFrame;
delete onMouseUp;
};
};
onPress = function () {
moveSlider();
slider.onEnterFrame = function () {
moveSlider();
};
onMouseUp = function () {
delete slider.onEnterFrame;
};
};
Symbol 169 MovieClip Frame 2
stop();
slider._x = (_root.musicVolume * 0.8) + 5;
Symbol 173 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 183 MovieClip Frame 1
mine.mineTimer.gotoAndStop("reset");
mine.shade.stop();
p1.shade.stop();
p2.shade.stop();
p3.shade.stop();
p4.shade.stop();
p5.shade.stop();
Symbol 195 Button
on (release) {
_root.gotoAndStop("reset");
}
Symbol 197 Button
on (release) {
_root.gotoAndStop("dead");
}
Symbol 199 Button
on (release) {
_root.isPaused = false;
this._parent.gotoAndStop("on");
}
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 205 Button
on (release) {
_root.gotoAndStop("submitScore");
}
Symbol 207 Button
on (release) {
_root.gotoAndStop("game");
}
Symbol 215 MovieClip Frame 1
_root.startSound("boom", 1);
_root.startSong("stop");
Symbol 215 MovieClip Frame 11
var tempGameTime = (Math.round(_root.gameTime * 10) / 10);
timeBox.text = ("you survived for: " + tempGameTime) + " seconds.";
var tempAccuracy = (Math.round((_root.hitCount / (_root.hitCount + _root.missCount)) * 1000) / 10);
if (isNaN(tempAccuracy)) {
tempAccuracy = 0;
}
accuracyBox.text = ("accuracy: " + tempAccuracy) + "%";
bonusBox.text = "bonus points: " + _root.bonusPoints;
var score = (Math.round(_root.gameTime * tempAccuracy) + _root.bonusPoints);
scoreBox.text = "total score: " + score;
_root.gScore = score;
Symbol 215 MovieClip Frame 99
stop();