Frame 1
function frameLimiter() {
newT = getTimer();
while (Math.abs(newT - oldT) < maxF) {
newT = getTimer();
}
oldT = getTimer();
}
oldT = getTimer();
newT = getTimer();
maxF = 30;
stop();
onEnterFrame = function () {
frameLimiter();
};
Frame 2
onEnterFrame = function () {
frameLimiter();
};
Instance of Symbol 61 MovieClip in Frame 2
onClipEvent (enterFrame) {
this.onPress = function () {
getURL ("http://www.armorgames.com", "_blank");
};
}
Frame 3
stop();
stopAllSounds();
globals.soundMusic();
onEnterFrame = function () {
frameLimiter();
};
Instance of Symbol 67 MovieClip in Frame 3
onClipEvent (enterFrame) {
_rotation = (_rotation - 0.07);
if (_rotation < 0) {
_rotation = (_rotation + 360);
}
}
Frame 4
function hasObject() {
if ((hasTnt || (hasShovel)) || (hasBattery)) {
return(true);
}
return(false);
}
function reload() {
_root.alive = true;
_root.stagesMc.gotoAndStop(1);
_root.HEROMc._y = 320;
_root.HEROMc._x = 140;
if (hasb1 || (!b1done)) {
batt1 = false;
hasBattery = false;
hasb1 = false;
dot01x = undefined;
dot01y = undefined;
dot02x = undefined;
dot02y = undefined;
dot03x = undefined;
dot03y = undefined;
dot04x = undefined;
dot04y = undefined;
cholefilled = false;
bholefilled = false;
levelBoxtree = false;
boxtree = false;
boxOnSecond = false;
crateOnSecond = false;
}
if (hasb2) {
hasBattery = false;
hasb2 = false;
batt2 = true;
levelWall = false;
}
if (hasb3) {
hasBattery = false;
hasb3 = false;
batt3 = false;
batt3Taken = false;
levelWall = false;
}
if (hasTnt || (hasShovel)) {
jackHammerTaken = false;
hasTnt = false;
hasApple = true;
hasShovel = false;
tntCollected = false;
tntPlaced = false;
}
}
stop();
depth = 0;
upDown = false;
hasBattery = false;
hasTnt = false;
hasShovel = false;
hasb1 = false;
hasb2 = false;
hasb3 = false;
b1done = false;
hasDisk = false;
hasApple = false;
jackHammerTaken = false;
computer = false;
noBatteries = 0;
finalBoss = false;
world = false;
zoomIn = false;
zoomOut = false;
alive = true;
attached = false;
crateAttached = false;
boxAttached = false;
pauseGame = false;
vcamscale = 100;
newscale = 100;
batt1 = false;
batt2 = true;
batt3 = false;
batt3Taken = false;
tntCollected = false;
tntPlaced = false;
wallDestroyed = false;
dot01x = undefined;
dot01y = undefined;
dot02x = undefined;
dot02y = undefined;
dot03x = undefined;
dot03y = undefined;
dot04x = undefined;
dot04y = undefined;
cholefilled = false;
bholefilled = false;
boxtree = false;
levelBoxtree = false;
levelWall = false;
_root.boxOnSecond = false;
_root.crateOnSecond = false;
onEnterFrame = function () {
frameLimiter();
if (!Key.isDown(38)) {
upDown = false;
}
if (cholefilled || (bholefilled)) {
levelBoxtree = true;
}
if ((!_root.pauseGame) && (alive)) {
if (((!zoomIn) && (!zoomOut)) && (!world)) {
_root.HEROMc.update();
}
if ((!zoomIn) && (world)) {
_root.worldMc.update();
}
_root.stagesAs.main();
}
if (!_root.alive) {
_root.HEROMc.dead();
_root.HEROMc.animFrame = "death";
}
HEROMc.updateHERO();
worldMc.HEROMc.updateHERO();
};
Instance of Symbol 387 MovieClip "stagesAs" in Frame 4
onClipEvent (load) {
function outmain() {
if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < 10)) && (_root.worldMc.globeMc._rotation > -15)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(1);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 300;
} else if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < -20)) && (_root.worldMc.globeMc._rotation > -40)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(2);
_root.zoomIn = true;
_root.newscale = 50;
if (_root.worldMc.globeMc._rotation > -30) {
_root.HEROMc._x = 60;
} else {
_root.HEROMc._x = 580;
}
} else if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < -53)) && (_root.worldMc.globeMc._rotation > -83)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(3);
_root.zoomIn = true;
_root.newscale = 50;
if (_root.worldMc.globeMc._rotation > -68) {
_root.HEROMc._x = 60;
} else {
_root.HEROMc._x = 580;
}
} else if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < -95)) && (_root.worldMc.globeMc._rotation > -115)) {
_root.stagesMc.gotoAndStop(4);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 300;
} else if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < -130)) && (_root.worldMc.globeMc._rotation > -150)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(5);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 200;
} else if ((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && ((_root.worldMc.globeMc._rotation < -164) || (_root.worldMc.globeMc._rotation > 170))) {
_root.stagesMc.gotoAndStop(6);
_root.zoomIn = true;
_root.newscale = 50;
if (_root.worldMc.globeMc._rotation < 0) {
_root.HEROMc._x = 60;
} else {
_root.HEROMc._x = 580;
}
} else if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < 155)) && (_root.worldMc.globeMc._rotation > 130)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(12);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 100;
_root.HEROMc._y = 350;
} else if (((((!_root.upDown) && (Key.isDown(38))) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < 120)) && (_root.worldMc.globeMc._rotation > 90)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(13);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 372;
_root.HEROMc._y = 260;
_root.upDown = true;
} else if (((((!_root.upDown) && Key.isDown(38)) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < 84)) && (_root.worldMc.globeMc._rotation > 64)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(9);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 60;
if (_root.worldMc.globeMc._rotation > 74) {
_root.HEROMc._x = 60;
} else {
_root.HEROMc._x = 580;
}
} else if (((((!_root.upDown) && Key.isDown(38)) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < 63)) && (_root.worldMc.globeMc._rotation > 42)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(10);
_root.zoomIn = true;
_root.newscale = 50;
if (_root.worldMc.globeMc._rotation > 50) {
_root.HEROMc._x = 60;
} else {
_root.HEROMc._x = 580;
}
} else if (((((!_root.upDown) && Key.isDown(38)) && (_root.world == true)) && (_root.worldMc.globeMc._rotation < 34)) && (_root.worldMc.globeMc._rotation > 15)) {
_root.upDown = true;
_root.stagesMc.gotoAndStop(11);
_root.zoomIn = true;
_root.newscale = 50;
_root.HEROMc._x = 300;
} else if ((_root.stagesMc._visible == false) && (_root.zoomIn != true)) {
_root.stagesMc.gotoAndStop(15);
}
}
function inmain() {
_root.stagesMc.level.main();
}
function updateVcam() {
if (_root.zoomIn) {
_root.vcamscale = _root.vcamscale - ((_root.vcamscale - _root.newscale) / 4);
}
if (_root.zoomOut) {
_root.vcamscale = _root.vcamscale + ((_root.newscale - _root.vcamscale) / 8);
}
if ((_root.vcamscale <= (_root.newscale + 0.1)) && (_root.zoomIn)) {
_root.world = false;
_root.vcamscale = 100;
_root.zoomIn = false;
}
if ((_root.vcamscale >= (_root.newscale - 0.1)) && (_root.zoomOut)) {
_root.world = true;
_root.vcamscale = 100;
_root.zoomOut = false;
}
if (!_root.finalBoss) {
_root.vcamMc._y = 180 - (100 - _root.vcamscale);
_root.black._alpha = 100 - ((_root.vcamscale - 50) * 2);
_root.vcamMc._xscale = _root.vcamscale;
_root.vcamMc._yscale = _root.vcamscale;
}
_root.vcamMc.camControl();
}
function main() {
updateVcam();
if (_root.world && (_root.alive)) {
outmain();
_root.worldMc._visible = true;
_root.stagesMc._visible = false;
_root.HEROMc._visible = false;
} else {
inmain();
_root.worldMc._visible = false;
_root.stagesMc._visible = true;
_root.HEROMc._visible = true;
}
}
}
Instance of Symbol 190 MovieClip "HEROMc" in Frame 4
onClipEvent (load) {
function update() {
if (Key.isDown(37)) {
if (!_root.stagesMc.ground.hitTest(_x - 10, _y - 10, true)) {
_x = (_x - 4);
}
} else if (Key.isDown(39)) {
if (!_root.stagesMc.ground.hitTest(_x + 10, _y - 10, true)) {
_x = (_x + 4);
}
}
ySpd = ySpd + gravity;
_y = (_y + ySpd);
while (_root.stagesMc.ground.hitTest(_x, _y - 3, true)) {
ySpd = 0;
_y = (_y - 1);
}
}
function dead() {
ySpd = ySpd + gravity;
_y = (_y + ySpd);
while (_root.stagesMc.ground.hitTest(_x, _y - 3, true)) {
ySpd = 0;
_y = (_y - 1);
}
}
function die() {
_root.alive = false;
}
gravity = 1;
maxXSpd = 4;
acc = 1;
xSpd = 0;
ySpd = 0;
}
Instance of Symbol 389 MovieClip "collected" in Frame 4
onClipEvent (enterFrame) {
_alpha = (_alpha - 1);
}
onClipEvent (load) {
function showText(s) {
txt.text = s;
_alpha = 100;
}
}
Frame 5
function reload() {
bossHealth = 100;
bossTimer = 100;
alive = true;
bossMc.gotoAndStop("popup");
bossMc._rotation = 45;
front._visible = true;
HEROMc.angle = 180;
}
bossHealth = 100;
alive = true;
bossTimer = 50;
onEnterFrame = function () {
frameLimiter();
if (!_root.finalBoss) {
_root.gotoAndStop("game");
}
_root.black._alpha = _root.black._alpha - 5;
if (_root.black._alpha < 0) {
_root.black._alpha = 0;
}
_root.vcamMc._xscale = 20 + (100 - _root.black._alpha);
_root.vcamMc._yscale = 20 + (100 - _root.black._alpha);
newVcamY = globeMc._y - ((globeMc._y - HEROMc._y) / 3);
_root.vcamMc._y = _root.vcamMc._y + ((newVcamY - _root.vcamMc._y) / 10);
if (alive) {
HEROMc.update();
}
_root.vcamMc.camControl();
};
Instance of Symbol 455 MovieClip "bossMc" in Frame 5
onClipEvent (load) {
_rotation = 45;
_root.front._visible = true;
gotoAndStop ("popup");
isHit = false;
var hitTransform = (new flash.geom.ColorTransform(1, 1, 1, 1, 255, 255, 255, 0));
var normalTransform = (new flash.geom.ColorTransform(1, 1, 1, 1, 0, 0, 0, 0));
}
onClipEvent (enterFrame) {
if (isHit) {
transform.colorTransform = hitTransform;
isHit = false;
} else {
transform.colorTransform = normalTransform;
}
if (_root.bossHealth < 1) {
gotoAndStop ("death");
_root.front._visible = true;
_root.vcamMc._x = _root.vcamMc._x + ((175 - _root.vcamMc._x) / 50);
}
}
Symbol 17 MovieClip [herobullet] Frame 1
xSpd = Math.sin(_rotation / 57.3) * 5;
ySpd = Math.cos(_rotation / 57.3) * 5;
onEnterFrame = function () {
_x = (_x + xSpd);
_y = (_y - ySpd);
if (_root.bossMc.hitTest(_x, _y, true)) {
_root.bossHealth = _root.bossHealth - 3.5;
_root.bossMc.isHit = true;
removeMovieClip(this);
}
if (_root.globeMc.globeMc.hitTest(_x, _y, true)) {
removeMovieClip(this);
}
};
Symbol 19 MovieClip [bullet] Frame 1
xSpd = Math.sin(_rotation / 57.3) * 10;
ySpd = Math.cos(_rotation / 57.3) * 10;
onEnterFrame = function () {
_x = (_x + xSpd);
_y = (_y - ySpd);
if (!_root.vcamMc.vf.hitTest(this)) {
this.removeMovieClip();
}
if (_root.HEROMc.hitTest(_x, _y, true)) {
_root.alive = false;
_root.HEROMc.gotoAndStop("death");
removeMovieClip(this);
}
};
Symbol 26 MovieClip Frame 6
stop();
Symbol 38 MovieClip [splode] Frame 1
_root.globals.soundExplode();
Symbol 38 MovieClip [splode] Frame 18
this.removeMovieClip();
stop();
Symbol 42 MovieClip Frame 1
_visible = false;
Symbol 43 MovieClip Frame 1
onEnterFrame = function () {
pLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100;
if (pLoaded >= 99) {
ol._visible = true;
_xscale = (_xscale * 1.108);
_yscale = (_yscale * 1.06);
if (_xscale > 700) {
_root.gotoAndStop("logos");
}
} else {
_xscale = pLoaded;
_yscale = pLoaded;
}
};
Symbol 45 MovieClip Frame 1
function soundPressed() {
pressed.start();
}
function soundRollover() {
rollover.start();
}
function soundShoot() {
shoot.start();
}
function soundPushcrate() {
if (pushSound < 1) {
pushcrate.start();
pushSound = 1000;
}
}
function soundPickup() {
pickup.start();
}
function soundBoxfall() {
boxfall.start();
}
function soundInteract() {
interact.start();
}
function soundSpikes() {
spikes.start();
}
function soundExplode() {
explode.start();
}
function soundCrusher() {
crusher.start();
}
function soundMusic() {
music.start(0, 10000);
}
_visible = false;
KC_PAUSE = 80;
var pressed = new Sound(this);
pressed.attachSound("click");
var rollover = new Sound(this);
rollover.attachSound("rollover");
var shoot = new Sound(this);
shoot.attachSound("shoot");
var pushcrate = new Sound(this);
pushcrate.attachSound("push");
var pickup = new Sound(this);
pickup.attachSound("pickup");
var boxfall = new Sound(this);
boxfall.attachSound("boxfall");
var interact = new Sound(this);
interact.attachSound("interact");
var spikes = new Sound(this);
spikes.attachSound("spikes");
var explode = new Sound(this);
explode.attachSound("explode");
var crusher = new Sound(this);
crusher.attachSound("crusher");
var music = new Sound(this);
music.attachSound("music");
pushSound = 0;
pushcrate.onSoundComplete = function () {
pushSound = random(50);
};
vol = 100;
var sounds = new Sound(this);
onEnterFrame = function () {
pushSound--;
sounds.setVolume(vol);
};
Symbol 61 MovieClip Frame 126
_root.play();
Symbol 63 MovieClip Frame 1
function updateClouds() {
_rotation = (_rotation + 0.1);
if (_rotation > 360) {
_rotation = (_rotation - 360);
}
}
onEnterFrame = updateClouds;
Symbol 73 Button
on (release) {
_root.globals.soundPressed();
_root.gotoAndStop("game");
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 77 Button
on (release) {
_root.globals.soundPressed();
getURL ("http://www.armorgames.com", "_blank");
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 81 Button
on (release) {
credits._visible = true;
options._visible = false;
_root.globals.soundPressed();
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 85 Button
on (release) {
options._visible = true;
credits._visible = false;
_root.globals.soundPressed();
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 90 MovieClip Frame 1
onRelease = function () {
_root.globals.soundPressed();
_root._quality = "HIGH";
};
stop();
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 93 MovieClip Frame 1
onRelease = function () {
_root.globals.soundPressed();
_root._quality = "MEDIUM";
};
stop();
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 96 MovieClip Frame 1
onRelease = function () {
_root.globals.soundPressed();
_root._quality = "LOW";
};
stop();
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 101 MovieClip Frame 1
vol._xscale = _root.globals.vol;
onRelease = function () {
vol._xscale = ((_xmouse - vol._x) / _width) * 100;
_root.globals.vol = vol._xscale;
_root.globals.soundPressed();
};
Symbol 105 Button
on (release) {
_visible = false;
_root.globals.soundPressed();
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 106 MovieClip Frame 1
_visible = false;
Symbol 109 MovieClip Frame 1
_visible = false;
Symbol 111 Button
on (release) {
_root.globals.soundPressed();
getURL ("http://www.armorgames.com", "_blank");
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 117 Button
on (release) {
_root.globals.soundPressed();
getURL ("http://armorblog.com/", "_blank");
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 120 Button
on (release) {
_root.globals.soundPressed();
getURL ("http://www.armorgames.com", "_blank");
}
on (rollOver) {
_root.globals.soundRollover();
}
Symbol 123 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 1
_visible = false;
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelBoxtree) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 123 MovieClip in Symbol 124 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.levelWall) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Symbol 129 MovieClip Frame 1
onEnterFrame = function () {
if (_root.hasBattery) {
gotoAndStop ("battery");
} else if (_root.hasTnt) {
gotoAndStop ("tnt");
} else if (_root.hasShovel) {
gotoAndStop ("shovel");
} else {
gotoAndStop ("none");
}
};
Symbol 189 MovieClip Frame 1
_root.globals.soundExplode();
Symbol 189 MovieClip Frame 11
stop();
Symbol 190 MovieClip Frame 1
stop();
updateHERO = function () {
if (animFrame == "NULL") {
animFrame = "idle";
if (Key.isDown(37) || (Key.isDown(39))) {
animFrame = "walk";
}
}
if (_root.alive) {
if (Key.isDown(37)) {
_xscale = (-Math.abs(_xscale));
} else if (Key.isDown(39)) {
_xscale = Math.abs(_xscale);
}
}
gotoAndStop(animFrame);
animFrame = "NULL";
};
Symbol 190 MovieClip Frame 8
stop();
Symbol 191 MovieClip Frame 1
function update() {
if (Key.isDown(37)) {
if (!globeMc.stops.hitTest((_x + HEROMc._x) - 5, _y + HEROMc._y, true)) {
globeMc._rotation = globeMc._rotation + 2;
}
} else if (Key.isDown(39)) {
if (!globeMc.stops.hitTest((_x + HEROMc._x) + 5, _y + HEROMc._y, true)) {
globeMc._rotation = globeMc._rotation - 2;
}
}
}
_visible = false;
Symbol 193 MovieClip Frame 1
function spawnCloud(id) {
newCloud = this.attachMovie("cloudPart", "cloudPart" + _root.depth, _root.depth++);
tScale = random(100) + 100;
newCloud._xscale = tScale;
newCloud._yscale = tScale;
newCloud._x = -(tScale / 2);
newCloud._y = random(100) * -1;
if (random(3) == 0) {
newCloud._y = 0;
}
this["cloud" + id] = newCloud;
return(newCloud);
}
function initialise() {
i = 0;
while (i < numClouds) {
newCloud = spawnCloud(i);
newCloud._x = (i * 37) - 100;
if (newCloud._y != 0) {
newCloud._y = random(100) * -1;
}
i++;
}
}
function update() {
i = 0;
while (i < numClouds) {
tCloud = this["cloud" + i];
tCloud._x = tCloud._x + (tCloud._xscale / 200);
if ((tCloud._x - (tCloud._xscale / 2)) > 640) {
removeMovieClip(tCloud);
spawnCloud(i);
}
i++;
}
}
numClouds = 20;
initialise();
onEnterFrame = update;
Symbol 201 MovieClip Frame 1
stop();
onEnterFrame = function () {
gotoAndStop(_root.noBatteries + 1);
if (Key.isDown(38) && (_root.hasBattery)) {
if (this.hitTest(_root.HEROMc)) {
_root.globals.soundInteract();
_root.noBatteries++;
_root.hasBattery = false;
if (_root.hasb1) {
_root.hasb1 = false;
_root.b1done = true;
}
if (_root.hasb2) {
_root.hasb2 = false;
}
if (_root.hasb3) {
_root.hasb3 = false;
}
}
}
};
Symbol 201 MovieClip Frame 4
Symbol 207 MovieClip Frame 1
_visible = false;
Symbol 217 MovieClip Frame 1
stop();
onEnterFrame = function () {
if ((this.hitTest(_root.HEROMc) && (Key.isDown(38))) && (!_root.upDown)) {
_root.globals.soundInteract();
_root.upDown = true;
_parent.battText.showText();
}
gotoAndStop(_root.noBatteries + 1);
};
Symbol 217 MovieClip Frame 4
onEnterFrame = function () {
if (hit.hitTest(_root.HEROMc) && (Key.isDown(38))) {
_parent.keypad._visible = true;
}
if (_root.finalBoss) {
_root.black._alpha = _root.black._alpha + 5;
if (_root.black._alpha >= 100) {
_root.gotoAndStop("boss");
}
}
};
Symbol 217 MovieClip Frame 13
stop();
Symbol 221 MovieClip Frame 1
function btnPress() {
_root.globals.soundPressed();
if (_currentframe < 3) {
_parent.addNum(1);
gotoAndStop (3);
}
}
onRelease = btnPress;
onRollOver = function () {
_root.globals.soundRollover();
if (_currentframe < 3) {
gotoAndStop (2);
}
};
onRollOut = function () {
if (_currentframe < 3) {
gotoAndStop (1);
}
};
Symbol 224 MovieClip Frame 1
function btnPress() {
_root.globals.soundPressed();
if (_currentframe < 3) {
_parent.addNum(2);
gotoAndStop (3);
}
}
onRelease = btnPress;
onRollOver = function () {
_root.globals.soundRollover();
if (_currentframe < 3) {
gotoAndStop (2);
}
};
onRollOut = function () {
if (_currentframe < 3) {
gotoAndStop (1);
}
};
Symbol 227 MovieClip Frame 1
function btnPress() {
_root.globals.soundPressed();
if (_currentframe < 3) {
_parent.addNum(3);
gotoAndStop (3);
}
}
onRelease = btnPress;
onRollOver = function () {
_root.globals.soundRollover();
if (_currentframe < 3) {
gotoAndStop (2);
}
};
onRollOut = function () {
if (_currentframe < 3) {
gotoAndStop (1);
}
};
Symbol 230 MovieClip Frame 1
function btnPress() {
_root.globals.soundPressed();
if (_currentframe < 3) {
_parent.addNum(4);
gotoAndStop (3);
}
}
onRelease = btnPress;
onRollOver = function () {
_root.globals.soundRollover();
if (_currentframe < 3) {
gotoAndStop (2);
}
};
onRollOut = function () {
if (_currentframe < 3) {
gotoAndStop (1);
}
};
Symbol 232 MovieClip Frame 1
stop();
onRelease = function () {
_root.globals.soundPressed();
_parent.checkCode();
};
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 239 MovieClip Frame 1
function init() {
b1.gotoAndStop(1);
b2.gotoAndStop(1);
b3.gotoAndStop(1);
b4.gotoAndStop(1);
c1 = false;
c2 = false;
c3 = false;
c4 = false;
curPos = 0;
n1.gotoAndStop(5);
n2.gotoAndStop(5);
n3.gotoAndStop(5);
n4.gotoAndStop(5);
}
function addNum(num) {
switch (curPos) {
case 0 :
n1.gotoAndStop(num);
if (num == 4) {
c1 = true;
}
break;
case 1 :
n2.gotoAndStop(num);
if (num == 1) {
c2 = true;
}
break;
case 2 :
n3.gotoAndStop(num);
if (num == 2) {
c3 = true;
}
break;
case 3 :
n4.gotoAndStop(num);
if (num != 3) {
break;
}
c4 = true;
}
curPos++;
}
function checkCode() {
if (((c1 && (c2)) && (c3)) && (c4)) {
_root.globals.soundInteract();
_root.finalBoss = true;
_root.HEROMc._alpha = 0;
_parent.hand.play();
_visible = false;
} else {
init();
}
}
_visible = false;
b1.gotoAndStop(1);
b2.gotoAndStop(1);
b3.gotoAndStop(1);
b4.gotoAndStop(1);
c1 = false;
c2 = false;
c3 = false;
c4 = false;
n1.gotoAndStop(5);
n2.gotoAndStop(5);
n3.gotoAndStop(5);
n4.gotoAndStop(5);
curPos = 0;
Symbol 241 MovieClip Frame 1
function showText() {
timer = 200;
}
function update() {
if (timer < 1) {
_visible = false;
} else {
_visible = true;
timer--;
}
}
_visible = false;
timer = 0;
onEnterFrame = update;
Symbol 249 MovieClip Frame 1
stop();
Instance of Symbol 249 MovieClip in Symbol 250 MovieClip Frame 1
onClipEvent (load) {
this._visible = false;
}
onClipEvent (enterFrame) {
if ((_root.cholefilled == true) || (_root.bholefilled == true)) {
_y = -10;
} else {
_y = 300;
}
}
Symbol 257 MovieClip Frame 1
stop();
updateFunction();
onEnterFrame = updateFunction;
Symbol 259 MovieClip Frame 1
updateFunction();
_parent.crate.updateFunction();
_parent.boxMc.updateFunction();
onEnterFrame = updateFunction;
Symbol 261 MovieClip Frame 1
updateFunction();
onEnterFrame = updateFunction;
Symbol 263 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (_root.HEROMc.hitTest(this)) {
_root.alive = false;
}
};
Symbol 269 MovieClip Frame 1
_visible = false;
Symbol 270 MovieClip Frame 8
_root.globals.soundCrusher();
Symbol 274 MovieClip Frame 1
_visible = false;
Symbol 285 MovieClip Frame 30
newSplode = _parent._parent.attachMovie("splode", "splode" + _root.depth, _root.depth++);
newSplode._x = _parent._x;
newSplode._y = _parent._y;
newSplode._rotation = random(360);
_root.tntPlaced = false;
_root.wallDestroyed = true;
_parent.gotoAndStop(1);
Symbol 290 MovieClip Frame 1
onEnterFrame = function () {
cf = _currentframe;
nf = random(4) + 1;
if (cf == nf) {
nf = nf + 1;
}
if (nf > 4) {
nf = 1;
}
gotoAndStop(nf);
};
Symbol 291 MovieClip Frame 1
stop();
Symbol 297 MovieClip Frame 1
onRelease = function () {
if (_root.alive) {
_root.HEROMc._x = 300;
_root.HEROMc._y = 100;
for (var _local3 in _parent.hole.hole) {
_parent.hole.hole[_local3].removeMovieClip();
}
if (_root.hasTnt) {
_parent.tnt._visible = true;
_root.hasTnt = false;
_root.hasShovel = true;
_root.tntCollected = false;
}
}
};
Symbol 305 MovieClip Frame 8
_root.globals.soundSpikes();
Symbol 305 MovieClip Frame 28
_root.globals.soundSpikes();
Symbol 305 MovieClip Frame 47
_root.globals.soundSpikes();
Symbol 312 MovieClip Frame 2
_root.levelWall = true;
Instance of Symbol 312 MovieClip in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
if ((_root.hasTnt && (Key.isDown(38))) && (this.hitTest(_root.HEROMc))) {
_root.tntPlaced = true;
_root.hasTnt = false;
}
if (_root.wallDestroyed) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
onClipEvent (enterFrame) {
if ((_root.hasTnt && (Key.isDown(38))) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundInteract();
_root.tntPlaced = true;
_root.hasTnt = false;
}
if (_root.wallDestroyed) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 291 MovieClip "tnt" in Symbol 313 MovieClip Frame 1
onClipEvent (load) {
if (!_root.tntPlaced) {
_visible = false;
} else {
_visible = true;
gotoAndStop (2);
}
}
onClipEvent (enterFrame) {
if (!_root.tntPlaced) {
_visible = false;
} else {
_visible = true;
gotoAndStop (2);
}
}
Symbol 318 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if (this.hitTest(_root.HEROMc._x, _root.HEROMc._y, false)) {
_root.alive = false;
}
};
Symbol 324 MovieClip Frame 1
_visible = false;
Symbol 337 MovieClip Frame 1
function physics() {
if (Key.isDown(40) && (Key.isDown(8))) {
_x = (_root._xmouse - _root.stagesMc._x);
_y = (_root._ymouse - _root.stagesMc._y);
}
ySpd = ySpd + gravity;
speed = Math.sqrt((xSpd * xSpd) + (ySpd * ySpd));
spdIter = Math.ceil(speed / maxSpd);
if (speed > 50) {
speed = 50;
}
iter = Math.ceil(speed / maxSpd);
i = 0;
while (i < iter) {
_x = (_x + (xSpd / spdIter));
_y = (_y + (ySpd / spdIter));
hitCount = 0;
vX = 0;
vY = 0;
j = 0;
while (j < 32) {
angle = j * 11.25;
hX = Math.sin(angle / 57.3) * 10;
hY = Math.cos(angle / 57.3) * 10;
if (hit.hitTest((_x + hX) + xOff, (_y + hY) + yOff, true)) {
vX = vX + (Math.sin(angle / 57.3) * 10);
vY = vY + (Math.cos(angle / 57.3) * 10);
hitCount++;
}
j++;
}
if (hitCount > 0) {
colAngle = Math.atan2(vY, vX) * 57.3;
moveAngle = (Math.atan2(ySpd, xSpd) * 57.3) + 90;
colAngle = (-colAngle) - 90;
colAngle = 180 - colAngle;
if (Math.cos((moveAngle - colAngle) / 57.3) > 0) {
newAngle = colAngle;
} else {
newAngle = (moveAngle + 180) - (((moveAngle - colAngle) - 180) * 2);
}
speed = Math.sqrt((xSpd * xSpd) + (ySpd * ySpd));
ySpd = ((-Math.cos(newAngle / 57.3)) * speed) * bounce;
xSpd = (Math.sin(newAngle / 57.3) * speed) * bounce;
_x = oldX;
_y = oldY;
}
oldX = _x;
oldY = _y;
i++;
}
}
ySpd = 0;
xSpd = 0;
oldX = _x;
oldY = _y;
gravity = 1;
bounce = 1;
maxSpd = 10;
hit = _parent.col;
xOff = _root.stagesMc._x + hit._x;
yOff = _root.stagesMc._y + hit._y;
onEnterFrame = function () {
if (_visible) {
physics();
}
if (_visible && (_parent.targetMc.hitTest(_x + xOff, _y + yOff, false))) {
_visible = false;
_parent.targetMc.count = _parent.targetMc.count - 1;
}
};
Symbol 359 MovieClip Frame 1
function showMessage() {
if (timeToReset < 1) {
if (!_root.jackHammerTaken) {
if (!_root.hasApple) {
_root.globals.soundInteract();
gotoAndStop (2);
timeToReset = 120;
} else if (_root.hasObject()) {
_root.globals.soundInteract();
gotoAndStop (3);
timeToReset = 180;
} else {
_root.globals.soundPickup();
gotoAndStop (4);
_root.collected.showText("collected jackhammer");
_root.hasShovel = true;
_root.jackHammerTaken = true;
timeToReset = 400;
_root.hasApple = false;
}
} else {
_root.globals.soundInteract();
gotoAndStop (5);
timeToReset = 150;
}
}
}
timeToReset = 0;
onEnterFrame = function () {
timeToReset--;
if (timeToReset < 1) {
gotoAndStop (1);
timeToReset = 0;
}
};
Symbol 380 MovieClip Frame 2
_root.globals.soundPickup();
Symbol 382 MovieClip Frame 1
_visible = false;
Symbol 384 MovieClip Frame 1
_visible = false;
Symbol 385 MovieClip Frame 1
stop();
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 1
onClipEvent (load) {
function main() {
if (_root.HEROMc._x < 30) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.worldMc.globeMc._rotation = -2;
battText.timer = 0;
_parent.controls._alpha = 0;
}
if (_root.HEROMc._x > 590) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.worldMc.globeMc._rotation = -2;
battText.timer = 0;
_parent.controls._alpha = 0;
}
}
}
Instance of Symbol 246 MovieClip "controls" in Symbol 385 MovieClip Frame 1
onClipEvent (enterFrame) {
_alpha = (_alpha - 0.1);
}
Symbol 385 MovieClip Frame 2
stop();
Instance of Symbol 253 MovieClip in Symbol 385 MovieClip Frame 2
onClipEvent (enterFrame) {
if (((this.hitTest(_root.HEROMc) == true) && (Key.isDown(38))) && (!_root.boxtree)) {
_root.globals.soundInteract();
_root.boxtree = true;
}
}
Instance of Symbol 257 MovieClip "boxMc" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
updateFunction = function () {
if (_root.boxtree) {
gotoAndStop (1);
} else {
gotoAndStop (2);
}
this._y = (((_parent._parent._y + _parent.dot01._y) + _parent._parent._y) + _parent.dot02._y) / 2;
heightdiff = _parent.dot01._y - _parent.dot02._y;
widthdiff = _parent.dot01._x - _parent.dot02._x;
fraction = heightdiff / widthdiff;
angletoparent = Math.atan(fraction);
angletoparent = angletoparent * 57.295779513;
this._rotation = angletoparent;
this._x = (((_parent._parent._x + _parent.dot01._x) + _parent._parent._x) + _parent.dot02._x) / 2;
if (((((this.hitTest(_root.HEROMc) == true) && (Key.isDown(38))) && (_root.crateAttached != true)) && (!_root.bholefilled)) && (!_root.attached)) {
_root.globals.soundPickup();
_root.attached = true;
_root.boxAttached = true;
}
};
}
Instance of Symbol 259 MovieClip "dot01" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
if (_root.dot01x != undefined) {
this._x = _root.dot01x;
this._y = _root.dot01y;
}
yspeed = 0;
gravity = 1;
_visible = false;
_parent.boxMc.updateFunction();
updateFunction = function () {
if (_root.boxtree == true) {
if (!_root.boxOnSecond) {
if (_root.bholefilled != true) {
if (_root.boxAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 5)) {
this._x = (_root.HEROMc._x - _parent._x) + 5;
}
}
}
if (_root.cholefilled != true) {
if (this._x >= -33) {
this._x = -33;
}
}
if (_y < 186) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.bholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
if (((this._y > 140) && (_root.bholefilled != true)) && (_root.cholefilled != true)) {
_root.globals.soundBoxfall();
_root.bholefilled = true;
_root.boxAttached = false;
_root.attached = false;
}
} else {
_x = -440;
_y = 110;
_root.boxAttached = false;
}
}
};
}
Instance of Symbol 259 MovieClip "dot02" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
if (_root.dot02x != undefined) {
this._x = _root.dot02x;
this._y = _root.dot02y;
}
yspeed = 0;
gravity = 1;
_visible = false;
_parent.boxMc.updateFunction();
updateFunction = function () {
if (_root.boxtree == true) {
if (!_root.boxOnSecond) {
if (_root.bholefilled != true) {
if (_root.boxAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 64)) {
this._x = (_root.HEROMc._x - _parent._x) + 64;
}
}
}
if (_root.cholefilled != true) {
if (this._x >= 31) {
this._x = 31;
}
}
if (_y < 186) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.bholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
} else {
_x = -440;
_y = 110;
_root.boxAttached = false;
}
}
};
}
Instance of Symbol 261 MovieClip "crate" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
updateFunction = function () {
this._y = (((_parent._parent._y + _parent.dot03._y) + _parent._parent._y) + _parent.dot04._y) / 2;
heightdiff = _parent.dot03._y - _parent.dot04._y;
widthdiff = _parent.dot03._x - _parent.dot04._x;
fraction = heightdiff / widthdiff;
angletoparent = Math.atan(fraction);
angletoparent = angletoparent * 57.295779513;
this._rotation = angletoparent;
this._x = (((_parent._parent._x + _parent.dot03._x) + _parent._parent._x) + _parent.dot04._x) / 2;
if ((((((!_root.upDown) && (this.hitTest(_root.HEROMc) == true)) && (Key.isDown(38))) && (_root.boxAttached != true)) && (!_root.cholefilled)) && (!_root.attached)) {
_root.globals.soundPickup();
_root.attached = true;
_root.crateAttached = true;
}
};
}
Instance of Symbol 259 MovieClip "dot03" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
if (_root.dot03x != undefined) {
this._x = _root.dot03x;
this._y = _root.dot03y;
}
yspeed = 0;
gravity = 1;
_visible = false;
_parent.crate.updateFunction();
updateFunction = function () {
if (!_root.crateOnSecond) {
if (_root.cholefilled != true) {
if (_root.crateAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 5)) {
this._x = (_root.HEROMc._x - _parent._x) + 5;
}
}
}
if (_root.bholefilled != true) {
if (this._x >= -33) {
this._x = -33;
}
}
if (_y < 186) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.cholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
if (((this._y > 140) && (_root.bholefilled != true)) && (_root.cholefilled != true)) {
_root.globals.soundBoxfall();
_root.cholefilled = true;
_root.crateAttached = false;
_root.attached = false;
}
} else {
_x = -440;
_y = 110;
_root.crateAttached = false;
}
};
}
Instance of Symbol 259 MovieClip "dot04" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
if (_root.dot04x != undefined) {
this._x = _root.dot04x;
this._y = _root.dot04y;
}
yspeed = 0;
gravity = 1;
_visible = false;
_parent.crate.updateFunction();
updateFunction = function () {
if (!_root.crateOnSecond) {
if (_root.cholefilled != true) {
if (_root.crateAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 64)) {
this._x = (_root.HEROMc._x - _parent._x) + 64;
}
}
}
if (_root.bholefilled != true) {
if (this._x >= 31) {
this._x = 31;
}
}
if (_y < 186) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.cholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
} else {
_x = -440;
_y = 110;
_root.crateAttached = false;
}
};
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 2
onClipEvent (load) {
function main() {
if ((Key.isDown(39) && (_root.attached)) && (_root.HEROMc.hitTest(_parent.crate) || (_root.HEROMc.hitTest(_parent.boxMc)))) {
_root.HEROMc.animFrame = "push";
_root.globals.soundPushcrate();
}
if (_root.HEROMc._x < 30) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.worldMc.globeMc._rotation = -18;
_root.dot01x = _parent.dot01._x;
_root.dot01y = _parent.dot01._y;
_root.dot02x = _parent.dot02._x;
_root.dot02y = _parent.dot02._y;
_root.dot03x = _parent.dot03._x;
_root.dot03y = _parent.dot03._y;
_root.dot04x = _parent.dot04._x;
_root.dot04y = _parent.dot04._y;
}
if (_root.HEROMc._x > 590) {
_root.HEROMc._x = 60;
if (_root.boxAttached) {
_parent.dot01._x = -450;
_parent.dot02._x = -400;
_root.boxOnSecond = true;
}
if (_root.crateAttached) {
_parent.dot03._x = -450;
_parent.dot04._x = -400;
_root.crateOnSecond = true;
}
_root.dot01x = _parent.dot01._x;
_root.dot01y = _parent.dot01._y;
_root.dot02x = _parent.dot02._x;
_root.dot02y = _parent.dot02._y;
_root.dot03x = _parent.dot03._x;
_root.dot03y = _parent.dot03._y;
_root.dot04x = _parent.dot04._x;
_root.dot04y = _parent.dot04._y;
_parent.gotoAndStop(3);
}
}
}
Symbol 385 MovieClip Frame 3
stop();
Instance of Symbol 266 MovieClip in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
if (_root.batt1 == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.batt1 == false) {
_visible = false;
} else {
_visible = true;
}
if ((!_root.hasObject()) && (_visible)) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundPickup();
_visible = false;
_root.collected.showText("collected battery");
_root.hasBattery = true;
_root.hasb1 = true;
_root.batt1 = false;
}
}
}
Instance of Symbol 257 MovieClip "boxMc" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
updateFunction = function () {
this._y = (((_parent._parent._y + _parent.dot01._y) + _parent._parent._y) + _parent.dot02._y) / 2;
heightdiff = _parent.dot01._y - _parent.dot02._y;
widthdiff = _parent.dot01._x - _parent.dot02._x;
fraction = heightdiff / widthdiff;
angletoparent = Math.atan(fraction);
angletoparent = angletoparent * 57.295779513;
this._rotation = angletoparent;
this._x = (((_parent._parent._x + _parent.dot01._x) + _parent._parent._x) + _parent.dot02._x) / 2;
if (((((this.hitTest(_root.HEROMc) == true) && (Key.isDown(38))) && (_root.crateAttached != true)) && (!_root.attached)) && (!_root.attached)) {
_root.globals.soundPickup();
_root.attached = true;
_root.boxAttached = true;
}
};
}
Instance of Symbol 259 MovieClip "dot01" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
if ((_root.dot01x != undefined) && (_root.boxAttached)) {
this._x = _root.dot01x;
this._y = _root.dot01y;
}
yspeed = 0;
gravity = 1;
_visible = false;
updateFunction = function () {
if (_root.boxOnSecond) {
if (_root.boxtree == true) {
if (_root.bholefilled != true) {
if (_root.boxAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 5)) {
this._x = (_root.HEROMc._x - _parent._x) + 5;
}
}
}
if (_root.cholefilled != true) {
if (this._x >= -33) {
this._x = -33;
}
}
if (!_root.bholefilled) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.bholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
if (((this._y > 140) && (_root.bholefilled != true)) && (_root.cholefilled != true)) {
_root.bholefilled = true;
_root.boxAttached = false;
_root.attached = false;
}
}
} else {
_x = -440;
_y = 110;
_root.boxAttached = false;
}
};
}
Instance of Symbol 259 MovieClip "dot02" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
if ((_root.dot02x != undefined) && (_root.boxAttached)) {
this._x = _root.dot02x;
this._y = _root.dot02y;
}
yspeed = 0;
gravity = 1;
_visible = false;
updateFunction = function () {
if (_root.boxOnSecond) {
if (_root.boxtree == true) {
if (_root.bholefilled != true) {
if (_root.boxAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 64)) {
this._x = (_root.HEROMc._x - _parent._x) + 64;
}
}
}
if (_root.cholefilled != true) {
if (this._x >= 31) {
this._x = 31;
}
}
if (!_root.bholefilled) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.bholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
}
} else {
_x = -440;
_y = 110;
_root.boxAttached = false;
}
};
}
Instance of Symbol 261 MovieClip "crate" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
updateFunction = function () {
this._y = (((_parent._parent._y + _parent.dot03._y) + _parent._parent._y) + _parent.dot04._y) / 2;
heightdiff = _parent.dot03._y - _parent.dot04._y;
widthdiff = _parent.dot03._x - _parent.dot04._x;
fraction = heightdiff / widthdiff;
angletoparent = Math.atan(fraction);
angletoparent = angletoparent * 57.295779513;
this._rotation = angletoparent;
this._x = (((_parent._parent._x + _parent.dot03._x) + _parent._parent._x) + _parent.dot04._x) / 2;
if (((((this.hitTest(_root.HEROMc) == true) && (Key.isDown(38))) && (_root.boxAttached != true)) && (!_root.attached)) && (!_root.attached)) {
_root.globals.soundPickup();
_root.attached = true;
_root.crateAttached = true;
}
};
}
Instance of Symbol 259 MovieClip "dot03" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
if ((_root.dot03x != undefined) && (_root.crateAttached)) {
this._x = _root.dot03x;
this._y = _root.dot03y;
}
yspeed = 0;
gravity = 1;
_visible = false;
updateFunction = function () {
if (_root.crateOnSecond) {
if (_root.cholefilled != true) {
if (_root.crateAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 5)) {
this._x = (_root.HEROMc._x - _parent._x) + 5;
}
}
}
if (_root.bholefilled != true) {
if (this._x >= -33) {
this._x = -33;
}
}
if (!_root.cholefilled) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.cholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
if (((this._y > 140) && (_root.bholefilled != true)) && (_root.cholefilled != true)) {
_root.cholefilled = true;
_root.crateAttached = false;
_root.attached = false;
}
} else {
_x = -440;
_y = 110;
_root.crateAttached = false;
}
};
}
Instance of Symbol 259 MovieClip "dot04" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
if ((_root.dot04x != undefined) && (_root.crateAttached)) {
this._x = _root.dot04x;
this._y = _root.dot04y;
}
yspeed = 0;
gravity = 1;
_visible = false;
updateFunction = function () {
if (_root.crateOnSecond) {
if (_root.cholefilled != true) {
if (_root.crateAttached == true) {
if (this._x < ((_root.HEROMc._x - _parent._x) + 64)) {
this._x = (_root.HEROMc._x - _parent._x) + 64;
}
}
}
if (_root.bholefilled != true) {
if (this._x >= 31) {
this._x = 31;
}
}
if (!_root.cholefilled) {
yspeed = yspeed + gravity;
_y = (_y + yspeed);
}
if (_root.cholefilled != true) {
while (_parent.ground.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
} else {
while (_parent.ground.hole.hitTest(_parent._x + _x, _parent._y + _y, true) == true) {
yspeed = 0;
_y = (_y - 1);
}
}
} else {
_x = -440;
_y = 110;
_root.crateAttached = false;
}
};
}
Instance of Symbol 274 MovieClip in Symbol 385 MovieClip Frame 3
onClipEvent (enterFrame) {
if (_parent.crate.hitTest(this)) {
newSplode = _parent.attachMovie("splode", "splode" + _root.depth, _root.depth++);
newSplode._x = _parent.crate._x;
newSplode._y = _parent.crate._y;
newSplode._rotation = random(360);
_root.crateAttached = false;
_root.attached = false;
_parent.dot03._x = -400;
_parent.dot04._x = -440;
_root.batt1 = true;
}
if (_parent.boxMc.hitTest(this)) {
newSplode = _parent.attachMovie("splode", "splode" + _root.depth, _root.depth++);
newSplode._x = _parent.boxMc._x;
newSplode._y = _parent.boxMc._y;
newSplode._rotation = random(360);
_root.boxAttached = false;
_root.attached = false;
_parent.dot01._x = -400;
_parent.dot02._x = -440;
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 3
onClipEvent (load) {
function main() {
if ((Key.isDown(39) && (_root.attached)) && (_root.HEROMc.hitTest(_parent.crate) || (_root.HEROMc.hitTest(_parent.boxMc)))) {
_root.HEROMc.animFrame = "push";
_root.globals.soundPushcrate();
}
if (_root.HEROMc._x < 30) {
_root.HEROMc._x = 540;
if (_root.boxAttached) {
_root.dot01x = _parent.dot01._x;
_root.dot01y = _parent.dot01._y;
_root.dot02x = _parent.dot02._x;
_root.dot02y = _parent.dot02._y;
}
if (_root.crateAttached) {
_root.dot03x = _parent.dot03._x;
_root.dot03y = _parent.dot03._y;
_root.dot04x = _parent.dot04._x;
_root.dot04y = _parent.dot04._y;
}
if (_root.levelBoxtree) {
_root.worldMc.globeMc._rotation = -60;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.black._alpha = 100;
} else {
_parent.gotoAndStop(2);
}
}
if (_root.HEROMc._x > 590) {
_root.worldMc.globeMc._rotation = -87;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.black._alpha = 100;
if (_root.boxAttached) {
_root.dot01x = _parent.dot01._x;
_root.dot01y = _parent.dot01._y;
_root.dot02x = _parent.dot02._x;
_root.dot02y = _parent.dot02._y;
}
if (_root.crateAttached) {
_root.dot03x = _parent.dot03._x;
_root.dot03y = _parent.dot03._y;
_root.dot04x = _parent.dot04._x;
_root.dot04y = _parent.dot04._y;
}
}
}
boxMc._x = -400;
crate._x = -400;
boxMc._y = 100;
crate._y = 100;
}
Symbol 385 MovieClip Frame 4
stop();
Instance of Symbol 291 MovieClip "tnt" in Symbol 385 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.tntCollected == true) {
_visible = false;
}
if (_visible) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundPickup();
_visible = false;
_root.collected.showText("collected TNT");
_root.hasTnt = true;
_root.hasShovel = false;
_root.tntCollected = true;
}
}
}
Instance of Symbol 263 MovieClip in Symbol 385 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.HEROMc.hitTest(this) && (_root.alive)) {
newSplode = _parent.attachMovie("splode", "splode" + _root.depth, _root.depth++);
newSplode._x = this._x;
newSplode._y = this._y;
newSplode._rotation = random(360);
_parent.bomb1._visible = false;
}
}
Instance of Symbol 263 MovieClip in Symbol 385 MovieClip Frame 4
onClipEvent (enterFrame) {
if (_root.HEROMc.hitTest(this) && (_root.alive)) {
newSplode = _parent.attachMovie("splode", "splode" + _root.depth, _root.depth++);
newSplode._x = this._x;
newSplode._y = this._y;
newSplode._rotation = random(360);
_parent.bomb2._visible = false;
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 4
onClipEvent (load) {
function main() {
bHeight = 20;
do {
if (!((!_root.stagesMc.hole.hole.hitTest(_root.HEROMc._x - 5, _root.HEROMc._y - bHeight, true)) || (_parent.ground.hitTest(_root.HEROMc._x - 5, _root.HEROMc._y - bHeight, true)))) {
break;
}
_root.HEROMc._x = _root.HEROMc._x + 4;
} while (!_parent.digGround.hitTest(_root.HEROMc._x - 5, _root.HEROMc._y - bHeight, true));
do {
if (!((!_root.stagesMc.hole.hole.hitTest(_root.HEROMc._x + 5, _root.HEROMc._y - bHeight, true)) || (_parent.ground.hitTest(_root.HEROMc._x - 5, _root.HEROMc._y - bHeight, true)))) {
break;
}
_root.HEROMc._x = _root.HEROMc._x - 4;
} while (!_parent.digGround.hitTest(_root.HEROMc._x + 5, _root.HEROMc._y - bHeight, true));
while ((_root.stagesMc.hole.hole.hitTest(_root.HEROMc._x, _root.HEROMc._y, true) == false) || (_parent.ground.hitTest(_root.HEROMc._x, _root.HEROMc._y, true) == true)) {
_root.HEROMc.ySpd = 0;
_root.HEROMc._y = _root.HEROMc._y - 1;
}
if (!Key.isDown(40)) {
down = false;
}
if (Key.isDown(40) && (down == false)) {
down = true;
if (_root.pCount >= 30) {
_root.pCount = 0;
}
if (_root.hasShovel) {
_root.newHole = _parent.hole.hole.attachMovie("hole", "hole" + _root.pCount, _root.pCount++);
_root.newHole._x = _root.HEROMc._x;
_root.newHole._y = _root.HEROMc._y - 5;
}
}
if ((_root.HEROMc._x < 30) || (_root.HEROMc._x > 590)) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.HEROMc._y = 338;
_root.stagesMc.gotoAndStop(5);
}
}
_root.pCount = 0;
}
onClipEvent (enterFrame) {
if (_root.hasShovel && (_root.alive)) {
_root.HEROMc.animFrame = "dig";
}
if (!_root.alive) {
while ((_root.stagesMc.hole.hole.hitTest(_root.HEROMc._x, _root.HEROMc._y, true) == false) || (_parent.ground.hitTest(_root.HEROMc._x, _root.HEROMc._y, true) == true)) {
_root.HEROMc.ySpd = 0;
_root.HEROMc._y = _root.HEROMc._y - 1;
}
}
}
Symbol 385 MovieClip Frame 5
stop();
Instance of Symbol 300 MovieClip in Symbol 385 MovieClip Frame 5
onClipEvent (enterFrame) {
if (_root.hasDisk == true) {
_visible = false;
}
if (_visible) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundPickup();
_visible = false;
_root.collected.showText("collected disk");
_root.hasDisk = true;
}
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 5
onClipEvent (load) {
function main() {
if ((_root.HEROMc._x < 30) || (_root.HEROMc._x > 590)) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
}
}
Symbol 385 MovieClip Frame 6
stop();
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 6
onClipEvent (load) {
function main() {
if (_root.HEROMc._x < 30) {
_root.worldMc.globeMc._rotation = -160;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
if (_root.HEROMc._x > 590) {
_root.worldMc.globeMc._rotation = 165;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
}
}
Symbol 385 MovieClip Frame 7
stop();
Instance of Symbol 307 MovieClip in Symbol 385 MovieClip Frame 7
onClipEvent (enterFrame) {
if ((this.hitTest(_root.HEROMc) == true) && (Key.isDown(38))) {
_root.globals.soundInteract();
_root.HEROMc._x = 60;
_root.HEROMc._y = 350;
_parent.gotoAndStop(12);
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 7
onClipEvent (load) {
function main() {
if ((_root.HEROMc._x < 30) || (_root.HEROMc._x > 590)) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
}
}
Symbol 385 MovieClip Frame 8
stop();
Instance of Symbol 309 MovieClip in Symbol 385 MovieClip Frame 8
onClipEvent (enterFrame) {
if ((this.hitTest(_root.HEROMc) == true) && (Key.isDown(38))) {
_root.HEROMc._x = 320;
_root.HEROMc._y = 300;
_root.globals.soundInteract();
_parent.gotoAndStop(13);
}
}
Symbol 385 MovieClip Frame 9
stop();
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 9
onClipEvent (load) {
function main() {
if (_root.HEROMc._x < 30) {
_root.worldMc.globeMc._rotation = 88;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
if (_root.HEROMc._x > 590) {
_root.HEROMc._x = 60;
_parent.gotoAndStop(10);
}
}
}
Symbol 385 MovieClip Frame 10
stop();
Instance of Symbol 266 MovieClip in Symbol 385 MovieClip Frame 10
onClipEvent (load) {
if (_root.batt2 == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.batt2 == false) {
_visible = false;
}
if ((!_root.hasObject()) && (_visible)) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundPickup();
_visible = false;
_root.collected.showText("collected battery");
_root.hasBattery = true;
_root.batt2 = false;
_root.hasb2 = true;
}
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 10
onClipEvent (load) {
function main() {
if (_root.HEROMc._x < 30) {
_root.HEROMc._x = 540;
if (_root.levelWall) {
_root.worldMc.globeMc._rotation = 62;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
} else {
_parent.gotoAndStop(9);
}
}
if (_root.HEROMc._x > 590) {
_root.worldMc.globeMc._rotation = 40;
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
}
}
Symbol 385 MovieClip Frame 11
stop();
Instance of Symbol 322 MovieClip in Symbol 385 MovieClip Frame 11
onClipEvent (enterFrame) {
if (_root.hasApple) {
_visible = false;
}
if (_visible) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundPickup();
_visible = false;
_root.collected.showText("collected apple");
_root.hasApple = true;
}
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 11
onClipEvent (load) {
function main() {
if ((_root.HEROMc._x < 30) || (_root.HEROMc._x > 590)) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
}
}
}
Instance of Symbol 339 MovieClip in Symbol 385 MovieClip Frame 12
onClipEvent (load) {
gates = 3;
openGate = 0;
down = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(38)) {
if ((!down) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundInteract();
openGate++;
if (openGate > gates) {
openGate = 1;
}
}
down = true;
} else {
down = false;
}
if (openGate == 1) {
_parent.col.d1.gotoAndStop(2);
} else {
_parent.col.d1.gotoAndStop(1);
}
if (openGate == 2) {
_parent.col.d2.gotoAndStop(2);
} else {
_parent.col.d2.gotoAndStop(1);
}
if (openGate == 3) {
_parent.col.d3.gotoAndStop(2);
} else {
_parent.col.d3.gotoAndStop(1);
}
}
Instance of Symbol 352 MovieClip "targetMc" in Symbol 385 MovieClip Frame 12
onClipEvent (load) {
count = 9;
}
onClipEvent (enterFrame) {
gotoAndStop(count + 1);
}
Instance of Symbol 266 MovieClip in Symbol 385 MovieClip Frame 12
onClipEvent (load) {
if (_root.batt3 == false) {
_visible = false;
} else {
_visible = true;
}
}
onClipEvent (enterFrame) {
if (_root.batt3 == false) {
_visible = false;
}
if ((!_root.hasObject()) && (_visible)) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_root.globals.soundPickup();
_visible = false;
_root.collected.showText("collected battery");
_root.batt3Taken = true;
_root.hasBattery = true;
_root.batt3 = false;
_root.hasb3 = true;
}
}
if ((!_root.batt3) && (!_root.batt3Taken)) {
if (_parent.targetMc.count < 1) {
_root.batt3 = true;
_visible = true;
}
}
}
Instance of Symbol 376 MovieClip in Symbol 385 MovieClip Frame 13
onClipEvent (enterFrame) {
if (_visible) {
if (Key.isDown(38) && (this.hitTest(_root.HEROMc))) {
_parent.textBox.showMessage();
}
}
}
Instance of Symbol 380 MovieClip in Symbol 385 MovieClip Frame 13
onClipEvent (enterFrame) {
if ((Key.isDown(38) && (this.hitTest(_root.HEROMc))) && (_root.hasDisk)) {
_root.computer = true;
_root.hasDisk = false;
}
if (_root.computer) {
gotoAndStop (2);
} else {
gotoAndStop (1);
}
}
Instance of Symbol 384 MovieClip "door" in Symbol 385 MovieClip Frame 13
onClipEvent (load) {
function update() {
if (Key.isDown(38)) {
if ((!_root.upDown) && (this.hitTest(_root.HEROMc))) {
_root.world = true;
_root.vcamscale = 50;
_root.newscale = 100;
_root.zoomOut = true;
_root.black._alpha = 100;
_root.HEROMc._y = 300;
}
_root.upDown = true;
} else {
_root.upDown = false;
}
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 13
onClipEvent (load) {
function main() {
_parent.door.update();
}
}
Instance of Symbol 242 MovieClip "level" in Symbol 385 MovieClip Frame 14
onClipEvent (load) {
function main() {
}
}
Symbol 387 MovieClip Frame 1
_visible = false;
Symbol 391 MovieClip Frame 1
_alpha = 0;
Symbol 396 MovieClip Frame 1
onEnterFrame = function () {
_xscale = _root.bossHealth;
if (_xscale < 0) {
_xscale = 0;
}
};
Symbol 397 MovieClip Frame 1
_visible = false;
onEnterFrame = function () {
if ((_root.finalBoss && (_root._currentframe == 5)) && (_root.bossHealth > 0)) {
_visible = true;
} else {
_visible = false;
}
};
Symbol 398 MovieClip Frame 1
_xscale = 0;
_yscale = 0;
multiplier = 1 + (random(100) / 50);
onEnterFrame = function () {
if (_parent.ballScale <= 10) {
_x = random(640);
_y = random(360);
}
_xscale = (_parent.ballScale * multiplier);
_yscale = (_parent.ballScale * multiplier);
_rotation = (_parent.ballScale * multiplier);
};
Symbol 401 MovieClip Frame 1
onRelease = function () {
_root.reload();
};
Symbol 403 MovieClip Frame 1
onRelease = function () {
_root.gotoAndStop("menu");
};
Symbol 405 MovieClip Frame 1
showMenu = false;
ballScale = 0;
timer = 20;
onEnterFrame = function () {
if (_root.alive) {
showMenu = false;
timer = 20;
} else {
timer--;
if ((_currentframe == 1) && (timer < 1)) {
showMenu = true;
ballScale = 0;
timer = 20;
}
}
if (showMenu) {
gotoAndStop (2);
ballScale = ballScale + ((100 - ballScale) / 10);
} else {
ballScale = ballScale - ((110 - ballScale) / 10);
if (ballScale < 10) {
gotoAndStop (1);
}
}
};
Symbol 410 Button
on (release) {
_root.gotoAndStop("menu");
}
Symbol 415 MovieClip Frame 1
_visible = false;
Symbol 420 MovieClip Frame 1
onRelease = function () {
_root.gotoAndStop("menu");
};
Symbol 423 MovieClip Frame 1
onRelease = function () {
_root.globals.soundPressed();
_root._quality = "HIGH";
};
stop();
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 426 MovieClip Frame 1
onRelease = function () {
_root.globals.soundPressed();
_root._quality = "MEDIUM";
};
stop();
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 429 MovieClip Frame 1
onRelease = function () {
_root.globals.soundPressed();
_root._quality = "LOW";
};
stop();
onRollOver = function () {
_root.globals.soundRollover();
gotoAndStop (2);
};
onRollOut = function () {
gotoAndStop (1);
};
Symbol 432 MovieClip Frame 1
vol._xscale = _root.globals.vol;
onRelease = function () {
vol._xscale = ((_xmouse - vol._x) / _width) * 100;
_root.globals.vol = vol._xscale;
_root.globals.soundPressed();
};
Symbol 435 MovieClip Frame 1
stop();
showMenu = false;
ballScale = 0;
onEnterFrame = function () {
if (Key.isDown(_root.globals.KC_PAUSE)) {
if (!keyPauseDown) {
if (!_root.pauseGame) {
_root.pauseGame = true;
showMenu = true;
ballScale = 0;
} else {
showMenu = false;
}
keyPauseDown = true;
}
} else {
keyPauseDown = false;
}
if (showMenu) {
gotoAndStop (2);
ballScale = ballScale + ((100 - ballScale) / 10);
pausem._alpha = ballScale;
} else {
ballScale = ballScale - ((110 - ballScale) / 10);
if (ballScale < 10) {
gotoAndStop (1);
_root.pauseGame = false;
}
pausem._alpha = ballScale;
}
};
Symbol 436 MovieClip Frame 1
function camControl() {
var _local4 = 100 / _xscale;
var _local3 = 100 / _yscale;
_parent._x = (Stage.width / 2) - (this._x * _local4);
_parent._y = cY - (this._y * _local3);
_parent._xscale = 100 * _local4;
_parent._yscale = 100 * _local3;
}
function resetStage() {
_parent._xscale = 100;
_parent._yscale = 100;
_parent._x = 0;
_parent._y = 0;
}
vf._visible = false;
var oldMode = Stage.scaleMode;
Stage.scaleMode = "exactFit";
var cX = (Stage.width / 2);
var cY = (Stage.height / 2);
var sX = Stage.width;
var sY = Stage.height;
Stage.scaleMode = oldMode;
camControl();
this.onUnload = resetStage;
Instance of Symbol 322 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hasApple == true) {
_visible = true;
} else {
_visible = false;
}
}
Instance of Symbol 300 MovieClip in Symbol 436 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
}
onClipEvent (enterFrame) {
if (_root.hasDisk == true) {
_visible = true;
} else {
_visible = false;
}
}
Symbol 447 MovieClip Frame 1
bullets = 3;
timer = 0;
onEnterFrame = function () {
timer--;
if ((timer < 1) && (bullets > 0)) {
_root.globals.soundShoot();
newBullet = _root.bullets.attachMovie("bullet", "bullet" + _root.depth, _root.depth++);
pX = Math.sin(_parent._rotation / 57.3) * 100;
pY = (-Math.cos(_parent._rotation / 57.3)) * 100;
newBullet._x = _parent._x + pX;
newBullet._y = _parent._y + pY;
offX = _parent._parent.HEROMc._x - (_parent._x + pX);
offY = _parent._parent.HEROMc._y - (_parent._y + pY);
angle = Math.atan2(offY, offX);
newBullet._rotation = (angle * 57.3) + 90;
bullets--;
timer = 3;
}
};
Symbol 447 MovieClip Frame 39
_parent.gotoAndStop("popdown");
Symbol 448 MovieClip Frame 1
_parent._rotation = random(360);
if (random(3) > 0) {
offX = _parent._parent.HEROMc._x - _parent._x;
offY = _parent._parent.HEROMc._y - _parent._y;
angle = Math.atan2(offY, offX);
_parent._rotation = (angle * 57.3) + 90;
}
onEnterFrame = function () {
_root.bossTimer--;
if (_root.bossTimer < 1) {
play();
} else {
stop();
}
};
Symbol 448 MovieClip Frame 52
_root.front._visible = false;
Symbol 448 MovieClip Frame 61
_parent.gotoAndStop("idle");
Symbol 449 MovieClip Frame 27
_root.front._visible = true;
Symbol 449 MovieClip Frame 35
_parent.gotoAndStop("popup");
Symbol 454 MovieClip Frame 1
timer = 5;
onEnterFrame = function () {
timer--;
if (timer < 1) {
newBullet = _root.bullets.attachMovie("splode", "splode" + _root.depth, _root.depth++);
pX = Math.sin(_parent._rotation / 57.3) * 100;
pY = (-Math.cos(_parent._rotation / 57.3)) * 100;
newBullet._x = ((_parent._x + pX) + random(100)) - 50;
newBullet._y = ((_parent._y + pY) + random(100)) - 50;
newBullet._rotation = random(360);
timer = random(10) + 10;
}
};
Symbol 454 MovieClip Frame 137
_root.vcamMc.win._visible = true;
Symbol 454 MovieClip Frame 160
onEnterFrame = function () {
};
Symbol 454 MovieClip Frame 198
stop();
Symbol 460 MovieClip Frame 1
onEnterFrame = function () {
xDist = (_parent._parent._x + _parent._x) - _root.globeMc._x;
yDist = (_parent._parent._y + _parent._y) - _root.globeMc._y;
angle = Math.atan2(yDist, xDist);
_rotation = ((angle * 57.3) - 180);
};
Symbol 472 MovieClip Frame 13
stop();
Symbol 473 MovieClip Frame 1
function update() {
gotoAndStop ("idle");
if (Key.isDown(37)) {
angle = angle + 4;
} else if (Key.isDown(39)) {
angle = angle - 4;
}
_x = (_root.globeMc._x + (Math.sin(angle / 57.3) * radius));
_y = (_root.globeMc._y + (Math.cos(angle / 57.3) * radius));
timer--;
if (Key.isDown(38)) {
if (!upDown) {
_root.globals.soundShoot();
newBullet = _root.bullets.attachMovie("herobullet", "herobullet" + _root.depth, _root.depth++);
newBullet._x = _root.globeMc._x + (Math.sin(angle / 57.3) * smallerRadius);
newBullet._y = _root.globeMc._y + (Math.cos(angle / 57.3) * smallerRadius);
newBullet._rotation = mc.gun._rotation + 90;
bullets--;
timer = 3;
}
upDown = true;
} else {
upDown = false;
}
if (_root.bossMc.mc.hit.hitTest(this)) {
_root.alive = false;
gotoAndStop ("death");
}
}
stop();
ySpd = 0;
multiplier = 1;
origRadius = 240;
radius = origRadius;
smallerRadius = radius - 55;
angle = 180;
timer = 0;
upDown = false;