Frame 2
stop();
this.createEmptyMovieClip("soundContainerBang", 1);
var sound_bang = new Sound(this.soundContainerBang);
sound_bang.attachSound("sound_bang");
sound_bang.setVolume(90);
Instance of Symbol 34 MovieClip "mc_load_info" in Frame 2
//component parameters
onClipEvent (initialize) {
STREAM = false;
PLAY_TYPE = "bytes";
PLAY_BYTES = 10000;
PLAY_FRAMES = 0;
PLAY_PERCENTAGE = 0;
}
Instance of Symbol 44 MovieClip in Frame 2
onClipEvent (load) {
var myStartWidth = this._width;
this._width = 0;
}
onClipEvent (enterFrame) {
this._width = myStartWidth * _root.mc_load_info.fractionLoaded;
}
Frame 3
function myRandom(minval, maxval) {
return(minval + Math.floor(Math.random() * ((maxval + 1) - minval)));
}
function getRocks() {
if ((numRocks < maxRocks) && (inplay)) {
if (numRocks < 1) {
x = 1;
} else {
x = _root.myRandom(1, 10);
}
if (x == 1) {
numRocks++;
_root.rock.duplicateMovieClip("rock" + depthCounter, depthCounter);
x = _root.myRandom(leftlimit, rightlimit);
_root["rock" + depthCounter]._x = x;
_root["rock" + depthCounter]._y = -40;
depthCounter++;
}
}
}
stop();
explodeCounter = 5000;
inplay = false;
points = 0;
walkrate = 12;
leftlimit = 10;
rightlimit = 540;
bottomlimit = 470;
rockfallrate = 20;
scoreincrease = 0;
lives = 5;
score = 0;
energy = 200;
ducked = false;
fallen = false;
maxRocks = 5;
numRocks = 0;
moreRocks = 0;
faceright = true;
depthcounter = 1;
Instance of Symbol 46 MovieClip in Frame 3
onClipEvent (load) {
x = _root.myRandom(1, 40);
this.gotoAndPlay(x);
}
Instance of Symbol 46 MovieClip in Frame 3
onClipEvent (load) {
x = _root.myRandom(1, 40);
this.gotoAndPlay(x);
}
Instance of Symbol 48 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
onClipEvent (load) {
this.falling = false;
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 48 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 48 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
onClipEvent (load) {
this.falling = false;
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 48 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 58 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
this._x = this._x + _root.myRandom(-30, 30);
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 58 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
this._x = this._x + _root.myRandom(-30, 30);
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 58 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
this._x = this._x + _root.myRandom(-30, 30);
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 58 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
this._x = this._x + _root.myRandom(-30, 30);
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 58 MovieClip in Frame 3
onClipEvent (load) {
this.falling = false;
this._x = this._x + _root.myRandom(-30, 30);
}
onClipEvent (enterFrame) {
if (!this.falling) {
x = _root.myRandom(1, 50);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 67 MovieClip in Frame 3
onClipEvent (load) {
this.gotoAndPlay(150);
}
Frame 4
stop();
inplay = true;
rock.falling = false;
_root.swordstart = _root.swordguage.swordmask._x;
timer = true;
Instance of Symbol 162 MovieClip "hobbit" in Frame 4
onClipEvent (enterFrame) {
_root.getRocks();
if (!_root.fallen) {
if (Key.isDown(40)) {
_root.ducked = true;
this.gotoAndStop("duck");
} else {
_root.ducked = false;
if (Key.isDown(37) && (this._x > _root.leftlimit)) {
_root.faceright = false;
this.gotoAndStop("walkleft");
this._x = this._x - _root.walkrate;
} else if (Key.isDown(39) && (this._x < _root.rightlimit)) {
_root.faceright = true;
this.gotoAndStop("walkright");
this._x = this._x + _root.walkrate;
} else if (_root.faceright) {
this.gotoAndStop("standright");
} else {
this.gotoAndStop("standleft");
}
}
}
if ((_root.score > _root.scoreincrease) && (_root.score < 11000)) {
_root.rockfallrate = _root.rockfallrate + 3;
_root.scoreincrease = _root.scoreincrease + 300;
} else {
_root.scoreincrease++;
}
}
Instance of Symbol 57 MovieClip "rock" in Frame 4
onClipEvent (load) {
this.falling = true;
this.colided = false;
this.hit = false;
}
onClipEvent (enterFrame) {
if (this.falling) {
this._y = this._y + _root.rockfallrate;
if (this._y > _root.bottomlimit) {
if (_root.lives > 0) {
_root.score = _root.score + 10;
}
if (!this.hit) {
this.hit = true;
_root.explosion.duplicateMovieClip("explosion" + explodeCounter, explodeCounter);
_root["explosion" + explodeCounter].gotoAndPlay(2);
_root["explosion" + explodeCounter]._x = this._x;
_root["explosion" + explodeCounter]._y = this._y;
explodeCounter++;
sound_bang.start();
}
this.falling = false;
this._x = -200;
_root.numRocks--;
this.removeMovieClip();
}
}
}
Instance of Symbol 169 MovieClip "dragonrock" in Frame 4
onClipEvent (load) {
this.stop();
this.falling = false;
}
onClipEvent (enterFrame) {
if (this.falling) {
this._y = this._y + _root.rockfallrate;
this._x = this._x + 4;
if (this._y > _root.bottomlimit) {
if (_root.lives > 0) {
_root.score = _root.score + 50;
}
this.falling = false;
_root.explosion._x = this._x;
_root.explosion.play();
this._x = -200;
}
}
}
Instance of Symbol 173 MovieClip "flyingdragon" in Frame 4
onClipEvent (load) {
this.flying = false;
}
onClipEvent (enterFrame) {
if ((!this.flying) && (_root.lives > 0)) {
x = _root.myRandom(1, 100);
if (x == 1) {
this.falling = true;
this.play();
}
}
}
Instance of Symbol 188 MovieClip "life_meter" in Frame 4
onClipEvent (load) {
gotoAndStop (6);
}
Frame 5
explodeCounter = 5000;
_root.totalpoints = score;
inplay = false;
points = 0;
Instance of Symbol 169 MovieClip "dragonrock" in Frame 5
onClipEvent (load) {
this.stop();
this.falling = false;
}
onClipEvent (enterFrame) {
if (this.falling) {
this._y = this._y + _root.rockfallrate;
this._x = this._x + 4;
if (this._y > _root.bottomlimit) {
if (_root.lives > 0) {
_root.score = _root.score + 50;
}
this.falling = false;
_root.explosion._x = this._x;
_root.explosion.play();
this._x = -200;
}
}
}
Instance of Symbol 191 MovieClip "rock" in Frame 5
/* no clip actions */
Frame 6
stop();
_root.totalpoints = score;
inplay = false;
stop();
name_txt.restrict = "A-Z 0-9.:\\-";
name_txt.text = _root.game_so.data.playerName;
Selection.setFocus(name_txt);
Selection.setSelection(name_txt.length, name_txt.length);
function () {
if (name_txt.length > 0) {
_root.game_so.data.playerName = name_txt.text;
}
_root.myname = name_txt.text;
gotoAndStop (3);
walkrate = 12;
leftlimit = 10;
rightlimit = 540;
bottomlimit = 470;
rockfallrate = 20;
scoreincrease = 0;
lives = 5;
score = 0;
energy = 200;
ducked = false;
fallen = false;
maxRocks = 5;
numRocks = 0;
moreRocks = 0;
faceright = true;
depthcounter = 1;
};
ok_btn.onKeyDown = function () {
if (Key.getCode() == 13) {
Key.removeListener(ok_btn);
this.onRelease();
}
};
Key.addListener(ok_btn);
Instance of Symbol 162 MovieClip "hobbit" in Frame 6
onClipEvent (enterFrame) {
_root.getRocks();
if (!_root.fallen) {
if (Key.isDown(40)) {
_root.ducked = true;
this.gotoAndStop("duck");
} else {
_root.ducked = false;
if (Key.isDown(37) && (this._x > _root.leftlimit)) {
_root.faceright = false;
this.gotoAndStop("walkleft");
this._x = this._x - _root.walkrate;
} else if (Key.isDown(39) && (this._x < _root.rightlimit)) {
_root.faceright = true;
this.gotoAndStop("walkright");
this._x = this._x + _root.walkrate;
} else if (_root.faceright) {
this.gotoAndStop("standright");
} else {
this.gotoAndStop("standleft");
}
}
}
if ((_root.score > _root.scoreincrease) && (_root.score < 11000)) {
_root.rockfallrate = _root.rockfallrate + 3;
_root.scoreincrease = _root.scoreincrease + 300;
} else {
_root.scoreincrease++;
}
}
Instance of Symbol 67 MovieClip in Frame 6
onClipEvent (load) {
this.gotoAndPlay(150);
}
Frame 7
stop();
Instance of Symbol 187 MovieClip in Frame 7
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Frame 7
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Frame 7
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Frame 7
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Frame 7
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Frame 9
stop();
showScores = function () {
var i = 10;
while (i > 0) {
var n = scoreboard_lv["name" + (page + i)];
var s = scoreboard_lv["score" + (page + i)];
var l_mc = this[("line" + i) + "_mc"];
l_mc.rank_txt.text = (page + i) + ".";
l_mc.name_txt.text = (n.length ? (n.toUpperCase()) : "...");
l_mc.score_txt.text = s;
l_mc.rank_txt.textColor = (l_mc.name_txt.textColor = (l_mc.score_txt.textColor = ((game_so.data.playerName.length && (n.toUpperCase() == game_so.data.playerName.toUpperCase())) ? 16777011 : 16777215)));
l_mc._visible = true;
loading_mc._visible = false;
i--;
}
};
page = 0;
maxScore = 100;
scoreboard_lv = new LoadVars();
if ((totalpoints > 0) && (playerName.length > 0)) {
scoreboard_lv.name = playerName;
scoreboard_lv.score = totalpoints;
}
scoreboard_lv.game = "mordor";
scoreboard_lv.onLoad = function (success) {
if (success) {
if (Boolean(scoreboard_lv.success)) {
next_btn._visible = true;
if (scoreboard_lv.maxScore.length > 0) {
maxScore = Number(scoreboard_lv.maxScore);
}
showScores();
} else {
loading_mc.errorMsg = scoreboard_lv.errorMsg.toUpperCase();
loading_mc.gotoAndStop(2);
}
} else {
loading_mc.errorMsg = "COULD NOT ACCESS SCORES.";
loading_mc.gotoAndStop(2);
}
};
score = 0;
next_btn._visible = (last_btn._visible = false);
Symbol 4 MovieClip [alien3] Frame 1
stop();
Symbol 4 MovieClip [alien3] Frame 3
gotoAndStop (1);
Symbol 34 MovieClip Frame 1
function formatBytes(bytes) {
var kb = 1024;
var mb = (kb * 1024);
var tempNum = 0;
if (bytes >= mb) {
tempNum = String(Math.floor((bytes / mb) * 100) / 100);
if (tempNum.substring(tempNum.indexOf("."), tempNum.length).length == 2) {
tempNum = tempNum + "0";
}
tempNum = tempNum + " MB";
} else if (bytes >= kb) {
tempNum = String(Math.floor((bytes / kb) * 100) / 100);
if (tempNum.substring(tempNum.indexOf("."), tempNum.length).length == 2) {
tempNum = tempNum + "0";
}
tempNum = tempNum + " KB";
} else {
tempNum = bytes + " B";
}
return(tempNum);
}
this._visible = false;
var isLoaded = false;
var totalBytes = _parent.getBytesTotal();
var loadedBytes = _parent.getBytesLoaded();
var totalFrames = _parent._totalFrames();
var loadedFrames = _parent._framesLoaded();
var fractionLoaded = 0;
var percentLoaded = "0%";
var bytesPerSecond = 0;
var sizePerSecond = formatBytes(bytesPerSecond);
var elapsedTime = "0:00";
var estimatedTime = "0:00";
var estimatedTimeLeft = "0:00";
var gStartTime = getTimer();
var gCurrentTime = getTimer();
var gSampleTimer = (gCurrentTime - gStartTime);
var gSizeSample = loadedBytes;
var framesPerSecond = 0;
var frameCounter = 0;
var totalSize = formatBytes(totalBytes);
var loadedSize = formatBytes(loadedBytes);
var loadedBytes = 0;
var gLoading = true;
var gPlaying = false;
_parent.stop();
Symbol 34 MovieClip Frame 2
if (gLoading) {
loadedBytes = _parent.getBytesLoaded();
loadedSize = formatBytes(loadedBytes);
loadedFrames = _parent._framesLoaded;
gCurrentTime = getTimer();
var elapsedMinutes = Math.floor(((gCurrentTime - gStartTime) / 1000) / 60);
var elapsedSeconds = Math.floor(((gCurrentTime - gStartTime) / 1000) % 60);
if (String(elapsedSeconds).length == 1) {
elapsedSeconds = "0" + elapsedSeconds;
}
elapsedTime = (elapsedMinutes + ":") + elapsedSeconds;
frameCounter++;
if ((gCurrentTime - gStartTime) >= (gSampleTimer + 1000)) {
framesPerSecond = frameCounter;
frameCounter = 0;
bytesPerSecond = loadedBytes - gSizeSample;
sizePerSecond = formatBytes(bytesPerSecond);
if (STREAM && (PLAY_TYPE == "auto")) {
if ((loadedFrames / framesPerSecond) > ((totalBytes - loadedBytes) / bytesPerSecond)) {
_parent.play();
}
}
var estimatedMinutes = Math.floor((totalBytes / bytesPerSecond) / 60);
var estimatedSeconds = Math.floor((totalBytes / bytesPerSecond) % 60);
if (String(estimatedSeconds).length == 1) {
estimatedSeconds = "0" + estimatedSeconds;
}
estimatedTime = (estimatedMinutes + ":") + estimatedSeconds;
var estimatedMinutesLeft = Math.floor(((totalBytes - loadedBytes) / bytesPerSecond) / 60);
var estimatedSecondsLeft = Math.floor(((totalBytes - loadedBytes) / bytesPerSecond) % 60);
if (String(estimatedSecondsLeft).length == 1) {
estimatedSecondsLeft = "0" + estimatedSecondsLeft;
}
estimatedTimeLeft = (estimatedMinutesLeft + ":") + estimatedSecondsLeft;
gSizeSample = loadedBytes;
gSampleTimer = gCurrentTime - gStartTime;
}
fractionLoaded = loadedBytes / totalBytes;
percentLoaded = Math.floor(fractionLoaded * 100) + "%";
if (STREAM) {
switch (PLAY_TYPE) {
case "bytes" :
if (loadedBytes >= PLAY_BYTES) {
if (!gPlaying) {
_parent.play();
gPlaying = true;
}
}
break;
case "frames" :
if (loadedFrames >= PLAY_FRAMES) {
if (!gPlaying) {
_parent.play();
gPlaying = true;
}
}
break;
case "percent" :
if ((fractionLoaded * 100) < PLAY_PERCENT) {
break;
}
if (gPlaying) {
break;
}
_parent.play();
gPlaying = true;
}
}
if (loadedBytes == totalBytes) {
isLoaded = true;
}
if (isLoaded) {
if (!STREAM) {
_parent.play();
}
gLoading = false;
stop();
}
}
Symbol 34 MovieClip Frame 3
gotoAndPlay (2);
Symbol 48 MovieClip Frame 1
stop();
Symbol 48 MovieClip Frame 47
gotoAndPlay (2);
Instance of Symbol 56 MovieClip in Symbol 57 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_parent.colided) && (_root.lives > 0)) {
if (this.colision1.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 20;
_root.energy = _root.energy - 20;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
} else if (this.colision2.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 20;
_root.energy = _root.energy - 20;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
} else if (this.colision3.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 20;
_root.energy = _root.energy - 20;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
} else if (this.colision4.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 20;
_root.energy = _root.energy - 20;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
}
}
if (_root.timer == false) {
_root.time.play();
}
}
Symbol 58 MovieClip Frame 1
stop();
Symbol 58 MovieClip Frame 76
this.falling = false;
Instance of Symbol 57 MovieClip "dragonrock" in Symbol 66 MovieClip Frame 1
onClipEvent (load) {
this.stop();
}
Instance of Symbol 66 MovieClip in Symbol 67 MovieClip Frame 1
onClipEvent (load) {
this.dragonrock._visible = false;
}
Symbol 75 Button
on (release) {
gotoAndStop (7);
}
Symbol 81 Button
on (release) {
gotoAndStop (4);
}
Symbol 93 Button
on (release) {
gotoAndStop (8);
}
Symbol 114 Button
on (release) {
getURL ("http://www.gamesofgondor.com", _blank);
}
Symbol 131 Button
on (release) {
getURL ("http://www.gamesofgondor.com", _blank);
}
Symbol 142 Button
on (release) {
getURL ("http://www.kernoweb.com", _blank);
}
Symbol 162 MovieClip Frame 35
if (_root.lives > 0) {
_root.fallen = false;
} else {
stop();
}
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
play();
Symbol 163 MovieClip Frame 9
this._x = -100;
this.removeMovieClip();
Instance of Symbol 168 MovieClip in Symbol 169 MovieClip Frame 1
onClipEvent (enterFrame) {
if ((!_parent.colided) && (_root.lives > 0)) {
if (this.colision1.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 50;
_root.energy = _root.energy - 50;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
} else if (this.colision2.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 50;
_root.energy = _root.energy - 50;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
} else if (this.colision3.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 50;
_root.energy = _root.energy - 50;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
} else if (this.colision4.hitTest(_root.hobbit) & _root.timer) {
if (!_root.ducked) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
} else {
_root.swordguage.swordmask._x = _root.swordguage.swordmask._x - 50;
_root.energy = _root.energy - 50;
if (_root.energy < 5) {
_root.lives--;
_root.timer = false;
_root.time.play();
_root.life_meter.gotoAndStop(_root.lives + 1);
if (_root.lives == 0) {
_root.gotoAndStop("gameover");
}
_parent._parent.colided = true;
_root.fallen = true;
_root.hobbit.gotoAndPlay("hit");
_root.swordguage.swordmask._x = _root.swordstart;
_root.energy = 200;
}
}
}
}
if (_root.timer == false) {
_root.time.play();
}
}
Symbol 171 MovieClip Frame 1
stop();
Symbol 171 MovieClip Frame 5
_root.timer = true;
Symbol 173 MovieClip Frame 1
stop();
rockdropped = false;
Instance of Symbol 66 MovieClip "dragon" in Symbol 173 MovieClip Frame 1
onClipEvent (enterFrame) {
if (this._x >= _root.hobbit._x) {
this.dragonrock._visible = false;
if ((!_root.dragonrock.falling) && (!rockdropped)) {
rockdropped = true;
_root.dragonrock.falling = true;
_root.dragonrock._x = this._x - 90;
_root.dragonrock._y = this._y + _root.flyingdragon._y;
_root.dragonrock.play();
}
}
}
Symbol 173 MovieClip Frame 55
this.flying = false;
dragon.dragonrock._visible = true;
Symbol 188 MovieClip Frame 1
stop();
Instance of Symbol 187 MovieClip in Symbol 188 MovieClip Frame 2
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Symbol 188 MovieClip Frame 3
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Symbol 188 MovieClip Frame 4
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Symbol 188 MovieClip Frame 5
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Instance of Symbol 187 MovieClip in Symbol 188 MovieClip Frame 6
onClipEvent (load) {
used = false;
}
onClipEvent (enterFrame) {
if ((used == false) && (this.hitTest(_root.bubMC))) {
used = true;
_root.collectCoin();
this._visible = false;
}
}
Symbol 191 MovieClip Frame 1
colided = false;
Symbol 229 Button
on (release) {
sendscore = new LoadVars();
sendscore.gscore = _root.totalpoints;
sendscore.gname = "mordormountainSte";
sendscore.send("index.php?act=Arcade&do=newscore", "_self", "POST");
}
Symbol 260 Button
on (release) {
gotoAndStop (3);
}
Symbol 278 Button
on (release) {
getURL ("http://www.kwikgames.com", _blank);
}
Symbol 296 MovieClip Frame 1
stop();
errorMsg = "";
i = 0;
alien_mc.onEnterFrame = function () {
i = i + 0.25;
i = i % 2;
this.gotoAndStop(i + 1);
};
Symbol 299 Button
on (release) {
gotoAndStop (3);
}
Symbol 209 Button
on (release) {
gotoAndStop (3);
}