Frame 1
stop();
Instance of Symbol 12 MovieClip "mcBar" in Frame 1
onClipEvent (load) {
_xscale = 0;
total = _parent.getBytesTotal();
}
onClipEvent (enterFrame) {
_xscale = Math.floor((_parent.getBytesLoaded() / total) * 100);
if (_xscale >= 99) {
_parent.gotoAndStop(2);
}
}
Frame 2
stopAllSounds();
stop();
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (3);
}
Instance of Symbol 31 MovieClip "mc1" in Frame 2
onClipEvent (load) {
gotoAndStop (5);
}
Instance of Symbol 31 MovieClip "mc3" in Frame 2
onClipEvent (load) {
gotoAndStop (2);
}
Instance of Symbol 31 MovieClip "mc2" in Frame 2
onClipEvent (load) {
gotoAndStop (1);
}
Instance of Symbol 31 MovieClip "mc4" in Frame 2
onClipEvent (load) {
gotoAndStop (4);
}
Frame 3
_quality = "MEDIUM";
fscommand ("showmenu", "false");
mcGearMaker.currentLevel = 0;
arrLevel = new Array(1, 1, 2, 2, 3, 3, 4, 4);
arrCombinations = new Array(10, 15, 10, 15, 10, 15, 10, 15);
Instance of Symbol 76 MovieClip "mcLevel" in Frame 3
/* no clip actions */
Instance of Symbol 117 MovieClip "mcOrc" in Frame 3
onClipEvent (enterFrame) {
if (_parent.gameStarted) {
play();
} else {
stop();
}
if ((_x < 373) && (!hurry)) {
hurry = true;
_parent.mcSoundBoard.gotoAndStop("hurry");
}
if ((_x < 180) && (!almost)) {
almost = true;
_parent.mcSoundBoard.gotoAndStop("almost");
}
if ((_x < 30) && (!entered)) {
entered = true;
_parent.mcSoundBoard.gotoAndPlay("entered");
_parent.mcButton.play();
_parent.mcButton.mcGameOver.play();
}
if ((_x < 0) && (!hey)) {
hey = true;
w = random(2);
if (w < 1) {
_parent.mcSoundBoard.gotoAndStop("hey");
} else {
_parent.mcSoundBoard.gotoAndStop("afraid");
}
}
}
Instance of Symbol 152 MovieClip "mcGearMaker" in Frame 3
onClipEvent (load) {
function startUp() {
gearno = 0;
row = 0;
while (row < 5) {
col = 0;
while (col < 5) {
duplicateMovieClip ("mcGear", (("mcGearR:" + row) + "C:") + col, gearno);
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col]._x = col * 108;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col]._y = row * 108;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].tag = false;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].gotoAndStop(15);
gearno++;
col++;
}
row++;
}
checkCombo();
}
function checkCombo() {
combi = false;
noofCombinations = 0;
row = 1;
while (row <= 3) {
col = 1;
while (col <= 3) {
c = 1;
while (c < (_parent.arrLevel[currentLevel - 1] + 6)) {
if (((((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc1.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc1.currentColor == 8)) && ((_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + col].mcGear.mc3.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + col].mcGear.mc3.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + (col - 1)].mcGear.mc4.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + (col - 1)].mcGear.mc4.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col - 1)].mcGear.mc2.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col - 1)].mcGear.mc2.currentColor == 8))) {
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + (col - 1)].tag = true;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col - 1)].tag = true;
combi = true;
noofCombinations++;
}
if (((((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc2.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc2.currentColor == 8)) && ((_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + col].mcGear.mc4.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + col].mcGear.mc4.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + (col + 1)].mcGear.mc3.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + (col + 1)].mcGear.mc3.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col + 1)].mcGear.mc1.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col + 1)].mcGear.mc1.currentColor == 8))) {
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row - 1)) + "C:") + (col + 1)].tag = true;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col + 1)].tag = true;
combi = true;
noofCombinations++;
}
if (((((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc3.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc3.currentColor == 8)) && ((_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + col].mcGear.mc1.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + col].mcGear.mc1.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + (col - 1)].mcGear.mc2.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + (col - 1)].mcGear.mc2.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col - 1)].mcGear.mc4.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col - 1)].mcGear.mc4.currentColor == 8))) {
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + (col - 1)].tag = true;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col - 1)].tag = true;
combi = true;
noofCombinations++;
}
if (((((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc4.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].mcGear.mc4.currentColor == 8)) && ((_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + col].mcGear.mc2.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + col].mcGear.mc2.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + (col + 1)].mcGear.mc1.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + (col + 1)].mcGear.mc1.currentColor == 8))) && ((_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col + 1)].mcGear.mc3.currentColor == c) || (_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col + 1)].mcGear.mc3.currentColor == 8))) {
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + col].tag = true;
_parent.mcGearMaker[(("mcGearR:" + (row + 1)) + "C:") + (col + 1)].tag = true;
_parent.mcGearMaker[(("mcGearR:" + row) + "C:") + (col + 1)].tag = true;
combi = true;
noofCombinations++;
}
c++;
}
col = col + 2;
}
row = row + 2;
}
if (combi) {
if (checkWinner) {
checkWinner = false;
_parent.mcScoreBoard.txtCombinations.text = Number(_parent.mcScoreBoard.txtCombinations.text) - 1;
_parent.mcScoreBoard.txtScore.text = (Number(_parent.mcScoreBoard.txtScore.text) + (50 * currentLevel)) + ((10 * (noofCombinations - 1)) * currentLevel);
if (noofCombinations > 1) {
_parent.mcSoundBoard.gotoAndStop("combo" + noofCombinations);
w = random(2);
if (w == 0) {
_parent.mcOrc.gotoAndPlay("lightning");
} else {
_parent.mcOrc.mcPig._visible = true;
_parent.mcOrc.mcPig.play();
}
}
if (_parent.mcScoreBoard.txtCombinations.text == "0") {
_parent.mcButton.play();
_parent.mcGate.play();
_parent.mcOrc.gotoAndPlay("lose");
_parent.mcLevel._visible = true;
_parent.mcLevel.gotoAndPlay("cleared");
}
}
}
row2 = 0;
while (row2 < 5) {
col2 = 0;
while (col2 < 5) {
if (_parent.mcGearMaker[(("mcGearR:" + row2) + "C:") + col2].tag) {
_parent.mcGearMaker[(("mcGearR:" + row2) + "C:") + col2].tag = false;
_parent.mcGearMaker[(("mcGearR:" + row2) + "C:") + col2].play();
}
col2++;
}
row2++;
}
}
function nextLevel() {
_parent.cmdShuffle._visible = true;
currentLevel++;
if (currentLevel > 8) {
_parent.finalScore = _parent.mcScoreBoard.txtScore.text;
_parent.gotoAndStop(4);
}
startUp();
_parent.mcScoreBoard.txtCombinations.text = _parent.arrCombinations[currentLevel - 1];
_parent.gameStarted = false;
_parent.mcOrc._x = 730;
_parent.mcOrc.gotoAndStop(1);
_parent.mcOrc.hurry = false;
_parent.mcOrc.almost = false;
_parent.mcOrc.entered = false;
_parent.mcOrc.hey = false;
_parent.mcGate.gotoAndStop(1);
_parent.mcLevel.mcLevel.txtLevel.text = currentLevel;
_parent.mcLevel._visible = true;
_parent.mcLevel.gotoAndPlay(1);
}
function OKtoStart() {
_parent.mcButton.play();
_parent.mcSoundBoard.gotoAndPlay("coming");
}
mcGear._visible = false;
_parent.mcScoreBoard.txtScore.text = 0;
nextLevel();
}
Instance of Symbol 157 MovieClip "mcButton" in Frame 3
onClipEvent (load) {
stop();
}
Frame 4
txtScore.text = finalScore;
stop();
Symbol 6 Button
on (release) {
getURL ("http://www.gamesofgondor.com", "_blank");
}
Symbol 18 Button
on (release) {
gotoAndStop (3);
}
Symbol 31 MovieClip Frame 1
stop();
Symbol 37 Button
on (release) {
if ((!turning) && (this._currentframe == 15)) {
turning = true;
rotation = -15;
tmp = mcGear.mc1.currentColor;
mcGear.mc1.currentColor = mcGear.mc2.currentColor;
mcGear.mc2.currentColor = mcGear.mc4.currentColor;
mcGear.mc4.currentColor = mcGear.mc3.currentColor;
mcGear.mc3.currentColor = tmp;
_parent._parent.gameStarted = true;
_parent._parent.mcSoundBoard.gotoAndPlay("gear");
}
}
Symbol 41 Button
on (release) {
if ((!turning) && (this._currentframe == 15)) {
turning = true;
rotation = 15;
tmp = mcGear.mc1.currentColor;
mcGear.mc1.currentColor = mcGear.mc3.currentColor;
mcGear.mc3.currentColor = mcGear.mc4.currentColor;
mcGear.mc4.currentColor = mcGear.mc2.currentColor;
mcGear.mc2.currentColor = tmp;
_parent._parent.gameStarted = true;
_parent._parent.mcSoundBoard.gotoAndPlay("gear");
}
}
Symbol 57 Button
on (release) {
cmdShuffle._visible = false;
mcGearMaker.startUp();
}
Symbol 59 Button
on (release) {
gotoAndStop (2);
}
Symbol 62 MovieClip Frame 1
stop();
Symbol 62 MovieClip Frame 10
stop();
Symbol 76 MovieClip Frame 230
_visible = false;
_parent.mcGearMaker.OKtoStart();
stop();
Symbol 76 MovieClip Frame 371
_visible = false;
stop();
_parent.mcGearMaker.nextLevel();
Symbol 94 MovieClip Frame 6
_parent.gotoAndPlay("pig");
_visible = false;
Instance of Symbol 94 MovieClip "mcPig" in Symbol 117 MovieClip Frame 1
onClipEvent (load) {
_visible = false;
stop();
}
Symbol 117 MovieClip Frame 56
_x = (_x - 30);
Symbol 117 MovieClip Frame 166
_x = (_x - 30);
Symbol 117 MovieClip Frame 215
gotoAndStop (1);
Symbol 117 MovieClip Frame 250
gotoAndPlay (221);
Symbol 117 MovieClip Frame 333
_x = (_x + 24);
Symbol 117 MovieClip Frame 502
w = random(3);
if (w == 0) {
_parent.mcSoundBoard.gotoAndStop("peace");
} else if (w == 1) {
_parent.mcSoundBoard.gotoAndStop("ouch");
} else {
_parent.mcSoundBoard.gotoAndStop("allyougot");
}
Symbol 117 MovieClip Frame 523
gotoAndPlay (47);
Symbol 117 MovieClip Frame 770
w = random(3);
if (w == 0) {
_parent.mcSoundBoard.gotoAndStop("peace");
} else if (w == 1) {
_parent.mcSoundBoard.gotoAndStop("ouch");
} else {
_parent.mcSoundBoard.gotoAndStop("allyougot");
}
Symbol 117 MovieClip Frame 795
gotoAndPlay (57);
Symbol 148 MovieClip Frame 1
stop();
Symbol 148 MovieClip Frame 76
w = random(3);
if (w == 0) {
gotoAndStop ("hiho");
} else if (w == 1) {
gotoAndStop ("100miles");
} else {
gotoAndStop ("hungry");
}
Symbol 148 MovieClip Frame 135
stop();
Symbol 148 MovieClip Frame 208
gotoAndStop (1);
Instance of Symbol 150 MovieClip "mcGear" in Symbol 151 MovieClip Frame 1
onClipEvent (load) {
myColors = new Array();
ctr = 1;
while (ctr < (_parent._parent._parent.arrLevel[_parent._parent.currentLevel - 1] + 6)) {
myColors.push(ctr);
ctr++;
}
ctr = 1;
while (ctr < 5) {
myColor = random(myColors.length);
this["mc" + ctr].gotoAndStop(myColors[myColor]);
this["mc" + ctr].currentColor = myColors[myColor];
myColors.splice(myColor, 1);
ctr++;
}
}
onClipEvent (enterFrame) {
if (_parent.turning) {
_rotation = (_rotation + _parent.rotation);
mc1.mcGlare._rotation = mc1.mcGlare._rotation - _parent.rotation;
mc2.mcGlare._rotation = mc2.mcGlare._rotation - _parent.rotation;
mc3.mcGlare._rotation = mc3.mcGlare._rotation - _parent.rotation;
mc4.mcGlare._rotation = mc4.mcGlare._rotation - _parent.rotation;
if ((_rotation % 90) == 0) {
_parent.turning = false;
_parent._parent.checkWinner = true;
_parent._parent.checkCombo();
}
}
}
Symbol 151 MovieClip Frame 15
_parent.checkCombo();
stop();
Symbol 151 MovieClip Frame 16
turning = false;
Symbol 156 MovieClip Frame 1
stop();
Symbol 156 MovieClip Frame 20
stop();
Symbol 157 MovieClip Frame 11
stop();
Symbol 157 MovieClip Frame 21
stop();